Found 8555 results in 3612 files, showing top 50 files (show more).
eclipse.googlesource.com/jgit/jgit:org.eclipse.jgit/src/org/eclipse/jgit/util/RawSubStringPattern.java: [ master, ] java
59: 	private final byte[] needle;
57: 	private final String needleString;
75: 		needle = new byte[b.length];
77: 			needle[i] = lc(b[i]);
91: 		final int needleLen = needle.length;
92: 		final byte first = needle[0];
109: 				if (neq(needle[j], text[si]))
72: 		needleString = patternText;
96: 		final int maxPos = rcs.endPtr - needleLen;
108: 			for (int j = 1; j < needleLen; j++, si++) {
131: 		return needleString;
github.com/html5rocks/www.html5rocks.com:static/demos/lemdoodle/examples/lem-embedded/lem-const.js: [ master, ] javascript
172:   'needle': ['intro-finale/items-needle-thread', 'intro-finale/items-needle'],
223:     'needle', 'halo', 'noodles', 'neutron', 'nose'
github.com/src-d/kmcuda:src/test.R: [ develop, ] r
96:     needle <- "--file="
97:     match <- grep(needle, cmdArgs)
99:       return(normalizePath(sub(needle, "", cmdArgs[match])))
github.com/googlearchive/chrome-app-samples:samples/text-editor/lib/ace/mode/text.js: [ master, ] javascript
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:samples/text-editor/lib/ace/mode/text.js: [ master, ] javascript Duplicate result
github.com/GoogleChrome/chrome-app-samples:samples/text-editor/lib/ace/editor_highlight_selected_word_test.js: [ master, ] javascript
139:             needle: "Mauris"
194:             needle: "consectetur"
github.com/googlearchive/chrome-app-samples:samples/text-editor/lib/ace/editor_highlight_selected_word_test.js: [ master, ] javascript Duplicate result
android.googlesource.com/platform/external/qt:Windows-4.7.4/src/scripttools/debugging/qscriptsyntaxhighlighter.cpp: [ master, ] c++
129:     const QString needle;
128:     inline KeywordHelper(const QString &word) : needle(word) {}
134:     return helper.needle < QLatin1String(kw);
139:     return QLatin1String(kw) < helper.needle;
github.com/apache/marmotta:libraries/kiwi/kiwi-sparql/src/main/java/org/apache/marmotta/kiwi/sparql/builder/collect/SQLProjectionFinder.java: [ master, ] java
39:     private String needle;
43:     public SQLProjectionFinder(TupleExpr expr, String needle) {
44:         this.needle = needle;
50:         if(node.getName().equals(needle)) {
59:             if(g.equals(needle)) {
68:         if(node.getName().equals(needle)) {
77:             if(elem.getSourceName().equals(needle)) {
github.com/apache/incubator-openwhisk-client-js:package.json: [ master, ] json
45:     "needle": "^2.1.0",
github.com/fuchsia-mirror/third_party-cmake:Source/cmTarget.cxx: [ master, ] c++
570:   const cmSourceFileLocation& Needle;
586:   const cmSourceFileLocation& Needle;
572:   LocationMatcher(const cmSourceFileLocation& needle)
573:     : Needle(needle)
579:     return loc.Matches(this->Needle);
589:   TargetPropertyEntryFinder(const cmSourceFileLocation& needle)
590:     : Needle(needle)
601:                    CreateLocation(this->Needle.GetMakefile()));
604:                         LocationMatcher(this->Needle)) != locations.end();
github.com/yeoman/generator-angular:route/index.js: [ master, ] javascript
63:     needle: '.otherwise',
github.com/html5rocks/www.html5rocks.com:content/tutorials/doodles/lem/static/code/lem-const.js: [ master, ] javascript
185:   'needle': ['intro-finale/items-needle-thread', 'intro-finale/items-needle'],
236:     'needle', 'halo', 'noodles', 'neutron', 'nose'
github.com/google/rekall:rekall-core/rekall/scan.py: [ master, ] python
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/apache/incubator-openwhisk-client-js:lib/client.js: [ master, ] javascript
8: const needle = require('needle')
13:  * This implements a request-promise-like facade over the needle
14:  * library. There are two gaps between needle and rp that need to be
16:  * needle's non-excepting >=400 statusCode responses into exceptions
36:     // this situation than needle
39:     return needle(opts.method.toLowerCase(), // needle takes e.g. 'put' not 'PUT'
android.googlesource.com/platform/superproject:external/clang/lib/Sema/AnalysisBasedWarnings.cpp: [ master, ] c++
591:   const DeclRefExpr *Needle;
587: /// a particular declaration (the needle) within any evaluated component of an
596:   ContainsReference(ASTContext &Context, const DeclRefExpr *Needle)
597:     : Inherited(Context), FoundReference(false), Needle(Needle) {}
608:     if (E == Needle)
android.googlesource.com/platform/external/clang_35a:lib/Sema/AnalysisBasedWarnings.cpp: [ master, ] c++
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)
chromium.googlesource.com/native_client/pnacl-clang:lib/Sema/AnalysisBasedWarnings.cpp: [ master, ] c++
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)
github.com/fuchsia-mirror/third_party-clang:lib/Sema/AnalysisBasedWarnings.cpp: [ master, ] c++
749:   const DeclRefExpr *Needle;
745: /// a particular declaration (the needle) within any evaluated component of an
754:   ContainsReference(ASTContext &Context, const DeclRefExpr *Needle)
755:     : Inherited(Context), FoundReference(false), Needle(Needle) {}
766:     if (E == Needle)
github.com/llvm-mirror/clang:lib/Sema/AnalysisBasedWarnings.cpp: [ master, ] c++ Duplicate result
android.googlesource.com/platform/external/clang:lib/Sema/AnalysisBasedWarnings.cpp: [ master, ] c++ Duplicate result
android.googlesource.com/platform/external/qt:Mac-4.7.4/src/scripttools/debugging/qscriptsyntaxhighlighter.cpp: [ master, ] c++
129:     const QString needle;
128:     inline KeywordHelper(const QString &word) : needle(word) {}
134:     return helper.needle < QLatin1String(kw);
139:     return QLatin1String(kw) < helper.needle;
android.googlesource.com/platform/external/opencv3:modules/cudalegacy/src/cuda/needle_map.cu: [ master, ] cuda
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, float max_flow, float xscale, float yscale)
207:         void CreateOpticalFlowNeedleMap_gpu(PtrStepSzf u_avg, PtrStepSzf v_avg, float* vertex_buffer, float* color_data, float max_flow, float xscale, float yscale)
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);
github.com/hanwen/artisjokke:needle2d/artisjokke-drawer2.hh: [ master, ] c++
12:   Needle_inserter * needle_inserter_;
6: #include "needle-inserter.hh"
18:   virtual void set_needle ();
20:   virtual void draw_needle ();
github.com/hanwen/artisjokke:needle2d/artisjokke-drawer2.cc: [ master, ] c++
12: float needle_color [] = {1,0,0};
69: Artisjokke_drawer2::set_needle()
104: Artisjokke_drawer2::draw_needle()
23: 		needle_inserter_,
29: 		needle_inserter_,
41: 			   needle_inserter_,
47: 			   needle_inserter_,
58:   this->needle_inserter_ =0; 
71:   if (!needle_inserter_->live())
74:   Vector3 needle_handle_;
75:   Vector3 needle_tip_;
77:   needle_handle_.set (-1.0,0.073,0.0);
78:   Vector3 needle_dir = Vector3 (0.99,0,0);
81:   build_rotmatrix (om, needle_drag_.quat_);
86:   Real fact = pow (2, needle_drag_.scale_(0));
93:   needle_dir *= fact;
94:   //  needle_dir = m * needle_dir;
96:   needle_handle_ = needle_handle_ + (needle_drag_. translate_)*0.10;
97:   needle_tip_ = needle_handle_ + needle_dir;
99:   needle_inserter_->move_needle (needle_handle_, needle_tip_);
106:   set_color (needle_color);
110:   Vector3 t= needle_inserter_->tip ();
111:   Vector3 h= needle_inserter_->handle ();
chromium.googlesource.com/arc/arc:third_party/chromium-ppapi/third_party/WebKit/PerformanceTests/Speedometer/resources/main.css: [ master, ] css
259: .gauge > .window > .needle {
chromium.googlesource.com/chromium/src:content/public/android/javatests/src/org/chromium/content/browser/ClipboardTest.java: [ master, ] java
47:     private static final String EXPECTED_HTML_NEEDLE = "http://www.example.com/";
104:                 Assert.assertTrue(htmlText.contains(EXPECTED_HTML_NEEDLE));
chromium.googlesource.com/ios-chromium-mirror:content/public/android/javatests/src/org/chromium/content/browser/ClipboardTest.java: [ master, ] java Duplicate result
github.com/google/coursebuilder-android-container-module:android/worker.py: [ master, ] python
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():
chromium.googlesource.com/ios-chromium-mirror:third_party/WebKit/PerformanceTests/Speedometer/resources/main.css: [ master, ] css Duplicate result
chromium.googlesource.com/chromium/src:third_party/WebKit/PerformanceTests/Speedometer/resources/main.css: [ master, ] css Duplicate result
chromium.googlesource.com/chromium/chromium:content/public/android/javatests/src/org/chromium/content/browser/ClipboardTest.java: [ trunk, ] java
35:     private static final String EXPECTED_HTML_NEEDLE = "http://www.example.com/";
88:             assertTrue(htmlText.contains(EXPECTED_HTML_NEEDLE));
android.googlesource.com/platform/external/chromium_org:content/public/android/javatests/src/org/chromium/content/browser/ClipboardTest.java: [ master, ] java
36:     private static final String EXPECTED_HTML_NEEDLE = "http://www.example.com/";
90:             assertTrue(htmlText.contains(EXPECTED_HTML_NEEDLE));
github.com/google/coursebuilder-core:coursebuilder/modules/gitkit/gitkit.py: [ master, ] python
150: _BAD_CRYPTO_NEEDLE = 'PKCS12 format is not supported by the PyCrypto library'
627:             if _BAD_CRYPTO_NEEDLE in e.message:
chromium.googlesource.com/chromium/src/third_party:WebKit/PerformanceTests/Speedometer/resources/main.css: [ master, ] css Duplicate result
github.com/googleglass/gdk-compass-sample:app/src/main/java/com/google/android/glass/sample/compass/CompassView.java: [ master, ] java
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);
chromium.googlesource.com/chromium/codesearch:src/third_party/WebKit/PerformanceTests/Speedometer/resources/main.css: [ master, ] css Duplicate result
chromium.googlesource.com/arc/arc:third_party/android/external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/ClipboardTest.java: [ master, ] java Duplicate result
chromium.googlesource.com/chromium/codesearch:src/content/public/android/javatests/src/org/chromium/content/browser/ClipboardTest.java: [ master, ] java Duplicate result
chromium.googlesource.com/arc/arc:third_party/chromium-ppapi/content/public/android/javatests/src/org/chromium/content/browser/ClipboardTest.java: [ master, ] java Duplicate result
chromium.googlesource.com/dart/dartium/src:content/public/android/javatests/src/org/chromium/content/browser/ClipboardTest.java: [ master, ] java
34:     private static final String EXPECTED_HTML_NEEDLE = "http://www.example.com/";
84:         assertTrue(htmlText.contains(EXPECTED_HTML_NEEDLE));
gwt.googlesource.com/gwt:user/test/com/google/gwt/uibinder/test/client/NeedlesslyAnnotatedLabel.java: [ master, ] java
25: public class NeedlesslyAnnotatedLabel extends Label {
26:   @UiConstructor public NeedlesslyAnnotatedLabel() {
github.com/gwtproject/gwt:user/test/com/google/gwt/uibinder/test/client/NeedlesslyAnnotatedLabel.java: [ master, ] java Duplicate result
github.com/google/error-prone:check_api/src/test/java/com/google/errorprone/names/NeedlemanWunschEditDistanceTest.java: [ master, ] java
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/google/error-prone:check_api/src/main/java/com/google/errorprone/names/NeedlemanWunschEditDistance.java: [ master, ] java
30: public final class NeedlemanWunschEditDistance {
32:   private NeedlemanWunschEditDistance() {
20:  * The Needleman-Wunsch algorithm for finding least-cost string edit distances between pairs of
26:  * <p>See http://en.wikipedia.org/wiki/Needleman-Wunsch_algorithm
github.com/apache/kudu:www/epoch.0.5.2.min.js: [ master, ] javascript
78: return this.drawNeedle()}};d.prototype.drawNeedle=function(){var c,a,d;d=[this.centerX(),this.centerY(),this.radius()];c=d[0];a=d[1];d=d[2];this.setStyles(".epoch .gauge .needle");this.ctx.beginPath();this.ctx.save();this.ctx.translate(c,a);this.ctx.rotate(this.getAngle(this.value));this.ctx.moveTo(4*this.pixelRatio,0);this.ctx.lineTo(-4*this.pixelRatio,0);this.ctx.lineTo(-1*this.pixelRatio,19-d);this.ctx.lineTo(1,19-d);this.ctx.fill();this.setStyles(".epoch .gauge .needle-base");this.ctx.beginPath();
chromium.googlesource.com/arc/arc:third_party/chromium-ppapi/third_party/WebKit/PerformanceTests/Speedometer/resources/main.js: [ master, ] javascript
105:     _updateGaugeNeedle: function (rpm) {
109:         var gaugeNeedleElement = document.querySelector('#summarized-results > .gauge .needle');
36:         this._updateGaugeNeedle(results.mean);
106:         var needleAngle = Math.max(0, Math.min(rpm, 140)) - 70;
107:         var needleRotationValue = 'rotate(' + needleAngle + 'deg)';
110:         gaugeNeedleElement.style.setProperty('-webkit-transform', needleRotationValue);
111:         gaugeNeedleElement.style.setProperty('-moz-transform', needleRotationValue);
112:         gaugeNeedleElement.style.setProperty('-ms-transform', needleRotationValue);
113:         gaugeNeedleElement.style.setProperty('transform', needleRotationValue);
github.com/gwtproject/gwt:user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.java: [ master, ] java
144:   @UiField NeedlesslyAnnotatedLabel needlessLabel;
gwt.googlesource.com/gwt:user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.java: [ master, ] java Duplicate result
github.com/google/beautiful-audio-editor:third_party/closure_library/closure/goog/ui/gauge.js: [ master, ] javascript
405: goog.ui.Gauge.prototype.needleRadius_ = 0;
414: goog.ui.Gauge.prototype.needleGroup_ = null;
423: goog.ui.Gauge.prototype.needleValuePosition_ = null;
81:  * ticks and labels inside the internal border, and a needle that points to
190:  * The length of the needle front (value facing) from the internal radius.
191:  * The needle front is the part of the needle that points to the value.
194: goog.ui.Gauge.FACTOR_NEEDLE_FRONT = 0.95;
198:  * The length of the needle back relative to the internal radius.
199:  * The needle back is the part of the needle that points away from the value.
202: goog.ui.Gauge.FACTOR_NEEDLE_BACK = 0.3;
206:  * The width of the needle front at the hinge.
211: goog.ui.Gauge.FACTOR_NEEDLE_WIDTH = 0.07;
215:  * The width (radius) of the needle hinge from the gauge radius.
218: goog.ui.Gauge.FACTOR_NEEDLE_HINGE = 0.15;
265:  * The maximal size of a step the needle can move (percent from size of range).
266:  * If the needle needs to move more, it will be moved in animated steps, to
270: goog.ui.Gauge.NEEDLE_MOVE_MAX_STEP = 0.02;
277: goog.ui.Gauge.NEEDLE_MOVE_TIME = 400;
399:  * The radius for drawing the needle.
401:  * the needle.
409:  * The group elemnt of the needle. Contains all elements that change when the
418:  * The current position (0-1) of the visible needle.
435:  * Animation object while needle is being moved (animated).
488:  *     determines the position of the needle of the gauge.
508:         goog.ui.Gauge.NEEDLE_MOVE_TIME,
792:   // 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
909:       Math.round(r * goog.ui.Gauge.FACTOR_NEEDLE_FRONT);
911:       Math.round(r * goog.ui.Gauge.FACTOR_NEEDLE_BACK);
917:   var distanceControlPointBase = r * goog.ui.Gauge.FACTOR_NEEDLE_WIDTH;
934:   // Draw the needle hinge
935:   var rh = Math.round(r * goog.ui.Gauge.FACTOR_NEEDLE_HINGE);
937:   // Clean previous needle
962:   // Draw the needle
500:   if (this.needleValuePosition_ == null) {
502:     this.needleValuePosition_ = valuePosition;
506:     this.animation_ = new goog.fx.Animation([this.needleValuePosition_],
635:   this.needleGroup_ = null;
796:   this.needleRadius_ = r;
807:   this.needleValuePosition_ = e.x;
899:   var r = this.needleRadius_;
905:       /** @type {number} */(this.needleValuePosition_));
938:   var needleGroup = this.needleGroup_;
939:   if (needleGroup) {
940:     needleGroup.clear();
942:     needleGroup = this.needleGroup_ = graphics.createGroup();
959:         'center', font, null, fill, needleGroup);
965:   graphics.drawPath(path, stroke, fill, needleGroup);
968:   graphics.drawCircle(cx, cy, rh, stroke, fill, needleGroup);
1009:   delete this.needleGroup_;
963:   var stroke = theme.getNeedleStroke();
964:   var fill = theme.getNeedleFill(cx, cy, rh);

Took 2.362979527s for 7615KB index data, 73959 ngram matches, 9507 docs considered, 7377 docs (191MB) loaded, 245 docs skipped