content
stringlengths
40
137k
"public boolean onItemUseFirst(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ) {\n if (!world.isRemote) {\n if (GrowthRequirements.isSoilValid(world, x, y, z) && world.getBlock(x, y + 1, z).getMaterial() == Material.air && side == 1) {\n ...
"public WSItemPK putItem(WSPutItem wsPutItem) throws RemoteException {\n try {\n String projection = wsPutItem.getXmlString();\n Element root = Util.parse(projection).getDocumentElement();\n String concept = root.getLocalName();\n DataModelPOJO dataModel = Util.getDataModelCtrlLocal().get...
"public List<String> filterAdaptColumnHeader() {\n Indicator indicator = this.getCurrIndicator();\n ModelElement analysisElement = indicator.getAnalyzedElement();\n String menuType = this.getMenuType();\n List<String> columnElementList = new ArrayList<String>();\n if (analysisElement == null && indicator...
"public double getAntiDiagonalLineWidth() {\n return antiDiagonalWidth;\n}\n"
"public void valueChanged(ListSelectionEvent e) {\n if ((((DefaultListSelectionModel) e.getSource()).getMinSelectionIndex() != -1) && (plugins.get(((DefaultListSelectionModel) e.getSource()).getMinSelectionIndex()).getConfig().getEntries().size() != 0))\n btnEdit.setEnabled(true);\n else\n btnEdit.s...
"public void onKeyUp(KeyUpEvent event) {\n ParamsBuilder.getCurrent().setVal(targetName, ((TextBox) getWidget()).getText());\n if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER)\n ElementReceiver.get().queryElement();\n}\n"
"ComponentName startServiceLocked(IApplicationThread caller, Intent service, String resolvedType, int callingPid, int callingUid, int userId) {\n if (DEBUG_DELAYED_STATS)\n Slog.v(TAG, \"String_Node_Str\" + service + \"String_Node_Str\" + resolvedType + \"String_Node_Str\" + service.getExtras());\n final b...
"protected void testSimpleSumFor(String tableName, String aggCol, String sampleType, List<String> sampleColumns) throws SQLException, VerdictException {\n String sql = String.format(\"String_Node_Str\", aggCol, tableName);\n List<List<Object>> expected = collectResult(hc.sql(sql));\n TableUniqueName originalTa...
"public org.hl7.fhir.dstu2.model.Conformance.ConformanceRestResourceComponent convertConformanceRestResourceComponent(org.hl7.fhir.dstu3.model.Conformance.ConformanceRestResourceComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Conformance.C...
"public void afterConnectionClosed(WebSocketSession wsSession, org.springframework.web.socket.CloseStatus status) throws Exception {\n log.info(\"String_Node_Str\" + status);\n if (status.getCode() == CloseStatus.GOING_AWAY.getCode()) {\n log.info(\"String_Node_Str\");\n } else if (!status.equals(CloseS...
"public void dataEngineShutdown() {\n if (session.getNamingRelation() == null) {\n return;\n }\n if (session.getEngineContext().getDocWriter() != null) {\n try {\n saveNamingRelation(session.getNamingRelation());\n } catch (DataException e1) {\n e1.printStackTrace();\...
"protected boolean evictInternal(final Data key) {\n EvictOperation operation = new EvictOperation(name, key, false);\n final boolean evictSuccess = (Boolean) invokeOperation(key, operation);\n invalidateNearCache(key);\n return evictSuccess;\n}\n"
"public void init(Config config, int id, ResourcePlan resourcePlan, IWorkerController workerController, IPersistentVolume persistentVolume, IVolatileVolume volatileVolume) {\n this.workerController = workerController;\n workerNetworkInfo = workerController.getWorkerNetworkInfo();\n LOG.info(\"String_Node_Str\"...
"public void show(FolderPanel folderPanel) {\n this.folderPanel = folderPanel;\n if (prepareForShowing()) {\n Dimension dim = getPreferredSize();\n int x = Math.max((folderPanel.getWidth() - (int) dim.getWidth()) / 2, 0);\n int y = folderPanel.getLocationTextField().getHeight() + Math.max((fo...
"public void should_handle_empty_intent() {\n Intent sensorbergServiceStartIntent = new Intent(InstrumentationRegistry.getContext(), SensorbergService.class);\n int handleIntentResult = tested.handleIntent(sensorbergServiceStartIntent);\n Assertions.assertThat(handleIntentResult).isEqualTo(SensorbergService.ST...
"public void channelRead0(ChannelHandlerContext ctx, Request request) throws Exception {\n logger.debug(\"String_Node_Str\", request);\n Response.Builder builder = Response.newBuilder();\n builder.setId(request.getId());\n boolean result = false;\n switch(request.getType()) {\n case LOOKUP:\n ...
"private void describeInstances(Event event, RequestInfo resources) {\n Map requestParameters = event.getRequestParameters();\n if (requestParameters != null && requestParameters.containsKey(\"String_Node_Str\")) {\n Map<String, ArrayList> resourceSet = (LinkedTreeMap) requestParameters.get(\"String_Node_S...
"public void update() {\n for (int i = 0; i < waternodes.size(); i++) {\n float x = waternodes.get(i).physrect.getX();\n float y = waternodes.get(i).physrect.getY();\n float width = waternodes.get(i).physrect.getWidth();\n float height = waternodes.get(i).physrect.getHeight();\n No...
"public void convert() {\n try {\n StaticPlanFixer spf = new StaticPlanFixer(plan, pc);\n spf.convert();\n ReplJoinFixer rjf = new ReplJoinFixer(plan, spf.getStaticPlan(), pc);\n rjf.convert();\n if (rjf.getReplFileMap().size() > 0) {\n splan.setReplFileMap(rjf.getReplFi...
"protected Node createSceneGraph(Entity entity) {\n if (modelComponent != null) {\n return modelComponent.loadModel(entity);\n }\n if (deployedModel != null) {\n ModelLoader loader = deployedModel.getModelLoader();\n if (loader == null) {\n logger.warning(\"String_Node_Str\" + d...
"public Object get(String name, Object key, long timeout) {\n this.keyObject = key;\n final ThreadContext tc = ThreadContext.get();\n TransactionImpl txn = tc.getCallContext().getTransaction();\n if (txn != null && txn.getStatus() == Transaction.TXN_STATUS_ACTIVE) {\n if (txn.has(name, key)) {\n ...
"public void execute() {\n CallContext.current().setEventDetails(\"String_Node_Str\" + getId());\n ServiceOffering serviceOffering = _entityMgr.findById(ServiceOffering.class, serviceOfferingId);\n if (serviceOffering == null) {\n throw new InvalidParameterValueException(\"String_Node_Str\" + serviceOff...
"public void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) throws IOException, InterruptedException, SQLException, ParseException {\n SolrParams params = req.getParams();\n String command = params.get(\"String_Node_Str\", \"String_Node_Str\");\n if (command.equals(\"String_Node_Str\")) {\n ...
"public void writeExpression(MethodWriter writer) {\n this.condition.writeJump(writer, this.elseStart);\n this.then.writeExpression(writer);\n writer.pop();\n writer.visitJumpInsn(Opcodes.GOTO, this.elseEnd);\n writer.visitLabel(this.elseStart);\n if (this.elseThen == null) {\n this.commonType....
"private void doLoadFromFile() throws ClassNotFoundException, IOException {\n if (log.isLoggable(Level.FINE)) {\n log.fine(\"String_Node_Str\");\n }\n File file = file();\n if (file == null || !file.exists() || file.length() == 0) {\n return;\n }\n if (log.isLoggable(Level.FINE)) {\n ...
"public synchronized void submitToken(ResourceToken token) throws NoSuchTokenException {\n LOG.debug(EventType.TOKEN_SUBMITTED.name() + \"String_Node_Str\" + token.toString());\n if (this.pendingTokens.remove(token)) {\n this.submittedTokens.add(token);\n } else {\n throw new NoSuchTokenException...
"public String[] getChoiceSet(Object item, String key) {\n if (key.equals(FilterCondition.OPERATOR_MEMBER)) {\n choiceSet = ChoiceSetFactory.getStructChoiceSet(FilterCondition.FILTER_COND_STRUCT, key);\n return ChoiceSetFactory.getDisplayNamefromChoiceSet(choiceSet);\n }\n if (!(item instanceof D...
"public DebugInfo getDebugInfo(int address) {\n for (int i = 0; i < lineInfo.size(); i++) {\n LineData data = lineInfo.get(i);\n int start = data.lineEntries[0].address;\n int end = data.lineEntries[data.lineEntries.length - 1].address;\n if (address <= end && address >= start) {\n ...
"private void maybeForgetNext() {\n synchronized (receiveLayersSyncRoot) {\n SimulcastLayer next = getNext();\n if (next != null && !next.isStreaming()) {\n this.weakNext = null;\n this.seenNext = 0;\n }\n }\n}\n"
"public InferredEdge getInferredEdge(Edge edge) {\n VertexPair key = new VertexPair(edge.getFromVertex(), edge.getToVertex());\n InferredEdge edgeInfo = edgeToInfo.get(key);\n final Integer edgeId = graph.getIdForEdge(edge);\n if (edgeInfo == null) {\n edgeInfo = new InferredEdge(edge, edgeId, this);...
"public Object execute(Object[] arguments, IScriptFunctionContext context) throws BirtException {\n scriptContext = context;\n if (scriptContext != null) {\n Object locale = scriptContext.findProperty(org.eclipse.birt.core.script.functionservice.IScriptFunctionContext.LOCALE);\n if (!(locale instanc...
"private void toggleBlogFollowStatus() {\n if (!isAdded() || mFollowButton == null) {\n return;\n }\n final boolean isAskingToFollow;\n if (mCurrentFeedId != 0) {\n isAskingToFollow = !ReaderBlogTable.isFollowedFeed(mCurrentFeedId);\n } else {\n isAskingToFollow = !ReaderBlogTable.is...
"public String getLicenseRequiredValue() {\n if (licenseRequired.booleanValue() == true)\n return \"String_Node_Str\";\n else\n return new String(\"String_Node_Str\");\n}\n"
"public Object generate(T wrapped, WrapperFactory<T> wrapperFactory, ClassLoader classLoader) {\n Object component;\n if (wrapped instanceof Adaptor) {\n component = ((Adaptor) wrapped).getComponent();\n } else {\n component = wrapped;\n }\n Class<?>[] wrappedInterfaces = interfacesFor(comp...
"public boolean postfire() throws IllegalActionException {\n if (input.hasToken(0)) {\n final Token in = input.get(0);\n if (!(in instanceof ImageToken)) {\n throw new IllegalActionException(this, \"String_Node_Str\" + in);\n }\n if (_frame != null) {\n List tokens =...
"public void dump(PrintWriter pw, String prefix) {\n final long now = SystemClock.uptimeMillis();\n final long nowEllapsed = SystemClock.elapsedRealtime();\n final DataSet total;\n if (mLastDataSets[0] != null) {\n total = new DataSet(mLastDataSets[0]);\n mLastDataSets[0].addTo(total, now);\n ...
"protected List<Action> createDialogActions() {\n final List<Action> dialogActions = new ArrayList<Action>();\n dialogActions.add(new ChangeSectorAction(this.gameProvider, this.asteroidsInfoPane, \"String_Node_Str\"));\n return dialogActions;\n}\n"
"public boolean addArea(AbstractArea area) {\n CellArea cArea = (CellArea) area;\n root.addChild(area);\n int columnID = cArea.getColumnID();\n int colSpan = cArea.getColSpan();\n if (colSpan > 1 && content.isRTL()) {\n columnID += colSpan - 1;\n }\n cArea.setPosition(tbl.getXPos(columnID), ...
"public org.hl7.fhir.dstu2.model.Range convertRange(org.hl7.fhir.dstu3.model.Range src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Range tgt = new org.hl7.fhir.dstu2.model.Range();\n copyElement(src, tgt);\n tgt.setLow(convertSimpleQuantity(sr...
"protected void editItem(ISelection sel) {\n IStructuredSelection selection = (IStructuredSelection) sel;\n String existing = (String) selection.getFirstElement();\n String value = getExistingInputObject(existing.replace(\"String_Node_Str\", \"String_Node_Str\"));\n if (value != null) {\n int indexOf...
"private boolean checkLogEntry(SVNLogEntry logEntry) {\n if (excludedRevprop != null) {\n SVNProperties revprops = logEntry.getRevisionProperties();\n if (revprops != null && revprops.containsName(excludedRevprop)) {\n listener.getLogger().println(Messages.SubversionSCM_pollChanges_ignoredRe...
"public Connection getConnection(String driverClass, String url, String jndiNameUrl, Properties connectionProperties, Collection<String> driverClassPath) throws SQLException, OdaException {\n validateConnectionUrl(url, jndiNameUrl);\n if (logger.isLoggable(Level.FINE))\n logger.fine(\"String_Node_Str\" + d...
"public void test_create_withValidInputArguments() throws Exception {\n assertTrue(positionA.getId() == Integer.MIN_VALUE);\n assertTrue(positionA.getName() == \"String_Node_Str\");\n assertTrue(positionA.getButtonImagePath() == \"String_Node_Str\");\n assertTrue(!positionA.isDeleted());\n Position retur...
"public Button getAddButton() {\n return addButton;\n}\n"
"private static CConfiguration createCConf() throws IOException {\n File rootLocationFactoryPath = TEMPORARY_FOLDER.newFolder();\n String secureStoreLocation = TEMPORARY_FOLDER.newFolder().getAbsolutePath();\n CConfiguration cConf = CConfiguration.create();\n cConf.set(Constants.Security.Store.FILE_PATH, se...
"public static void doLoadBuiltinLibrary(Project proj) {\n LogisimFile file = proj.getLogisimFile();\n List<Library> baseBuilt = file.getLoader().getBuiltin().getLibraries();\n ArrayList<Library> builtins = new ArrayList<Library>(baseBuilt);\n builtins.removeAll(file.getLibraries());\n if (builtins.isEmp...
"public ResponseEntity queryDomain(String domainName, HttpServletRequest request) throws DecodeException {\n domainName = queryParser.getLastSplitInURI(request);\n String decodeDomain = domainName;\n String punyDomainName = decodeDomain;\n decodeDomain = DomainUtil.urlDecodeAndReplaceAsciiToLowercase(domain...
"public void write(OutputStream fos) throws IOException {\n try {\n PhotoshopApp13Data data = m_image.getMetadata().getExtendedMetadata().getPhotoshopApp13Data();\n if (data != null) {\n replaceIPTCMetadata(data);\n }\n String xmp = m_image.getMetadata().getXmp();\n if (...
"private void updateLinePlotFromSettings() {\n int index = lineSettings.getColorIndex();\n Color c = PlotLineColorPalette.getColor(index);\n setForeground(c);\n Stroke s = linePlot.getStroke();\n if (s == null || s instanceof BasicStroke) {\n int t = lineSettings.getThickness();\n linePlot....
"public boolean isArtifactTypeFilterEnabled() {\n return isOptionSelected(SearchOption.Artifact_Types);\n}\n"
"protected ILMultiDimensionalWithBound getInformationLossInternal(final Node node, final IHashGroupify g) {\n double[] result = super.getInformationLossInternalRaw(node, g);\n double suppressed = 0;\n final IntIntOpenHashMap[] original = new IntIntOpenHashMap[node.getTransformation().length];\n for (int i =...
"private String execprozess(File file, String password) {\n try {\n LinkedList<String> params = new LinkedList<String>();\n if (password != \"String_Node_Str\") {\n params.add(\"String_Node_Str\" + password);\n } else {\n params.add(\"String_Node_Str\");\n }\n ...
"public void disconnect() {\n try {\n checkConnection();\n logout(Constants.REST_PATH_LOGOUT, String.class);\n } catch (CliRestException cliRestException) {\n if (cliRestException.getStatus() == HttpStatus.UNAUTHORIZED) {\n writeCookieInfo(\"String_Node_Str\");\n }\n } ca...
"private String describeDayOfMonth(Map<CronFieldName, CronField> fields) {\n String description = DescriptionStrategyFactory.daysOfMonthInstance(bundle, fields.containsKey(CronFieldName.DAY_OF_MONTH) ? fields.get(CronFieldName.DAY_OF_MONTH).getExpression() : null).describe();\n return addTimeExpressions(descripti...
"public Identity loadIdentityByKey(Long identityKey, boolean strict) {\n if (strict)\n return loadIdentityByKey(identityKey);\n StringBuilder sb = new StringBuilder();\n sb.append(\"String_Node_Str\").append(Identity.class.getName()).append(\"String_Node_Str\");\n List<Identity> identities = dbInstan...
"protected boolean isForPrinting() {\n String outputFormat = getOutputFormat();\n if (\"String_Node_Str\".equalsIgnoreCase(outputFormat) || \"String_Node_Str\".equalsIgnoreCase(outputFormat) || \"String_Node_Str\".equalsIgnoreCase(outputFormat))\n return true;\n return false;\n}\n"
"public void setResponse(byte[] contentType, byte[] value) {\n int valueSize = (value == null) ? 0 : value.length;\n byte[] len = stringToBytes(String.valueOf(valueSize));\n int size = RES_200.length;\n if (contentType != null) {\n size += CONTENT_TYPE.length;\n size += contentType.length;\n ...
"protected List<Card> getHandCards(TestPlayer player) {\n if (handCards.containsKey(player)) {\n return handCards.get(player);\n }\n List<Card> hand = new ArrayList<>();\n handCards.put(player, hand);\n return hand;\n}\n"
"public ITreeNode getTOCTree(ClassLoader loader) throws EngineException {\n try {\n if (documentInfo.tocReader != null) {\n tocReader = documentInfo.tocReader;\n } else {\n tocReader = new TOCReader(archive, loader);\n }\n if (tocReader != null) {\n return...
"public void setupJDBCConnection(String strJdbcDriver) throws DBException {\n if (m_JDBCConnection != null)\n return;\n if (firstTime == null)\n firstTime = new Date();\n if (m_classDB == null) {\n synchronized (firstTime) {\n if (m_classDB == null)\n m_classDB = ...
"public void reset(InstructionHandle from, InstructionHandle to) {\n InstructionHandle ih = from;\n while (ih != to) {\n results.remove(ih);\n ih = ih.getNext();\n }\n results.put(ih, analysis.bottom());\n}\n"
"public void readBinaryFile(FilePath file, UniCallback<DirectBuffer> onComplete) {\n XMLHttpRequest request = XMLHttpRequest.create();\n request.open(\"String_Node_Str\", file.getAbsolutePath());\n request.setResponseType(XMLHttpRequest.ResponseType.ArrayBuffer);\n request.setOnReadyStateChange(xhr -> {\n ...
"public void rebuildConstantPool(ConstantPoolRebuilder rebuilder) {\n ConstantPoolGen newPool = new ConstantPoolGen();\n Set<Integer> usedIndices = ConstantPoolReferenceFinder.findPoolReferences(this, true);\n rebuilder.createNewConstantPool(cpg, usedIndices);\n rebuilder.updateClassGen(this, classGen);\n ...
"private void handleSendingEnergy() {\n int energyStored = getEnergyStored();\n for (EnumFacing facing : EnumFacing.VALUES) {\n BlockPos pos = getPos().offset(facing);\n TileEntity te = getWorld().getTileEntity(pos);\n EnumFacing opposite = facing.getOpposite();\n if (EnergyTools.isEne...
"private void handleFailedEvaluatorInCLR(final FailedEvaluator eval, final boolean isRestartFailed) {\n final String message = \"String_Node_Str\";\n LOG.log(Level.INFO, message);\n final FailedEvaluatorBridge failedEvaluatorBridge = new FailedEvaluatorBridge(eval, JobDriver.this.evaluatorRequestor, JobDriver....
"public void removeRider(Player player) {\n Entity entity = player.getVehicle();\n if (entity instanceof LivingEntity) {\n LivingEntity target = (LivingEntity) entity;\n entity.eject();\n if (DependencyUtils.hasPermission(player, \"String_Node_Str\")) {\n scheduleSpawnEgg(target);\...
"private void updateFormOrXML() {\n if (bundle != null && bundle.getValues() != null && !bundle.getValues().isEmpty()) {\n if (!bundle.isSimilar()) {\n formSimilarDanger.setVisible(true);\n } else {\n formSimilarDanger.setVisible(false);\n }\n showXml.setVisible(true...
"private void getMemberChildren(RolapMember parentMember, List children, Connection jdbcConnection, MemberChildrenConstraint constraint) {\n String sql;\n boolean parentChild;\n final RolapLevel parentLevel = (RolapLevel) parentMember.getLevel();\n RolapLevel childLevel;\n if (parentLevel.isParentChild()...
"public void findPaths() {\n int writePos = 1;\n path[0] = matrix[0][0];\n if (rows > 1)\n findPathRec(writePos, 1, 0);\n if (cols > 1)\n findPathRec(writePos, 0, 1);\n}\n"
"private int getChunkSize(int chunkNumber, int numChunks, long fileSize, int unitSize) {\n logger.info(\"String_Node_Str\");\n if (chunkNumber >= numChunks) {\n chunkSize = 0;\n } else {\n return (int) (fileSize % unitSize);\n }\n}\n"
"public void doInAfterTrace(SpanEventRecorder recorder, Object target, Object[] args, Object result, Throwable throwable) {\n recorder.recordApi(methodDescriptor);\n recorder.recordServiceType(VertxConstants.VERTX_HTTP_SERVER_INTERNAL);\n recorder.recordException(throwable);\n if (target instanceof Response...
"public static Object get(final Class claz) {\n LOG.debug(\"String_Node_Str\", claz.getName());\n return CLIENT.getService(claz);\n}\n"
"private Path getChosenTfPath() {\n Path selected = null;\n int ret = 0;\n while ((selected == null && ret == 0) || (selected != null && (!Files.exists(selected)))) {\n choosedir = new JFileChooser();\n choosedir.setDialogTitle(\"String_Node_Str\");\n choosedir.setFileSelectionMode(JFileCh...
"public void testStaticReportQuery() {\n QueryResource resource = new QueryResource();\n resource.setPersistenceFactory(factory);\n Map<String, Object> properties = new HashMap<String, Object>();\n properties.put(PersistenceUnitProperties.NON_JTA_DATASOURCE, null);\n PersistenceContext context = factory....
"private String getTestPath() {\n LayoutTestsAutoRunner runner = (LayoutTestsAutoRunner) getInstrumentation();\n String test_path = LAYOUT_TESTS_ROOT;\n if (runner.mTestPath != null) {\n test_path += runner.mTestPath;\n }\n test_path = new File(test_path).getAbsolutePath();\n Log.v(\"String_Nod...
"public DbmsQueryResult executeSingle(String sql) throws VerdictDBDbmsException {\n VerdictDBLogger logger = VerdictDBLogger.getLogger(this.getClass());\n logger.debug(\"String_Node_Str\" + sql);\n try {\n Statement stmt = conn.createStatement();\n JdbcQueryResult jrs = null;\n boolean doe...
"private void setImageRotation(float rotation) {\n int currentapiVersion = android.os.Build.VERSION.SDK_INT;\n if (currentapiVersion >= android.os.Build.VERSION_CODES.HONEYCOMB) {\n mImageView.setRotation(rotation);\n } else {\n if (mImageView.getTag() == null) {\n mImageView.setTag(0f...
"protected RecordSetInner prepareForUpdate(RecordSetInner resource) {\n if (this.inner().mxRecords() != null && this.inner().mxRecords().size() > 0) {\n if (resource.mxRecords() == null) {\n resource.withMxRecords(new ArrayList<MxRecord>());\n }\n resource.mxRecords().addAll(this.inne...
"public void syncAllRoutinesForLogOn() throws SystemException {\n syncRoutineItems(getRoutines(true), true);\n}\n"
"private void filterProperties(final Set<ConnConfProperty> properties) {\n for (ConnConfProperty property : properties) {\n final List parsed = new ArrayList();\n for (Object obj : property.getValues()) {\n if (obj != null && !obj.toString().isEmpty()) {\n parsed.add(obj);\n ...
"private static SerialEntry getSerialEntryWithoutBlobs(final JdbcTemplate jdbcTemplate, final int serialId) {\n return jdbcTemplate.queryForObject(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_St...
"private void setupChart(LineChart chart, LineData data, int color) {\n chart.setDescription(\"String_Node_Str\");\n chart.setNoDataTextDescription(\"String_Node_Str\");\n chart.setDrawGridBackground(false);\n chart.setTouchEnabled(true);\n chart.setDragEnabled(true);\n chart.setScaleEnabled(true);\n ...
"private void initPOAForContainer() throws AcsJContainerEx {\n if (m_containerPOA != null) {\n return;\n }\n Policy[] contPolicies = null;\n try {\n contPolicies = new Policy[4];\n contPolicies[0] = m_rootPOA.create_id_assignment_policy(IdAssignmentPolicyValue.USER_ID);\n contPol...
"private static void checkMapSizes(final int expectedSize, int backupCount, HazelcastInstance... instances) throws InterruptedException {\n int nodeCount = 0;\n final IMap[] maps = new IMap[instances.length];\n for (int i = 0; i < 20; i++) {\n for (int j = 0; j < instances.length; j++) {\n fi...
"public void setDataSource(Element dataSource) throws Exception {\n this.dataSourceElement = dataSource;\n if (dataSourceElement != null) {\n this.componentLoad();\n }\n}\n"
"public void record(Iterator<HitEnumAndLength> enums, int positionGap, int offsetGap) {\n int relativePosition = 0;\n int relativeOffset = 0;\n while (enums.hasNext()) {\n HitEnumAndLength e = enums.next();\n int position = 0;\n int endOffset = 0;\n while (e.delegate().next()) {\n ...
"public static OMCLogger getInstance() {\n if (_omcLoggerInstance == null) {\n try {\n _omcLoggerInstance = new OMCLogger();\n } catch (IllegalActionException e) {\n new Exception(\"String_Node_Str\").printStackTrace();\n }\n }\n return _omcLoggerInstance;\n}\n"
"public void handleResult(Result result, Context context) {\n if (result == null || result instanceof AsyncResult) {\n return;\n }\n Object objectToBeRendered = result.getRenderable();\n if (objectToBeRendered instanceof Renderable) {\n handleRenderable((Renderable) objectToBeRendered, context...
"public static void test() {\n Variables variables = new Variables();\n ParameterVariables parameterVariables = new ParameterVariables(1);\n Variable multiA = variables.newMultinomialVariable(\"String_Node_Str\", 10);\n Variable dirichlet = parameterVariables.newDirichletParameter(\"String_Node_Str\", 10);\...
"void performRemoveIcon(IBinder key) {\n synchronized (this) {\n if (SPEW) {\n Log.d(TAG, \"String_Node_Str\" + key);\n }\n StatusBarIcon icon = mIconMap.remove(key);\n mIconList.remove(icon);\n if (icon != null) {\n ViewGroup parent = (ViewGroup) icon.view.ge...
"public void encodeEnd(FacesContext context, UIComponent component) throws IOException {\n if (!component.isRendered()) {\n return;\n }\n DataTable dataTable = (DataTable) component;\n Map<Integer, String> columnSortOrder = dataTable.getColumnSortOrderMap();\n int pageLength = dataTable.getPageLen...
"private void _hlaDebugSys(String reason) {\n String dbgHeader = \"String_Node_Str\" + _federateName + \"String_Node_Str\" + _federationName + \"String_Node_Str\";\n System.out.println(dbgHeader + reason);\n}\n"
"protected void createDb() {\n DataCenterVO dc = new DataCenterVO(UUID.randomUUID().toString(), \"String_Node_Str\", \"String_Node_Str\", null, \"String_Node_Str\", null, \"String_Node_Str\", null, null, NetworkType.Basic, null, null, true, true, null, null);\n dc = dcDao.persist(dc);\n dcId = dc.getId();\n ...
"public boolean applies(GameEvent event, Ability source, Game game) {\n if (!this.used && event.getFlag()) {\n MageObject sourceObject = game.getObject(event.getSourceId());\n MageObject chosenSourceObject = game.getObject(source.getFirstTarget());\n if (sourceObject == null) {\n game...
"public BlockRayBuilder filter(final Predicate<BlockRayHit>... filters) {\n checkNotNull(filters, \"String_Node_Str\");\n final Predicate<BlockRayHit> filter = filters.length == 1 ? filters[0] : Predicates.<BlockRayHit>and(filters);\n if (this.filter == ALL_FILTER) {\n this.filter = filter;\n } else ...
"public boolean isCompatible(Plugin plugin) {\n return plugin.getDescription().getName().equalsIgnoreCase(\"String_Node_Str\") && !plugin.getClass().getName().equals(\"String_Node_Str\") && plugin instanceof iConomy;\n}\n"
"public StringBuffer convertToSMVFormat(String formula, String choice, String span) throws IllegalActionException {\n _variableInfo = new HashMap<String, VariableInfo>();\n StringBuffer returnSmvFormat = new StringBuffer(\"String_Node_Str\");\n returnSmvFormat.append(\"String_Node_Str\");\n returnSmvFormat....
"public String getNamespace() {\n String namespace = elementDecl.namespace();\n if (\"String_Node_Str\".equals(namespace)) {\n namespace = this.registry.getSchema().getNamespace();\n }\n return \"String_Node_Str\".equals(namespace) ? null : namespace;\n}\n"
"public String[] getSelectedValues() {\n return new String[] { getTextOfElementAtIndex(m_list.getSelectionIndex()) };\n}\n"
"public void setUp() {\n root = Root.create();\n changeStack = root.getStateManager().getChangeStack();\n changeAction = new ChangeActionImpl();\n state = BooleanState.create(root, STATE_ID, true);\n StateTestUtils.close(root);\n set_1 = changeStack.getPreviousChangeSet();\n state.set(false);\n ...