Found 9092 results in 3745 files, showing top 50 files (show more).
github.com/PolymerLabs/arcs-live:server/node_modules/fsevents/node_modules/needle/lib/needle.js: [ master, ]
150: function Needle(method, uri, data, options, callback) {
2: // Needle -- HTTP Client for Node.js
13:     debug       = require('debug')('needle'),
26: var user_agent  = 'Needle/' + version;
39: // these are the status codes that Needle interprets as redirects.
151:   // if (!(this instanceof Needle)) {
152:   //   return new Needle(method, uri, data, options, callback);
172: Needle.prototype.setup = function(uri, options) {
281: Needle.prototype.start = function() {
376: Needle.prototype.get_request_opts = function(method, uri, config) {
402: Needle.prototype.should_follow = function(location, config, original) {
424: Needle.prototype.send_request = function(count, method, uri, config, post_data, out, callback) {
771:     return new Needle(method, uri, null, options, callback).start();
777:     return new Needle(method, uri, data, options, callback).start();
782:   return new Needle(method, uri, data, opts, callback).start();
68:   boundary                : '--------------------NODENEEDLEHTTPCLIENT',
github.com/PolymerLabs/arcs-live:server/node_modules/grpc/node_modules/needle/lib/needle.js: [ master, ]
150: function Needle(method, uri, data, options, callback) {
2: // Needle -- HTTP Client for Node.js
13:     debug       = require('debug')('needle'),
26: var user_agent  = 'Needle/' + version;
39: // these are the status codes that Needle interprets as redirects.
151:   // if (!(this instanceof Needle)) {
152:   //   return new Needle(method, uri, data, options, callback);
172: Needle.prototype.setup = function(uri, options) {
283: Needle.prototype.start = function() {
378: Needle.prototype.get_request_opts = function(method, uri, config) {
404: Needle.prototype.should_follow = function(location, config, original) {
426: Needle.prototype.send_request = function(count, method, uri, config, post_data, out, callback) {
785:     return new Needle(method, uri, null, options, callback).start();
791:     return new Needle(method, uri, data, options, callback).start();
796:   return new Needle(method, uri, data, opts, callback).start();
68:   boundary                : '--------------------NODENEEDLEHTTPCLIENT',
github.com/kubernetes/minikube:site/themes/docsy/userguide/package-lock.json: [ master, ]
1098:             "needle": "^2.2.1",
1079:         "needle": {
github.com/kubernetes/minikube:site/package-lock.json: [ master, ]
1098:             "needle": "^2.2.1",
1079:         "needle": {
github.com/tensorflow/playground:package-lock.json: [ master, ]
1628:             "needle": "^2.2.1",
1609:         "needle": {
github.com/google/nomulus:package-lock.json: [ master, ]
1276:             "needle": "^2.2.1",
1257:         "needle": {
github.com/llvm-mirror/clang:lib/Sema/AnalysisBasedWarnings.cpp: [ master, ]
713:   const DeclRefExpr *Needle;
709: /// a particular declaration (the needle) within any evaluated component of an
718:   ContainsReference(ASTContext &Context, const DeclRefExpr *Needle)
719:     : Inherited(Context), FoundReference(false), Needle(Needle) {}
730:     if (E == Needle)
android.googlesource.com/platform/external/clang:lib/Sema/AnalysisBasedWarnings.cpp: [ master, ]
591:   const DeclRefExpr *Needle;
587: /// a particular declaration (the needle) within any evaluated component of an
596:   ContainsReference(ASTContext &Context, const DeclRefExpr *Needle)
597:     : Inherited(Context), FoundReference(false), Needle(Needle) {}
608:     if (E == Needle)
android.googlesource.com/platform/superproject:external/clang/lib/Sema/AnalysisBasedWarnings.cpp: [ master, ] Duplicate result
chromium.googlesource.com/native_client/pnacl-clang:lib/Sema/AnalysisBasedWarnings.cpp: [ master, ]
579:   const DeclRefExpr *Needle;
575: /// a particular declaration (the needle) within any evaluated component of an
582:   ContainsReference(ASTContext &Context, const DeclRefExpr *Needle)
584:       FoundReference(false), Needle(Needle) {}
595:     if (E == Needle)
android.googlesource.com/platform/external/clang_35a:lib/Sema/AnalysisBasedWarnings.cpp: [ master, ]
577:   const DeclRefExpr *Needle;
573: /// a particular declaration (the needle) within any evaluated component of an
580:   ContainsReference(ASTContext &Context, const DeclRefExpr *Needle)
582:       FoundReference(false), Needle(Needle) {}
593:     if (E == Needle)
github.com/bazelbuild/rules_nodejs:tools/fine_grained_deps_npm/package-lock.json: [ master, ]
768:             "needle": "^2.2.0",
751:         "needle": {
github.com/html5rocks/www.html5rocks.com:static/demos/lemdoodle/examples/lem-planes/lem-const.js: [ master, ]
172:   'needle': ['intro-finale/items-needle-thread', 'intro-finale/items-needle'],
223:     'needle', 'halo', 'noodles', 'neutron', 'nose'
github.com/html5rocks/www.html5rocks.com:static/demos/lemdoodle/examples/lem-embedded/lem-const.js: [ master, ]
172:   'needle': ['intro-finale/items-needle-thread', 'intro-finale/items-needle'],
223:     'needle', 'halo', 'noodles', 'neutron', 'nose'
github.com/google/kf:docs/kf.dev/themes/docsy/userguide/package-lock.json: [ master, ]
1098:             "needle": "^2.2.1",
1079:         "needle": {
github.com/google/rekall:rekall-core/rekall/scan.py: [ master, ]
170:     needle = None
171:     needle_offset = None
540:     needles = []
59:         """Is the needle found at 'offset'?
63:             checked for the needle.
173:     def __init__(self, needle=None, needle_offset=0, **kwargs):
175:         self.needle = needle
176:         self.needle_offset = needle_offset
180:         buffer_offset = buffer_as.get_buffer_offset(offset) + self.needle_offset
181:         if buffer_as.data.startswith(self.needle, buffer_offset):
182:             return self.needle
185:         # Search the rest of the buffer for the needle.
186:         buffer_offset = buffer_as.get_buffer_offset(offset) + self.needle_offset
187:         dindex = buffer_as.data.find(self.needle, buffer_offset + 1)
532:             yield ("StringCheck", dict(needle=expected_bytes,
533:                                        needle_offset=rel_offset + array_offset))
553:                 needle=self.needles[0])
96:     def __init__(self, needles=None, **kwargs):
100:           needles: A list of strings we search for.
103:           RuntimeError: No needles provided.
109:         if not needles:
110:             raise RuntimeError("No needles provided to search.")
114:         if max([len(x) for x in needles]) > 50:
118:         # sure all the needles are bytes too.
119:         byte_needles = [utils.SmartStr(x) for x in needles]
120:         tree = acora.AcoraBuilder(*byte_needles)
539:     # Override with the needles to check for.
542:     def __init__(self, needles=None, **kwargs):
544:         if needles is not None:
545:             self.needles = needles
550:         if len(needles) == 1:
557:                 needles=self.needles)
587:         self.needles = []
595:             self.needles.append(tmp.obj_vm.read(0, tmp.obj_size))
597:         # The common string between all the needles.
599:             ("MultiStringFinderCheck", dict(needles=self.needles)),
github.com/google/docsy:userguide/package-lock.json: [ master, ] Duplicate result
github.com/apache/openwhisk-client-js:package.json: [ master, ]
52:     "needle": "^2.4.0"
github.com/google/gvisor-website:package-lock.json: [ master, ]
1045:             "needle": "^2.2.1",
1026:         "needle": {
github.com/yeoman/generator-angular:route/index.js: [ master, ]
63:     needle: '.otherwise',
github.com/GoogleCloudPlatform/nodejs-serverless-url-shortener:shortlink/package-lock.json: [ master, ]
1281:             "needle": "^2.2.1",
1266:         "needle": {
android.googlesource.com/platform/external/qt:Mac-4.7.4/src/scripttools/debugging/qscriptsyntaxhighlighter.cpp: [ master, ]
129:     const QString needle;
128:     inline KeywordHelper(const QString &word) : needle(word) {}
134:     return helper.needle < QLatin1String(kw);
139:     return QLatin1String(kw) < helper.needle;
github.com/google/docsy-example:package-lock.json: [ master, ]
1088:             "needle": "^2.2.1",
1069:         "needle": {
github.com/google/docsy-example:themes/docsy/userguide/package-lock.json: [ master, ] Duplicate result
github.com/firebase/snippets-node:auth/package-lock.json: [ master, ]
1017:             "needle": "^2.2.1",
1000:         "needle": {
github.com/tensorflow/tfjs-examples:lstm-text-generation/data.js: [ master, ]
26:     needle: 'Nietzsche'
31:     needle: 'Jules Verne'
36:     needle: 'Shakespeare'
40:     needle: 'TensorFlow.js Code (Compiled, 0.11.7)'
github.com/GoogleChrome/chrome-app-samples:samples/text-editor/lib/ace/search.js: [ master, ]
49:         needle: "",
74:         if (!this.$options.needle)
94:         if (!options.needle)
204:             var needle = this.$options.needle;
206:             needle = lang.escapeRegExp(this.$options.needle);
210:             needle = "\\b" + needle + "\\b";
218:         var re = new RegExp(needle, modifier);
github.com/GoogleChrome/chrome-app-samples:samples/text-editor/lib/ace/mode/text.js: [ master, ]
135:             needle: needle
117:         var needle = line.substring(Math.max(startOuter, 0),
121:         if ((startOuter >= 0 && /^[\w\d]/.test(needle)) ||
122:             (endOuter <= lineCols && /[\w\d]$/.test(needle)))
125:         needle = line.substring(selection.start.column, selection.end.column);
126:         if (!/^[\w\d]+$/.test(needle))
android.googlesource.com/platform/external/qt:Windows-4.7.4/src/scripttools/debugging/qscriptsyntaxhighlighter.cpp: [ master, ]
129:     const QString needle;
128:     inline KeywordHelper(const QString &word) : needle(word) {}
134:     return helper.needle < QLatin1String(kw);
139:     return QLatin1String(kw) < helper.needle;
github.com/apache/openwhisk-client-js:lib/client.js: [ master, ]
22: const needle = require('needle')
27:  * This implements a request-promise-like facade over the needle
28:  * library. There are two gaps between needle and rp that need to be
30:  * needle's non-excepting >=400 statusCode responses into exceptions
50:   // this situation than needle
53:   return needle(opts.method.toLowerCase(), // needle takes e.g. 'put' not 'PUT'
github.com/apache/openwhisk-catalog:packages/github/webhook.js: [ master, ]
18: const needle = require('needle');
72:       needle.post(registrationEndpoint, body, { 'json': true, username: username, password: accessToken, user_ag...(50 bytes skipped)...
99:       needle.get(registrationEndpoint, { 'json': true, username: username, password: accessToken, user_agent: 'w...(43 bytes skipped)...
116:               needle.delete(body[i].url, null, { username: username, password: accessToken, user_agent: 'whisk' }, funct...(29 bytes skipped)...
android.googlesource.com/platform/external/abseil-cpp:absl/strings/str_replace_benchmark.cc: [ master, ]
30:   const char* needle;
76:       const char* needle_string = nullptr;
79:         auto needlepos = after_replacing_many->find(r.needle, pos);
82:           needle_string = r.needle;
87:       after_replacing_many->replace(next_pos, strlen(needle_string),
80:         if (needlepos != std::string::npos && needlepos < next_pos) {
81:           next_pos = needlepos;
github.com/GoogleCloudPlatform/pubsub:load-test-framework/node_src/package-lock.json: [ master, ]
591:             "needle": "^2.2.1",
576:         "needle": {
github.com/apache/openwhisk-catalog:packages/slack/post.js: [ master, ]
18: const needle = require('needle');
79:         needle.post(params.url, body, function (err, res, body) {
github.com/apache/marmotta:libraries/kiwi/kiwi-sparql/src/main/java/org/apache/marmotta/kiwi/sparql/builder/collect/SQLProjectionFinder.java: [ master, ]
39:     private String needle;
43:     public SQLProjectionFinder(TupleExpr expr, String needle) {
44:         this.needle = needle;
50:         if(node.getName().equals(needle)) {
59:             if(g.equals(needle)) {
68:         if(node.getName().equals(needle)) {
77:             if(elem.getSourceName().equals(needle)) {
github.com/firebase/firebase-ios-sdk:Firestore/third_party/abseil-cpp/absl/strings/str_replace_benchmark.cc: [ master, ]
30:   const char* needle;
76:       const char* needle_string = nullptr;
79:         auto needlepos = after_replacing_many->find(r.needle, pos);
82:           needle_string = r.needle;
87:       after_replacing_many->replace(next_pos, strlen(needle_string),
80:         if (needlepos != std::string::npos && needlepos < next_pos) {
81:           next_pos = needlepos;
github.com/chromium/chromium:third_party/abseil-cpp/absl/strings/str_replace_benchmark.cc: [ master, ] Duplicate result
chromium.googlesource.com/arc/arc:third_party/chromium-ppapi/third_party/abseil-cpp/absl/strings/str_replace_benchmark.cc: [ master, ] Duplicate result
chromium.googlesource.com/ios-chromium-mirror:third_party/abseil-cpp/absl/strings/str_replace_benchmark.cc: [ master, ] Duplicate result
chromium.googlesource.com/chromium/src:third_party/abseil-cpp/absl/strings/str_replace_benchmark.cc: [ master, ] Duplicate result
chromium.googlesource.com/chromium/src/third_party:abseil-cpp/absl/strings/str_replace_benchmark.cc: [ master, ] Duplicate result
eclipse.googlesource.com/jgit/jgit:org.eclipse.jgit/src/org/eclipse/jgit/util/RawSubStringPattern.java: [ master, ]
59: 	private final byte[] needle;
57: 	private final String needleString;
75: 		needle = new byte[b.length];
77: 			needle[i] = lc(b[i]);
91: 		final int needleLen = needle.length;
92: 		final byte first = needle[0];
109: 				if (neq(needle[j], text[si]))
72: 		needleString = patternText;
96: 		final int maxPos = rcs.endPtr - needleLen;
108: 			for (int j = 1; j < needleLen; j++, si++) {
131: 		return needleString;
github.com/firebase/firestore-codelab-extended-swift:Pods/FirebaseFirestore/Firestore/third_party/abseil-cpp/absl/strings/str_replace_benchmark.cc: [ master, ] Duplicate result
android.googlesource.com/platform/external/jetbrains/JetBrainsRuntime:test/hotspot/jtreg/compiler/intrinsics/string/TestStringIntrinsics2.java: [ master, ]
161:     static String needle = "<miss>";
184:     static int indexOf_no_match_unknown_needle(String s, String needle) {
190:     static int indexOf_no_match_imm_needle(String s) {
196:     static int indexOf_no_match_imm2_needle(String s) {
202:     static int indexOf_no_match_imm1_needle(String s) {
221:     static String indexOf_reads_past_string_unknown_needle(String s, String needle) {
231:     static String indexOf_reads_past_string_imm_needle(String s) {
240:     static String indexOf_reads_past_string_imm2_needle(String s) {
249:     static String indexOf_reads_past_string_imm1_needle(String s) {
313:     static int indexOf_match_at_end_of_string_unknown_needle(String s, String needle) {
319:     static int indexOf_match_at_end_of_string_imm_needle(String s) {
325:     static int indexOf_match_at_end_of_string_imm2_needle(String s) {
331:     static int indexOf_match_at_end_of_string_imm1_needle(String s) {
438:     static String indexOf_match_spans_end_of_string_unknown_needle(String s, String needle) {
447:     static String indexOf_match_spans_end_of_string_imm_needle(String s) {
456:     static String indexOf_match_spans_end_of_string_imm2_needle(String s) {
481:     public static void test_indexOf_imm1_needle() {
498:     static int indexOf_imm1_needle(String s) {
512:     static int indexOf_imm1Latin1_needle(String s) {
517:     static int indexOf_imm1UTF16_needle(String s) {
522:     static int indexOf_immUTF16_needle(String s) {
71:     // - The needle is exactly at the end of the string.
72:     // - The needle spans the end of the string
75:     // - needle is first char
76:     // - needle is last char
80:     // We test all these for an unknown needle, and needles known to the compiler
165:         int res = indexOf_no_match_unknown_needle(ss[0], "<miss>");
166:         assertEquals(res, -1, "test_indexOf_no_match_unknown_needle matched at: " + res);
167:         res = indexOf_no_match_imm_needle(ss[0]);
168:         assertEquals(res, -1, "test_indexOf_no_match_imm_needle matched at: " + res);
169:         res = indexOf_no_match_imm2_needle(ss[0]);
170:         assertEquals(res, -1, "test_indexOf_no_match_imm2_needle matched at: " + res);
173:         res = indexOf_no_match_unknown_needle(ss2[0], "<miss>");
174:         assertEquals(res, -1, "test_indexOf_no_match_unknown_needle matched at: " + res);
175:         res = indexOf_no_match_imm_needle(ss2[0]);
176:         assertEquals(res, -1, "test_indexOf_no_match_imm_needle matched at: " + res);
177:         res = indexOf_no_match_imm2_needle(ss2[0]);
178:         assertEquals(res, -1, "test_indexOf_no_match_imm2_needle matched at: " + res);
179:         res = indexOf_no_match_imm1_needle(ss2[0]);
180:         assertEquals(res, -1, "test_indexOf_no_match_imm1_needle matched at: " + res);
185:         int index = s.indexOf(needle);
210:         String res = indexOf_reads_past_string_unknown_needle(ss[0], "<hit>");
211:         assertEquals(res, null, "test_indexOf_reads_past_string_unknown_needle " + res);
212:         res = indexOf_reads_past_string_imm_needle(ss[0]);
213:         assertEquals(res, null, "test_indexOf_reads_past_string_imm_needle " + res);
214:         res = indexOf_reads_past_string_imm2_needle(ss[0]);
215:         assertEquals(res, null, "test_indexOf_reads_past_string_imm2_needle " + res);
216:         res = indexOf_reads_past_string_imm1_needle(ss[0]);
217:         assertEquals(res, null, "test_indexOf_reads_past_string_imm1_needle " + res);
222:         int index = s.indexOf(needle);
224:             return "Found needle \"" + needle + "\" behind string of length " + s.length()
234:             return "Found needle \"<hit>\" behind string of length " + s.length() + " at position " + index + ".";
243:             return "Found needle \"<h\" behind string of length " + s.length() + " at position " + index + ".";
252:             return "Found needle \"<h\" behind string of length " + s.length() + " at position " + index + ".";
275:         res = indexOf_match_at_end_of_string_unknown_needle(text3, "<hit>");
277:         res = indexOf_match_at_end_of_string_unknown_needle(text4, "<hit>");
279:         res = indexOf_match_at_end_of_string_unknown_needle(text5, "<hit>");
281:         res = indexOf_match_at_end_of_string_unknown_needle(text6, "<hit>");
284:         res = indexOf_match_at_end_of_string_imm_needle(text3);
286:         res = indexOf_match_at_end_of_string_imm_needle(text4);
288:         res = indexOf_match_at_end_of_string_imm_needle(text5);
290:         res = indexOf_match_at_end_of_string_imm_needle(text6);
293:         res = indexOf_match_at_end_of_string_imm2_needle(text7);
295:         res = indexOf_match_at_end_of_string_imm2_needle(text8);
297:         res = indexOf_match_at_end_of_string_imm2_needle(text9);
299:         res = indexOf_match_at_end_of_string_imm2_needle(text10);
302:         res = indexOf_match_at_end_of_string_imm1_needle(text7);
304:         res = indexOf_match_at_end_of_string_imm1_needle(text8);
306:         res = indexOf_match_at_end_of_string_imm1_needle(text9);
308:         res = indexOf_match_at_end_of_string_imm1_needle(text10);
314:         int index = s.indexOf(needle);
361:         res = indexOf_match_spans_end_of_string_unknown_needle(s0_1, "<hit>");
362:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_unknown_needle s0_1 " + res);
363:         res = indexOf_match_spans_end_of_string_unknown_needle(s0_2, "<hit>");
364:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_unknown_needle s0_2 " + res);
365:         res = indexOf_match_spans_end_of_string_unknown_needle(s0_3, "<hit>");
366:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_unknown_needle s0_3 " + res);
367:         res = indexOf_match_spans_end_of_string_unknown_needle(s0_4, "<hit>");
368:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_unknown_needle s0_4 " + res);
369:         res = indexOf_match_spans_end_of_string_unknown_needle(s1_1, "<hit>");
370:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_unknown_needle s1_1 " + res);
371:         res = indexOf_match_spans_end_of_string_unknown_needle(s1_2, "<hit>");
372:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_unknown_needle s1_2 " + res);
373:         res = indexOf_match_spans_end_of_string_unknown_needle(s1_3, "<hit>");
374:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_unknown_needle s1_3 " + res);
375:         res = indexOf_match_spans_end_of_string_unknown_needle(s1_4, "<hit>");
376:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_unknown_needle s1_4 " + res);
377:         res = indexOf_match_spans_end_of_string_unknown_needle(s2_1, "<hit>");
378:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_unknown_needle s2_1 " + res);
379:         res = indexOf_match_spans_end_of_string_unknown_needle(s2_2, "<hit>");
380:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_unknown_needle s2_2 " + res);
381:         res = indexOf_match_spans_end_of_string_unknown_needle(s2_3, "<hit>");
382:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_unknown_needle s2_3 " + res);
383:         res = indexOf_match_spans_end_of_string_unknown_needle(s2_4, "<hit>");
384:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_unknown_needle s2_4 " + res);
385:         res = indexOf_match_spans_end_of_string_unknown_needle(s3_1, "<hit>");
386:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_unknown_needle s3_1 " + res);
387:         res = indexOf_match_spans_end_of_string_unknown_needle(s3_2, "<hit>");
388:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_unknown_needle s3_2 " + res);
389:         res = indexOf_match_spans_end_of_string_unknown_needle(s3_3, "<hit>");
390:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_unknown_needle s3_3 " + res);
391:         res = indexOf_match_spans_end_of_string_unknown_needle(s3_4, "<hit>");
392:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_unknown_needle s3_4 " + res);
394:         res = indexOf_match_spans_end_of_string_imm_needle(s0_1);
395:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_imm_needle s0_1 " + res);
396:         res = indexOf_match_spans_end_of_string_imm_needle(s0_2);
397:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_imm_needle s0_2 " + res);
398:         res = indexOf_match_spans_end_of_string_imm_needle(s0_3);
399:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_imm_needle s0_3 " + res);
400:         res = indexOf_match_spans_end_of_string_imm_needle(s0_4);
401:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_imm_needle s0_4 " + res);
402:         res = indexOf_match_spans_end_of_string_imm_needle(s1_1);
403:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_imm_needle s1_1 " + res);
404:         res = indexOf_match_spans_end_of_string_imm_needle(s1_2);
405:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_imm_needle s1_2 " + res);
406:         res = indexOf_match_spans_end_of_string_imm_needle(s1_3);
407:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_imm_needle s1_3 " + res);
408:         res = indexOf_match_spans_end_of_string_imm_needle(s1_4);
409:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_imm_needle s1_4 " + res);
410:         res = indexOf_match_spans_end_of_string_imm_needle(s2_1);
411:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_imm_needle s2_1 " + res);
412:         res = indexOf_match_spans_end_of_string_imm_needle(s2_2);
413:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_imm_needle s2_2 " + res);
414:         res = indexOf_match_spans_end_of_string_imm_needle(s2_3);
415:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_imm_needle s2_3 " + res);
416:         res = indexOf_match_spans_end_of_string_imm_needle(s2_4);
417:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_imm_needle s2_4 " + res);
418:         res = indexOf_match_spans_end_of_string_imm_needle(s3_1);
419:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_imm_needle s3_1 " + res);
420:         res = indexOf_match_spans_end_of_string_imm_needle(s3_2);
421:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_imm_needle s3_2 " + res);
422:         res = indexOf_match_spans_end_of_string_imm_needle(s3_3);
423:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_imm_needle s3_3 " + res);
424:         res = indexOf_match_spans_end_of_string_imm_needle(s3_4);
425:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_imm_needle s3_4 " + res);
427:         res = indexOf_match_spans_end_of_string_imm2_needle(s0_1x);
428:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_imm2_needle s0_1x " + res);
429:         res = indexOf_match_spans_end_of_string_imm2_needle(s1_1x);
430:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_imm2_needle s1_1x " + res);
431:         res = indexOf_match_spans_end_of_string_imm2_needle(s2_1x);
432:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_imm2_needle s2_1x " + res);
433:         res = indexOf_match_spans_end_of_string_imm2_needle(s3_1x);
434:         assertEquals(res, null, "test_indexOf_match_spans_end_of_string_imm2_needle s3_1x " + res);
439:         int index = s.indexOf(needle);
441:             return "Found needle \"" + needle + "\" that is spanning the end of the string: " + s + ".";
450:             return "Found needle \"<hit>\" that is spanning the end of the string: " + s + ".";
459:             return "Found needle \"<h\" that is spanning the end of the string: " + s + ".";
482:         assertEquals(     -1, indexOf_imm1_needle(text16), "test_indexOf_imm1_needle no_match");
484:         assertEquals(      0, indexOf_imm1_needle(text11), "test_indexOf_imm1_needle first_matches");
486:         assertEquals(len12-1, indexOf_imm1_needle(text12), "test_indexOf_imm1_needle last_matches");
487:         assertEquals(len13-1, indexOf_imm1_needle(text13), "test_indexOf_imm1_needle last_matches");
488:         assertEquals(len14-1, indexOf_imm1_needle(text14), "test_indexOf_imm1_needle last_matches");
489:         assertEquals(len15-1, indexOf_imm1_needle(text15), "test_indexOf_imm1_needle last_matches");
491:         assertEquals(     -1, indexOf_imm1_needle(text12_1), "test_indexOf_imm1_needle walked_past");
492:         assertEquals(     -1, indexOf_imm1_needle(text13_1), "test_indexOf_imm1_needle walked_past");
493:         assertEquals(     -1, indexOf_imm1_needle(text14_1), "test_indexOf_imm1_needle walked_past");
494:         assertEquals(     -1, indexOf_imm1_needle(text15_1), "test_indexOf_imm1_needle walked_past");
506:         assertEquals(      3, indexOf_imm1Latin1_needle(text1UTF16), "test_indexOf_immUTF16");
507:         assertEquals(      1, indexOf_imm1UTF16_needle(text1UTF16), "test_indexOf_immUTF16");
508:         assertEquals(      1, indexOf_immUTF16_needle(text1UTF16), "test_indexOf_immUTF16");
74:     // A special case are needles of length 1. For these we test:
github.com/GoogleCloudPlatform/gcsbeat:vendor/github.com/gobwas/glob/match/contains.go: [ master, ]
9: 	Needle string
13: func NewContains(needle string, not bool) Contains {
14: 	return Contains{needle, not}
18: 	return strings.Contains(s, self.Needle) != self.Not
24: 	idx := strings.Index(s, self.Needle)
31: 		offset = idx + len(self.Needle)
57: 	return fmt.Sprintf("<contains:%s[%s]>", not, self.Needle)
github.com/asciidoctor/asciidoctor-reveal.js:test/js-babel/package-lock.json: [ master, ]
1491:             "needle": "^2.2.0",
1472:         "needle": {
github.com/angular/protractor:testapp/package-lock.json: [ master, ]
1504:             "needle": "^2.2.0",
1485:         "needle": {
github.com/apache/ranger:security-admin/src/test/javascript/package-lock.json: [ master, ]
1437:             "needle": "^2.2.0",
1418:         "needle": {
github.com/src-d/kmcuda:src/test.R: [ develop, ]
96:     needle <- "--file="
97:     match <- grep(needle, cmdArgs)
99:       return(normalizePath(sub(needle, "", cmdArgs[match])))
android.googlesource.com/platform/external/opencv3:modules/cudalegacy/src/cuda/needle_map.cu: [ master, ]
51:         #define NEEDLE_MAP_SCALE 16
54:         __global__ void NeedleMapAverageKernel(const PtrStepSzf u, const PtrStepf v, PtrStepf u_avg, PtrStepf v_avg)
116:         void NeedleMapAverage_gpu(PtrStepSzf u, PtrStepSzf v, PtrStepSzf u_avg, PtrStepSzf v_avg)
127:         __global__ void NeedleMapVertexKernel(const PtrStepSzf u_avg, const PtrStepf v_avg, float* vertex_data, float* color_data,...(44 bytes skipped)...
207:         void CreateOpticalFlowNeedleMap_gpu(PtrStepSzf u_avg, PtrStepSzf v_avg, float* vertex_buffer, float* color_data, float max_flow,...(28 bytes skipped)...
56:             __shared__ float smem[2 * NEEDLE_MAP_SCALE];
59:             volatile float* v_col_sum = u_col_sum + NEEDLE_MAP_SCALE;
61:             const int x = blockIdx.x * NEEDLE_MAP_SCALE + threadIdx.x;
62:             const int y = blockIdx.y * NEEDLE_MAP_SCALE;
68:             for(int i = 0; i < NEEDLE_MAP_SCALE; ++i)
106:                 const float coeff = 1.0f / (NEEDLE_MAP_SCALE * NEEDLE_MAP_SCALE);
118:             const dim3 block(NEEDLE_MAP_SCALE);
133:             const float arrow_x = x * NEEDLE_MAP_SCALE + NEEDLE_MAP_SCALE / 2.0f;
134:             const float arrow_y = y * NEEDLE_MAP_SCALE + NEEDLE_MAP_SCALE / 2.0f;
121:             NeedleMapAverageKernel<<<grid, block>>>(u, v, u_avg, v_avg);
212:             NeedleMapVertexKernel<<<grid, block>>>(u_avg, v_avg, vertex_buffer, color_data, max_flow, xscale, yscale);...(0 bytes skipped)...