mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-11-04 00:11:04 +00:00 
			
		
		
		
	Language statistics bar for repositories (#8037)
* Implementation for calculating language statistics Impement saving code language statistics to database Implement rendering langauge stats Add primary laguage to show in repository list Implement repository stats indexer queue Add indexer test Refactor to use queue module * Do not timeout for queues
This commit is contained in:
		
					parent
					
						
							
								37892be635
							
						
					
				
			
			
				commit
				
					
						ad2642a8aa
					
				
			
		
					 89 changed files with 182950 additions and 57 deletions
				
			
		
							
								
								
									
										20
									
								
								vendor/github.com/src-d/go-oniguruma/README.md
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								vendor/github.com/src-d/go-oniguruma/README.md
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,20 @@
 | 
			
		|||
## go-oniguruma
 | 
			
		||||
<a href="https://travis-ci.org/src-d/go-oniguruma"><img alt="Build Status" src="https://travis-ci.org/src-d/go-oniguruma.svg?branch=master" /></a>
 | 
			
		||||
 | 
			
		||||
This repository is a fork of [moovweb/rubex](https://github.com/moovweb/rubex/tree/go1) - a simple regular expression library (based on [oniguruma](https://github.com/kkos/oniguruma)) that supports Ruby's regex syntax.
 | 
			
		||||
 | 
			
		||||
The _rubex_ was originally created by Zhigang Chen (zhigang.chen@moovweb.com or zhigangc@gmail.com). It implements all the public functions of Go's Regexp package, except LiteralPrefix.
 | 
			
		||||
 | 
			
		||||
By the benchmark tests in regexp, the library is 40% to 10X faster than Regexp on all but one test. Unlike Go's regexp, this library supports named capture groups and also allow `"\\1"` and `"\\k<name>"` in replacement strings.
 | 
			
		||||
The library calls the _oniguruma_ regex library for regex pattern searching. All replacement code is done in Go.
 | 
			
		||||
 | 
			
		||||
### Install all (_oniguruma_ and _rubex_):
 | 
			
		||||
```sh
 | 
			
		||||
# linux (debian/ubuntu/...)
 | 
			
		||||
sudo apt-get install libonig-dev
 | 
			
		||||
 | 
			
		||||
# osx (homebrew)
 | 
			
		||||
brew install oniguruma
 | 
			
		||||
 | 
			
		||||
go install -i .
 | 
			
		||||
```
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue