content stringlengths 40 137k |
|---|
"private boolean varMustBeInitialized(Var v) {\n return v.storage() == VarStorage.ALIAS || v.storage() == VarStorage.LOCAL || Types.isScalarUpdateable(v.type());\n}\n"
|
"public void testIsSame4DiffVersion() {\n ImportItem ImportItem1 = mock(ImportItem.class);\n Property property1 = mock(Property.class);\n when(itemRecord1.getProperty()).thenReturn(property1);\n when(property1.getId()).thenReturn(\"String_Node_Str\");\n when(property1.getVersion()).thenReturn(\"String_No... |
"public byte[] decodeBlock(byte[] in, int inOff, int inLen) throws InvalidCipherTextException {\n byte[] data = engine.processBlock(in, inOff, inLen);\n byte[] block;\n if (data.length < engine.getOutputBlockSize()) {\n block = new byte[engine.getOutputBlockSize()];\n System.arraycopy(data, 0, bl... |
"public void onItineraryRequestDone(boolean aSuccess, ISItineraryProvider.ISBaseRequest aRequest, final ISError error) {\n if (aSuccess) {\n if (mItineraryRenderer != null) {\n mItineraryRenderer.setDisplayEnabled(true);\n }\n } else {\n String message = getString(R.string.error_it... |
"public void loadExtendsOrImplements(List<ClassOrInterfaceType> extendsList) {\n if (extendsList != null) {\n Symbol<?> superSym = table.findSymbol(\"String_Node_Str\");\n Map<String, SymbolType> typeParams = null;\n Scope superScope = null;\n if (superSym != null) {\n superSco... |
"public CtConstructor makeClassInitializer() throws CannotCompileException {\n CtConstructor clinit = getClassInitializer();\n if (clinit != null)\n return clinit;\n checkModify();\n ClassFile cf = getClassFile2();\n Bytecode code = new Bytecode(cf.getConstPool(), 0, 0);\n modifyClassConstructo... |
"private List<EObject> computeAddedReferences(List<EObject> leftReferences, List<EObject> rightReferences) {\n final List<EObject> deletedReferences = new ArrayList<EObject>();\n final List<EObject> addedReferences = new ArrayList<EObject>();\n final double similarReferenceURIThreshold = 0.8d;\n if (leftRef... |
"public <T> DocumentEntity<T> updateDocument(String database, String documentHandle, T value, Long rev, Policy policy, Boolean waitForSync, Boolean keepNull) throws ArangoException {\n validateDocumentHandle(documentHandle);\n HttpResponseEntity res = httpManager.doPatch(createDocumentEndpointUrl(database, docume... |
"public static int nickName(Player player, String[] args) {\n if (player.canUseCommand(\"String_Node_Str\")) {\n if (args.length < 2) {\n vMinecraftChat.sendMessage(player, player, Colors.Rose + \"String_Node_Str\");\n return EXIT_SUCCESS;\n }\n if (args[1].length() > 30) {... |
"public static void reconstructCoherencyMatrixT3(final PolBandUtils.MATRIX sourceProductType, final int idx, final ProductData[] dataBuffers, final double[][] Tr, final double[][] Ti) {\n final double[][] Cr = new double[2][2];\n final double[][] Ci = new double[2][2];\n final double[] kr = new double[2];\n ... |
"public boolean shouldFilter() {\n RequestContext ctx = RequestContext.getCurrentContext();\n return ctx.containsKey(\"String_Node_Str\") && !ctx.getBoolean(SEND_ERROR_FILTER_RAN, false);\n}\n"
|
"public static Transaction transactionFullEditionEuroGooglePlay() {\n Transaction transaction = new Transaction();\n transaction.setPurchaseCostCurrency(\"String_Node_Str\");\n transaction.setPurchaseCost(100);\n transaction.setStoreName(PurchaseManagerConfig.STORE_NAME_ANDROID_GOOGLE);\n transaction.set... |
"private Map<String, List<String>> getChecksums(Location ba, Set<String> filenames) {\n ChecksumJob checksumJob = new ChecksumJob();\n checksumJob.processOnlyFilesNamed(new ArrayList<String>(filenames));\n String batchResult;\n try {\n PreservationArcRepositoryClient arcrep = ArcRepositoryClientFacto... |
"protected void drawMarkers() {\n if (mMarkerView == null || !mDrawMarkerViews || !valuesToHighlight())\n return;\n for (int i = 0; i < mIndicesToHightlight.length; i++) {\n int xIndex = mIndicesToHightlight[i].getXIndex();\n int dataSetIndex = mIndicesToHightlight[i].getDataSetIndex();\n ... |
"public void Setup(EntityPlayer Player, ItemStack Item) {\n super.Setup(Player, Item);\n int l = BlockPistonBase.determineOrientation(Player.worldObj, xCoord, yCoord, zCoord, Player);\n pointedDir = Directions.values()[l].opposite();\n}\n"
|
"private Command getCommandToMoveBendpointsAfterTargetAggregatorHasMoved(OPPStructuralLinkPart link, Rectangle rect) {\n CompoundCommand cc = new CompoundCommand();\n Point prevPoint = pointFromOPPPoint(link.getBendpoints().get(link.getBendpoints().size() - 2));\n cc.add(newMoveBendpointCommand(link, link.getB... |
"public static void visitController(final Project project, ControllerVisitor visitor, String prefix) {\n Collection<PhpClass> allSubclasses = new HashSet<PhpClass>() {\n {\n addAll(PhpIndex.getInstance(project).getAllSubclasses(\"String_Node_Str\"));\n addAll(PhpIndex.getInstance(project... |
"private void runProcessContextChanged(final PropertyChangeEvent evt) {\n if (isDisposed()) {\n return;\n }\n String propName = evt.getPropertyName();\n if (ProcessMessageManager.UPDATE_CONSOLE.equals(propName)) {\n processNextMessage();\n } else if (ProcessMessageManager.PROP_MESSAGE_ADD.e... |
"public CardLabelValue addLabelValueToCard(CardLabel label, int cardId, LabelValue val) {\n queries.addLabelValueToCard(cardId, label.getUnique() ? true : null, label.getId(), label.getType().toString(), val.getValueString(), val.getValueTimestamp(), val.getValueInt(), val.getValueCard(), val.getValueUser(), val.get... |
"public String getRange() {\n if (upperValue != null && lowerValue != null) {\n if (Java2SqlType.isNumbericInSQL(upperValue.getDatatype())) {\n Double upper = upperValue.getRealValue();\n Double lower = lowerValue.getRealValue();\n if (upper != null && lower != null) {\n ... |
"public void setSolutionSpace(SolutionSpace solutions) {\n lattice.solutions = solutions;\n}\n"
|
"protected void createFieldAreas(Composite parent) {\n JavaTextControl nameControl = new JavaTextControl(ControlTypes.NAME, getOffsetLabelLocation(), suggestionName);\n nameControl.createControlArea(parent);\n nameControl.addSelectionListener(new ValidatedValueSelectionListener(ControlTypes.NAME, suggestionNam... |
"public void flush(Connection connection) throws IOException {\n if (connection != null) {\n DataOutputStream dos = connection.getOutputStream();\n dos.flush();\n }\n}\n"
|
"public ARXConfiguration addPrivacyModel(PrivacyCriterion c) {\n checkArgument(c);\n if ((c instanceof DPresence) && this.isPrivacyModelSpecified(DPresence.class)) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n if ((c instanceof KMap) && this.isPrivacyModelSpecified(KMap.class)) {\n ... |
"public void validate(UIFormInput uiInput) throws Exception {\n String s = (String) uiInput.getValue();\n if (Character.isDigit(s.charAt(0)) || s.charAt(0) == '-') {\n Object[] args = { uiInput.getName(), uiInput.getBindingField() };\n throw new MessageException(new ApplicationMessage(\"String_Node_... |
"public static HostnameReposName resolveRepositoryName(String reposName) {\n if (reposName.contains(\"String_Node_Str\")) {\n throw new InvalidRepositoryNameException();\n }\n String[] nameParts = reposName.split(\"String_Node_Str\", 2);\n if (nameParts.length == 1 || (!nameParts[0].contains(\"String... |
"public static void connect() throws VerdictException, SQLException, FileNotFoundException {\n final String host = readHost();\n final String port = \"String_Node_Str\";\n final String schema = \"String_Node_Str\";\n VerdictConf conf = new VerdictConf();\n conf.setDbms(\"String_Node_Str\");\n conf.set... |
"private void rescan() {\n if (!AccountsFragment.this.isAdded()) {\n return;\n }\n accountListAdapter.getFocusedAccount().dropCachedData();\n _mbwManager.getWalletManager(false).startSynchronization(SyncMode.FULL_SYNC_CURRENT_ACCOUNT_FORCED);\n _mbwManager.getColuManager().startSynchronization();\... |
"public void addCounters(Counter counter, Game game) {\n int amount = counter.getCount();\n for (int i = 0; i < amount; i++) {\n Counter eventCounter = counter.copy();\n eventCounter.remove(amount - 1);\n if (!game.replaceEvent(GameEvent.getEvent(GameEvent.EventType.ADD_COUNTER, playerId, pla... |
"public void run() {\n String prefix = null;\n String defaultValue = null;\n NameSpaceDialog nsDialog = new NameSpaceDialog(null);\n nsDialog.setParentNode(parent);\n int status = nsDialog.open();\n if (status == nsDialog.OK) {\n defaultValue = nsDialog.getNSValue();\n if (defaultValue !... |
"private static String getTWSSettingsDirectory() {\n return Settings.settings().getString(\"String_Node_Str\", System.getProperty(\"String_Node_Str\"));\n}\n"
|
"protected void logInput(Message inputMessage, ISendMessageCallback messageTarget, boolean unitOfWorkBoundaryReached) {\n MessageHeader header = inputMessage.getHeader();\n int threadNumber = ThreadUtils.getThreadNumber();\n String source = \"String_Node_Str\";\n try {\n source = componentContext.get... |
"public URL getDownloadLink() {\n Element ele = doc.select(\"String_Node_Str\").first();\n Matcher m = ID_PATTERN.matcher(ele.attr(\"String_Node_Str\"));\n m.find();\n try {\n return new URL(String.format(\"String_Node_Str\", id1, id2, getNewestFile().replaceAll(\"String_Node_Str\", \"String_Node_Str... |
"public void run() {\n try {\n final InetAddress addr = InetAddress.getByName(hostName);\n if (Internets.isReachable(addr, 2000)) {\n ArbitratorControl.error.remove(hostName);\n ArbitratorControl.okay.put(hostName, config);\n }\n } catch (final UnknownHostException e) {\... |
"public Processable createNewExecutionAction(final DistributedTask task) {\n if (task == null)\n throw new RuntimeException(\"String_Node_Str\");\n try {\n final Long executionId = executionIds.take();\n final InnerFutureTask inner = (InnerFutureTask) task.getInner();\n final Callable ... |
"public void onCreate(Bundle state) {\n super.onCreate(state);\n if (checkPermissions() || !mHasCriticalPermissions) {\n Log.v(TAG, \"String_Node_Str\");\n finish();\n return;\n }\n Intent intent = getIntent();\n String action = intent.getAction();\n if (INTENT_ACTION_STILL_IMAGE_... |
"private void startUp() {\n if (!new File(storeDir, \"String_Node_Str\").exists()) {\n Pair<Master, Machine> master = broker.getMaster();\n master = master.first() != null ? master : broker.getMasterReally();\n if (master != null && master.first() != null) {\n master.first().copyStore... |
"public static String convertObjectAToString(Object[] objs) {\n if (objs == null)\n return \"String_Node_Str\";\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < objs.length; i++) {\n if (objs[i] == null)\n sb.append(\"String_Node_Str\");\n else\n sb.appen... |
"protected void processRequest() throws Exception {\n String crf_oid = request.getParameter(CRF_ID);\n String formURL = null;\n if (currentStudy.getStudyParameterConfig().getParticipantPortal().equals(\"String_Node_Str\")) {\n EnketoCredentials credentials = getCredentials();\n EnketoAPI enketo =... |
"public void testCreateTemporaryTopicFailsWhenLinkRefusedAndAttachResponseWriteIsNotDeferred() throws Exception {\n doCreateTemporaryDestinationFailsWhenLinkRefusedTestImpl(true, false);\n}\n"
|
"public static void applyTransition(Component component, Component.Transition transition) {\n StateMachine<ServiceConfiguration, State, Transition> fsm = component.getLocalServiceConfiguration().getStateMachine();\n if (fsm.isLegalTransition(transition)) {\n for (int i = 0; i < INIT_RETRIES; i++) {\n ... |
"private void nextVertex(int trainId, int vertexId, int previousId) {\n Terminated trainTerminated = Terminated.NotYet;\n boolean valueStation = encounterVertex(trainId, vertexId, true);\n if (valueStation) {\n trainTerminated = trainTerminated(trainId);\n if (trainTerminated == Terminated.Withou... |
"protected void parseSystemProps() {\n version = System.getProperty(\"String_Node_Str\", \"String_Node_Str\");\n build = System.getProperty(\"String_Node_Str\", \"String_Node_Str\");\n if (\"String_Node_Str\".equals(version) || \"String_Node_Str\".equals(build)) {\n try {\n final InputStream ... |
"protected Mode resolveSubmitMode(AbstractMenuItem menuItem) {\n if (menuItem.getMode() != null) {\n return menuItem.getMode();\n }\n AbstractDropDownMenu parent = getDDMenu(menuItem);\n if (parent != null) {\n return parent.getMode();\n }\n return Mode.server;\n}\n"
|
"public void testSetContent() {\n TestEvent event = new TestEvent(fEvent1);\n assertEquals(\"String_Node_Str\", fContent1, event.getContent());\n event.setContent(fContent2);\n assertEquals(\"String_Node_Str\", fContent2, event.getContent());\n event.setContent(null);\n assertNull(\"String_Node_Str\",... |
"private List<MageObject> getSortedProducers(ManaCosts<ManaCost> unpaid, Game game) {\n List<MageObject> unsorted = this.getAvailableManaProducers(game);\n unsorted.addAll(this.getAvailableManaProducersWithCost(game));\n Map<MageObject, Integer> scored = new HashMap<>();\n for (MageObject mageObject : unsor... |
"private static List<Point> optimizePath(Point from, Point to, boolean firstHorizontal, List<Point> path, int[] xCoords, int[] yCoords) {\n List<Point> optimizedPath = new ArrayList<Point>();\n int totalSteps = path.size();\n int stepFactor = 10;\n int amountOfSteps = 1 + Math.round(totalSteps / stepFactor)... |
"protected static IMessage.Kind inferKind(String message) {\n if (-1 != message.indexOf(\"String_Node_Str\")) {\n return IMessage.ERROR;\n } else if (-1 == message.indexOf(\"String_Node_Str\")) {\n return IMessage.INFO;\n } else {\n return IMessage.WARNING;\n }\n}\n"
|
"private void addSmartSenseRecipe(Stack stack, Set<HostGroup> hostGroups) {\n try {\n Cluster cluster = stack.getCluster();\n String blueprintText = cluster.getBlueprint().getBlueprintText();\n if (smartsenseConfigurationLocator.smartsenseConfigurable(smartSenseSubscriptionService.getDefault()))... |
"public void preUpdate(float delta) {\n if (isDestroyed())\n return;\n update(delta);\n if (velocity == Vector3.ZERO)\n return;\n position.addSelf(velocity);\n polyhedron.setPosition(position);\n updateTransforms();\n}\n"
|
"private ThriftType buildThriftType(Type javaType) {\n ThriftType thriftType = buildThriftTypeInternal(javaType);\n typeCache.putIfAbsent(javaType, thriftType);\n if (stack.get().isEmpty()) {\n Deque<Type> unresolvedJavaTypes = deferredTypesWorkList.get();\n do {\n if (unresolvedJavaTy... |
"private ODataRequest parseRequest(final Scanner scanner, final boolean isChangeSet) throws BatchException {\n ODataRequest request;\n if (scanner.hasNext(REG_EX_REQUEST_LINE)) {\n scanner.next(REG_EX_REQUEST_LINE);\n currentLineNumber++;\n String method = null;\n String uri = null;\n ... |
"protected AssetCategory addUserSegmentCategory(long userId, Map<Locale, String> titleMap, Map<Locale, String> descriptionMap, ServiceContext serviceContext) throws PortalException, SystemException {\n long vocabularyId = UserSegmentUtil.getAssetVocabularyId(userId, serviceContext);\n serviceContext.setAddGroupPe... |
"public void testEJBAppSecurity20() throws Exception {\n Log.info(logClass, getCurrentTestName(), \"String_Node_Str\" + getCurrentTestName());\n Log.info(logClass, getCurrentTestName(), \"String_Node_Str\");\n WCApplicationHelper.createWar(myServer, TEMP_DIR, EJB_WAR_NAME, true, EJB_BEAN_JAR_NAME, true, \"Stri... |
"public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (obj == null || getClass() != obj.getClass()) {\n return false;\n }\n ColorInfo other = (ColorInfo) obj;\n return colorSpace == other.colorSpace && colorRange == other.colorRange && colorTransfer == other.c... |
"protected static DataItemHandle performInsertParameter(ScalarParameterHandle model) throws SemanticException {\n DataItemHandle dataHandle = DesignElementFactory.getInstance().newDataItem(null);\n ComputedColumn bindingColumn = StructureFactory.newComputedColumn(dataHandle, model.getName());\n bindingColumn.s... |
"private void tryForm() {\n addToTextArea(\"String_Node_Str\");\n updateStatus(\"String_Node_Str\");\n addToTextArea(\"String_Node_Str\");\n File workDir = new File(this.origJarDir + \"String_Node_Str\");\n if (workDir.exists()) {\n deleteDirectory(workDir);\n }\n workDir.mkdirs();\n upda... |
"public boolean execute(LocalDataArea lda) {\n if (lda.stack.isEmpty()) {\n return false;\n }\n lda.stack.push(MBCharToAsciiActionItem.getResult(lda.pop()));\n return true;\n}\n"
|
"public boolean hasNextChild() {\n if (!needUpdate) {\n return hasNext;\n }\n if (currentRunIn != null) {\n if (currentRunIn.hasNextChild()) {\n hasNext = true;\n needUpdate = false;\n return hasNext;\n } else {\n currentRunIn.close();\n }... |
"private void addServer(Element root) {\n Element prop = root.addElement(\"String_Node_Str\");\n Element url = prop.addElement(\"String_Node_Str\");\n Element user = prop.addElement(\"String_Node_Str\");\n Element password = prop.addElement(\"String_Node_Str\");\n Element universe = prop.addElement(\"Str... |
"public void start(BundleContext ctxt) throws Exception {\n plugin = this;\n this.context = ctxt;\n this.distributionProvider = new DistributionProviderImpl();\n DiscoveredServiceTrackerImpl dstImpl = new DiscoveredServiceTrackerImpl(this.distributionProvider);\n this.discoveredServiceTrackerRegistration... |
"protected TestCaseVariantValidationResult executeRegressionTestingOneByOne(ProgramVariant mutatedVariant, URL[] bc, JUnitExecutorProcess p, ProjectRepairFacade projectFacade) {\n log.debug(\"String_Node_Str\");\n TestResult trregressionall = new TestResult();\n long t1 = System.currentTimeMillis();\n for (... |
"private void initDataSelector() {\n boolean isInheritingSummaryTable = isInheritingSummaryTable();\n cmbInherit.setItems(new String[] { Messages.getString(\"String_Node_Str\"), Messages.getString(\"String_Node_Str\") });\n if (isInheritingSummaryTable) {\n cmbInherit.select(0);\n getContext().se... |
"public void defineBuiltinFunction(String name, String pkg, String version, String symbol, FunctionType type, TclOpTemplate inlineTclTemplate) {\n String pv = pkg + version;\n if (!pkg.equals(\"String_Node_Str\")) {\n if (!requiredPackages.contains(pv)) {\n PackageRequire pr = new PackageRequire... |
"public void startForeachLoop(String loopName, Var container, Var memberVar, Var loopCountVar, int splitDegree, int leafDegree, boolean arrayClosed, List<PassedVar> passedVars, List<RefCount> perIterIncrs, MultiMap<Var, RefCount> constIncrs) {\n boolean haveKeys = loopCountVar != null;\n if (Types.isArray(contain... |
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n Intent intent = new Intent(Intent.ACTION_GET_CONTENT);\n intent.setType(\"String_Node_Str\");\n try {\n startActivityForResult(intent, IMAGE_RESULT);\n } catch (ActivityNotFoundException e) {\n e.prin... |
"public void processChild(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, Attributes atts, XMLDescriptor xmlDescriptor, DatabaseMapping mapping) throws SAXException {\n if (xmlDescriptor == null) {\n DescriptorNotFoundContentHandler handler = new DescriptorNotFoundContentHandler(unmarshalRecord,... |
"public synchronized void run() {\n try {\n synchronized (DataSource.dataEngineLevelConnectionPool) {\n Map<ConnectionProp, Set<CacheConnection>> odaConnectionsMap = DataSource.dataEngineLevelConnectionPool.remove(session);\n if (odaConnectionsMap == null)\n return;\n ... |
"public void runJob() {\n LOG.debug(\"String_Node_Str\");\n jobService.runTaxCalculatorJob();\n}\n"
|
"public void setFilterActive(boolean filterActive) {\n this.filterActive = filterActive;\n setFilterActiveUpdateOnParent(true);\n}\n"
|
"public Map<String, Object> mockMultiplePull(boolean shutdownMockWebserver, MockDispatcher.ServerType serverType) throws Exception {\n String doc1Id = \"String_Node_Str\";\n boolean addAttachments = false;\n Map<String, Object> serverAndDispatcher = mockSinglePull(false, serverType, addAttachments);\n MockW... |
"public Response getEarliestCount(String tag, int count, boolean stable, boolean batch, boolean bulk, boolean trace, String location, String epoch, String accept, UriInfo uriInfo) {\n DirectionQuery query = getQuery(tag, count, stable, location, epoch);\n SortedSet<ChannelContentKey> keys = tagService.getEarliest... |
"public void createControl(Composite parent) {\n Composite composite = new Composite(parent, SWT.NULL);\n setControl(composite);\n composite.setLayout(new GridLayout(1, false));\n currentPom = new Button(composite, SWT.RADIO);\n GridData gd_currentPom = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1,... |
"public void setMarker(int pos) {\n markerPos = -1;\n if (pos < chartRect.x)\n return;\n if (pos > chartRect.x + chartRect.width)\n return;\n double val = screenXToValueX(pos);\n markerPos = FindIndexOfValueX(val, 0);\n repaint();\n}\n"
|
"public synchronized void createJarFile() throws IOException {\n final byte[] buf = new byte[128];\n if (this.outputFile == null) {\n throw new IOException(\"String_Node_Str\");\n }\n if (this.outputFile.exists()) {\n this.outputFile.delete();\n }\n final JarOutputStream jos = new JarOut... |
"private void initVariableName() {\n if (modifier != Modifier.NONE) {\n if (modifier == Modifier.PREFIX) {\n String[] values = getValue().split(Modifier.PREFIX.getValue());\n variableName = values[0];\n }\n if (modifier == Modifier.EXPLODE && getValue().lastIndexOf('*') != ... |
"private static void handleError(String message) {\n logger.error(message);\n System.exit(0);\n}\n"
|
"public void create(NamespaceMeta namespaceMeta) throws IOException, ExploreException, SQLException {\n super.create(namespaceMeta);\n if (NamespaceId.DEFAULT.equals(namespaceMeta.getNamespaceId())) {\n return;\n }\n String hbaseNamespace = tableUtil.getHBaseNamespace(namespaceMeta);\n try (HBaseA... |
"public void decrementFeature(T feature, K category) {\n Dictionary<T, Integer> features = this.featureCountPerCategory.get(category);\n if (features == null) {\n return;\n }\n Integer count = features.get(feature);\n if (count == null) {\n return;\n }\n if (count.intValue() == 1) {\n... |
"public void getHistory() throws Exception {\n History[] histories = HistoryService.getInstance().getHistory(newProfile.getId(), \"String_Node_Str\", 0, 100, true, null, false);\n History latest = histories[histories.length - 1];\n assertTrue(latest.getOriginalRequestHeaders().equals(\"String_Node_Str\"));\n ... |
"public RESTCoverageStore configureExternaMosaicDatastore(String workspace, String storeName, File mosaicDir) throws FileNotFoundException {\n return createExternaMosaicDatastore(workspace, storeName, mosaicDir, ParameterConfigure.FIRST, ParameterUpdate.APPEND);\n}\n"
|
"public String getName() {\n if (Citizens.convertUnderscores == true) {\n String returnName = \"String_Node_Str\";\n String[] brokenName = this.name.split(\"String_Node_Str\");\n for (int i = 0; i < brokenName.length; i++) {\n if (i == 0)\n returnName = brokenName[i];\n... |
"void processObjectLitProperties(NodeTraversal t, Node objLit, ObjectType objLitType) {\n for (Node keyNode = objLit.getFirstChild(); keyNode != null; keyNode = keyNode.getNext()) {\n Node value = keyNode.getFirstChild();\n String memberName = NodeUtil.getObjectLitKeyName(keyNode);\n JSDocInfo i... |
"public boolean canExecute() {\n if (cloneElement == null) {\n return false;\n }\n DesignElementHandle childHandle = sourceHandle;\n if (childHandle == null) {\n if (cloneElement instanceof IDesignElement) {\n childHandle = ((IDesignElement) cloneElement).getHandle(SessionHandleAdap... |
"private Collection<Class<?>> getExamples() throws ClassNotFoundException, IOException {\n List<Class<?>> exampleClasses = new ArrayList<Class<?>>();\n URL url = ExampleRunner.class.getResource(ExampleRunner.class.getSimpleName() + \"String_Node_Str\");\n URLConnection connection = url.openConnection();\n i... |
"private void addOrUpdateJvmState(File file) {\n try {\n Jvm jvm = Jvm.readFrom(file);\n JvmState jvmState = jvmStates.get(jvm.getJvmFingerprint());\n if (jvmState == null) {\n jvmState = new JvmState();\n jvmState.setAppVersion(getAppVersion(jvm));\n jvmStates.p... |
"private void updateProgressLog(final MasterContext<DTMasterParams, DTWorkerParams> context) {\n int currentIteration = context.getCurrentIteration();\n if (context.isFirstIteration()) {\n return;\n }\n double trainError = context.getMasterResult().getTrainError() / context.getMasterResult().getTrain... |
"public static String formatDateTime(String format, ULocale locale) {\n String language = locale.getLanguage();\n String code = locale2Code.get(locale);\n if (code == null) {\n String language = locale.getLanguage();\n code = locale2Code.get(new ULocale(language, \"String_Node_Str\"));\n }\n ... |
"public List<ItemStack> getItemList(ItemStack journal) {\n NBTTagCompound tag = journal.getTagCompound();\n if (tag != null) {\n NBTTagList taglist = tag.getTagList(ITEMS_TAG_NAME);\n if (taglist != null) {\n return MinechemHelper.readTagListToItemStackList(taglist);\n }\n return nu... |
"public Collection<Point> consumeArea(int amountOfArea, Point startPoint) {\n log.entering(className, \"String_Node_Str\", new Object[] { amountOfArea, startPoint });\n if (amountOfArea >= getArea()) {\n mRegionManager.removeRegion(this);\n log.exiting(className, \"String_Node_Str\", \"String_Node_S... |
"private static MediaFormat createFormat(byte payloadType, Attribute rtpmap, Attribute fmtp, List<Attribute> advp, DynamicPayloadTypeRegistry ptRegistry) throws SdpException {\n String encoding = null;\n double clockRate = -1;\n int numChannels = 1;\n if (rtpmap != null) {\n String rtpmapValue = rtpm... |
"public synchronized Set<SourceStatus> getReadySources(String streamId) {\n Set<SourceStatus> result = new HashSet<SourceStatus>();\n if (readySources.containsKey(streamId))\n result.addAll(readySources.remove(streamId));\n return result;\n}\n"
|
"public static void loadKits() throws IOException {\n File kitsFile = new File(folder, \"String_Node_Str\");\n if (!kitsFile.exists()) {\n kitsFile.createNewFile();\n InputStream res = SupplySign.class.getResourceAsStream(\"String_Node_Str\");\n FileWriter tx = new FileWriter(kitsFile);\n ... |
"public void applyTestArguments(String offset, String httpPort, String environmentName, String mailReceiver) {\n ArgumentNotValid.checkNotNullOrEmpty(offset, \"String_Node_Str\");\n ArgumentNotValid.checkNotNullOrEmpty(httpPort, \"String_Node_Str\");\n ArgumentNotValid.checkNotNullOrEmpty(environmentName, \"St... |
"protected void process(Entity e) {\n CharacterControllerComponent component = e.getComponent(CharacterControllerComponent.class);\n CharacterController characterController = component.getCharacterController();\n AnimationComponent animationComponent = e.getComponent(AnimationComponent.class);\n PhysicsComp... |
"public void readBlock(int block, byte[] buffer) throws IOException {\n Arrays.fill(buffer, (byte) 0);\n checkFile();\n if (block == 0) {\n generateHeader(buffer);\n offset += FILE_ENTRY_SIZE;\n end = ENTRIES_PER_BLOCK - 1;\n } else {\n generatePointers(buffer, getNodeSequence(bl... |
"public void mouseExited(MouseEvent e, final TransferData data) {\n hideAll(data.gameId);\n}\n"
|
"public static double distance(int[] p1, int[] p2) {\n double sum = 0;\n for (int i = 0; i < p1.length; i++) {\n final int dp = p1[i] - p2[i];\n sum += dp * dp;\n }\n return Math.sqrt(sum);\n}\n"
|
"public void format(final LogEvent event, final StringBuilder toAppendTo) {\n final ThrowableProxy proxy = event.getThrownProxy();\n final Throwable throwable = event.getThrown();\n if (throwable != null && options.anyLines()) {\n if (proxy == null) {\n super.format(event, toAppendTo);\n ... |
"public Token next() throws IOException {\n while (true) {\n Token t = input.next();\n if (t == null)\n return t;\n String term = t.termText();\n String mapped = accentMap.mapWord(term);\n if (mapped == null) {\n if (bumpAccum == 0)\n return t;\... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.