浏览代码

Merge pull request #224 from vmarkovtsev/master

v9
Vadim Markovtsev 6 年之前
父节点
当前提交
bd7dfc7f16
共有 54 个文件被更改,包括 165 次插入165 次删除
  1. 5 5
      .appveyor.yml
  2. 8 8
      .travis.yml
  3. 4 4
      Dockerfile
  4. 2 2
      Makefile
  5. 4 4
      README.md
  6. 2 2
      cmd/hercules/combine.go
  7. 1 1
      cmd/hercules/plugin.template
  8. 2 2
      cmd/hercules/root.go
  9. 1 1
      contrib/_plugin_example/churn_analysis.go
  10. 6 6
      core.go
  11. 2 2
      internal/burndown/file.go
  12. 1 1
      internal/burndown/file_test.go
  13. 1 1
      internal/core/forks.go
  14. 1 1
      internal/core/forks_test.go
  15. 2 2
      internal/core/pipeline.go
  16. 2 2
      internal/core/pipeline_test.go
  17. 1 1
      internal/core/registry_test.go
  18. 4 4
      internal/global_test.go
  19. 2 2
      internal/plumbing/blob_cache.go
  20. 3 3
      internal/plumbing/blob_cache_test.go
  21. 1 1
      internal/plumbing/day.go
  22. 2 2
      internal/plumbing/day_test.go
  23. 1 1
      internal/plumbing/diff.go
  24. 6 6
      internal/plumbing/diff_test.go
  25. 1 1
      internal/plumbing/identity/identity.go
  26. 2 2
      internal/plumbing/identity/identity_test.go
  27. 1 1
      internal/plumbing/languages.go
  28. 2 2
      internal/plumbing/languages_test.go
  29. 1 1
      internal/plumbing/line_stats.go
  30. 5 5
      internal/plumbing/line_stats_test.go
  31. 2 2
      internal/plumbing/renames.go
  32. 2 2
      internal/plumbing/renames_test.go
  33. 1 1
      internal/plumbing/tree_diff.go
  34. 2 2
      internal/plumbing/tree_diff_test.go
  35. 2 2
      internal/plumbing/uast/changes_xpather_test.go
  36. 2 2
      internal/plumbing/uast/diff_refiner.go
  37. 3 3
      internal/plumbing/uast/diff_refiner_test.go
  38. 1 1
      internal/plumbing/uast/test/utils.go
  39. 3 3
      internal/plumbing/uast/uast.go
  40. 4 4
      internal/plumbing/uast/uast_test.go
  41. 2 2
      internal/test/fixtures/fixtures.go
  42. 7 7
      leaves/burndown.go
  43. 7 7
      leaves/burndown_test.go
  44. 4 4
      leaves/comment_sentiment.go
  45. 6 6
      leaves/comment_sentiment_test.go
  46. 5 5
      leaves/couples.go
  47. 5 5
      leaves/couples_test.go
  48. 5 5
      leaves/devs.go
  49. 6 6
      leaves/devs_test.go
  50. 4 4
      leaves/file_history.go
  51. 6 6
      leaves/file_history_test.go
  52. 4 4
      leaves/shotness.go
  53. 5 5
      leaves/shotness_test.go
  54. 1 1
      version_test.go

+ 5 - 5
.appveyor.yml

@@ -2,7 +2,7 @@ version: "{build}"
 platform: x64
 platform: x64
 image: Visual Studio 2017
 image: Visual Studio 2017
 
 
-clone_folder: c:\gopath\src\gopkg.in\src-d\hercules.v8
+clone_folder: c:\gopath\src\gopkg.in\src-d\hercules.v9
 
 
 environment:
 environment:
   GOPATH: c:\gopath
   GOPATH: c:\gopath
@@ -16,14 +16,14 @@ build_script:
   - go version
   - go version
   - set PATH=C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin;C:\msys64\usr\bin;C:\msys64\mingw64\bin;%GOPATH%\bin;%PATH%
   - set PATH=C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin;C:\msys64\usr\bin;C:\msys64\mingw64\bin;%GOPATH%\bin;%PATH%
   - set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
   - set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
-  - cd %GOPATH%\src\gopkg.in\src-d\hercules.v8
+  - cd %GOPATH%\src\gopkg.in\src-d\hercules.v9
   - go get -v github.com/golang/dep/cmd/dep
   - go get -v github.com/golang/dep/cmd/dep
   - make
   - make
-  - 7z a c:\gopath\src\gopkg.in\src-d\hercules.v8\hercules.win64.zip %GOPATH%\bin\hercules.exe
+  - 7z a c:\gopath\src\gopkg.in\src-d\hercules.v9\hercules.win64.zip %GOPATH%\bin\hercules.exe
 
 
 test_script:
 test_script:
-  - go get -v -t -d gopkg.in/src-d/hercules.v8/...
-  - go test -v -tags disable_babelfish gopkg.in/src-d/hercules.v8/...
+  - go get -v -t -d gopkg.in/src-d/hercules.v9/...
+  - go test -v -tags disable_babelfish gopkg.in/src-d/hercules.v9/...
 
 
 artifacts:
 artifacts:
   - name: hercules.win64.zip
   - name: hercules.win64.zip

+ 8 - 8
.travis.yml

@@ -5,7 +5,7 @@ git:
   depth: 9999999
   depth: 9999999
 
 
 language: go
 language: go
-go_import_path: gopkg.in/src-d/hercules.v8
+go_import_path: gopkg.in/src-d/hercules.v9
 go:
 go:
   - 1.10.x
   - 1.10.x
   - 1.11.x
   - 1.11.x
@@ -19,10 +19,10 @@ cache:
     - $HOME/gopath/src
     - $HOME/gopath/src
 before_cache:
 before_cache:
   - cd $HOME/gopath
   - cd $HOME/gopath
-  - mv $HOME/gopath/src/gopkg.in/src-d/hercules.v8/vendor $HOME/gopath/src/gopkg.in/src-d/.vendor
-  - rm -rf $HOME/gopath/src/gopkg.in/src-d/hercules.v8
-  - mkdir $HOME/gopath/src/gopkg.in/src-d/hercules.v8
-  - mv $HOME/gopath/src/gopkg.in/src-d/.vendor $HOME/gopath/src/gopkg.in/src-d/hercules.v8/vendor
+  - mv $HOME/gopath/src/gopkg.in/src-d/hercules.v9/vendor $HOME/gopath/src/gopkg.in/src-d/.vendor
+  - rm -rf $HOME/gopath/src/gopkg.in/src-d/hercules.v9
+  - mkdir $HOME/gopath/src/gopkg.in/src-d/hercules.v9
+  - mv $HOME/gopath/src/gopkg.in/src-d/.vendor $HOME/gopath/src/gopkg.in/src-d/hercules.v9/vendor
 
 
 matrix:
 matrix:
   fast_finish: true
   fast_finish: true
@@ -64,7 +64,7 @@ script:
   - go vet -tags tensorflow ./...
   - go vet -tags tensorflow ./...
   - golint -set_exit_status $(go list ./... | grep -v /vendor/)
   - golint -set_exit_status $(go list ./... | grep -v /vendor/)
   - flake8
   - flake8
-  - go test -coverpkg=all -v -coverprofile=coverage.txt -covermode=count gopkg.in/src-d/hercules.v8/... && sed -i '/cmd\/hercules\|core.go/d' coverage.txt
+  - go test -coverpkg=all -v -coverprofile=coverage.txt -covermode=count gopkg.in/src-d/hercules.v9/... && sed -i '/cmd\/hercules\|core.go/d' coverage.txt
   - $GOPATH/bin/hercules version
   - $GOPATH/bin/hercules version
   - $GOPATH/bin/hercules --burndown --couples --devs --quiet --pb https://github.com/src-d/hercules > 1.pb
   - $GOPATH/bin/hercules --burndown --couples --devs --quiet --pb https://github.com/src-d/hercules > 1.pb
   - cp 1.pb 2.pb
   - cp 1.pb 2.pb
@@ -90,7 +90,7 @@ jobs:
       os: osx
       os: osx
       osx_image: xcode9.3
       osx_image: xcode9.3
       go: 1.11.x
       go: 1.11.x
-      go_import_path: gopkg.in/src-d/hercules.v8
+      go_import_path: gopkg.in/src-d/hercules.v9
       before_install:
       before_install:
         - wget -O protoc.zip https://github.com/google/protobuf/releases/download/v$PROTOC_VERSION/protoc-$PROTOC_VERSION-osx-x86_64.zip
         - wget -O protoc.zip https://github.com/google/protobuf/releases/download/v$PROTOC_VERSION/protoc-$PROTOC_VERSION-osx-x86_64.zip
         - unzip -d ~/.local protoc.zip && rm protoc.zip
         - unzip -d ~/.local protoc.zip && rm protoc.zip
@@ -112,7 +112,7 @@ jobs:
     - stage: deploy
     - stage: deploy
       os: linux
       os: linux
       go: 1.11.x
       go: 1.11.x
-      go_import_path: gopkg.in/src-d/hercules.v8
+      go_import_path: gopkg.in/src-d/hercules.v9
       before_install:
       before_install:
         - wget -O protoc.zip https://github.com/google/protobuf/releases/download/v$PROTOC_VERSION/protoc-$PROTOC_VERSION-linux-x86_64.zip
         - wget -O protoc.zip https://github.com/google/protobuf/releases/download/v$PROTOC_VERSION/protoc-$PROTOC_VERSION-linux-x86_64.zip
         - unzip -d ~/.local protoc.zip && rm protoc.zip
         - unzip -d ~/.local protoc.zip && rm protoc.zip

+ 4 - 4
Dockerfile

@@ -3,7 +3,7 @@ FROM ubuntu:18.04
 ENV GOPATH /root
 ENV GOPATH /root
 ENV PROTOBUF_VERSION 3.5.1
 ENV PROTOBUF_VERSION 3.5.1
 
 
-COPY . /root/src/gopkg.in/src-d/hercules.v8
+COPY . /root/src/gopkg.in/src-d/hercules.v9
 RUN apt-get update && \
 RUN apt-get update && \
     apt-get install -y --no-install-suggests --no-install-recommends software-properties-common && \
     apt-get install -y --no-install-suggests --no-install-recommends software-properties-common && \
     add-apt-repository -y ppa:gophers/archive && \
     add-apt-repository -y ppa:gophers/archive && \
@@ -14,13 +14,13 @@ RUN apt-get update && \
     locale-gen en_US.UTF-8 && \
     locale-gen en_US.UTF-8 && \
     export PATH=/usr/lib/go-1.10/bin:/root/bin:$PATH && \
     export PATH=/usr/lib/go-1.10/bin:/root/bin:$PATH && \
     go get -v github.com/golang/dep/cmd/dep && \
     go get -v github.com/golang/dep/cmd/dep && \
-    cd /root/src/gopkg.in/src-d/hercules.v8 && \
+    cd /root/src/gopkg.in/src-d/hercules.v9 && \
     export CGO_CXXFLAGS=-std=c++14 && \
     export CGO_CXXFLAGS=-std=c++14 && \
     curl -L "https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-$(go env GOOS)-x86_64-1.7.0.tar.gz" | tar -C /usr/local -xz && \
     curl -L "https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-$(go env GOOS)-x86_64-1.7.0.tar.gz" | tar -C /usr/local -xz && \
     make && \
     make && \
     rm /usr/local/bin/protoc && rm /usr/local/readme.txt && rm -rf /usr/local/include/google && \
     rm /usr/local/bin/protoc && rm /usr/local/readme.txt && rm -rf /usr/local/include/google && \
     cp /root/bin/hercules /usr/local/bin && \
     cp /root/bin/hercules /usr/local/bin && \
-    cp -r /root/src/gopkg.in/src-d/hercules.v8/*.py /root/src/gopkg.in/src-d/hercules.v8/internal /usr/local/bin && \
+    cp -r /root/src/gopkg.in/src-d/hercules.v9/*.py /root/src/gopkg.in/src-d/hercules.v9/internal /usr/local/bin && \
     sed -i 's/parser.add_argument("--backend",/parser.add_argument("--backend", default="Agg",/' /usr/local/bin/labours.py && \
     sed -i 's/parser.add_argument("--backend",/parser.add_argument("--backend", default="Agg",/' /usr/local/bin/labours.py && \
     echo '#!/bin/bash\n\
     echo '#!/bin/bash\n\
 \n\
 \n\
@@ -30,7 +30,7 @@ echo\n\' > /browser && \
     chmod +x /browser && \
     chmod +x /browser && \
     curl https://bootstrap.pypa.io/get-pip.py | python3 - pip==18.1 && \
     curl https://bootstrap.pypa.io/get-pip.py | python3 - pip==18.1 && \
     pip3 install --no-cache-dir --no-build-isolation cython && \
     pip3 install --no-cache-dir --no-build-isolation cython && \
-    pip3 install --no-cache-dir --no-build-isolation -r /root/src/gopkg.in/src-d/hercules.v8/requirements.txt https://github.com/mind/wheels/releases/download/tf1.7-cpu/tensorflow-1.7.0-cp36-cp36m-linux_x86_64.whl && \
+    pip3 install --no-cache-dir --no-build-isolation -r /root/src/gopkg.in/src-d/hercules.v9/requirements.txt https://github.com/mind/wheels/releases/download/tf1.7-cpu/tensorflow-1.7.0-cp36-cp36m-linux_x86_64.whl && \
     rm -rf /root/* && \
     rm -rf /root/* && \
     apt-get remove -y software-properties-common golang-1.10-go python3-dev libyaml-dev libxml2-dev curl git make unzip g++ && \
     apt-get remove -y software-properties-common golang-1.10-go python3-dev libyaml-dev libxml2-dev curl git make unzip g++ && \
     apt-get remove -y *-doc *-man && \
     apt-get remove -y *-doc *-man && \

+ 2 - 2
Makefile

@@ -10,7 +10,7 @@ TAGS ?=
 all: ${GOPATH}/bin/hercules${EXE}
 all: ${GOPATH}/bin/hercules${EXE}
 
 
 test: all
 test: all
-	go test gopkg.in/src-d/hercules.v8
+	go test gopkg.in/src-d/hercules.v9
 
 
 ${GOPATH}/bin/protoc-gen-gogo${EXE}:
 ${GOPATH}/bin/protoc-gen-gogo${EXE}:
 	go get -v github.com/gogo/protobuf/protoc-gen-gogo
 	go get -v github.com/gogo/protobuf/protoc-gen-gogo
@@ -34,4 +34,4 @@ vendor:
 	dep ensure -v
 	dep ensure -v
 
 
 ${GOPATH}/bin/hercules${EXE}: vendor *.go */*.go */*/*.go */*/*/*.go internal/pb/pb.pb.go internal/pb/pb_pb2.py cmd/hercules/plugin_template_source.go
 ${GOPATH}/bin/hercules${EXE}: vendor *.go */*.go */*/*.go */*/*/*.go internal/pb/pb.pb.go internal/pb/pb_pb2.py cmd/hercules/plugin_template_source.go
-	go get -tags "$(TAGS)" -ldflags "-X gopkg.in/src-d/hercules.v8.BinaryGitHash=$(shell git rev-parse HEAD)" gopkg.in/src-d/hercules.v8/cmd/hercules
+	go get -tags "$(TAGS)" -ldflags "-X gopkg.in/src-d/hercules.v9.BinaryGitHash=$(shell git rev-parse HEAD)" gopkg.in/src-d/hercules.v9/cmd/hercules

+ 4 - 4
README.md

@@ -4,7 +4,7 @@
 <h1 align="center">Hercules</h1>
 <h1 align="center">Hercules</h1>
 <p align="center">
 <p align="center">
       Fast, insightful and highly customizable Git history analysis.<br><br>
       Fast, insightful and highly customizable Git history analysis.<br><br>
-      <a href="http://godoc.org/gopkg.in/src-d/hercules.v7"><img src="https://godoc.org/gopkg.in/src-d/hercules.v7?status.svg" alt="GoDoc"></a>
+      <a href="http://godoc.org/gopkg.in/src-d/hercules.v9"><img src="https://godoc.org/gopkg.in/src-d/hercules.v9?status.svg" alt="GoDoc"></a>
       <a href="https://travis-ci.com/src-d/hercules"><img src="https://travis-ci.com/src-d/hercules.svg?branch=master" alt="Travis build Status"></a>
       <a href="https://travis-ci.com/src-d/hercules"><img src="https://travis-ci.com/src-d/hercules.svg?branch=master" alt="Travis build Status"></a>
       <a href="https://ci.appveyor.com/project/vmarkovtsev/hercules"><img src="https://ci.appveyor.com/api/projects/status/49f0lm3v2y6xyph3?svg=true" alt="AppVeyor build status"></a>
       <a href="https://ci.appveyor.com/project/vmarkovtsev/hercules"><img src="https://ci.appveyor.com/api/projects/status/49f0lm3v2y6xyph3?svg=true" alt="AppVeyor build status"></a>
       <a href="https://hub.docker.com/r/srcd/hercules"><img src="https://img.shields.io/docker/build/srcd/hercules.svg" alt="Docker build status"></a>
       <a href="https://hub.docker.com/r/srcd/hercules"><img src="https://img.shields.io/docker/build/srcd/hercules.svg" alt="Docker build status"></a>
@@ -33,7 +33,7 @@ The second is the Python script which draws some predefined plots. These two too
 a pipe. It is possible to write custom analyses using the plugin system. It is also possible
 a pipe. It is possible to write custom analyses using the plugin system. It is also possible
 to merge several analysis results together. The commit history includes branches, merges, etc.
 to merge several analysis results together. The commit history includes branches, merges, etc.
 
 
-Blog posts: [1](https://blog.sourced.tech/post/hercules.v4), [2](https://blog.sourced.tech/post/hercules).
+Blog posts: [1](https://blog.sourced.tech/post/hercules.v9), [2](https://blog.sourced.tech/post/hercules).
 [Presentation](http://vmarkovtsev.github.io/gowayfest-2018-minsk/).
 [Presentation](http://vmarkovtsev.github.io/gowayfest-2018-minsk/).
 
 
 ![Hercules DAG of Burndown analysis](doc/dag.png)
 ![Hercules DAG of Burndown analysis](doc/dag.png)
@@ -59,8 +59,8 @@ Numpy and Scipy can be installed on Windows using http://www.lfd.uci.edu/~gohlke
 You are going to need Go (>= v1.10), [`protoc`](https://github.com/google/protobuf/releases),
 You are going to need Go (>= v1.10), [`protoc`](https://github.com/google/protobuf/releases),
 and [`dep`](https://github.com/golang/dep).
 and [`dep`](https://github.com/golang/dep).
 ```
 ```
-go get -d gopkg.in/src-d/hercules.v7/cmd/hercules
-cd $GOPATH/src/gopkg.in/src-d/hercules.v7
+go get -d gopkg.in/src-d/hercules.v9/cmd/hercules
+cd $GOPATH/src/gopkg.in/src-d/hercules.v9
 make
 make
 ```
 ```
 
 

+ 2 - 2
cmd/hercules/combine.go

@@ -14,8 +14,8 @@ import (
 	"github.com/gogo/protobuf/proto"
 	"github.com/gogo/protobuf/proto"
 	"github.com/spf13/cobra"
 	"github.com/spf13/cobra"
 	progress "gopkg.in/cheggaaa/pb.v1"
 	progress "gopkg.in/cheggaaa/pb.v1"
-	"gopkg.in/src-d/hercules.v8"
-	"gopkg.in/src-d/hercules.v8/internal/pb"
+	"gopkg.in/src-d/hercules.v9"
+	"gopkg.in/src-d/hercules.v9/internal/pb"
 )
 )
 
 
 // combineCmd represents the combine command
 // combineCmd represents the combine command

+ 1 - 1
cmd/hercules/plugin.template

@@ -24,7 +24,7 @@ import (
 
 
   "github.com/gogo/protobuf/proto"
   "github.com/gogo/protobuf/proto"
   "gopkg.in/src-d/go-git.v4"
   "gopkg.in/src-d/go-git.v4"
-  "gopkg.in/src-d/hercules.v8"
+  "gopkg.in/src-d/hercules.v9"
 )
 )
 
 
 // {{.name}} contains the intermediate state which is mutated by Consume(). It should implement
 // {{.name}} contains the intermediate state which is mutated by Consume(). It should implement

+ 2 - 2
cmd/hercules/root.go

@@ -34,8 +34,8 @@ import (
 	"gopkg.in/src-d/go-git.v4/storage"
 	"gopkg.in/src-d/go-git.v4/storage"
 	"gopkg.in/src-d/go-git.v4/storage/filesystem"
 	"gopkg.in/src-d/go-git.v4/storage/filesystem"
 	"gopkg.in/src-d/go-git.v4/storage/memory"
 	"gopkg.in/src-d/go-git.v4/storage/memory"
-	"gopkg.in/src-d/hercules.v8"
-	"gopkg.in/src-d/hercules.v8/internal/pb"
+	"gopkg.in/src-d/hercules.v9"
+	"gopkg.in/src-d/hercules.v9/internal/pb"
 )
 )
 
 
 // oneLineWriter splits the output data by lines and outputs one on top of another using '\r'.
 // oneLineWriter splits the output data by lines and outputs one on top of another using '\r'.

+ 1 - 1
contrib/_plugin_example/churn_analysis.go

@@ -13,7 +13,7 @@ import (
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/utils/merkletrie"
 	"gopkg.in/src-d/go-git.v4/utils/merkletrie"
-	"gopkg.in/src-d/hercules.v8"
+	"gopkg.in/src-d/hercules.v9"
 )
 )
 
 
 // ChurnAnalysis contains the intermediate state which is mutated by Consume(). It should implement
 // ChurnAnalysis contains the intermediate state which is mutated by Consume(). It should implement

+ 6 - 6
core.go

@@ -4,12 +4,12 @@ import (
 	"github.com/spf13/pflag"
 	"github.com/spf13/pflag"
 	"gopkg.in/src-d/go-git.v4"
 	"gopkg.in/src-d/go-git.v4"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
-	"gopkg.in/src-d/hercules.v8/internal/core"
-	"gopkg.in/src-d/hercules.v8/internal/plumbing"
-	"gopkg.in/src-d/hercules.v8/internal/plumbing/identity"
-	"gopkg.in/src-d/hercules.v8/internal/plumbing/uast"
-	"gopkg.in/src-d/hercules.v8/internal/yaml"
-	"gopkg.in/src-d/hercules.v8/leaves"
+	"gopkg.in/src-d/hercules.v9/internal/core"
+	"gopkg.in/src-d/hercules.v9/internal/plumbing"
+	"gopkg.in/src-d/hercules.v9/internal/plumbing/identity"
+	"gopkg.in/src-d/hercules.v9/internal/plumbing/uast"
+	"gopkg.in/src-d/hercules.v9/internal/yaml"
+	"gopkg.in/src-d/hercules.v9/leaves"
 )
 )
 
 
 // ConfigurationOptionType represents the possible types of a ConfigurationOption's value.
 // ConfigurationOptionType represents the possible types of a ConfigurationOption's value.

+ 2 - 2
internal/burndown/file.go

@@ -5,8 +5,8 @@ import (
 	"log"
 	"log"
 	"math"
 	"math"
 
 
-	"gopkg.in/src-d/hercules.v8/internal"
-	"gopkg.in/src-d/hercules.v8/internal/rbtree"
+	"gopkg.in/src-d/hercules.v9/internal"
+	"gopkg.in/src-d/hercules.v9/internal/rbtree"
 )
 )
 
 
 // Updater is the function which is called back on File.Update().
 // Updater is the function which is called back on File.Update().

+ 1 - 1
internal/burndown/file_test.go

@@ -6,7 +6,7 @@ import (
 	"testing"
 	"testing"
 
 
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/assert"
-	"gopkg.in/src-d/hercules.v8/internal/rbtree"
+	"gopkg.in/src-d/hercules.v9/internal/rbtree"
 )
 )
 
 
 func updateStatusFile(status map[int]int64, _, previousTime, delta int) {
 func updateStatusFile(status map[int]int64, _, previousTime, delta int) {

+ 1 - 1
internal/core/forks.go

@@ -9,7 +9,7 @@ import (
 
 
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
-	"gopkg.in/src-d/hercules.v8/internal/toposort"
+	"gopkg.in/src-d/hercules.v9/internal/toposort"
 )
 )
 
 
 // OneShotMergeProcessor provides the convenience method to consume merges only once.
 // OneShotMergeProcessor provides the convenience method to consume merges only once.

+ 1 - 1
internal/core/forks_test.go

@@ -6,7 +6,7 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/assert"
 	"gopkg.in/src-d/go-git.v4"
 	"gopkg.in/src-d/go-git.v4"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing"
-	"gopkg.in/src-d/hercules.v8/internal/test"
+	"gopkg.in/src-d/hercules.v9/internal/test"
 )
 )
 
 
 type testForkPipelineItem struct {
 type testForkPipelineItem struct {

+ 2 - 2
internal/core/pipeline.go

@@ -18,8 +18,8 @@ import (
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/storer"
 	"gopkg.in/src-d/go-git.v4/plumbing/storer"
-	"gopkg.in/src-d/hercules.v8/internal/pb"
-	"gopkg.in/src-d/hercules.v8/internal/toposort"
+	"gopkg.in/src-d/hercules.v9/internal/pb"
+	"gopkg.in/src-d/hercules.v9/internal/toposort"
 )
 )
 
 
 // ConfigurationOptionType represents the possible types of a ConfigurationOption's value.
 // ConfigurationOptionType represents the possible types of a ConfigurationOption's value.

+ 2 - 2
internal/core/pipeline_test.go

@@ -14,8 +14,8 @@ import (
 	"gopkg.in/src-d/go-git.v4"
 	"gopkg.in/src-d/go-git.v4"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
-	"gopkg.in/src-d/hercules.v8/internal/pb"
-	"gopkg.in/src-d/hercules.v8/internal/test"
+	"gopkg.in/src-d/hercules.v9/internal/pb"
+	"gopkg.in/src-d/hercules.v9/internal/test"
 )
 )
 
 
 type testPipelineItem struct {
 type testPipelineItem struct {

+ 1 - 1
internal/core/registry_test.go

@@ -9,7 +9,7 @@ import (
 	"github.com/spf13/pflag"
 	"github.com/spf13/pflag"
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/assert"
 	"gopkg.in/src-d/go-git.v4"
 	"gopkg.in/src-d/go-git.v4"
-	"gopkg.in/src-d/hercules.v8/internal/test"
+	"gopkg.in/src-d/hercules.v9/internal/test"
 )
 )
 
 
 func getRegistry() *PipelineItemRegistry {
 func getRegistry() *PipelineItemRegistry {

+ 4 - 4
internal/global_test.go

@@ -7,10 +7,10 @@ import (
 	"testing"
 	"testing"
 
 
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/assert"
-	"gopkg.in/src-d/hercules.v8/internal/core"
-	uast_items "gopkg.in/src-d/hercules.v8/internal/plumbing/uast"
-	"gopkg.in/src-d/hercules.v8/internal/test"
-	"gopkg.in/src-d/hercules.v8/leaves"
+	"gopkg.in/src-d/hercules.v9/internal/core"
+	uast_items "gopkg.in/src-d/hercules.v9/internal/plumbing/uast"
+	"gopkg.in/src-d/hercules.v9/internal/test"
+	"gopkg.in/src-d/hercules.v9/leaves"
 )
 )
 
 
 func TestPipelineSerialize(t *testing.T) {
 func TestPipelineSerialize(t *testing.T) {

+ 2 - 2
internal/plumbing/blob_cache.go

@@ -13,8 +13,8 @@ import (
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/utils/merkletrie"
 	"gopkg.in/src-d/go-git.v4/utils/merkletrie"
-	"gopkg.in/src-d/hercules.v8/internal"
-	"gopkg.in/src-d/hercules.v8/internal/core"
+	"gopkg.in/src-d/hercules.v9/internal"
+	"gopkg.in/src-d/hercules.v9/internal/core"
 )
 )
 
 
 // ErrorBinary is raised in CachedBlob.CountLines() if the file is binary.
 // ErrorBinary is raised in CachedBlob.CountLines() if the file is binary.

+ 3 - 3
internal/plumbing/blob_cache_test.go

@@ -6,9 +6,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/assert"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
-	"gopkg.in/src-d/hercules.v8/internal"
-	"gopkg.in/src-d/hercules.v8/internal/core"
-	"gopkg.in/src-d/hercules.v8/internal/test"
+	"gopkg.in/src-d/hercules.v9/internal"
+	"gopkg.in/src-d/hercules.v9/internal/core"
+	"gopkg.in/src-d/hercules.v9/internal/test"
 )
 )
 
 
 func fixtureBlobCache() *BlobCache {
 func fixtureBlobCache() *BlobCache {

+ 1 - 1
internal/plumbing/day.go

@@ -7,7 +7,7 @@ import (
 	"gopkg.in/src-d/go-git.v4"
 	"gopkg.in/src-d/go-git.v4"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
-	"gopkg.in/src-d/hercules.v8/internal/core"
+	"gopkg.in/src-d/hercules.v9/internal/core"
 )
 )
 
 
 // DaysSinceStart provides the relative date information for every commit.
 // DaysSinceStart provides the relative date information for every commit.

+ 2 - 2
internal/plumbing/day_test.go

@@ -9,8 +9,8 @@ import (
 
 
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/assert"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing"
-	"gopkg.in/src-d/hercules.v8/internal/core"
-	"gopkg.in/src-d/hercules.v8/internal/test"
+	"gopkg.in/src-d/hercules.v9/internal/core"
+	"gopkg.in/src-d/hercules.v9/internal/test"
 )
 )
 
 
 func fixtureDaysSinceStart() *DaysSinceStart {
 func fixtureDaysSinceStart() *DaysSinceStart {

+ 1 - 1
internal/plumbing/diff.go

@@ -8,7 +8,7 @@ import (
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/utils/merkletrie"
 	"gopkg.in/src-d/go-git.v4/utils/merkletrie"
-	"gopkg.in/src-d/hercules.v8/internal/core"
+	"gopkg.in/src-d/hercules.v9/internal/core"
 )
 )
 
 
 // FileDiff calculates the difference of files which were modified.
 // FileDiff calculates the difference of files which were modified.

+ 6 - 6
internal/plumbing/diff_test.go

@@ -8,12 +8,12 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/assert"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
-	"gopkg.in/src-d/hercules.v8"
-	"gopkg.in/src-d/hercules.v8/internal"
-	"gopkg.in/src-d/hercules.v8/internal/core"
-	items "gopkg.in/src-d/hercules.v8/internal/plumbing"
-	"gopkg.in/src-d/hercules.v8/internal/test"
-	"gopkg.in/src-d/hercules.v8/internal/test/fixtures"
+	"gopkg.in/src-d/hercules.v9"
+	"gopkg.in/src-d/hercules.v9/internal"
+	"gopkg.in/src-d/hercules.v9/internal/core"
+	items "gopkg.in/src-d/hercules.v9/internal/plumbing"
+	"gopkg.in/src-d/hercules.v9/internal/test"
+	"gopkg.in/src-d/hercules.v9/internal/test/fixtures"
 )
 )
 
 
 func TestFileDiffMeta(t *testing.T) {
 func TestFileDiffMeta(t *testing.T) {

+ 1 - 1
internal/plumbing/identity/identity.go

@@ -9,7 +9,7 @@ import (
 	"github.com/pkg/errors"
 	"github.com/pkg/errors"
 	"gopkg.in/src-d/go-git.v4"
 	"gopkg.in/src-d/go-git.v4"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
-	"gopkg.in/src-d/hercules.v8/internal/core"
+	"gopkg.in/src-d/hercules.v9/internal/core"
 )
 )
 
 
 // Detector determines the author of a commit. Same person can commit under different
 // Detector determines the author of a commit. Same person can commit under different

+ 2 - 2
internal/plumbing/identity/identity_test.go

@@ -14,8 +14,8 @@ import (
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/storer"
 	"gopkg.in/src-d/go-git.v4/plumbing/storer"
-	"gopkg.in/src-d/hercules.v8/internal/core"
-	"gopkg.in/src-d/hercules.v8/internal/test"
+	"gopkg.in/src-d/hercules.v9/internal/core"
+	"gopkg.in/src-d/hercules.v9/internal/test"
 )
 )
 
 
 func fixtureIdentityDetector() *Detector {
 func fixtureIdentityDetector() *Detector {

+ 1 - 1
internal/plumbing/languages.go

@@ -9,7 +9,7 @@ import (
 	"gopkg.in/src-d/go-git.v4"
 	"gopkg.in/src-d/go-git.v4"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
-	"gopkg.in/src-d/hercules.v8/internal/core"
+	"gopkg.in/src-d/hercules.v9/internal/core"
 )
 )
 
 
 // LanguagesDetection run programming language detection over the changed files.
 // LanguagesDetection run programming language detection over the changed files.

+ 2 - 2
internal/plumbing/languages_test.go

@@ -6,8 +6,8 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/assert"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
-	"gopkg.in/src-d/hercules.v8/internal/core"
-	"gopkg.in/src-d/hercules.v8/internal/test"
+	"gopkg.in/src-d/hercules.v9/internal/core"
+	"gopkg.in/src-d/hercules.v9/internal/test"
 )
 )
 
 
 func TestLanguagesDetectionMeta(t *testing.T) {
 func TestLanguagesDetectionMeta(t *testing.T) {

+ 1 - 1
internal/plumbing/line_stats.go

@@ -8,7 +8,7 @@ import (
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/utils/merkletrie"
 	"gopkg.in/src-d/go-git.v4/utils/merkletrie"
-	"gopkg.in/src-d/hercules.v8/internal/core"
+	"gopkg.in/src-d/hercules.v9/internal/core"
 )
 )
 
 
 // LinesStatsCalculator measures line statistics for each text file in the commit.
 // LinesStatsCalculator measures line statistics for each text file in the commit.

+ 5 - 5
internal/plumbing/line_stats_test.go

@@ -6,11 +6,11 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/assert"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
-	"gopkg.in/src-d/hercules.v8/internal/core"
-	items "gopkg.in/src-d/hercules.v8/internal/plumbing"
-	"gopkg.in/src-d/hercules.v8/internal/plumbing/identity"
-	"gopkg.in/src-d/hercules.v8/internal/test"
-	"gopkg.in/src-d/hercules.v8/internal/test/fixtures"
+	"gopkg.in/src-d/hercules.v9/internal/core"
+	items "gopkg.in/src-d/hercules.v9/internal/plumbing"
+	"gopkg.in/src-d/hercules.v9/internal/plumbing/identity"
+	"gopkg.in/src-d/hercules.v9/internal/test"
+	"gopkg.in/src-d/hercules.v9/internal/test/fixtures"
 )
 )
 
 
 func TestLinesStatsMeta(t *testing.T) {
 func TestLinesStatsMeta(t *testing.T) {

+ 2 - 2
internal/plumbing/renames.go

@@ -13,8 +13,8 @@ import (
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/utils/merkletrie"
 	"gopkg.in/src-d/go-git.v4/utils/merkletrie"
-	"gopkg.in/src-d/hercules.v8/internal"
-	"gopkg.in/src-d/hercules.v8/internal/core"
+	"gopkg.in/src-d/hercules.v9/internal"
+	"gopkg.in/src-d/hercules.v9/internal/core"
 )
 )
 
 
 // RenameAnalysis improves TreeDiff's results by searching for changed blobs under different
 // RenameAnalysis improves TreeDiff's results by searching for changed blobs under different

+ 2 - 2
internal/plumbing/renames_test.go

@@ -11,8 +11,8 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/assert"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
-	"gopkg.in/src-d/hercules.v8/internal/core"
-	"gopkg.in/src-d/hercules.v8/internal/test"
+	"gopkg.in/src-d/hercules.v9/internal/core"
+	"gopkg.in/src-d/hercules.v9/internal/test"
 )
 )
 
 
 func fixtureRenameAnalysis() *RenameAnalysis {
 func fixtureRenameAnalysis() *RenameAnalysis {

+ 1 - 1
internal/plumbing/tree_diff.go

@@ -13,7 +13,7 @@ import (
 	"gopkg.in/src-d/go-git.v4"
 	"gopkg.in/src-d/go-git.v4"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
-	"gopkg.in/src-d/hercules.v8/internal/core"
+	"gopkg.in/src-d/hercules.v9/internal/core"
 )
 )
 
 
 // TreeDiff generates the list of changes for a commit. A change can be either one or two blobs
 // TreeDiff generates the list of changes for a commit. A change can be either one or two blobs

+ 2 - 2
internal/plumbing/tree_diff_test.go

@@ -7,8 +7,8 @@ import (
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/utils/merkletrie"
 	"gopkg.in/src-d/go-git.v4/utils/merkletrie"
-	"gopkg.in/src-d/hercules.v8/internal/core"
-	"gopkg.in/src-d/hercules.v8/internal/test"
+	"gopkg.in/src-d/hercules.v9/internal/core"
+	"gopkg.in/src-d/hercules.v9/internal/test"
 )
 )
 
 
 func fixtureTreeDiff() *TreeDiff {
 func fixtureTreeDiff() *TreeDiff {

+ 2 - 2
internal/plumbing/uast/changes_xpather_test.go

@@ -8,8 +8,8 @@ import (
 
 
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/assert"
 	"gopkg.in/bblfsh/client-go.v3"
 	"gopkg.in/bblfsh/client-go.v3"
-	uast_test "gopkg.in/src-d/hercules.v8/internal/plumbing/uast/test"
-	"gopkg.in/src-d/hercules.v8/internal/test"
+	uast_test "gopkg.in/src-d/hercules.v9/internal/plumbing/uast/test"
+	"gopkg.in/src-d/hercules.v9/internal/test"
 )
 )
 
 
 func TestChangesXPatherExtractChanged(t *testing.T) {
 func TestChangesXPatherExtractChanged(t *testing.T) {

+ 2 - 2
internal/plumbing/uast/diff_refiner.go

@@ -8,8 +8,8 @@ import (
 	"gopkg.in/bblfsh/sdk.v2/uast"
 	"gopkg.in/bblfsh/sdk.v2/uast"
 	"gopkg.in/bblfsh/sdk.v2/uast/nodes"
 	"gopkg.in/bblfsh/sdk.v2/uast/nodes"
 	"gopkg.in/src-d/go-git.v4"
 	"gopkg.in/src-d/go-git.v4"
-	"gopkg.in/src-d/hercules.v8/internal/core"
-	"gopkg.in/src-d/hercules.v8/internal/plumbing"
+	"gopkg.in/src-d/hercules.v9/internal/core"
+	"gopkg.in/src-d/hercules.v9/internal/plumbing"
 )
 )
 
 
 // FileDiffRefiner uses UASTs to improve the human interpretability of diffs.
 // FileDiffRefiner uses UASTs to improve the human interpretability of diffs.

+ 3 - 3
internal/plumbing/uast/diff_refiner_test.go

@@ -12,9 +12,9 @@ import (
 	"gopkg.in/bblfsh/sdk.v2/uast/nodes"
 	"gopkg.in/bblfsh/sdk.v2/uast/nodes"
 	"gopkg.in/bblfsh/sdk.v2/uast/nodes/nodesproto"
 	"gopkg.in/bblfsh/sdk.v2/uast/nodes/nodesproto"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
-	"gopkg.in/src-d/hercules.v8/internal/core"
-	"gopkg.in/src-d/hercules.v8/internal/plumbing"
-	"gopkg.in/src-d/hercules.v8/internal/test"
+	"gopkg.in/src-d/hercules.v9/internal/core"
+	"gopkg.in/src-d/hercules.v9/internal/plumbing"
+	"gopkg.in/src-d/hercules.v9/internal/test"
 )
 )
 
 
 func fixtureFileDiffRefiner() *FileDiffRefiner {
 func fixtureFileDiffRefiner() *FileDiffRefiner {

+ 1 - 1
internal/plumbing/uast/test/utils.go

@@ -6,7 +6,7 @@ import (
 	"gopkg.in/bblfsh/client-go.v3"
 	"gopkg.in/bblfsh/client-go.v3"
 	"gopkg.in/bblfsh/sdk.v2/uast/nodes"
 	"gopkg.in/bblfsh/sdk.v2/uast/nodes"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing"
-	core_test "gopkg.in/src-d/hercules.v8/internal/test"
+	core_test "gopkg.in/src-d/hercules.v9/internal/test"
 )
 )
 
 
 // ParseBlobFromTestRepo extracts the UAST from the file by it's hash and name.
 // ParseBlobFromTestRepo extracts the UAST from the file by it's hash and name.

+ 3 - 3
internal/plumbing/uast/uast.go

@@ -23,9 +23,9 @@ import (
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/utils/merkletrie"
 	"gopkg.in/src-d/go-git.v4/utils/merkletrie"
-	"gopkg.in/src-d/hercules.v8/internal/core"
-	"gopkg.in/src-d/hercules.v8/internal/pb"
-	items "gopkg.in/src-d/hercules.v8/internal/plumbing"
+	"gopkg.in/src-d/hercules.v9/internal/core"
+	"gopkg.in/src-d/hercules.v9/internal/pb"
+	items "gopkg.in/src-d/hercules.v9/internal/plumbing"
 )
 )
 
 
 // Extractor retrieves UASTs from Babelfish server which correspond to changed files in a commit.
 // Extractor retrieves UASTs from Babelfish server which correspond to changed files in a commit.

+ 4 - 4
internal/plumbing/uast/uast_test.go

@@ -16,10 +16,10 @@ import (
 	"gopkg.in/bblfsh/sdk.v2/uast/nodes"
 	"gopkg.in/bblfsh/sdk.v2/uast/nodes"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
-	"gopkg.in/src-d/hercules.v8/internal/core"
-	"gopkg.in/src-d/hercules.v8/internal/pb"
-	items "gopkg.in/src-d/hercules.v8/internal/plumbing"
-	"gopkg.in/src-d/hercules.v8/internal/test"
+	"gopkg.in/src-d/hercules.v9/internal/core"
+	"gopkg.in/src-d/hercules.v9/internal/pb"
+	items "gopkg.in/src-d/hercules.v9/internal/plumbing"
+	"gopkg.in/src-d/hercules.v9/internal/test"
 )
 )
 
 
 func fixtureUASTExtractor() *Extractor {
 func fixtureUASTExtractor() *Extractor {

+ 2 - 2
internal/test/fixtures/fixtures.go

@@ -1,8 +1,8 @@
 package fixtures
 package fixtures
 
 
 import (
 import (
-	"gopkg.in/src-d/hercules.v8/internal/plumbing"
-	"gopkg.in/src-d/hercules.v8/internal/test"
+	"gopkg.in/src-d/hercules.v9/internal/plumbing"
+	"gopkg.in/src-d/hercules.v9/internal/test"
 )
 )
 
 
 // FileDiff initializes a new plumbing.FileDiff item for testing.
 // FileDiff initializes a new plumbing.FileDiff item for testing.

+ 7 - 7
leaves/burndown.go

@@ -18,13 +18,13 @@ import (
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/utils/merkletrie"
 	"gopkg.in/src-d/go-git.v4/utils/merkletrie"
-	"gopkg.in/src-d/hercules.v8/internal/burndown"
-	"gopkg.in/src-d/hercules.v8/internal/core"
-	"gopkg.in/src-d/hercules.v8/internal/pb"
-	items "gopkg.in/src-d/hercules.v8/internal/plumbing"
-	"gopkg.in/src-d/hercules.v8/internal/plumbing/identity"
-	"gopkg.in/src-d/hercules.v8/internal/rbtree"
-	"gopkg.in/src-d/hercules.v8/internal/yaml"
+	"gopkg.in/src-d/hercules.v9/internal/burndown"
+	"gopkg.in/src-d/hercules.v9/internal/core"
+	"gopkg.in/src-d/hercules.v9/internal/pb"
+	items "gopkg.in/src-d/hercules.v9/internal/plumbing"
+	"gopkg.in/src-d/hercules.v9/internal/plumbing/identity"
+	"gopkg.in/src-d/hercules.v9/internal/rbtree"
+	"gopkg.in/src-d/hercules.v9/internal/yaml"
 )
 )
 
 
 // BurndownAnalysis allows to gather the line burndown statistics for a Git repository.
 // BurndownAnalysis allows to gather the line burndown statistics for a Git repository.

+ 7 - 7
leaves/burndown_test.go

@@ -8,18 +8,18 @@ import (
 	"path"
 	"path"
 	"testing"
 	"testing"
 
 
-	"gopkg.in/src-d/hercules.v8/internal/burndown"
-	"gopkg.in/src-d/hercules.v8/internal/core"
-	"gopkg.in/src-d/hercules.v8/internal/test/fixtures"
+	"gopkg.in/src-d/hercules.v9/internal/burndown"
+	"gopkg.in/src-d/hercules.v9/internal/core"
+	"gopkg.in/src-d/hercules.v9/internal/test/fixtures"
 
 
 	"github.com/gogo/protobuf/proto"
 	"github.com/gogo/protobuf/proto"
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/assert"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
-	"gopkg.in/src-d/hercules.v8/internal/pb"
-	items "gopkg.in/src-d/hercules.v8/internal/plumbing"
-	"gopkg.in/src-d/hercules.v8/internal/plumbing/identity"
-	"gopkg.in/src-d/hercules.v8/internal/test"
+	"gopkg.in/src-d/hercules.v9/internal/pb"
+	items "gopkg.in/src-d/hercules.v9/internal/plumbing"
+	"gopkg.in/src-d/hercules.v9/internal/plumbing/identity"
+	"gopkg.in/src-d/hercules.v9/internal/test"
 )
 )
 
 
 func AddHash(t *testing.T, cache map[plumbing.Hash]*items.CachedBlob, hash string) {
 func AddHash(t *testing.T, cache map[plumbing.Hash]*items.CachedBlob, hash string) {

+ 4 - 4
leaves/comment_sentiment.go

@@ -17,10 +17,10 @@ import (
 	progress "gopkg.in/cheggaaa/pb.v1"
 	progress "gopkg.in/cheggaaa/pb.v1"
 	"gopkg.in/src-d/go-git.v4"
 	"gopkg.in/src-d/go-git.v4"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing"
-	"gopkg.in/src-d/hercules.v8/internal/core"
-	"gopkg.in/src-d/hercules.v8/internal/pb"
-	items "gopkg.in/src-d/hercules.v8/internal/plumbing"
-	uast_items "gopkg.in/src-d/hercules.v8/internal/plumbing/uast"
+	"gopkg.in/src-d/hercules.v9/internal/core"
+	"gopkg.in/src-d/hercules.v9/internal/pb"
+	items "gopkg.in/src-d/hercules.v9/internal/plumbing"
+	uast_items "gopkg.in/src-d/hercules.v9/internal/plumbing/uast"
 	"gopkg.in/vmarkovtsev/BiDiSentiment.v1"
 	"gopkg.in/vmarkovtsev/BiDiSentiment.v1"
 )
 )
 
 

+ 6 - 6
leaves/comment_sentiment_test.go

@@ -16,12 +16,12 @@ import (
 	"gopkg.in/bblfsh/sdk.v2/uast/nodes"
 	"gopkg.in/bblfsh/sdk.v2/uast/nodes"
 	"gopkg.in/bblfsh/sdk.v2/uast/query"
 	"gopkg.in/bblfsh/sdk.v2/uast/query"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing"
-	"gopkg.in/src-d/hercules.v8/internal/core"
-	"gopkg.in/src-d/hercules.v8/internal/pb"
-	items "gopkg.in/src-d/hercules.v8/internal/plumbing"
-	uast_items "gopkg.in/src-d/hercules.v8/internal/plumbing/uast"
-	uast_test "gopkg.in/src-d/hercules.v8/internal/plumbing/uast/test"
-	"gopkg.in/src-d/hercules.v8/internal/test"
+	"gopkg.in/src-d/hercules.v9/internal/core"
+	"gopkg.in/src-d/hercules.v9/internal/pb"
+	items "gopkg.in/src-d/hercules.v9/internal/plumbing"
+	uast_items "gopkg.in/src-d/hercules.v9/internal/plumbing/uast"
+	uast_test "gopkg.in/src-d/hercules.v9/internal/plumbing/uast/test"
+	"gopkg.in/src-d/hercules.v9/internal/test"
 )
 )
 
 
 func fixtureCommentSentiment() *CommentSentimentAnalysis {
 func fixtureCommentSentiment() *CommentSentimentAnalysis {

+ 5 - 5
leaves/couples.go

@@ -10,11 +10,11 @@ import (
 	"gopkg.in/src-d/go-git.v4"
 	"gopkg.in/src-d/go-git.v4"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/utils/merkletrie"
 	"gopkg.in/src-d/go-git.v4/utils/merkletrie"
-	"gopkg.in/src-d/hercules.v8/internal/core"
-	"gopkg.in/src-d/hercules.v8/internal/pb"
-	items "gopkg.in/src-d/hercules.v8/internal/plumbing"
-	"gopkg.in/src-d/hercules.v8/internal/plumbing/identity"
-	"gopkg.in/src-d/hercules.v8/internal/yaml"
+	"gopkg.in/src-d/hercules.v9/internal/core"
+	"gopkg.in/src-d/hercules.v9/internal/pb"
+	items "gopkg.in/src-d/hercules.v9/internal/plumbing"
+	"gopkg.in/src-d/hercules.v9/internal/plumbing/identity"
+	"gopkg.in/src-d/hercules.v9/internal/yaml"
 )
 )
 
 
 // CouplesAnalysis calculates the number of common commits for files and authors.
 // CouplesAnalysis calculates the number of common commits for files and authors.

+ 5 - 5
leaves/couples_test.go

@@ -11,11 +11,11 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/assert"
 	gitplumbing "gopkg.in/src-d/go-git.v4/plumbing"
 	gitplumbing "gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
-	"gopkg.in/src-d/hercules.v8/internal/core"
-	"gopkg.in/src-d/hercules.v8/internal/pb"
-	"gopkg.in/src-d/hercules.v8/internal/plumbing"
-	"gopkg.in/src-d/hercules.v8/internal/plumbing/identity"
-	"gopkg.in/src-d/hercules.v8/internal/test"
+	"gopkg.in/src-d/hercules.v9/internal/core"
+	"gopkg.in/src-d/hercules.v9/internal/pb"
+	"gopkg.in/src-d/hercules.v9/internal/plumbing"
+	"gopkg.in/src-d/hercules.v9/internal/plumbing/identity"
+	"gopkg.in/src-d/hercules.v9/internal/test"
 )
 )
 
 
 func fixtureCouples() *CouplesAnalysis {
 func fixtureCouples() *CouplesAnalysis {

+ 5 - 5
leaves/devs.go

@@ -10,11 +10,11 @@ import (
 	"gopkg.in/src-d/go-git.v4"
 	"gopkg.in/src-d/go-git.v4"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
-	"gopkg.in/src-d/hercules.v8/internal/core"
-	"gopkg.in/src-d/hercules.v8/internal/pb"
-	items "gopkg.in/src-d/hercules.v8/internal/plumbing"
-	"gopkg.in/src-d/hercules.v8/internal/plumbing/identity"
-	"gopkg.in/src-d/hercules.v8/internal/yaml"
+	"gopkg.in/src-d/hercules.v9/internal/core"
+	"gopkg.in/src-d/hercules.v9/internal/pb"
+	items "gopkg.in/src-d/hercules.v9/internal/plumbing"
+	"gopkg.in/src-d/hercules.v9/internal/plumbing/identity"
+	"gopkg.in/src-d/hercules.v9/internal/yaml"
 )
 )
 
 
 // DevsAnalysis calculates the number of commits through time per developer.
 // DevsAnalysis calculates the number of commits through time per developer.

+ 6 - 6
leaves/devs_test.go

@@ -8,12 +8,12 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/assert"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
-	"gopkg.in/src-d/hercules.v8/internal/core"
-	"gopkg.in/src-d/hercules.v8/internal/pb"
-	items "gopkg.in/src-d/hercules.v8/internal/plumbing"
-	"gopkg.in/src-d/hercules.v8/internal/plumbing/identity"
-	"gopkg.in/src-d/hercules.v8/internal/test"
-	"gopkg.in/src-d/hercules.v8/internal/test/fixtures"
+	"gopkg.in/src-d/hercules.v9/internal/core"
+	"gopkg.in/src-d/hercules.v9/internal/pb"
+	items "gopkg.in/src-d/hercules.v9/internal/plumbing"
+	"gopkg.in/src-d/hercules.v9/internal/plumbing/identity"
+	"gopkg.in/src-d/hercules.v9/internal/test"
+	"gopkg.in/src-d/hercules.v9/internal/test/fixtures"
 )
 )
 
 
 func fixtureDevs() *DevsAnalysis {
 func fixtureDevs() *DevsAnalysis {

+ 4 - 4
leaves/file_history.go

@@ -12,10 +12,10 @@ import (
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/utils/merkletrie"
 	"gopkg.in/src-d/go-git.v4/utils/merkletrie"
-	"gopkg.in/src-d/hercules.v8/internal/core"
-	"gopkg.in/src-d/hercules.v8/internal/pb"
-	items "gopkg.in/src-d/hercules.v8/internal/plumbing"
-	"gopkg.in/src-d/hercules.v8/internal/plumbing/identity"
+	"gopkg.in/src-d/hercules.v9/internal/core"
+	"gopkg.in/src-d/hercules.v9/internal/pb"
+	items "gopkg.in/src-d/hercules.v9/internal/plumbing"
+	"gopkg.in/src-d/hercules.v9/internal/plumbing/identity"
 )
 )
 
 
 // FileHistoryAnalysis contains the intermediate state which is mutated by Consume(). It should implement
 // FileHistoryAnalysis contains the intermediate state which is mutated by Consume(). It should implement

+ 6 - 6
leaves/file_history_test.go

@@ -8,12 +8,12 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/assert"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
-	"gopkg.in/src-d/hercules.v8/internal/core"
-	"gopkg.in/src-d/hercules.v8/internal/pb"
-	items "gopkg.in/src-d/hercules.v8/internal/plumbing"
-	"gopkg.in/src-d/hercules.v8/internal/plumbing/identity"
-	"gopkg.in/src-d/hercules.v8/internal/test"
-	"gopkg.in/src-d/hercules.v8/internal/test/fixtures"
+	"gopkg.in/src-d/hercules.v9/internal/core"
+	"gopkg.in/src-d/hercules.v9/internal/pb"
+	items "gopkg.in/src-d/hercules.v9/internal/plumbing"
+	"gopkg.in/src-d/hercules.v9/internal/plumbing/identity"
+	"gopkg.in/src-d/hercules.v9/internal/test"
+	"gopkg.in/src-d/hercules.v9/internal/test/fixtures"
 )
 )
 
 
 func fixtureFileHistory() *FileHistoryAnalysis {
 func fixtureFileHistory() *FileHistoryAnalysis {

+ 4 - 4
leaves/shotness.go

@@ -15,10 +15,10 @@ import (
 	"gopkg.in/bblfsh/sdk.v2/uast/query"
 	"gopkg.in/bblfsh/sdk.v2/uast/query"
 	"gopkg.in/src-d/go-git.v4"
 	"gopkg.in/src-d/go-git.v4"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
-	"gopkg.in/src-d/hercules.v8/internal/core"
-	"gopkg.in/src-d/hercules.v8/internal/pb"
-	items "gopkg.in/src-d/hercules.v8/internal/plumbing"
-	uast_items "gopkg.in/src-d/hercules.v8/internal/plumbing/uast"
+	"gopkg.in/src-d/hercules.v9/internal/core"
+	"gopkg.in/src-d/hercules.v9/internal/pb"
+	items "gopkg.in/src-d/hercules.v9/internal/plumbing"
+	uast_items "gopkg.in/src-d/hercules.v9/internal/plumbing/uast"
 )
 )
 
 
 // ShotnessAnalysis contains the intermediate state which is mutated by Consume(). It should implement
 // ShotnessAnalysis contains the intermediate state which is mutated by Consume(). It should implement

+ 5 - 5
leaves/shotness_test.go

@@ -14,11 +14,11 @@ import (
 	"gopkg.in/bblfsh/sdk.v2/uast/nodes"
 	"gopkg.in/bblfsh/sdk.v2/uast/nodes"
 	"gopkg.in/bblfsh/sdk.v2/uast/nodes/nodesproto"
 	"gopkg.in/bblfsh/sdk.v2/uast/nodes/nodesproto"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
-	"gopkg.in/src-d/hercules.v8/internal/core"
-	"gopkg.in/src-d/hercules.v8/internal/pb"
-	items "gopkg.in/src-d/hercules.v8/internal/plumbing"
-	uast_items "gopkg.in/src-d/hercules.v8/internal/plumbing/uast"
-	"gopkg.in/src-d/hercules.v8/internal/test"
+	"gopkg.in/src-d/hercules.v9/internal/core"
+	"gopkg.in/src-d/hercules.v9/internal/pb"
+	items "gopkg.in/src-d/hercules.v9/internal/plumbing"
+	uast_items "gopkg.in/src-d/hercules.v9/internal/plumbing/uast"
+	"gopkg.in/src-d/hercules.v9/internal/test"
 )
 )
 
 
 func fixtureShotness() *ShotnessAnalysis {
 func fixtureShotness() *ShotnessAnalysis {

+ 1 - 1
version_test.go

@@ -7,5 +7,5 @@ import (
 )
 )
 
 
 func TestVersion(t *testing.T) {
 func TestVersion(t *testing.T) {
-	assert.Equal(t, BinaryVersion, 8) // v7
+	assert.Equal(t, BinaryVersion, 9) // v9
 }
 }