Search some code: Max results:

Found 14948 results in 428 files (53MB index data, 15275638 ngram matches, 745 docs considered, 483 docs (21MB) loaded, 50 docs skipped): for
(and case_substr:"class" case_substr:"Needle") with options &zoekt.SearchOptions{EstimateDocCount:false, Whole:false, ShardMaxMatchCount:250, TotalMaxMatchCount:1000000, ShardMaxImportantMatch:2, TotalMaxImportantMatch:100, MaxWallTime:10000000000}
in 1.260820507s (queued: 2.173┬Ás)

github.com/google/rekall:rekall-gui/manuskript/static/bower_components/markdown/test/fixtures/Markdown-from-MDTest1.1.mdtest/Markdown_Documentation_-_Syntax.json:[master, ] lang:json

15:         "class": "selected",
264:     ["pre", ["code", "    <div class=\"footer\">\u000a        &copy; 2004 Foo Corporation\u000a    </div>\u000a"]],
266:     ["pre", ["code", "<pre><code>&lt;div class=\"footer\"&gt;\u000a    &amp;copy; 2004 Foo Corporation\u000a&lt;/div&gt;\u000a</code></pre>\u000a"]],
149:     ["p", "in your anchor tag ", ["code", "href"], " attribute. Needless to say, this is easy to\u000aforget, and is probably the single most common source of HTML validation\u000aerrors in otherwise well-marked-up web sites."],
github.com/fuchsia-mirror/third_party-cmake:Source/cmTarget.cxx:[master, ] lang:c++
568:   const cmSourceFileLocation& Needle;
584:   const cmSourceFileLocation& Needle;
158: class cmTargetInternals
571:     : Needle(needle)
577:     return loc.Matches(this->Needle);
588:     : Needle(needle)
599:                    CreateLocation(this->Needle.GetMakefile()));
602:                         LocationMatcher(this->Needle)) != locations.end();
android.googlesource.com/platform/superproject:external/clang/lib/Sema/AnalysisBasedWarnings.cpp:[master, ] lang:c++
591:   const DeclRefExpr *Needle;
62:   class UnreachableCodeHandler : public reachable_code::Callback {
121: class LogicalErrorHandler : public CFGCallback {
179:     // Skip function calls which are qualified with a templated class.
586: /// ContainsReference - A visitor class to search for references to
589: class ContainsReference : public ConstEvaluatedExprVisitor<ContainsReference> {
596:   ContainsReference(ASTContext &Context, const DeclRefExpr *Needle)
597:     : Inherited(Context), FoundReference(false), Needle(Needle) {}
608:     if (E == Needle)
899:   class FallthroughMapper : public RecursiveASTVisitor<FallthroughMapper> {
1360: class UninitValsDiagReporter : public UninitVariablesHandler {
1472: class ThreadSafetyReporter : public clang::threadSafety::ThreadSafetyHandler {
1742: class ConsumedWarningsHandler : public ConsumedWarningsHandlerBase {
259:   // templated classes.
1280:   // FIXME: Should we use a common classification enum and the same set of
android.googlesource.com/platform/external/clang_35a:lib/Sema/AnalysisBasedWarnings.cpp:[master, ] lang:c++
577:   const DeclRefExpr *Needle;
63:   class UnreachableCodeHandler : public reachable_code::Callback {
121: class LogicalErrorHandler : public CFGCallback {
192:         // Skip function calls which are qualified with a templated class.
572: /// ContainsReference - A visitor class to search for references to
575: class ContainsReference : public EvaluatedExprVisitor<ContainsReference> {
580:   ContainsReference(ASTContext &Context, const DeclRefExpr *Needle)
582:       FoundReference(false), Needle(Needle) {}
593:     if (E == Needle)
885:   class FallthroughMapper : public RecursiveASTVisitor<FallthroughMapper> {
1331: class UninitValsDiagReporter : public UninitVariablesHandler {
1454: class ThreadSafetyReporter : public clang::thread_safety::ThreadSafetyHandler {
1629: class ConsumedWarningsHandler : public ConsumedWarningsHandlerBase {
229:   // templated classes.
1254:   // FIXME: Should we use a common classification enum and the same set of
chromium.googlesource.com/native_client/pnacl-clang:lib/Sema/AnalysisBasedWarnings.cpp:[master, ] lang:c++
579:   const DeclRefExpr *Needle;
63:   class UnreachableCodeHandler : public reachable_code::Callback {
122: class LogicalErrorHandler : public CFGCallback {
203:         // Skip function calls which are qualified with a templated class.
574: /// ContainsReference - A visitor class to search for references to
577: class ContainsReference : public EvaluatedExprVisitor<ContainsReference> {
582:   ContainsReference(ASTContext &Context, const DeclRefExpr *Needle)
584:       FoundReference(false), Needle(Needle) {}
595:     if (E == Needle)
888:   class FallthroughMapper : public RecursiveASTVisitor<FallthroughMapper> {
1325: class UninitValsDiagReporter : public UninitVariablesHandler {
1442: class ThreadSafetyReporter : public clang::threadSafety::ThreadSafetyHandler {
1713: class ConsumedWarningsHandler : public ConsumedWarningsHandlerBase {
240:   // templated classes.
1251:   // FIXME: Should we use a common classification enum and the same set of
github.com/llvm-mirror/clang:lib/Sema/AnalysisBasedWarnings.cpp:[master, ] lang:c++
777:   const DeclRefExpr *Needle;
57:   class UnreachableCodeHandler : public reachable_code::Callback {
126: class LogicalErrorHandler : public CFGCallback {
184:     // Skip function calls which are qualified with a templated class.
772: /// ContainsReference - A visitor class to search for references to
775: class ContainsReference : public ConstEvaluatedExprVisitor<ContainsReference> {
782:   ContainsReference(ASTContext &Context, const DeclRefExpr *Needle)
783:     : Inherited(Context), FoundReference(false), Needle(Needle) {}
794:     if (E == Needle)
1085:   class FallthroughMapper : public RecursiveASTVisitor<FallthroughMapper> {
1555: class UninitValsDiagReporter : public UninitVariablesHandler {
1667: class ThreadSafetyReporter : public clang::threadSafety::ThreadSafetyHandler {
1937: class ConsumedWarningsHandler : public ConsumedWarningsHandlerBase {
264:   // templated classes.
1475:   // FIXME: Should we use a common classification enum and the same set of
github.com/fuchsia-mirror/third_party-clang:lib/Sema/AnalysisBasedWarnings.cpp:[master, ] lang:c++
duplicate result
android.googlesource.com/platform/external/clang:lib/Sema/AnalysisBasedWarnings.cpp:[master, ] lang:c++
duplicate result
chromium.googlesource.com/native_client/nacl-toolchain:gdb/sim/common/sim-fpu.h:[master, ] lang:c++
89: } sim_fpu_class;
83:   sim_fpu_class_zero,
84:   sim_fpu_class_snan,
85:   sim_fpu_class_qnan,
86:   sim_fpu_class_number,
87:   sim_fpu_class_denorm,
88:   sim_fpu_class_infinity,
92:   sim_fpu_class class;
346: /* General number class and comparison operators.
46:    Needless to say the results, while better than for a packed 64 bit
297: /* Specific number classes.
chromium.googlesource.com/native_client/nacl-gdb:sim/common/sim-fpu.h:[master, ] lang:c++
89: } sim_fpu_class;
83:   sim_fpu_class_zero,
84:   sim_fpu_class_snan,
85:   sim_fpu_class_qnan,
86:   sim_fpu_class_number,
87:   sim_fpu_class_denorm,
88:   sim_fpu_class_infinity,
92:   sim_fpu_class class;
346: /* General number class and comparison operators.
46:    Needless to say the results, while better than for a packed 64 bit
297: /* Specific number classes.
github.com/hanwen/artisjokke:needle3d/needle-inserter3.hh:[master, ] lang:c++
10: class Needle_inserter3 : public Deformation_hook,  public Element_watcher
12:   enum Needle_state {
16:   Needle_state state_;
55:   Needle_inserter3 (Maubach_tree3*, Deformation_state*);
github.com/hanwen/artisjokke:needle2d/needle-inserter.hh:[master, ] lang:c++
13: class Needle_inserter : public Deformation_hook
2:   declare Needle_inserter
54:   Needle_inserter (Maubach_tree*, Deformation_state*);
kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux:drivers/char/xillybus/xillybus_core.c:[master, ] lang:c
64: static struct class *xillybus_class;
1846: 		device = device_create(xillybus_class,
1868: 		device_destroy(xillybus_class, MKDEV(major, i));
1884: 		device_destroy(xillybus_class, MKDEV(endpoint->major, minor));
2085: 	xillybus_class = class_create(THIS_MODULE, xillyname);
2086: 	if (IS_ERR(xillybus_class))
2087: 		return PTR_ERR(xillybus_class);
2091: 		class_destroy(xillybus_class);
2103: 	class_destroy(xillybus_class);
84:  * They are held for short direct memory manipulations. Needless to say,
github.com/google/kmsan:drivers/char/xillybus/xillybus_core.c:[master, ] lang:c
duplicate result
github.com/google/capsicum-linux:drivers/char/xillybus/xillybus_core.c:[capsicum, ] lang:c
duplicate result
github.com/google/ktsan:drivers/char/xillybus/xillybus_core.c:[tsan, ] lang:c
64: static struct class *xillybus_class;
1844: 		device = device_create(xillybus_class,
1866: 		device_destroy(xillybus_class, MKDEV(major, i));
1882: 		device_destroy(xillybus_class, MKDEV(endpoint->major, minor));
2083: 	xillybus_class = class_create(THIS_MODULE, xillyname);
2084: 	if (IS_ERR(xillybus_class))
2085: 		return PTR_ERR(xillybus_class);
2089: 		class_destroy(xillybus_class);
2101: 	class_destroy(xillybus_class);
84:  * They are held for short direct memory manipulations. Needless to say,
github.com/fuchsia-mirror/third_party-binutils-gdb:sim/common/sim-fpu.h:[master, ] lang:c++
89: } sim_fpu_class;
83:   sim_fpu_class_zero,
84:   sim_fpu_class_snan,
85:   sim_fpu_class_qnan,
86:   sim_fpu_class_number,
87:   sim_fpu_class_denorm,
88:   sim_fpu_class_infinity,
92:   sim_fpu_class class;
346: /* General number class and comparison operators.
46:    Needless to say the results, while better than for a packed 64 bit
297: /* Specific number classes.
github.com/fuchsia-mirror/third_party-gdb:sim/common/sim-fpu.h:[master, ] lang:c++
89: } sim_fpu_class;
83:   sim_fpu_class_zero,
84:   sim_fpu_class_snan,
85:   sim_fpu_class_qnan,
86:   sim_fpu_class_number,
87:   sim_fpu_class_denorm,
88:   sim_fpu_class_infinity,
92:   sim_fpu_class class;
346: /* General number class and comparison operators.
46:    Needless to say the results, while better than for a packed 64 bit
297: /* Specific number classes.
gwt.googlesource.com/gwt:user/test/com/google/gwt/uibinder/test/client/NeedlesslyAnnotatedLabel.java:[master, ] lang: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, ] lang:java
duplicate result
github.com/google/error-prone:check_api/src/test/java/com/google/errorprone/names/NeedlemanWunschEditDistanceTest.java:[master, ] lang:java
27: public class NeedlemanWunschEditDistanceTest {
26: @RunWith(JUnit4.class)
25: /** Tests for NeedlemanWunschEditDistance */
34:         NeedlemanWunschEditDistance.getEditDistance(
47:         NeedlemanWunschEditDistance.getEditDistance(
62:         NeedlemanWunschEditDistance.getWorstCaseEditDistance(
github.com/google/error-prone:check_api/src/main/java/com/google/errorprone/names/NeedlemanWunschEditDistance.java:[master, ] lang: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
chromium.googlesource.com/chromium/codesearch:src/native_client_sdk/src/examples/api/mouse_lock/mouse_lock.cc:[master, ] lang:c++
266: void MouseLockInstance::DrawNeedle(pp::ImageData* image,
348: class MouseLockModule : public pp::Module {
216:   DrawNeedle(&image, kForegroundColor);
269:     Log("DrawNeedle with NULL image");
chromium.googlesource.com/arc/arc:third_party/chromium-ppapi/native_client_sdk/src/examples/api/mouse_lock/mouse_lock.cc:[master, ] lang:c++
duplicate result
chromium.googlesource.com/arc/arc:third_party/chromium-ppapi/third_party/WebKit/PerformanceTests/Speedometer/resources/main.js:[master, ] lang:javascript
105:     _updateGaugeNeedle: function (rpm) {
36:         this._updateGaugeNeedle(results.mean);
172:     currentSectionElement.classList.remove('selected');
173:     newSectionElement.classList.add('selected');
109:         var gaugeNeedleElement = document.querySelector('#summarized-results > .gauge .needle');
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);
chromium.googlesource.com/chromium/codesearch:src/third_party/WebKit/PerformanceTests/Speedometer/resources/main.js:[master, ] lang:javascript
duplicate result
chromium.googlesource.com/chromium/src:native_client_sdk/src/examples/api/mouse_lock/mouse_lock.cc:[master, ] lang:c++
duplicate result
chromium.googlesource.com/ios-chromium-mirror:native_client_sdk/src/examples/api/mouse_lock/mouse_lock.cc:[master, ] lang:c++
duplicate result
chromium.googlesource.com/arc/arc:third_party/android/external/chromium_org/native_client_sdk/src/examples/api/mouse_lock/mouse_lock.cc:[master, ] lang:c++
duplicate result
chromium.googlesource.com/dart/dartium/src:native_client_sdk/src/examples/api/mouse_lock/mouse_lock.cc:[master, ] lang:c++
duplicate result
chromium.googlesource.com/ios-chromium-mirror:third_party/WebKit/PerformanceTests/Speedometer/resources/main.js:[master, ] lang:javascript
duplicate result
chromium.googlesource.com/chromium/src:third_party/WebKit/PerformanceTests/Speedometer/resources/main.js:[master, ] lang:javascript
duplicate result
github.com/GoogleCloudPlatform/IoT-Icebreaker:appengine/sensordata-to-ui/public/third_party/epoch/epoch.js:[master, ] lang:javascript
3412:   Gauge.prototype.drawNeedle = function() {
1661:       this.g.append("g").attr("class", "x axis bottom").attr("transform", "translate(0, " + (this.innerHeight()) + ")").call(this.bottomAxis());
1664:       this.g.append("g").attr('class', 'x axis top').call(this.topAxis());
1667:       this.g.append("g").attr("class", "y axis left").call(this.leftAxis());
1670:       this.g.append('g').attr('class', 'y axis right').attr('transform', "translate(" + (this.innerWidth()) + ", 0)").call(this.rightAxis());
1802:     layer.enter().append('g').attr('class', function(d) {
1805:     layer.append('path').attr('class', 'area').attr('d', function(d) {
1985:     layer.enter().append("g").attr('class', 'layer').attr("transform", function(d) {
1991:     rects.attr('class', function(d) {
2001:     rects.enter().append('rect').attr('class', function(d) {
2026:     layer.enter().append("g").attr('class', 'layer').attr("transform", function(d) {
2032:     rects.attr('class', function(d) {
2042:     rects.enter().append('rect').attr('class', function(d) {
2270:     layer.enter().append('g').attr('class', function(l) {
2272:     }).append('path').attr('class', 'line').attr('d', (function(_this) {
2326:     arcs.enter().append('g').attr('class', function(d) {
2393:     layer.enter().append('g').attr('class', function(d) {
2407:     dots.enter().append('circle').attr('class', 'dot').attr("r", function(d) {
2582:       axis = this.bottomAxis = this.svg.append('g').attr('class', "x axis bottom canvas").attr('transform', "translate(" + (this.margins.left - 1) + ", " + (this.innerHeight() / this.pixelRatio + this.margins.top) + ")");
2583:       axis.append('path').attr('class', 'domain').attr('d', "M0,0H" + (this.innerWidth() / this.pixelRatio + 1));
2586:       axis = this.topAxis = this.svg.append('g').attr('class', "x axis top canvas").attr('transform', "translate(" + (this.margins.left - 1) + ", " + this.margins.top + ")");
2587:       axis.append('path').attr('class', 'domain').attr('d', "M0,0H" + (this.innerWidth() / this.pixelRatio + 1));
2623:       this.svg.append("g").attr("class", "y axis left").attr('transform', "translate(" + (this.margins.left - 1) + ", " + this.margins.top + ")").call(this.leftAxis());
2626:       return this.svg.append('g').attr('class', 'y axis right').attr('transform', "translate(" + (this.width - this.margins.right) + ", " + this.margins.top + ")").call(this.rightAxis());
2844:       g = this.bottomAxis.append('g').attr('class', 'tick major').attr('transform', "translate(" + (tick.x + 1) + ",0)").style('opacity', tick.opacity);
2850:       g = this.topAxis.append('g').attr('class', 'tick major').attr('transform', "translate(" + (tick.x + 1) + ",0)").style('opacity', tick.opacity);
3297:     this.svg = this.el.insert('svg', ':first-child').attr('width', this.width).attr('height', this.height).attr('class', 'gauge-labels');
3302:     this.svg.append('g').attr('transform', "translate(" + (this.textX()) + ", " + (this.textY()) + ")").append('text').attr('class', 'value').text(this.options.format(this.value));
585:     var category, classes, i, layer, len;
589:       classes = ['layer'];
590:       classes.push("category" + category);
594:         classes.push(Epoch.Util.dasherize(layer.label));
596:       layer.className = classes.join(' ');
872:     var classNames, element, id, match, tag, whole;
877:     whole = match[0], tag = match[1], id = match[2], classNames = match[3];
883:     if (classNames != null) {
884:       element.className = classNames.substr(1).replace(/\./g, ' ');
945:       if ((element.className != null) && element.className.length > 0) {
946:         sel += '.' + Epoch.Util.trim(element.className).replace(/\s+/g, '.');
1803:       return d.className;
1933:     var className, entry, j, k, l, layer, len, len1, map, name, ref, ref1, results, v;
1938:       className = 'bar ' + layer.className.replace(/\s*layer\s*/, '');
1948:           className: className
1992:       return d.className;
2002:       return d.className;
2033:       return d.className;
2043:       return d.className;
2271:       return l.className;
2327:       return "arc pie " + d.data.className;
2394:       return d.className;
2555:     var classes, copy, data, i, layer, start;
2563:       classes = ['layer'];
2564:       classes.push("category" + ((i | 0) + 1));
2566:         classes.push(Epoch.Util.dasherize(layer.label));
2568:       copy.className = classes.join(' ');
3089:     if ((layer != null) && (layer.className != null)) {
3090:       styles = this.getStyles("g." + (layer.className.replace(/\s/g, '.')) + " path.area");
3209:   Bar.prototype.setStyles = function(className) {
3211:     styles = this.getStyles("rect.bar." + (className.replace(/\s/g, '.')));
3236:       this.setStyles(layer.className);
3408:     this.drawNeedle();
3668:       styles = this.getStyles("." + (layer.className.split(' ').join('.')) + " rect.bucket");
3786:   Line.prototype.setStyles = function(className) {
3788:     styles = this.getStyles("g." + (className.replace(/\s/g, '.')) + " path.line");
3807:       this.setStyles(layer.className);
github.com/google/pepper.js:examples/mouselock/mouselock.cc:[master, ] lang:c++
268: void MouseLockInstance::DrawNeedle(pp::ImageData* image,
355: class MouseLockModule : public pp::Module {
217:   DrawNeedle(&image, kForegroundColor);
271:     Log("DrawNeedle with NULL image");
github.com/googleglass/gdk-compass-sample:app/src/main/java/com/google/android/glass/sample/compass/CompassView.java:[master, ] lang:java
341:     private void drawNeedle(Canvas canvas, boolean bottom) {
50: public class CompassView extends View {
217:         drawNeedle(canvas, false);
218:         drawNeedle(canvas, true);
chromium.googlesource.com/chromium:native_client_sdk/src/examples/mouselock/mouselock.cc:[trunk, ] lang:c++
241: void MouseLockInstance::DrawNeedle(pp::ImageData* image,
324: class MouseLockModule : public pp::Module {
193:   DrawNeedle(&image, foreground_color);
244:     Log("DrawNeedle with NULL image");
android.googlesource.com/platform/external/chromium_org:native_client_sdk/src/examples/api/mouse_lock/mouse_lock.cc:[master, ] lang:c++
duplicate result
chromium.googlesource.com/chromium/src/third_party:WebKit/PerformanceTests/Speedometer/resources/main.js:[master, ] lang:javascript
duplicate result
github.com/bazelbuild/bazel:src/main/java/com/google/devtools/build/lib/rules/android/AndroidCommon.java:[master, ] lang:java
132:   private Artifact classJar;
81:  * A helper class for android rules.
86: public class AndroidCommon {
181:         AndroidNeverLinkLibrariesProvider.class)) {
188:           deps, JavaCompilationArgsProvider.class)) {
364:       // Needle index is exhausted, so the needle must match.
383:         ruleContext, Mode.TARGET, NativeLibsZipsProvider.class);
400:         ruleContext.isLegalFragment(AndroidConfiguration.class)
401:             && ruleContext.getFragment(AndroidConfiguration.class).getExportsManifestDefault();
419:     // We don't actually use the ijar. That is almost the same as the resource class jar
443:     // Only build the class jar if it's not already generated internally by resource processing.
555:               .getProvider(FileProvider.class)
586:       // Use a fast-path R class generator for android_binary with local resources, where there is
587:       // a bottleneck. For legacy resources, the srcjar and R class compiler don't match up
644:         // layout XML up the dependency chain. Say a library's XML references a Java class,
767:       builder.add(GeneratedExtensionRegistryProvider.class, generatedExtensionRegistryProvider);
796:         .addProvider(JavaRuleOutputJarsProvider.class, ruleOutputJarsProvider)
797:         .addProvider(JavaSourceJarsProvider.class, sourceJarsProvider)
799:             JavaRuntimeJarProvider.class,
801:         .addProvider(RunfilesProvider.class, RunfilesProvider.simple(getRunfiles()))
803:             AndroidResourcesProvider.class,
806:             AndroidIdeInfoProvider.class,
817:         .addProvider(JavaCompilationArgsProvider.class, compilationArgsProvider)
853:     AndroidResourcesProvider provider = prerequisite.getProvider(AndroidResourcesProvider.class);
882:         && ruleContext.getFragment(AndroidConfiguration.class).allowSrcsLessAndroidLibraryDeps();
955:     return context.getConfiguration().getFragment(AndroidConfiguration.class);
985:       // But it's still important to process the deps' .bin files so any Java class references get
1024:       ApkProvider apkProvider = dep.getProvider(ApkProvider.class);
1025:       FileProvider fileProvider = dep.getProvider(FileProvider.class);
1041:         && !ruleContext.getFragment(AndroidConfiguration.class).allowResourcesAttr()
95:       RuleContext ruleContext, Mode mode, final Class<T> classType) {
100:         builder.add(ruleContext.getPrerequisites(attr, mode, classType));
202:       Artifact jarToDex, Artifact classesDex, List<String> dexOptions, boolean multidex,
222:     commandLine.addPrefixedExecPath("--output=", classesDex);
230:             .addOutput(classesDex)
416:     // Add the compiled resource jar to the classpath of the main compilation.
418:     // Add the compiled resource jar to the classpath of consuming targets.
487:       // combined resource constants copy needs to come before library classes that may contain
547:     classJar = ruleContext.getImplicitOutputArtifact(AndroidRuleClasses.ANDROID_LIBRARY_CLASS_JAR);
548:     idlHelper = new AndroidIdlHelper(ruleContext, classJar);
593:       // Combined resource constants needs to come even before our own classes that may contain
633:     this.jarsProducedForRuntime = jarsProducedForRuntime.add(classJar).build();
684:       // We only want to add a jar to the classpath of a dependent rule if it has content.
685:       javaArtifactsBuilder.addRuntimeJar(classJar);
686:       jar = classJar;
689:     filesBuilder.add(classJar);
691:     manifestProtoOutput = helper.createManifestProtoOutput(classJar);
696:       genClassJar = helper.createGenJar(classJar);
697:       genSourceJar = helper.createGensrcJar(classJar);
698:       helper.createGenJarAction(classJar, manifestProtoOutput, genClassJar);
707:     outputDepsProto = helper.createOutputDepsProtoArtifact(classJar, javaArtifactsBuilder);
708:     helper.createCompileActionWithInstrumentation(classJar, manifestProtoOutput, genSourceJar,
764:     idlHelper.addTransitiveInfoProviders(builder, classJar, manifestProtoOutput);
777:             .addOutputJar(classJar, iJar, ImmutableList.of(srcJar))
787:     javaCommon.addTransitiveInfoProviders(builder, filesToBuild, classJar, ANDROID_COLLECTION_SPEC);
907:    * Returns Jars produced by this rule that may go into the runtime classpath.  By contrast
908:    * {@link #getRuntimeJars()} returns the complete runtime classpath needed by this rule, including
986:       // re-referenced so they don't get filtered out of the compilation classpath by JavaBuilder
987:       // (which filters out classpath .jars that "aren't used": see --reduce_classpath). If data
551:     ImmutableList<Artifact> bootclasspath;
553:       bootclasspath = ImmutableList.<Artifact>builder()
554:           .addAll(ruleContext.getPrerequisite("$desugar_java8_extra_bootclasspath", Mode.HOST)
560:       bootclasspath =
570:             .setBootClassPath(bootclasspath);
739:             helper.getBootclasspathOrDefault()));
chromium.googlesource.com/experimental/src-pruned-refs:native_client_sdk/src/examples/api/mouse_lock/mouse_lock.cc:[master, ] lang:c++
duplicate result
chromium.googlesource.com/chromium/chromium:native_client_sdk/src/examples/api/mouse_lock/mouse_lock.cc:[trunk, ] lang:c++
duplicate result
android.googlesource.com/platform/external/swig:Doc/Manual/CPlusPlus11.html:[master, ] lang:html
891: <H3><a name="CPlusPlus11_sizeof">7.2.25 Allow sizeof to work on members of classes without an explicit object</a></H3>
12: <div class="sectiontoc">
91: <div class="code"><pre>
92: class MyClass {
106: Generally you would just ignore them via <tt>%ignore</tt> before parsing the class.
110: <div class="code"><pre>
118: <div class="shell">
133: <div class="code"><pre>
149: <div class="code"><pre>
150: template class std::vector&lt;int&gt;;        // C++03 explicit instantiation in C++
151: extern template class std::vector&lt;int&gt;; // C++11 explicit instantiation suppression in C++
164: <div class="shell">
172: They often appear in constructors which are overloaded with alternative approaches to initializing a class,
177: <div class="code"><pre>
179: class Container {
188: <p>Alternatively you could modify the class and add another constructor for initialization by some other means,
191: <div class="code"><pre>
193: class Container {
205: <div class="targetlang"><pre>
210: If you are unable to modify the class being wrapped, consider ignoring the initializer-list constructor and using
214: <div class="code"><pre>
227: class Container {
237: The above makes the wrappers look is as if the class had been declared as follows:
240: <div class="code"><pre>
242: class Container {
261: <div class="code"><pre>
265: class Container {
293: <div class="code"><pre>
312: <div class="targetlang"><pre>
326: <div class="code"><pre>
332: <div class="code"><pre>
347: <div class="code"><pre>
361: <div class="code"><pre>
373: <div class="code"><pre>
381: <div class="code"><pre>
393: <div class="targetlang"><pre>
400: <div class="code"><pre>
412: <div class="code"><pre>
413: class A {
432: This is parsed correctly, but the additional constructors are not currently added to the derived proxy class in the target language.
440: <div class="code"><pre>
441: class BaseClass {
446: class DerivedClass: public BaseClass {
457: <div class="code"><pre>
458: class SomeClass {
475: <div class="code"><pre>
499: <p>SWIG supports strongly typed enumerations and parses the new <tt>enum class</tt> syntax and forward declarator for the enums, such as:</p>
500: <div class="code"><pre>
501: enum class MyEnum : unsigned int;
508: <div class="code"><pre>
510:   enum class RainbowColors : unsigned int {
514:   enum class WarmColors {
527: However, generally, most scripting languages mangle in the strongly typed enumeration's class name,
531: <div class="targetlang"><pre>
539: <div class="shell"><pre>
544: The strongly typed languages often wrap normal enums into an enum class and so treat normal enums and strongly typed enums the same.
548: <div class="targetlang"><pre>
559: <div class="code"><pre>
569: <div class="code"><pre>
570: class U {
575: class V {
580: class TestClass {
613: <div class="code"><pre>
621: <div class="code"><pre>
628: <div class="code"><pre>
630: class SomeType {
645: <div class="code"><pre>
662: <div class="code"><pre>
685: block, variadic class inheritance and variadic constructor and
688: <div class="code"><pre>
689: template &lt;typename... BaseClasses&gt; class ClassName : public BaseClasses... {
700: <div class="code"><pre>
708: <div class="code"><pre>
721: <div class="code"><pre>
756: <div class="code"><pre>
763: <div class="code"><pre>
771: <div class="code"><pre>
782: <div class="shell"><pre>
791: <div class="code"><pre>
799: <div class="code"><pre>
807: <div class="code"><pre>
819: <div class="code"><pre>
839: <div class="code"><pre>
859: <div class="code"><pre>
884: <div class="code"><pre>
898: <div class="code"><pre>
907: <div class="targetlang"><pre>
922: <div class="code"><pre>
935: <div class="code"><pre>
944: <div class="code"><pre>
955: <div class="code"><pre>
967: <div class="code"><pre>
1041: <div class="code"><pre>
1058: <div class="targetlang"><pre>
1068: <div class="code"><pre>
1073:   template&lt; class T1, class T2 &gt; static int do_it(T1 &amp;, T2 &amp;)  { /*...*/ return 1; }
1078:   template&lt; class T1, class T2 &gt; static int do_it(T1, T2)  { /*...*/ return 2; }
1082: template&lt; class T1, class T2 &gt; int elaborate(T1 A, T2 B) {
1097: <div class="code"><pre>
1106: <div class="targetlang"><pre>
1117: The new <tt>std::result_of</tt> class introduced in the &lt;functional&gt; header provides a generic way to obtain the return type of a function type via <tt>std::result_of::type</tt>.
1120: The technique basically forward declares the <tt>std::result_of</tt> template class, then partially specializes it for the function types of interest.
1124: <div class="code"><pre>
1147: template&lt;class Fun, class Arg&gt;
1159: The empty template instantiation suffices as no proxy class is required for <tt>std::result_of&lt;Fun(Arg)&gt;::type</tt> as this type is really just a <tt>double</tt>.
1168: <div class="targetlang"><pre>
41: <li><a href="#CPlusPlus11_sizeof">Allow sizeof to work on members of classes without an explicit object</a>
160: they are intended for compile time initialization of classes using the special <tt>std::initializer_list</tt> type.
276: Needless to say, this approach is very limited, but could be improved upon, but only slightly.
435: The extra constructors provided by the <tt>using</tt> syntax will add the appropriate constructors into the target language proxy derived classes.
600: The effect of explicit constructors and operators has little relevance for the proxy classes as target
980: classes introduced (thread, mutex, locks, condition variables, task). The main reason is that
1004: While SWIG could provide wrappers for the new C++11 regular expressions classes, there is little need as the target languages have their own regular expression facilities.
1036: SWIG supports functor classes in a few languages in a very natural way.
github.com/google/mysql-protobuf:unittest/gunit/item_like-t.cc:[mysql-5.7.9, ] lang:c++
218: static const char* falseNeedles[] = {
25: #include "sql_class.h"
39: class ItemLikeTest : public ::testing::Test
91: class ItemLikeTestP : public ::testing::TestWithParam<const char*>
108: class ItemFalseLikeTestP : public ::testing::TestWithParam<const char*>
199: INSTANTIATE_TEST_CASE_P(MoreNeedles, ItemLikeTestP,
203: TEST_P(ItemLikeTestP, MoreNeedlesTest)
289: INSTANTIATE_TEST_CASE_P(FalseNeedlesTest, ItemFalseLikeTestP,
290:                         ::testing::ValuesIn(falseNeedles));
292: TEST_P(ItemFalseLikeTestP,FalseNeedlesTest)
android.googlesource.com/platform/packages/wallpapers/MusicVisualization:src/com/android/musicvis/vis5/Visualization5RS.java:[master, ] lang:java
45:     private int mNeedlePos = 0;
46:     private int mNeedleSpeed = 0;
48:     private int mNeedleMass = 10;
35: class Visualization5RS extends RenderScriptScene {
51:     static class WorldState {
358:         // mNeedleSpeed * 3 is for the movement of the needle, which induces an opposite current
360:         // mNeedlePos + mSpringForceAtOrigin is for the force of the spring pushing the needle back
361:         int netforce = volt - mNeedleSpeed * 3 - (mNeedlePos + mSpringForceAtOrigin) ;
362:         int acceleration = netforce / mNeedleMass;
363:         mNeedleSpeed += acceleration;
364:         mNeedlePos += mNeedleSpeed;
365:         if (mNeedlePos < 0) {
366:             mNeedlePos = 0;
367:             mNeedleSpeed = 0;
368:         } else if (mNeedlePos > 32767) {
369:             if (mNeedlePos > 33333) {
372:             mNeedlePos = 32767;
373:             mNeedleSpeed = 0;
379:         mWorldState.mAngle = 131f - (mNeedlePos / 410f); // ~80 degree range
android.googlesource.com/platform/packages/wallpapers/MusicVisualization:src/com/android/musicvis/vis4/Visualization4RS.java:[master, ] lang:java
45:     private int mNeedlePos = 0;
46:     private int mNeedleSpeed = 0;
48:     private int mNeedleMass = 10;
35: class Visualization4RS extends RenderScriptScene {
51:     static class WorldState {
235:         // mNeedleSpeed * 3 is for the movement of the needle, which induces an opposite current
237:         // mNeedlePos + mSpringForceAtOrigin is for the force of the spring pushing the needle back
238:         int netforce = volt - mNeedleSpeed * 3 - (mNeedlePos + mSpringForceAtOrigin) ;
239:         int acceleration = netforce / mNeedleMass;
240:         mNeedleSpeed += acceleration;
241:         mNeedlePos += mNeedleSpeed;
242:         if (mNeedlePos < 0) {
243:             mNeedlePos = 0;
244:             mNeedleSpeed = 0;
245:         } else if (mNeedlePos > 32767) {
246:             if (mNeedlePos > 33333) {
249:             mNeedlePos = 32767;
250:             mNeedleSpeed = 0;
256:         mWorldState.mAngle = 131f - (mNeedlePos / 410f); // ~80 degree range
github.com/google/csp-evaluator:third_party/closure-library/closure/goog/ui/gaugetheme.js:[master, ] lang:javascript
127: goog.ui.GaugeTheme.prototype.getNeedleStroke = function() {
139: goog.ui.GaugeTheme.prototype.getNeedleFill = function(cx, cy, r) {
31:  * A class for the default color theme for a Gauge.
32:  * Users can extend this class to provide a custom color theme, and apply the
github.com/google/beautiful-audio-editor:third_party/closure_library/closure/goog/ui/gaugetheme.js:[master, ] lang:javascript
128: goog.ui.GaugeTheme.prototype.getNeedleStroke = function() {
140: goog.ui.GaugeTheme.prototype.getNeedleFill = function(cx, cy, r) {
31:  * A class for the default color theme for a Gauge.
32:  * Users can extend this class to provide a custom color theme, and apply the
github.com/google/tracing-framework:third_party/closure-library/closure/goog/ui/gaugetheme.js:[master, ] lang:javascript
127: goog.ui.GaugeTheme.prototype.getNeedleStroke = function() {
139: goog.ui.GaugeTheme.prototype.getNeedleFill = function(cx, cy, r) {
31:  * A class for the default color theme for a Gauge.
32:  * Users can extend this class to provide a custom color theme, and apply the
github.com/karma-runner/karma-closure:test-app/lib/goog/ui/gaugetheme.js:[master, ] lang:javascript
127: goog.ui.GaugeTheme.prototype.getNeedleStroke = function() {
139: goog.ui.GaugeTheme.prototype.getNeedleFill = function(cx, cy, r) {
31:  * A class for the default color theme for a Gauge.
32:  * Users can extend this class to provide a custom color theme, and apply the
github.com/google/crisis-info-hub:closure-library/closure/goog/ui/gaugetheme.js:[master, ] lang:javascript
duplicate result