content stringlengths 40 137k |
|---|
"public void onItemSelectedStatusChange(int position, boolean isSelected) {\n updateDoneString();\n}\n"
|
"public DataHandle getHandle(final ARXNode fnode) {\n currentNode = fnode;\n if ((currentNode != null) && (currentNode == lastNode)) {\n return this;\n }\n lastNode = currentNode;\n final Node node = new Node(0);\n int level = 0;\n for (int i : fnode.getTransformation()) level += i;\n nod... |
"public void run() {\n try {\n TestUtil.terminateInstance(hz);\n } catch (Throwable e) {\n error[0] = e;\n } finally {\n latch.countDown();\n }\n}\n"
|
"protected synchronized ExcerptCommon createAppender0() throws IOException {\n if (this.excerpt != null) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n return this.excerpt = new StatelessExcerptAppender();\n}\n"
|
"private void writeBorder(String position, String lineStyle, String weight, String color) {\n writer.openTag(\"String_Node_Str\");\n writer.attribute(\"String_Node_Str\", position);\n if (isValid(lineStyle)) {\n writer.attribute(\"String_Node_Str\", lineStyle);\n }\n if (isValid(weight)) {\n ... |
"public static GeometricLayer createFromSimpleGeometry(final Polygon imageP, final String geoName, FeatureCollection fc, final String[] schema, final String[] types, boolean applayTransformation, GeoTransform transform) throws IOException {\n GeometricLayer out = null;\n GeometryFactory gf = new GeometryFactory()... |
"public void close() {\n if (dynamicAttributes) {\n expectedAttributes = buffer.getAttributes();\n openFile();\n buffer.replay((measurement) -> {\n try {\n realReport(measurement);\n } catch (ReportingException e) {\n log.error(\"String_Node_St... |
"public void init(FgExampleList data) {\n if (templates.isGrowing() && data != null) {\n log.info(\"String_Node_Str\");\n countFeatures(data, templates);\n }\n templates.stopGrowth();\n this.included = new boolean[numTemplates][][];\n for (int t = 0; t < numTemplates; t++) {\n Factor... |
"protected void drawLegend() {\n if (!mDrawLegend || mLegend == null)\n return;\n String[] labels = mLegend.getLegendLabels();\n Typeface tf = mLegend.getTypeface();\n if (tf != null)\n mLegendLabelPaint.setTypeface(tf);\n mLegendLabelPaint.setTextSize(mLegend.getTextSize());\n mLegendLa... |
"public void onItemSelected(AdapterView<?> adapterView, View view, int position, long l) {\n String selected = getReceiveSources().get(position);\n if (selected.contains(getString(R.string.lga_for_receive))) {\n setAllocation(textViewAllocationId.getText().toString());\n textViewAllocationId.setEnab... |
"private double calculateError(Dataframe trainingData, Map<Object, Double> thitas) {\n double error = streamExecutor.sum(StreamMethods.stream(trainingData.values(), isParallelized()).mapToDouble(r -> {\n double yPredicted = hypothesisFunction(r.getX(), thitas);\n trainingData._unsafe_set(rId, new Recor... |
"public boolean isLegal(Ability source, Game game) {\n Set<UUID> illegalTargets = new HashSet<>();\n int replacedTargets = 0;\n for (UUID targetId : targets.keySet()) {\n Card card = game.getCard(targetId);\n if (card != null) {\n if (zoneChangeCounters.containsKey(targetId) && zoneCha... |
"protected boolean hasPermission() {\n String cmd = request.getCommand();\n if (cmd == null) {\n return false;\n }\n return request.isLoggedIn() || cmd.equals(\"String_Node_Str\") || cmd.equals(\"String_Node_Str\") || cmd.equals(\"String_Node_Str\") || cmd.equals(\"String_Node_Str\") || cmd.equals(\"... |
"protected void createGroupArea(Composite cmpBasic) {\n Composite cmpGrouping = new Composite(cmpBasic, SWT.NONE);\n GridData gdCMPGrouping = new GridData(GridData.FILL_HORIZONTAL);\n gdCMPGrouping.horizontalSpan = 2;\n cmpGrouping.setLayoutData(gdCMPGrouping);\n cmpGrouping.setLayout(new FillLayout());\... |
"protected String getBasePathClasspath() throws ProcessorException {\n final boolean exportingJob = ProcessorUtilities.isExportConfig();\n final String classPathSeparator = extractClassPathSeparator();\n final String rootWorkingDir = getRootWorkingDir(false);\n StringBuffer basePath = new StringBuffer(50);\... |
"public static void addOrUpdatePost(ReaderPost post) {\n if (post == null) {\n return;\n ReaderPostList posts = new ReaderPostList();\n posts.add(post);\n addOrUpdatePosts(null, posts);\n}\n"
|
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);\n setContentView(R.layout.activity_barchart);\n tvX = (TextView) findViewById(R.id.tvXMax);\n tvY = (... |
"private void readObject(ObjectInputStream aInputStream) throws ClassNotFoundException, IOException {\n aInputStream.defaultReadObject();\n this.metric = Metric.createMetric(this.metric, DESERIALIZATION_CONTEXT_MIN_LEVEL, DESERIALIZATION_CONTEXT_MAX_LEVEL);\n}\n"
|
"void run() throws RemoteException {\n try {\n printMessageForState();\n mAm.setActivityController(this, mMonkey);\n mState = STATE_NORMAL;\n InputStreamReader converter = new InputStreamReader(System.in);\n BufferedReader in = new BufferedReader(converter);\n String line;\n... |
"public void getAuthToken(final Callback<String> callback) {\n if (account != null) {\n final String token = account.getIdToken();\n if (token != null) {\n Log.i(TAG, \"String_Node_Str\" + token);\n callback.apply(token);\n } else {\n if (callback != null) {\n ... |
"public static boolean isSensitiveDirectory(File folder) {\n if (folder == null)\n return false;\n String userHome = System.getProperty(\"String_Node_Str\");\n if (folder.equals(new File(userHome)))\n return true;\n String[] sensitive;\n if (OSUtils.isWindowsVista()) {\n sensitive = ... |
"public boolean getDispatchRtBackfill() {\n return getDispatchRealTimeBackfill();\n}\n"
|
"public void refinementTest() throws ParseException, ComponentInitException {\n ReasoningService rs = TestOntologies.getTestOntology(TestOntology.SIMPLE);\n Description input = KBParser.parseConcept(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\" + input);\n KBFile source = new KBFile(kb);\n ... |
"public void onResponse(Call<JwtToken> call, Response<JwtToken> response) {\n token = response.body();\n if (token == null)\n listener.onFailed();\n else\n listener.onSuccess();\n}\n"
|
"public int hashCode() {\n int hash = 1;\n hash = 31 * hash + getActivityModelId();\n hash = 31 * hash + num;\n return hash;\n}\n"
|
"public CommandElement[] getArguments() {\n return new CommandElement[] { Arguments.builder(new PlayerArgument(Text.of(\"String_Node_Str\"))).onlyOne().optional().build() };\n}\n"
|
"public DataEntry withAddedParent(String parent) {\n ImmutableList.Builder<String> parents = ImmutableList.builder();\n parents.add(parent);\n if (this.parents != null) {\n parents.addAll(this.parents);\n }\n return new DataEntry(permissions, options, parents.build(), defaultValue);\n}\n"
|
"public boolean apply(Game game, Ability source) {\n Mana types = getManaTypes(game, source);\n Choice choice = new ChoiceImpl(false);\n choice.setMessage(\"String_Node_Str\");\n if (types.getBlack() > 0) {\n choice.getChoices().add(\"String_Node_Str\");\n }\n if (types.getRed() > 0) {\n ... |
"public void populate(Update update, UpdateContext updateContext) {\n RpslObject submittedObject = update.getSubmittedObject();\n if (!ObjectType.MNTNER.equals(submittedObject.getType())) {\n return;\n }\n for (RpslAttribute auth : submittedObject.findAttributes(AttributeType.AUTH)) {\n CIStri... |
"public BMMClassifier build() {\n BMMClassifier bmmClassifier = new BMMClassifier();\n bmmClassifier.numLabels = numClasses;\n bmmClassifier.numClusters = numClusters;\n bmmClassifier.numFeatures = numFeatures;\n bmmClassifier.binaryClassifierType = binaryClassifierType;\n bmmClassifier.multiClassClas... |
"public void reduce(Text key, Iterable<Text> values, Context context) throws IOException, InterruptedException {\n for (Text value : values) {\n String logRecord = value.toString();\n if (lastTimeStamp == null || (key.getUnixTimestamp() - lastTimeStamp > SESSION_TIMEOUT_IN_MS)) {\n sessionId... |
"public void destroy() {\n this.systemBundleContext.removeBundleListener(this.bundleListener);\n}\n"
|
"static MenuItemsResult addImageMenuItems(Menu menu, int inclusions, final boolean isImage, final Activity activity, final Handler handler, final Runnable onDelete, final MenuInvoker onInvoke) {\n final ArrayList<MenuItem> requiresWriteAccessItems = new ArrayList<MenuItem>();\n final ArrayList<MenuItem> requiresN... |
"private static File getFileForUrlString(File baseFile, String fileUrlStr) throws AddressingException {\n File resultFile = null;\n try {\n URL baseUrl = baseFile.toURI().toURL();\n ;\n URL targetUrl = new URL(baseUrl, fileUrlStr);\n resultFile = new File(targetUrl.getFile());\n } c... |
"private void registerCascadingAsNeeded() {\n if (isMockableType()) {\n boolean shouldCascade = mocked == null || mocked.cascading();\n if (shouldCascade && !(declaredType instanceof TypeVariable)) {\n TestRun.getExecutingTest().getCascadingTypes().add(fieldFromTestClass, declaredType, null)... |
"private ArrayList createImageList(int x, int y) {\n Rectangle area = getBounds();\n ArrayList yList = new ArrayList();\n if ((repeat & ImageConstants.REPEAT_Y) == 0) {\n yList.add(new Point(x, y));\n } else {\n int i = 0;\n while (y + size.height * i + size.height > area.y) {\n ... |
"protected List<Task> execute(Operation operation, final Term[] args, final Memory m) {\n final int numArgs = args.length - 1;\n if (numArgs < 1) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n if (numArgs < 2) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n ... |
"public static long length(final File file) throws SecurityException {\n if (file == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n return ((Long) AccessController.doPrivileged(new PrivilegedAction() {\n\n public Object run() throws SecurityException {\n ... |
"public List<String> getReceiveSources() {\n return Arrays.asList(getString(R.string.others_for_receive), getString(R.string.zonal_store_for_receive), getString(R.string.lga_for_receive));\n}\n"
|
"private Path delete(Path dir) throws IOException {\n return Files.walkFileTree(dir, new DeleteDirVisitor(cl));\n}\n"
|
"private void generateMethodReturn() {\n if (shouldUseMockingBridge() || mockMethod.isAdvice) {\n generateReturnWithObjectAtTopOfTheStack(methodDesc);\n } else {\n Type returnType = Type.getReturnType(methodDesc);\n mw.visitInsn(returnType.getOpcode(IRETURN));\n }\n}\n"
|
"public static String getCurrentBranchLabel(Project project) {\n String branchSelection = NAME_TRUNK;\n String branchSelectionFromProject = ProjectManager.getInstance().getMainProjectBranch(project);\n if (branchSelectionFromProject != null) {\n branchSelection = branchSelectionFromProject;\n }\n ... |
"public Object childEvaluate(Parser parser, String function, List<Object> params) throws ParserException {\n if (\"String_Node_Str\".equalsIgnoreCase(function)) {\n checkNumberOfParameters(\"String_Node_Str\", params, 0, 1);\n String delim = \"String_Node_Str\";\n if (params.size() > 0) {\n ... |
"public void handleEditPostResult(int resultCode, Intent data) {\n if (resultCode != Activity.RESULT_OK || data == null || !isAdded()) {\n return;\n }\n boolean hasChanges = data.getBooleanExtra(EditPostActivity.EXTRA_HAS_CHANGES, false);\n if (!hasChanges) {\n return;\n }\n boolean save... |
"private int readU30Internal() throws IOException {\n long u32 = readU32Internal();\n return (int) (u32 & 0x3FFFFFFF);\n}\n"
|
"public void testMarshalToInvalidOutputStream() {\n try {\n FileDescriptor fd = new FileDescriptor();\n FileOutputStream filestream = new FileOutputStream(fd);\n marshaller.marshal(getControlObject(), filestream);\n } catch (JAXBException e) {\n assertTrue(true);\n return;\n ... |
"private void requestDiggers() {\n if (shouldBeFlatened()) {\n RelativePoint[] protectedTiles = getBuildingType().getProtectedTiles();\n int heightSum = 0;\n for (RelativePoint curr : blocked) {\n ShortPoint2D currPos = curr.calculatePoint(this.pos);\n heightSum += this.gri... |
"public void setKnown() {\n if (!ownedByFruit) {\n if (!isKnown()) {\n handler.know(this);\n }\n Badges.validateAllPotionsIdentified();\n }\n Badges.validateAllPotionsIdentified();\n}\n"
|
"protected void onOK() {\n super.onOK();\n if (parameter.getName() != null) {\n oldParameter.setName(parameter.getName());\n }\n if (parameter.getAlias() != null) {\n oldParameter.setAlias(parameter.getAlias());\n }\n if (parameter.getDataType() != null) {\n oldParameter.setDataTy... |
"private void promoteGlobals(IJstType type, JstTypeSpaceMgr mgr, ResolutionResult rr) {\n if (type.hasGlobalVars()) {\n ITypeSpace<IJstType, IJstNode> typeSpace = mgr.getTypeSpace();\n boolean error = false;\n if (type instanceof JstType) {\n JstType type2 = (JstType) type;\n ... |
"public ExchangeRecord simulate(ExchangeRecord exchangeRecord, SimulationStore simulationStore, SimulationMethod method, TemplateEngine templateEngine, Map<String, List<String>> fieldValues) throws Exception {\n FieldExtractor extractor = new FieldExtractor();\n TemplateFieldSuggestions inputSuggestions = correla... |
"public Set<ServiceDescription> getServiceDescriptions() {\n if (serviceDescriptions == null) {\n serviceDescriptions = new HashSet<ServiceDescription>();\n }\n return serviceDescriptions;\n}\n"
|
"public int compare(Mapping m1, Mapping m2) {\n if (similarities.get(m2).compareTo(similarities.get(m1)) != 0) {\n return Double.compare(similarities.get(m2), similarities.get(m1));\n }\n if (m1.first.getId() != m2.first.getId()) {\n return Integer.compare(m1.first.getId(), m2.first.getId());\n ... |
"private void reBuffer() throws IOException {\n flush();\n resetBuffer();\n if (bufferOffset >= channel.size())\n return;\n }\n if (bufferOffset < minBufferOffset)\n minBufferOffset = bufferOffset;\n channel.position(bufferOffset);\n int read = 0;\n while (read < buffer.length) {\n... |
"public void initializeEmployeeDescriptor() {\n MWRootEisDescriptor employeeDescriptor = getEmployeeDescriptor();\n MWXmlSchema employeeSchema = (MWXmlSchema) getProject().getSchemaRepository().schemas().next();\n MWElementDeclaration employeeElement = employeeSchema.element(\"String_Node_Str\");\n MWClass ... |
"public void refreshFigure() {\n SlotHandle slotHandle = ((ModuleHandle) getModel()).getMasterPages();\n Iterator iter = slotHandle.iterator();\n SimpleMasterPageHandle masterPageHandle = (SimpleMasterPageHandle) iter.next();\n Dimension size = getMasterPageSize(masterPageHandle);\n Rectangle bounds = ne... |
"public void run() {\n for (int i = 0; i < 10; i++) {\n String text = fDocument.get();\n String newText = \"String_Node_Str\";\n text = text.concat(newText);\n fDocument.set(text);\n IModelChange change = new DocumentChangeMessage(i + 150, newText.length(), newText);\n IMode... |
"public void onRequiredValueChange(RequiredValueEvent event) {\n final Integer iterationId = tabPanel != null ? tabPanel.getCurrentIterationId() : null;\n currentPhaseRequiredElements.putActual(iterationId, elementDTO.getId(), event.isValueOn());\n if (isCurrentPhase(getCurrentProject().getCurrentPhase())) {\n... |
"public void run() {\n if (previewCanvas != null && previewCanvas.getDisplay() != null && !previewCanvas.getDisplay().isDisposed()) {\n previewCanvas.getDisplay().syncExec(new Runnable() {\n public void run() {\n if (previewPainter != null) {\n Chart cm = (Chart) g... |
"public void rotate(float angle, float originX, float originY) {\n rotation += angle;\n if (angle == 0)\n return;\n for (Vector2 vertex : vertices) vertex.subtract(originX, originY).rotate(angle).add(originX, originY);\n}\n"
|
"public ResourceRequirement apply(ResourceRequirement existingRequirement) {\n LOG.debug(\"String_Node_Str\", streamId);\n if (existingRequirement == null) {\n return null;\n }\n ResourceRequirement.Builder builder = ResourceRequirement.builder(Constants.Service.STREAMS);\n builder.addPartition(ne... |
"public void testChiSquare() throws MathException {\n final DifferentialExpressionCalculator deCalc = new DifferentialExpressionCalculator();\n final int numReplicates = 2;\n deCalc.defineElement(\"String_Node_Str\");\n deCalc.defineElement(\"String_Node_Str\");\n deCalc.defineGroup(\"String_Node_Str\");... |
"public IIcon getIcon(IBlockAccess World, int X, int Y, int Z, int Side) {\n try {\n TileEntityCarriage carriage = (TileEntityCarriage) world.getTileEntity(X, Y, Z);\n if ((carriage.Decoration != null) && (carriage.SideClosed[Side])) {\n return (carriage.Decoration.getIcon(Side, carriage.Dec... |
"public Edge[] generateEdges() {\n int E = 0;\n for (Node n : this.nodes) {\n E += n.getOutDegree();\n }\n Edge[] edges = new Edge[E];\n int index = 0;\n for (Node n : this.nodes) {\n for (int out : n.getOutgoingEdges()) {\n edges[index++] = new Edge(n.getIndex(), out);\n ... |
"public void adjustBubblesPanel(int newX, int newY, int oldX, int oldY, boolean afterTouchAdjust, boolean resetToOriginal) {\n if (!afterTouchAdjust && !resetToOriginal && (null == mOriginalBubbleFlowDraggableParams || (mPreviousBubbleAdjustmentValue - newY > -5 && mPreviousBubbleAdjustmentValue - newY < 5))) {\n ... |
"private void send(DNSOutgoing out) throws IOException {\n out.finish();\n if (!out.isEmpty()) {\n DatagramPacket packet = new DatagramPacket(out.data, out.off, group, DNSConstants.MDNS_PORT);\n try {\n DNSIncoming msg = new DNSIncoming(packet);\n logger.trace(\"String_Node_Str... |
"public void setPreview(Preview preview) {\n structureChangeFlag = false;\n if (preview == null) {\n if (latestPreview != null) {\n System.out.println(\"String_Node_Str\");\n names = new ArrayList<>();\n data = new ArrayList<>();\n structureChangeFlag = true;\n ... |
"public void extract(final SequentialReader reader, final Metadata metadata, long length, Directory parentDirectory) {\n IptcDirectory directory = new IptcDirectory();\n metadata.addDirectory(directory);\n if (parentDirectory != null)\n directory.setParent(parentDirectory);\n int offset = 0;\n whi... |
"public IStyle getStyle() {\n if (style == null) {\n if (inlineStyle == null) {\n inlineStyle = report.createStyle();\n }\n String styleClass = getStyleClass();\n if (styleClass != null) {\n IStyle classStyle = report.findStyle(styleClass);\n style = new C... |
"public void testIsUserRegionBundleBundle() {\n Assert.assertTrue(this.testRegionHook.isUserRegionBundle(getBundle(SYSTEM_BUNDLE_INDEX)));\n Assert.assertFalse(this.testRegionHook.isUserRegionBundle(getBundle(KERNEL_BUNDLE_INDEX)));\n Assert.assertTrue(this.testRegionHook.isUserRegionBundle(getBundle(USER_REGI... |
"public void executePreTerminationRecipes(Stack stack, Set<HostGroup> hostGroups, Set<String> hostNames) throws CloudbreakException {\n Orchestrator orchestrator = stack.getOrchestrator();\n if (shouldExecuteRecipeOnStack(hostGroups, orchestrator, PRE_TERMINATION)) {\n orchestratorRecipeExecutor.preTermina... |
"public void handleEvent(DownloadStatusEvent event) {\n DownloadStatus downloadStatus = event.getType();\n if (DownloadStatus.COMPLETE == downloadStatus) {\n if (downloader instanceof BTTorrentFileDownloader) {\n BTMetaInfo btMetaInfo = null;\n try {\n BTTorrentFileDown... |
"public void run() {\n running = true;\n ReflectiveRpcChannel reflectiveRpcChannel = new ReflectiveRpcChannel(serviceFactory.newService(AccessMethod.PROTOCOL_BUFFERS, socket.getRemoteSocketAddress().toString()), protocolBuffersMetaData, sService);\n try {\n while (running) {\n DataInputStream... |
"private void initCommands() throws CommandLineException {\n cmdRegistry.registerHandler(new AttachmentHandler(this), \"String_Node_Str\");\n cmdRegistry.registerHandler(new PrefixHandler(), \"String_Node_Str\", \"String_Node_Str\");\n cmdRegistry.registerHandler(new ClearScreenHandler(), \"String_Node_Str\", ... |
"private boolean isElementType(IType elementType) {\n if (this.elementType != Types.UNKNOWN) {\n return elementType.isSuperTypeOf(this.elementType);\n }\n return this.value1.isType(elementType) && this.value2.isType(elementType);\n}\n"
|
"int size() {\n lock.lock();\n try {\n return list.size();\n } finally {\n lock.unlock();\n }\n}\n"
|
"public void sendDecisionRequest(UUID txnID) {\n writeOutput(\"String_Node_Str\" + txnID + \"String_Node_Str\");\n TxnState txnState = participantTxns.get(txnID);\n for (Integer addr : txnState.participants) {\n TxnPacket txnPkt = TxnPacket.getDecisionRequestPacket(this, txnID);\n Callback succes... |
"public void writeStartElement(String prefix, String localName, String namespaceURI) throws XMLStreamException {\n processingStack.get(depth).currentName = localName;\n try {\n boolean isNextArrayElement = processingStack.get(depth).currentName.equals(processingStack.get(depth).lastName);\n if (!isN... |
"public void testGetSpanishMessage() {\n String message = Config.getInstance().getFacadeFactory().getExceptionsFacade().getMessage(\"String_Node_Str\", new Locale(\"String_Node_Str\"));\n String expectedMessage = \"String_Node_Str\";\n assertEquals(expectedMessage, message);\n}\n"
|
"private static void statsAndLogsParametersFilePart(IProcess process) {\n ElementParameter param;\n IPreferenceStore preferenceStore = DesignerPlugin.getDefault().getPreferenceStore();\n List<IElementParameter> paramList = new ArrayList<IElementParameter>();\n String languagePrefix = LanguageManager.getCurr... |
"public static List<double[]> generatekMeansPlusPlusCentroids(int k, List<double[]> input, Random random) {\n int n = input.size();\n assert (n > 0);\n int d = input.get(0).length - 1;\n assert (k <= n);\n List<double[]> centerValue = new ArrayList<double[]>(k);\n double[] lastCenter = new double[d];\... |
"private void walkToNextStep(CharacterActor target) {\n Vector2 p0 = walkingPath.get(currentStep);\n Vector2 pf = walkingPath.get(currentStep + 1);\n target.startWalkAnim(p0, pf);\n float s0 = target.getScene().getFakeDepthScale(p0.y);\n float sf = target.getScene().getFakeDepthScale(pf.y);\n float se... |
"public void testIArrayLike10() throws Exception {\n testTypesWithExtraExterns(EXTERNS_WITH_IARRAYLIKE_DECLS, LINE_JOINER.join(\"String_Node_Str\", \"String_Node_Str\"), LINE_JOINER.join(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\"));\n}\n"
|
"public void testFilter3() throws Exception {\n ICubeQueryDefinition cqd = new CubeQueryDefinition(cubeName);\n IEdgeDefinition columnEdge = cqd.createEdge(ICubeQueryDefinition.COLUMN_EDGE);\n IEdgeDefinition rowEdge = cqd.createEdge(ICubeQueryDefinition.ROW_EDGE);\n IDimensionDefinition dim1 = columnEdge.c... |
"public void displayTrace(TraceModel traceModel) {\n _traceWindow = new TutorialWindow(\"String_Node_Str\");\n _tracePan = new TracePane();\n JCanvas traceWidget = new JCanvas(_tracePan);\n TraceView traceView = _tracePan.getTraceView();\n traceView.setTimeScale(0.02);\n traceView.setLayout(10, 10, 50... |
"protected void openDB(ConflictResolver resolver) {\n assertNull(db);\n DatabaseConfiguration options = new DatabaseConfiguration(this.context);\n options.setDirectory(dir);\n options.setConflictResolver(resolver);\n db = new Database(kDatabaseName, options);\n assertNotNull(db);\n}\n"
|
"protected INDArray newShape(int[] newShape, char ordering) {\n ensureNotCleanedUp();\n if (Arrays.equals(newShape, this.shape()))\n return this;\n else if (Shape.isVector(newShape) && isVector()) {\n if (isRowVector() && Shape.isColumnVectorShape(newShape)) {\n return Nd4j.create(data... |
"public void addPoints(int count, Vector delta) {\n centroid = null;\n numPoints += count;\n if (pointTotal == null)\n pointTotal = delta.copy();\n else\n pointTotal = pointTotal.plus(delta);\n}\n"
|
"public void testMinersSeparately() throws Exception {\n GraphTransactions<GraphHeadPojo, VertexPojo, EdgePojo> transactions = new PredictableTransactionsGenerator<>(10, 1, true, getConfig()).execute();\n float threshold = 0.2f;\n FSMConfig fsmConfig = FSMConfig.forDirectedMultigraph(threshold);\n GSpanGrap... |
"public Attributes getNext() throws IOException {\n int type = 1;\n boolean encoded = false;\n Attributes entry = null;\n int linenr = 0;\n entry = null;\n StringBuffer dn;\n StringBuffer value = dn = null;\n String line;\n String attribute;\n String sDN;\n lastDN = line = attribute = s... |
"public int getPriceInCents() {\n return freeOfCharge ? 0 : price.multiply(EventManager.HUNDRED).intValueExact();\n}\n"
|
"private static ComponentDefinition parseDnaComponentV1(SBOLDocument SBOLDoc, IdentifiableDocument<QName> componentDef) {\n String displayId = null;\n String name = null;\n String description = null;\n URI seq_identity = null;\n Set<URI> roles = new HashSet<>();\n URI identity = componentDef.getIdenti... |
"public void updateEditPos(int index, InjectionConnection connection, LevelReader reader) {\n for (double d = 0; d <= 5; d += 0.25) {\n Vec3D forward = transform.forward(d);\n Vec3I pos = forward.plus(EYE_LEVEL, Y).floor();\n BlockType blockType = reader.getBlockAtPos(pos).type;\n List<Bl... |
"private boolean checkInterval() {\n return (lastTime + refreshInterval()) < System.currentTimeMillis();\n}\n"
|
"public void execute() {\n Pair<List<? extends FirewallRule>, Integer> result = _firewallService.listFirewallRules(this);\n ListResponse<FirewallResponse> response = new ListResponse<FirewallResponse>();\n List<FirewallResponse> fwResponses = new ArrayList<FirewallResponse>();\n if (result != null) {\n ... |
"private RemoteViews generateMediaActionButton(Action action) {\n final boolean tombstone = (action.actionIntent == null);\n RemoteViews button = new BuilderRemoteViews(mBuilder.mContext.getApplicationInfo(), R.layout.notification_material_media_action);\n button.setImageViewResource(R.id.action0, action.icon)... |
"public static String storeName() {\n if (hasManager()) {\n return manager.storeName();\n } else {\n return null;\n }\n}\n"
|
"public void handleLoadPackage(final LoadPackageParam lpparam) throws Throwable {\n findAndHookConstructor(DefaultHttpClient.class, new XC_MethodHook() {\n protected void afterHookedMethod(MethodHookParam param) throws Throwable {\n setObjectField(param.thisObject, \"String_Node_Str\", null);\n ... |
"private LazyMethodGen createMethodGen(String newMethodName) {\n Type[] parameterTypes = world.makeBcelTypes(getArgTypes());\n int modifiers = Modifier.FINAL;\n modifiers |= Modifier.STATIC;\n if (targetVar != null && targetVar != thisVar) {\n TypeX targetType = getTargetType();\n ResolvedMemb... |
"public void run() {\n LoginContext loginContext = null;\n HttpDownloaderService downloaderService = Framework.getLocalService(HttpDownloaderService.class);\n while (true) {\n boolean empty;\n synchronized (parsingPool) {\n empty = parsingPool.isEmpty();\n }\n if (empty) ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.