Language
stringclasses
6 values
Query
stringlengths
9
60
GitHubUrl
stringlengths
87
248
Relevance
int32
0
3
Notes
stringlengths
0
293
Go
map to json
https://github.com/cloudfoundry/cli/blob/5010c000047f246b870475e2c299556078cdad30/cf/util/json/json_parser.go#L29-L54
2
Go
fuzzy match ranking
https://github.com/coreos/go-omaha/blob/e409d983eb60842452f0fb6245137458ca45201a/omaha/client/fuzzytime.go#L45-L47
0
Go
hash set for counting distinct elements
https://github.com/go-xorm/xorm/blob/ce804aee6c5118ed9a6bc04754aea4ea65232fe5/session_cols.go#L177-L180
0
Go
how to reverse a string
https://github.com/logrusorgru/aurora/blob/cea283e61946ad8227cc02a24201407a2c9e5182/wrap.go#L138-L143
1
Go
postgresql connection
https://github.com/hyperledger/burrow/blob/59993f5aad71a8e16ab6ed4e57e138e2398eae4e/vent/sqldb/adapters/postgres_adapter.go#L41-L84
1
Go
hash set for counting distinct elements
https://github.com/hyperledger/fabric/blob/49f496925df1e66198d7ec794849536c9f8b104b/gossip/privdata/reconcile.go#L289-L311
0
Go
convert json to csv
https://github.com/ForceCLI/force/blob/dcf4021894573897981e05f26e1282dd209519e2/command/query.go#L40-L51
0
Go
how to empty array
https://github.com/robertkrimen/otto/blob/15f95af6e78dcd2030d8195a138bd88d4f403546/type_regexp.go#L121-L146
0
Go
get current observable value
https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/networks_utils.go#L1016-L1025
0
Go
set file attrib hidden
https://github.com/keybase/client/blob/b352622cd8cc94798cfacbcb56ada203c18e519e/go/protocol/keybase1/home.go#L54-L73
0
Go
positions of substrings in string
https://github.com/dop251/goja/blob/8d6ee3d1661108ff8433016620abb64dfa6d9937/string_ascii.go#L256-L258
1
Go
create cookie
https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/api/session.go#L139-L148
2
Go
get the description of a http status code
https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/errors/http.go#L53-L60
0
The correct function should be https://golang.org/pkg/net/http/#StatusText. This is therefore irrelevant.
Go
priority queue
https://github.com/beeker1121/goque/blob/4044bc29b28064db4f08e947c4972d5ca3e0f3c8/priority_queue.go#L84-L118
2
Go
underline text in label widget
https://github.com/gotk3/gotk3/blob/c89a2934a82722863fb6782d9245c4e7c3cf25f1/gtk/label.go#L45-L48
0
Go
linear regression
https://github.com/montanaflynn/stats/blob/38304a2645bb6bd10153d518e10a9b69190ff730/regression.go#L14-L47
3
Go
extract latitude and longitude from given input
https://github.com/mattbaird/elastigo/blob/2fe47fd29e4b70353f852ede77a196830d2924ec/lib/searchfilter.go#L324-L328
1
Go
fuzzy match ranking
https://github.com/coreos/go-omaha/blob/e409d983eb60842452f0fb6245137458ca45201a/omaha/client/fuzzytime.go#L51-L53
0
Go
output to html file
https://github.com/darkhelmet/tinderizer/blob/f46418cc7edd6695140867d40446645c428cbda2/job/job.go#L106-L110
1
Go
how to check if a checkbox is checked
https://github.com/rivo/tview/blob/90b4da1bd64ceee13d2e7d782b315b819190f7bf/checkbox.go#L58-L61
0
Go
how to empty array
https://github.com/kubernetes-retired/contrib/blob/89f6948e24578fed2a90a87871b2263729f90ac3/scale-demo/Godeps/_workspace/src/k8s.io/kubernetes/pkg/api/deep_copy_generated.go#L2724-L2726
0
To empty an array you set it to nil. Some content for this: https://yourbasic.org/golang/clear-slice/
Go
pretty print json
https://github.com/chzyer/logex/blob/445be9e134b204a8c920a30fedad02b2f2ab1efd/logex.go#L109-L117
2
Go
encode url
https://github.com/openshift/origin/blob/00a7323a2f454c2ca26ab58e1f487dc81e30e19c/pkg/oauthserver/oauth/external/handler.go#L339-L341
2
Go
convert int to bool
https://github.com/cloudflare/golibs/blob/4efefffc6d5c2168e1c209e44dad549e0674e7a3/bytepool/bytepool.go#L128-L135
0
Go
randomly extract x items from a list
https://github.com/urandom/readeef/blob/63b79a7bde3f3da1f4b6b3224235c346a34906f0/content/thumbnail/extract.go#L40-L70
0
Go
how to randomly pick a number
https://github.com/grokify/gotilla/blob/a89420864b4d1cc22c57bcc025cc960a91372b37/strconv/phonenumber/fictitiousgenerator.go#L49-L52
0
Go
html encode string
https://github.com/json-iterator/go/blob/0ff49de124c6f76f8494e194af75bde0f1a49a29/config.go#L261-L264
2
Go
httpclient post json
https://github.com/nlopes/slack/blob/65ea2b979a7ffe628676bdb6b924e2498d66c1bf/misc.go#L210-L219
2
Go
sorting multiple arrays based on another arrays sorted order
https://github.com/mc2soft/pq-types/blob/ada769d4011a027a5385b9c4e47976fe327350a6/int32_array.go#L77-L92
1
Go
nelder mead optimize
https://github.com/Workiva/go-datastructures/blob/f07cbe3f82ca2fd6e5ab94afce65fe43319f675f/numerics/optimization/nelder_mead.go#L555-L559
1
Go
get all parents of xml node
https://github.com/thecodeteam/gorackhd/blob/66bd88ab29593b880ba59b35db2c17a4b4bab1f1/client/nodes/nodes_client.go#L147-L168
0
Go
get all parents of xml node
https://github.com/vmware/govmomi/blob/fc3f0e9d2275df0e497a80917807a7c72d3c35bc/vim25/xml/typeinfo.go#L115-L228
0
Go
filter array
https://github.com/koron/go-dproxy/blob/fd990aff3734271e213a87f118319cf104bb2dd6/set.go#L90-L101
1
Go
convert int to string
https://github.com/go-openapi/swag/blob/b3e2804c8535ee0d1b89320afd98474d5b8e9e3b/convert.go#L91-L97
1
Go
how to extract zip file recursively
https://github.com/jdxcode/gode/blob/46ec1874bc6dce6e90fb1583a6d5110f7bc40ae1/zip.go#L10-L28
2
Go
k means clustering
https://github.com/chasex/redis-go-cluster/blob/222d81891f1d3fa7cf8b5655020352c3e5b4ec0f/cluster.go#L182-L222
0
Go
convert a date string into yyyymmdd
https://github.com/jpfielding/gorets/blob/1fe0f2d805aec564b6a18e24909e0f544a71e0a3/pkg/util/metadata_conversion.go#L17-L31
1
Go
custom http error response
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L6650-L6653
1
Go
binomial distribution
https://github.com/openshift/origin/blob/00a7323a2f454c2ca26ab58e1f487dc81e30e19c/pkg/security/mcs/label.go#L202-L204
0
The function is local to the function and not a free identifier (an identifier that was defined in the function block scope). Therefore this is not very useful.
Go
convert html to pdf
https://github.com/keybase/client/blob/b352622cd8cc94798cfacbcb56ada203c18e519e/go/kbfs/libhttpserver/content_type_utils.go#L54-L79
0
Go
group by count
https://github.com/pilosa/pilosa/blob/67d53f6b48a43f7fe090f48e35518ca8d024747c/encoding/proto/proto.go#L1136-L1145
1
Go
confusion matrix
https://github.com/sjwhitworth/golearn/blob/82e59c89f5020c45292c68472908f2150a87422e/examples/trees/trees.go#L15-L148
1
There is a function call, called `evaluation.GetConfusionMatrix` which I think might be relevant, but otherwise the query is very verbose and not detailed, hence I think this is a weak match. But I would be able to pick up some useful information out of this.
Go
encode url
https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/adapters/net/url/encode.go#L10-L13
2
Go
filter array
https://github.com/asaskevich/govalidator/blob/f61b66f89f4a311bef65f13e575bcf1a2ffadda6/arrays.go#L39-L47
2
Go
html encode string
https://github.com/minio/mc/blob/f0f156aca82e451c80b05d5be8eb01a04fee29dd/pkg/colorjson/encode.go#L615-L638
1
Go
get all parents of xml node
https://github.com/ChrisTrenkamp/goxpath/blob/c385f95c6022e7756e91beac5f5510872f7dcb7d/internal/execxp/findutil/findUtil.go#L48-L55
2
Go
encode url
https://github.com/polds/imgbase64/blob/cb7bf37298b7c2d13bd2451f51674d6bbdb46e44/images.go#L78-L84
2
Go
buffered file reader read text
https://github.com/tideland/golib/blob/b56169c6bd620eeb7cfc4b9b4027fc10d2934c84/sml/reader.go#L230-L260
1
Go
custom http error response
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L6720-L6723
0
Go
convert json to csv
https://github.com/ghetzel/diecast/blob/3cf4315555ad6d1e50e51ddf7778eedb91da56ca/util.go#L122-L156
1
Go
parse command line argument
https://github.com/iron-io/functions/blob/d59d7d1c40b2ff26b1afee31bde64df444e96525/fn/app/app.go#L89-L101
2
Go
convert a date string into yyyymmdd
https://github.com/control-center/serviced/blob/7028f598e6a224b4d421e09cb9b582ad7d000304/cli/api/logs.go#L511-L616
0
Go
httpclient post json
https://github.com/layer-x/layerx-commons/blob/a9e7080c940208a2a089fd854ecf4831b3b3f78c/lxhttpclient/httpclient.go#L268-L272
1
Go
get executable path
https://github.com/miketheprogrammer/go-thrust/blob/6aa55589fcc4ec586d442e4f7ed315afe3dfcda9/lib/spawn/helper_windows.go#L51-L54
1
Go
get current ip address
https://github.com/mesos/mesos-go/blob/ee67238bbd943c751ec0a5dffb09af2b0182d361/api/v0/mesosproto/mesos.pb.go#L4142-L4147
1
Go
how to get current date
https://github.com/pivotal-pez/pezauth/blob/7c01f70760da2124e6fac36b569d9130552afea8/integrations/inventory.go#L146-L156
1
The current date can be retrieved via `time.Now()`. Hence a weak match
Go
convert a utc time to epoch
https://github.com/Microsoft/go-winio/blob/3fe4fa31662f6ede2353d913e93907b8e096e0b6/wim/wim.go#L199-L207
0
Go
get current observable value
https://github.com/dmiller/go-seq/blob/7e6f351b75cf7a8534be0b93dd1929ea5f08d86a/stm/ref.go#L99-L106
1
Go
randomly extract x items from a list
https://github.com/fabric8-services/fabric8-wit/blob/54759c80c42ff2cf29b352e0f6c9330ce4ad7fce/kubernetes/deployments_kubeclient.go#L2066-L2077
0
Go
replace in file
https://github.com/gohugoio/hugo/blob/f94a388ad319eaa6b2d9b32658c1257e9ca8ce4c/releaser/releaser.go#L304-L328
3
Go
get the description of a http status code
https://github.com/moby/moby/blob/e516af6e5636023e85335ed8d9d0d824349dd6ff/errdefs/http_helpers.go#L14-L69
3
Go
filter array
https://github.com/rsc/pdf/blob/c47d69cf462f804ff58ca63c61a8fb2aed76587e/read.go#L793-L819
1
Go
linear regression
https://github.com/markcheno/go-talib/blob/cd53a9264d70bedcff891f59bf153275f524c100/talib.go#L5108-L5144
3
Go
set file attrib hidden
https://github.com/hajimehoshi/ebiten/blob/3ce8babd9bd0470bd5683158cc320277cc04d5ed/internal/graphicsdriver/opengl/context_js.go#L248-L252
0
Go
initializing array
https://github.com/ardielle/ardielle-go/blob/c4ab435c6f1ae2ece59bdd174b5b27c4f9828cff/rdl/basictypes_model.go#L284-L292
0
Go
get all parents of xml node
https://github.com/moovweb/gokogiri/blob/a1a828153468a7518b184e698f6265904108d957/xml/node.go#L379-L384
2
Java
fuzzy match ranking
https://github.com/spotbugs/spotbugs/blob/f6365c6eea6515035bded38efa4a7c8b46ccf28c/spotbugs/src/main/java/edu/umd/cs/findbugs/ba/vna/ValueNumberFrame.java#L507-L513
0
Java
create cookie
https://github.com/apache/spark/blob/25ee0474f47d9c30d6f553a7892d9549f91071cf/sql/hive-thriftserver/src/main/java/org/apache/hive/service/cli/thrift/ThriftHttpServlet.java#L281-L296
2
Java
parse query string in url
https://github.com/tanhaichao/leopard-lang/blob/8ab110f6ca4ea84484817a3d752253ac69ea268b/leopard-httpnb/src/main/java/io/leopard/httpnb/HttpHeaderDeleteImpl.java#L27-L47
0
Java
convert int to string
https://github.com/hankcs/HanLP/blob/a538d0722ab2e4980a9dcd9ea40324fc3ddba7ce/src/main/java/com/hankcs/hanlp/dictionary/TransformMatrixDictionary.java#L43-L46
0
Java
deducting the median from each column
https://github.com/datacleaner/AnalyzerBeans/blob/f82dae080d80d2a647b706a5fb22b3ea250613b3/core/src/main/java/org/eobjects/analyzer/job/runner/ConsumeRowHandler.java#L149-L220
0
Java
read properties file
https://github.com/hypfvieh/java-utils/blob/407c32d6b485596d4d2b644f5f7fc7a02d0169c6/src/main/java/com/github/hypfvieh/util/FileIoUtil.java#L78-L89
2
Java
get executable path
https://github.com/mike10004/common-helper/blob/744f82d9b0768a9ad9c63a57a37ab2c93bf408f4/native-helper/src/main/java/com/github/mike10004/nativehelper/subprocess/Subprocess.java#L505-L509
1
Java
set file attrib hidden
https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowMatrix.java#L130-L134
0
Java
how to randomly pick a number
https://github.com/apache/flink/blob/b62db93bf63cb3bb34dd03d611a779d9e3fc61ac/flink-java/src/main/java/org/apache/flink/api/java/io/LocalCollectionOutputFormat.java#L58-L64
2
Java
set file attrib hidden
https://github.com/eclipse/xtext-core/blob/bac941cb75cb24706519845ec174cfef874d7557/org.eclipse.xtext/packrat/org/eclipse/xtext/parser/packrat/AbstractPackratParser.java#L423-L429
0
Java
convert json to csv
https://github.com/GCRC/nunaliit/blob/0b4abfc64eef2eb8b94f852ce697de2e851d8e67/nunaliit2-couch-export/src/main/java/ca/carleton/gcrc/couch/export/records/ExportRecordsCSV.java#L118-L150
0
Java
filter array
https://github.com/tony19/logback-android/blob/028489c11ccfc1237a53923db06f22a90b41809c/logback-android/src/main/java/ch/qos/logback/core/spi/FilterAttachableImpl.java#L53-L66
0
Java
get the description of a http status code
https://github.com/drewnoakes/metadata-extractor/blob/a958e0b61b50e590731b3be1dca8df8e21ebd43c/Source/com/drew/metadata/exif/GpsDescriptor.java#L278-L292
0
Java
how to determine a string is a valid word
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/ie/demo/NERDemo.java#L36-L84
0
Java
all permutations of a list
https://github.com/biojava/biojava/blob/a1c71a8e3d40cc32104b1d387a3d3b560b43356e/biojava-structure/src/main/java/org/biojava/nbio/structure/symmetry/core/PermutationGroup.java#L61-L83
1
Java
randomly extract x items from a list
https://github.com/ysc/HtmlExtractor/blob/5378bc5f94138562c55506cf81de1ffe72ab701e/html-extractor/src/main/java/org/apdplat/extractor/html/model/ExtractResult.java#L129-L136
0
Java
convert json to csv
https://github.com/Omertron/api-themoviedb/blob/bf132d7c7271734e13b58ba3bc92bba46f220118/src/main/java/com/omertron/themoviedbapi/tools/PostTools.java#L68-L74
0
Java
string to date
https://github.com/E7du/jfinal-ext3/blob/8ffcbd150fd50c72852bb778bd427b5eb19254dc/src/main/java/com/jfinal/ext/kit/DateTimeKit.java#L384-L391
3
Java
get name of enumerated value
https://github.com/validator/validator/blob/c7b7f85b3a364df7d9944753fb5b2cd0ce642889/src/nu/validator/gnu/xml/aelfred2/XmlParser.java#L1781-L1807
0
Java
print model summary
https://github.com/jpmml/jpmml-model/blob/b2b00ec3f15ca9a3cce09553932837340688b1d7/pmml-model-example/src/main/java/org/jpmml/model/CopyExample.java#L66-L78
1
Java
how to make the checkbox checked
https://github.com/paypal/SeLion/blob/694d12d0df76db48d0360b16192770c6a4fbdfd2/client/src/main/java/com/paypal/selion/platform/html/Table.java#L324-L328
1
Java
initializing array
https://github.com/ganfra/MaterialSpinner/blob/524c399244c67137e97347f89e60950b61db3b2b/sample/src/main/java/fr/ganfra/materialspinner/sample/MainActivity.java#L82-L86
0
Java
convert int to string
https://github.com/colin-lee/mybatis-spring-support/blob/de412e98d00e9a012c0619778fa1a61832863b82/src/main/java/com/github/mybatis/util/UnicodeFormatter.java#L137-L143
0
Java
unique elements
https://github.com/Eernie/JMoribus/blob/229a23ff7b9007e3056d3753ca6213ff8307930f/core/src/main/java/nl/eernie/jmoribus/monitoring/JunitReportRunner.java#L158-L166
0
Java
copy to clipboard
https://github.com/spotbugs/spotbugs/blob/f6365c6eea6515035bded38efa4a7c8b46ccf28c/eclipsePlugin/src/de/tobject/findbugs/wizards/ExportWizardPage.java#L255-L261
2
Java
sorting multiple arrays based on another arrays sorted order
https://github.com/haifengl/smile/blob/e27e43e90fbaacce3f99d30120cf9dd6a764c33d/math/src/main/java/smile/sort/QuickSort.java#L886-L893
1
calls sort which does what we want.
Java
readonly array
https://github.com/EvidentSolutions/dalesbred/blob/713f5b6e152d97e1672ca68b9ff9c7c6c288ceb1/dalesbred/src/main/java/org/dalesbred/internal/instantiation/SqlArrayConversion.java#L60-L97
0
Java
format date
https://github.com/joniles/mpxj/blob/143ea0e195da59cd108f13b3b06328e9542337e8/src/main/java/net/sf/mpxj/mpx/MPXWriter.java#L1088-L1091
3
Java
normal distribution
https://github.com/deeplearning4j/deeplearning4j/blob/effce52f2afd7eeb53c5bcca699fcd90bd06822f/deeplearning4j/deeplearning4j-nn/src/main/java/org/deeplearning4j/nn/conf/distribution/Distributions.java#L28-L64
3
Java
how to get current date
https://github.com/yanzhenjie/Album/blob/b17506440d32909d42aba41f6a388041a25c8363/album/src/main/java/com/yanzhenjie/album/util/AlbumUtils.java#L266-L271
3
Java
readonly array
https://github.com/MariaDB/mariadb-connector-j/blob/d148c7cd347c4680617be65d9e511b289d38a30b/src/main/java/org/mariadb/jdbc/internal/failover/impl/MastersFailoverListener.java#L247-L260
0
Java
initializing array
https://github.com/bushidowallet/bushido-java-service/blob/e1a0157527e57459b509718044d2df44084876a2/bushido-wallet-service/src/main/java/com/bitcoin/blockchain/api/service/v2wallet/V2Wallet.java#L82-L91
0
Java
string to date
https://github.com/looly/hutool/blob/bbd74eda4c7e8a81fe7a991fa6c2276eec062e6a/hutool-core/src/main/java/cn/hutool/core/date/DateTime.java#L801-L808
0
Java
map to json
https://github.com/cloudant/sync-android/blob/5f1416ed1bd9ab05d7a4b8736480c8ae68bd7383/cloudant-sync-datastore-core/src/main/java/com/cloudant/sync/internal/util/JSONUtils.java#L166-L176
0