github.com/PolymerLabs/arcs-live:concrete-storage/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/PolymerLabs/arcs-live:concrete-storage/node_modules/grpc/node_modules/needle/package.json: [ master, ] |
---|
30: "needle": "bin/needle"
|
2: "_from": "needle@^2.2.1",
|
3: "_id": "needle@2.3.1",
|
6: "_location": "/grpc/needle",
|
11: "raw": "needle@^2.2.1",
|
12: "name": "needle",
|
13: "escapedName": "needle",
|
21: "_resolved": "https://registry.npmjs.org/needle/-/needle-2.3.1.tgz",
|
23: "_spec": "needle@^2.2.1",
|
33: "url": "https://github.com/tomas/needle/issues"
|
57: "homepage": "https://github.com/tomas/needle#readme",
|
75: "main": "./lib/needle",
|
76: "name": "needle",
|
79: "url": "git+https://github.com/tomas/needle.git"
|
github.com/PolymerLabs/arcs-live:concrete-storage/node_modules/grpc/node_modules/needle/README.md: [ master, ] |
---|
1: Needle
|
144: ### needle(method, url[, data][, options][, callback]) `(> 2.0.x)`
|
157: ### needle.head(url[, options][, callback])
|
170: ### needle.get(url[, options][, callback])
|
178: ### needle.post(url, data[, options][, callback])
|
190: ### needle.put(url, data[, options][, callback])
|
206: ### needle.patch(url, data[, options][, callback])
|
210: ### needle.delete(url, data[, options][, callback])
|
223: ### needle.request(method, url, data[, options][, callback])
|
4: [](https://nodei.co/npm/needle/)
|
9: var needle = require('needle');
|
11: needle.get('http://www.google.com', function(error, response) {
|
17: Callbacks not floating your boat? Needle got your back.
|
25: // the callback is optional, and needle returns a `readableStream` object
|
27: needle
|
35: From version 2.0.x up, Promises are also supported. Just call `needle()` directly and you'll get a native Promise object.
|
38: needle('put', 'https://hacking.the.gibson/login', { password: 'god' }, { json: true })
|
47: With only two real dependencies, Needle supports:
|
61: This makes Needle an ideal alternative for performing quick HTTP requests in Node, either for API interaction, downlo...(144 bytes skipped)...
|
67: $ npm install needle
|
75: needle('get', 'https://server.com/posts/12')
|
84: needle.get('ifconfig.me/all.json', function(error, response, body) {
|
94: needle.get('https://google.com/images/logo.png').pipe(out).on('finish', function() {
|
99: As you can see, you can use Needle with Promises or without them. When using Promises or when a callback is passed, the response's bod...(179 bytes skipped)...
|
101: ...(19 bytes skipped)... passed, however, the buffering logic will be skipped but the response stream will still go through Needle's processing pipeline, so you get all the benefits of post-processing while keeping the streamishne...(25 bytes skipped)...
|
106: Depending on the response's Content-Type, Needle will either attempt to parse JSON or XML streams, or, if a text response was received, will ensure ...(41 bytes skipped)...
|
111: needle.get('http://stackoverflow.com/feeds', { compressed: true }, function(err, resp) {
|
126: var stream = needle.get('https://backend.server.com/everything.html', options);
|
146: Calling `needle()` directly returns a Promise. Besides `method` and `url`, all parameters are optional, although wh...(93 bytes skipped)...
|
149: needle('get', 'http://some.url.com')
|
155: Except from the above, all of Needle's request methods return a Readable stream, and both `options` and `callback` are optional. If pass...(126 bytes skipped)...
|
160: needle.head('https://my.backend.server.com', {
|
173: needle.get('google.com/search?q=syd+barrett', function(err, resp) {
|
174: // if no http:// is found, Needle will automagically prepend it.
|
185: needle.post('https://my.app.com/endpoint', 'foo=bar', options, function(err, resp) {
|
201: needle.put('https://api.app.com/v2', nested, function(err, resp) {
|
218: needle.delete('https://api.app.com/messages/123', null, options, function(err, resp) {
|
233: needle.request('get', 'forum.com/search', params, function(err, resp) {
|
239: Now, if you set pass `json: true` among the options, Needle won't set your params as a querystring but instead send a JSON representation of your data through ...(97 bytes skipped)...
|
242: needle.request('get', 'forum.com/search', params, { json: true }, function(err, resp) {
|
275: ...(74 bytes skipped)... data was consumed or an error ocurred somewhere in between. Unlike a regular stream's `end` event, Needle's `done` will be fired either on success or on failure, which is why the first argument may be an E...(28 bytes skipped)...
|
278: var resp = needle.get('something.worthy/of/being/streamed/by/needle');
|
291: Emitted when an error ocurrs. This should only happen once in the lifecycle of a Needle request.
|
302: ...(3 bytes skipped)... information about options that've changed, there's always [the changelog](https://github.com/tomas/needle/releases).
|
314: ...(182 bytes skipped)...p) errors on some servers that misbehave when receiving payloads of unknown size. Set it to `0` and Needle will get and set the stream's length for you, or leave unset for the default behaviour, which is no...(43 bytes skipped)...
|
321: ...(71 bytes skipped)...se bodies automagically. Defaults to `true`. You can also set this to 'xml' or 'json' in which case Needle will *only* parse the response if the content type matches.
|
336: - `user_agent`: Sets the 'User-Agent' HTTP header. Defaults to `Needle/{version} (Node.js {node_version})`.
|
361: - `follow_if_same_host` : When true, Needle will only follow redirects that point to the same host as the original request. `false` by default....(0 bytes skipped)...
|
362: - `follow_if_same_protocol` : When true, Needle will only follow redirects that point to the same protocol as the original request. `false` by defa...(4 bytes skipped)...
|
367: Yes sir, we have it. Needle includes a `defaults()` method, that lets you override some of the defaults for all future requests...(12 bytes skipped)...
|
370: needle.defaults({
|
376: This will override Needle's default user agent and 10-second timeout, and disable response parsing, so you don't need to pass...(38 bytes skipped)...
|
381: Since you can pass a custom HTTPAgent to Needle you can do all sorts of neat stuff. For example, if you want to use the [`tunnel`](https://github.c...(67 bytes skipped)...
|
389: needle.get('foobar.com', { agent: myAgent });
|
395: Unless you're running an old version of Node (< 0.11.4), by default Needle won't set the Connection header on requests, yielding Node's default behaviour of keeping the conne...(118 bytes skipped)...
|
397: ...(82 bytes skipped)...ime from exiting, either because of a bug or 'feature' that was changed on 0.11.4. To overcome this Needle does set the 'Connection' header to 'close' on those versions, however this also means that making ...(62 bytes skipped)...
|
407: needle.get('https://api.server.com', { username: 'you', password: 'secret' },
|
416: needle.get('https://username:password@api.server.com', function(err, resp) {
|
424: needle.get('other.server.com', { username: 'you', password: 'secret', auth: 'digest' },
|
426: // needle prepends 'http://' to your URL, if missing
|
439: needle.get('api.github.com/users/tomas', options, function(err, resp, body) {
|
448: needle.get('https://news.ycombinator.com/rss', function(err, resp, body) {
|
456: needle.get('http://upload.server.com/tux.png', { output: '/tmp/tux.png' }, function(err, resp, body) {
|
464: needle.get('http://search.npmjs.org', { proxy: 'http://localhost:1234' }, function(err, resp, body) {
|
472: var stream = needle.get('http://www.as35662.net/100.log');
|
485: var stream = needle.get('http://jsonplaceholder.typicode.com/db', { parse: true });
|
504: needle.get('http://jsonplaceholder.typicode.com/db', { parse: true })
|
519: needle.post('http://my.other.app.com', data, { multipart: true }, function(err, resp, body) {
|
520: // needle will read the file and include it in the form-data as binary
|
527: needle.put('https://api.app.com/v2', fs.createReadStream('myfile.txt'), function(err, resp, body) {
|
545: needle.post('http://somewhere.com/over/the/rainbow', data, { multipart: true }, function(err, resp, body) ...(1 bytes skipped)...
|
563: needle.post('http://test.com/', data, { timeout: 5000, multipart: true }, function(err, resp, body) {
|
582: > You can use Docker to run tests by creating a container and mounting the needle project directory on `/app`
|
583: > `docker create --name Needle -v /app -w /app -v /app/node_modules -i node:argon`
|
github.com/PolymerLabs/arcs-live:concrete-storage/node_modules/grpc/node_modules/needle/examples/upload-image.js: [ master, ] |
---|
1: var needle = require('../'),
|
21: needle.post(url, params, opts, function(err, resp) {
|
31: needle.get(url, function(err, resp) {
|
github.com/PolymerLabs/arcs-live:concrete-storage/node_modules/grpc/node_modules/needle/examples/multipart-stream.js: [ master, ] |
---|
1: var needle = require('./../');
|
3: var url = 'http://posttestserver.com/post.php?dir=needle';
|
15: var resp = needle.post(url, data, { multipart: true });
|
github.com/PolymerLabs/arcs-live:concrete-storage/node_modules/grpc/node_modules/needle/examples/stream-to-file.js: [ master, ] |
---|
2: needle = require('./..'),
|
9: needle
|
github.com/kubernetes/minikube:site/package-lock.json: [ master, ] |
---|
1127: "needle": "^2.2.1",
|
1108: "needle": {
|
github.com/kubernetes/minikube:site/themes/docsy/userguide/package-lock.json: [ master, ] |
---|
1098: "needle": "^2.2.1",
|
1079: "needle": {
|
github.com/angular/material-start:package-lock.json: [ master, ] |
---|
1624: "needle": "^2.2.1",
|
1605: "needle": {
|
github.com/apache/beam:website/www/site/themes/docsy/userguide/package-lock.json: [ master, ] |
---|
1098: "needle": "^2.2.1",
|
1079: "needle": {
|
github.com/html5rocks/www.html5rocks.com:static/demos/lemdoodle/examples/lem-planes/combined.js: [ master, ] |
---|
5051: 'needle': ['intro-finale/items-needle-thread', 'intro-finale/items-needle'],
|
5102: 'needle', 'halo', 'noodles', 'neutron', 'nose'
|
13797: 'intro-finale/items-needle-thread',
|
13798: 'intro-finale/items-needle',
|
15100: 'intro-finale/items-needle-thread': { width: 68, height: 65, x: 834, y: 0 },
|
15101: 'intro-finale/items-needle': { top: 8, width: 59, height: 51, x: 904, y: 0 },
|
github.com/html5rocks/www.html5rocks.com:static/demos/lemdoodle/examples/lem-embedded/combined.js: [ master, ] |
---|
5024: 'needle': ['intro-finale/items-needle-thread', 'intro-finale/items-needle'],
|
5075: 'needle', 'halo', 'noodles', 'neutron', 'nose'
|
13843: nItems = ['needle', 'noodles'];
|
15362: 'intro-finale/items-needle-thread',
|
15363: 'intro-finale/items-needle',
|
16665: 'intro-finale/items-needle-thread': { width: 68, height: 65, x: 834, y: 0 },
|
16666: 'intro-finale/items-needle': { top: 8, width: 59, height: 51, x: 904, y: 0 },
|
github.com/kubernetes/website:themes/docsy/userguide/package-lock.json: [ master, ] Duplicate result |
---|
github.com/llvm-mirror/clang:lib/Sema/AnalysisBasedWarnings.cpp: [ master, ] |
---|
727: const DeclRefExpr *Needle;
|
723: /// a particular declaration (the needle) within any evaluated component of an
|
732: ContainsReference(ASTContext &Context, const DeclRefExpr *Needle)
|
733: : Inherited(Context), FoundReference(false), Needle(Needle) {}
|
744: if (E == Needle)
|
github.com/apache/trafficcontrol:traffic_portal/app/src/package-lock.json: [ master, ] |
---|
1251: "needle": "^2.2.1",
|
1234: "needle": {
|
chromium.googlesource.com/native_client/nacl-llvm-project-v10:clang/lib/Sema/AnalysisBasedWarnings.cpp: [ master, ] |
---|
727: const DeclRefExpr *Needle;
|
723: /// a particular declaration (the needle) within any evaluated component of an
|
732: ContainsReference(ASTContext &Context, const DeclRefExpr *Needle)
|
733: : Inherited(Context), FoundReference(false), Needle(Needle) {}
|
744: 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)
|
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/html5rocks/www.html5rocks.com:static/demos/lemdoodle/examples/lem-standalone/lem-const.js: [ master, ] |
---|
185: 'needle': ['intro-finale/items-needle-thread', 'intro-finale/items-needle'],
|
236: '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/html5rocks/www.html5rocks.com:content/tutorials/doodles/lem/static/code/lem-const.js: [ master, ] Duplicate result |
---|
chromium.googlesource.com/devtools/devtools-frontend:node_modules/mocha/package.json: [ master, ] |
---|
131: "needle": "^2.5.0",
|
github.com/google/llvm-propeller:clang/lib/Sema/AnalysisBasedWarnings.cpp: [ plo-dev, ] Duplicate result |
---|
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/google/virtual-authenticators-tab:package-lock.json: [ master, ] |
---|
1694: "needle": "^2.2.1",
|
1675: "needle": {
|
github.com/google/cyanobyte:docs/themes/docsy/userguide/package-lock.json: [ master, ] Duplicate result |
---|
github.com/yeoman/generator-angular:route/index.js: [ master, ] |
---|
63: needle: '.otherwise',
|
github.com/google/gvisor-website:themes/docsy/userguide/package-lock.json: [ master, ] Duplicate result |
---|
github.com/apache/openwhisk-client-js:package.json: [ master, ] |
---|
53: "needle": "^2.4.0"
|
github.com/grpc/grpc.io:themes/docsy/userguide/package-lock.json: [ master, ] Duplicate result |
---|
github.com/GNOME/libdazzle:src/search/dzl-fuzzy-index-cursor.c: [ mainline, ] |
---|
65: const gchar *needle;
|
408: lookup.needle = query;
|
github.com/google/docsy-example:themes/docsy/userguide/package-lock.json: [ master, ] Duplicate result |
---|
github.com/googlesamples/functions-as-a-service:package-lock.json: [ master, ] |
---|
1274: "needle": "^2.2.1",
|
1255: "needle": {
|
github.com/GoogleChrome/chrome-extensions-samples:apps/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:apps/samples/text-editor/lib/ace/search.js: [ master, ] Duplicate result |
---|
android.googlesource.com/platform/external/libwebsockets:include/libwebsockets/lws-fts.h: [ master, ] |
---|
168: const char *needle;
|
github.com/GNOME/gnome-notes:src/bjb-controller.c: [ mainline, ] |
---|
47: gchar *needle;
|
68: PROP_NEEDLE,
|
526: bjb_controller_apply_needle (BjbController *self)
|
777: bjb_controller_set_needle (BjbController *self, const gchar *needle )
|
787: bjb_controller_get_needle (BjbController *self)
|
556: on_needle_changed (BjbController *self)
|
45: /* needle, notebook and group define what the controller shows */
|
122: g_free (self->needle);
|
147: case PROP_NEEDLE:
|
148: g_value_set_string (value, self->needle);
|
175: case PROP_NEEDLE:
|
176: self->needle = g_strdup (g_value_get_string (value));
|
193: const gchar *needle = NULL;
|
196: needle = biji_item_get_uuid (item);
|
209: if (needle && g_strcmp0 (item_path, needle) == 0)
|
213: else if (!needle && BIJI_IS_NOTE_OBJ (
|
308: if (!self->needle || g_strcmp0 (self->needle, "") == 0)
|
323: if (g_strrstr (title, self->needle) != NULL)
|
330: if (g_strrstr (content, self->needle) != NULL)
|
529: gchar *needle;
|
531: needle = self->needle;
|
536: if (needle == NULL || g_strcmp0 (needle,"") == 0)
|
552: biji_get_items_matching_async (self->manager, self->group, needle, update_controller_callback, self);
|
558: bjb_controller_apply_needle (self);
|
598: bjb_controller_apply_needle (self);
|
648: /* Apply the needle to display the relevant items.
|
656: bjb_controller_apply_needle (self);
|
738: properties[PROP_NEEDLE] = g_param_spec_string ("needle",
|
739: "Needle",
|
761: gchar *needle)
|
766: "needle", needle,
|
779: if (self->needle)
|
780: g_free (self->needle);
|
782: self->needle = g_strdup (needle);
|
783: on_needle_changed (self);
|
789: if (!self->needle)
|
792: return self->needle;
|
827: bjb_controller_apply_needle (self);
|
834: g_clear_pointer (&self->needle, g_free);
|
836: self->needle = g_strdup ("");
|
871: bjb_controller_apply_needle (self);
|
877: bjb_controller_apply_needle (self);
|
894: on_needle_changed (self);
|
github.com/GoogleChrome/chrome-extensions-samples:apps/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))
|
github.com/GoogleChrome/chrome-app-samples:apps/samples/text-editor/lib/ace/mode/text.js: [ master, ] Duplicate result |
---|
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/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/PolymerLabs/arcs-live:concrete-storage/node_modules/grpc/node_modules/node-pre-gyp/package.json: [ master, ] |
---|
38: "needle": "^2.2.1",
|
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)...
|
github.com/GNOME/libdazzle:src/search/dzl-fuzzy-mutable-index.c: [ mainline, ] |
---|
79: const gchar *needle;
|
432: * @needle: (in): The needle to fuzzy search for.
|
435: * DzlFuzzyMutableIndex searches within @fuzzy for strings that fuzzy match @needle.
|
448: const gchar *needle,
|
465: g_return_val_if_fail (needle, NULL);
|
469: if (!*needle)
|
474: downcase = g_utf8_casefold (needle, -1);
|
475: needle = downcase;
|
479: lookup.n_tables = g_utf8_strlen (needle, -1);
|
482: lookup.needle = needle;
|
486: for (i = 0, tmp = needle; *tmp; tmp = g_utf8_next_char (tmp))
|
github.com/apache/openwhisk-package-alarms:action/lib/common.js: [ master, ] |
---|
18: const needle = require('needle');
|
30: // needle takes e.g. 'put' not 'PUT'
|
31: needle.request(method.toLowerCase(), url, input, options, function(error, response, body) {
|
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/googlecreativelab/pattern-radio:kubernetes/tools/classifier_clustering/package-lock.json: [ master, ] |
---|
1590: "needle": "^2.2.1",
|
1573: "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/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/google/syzkaller: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)
|
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;
|
chromium.googlesource.com/chromium/src/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;
|
android.googlesource.com/platform/external/angle:third_party/abseil-cpp/absl/strings/str_replace_benchmark.cc: [ master, ] Duplicate result |
---|
github.com/GNOME/gnome-notes:src/bjb-search-toolbar.c: [ mainline, ] |
---|
53: gchar *needle;
|
124: bjb_controller_set_needle (BJB_CONTROLLER (self->controller),
|
161: /* Get the needle from controller */
|
162: self->needle = bjb_controller_get_needle (self->controller);
|
164: if (self->needle && g_strcmp0 (self->needle, "") != 0)
|
166: gtk_entry_set_text (GTK_ENTRY (self->entry), self->needle);
|
chromium.googlesource.com/chromium/src/third_party:abseil-cpp/absl/strings/str_replace_benchmark.cc: [ master, ] Duplicate result |
---|
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)) {
|
chromium.googlesource.com/chromium/src: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 |
---|
android.googlesource.com/platform/superproject:external/abseil-cpp/absl/strings/str_replace_benchmark.cc: [ master, ] Duplicate result |
---|
github.com/googlecreativelab/aog-canvas-quiz:deploy/package-lock.json: [ master, ] |
---|
551: "needle": "^2.2.1",
|
536: "needle": {
|
android.googlesource.com/platform/external/libtextclassifier:abseil-cpp/absl/strings/str_replace_benchmark.cc: [ master, ] Duplicate result |
---|
github.com/apache/openwhisk-catalog:packages/weather/forecast.js: [ master, ] |
---|
18: const needle = require('needle');
|
64: needle.request('get', url, qs, { 'username': username, 'password': password, timeout: 30000 }, function (e...(23 bytes skipped)...
|
chromium.googlesource.com/arc/arc:third_party/chromium-ppapi/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/PolymerLabs/actor-boilerplate:package-lock.json: [ master, ] |
---|
868: "needle": "^2.2.0",
|
851: "needle": {
|
github.com/PolymerLabs/actor-helpers:package-lock.json: [ master, ] |
---|
1359: "needle": "^2.2.0",
|
1340: "needle": {
|
github.com/spinnaker/spinnaker.io:themes/docsy/userguide/package-lock.json: [ master, ] Duplicate result |
---|
android.googlesource.com/platform/external/webrtc:third_party/abseil-cpp/absl/strings/str_replace_benchmark.cc: [ master, ] Duplicate result |
---|
android.googlesource.com/platform/art:test/1940-ddms-ext/src-art/art/Test1940.java: [ master, ] |
---|
126: public final Predicate<Chunk> needle;
|
129: public AwaitChunkHandler(Predicate<Chunk> needle, DdmHandler chain) {
|
130: this.needle = needle;
|
136: if (needle.test(c)) {
|
github.com/google/making_with_ml:semantic_ml/package-lock.json: [ master, ] |
---|
462: "needle": "^2.2.1",
|
440: "needle": {
|
442: "resolved": "https://registry.npmjs.org/needle/-/needle-2.5.0.tgz",
|
eclipse.googlesource.com/jgit/jgit:org.eclipse.jgit/src/org/eclipse/jgit/util/RawSubStringPattern.java: [ master, ] |
---|
26: private final byte[] needle;
|
24: private final String needleString;
|
42: needle = new byte[b.length];
|
44: needle[i] = lc(b[i]);
|
58: final int needleLen = needle.length;
|
59: final byte first = needle[0];
|
76: if (neq(needle[j], text[si]))
|
39: needleString = patternText;
|
63: final int maxPos = rcs.endPtr - needleLen;
|
75: for (int j = 1; j < needleLen; j++, si++) {
|
98: return needleString;
|
gerrit.googlesource.com/jgit:org.eclipse.jgit/src/org/eclipse/jgit/util/RawSubStringPattern.java: [ master, ] Duplicate result |
---|
gerrit.googlesource.com/gerrit:modules/jgit/org.eclipse.jgit/src/org/eclipse/jgit/util/RawSubStringPattern.java: [ master, ] Duplicate result |
---|
android.googlesource.com/platform/external/openscreen:third_party/abseil/src/absl/strings/str_replace_benchmark.cc: [ master, ] Duplicate result |
---|
github.com/v8/v8:test/unittests/heap/cppgc/stack-unittest.cc: [ master, ] |
---|
70: int* needle() const { return container_->value.get(); }
|
82: // No check that the needle is initially not found as on some platforms it
|
85: int* volatile tmp = scanner->needle();
|
95: // No check that the needle is initially not found as on some platforms it
|
100: int* volatile tmp = scanner->needle();
|
202: void* needle = RecursivelyPassOnParameter(0, scanner->needle(), GetStack(),
|
204: EXPECT_EQ(scanner->needle(), needle);
|
210: void* needle = RecursivelyPassOnParameter(1, scanner->needle(), GetStack(),
|
212: EXPECT_EQ(scanner->needle(), needle);
|
218: void* needle = RecursivelyPassOnParameter(2, scanner->needle(), GetStack(),
|
220: EXPECT_EQ(scanner->needle(), needle);
|
226: void* needle = RecursivelyPassOnParameter(3, scanner->needle(), GetStack(),
|
228: EXPECT_EQ(scanner->needle(), needle);
|
234: void* needle = RecursivelyPassOnParameter(4, scanner->needle(), GetStack(),
|
236: EXPECT_EQ(scanner->needle(), needle);
|
242: void* needle = RecursivelyPassOnParameter(5, scanner->needle(), GetStack(),
|
244: EXPECT_EQ(scanner->needle(), needle);
|
250: void* needle = RecursivelyPassOnParameter(6, scanner->needle(), GetStack(),
|
252: EXPECT_EQ(scanner->needle(), needle);
|
258: void* needle = RecursivelyPassOnParameter(7, scanner->needle(), GetStack(),
|
260: EXPECT_EQ(scanner->needle(), needle);
|
268: void* needle = RecursivelyPassOnParameter(8, scanner->needle(), GetStack(),
|
270: EXPECT_EQ(scanner->needle(), needle);
|
312: // No check that the needle is initially not found as on some platforms it
|
325: // Moves |local_scanner->needle()| into a callee-saved register, leaving the
|
326: // callee-saved register as the only register referencing the needle.
|
331: asm("mov %0, %%" reg : : "r"(local_scanner->needle()) : reg); \
|
android.googlesource.com/platform/external/rust/crates/grpcio-sys:grpc/third_party/abseil-cpp/absl/strings/str_replace_benchmark.cc: [ master, ] Duplicate result |
---|
chromium.googlesource.com/v8/v8:test/unittests/heap/cppgc/stack-unittest.cc: [ master, ] Duplicate result |
---|
github.com/google/binja-hexagon:third_party/qemu-hexagon/opcodes.c: [ main, ] |
---|
122: #define NEEDLE "IMMEXT("
|
131: p = strstr(p, NEEDLE);
|
133: p += strlen(NEEDLE);
|
github.com/GoogleCloudPlatform/pubsub:load-test-framework/node_src/package-lock.json: [ master, ] |
---|
583: "needle": "^2.2.1",
|
568: "needle": {
|
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/firebase/abseil-cpp-SwiftPM:absl/strings/str_replace_benchmark.cc: [ main, ] Duplicate result |
---|
github.com/apache/openwhisk-package-alarms:action/alarmWeb_package.json: [ master, ] |
---|
7: "needle": "2.3.2",
|
github.com/GoogleCloudPlatform/cloud-foundation-toolkit:cli/vendor/github.com/gobwas/glob/match/contains.go: [ master, ] Duplicate result |
---|
github.com/apache/openwhisk-package-alarms:action/alarmFeed_package.json: [ master, ] |
---|
7: "needle": "2.3.2"
|
github.com/googlearchive/gcsbeat:vendor/github.com/gobwas/glob/match/contains.go: [ master, ] Duplicate result |
---|
github.com/ampproject/remapping:test/unit/binary-search.ts: [ master, ] |
---|
29: const needle = j * 2;
|
45: const needle = j * 2 - 1;
|
64: const needle = -1;
|
79: const needle = 18;
|
94: const needle = 1;
|
103: const needle = 1;
|
123: const needle = j * 2;
|
138: const needle = j * 2;
|
153: const needle = j * 2;
|
168: const needle = j * 2;
|
183: const needle = j * 2;
|
198: const needle = j * 2;
|
217: const needle = j * 2;
|
232: const needle = j * 2;
|
247: const needle = j * 2;
|
260: const needle = j * 2;
|
281: const needle = j * 2;
|
20: function comparator(item: number, needle: number): number {
|
21: return item - needle;
|
30: const index = binarySearch(array, needle, comparator, 0, array.length - 1);
|
34: expect(array[index]).toEqual(needle);
|
46: const index = binarySearch(array, needle, comparator, 0, array.length - 1);
|
53: expect(array[negated - 1]).toBeLessThan(needle);
|
56: expect(array[negated]).toBeGreaterThan(needle);
|
62: test('needle is lower than all elements', () => {
|
68: const index = binarySearch(array, needle, comparator, 0, array.length - 1);
|
73: expect(array[negated]).toBeGreaterThan(needle);
|
77: test('needle is higher than all elements', () => {
|
83: const index = binarySearch(array, needle, comparator, 0, array.length - 1);
|
88: expect(array[negated - 1]).toBeLessThan(needle);
|
95: const index = binarySearch(array, needle, comparator, 0, array.length - 1);
|
108: array.push(needle);
|
110: const index = binarySearch(array, needle, comparator, 0, array.length - 1);
|
118: test('low equals needle index', () => {
|
124: const index = binarySearch(array, needle, comparator, j, array.length - 1);
|
128: expect(array[index]).toEqual(needle);
|
133: test('low higher than needle index', () => {
|
139: const index = binarySearch(array, needle, comparator, j + 1, array.length - 1);
|
148: test('low lower than needle index', () => {
|
154: const index = binarySearch(array, needle, comparator, j - 1, array.length - 1);
|
163: test('low equals needle index', () => {
|
169: const index = binarySearch(array, needle, comparator, j, array.length - 1);
|
173: expect(array[index]).toEqual(needle);
|
178: test('low higher than needle index', () => {
|
184: const index = binarySearch(array, needle, comparator, j + 1, array.length - 1);
|
193: test('low lower than needle index', () => {
|
199: const index = binarySearch(array, needle, comparator, j - 1, array.length - 1);
|
218: const index = binarySearch(array, needle, comparator, -1, array.length - 1);
|
227: test('high equals needle index', () => {
|
233: const index = binarySearch(array, needle, comparator, 0, j);
|
237: expect(array[index]).toEqual(needle);
|
242: test('high higher than needle index', () => {
|
248: const index = binarySearch(array, needle, comparator, 0, j + 1);
|
255: test('high lower than needle index', () => {
|
261: const index = binarySearch(array, needle, comparator, 0, j - 1);
|
282: const index = binarySearch(array, needle, comparator, 0, -1);
|
github.com/v8/v8:test/mjsunit/regress/regress-1067270.js: [ master, ] |
---|
7: const needle = Array(1802).join(" +") + Array(16884).join("A");
|
10: assertEquals(string.search(needle), -1);
|
11: assertEquals(string.search(needle), -1);
|
chromium.googlesource.com/v8/v8:test/mjsunit/regress/regress-1067270.js: [ master, ] Duplicate result |
---|
github.com/angular/protractor:testapp/package-lock.json: [ master, ] |
---|
1505: "needle": "^2.2.0",
|
1486: "needle": {
|
github.com/asciidoctor/asciidoctor-reveal.js:test/js-babel/package-lock.json: [ master, ] |
---|
578: "needle": "^2.2.1",
|
559: "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])))
|
github.com/GoogleChrome/chrome-extensions-samples:apps/samples/text-editor/lib/ace/editor_highlight_selected_word_test.js: [ master, ] |
---|
139: needle: "Mauris"
|
194: needle: "consectetur"
|
github.com/GoogleChrome/chrome-app-samples:apps/samples/text-editor/lib/ace/editor_highlight_selected_word_test.js: [ master, ] Duplicate result |
---|
github.com/hanwen/artisjokke:needle2d/needle-inserter.hh: [ master, ] |
---|
6: #define NEEDLE_INSERTER
|
13: class Needle_inserter : public Deformation_hook
|
29: Link_array<Node> needle_;
|
36: Array<Vector2> needle_params_;
|
2: declare Needle_inserter
|
5: #ifndef NEEDLE_INSERTER
|
44: Auto_needle_insert * auto_insert_;
|
49: void dump_needle_forces (const char *);
|
54: Needle_inserter (Maubach_tree*, Deformation_state*);
|
55: void move_needle (Vector2 h, Vector2 t);
|
58: void auto_needle_insert ();
|
61: void refine_around_needle_tip (Vector2,Vector2);
|
64: void print_needle ();
|
github.com/hanwen/artisjokke:needle3d/needle-inserter3.hh: [ master, ] |
---|
2: #define NEEDLE_INSERTER3_HH
|
10: class Needle_inserter3 : public Deformation_hook, public Element_watcher
|
12: enum Needle_state {
|
19: set<Element*> needle_elements_;
|
20: map<Node*,Real> needle_node_radii_;
|
26: Real needle_radius_;
|
23: bool filter_needle_rotations_ ;
|
1: #ifndef NEEDLE_INSERTER3_HH
|
16: Needle_state state_;
|
40: void select_elements_around_needle (Element*, Vector3,Vector3);
|
42: void update_needle_elements ();
|
45: void accrue_needle_elements (Vector3, Vector3);
|
47: bool is_needle_element (Element*, Vector3 , Vector3, Real ) const;
|
50: Auto_needle_inserter3 * auto_insert_;
|
51: void auto_needle_insert ();
|
53: void refine_around_needle_tip (Vector3, Vector3);
|
55: Needle_inserter3 (Maubach_tree3*, Deformation_state*);
|
59: void move_needle (Vector3,Vector3);
|
60: set<Face*> get_needle_surface ();
|
64: extern float needle_color [];
|
github.com/hanwen/artisjokke:needle3d/needle-inserter3.cc: [ master, ] |
---|
30: Needle_inserter3::Needle_inserter3 (Maubach_tree3* tree,
|
63: Needle_inserter3::move_needle (Vector3 h, Vector3 t)
|
96: Needle_inserter3::get_needle_surface ()
|
481: Needle_inserter3::refine_around_needle_tip (Vector3 h, Vector3 t)
|
527: Needle_inserter3::is_needle_element (Element *e, Vector3 h, Vector3 t, Real entry_param) const
|
551: Needle_inserter3::accrue_needle_elements (Vector3 h, Vector3 t)
|
677: Needle_inserter3::update_needle_elements ()
|
9: #include "needle-inserter3.hh"
|
16: The needle is characterized by the set NEEDLE_ELEMENTS_.
|
18: All nodes that are constrained (boundary of the NEEDLE_ELEMENTS_
|
19: subcomplex) also have a needle radius (necessary for moving the needle.)
|
21: The needle is described by vectors (H, T), where H is the handle
|
26: Handling NEEDLE_ELEMENTS_ is not done particularly
|
38: needle_radius_ = get_number_setting ("needle-radius");
|
45: filter_needle_rotations_ = strcmp (get_string_setting ("elasticity"), "linear");
|
51: Needle_inserter3::handle () const
|
57: Needle_inserter3::tip () const
|
89: All faces of NEEDLE_ELEMENTS_ whose mates are not in
|
90: NEEDLE_ELEMENTS_.
|
98: set<Face*> needle_surf;
|
100: for (iterof (i, needle_elements_); i != needle_elements_.end(); i++)
|
107: !has_elt(needle_elements_, f->mate ()->element()))
|
109: needle_surf .insert (f);
|
113: return needle_surf;
|
121: Needle_inserter3::force_distribution (Real tip_distance, Real entry_param)
|
143: Compute the friction force for triangle PLEX, given needle
|
148: This should approximate the area of the needle relatively accurate.
|
158: Needle_inserter3::friction_force (Real * area, Simplex const &plex, Vector3 h, Vector3 t,
|
178: beyond the tip of the needle:
|
190: We could discard tris if the triangle intersects the needle line, but
|
194: if (dir1.length () < needle_radius_ / 100)
|
196: printf ("Short distance to needle, %lf\n", dir1.length());
|
207: if (xy.length () < needle_radius_/ 100)
|
209: printf ("Short distance to needle : %lf\n", xy.length ());
|
220: phi_z_coordinates[1] - phi_z_coordinates[2]).length () * 0.5 * needle_radius_ *sign;
|
227: Change the needle position: express the locations of all needle
|
228: nodes (including internal nodes of NEEDLE_ELEMENTS_) in coordinates
|
229: relative to the needle, and set their positions to by changing the
|
230: coordinate system to the new needle position.
|
233: Needle_inserter3::drag_nodes (Vector3 h, Vector3 t)
|
249: for (iterof (i, needle_elements_); i != needle_elements_.end (); i++)
|
293: ENTRY_PARAM is where the needle enters the tissue.
|
296: Needle_inserter3::get_entry_parameter (Vector3 h, Vector3 t) const
|
303: for (iterof (i, needle_elements_); i != needle_elements_.end () ; i++)
|
318: Needle_inserter3::rearrange_boundary_conditions ()
|
323: set<Face*> needle_surf = get_needle_surface ();
|
324: for (iterof (i, needle_surf); i != needle_surf.end(); i++)
|
347: for (iterof (i, needle_surf); i != needle_surf.end(); i++)
|
363: Real theoretical_area = (maxp - minp) * needle_radius_ * 2 * M_PI;
|
370: needle_surf.size(),
|
372: (100.0 * inverted )/ needle_surf.size());
|
389: assert (has_key (needle_node_radii_, n));
|
390: Real node_radius = needle_node_radii_[n];
|
407: if (filter_needle_rotations_)
|
436: Pop off elements slid off the needle.
|
439: for (iterof (i, needle_elements_); i != needle_elements_.end (); i++)
|
455: needle_elements_.erase (erase[i]);
|
457: if (!needle_elements_.size ())
|
464: Needle_inserter3::handle_tip_changes (Vector3 h, Vector3 t)
|
466: refine_around_needle_tip (h, t);
|
468: update_needle_elements ();
|
469: accrue_needle_elements (h, t);
|
473: Refine the mesh around the needle tip.
|
475: This happens in a circle perpendicular to the needle.
|
477: This assumes that the needle doesn't move a big deal between
|
499: int steps = int (needle_radius_ * 2 * M_PI / refinement_h);
|
506: Vector3 x = t + rad * needle_radius_;
|
511: Vector3 farx = t + rad * (refinement_h + needle_radius_);
|
542: return (p >= 0.0 && p <= entry_param) && (r < needle_radius_ || simp_dist < r /2 ) ;
|
547: Add elements to NEEDLE_ELEMENTS_. We start from the tip, and
|
583: if (has_elt (needle_elements_, e))
|
586: if (is_needle_element (e, last_handle_, last_tip_, entry_param))
|
588: needle_elements_.insert (e);
|
605: Find new needle surface nodes by comparing NEEDLE_ELEMENTS_ and
|
606: NEEDLE_NODE_RADII_, and set appropriate radii.
|
608: Remove node that are no longer part of the needle, junking the
|
612: Needle_inserter3::update_boundary_nodes ()
|
614: set<Face*> surf = get_needle_surface ();
|
625: if (!has_key (needle_node_radii_, *i))
|
628: needle_node_radii_[*i] = point_to_line_distance3 (y, last_handle_, last_tip_);
|
635: for (iterof (i, needle_node_radii_); i != needle_node_radii_.end (); i++)
|
645: needle_node_radii_.erase (rm[i]);
|
656: Needle_inserter3::signal_converged ()
|
667: auto_needle_insert ();
|
673: Put topological changes in the NEEDLE_ELEMENTS_ set: subdivision may
|
674: render existing elements of NEEDLE_ELEMENTS_ invalid. a
|
690: bool h = has_elt (needle_elements_, e);
|
694: needle_elements_.erase (*i);
|
701: if (is_needle_element (*j, last_handle_, last_tip_, entry_param))
|
702: needle_elements_.insert (*j);
|
707: if (is_needle_element (e, last_handle_, last_tip_, entry_param))
|
708: needle_elements_.insert (e);
|
github.com/hanwen/artisjokke:needle2d/needle-inserter.cc: [ master, ] |
---|
17: #define needle_assert(a) do { if (!a) { fprintf(stderr, "NEEDLE ASSERT FAILED: %s\n", #a); suicide(); return ; }} while (0)
|
47: Needle_inserter::Needle_inserter(Maubach_tree * tr, Deformation_state * st)
|
389: Needle_inserter::print_needle ()
|
416: Needle_inserter::move_needle (Vector2 h, Vector2 t)
|
80: Needle_inserter::refine_around_needle_tip (Vector2 handle , Vector2 tip)
|
447: Needle_inserter::dump_needle_forces (const char *fn)
|
8: #include "needle-inserter.hh"
|
42: Needle_inserter::live()const
|
61: sqrt(2), is to control the inter needle-node spacing.
|
73: Needle_inserter::suicide ()
|
88: if (needle_.size())
|
90: tip_param = ((deformed_location2 (needle_.top(), deformation ()) - tip)*dir);
|
94: init to length_threshold_ to refine in advance of the needle.
|
112: This refines in a region around the needle. Have not
|
125: if (!e && ! needle_.size())
|
147: Walk from tip to the first node that's already on the needle.
|
153: && needle_.size()
|
154: && e->opposite_node (entry) == needle_.top ())
|
169: if (needle_.find_l (newnod))
|
209: assert (!needle_.find_l (n));
|
254: needle_.push (n);
|
255: needle_params_.push (param);
|
259: TODO: add nodes to needle_
|
264: Needle_inserter::drag_fixed_nodes (Vector2 h, Vector2 t)
|
267: for (int i = 0; i < needle_.size (); i++)
|
269: Node * n = needle_[i];
|
270: Vector2 param = needle_params_[i];
|
287: Needle_inserter::rearrange_boundary_conditions ()
|
289: if (!needle_.size())
|
302: for (int i = needle_.size(); i--;)
|
304: Vector2 x = deformed_location2 (needle_[i], deformation ());
|
318: for (int i = 0; i < needle_.size(); i++)
|
320: Node * n = needle_[i];
|
341: Vector2 p = needle_params_[i];
|
343: needle_params_[i]
|
353: for (int i = needle_.size(); i--;)
|
355: Node * n = needle_[i];
|
372: needle_.del (i);
|
373: needle_params_.del(i);
|
381: if (!needle_.size())
|
391: log_message ("Needle: ");
|
392: for (int i = needle_.size(); i--;)
|
394: bool f = deformation ()->constraints_.is_fixed (needle_[i]);
|
395: bool l = deformation ()->constraints_.has_linear_movement_constraint (needle_[i]);
|
401: Needle_inserter::signal_converged ()
|
407: refine_around_needle_tip (last_handle_, last_tip_ );
|
411: auto_needle_insert ();
|
442: refine_around_needle_tip (h, t);
|
458: fprintf (f, "%d\n", needle_.size ());
|
467: for (int i =0; i < needle_.size (); i++)
|
469: Node* n = needle_[i];
|
526: Walk from tip to the first node that's already on the needle.
|
588: Needle_inserter::tip_reference_location () const
|
github.com/hanwen/artisjokke:needle2d/mesh-print.cc: [ master, ] |
---|
127: print_needle (FILE * f,
|
15: #include "needle-inserter.hh"
|
150: fprintf (f, " %lf %lf moveto %lf %lf lineto stroke %% needle \n ",
|
161: Needle_inserter * ni,
|
203: print_needle (f, top, def, tip, handle);
|
216: Needle_inserter * ni,
|
252: print_needle (f, top, def, tip, handle);
|
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)...
|
github.com/apache/kudu:www/epoch.0.5.2.min.css: [ master, ] |
---|
1: ...(1125 bytes skipped)....inner{stroke-width:1px;stroke:#555}.epoch .gauge .tick{stroke-width:1px;stroke:#555}.epoch .gauge .needle{fill:orange}.epoch .gauge .needle-base{fill:#666}.epoch div.ref.category1,.epoch.category10 div.ref.category1{background-color:#1f77b...(24132 bytes skipped)...
|
chromium.googlesource.com/vulkan-deps:update-commit-message.py: [ master, ] |
---|
37: INSERT_NEEDLE = 'If this roll has caused a breakage'
|
71: insert_index = old_commit_msg.rfind(INSERT_NEEDLE)
|
73: logging.exception('"%s" not found in commit message.' % INSERT_NEEDLE)
|
github.com/google/rekall:rekall-core/rekall/plugins/linux/heap_analysis.py: [ master, ] |
---|
2852: def search_vmas_for_needle(self, search_string=None, pointers=None,
|
3053: def search_chunks_for_needle(self, search_string=None, pointers=None,
|
2307: for hit in self.search_vmas_for_needle(pointers=[top_chunk.v()]):
|
2787: for hit in self.search_vmas_for_needle(pointers=mmap_pointers):
|
2789: found_pointers.add(hit['needle'])
|
2854: """Searches all vmas or only the given ones for the given needle(s).
|
2868: dict(needle=search_string))])
|
2901: temp['needle'] = pointer
|
2904: temp['needle'] = search_string
|
3055: """Searches all chunks for the given needle(s) and returns the ones
|
3070: hits = self.search_vmas_for_needle(pointers=pointers,
|
3074: hits = self.search_vmas_for_needle(search_string=search_string,
|
3085: # { needle (string or pointer): { offsets: {offsets} }, needle2: ...}
|
3099: result[chunk] = {hit['needle']: {hit['hit']}}
|
3102: if hit['needle'] not in list(result[chunk].keys()):
|
3103: result[chunk][hit['needle']] = {hit['hit']}
|
3106: result[chunk][hit['needle']].add(hit['hit'])
|
3657: hits = self.search_vmas_for_needle(
|
3661: hits = self.search_vmas_for_needle(
|
4228: hits = self.search_chunks_for_needle(
|
4233: temp_hits = self.search_chunks_for_needle(
|
4264: temp_hit['needle'] = ','.join(rule_strings)
|
4267: temp_hits = self.search_chunks_for_needle(
|
4308: temp_hits = self.search_chunks_for_needle(
|
4342: "We didn't find anything for the given needle(s).")
|
4350: for needle, data in needles.items():
|
4351: if isinstance(needle, malloc_chunk):
|
4355: "0x{:X}:\n".format(needle.v()))
|
4371: "The following needle at the given "
|
4373: renderer.write("Needle Offset(s)\n")
|
4378: (hex(needle) if isinstance(needle, int)
|
4379: else repr(needle)) + ": "
|
4386: (hex(needle) if isinstance(needle, int)
|
4387: else repr(needle)) + ": The needle "
|
4237: for chunk, needles in temp_hits.items():
|
4239: hits[chunk].update(needles)
|
4242: hits[chunk] = needles
|
4271: for chunk, needles in temp_hits.items():
|
4273: hits[chunk].update(needles)
|
4276: hits[chunk] = needles
|
4345: for chunk, needles in hits.items():
|
github.com/googleglass/gdk-compass-sample:app/src/main/java/com/google/android/glass/sample/compass/CompassView.java: [ master, ] |
---|
53: private static final float NEEDLE_WIDTH = 6;
|
54: private static final float NEEDLE_HEIGHT = 125;
|
55: private static final int NEEDLE_COLOR = Color.RED;
|
341: private void drawNeedle(Canvas canvas, boolean bottom) {
|
216: mPaint.setColor(NEEDLE_COLOR);
|
336: * Draws a needle that is centered at the top or bottom of the compass.
|
339: * @param bottom true to draw the bottom needle, or false to draw the top needle
|
346: // Flip the vertical coordinates if we're drawing the bottom needle.
|
355: float needleHalfWidth = NEEDLE_WIDTH / 2;
|
359: mPath.lineTo(centerX - needleHalfWidth, origin + sign * (NEEDLE_HEIGHT - 4));
|
360: mPath.lineTo(centerX, origin + sign * NEEDLE_HEIGHT);
|
361: mPath.lineTo(centerX + needleHalfWidth, origin + sign * (NEEDLE_HEIGHT - 4));
|
48: * marks at the half-winds. The red "needles" in the display mark the current heading.
|
217: drawNeedle(canvas, false);
|
218: drawNeedle(canvas, true);
|
358: mPath.moveTo(centerX - needleHalfWidth, origin);
|
362: mPath.lineTo(centerX + needleHalfWidth, origin);
|
github.com/google/coursebuilder-core:coursebuilder/modules/gitkit/gitkit.py: [ master, ] |
---|
150: _BAD_CRYPTO_NEEDLE = 'PKCS12 format is not supported by the PyCrypto library'
|
627: if _BAD_CRYPTO_NEEDLE in e.message:
|
github.com/GNOME/gtk:demos/gtk-demo/main.c: [ mainline, ] |
---|
21: static char **search_needle;
|
973: /* Show only if the name maches every needle */
|
974: for (i = 0; search_needle[i]; i++)
|
979: if (g_str_match_string (search_needle[i], demo->title, TRUE))
|
997: if (!search_needle || !search_needle[0] || !*search_needle[0])
|
1038: g_clear_pointer (&search_needle, g_strfreev);
|
1041: search_needle = g_strsplit (text, " ", 0);
|
github.com/google/coursebuilder-android-container-module:android/worker.py: [ master, ] |
---|
110: _ACCEPT_LICENSE_NEEDLE = 'Do you accept the license'
|
133: _GRADLEW_INSTALL_SUCCESS_NEEDLE = 'BUILD SUCCESSFUL'
|
145: _TEST_FAILURE_NEEDLE = 'FAILURES!!!\r'
|
779: return _GRADLEW_INSTALL_SUCCESS_NEEDLE not in result
|
782: return _TEST_FAILURE_NEEDLE in result
|
1111: if _ACCEPT_LICENSE_NEEDLE in line and not process.poll():
|
github.com/GoogleCloudPlatform/IoT-Icebreaker:appengine/sensordata-to-ui/public/third_party/epoch/epoch.min.css: [ master, ] |
---|
1: ...(1365 bytes skipped)....inner{stroke-width:1px;stroke:#555}.epoch .gauge .tick{stroke-width:1px;stroke:#555}.epoch .gauge .needle{fill:orange}.epoch .gauge .needle...(24288 bytes skipped)...nner{stroke:#AAA}.epoch-theme-dark .epoch .gauge .tick{stroke:#AAA}.epoch-theme-dark .epoch .gauge .needle{fill:#F3DE88}.epoch-theme-dark .epoch .gauge .needle-base{fill:#999}.epoch-theme-dark .epoch div.ref.category1,.epoch-theme-dark .epoch.category10 div.r...(32086 bytes skipped)...
|
github.com/GNOME/totem-pl-parser:plparse/totem-pl-parser-podcast.c: [ mainline, ] |
---|
38: #define RSS_NEEDLE "<rss "
|
40: #define ATOM_NEEDLE "<feed "
|
41: #define OPML_NEEDLE "<opml "
|
39: #define RSS_NEEDLE2 "<rss\n"
|
51: if (g_strstr_len (data, len, RSS_NEEDLE) != NULL)
|
53: if (g_strstr_len (data, len, RSS_NEEDLE2) != NULL)
|
67: if (g_strstr_len (data, len, ATOM_NEEDLE) != NULL)
|
81: if (g_strstr_len (data, len, OPML_NEEDLE) != NULL)
|
github.com/GNOME/totem-pl-parser:plparse/totem-pl-parser-wm.c: [ mainline, ] |
---|
40: #define ASX_NEEDLE "<ASX"
|
41: #define ASX_NEEDLE2 "<asx"
|
42: #define ASX_NEEDLE3 "<Asx"
|
53: if (g_strstr_len (data, len, ASX_NEEDLE) != NULL)
|
55: if (g_strstr_len (data, len, ASX_NEEDLE2) != NULL)
|
57: if (g_strstr_len (data, len, ASX_NEEDLE3) != NULL)
|
github.com/hanwen/artisjokke:visualize/artisjokke-drawer.hh: [ master, ] |
---|
38: Drag_state needle_drag_;
|
76: virtual void set_needle ();
|
79: virtual void draw_needle ();
|
github.com/hanwen/artisjokke:visualize/artisjokke-drawer.cc: [ master, ] |
---|
291: Artisjokke_drawer::set_needle ()
|
296: Artisjokke_drawer::draw_needle ()
|
64: else if (current == & needle_drag_.quat_)
|
66: set_needle ();
|
108: // set_needle();
|
192: this->draw_needle ();
|
256: else if (current == &needle_drag_.scale_)
|
258: set_needle ();
|
280: else if (current == &needle_drag_.translate_)
|
282: set_needle ();
|
github.com/GNOME/totem-pl-parser:plparse/totem-pl-parser-qt.c: [ mainline, ] |
---|
39: #define QT_NEEDLE "<?quicktime"
|
59: if (g_strstr_len (data, len, QT_NEEDLE) != NULL)
|
chromium.googlesource.com/ios-chromium-mirror:content/public/android/javatests/src/org/chromium/content/browser/ClipboardTest.java: [ master, ] |
---|
47: private static final String EXPECTED_HTML_NEEDLE = "http://www.example.com/";
|
97: Assert.assertTrue(htmlText.contains(EXPECTED_HTML_NEEDLE));
|
chromium.googlesource.com/chromium/src:content/public/android/javatests/src/org/chromium/content/browser/ClipboardTest.java: [ master, ] Duplicate result |
---|
chromium.googlesource.com/arc/arc:third_party/chromium-ppapi/content/public/android/javatests/src/org/chromium/content/browser/ClipboardTest.java: [ master, ] |
---|
47: private static final String EXPECTED_HTML_NEEDLE = "http://www.example.com/";
|
104: Assert.assertTrue(htmlText.contains(EXPECTED_HTML_NEEDLE));
|
chromium.googlesource.com/chromium/src/third_party:blink/perf_tests/speedometer/resources/main.css: [ master, ] |
---|
259: .gauge > .window > .needle {
|
chromium.googlesource.com/chromium/src:third_party/blink/perf_tests/speedometer/resources/main.css: [ master, ] Duplicate result |
---|
chromium.googlesource.com/ios-chromium-mirror:third_party/blink/perf_tests/speedometer/resources/main.css: [ master, ] Duplicate result |
---|
chromium.googlesource.com/chromium/chromium:content/public/android/javatests/src/org/chromium/content/browser/ClipboardTest.java: [ trunk, ] |
---|
35: private static final String EXPECTED_HTML_NEEDLE = "http://www.example.com/";
|
88: assertTrue(htmlText.contains(EXPECTED_HTML_NEEDLE));
|
chromium.googlesource.com/arc/arc:third_party/chromium-ppapi/third_party/blink/perf_tests/speedometer/resources/main.css: [ master, ] Duplicate result |
---|
chromium.googlesource.com/dart/dartium/src:content/public/android/javatests/src/org/chromium/content/browser/ClipboardTest.java: [ master, ] |
---|
34: private static final String EXPECTED_HTML_NEEDLE = "http://www.example.com/";
|
84: assertTrue(htmlText.contains(EXPECTED_HTML_NEEDLE));
|
github.com/GoogleChrome/chrome-extensions-samples:apps/samples/text-editor/lib/ace/search_test.js: [ master, ] |
---|
316: "test: replace() should return the replacement if the input matches the needle" : function() {
|
54: needle: "juhu",
|
62: needle: "kinners"
|
73: needle: "kinners"
|
85: needle: "kinners"
|
98: needle: "kinners"
|
109: needle: "kinners",
|
123: needle: "xyz",
|
134: needle: "JUHU"
|
144: needle: "KINNERS",
|
156: needle: "kinners",
|
169: needle: "juhu",
|
184: needle: "juhu",
|
205: needle: "juhu",
|
228: needle: "juhu",
|
243: needle: "juhu",
|
259: needle: "\\d+",
|
272: needle: "\\d+\\b",
|
286: needle: "(\\d+)",
|
299: needle: "uh",
|
318: needle: "juhu"
|
330: needle: "\\d+",
|
343: needle: "ab(\\d\\d)",
|
356: needle: "[ ]+$",
|
374: needle: "foo",
|
396: needle: "foo",
|
github.com/GoogleChrome/chrome-app-samples:apps/samples/text-editor/lib/ace/search_test.js: [ master, ] Duplicate result |
---|
github.com/google/error-prone:check_api/src/main/java/com/google/errorprone/names/NeedlemanWunschEditDistance.java: [ master, ] |
---|
33: public final class NeedlemanWunschEditDistance {
|
35: private NeedlemanWunschEditDistance() {
|
23: * The Needleman-Wunsch algorithm for finding least-cost string edit distances between pairs of
|
29: * <p>See http://en.wikipedia.org/wiki/Needleman-Wunsch_algorithm
|
github.com/google/error-prone:check_api/src/test/java/com/google/errorprone/names/NeedlemanWunschEditDistanceTest.java: [ master, ] |
---|
27: public class NeedlemanWunschEditDistanceTest {
|
30: public void needlemanWunschEditDistance_returnsZero_withIdenticalNames() {
|
41: public void needlemanWunschEditDistance_matchesLevenschtein_withHugeGapCost() {
|
54: public void needlemanWunschEditDistanceWorstCase_matchesLevenschtein_withHugeGapCost() {
|
25: /** Tests for NeedlemanWunschEditDistance */
|
34: NeedlemanWunschEditDistance.getEditDistance(
|
46: double needlemanWunsch =
|
47: NeedlemanWunschEditDistance.getEditDistance(
|
50: assertThat(needlemanWunsch).isEqualTo(levenschtein);
|
61: double needlemanWunsch =
|
62: NeedlemanWunschEditDistance.getWorstCaseEditDistance(
|
65: assertThat(needlemanWunsch).isEqualTo(levenschtein);
|
github.com/gwtproject/gwt:user/test/com/google/gwt/uibinder/test/client/NeedlesslyAnnotatedLabel.java: [ master, ] |
---|
25: public class NeedlesslyAnnotatedLabel extends Label {
|
26: @UiConstructor public NeedlesslyAnnotatedLabel() {
|
gwt.googlesource.com/gwt:user/test/com/google/gwt/uibinder/test/client/NeedlesslyAnnotatedLabel.java: [ master, ] Duplicate result |
---|
github.com/osxfuse/osxfuse:fuse/lib/fuse.c: [ master, ] |
---|
219: unsigned needlen;
|
3921: if (extend_contents(dh, dh->needlen) == -1)
|
3927: dh->needlen - dh->len, name,
|
3929: if (newlen > dh->needlen)
|
3960: dh->needlen = size;
|
github.com/apache/kudu:www/epoch.0.5.2.min.js: [ master, ] |
---|
78: return this.drawNeedle()}};d.prototype.drawNeedle...(22 bytes skipped)...d=[this.centerX(),this.centerY(),this.radius()];c=d[0];a=d[1];d=d[2];this.setStyles(".epoch .gauge .needle...(194 bytes skipped)...eTo(-1*this.pixelRatio,19-d);this.ctx.lineTo(1,19-d);this.ctx.fill();this.setStyles(".epoch .gauge .needle-base");this.ctx.beginPath();
|
android.googlesource.com/platform/external/perfetto:include/perfetto/tracing/track_event_legacy.h: [ master, ] |
---|
433: static bool NeedLegacyFlags(char phase, uint32_t flags) {
|
336: if (NeedLegacyFlags(phase, flags)) {
|
378: if (NeedLegacyFlags(phase, flags) || pid_override || tid_override) {
|
github.com/libfuse/libfuse:lib/fuse.c: [ master, ] |
---|
186: unsigned needlen;
|
3527: if (extend_contents(dh, dh->needlen) == -1)
|
3532: dh->needlen - dh->len, name,
|
3534: if (newlen > dh->needlen)
|
3599: if (extend_contents(dh, dh->needlen) == -1)
|
3604: dh->needlen - dh->len, name,
|
3606: if (newlen > dh->needlen)
|
3653: dh->needlen = size;
|
3677: if (extend_contents(dh, dh->needlen) == -1)
|
3688: unsigned rem = dh->needlen - dh->len;
|
3705: if (newlen > dh->needlen)
|
3736: dh->needlen = size;
|
github.com/google/coding-with-chrome:third_party/closure-library/closure/goog/ui/gauge.js: [ master, ] |
---|
406: goog.ui.Gauge.prototype.needleRadius_ = 0;
|
415: goog.ui.Gauge.prototype.needleGroup_ = null;
|
424: goog.ui.Gauge.prototype.needleValuePosition_ = null;
|
82: * ticks and labels inside the internal border, and a needle that points to
|
191: * The length of the needle front (value facing) from the internal radius.
|
192: * The needle front is the part of the needle that points to the value.
|
195: goog.ui.Gauge.FACTOR_NEEDLE_FRONT = 0.95;
|
199: * The length of the needle back relative to the internal radius.
|
200: * The needle back is the part of the needle that points away from the value.
|
203: goog.ui.Gauge.FACTOR_NEEDLE_BACK = 0.3;
|
207: * The width of the needle front at the hinge.
|
212: goog.ui.Gauge.FACTOR_NEEDLE_WIDTH = 0.07;
|
216: * The width (radius) of the needle hinge from the gauge radius.
|
219: goog.ui.Gauge.FACTOR_NEEDLE_HINGE = 0.15;
|
266: * The maximal size of a step the needle can move (percent from size of range).
|
267: * If the needle needs to move more, it will be moved in animated steps, to
|
271: goog.ui.Gauge.NEEDLE_MOVE_MAX_STEP = 0.02;
|
278: goog.ui.Gauge.NEEDLE_MOVE_TIME = 400;
|
400: * The radius for drawing the needle.
|
402: * the needle.
|
410: * The group elemnt of the needle. Contains all elements that change when the
|
419: * The current position (0-1) of the visible needle.
|
436: * Animation object while needle is being moved (animated).
|
489: * determines the position of the needle of the gauge.
|
509: goog.ui.Gauge.NEEDLE_MOVE_TIME, goog.fx.easing.inAndOut);
|
795: // Draw the needle and the value label. Stop animation when doing
|
889: * Draw the elements that depend on the current value (the needle and
|
907: // Compute the needle path
|
908: var frontRadius = Math.round(r * goog.ui.Gauge.FACTOR_NEEDLE_FRONT);
|
909: var backRadius = Math.round(r * goog.ui.Gauge.FACTOR_NEEDLE_BACK);
|
915: var distanceControlPointBase = r * goog.ui.Gauge.FACTOR_NEEDLE_WIDTH;
|
932: // Draw the needle hinge
|
933: var rh = Math.round(r * goog.ui.Gauge.FACTOR_NEEDLE_HINGE);
|
935: // Clean previous needle
|
959: // Draw the needle
|
501: if (this.needleValuePosition_ == null) {
|
503: this.needleValuePosition_ = valuePosition;
|
508: [this.needleValuePosition_], [valuePosition],
|
639: this.needleGroup_ = null;
|
798: this.needleRadius_ = r;
|
809: this.needleValuePosition_ = e.x;
|
899: var r = this.needleRadius_;
|
905: /** @type {number} */ (this.needleValuePosition_));
|
936: var needleGroup = this.needleGroup_;
|
937: if (needleGroup) {
|
938: needleGroup.clear();
|
940: needleGroup = this.needleGroup_ = graphics.createGroup();
|
956: needleGroup);
|
962: graphics.drawPath(path, stroke, fill, needleGroup);
|
965: graphics.drawCircle(cx, cy, rh, stroke, fill, needleGroup);
|
1006: delete this.needleGroup_;
|
960: var stroke = theme.getNeedleStroke();
|
961: var fill = theme.getNeedleFill(cx, cy, rh);
|
github.com/google/coding-with-chrome:third_party/coding-with-chrome-libraries/third_party/closure-library/closure/goog/ui/gauge.js: [ master, ] Duplicate result |
---|
github.com/osxfuse/fuse:lib/fuse.c: [ master, ] |
---|
219: unsigned needlen;
|
4092: if (extend_contents(dh, dh->needlen) == -1)
|
4098: dh->needlen - dh->len, name,
|
4100: if (newlen > dh->needlen)
|
4131: dh->needlen = size;
|
github.com/grpc/grpc-web:third_party/closure-library/closure/goog/ui/gauge.js: [ master, ] |
---|
403: goog.ui.Gauge.prototype.needleRadius_ = 0;
|
412: goog.ui.Gauge.prototype.needleGroup_ = null;
|
421: goog.ui.Gauge.prototype.needleValuePosition_ = null;
|
78: * ticks and labels inside the internal border, and a needle that points to
|
188: * The length of the needle front (value facing) from the internal radius.
|
189: * The needle front is the part of the needle that points to the value.
|
192: goog.ui.Gauge.FACTOR_NEEDLE_FRONT = 0.95;
|
196: * The length of the needle back relative to the internal radius.
|
197: * The needle back is the part of the needle that points away from the value.
|
200: goog.ui.Gauge.FACTOR_NEEDLE_BACK = 0.3;
|
204: * The width of the needle front at the hinge.
|
209: goog.ui.Gauge.FACTOR_NEEDLE_WIDTH = 0.07;
|
213: * The width (radius) of the needle hinge from the gauge radius.
|
216: goog.ui.Gauge.FACTOR_NEEDLE_HINGE = 0.15;
|
263: * The maximal size of a step the needle can move (percent from size of range).
|
264: * If the needle needs to move more, it will be moved in animated steps, to
|
268: goog.ui.Gauge.NEEDLE_MOVE_MAX_STEP = 0.02;
|
275: goog.ui.Gauge.NEEDLE_MOVE_TIME = 400;
|
397: * The radius for drawing the needle.
|
399: * the needle.
|
407: * The group elemnt of the needle. Contains all elements that change when the
|
416: * The current position (0-1) of the visible needle.
|
433: * Animation object while needle is being moved (animated).
|
490: * determines the position of the needle of the gauge.
|
511: goog.ui.Gauge.NEEDLE_MOVE_TIME, goog.fx.easing.inAndOut);
|
807: // Draw the needle and the value label. Stop animation when doing
|
907: * Draw the elements that depend on the current value (the needle and
|
926: // Compute the needle path
|
927: var frontRadius = Math.round(r * goog.ui.Gauge.FACTOR_NEEDLE_FRONT);
|
928: var backRadius = Math.round(r * goog.ui.Gauge.FACTOR_NEEDLE_BACK);
|
934: var distanceControlPointBase = r * goog.ui.Gauge.FACTOR_NEEDLE_WIDTH;
|
951: // Draw the needle hinge
|
952: var rh = Math.round(r * goog.ui.Gauge.FACTOR_NEEDLE_HINGE);
|
954: // Clean previous needle
|
978: // Draw the needle
|
503: if (this.needleValuePosition_ == null) {
|
505: this.needleValuePosition_ = valuePosition;
|
510: [this.needleValuePosition_], [valuePosition],
|
650: this.needleGroup_ = null;
|
810: this.needleRadius_ = r;
|
822: this.needleValuePosition_ = e.x;
|
918: var r = this.needleRadius_;
|
924: /** @type {number} */ (this.needleValuePosition_));
|
955: var needleGroup = this.needleGroup_;
|
956: if (needleGroup) {
|
957: needleGroup.clear();
|
959: needleGroup = this.needleGroup_ = graphics.createGroup();
|
975: needleGroup);
|
981: graphics.drawPath(path, stroke, fill, needleGroup);
|
984: graphics.drawCircle(cx, cy, rh, stroke, fill, needleGroup);
|
1029: delete this.needleGroup_;
|
979: var stroke = theme.getNeedleStroke();
|
980: var fill = theme.getNeedleFill(cx, cy, rh);
|
android.googlesource.com/platform/external/libfuse:lib/fuse.c: [ master, ] |
---|
186: unsigned needlen;
|
3527: if (extend_contents(dh, dh->needlen) == -1)
|
3532: dh->needlen - dh->len, name,
|
3534: if (newlen > dh->needlen)
|
3599: if (extend_contents(dh, dh->needlen) == -1)
|
3604: dh->needlen - dh->len, name,
|
3606: if (newlen > dh->needlen)
|
3653: dh->needlen = size;
|
3677: if (extend_contents(dh, dh->needlen) == -1)
|
3688: unsigned rem = dh->needlen - dh->len;
|
3705: if (newlen > dh->needlen)
|
3736: dh->needlen = size;
|
github.com/google/paco:Paco-Server/ear/default/web/bower_components/ace-builds/src/keybinding-emacs.js: [ develop, ] |
---|
481: this.highlightAndFindWithNeedle = function(moveToNext, needleUpdateFunc) {
|
547: this.convertNeedleToRegExp = function() {
|
553: this.convertNeedleToString = function() {
|
15: if (!options.needle) return false;
|
75: if (!session || !options.needle) return [];
|
432: this.$options.needle = '';
|
469: this.$prevNeedle = this.$options.needle;
|
470: this.$options.needle = '';
|
485: options.needle = needleUpdateFunc.call(this, options.needle || '') || '';
|
487: if (options.needle.length === 0) {
|
509: return this.highlightAndFindWithNeedle(false, function(needle) {
|
510: if (!isRegExp(needle))
|
511: return needle + s;
|
512: var reObj = regExpToObject(needle);
|
519: return this.highlightAndFindWithNeedle(false, function(needle) {
|
520: if (!isRegExp(needle))
|
521: return needle.substring(0, needle.length-1);
|
522: var reObj = regExpToObject(needle);
|
532: return this.highlightAndFindWithNeedle(true, function(needle) {
|
533: return options.useCurrentOrPrevSearch && needle.length === 0 ?
|
534: this.$prevNeedle || '' : needle;
|
548: return this.highlightAndFindWithNeedle(false, function(needle) {
|
549: return isRegExp(needle) ? needle : stringToRegExp(needle, 'ig');
|
554: return this.highlightAndFindWithNeedle(false, function(needle) {
|
555: return isRegExp(needle) ? regExpToObject(needle).expression : needle;
|
562: msg += 'isearch: ' + options.needle;
|
484: if (needleUpdateFunc) {
|
336: iSearch.convertNeedleToRegExp();
|
github.com/google/paco:Paco-Server/ear/default/web/bower_components/ace-builds/src-noconflict/keybinding-emacs.js: [ develop, ] |
---|
481: this.highlightAndFindWithNeedle = function(moveToNext, needleUpdateFunc) {
|
547: this.convertNeedleToRegExp = function() {
|
553: this.convertNeedleToString = function() {
|
15: if (!options.needle) return false;
|
75: if (!session || !options.needle) return [];
|
432: this.$options.needle = '';
|
469: this.$prevNeedle = this.$options.needle;
|
470: this.$options.needle = '';
|
485: options.needle = needleUpdateFunc.call(this, options.needle || '') || '';
|
487: if (options.needle.length === 0) {
|
509: return this.highlightAndFindWithNeedle(false, function(needle) {
|
510: if (!isRegExp(needle))
|
511: return needle + s;
|
512: var reObj = regExpToObject(needle);
|
519: return this.highlightAndFindWithNeedle(false, function(needle) {
|
520: if (!isRegExp(needle))
|
521: return needle.substring(0, needle.length-1);
|
522: var reObj = regExpToObject(needle);
|
532: return this.highlightAndFindWithNeedle(true, function(needle) {
|
533: return options.useCurrentOrPrevSearch && needle.length === 0 ?
|
534: this.$prevNeedle || '' : needle;
|
548: return this.highlightAndFindWithNeedle(false, function(needle) {
|
549: return isRegExp(needle) ? needle : stringToRegExp(needle, 'ig');
|
554: return this.highlightAndFindWithNeedle(false, function(needle) {
|
555: return isRegExp(needle) ? regExpToObject(needle).expression : needle;
|
562: msg += 'isearch: ' + options.needle;
|
484: if (needleUpdateFunc) {
|
336: iSearch.convertNeedleToRegExp();
|
github.com/GoogleChrome/accessibility-developer-tools:lib/closure-library/closure/goog/ui/gauge.js: [ master, ] |
---|
406: goog.ui.Gauge.prototype.needleRadius_ = 0;
|
415: goog.ui.Gauge.prototype.needleGroup_ = null;
|
424: goog.ui.Gauge.prototype.needleValuePosition_ = null;
|
82: * ticks and labels inside the internal border, and a needle that points to
|
191: * The length of the needle front (value facing) from the internal radius.
|
192: * The needle front is the part of the needle that points to the value.
|
195: goog.ui.Gauge.FACTOR_NEEDLE_FRONT = 0.95;
|
199: * The length of the needle back relative to the internal radius.
|
200: * The needle back is the part of the needle that points away from the value.
|
203: goog.ui.Gauge.FACTOR_NEEDLE_BACK = 0.3;
|
207: * The width of the needle front at the hinge.
|
212: goog.ui.Gauge.FACTOR_NEEDLE_WIDTH = 0.07;
|
216: * The width (radius) of the needle hinge from the gauge radius.
|
219: goog.ui.Gauge.FACTOR_NEEDLE_HINGE = 0.15;
|
266: * The maximal size of a step the needle can move (percent from size of range).
|
267: * If the needle needs to move more, it will be moved in animated steps, to
|
271: goog.ui.Gauge.NEEDLE_MOVE_MAX_STEP = 0.02;
|
278: goog.ui.Gauge.NEEDLE_MOVE_TIME = 400;
|
400: * The radius for drawing the needle.
|
402: * the needle.
|
410: * The group elemnt of the needle. Contains all elements that change when the
|
419: * The current position (0-1) of the visible needle.
|
436: * Animation object while needle is being moved (animated).
|
489: * determines the position of the needle of the gauge.
|
509: goog.ui.Gauge.NEEDLE_MOVE_TIME, goog.fx.easing.inAndOut);
|
794: // Draw the needle and the value label. Stop animation when doing
|
888: * Draw the elements that depend on the current value (the needle and
|
906: // Compute the needle path
|
907: var frontRadius = Math.round(r * goog.ui.Gauge.FACTOR_NEEDLE_FRONT);
|
908: var backRadius = Math.round(r * goog.ui.Gauge.FACTOR_NEEDLE_BACK);
|
914: var distanceControlPointBase = r * goog.ui.Gauge.FACTOR_NEEDLE_WIDTH;
|
931: // Draw the needle hinge
|
932: var rh = Math.round(r * goog.ui.Gauge.FACTOR_NEEDLE_HINGE);
|
934: // Clean previous needle
|
958: // Draw the needle
|
501: if (this.needleValuePosition_ == null) {
|
503: this.needleValuePosition_ = valuePosition;
|
508: [this.needleValuePosition_], [valuePosition],
|
639: this.needleGroup_ = null;
|
797: this.needleRadius_ = r;
|
808: this.needleValuePosition_ = e.x;
|
898: var r = this.needleRadius_;
|
904: /** @type {number} */ (this.needleValuePosition_));
|
935: var needleGroup = this.needleGroup_;
|
936: if (needleGroup) {
|
937: needleGroup.clear();
|
939: needleGroup = this.needleGroup_ = graphics.createGroup();
|
955: needleGroup);
|
961: graphics.drawPath(path, stroke, fill, needleGroup);
|
964: graphics.drawCircle(cx, cy, rh, stroke, fill, needleGroup);
|
1005: delete this.needleGroup_;
|
959: var stroke = theme.getNeedleStroke();
|
960: var fill = theme.getNeedleFill(cx, cy, rh);
|
github.com/google/tracing-framework:third_party/closure-library/closure/goog/ui/gauge.js: [ master, ] |
---|
403: goog.ui.Gauge.prototype.needleRadius_ = 0;
|
412: goog.ui.Gauge.prototype.needleGroup_ = null;
|
421: goog.ui.Gauge.prototype.needleValuePosition_ = null;
|
80: * ticks and labels inside the internal border, and a needle that points to
|
188: * The length of the needle front (value facing) from the internal radius.
|
189: * The needle front is the part of the needle that points to the value.
|
192: goog.ui.Gauge.FACTOR_NEEDLE_FRONT = 0.95;
|
196: * The length of the needle back relative to the internal radius.
|
197: * The needle back is the part of the needle that points away from the value.
|
200: goog.ui.Gauge.FACTOR_NEEDLE_BACK = 0.3;
|
204: * The width of the needle front at the hinge.
|
209: goog.ui.Gauge.FACTOR_NEEDLE_WIDTH = 0.07;
|
213: * The width (radius) of the needle hinge from the gauge radius.
|
216: goog.ui.Gauge.FACTOR_NEEDLE_HINGE = 0.15;
|
263: * The maximal size of a step the needle can move (percent from size of range).
|
264: * If the needle needs to move more, it will be moved in animated steps, to
|
268: goog.ui.Gauge.NEEDLE_MOVE_MAX_STEP = 0.02;
|
275: goog.ui.Gauge.NEEDLE_MOVE_TIME = 400;
|
397: * The radius for drawing the needle.
|
399: * the needle.
|
407: * The group elemnt of the needle. Contains all elements that change when the
|
416: * The current position (0-1) of the visible needle.
|
433: * Animation object while needle is being moved (animated).
|
486: * determines the position of the needle of the gauge.
|
506: goog.ui.Gauge.NEEDLE_MOVE_TIME,
|
790: // Draw the needle and the value label. Stop animation when doing
|
887: * Draw the elements that depend on the current value (the needle and
|
905: // Compute the needle path
|
907: Math.round(r * goog.ui.Gauge.FACTOR_NEEDLE_FRONT);
|
909: Math.round(r * goog.ui.Gauge.FACTOR_NEEDLE_BACK);
|
915: var distanceControlPointBase = r * goog.ui.Gauge.FACTOR_NEEDLE_WIDTH;
|
932: // Draw the needle hinge
|
933: var rh = Math.round(r * goog.ui.Gauge.FACTOR_NEEDLE_HINGE);
|
935: // Clean previous needle
|
960: // Draw the needle
|
498: if (this.needleValuePosition_ == null) {
|
500: this.needleValuePosition_ = valuePosition;
|
504: this.animation_ = new goog.fx.Animation([this.needleValuePosition_],
|
633: this.needleGroup_ = null;
|
794: this.needleRadius_ = r;
|
805: this.needleValuePosition_ = e.x;
|
897: var r = this.needleRadius_;
|
903: /** @type {number} */(this.needleValuePosition_));
|
936: var needleGroup = this.needleGroup_;
|
937: if (needleGroup) {
|
938: needleGroup.clear();
|
940: needleGroup = this.needleGroup_ = graphics.createGroup();
|
957: 'center', font, null, fill, needleGroup);
|
963: graphics.drawPath(path, stroke, fill, needleGroup);
|
966: graphics.drawCircle(cx, cy, rh, stroke, fill, needleGroup);
|
1007: delete this.needleGroup_;
|
961: var stroke = theme.getNeedleStroke();
|
962: var fill = theme.getNeedleFill(cx, cy, rh);
|
github.com/google/closure-library:closure/goog/ui/gauge.js: [ master, ] Duplicate result |
---|
github.com/GoogleCloudPlatform/PerfKitExplorer:lib/closure-library/closure/goog/ui/gauge.js: [ master, ] Duplicate result |
---|
chromium.googlesource.com/arc/arc:third_party/chromium-ppapi/native_client_sdk/src/examples/api/mouse_lock/mouse_lock.cc: [ master, ] |
---|
266: void MouseLockInstance::DrawNeedle(pp::ImageData* image,
|
22: // view. These values are used to determine which 2D quadrant the needle lies
|
267: uint32_t needle_color) {
|
322: *image->GetAddr32(pp::Point(x, y)) = needle_color;
|
216: DrawNeedle(&image, kForegroundColor);
|
269: Log("DrawNeedle with NULL image");
|
github.com/googlearchive/js-v2-samples:fusiontables/script/closure/closure/goog/ui/gauge.js: [ gh-pages, ] |
---|
399: goog.ui.Gauge.prototype.needleRadius_ = 0;
|
408: goog.ui.Gauge.prototype.needleGroup_ = null;
|
417: goog.ui.Gauge.prototype.needleValuePosition_ = null;
|
76: * ticks and labels inside the internal border, and a needle that points to
|
184: * The length of the needle front (value facing) from the internal radius.
|
185: * The needle front is the part of the needle that points to the value.
|
188: goog.ui.Gauge.FACTOR_NEEDLE_FRONT = 0.95;
|
192: * The length of the needle back relative to the internal radius.
|
193: * The needle back is the part of the needle that points away from the value.
|
196: goog.ui.Gauge.FACTOR_NEEDLE_BACK = 0.3;
|
200: * The width of the needle front at the hinge.
|
205: goog.ui.Gauge.FACTOR_NEEDLE_WIDTH = 0.07;
|
209: * The width (radius) of the needle hinge from the gauge radius.
|
212: goog.ui.Gauge.FACTOR_NEEDLE_HINGE = 0.15;
|
259: * The maximal size of a step the needle can move (percent from size of range).
|
260: * If the needle needs to move more, it will be moved in animated steps, to
|
264: goog.ui.Gauge.NEEDLE_MOVE_MAX_STEP = 0.02;
|
271: goog.ui.Gauge.NEEDLE_MOVE_TIME = 400;
|
393: * The radius for drawing the needle.
|
395: * the needle.
|
403: * The group elemnt of the needle. Contains all elements that change when the
|
412: * The current position (0-1) of the visible needle.
|
429: * Animation object while needle is being moved (animated).
|
481: * determines the position of the needle of the gauge.
|
501: goog.ui.Gauge.NEEDLE_MOVE_TIME,
|
773: // Draw the needle and the value label. Stop animation when doing
|
870: * Draw the elements that depend on the current value (the needle and
|
888: // Compute the needle path
|
890: Math.round(r * goog.ui.Gauge.FACTOR_NEEDLE_FRONT);
|
892: Math.round(r * goog.ui.Gauge.FACTOR_NEEDLE_BACK);
|
898: var distanceControlPointBase = r * goog.ui.Gauge.FACTOR_NEEDLE_WIDTH;
|
915: // Draw the needle hinge
|
916: var rh = Math.round(r * goog.ui.Gauge.FACTOR_NEEDLE_HINGE);
|
918: // Clean previous needle
|
943: // Draw the needle
|
493: if (this.needleValuePosition_ == null) {
|
495: this.needleValuePosition_ = valuePosition;
|
499: this.animation_ = new goog.fx.Animation([this.needleValuePosition_],
|
626: this.needleGroup_ = null;
|
777: this.needleRadius_ = r;
|
788: this.needleValuePosition_ = e.x;
|
880: var r = this.needleRadius_;
|
886: /** @type {number} */(this.needleValuePosition_));
|
919: var needleGroup = this.needleGroup_;
|
920: if (needleGroup) {
|
921: needleGroup.clear();
|
923: needleGroup = this.needleGroup_ = graphics.createGroup();
|
940: 'center', font, null, fill, needleGroup);
|
946: graphics.drawPath(path, stroke, fill, needleGroup);
|
949: graphics.drawCircle(cx, cy, rh, stroke, fill, needleGroup);
|
995: delete this.needleGroup_;
|
944: var stroke = theme.getNeedleStroke();
|
945: var fill = theme.getNeedleFill(cx, cy, rh);
|
github.com/apache/incubator-pagespeed-ngx:testing-dependencies/mod_pagespeed/third_party/closure_library/closure/goog/ui/gauge.js: [ master, ] Duplicate result |
---|