Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
corpus statustics
stats:
directories: 20185
projects: 1127
go files (*.go): 62783
vendored go files: 33314
duplicated paths: 23452
duplicated files: 14784
unique files: 47999
fmt stats:
fmted: 47427
unfmted: 572
% fmted: 98.81%
proj w/ unfmted: 101
proj w/ unfmted vend: 38
proj w/ unfmted files: 129
vend unfmted files: 179
Hall of shame:
go-corpus-0.01/src/cloud.google.com/go/bigtable/bttest/inmem_test.go
go-corpus-0.01/src/cloud.google.com/go/bigtable/bttest/inmem.go
go-corpus-0.01/src/cloud.google.com/go/bigtable/filter.go
go-corpus-0.01/src/github.com/CodisLabs/codis/vendor/github.com/martini-contrib/gzip/gzip.go
go-corpus-0.01/src/github.com/CodisLabs/codis/vendor/github.com/martini-contrib/render/render.go
go-corpus-0.01/src/github.com/CodisLabs/codis/vendor/github.com/ugorji/go/codec/0doc.go
go-corpus-0.01/src/github.com/CodisLabs/codis/vendor/github.com/ugorji/go/codec/gen.generated.go
go-corpus-0.01/src/github.com/IBM-Blockchain/learn-chaincode/start/chaincode_start.go
go-corpus-0.01/src/github.com/Sirupsen/logrus/text_formatter_test.go
go-corpus-0.01/src/github.com/Terry-Mao/gopush-cluster/comet/channel.go
go-corpus-0.01/src/github.com/Terry-Mao/gopush-cluster/comet/pubsub.go
go-corpus-0.01/src/github.com/Terry-Mao/gopush-cluster/comet/conn.go
go-corpus-0.01/src/github.com/Terry-Mao/gopush-cluster/comet/main.go
go-corpus-0.01/src/github.com/Terry-Mao/gopush-cluster/comet/pubsub_tcp.go
go-corpus-0.01/src/github.com/Terry-Mao/gopush-cluster/comet/rpc.go
go-corpus-0.01/src/github.com/Terry-Mao/gopush-cluster/comet/seq_channel.go
go-corpus-0.01/src/github.com/Terry-Mao/gopush-cluster/comet/zk.go
go-corpus-0.01/src/github.com/Terry-Mao/gopush-cluster/comet/stat.go
go-corpus-0.01/src/github.com/Terry-Mao/gopush-cluster/comet/token.go
go-corpus-0.01/src/github.com/Terry-Mao/gopush-cluster/message/main.go
go-corpus-0.01/src/github.com/Terry-Mao/gopush-cluster/message/mysql.go
go-corpus-0.01/src/github.com/Terry-Mao/gopush-cluster/message/storage.go
go-corpus-0.01/src/github.com/Terry-Mao/gopush-cluster/message/rpc.go
go-corpus-0.01/src/github.com/Terry-Mao/gopush-cluster/message/zk.go
go-corpus-0.01/src/github.com/Terry-Mao/gopush-cluster/rpc/rand_lb.go
go-corpus-0.01/src/github.com/Terry-Mao/gopush-cluster/rpc/comet.go
go-corpus-0.01/src/github.com/Terry-Mao/gopush-cluster/rpc/message.go
go-corpus-0.01/src/github.com/Terry-Mao/gopush-cluster/test/comet/config.go
go-corpus-0.01/src/github.com/Terry-Mao/gopush-cluster/test/comet/main.go
go-corpus-0.01/src/github.com/Terry-Mao/gopush-cluster/web/admin.go
go-corpus-0.01/src/github.com/Terry-Mao/gopush-cluster/web/handle_1.0.go
go-corpus-0.01/src/github.com/Terry-Mao/gopush-cluster/web/handle.go
go-corpus-0.01/src/github.com/Terry-Mao/gopush-cluster/web/main.go
go-corpus-0.01/src/github.com/Terry-Mao/gopush-cluster/web/http.go
go-corpus-0.01/src/github.com/Terry-Mao/gopush-cluster/web/zk.go
go-corpus-0.01/src/github.com/Terry-Mao/gopush-cluster/zk/zk.go
go-corpus-0.01/src/github.com/Unknwon/cae/zip/write.go
go-corpus-0.01/src/github.com/Unknwon/com/math.go
go-corpus-0.01/src/github.com/alexflint/gallium/cmd/gallium-bundle/bindata.go
go-corpus-0.01/src/github.com/alexflint/gallium/examples/statusbar/bindata.go
go-corpus-0.01/src/github.com/alexflint/gallium/examples/desktop-notification/bindata.go
go-corpus-0.01/src/github.com/andlabs/ui/area.go
go-corpus-0.01/src/github.com/andlabs/ui/button.go
go-corpus-0.01/src/github.com/andlabs/ui/areahandler.go
go-corpus-0.01/src/github.com/andlabs/ui/checkbox.go
go-corpus-0.01/src/github.com/andlabs/ui/combobox.go
go-corpus-0.01/src/github.com/andlabs/ui/box.go
go-corpus-0.01/src/github.com/andlabs/ui/control.go
go-corpus-0.01/src/github.com/andlabs/ui/group.go
go-corpus-0.01/src/github.com/andlabs/ui/entry.go
go-corpus-0.01/src/github.com/andlabs/ui/datetimepicker.go
go-corpus-0.01/src/github.com/andlabs/ui/label.go
go-corpus-0.01/src/github.com/andlabs/ui/main.go
go-corpus-0.01/src/github.com/andlabs/ui/progressbar.go
go-corpus-0.01/src/github.com/andlabs/ui/separator.go
go-corpus-0.01/src/github.com/andlabs/ui/slider.go
go-corpus-0.01/src/github.com/andlabs/ui/draw.go
go-corpus-0.01/src/github.com/andlabs/ui/radiobuttons.go
go-corpus-0.01/src/github.com/andlabs/ui/spinbox.go
go-corpus-0.01/src/github.com/andlabs/ui/tab.go
go-corpus-0.01/src/github.com/andlabs/ui/util.go
go-corpus-0.01/src/github.com/andlabs/ui/window.go
go-corpus-0.01/src/github.com/andlabs/ui/zy_page2_test.go
go-corpus-0.01/src/github.com/andlabs/ui/zz_test.go
go-corpus-0.01/src/github.com/apache/thrift/lib/go/test/tests/client_error_test.go
go-corpus-0.01/src/github.com/apache/thrift/lib/go/test/tests/protocol_mock.go
go-corpus-0.01/src/github.com/apache/thrift/lib/go/thrift/compact_protocol_test.go
go-corpus-0.01/src/github.com/apache/thrift/lib/go/thrift/framed_transport.go
go-corpus-0.01/src/github.com/apache/thrift/lib/go/thrift/iostream_transport.go
go-corpus-0.01/src/github.com/apache/thrift/lib/go/thrift/protocol.go
go-corpus-0.01/src/github.com/apache/thrift/lib/go/thrift/protocol_exception.go
go-corpus-0.01/src/github.com/apache/thrift/lib/go/thrift/rich_transport.go
go-corpus-0.01/src/github.com/apache/thrift/lib/go/thrift/simple_server.go
go-corpus-0.01/src/github.com/apache/thrift/lib/go/thrift/ssl_server_socket.go
go-corpus-0.01/src/github.com/apache/thrift/lib/go/thrift/ssl_socket.go
go-corpus-0.01/src/github.com/apache/thrift/lib/go/thrift/socket.go
go-corpus-0.01/src/github.com/apache/thrift/lib/go/thrift/transport.go
go-corpus-0.01/src/github.com/apache/thrift/test/go/src/bin/testclient/main.go
go-corpus-0.01/src/github.com/apache/thrift/test/go/src/common/mock_handler.go
go-corpus-0.01/src/github.com/apache/thrift/test/go/src/common/printing_handler.go
go-corpus-0.01/src/github.com/apache/thrift/tutorial/go/src/server.go
go-corpus-0.01/src/github.com/apex/apex/boot/boilerplate/bindata.go
go-corpus-0.01/src/github.com/apex/apex/docs/bindata.go
go-corpus-0.01/src/github.com/apex/apex/shim/bindata.go
go-corpus-0.01/src/github.com/apex/log/levels_test.go
go-corpus-0.01/src/github.com/apex/log/logger_test.go
go-corpus-0.01/src/github.com/asaskevich/govalidator/validator_test.go
go-corpus-0.01/src/github.com/attic-labs/noms/vendor/github.com/attic-labs/testify/assert/assertion_forward.go
go-corpus-0.01/src/github.com/attic-labs/noms/vendor/github.com/attic-labs/testify/mock/mock.go
go-corpus-0.01/src/github.com/attic-labs/noms/vendor/github.com/attic-labs/testify/require/require.go
go-corpus-0.01/src/github.com/attic-labs/noms/vendor/github.com/attic-labs/testify/require/require_forward.go
go-corpus-0.01/src/github.com/attic-labs/noms/vendor/github.com/clbanning/mxj/doc.go
go-corpus-0.01/src/github.com/attic-labs/noms/vendor/github.com/clbanning/mxj/nan_test.go
go-corpus-0.01/src/github.com/attic-labs/noms/vendor/github.com/clbanning/mxj/xmlseq.go
go-corpus-0.01/src/github.com/attic-labs/noms/vendor/github.com/clbanning/mxj/xmlseq_test.go
go-corpus-0.01/src/github.com/attic-labs/noms/vendor/github.com/golang/snappy/encode_amd64.go
go-corpus-0.01/src/github.com/attic-labs/noms/vendor/github.com/shirou/gopsutil/process/process_freebsd_386.go
go-corpus-0.01/src/github.com/attic-labs/noms/vendor/github.com/shirou/gopsutil/process/process_freebsd_amd64.go
go-corpus-0.01/src/github.com/attic-labs/noms/vendor/golang.org/x/crypto/ssh/agent/example_test.go
go-corpus-0.01/src/github.com/attic-labs/noms/vendor/golang.org/x/crypto/ssh/kex.go
go-corpus-0.01/src/github.com/aws/aws-sdk-go/private/model/api/customization_passes.go
go-corpus-0.01/src/github.com/aws/aws-sdk-go/private/protocol/query/queryutil/queryutil.go
go-corpus-0.01/src/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/build.go
go-corpus-0.01/src/github.com/badgerodon/peg/peg.go
go-corpus-0.01/src/github.com/badgerodon/peg/examples/math/main.go
go-corpus-0.01/src/github.com/badgerodon/peg/expressions.go
go-corpus-0.01/src/github.com/badgerodon/peg/tree.go
go-corpus-0.01/src/github.com/beego/x2j/examples/books.go
go-corpus-0.01/src/github.com/beego/x2j/examples/gonuts1.go
go-corpus-0.01/src/github.com/beego/x2j/examples/gonuts3.go
go-corpus-0.01/src/github.com/beego/x2j/goofy_test.go
go-corpus-0.01/src/github.com/beego/x2j/reader2j_test.go
go-corpus-0.01/src/github.com/beego/x2j/x2j.go
go-corpus-0.01/src/github.com/beego/x2j/reader2j.go
go-corpus-0.01/src/github.com/beego/x2j/x2j_bulk.go
go-corpus-0.01/src/github.com/beego/x2j/x2jpath_test.go
go-corpus-0.01/src/github.com/beego/x2j/x2j_test.go
go-corpus-0.01/src/github.com/beego/x2j/x2m_bulk.go
go-corpus-0.01/src/github.com/beego/x2j/x2junmarshal_test.go
go-corpus-0.01/src/github.com/beorn7/perks/topk/topk_test.go
go-corpus-0.01/src/github.com/bitly/oauth2_proxy/providers/azure.go
go-corpus-0.01/src/github.com/bitly/oauth2_proxy/providers/azure_test.go
go-corpus-0.01/src/github.com/bmizerany/assert/assert.go
go-corpus-0.01/src/github.com/bmizerany/assert/example/point_test.go
go-corpus-0.01/src/github.com/bmizerany/perks/topk/topk_test.go
go-corpus-0.01/src/github.com/cayleygraph/cayley/graph/iterator/all.go
go-corpus-0.01/src/github.com/cheggaaa/pb/pb_test.go
go-corpus-0.01/src/github.com/chrislusf/seaweedfs/weed/images/favicon.go
go-corpus-0.01/src/github.com/chrislusf/seaweedfs/weed/server/master_server_handlers_ui.go
go-corpus-0.01/src/github.com/chrislusf/seaweedfs/weed/server/volume_server_handlers_ui.go
go-corpus-0.01/src/github.com/coreos/etcd/cmd/vendor/github.com/boltdb/bolt/bolt_windows.go
go-corpus-0.01/src/github.com/coreos/etcd/cmd/vendor/github.com/coreos/go-semver/semver/semver.go
go-corpus-0.01/src/github.com/coreos/etcd/cmd/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/context.go
go-corpus-0.01/src/github.com/coreos/rkt/vendor/github.com/coreos/gexpect/gexpect.go
go-corpus-0.01/src/github.com/coreos/rkt/vendor/github.com/google/btree/btree.go
go-corpus-0.01/src/github.com/coreos/rkt/vendor/github.com/shirou/gopsutil/cpu/cpu_linux.go
go-corpus-0.01/src/github.com/coreos/rkt/vendor/github.com/shirou/gopsutil/net/net_darwin.go
go-corpus-0.01/src/github.com/cyfdecyf/cow/http.go
go-corpus-0.01/src/github.com/cyfdecyf/cow/proxy_unix.go
go-corpus-0.01/src/github.com/denisenkom/go-mssqldb/buf_test.go
go-corpus-0.01/src/github.com/denisenkom/go-mssqldb/decimal_test.go
go-corpus-0.01/src/github.com/denisenkom/go-mssqldb/mssql.go
go-corpus-0.01/src/github.com/denisenkom/go-mssqldb/parser.go
go-corpus-0.01/src/github.com/denisenkom/go-mssqldb/tds.go
go-corpus-0.01/src/github.com/denisenkom/go-mssqldb/types.go
go-corpus-0.01/src/github.com/derekparker/delve/_fixtures/callme.go
go-corpus-0.01/src/github.com/derekparker/delve/_fixtures/issue406.go
go-corpus-0.01/src/github.com/derekparker/delve/_fixtures/locationsUpperCase.go
go-corpus-0.01/src/github.com/derekparker/delve/_fixtures/teststepconcurrent.go
go-corpus-0.01/src/github.com/derekparker/delve/config/config.go
go-corpus-0.01/src/github.com/derekparker/delve/dwarf/reader/reader.go
go-corpus-0.01/src/github.com/derekparker/delve/vendor/rsc.io/x86/x86asm/decode.go
go-corpus-0.01/src/github.com/derekparker/delve/vendor/rsc.io/x86/x86asm/inst.go
go-corpus-0.01/src/github.com/dgrijalva/jwt-go/hmac_example_test.go
go-corpus-0.01/src/github.com/disintegration/imaging/histogram_test.go
go-corpus-0.01/src/github.com/disintegration/imaging/histogram.go
go-corpus-0.01/src/github.com/dlclark/regexp2/syntax/charclass.go
go-corpus-0.01/src/github.com/docker/distribution/vendor/github.com/aws/aws-sdk-go/private/protocol/query/queryutil/queryutil.go
go-corpus-0.01/src/github.com/docker/distribution/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/build.go
go-corpus-0.01/src/github.com/docker/distribution/vendor/github.com/bugsnag/bugsnag-go/panicwrap.go
go-corpus-0.01/src/github.com/docker/distribution/vendor/github.com/denverdino/aliyungo/oss/client.go
go-corpus-0.01/src/github.com/docker/distribution/vendor/github.com/yvasiyarov/go-metrics/ewma.go
go-corpus-0.01/src/github.com/docker/distribution/vendor/github.com/yvasiyarov/go-metrics/opentsdb.go
go-corpus-0.01/src/github.com/docker/distribution/vendor/github.com/yvasiyarov/newrelic_platform_go/component.go
go-corpus-0.01/src/github.com/docker/distribution/vendor/github.com/yvasiyarov/newrelic_platform_go/plugin.go
go-corpus-0.01/src/github.com/docker/distribution/vendor/gopkg.in/yaml.v2/yaml.go
go-corpus-0.01/src/github.com/docker/docker/vendor/github.com/boltdb/bolt/bolt_windows.go
go-corpus-0.01/src/github.com/docker/docker/vendor/github.com/go-check/check/benchmark.go
go-corpus-0.01/src/github.com/docker/docker/vendor/github.com/spf13/cobra/args.go
go-corpus-0.01/src/github.com/docker/docker/vendor/github.com/spf13/cobra/doc/man_docs.go
go-corpus-0.01/src/github.com/docker/docker/vendor/github.com/stretchr/testify/assert/assertion_forward.go
go-corpus-0.01/src/github.com/docker/docker/vendor/github.com/ugorji/go/codec/0doc.go
go-corpus-0.01/src/github.com/docker/docker/vendor/github.com/ugorji/go/codec/gen.generated.go
go-corpus-0.01/src/github.com/docker/engine-api/client/container_restart_test.go
go-corpus-0.01/src/github.com/docker/engine-api/client/container_stop_test.go
go-corpus-0.01/src/github.com/docker/libnetwork/vendor/github.com/boltdb/bolt/bolt_windows.go
go-corpus-0.01/src/github.com/docker/libnetwork/vendor/github.com/boltdb/bolt/db.go
go-corpus-0.01/src/github.com/docker/libnetwork/vendor/github.com/ugorji/go/codec/0doc.go
go-corpus-0.01/src/github.com/docker/libnetwork/vendor/github.com/ugorji/go/codec/gen.generated.go
go-corpus-0.01/src/github.com/docker/machine/vendor/github.com/pyr/egoscale/src/egoscale/dns.go
go-corpus-0.01/src/github.com/docker/machine/vendor/github.com/pyr/egoscale/src/egoscale/groups.go
go-corpus-0.01/src/github.com/docker/machine/vendor/github.com/pyr/egoscale/src/egoscale/topology.go
go-corpus-0.01/src/github.com/docker/machine/vendor/github.com/pyr/egoscale/src/egoscale/request.go
go-corpus-0.01/src/github.com/docker/machine/vendor/github.com/pyr/egoscale/src/egoscale/types.go
go-corpus-0.01/src/github.com/docker/machine/vendor/github.com/stretchr/testify/assert/assertion_forward.go
go-corpus-0.01/src/github.com/docker/machine/vendor/golang.org/x/crypto/ssh/kex.go
go-corpus-0.01/src/github.com/docker/swarm/vendor/github.com/coreos/etcd/Godeps/_workspace/src/github.com/ugorji/go/codec/0doc.go
go-corpus-0.01/src/github.com/docker/swarm/vendor/github.com/coreos/etcd/Godeps/_workspace/src/github.com/ugorji/go/codec/gen.generated.go
go-corpus-0.01/src/github.com/docker/swarm/vendor/github.com/docker/docker/api/types/container/config.go
go-corpus-0.01/src/github.com/docker/swarm/vendor/github.com/samalba/dockerclient/types.go
go-corpus-0.01/src/github.com/docker/swarm/vendor/github.com/stretchr/testify/assert/assertion_forward.go
go-corpus-0.01/src/github.com/dop251/goja/parser/expression.go
go-corpus-0.01/src/github.com/dop251/goja/parser/lexer.go
go-corpus-0.01/src/github.com/dop251/goja/parser/regexp.go
go-corpus-0.01/src/github.com/dop251/goja/parser/regexp_test.go
go-corpus-0.01/src/github.com/dop251/goja/parser/parser.go
go-corpus-0.01/src/github.com/dop251/goja/parser/testutil_test.go
go-corpus-0.01/src/github.com/drone/drone/remote/bitbucketserver/bitbucketserver.go
go-corpus-0.01/src/github.com/drone/drone/remote/remote.go
go-corpus-0.01/src/github.com/drone/drone/router/middleware/session/team_test.go
go-corpus-0.01/src/github.com/drone/drone/router/middleware/session/team.go
go-corpus-0.01/src/github.com/drone/drone/vendor/github.com/djherbis/fscache/fscache.go
go-corpus-0.01/src/github.com/drone/drone/vendor/github.com/mattn/go-sqlite3/sqlite3_icu.go
go-corpus-0.01/src/github.com/drone/drone/vendor/github.com/mrjones/oauth/oauth.go
go-corpus-0.01/src/github.com/drone/drone/vendor/github.com/stretchr/testify/assert/assertion_forward.go
go-corpus-0.01/src/github.com/drone/drone/vendor/gopkg.in/gorp.v1/gorp.go
go-corpus-0.01/src/github.com/drone/drone-ui/dist/dist_gen.go
go-corpus-0.01/src/github.com/elastic/logstash-forwarder/event.go
go-corpus-0.01/src/github.com/elastic/logstash-forwarder/filecompare.go
go-corpus-0.01/src/github.com/elastic/logstash-forwarder/filecompare_windows.go
go-corpus-0.01/src/github.com/elastic/logstash-forwarder/fileinfo_darwin.go
go-corpus-0.01/src/github.com/elastic/logstash-forwarder/fileinfo_linux.go
go-corpus-0.01/src/github.com/elastic/logstash-forwarder/fileinfo_openbsd.go
go-corpus-0.01/src/github.com/elastic/logstash-forwarder/fileinfo_windows.go
go-corpus-0.01/src/github.com/elastic/logstash-forwarder/filestate_darwin.go
go-corpus-0.01/src/github.com/elastic/logstash-forwarder/filestate_linux.go
go-corpus-0.01/src/github.com/elastic/logstash-forwarder/filestate_windows.go
go-corpus-0.01/src/github.com/elastic/logstash-forwarder/filestate_openbsd.go
go-corpus-0.01/src/github.com/elastic/logstash-forwarder/logstash-forwarder.go
go-corpus-0.01/src/github.com/elastic/logstash-forwarder/publisher1.go
go-corpus-0.01/src/github.com/elastic/logstash-forwarder/registrar.go
go-corpus-0.01/src/github.com/elastic/logstash-forwarder/publisher1_test.go
go-corpus-0.01/src/github.com/elastic/logstash-forwarder/registrar_windows.go
go-corpus-0.01/src/github.com/elastic/logstash-forwarder/spooler.go
go-corpus-0.01/src/github.com/elastic/logstash-forwarder/syslog.go
go-corpus-0.01/src/github.com/elastic/logstash-forwarder/version.go
go-corpus-0.01/src/github.com/elastic/logstash-forwarder/syslog_windows.go
go-corpus-0.01/src/github.com/ethereum/go-ethereum/accounts/abi/type_test.go
go-corpus-0.01/src/github.com/ethereum/go-ethereum/vendor/github.com/gizak/termui/events.go
go-corpus-0.01/src/github.com/ethereum/go-ethereum/vendor/gopkg.in/check.v1/benchmark.go
go-corpus-0.01/src/github.com/fiorix/freegeoip/apiserver/api.go
go-corpus-0.01/src/github.com/fiorix/freegeoip/db_test.go
go-corpus-0.01/src/github.com/flike/kingshard/vendor/github.com/mattn/go-colorable/colorable_windows.go
go-corpus-0.01/src/github.com/flynn/flynn/vendor/github.com/go-ini/ini/section.go
go-corpus-0.01/src/github.com/flynn/flynn/vendor/gopkg.in/mgo.v2/internal/scram/scram.go
go-corpus-0.01/src/github.com/flynn/flynn/vendor/gopkg.in/tomb.v1/tomb.go
go-corpus-0.01/src/github.com/fogleman/gg/examples/wrap.go
go-corpus-0.01/src/github.com/future-architect/vuls/scan/base_test.go
go-corpus-0.01/src/github.com/gdamore/encoding/charmap.go
go-corpus-0.01/src/github.com/gin-gonic/gin/mode.go
go-corpus-0.01/src/github.com/git-lfs/git-lfs/vendor/github.com/kr/text/colwriter/column_test.go
go-corpus-0.01/src/github.com/git-lfs/git-lfs/vendor/github.com/kr/text/wrap.go
go-corpus-0.01/src/github.com/git-lfs/git-lfs/vendor/github.com/stretchr/testify/assert/assertion_forward.go
go-corpus-0.01/src/github.com/git-lfs/git-lfs/vendor/github.com/stretchr/testify/require/require.go
go-corpus-0.01/src/github.com/git-lfs/git-lfs/vendor/github.com/stretchr/testify/require/require_forward.go
go-corpus-0.01/src/github.com/git-lfs/git-lfs/vendor/github.com/xeipuuv/gojsonpointer/pointer_test.go
go-corpus-0.01/src/github.com/gliderlabs/logspout/modules.go
go-corpus-0.01/src/github.com/gliderlabs/logspout/router/extpoints.go
go-corpus-0.01/src/github.com/gliderlabs/logspout/router/types.go
go-corpus-0.01/src/github.com/gliderlabs/logspout/transports/tls/tls.go
go-corpus-0.01/src/github.com/gliderlabs/registrator/bridge/bridge.go
go-corpus-0.01/src/github.com/gliderlabs/registrator/consul/consul.go
go-corpus-0.01/src/github.com/gliderlabs/registrator/zookeeper/zookeeper.go
go-corpus-0.01/src/github.com/go-macaron/session/memory.go
go-corpus-0.01/src/github.com/go-xorm/core/cache.go
go-corpus-0.01/src/github.com/gocql/gocql/cluster_test.go
go-corpus-0.01/src/github.com/gocql/gocql/common_test.go
go-corpus-0.01/src/github.com/gogits/git-module/repo_tag.go
go-corpus-0.01/src/github.com/gogits/gogs/modules/bindata/bindata.go
go-corpus-0.01/src/github.com/google/cadvisor/vendor/github.com/abbot/go-http-auth/auth.go
go-corpus-0.01/src/github.com/google/cadvisor/vendor/github.com/abbot/go-http-auth/users.go
go-corpus-0.01/src/github.com/google/cadvisor/vendor/github.com/abbot/go-http-auth/digest.go
go-corpus-0.01/src/github.com/google/cadvisor/vendor/github.com/aws/aws-sdk-go/private/protocol/query/queryutil/queryutil.go
go-corpus-0.01/src/github.com/google/cadvisor/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/build.go
go-corpus-0.01/src/github.com/google/cadvisor/vendor/github.com/kr/text/wrap.go
go-corpus-0.01/src/github.com/google/cadvisor/vendor/google.golang.org/grpc/stream.go
go-corpus-0.01/src/github.com/google/seesaw/binaries/seesaw_engine/main.go
go-corpus-0.01/src/github.com/google/seesaw/common/seesaw/util_test.go
go-corpus-0.01/src/github.com/gravitational/teleport/lib/auth/mocku2f/mocku2f.go
go-corpus-0.01/src/github.com/gravitational/teleport/vendor/github.com/alecthomas/template/template.go
go-corpus-0.01/src/github.com/gravitational/teleport/vendor/github.com/alecthomas/template/exec.go
go-corpus-0.01/src/github.com/gravitational/teleport/vendor/github.com/mailgun/lemma/secret/secret.go
go-corpus-0.01/src/github.com/gravitational/teleport/vendor/golang.org/x/crypto/ssh/transport.go
go-corpus-0.01/src/github.com/grpc-ecosystem/grpc-gateway/examples/clients/abe/ABitOfEverythingServiceApi.go
go-corpus-0.01/src/github.com/grpc-ecosystem/grpc-gateway/examples/clients/abe/ABitOfEverythingNested.go
go-corpus-0.01/src/github.com/grpc-ecosystem/grpc-gateway/examples/clients/abe/ExamplepbABitOfEverything.go
go-corpus-0.01/src/github.com/grpc-ecosystem/grpc-gateway/examples/clients/abe/ExamplepbNumericEnum.go
go-corpus-0.01/src/github.com/grpc-ecosystem/grpc-gateway/examples/clients/abe/NestedDeepEnum.go
go-corpus-0.01/src/github.com/grpc-ecosystem/grpc-gateway/examples/clients/abe/Sub2IdMessage.go
go-corpus-0.01/src/github.com/grpc-ecosystem/grpc-gateway/examples/clients/abe/ProtobufEmpty.go
go-corpus-0.01/src/github.com/grpc-ecosystem/grpc-gateway/examples/clients/abe/SubStringMessage.go
go-corpus-0.01/src/github.com/grpc-ecosystem/grpc-gateway/examples/clients/echo/EchoServiceApi.go
go-corpus-0.01/src/github.com/grpc-ecosystem/grpc-gateway/examples/clients/echo/ExamplepbSimpleMessage.go
go-corpus-0.01/src/github.com/hashicorp/consul/vendor/github.com/armon/go-metrics/inmem.go
go-corpus-0.01/src/github.com/hashicorp/consul/vendor/github.com/boltdb/bolt/bolt_windows.go
go-corpus-0.01/src/github.com/hashicorp/consul/vendor/github.com/hashicorp/hil/eval.go
go-corpus-0.01/src/github.com/hashicorp/serf/vendor/github.com/armon/go-metrics/inmem.go
go-corpus-0.01/src/github.com/hashicorp/vault/api/ssh_agent_test.go
go-corpus-0.01/src/github.com/hashicorp/vault/builtin/credential/github/path_config.go
go-corpus-0.01/src/github.com/hashicorp/vault/builtin/credential/ldap/backend.go
go-corpus-0.01/src/github.com/hashicorp/vault/builtin/credential/ldap/backend_test.go
go-corpus-0.01/src/github.com/hashicorp/vault/builtin/credential/ldap/path_users.go
go-corpus-0.01/src/github.com/hashicorp/vault/builtin/logical/cassandra/path_creds_create.go
go-corpus-0.01/src/github.com/hashicorp/vault/vendor/github.com/armon/go-metrics/inmem.go
go-corpus-0.01/src/github.com/hashicorp/vault/vendor/github.com/aws/aws-sdk-go/private/protocol/query/queryutil/queryutil.go
go-corpus-0.01/src/github.com/hashicorp/vault/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/build.go
go-corpus-0.01/src/github.com/hashicorp/vault/vendor/github.com/denisenkom/go-mssqldb/buf.go
go-corpus-0.01/src/github.com/hashicorp/vault/vendor/github.com/denisenkom/go-mssqldb/mssql.go
go-corpus-0.01/src/github.com/hashicorp/vault/vendor/github.com/denisenkom/go-mssqldb/tds.go
go-corpus-0.01/src/github.com/hashicorp/vault/vendor/github.com/mitchellh/mapstructure/mapstructure.go
go-corpus-0.01/src/github.com/hashicorp/vault/vendor/gopkg.in/mgo.v2/bson/bson.go
go-corpus-0.01/src/github.com/hashicorp/vault/vendor/gopkg.in/mgo.v2/internal/json/decode.go
go-corpus-0.01/src/github.com/hpcloud/tail/watch/inotify.go
go-corpus-0.01/src/github.com/huichen/murmur/murmur.go
go-corpus-0.01/src/github.com/huichen/sego/server/server.go
go-corpus-0.01/src/github.com/huichen/wukong/examples/codelab/search_server.go
go-corpus-0.01/src/github.com/hyperledger/fabric/bddtests/bddtests_test.go
go-corpus-0.01/src/github.com/hyperledger/fabric/common/localmsp/signer.go
go-corpus-0.01/src/github.com/hyperledger/fabric/common/localmsp/signer_test.go
go-corpus-0.01/src/github.com/hyperledger/fabric/gossip/api/channel.go
go-corpus-0.01/src/github.com/hyperledger/fabric/gossip/comm/comm_impl.go
go-corpus-0.01/src/github.com/hyperledger/fabric/gossip/comm/comm_test.go
go-corpus-0.01/src/github.com/hyperledger/fabric/gossip/comm/mock/mock_comm.go
go-corpus-0.01/src/github.com/hyperledger/fabric/gossip/discovery/discovery.go
go-corpus-0.01/src/github.com/hyperledger/fabric/gossip/filter/filter.go
go-corpus-0.01/src/github.com/hyperledger/fabric/gossip/election/election.go
go-corpus-0.01/src/github.com/hyperledger/fabric/gossip/gossip/channel/channel.go
go-corpus-0.01/src/github.com/hyperledger/fabric/gossip/gossip/gossip_test.go
go-corpus-0.01/src/github.com/hyperledger/fabric/gossip/integration/integration.go
go-corpus-0.01/src/github.com/hyperledger/fabric/gossip/state/metastate.go
go-corpus-0.01/src/github.com/hyperledger/fabric/gossip/state/metastate_test.go
go-corpus-0.01/src/github.com/hyperledger/fabric/gossip/util/misc.go
go-corpus-0.01/src/github.com/hyperledger/fabric/vendor/github.com/op/go-logging/level.go
go-corpus-0.01/src/github.com/hyperledger/fabric/vendor/github.com/rcrowley/go-metrics/gauge.go
go-corpus-0.01/src/github.com/hyperledger/fabric/vendor/github.com/rcrowley/go-metrics/registry.go
go-corpus-0.01/src/github.com/hyperledger/fabric/vendor/github.com/spf13/jwalterweatherman/thatswhyyoualwaysleaveanote.go
go-corpus-0.01/src/github.com/hyperledger/fabric/vendor/github.com/stretchr/testify/assert/assertion_forward.go
go-corpus-0.01/src/github.com/imdario/mergo/mergo_test.go
go-corpus-0.01/src/github.com/iris-contrib/formBinder/formBinder.go
go-corpus-0.01/src/github.com/junegunn/go-runewidth/runewidth.go
go-corpus-0.01/src/github.com/karlseguin/ccache/secondarycache_test.go
go-corpus-0.01/src/github.com/kataras/iris/iris.go
go-corpus-0.01/src/github.com/kelseyhightower/confd/backends/redis/client.go
go-corpus-0.01/src/github.com/klauspost/cpuid/private/cpuid.go
go-corpus-0.01/src/github.com/kotakanbe/go-cve-dictionary/models/models.go
go-corpus-0.01/src/github.com/kr/pretty/formatter_test.go
go-corpus-0.01/src/github.com/lestrrat/go-pdebug/autoflag_off.go
go-corpus-0.01/src/github.com/lestrrat/go-pdebug/autoflag_on.go
go-corpus-0.01/src/github.com/lestrrat/go-pdebug/debug_off.go
go-corpus-0.01/src/github.com/lestrrat/go-pdebug/debug_on.go
go-corpus-0.01/src/github.com/lestrrat/go-pdebug/debug_test.go
go-corpus-0.01/src/github.com/lestrrat/go-pdebug/doc.go
go-corpus-0.01/src/github.com/lestrrat/go-pdebug/nodebug_test.go
go-corpus-0.01/src/github.com/linkeddata/gojsonld/normlizeUtils.go
go-corpus-0.01/src/github.com/linkeddata/gojsonld/rdfDatasetUtils.go
go-corpus-0.01/src/github.com/linkeddata/gojsonld/uniqueNamer.go
go-corpus-0.01/src/github.com/lucas-clemente/quic-go/public_header.go
go-corpus-0.01/src/github.com/lucasb-eyer/go-colorful/colorgens.go
go-corpus-0.01/src/github.com/lucasb-eyer/go-colorful/colorgens_test.go
go-corpus-0.01/src/github.com/lucasb-eyer/go-colorful/colors.go
go-corpus-0.01/src/github.com/lucasb-eyer/go-colorful/colors_test.go
go-corpus-0.01/src/github.com/lucasb-eyer/go-colorful/doc/colorblend/colorblend.go
go-corpus-0.01/src/github.com/lucasb-eyer/go-colorful/doc/colorgens/colorgens.go
go-corpus-0.01/src/github.com/lucasb-eyer/go-colorful/doc/colordist/colordist.go
go-corpus-0.01/src/github.com/lucasb-eyer/go-colorful/doc/gradientgen/gradientgen.go
go-corpus-0.01/src/github.com/lucasb-eyer/go-colorful/doc/palettegens/palettegens.go
go-corpus-0.01/src/github.com/lucasb-eyer/go-colorful/happy_palettegen.go
go-corpus-0.01/src/github.com/lucasb-eyer/go-colorful/soft_palettegen.go
go-corpus-0.01/src/github.com/lucasb-eyer/go-colorful/soft_palettegen_test.go
go-corpus-0.01/src/github.com/lucasb-eyer/go-colorful/warm_palettegen.go
go-corpus-0.01/src/github.com/mcuadros/go-version/doc.go
go-corpus-0.01/src/github.com/mcuadros/go-version/group.go
go-corpus-0.01/src/github.com/miekg/mmark/mmark/main.go
go-corpus-0.01/src/github.com/miekg/mmark/xml2rfc.go
go-corpus-0.01/src/github.com/minio/minio/vendor/gopkg.in/check.v1/benchmark.go
go-corpus-0.01/src/github.com/mitchellh/mapstructure/mapstructure_bugs_test.go
go-corpus-0.01/src/github.com/mitchellh/packer/vendor/github.com/1and1/oneandone-cloudserver-sdk-go/errors.go
go-corpus-0.01/src/github.com/mitchellh/packer/vendor/github.com/Azure/go-ntlmssp/negotiate_flags.go
go-corpus-0.01/src/github.com/mitchellh/packer/vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/images/results.go
go-corpus-0.01/src/github.com/mitchellh/packer/vendor/github.com/joyent/gosign/auth/auth.go
go-corpus-0.01/src/github.com/mitchellh/packer/vendor/github.com/masterzen/simplexml/dom/document.go
go-corpus-0.01/src/github.com/mitchellh/packer/vendor/github.com/masterzen/simplexml/dom/element.go
go-corpus-0.01/src/github.com/mitchellh/packer/vendor/github.com/masterzen/xmlpath/doc.go
go-corpus-0.01/src/github.com/mitchellh/packer/vendor/github.com/masterzen/xmlpath/path.go
go-corpus-0.01/src/github.com/mitchellh/packer/vendor/github.com/mitchellh/go-vnc/client_auth.go
go-corpus-0.01/src/github.com/mitchellh/packer/vendor/github.com/nu7hatch/gouuid/uuid.go
go-corpus-0.01/src/github.com/mitchellh/packer/vendor/github.com/ugorji/go/codec/0doc.go
go-corpus-0.01/src/github.com/mitchellh/packer/vendor/gopkg.in/xmlpath.v2/parser.go
go-corpus-0.01/src/github.com/moul/http2curl/vendor/github.com/smartystreets/assertions/internal/oglematchers/transform_description.go
go-corpus-0.01/src/github.com/ncw/rclone/vendor/github.com/aws/aws-sdk-go/private/protocol/query/queryutil/queryutil.go
go-corpus-0.01/src/github.com/ncw/rclone/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/build.go
go-corpus-0.01/src/github.com/ncw/rclone/vendor/github.com/stretchr/testify/assert/assertions.go
go-corpus-0.01/src/github.com/nsqio/nsq/nsqadmin/bindata.go
go-corpus-0.01/src/github.com/onsi/ginkgo/integration/_fixtures/flags_tests/flags_test.go
go-corpus-0.01/src/github.com/onsi/ginkgo/integration/_fixtures/hanging_suite/hanging_suite_test.go
go-corpus-0.01/src/github.com/onsi/ginkgo/integration/_fixtures/skip_fixture/skip_fixture_test.go
go-corpus-0.01/src/github.com/onsi/ginkgo/internal/remote/syscall_dup_solaris.go
go-corpus-0.01/src/github.com/onsi/ginkgo/internal/remote/syscall_dup_unix.go
go-corpus-0.01/src/github.com/onsi/ginkgo/internal/remote/syscall_dup_linux_arm64.go
go-corpus-0.01/src/github.com/opencontainers/runc/Godeps/_workspace/src/github.com/pquerna/ffjson/fflib/v1/jsonstring.go
go-corpus-0.01/src/github.com/openshift/origin/pkg/assets/bindata.go
go-corpus-0.01/src/github.com/openshift/origin/pkg/assets/java/bindata.go
go-corpus-0.01/src/github.com/openshift/origin/pkg/bootstrap/bindata.go
go-corpus-0.01/src/github.com/openshift/origin/vendor/github.com/boltdb/bolt/bolt_windows.go
go-corpus-0.01/src/github.com/openshift/origin/vendor/github.com/codegangsta/negroni/negroni.go
go-corpus-0.01/src/github.com/openshift/origin/vendor/github.com/elazarl/goproxy/ext/image/image.go
go-corpus-0.01/src/github.com/openshift/origin/vendor/github.com/elazarl/goproxy/regretable/regretreader.go
go-corpus-0.01/src/github.com/openshift/origin/vendor/github.com/magiconair/properties/properties.go
go-corpus-0.01/src/github.com/openshift/origin/vendor/github.com/mailru/easyjson/jlexer/lexer.go
go-corpus-0.01/src/github.com/openshift/origin/vendor/github.com/onsi/gomega/format/format.go
go-corpus-0.01/src/github.com/openshift/origin/vendor/github.com/rackspace/gophercloud/auth_options.go
go-corpus-0.01/src/github.com/openshift/origin/vendor/github.com/rackspace/gophercloud/openstack/compute/v2/images/results.go
go-corpus-0.01/src/github.com/openshift/origin/vendor/github.com/rackspace/gophercloud/openstack/identity/v3/tokens/requests.go
go-corpus-0.01/src/github.com/openshift/origin/vendor/github.com/rackspace/gophercloud/provider_client.go
go-corpus-0.01/src/github.com/openshift/origin/vendor/github.com/skynetservices/skydns/server/dnssec.go
go-corpus-0.01/src/github.com/openshift/origin/vendor/github.com/skynetservices/skydns/server/server.go
go-corpus-0.01/src/github.com/openshift/origin/vendor/github.com/spf13/afero/sftp/file.go
go-corpus-0.01/src/github.com/openshift/origin/vendor/github.com/spf13/afero/sftp.go
go-corpus-0.01/src/github.com/openshift/origin/vendor/github.com/ugorji/go/codec/0doc.go
go-corpus-0.01/src/github.com/ossrs/srs/trunk/research/golang/fwriter.go
go-corpus-0.01/src/github.com/peco/peco/cmd/peco/peco.go
go-corpus-0.01/src/github.com/peco/peco/input.go
go-corpus-0.01/src/github.com/peco/peco/keymap.go
go-corpus-0.01/src/github.com/peco/peco/issues_test.go
go-corpus-0.01/src/github.com/peco/peco/line/interface.go
go-corpus-0.01/src/github.com/peco/peco/line/matched.go
go-corpus-0.01/src/github.com/peco/peco/line/raw.go
go-corpus-0.01/src/github.com/peco/peco/query.go
go-corpus-0.01/src/github.com/peco/peco/source.go
go-corpus-0.01/src/github.com/peco/peco/view.go
go-corpus-0.01/src/github.com/pingcap/check/benchmark.go
go-corpus-0.01/src/github.com/pingcap/check/printer_test.go
go-corpus-0.01/src/github.com/pingcap/pd/_vendor/vendor/github.com/boltdb/bolt/bolt_windows.go
go-corpus-0.01/src/github.com/pingcap/pd/_vendor/vendor/github.com/twinj/uuid/saver.go
go-corpus-0.01/src/github.com/pingcap/pd/_vendor/vendor/github.com/twinj/uuid/state.go
go-corpus-0.01/src/github.com/pingcap/pd/_vendor/vendor/github.com/twinj/uuid/uuids.go
go-corpus-0.01/src/github.com/pingcap/pd/_vendor/vendor/github.com/ugorji/go/codec/0doc.go
go-corpus-0.01/src/github.com/pingcap/pd/server/api/bindata_assetfs.go
go-corpus-0.01/src/github.com/pingcap/tidb/_vendor/src/github.com/boltdb/bolt/bolt_windows.go
go-corpus-0.01/src/github.com/pingcap/tidb/_vendor/src/github.com/pingcap/check/benchmark.go
go-corpus-0.01/src/github.com/pingcap/tidb/_vendor/src/github.com/twinj/uuid/saver.go
go-corpus-0.01/src/github.com/pingcap/tidb/_vendor/src/github.com/twinj/uuid/state.go
go-corpus-0.01/src/github.com/pingcap/tidb/_vendor/src/github.com/twinj/uuid/uuids.go
go-corpus-0.01/src/github.com/pquerna/ffjson/tests/ff_string_test.go
go-corpus-0.01/src/github.com/prometheus/prometheus/vendor/github.com/stretchr/testify/assert/assertion_forward.go
go-corpus-0.01/src/github.com/reducedb/encoding/bp32/bp32.go
go-corpus-0.01/src/github.com/reducedb/encoding/bp32/bp32_test.go
go-corpus-0.01/src/github.com/reducedb/encoding/fastpfor/fastpfor.go
go-corpus-0.01/src/github.com/reducedb/encoding/variablebyte/variablebyte_test.go
go-corpus-0.01/src/github.com/revel/revel/testing/testsuite.go
go-corpus-0.01/src/github.com/rwcarlsen/goexif/exif/exif.go
go-corpus-0.01/src/github.com/schachmat/wego/backends/worldweatheronline.com.go
go-corpus-0.01/src/github.com/schollz/find/fingerprint_test.go
go-corpus-0.01/src/github.com/schollz/find/mqtt.go
go-corpus-0.01/src/github.com/schollz/find/server.go
go-corpus-0.01/src/github.com/segmentio/analytics-go/Godeps/_workspace/src/github.com/jehiah/go-strftime/strftime.go
go-corpus-0.01/src/github.com/segmentio/analytics-go/Godeps/_workspace/src/github.com/jehiah/go-strftime/strftime_test.go
go-corpus-0.01/src/github.com/shadowsocks/shadowsocks-go/shadowsocks/mergesort.go
go-corpus-0.01/src/github.com/shadowsocks/shadowsocks-go/shadowsocks/proxy.go
go-corpus-0.01/src/github.com/shirou/gopsutil/cpu/cpu_openbsd.go
go-corpus-0.01/src/github.com/shirou/gopsutil/cpu/cpu_linux.go
go-corpus-0.01/src/github.com/shirou/gopsutil/disk/disk_openbsd_amd64.go
go-corpus-0.01/src/github.com/shirou/gopsutil/disk/disk_unix.go
go-corpus-0.01/src/github.com/shirou/gopsutil/disk/types_openbsd.go
go-corpus-0.01/src/github.com/shirou/gopsutil/host/host_openbsd_amd64.go
go-corpus-0.01/src/github.com/shirou/gopsutil/internal/common/common.go
go-corpus-0.01/src/github.com/shirou/gopsutil/host/types_openbsd.go
go-corpus-0.01/src/github.com/shirou/gopsutil/mem/mem_openbsd.go
go-corpus-0.01/src/github.com/shirou/gopsutil/mem/mem_openbsd_amd64.go
go-corpus-0.01/src/github.com/shirou/gopsutil/mem/types_openbsd.go
go-corpus-0.01/src/github.com/shirou/gopsutil/net/net_darwin.go
go-corpus-0.01/src/github.com/shirou/gopsutil/net/net_darwin_test.go
go-corpus-0.01/src/github.com/shirou/gopsutil/net/net_openbsd.go
go-corpus-0.01/src/github.com/shirou/gopsutil/process/process_openbsd.go
go-corpus-0.01/src/github.com/shirou/gopsutil/process/process_openbsd_amd64.go
go-corpus-0.01/src/github.com/shirou/gopsutil/process/types_openbsd.go
go-corpus-0.01/src/github.com/siddontang/ledisdb/cmd/vendor/github.com/ugorji/go/codec/0doc.go
go-corpus-0.01/src/github.com/siddontang/ledisdb/cmd/vendor/github.com/ugorji/go/codec/gen.generated.go
go-corpus-0.01/src/github.com/sjwhitworth/golearn/base/arff.go
go-corpus-0.01/src/github.com/sjwhitworth/golearn/base/mat.go
go-corpus-0.01/src/github.com/sjwhitworth/golearn/neural/funcs.go
go-corpus-0.01/src/github.com/smartystreets/assertions/equality.go
go-corpus-0.01/src/github.com/smartystreets/assertions/equality_test.go
go-corpus-0.01/src/github.com/smartystreets/goconvey/examples/bowling_game.go
go-corpus-0.01/src/github.com/sosedoff/pgweb/pkg/data/bindata.go
go-corpus-0.01/src/github.com/sosedoff/pgweb/vendor/github.com/stretchr/testify/assert/assertion_forward.go
go-corpus-0.01/src/github.com/ssdb/gossdb/test.go
go-corpus-0.01/src/github.com/ssdb/gossdb/ssdb/ssdb.go
go-corpus-0.01/src/github.com/stretchr/testify/assert/assertions_test.go
go-corpus-0.01/src/github.com/stretchr/testify/assert/assertions.go
go-corpus-0.01/src/github.com/tj/cobra/command_test.go
go-corpus-0.01/src/github.com/tj/cobra/doc/man_docs.go
go-corpus-0.01/src/github.com/vmware/harbor/src/common/models/models_test.go
go-corpus-0.01/src/github.com/vmware/harbor/src/jobservice/api/job_test.go
go-corpus-0.01/src/github.com/vmware/harbor/src/jobservice/config/config_test.go
go-corpus-0.01/src/github.com/vmware/harbor/src/jobservice/api/replication.go
go-corpus-0.01/src/github.com/vmware/harbor/src/jobservice/job/job_test.go
go-corpus-0.01/src/github.com/vmware/harbor/src/jobservice/job/workerpool.go
go-corpus-0.01/src/github.com/vmware/harbor/src/jobservice/jobservice_test.go
go-corpus-0.01/src/github.com/vmware/harbor/src/jobservice/job/statemachine.go
go-corpus-0.01/src/github.com/vmware/harbor/src/jobservice/main.go
go-corpus-0.01/src/github.com/vmware/harbor/src/jobservice/replication/replication_test.go
go-corpus-0.01/src/github.com/vmware/harbor/src/jobservice/utils/utils_test.go
go-corpus-0.01/src/github.com/vmware/harbor/src/jobservice/router.go
go-corpus-0.01/src/github.com/vmware/harbor/src/jobservice/utils/logger.go
go-corpus-0.01/src/github.com/vmware/harbor/src/ui/api/internal.go
go-corpus-0.01/src/github.com/vmware/harbor/src/ui/api/dataprepare_test.go
go-corpus-0.01/src/github.com/vmware/harbor/src/ui/api/log.go
go-corpus-0.01/src/github.com/vmware/harbor/src/ui/api/replication_job.go
go-corpus-0.01/src/github.com/vmware/harbor/src/ui/api/replication_policy.go
go-corpus-0.01/src/github.com/vmware/harbor/src/ui/api/search.go
go-corpus-0.01/src/github.com/vmware/harbor/src/ui/api/statistic.go
go-corpus-0.01/src/github.com/vmware/harbor/src/ui/auth/db/db.go
go-corpus-0.01/src/github.com/vmware/harbor/src/ui/auth/db/db_test.go
go-corpus-0.01/src/github.com/vmware/harbor/src/ui/auth/ldap/ldap_test.go
go-corpus-0.01/src/github.com/vmware/harbor/src/ui/controllers/changepassword.go
go-corpus-0.01/src/github.com/vmware/harbor/src/ui/service/cache/cache_test.go
go-corpus-0.01/src/github.com/vmware/harbor/src/ui/service/service_test.go
go-corpus-0.01/src/github.com/vmware/harbor/src/ui/service/token/token.go
go-corpus-0.01/src/github.com/vmware/harbor/src/ui/service/token/token_test.go
go-corpus-0.01/src/github.com/vmware/harbor/src/ui/service/utils/utils_test.go
go-corpus-0.01/src/github.com/vmware/harbor/src/ui/ui_test.go
go-corpus-0.01/src/github.com/vmware/harbor/src/vendor/github.com/astaxie/beego/logs/logger.go
go-corpus-0.01/src/github.com/vmware/harbor/src/vendor/github.com/astaxie/beego/logs/log.go
go-corpus-0.01/src/github.com/vmware/harbor/src/vendor/github.com/mqu/openldap/add-modify-delete.go
go-corpus-0.01/src/github.com/vmware/harbor/src/vendor/github.com/mqu/openldap/defines.go
go-corpus-0.01/src/github.com/vmware/harbor/src/vendor/github.com/mqu/openldap/openldap.go
go-corpus-0.01/src/github.com/vmware/harbor/src/vendor/github.com/mqu/openldap/results.go
go-corpus-0.01/src/github.com/vmware/harbor/src/vendor/github.com/mqu/openldap/options-errors.go
go-corpus-0.01/src/github.com/vmware/harbor/src/vendor/github.com/mqu/openldap/types.go
go-corpus-0.01/src/github.com/vmware/harbor/tests/apitests/apilib/access_log_filter.go
go-corpus-0.01/src/github.com/vmware/harbor/tests/apitests/apilib/access_log.go
go-corpus-0.01/src/github.com/vmware/harbor/tests/apitests/apilib/job_status.go
go-corpus-0.01/src/github.com/vmware/harbor/tests/apitests/apilib/password.go
go-corpus-0.01/src/github.com/vmware/harbor/tests/apitests/apilib/rep_policy_update.go
go-corpus-0.01/src/github.com/vmware/harbor/tests/apitests/apilib/rep_policy_enablement_req.go
go-corpus-0.01/src/github.com/vmware/harbor/tests/apitests/apilib/rep_policy_post.go
go-corpus-0.01/src/github.com/vmware/harbor/tests/apitests/apilib/rep_target.go
go-corpus-0.01/src/github.com/vmware/harbor/tests/apitests/apilib/repository.go
go-corpus-0.01/src/github.com/vmware/harbor/tests/apitests/apilib/rep_target_post.go
go-corpus-0.01/src/github.com/vmware/harbor/tests/apitests/apilib/role_param.go
go-corpus-0.01/src/github.com/vmware/harbor/tests/apitests/apilib/search.go
go-corpus-0.01/src/github.com/vmware/harbor/tests/apitests/apilib/statistic_map.go
go-corpus-0.01/src/github.com/vmware/harbor/tests/apitests/apilib/search_project.go
go-corpus-0.01/src/github.com/vmware/harbor/tests/apitests/apilib/tags.go
go-corpus-0.01/src/github.com/vmware/harbor/tests/startuptest.go
go-corpus-0.01/src/github.com/vmware/harbor/tests/userlogintest.go
go-corpus-0.01/src/github.com/xeipuuv/gojsonschema/errors.go
go-corpus-0.01/src/github.com/xenolf/lego/cli_handlers.go
go-corpus-0.01/src/github.com/xenolf/lego/providers/dns/dns_providers.go
go-corpus-0.01/src/github.com/yosssi/ace/ace.go
go-corpus-0.01/src/github.com/yosssi/ace/examples/load_templates_from_binary_data/asset.go
go-corpus-0.01/src/github.com/yudai/gojsondiff/vendor/github.com/mattn/go-colorable/colorable_windows.go
go-corpus-0.01/src/github.com/yudai/gojsondiff/vendor/github.com/onsi/gomega/matchers/have_suffix_matcher.go
go-corpus-0.01/src/github.com/yudai/gojsondiff/vendor/github.com/onsi/gomega/matchers/support/goraph/util/util.go
go-corpus-0.01/src/github.com/yudai/golcs/Godeps/_workspace/src/github.com/onsi/gomega/gexec/exit_matcher_test.go
go-corpus-0.01/src/github.com/yudai/golcs/Godeps/_workspace/src/github.com/onsi/gomega/format/format_test.go
go-corpus-0.01/src/github.com/yudai/golcs/Godeps/_workspace/src/github.com/onsi/gomega/gbytes/say_matcher_test.go
go-corpus-0.01/src/github.com/yudai/golcs/Godeps/_workspace/src/github.com/onsi/gomega/matchers/be_sent_matcher_test.go
go-corpus-0.01/src/github.com/yudai/golcs/Godeps/_workspace/src/github.com/onsi/gomega/matchers/consist_of_test.go
go-corpus-0.01/src/github.com/yudai/golcs/Godeps/_workspace/src/github.com/onsi/gomega/matchers/have_suffix_matcher.go
go-corpus-0.01/src/github.com/yudai/golcs/Godeps/_workspace/src/github.com/onsi/gomega/matchers/matcher_tests_suite_test.go
go-corpus-0.01/src/github.com/yudai/golcs/Godeps/_workspace/src/github.com/onsi/gomega/matchers/support/goraph/util/util.go
go-corpus-0.01/src/github.com/yudai/gotty/vendor/github.com/yudai/hcl/json/parse.go
go-corpus-0.01/src/github.com/zensqlmonitor/go-mssqldb/mssql.go
go-corpus-0.01/src/github.com/zyedidia/micro/cmd/micro/bindings.go
go-corpus-0.01/src/github.com/zyedidia/micro/cmd/micro/actions.go
go-corpus-0.01/src/github.com/zyedidia/micro/cmd/micro/plugin.go
go-corpus-0.01/src/github.com/zyedidia/micro/cmd/micro/micro.go
go-corpus-0.01/src/github.com/zyedidia/micro/cmd/micro/settings.go
go-corpus-0.01/src/github.com/zyedidia/micro/tools/info-plist.go
go-corpus-0.01/src/github.com/zyedidia/tcell/_demos/unicode.go
go-corpus-0.01/src/github.com/zyedidia/micro/cmd/micro/runtime.go
go-corpus-0.01/src/github.com/zyedidia/tcell/mkinfo.go
go-corpus-0.01/src/golang.org/x/tools/cmd/fiximports/testdata/src/old.com/bad/bad.go
go-corpus-0.01/src/golang.org/x/tools/go/loader/testdata/badpkgdecl.go
go-corpus-0.01/src/golang.org/x/tools/go/ssa/testdata/valueforexpr.go
go-corpus-0.01/src/k8s.io/heapster/vendor/github.com/rackspace/gophercloud/auth_options.go
go-corpus-0.01/src/k8s.io/heapster/vendor/github.com/rackspace/gophercloud/openstack/compute/v2/images/results.go
go-corpus-0.01/src/k8s.io/heapster/vendor/github.com/rackspace/gophercloud/provider_client.go
go-corpus-0.01/src/k8s.io/heapster/vendor/github.com/ugorji/go/codec/0doc.go
go-corpus-0.01/src/k8s.io/heapster/vendor/github.com/ugorji/go/codec/gen.generated.go
package main
import (
"crypto/sha256"
"flag"
"fmt"
"io"
"log"
"os"
"os/exec"
"path/filepath"
"runtime"
"strings"
"sync"
)
var stats struct {
files int
gofiles int
dirs int
vendors int
dupes int
diffs int
fmted int
projects map[string]struct{}
mu sync.Mutex
cache map[string]string
shame []string
}
var ch chan string
func init() {
stats.cache = make(map[string]string)
stats.projects = make(map[string]struct{})
ch = make(chan string, 0)
}
// hashFile tries to take the sha256 hash of a file
func hashFile(path string) string {
f, err := os.Open(path)
if err != nil {
log.Fatal(err)
}
defer f.Close()
h := sha256.New()
if _, err := io.Copy(h, f); err != nil {
log.Fatal(err)
}
return fmt.Sprintf("%x", h.Sum(nil))
}
// parseProject returns the "project" from the path. For most projects,
// this is "{site}/{user}/{project}", and this is considered a good enough
// approximation.
func parseProject(path string) string {
parts := strings.Split(path, string(filepath.Separator))
if len(parts) < 4 {
return ""
}
return strings.Join(parts[:3], string(filepath.Separator))
}
// splitOn walks the path from left to right, splitting on the first
// occurence of "on"
func splitOn(path, on string) string {
idx := strings.Index(path, on)
if idx < 0 || idx+len(on) > len(path) {
return ""
}
return path[idx+len(on):]
}
// isFmted runs gofmt on a single file and returns whether it was gofmted
func isFmted(path string) bool {
c := exec.Command("gofmt", "-l", path)
out, err := c.CombinedOutput()
if err != nil || len(out) > 0 {
return false
}
return true
}
// checkFmt reads paths from ch and checks them for fmting, updating global
// stats in a thread-safe way. When ch gets closed, it Done()'s the wg.
func checkFmt(ch chan string, wg *sync.WaitGroup) {
for path := range ch {
ok := isFmted(path)
stats.mu.Lock()
if ok {
stats.fmted++
} else {
stats.shame = append(stats.shame, path)
}
stats.mu.Unlock()
}
wg.Done()
}
// isVendored returns true if a path is vendored
func isVendored(path string) bool {
return (strings.Contains(path, "/vendor/") ||
strings.Contains(path, "_workspace/src/") ||
strings.Contains(path, "/_vendor/"))
}
// getAbs attempts to get a "project absolute" path, stripping away the basic
// src location and, if it is vendored, the vendoring project
func getAbs(path string) (abs string, vendored bool) {
// there are a few vendor styles, try to get what we can
switch {
case strings.Contains(path, "/vendor/"):
abs = splitOn(path, "/vendor/")
vendored = true
case strings.Contains(path, "_workspace/src/"):
abs = splitOn(path, "_workspace/src/")
vendored = true
case strings.Contains(path, "/_vendor/"):
abs = splitOn(path, "/_vendor/")
vendored = true
default:
abs = splitOn(path, "/src/")
}
return abs, vendored
}
// gofile processes a go source file
func gofile(path string, info os.FileInfo) error {
abs, vendored := getAbs(path)
if vendored {
stats.vendors++
}
// skip hidden files, as there are .corpus.rev.go files that are not
// actual go files in the corpus
_, filename := filepath.Split(path)
if strings.HasPrefix(filename, ".") {
return nil
}
if len(abs) == 0 {
return fmt.Errorf("empty go file path for %s", path)
}
stats.gofiles++
project := parseProject(abs)
stats.projects[project] = struct{}{}
if sum, ok := stats.cache[abs]; ok {
stats.dupes++
if sum != hashFile(path) {
stats.diffs++
ch <- path
}
return nil
}
stats.cache[abs] = hashFile(path)
ch <- path
return nil
}
func main() {
var nameAndShame bool
flag.BoolVar(&nameAndShame, "s", false, "show files that are not fmted")
flag.Parse()
args := flag.Args()
if len(args) != 1 {
fmt.Printf("usage: ./corpus <path>\n")
os.Exit(-1)
}
if strings.Contains(args[0], "/src/") {
fmt.Printf("corpus path must not contain 'src'\n")
os.Exit(1)
}
procs := runtime.GOMAXPROCS(0)
var wg sync.WaitGroup
wg.Add(procs)
for i := 0; i < procs; i++ {
go checkFmt(ch, &wg)
}
err := filepath.Walk(args[0], func(path string, info os.FileInfo, err error) error {
if err != nil {
fmt.Printf("error: %s\n", err)
return err
}
// handle directories
if info.IsDir() {
stats.dirs++
return nil
}
name := info.Name()
if strings.HasSuffix(name, ".go") {
return gofile(path, info)
}
return nil
})
close(ch)
wg.Wait()
uniques := stats.gofiles + stats.diffs - stats.dupes
unfmted := uniques - stats.fmted
fmtPct := 100 * float64(stats.fmted) / float64(uniques)
fmt.Printf("stats:\n")
fmt.Printf("directories: %v\n", stats.dirs)
fmt.Printf("projects: %v\n", len(stats.projects))
fmt.Printf("go files (*.go): %v\n", stats.gofiles)
fmt.Printf("vendored go files: %v\n", stats.vendors)
fmt.Printf("duplicated paths: %v\n", stats.dupes)
fmt.Printf("duplicated files: %v\n", stats.dupes-stats.diffs)
fmt.Printf("unique files: %v\n", uniques)
fmt.Printf("\nfmt stats:\n")
fmt.Printf("fmted: %v\n", stats.fmted)
fmt.Printf("unfmted: %v\n", unfmted)
fmt.Printf("%% fmted: %0.2f%%\n", fmtPct)
shameVend := map[string]struct{}{}
shameProj := map[string]struct{}{}
union := map[string]struct{}{}
var vendoredUnfmted int
for _, path := range stats.shame {
sabs := splitOn(path, "/src/")
proj := parseProject(sabs)
union[proj] = struct{}{}
if isVendored(path) {
vendoredUnfmted++
shameVend[proj] = struct{}{}
continue
}
shameProj[proj] = struct{}{}
}
fmt.Printf("proj w/ unfmted: %v\n", len(shameProj))
fmt.Printf("proj w/ unfmted vend: %v\n", len(shameVend))
fmt.Printf("proj w/ unfmted files: %v\n", len(union))
fmt.Printf("vend unfmted files: %v\n", vendoredUnfmted)
if nameAndShame {
fmt.Printf("\nHall of shame:\n")
for _, path := range stats.shame {
fmt.Printf("%s\n", path)
}
}
if err != nil {
fmt.Printf("Error: %s\n", err)
os.Exit(1)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment