content stringlengths 40 137k |
|---|
"private void marshal(Object object, MarshalRecord marshalRecord, AbstractSession session, XMLDescriptor descriptor, boolean isXMLRoot) {\n if (null != schema) {\n marshalRecord = new ValidatingMarshalRecord(marshalRecord, this);\n }\n if (getAttachmentMarshaller() != null) {\n marshalRecord.setX... |
"public void testTupleSerialization() {\n Tuple payload = TupleBuilder.tuple().of(\"String_Node_Str\", \"String_Node_Str\");\n Message<?> converted = messageBus.serializePayloadIfNecessary(new GenericMessage<Tuple>(payload), MimeTypeUtils.APPLICATION_OCTET_STREAM);\n MimeType mimeType = contentTypeResolver.res... |
"protected Record getOrNullIfExpired(Record record, long now, boolean backup) {\n if (!isRecordStoreExpirable()) {\n return record;\n }\n if (record == null) {\n return null;\n }\n final Data key = record.getKey();\n if (isLocked(key)) {\n return record;\n }\n if (!isExpired... |
"public static void renderComponentStack(GuiBase gui, GuiComponent<ItemStack> component) {\n RenderHelper.enableGUIStandardItemLighting();\n gui.getRenderItem().renderItemAndEffectIntoGUI(component.getComponent(), 0, 0);\n GlStateManager.enableAlpha();\n}\n"
|
"public final void renderer(Canvas canvas) {\n int width = mContentRect.width() + mContentRect.left;\n int height = mContentRect.height();\n if (mDrawBitmap == null || (mDrawBitmap.get().getWidth() != width) || (mDrawBitmap.get().getHeight() != height)) {\n if (width > 0 && height > 0) {\n mD... |
"public void setStatic(World world, boolean isStatic) {\n WorldServer worldServer = ((CraftWorld) world).getHandle();\n ReflectionHelper.setFieldValue(net.minecraft.server.v1_10_R1.World.class, \"String_Node_Str\", worldServer, isStatic);\n}\n"
|
"public <T> T fetchLinks(T obj, String regex) {\n EntityOperator opt = this._optBy(obj);\n if (null == opt)\n return null;\n Lang.each(obj, new Each<Object>() {\n public void invoke(int index, Object ele, int length) throws ExitLoop, ContinueLoop, LoopException {\n EntityOperator opt =... |
"public boolean checkIfMatchEnds() {\n int activePlayers = 0;\n MatchPlayer matchWinner = null;\n for (MatchPlayer matchPlayer : players) {\n if (!matchPlayer.hasQuit()) {\n activePlayers++;\n matchWinner = matchPlayer;\n }\n if (matchPlayer.getWins() >= options.getWi... |
"public static String detailedMapToString(Map map) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"String_Node_Str\");\n for (Object key : map.keySet()) {\n sb.append(\"String_Node_Str\");\n sb.append(String.valueOf(key));\n sb.append(\"String_Node_Str\");\n Object value =... |
"private static void applyConfFileOption(ComponentManager cm, Component component, ConfFileOption option) {\n String optionName = option.getSubOption();\n ConfigOption<?> configOption = cm.getConfigOption(component.getClass(), optionName);\n if (configOption != null) {\n try {\n if (configOpt... |
"public int available() {\n System.out.println(\"String_Node_Str\");\n if (!isComplete()) {\n return 0;\n }\n int available = this.currentLength - this.read;\n for (int i = this.nextPacketToRead; i < this.packets.length; ++i) {\n available += this.packets[i].getLength() - RPCMessage.METADAT... |
"public void run() {\n IPreferenceStore store = ESBRunContainerPlugin.getDefault().getPreferenceStore();\n String etcLocation = store.getString(RunContainerPreferenceInitializer.P_ESB_RUNTIME_LOCATION);\n String host = store.getString(RunContainerPreferenceInitializer.P_ESB_RUNTIME_HOST);\n System.setProper... |
"public float getNotificationsTopY() {\n return mTopPadding + getStackTranslation();\n}\n"
|
"private void setUpTextView(Context context, AttributeSet attrs) {\n TypedArray ta = context.obtainStyledAttributes(attrs, R.styleable.DynamicText, 0, 0);\n try {\n mMinTextSize = ta.getDimension(R.styleable.DynamicText_minimumTextSize, getTextSize());\n } finally {\n ta.recycle();\n }\n Lo... |
"public boolean hasNext() {\n return rowIt.hasNext();\n}\n"
|
"private ReferenceBinding createTypeRef(char[][] compoundName) {\n return environment.getType(compoundName);\n}\n"
|
"private void createTOC(TOCNode tocNode, PdfOutline pol, Set bookmarks) {\n if (null == tocNode || null == tocNode.getChildren())\n return;\n for (Iterator i = tocNode.getChildren().iterator(); i.hasNext(); ) {\n TOCNode node = (TOCNode) i.next();\n if (!bookmarks.contains(node.getBookmark())... |
"private void trimDirectiveWhitespacesAndComments(ListIterator<AstStatement> it, int block, ParserContext ctx) {\n boolean trimDirectiveWhitespaces = ctx.isTrimDirectiveWhitespaces();\n boolean trimDirectiveComments = ctx.isTrimDirectiveComments();\n String trimDirectiveCommentsPrefix = ctx.getTrimDirectiveCom... |
"public ArrayList<SuggestedWordInfo> getSuggestions(final WordComposer composer, final CharSequence prevWord, final ProximityInfo proximityInfo) {\n if (reloadDictionaryIfRequired())\n return null;\n if (composer.size() > 1) {\n if (composer.size() >= BinaryDictionary.MAX_WORD_LENGTH) {\n ... |
"public long getTimestampValue() {\n if (value.length != 6) {\n return -1;\n }\n return (((value[0] & 0xffl) << 24) + ((value[1] & 0xffl) << 16) + ((value[2] & 0xffl) << 8) + (value[3] & 0xffl) + (((value[4] & 0xffl) << 8) + (value[5] & 0xffl)) * 86400000l) + 441763200000l;\n}\n"
|
"public static void main(String[] args) {\n Stats stats = new Stats();\n boolean generate = true;\n int times = 1;\n boolean wot = false;\n boolean skipExistingFolders = false;\n Config.overwrite(\"String_Node_Str\", \"String_Node_Str\");\n Config.overwrite(\"String_Node_Str\", \"String_Node_Str\")... |
"public org.hl7.fhir.dstu2.model.Medication convertMedication(org.hl7.fhir.dstu3.model.Medication src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Medication tgt = new org.hl7.fhir.dstu2.model.Medication();\n copyDomainResource(src, tgt);\n tgt... |
"public void rcDropCell(String row, String rowOperator, String col, String colOperator, int xPos, String xUnits, int yPos, String yUnits, int delayBeforeDrop) throws StepExecutionException {\n try {\n TableAdapter adapter = (TableAdapter) getComponent();\n int implRow = adapter.getRowFromString(row, ro... |
"public void setTransparent(boolean b) {\n if (!properties.containsKey(PROPERTY_TRANSPARENT)) {\n properties.put(PROPERTY_TRANSPARENT, Boolean.valueOf(renderable.isTransparent()));\n }\n renderable.setTransparent(b);\n}\n"
|
"public void onComplete(RippleView rippleView) {\n startActivity(MyRequestsActivity.createIntent());\n dialog.dismiss();\n}\n"
|
"public void copyHeaders(HttpServletResponse response) {\n Iterator<Header> iterator = headers.iterator();\n while (iterator.hasNext()) {\n Header header = iterator.next();\n if (!\"String_Node_Str\".equalsIgnoreCase(header.getName()))\n response.addHeader(header.getName(), header.getValu... |
"public String exportRdfToString() throws IOException {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n exportRdfToStream(baos, language);\n return baos.toString();\n}\n"
|
"private void teardown(Throwable t) {\n if (t == null) {\n t = new NullPointerException(\"String_Node_Str\");\n }\n this.logRequestFailure(t);\n this.response.setException(t);\n if (this.connectFuture != null) {\n this.maybeCloseChannel();\n }\n}\n"
|
"public void destroy(Object o) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException {\n for (Method preDestroy : preDestroys) {\n preDestroy.invoke(o);\n}\n"
|
"public Cursor findFirstOrLast(Session session, boolean first) {\n TransactionMap<Value, Value> map = getMap(session);\n ValueLong v = (ValueLong) (first ? map.firstKey() : map.lastKey());\n if (v == null) {\n return new MVStoreCursor(Collections.<Entry<Value, Value>>emptyList().iterator(), null);\n ... |
"public Parameters getParameters() throws RemoteException {\n final Drone drone = getDroneMgr().getDrone();\n final Map<String, com.ox3dr.services.android.lib.drone.property.Parameter> proxyParams = new HashMap<String, com.ox3dr.services.android.lib.drone.property.Parameter>();\n List<Parameter> droneParameter... |
"private static JUnitTest createDummyTestForBatchTest(JUnitTest test) {\n JUnitTest t = (JUnitTest) test.clone();\n int index = test.getName().indexOf('.');\n String pack = index > 0 ? test.getName().substring(0, index + 1) : \"String_Node_Str\";\n t.setName(pack + NAME_OF_DUMMY_TEST);\n return t;\n}\n"
|
"private static boolean twoStringEq(String s1, String s2) {\n if (s1 == null && s2 == null)\n return true;\n if (s1 == null) {\n return false;\n } else\n return s1.equals(s2);\n}\n"
|
"public void perform(Arguments arguments, PrintStream output) throws Exception {\n DatasetId dataset = cliConfig.getCurrentNamespace().dataset(arguments.get(ArgumentName.DATASET.toString()));\n datasetClient.delete(dataset);\n output.printf(\"String_Node_Str\", dataset.getEntityName());\n}\n"
|
"public void testUseAppContextMemoryCache1() throws BirtException, Exception {\n this.dataSet.setCacheRowCount(7);\n DataEngineContext dec = DataEngineContext.newInstance(DataEngineContext.DIRECT_PRESENTATION, null, null, null);\n dec.setCacheOption(DataEngineContext.CACHE_USE_ALWAYS, 100);\n myDataEngine =... |
"private void appendRawContactsByNormalizedNameFilter(StringBuilder sb, String normalizedName, boolean allowEmailMatch) {\n sb.append(\"String_Node_Str\" + \"String_Node_Str\" + NameLookupColumns.RAW_CONTACT_ID + \"String_Node_Str\" + Tables.NAME_LOOKUP + \"String_Node_Str\" + NameLookupColumns.NORMALIZED_NAME + \"S... |
"public void shouldFetchEmptyList_withAttributeQueryWithEmptyAttributeList() throws Exception {\n final AttributeQuery query = mock(AttributeQuery.class);\n final Condition mockCondition = mock(Condition.class);\n when(mockCondition.hasMissingComparisonValues()).thenReturn(true);\n when(query.getCondition()... |
"public String checkItemStatusInland() {\n List<Integer> planning1 = new ArrayList();\n List<Integer> planning2 = new ArrayList();\n List<Integer> planning3 = new ArrayList();\n List<Integer> onGoing = new ArrayList();\n if (\"String_Node_Str\".equals(orderItem.getEditItem())) {\n if (check == nul... |
"public Mana computeMana(Game game, Ability source) {\n this.computedMana.clear();\n if (!source.getChoices().isEmpty()) {\n Choice choice = source.getChoices().get(0);\n if (choice != null && choice instanceof ChoiceColor && choice.getChoice() != null) {\n String color = choice.getChoice... |
"public T execute() throws ODataProducerException {\n String path = Enumerable.create(getSegments()).join(\"String_Node_Str\");\n ODataClientRequest request = ODataClientRequest.get(getServiceRootUri() + path);\n if (select != null) {\n request = request.queryParam(\"String_Node_Str\", select);\n }\n... |
"public static Map<String, String> getHadoopDbParameters(String clusterId) {\n Map<String, String> map = new HashMap<String, String>();\n HadoopClusterConnectionItem clusterItem = HCRepositoryUtil.getRelativeHadoopClusterItem(clusterId);\n if (clusterItem != null) {\n HadoopClusterConnection hcConnectio... |
"private final void showTopValue(IPrimitiveRenderer ipr, Location lo, Label la, int iLabelPosition, boolean bShadow) {\n final Graphics2D g2d = (Graphics2D) ((IDeviceRenderer) ipr).getGraphicsContext();\n final FontDefinition fd = la.getCaption().getFont();\n final double dAngleInDegrees = fd.getRotation();\n ... |
"public void testNoRows() throws Exception {\n JournalWriter<Quote> w = factory.writer(Quote.class);\n TestUtils.generateQuoteData(w, 100000);\n StringSink sink = new StringSink();\n RecordSourcePrinter p = new RecordSourcePrinter(sink);\n p.print(new TopRecordSource(compiler.compileSource(factory, \"Str... |
"final void registerCaptureOfNewInstances(MockedType typeMetadata, Object mockInstance) {\n capturingTypeMetadata = typeMetadata;\n Class<?> baseType = typeMetadata.getClassType();\n if (!typeMetadata.isFinalFieldOrParameter()) {\n makeSureAllSubtypesAreModified(typeMetadata);\n }\n List<Capture> ... |
"protected void saveAnalysis() throws DataprofilerCoreException {\n for (Domain domain : this.analysisItem.getAnalysis().getParameters().getDataFilter()) {\n domain.setName(this.analysisItem.getAnalysis().getName());\n }\n IRepositoryViewObject reposObject = null;\n getAnalysisHandler().clearAnalysis... |
"private void modifySourceMemberAccessesInTargetClass(MethodDeclaration newMethodDeclaration) {\n ExpressionExtractor extractor = new ExpressionExtractor();\n List<Expression> sourceMethodInvocations = extractor.getMethodInvocations(sourceMethod.getBody());\n List<Expression> newMethodInvocations = extractor.g... |
"public void performDrop(final DropTargetEvent event) {\n final ArtifactData artData = ArtifactTransfer.getInstance().nativeToJava(event.currentDataType);\n final List<Artifact> droppedArtifacts = Arrays.asList(artData.getArtifacts());\n Collections.reverse(droppedArtifacts);\n final Artifact dropTarget = g... |
"private void dispatchOnDownloadError(JsonElement jsonElement) {\n for (IMXMediaDownloadListener callback : mDownloadListeners) {\n try {\n callback.onDownloadError(mDownloadId, jsonElement);\n } catch (Exception e) {\n Log.e(LOG_TAG, \"String_Node_Str\" + e.getMessage());\n ... |
"public static int[] diffInternal(SparseIntSet A, SparseIntSet B) {\n if (Assertions.verifyAssertions) {\n Assertions._assert(A != null);\n Assertions._assert(B != null);\n }\n if (A.isEmpty()) {\n return new int[0];\n } else if (B.isEmpty()) {\n int[] newElts = new int[A.size];\... |
"public void testStepSize() throws DimensionMismatchException, NumberIsTooSmallException, MaxCountExceededException, NoBracketingException {\n doTestStepSize(Decimal64Field.getInstance(), 1.0e-22);\n}\n"
|
"private boolean savePattern() {\n if (tempPatternComponents.size() == 0) {\n MessageDialog.openError(null, DefaultMessagesImpl.getString(\"String_Node_Str\"), DefaultMessagesImpl.getString(\"String_Node_Str\", pattern.getName()));\n return false;\n }\n this.pattern.getComponents().clear();\n ... |
"public void process() throws InterruptedException {\n LOG.info(\"String_Node_Str\");\n LOG.info(\"String_Node_Str\");\n publishApi.publish(new StartComponent(\"String_Node_Str\", new CelestrackComponent()));\n Thread.sleep(10000);\n azzert(accessApi.retrieveTleFor(\"String_Node_Str\") != null, \"String_... |
"public void convertFromTo(double fromValue, double toValue) {\n if (expression.equals(\"String_Node_Str\") || expression.matches(regexInvalidChars))\n return;\n String prevExp = solve();\n if (prevExp.equals(\"String_Node_Str\"))\n return;\n try {\n BigDecimal bdToUnit = new BigDecimal... |
"private static void parseRange(CharSequence seq, int lo, int p, int lim, int position, LongList out) throws ParserException {\n char type = seq.charAt(lim - 1);\n int period;\n try {\n period = Numbers.parseInt(seq, p + 1, lim - 1);\n } catch (NumericException e) {\n throw QueryError.$(positi... |
"public Tracker trackEvent(String category, String action, String label, Integer value) {\n return track(new TrackMe().set(QueryParams.EVENT_CATEGORY, category).set(QueryParams.EVENT_ACTION, action).set(QueryParams.EVENT_NAME, label).set(QueryParams.EVENT_VALUE, value));\n}\n"
|
"public void runWrite(final Marshaller marshaller) throws Throwable {\n marshaller.writeObject(s);\n marshaller.writeObject(s);\n}\n"
|
"protected void verifyMin() {\n clickCorrectButton();\n selenium.type(inputFormat.format(ID.min), wrongValue.get(ID.min).toString());\n selenium.click(a4jCommandBtn);\n waitGui.until(textEquals.locator(msgFormat.format(ID.min)).text(messages.get(ID.min)));\n}\n"
|
"public void add(long begin, long end) {\n ClaimedEntry newClaimedEntry = new ClaimedEntry(begin, end);\n if (!newClaimedEntry.isValid()) {\n return;\n }\n makeCurrentValid();\n if (!current.isValid()) {\n current = claimedEntry;\n } else {\n if (otherClaimedEntries == Collections... |
"public byte[] lookup(byte[] id, long partitionId, boolean callback) throws Exception {\n lookupRequests.mark();\n final Timer.Context context = lookupTimer.time();\n try {\n if (doNothing)\n return null;\n StorePartition storePartition = PistachiosServer.storePartitionMap.get(partitio... |
"protected void addListeners() {\n nameText.addModifyListener(new ModifyListener() {\n public void modifyText(ModifyEvent e) {\n if (!isSaveAs) {\n if (nameText.getText().length() == 0) {\n nameModifiedByUser = false;\n } else {\n ... |
"private static void processOptionString(String[] args) {\n for (int i = 0, n = args.length; i < n; i++) {\n try {\n String arg = args[i];\n if (arg.startsWith(\"String_Node_Str\") && options.processAsOption(\"String_Node_Str\", arg.substring(4))) {\n } else if (arg.equals(\"S... |
"public void display(GL2 gl) {\n if (showDetailBrick) {\n ElementLayout spacingLayoutX = new ElementLayout(\"String_Node_Str\");\n spacingLayoutX.setPixelGLConverter(parentGLCanvas.getPixelGLConverter());\n spacingLayoutX.setPixelSizeX(OVERVIEW_DETAIL_GAP_PIXEL);\n spacingLayoutX.setRatio... |
"public void selectSplitOffset() {\n SplitMergeLineFitSegment alg = new SplitMergeLineFitSegment(0.15, MIN_SPLIT, 100);\n alg.contour = new ArrayList<Point2D_I32>();\n for (int i = 0; i < 10; i++) alg.contour.add(new Point2D_I32(i, 0));\n alg.contour.get(4).y = 10;\n alg.line.slope.x = 5;\n int found ... |
"public static boolean isPeaceful(GlobalCoordinate coordinate) {\n if (areas.isEmpty()) {\n return false;\n }\n List<GlobalCoordinate> toRemove = new ArrayList<>();\n boolean peaceful = false;\n long curtime = System.currentTimeMillis() - 10000;\n for (Map.Entry<GlobalCoordinate, PeacefulArea> ... |
"private void addRegion() {\n if (CLLocationManager.isRegionMonitoringAvailable()) {\n CLLocationCoordinate2D coord = new CLLocationCoordinate2D(regionsMapView.getCenterCoordinate().getLatitude(), regionsMapView.getCenterCoordinate().getLongitude());\n CLRegion newRegion = new CLRegion(coord, 1000, Str... |
"public void onClick(View view) {\n CheckBox checkBox = (CheckBox) view;\n sparseArrayCheckBoxes.put(position, checkBox.isChecked());\n friend.setSelected(checkBox.isChecked());\n notifyCounterChanged(checkBox.isChecked());\n if (checkBox.isChecked()) {\n selectedFriends.add(friend);\n } else i... |
"public void signOn(UserSession usess) {\n boolean isDebug = log.isDebug();\n synchronized (usess) {\n if (isDebug)\n log.debug(\"String_Node_Str\");\n if (usess.isAuthenticated()) {\n throw new AssertException(\"String_Node_Str\");\n }\n IdentityEnvironment ident... |
"public void trimToLastHour() {\n for (RecordEntry e : entries) {\n if (new Date().getTime() - e.getTime() > 3600000) {\n entries.remove(e);\n }\n }\n}\n"
|
"public void before() {\n DateTimeUtils.setCurrentMillisFixed(NOW.getMillis());\n validator = new ConsentSignatureValidator(0);\n}\n"
|
"public void testHDFSBlobStoreConnection() throws Exception {\n expect(mockStore.getFilesystem()).andReturn(mockFs);\n expect(mockStore.getId()).andReturn(mockId);\n replay(mockStore, mockFs);\n HDFSBlobStoreConnection connection = createTestConnection();\n assertNotNull(connection);\n}\n"
|
"private void updateNodeOnLink(CreationTool tool) {\n try {\n Class toolClass = TargetingTool.class;\n Field targetRequestField = toolClass.getDeclaredField(\"String_Node_Str\");\n Field targetEditpartField = toolClass.getDeclaredField(\"String_Node_Str\");\n targetRequestField.setAccessi... |
"public static void postInit(FMLPostInitializationEvent event) {\n LogHelper.debug(\"String_Node_Str\");\n ResourceCrops.init();\n CustomCrops.init();\n ModHelper.initHelpers();\n Recipes.init();\n SeedHelper.init();\n GrowthRequirementHandler.init();\n CustomCrops.initGrassSeeds();\n CropPla... |
"public boolean visit(final InjectionPlan<?> aNodeFrom, final InjectionPlan<?> aNodeTo) {\n mGraphStr.append(\"String_Node_Str\").append(aNodeFrom.getClass()).append('_').append(aNodeFrom.getNode().getName()).append(\"String_Node_Str\").append(aNodeTo.getClass()).append('_').append(aNodeTo.getNode().getName()).appen... |
"private byte[] padKey(byte[] in, int inOff, int len) {\n byte[] padded;\n if (len % engine.getByteLength() == 0) {\n padded = new byte[len + engine.getByteLength()];\n } else {\n int blocks = len / engine.getByteLength();\n padded = new byte[(blocks * engine.getByteLength()) + engine.getB... |
"public void onPersistSuccess(final T batch) {\n lastBatch = batch;\n registerReceiverIfRequired();\n resume();\n}\n"
|
"private boolean doProcess(ApplicationInactivatedEvent event, Applications applications) {\n Application application = applications.getApplication(event.getAppId());\n if (application == null) {\n if (log.isWarnEnabled()) {\n log.warn(String.format(\"String_Node_Str\", event.getAppId()));\n ... |
"public String buildScript() {\n applyInspectorChanges();\n DirectivePanel p = getRootPanel();\n if (p == null)\n return null;\n else\n return \"String_Node_Str\" + p.buildScript();\n}\n"
|
"public boolean equals(Object object) {\n if (this == object) {\n return true;\n }\n if (object == null) {\n return false;\n }\n if (!(object instanceof RIConfiguration)) {\n return false;\n }\n RIConfiguration<?, ?> other = (RIConfiguration<?, ?>) object;\n if (cacheEntryLi... |
"private Map<String, Object> valueSpecDiff(ValueSpecification vs, JSONObject firstObject) {\n Map<String, Object> result = new HashMap<String, Object>();\n PropertyValueType valueType = PropertyValueType.valueOf((String) firstObject.get(\"String_Node_Str\"));\n String message = \"String_Node_Str\";\n String... |
"private boolean placeContentWithSize(LegendItemHints lih, Point size) throws ChartException {\n if (!hasPlaceForOneItem(size, lgData)) {\n return false;\n }\n if (dX + size.getX() > lgData.dAvailableWidth + lgData.dSafeSpacing) {\n columnList.clear();\n return false;\n } else {\n ... |
"private void createLoopLinks(List<HL7TreeNode> treeData) {\n for (HL7TreeNode treeNode : treeData) {\n if (treeNode.getColumn() != null) {\n TableItem tableItem = null;\n for (TableItem curTableItem : getSource().getItems()) {\n if (curTableItem.getText().equals(treeNode.... |
"protected void createTopTable(Composite parent) {\n Composite container = new Composite(parent, SWT.NONE);\n TableColumnLayout layout = new TableColumnLayout();\n container.setLayout(layout);\n portfolios = new TableViewer(container, SWT.FULL_SELECTION);\n ColumnEditingSupport.prepare(portfolios);\n ... |
"public static void storeGameByPrompting() {\n Game game = new Game();\n game.addProperty(\"String_Node_Str\", \"String_Node_Str\");\n game.addProperty(\"String_Node_Str\", \"String_Node_Str\");\n game.addProperty(\"String_Node_Str\", \"String_Node_Str\");\n game.addProperty(\"String_Node_Str\", \"String... |
"protected SchematicBlock loadSchematicFromWorldNBT(NBTTagCompound nbt, MappingRegistry registry) throws MappingNotFoundException {\n int blockId = nbt.getInteger(\"String_Node_Str\");\n Block b = registry.getBlockForId(blockId);\n if (b == Blocks.AIR) {\n SchematicBlock s = new SchematicBlock();\n ... |
"public Iterable<String> commonPrefixSearch(String query) {\n List<String> ret = new ArrayList<String>();\n char[] chars = query.toCharArray();\n int charsIndex = 0;\n int nodeId = 0;\n int start = 0;\n TailCharIterator tci = new TailCharIterator(tails, -1);\n while (true) {\n start = bv.sel... |
"public OptimisticTransactionResult beginCommit(ArrayList<Long> updateOid, ArrayList<Long> updateTimestamps) {\n DBLogger.debugPrintln(1, \"String_Node_Str\");\n sm.getLock().release(this);\n sm.getLock().writeLock(this);\n OptimisticTransactionResult ovr = checkConsistencyInternal(updateOid, updateTimestam... |
"private List<E> getNodesByPath(int[][] paths) {\n if (paths == null)\n return Collections.EMPTY_LIST;\n List<E> list = new ArrayList<E>();\n for (int[] path : paths) {\n E node = getChild(path);\n if (node != null)\n list.add(node);\n }\n return list;\n}\n"
|
"private byte[] createPayload(NdefMessageEncoder messageEncoder, SmartPosterRecord myRecord) {\n List<Record> records = new ArrayList<Record>();\n if (myRecord.getTitle() != null)\n records.add(myRecord.getTitle());\n if (myRecord.getUri() != null)\n records.add(myRecord.getUri());\n if (myRec... |
"public Object load() {\n ReportItemHandle element = getReportItemHandle();\n int type = element.getDataBindingType();\n List referenceList = getAvailableDataBindingReferenceList(element);\n String[] references = new String[referenceList.size() + 1];\n references[0] = NONE;\n for (int i = 0; i < refer... |
"protected void createCenterContents(Composite parent) {\n FormData layouDatag = new FormData();\n layouDatag.left = new FormAttachment(0, 0);\n layouDatag.width = 32;\n layouDatag.top = new FormAttachment(0, 0);\n layouDatag.bottom = new FormAttachment(100, 0);\n final Composite buttonComposite = new... |
"public static InterleavedU8 yuvToInterleavedRgbU8(Image yuv, InterleavedU8 output, byte[] work) {\n int width = yuv.getWidth();\n int height = yuv.getHeight();\n if (output != null) {\n output.reshape(width, height, 3);\n } else {\n output = new InterleavedU8(width, height, 3);\n }\n In... |
"public String getIdentifier() {\n return pdbId + \"String_Node_Str\" + ResidueRange.toString(getResidueRanges());\n}\n"
|
"public ArrayList<Actor> scrapeActors() {\n Elements actorElements = document.select(\"String_Node_Str\");\n ArrayList<Actor> actorList = new ArrayList<>();\n if (actorElements != null) {\n for (Element currentActorElement : actorElements) {\n String actorName = currentActorElement.attr(\"Str... |
"public Tuple exec(Tuple input) throws IOException {\n if (input == null || input.size() == 0) {\n return null;\n }\n final String rawTag = input.get(tagColumnNum).toString();\n if (!super.tagSet.contains(rawTag)) {\n if (isPigEnabled(Constants.SHIFU_GROUP_COUNTER, \"String_Node_Str\")) {\n ... |
"public void validate(FacesContext context, UIComponent comp, Object value) throws ValidatorException {\n String storeId = (String) comp.getAttributes().get(this.getName());\n if (storeId == null || value == null)\n return;\n UIComponent storeComp = context.getViewRoot().findComponent(storeId);\n if ... |
"private static String getSubtypeLocaleDisplayNameInternal(final String localeString, final Locale displayLocale) {\n final Integer exceptionalNameResId = sExceptionalLocaleToNameIdsMap.get(localeString);\n final String displayName;\n if (exceptionalNameResId != null) {\n final RunInLocale<String> getEx... |
"public static IChoiceSet getDEChoiceSet(String property) {\n String unitKey = DesignChoiceConstants.CHOICE_UNITS;\n if (AttributeConstant.BACKGROUND_COLOR.equals(property)) {\n unitKey = IColorConstants.COLORS_CHOICE_SET;\n } else if (AttributeConstant.FONT_COLOR.equals(property)) {\n unitKey = ... |
"public void testBasicIV3() throws Exception {\n this.GEN_add_group = true;\n this.genBasicIV();\n this.closeArchiveWriter();\n DataEngineContext deContext2 = newContext(DataEngineContext.MODE_UPDATE, fileName, fileName);\n myPreDataEngine = DataEngine.newDataEngine(deContext2);\n this.PRE_add_sort = ... |
"private static Method findInterfaceMethod(Class<?> anInterface, String methodName, Class<?>[] parameterTypes) {\n for (Class<?> superInterface : anInterface.getInterfaces()) {\n try {\n return anInterface.getMethod(methodName, parameterTypes);\n } catch (NoSuchMethodException ignore) {\n ... |
"private ColumnRearranger createColumnRearranger(DataTableSpec inSpec, final NamedPattern pattern, final int bcIdx, final int insertAt) {\n final List<String> groupNames = pattern.groupNames();\n final int newColCount = groupNames.size();\n final DataColumnSpec[] newColSpecs = new DataColumnSpec[newColCount];\... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.