content
stringlengths
40
137k
"public void fetchObject(String fileID, long objectNo, XLocations xLoc, Capability capability, CowPolicy cow, final StageRequest rq) {\n ReplicatingFile file = this.filesInProgress.get(fileID);\n if (file == null) {\n file = this.lastCompletedFilesCache.get(fileID);\n if (file == null || (file != nu...
"private void changeTowerSoldiers(ChangeTowerSoldiersGuiTask soldierTask) {\n ShortPoint2D buildingPosition = soldierTask.getBuildingPos();\n OccupyingBuilding occupyingBuilding = (OccupyingBuilding) grid.getBuildingAt(buildingPosition.x, buildingPosition.y);\n switch(soldierTask.getTaskType()) {\n case...
"private Object getHCatalogRepositoryValue(HCatalogConnection connection, String value, IMetadataTable table) {\n HadoopClusterConnection hcConnection = HCRepositoryUtil.getRelativeHadoopClusterConnection(connection);\n if (hcConnection == null) {\n return null;\n }\n if (EHCatalogRepositoryToCompone...
"private static Map<String, String> parseParameters(final String parameters) {\n Map<String, String> parameterMap = new HashMap<String, String>();\n if (parameters != null) {\n String[] splittedParameters = parameters.split(PARAMETER_SEPARATOR);\n for (String parameter : splittedParameters) {\n ...
"public void setRouting(int mode, int routes, int mask) {\n int incallMask = 0;\n int ringtoneMask = 0;\n int normalMask = 0;\n if (!checkAudioSettingsPermission(\"String_Node_Str\")) {\n return;\n }\n synchronized (mSettingsLock) {\n if (mode == AudioSystem.MODE_INVALID) {\n ...
"public Void call() throws Exception {\n SegmentCacheIndex index = cacheMgr.getIndexRegistry().getIndex(segmentWithData.getStar());\n boolean added = index.add(segmentWithData.getHeader(), true, response.converterMap.get(SegmentCacheIndexImpl.makeConverterKey(segmentWithData.getHeader())));\n if (added) {\n ...
"public Resource getItemResource(Item item, boolean forceLoad) {\n if (item == null)\n return null;\n URI itemResourceURI = null;\n if (item.getFileExtension() != null) {\n itemResourceURI = getItemResourceURI(getItemURI(item), item.getFileExtension());\n } else if (item instanceof TDQItem) {\...
"public DeleteKeyringParcel createOperationInput() {\n return new DeleteKeyringParcel(mMasterKeyIds, mHasSecret);\n}\n"
"public synchronized void clearSnapshot() {\n this.snapshot.clear();\n}\n"
"public IndicatorParameters getParameters() {\n if (null == super.getParameters()) {\n setParameters(IndicatorsFactory.eINSTANCE.createIndicatorParameters());\n }\n if (null == parameters.getTextParameter()) {\n parameters.setTextParameter(IndicatorsFactory.eINSTANCE.createTextParameters());\n ...
"public long stepMicros(long jumpMicros, long executeMicros) throws EmulationException {\n if (isRunning()) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n if (jumpMicros < 0) {\n throw new IllegalArgumentException(\"String_Node_Str\" + jumpMicros);\n }\n if (!microClockRead...
"public boolean prefire() throws IllegalActionException {\n if (!_sortValid) {\n _computeDepth();\n }\n return super.prefire();\n}\n"
"public DateModel<Calendar> createModel(Calendar value) {\n return new UtilCalendarModel(value);\n}\n"
"public void setStyleName(int row, String styleName) {\n UIObject.setStyleName(ensureElement(row), styleName);\n}\n"
"protected Control createDialogArea(Composite parent) {\n parent.getShell().setText(this.title);\n Composite composite = (Composite) super.createDialogArea(parent);\n builder = new SchematronExpressBuilder(composite, value, conceptName, isAbsoluteXPath, isSchematron);\n builder.setTreeParent(treeParent);\n ...
"private void updateVersionPart(IHDistribution distribution) {\n if (distribution == null) {\n return;\n }\n GridData distriData = (GridData) hadoopDistributionCombo.getCombo().getLayoutData();\n if (distribution.useCustom()) {\n hadoopVersionCombo.setHideWidgets(true);\n distriData.hor...
"private void solveSubProblem(int subProblemIndex, int[] variableIndexes, Vector variableCopiesSum) {\n Vector variables = variableCopies.get(subProblemIndex);\n Vector multipliers = lagrangeMultipliers.get(subProblemIndex);\n Vector consensusVariables = Vectors.build(variableIndexes.length, currentPoint.type(...
"protected void updateBindConnection(AbstractAnalysisMetadataPage masterPage, List<TableViewer> tableViewerPosStack) {\n boolean isEmpty1 = tableViewerPosStack.get(0) == null || tableViewerPosStack.get(0).getInput() == null || ((List) tableViewerPosStack.get(0).getInput()).size() == 0;\n boolean isEmpty2 = tableV...
"public Graph createGraph(Object semanticObject) {\n Graph g = new BasicGraph();\n g.setSemanticObject(semanticObject);\n if (semanticObject instanceof CompositeEntity) {\n CompositeEntity toplevel = (CompositeEntity) semanticObject;\n Iterator entities = toplevel.entityList().iterator();\n ...
"protected void recalculateIfRequired(DrawContext dc, double alpha) {\n boolean followTerrainRecalculationRequired = false;\n if (followTerrain) {\n long currentTime = System.currentTimeMillis();\n if (currentTime - lastFollowTerrainUpdateTime > getFollowTerrainUpdateFrequency()) {\n last...
"private BasicDBList filterMissingOptionalAndNullNullableConditions(BasicDBList conditions, DBObject content) {\n Set<String> nullPaths = new HashSet<>();\n BasicDBList ret = new BasicDBList();\n conditions.stream().forEach((Object condition) -> {\n if (condition instanceof BasicDBObject) {\n ...
"public void saveState(IMemento memento) {\n super.saveState(memento);\n if (commitTrans != null || sourceBranch != null || destBranch != null || transactionId != null) {\n try {\n IMemento childMemento = memento.createChild(INPUT);\n if (commitTrans != null) {\n childM...
"public void render(final Radio item, final Object data, final int index) throws Exception {\n final Radiogroup radiogroup = item.getRadiogroup();\n final int size = radiogroup.getModel().getSize();\n final Template tm = resoloveTemplate(radiogroup, item, data, index, size, \"String_Node_Str\");\n if (tm ==...
"public void onTimeSet(TimePicker view, int hour, int minute) {\n mHour = hour;\n mMinute = minute;\n Date d = new Date(mYear - 1900, mMonth, mDay, mHour, mMinute);\n long timestamp = d.getTime();\n try {\n int flags = 0;\n flags |= android.text.format.DateUtils.FORMAT_SHOW_DATE;\n f...
"protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == 0) {\n if (resultCode == RESULT_OK) {\n mThreadPresenter.addPost(data.getStringExtra(\"String_Node_Str\"), forumId, topicId);\n } else {\n }\n fab.show();\n }\n}\n"
"public boolean execute(final PlotPlayer plr, final String... args) {\n final Location loc = plr.getLocationFull();\n final Plot plot = MainUtil.getPlot(loc);\n if (plot == null) {\n return !sendMessage(plr, C.NOT_IN_PLOT);\n }\n if ((plot == null) || !plot.hasOwner()) {\n MainUtil.sendMess...
"public void fire() throws IllegalActionException {\n try {\n _workspace.getReadAccess();\n for (Object parameterObject : attributeList()) {\n if (parameterObject instanceof PortParameter) {\n ((PortParameter) parameterObject).update();\n }\n }\n } finally...
"public void chartMouseClicked(ChartMouseEvent event) {\n boolean flag = event.getTrigger().getButton() != MouseEvent.BUTTON3;\n chartComp.setDomainZoomable(flag);\n chartComp.setRangeZoomable(flag);\n if (flag) {\n return;\n }\n final ExecutionLanguage currentEngine = analysis.getParameters()....
"protected boolean refreshNewJob() {\n if (alreadyEditedByUser) {\n return false;\n }\n StructuredSelection selection = (StructuredSelection) mainPage.getSelection();\n if (selection != null && !selection.isEmpty()) {\n RepositoryNode node = (RepositoryNode) selection.getFirstElement();\n ...
"public void callArtifactPluginMethod(HttpRequest request, HttpResponder responder, String namespaceId, String artifactName, String artifactVersion, String pluginName, String pluginType, String methodName, String scope) throws Exception {\n String requestBody = request.getContent().toString(Charsets.UTF_8);\n Nam...
"public static void main(String[] args) throws Exception {\n String propsPath;\n String testFile = null;\n if (args.length == 0) {\n System.out.println(\"String_Node_Str\" + \"String_Node_Str\");\n }\n propsPath = args[0];\n if (args.length == 2) {\n testFile = args[1];\n }\n Sphin...
"protected VoltageLevel readRootElementAttributes(VoltageLevelAdder adder, XMLStreamReader reader, List<Runnable> endTasks) {\n DateTime date = DateTime.parse(reader.getAttributeValue(null, \"String_Node_Str\"));\n Horizon horizon = Horizon.valueOf(reader.getAttributeValue(null, \"String_Node_Str\"));\n int fo...
"protected ListResult<ContactDTO> execute(CheckContactDuplication command, UserDispatch.UserExecutionContext context) throws CommandException {\n List<Contact> contacts = contactDAO.findContactsByEmailOrSimilarName(context.getUser().getOrganization().getId(), command.getContactId(), command.getEmail(), command.getFi...
"private static String escapeStr(String s) {\n String s1 = s.replaceAll(\"String_Node_Str\", \"String_Node_Str\").replaceAll(\"String_Node_Str\", \"String_Node_Str\").replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n if (SYMBOLS_TO_WRAP.matcher(s1).find()) {\n s1 = \"String_Node_Str\".concat(s1).conc...
"public void endContainer(IContainerContent container) {\n _endContainer(container);\n}\n"
"public boolean checkAscension(Player player, double y1, double y2) {\n if (!isMovingExempt(player) && player.getLocation().getBlock().getType() != Material.WATER && player.getLocation().getBlock().getType() != Material.STATIONARY_WATER && !Utilities.isOnLadder(player) && !player.isInsideVehicle()) {\n String...
"public void setAutoJoin(boolean value) {\n autoJoin = value;\n if (!isPersistent())\n return;\n if (value) {\n ConfigurationManager.updateChatRoomProperty(getParentProvider().getProtocolProvider(), chatRoomID, AUTOJOIN_PROPERTY_NAME, Boolean.toString(autoJoin));\n } else {\n Configurat...
"public static boolean isUseData(final ElementParameterType param, final String name) {\n if (param == null || name == null) {\n return false;\n }\n if (param.getField().equals(EParameterFieldType.TABLE.getName())) {\n EList elementValue = param.getElementValue();\n if (elementValue != nul...
"public void handleEvent(Object eventObject) {\n if (eventObject instanceof CacheInvalidationMessage) {\n CacheInvalidationMessage message = (CacheInvalidationMessage) eventObject;\n ClientMessage eventMessage = CacheAddInvalidationListenerCodec.encodeCacheInvalidationEvent(message.getName(), message.g...
"private ComponentModifier retrieveComponentModifier(String className) {\n Log.d(TAG_DEX_SAMPLE, \"String_Node_Str\");\n ComponentModifier retComponentModifier = null;\n final String jarContainerPath = Environment.getExternalStorageDirectory().getAbsolutePath() + \"String_Node_Str\";\n File dexOutputDir = g...
"private QueryHandle createFromSchemaProperty(DatasetSpecification spec, Id.DatasetInstance datasetID, Map<String, String> serdeProperties) throws ExploreException, SQLException, UnsupportedTypeException {\n String schemaStr = spec.getProperty(DatasetProperties.SCHEMA);\n if (schemaStr == null) {\n if (sho...
"private String downloadContainerIntoFolder(String urlPath, File resOutputDir) {\n if (urlPath == null)\n return null;\n if (resOutputDir == null || !resOutputDir.exists())\n return null;\n if (!resOutputDir.isDirectory() || !resOutputDir.canRead() || !resOutputDir.canWrite())\n return nul...
"public void startLoadedGame() {\n gameUIInit(false);\n processOnServer(new NullAction(NullAction.START_GAME));\n statusWindow.setGameActions();\n}\n"
"public CommonBTNode getExtentsOverflowNode(long nodeNumber) {\n ExtentsInitProcedure init = new ExtentsInitProcedure();\n long currentNodeNumber;\n if (nodeNumber < 0) {\n currentNodeNumber = init.bthr.getRootNodeNumber();\n else\n currentNodeNumber = nodeNumber;\n final int nodeSize = ini...
"private String getStylePath(File cache, String styleResourceName) throws IOException {\n File style = new File(cache, styleResourceName);\n FileUtil.copy(XmlReportOutputter.class.getResourceAsStream(styleResourceName), style, null);\n return style;\n}\n"
"public void actionPerformed(final ActionEvent e) {\n final File file = fileList.getSelectedFile();\n if (file.isDirectory()) {\n updateCurrentFolder(file, UpdateSource.list);\n }\n}\n"
"public static byte[] outPointToBytes(OutPoint outPoint) {\n byte[] bytes = new byte[34];\n System.arraycopy(outPoint.txid.getBytes(), 0, bytes, 0, Sha256Hash.HASH_LENGTH);\n bytes[32] = (byte) (outPoint.index & 0xFF);\n bytes[33] = (byte) ((outPoint.index >> 8) & 0xFF);\n return bytes;\n}\n"
"private static SrlFgExampleBuilderPrm getSrlFgExampleBuilderPrm() {\n SrlFgExampleBuilderPrm prm = new SrlFgExampleBuilderPrm();\n prm.fgPrm.linkVarType = linkVarType;\n prm.fgPrm.makeUnknownPredRolesLatent = makeUnknownPredRolesLatent;\n prm.fgPrm.roleStructure = roleStructure;\n prm.fgPrm.useProjDepTr...
"public boolean isCompatible(final Config config) {\n if (config == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n if (!this.groupConfig.getName().equals(config.getGroupConfig().getName())) {\n return false;\n }\n if (checkCompatibility) {\n checkMapConfigCo...
"public void onUpdate(AbstractBytes entry) {\n if (!canReplicate)\n throw new IllegalStateException(\"String_Node_Str\");\n final long keyLen = entry.readStopBit();\n final Bytes keyBytes = entry.createSlice(0, keyLen);\n entry.skip(keyLen);\n final long timeStamp = entry.readLong();\n final by...
"public byte getPlayerIdAt(int x, int y) {\n return grid.getPlayerIdAt(x, y);\n}\n"
"public static OutputTreeNodeEditPart getParentLoopNodeEditPart(OutputTreeNodeEditPart nodePart) {\n if (nodePart != null && nodePart instanceof OutputTreeNodeEditPart) {\n OutputTreeNodeEditPart nodePartTemp = (OutputTreeNodeEditPart) nodePart;\n TreeNode model = (TreeNode) nodePartTemp.getModel();\n ...
"private double _doFunction(double in1, double in2) {\n double result;\n switch(_function) {\n case EXP:\n result = Math.exp(input1);\n break;\n case LOG:\n result = Math.log(in1);\n break;\n case SQUARE:\n result = in1 * in1;\n ...
"public void testGetChallenger() throws Exception {\n try {\n handler.getChallenger(QueueType.RANKED_SOLO_5x5).get(1, MINUTES);\n } catch (RequestException ex) {\n if (isNotServerside(ex))\n throw ex;\n }\n}\n"
"public Set<Area> overlaps(Area area) {\n DimensionConfig dim = get(area.start.dimension());\n if (dim != null) {\n return dim.areas.overlaps(area);\n }\n return new HashSet<Area>(0);\n}\n"
"public void setConfig(HttpRequest request, HttpResponder responder, String namespaceId, String stream) throws Exception {\n StreamId streamId = validateAndGetStreamId(namespaceId, stream);\n checkStreamExists(streamId);\n StreamProperties properties = getAndValidateConfig(request);\n streamAdmin.updateConf...
"private int find(int p) {\n if (p < 0 || p >= parent.length)\n throw new IllegalArgumentException(\"String_Node_Str\");\n if (p != parent[p])\n parent[p] = find(parent[p]);\n return parent[p];\n}\n"
"public boolean checkStatus(SwarmContext swarmContext) {\n LOGGER.info(\"String_Node_Str\");\n try {\n List<Object> driverStatus = swarmContext.getDockerClient().infoCmd().exec().getDriverStatuses();\n LOGGER.debug(\"String_Node_Str\");\n for (Object element : driverStatus) {\n try...
"public final void parameters(final String[] par, final com.thevoxelbox.voxelsniper.SnipeData v) {\n for (int i = 0; i < par.length; i++) {\n final String parameter = par[i];\n if (parameter.equalsIgnoreCase(\"String_Node_Str\")) {\n v.sendMessage(TextColors.GOLD, \"String_Node_Str\");\n ...
"public boolean replaceEvent(GameEvent event, Ability source, Game game) {\n PreventionEffectData preventionData = preventDamageAction(event, source, game);\n this.used = true;\n this.discard();\n if (preventionData.getPreventedDamage() > 0) {\n UUID damageTarget = getTargetPointer().getFirst(game, s...
"protected synchronized TransactionOutputChanges connectTransactions(StoredBlock newBlock) throws VerificationException, BlockStoreException, PrunedException {\n checkState(lock.isHeldByCurrentThread());\n if (!params.passesCheckpoint(newBlock.getHeight(), newBlock.getHeader().getHash()))\n throw new Verif...
"public static String getCurrentVersion(RepositoryNode repositoryNode) {\n try {\n if (repositoryNode.getObject() != null && !repositoryNode.getObject().getRepositoryObjectType().equals(ERepositoryObjectType.FOLDER)) {\n return ProxyRepositoryFactory.getInstance().getLastVersion(repositoryNode.getI...
"public void validate(UIFormInput uiInput) throws Exception {\n if (uiInput.getValue() == null || ((String) uiInput.getValue()).trim().length() == 0)\n return;\n UIComponent uiComponent = (UIComponent) uiInput;\n UIForm uiForm = uiComponent.getAncestorOfType(UIForm.class);\n String label;\n try {\...
"public boolean varEquals(Operand operand) {\n if (this instanceof Register && operand instanceof Register)\n return this.physicalRegister() != null && this.physicalRegister() == operand.physicalRegister();\n if (operand instanceof Memory)\n return varEquals(((Memory) operand).baseReg()) || varEqual...
"protected ThucydidesListeners getThucydidesListeners() {\n if (thucydidesListenersThreadLocal.get() == null) {\n ThucydidesListeners listeners = ThucydidesReports.setupListeners(systemConfiguration);\n thucydidesListenersThreadLocal.set(listeners);\n synchronized (baseStepListeners) {\n ...
"protected void outputImg(Element ele, HashMap cssStyles, IContent content) {\n String src = ele.getAttribute(\"String_Node_Str\");\n if (src != null) {\n IImageContent image = new ImageContent(content);\n addChild(content, image);\n handleStyle(ele, cssStyles, image);\n if (!FileUtil....
"protected void init() throws BirtException {\n if (PropertyUtil.isInlineElement(image)) {\n root = new ImageInlineContainer(parent, context, image);\n } else {\n root = new ImageBlockContainer(parent, context, image);\n }\n root.initialize();\n root.setAllocatedWidth(parent.getMaxAvaWidth(...
"public String toString() {\n String someText = this.text;\n int length = someText.length();\n if (someText.length() > 32) {\n someText = someText.substring(0, 29) + \"String_Node_Str\";\n }\n return this.getNodeName() + \"String_Node_Str\" + length + \"String_Node_Str\" + someText + \"String_Node...
"public void testRegisterService() throws Exception {\n final IRemoteServiceContainerAdapter[] adapters = getRemoteServiceAdapters();\n final IRemoteServiceRegistration reg = registerService(adapters[0], IConcatService.class.getName(), createService(), 1500);\n assertNotNull(reg);\n assertNotNull(reg.getCon...
"protected Do<?> visitOverrideForDo(InteractionSeq<?> parent, Do<?> child) throws ScribbleException {\n if (!isCycle()) {\n JobContext jc = getJobContext();\n ModuleContext mc = getModuleContext();\n ProtocolDecl<? extends ProtocolKind> pd = child.getTargetProtocolDecl(jc, mc);\n ScribNod...
"public void writeBody(PrintWriter out) throws IOException {\n out.print(\"String_Node_Str\");\n super.writeBody(out);\n out.println(\"String_Node_Str\");\n out.println(\"String_Node_Str\");\n out.println(\"String_Node_Str\");\n out.println(\"String_Node_Str\");\n out.println(\"String_Node_Str\");\...
"public void actionPerformed(ActionEvent e) {\n if (e.getSource() == reconnectBox) {\n HTTPReconnect.setEnabled(reconnectBox.getSelectedObjects() != null);\n ExternReconnect.setEnabled(reconnectBox.getSelectedObjects() != null);\n JDUtilities.getConfiguration().setProperty(Configuration.PARAM_DI...
"public void pick(Pick pick) {\n leftToolTip.pick(pick);\n onLinePicked(pick, true);\n }\n });\n final IPickingListener rightToolTip = context.getSWTLayer().createTooltip(new IPickingLabelProvider() {\n public String getLabel(Pick pick) {\n return HistogramElement.th...
"public File getStoreFile(String path) {\n if (path.startsWith(\"String_Node_Str\")) {\n return new File(path);\n } else {\n String basePath = settings.recorderBasePath();\n return new File(basePath + \"String_Node_Str\" + path);\n }\n}\n"
"protected void postSubmit() throws Exception {\n compareResultsByLinesInMemoryWithStrictOrder(this.sortedRecords, this.resultPath);\n}\n"
"public final Object getObject(int column) throws SqlException {\n switch(jdbcTypes_[column - 1]) {\n case java.sql.Types.BOOLEAN:\n return new Boolean(get_BOOLEAN(column));\n case java.sql.Types.SMALLINT:\n return new Integer(get_SMALLINT(column));\n case java.sql.Types.IN...
"public void createSalesforceModuleWizard(RepositoryNode node, final boolean forceReadOnly) {\n SalesforceSchemaConnection connection = null;\n MetadataTable metadataTable = null;\n boolean creation = false;\n if (node.getType() == ENodeType.REPOSITORY_ELEMENT) {\n ERepositoryObjectType nodeType = (E...
"public boolean tryAdvance(Consumer<? super DataOnMemory<T>> action) {\n if (!advance)\n return false;\n final HoldingConsumer<T> holder = new HoldingConsumer<>();\n final DataOnMemoryListContainer<T> container = new DataOnMemoryListContainer(dataStream.getAttributes());\n if (tailInstance == null) {...
"public void testGetShortcuts() {\n setCaller(CALLING_PACKAGE_1);\n final ShortcutInfo s1_1 = makeShortcutWithTimestamp(\"String_Node_Str\", 5000);\n final ShortcutInfo s1_2 = makeShortcutWithTimestamp(\"String_Node_Str\", 1000);\n assertTrue(mManager.setDynamicShortcuts(list(s1_1, s1_2)));\n setCaller(C...
"Chunk getChunk() {\n Chunk chunk = reclaimedChunks.poll();\n if (chunk != null) {\n chunk.reset();\n reusedChunkCount.incrementAndGet();\n } else {\n while (true) {\n long created = this.chunkCount.get();\n if (created < this.maxCount) {\n if (this.chu...
"LocalMapStatsImpl getLocalMapStats() {\n LocalMapStatsImpl localMapStats = new LocalMapStatsImpl();\n long now = System.currentTimeMillis();\n int ownedEntryCount = 0;\n int backupEntryCount = 0;\n int markedAsRemovedEntryCount = 0;\n int ownedEntryMemoryCost = 0;\n int backupEntryMemoryCost = 0;\...
"private String getKeyName(KeyEvent e) {\n String text = KeyEvent.getKeyText(e.getKeyCode());\n if (text == null || text.length() != 1) {\n switch(e.getKeyCode()) {\n case KeyEvent.VK_LEFT:\n text = \"String_Node_Str\";\n break;\n case KeyEvent.VK_RIGHT:\...
"public void testParseNetworkErrorRequeue() throws VolleyError {\n when(requeuePolicy.shouldRequeue(any(NetworkResponse.class))).thenReturn(Boolean.TRUE);\n final RetryPolicy retryPolicy = mock(RetryPolicy.class);\n when(request.getRetryPolicy()).thenReturn(retryPolicy);\n final RequestQueue queue = mock(Re...
"public static StreamProcessorExtensionHolder getInstance(ExecutionPlanContext executionPlanContext) {\n ConcurrentHashMap<Class, AbstractExtensionHolder> extensionHolderMap = executionPlanContext.getSiddhiContext().getExtensionHolderMap();\n AbstractExtensionHolder abstractExtensionHolder = extensionHolderMap.ge...
"public void delete(Object entity, Object pKey) {\n Session s = getStatefulSession();\n Transaction tx = s.beginTransaction();\n s.delete(entity);\n tx.commit();\n s.close();\n EntityMetadata metadata = KunderaMetadataManager.getEntityMetadata(entity.getClass());\n if (!MetadataUtils.useSecondryInd...
"private void triggerAccessViolation(String reason) {\n if (DEBUG)\n log(\"String_Node_Str\" + reason + \"String_Node_Str\" + Utils.hex16(cpu.readRegister(MSP430.PC)));\n statusreg |= ACCVIFG;\n if (cpu.getSFR().isIEBitsSet(SFR.IE1, ACCVIE)) {\n cpu.flagInterrupt(NMI_VECTOR, this, true);\n }\n...
"public List<Permanent> getAvailableManaProducersWithCost(Game game) {\n List<Permanent> result = new ArrayList<>();\n for (Permanent permanent : game.getBattlefield().getAllActivePermanents(playerId)) {\n for (ManaAbility ability : permanent.getAbilities().getManaAbilities(Zone.BATTLEFIELD)) {\n ...
"public void mouseClicked(MouseEvent e) {\n if (e.getClickCount() == 2) {\n if (constantTypeList.getSelectedIndex() == 7) {\n int rowIndex = constantTable.getSelectedRow();\n if (rowIndex == -1) {\n return;\n }\n int multinameIndex = constantTable.con...
"public void endTransaction() {\n ActivityUnit au = _activityUnit.get();\n if (LOG.isLoggable(Level.FINEST)) {\n LOG.finest(\"String_Node_Str\");\n }\n}\n"
"public void drawInfo(Minecraft minecraft, int recipeWidth, int recipeHeight, int mouseX, int mouseY) {\n flame.draw(minecraft, 1, 0);\n minecraft.fontRenderer.drawString(smeltCountString, 24, 8, Color.gray.getRGB());\n minecraft.fontRenderer.drawString(burnTimeString, 24, 18, Color.gray.getRGB());\n}\n"
"protected void internalTransform(String phase, Map<String, String> options) {\n int size;\n do {\n size = vulnerabilities.size();\n for (Analyser analyser : analysers) {\n analyser.analyse();\n }\n } while (size != vulnerabilities.size());\n}\n"
"boolean isValidWith(SourceChecker checker) throws IOException {\n return !primary.valueEquals(overwritten) && !checker.checkEquality(primary.source(), overwritten.source());\n}\n"
"static java.sql.Date parseSqlDate(final String value) {\n try {\n return new java.sql.Date(getSqlDateFormat().parse(value).getTime());\n } catch (ParseException e) {\n return throwRuntimeParseException(value, e, sqlDateFormat);\n }\n}\n"
"private void pushPropInfo(String elementName) {\n ProcessingInfo parentPI = peek(processingStack);\n if ((elementName != null) && (parentPI != null) && (parentPI.lastUnderlyingPI != null) && (elementName.equals(parentPI.lastUnderlyingPI.elementName))) {\n processingStack.add(new ProcessingInfo(parentPI.la...
"public ChannelPipeline getPipeline() throws Exception {\n final ChannelPipeline pipeline = Channels.pipeline();\n for (Map.Entry<String, ChannelHandler> e : Handlers.channelMonitors(TimeUnit.SECONDS, StackConfiguration.CLIENT_INTERNAL_TIMEOUT_SECS).entrySet()) {\n pipeline.addLast(e.getKey(), e.getValue()...
"private void createErrorsList(Composite top) {\n Group errorGroup = new Group(top, SWT.NONE);\n errorGroup.setLayout(new GridLayout());\n errorGroup.setText(\"String_Node_Str\");\n GridData gridData = new GridData(GridData.FILL_HORIZONTAL);\n gridData.heightHint = 150;\n errorGroup.setLayoutData(grid...
"public int getTag() {\n return 2009120141;\n}\n"
"public void onClick(ClickEvent event) {\n Integer start = getStart() - MAXIMUM_ITEMS;\n if (start < 0)\n start = 0;\n setStart(start);\n ElementReceiver.get().queryPage();\n}\n"
"public void onLogout(HttpServletRequest request, HttpServletResponse response, SSOToken ssoToken) throws AuthenticationException {\n try {\n final String ssOutEnabled = ssoToken.getProperty(SAML2Constants.SINGLE_LOGOUT);\n if (Boolean.parseBoolean(ssOutEnabled)) {\n final XUIState xuiState ...
"public boolean finalizeCommandsOnStart(Commands cmds, VirtualMachineProfile<DomainRouterVO> profile) {\n DomainRouterVO router = profile.getVirtualMachine();\n NicProfile controlNic = null;\n for (NicProfile nic : profile.getNics()) {\n if (nic.getTrafficType() == TrafficType.Control && nic.getIp4Addre...