content
stringlengths
40
137k
"private void attachReader0(final IoSessionEx newReader) {\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(String.format(\"String_Node_Str\", this.getId(), newReader));\n }\n if (newReader instanceof HttpAcceptSession) {\n HttpAcceptSession newAcceptReader = (HttpAcceptSession) newReader;\n ...
"public Map<String, List<String>> getBranchViewFeatureValues(BranchId branch, ArtifactId viewId) {\n Map<String, List<String>> toReturn = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);\n List<ApplicabilityToken> result = getViewApplicabilityTokens(viewId, branch);\n for (ApplicabilityToken app : result) {\n ...
"public JavaElementSelectionService provideJavaSelectionProvider(final EventBus bus) {\n final JavaElementSelectionService provider = new JavaElementSelectionService(bus);\n new UIJob(Messages.JOB_NAME_SELECTION_LISTENER_REGISTRATION) {\n\n {\n schedule();\n }\n public IStatus runI...
"public Keys getKeys() {\n ECKey key = new ECKey();\n byte[] address = key.getAddress();\n byte[] privateKey = key.getPrivKeyBytes();\n return new Keys().setAddress(address).setAddressAsString(\"String_Node_Str\" + Hex.toHexString(address)).setPrivateKey(privateKey).setAddressAsStringWithPrivate(key.toStrin...
"public void performDataPurging() {\n List<String> labelList = new ArrayList<>();\n String rowLimit = null;\n String backupFileLocation = null;\n long backupDurationInDays = 0;\n String backupFileName = null;\n JsonObject configJsonObj = getSettingsJsonObject();\n if (configJsonObj != null) {\n ...
"public void pushData(Data data) {\n if (dataBuffer != null && data != null)\n dataBuffer.offer(data);\n}\n"
"public void applyRelationships(OSchemaHelper helper) {\n super.applyRelationships(helper);\n helper.setupRelationship(JobDefinitionEntityHandler.OCLASS_NAME, \"String_Node_Str\", ProcessDefinitionEntityHandler.OCLASS_NAME);\n helper.setupRelationship(OCLASS_NAME, \"String_Node_Str\", HistoricIncidentEventEnti...
"synchronized boolean addStandbySpanStreamData(SpanStreamSendData standbySpanStreamData) {\n SpanStreamSendDataMode flushMode = standbySpanStreamData.getFlushMode();\n if (flushMode == SpanStreamSendDataMode.FLUSH) {\n return false;\n }\n if (standbySpanStreamData.getAvailableBufferCapacity() > 0 && ...
"public boolean doWork(Bytes writer) {\n final long sizeLocation = header(writer, transactionId);\n int count = 0;\n while (iterator.hasNext()) {\n if (writer.remaining() <= maxEntrySizeBytes) {\n writeHeader(writer, sizeLocation, count, true, 0);\n return false;\n }\n ...
"private String Self(String context) {\n String s = null;\n if (mp) {\n if (context.equals(\"String_Node_Str\"))\n s = selfAsExpr();\n else\n s = self;\n }\n return s;\n}\n"
"public void asyncRealmResultsShouldNotBlockBackgroundCommitNotification() {\n final Realm realm = looperThread.getRealm();\n final RealmResults<Dog> dogs = realm.where(Dog.class).findAllAsync();\n final AtomicBoolean resultsListenerDone = new AtomicBoolean(false);\n final AtomicBoolean realmListenerDone = ...
"public void testEmptyMenu() {\n SessionWrapper session = mApp.getSession();\n MenuLoader menuLoader = new MenuLoader(session.getPlatform(), session, \"String_Node_Str\", new TestLogger());\n this.mChoices = menuLoader.getMenus();\n Assert.assertEquals(\"String_Node_Str\", this.mChoices.length, 1);\n}\n"
"public void initialize() {\n super.initialize();\n setBiomeInformation();\n}\n"
"public void bindView(View view, Context context, Cursor cursor) {\n TextView albumName = (TextView) view.findViewById(R.id.label_album_name);\n BucketId bucketId = BucketId.from(cursor);\n if (bucketId.equals(FixedBucketIdFactory.CAMERA.getBucketId())) {\n albumName.setText(\"String_Node_Str\" + FixedB...
"public void read(JsonObject object) {\n object.entrySet().forEach(e -> {\n String key = e.getKey();\n JsonElement value = e.getValue();\n if (value.isJsonObject()) {\n TridentConfigSection section = this.createChild0(key, object);\n section.read(value.getAsJsonObject());\n...
"public Application makeApplication(boolean forceDefaultAppClass) {\n if (mApplication != null) {\n return mApplication;\n }\n Application app = null;\n String appClass = mApplicationInfo.className;\n if (forceDefaultAppClass || (appClass == null)) {\n appClass = \"String_Node_Str\";\n }...
"public static boolean isSoftBlock(Block block, World world, int x, int y, int z) {\n return block == null || BuildCraftAPI.softBlocks.contains(block) || block.isReplaceable(world, x, y, z) || block.isAir(world, x, y, z);\n}\n"
"public static String getCacheKey(ArtInfo artInfo, ArtworkType imageType) {\n int size = 0;\n if (artInfo.artistName == null && artInfo.albumName == null) {\n if (artInfo.artworkUri == null) {\n throw new NullPointerException(\"String_Node_Str\");\n }\n size += artInfo.artworkUri.t...
"public static TagBase vanillaCompoundToCompound(NBTBase vanillaTag) {\n switch(vanillaTag.getTypeId()) {\n case 1:\n return new TagByte(((NBTTagByte) vanillaTag).g());\n case 2:\n return new TagShort(((NBTTagShort) vanillaTag).e());\n case 3:\n return new TagInt...
"public void markForSave() {\n super.markDirty();\n}\n"
"public boolean canFinish() {\n try {\n if (m_designSession != null)\n return m_designSession.getNewWizard().canFinish();\n else\n return isPageComplete();\n } catch (OdaException e) {\n return false;\n }\n}\n"
"public void run() {\n try {\n lockScreenIcon = HttpUtils.downloadImage(url);\n if (l != null) {\n l.onLockScreenIconDownloaded(lockScreenIcon);\n }\n } catch (IOException e) {\n if (l != null) {\n l.onLockScreenIconDownloadError(e);\n }\n }\n}\n"
"private void removeSubjectIfEmpty() {\n if (!hasSubject()) {\n setSubject(null, notify);\n }\n}\n"
"public static boolean quote(Player player, String message) {\n String playerName = \"String_Node_Str\" + nameColor(player) + Colors.White + \"String_Node_Str\";\n if (vminecraftSettings.getInstance().greentext()) {\n log.log(Level.INFO, \"String_Node_Str\" + player.getName() + \"String_Node_Str\" + messag...
"public static List<Mail> readMails(Mailbox mailbox, MailFolder mailFolder) throws MessagingException {\n if (!mailFolder.getFolderType().equals(MailFolder.FolderType.INBOX)) {\n return Collections.emptyList();\n }\n List<Mail> mails = new ArrayList<>();\n Properties props = new Properties();\n pr...
"public String insert(final String streamName, final ColumnNameValueList columns) {\n try {\n ssaw.api().insertData(streamName, columns);\n return \"String_Node_Str\".concat(streamName).concat(\"String_Node_Str\");\n } catch (StratioEngineStatusException | StratioAPISecurityException e) {\n t...
"public void onOpen(OpenEvent event) throws Exception {\n ws.send(\"String_Node_Str\", new WebSocket.SendOptions(false, false), null);\n ctx.setInterval(new IntervalListener() {\n public void onInterval() throws Exception {\n ws.send(\"String_Node_Str\" + new Date(), new WebSocket.SendOptions(fa...
"private Pair<RootedPath, FileStateValue> resolveFromAncestors(RootedPath rootedPath, Environment env) throws FileFunctionException {\n PathFragment relativePath = rootedPath.getRelativePath();\n RootedPath realRootedPath = rootedPath;\n FileValue parentFileValue = null;\n if (!externalFilesHelper.shouldAss...
"public void boot(AbstractTestSession testSession) {\n logger.entering(testSession.getPlatform());\n if ((testSession.getPlatform() != WebDriverPlatform.ANDROID) && !(testSession instanceof MobileTestSession)) {\n return;\n }\n if (((MobileTestSession) testSession).getMobileNodeType() != MobileNodeTy...
"public Object getValue() throws ExpressionEvaluationException {\n try {\n return doCast(this.expression.evaluateValue());\n } catch (Exception e) {\n logger.log(Level.SEVERE, \"String_Node_Str\" + expression.getExpression(), e);\n throw new ExpressionEvaluationException(e);\n }\n}\n"
"public static double[] readFileColumn(String filename, int columnIdx, int sizeLimit) throws NumberFormatException, IOException, TSException {\n BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(filename), \"String_Node_Str\"));\n ArrayList<Double> preRes = new ArrayList<Double>();\...
"public Integer getAsInteger(String key) {\n Object value = mValues.get(key);\n try {\n return value != null ? ((Number) value).intValue() : null;\n } catch (ClassCastException e) {\n if (value instanceof CharSequence) {\n try {\n return Integer.valueOf(value.toString())...
"private void _delegateUndoStack(NamedObj from, NamedObj to) throws CloneNotSupportedException, IllegalActionException, NameDuplicationException {\n UndoStackAttribute prevStack = UndoStackAttribute.getUndoInfo(from);\n UndoStackAttribute stack = (UndoStackAttribute) prevStack.clone(to.workspace());\n stack.se...
"protected InformationLossDefault evaluateInternal(final Node node, final IHashGroupify g) {\n double result = 0;\n final int[] transformation = node.getTransformation();\n for (int i = 0; i < transformation.length; i++) {\n double weight = weights != null ? weights[i] : 1d;\n value += ((double) ...
"public void translate(Stack<GraphTargetItem> stack, List<GraphTargetItem> output, java.util.HashMap<Integer, String> regNames, HashMap<String, GraphTargetItem> variables, HashMap<String, GraphTargetItem> functions, int staticOperation, String path) {\n GraphTargetItem propertyName = stack.pop();\n stack.push(new...
"public void paint(final Graphics g) {\n if (buffer != null) {\n final Graphics bg = buffer.getGraphics();\n if (model != null) {\n draw(bg);\n } else {\n bg.setColor(Color.WHITE);\n bg.fillRect(0, 0, buffer.getWidth(), buffer.getHeight());\n }\n bg...
"private void handlePulseWhileDozing(PulseCallback callback, int reason) {\n mDozeScrimController.pulse(new PulseCallback() {\n public void onPulseStarted() {\n callback.onPulseStarted();\n mStackScroller.setPulsing(true);\n }\n public void onPulseFinished() {\n ...
"public boolean doUnequip(Hero hero, boolean collect, boolean single) {\n if (super.doUnequip(hero, collect, single)) {\n hero.belongings.armor = null;\n ((HeroSprite) hero.sprite).updateArmor();\n BrokenSeal.WarriorShield sealBuff = hero.buff(BrokenSeal.WarriorShield.class);\n if (sealBu...
"public void createControl(Composite parent) {\n Composite container = new Composite(parent, SWT.NONE);\n GridLayout layout = new GridLayout(2, false);\n container.setLayout(layout);\n GridData data;\n Label filenameLab = new Label(container, SWT.NONE);\n filenameLab.setText(Messages.getString(\"Strin...
"private String[] _handleInmodeExpression(String expression, String value, State state) {\n StringBuffer inmodeExpression = new StringBuffer();\n if (expression.contains(\"String_Node_Str\")) {\n String before = expression.substring(0, expression.indexOf(\"String_Node_Str\"));\n String after = expre...
"private void logCacheEvent(String eventType, String nodeId) {\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\" + nodeId + \"String_Node_Str\" + eventType + \"String_Node_Str\");\n }\n}\n"
"protected boolean processFile(final File file) {\n logger.info(\"String_Node_Str\", file.getAbsolutePath());\n StringWriter writer = new StringWriter();\n final TransformerFactory transformerFactory = TransformerFactory.newInstance();\n try {\n final Transformer transformer = transformerFactory.newT...
"public static void main(String[] args) throws FileNotFoundException, IOException, ClassNotFoundException {\n WikipediaApiInterface wikiAPI = SingletonWikipediaApi.getInstance();\n ExperimentTaskConfiguration[] taskConfigs = new ExperimentTaskConfiguration[] { new ExperimentTaskConfiguration(new BabelfyAnnotatorC...
"private String getTextToInsert() {\n TreeItem[] selection = availableDbObjectsTree.getSelection();\n StringBuffer data = new StringBuffer();\n if (selection != null && selection.length > 0) {\n for (int i = 0; i < selection.length; i++) {\n IDBNode dbNode = (IDBNode) selection[i].getData();\...
"public CallResult<Depth> depth(String pair) {\n final String serverPair = PairUtils.localToServer(pair);\n final String url = hostUrl + \"String_Node_Str\" + serverPair;\n JsonObject response = guestApi.call(url);\n CallResult<Depth> result = new CallResult<>();\n if (response == null || response.has(SU...
"public static String createDataSetRowExpression(String rowName) {\n return DATASET_ROW_INDICATOR + \"String_Node_Str\" + rowName == null ? null : rowName.trim() + \"String_Node_Str\";\n}\n"
"private static void addMonthInterval(int period, int count, LongList out) {\n int k = out.size();\n long lo = out.getQuick(k - 2);\n long hi = out.getQuick(k - 1);\n for (int i = 0, n = count - 1; i < n; i++) {\n lo = Dates.addMonths(lo, period);\n hi = Dates.addMonths(hi, period);\n a...
"public void onSessionInitialized(BindingAwareBroker.ConsumerContext consumerContext) {\n DataBroker dataService = consumerContext.<DataBroker>getSALService(DataBroker.class);\n NetworkGraphService networkGraphService = new NetworkGraphDijkstra();\n FlowWriterService flowWriterService = new FlowWriterServiceIm...
"private void fetchFriendsOrFollowers(Bundle bundle) {\n String ownerId = bundle.getString(Commons.EXTRA_ID);\n int page = bundle.getInt(Commons.EXTRA_PAGE);\n int count = bundle.getInt(Commons.EXTRA_COUNT);\n if (App.DEBUG)\n log(\"String_Node_Str\" + ownerId + \"String_Node_Str\" + page);\n if (...
"public void execute(int pid, int rid, BimDatabaseSession bimDatabaseSession) throws UserException, BimDeadlockException, BimDatabaseException {\n IdEObject idEObject = bimDatabaseSession.get(bimDatabaseSession.getEClassForName(className), oid, false, null);\n if (idEObject == null) {\n idEObject = created...
"protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {\n ChannelBuffer buf = (ChannelBuffer) msg;\n int header = buf.readUnsignedShort();\n buf.readUnsignedShort();\n int version = -1;\n if (header == 0x4040) {\n version = buf.readUnsignedByte();\n ...
"public static Locale languageLocale(String languageCode) {\n if (TextUtils.isEmpty(languageCode)) {\n return Locale.getDefault();\n }\n if (languageCode.contains(\"String_Node_Str\")) {\n String[] opts = languageCode.split(\"String_Node_Str\");\n if (opts.length >= 2) {\n retur...
"public void handleSwitchToGameEnvironment(Context context) {\n ModuleManager moduleManager = context.get(ModuleManager.class);\n CopyStrategyLibrary copyStrategyLibrary = context.get(CopyStrategyLibrary.class);\n copyStrategyLibrary.clear();\n for (Class<? extends CopyStrategy> copyStrategy : moduleManager...
"public final ISeriesRenderingHints getSeriesRenderingHints(SeriesDefinition sdOrthogonal, Series seOrthogonal) throws ChartException, IllegalArgumentException {\n if (seOrthogonal == null || seOrthogonal.getClass() == SeriesImpl.class) {\n return null;\n }\n OneAxis oaxOrthogonal = findOrthogonalAxis(s...
"private OdeSystem createOdeSystem(final int dim) {\n int[] coefficientIndexes = new int[dim + 1];\n float[] coefficients = new float[dim];\n int[] factorIndexes = new int[dim + 1];\n int[] factors = new int[dim];\n for (int d = 0; d < dim; d++) {\n coefficientIndexes[d] = d;\n coefficients...
"public static <P extends ConfigBeanProxy> boolean checkIfConfigExists(Config c, Class<P> configBeanType) {\n P configExtension = null;\n for (Container extension : c.getContainers()) {\n try {\n configBeanType.cast(extension);\n return true;\n } catch (Exception e) {\n ...
"public int getDBFlavor(Configuration newConfig) {\n String[] propertyNames = { PROPERTY_PREFIX + DB_DIALECT, PROPERTY_PREFIX + DB_DRIVER, PROPERTY_PREFIX + DB_URL };\n for (String propertyName : propertyNames) {\n String propertyValue = newConfig.get(propertyName);\n if (StringUtils.isBlank(propert...
"protected PageRec doCreatePage(IWorkbenchPart part) {\n if (part instanceof AbstractMultiPageLayoutEditor) {\n IEditorPart editor = UIUtil.getActiveEditor(true);\n if (editor != null) {\n Object fileAdapter = editor.getEditorInput().getAdapter(IFile.class);\n LibraryExplorerTreeV...
"private void setNextBiddingPlayer() {\n Player currentPlayer;\n do {\n currentPlayer = playerManager.setCurrentToNextPlayer();\n } while (((StartItem) currentAuctionItem.value()).isActive(currentPlayer) == false);\n}\n"
"public void shouldExecuteReturnTwoSolutionsIfTheListContainsTwoSolutions() {\n NaryTournamentSelection<IntegerSolution> selection = new NaryTournamentSelection<>(2, mock(Comparator.class));\n IntegerSolution solution1 = mock(IntegerSolution.class);\n IntegerSolution solution2 = mock(IntegerSolution.class);\n ...
"private static void processPrepareResponseRainyPathTest() {\n byte hostIdentifier = 0;\n Proposer proposer = new Proposer(hostIdentifier, 4);\n PrepareRequest prepareRequest = proposer.createPrepareRequest(0);\n PrepareResponse response1 = new PrepareResponse((byte) 1, prepareRequest, new PrepareNumber((by...
"void updateWidgets() {\n ComponentName thisWidget = new ComponentName(this, SleepTimerWidgetProvider.class);\n AppWidgetManager manager = AppWidgetManager.getInstance(this);\n RemoteViews remoteView;\n if (UnlockTools.isAppPayed(this)) {\n remoteView = getUnlockedRemoteView();\n } else {\n ...
"public void buildRowStyle(IRowContent row, StringBuffer styleBuffer) {\n buildSize(styleBuffer, HTMLTags.ATTR_HEIGHT, row.getHeight());\n IStyle style = row.getStyle();\n CSSValue display = style.getProperty(IStyle.STYLE_DISPLAY);\n if (IStyle.NONE_VALUE == display) {\n styleBuffer.append(\"String_N...
"public void onAuthenticationResult(boolean result, String message) {\n if (result) {\n TextView username_text = (TextView) findViewById(R.id.account_username), password_text = (TextView) findViewById(R.id.account_password);\n URL url;\n try {\n url = new URL(message);\n } catc...
"public void load() {\n System.out.println(\"String_Node_Str\");\n scriptData = ScriptProviderMemory.collect(scriptProvider);\n Set<String> executed = new HashSet<String>();\n Iterator<IScriptIterator> scripts = scriptProvider.getScripts();\n while (scripts.hasNext()) {\n IScriptIterator script = ...
"private void logAuditAccessEntry(final ServerContext context, final AuditState state, final ResourceException resourceException) {\n if (!context.containsContext(HttpContext.class) || context.containsContext(InternalServerContext.class)) {\n return;\n }\n final long elapsedTime = System.currentTimeMill...
"public <T> T manufacturePojo(Class<T> pojoClass, Type... genericTypeArgs) {\n ManufacturingContext manufacturingCtx = new ManufacturingContext();\n manufacturingCtx.getPojos().put(pojoClass, 1);\n return doManufacturePojo(pojoClass, manufacturingCtx, genericTypeArgs);\n}\n"
"public static VideoInterface loadManagerDefault() {\n try {\n return loadManager(\"String_Node_Str\");\n } catch (RuntimeException e) {\n return new BoofMjpegVideo();\n }\n}\n"
"public StringKeyedVector getUpdate(LabeledInstance instance) {\n StringKeyedVector gradients = model.getGradients(instance);\n Iterator it = gradients.iterator();\n while (it.hasNext()) {\n Map.Entry<String, Double> pairs = (Map.Entry) it.next();\n String feature = pairs.getKey();\n doubl...
"public void writeToNBT(NBTTagCompound data) {\n super.writeToNBT(data);\n data.setBoolean(\"String_Node_Str\", isCraftingRecipe());\n pattern.writeToNBT(data, \"String_Node_Str\");\n output.writeToNBT(data, \"String_Node_Str\");\n crafting.writeToNBT(data, \"String_Node_Str\");\n}\n"
"public void startRequest(DIRRequest rq) {\n try {\n final address_mappings_getRequest request = (address_mappings_getRequest) rq.getRequestMessage();\n if (request.getUuid().length() > 0) {\n byte[] result = database.directLookup(DIRRequestDispatcher.DB_NAME, DIRRequestDispatcher.INDEX_ID_A...
"public String execute() throws Exception {\n if (bUOC.getUserInformation() != null) {\n listSubjects = bUOC.getUserSubjects();\n if (s_assign != null) {\n String[] infoAssing = s_assign.split(\"String_Node_Str\");\n teacher = bUOC.isTeacher(new UOCSubject(infoAssing[0], infoAssin...
"public void run() {\n waitForPacketsProcessed();\n cleanResources(new ConstructorFunction<Object, Throwable>() {\n public Throwable createNew(Object arg) {\n return new TargetDisconnectedException(remoteEndpoint);\n }\n });\n}\n"
"private void initTimeLimitForBackgroundRefresh() {\n (new Object() {\n void init() {\n performanceEvaluator.addListener(new IPerformanceEvaluatorListener() {\n public void handleEvent(PerformanceEvaluatorEvent event) {\n boolean previousAntialiasAllowed = antialia...
"public Document resourceToXmlDocument(String path) {\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n documentBuilderFactory.setIgnoringElementContentWhitespace(true);\n DocumentBuilder documentBuilder = null;\n try {\n documentBuilder = documentBuilderFactor...
"public void buildNewBuffer() {\n if (thesRoot == null) {\n thesRoot = new ThesNode(null, this);\n buffer = thesRoot;\n } else {\n ThesNode newBuffer = new ThesNode(buffer);\n buffer.addNode(newBuffer);\n buffer = newBuffer;\n }\n}\n"
"private void addEventHandling(Element elm, StructureSource src, Trigger[] triggers) {\n if (elm != null) {\n boolean redirect = false;\n for (int x = 0; x < triggers.length; x++) {\n Trigger tg = triggers[x];\n if (tg.getAction().getType().getValue() == ActionType.URL_REDIRECT) {...
"public void testWarning() {\n testError(\"String_Node_Str\", EXTRA_REQUIRE_WARNING);\n testError(\"String_Node_Str\", EXTRA_REQUIRE_WARNING);\n}\n"
"public FluidTankInfo[] getTankInfo(ForgeDirection from) {\n return worldObj.getBlockMetadata(xCoord, yCoord, zCoord) == 1 ? new FluidTankInfo[] { new FluidTankInfo(myTank) } : worldObj.getBlockMetadata(xCoord, yCoord, zCoord) > 0 && hasPrimary() ? getPrimaryTileEntity().getTankInfo(from) : new FluidTankInfo[] { new...
"public void run() {\n ((SparqlKnowledgeSource) component).setSubjectThread(this);\n ((SparqlKnowledgeSource) component).setSubjectThreadRunning(true);\n ((SparqlKnowledgeSource) component).calculateSubjects(label, limit);\n ((SparqlKnowledgeSource) component).setSubjectThreadRunning(false);\n}\n"
"public boolean insertBefore(Component newChild, Component refChild) {\n if (newChild instanceof Listitem) {\n final boolean isReorder = newChild.getParent() == this;\n if (newChild instanceof Listgroupfoot) {\n if (refChild == null) {\n if (isReorder) {\n f...
"public void setOutline(Outline outline) {\n if (outline != null && !outline.isValid()) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n mPrivateFlags3 |= PFLAG3_OUTLINE_DEFINED;\n if (outline == null) {\n mOutline = null;\n } else {\n if (mOutline == null) {\n ...
"public void setLabel(String newLabel) {\n String oldLabel = label;\n label = newLabel;\n if (!StringUtils.isEmpty(newLabel)) {\n setName(newLabel);\n }\n if (eNotificationRequired()) {\n eNotify(new ENotificationImpl(this, Notification.SET, ConnectionPackage.ABSTRACT_METADATA_OBJECT__LABEL...
"public void widgetSelected(SelectionEvent e) {\n String username = usernameTextForConnect.getText().trim();\n String password = passwordTextForconnect.getText().trim();\n boolean success = false;\n try {\n success = RegisterManagement.getInstance().createUser(username, password, \"String_Node_Str\",...
"public static DBObject getCollectionProps(String dbName, String collName) {\n DBCollection coll = CollectionDAO.getCollection(dbName, collName);\n DBObject properties = coll.findOne(PROPS_QUERY);\n if (properties != null) {\n properties.put(\"String_Node_Str\", collName);\n Object etag = propert...
"public static void loadPixel() {\n SpriteTile curTile;\n for (int k = 0; k < numTiles; k++) {\n curTile = curTiles[k];\n if (Util.inRange(PPU.x - 22, curTile.x, curTile.x + 7)) {\n int color = curTile.getPixel((PPU.x - 22) - curTile.x, PPU.y - 1 - curTile.y);\n if (color == 0 ...
"protected void activate(ComponentContext ctx) throws IOException, ConfigurationException {\n super.activate(ctx);\n config = new SphinxConfig();\n ciFactory = ci;\n String bundleSymbolicName = null;\n config.CUSTOM_MODEL_AVAILABLE = true;\n Object value = ctx.getProperties().get(ACOUSTIC_MODEL_PROVID...
"protected void internalTransform(Body body, String phaseName, Map options) {\n initializationStuff(phaseName);\n SideEffectAnalysis sea = Scene.v().getActiveSideEffectAnalysis();\n optionNaive = PackManager.getBoolean(options, \"String_Node_Str\");\n if (!optionNaive) {\n sea.findNTRWSets(body.getMe...
"public Object getValueAt(int rowIndex, int columnIndex) {\n switch(columnIndex) {\n case 0:\n return rowIndex;\n case 1:\n if (rowIndex == 0) {\n return \"String_Node_Str\";\n }\n return abc.constants.getNamespace(rowIndex).getKindStr();\n ...
"public void initialize() {\n if (!initialized) {\n double dx = destination.x - origin.x;\n double dy = destination.y - origin.y;\n double dz = destination.z - origin.z;\n double size = Math.sqrt(dx * dx + dy * dy + dz * dz);\n maxLifetime = size * 7.0;\n maxHeight = (5.0 + ...
"public void updateReloadFlag() {\n for (Map.Entry<String, LocalCacheEntry> entry : localCache.entrySet()) {\n if (!entry.getValue().isDirty()) {\n entry.getValue().setReload(true);\n }\n }\n}\n"
"public static IConditionalExpression transformConditionalExpression(IConditionalExpression ce) {\n String prefix = null;\n switch(ce.getOperator()) {\n case IConditionalExpression.OP_TOP_N:\n prefix = \"String_Node_Str\";\n break;\n case IConditionalExpression.OP_TOP_PERCENT:\...
"public Object getValue() {\n if (value == null) {\n value = ((FactoryImpl.MProxy) FactoryImpl.getProxyByName(name)).get(key);\n }\n return value;\n}\n"
"void draw(Graphics2D g, int width) {\n long t0 = System.nanoTime();\n U.pf(\"String_Node_Str\");\n Rectangle clip = g.getClipBounds();\n Rendering rend = _rendering;\n if (rend == null) {\n return;\n }\n int lineHeight = getLineHeight();\n int totalHeight = rend.totalScreenLines * lineHe...
"public ArrayList<Pair<double[], double[]>> getFitness(GameState gs) {\n ArrayList<Pair<double[], double[]>> result = new ArrayList<>();\n double[] fitness = new double[] { normalize(task.getHarvestingEfficiency(1), maxCycles * task.getResourceGainValue()), normalize(task.getBaseUpTime(1), maxCycles), normalize(t...
"protected float calcForestDensity(float x, float y, float z) {\n float result = 0.0f;\n result += _pGen3.noise(0.04f * x, 0.04f * y, 0.04f * z);\n return result;\n}\n"
"protected Configuration _createEmptyConfiguration() throws Exception {\n Configuration configuration = _createDefaultConfiguration();\n URL inURL = specToURL(\"String_Node_Str\");\n _parser.reset();\n _parser.setContext(configuration);\n _parser.parse(inURL, inURL);\n Effigy doc = (Effigy) configurat...
"public static boolean isQuoteBy(String str, String l, String r) {\n if (null == str || null == l || null == r)\n return false;\n return str.startsWith(l) && str.endsWith(r);\n}\n"
"public Collection<MethodCoverageData> getMethods() {\n List<MethodCoverageData> methods = new ArrayList<MethodCoverageData>(pathCoverageInfo.firstLineToMethodData.values());\n Collections.sort(methods, new Comparator<MethodCoverageData>() {\n public int compare(MethodCoverageData m1, MethodCoverageData m2...
"private void mergeAndConvert(ResponseBuilder rb) {\n IndexSchema schema = rb.req.getCore().getLatestSchema();\n ReturnFields rf = rb.rsp.getReturnFields();\n boolean wantsShards = rb.req.getParams().getBool(getName() + \"String_Node_Str\" + SHARD_INFO_PARAM, false);\n SolrDocumentList docs = (SolrDocumentL...