content
stringlengths
40
137k
"public void put(URI uri, Map<String, List<String>> responseHeaders) throws IOException {\n if ((uri == null) || (responseHeaders == null))\n return;\n String url = uri.toString();\n String expiryString = null;\n int sessionExpiry = AppConfig.getInstance(null).forceSessionCookieExpiry;\n for (String headerKey : responseHeaders.keySet()) {\n if ((headerKey == null) || !(headerKey.equalsIgnoreCase(\"String_Node_Str\") || headerKey.equalsIgnoreCase(\"String_Node_Str\")))\n continue;\n for (String headerValue : responseHeaders.get(headerKey)) {\n boolean passOriginalHeader = true;\n if (sessionExpiry > 0) {\n List<HttpCookie> cookies = HttpCookie.parse(headerValue);\n for (HttpCookie cookie : cookies) {\n if (cookie.getMaxAge() < 0 || cookie.getDiscard()) {\n cookie.setMaxAge(sessionExpiry);\n cookie.setDiscard(false);\n if (expiryString == null) {\n Calendar calendar = Calendar.getInstance();\n calendar.add(Calendar.SECOND, sessionExpiry);\n Date expiryDate = calendar.getTime();\n expiryString = \"String_Node_Str\" + DateUtils.formatDate(expiryDate) + \"String_Node_Str\" + Integer.toString(sessionExpiry);\n }\n StringBuilder newHeader = new StringBuilder();\n newHeader.append(cookie.toString());\n newHeader.append(expiryString);\n if (cookie.getPath() != null) {\n newHeader.append(\"String_Node_Str\");\n newHeader.append(cookie.getPath());\n }\n if (cookie.getDomain() != null) {\n newHeader.append(\"String_Node_Str\");\n newHeader.append(cookie.getDomain());\n }\n if (cookie.getSecure()) {\n newHeader.append(\"String_Node_Str\");\n }\n this.webkitCookieManager.setCookie(url, newHeader.toString());\n passOriginalHeader = false;\n }\n }\n }\n if (passOriginalHeader)\n this.webkitCookieManager.setCookie(url, headerValue);\n }\n }\n}\n"
"public <T extends Serializable> JobPluginInfo processJobPluginInformation(Plugin<T> plugin, JobInfo jobInfo) {\n int taskObjectsCount = jobInfo.getObjectsCount();\n Map<Plugin<?>, JobPluginInfo> jobInfos = jobInfo.getJobInfo();\n float percentage = 0f;\n int sourceObjectsCount = 0;\n int sourceObjectsBeingProcessed = 0;\n int sourceObjectsProcessedWithSuccess = 0;\n int sourceObjectsProcessedWithFailure = 0;\n int outcomeObjectsWithManualIntervention = 0;\n for (JobPluginInfo jpi : jobInfos.values()) {\n IngestJobPluginInfo pluginInfo = (IngestJobPluginInfo) jpi;\n if (pluginInfo.getTotalSteps() > 0) {\n float pluginPercentage = pluginInfo.getCompletionPercentage() == 100 ? 1.0f : 0.0f;\n if (pluginInfo.getCompletionPercentage() != 100) {\n pluginPercentage = ((float) pluginInfo.getStepsCompleted()) / pluginInfo.getTotalSteps();\n }\n float pluginWeight = ((float) pluginInfo.getSourceObjectsCount()) / taskObjectsCount;\n percentage += (pluginPercentage * pluginWeight);\n sourceObjectsProcessedWithSuccess += pluginInfo.getSourceObjectsProcessedWithSuccess();\n sourceObjectsProcessedWithFailure += pluginInfo.getSourceObjectsProcessedWithFailure();\n outcomeObjectsWithManualIntervention += pluginInfo.getOutcomeObjectsWithManualIntervention();\n }\n sourceObjectsBeingProcessed += pluginInfo.getSourceObjectsBeingProcessed();\n sourceObjectsCount += pluginInfo.getSourceObjectsCount();\n }\n IngestJobPluginInfo ingestInfoUpdated = new IngestJobPluginInfo();\n ingestInfoUpdated.setCompletionPercentage(Math.round((percentage * 100)));\n ingestInfoUpdated.setSourceObjectsCount(sourceObjectsCount);\n ingestInfoUpdated.setSourceObjectsBeingProcessed(sourceObjectsBeingProcessed);\n ingestInfoUpdated.setSourceObjectsProcessedWithSuccess(sourceObjectsProcessedWithSuccess);\n ingestInfoUpdated.setSourceObjectsProcessedWithFailure(sourceObjectsProcessedWithFailure);\n ingestInfoUpdated.setOutcomeObjectsWithManualIntervention(outcomeObjectsWithManualIntervention);\n return ingestInfoUpdated;\n}\n"
"private Counter processAllColumns(NoSqlTypedSession s, ColFamilyData data, Map<Object, KeyValue<TypedRow>> keyToRow, Cursor<IndexPoint> indexView2) {\n String colName = data.getColumn();\n indexView2.beforeFirst();\n int rowCounter = 0;\n int changedCounter = 0;\n while (indexView2.next()) {\n rowCounter++;\n IndexPoint pt = indexView2.getCurrent();\n KeyValue<TypedRow> row = keyToRow.get(pt.getKey());\n if (row == null) {\n if (log.isDebugEnabled())\n log.debug(\"String_Node_Str\" + pt.getKey());\n } else if (row.getException() != null || row.getValue() == null) {\n removeIndexPt(s, data, pt);\n changedCounter++;\n } else {\n TypedRow val = row.getValue();\n if (processColumn(s, data, val, pt)) {\n changedCounter++;\n }\n }\n if (changedCounter > 50) {\n s.flush();\n }\n if (rowCounter % 20000 == 0) {\n System.out.println(\"String_Node_Str\" + rowCounter + \"String_Node_Str\" + changedCounter);\n }\n }\n if (totalRowCount == null)\n totalRowCount = rowCounter;\n s.flush();\n return new Counter(rowCounter, changedCounter);\n}\n"
"private static String getNameFromDefinition(URL definitionLocation) {\n Document definitionDocument = XMLUtil.openDocument(definitionLocation);\n if (definitionDocument == null) {\n return null;\n }\n Element nameElement = XMLUtil.getElement(definitionDocument.getDocumentElement(), \"String_Node_Str\", null);\n if (nameElement == null || nameElement.getFirstChild() == null) {\n return null;\n }\n return nameElement.getFirstChild().getNodeValue();\n}\n"
"public static void loadRendererConfigurations(PmsConfiguration pmsConf) {\n _pmsConfiguration = pmsConf;\n enabledRendererConfs = new TreeSet<>(rendererLoadingPriorityComparator);\n try {\n defaultConf = new RendererConfiguration();\n } catch (ConfigurationException e) {\n LOGGER.debug(\"String_Node_Str\", e);\n }\n File renderersDir = getRenderersDir();\n if (renderersDir != null) {\n LOGGER.info(\"String_Node_Str\" + renderersDir.getAbsolutePath());\n File[] confs = renderersDir.listFiles();\n Arrays.sort(confs);\n int rank = 1;\n List<String> selectedRenderers = pmsConf.getSelectedRenderers();\n for (File f : confs) {\n if (f.getName().endsWith(\"String_Node_Str\")) {\n try {\n RendererConfiguration r = new RendererConfiguration(f);\n r.rank = rank++;\n String rendererName = r.getRendererName();\n String renderersGroup = null;\n if (rendererName.indexOf(\"String_Node_Str\") > 0) {\n renderersGroup = rendererName.substring(0, rendererName.indexOf(\"String_Node_Str\"));\n }\n if (selectedRenderers.contains(rendererName) || selectedRenderers.contains(renderersGroup) || selectedRenderers.contains(pmsConf.ALL_RENDERERS)) {\n enabledRendererConfs.add(r);\n } else {\n LOGGER.debug(\"String_Node_Str\" + rendererName + \"String_Node_Str\");\n }\n } catch (ConfigurationException ce) {\n LOGGER.info(\"String_Node_Str\" + f.getAbsolutePath());\n }\n }\n }\n }\n LOGGER.info(\"String_Node_Str\" + enabledRendererConfs.size() + \"String_Node_Str\");\n for (RendererConfiguration r : enabledRendererConfs) {\n LOGGER.info(\"String_Node_Str\" + r);\n }\n if (enabledRendererConfs.size() > 0) {\n String rendererFallback = pmsConf.getRendererDefault();\n if (StringUtils.isNotBlank(rendererFallback)) {\n RendererConfiguration fallbackConf = getRendererConfigurationByName(rendererFallback);\n if (fallbackConf != null) {\n defaultConf = fallbackConf;\n }\n }\n }\n DeviceConfiguration.loadDeviceConfigurations(pmsConf);\n}\n"
"public void testRebuildSegment() throws IOException {\n CubeInstance cubeInstance = cubeMgr.getCube(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n CubeSegment rebuildSegment = cubeMgr.appendSegments(cubeInstance, 1386806400000L);\n System.out.println(JsonUtil.writeValueAsIndentString(cubeInstance));\n assertEquals(RealizationStatusEnum.READY, cubeInstance.getStatus());\n assertEquals(1, cubeInstance.getBuildingSegments().size());\n assertEquals(SegmentStatusEnum.NEW, cubeInstance.getBuildingSegments().get(0).getStatus());\n assertEquals(1, cubeInstance.getSegments(SegmentStatusEnum.READY).size());\n assertEquals(1, cubeInstance.getSegments(SegmentStatusEnum.NEW).size());\n assertEquals(1, cubeInstance.getRebuildingSegments().size());\n assertEquals(1364688000000L, cubeInstance.getAllocatedStartDate());\n assertEquals(1386806400000L, cubeInstance.getAllocatedEndDate());\n System.out.println(\"String_Node_Str\");\n cubeMgr.updateSegmentOnJobSucceed(cubeInstance, CubeBuildTypeEnum.BUILD, rebuildSegment.getName(), \"String_Node_Str\", System.currentTimeMillis(), 111, 222, 333);\n assertEquals(RealizationStatusEnum.READY, cubeInstance.getStatus());\n assertEquals(1, cubeInstance.getSegments().size());\n assertEquals(1, cubeInstance.getSegments(SegmentStatusEnum.READY).size());\n assertEquals(0, cubeInstance.getBuildingSegments().size());\n assertEquals(0, cubeInstance.getRebuildingSegments().size());\n assertEquals(1364688000000L, cubeInstance.getAllocatedStartDate());\n assertEquals(1386806400000L, cubeInstance.getAllocatedEndDate());\n assertEquals(\"String_Node_Str\", cubeInstance.getSegments().get(0).getLastBuildJobID());\n System.out.println(JsonUtil.writeValueAsIndentString(cubeInstance));\n}\n"
"private void checkActionBar() {\n final ActionBar actionBar = getActionBar();\n if (actionBar == null)\n return;\n switch(getPostListType()) {\n case TAG:\n actionBar.setDisplayShowTitleEnabled(false);\n actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_LIST);\n actionBar.setListNavigationCallbacks(getActionBarAdapter(), this);\n selectTagInActionBar(getCurrentTag());\n break;\n default:\n actionBar.setDisplayShowTitleEnabled(true);\n actionBar.setDisplayHomeAsUpEnabled(true);\n actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD);\n break;\n }\n}\n"
"public IStorage createStorage(final EManagerObjectType useStorageType) {\n if (useStorageType.getGroupType() != EManagerType.DATA_STORAGE) {\n throw new CaleydoRuntimeException(\"String_Node_Str\" + useStorageType.name());\n }\n final int iNewId = this.createId(useStorageType);\n switch(useStorageType) {\n case STORAGE_NUMERICAL:\n return new NumericalStorage(iNewId, generalManager);\n default:\n throw new CaleydoRuntimeException(\"String_Node_Str\" + useStorageType.toString() + \"String_Node_Str\");\n }\n}\n"
"public void setRemoteVideoView(QBGLVideoView videoView) {\n this.remoteVideoView = videoView;\n onRemoteVideoViewCreated();\n}\n"
"private int mapB2A(final int b) {\n if (edits.isEmpty()) {\n return b;\n }\n for (int i = 0; i < edits.size(); i++) {\n final Edit e = edits.get(i);\n if (b < e.getBeginB()) {\n if (i == 0) {\n return b;\n }\n return edits.get(i - i).getEndA() + (e.getBeginB() - b);\n }\n if (e.getBeginB() <= b && b <= e.getEndB()) {\n return e.getBeginA() + (b - e.getBeginB());\n }\n }\n final Edit last = edits.get(edits.size() - 1);\n return last.getBeginA() + (b - last.getEndB());\n}\n"
"void onOpen(Map topologyConfig, TopologyContext topologyContext, SpoutOutputCollector spoutOutputCollector) {\n if (startingTrigger != null) {\n startingTrigger.setSidelineSpout(new SpoutTriggerProxy(this));\n }\n if (stoppingTrigger != null) {\n stoppingTrigger.setSidelineSpout(new SpoutTriggerProxy(this));\n }\n fireHoseSpout = new VirtualSpout(getSpoutConfig(), getTopologyContext(), getFactoryManager(), getMetricsRecorder());\n fireHoseSpout.setVirtualSpoutId(generateVirtualSpoutId(\"String_Node_Str\"));\n getCoordinator().addSidelineSpout(fireHoseSpout);\n final String topic = (String) getSpoutConfigItem(SidelineSpoutConfig.KAFKA_TOPIC);\n final List<SidelineRequestIdentifier> existingRequestIds = getPersistenceAdapter().listSidelineRequests();\n logger.info(\"String_Node_Str\", existingRequestIds.size());\n for (SidelineRequestIdentifier id : existingRequestIds) {\n final ConsumerState.ConsumerStateBuilder startingStateBuilder = ConsumerState.builder();\n final ConsumerState.ConsumerStateBuilder endingStateStateBuilder = ConsumerState.builder();\n SidelinePayload payload = null;\n for (final TopicPartition topicPartition : currentState.getTopicPartitions()) {\n payload = getPersistenceAdapter().retrieveSidelineRequest(id, topicPartition.partition());\n if (payload == null) {\n continue;\n }\n startingStateBuilder.withPartition(topicPartition, payload.startingOffset);\n if (payload.endingOffset != null) {\n endingStateStateBuilder.withPartition(topicPartition, payload.endingOffset);\n }\n }\n if (payload == null) {\n logger.warn(\"String_Node_Str\", id);\n continue;\n }\n if (payload.type.equals(SidelineType.START)) {\n logger.info(\"String_Node_Str\", payload.id, payload.request.step);\n fireHoseSpout.getFilterChain().addStep(payload.id, payload.request.step);\n }\n if (payload.type.equals(SidelineType.STOP)) {\n openVirtualSpout(payload.id, payload.request.step, startingStateBuilder.build(), endingStateStateBuilder.build());\n }\n }\n if (startingTrigger != null) {\n startingTrigger.open(getSpoutConfig());\n } else {\n logger.warn(\"String_Node_Str\");\n }\n if (stoppingTrigger != null) {\n stoppingTrigger.open(getSpoutConfig());\n } else {\n logger.warn(\"String_Node_Str\");\n }\n}\n"
"public void persistJoinTable(JoinTableData joinTableData) {\n String tableName = joinTableData.getJoinTableName();\n String inverseJoinColumn = joinTableData.getInverseJoinColumnName();\n String joinColumn = joinTableData.getJoinColumnName();\n Map<Object, Set<Object>> joinTableRecords = joinTableData.getJoinTableRecords();\n Object connection = null;\n Pipeline pipeline = null;\n try {\n connection = getConnection();\n if (isBoundTransaction()) {\n pipeline = ((Jedis) connection).pipelined();\n }\n Set<Object> joinKeys = joinTableRecords.keySet();\n for (Object joinKey : joinKeys) {\n String joinKeyAsStr = PropertyAccessorHelper.getString(joinKey);\n Set<Object> inverseKeys = joinTableRecords.get(joinKey);\n for (Object inverseKey : inverseKeys) {\n Map<byte[], byte[]> redisFields = new HashMap<byte[], byte[]>(1);\n String inverseJoinKeyAsStr = PropertyAccessorHelper.getString(inverseKey);\n String redisKey = getHashKey(tableName, joinKeyAsStr + \"String_Node_Str\" + inverseJoinKeyAsStr);\n redisFields.put(getEncodedBytes(joinColumn), getEncodedBytes(joinKeyAsStr));\n redisFields.put(getEncodedBytes(inverseJoinColumn), getEncodedBytes(inverseJoinKeyAsStr));\n if (resource != null && resource.isActive()) {\n ((Transaction) connection).hmset(getEncodedBytes(redisKey), redisFields);\n ((Transaction) connection).zadd(getHashKey(tableName, inverseJoinKeyAsStr), getDouble(inverseJoinKeyAsStr), redisKey);\n ((Transaction) connection).zadd(getHashKey(tableName, joinKeyAsStr), getDouble(joinKeyAsStr), redisKey);\n } else {\n ((Jedis) connection).hmset(getEncodedBytes(redisKey), redisFields);\n ((Jedis) connection).zadd(getHashKey(tableName, inverseJoinKeyAsStr), getDouble(inverseJoinKeyAsStr), redisKey);\n ((Jedis) connection).zadd(getHashKey(tableName, joinKeyAsStr), getDouble(joinKeyAsStr), redisKey);\n }\n redisFields.clear();\n }\n }\n } finally {\n if (pipeline != null) {\n pipeline.sync();\n }\n onCleanup(connection);\n }\n}\n"
"private int processSql(Message inputMessage, NamedParameterJdbcTemplate template, Map<String, Object> params, String sqlToExecute) {\n int sqlCount = 0;\n if (runWhen.equals(PER_MESSAGE)) {\n int count = template.update(sqlToExecute, params);\n results.add(new Result(sqlToExecute, count));\n getComponentStatistics().incrementNumberEntitiesProcessed(count);\n sqlCount++;\n } else if (runWhen.equals(PER_ENTITY)) {\n List<EntityData> datas = inputMessage.getPayload();\n for (EntityData entityData : datas) {\n params.putAll(getComponent().toRow(entityData, false, true));\n int count = template.update(sqlToExecute, params);\n results.add(new Result(sqlToExecute, count));\n getComponentStatistics().incrementNumberEntitiesProcessed(count);\n sqlCount++;\n }\n }\n return sqlCount;\n}\n"
"public static boolean acquireMmsTicket(Project project) {\n if (!username.isEmpty() && !password.isEmpty()) {\n return acquireTicket(project, password);\n } else if (!Utils.isPopupsDisabled()) {\n String password = getUserCredentialsDialog();\n if (password == null) {\n return false;\n }\n return acquireTicket(project, password);\n } else {\n Application.getInstance().getGUILog().log(\"String_Node_Str\");\n return false;\n }\n}\n"
"public WsrSession call() {\n IoBufferAllocatorEx<?> parentAllocator = session.getBufferAllocator();\n WsrBufferAllocator wsrAllocator = new WsrBufferAllocator(parentAllocator);\n ResultAwareLoginContext loginContext = (ResultAwareLoginContext) session.getAttribute(HttpLoginSecurityFilter.LOGIN_CONTEXT_KEY);\n WsrSession wsrSession = new WsrSession(session.getIoLayer(), session.getIoThread(), session.getIoExecutor(), WsrAcceptor.this, getProcessor(), localAddress, remoteAddress, wsrAllocator, loginContext.getLoginResult(), negotiated);\n wsrSession.setBridgeServiceFactory(bridgeServiceFactory);\n wsrSession.setResourceAddressFactory(resourceAddressFactory);\n wsrSession.setScheduler(scheduler);\n IoHandler handler = getHandler(localAddress);\n wsrSession.setHandler(handler);\n wsrSession.suspendWrite();\n return wsrSession;\n}\n"
"public void pickSuggestionManually(int index, CharSequence suggestion) {\n final String typedWord = mWord.getTypedWord().toString();\n if (mWord.isAtTagsSearchState()) {\n if (index == 0) {\n suggestion = typedWord;\n } else {\n getQuickKeyHistoryRecords().store(suggestion.toString(), suggestion.toString());\n }\n }\n final InputConnection ic = getCurrentInputConnection();\n if (ic != null) {\n ic.beginBatchEdit();\n }\n TextEntryState.acceptedSuggestion(typedWord, suggestion);\n try {\n if (mCompletionOn && index >= 0 && index < mCompletions.length) {\n CompletionInfo ci = mCompletions[index];\n if (ic != null) {\n ic.commitCompletion(ci);\n }\n mCommittedWord = suggestion;\n if (mCandidateView != null) {\n mCandidateView.clear();\n }\n return;\n }\n commitWordToInput(suggestion, false);\n TextEntryState.acceptedSuggestion(mWord.getTypedWord(), suggestion);\n if (mAutoSpace && (index == 0 || !mWord.isAtTagsSearchState())) {\n sendKeyChar((char) KeyCodes.SPACE);\n mJustAddedAutoSpace = true;\n setSpaceTimeStamp(true);\n TextEntryState.typedCharacter(' ', true);\n }\n mJustAutoAddedWord = false;\n if (!mWord.isAtTagsSearchState()) {\n if (index == 0) {\n checkAddToDictionaryWithAutoDictionary(mWord, Suggest.AdditionType.Picked);\n }\n final boolean showingAddToDictionaryHint = (!mJustAutoAddedWord) && index == 0 && (mShowSuggestions) && (!mSuggest.isValidWord(suggestion)) && (!mSuggest.isValidWord(suggestion.toString().toLowerCase(getCurrentAlphabetKeyboard().getLocale())));\n if (showingAddToDictionaryHint) {\n if (mCandidateView != null)\n mCandidateView.showAddToDictionaryHint(suggestion);\n } else if (!TextUtils.isEmpty(mCommittedWord) && !mJustAutoAddedWord) {\n setSuggestions(mSuggest.getNextSuggestions(mCommittedWord, mWord.isAllUpperCase()), false, false, false);\n mWord.setFirstCharCapitalized(false);\n }\n }\n } finally {\n if (ic != null) {\n ic.endBatchEdit();\n }\n }\n}\n"
"public void disconnect() {\n if (updateConnectionStatus(GodotConnectStatus.DISCONNECTING)) {\n mAuth.signOut();\n if (mGoogleApiClient.isConnected()) {\n Auth.GoogleSignInApi.signOut(mGoogleApiClient).setResultCallback(new ResultCallback<Status>() {\n public void onResult(Status status) {\n onDisconnected();\n }\n });\n } else {\n disconnect_from_google();\n }\n }\n}\n"
"private int getAmount() {\n Random rand = new Random();\n return rand.nextInt(99) + 1 <= triplechance ? 3 : rand.nextInt(99) + 1 <= doublechance ? 2 : 1;\n}\n"
"public void actionPerformed(ActionEvent event) {\n ProductSceneView sceneView = SnapApp.getDefault().getSelectedProductSceneView();\n if (sceneView != null) {\n Product product = sceneView.getProduct();\n if (product.isMultiSize()) {\n final Product resampledProduct = MultiSizeIssue.maybeResample(product);\n if (resampledProduct != null) {\n product = resampledProduct;\n } else {\n return;\n }\n }\n exportMaskPixels(product);\n }\n}\n"
"protected Control createDialogArea(Composite parent) {\n ((GridData) parent.getLayoutData()).minimumWidth = 600;\n ((GridData) parent.getLayoutData()).heightHint = 500;\n GridData data = new GridData(GridData.FILL_BOTH);\n Composite container = new Composite(parent, SWT.NONE);\n GridLayout layout = new GridLayout();\n layout.marginTop = 10;\n layout.marginLeft = 5;\n layout.marginRight = 5;\n container.setLayout(layout);\n container.setLayoutData(data);\n data = new GridData(GridData.FILL_HORIZONTAL);\n Label subTitleLabel = new Label(container, SWT.NONE);\n String desc = Messages.getString(\"String_Node_Str\", name);\n subTitleLabel.setText(desc);\n subTitleLabel.setLayoutData(data);\n Control culfTextControl = null;\n if (TalendPropertiesUtil.isEnabledUseBrowser()) {\n clufTextBrowser = new Browser(container, SWT.MULTI | SWT.WRAP | SWT.LEFT | SWT.BORDER);\n culfTextControl = clufTextBrowser;\n if (licenseUrl != null) {\n clufTextBrowser.setUrl(licenseUrl);\n } else {\n clufTextBrowser.setText(desc);\n }\n } else {\n clufText.setText(desc);\n }\n data = new GridData(GridData.FILL_BOTH);\n clufText.setLayoutData(data);\n return parent;\n}\n"
"private void addCapabilityToNodeTemplateAndToscaContext(String type, String... derivedFrom) {\n CapabilityType capabilityType = new CapabilityType();\n capabilityType.setDerivedFrom(Arrays.asList(derivedFrom));\n capabilityType.setElementId(type);\n capabilityTypeByTypeName.put(type, capabilityType);\n Capability capability = new Capability();\n capability.setType(type);\n nodeTemplate.getCapabilities().put(name, capability);\n}\n"
"private void checkVersionInfo(final IRCBotUser user) throws SQLException, UserException {\n int userVersion = backend.getLastVisitedVersion(user.getNick());\n if (userVersion < CURRENT_VERSION && (VERSION_MESSAGE == null || user.message(VERSION_MESSAGE, false))) {\n backend.setLastVisitedVersion(user.getNick(), CURRENT_VERSION);\n }\n}\n"
"public void addRenderables(SphericalJointForceBound bounds, Point3d p0) {\n Iterator<Vector3d> viter;\n Iterator<Point3d> piter;\n Vector3d prev, first;\n Point3d prevPt, firstPt;\n Vector3d tmp = new Vector3d();\n ArrayList<Point3d> polyPts = new ArrayList<Point3d>();\n viter = bounds.getBoundNormals().iterator();\n prev = bounds.getBoundNormals().get(bounds.getBoundNormals().size() - 1);\n while (viter.hasNext()) {\n Vector3d cur = viter.next();\n tmp.cross(prev, cur);\n tmp.normalize();\n polyPts.add(new Point3d(tmp));\n lines.add(new LineInfo(p0, tmp, Color.ORANGE));\n prev = cur;\n }\n piter = polyPts.iterator();\n firstPt = piter.next();\n prevPt = firstPt;\n while (piter.hasNext()) {\n Point3d curPt = piter.next();\n planes.add(new TriInfo(p0, prevPt, curPt, Color.MAGENTA));\n prevPt = curPt;\n }\n planes.add(new TriInfo(p0, prevPt, firstPt, Color.MAGENTA));\n}\n"
"public Course getCourse(String id) throws ConnectionFailedException, RecordNotFoundException {\n String query = String.format(\"String_Node_Str\", id);\n Statement stmt = this.connection.createStatement();\n ResultSet rs = stmt.executeQuery(query);\n Course c = new Course(rs.getString(\"String_Node_Str\"));\n c.setStartDate(rs.getDate(\"String_Node_Str\"));\n c.setEndDate(rs.getDate(\"String_Node_Str\"));\n c.setInstructor(new Instructor(rs.getInt(\"String_Node_Str\")));\n rs.close();\n stmt.close();\n return c;\n}\n"
"private CreateServiceInstanceRequest buildCreateRequest() {\n return new CreateServiceInstanceRequest(SVC_DEF_ID, SVC_PLAN_ID, \"String_Node_Str\", \"String_Node_Str\", null).withServiceInstanceId(ServiceInstanceFixture.getServiceInstance().getServiceInstanceId());\n}\n"
"private Query convertCondition(DRS_Condition condition, Query query) {\n if (condition.isComplexCondition()) {\n if (!isSilent()) {\n System.out.print(\"String_Node_Str\" + condition.toString());\n }\n Complex_DRS_Condition complex = (Complex_DRS_Condition) condition;\n DRS restrictor = complex.getRestrictor();\n DRS_Quantifier quant = complex.getQuantifier();\n DRS scope = complex.getScope();\n for (DRS_Condition cond : restrictor.getConditions()) {\n query = convertCondition(cond, query);\n }\n for (DRS_Condition cond : scope.getConditions()) {\n query = convertCondition(cond, query);\n }\n DiscourseReferent ref = complex.getReferent();\n String sref = ref.getValue();\n String fresh;\n if (!isSilent()) {\n System.out.print(\"String_Node_Str\" + quant);\n }\n switch(quant) {\n case HOWMANY:\n query.addSelTerm(new SPARQL_Term(sref, SPARQL_Aggregate.COUNT));\n break;\n case EVERY:\n break;\n case NO:\n SPARQL_Filter f = new SPARQL_Filter();\n f.addNotBound(new SPARQL_Term(sref));\n query.addFilter(f);\n break;\n case FEW:\n break;\n case MANY:\n break;\n case MOST:\n break;\n case SOME:\n break;\n case THELEAST:\n fresh = \"String_Node_Str\" + createFresh();\n query.addSelTerm(new SPARQL_Term(sref, SPARQL_Aggregate.COUNT, fresh));\n query.addOrderBy(new SPARQL_Term(fresh, SPARQL_OrderBy.ASC));\n query.setLimit(1);\n break;\n case THEMOST:\n fresh = \"String_Node_Str\" + createFresh();\n query.addSelTerm(new SPARQL_Term(sref, SPARQL_Aggregate.COUNT, fresh));\n query.addOrderBy(new SPARQL_Term(fresh, SPARQL_OrderBy.DESC));\n query.setLimit(1);\n break;\n }\n } else if (condition.isNegatedCondition()) {\n if (!isSilent()) {\n System.out.print(\"String_Node_Str\" + condition.toString());\n }\n Negated_DRS neg = (Negated_DRS) condition;\n query = convert(neg.getDRS(), query, true);\n } else {\n Simple_DRS_Condition simple = (Simple_DRS_Condition) condition;\n if (!isSilent()) {\n System.out.print(isSilent() + \"String_Node_Str\" + condition.toString());\n }\n int arity = simple.getArguments().size();\n String predicate = simple.getPredicate();\n if (predicate.startsWith(\"String_Node_Str\")) {\n for (Slot s : slots) {\n if (s.getAnchor().equals(predicate)) {\n s.setToken(predicate);\n predicate = \"String_Node_Str\" + createFresh();\n s.setAnchor(predicate);\n template.addSlot(s);\n break;\n } else if (s.getToken().equals(predicate)) {\n predicate = s.getAnchor();\n }\n }\n }\n SPARQL_Property prop = new SPARQL_Property(predicate);\n prop.setIsVariable(true);\n boolean literal = false;\n if (simple.getArguments().size() > 1 && simple.getArguments().get(1).getValue().matches(\"String_Node_Str\")) {\n literal = true;\n }\n if (predicate.equals(\"String_Node_Str\")) {\n query.addSelTerm(new SPARQL_Term(simple.getArguments().get(0).getValue(), SPARQL_Aggregate.COUNT, simple.getArguments().get(1).getValue()));\n return query;\n } else if (predicate.equals(\"String_Node_Str\")) {\n query.addSelTerm(new SPARQL_Term(simple.getArguments().get(1).getValue(), SPARQL_Aggregate.SUM));\n return query;\n } else if (predicate.equals(\"String_Node_Str\")) {\n query.addFilter(new SPARQL_Filter(new SPARQL_Pair(new SPARQL_Term(simple.getArguments().get(0).getValue(), false), new SPARQL_Term(simple.getArguments().get(1).getValue(), literal), SPARQL_PairType.GT)));\n return query;\n } else if (predicate.equals(\"String_Node_Str\")) {\n query.addFilter(new SPARQL_Filter(new SPARQL_Pair(new SPARQL_Term(simple.getArguments().get(0).getValue(), true), new SPARQL_Term(simple.getArguments().get(1).getValue(), literal), SPARQL_PairType.GTEQ)));\n return query;\n } else if (predicate.equals(\"String_Node_Str\")) {\n query.addFilter(new SPARQL_Filter(new SPARQL_Pair(new SPARQL_Term(simple.getArguments().get(0).getValue(), true), new SPARQL_Term(simple.getArguments().get(1).getValue(), literal), SPARQL_PairType.LT)));\n return query;\n } else if (predicate.equals(\"String_Node_Str\")) {\n query.addFilter(new SPARQL_Filter(new SPARQL_Pair(new SPARQL_Term(simple.getArguments().get(0).getValue(), true), new SPARQL_Term(simple.getArguments().get(1).getValue(), literal), SPARQL_PairType.LTEQ)));\n return query;\n } else if (predicate.equals(\"String_Node_Str\")) {\n query.addSelTerm(new SPARQL_Term(simple.getArguments().get(0).getValue(), true));\n query.addOrderBy(new SPARQL_Term(simple.getArguments().get(0).getValue(), SPARQL_OrderBy.DESC));\n query.setLimit(1);\n return query;\n } else if (predicate.equals(\"String_Node_Str\")) {\n query.addSelTerm(new SPARQL_Term(simple.getArguments().get(0).getValue(), true));\n query.addOrderBy(new SPARQL_Term(simple.getArguments().get(0).getValue(), SPARQL_OrderBy.ASC));\n query.setLimit(1);\n return query;\n } else if (predicate.equals(\"String_Node_Str\")) {\n query.addFilter(new SPARQL_Filter(new SPARQL_Pair(new SPARQL_Term(simple.getArguments().get(0).getValue(), true), new SPARQL_Term(simple.getArguments().get(1).getValue(), literal), SPARQL_PairType.EQ)));\n return query;\n }\n if (arity == 1) {\n SPARQL_Term term = new SPARQL_Term(simple.getArguments().get(0).getValue(), false);\n term.setIsVariable(true);\n query.addCondition(new SPARQL_Triple(term, new SPARQL_Property(\"String_Node_Str\", new SPARQL_Prefix(\"String_Node_Str\", \"String_Node_Str\")), prop));\n } else if (arity == 2) {\n String arg1 = simple.getArguments().get(0).getValue();\n SPARQL_Term term1 = new SPARQL_Term(arg1, false);\n term1.setIsVariable(true);\n String arg2 = simple.getArguments().get(1).getValue();\n SPARQL_Term term2 = new SPARQL_Term(arg2, false);\n term2.setIsVariable(true);\n query.addCondition(new SPARQL_Triple(term1, prop, term2));\n } else if (arity > 2) {\n }\n }\n return query;\n}\n"
"public void initSEOForm(PageMetadataModel pageModel) throws Exception {\n if (pageModel != null) {\n description = pageModel.getDescription();\n keywords = pageModel.getKeywords();\n frequency = pageModel.getFrequency();\n if (pageModel.getPriority() >= 0)\n priority = String.valueOf(pageModel.getPriority());\n if (pageModel.getRobotsContent() != null && pageModel.getRobotsContent().length() > 0) {\n index = pageModel.getRobotsContent().split(\"String_Node_Str\")[0];\n follow = pageModel.getRobotsContent().split(\"String_Node_Str\")[1];\n }\n sitemap = pageModel.getSitemap();\n }\n ExoContainer container = ExoContainerContext.getCurrentContainer();\n SEOService seoService = (SEOService) container.getComponentInstanceOfType(SEOService.class);\n UIFormTextAreaInput uiDescription = new UIFormTextAreaInput(DESCRIPTION, DESCRIPTION, null);\n uiDescription.setValue(description);\n addUIFormInput(uiDescription);\n UIFormTextAreaInput uiKeywords = new UIFormTextAreaInput(KEYWORDS, KEYWORDS, null);\n uiKeywords.setValue(keywords);\n addUIFormInput(uiKeywords);\n if (!onContent) {\n List<SelectItemOption<String>> robotIndexItemOptions = new ArrayList<SelectItemOption<String>>();\n List<String> robotsindexOptions = seoService.getRobotsIndexOptions();\n List<String> robotsfollowOptions = seoService.getRobotsFollowOptions();\n List<String> frequencyOptions = seoService.getFrequencyOptions();\n if (robotsindexOptions != null && robotsindexOptions.size() > 0) {\n for (int i = 0; i < robotsindexOptions.size(); i++) {\n robotIndexItemOptions.add(new SelectItemOption<String>((robotsindexOptions.get(i).toString())));\n }\n }\n UIFormSelectBox robots_index = new UIFormSelectBox(ROBOTS_INDEX, null, robotIndexItemOptions);\n if (index != null && index.length() > 0)\n robots_index.setValue(index);\n else\n robots_index.setValue(ROBOTS_INDEX);\n addUIFormInput(robots_index);\n List<SelectItemOption<String>> robotFollowItemOptions = new ArrayList<SelectItemOption<String>>();\n if (robotsfollowOptions != null && robotsfollowOptions.length() > 0) {\n String[] arrOptions = robotsfollowOptions.split(\"String_Node_Str\");\n for (int i = 0; i < arrOptions.length; i++) {\n robotFollowItemOptions.add(new SelectItemOption<String>((arrOptions[i])));\n }\n }\n UIFormSelectBox robots_follow = new UIFormSelectBox(ROBOTS_FOLLOW, null, robotFollowItemOptions);\n if (follow != null && follow.length() > 0)\n robots_follow.setValue(follow);\n else\n robots_follow.setValue(ROBOTS_FOLLOW);\n addUIFormInput(robots_follow);\n UICheckBoxInput visibleSitemapCheckbox = new UICheckBoxInput(SITEMAP, SITEMAP, null);\n visibleSitemapCheckbox.setChecked(sitemap);\n addUIFormInput(visibleSitemapCheckbox);\n UIFormStringInput uiPrority = new UIFormStringInput(PRIORITY, null);\n if (priority == null || priority.length() == 0) {\n WebuiRequestContext rc = WebuiRequestContext.getCurrentInstance();\n priority = rc.getApplicationResourceBundle().getString(\"String_Node_Str\");\n }\n uiPrority.setValue(priority);\n addUIFormInput(uiPrority.addValidator(FloatNumberValidator.class));\n List<SelectItemOption<String>> frequencyItemOptions = new ArrayList<SelectItemOption<String>>();\n if (frequencyOptions != null && frequencyOptions.length() > 0) {\n String[] arrOptions = frequencyOptions.split(\"String_Node_Str\");\n for (int i = 0; i < arrOptions.length; i++) {\n frequencyItemOptions.add(new SelectItemOption<String>(arrOptions[i], (arrOptions[i])));\n }\n }\n UIFormSelectBox frequencySelectbox = new UIFormSelectBox(FREQUENCY, null, frequencyItemOptions);\n if (frequency != null && frequency.length() > 0)\n frequencySelectbox.setValue(frequency);\n else\n frequencySelectbox.setValue(FREQUENCY_DEFAULT_VALUE);\n addUIFormInput(frequencySelectbox);\n }\n}\n"
"void readUntilNextToken(StringBuffer source, StringBuffer sink) {\n this.readUntil(source, sink, tokenDelimiter);\n}\n"
"public Container getContent() {\n return container;\n}\n"
"public void run() {\n try {\n super.run();\n if (Util.IsEnterPrise()) {\n universes = new ArrayList<WSUniversePK>();\n WSUniversePK[] universePKs = null;\n List<XtentisPort> ports = view.getPorts();\n if (ports != null) {\n for (Iterator iterator = ports.iterator(); iterator.hasNext(); ) {\n XtentisPort port = (XtentisPort) iterator.next();\n universePKs = port.getUniversePKs(new WSGetUniversePKs(\"String_Node_Str\")).getWsUniversePK();\n if (universePKs != null && universePKs.length > 0)\n CollectionUtils.addAll(universes, universePKs);\n }\n }\n }\n dialog = new LoginDialog(this, view.getSite().getShell(), IConstants.TALEND + \"String_Node_Str\", universes);\n dialog.setBlockOnOpen(true);\n dialog.open();\n } catch (Exception e) {\n e.printStackTrace();\n }\n}\n"
"public static HashMap<String, HashMap<PlotId, Plot>> getPlots() {\n try {\n DatabaseMetaData data = connection.getMetaData();\n ResultSet rs = data.getColumns(null, null, \"String_Node_Str\", \"String_Node_Str\");\n boolean execute = rs.next();\n if (execute) {\n Statement statement = connection.createStatement();\n statement.addBatch(\"String_Node_Str\");\n statement.addBatch(\"String_Node_Str\");\n statement.addBatch(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n statement.addBatch(\"String_Node_Str\");\n statement.addBatch(\"String_Node_Str\");\n statement.executeBatch();\n statement.close();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n HashMap<String, HashMap<PlotId, Plot>> plots = new HashMap<String, HashMap<PlotId, Plot>>();\n new HashMap<String, World>();\n Statement stmt = null;\n try {\n stmt = connection.createStatement();\n ResultSet r = stmt.executeQuery(\"String_Node_Str\");\n PlotId plot_id;\n int id;\n Plot p;\n while (r.next()) {\n plot_id = new PlotId(r.getInt(\"String_Node_Str\"), r.getInt(\"String_Node_Str\"));\n id = r.getInt(\"String_Node_Str\");\n String worldname = r.getString(\"String_Node_Str\");\n HashMap<String, Object> settings = getSettings(id);\n UUID owner = UUID.fromString(r.getString(\"String_Node_Str\"));\n Biome plotBiome = Biome.FOREST;\n String[] flags_string;\n if (settings.get(\"String_Node_Str\") == null) {\n flags_string = new String[] {};\n } else {\n flags_string = ((String) settings.get(\"String_Node_Str\")).split(\"String_Node_Str\");\n }\n Flag[] flags = new Flag[flags_string.length];\n for (int i = 0; i < flags.length; i++) {\n if (flags_string[i].contains(\"String_Node_Str\")) {\n String[] split = flags_string[i].split(\"String_Node_Str\");\n flags[i] = new Flag(FlagManager.getFlag(split[0], true), split[1]);\n } else {\n flags[i] = new Flag(FlagManager.getFlag(flags_string[i], true), \"String_Node_Str\");\n }\n }\n ArrayList<UUID> helpers = plotHelpers(id);\n ArrayList<UUID> denied = plotDenied(id);\n long time = 8000l;\n boolean rain = false;\n String alias = (String) settings.get(\"String_Node_Str\");\n if ((alias == null) || alias.equalsIgnoreCase(\"String_Node_Str\")) {\n alias = \"String_Node_Str\";\n }\n PlotHomePosition position = null;\n for (PlotHomePosition plotHomePosition : PlotHomePosition.values()) {\n if (plotHomePosition.isMatching((String) settings.get(\"String_Node_Str\"))) {\n position = plotHomePosition;\n }\n }\n if (position == null) {\n position = PlotHomePosition.DEFAULT;\n }\n p = new Plot(plot_id, owner, plotBiome, helpers, denied, false, time, rain, alias, position, flags, worldname);\n if (plots.containsKey(worldname)) {\n plots.get(worldname).put((plot_id), p);\n } else {\n HashMap<PlotId, Plot> map = new HashMap<PlotId, Plot>();\n map.put((plot_id), p);\n plots.put(worldname, map);\n }\n }\n stmt.close();\n } catch (SQLException e) {\n Logger.add(LogLevel.WARNING, \"String_Node_Str\");\n e.printStackTrace();\n }\n return plots;\n}\n"
"public void deletePreviews(String imgPath) {\n LOGGER.debug(\"String_Node_Str\" + imgPath);\n String[] parts = imgPath.split(\"String_Node_Str\");\n String imgFilterName = parts[parts.length - 1].replace(\"String_Node_Str\", \"String_Node_Str\");\n File previewFile = new File(tempStorageDir + imgFilterName);\n if (previewFile.isFile())\n previewFile.delete();\n}\n"
"public static void setElement(Object parent, Object parentInstance, Field field) {\n try {\n Class<?> type = field.getType();\n if (parentInstance == null)\n parentInstance = parent;\n BaseElement instance;\n if (isClass(type, Page.class)) {\n instance = (BaseElement) getValueField(field, parentInstance);\n if (instance == null)\n instance = (BaseElement) type.newInstance();\n fillPage(instance, field, parent != null ? parent.getClass() : null);\n } else {\n instance = createChildFromField(parent, parentInstance, field, type);\n instance.function = AnnotationsUtil.getFunction(field);\n }\n instance.setName(field);\n if (instance.getClass().getSimpleName().equals(\"String_Node_Str\"))\n instance.setTypeName(type.getSimpleName());\n instance.setParentName(getClassName(parent));\n field.set(parent, instance);\n if (isInterface(field, IComposite.class))\n InitElements(instance);\n } catch (Exception ex) {\n throw exception(\"String_Node_Str\", field.getName(), getClassName(parent) + LineBreak + ex.getMessage());\n }\n}\n"
"public void mapFromSystemPropertiesTest() {\n try {\n System.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n System.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n System.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n System.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n MockDroneConfiguration configuration = ConfigurationMapper.fromSystemConfiguration(new MockDroneConfiguration(), Default.class);\n Assert.assertNotNull(\"String_Node_Str\", configuration.getMapMap());\n Assert.assertEquals(\"String_Node_Str\", 4, configuration.getMapMap().size());\n Assert.assertEquals(\"String_Node_Str\", \"String_Node_Str\", configuration.getMapMap().get(\"String_Node_Str\"));\n Assert.assertEquals(\"String_Node_Str\", \"String_Node_Str\", configuration.getMapMap().get(\"String_Node_Str\"));\n Assert.assertEquals(\"String_Node_Str\", \"String_Node_Str\", configuration.getMapMap().get(\"String_Node_Str\"));\n } finally {\n System.clearProperty(\"String_Node_Str\");\n System.clearProperty(\"String_Node_Str\");\n System.clearProperty(\"String_Node_Str\");\n System.clearProperty(\"String_Node_Str\");\n }\n}\n"
"public FixedValues deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {\n FixedValues fixed = new FixedValues();\n JsonObject o = json.getAsJsonObject();\n for (Map.Entry<String, JsonElement> entry : o.entrySet()) {\n if (entry.getKey().equals(\"String_Node_Str\")) {\n fixed.setValueBefore = parseSetValueMap(entry.getValue().getAsJsonObject());\n } else if (entry.getKey().equals(\"String_Node_Str\")) {\n fixed.setValueAfter = parseSetValueMap(entry.getValue().getAsJsonObject());\n } else if (entry.getKey().equals(\"String_Node_Str\")) {\n fixed.conversion = context.deserialize(entry.getValue().getAsJsonArray(), new TypeToken<List<CustomConversion>>() {\n }.getType());\n } else {\n throw new JsonParseException(String.format(\"String_Node_Str\", entry.getKey(), entry.getValue()));\n }\n }\n return fixed;\n}\n"
"public boolean isMissingParameter() {\n boolean missingParameter = false;\n ModuleHandle model = SessionHandleAdapter.getInstance().getReportDesignHandle();\n HashMap params = (HashMap) this.getConfigVars();\n List parameters = model.getFlattenParameters();\n if (parameters != null) {\n for (int i = 0; i < parameters.size(); i++) {\n if (parameters.get(i) instanceof ScalarParameterHandle) {\n ScalarParameterHandle parameter = ((ScalarParameterHandle) parameters.get(i));\n if (parameter.isHidden() || !parameter.isRequired()) {\n continue;\n }\n String paramValue = null;\n if (params != null && params.containsKey(parameter.getName())) {\n Object curVal = params.get(parameter.getName());\n if (curVal != null)\n paramValue = curVal.toString();\n }\n if (paramValue == null && !parameter.allowNull()) {\n missingParameter = true;\n break;\n }\n if (paramValue != null && paramValue.trim().length() <= 0 && !parameter.allowBlank() && parameter.getDataType().equalsIgnoreCase(DesignChoiceConstants.PARAM_TYPE_STRING)) {\n missingParameter = true;\n break;\n }\n }\n }\n }\n return missingParameter;\n}\n"
"public void actionPerformed(ActionEvent e) {\n File currentSong = PlayerUtils.getCurrentSongFile();\n List<LocalFileItem> selected = selectedLocalFileItems.get();\n final List<File> toRemove = new ArrayList<File>(selected.size());\n for (LocalFileItem item : selected) {\n if (item.getFile().equals(currentSong)) {\n PlayerUtils.stop();\n }\n if (!item.isIncomplete()) {\n libraryManager.getLibraryManagedList().removeFile(item.getFile());\n }\n }\n}\n"
"synchronized void receive(TCPPacket tcpPacket) {\n int plen = tcpPacket.payload == null ? 0 : tcpPacket.payload.length;\n if (tcpPacket.isAck()) {\n if (sentUnack <= tcpPacket.ackNo && sendNext >= tcpPacket.ackNo) {\n int noAcked = tcpPacket.ackNo - sentUnack;\n sentUnack = tcpPacket.ackNo;\n bufPos += noAcked;\n if (bufPos >= outgoingBuffer.length)\n bufPos -= outgoingBuffer.length;\n System.out.println(\"String_Node_Str\" + noAcked + \"String_Node_Str\" + bufPos + \"String_Node_Str\" + bufNextEmpty + \"String_Node_Str\" + Integer.toString(sentUnack & 0xffff, 16) + \"String_Node_Str\" + Integer.toString(sendNext & 0xffff, 16) + \"String_Node_Str\" + outSize() + \"String_Node_Str\" + (sendNext - sentUnack) + \"String_Node_Str\" + plen);\n notify();\n if (state == ESTABLISHED && closing && outSize() == 0) {\n state = FIN_WAIT_1;\n sendFIN();\n }\n } else {\n System.out.println(\"String_Node_Str\" + Integer.toString(tcpPacket.ackNo & 0xffff, 16) + \"String_Node_Str\" + Integer.toString(sendNext & 0xffff, 16) + \"String_Node_Str\" + Integer.toString(sentUnack & 0xffff, 16));\n if (tcpPacket.ackNo == sentUnack) {\n resend();\n }\n }\n }\n if (receiveNext == tcpPacket.seqNo) {\n receiveNext = tcpPacket.seqNo + plen;\n if (plen > 0) {\n sendAck(tcpPacket);\n if (tcpListener != null) {\n tcpListener.tcpDataReceived(this, tcpPacket);\n } else {\n System.out.println(\"String_Node_Str\");\n }\n }\n } else {\n System.out.println(\"String_Node_Str\" + Integer.toString(receiveNext & 0xffff, 16) + \"String_Node_Str\" + Integer.toString(tcpPacket.seqNo & 0xffff, 16));\n sendAck(tcpPacket);\n }\n if (tcpPacket.isFin()) {\n if (plen == 0) {\n sendAck(tcpPacket);\n }\n if (tcpListener != null && plen > 0) {\n tcpListener.connectionClosed(this);\n }\n }\n}\n"
"protected void processHttpHeaders(final NodeList nlHttpHeader, final Map<SerializationProperty, String> serializationProperties, final HttpResponse response) {\n for (int i = 0; i < nlHttpHeader.getLength(); i++) {\n final Element elemHeader = (Element) nlHttpHeader.item(i);\n final String name = elemHeader.getAttribute(NAME_ATTR_NAME);\n final String value = elemHeader.getAttribute(VALUE_ATTR_NAME);\n if (name.equals(HttpHeader.CONTENT_TYPE.getHeaderName())) {\n serializationProperties.put(SerializationProperty.MEDIA_TYPE, value);\n }\n response.setHeader(name, value);\n }\n}\n"
"private TreeView<LabelTreeItem> createTreeView(Stage stage) {\n final TreeItem<LabelTreeItem> treeRoot = new TreeItem<>(new TurboLabelGroup(ROOT_NAME));\n populateTree(treeRoot);\n final TreeView<LabelTreeItem> treeView = new TreeView<>();\n treeView.setRoot(treeRoot);\n treeView.setShowRoot(false);\n HBox.setHgrow(treeView, Priority.ALWAYS);\n treeView.setPrefHeight(2000);\n treeRoot.setExpanded(true);\n treeRoot.getChildren().forEach(child -> child.setExpanded(true));\n treeView.setCellFactory(createLabelCellFactory(stage));\n setupLabelsListChangeListener();\n return treeView;\n}\n"
"public void testImplementingInterface1() {\n runNegativeTest(new String[] { \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" }, \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n}\n"
"public String exportLinks(int depth, Collection filter) throws IOException {\n StringBuffer result = new StringBuffer();\n Iterator ports = portList().iterator();\n while (ports.hasNext()) {\n ComponentPort port = (ComponentPort) ports.next();\n if (port == null || !port.isPersistent()) {\n continue;\n }\n Iterator relations = port.insideRelationList().iterator();\n int index = -1;\n boolean useIndex = false;\n while (relations.hasNext()) {\n index++;\n ComponentRelation relation = (ComponentRelation) relations.next();\n if (relation != null && !relation.isPersistent()) {\n continue;\n }\n if (relation == null) {\n useIndex = true;\n continue;\n }\n if (_commonImplier(relation, depth, port, depth)) {\n continue;\n }\n if ((filter == null) || (filter.contains(relation) && (filter.contains(port) || filter.contains(port.getContainer())))) {\n if (relation != null && !relation.isPersistent()) {\n continue;\n }\n String relationName;\n if (relation.getContainer() == this) {\n relationName = relation.getName();\n } else {\n if (deepContains(relation)) {\n relationName = relation.getName(this);\n } else {\n _recordLevelCrossingLink(port, relation, null, index);\n continue;\n }\n }\n String escapedPortName = StringUtilities.escapeForXML(port.getName());\n String escapedRelationName = StringUtilities.escapeForXML(relationName);\n if (useIndex) {\n useIndex = false;\n result.append(_getIndentPrefix(depth) + \"String_Node_Str\" + escapedPortName + \"String_Node_Str\" + index + \"String_Node_Str\" + escapedRelationName + \"String_Node_Str\");\n } else {\n result.append(_getIndentPrefix(depth) + \"String_Node_Str\" + escapedPortName + \"String_Node_Str\" + escapedRelationName + \"String_Node_Str\");\n }\n }\n }\n }\n Iterator entities = entityList().iterator();\n while (entities.hasNext()) {\n ComponentEntity entity = (ComponentEntity) entities.next();\n if (entity != null && !entity.isPersistent()) {\n continue;\n }\n ports = entity.portList().iterator();\n while (ports.hasNext()) {\n ComponentPort port = (ComponentPort) ports.next();\n if (port != null && !port.isPersistent()) {\n continue;\n }\n Iterator relations = port.linkedRelationList().iterator();\n int index = -1;\n boolean useIndex = false;\n while (relations.hasNext()) {\n index++;\n ComponentRelation relation = (ComponentRelation) relations.next();\n if (relation != null && !relation.isPersistent()) {\n continue;\n }\n if (relation == null) {\n useIndex = true;\n continue;\n }\n if (port.getDerivedLevel() <= (depth + 1) && _commonImplier(relation, depth, port.getContainer(), depth)) {\n continue;\n }\n if ((filter == null) || (filter.contains(relation) && (filter.contains(port) || filter.contains(port.getContainer())))) {\n if (relation != null && !relation.isPersistent()) {\n continue;\n }\n String relationName;\n if (relation.getContainer() == this) {\n relationName = relation.getName();\n } else {\n if (deepContains(relation)) {\n relationName = relation.getName(this);\n } else {\n _recordLevelCrossingLink(port, relation, null, index);\n continue;\n }\n }\n String escapedName = StringUtilities.escapeForXML(entity.getName());\n String escapedPortName = StringUtilities.escapeForXML(port.getName());\n String escapedRelationName = StringUtilities.escapeForXML(relationName);\n if (useIndex) {\n useIndex = false;\n result.append(_getIndentPrefix(depth) + \"String_Node_Str\" + escapedName + \"String_Node_Str\" + escapedPortName + \"String_Node_Str\" + index + \"String_Node_Str\" + escapedRelationName + \"String_Node_Str\");\n } else {\n result.append(_getIndentPrefix(depth) + \"String_Node_Str\" + escapedName + \"String_Node_Str\" + escapedPortName + \"String_Node_Str\" + escapedRelationName + \"String_Node_Str\");\n }\n }\n }\n }\n }\n Set visitedRelations = new HashSet();\n Iterator relations = relationList().iterator();\n while (relations.hasNext()) {\n ComponentRelation relation = (ComponentRelation) relations.next();\n visitedRelations.add(relation);\n if (relation != null && !relation.isPersistent()) {\n continue;\n }\n Iterator portsAndRelations = relation.linkedObjectsList().iterator();\n while (portsAndRelations.hasNext()) {\n Object portOrRelation = portsAndRelations.next();\n if (portOrRelation instanceof Relation) {\n Relation otherRelation = (Relation) portOrRelation;\n if (otherRelation != null && !otherRelation.isPersistent()) {\n continue;\n }\n if (visitedRelations.contains(otherRelation)) {\n continue;\n }\n if (_commonImplier(relation, depth, otherRelation, depth)) {\n continue;\n }\n if ((filter == null) || (filter.contains(relation) && filter.contains(otherRelation))) {\n String relationName;\n if (relation.getContainer() == this) {\n relationName = relation.getName();\n } else {\n if (deepContains(relation)) {\n relationName = relation.getName(this);\n } else {\n _recordLevelCrossingLink(null, relation, otherRelation, 0);\n continue;\n }\n }\n String otherRelationName;\n if (otherRelation.getContainer() == this) {\n otherRelationName = otherRelation.getName();\n } else {\n _recordLevelCrossingLink(null, relation, otherRelation, 0);\n continue;\n }\n result.append(_getIndentPrefix(depth) + \"String_Node_Str\" + relationName + \"String_Node_Str\" + otherRelationName + \"String_Node_Str\");\n }\n }\n }\n }\n return result.toString();\n}\n"
"private DIDMarkerType parseDIDMarkerType(XmlPullParser parser) throws XmlPullParserException, IOException {\n DIDMarkerType didMarker = new DIDMarkerType();\n int eventType;\n do {\n parser.next();\n eventType = parser.getEventType();\n if (eventType == XmlPullParser.START_TAG) {\n if (parser.getName().equals(\"String_Node_Str\")) {\n didMarker.setPACEMarker((PACEMarkerType) this.parseMarker(parser, PACEMarkerType.class));\n } else if (parser.getName().equals(\"String_Node_Str\")) {\n didMarker.setTAMarker(this.parseTAMarker(parser));\n } else if (parser.getName().equals(\"String_Node_Str\")) {\n didMarker.setCAMarker(this.parseCAMarker(parser));\n } else if (parser.getName().equals(\"String_Node_Str\")) {\n didMarker.setRIMarker(this.parseRIMarker(parser));\n } else if (parser.getName().equals(\"String_Node_Str\")) {\n didMarker.setCryptoMarker(this.parseCryptoMarker(parser));\n } else if (parser.getName().equals(\"String_Node_Str\")) {\n didMarker.setPinCompareMarker(this.parsePINCompareMarker(parser));\n } else {\n throw new IOException(parser.getName() + \"String_Node_Str\");\n }\n }\n } while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals(\"String_Node_Str\")));\n return didMarker;\n}\n"
"private static boolean evaluateSimpleExpression(String simpleExpression, List<? extends IElementParameter> listParam, ElementParameter currentParam) {\n boolean showParameter = false;\n String test = null;\n if (simpleExpression.contains(EQUALS)) {\n test = EQUALS;\n } else if (simpleExpression.contains(NOT_EQUALS)) {\n test = NOT_EQUALS;\n } else if (simpleExpression.contains(GREAT_THAN)) {\n test = GREAT_THAN;\n } else if (simpleExpression.contains(LESS_THAN)) {\n test = LESS_THAN;\n }\n if ((simpleExpression.contains(\"String_Node_Str\") || simpleExpression.contains(\"String_Node_Str\")) && simpleExpression.endsWith(\"String_Node_Str\")) {\n return evaluateInExpression(simpleExpression, listParam);\n }\n if ((simpleExpression.contains(\"String_Node_Str\"))) {\n return evaluateDistrib(simpleExpression, listParam, currentParam);\n }\n List<String> paraNames = getParaNamesFromIsShowFunc(simpleExpression);\n if (paraNames.size() > 0) {\n String paraName = paraNames.get(0);\n try {\n checkIsShowLoop(paraName, simpleExpression, listParam, currentParam, null);\n } catch (Exception e) {\n ExceptionHandler.process(e);\n return false;\n }\n for (IElementParameter param : listParam) {\n if (paraName != null && paraName.equals(param.getName())) {\n return param.isShow(param.getShowIf(), param.getNotShowIf(), listParam);\n }\n }\n }\n if (test == null) {\n throwUnsupportedExpression(simpleExpression, currentParam);\n return false;\n }\n String[] strings = simpleExpression.split(test);\n String variableName = null, variableValue = null;\n for (String string2 : strings) {\n String string = string2.trim();\n if (string.contains(\"String_Node_Str\")) {\n variableValue = string;\n variableValue = variableValue.substring(1, string.lastIndexOf(\"String_Node_Str\"));\n } else {\n variableName = string;\n }\n }\n if (variableName != null && EParameterName.CURRENT_OS.getName().equals(variableName)) {\n if (variableValue != null) {\n if (EQUALS.endsWith(test)) {\n return checkCurrentOS(variableValue);\n } else if (NOT_EQUALS.equals(test)) {\n return !checkCurrentOS(variableValue);\n }\n }\n }\n if (listParam == null) {\n return false;\n }\n if (\"String_Node_Str\".equals(variableName)) {\n boolean isTIS = PluginChecker.isTIS();\n if (\"String_Node_Str\".equals(variableValue)) {\n return isTIS;\n } else {\n return !isTIS;\n }\n }\n if (\"String_Node_Str\".equals(variableName)) {\n boolean isIPaas = PluginChecker.isIPaasPluginLoaded();\n if (\"String_Node_Str\".equals(variableValue)) {\n return isIPaas;\n } else {\n return !isIPaas;\n }\n }\n String[] varNames;\n varNames = StringUtils.split(variableName, '.');\n if ((variableName != null) && (variableValue != null)) {\n if (varNames[0].equals(\"String_Node_Str\")) {\n INode node = null;\n if (currentParam != null && currentParam.getElement() instanceof INode) {\n node = (INode) currentParam.getElement();\n } else if (currentParam == null) {\n if (listParam != null && listParam.size() > 0) {\n IElement element = listParam.get(0).getElement();\n if (element instanceof INode) {\n node = (INode) element;\n }\n }\n }\n if (node != null) {\n String relatedNodeName = ElementParameterParser.getValue(node, \"String_Node_Str\" + varNames[1] + \"String_Node_Str\");\n if (relatedNodeName != null && !relatedNodeName.trim().isEmpty()) {\n List<? extends INode> generatingNodes = node.getProcess().getGeneratingNodes();\n for (INode aNode : generatingNodes) {\n if (aNode.getUniqueName().equals(relatedNodeName)) {\n simpleExpression = simpleExpression.replace(varNames[0] + \"String_Node_Str\" + varNames[1] + \"String_Node_Str\", \"String_Node_Str\");\n List<? extends IElementParameter> elementParameters = aNode.getElementParameters();\n return evaluate(simpleExpression, elementParameters);\n }\n }\n }\n }\n } else if (\"String_Node_Str\".equals(varNames[0])) {\n if (listParam != null && listParam.size() > 0) {\n IElement element = listParam.get(0).getElement();\n if (element != null && element instanceof INode) {\n INode node = (INode) element;\n if (varNames.length > 2 && varNames[1] != null && varNames[2] != null) {\n List<? extends IConnection> connections = new ArrayList<IConnection>();\n if (\"String_Node_Str\".equals(varNames[1]) || \"String_Node_Str\".equals(varNames[1])) {\n if (\"String_Node_Str\".equals(varNames[1])) {\n if (\"String_Node_Str\".equals(varNames[2])) {\n connections = node.getIncomingConnections();\n } else {\n connections = node.getIncomingConnections(EConnectionType.valueOf(varNames[2]));\n }\n } else {\n if (\"String_Node_Str\".equals(varNames[2])) {\n connections = node.getOutgoingConnections();\n } else {\n connections = node.getOutgoingConnections(EConnectionType.valueOf(varNames[2]));\n }\n }\n try {\n int connSize = connections.size();\n int targetNumber = Integer.parseInt(variableValue);\n if (GREAT_THAN.equals(test)) {\n return connSize > targetNumber;\n } else if (LESS_THAN.equals(test)) {\n return connSize < targetNumber;\n } else if (EQUALS.equals(test)) {\n return connSize == targetNumber;\n } else if (NOT_EQUALS.equals(test)) {\n return connSize != targetNumber;\n }\n } catch (Exception e) {\n }\n } else {\n connections = node.getOutgoingConnections(EConnectionType.valueOf(varNames[1]));\n for (IConnection c : connections) {\n IElementParameter elementParameter = c.getElementParameter(varNames[2]);\n if (variableValue.equals(elementParameter.getValue())) {\n return true;\n }\n }\n }\n }\n }\n }\n return false;\n } else if (\"String_Node_Str\".equals(varNames[0])) {\n if (listParam != null && listParam.size() > 0) {\n IElement element = listParam.get(0).getElement();\n if (element != null && element instanceof IConnection) {\n INode sourceNode = ((IConnection) element).getSource();\n simpleExpression = simpleExpression.replace(varNames[0] + \"String_Node_Str\", \"String_Node_Str\");\n return evaluate(simpleExpression, sourceNode.getElementParameters());\n }\n }\n } else if (\"String_Node_Str\".equals(varNames[0])) {\n if (listParam != null && listParam.size() > 0) {\n IElement element = listParam.get(0).getElement();\n if (element != null && element instanceof IConnection) {\n INode sourceNode = ((IConnection) element).getTarget();\n simpleExpression = simpleExpression.replace(varNames[0] + \"String_Node_Str\", \"String_Node_Str\");\n return evaluate(simpleExpression, sourceNode.getElementParameters());\n }\n }\n }\n }\n if ((variableName != null) && (variableValue != null)) {\n for (IElementParameter param : listParam) {\n if (param.getName().equals(varNames[0])) {\n IElementParameter testedParameter = param;\n Object value = null;\n boolean found = false;\n if (param.getFieldType().equals(EParameterFieldType.TABLE)) {\n List<Map<String, Object>> tableValues = (List<Map<String, Object>>) param.getValue();\n if (currentParam == null) {\n continue;\n }\n if (tableValues.size() <= currentParam.getCurrentRow()) {\n break;\n }\n Map<String, Object> currentRow = tableValues.get(currentParam.getCurrentRow());\n if (currentRow.containsKey(varNames[1])) {\n for (Object curObj : param.getListItemsValue()) {\n if (curObj instanceof IElementParameter) {\n IElementParameter testParam = (IElementParameter) curObj;\n if (testParam.getName().equals(varNames[1])) {\n testedParameter = testParam;\n break;\n }\n }\n }\n if (varNames.length == 2) {\n value = currentRow.get(varNames[1]);\n } else {\n if (\"String_Node_Str\".equals(varNames[2])) {\n IMetadataTable baseTable = null;\n IMetadataColumn baseColumn = null;\n INode node;\n Object obj = currentRow.get(testedParameter.getName());\n String columnName = \"String_Node_Str\";\n if (obj instanceof String) {\n columnName = (String) obj;\n } else if (obj instanceof Integer) {\n int index = (Integer) obj;\n if (index < testedParameter.getListItemsDisplayName().length && index >= 0) {\n columnName = testedParameter.getListItemsDisplayName()[(Integer) obj];\n }\n }\n if (currentParam.getElement() instanceof INode) {\n node = (INode) currentParam.getElement();\n switch(testedParameter.getFieldType()) {\n case COLUMN_LIST:\n baseTable = node.getMetadataList().get(0);\n break;\n case PREV_COLUMN_LIST:\n IConnection connection = null;\n for (int i = 0; i < node.getIncomingConnections().size(); i++) {\n IConnection curConnec = node.getIncomingConnections().get(i);\n if (curConnec.getLineStyle() == EConnectionType.FLOW_MAIN) {\n connection = curConnec;\n break;\n }\n }\n if (connection != null) {\n baseTable = connection.getMetadataTable();\n }\n break;\n case LOOKUP_COLUMN_LIST:\n List<IConnection> refConnections = new ArrayList<IConnection>();\n for (int i = 0; i < node.getIncomingConnections().size(); i++) {\n IConnection curConnec = node.getIncomingConnections().get(i);\n if (curConnec.getLineStyle() == EConnectionType.FLOW_REF) {\n refConnections.add(curConnec);\n }\n }\n for (IConnection curConnec : refConnections) {\n IMetadataTable table = curConnec.getMetadataTable();\n for (IMetadataColumn column : table.getListColumns()) {\n String name = curConnec.getName() + \"String_Node_Str\" + column.getLabel();\n if (name.equals(columnName)) {\n baseColumn = column;\n }\n }\n }\n break;\n default:\n }\n if (baseTable != null) {\n for (IMetadataColumn column : baseTable.getListColumns()) {\n if (column.getLabel().equals(columnName)) {\n baseColumn = column;\n break;\n }\n }\n }\n if (baseColumn != null) {\n switch(LanguageManager.getCurrentLanguage()) {\n case JAVA:\n value = JavaTypesManager.getTypeToGenerate(baseColumn.getTalendType(), baseColumn.isNullable());\n break;\n default:\n value = baseColumn.getTalendType();\n }\n if (value.equals(variableValue)) {\n found = true;\n }\n }\n }\n }\n }\n }\n } else if (param.getFieldType().equals(EParameterFieldType.PROPERTY_TYPE) || param.getFieldType().equals(EParameterFieldType.SCHEMA_TYPE) || param.getFieldType().equals(EParameterFieldType.SCHEMA_REFERENCE) || param.getFieldType().equals(EParameterFieldType.QUERYSTORE_TYPE) || param.getFieldType().equals(EParameterFieldType.ENCODING_TYPE)) {\n boolean child = false;\n Map<String, IElementParameter> childParameters = param.getChildParameters();\n if (\"String_Node_Str\".equals(param.getName()) || EParameterFieldType.PROPERTY_TYPE == param.getFieldType()) {\n if (childParameters != null) {\n IElementParameter iElementParameter = childParameters.get(\"String_Node_Str\");\n if (iElementParameter != null) {\n Object value2 = iElementParameter.getValue();\n if (variableValue.equals(value2.toString())) {\n child = true;\n found = true;\n value = value2.toString();\n }\n }\n }\n }\n if (varNames.length > 1 && varNames[1] != null) {\n IElementParameter tempParam = childParameters.get(varNames[1]);\n if (tempParam != null) {\n value = tempParam.getValue();\n if (value.equals(variableValue)) {\n found = true;\n }\n child = true;\n }\n }\n if (!child) {\n value = testedParameter.getValue();\n }\n } else {\n value = testedParameter.getValue();\n }\n if (value instanceof Integer) {\n if (((Integer) value) < testedParameter.getListItemsValue().length) {\n value = testedParameter.getListItemsValue()[(Integer) value];\n }\n }\n if (value instanceof String) {\n if (variableValue.equals(value)) {\n found = true;\n } else if (testedParameter.getListItemsValue() instanceof Object[]) {\n Object[] values = testedParameter.getListItemsValue();\n for (int i = 0; i < values.length && !found; i++) {\n if (value.equals(values[i])) {\n String variableCode = testedParameter.getListItemsDisplayCodeName()[i];\n if (variableCode.equals(variableValue)) {\n found = true;\n }\n }\n }\n }\n } else if (value instanceof Boolean) {\n Boolean tmpValue = new Boolean(variableValue);\n if (tmpValue.equals(value)) {\n found = true;\n }\n }\n if (found) {\n if (test.equals(EQUALS)) {\n showParameter = true;\n }\n } else {\n if (test.equals(NOT_EQUALS)) {\n showParameter = true;\n }\n }\n break;\n }\n }\n if (currentParam != null && \"String_Node_Str\".equals(variableName)) {\n IElement element = currentParam.getElement();\n if (element != null && element instanceof INode) {\n INode node = (INode) element;\n if (node.getComponent() != null && \"String_Node_Str\".equals(node.getComponent().getName())) {\n List<IConnection> connectionsInputs = (List<IConnection>) node.getIncomingConnections();\n for (IConnection connection : connectionsInputs) {\n if (connection.isActivate() && connection.getLineStyle().hasConnectionCategory(IConnectionCategory.MAIN) && variableValue.toUpperCase().equals(connection.getConnectorName())) {\n showParameter = true;\n }\n }\n }\n }\n }\n }\n return showParameter;\n}\n"
"public void unregisterConfigService(ScheduleConfigService service) {\n synchronized (CONFIG_SERVICE_LOCK) {\n logger.debug(\"String_Node_Str\");\n configMap.remove(service.getJobName());\n if (started) {\n try {\n logger.debug(\"String_Node_Str\", service.getJobName());\n deleteSchedule(service.getJobName());\n } catch (SchedulerException e) {\n logger.warn(\"String_Node_Str\", service.getJobName(), e.getMessage());\n }\n }\n }\n}\n"
"private void populateList() {\n try {\n getOkButton().setEnabled(false);\n selectValueList.removeAll();\n viewerValueList.clear();\n if (modelValueList != null) {\n Iterator iter = modelValueList.iterator();\n while (iter.hasNext()) {\n Object candiateValue = iter.next();\n if (candiateValue != null) {\n String displayCandiateValue;\n if (candiateValue instanceof Date) {\n DateFormatter formatter = new DateFormatter(ULocale.US);\n formatter.applyPattern(\"String_Node_Str\");\n displayCandiateValue = formatter.format((Date) candiateValue);\n } else\n displayCandiateValue = DataTypeUtil.toString(candiateValue);\n viewerValueList.add(displayCandiateValue);\n selectValueList.add(displayCandiateValue);\n }\n }\n } else {\n selectValueList.removeAll();\n modelValueList.clear();\n viewerValueList.clear();\n ExceptionHandler.openErrorMessageBox(Messages.getString(\"String_Node_Str\"), Messages.getString(\"String_Node_Str\"));\n }\n if (selectValueList.getItemCount() > 0) {\n selectValueList.select(0);\n getOkButton().setEnabled(true);\n }\n } catch (Exception e) {\n ExceptionHandler.handle(e);\n }\n}\n"
"public JComponent getUI() {\n ui.removeAll();\n ui.setLayout(new ListDownLayout());\n if (folder != null && folder.exists())\n if (new File(Tweed.toWorkspace(folder), TO_DOWNLOAD).exists()) {\n JButton download = new JButton(\"String_Node_Str\");\n download.addActionListener(e -> downloadPanos());\n ui.add(download);\n }\n JButton align = new JButton(\"String_Node_Str\");\n align.addActionListener(e -> tweed.setTool(new FacadeTool(tweed)));\n ui.add(align);\n JButton plane = new JButton(\"String_Node_Str\");\n plane.addActionListener(e -> tweed.setTool(new PlaneTool(tweed)));\n ui.add(plane);\n return ui;\n}\n"
"public static RuleConfiguredTargetBuilder createAndroidBinary(RuleContext ruleContext, NestedSetBuilder<Artifact> filesBuilder, Artifact deployJar, JavaCommon javaCommon, AndroidCommon androidCommon, JavaSemantics javaSemantics, AndroidSemantics androidSemantics, AndroidTools tools, NativeLibs nativeLibs, ApplicationManifest applicationManifest, ResourceApk resourceApk, ResourceApk incrementalResourceApk, ResourceApk splitResourceApk, JavaTargetAttributes resourceClasses, ImmutableList<Artifact> apksUnderTest, Artifact proguardMapping) {\n ProguardOutput proguardOutput = applyProguard(ruleContext, androidCommon, deployJar, filesBuilder, resourceApk, ruleContext.getPrerequisiteArtifacts(PROGUARD_SPECS, Mode.TARGET).list(), proguardMapping, tools);\n Artifact jarToDex = proguardOutput.outputJar;\n Artifact debugKey = ruleContext.getHostPrerequisiteArtifact(\"String_Node_Str\");\n DexingOutput dexingOutput = shouldDexWithJack(ruleContext) ? dexWithJack(ruleContext, androidCommon) : dex(ruleContext, androidSemantics, tools, getMultidexMode(ruleContext), ruleContext.getTokenizedStringListAttr(\"String_Node_Str\"), deployJar, jarToDex, androidCommon, resourceClasses);\n Artifact unsignedApk = ruleContext.getImplicitOutputArtifact(AndroidRuleClasses.ANDROID_BINARY_UNSIGNED_APK);\n Artifact signedApk = ruleContext.getImplicitOutputArtifact(AndroidRuleClasses.ANDROID_BINARY_SIGNED_APK);\n ApkActionBuilder apkBuilder = new ApkActionBuilder(ruleContext, tools).classesDex(dexingOutput.classesDexZip).resourceApk(resourceApk.getArtifact()).javaResourceZip(dexingOutput.javaResourceJar).nativeLibs(nativeLibs);\n ruleContext.registerAction(apkBuilder.message(\"String_Node_Str\").build(unsignedApk));\n ruleContext.registerAction(apkBuilder.message(\"String_Node_Str\").signingKey(debugKey).build(signedApk));\n Artifact zipAlignedApk = zipalignApk(ruleContext, tools, signedApk, ruleContext.getImplicitOutputArtifact(AndroidRuleClasses.ANDROID_BINARY_APK));\n filesBuilder.add(deployJar);\n filesBuilder.add(unsignedApk);\n filesBuilder.add(zipAlignedApk);\n NestedSet<Artifact> filesToBuild = filesBuilder.build();\n NestedSet<Artifact> coverageMetadata = (androidCommon.getInstrumentedJar() != null) ? NestedSetBuilder.create(Order.STABLE_ORDER, androidCommon.getInstrumentedJar()) : NestedSetBuilder.<Artifact>emptySet(Order.STABLE_ORDER);\n RuleConfiguredTargetBuilder builder = new RuleConfiguredTargetBuilder(ruleContext);\n Artifact incrementalApk = ruleContext.getImplicitOutputArtifact(AndroidRuleClasses.ANDROID_BINARY_INCREMENTAL_APK);\n Artifact fullDeployMarker = ruleContext.getImplicitOutputArtifact(AndroidRuleClasses.FULL_DEPLOY_MARKER);\n Artifact incrementalDeployMarker = ruleContext.getImplicitOutputArtifact(AndroidRuleClasses.INCREMENTAL_DEPLOY_MARKER);\n Artifact splitDeployMarker = ruleContext.getImplicitOutputArtifact(AndroidRuleClasses.SPLIT_DEPLOY_MARKER);\n Artifact incrementalDexManifest = ruleContext.getImplicitOutputArtifact(AndroidRuleClasses.DEX_MANIFEST);\n ruleContext.registerAction(new SpawnAction.Builder().setMnemonic(\"String_Node_Str\").setProgressMessage(\"String_Node_Str\" + ruleContext.getLabel()).setExecutable(ruleContext.getExecutablePrerequisite(\"String_Node_Str\", Mode.HOST)).addOutputArgument(incrementalDexManifest).addInputArguments(dexingOutput.shardDexZips).useParameterFile(ParameterFileType.UNQUOTED).build(ruleContext));\n Artifact stubData = ruleContext.getImplicitOutputArtifact(AndroidRuleClasses.STUB_APPLICATION_DATA);\n ruleContext.registerAction(new ApkActionBuilder(ruleContext, tools).classesDex(getStubDex(ruleContext, javaSemantics, androidSemantics, tools, false)).resourceApk(incrementalResourceApk.getArtifact()).javaResourceZip(dexingOutput.javaResourceJar).nativeLibs(nativeLibs).signingKey(debugKey).javaResourceFile(stubData).message(\"String_Node_Str\").build(incrementalApk));\n Artifact argsArtifact = ruleContext.getImplicitOutputArtifact(AndroidRuleClasses.MOBILE_INSTALL_ARGS);\n ruleContext.registerAction(new WriteAdbArgsAction(ruleContext.getActionOwner(), argsArtifact));\n createInstallAction(ruleContext, tools, false, fullDeployMarker, argsArtifact, incrementalDexManifest, incrementalResourceApk.getArtifact(), incrementalApk, stubData);\n createInstallAction(ruleContext, tools, true, incrementalDeployMarker, argsArtifact, incrementalDexManifest, incrementalResourceApk.getArtifact(), incrementalApk, stubData);\n NestedSetBuilder<Artifact> splitApkSetBuilder = NestedSetBuilder.stableOrder();\n for (int i = 0; i < dexingOutput.shardDexZips.size(); i++) {\n String splitName = \"String_Node_Str\" + (i + 1);\n Artifact splitApkResources = createSplitApkResources(ruleContext, tools, applicationManifest, splitName, true);\n Artifact splitApk = getDxArtifact(ruleContext, splitName + \"String_Node_Str\");\n ruleContext.registerAction(new ApkActionBuilder(ruleContext, tools).classesDex(dexingOutput.shardDexZips.get(i)).resourceApk(splitApkResources).signingKey(debugKey).message(\"String_Node_Str\" + (i + 1)).build(splitApk));\n splitApkSetBuilder.add(splitApk);\n }\n Artifact nativeSplitApkResources = createSplitApkResources(ruleContext, tools, applicationManifest, \"String_Node_Str\", false);\n Artifact nativeSplitApk = getDxArtifact(ruleContext, \"String_Node_Str\");\n ruleContext.registerAction(new ApkActionBuilder(ruleContext, tools).resourceApk(nativeSplitApkResources).signingKey(debugKey).message(\"String_Node_Str\").nativeLibs(nativeLibs).build(nativeSplitApk));\n splitApkSetBuilder.add(nativeSplitApk);\n Artifact javaSplitApkResources = createSplitApkResources(ruleContext, tools, applicationManifest, \"String_Node_Str\", false);\n Artifact javaSplitApk = getDxArtifact(ruleContext, \"String_Node_Str\");\n ruleContext.registerAction(new ApkActionBuilder(ruleContext, tools).resourceApk(javaSplitApkResources).javaResourceZip(dexingOutput.javaResourceJar).signingKey(debugKey).message(\"String_Node_Str\").build(javaSplitApk));\n splitApkSetBuilder.add(javaSplitApk);\n Artifact resourceSplitApk = getDxArtifact(ruleContext, \"String_Node_Str\");\n ruleContext.registerAction(new ApkActionBuilder(ruleContext, tools).resourceApk(splitResourceApk.getArtifact()).signingKey(debugKey).message(\"String_Node_Str\").build(resourceSplitApk));\n splitApkSetBuilder.add(resourceSplitApk);\n Artifact splitMainApkResources = getDxArtifact(ruleContext, \"String_Node_Str\");\n ruleContext.registerAction(new SpawnAction.Builder().setMnemonic(\"String_Node_Str\").setProgressMessage(\"String_Node_Str\").setExecutable(ruleContext.getExecutablePrerequisite(\"String_Node_Str\", Mode.HOST)).addArgument(\"String_Node_Str\").addInputArgument(resourceApk.getArtifact()).addArgument(\"String_Node_Str\").addOutputArgument(splitMainApkResources).build(ruleContext));\n NestedSet<Artifact> splitApks = splitApkSetBuilder.build();\n Artifact splitMainApk = getDxArtifact(ruleContext, \"String_Node_Str\");\n ruleContext.registerAction(new ApkActionBuilder(ruleContext, tools).resourceApk(splitMainApkResources).classesDex(stubDex).signingKey(debugKey).message(\"String_Node_Str\").build(splitMainApk));\n splitApkSetBuilder.add(splitMainApk);\n NestedSet<Artifact> allSplitApks = splitApkSetBuilder.build();\n createSplitInstallAction(ruleContext, tools, splitDeployMarker, argsArtifact, splitMainApk, splitApks, stubData);\n NestedSet<Artifact> splitOutputGroup = NestedSetBuilder.<Artifact>stableOrder().addTransitive(allSplitApks).add(splitDeployMarker).build();\n androidCommon.addTransitiveInfoProviders(builder, tools);\n androidSemantics.addTransitiveInfoProviders(builder, ruleContext, javaCommon, androidCommon, jarToDex, resourceApk, zipAlignedApk, apksUnderTest);\n if (proguardOutput.mapping != null) {\n builder.add(ProguardMappingProvider.class, new ProguardMappingProvider(proguardOutput.mapping));\n }\n return builder.setFilesToBuild(filesToBuild).add(RunfilesProvider.class, RunfilesProvider.simple(new Runfiles.Builder().addRunfiles(ruleContext, RunfilesProvider.DEFAULT_RUNFILES).addTransitiveArtifacts(filesToBuild).build())).add(ApkProvider.class, new ApkProvider(NestedSetBuilder.create(Order.STABLE_ORDER, zipAlignedApk), coverageMetadata)).add(AndroidPreDexJarProvider.class, new AndroidPreDexJarProvider(jarToDex)).addOutputGroup(\"String_Node_Str\", fullDeployMarker).addOutputGroup(\"String_Node_Str\", incrementalDeployMarker).addOutputGroup(\"String_Node_Str\", splitOutputGroup);\n}\n"
"public void refresh() {\n if (getAuthor() != null && getAuthor().getLogin() != null) {\n authorText.setText(getAuthor().getLogin());\n } else {\n authorText.setText(\"String_Node_Str\");\n }\n String locker = \"String_Node_Str\";\n LockInfo lockInfo = getLockInfo();\n if (lockInfo != null) {\n locker = lockInfo.getUser();\n }\n lockerText.setText(locker);\n versionText.setText(getVersion() == null ? \"String_Node_Str\" : getVersion());\n}\n"
"public double score(final Phrase p, final int weightIndex) {\n final int w = getWeight(weightIndex);\n if (w == 0)\n return 0;\n double score = 0.0;\n for (final Token t : p.phrase) {\n final String word = Strings.simplify(t.text);\n final double x = (WORDS.contains(word)) ? 1.0 : 0.0;\n score += x;\n }\n return score * w;\n}\n"
"private static String getComboBox(String[][] elements, String selected) {\n StringBuilder buff = new StringBuilder();\n for (String[] n : elements) {\n buff.append(\"String_Node_Str\").append(PageParser.escapeHtmlData(n[0])).append('\\\"');\n if (n[0].equals(selected)) {\n buff.append(\"String_Node_Str\");\n }\n buff.append('>').append(PageParser.escapeHtml(n[1])).append(\"String_Node_Str\");\n }\n return buff.toString();\n}\n"
"private SopremoPlan parseScript(CommandLine cmd) {\n File file = new File(cmd.getOptionValue(\"String_Node_Str\"));\n if (!file.exists())\n this.dealWithError(null, \"String_Node_Str\", file);\n try {\n return new QueryParser().tryParse(new FileInputStream(file));\n } catch (IOException e) {\n this.dealWithError(e, \"String_Node_Str\");\n return null;\n }\n}\n"
"public static void saveUserToStorage(Syncano syncano, AbstractUser user) {\n if (syncano.getAndroidContext() == null || !(PlatformType.get() instanceof PlatformType.AndroidPlatform)) {\n return;\n }\n SharedPreferences prefs = syncano.getAndroidContext().getSharedPreferences(Syncano.class.getSimpleName(), Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n if (user == null) {\n editor.remove(dataKey(syncano));\n editor.remove(typeKey(syncano));\n } else {\n GsonParser.GsonParseConfig config = new GsonParser.GsonParseConfig();\n config.serializeReadOnlyFields = true;\n Gson gson = GsonParser.createGson(config);\n editor.putString(dataKey(syncano), gson.toJson(user));\n editor.putString(typeKey(syncano), user.getClass().getName());\n }\n editor.apply();\n}\n"
"private String getStringFromResultSet(ResultSet resultSet, String nameOfString) {\n String valueOfString = null;\n try {\n valueOfString = resultSet.getString(nameOfString);\n } catch (SQLException e) {\n logger.warn(e.getMessage(), e);\n }\n return valueOfString;\n}\n"
"private int getData(String data, Game game) {\n if (data.equals(Data.USER_HEALTH.text())) {\n return game.getPlayer(id).getHealth();\n } else if (data.equals(Data.OPPONENT_HEALTH.text())) {\n return game.getPlayer(Game.OPPONENT_ID).getHealth();\n } else if (data.equals(Data.DISTANCE_FROM_OPPONENT.text())) {\n return game.pathDistanceToPlayer(Game.PLAYER_ID, Game.OPPONENT_ID);\n } else {\n try {\n return Integer.parseInt(data);\n } catch (Exception ex) {\n System.out.println(\"String_Node_Str\" + data + \"String_Node_Str\");\n return -1;\n }\n }\n}\n"
"public void display(GL2 gl) {\n baseRow.render(gl);\n PixelGLConverter pc = this.getParentGLCanvas().getPixelGLConverter();\n if (updateVisualUncertainty) {\n for (ClusterRenderer clusterRenderer : overviewHeatMap.getClusterRendererList()) {\n ArrayList<Float> uncertaintyVA = new ArrayList<Float>();\n if (clusterRenderer.textureRenderer != null && clusterRenderer.textureRenderer.heatmapLayout != null && clusterRenderer.visUncBarTextureRenderer != null) {\n VisualUncertaintyUtil.calcVisualUncertainty(gl, pc, clusterRenderer.textureRenderer.heatmapLayout, clusterRenderer.textureRenderer, uncertaintyVA);\n clusterRenderer.visUncBarTextureRenderer.initTextures(uncertaintyVA);\n }\n }\n updateVisualUncertainty = false;\n }\n}\n"
"public BufferedImage apply(String key) {\n try {\n boolean usesVariousArt = false;\n if (key.matches(\"String_Node_Str\")) {\n usesVariousArt = true;\n key = key.replace(\"String_Node_Str\", \"String_Node_Str\");\n }\n boolean thumbnail = false;\n if (key.matches(\"String_Node_Str\")) {\n thumbnail = true;\n key = key.replace(\"String_Node_Str\", \"String_Node_Str\");\n }\n Matcher m = KEY_PATTERN.matcher(key);\n if (m.matches()) {\n String name = m.group(1);\n String set = m.group(2);\n Integer type = Integer.parseInt(m.group(3));\n String collectorId = m.group(4);\n if (collectorId.equals(\"String_Node_Str\")) {\n collectorId = \"String_Node_Str\";\n }\n String tokenSetCode = m.group(5);\n String tokenDescriptor = m.group(6);\n CardDownloadData info = new CardDownloadData(name, set, collectorId, usesVariousArt, type, tokenSetCode, tokenDescriptor);\n String path;\n if (collectorId.isEmpty() || \"String_Node_Str\".equals(collectorId)) {\n info.setToken(true);\n path = CardImageUtils.generateTokenImagePath(info);\n if (path == null) {\n path = DirectLinksForDownload.outDir + File.separator + DirectLinksForDownload.cardbackFilename;\n }\n } else {\n path = CardImageUtils.generateImagePath(info);\n }\n if (path == null) {\n return null;\n }\n TFile file = getTFile(path);\n if (file == null) {\n return null;\n }\n if (thumbnail && path.endsWith(\"String_Node_Str\")) {\n String thumbnailPath = buildThumbnailPath(path);\n TFile thumbnailFile = null;\n try {\n thumbnailFile = new TFile(thumbnailPath);\n } catch (Exception ex) {\n }\n boolean exists = false;\n if (thumbnailFile != null) {\n try {\n exists = thumbnailFile.exists();\n } catch (Exception ex) {\n exists = false;\n }\n }\n if (exists) {\n LOGGER.debug(\"String_Node_Str\" + key + \"String_Node_Str\" + thumbnailPath);\n BufferedImage thumbnailImage = loadImage(thumbnailFile);\n if (thumbnailImage == null) {\n LOGGER.warn(\"String_Node_Str\" + key + \"String_Node_Str\" + thumbnailPath + \"String_Node_Str\");\n thumbnailImage = makeThumbnailByFile(key, file, thumbnailPath);\n }\n return thumbnailImage;\n } else {\n return makeThumbnailByFile(key, file, thumbnailPath);\n }\n } else {\n BufferedImage image = loadImage(file);\n LOGGER.info(\"String_Node_Str\" + Integer.toHexString(image.hashCode()));\n image = getWizardsCard(image);\n LOGGER.info(\"String_Node_Str\" + Integer.toHexString(image.hashCode()));\n return image;\n }\n } else {\n throw new RuntimeException(\"String_Node_Str\" + key);\n }\n } catch (Exception ex) {\n if (ex instanceof ComputationException) {\n throw (ComputationException) ex;\n } else {\n throw new ComputationException(ex);\n }\n }\n}\n"
"private JPanel constructView() {\n JPanel panel = new JPanel();\n panel.setLayout(new GridBagLayout());\n IssuesUserFilter issuesUserFiltered = new IssuesUserFilter(issuesEventList);\n SortedList issuesSortedList = new SortedList(issuesUserFiltered);\n TextFilterList issuesTextFiltered = new TextFilterList(issuesSortedList);\n EventTableModel issuesTableModel = new EventTableModel(issuesTextFiltered, new IssueTableFormat());\n JTable issuesJTable = new JTable(issuesTableModel);\n issuesSelectionModel = new EventSelectionModel(issuesTextFiltered);\n issuesSelectionModel.getListSelectionModel().addListSelectionListener(new IssuesSelectionListener());\n issuesJTable.setSelectionModel(issuesSelectionModel.getListSelectionModel());\n issuesJTable.getColumnModel().getColumn(0).setPreferredWidth(10);\n issuesJTable.getColumnModel().getColumn(1).setPreferredWidth(30);\n issuesJTable.getColumnModel().getColumn(2).setPreferredWidth(10);\n issuesJTable.getColumnModel().getColumn(3).setPreferredWidth(30);\n issuesJTable.getColumnModel().getColumn(4).setPreferredWidth(30);\n issuesJTable.getColumnModel().getColumn(5).setPreferredWidth(200);\n TableComparatorChooser tableSorter = new TableComparatorChooser(issuesJTable, issuesSortedList, true);\n JScrollPane issuesTableScrollPane = new JScrollPane(issuesJTable, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n JScrollPane usersListScrollPane = new JScrollPane(issuesUserFiltered.getUserSelect(), JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n EventTableModel descriptionsTableModel = new EventTableModel(descriptions, new DescriptionTableFormat());\n JTable descriptionsTable = new JTable(descriptionsTableModel);\n descriptionsTable.getColumnModel().getColumn(0).setCellRenderer(new DescriptionRenderer());\n JScrollPane descriptionsTableScrollPane = new JScrollPane(descriptionsTable);\n panel.add(usersListScrollPane, new GridBagConstraints(0, 0, 1, 2, 0.3, 0.5, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(5, 5, 5, 5), 0, 0));\n panel.add(new JLabel(\"String_Node_Str\"), new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(5, 0, 5, 5), 0, 0));\n panel.add(issuesTextFiltered.getFilterEdit(), new GridBagConstraints(2, 0, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(5, 0, 5, 5), 0, 0));\n panel.add(issuesTableScrollPane, new GridBagConstraints(1, 1, 2, 1, 0.7, 0.5, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 5, 5), 0, 0));\n panel.add(descriptionsTableScrollPane, new GridBagConstraints(0, 2, 3, 1, 1.0, 0.5, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 5, 5, 5), 0, 0));\n return panel;\n}\n"
"public static void handleMultipartPost(EntityEnclosingMethod postMethodProxyRequest, HttpServletRequest httpServletRequest, DiskFileItemFactory diskFileItemFactory) throws ServletException {\n ServletFileUpload servletFileUpload = new ServletFileUpload(diskFileItemFactory);\n try {\n InputStreamRequestEntity ire = new InputStreamRequestEntity(httpServletRequest.getInputStream());\n postMethodProxyRequest.setRequestEntity(ire);\n postMethodProxyRequest.setRequestHeader(STRING_CONTENT_TYPE_HEADER_NAME, httpServletRequest.getHeader(STRING_CONTENT_TYPE_HEADER_NAME));\n } catch (Exception e) {\n throw new ServletException(e);\n }\n}\n"
"public Boolean apply(Game game, Permanent permanent) {\n if (!permanent.getSubtype().contains(\"String_Node_Str\")) {\n permanent.getSubtype().add(\"String_Node_Str\");\n }\n mageObject.getAbilities().add(new BecomesTargetTriggeredAbility(new SacrificeSourceEffect()));\n return true;\n}\n"
"protected List<GraphTargetItem> printGraph(List<GraphPart> visited, List<Object> localData, Stack<GraphTargetItem> stack, List<GraphPart> allParts, GraphPart parent, GraphPart part, List<GraphPart> stopPart, List<Loop> loops, List<GraphTargetItem> ret) {\n if (stopPart == null) {\n stopPart = new ArrayList<>();\n }\n if (visited.contains(part)) {\n } else {\n visited.add(part);\n }\n if (ret == null) {\n ret = new ArrayList<>();\n }\n boolean debugMode = false;\n if (debugMode) {\n System.err.println(\"String_Node_Str\" + part);\n }\n if (part == null) {\n return ret;\n }\n part = checkPart(localData, part);\n if (part == null) {\n return ret;\n }\n if (part.ignored) {\n return ret;\n }\n List<GraphPart> loopContinues = getLoopsContinues(loops);\n boolean isLoop = false;\n Loop currentLoop = null;\n for (Loop el : loops) {\n if ((el.loopContinue == part) && (el.phase == 0)) {\n currentLoop = el;\n currentLoop.phase = 1;\n isLoop = true;\n break;\n }\n }\n if (debugMode) {\n System.err.println(\"String_Node_Str\" + loops.size());\n }\n for (int l = loops.size() - 1; l >= 0; l--) {\n Loop el = loops.get(l);\n if (el == currentLoop) {\n if (debugMode) {\n System.err.println(\"String_Node_Str\" + el);\n }\n continue;\n }\n if (el.phase != 1) {\n if (debugMode) {\n }\n continue;\n }\n if (el.loopBreak == part) {\n ret.add(new BreakItem(null, el.id));\n return ret;\n }\n if (el.loopPreContinue == part) {\n ret.add(new ContinueItem(null, el.id));\n return ret;\n }\n if (el.loopContinue == part) {\n ret.add(new ContinueItem(null, el.id));\n return ret;\n }\n }\n if (stopPart.contains(part)) {\n return ret;\n }\n if ((part != null) && (code.size() <= part.start)) {\n ret.add(new ScriptEndItem());\n return ret;\n }\n if (currentLoop != null) {\n currentLoop.used = true;\n }\n List<GraphTargetItem> currentRet = ret;\n UniversalLoopItem loopItem = null;\n if (isLoop) {\n loopItem = new UniversalLoopItem(null, currentLoop);\n currentRet.add(loopItem);\n loopItem.commands = new ArrayList<>();\n currentRet = loopItem.commands;\n }\n boolean parseNext = true;\n List<GraphTargetItem> output = new ArrayList<>();\n List<GraphPart> parts = new ArrayList<>();\n if (part instanceof GraphPartMulti) {\n parts = ((GraphPartMulti) part).parts;\n } else {\n parts.add(part);\n }\n int end = part.end;\n for (GraphPart p : parts) {\n end = p.end;\n int start = p.start;\n try {\n output.addAll(code.translatePart(p, localData, stack, start, end));\n if ((end >= code.size() - 1) && p.nextParts.isEmpty()) {\n output.add(new ScriptEndItem());\n }\n } catch (Exception ex) {\n Logger.getLogger(Graph.class.getName()).log(Level.SEVERE, \"String_Node_Str\", ex);\n return ret;\n }\n }\n if (part.nextParts.size() == 2) {\n if ((stack.size() >= 2) && (stack.get(stack.size() - 1) instanceof NotItem) && (((NotItem) (stack.get(stack.size() - 1))).getOriginal().getNotCoerced() == stack.get(stack.size() - 2).getNotCoerced())) {\n currentRet.addAll(output);\n GraphPart sp0 = getNextNoJump(part.nextParts.get(0));\n GraphPart sp1 = getNextNoJump(part.nextParts.get(1));\n boolean reversed = false;\n loopContinues = getLoopsContinues(loops);\n loopContinues.add(part);\n if (sp1.leadsTo(code, sp0, loops)) {\n } else if (sp0.leadsTo(code, sp1, loops)) {\n reversed = true;\n }\n GraphPart next = reversed ? sp0 : sp1;\n GraphTargetItem ti;\n if ((ti = checkLoop(next, stopPart, loops)) != null) {\n currentRet.add(ti);\n } else {\n List<GraphPart> stopPart2 = new ArrayList<>(stopPart);\n stopPart2.add(reversed ? sp1 : sp0);\n printGraph(visited, localData, stack, allParts, parent, next, stopPart2, loops);\n GraphTargetItem second = stack.pop();\n GraphTargetItem first = stack.pop();\n if (!reversed) {\n AndItem a = new AndItem(null, first, second);\n stack.push(a);\n a.firstPart = part;\n if (second instanceof AndItem) {\n a.firstPart = ((AndItem) second).firstPart;\n }\n if (second instanceof OrItem) {\n a.firstPart = ((OrItem) second).firstPart;\n }\n } else {\n OrItem o = new OrItem(null, first, second);\n stack.push(o);\n o.firstPart = part;\n if (second instanceof AndItem) {\n o.firstPart = ((AndItem) second).firstPart;\n }\n if (second instanceof OrItem) {\n o.firstPart = ((OrItem) second).firstPart;\n }\n }\n next = reversed ? sp1 : sp0;\n if ((ti = checkLoop(next, stopPart, loops)) != null) {\n currentRet.add(ti);\n } else {\n currentRet.addAll(printGraph(visited, localData, stack, allParts, parent, next, stopPart, loops));\n }\n }\n parseNext = false;\n } else if ((stack.size() >= 2) && (stack.get(stack.size() - 1).getNotCoerced() == stack.get(stack.size() - 2).getNotCoerced())) {\n currentRet.addAll(output);\n GraphPart sp0 = getNextNoJump(part.nextParts.get(0));\n GraphPart sp1 = getNextNoJump(part.nextParts.get(1));\n boolean reversed = false;\n loopContinues = getLoopsContinues(loops);\n loopContinues.add(part);\n if (sp1.leadsTo(code, sp0, loops)) {\n } else if (sp0.leadsTo(code, sp1, loops)) {\n reversed = true;\n }\n GraphPart next = reversed ? sp0 : sp1;\n GraphTargetItem ti;\n if ((ti = checkLoop(next, stopPart, loops)) != null) {\n currentRet.add(ti);\n } else {\n List<GraphPart> stopPart2 = new ArrayList<>(stopPart);\n stopPart2.add(reversed ? sp1 : sp0);\n printGraph(visited, localData, stack, allParts, parent, next, stopPart2, loops);\n GraphTargetItem second = stack.pop();\n GraphTargetItem first = stack.pop();\n if (reversed) {\n AndItem a = new AndItem(null, first, second);\n stack.push(a);\n a.firstPart = part;\n if (second instanceof AndItem) {\n a.firstPart = ((AndItem) second).firstPart;\n }\n if (second instanceof OrItem) {\n a.firstPart = ((AndItem) second).firstPart;\n }\n } else {\n OrItem o = new OrItem(null, first, second);\n stack.push(o);\n o.firstPart = part;\n if (second instanceof OrItem) {\n o.firstPart = ((OrItem) second).firstPart;\n }\n if (second instanceof OrItem) {\n o.firstPart = ((OrItem) second).firstPart;\n }\n }\n next = reversed ? sp1 : sp0;\n if ((ti = checkLoop(next, stopPart, loops)) != null) {\n currentRet.add(ti);\n } else {\n currentRet.addAll(printGraph(visited, localData, stack, allParts, parent, next, stopPart, loops));\n }\n }\n parseNext = false;\n }\n }\n if (parseNext) {\n List<GraphTargetItem> retCheck = check(code, localData, allParts, stack, parent, part, stopPart, loops, output);\n if (retCheck != null) {\n if (!retCheck.isEmpty()) {\n currentRet.addAll(retCheck);\n }\n return ret;\n } else {\n currentRet.addAll(output);\n }\n if (part.nextParts.size() == 2) {\n GraphTargetItem expr = stack.pop();\n if (expr instanceof LogicalOpItem) {\n expr = ((LogicalOpItem) expr).invert();\n } else {\n expr = new NotItem(null, expr);\n }\n GraphPart next = getNextCommonPart(part, loops);\n Stack<GraphTargetItem> trueStack = (Stack<GraphTargetItem>) stack.clone();\n Stack<GraphTargetItem> falseStack = (Stack<GraphTargetItem>) stack.clone();\n int trueStackSizeBefore = trueStack.size();\n int falseStackSizeBefore = falseStack.size();\n List<GraphTargetItem> onTrue = new ArrayList<>();\n boolean isEmpty = part.nextParts.get(0) == part.nextParts.get(1);\n if (isEmpty) {\n next = part.nextParts.get(0);\n }\n List<GraphPart> stopPart2 = new ArrayList<>(stopPart);\n if (next != null) {\n stopPart2.add(next);\n }\n if (!isEmpty) {\n onTrue = printGraph(visited, localData, trueStack, allParts, part, part.nextParts.get(1), stopPart2, loops);\n }\n List<GraphTargetItem> onFalse = new ArrayList<>();\n if (!isEmpty) {\n onFalse = printGraph(visited, localData, falseStack, allParts, part, part.nextParts.get(0), stopPart2, loops);\n }\n if (isEmpty(onTrue) && isEmpty(onFalse) && (trueStack.size() > trueStackSizeBefore) && (falseStack.size() > falseStackSizeBefore)) {\n stack.push(new TernarOpItem(null, expr, trueStack.pop(), falseStack.pop()));\n } else {\n currentRet.add(new IfItem(null, expr, onTrue, onFalse));\n }\n if (next != null) {\n printGraph(visited, localData, stack, allParts, part, next, stopPart, loops, currentRet);\n }\n } else if (part.nextParts.size() == 1) {\n printGraph(visited, localData, stack, allParts, part, part.nextParts.get(0), stopPart, loops, currentRet);\n }\n }\n if (isLoop) {\n currentLoop.phase = 2;\n LoopItem li = loopItem;\n boolean loopTypeFound = false;\n checkContinueAtTheEnd(loopItem.commands, currentLoop);\n if (!loopTypeFound && (!loopItem.commands.isEmpty())) {\n if (loopItem.commands.get(0) instanceof IfItem) {\n IfItem ifi = (IfItem) loopItem.commands.get(0);\n List<GraphTargetItem> bodyBranch = null;\n boolean inverted = false;\n if ((ifi.onTrue.size() == 1) && (ifi.onTrue.get(0) instanceof BreakItem)) {\n BreakItem bi = (BreakItem) ifi.onTrue.get(0);\n if (bi.loopId == currentLoop.id) {\n bodyBranch = ifi.onFalse;\n inverted = true;\n }\n } else if ((ifi.onFalse.size() == 1) && (ifi.onFalse.get(0) instanceof BreakItem)) {\n BreakItem bi = (BreakItem) ifi.onFalse.get(0);\n if (bi.loopId == currentLoop.id) {\n bodyBranch = ifi.onTrue;\n }\n }\n if (bodyBranch != null) {\n int index = ret.indexOf(loopItem);\n ret.remove(index);\n List<GraphTargetItem> exprList = new ArrayList<>();\n GraphTargetItem expr = ifi.expression;\n if (inverted) {\n if (expr instanceof LogicalOpItem) {\n expr = ((LogicalOpItem) expr).invert();\n } else {\n expr = new NotItem(null, expr);\n }\n }\n exprList.add(expr);\n List<GraphTargetItem> commands = new ArrayList<>();\n commands.addAll(bodyBranch);\n loopItem.commands.remove(0);\n commands.addAll(loopItem.commands);\n checkContinueAtTheEnd(commands, currentLoop);\n List<GraphTargetItem> finalComm = new ArrayList<>();\n if (currentLoop.loopPreContinue != null) {\n GraphPart backup = currentLoop.loopPreContinue;\n currentLoop.loopPreContinue = null;\n List<GraphPart> stopPart2 = new ArrayList<>(stopPart);\n stopPart2.add(currentLoop.loopContinue);\n finalComm = printGraph(visited, localData, new Stack<GraphTargetItem>(), allParts, null, backup, stopPart2, loops);\n currentLoop.loopPreContinue = backup;\n checkContinueAtTheEnd(finalComm, currentLoop);\n }\n if (!finalComm.isEmpty()) {\n ret.add(index, li = new ForTreeItem(null, currentLoop, new ArrayList<GraphTargetItem>(), exprList.get(exprList.size() - 1), finalComm, commands));\n } else {\n ret.add(index, li = new WhileItem(null, currentLoop, exprList, commands));\n }\n loopTypeFound = true;\n }\n }\n }\n if (!loopTypeFound && (!loopItem.commands.isEmpty())) {\n if (loopItem.commands.get(loopItem.commands.size() - 1) instanceof IfItem) {\n IfItem ifi = (IfItem) loopItem.commands.get(loopItem.commands.size() - 1);\n List<GraphTargetItem> bodyBranch = null;\n boolean inverted = false;\n if ((ifi.onTrue.size() == 1) && (ifi.onTrue.get(0) instanceof BreakItem)) {\n BreakItem bi = (BreakItem) ifi.onTrue.get(0);\n if (bi.loopId == currentLoop.id) {\n bodyBranch = ifi.onFalse;\n inverted = true;\n }\n } else if ((ifi.onFalse.size() == 1) && (ifi.onFalse.get(0) instanceof BreakItem)) {\n BreakItem bi = (BreakItem) ifi.onFalse.get(0);\n if (bi.loopId == currentLoop.id) {\n bodyBranch = ifi.onTrue;\n }\n }\n if (bodyBranch != null) {\n int index = ret.indexOf(loopItem);\n ret.remove(index);\n List<GraphTargetItem> exprList = new ArrayList<>();\n GraphTargetItem expr = ifi.expression;\n if (inverted) {\n if (expr instanceof LogicalOpItem) {\n expr = ((LogicalOpItem) expr).invert();\n } else {\n expr = new NotItem(null, expr);\n }\n }\n checkContinueAtTheEnd(bodyBranch, currentLoop);\n List<GraphTargetItem> commands = new ArrayList<>();\n loopItem.commands.remove(loopItem.commands.size() - 1);\n if (!bodyBranch.isEmpty()) {\n } else {\n commands.addAll(loopItem.commands);\n commands.addAll(bodyBranch);\n exprList.add(expr);\n checkContinueAtTheEnd(commands, currentLoop);\n ret.add(index, li = new DoWhileItem(null, currentLoop, commands, exprList));\n }\n loopTypeFound = true;\n }\n }\n }\n if (!loopTypeFound) {\n if (currentLoop.loopPreContinue != null) {\n loopTypeFound = true;\n GraphPart backup = currentLoop.loopPreContinue;\n currentLoop.loopPreContinue = null;\n List<GraphPart> stopPart2 = new ArrayList<>(stopPart);\n stopPart2.add(currentLoop.loopContinue);\n List<GraphTargetItem> finalComm = printGraph(visited, localData, new Stack<GraphTargetItem>(), allParts, null, backup, stopPart2, loops);\n currentLoop.loopPreContinue = backup;\n checkContinueAtTheEnd(finalComm, currentLoop);\n if (!finalComm.isEmpty()) {\n if (finalComm.get(finalComm.size() - 1) instanceof IfItem) {\n IfItem ifi = (IfItem) finalComm.get(finalComm.size() - 1);\n boolean ok = false;\n boolean invert = false;\n if (((ifi.onTrue.size() == 1) && (ifi.onTrue.get(0) instanceof BreakItem) && (((BreakItem) ifi.onTrue.get(0)).loopId == currentLoop.id)) && ((ifi.onTrue.size() == 1) && (ifi.onFalse.get(0) instanceof ContinueItem) && (((ContinueItem) ifi.onFalse.get(0)).loopId == currentLoop.id))) {\n ok = true;\n invert = true;\n }\n if (((ifi.onTrue.size() == 1) && (ifi.onTrue.get(0) instanceof ContinueItem) && (((ContinueItem) ifi.onTrue.get(0)).loopId == currentLoop.id)) && ((ifi.onTrue.size() == 1) && (ifi.onFalse.get(0) instanceof BreakItem) && (((BreakItem) ifi.onFalse.get(0)).loopId == currentLoop.id))) {\n ok = true;\n }\n if (ok) {\n finalComm.remove(finalComm.size() - 1);\n int index = ret.indexOf(loopItem);\n ret.remove(index);\n List<GraphTargetItem> exprList = new ArrayList<>(finalComm);\n GraphTargetItem expr = ifi.expression;\n if (invert) {\n if (expr instanceof LogicalOpItem) {\n expr = ((LogicalOpItem) expr).invert();\n } else {\n expr = new NotItem(null, expr);\n }\n }\n exprList.add(expr);\n ret.add(index, li = new DoWhileItem(null, currentLoop, loopItem.commands, exprList));\n }\n }\n }\n }\n }\n if (!loopTypeFound) {\n checkContinueAtTheEnd(loopItem.commands, currentLoop);\n }\n GraphTargetItem replaced = checkLoop(li, localData, loops);\n if (replaced != li) {\n int index = ret.indexOf(li);\n ret.remove(index);\n if (replaced != null) {\n ret.add(index, replaced);\n }\n }\n if (currentLoop.loopBreak != null) {\n ret.addAll(printGraph(visited, localData, stack, allParts, part, currentLoop.loopBreak, stopPart, loops));\n }\n }\n return ret;\n}\n"
"public void openStartElement(XPathFragment xPathFragment, NamespaceResolver namespaceResolver) {\n super.openStartElement(xPathFragment, namespaceResolver);\n if (isStartElementOpen) {\n openAndCloseStartElement();\n }\n this.isStartElementOpen = true;\n this.xPathFragment = xPathFragment;\n this.attributes = new AttributesImpl();\n}\n"
"private void swapPunctuationAndSpace(InputConnection ic) {\n CharSequence lastTwo = ic.getTextBeforeCursor(2, 0);\n if (lastTwo != null && lastTwo.length() == 2 && lastTwo.charAt(0) == KeyCodes.SPACE && lastTwo.charAt(1) == punctuationCharacter) {\n ic.deleteSurroundingText(2, 0);\n ic.commitText(lastTwo.charAt(1) + \"String_Node_Str\", 1);\n ic.endBatchEdit();\n mJustAddedAutoSpace = true;\n Log.d(TAG, \"String_Node_Str\");\n }\n}\n"
"public void testProgramStartStopStatus() throws Exception {\n HttpResponse response = deploy(WordCountApp.class, Constants.Gateway.API_VERSION_3_TOKEN, TEST_NAMESPACE1);\n Assert.assertEquals(200, response.getStatusLine().getStatusCode());\n Id.Flow wordcountFlow1 = Id.Flow.from(TEST_NAMESPACE1, WORDCOUNT_APP_NAME, WORDCOUNT_FLOW_NAME);\n Id.Flow wordcountFlow2 = Id.Flow.from(TEST_NAMESPACE2, WORDCOUNT_APP_NAME, WORDCOUNT_FLOW_NAME);\n Assert.assertEquals(STOPPED, getProgramStatus(wordcountFlow1));\n startProgram(wordcountFlow2, 404);\n Assert.assertEquals(STOPPED, getProgramStatus(wordcountFlow1));\n startProgram(wordcountFlow1);\n waitState(wordcountFlow1, ProgramRunStatus.RUNNING.toString());\n stopProgram(wordcountFlow1);\n waitState(wordcountFlow1, STOPPED);\n response = deploy(DummyAppWithTrackingTable.class, Constants.Gateway.API_VERSION_3_TOKEN, TEST_NAMESPACE2);\n Assert.assertEquals(200, response.getStatusLine().getStatusCode());\n Id.Program dummyMR1 = Id.Program.from(TEST_NAMESPACE1, DUMMY_APP_ID, ProgramType.MAPREDUCE, DUMMY_MR_NAME);\n Id.Program dummyMR2 = Id.Program.from(TEST_NAMESPACE2, DUMMY_APP_ID, ProgramType.MAPREDUCE, DUMMY_MR_NAME);\n Assert.assertEquals(STOPPED, getProgramStatus(dummyMR2));\n startProgram(dummyMR1, 404);\n Assert.assertEquals(STOPPED, getProgramStatus(dummyMR2));\n startProgram(dummyMR2);\n waitState(dummyMR2, ProgramRunStatus.RUNNING.toString());\n stopProgram(dummyMR2);\n waitState(dummyMR2, STOPPED);\n startProgram(dummyMR2);\n startProgram(dummyMR2);\n verifyProgramRuns(dummyMR2, \"String_Node_Str\", 1);\n List<RunRecord> historyRuns = getProgramRuns(dummyMR2, \"String_Node_Str\");\n Assert.assertTrue(2 == historyRuns.size());\n String runId = historyRuns.get(0).getPid();\n stopProgram(dummyMR2, runId, 200);\n runId = historyRuns.get(1).getPid();\n stopProgram(dummyMR2, 200, runId);\n waitState(dummyMR2, STOPPED);\n response = deploy(SleepingWorkflowApp.class, Constants.Gateway.API_VERSION_3_TOKEN, TEST_NAMESPACE2);\n Assert.assertEquals(200, response.getStatusLine().getStatusCode());\n Id.Program sleepWorkflow1 = Id.Program.from(TEST_NAMESPACE1, SLEEP_WORKFLOW_APP_ID, ProgramType.WORKFLOW, SLEEP_WORKFLOW_NAME);\n Id.Program sleepWorkflow2 = Id.Program.from(TEST_NAMESPACE2, SLEEP_WORKFLOW_APP_ID, ProgramType.WORKFLOW, SLEEP_WORKFLOW_NAME);\n Assert.assertEquals(STOPPED, getProgramStatus(sleepWorkflow2));\n startProgram(sleepWorkflow1, 404);\n Assert.assertEquals(STOPPED, getProgramStatus(sleepWorkflow2));\n startProgram(sleepWorkflow2);\n waitState(sleepWorkflow2, ProgramRunStatus.RUNNING.toString());\n waitState(sleepWorkflow2, STOPPED);\n response = doDelete(getVersionedAPIPath(\"String_Node_Str\", Constants.Gateway.API_VERSION_3_TOKEN, TEST_NAMESPACE1));\n Assert.assertEquals(200, response.getStatusLine().getStatusCode());\n response = doDelete(getVersionedAPIPath(\"String_Node_Str\", Constants.Gateway.API_VERSION_3_TOKEN, TEST_NAMESPACE2));\n Assert.assertEquals(200, response.getStatusLine().getStatusCode());\n}\n"
"private void updateFilterPattern() {\n try {\n String[] filterStrings = filterEdit.getText().toLowerCase().split(\"String_Node_Str\");\n filters = new Matcher[filterStrings.length];\n for (int i = 0; i < filterStrings.length; i++) {\n filters[i] = getMatcher(filterStrings[i]);\n }\n } catch (PatternSyntaxException e) {\n filters = new Matcher[0];\n }\n}\n"
"private void refresh() {\n ProxyRepositoryFactory repositoryFactory = ProxyRepositoryFactory.getInstance();\n Project[] projects = null;\n try {\n projects = repositoryFactory.readProject();\n } catch (PersistenceException e1) {\n ExceptionHandler.process(e1);\n } catch (BusinessException e1) {\n ExceptionHandler.process(e1);\n }\n projectList.removeAll();\n projectsMap.clear();\n if (projects != null) {\n for (int i = 0; i < projects.length; i++) {\n Project pro = projects[i];\n projectList.add(pro.getLabel());\n projectsMap.put(pro.getTechnicalLabel(), pro);\n sortProjects();\n enableOpenAndDelete(true);\n }\n }\n try {\n setStatusArea();\n } catch (PersistenceException e1) {\n ExceptionHandler.process(e1);\n }\n}\n"
"public static void awaitSync() {\n if (canProceed())\n return;\n try {\n latch.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n}\n"
"public static MetadataFillFactory getDBInstance(SupportDBUrlType dbUrlType) {\n if (instance == null) {\n instance = new MetadataFillFactory();\n }\n switch(eDatabaseType) {\n case SYBASEASE:\n case SYBASEIQ:\n metadataFiller = new SybaseConnectionFillerImpl();\n break;\n default:\n metadataFiller = DBmetadataFiller;\n }\n return instance;\n}\n"
"private int spawnChildJVMForTest(Configuration.ConfigurationTest test, boolean jsoar) {\n List<String> arguments = new ArrayList<String>();\n URL baseURL = PerformanceTesting.class.getProtectionDomain().getCodeSource().getLocation();\n String jarPath = null;\n try {\n jarPath = new File(baseURL.toURI().getPath()).getCanonicalPath();\n } catch (IOException | URISyntaxException e1) {\n throw new AssertionError(e1);\n }\n jarPath = jarPath.replace(\"String_Node_Str\", \"String_Node_Str\");\n if (jarPath.endsWith(\"String_Node_Str\") != true) {\n Character pathSeperator = File.pathSeparatorChar;\n String originalPath = jarPath;\n jarPath += pathSeperator;\n jarPath += originalPath + \"String_Node_Str\" + pathSeperator;\n File directory = new File(originalPath + \"String_Node_Str\");\n File[] listOfFiles = directory.listFiles();\n for (File file : listOfFiles) {\n if (file.isFile()) {\n String path = file.getPath();\n if (!path.endsWith(\"String_Node_Str\")) {\n continue;\n }\n path = path.replace(\"String_Node_Str\", \"String_Node_Str\");\n jarPath += path + pathSeperator;\n }\n }\n directory = new File(originalPath + \"String_Node_Str\");\n listOfFiles = directory.listFiles();\n for (File file : listOfFiles) {\n if (file.isFile()) {\n String path = file.getPath();\n if (!path.endsWith(\"String_Node_Str\")) {\n continue;\n }\n path = path.replace(\"String_Node_Str\", \"String_Node_Str\");\n jarPath += path + pathSeperator;\n }\n }\n }\n arguments.add(\"String_Node_Str\");\n arguments.addAll(Arrays.asList(test.getTestSettings().getJVMSettings().split(\"String_Node_Str\")));\n arguments.add(\"String_Node_Str\");\n arguments.add(jarPath);\n arguments.add(PerformanceTesting.class.getCanonicalName());\n arguments.add(\"String_Node_Str\");\n arguments.add(test.getTestFile());\n arguments.add(\"String_Node_Str\");\n arguments.add(test.getTestSettings().getCSVDirectory());\n arguments.add(\"String_Node_Str\");\n arguments.add(new Integer(test.getTestSettings().getWarmUpCount()).toString());\n arguments.add(\"String_Node_Str\");\n arguments.add(new Integer(test.getTestSettings().getDecisionCycles()).toString());\n arguments.add(\"String_Node_Str\");\n arguments.add(test.getTestName());\n arguments.add(\"String_Node_Str\");\n arguments.add(\"String_Node_Str\");\n int exitCode = 0;\n if (jsoar) {\n arguments.add(\"String_Node_Str\");\n exitCode = runJVM(test, arguments);\n } else {\n arguments.add(\"String_Node_Str\");\n for (String path : test.getTestSettings().getCSoarVersions()) {\n List<String> argumentsPerTest = new ArrayList<String>(arguments);\n argumentsPerTest.add(path);\n exitCode = runJVM(test, argumentsPerTest);\n }\n }\n if (exitCode != 0) {\n return EXIT_FAILURE_TEST;\n } else {\n return EXIT_SUCCESS;\n }\n}\n"
"public TrackSchemeVertex getVertexAt(final int x, final int y, final TrackSchemeVertex ref) {\n synchronized (entities) {\n double d2Best = Double.POSITIVE_INFINITY;\n int iBest = -1;\n final RealPoint pos = new RealPoint(x, y);\n for (final ScreenVertex v : entities.getVertices()) {\n if (isInsidePaintedVertex(pos, v)) {\n final int i = v.getTrackSchemeVertexId();\n if (i >= 0) {\n final double dx = v.getX() - x;\n final double dy = v.getY() - y;\n final double d2 = dx * dx + dy * dy;\n if (d2 < d2Best) {\n d2Best = d2;\n iBest = i;\n }\n }\n }\n }\n return (iBest >= 0) ? graph.getVertexPool().getObjectIfExists(iBest, ref) : null;\n }\n}\n"
"protected void onDataChanged() {\n if (!mSeries.isEmpty()) {\n int seriesCount = mSeries.size();\n float maxValue = 0.f;\n float minValue = Float.MAX_VALUE;\n mNegativeValue = 0.f;\n mNegativeOffset = 0.f;\n mHasNegativeValues = false;\n for (ValueLineSeries series : mSeries) {\n for (ValueLinePoint point : series.getSeries()) {\n if (point.getValue() > maxValue)\n maxValue = point.getValue();\n if (point.getValue() < mNegativeValue)\n mNegativeValue = point.getValue();\n if (point.getValue() < minValue)\n minValue = point.getValue();\n }\n }\n if (mShowStandardValues) {\n for (StandardValue value : mStandardValues) {\n if (value.getValue() > maxValue)\n maxValue = value.getValue();\n if (value.getValue() < mNegativeValue)\n mNegativeValue = value.getValue();\n if (value.getValue() < minValue)\n minValue = value.getValue();\n }\n }\n if (!mUseDynamicScaling) {\n minValue = 0;\n } else {\n minValue *= mScalingFactor;\n }\n if (mNegativeValue < 0) {\n mHasNegativeValues = true;\n maxValue += (mNegativeValue * -1);\n minValue = 0;\n }\n float heightMultiplier = mUsableGraphHeight / (maxValue - minValue);\n if (mHasNegativeValues) {\n mNegativeOffset = (mNegativeValue * -1) * heightMultiplier;\n }\n if (mShowStandardValues) {\n for (StandardValue value : mStandardValues) {\n value.setY((int) (mGraphHeight - mNegativeOffset - ((value.getValue() - minValue) * heightMultiplier)));\n }\n }\n for (ValueLineSeries series : mSeries) {\n int seriesPointCount = series.getSeries().size();\n if (seriesPointCount <= 1) {\n Log.w(LOG_TAG, \"String_Node_Str\");\n } else {\n float widthOffset = (float) mGraphWidth / (float) seriesPointCount;\n widthOffset += widthOffset / seriesPointCount;\n float currentOffset = 0;\n series.setWidthOffset(widthOffset);\n float firstX = currentOffset;\n float firstY = mGraphHeight - ((series.getSeries().get(0).getValue() - minValue) * heightMultiplier);\n Path path = new Path();\n path.moveTo(firstX, firstY);\n series.getSeries().get(0).setCoordinates(new Point2D(firstX, firstY));\n if (mUseCubic) {\n Point2D P1 = new Point2D();\n Point2D P2 = new Point2D();\n Point2D P3 = new Point2D();\n for (int i = 0; i < seriesPointCount - 1; i++) {\n int i3 = (seriesPointCount - i) < 3 ? i + 1 : i + 2;\n float offset2 = (seriesPointCount - i) < 3 ? mGraphWidth : currentOffset + widthOffset;\n float offset3 = (seriesPointCount - i) < 3 ? mGraphWidth : currentOffset + (2 * widthOffset);\n P1.setX(currentOffset);\n P1.setY(mGraphHeight - ((series.getSeries().get(i).getValue() - minValue) * heightMultiplier));\n P2.setX(offset2);\n P2.setY(mGraphHeight - ((series.getSeries().get(i + 1).getValue() - minValue) * heightMultiplier));\n Utils.calculatePointDiff(P1, P2, P1, mSecondMultiplier);\n P3.setX(offset3);\n P3.setY(mGraphHeight - ((series.getSeries().get(i3).getValue() - minValue) * heightMultiplier));\n Utils.calculatePointDiff(P2, P3, P3, mFirstMultiplier);\n currentOffset += widthOffset;\n series.getSeries().get(i + 1).setCoordinates(new Point2D(P2.getX(), P2.getY()));\n path.cubicTo(P1.getX(), P1.getY(), P2.getX(), P2.getY(), P3.getX(), P3.getY());\n }\n } else {\n boolean first = true;\n int count = 1;\n for (ValueLinePoint point : series.getSeries()) {\n if (first) {\n first = false;\n continue;\n }\n currentOffset += widthOffset;\n if (count == seriesPointCount - 1) {\n if (currentOffset < mGraphWidth) {\n currentOffset = mGraphWidth;\n }\n }\n point.setCoordinates(new Point2D(currentOffset, mGraphHeight - ((point.getValue() - minValue) * heightMultiplier)));\n path.lineTo(point.getCoordinates().getX(), point.getCoordinates().getY());\n count++;\n }\n }\n if (mUseOverlapFill || seriesCount == 1) {\n path.lineTo(mGraphWidth, mGraphHeight);\n path.lineTo(0, mGraphHeight);\n path.lineTo(firstX, firstY);\n }\n series.setPath(path);\n }\n }\n if (!mUseCustomLegend) {\n if (calculateLegendBounds())\n Utils.calculateLegendInformation(mSeries.get(0).getSeries(), 0, mGraphWidth, mLegendPaint);\n }\n if (mShowIndicator && mSeries.size() == 1) {\n int size = mSeries.get(0).getSeries().size();\n int index;\n if (size > 1) {\n if (size == 3) {\n index = size / 2;\n } else {\n index = (size / 2) - 1;\n }\n mFocusedPoint = mSeries.get(0).getSeries().get(index);\n mTouchedArea = mFocusedPoint.getCoordinates();\n calculateValueTextHeight();\n }\n }\n resetZoom(false);\n }\n super.onDataChanged();\n}\n"
"protected static DesignElementHandle performInsertDataSetColumn(ResultSetColumnHandle model, Object target, Object targetParent) throws SemanticException {\n DataItemHandle dataHandle = DesignElementFactory.getInstance().newDataItem(null);\n DataSetHandle dataSet = getDataSet(model);\n if (targetParent instanceof TableHandle) {\n TableHandle tableHandle = (TableHandle) targetParent;\n if (tableHandle.isSummaryTable()) {\n setDataSet(tableHandle, dataSet);\n setDataItemAction(model, dataHandle);\n if (DesignChoiceConstants.ANALYSIS_TYPE_DIMENSION.equals(UIUtil.getColumnAnalysis(model))) {\n ComputedColumn bindingColumn = StructureFactory.newComputedColumn(tableHandle, model.getColumnName());\n bindingColumn.setDataType(model.getDataType());\n ExpressionUtility.setBindingColumnExpression(model, bindingColumn);\n bindingColumn.setDisplayName(UIUtil.getColumnDisplayName(model));\n String displayKey = UIUtil.getColumnDisplayNameKey(model);\n if (displayKey != null)\n bindingColumn.setDisplayNameID(displayKey);\n tableHandle.addColumnBinding(bindingColumn, false);\n dataHandle.setResultSetColumn(model.getColumnName());\n SlotHandle slotHandle = tableHandle.getGroups();\n for (Object o : slotHandle.getContents()) {\n GroupHandle group = (GroupHandle) o;\n if (group.getName().equals(model.getColumnName())) {\n if (target instanceof CellHandle) {\n CellHandle cellTarget = (CellHandle) target;\n if (cellTarget.getContent().getCount() == 0) {\n return dataHandle;\n }\n }\n return null;\n }\n }\n int index = -1;\n if (target instanceof CellHandle) {\n CellHandle cellTarget = (CellHandle) target;\n CellHandleAdapter cellAdapter = HandleAdapterFactory.getInstance().getCellHandleAdapter(cellTarget);\n index = cellAdapter.getColumnNumber();\n }\n return addGroupHandle(tableHandle, model, dataHandle, index - 1);\n } else if (DesignChoiceConstants.ANALYSIS_TYPE_ATTRIBUTE.equals(UIUtil.getColumnAnalysis(model))) {\n DataSetHandle dataset = getDataSet(model);\n String str = UIUtil.getAnalysisColumn(model);\n String type = \"String_Node_Str\";\n ResultSetColumnHandle newResultColumn = null;\n if (str != null) {\n List columnList = DataUtil.getColumnList(dataset);\n for (int i = 0; i < columnList.size(); i++) {\n ResultSetColumnHandle resultSetColumn = (ResultSetColumnHandle) columnList.get(i);\n if (temp != null && (temp.getAlias().equals(resultSetColumn.getColumnName()) || temp.getColumnName().equals((resultSetColumn.getColumnName())))) {\n newResultColumn = resultSetColumn;\n break;\n }\n }\n List<ColumnHintHandle> columnHints = DataUtil.getColumnHints(dataset);\n for (ColumnHintHandle columnHint : columnHints) {\n if (str.equals(columnHint.getColumnName()) || str.equals(columnHint.getAlias())) {\n type = columnHint.getAnalysis();\n break;\n }\n }\n if (DesignChoiceConstants.ANALYSIS_TYPE_DIMENSION.equals(type)) {\n boolean hasGroup = false;\n SlotHandle slotHandle = tableHandle.getGroups();\n for (Object o : slotHandle.getContents()) {\n GroupHandle group = (GroupHandle) o;\n if (group.getName().equals(str))\n hasGroup = true;\n }\n if (!hasGroup) {\n ComputedColumn bindingColumn = StructureFactory.newComputedColumn(tableHandle, model.getColumnName());\n bindingColumn.setDataType(model.getDataType());\n ExpressionUtility.setBindingColumnExpression(model, bindingColumn);\n bindingColumn.setDisplayName(UIUtil.getColumnDisplayName(model));\n String displayKey = UIUtil.getColumnDisplayNameKey(model);\n if (displayKey != null)\n bindingColumn.setDisplayNameID(displayKey);\n tableHandle.addColumnBinding(bindingColumn, false);\n dataHandle.setResultSetColumn(model.getColumnName());\n bindingColumn = StructureFactory.newComputedColumn(tableHandle, newResultColumn.getColumnName());\n bindingColumn.setDataType(newResultColumn.getDataType());\n ExpressionUtility.setBindingColumnExpression(newResultColumn, bindingColumn);\n bindingColumn.setDisplayName(UIUtil.getColumnDisplayName(newResultColumn));\n displayKey = UIUtil.getColumnDisplayNameKey(newResultColumn);\n if (displayKey != null)\n bindingColumn.setDisplayNameID(displayKey);\n tableHandle.addColumnBinding(bindingColumn, false);\n int index = -1;\n if (target instanceof CellHandle) {\n CellHandle cellTarget = (CellHandle) target;\n CellHandleAdapter cellAdapter = HandleAdapterFactory.getInstance().getCellHandleAdapter(cellTarget);\n index = cellAdapter.getColumnNumber();\n }\n return addGroupHandle(tableHandle, newResultColumn, dataHandle, index - 1);\n }\n }\n }\n if (target instanceof CellHandle) {\n ComputedColumn column = StructureFactory.newComputedColumn(tableHandle, model.getColumnName());\n column.setDataType(model.getDataType());\n ExpressionUtility.setBindingColumnExpression(model, column);\n ComputedColumnHandle binding = DEUtil.addColumn(tableHandle, column, false);\n dataHandle.setResultSetColumn(binding.getName());\n InsertInLayoutRule rule = new LabelAddRule(target);\n if (rule.canInsert()) {\n LabelHandle label = DesignElementFactory.getInstance().newLabel(null);\n label.setText(UIUtil.getColumnDisplayName(model));\n rule.insert(label);\n }\n rule = new GroupKeySetRule(target, model);\n if (rule.canInsert()) {\n rule.insert(model);\n }\n return dataHandle;\n }\n } else if (DesignChoiceConstants.ANALYSIS_TYPE_MEASURE.equals(UIUtil.getColumnAnalysis(model))) {\n CellHandle cellHandle = (CellHandle) target;\n ComputedColumn column = StructureFactory.newComputedColumn(tableHandle, model.getColumnName());\n ExpressionUtility.setBindingColumnExpression(model, column);\n column.setDataType(model.getDataType());\n ComputedColumnHandle binding = DEUtil.addColumn(tableHandle, column, false);\n DesignElementHandle group = cellHandle.getContainer().getContainer();\n if (group instanceof GroupHandle) {\n binding.setAggregateOn(((GroupHandle) group).getName());\n } else {\n binding.setAggregateOn(null);\n }\n if (DesignChoiceConstants.COLUMN_DATA_TYPE_INTEGER.equals(model.getDataType()) || DesignChoiceConstants.COLUMN_DATA_TYPE_FLOAT.equals(model.getDataType()) || DesignChoiceConstants.COLUMN_DATA_TYPE_DECIMAL.equals(model.getDataType())) {\n binding.setAggregateFunction(DesignChoiceConstants.MEASURE_FUNCTION_SUM);\n } else {\n binding.setAggregateFunction(DesignChoiceConstants.MEASURE_FUNCTION_MAX);\n }\n dataHandle.setResultSetColumn(binding.getName());\n InsertInLayoutRule rule = new LabelAddRule(target);\n if (rule.canInsert()) {\n LabelHandle label = DesignElementFactory.getInstance().newLabel(null);\n label.setText(UIUtil.getColumnDisplayName(model));\n rule.insert(label);\n }\n rule = new GroupKeySetRule(target, model);\n if (rule.canInsert()) {\n rule.insert(model);\n }\n return dataHandle;\n }\n }\n }\n dataHandle.setResultSetColumn(model.getColumnName());\n formatDataHandle(dataHandle, model);\n if (targetParent instanceof ReportItemHandle) {\n ReportItemHandle container = (ReportItemHandle) targetParent;\n ReportItemHandle root = DEUtil.getBindingRoot(container);\n if (root == null) {\n container = DEUtil.getListingContainer(container);\n if (container == null) {\n ComputedColumn bindingColumn = createBindingColumn(target, dataHandle, model);\n setDataSet(dataHandle, dataSet);\n dataHandle.addColumnBinding(bindingColumn, false);\n } else {\n ComputedColumn bindingColumn = createBindingColumn(target, container, model);\n setDataSet(container, dataSet);\n container.addColumnBinding(bindingColumn, false);\n }\n } else if (root.getDataSet() == dataSet || (getAdapter() != null && root.getDataSet() != null && getAdapter().resolveExtendedData(root.getDataSet()).equals(getAdapter().resolveExtendedData(dataSet)))) {\n container = DEUtil.getBindingHolder(container);\n ComputedColumn bindingColumn = createBindingColumn(target, container, model);\n container.addColumnBinding(bindingColumn, false);\n } else {\n ReportItemHandle listingHandle = DEUtil.getListingContainer(container);\n if (listingHandle != null && DEUtil.getBindingRoot(listingHandle) == root && DEUtil.getBindingHolder(listingHandle) != listingHandle) {\n ComputedColumn bindingColumn = createBindingColumn(target, listingHandle, model);\n setDataSet(listingHandle, dataSet);\n listingHandle.addColumnBinding(bindingColumn, false);\n }\n }\n } else {\n ComputedColumn bindingColumn = StructureFactory.newComputedColumn(dataHandle, model.getColumnName());\n bindingColumn.setDataType(model.getDataType());\n ExpressionUtility.setBindingColumnExpression(model, bindingColumn);\n bindingColumn.setDisplayName(UIUtil.getColumnDisplayName(model));\n String displayKey = UIUtil.getColumnDisplayNameKey(model);\n if (displayKey != null)\n bindingColumn.setDisplayNameID(displayKey);\n if (target instanceof DesignElementHandle) {\n if (ExpressionUtil.hasAggregation(bindingColumn.getExpression())) {\n String groupType = DEUtil.getGroupControlType((DesignElementHandle) target);\n if (groupType.equals(DEUtil.TYPE_GROUP_GROUP))\n bindingColumn.setAggregateOn(((GroupHandle) DEUtil.getGroups((DesignElementHandle) target).get(0)).getName());\n else if (groupType.equals(DEUtil.TYPE_GROUP_LISTING))\n bindingColumn.setAggregateOn(null);\n }\n }\n dataHandle.addColumnBinding(bindingColumn, false);\n setDataSet(dataHandle, dataSet);\n }\n setDataItemAction(model, dataHandle);\n InsertInLayoutRule rule = new LabelAddRule(target);\n if (rule.canInsert()) {\n LabelHandle label = DesignElementFactory.getInstance().newLabel(null);\n label.setText(UIUtil.getHeadColumnDisplayName(model));\n String displayKey = UIUtil.getColumnHeaderDisplayNameKey(model);\n if (displayKey == null) {\n displayKey = UIUtil.getColumnDisplayNameKey(model);\n }\n if (displayKey != null) {\n label.setTextKey(displayKey);\n }\n rule.insert(label);\n }\n rule = new GroupKeySetRule(target, model);\n if (rule.canInsert()) {\n rule.insert(model);\n }\n return dataHandle;\n}\n"
"public int getCurrentID() {\n if (Item.itemsList[ID + 256] != null) {\n int end = ID + 256;\n throw new IndexOutOfBoundsException(\"String_Node_Str\" + end + \"String_Node_Str\" + Item.itemsList[ID + 256].getUnlocalizedName());\n }\n return ID;\n}\n"
"private void registerPlayerSkinListener() {\n PacketListener spawnListener = new PacketAdapter(PacketAdapter.params(SkinsRestorer.getInstance(), PacketType.Play.Server.NAMED_ENTITY_SPAWN).listenerPriority(ListenerPriority.HIGHEST)) {\n\n public void onPacketSending(PacketEvent event) {\n StructureModifier<GameProfile> profiles = event.getPacket().getSpecificModifier(GameProfile.class);\n GameProfile profile = profiles.read(0);\n String name = profile.getName();\n SkinsRestorer.getInstance().logDebug(\"String_Node_Str\" + name);\n if (SkinsRestorer.getInstance().getSkinStorage().hasLoadedSkinData(name)) {\n SkinsRestorer.getInstance().logDebug(\"String_Node_Str\" + name);\n SkinProfile skinprofile = SkinsRestorer.getInstance().getSkinStorage().getLoadedSkinData(name);\n profiles.write(0, ProfileUtils.recreateProfile(profile, skinprofile, false));\n }\n }\n };\n ProtocolLibrary.getProtocolManager().addPacketListener(spawnListener);\n}\n"
"public Map<String, List<String>> getPermissionsMap() {\n Map<String, List<String>> allPermissions = new HashMap<>();\n List<String> commonPermissions = this.node.getStringList(\"String_Node_Str\");\n if (commonPermissions != null) {\n allPermissions.put(null, Collections.unmodifiableList(commonPermissions));\n }\n ConfigurationSection worldsSection = this.node.getConfigurationSection(\"String_Node_Str\");\n if (worldsSection != null) {\n for (String world : worldsSection.getKeys(false)) {\n List<String> worldPermissions = this.node.getStringList(FileBackend.buildPath(\"String_Node_Str\", world, \"String_Node_Str\"));\n if (commonPermissions != null) {\n allPermissions.put(world, worldPermissions);\n }\n }\n }\n return allPermissions;\n}\n"
"public boolean isResolved() {\n return this.method != null && this.method.getType().isResolved();\n}\n"
"protected soot.Local handlePrivateFieldSet(polyglot.ast.Expr expr, soot.Value right) {\n if (expr instanceof soot.javaToJimple.jj.ast.JjAccessField_c) {\n soot.javaToJimple.jj.ast.JjAccessField_c accessField = (soot.javaToJimple.jj.ast.JjAccessField_c) expr;\n return handleCall(accessField.field(), accessField.setMeth(), right, null);\n } else {\n return ext().handlePrivateFieldSet(expr, right);\n }\n}\n"
"private void appendRawContactsByNormalizedNameFilter(StringBuilder sb, String normalizedName, boolean allowEmailMatch) {\n sb.append(\"String_Node_Str\" + \"String_Node_Str\" + NameLookupColumns.RAW_CONTACT_ID + \"String_Node_Str\" + Tables.NAME_LOOKUP + \"String_Node_Str\" + NameLookupColumns.NORMALIZED_NAME + \"String_Node_Str\");\n sb.append(normalizedName);\n sb.append(\"String_Node_Str\" + NameLookupColumns.NAME_TYPE + \"String_Node_Str\" + NameLookupType.NAME_COLLATION_KEY + \"String_Node_Str\" + NameLookupType.NICKNAME + \"String_Node_Str\" + NameLookupType.NAME_SHORTHAND + \"String_Node_Str\" + NameLookupType.ORGANIZATION);\n if (allowEmailMatch) {\n sb.append(\"String_Node_Str\" + NameLookupType.EMAIL_BASED_NICKNAME);\n }\n sb.append(\"String_Node_Str\");\n}\n"
"private Map<String, Integer> loadMRResult(File outputDir) throws IOException {\n Map<String, Integer> output = Maps.newTreeMap();\n BufferedReader reader = Files.newReader(new File(outputDir, \"String_Node_Str\"), Charsets.UTF_8);\n try {\n String line = reader.readLine();\n while (line != null) {\n int idx = line.indexOf('\\t');\n output.put(line.substring(0, idx), Integer.parseInt(line.substring(idx + 1)));\n line = reader.readLine();\n }\n } finally {\n reader.close();\n }\n return output;\n}\n"
"public void bindView(View view, Context context, Cursor cursor) {\n final ContactListItemCache cache = (ContactListItemCache) view.getTag();\n TextView dataView = cache.dataView;\n TextView labelView = cache.labelView;\n int typeColumnIndex;\n int dataColumnIndex;\n int labelColumnIndex;\n int defaultType;\n int nameColumnIndex;\n boolean displayAdditionalData = mDisplayAdditionalData;\n switch(mMode) {\n case MODE_PICK_PHONE:\n case MODE_LEGACY_PICK_PHONE:\n {\n nameColumnIndex = PHONE_DISPLAY_NAME_COLUMN_INDEX;\n dataColumnIndex = PHONE_NUMBER_COLUMN_INDEX;\n typeColumnIndex = PHONE_TYPE_COLUMN_INDEX;\n labelColumnIndex = PHONE_LABEL_COLUMN_INDEX;\n defaultType = Phone.TYPE_HOME;\n break;\n }\n case MODE_PICK_POSTAL:\n case MODE_LEGACY_PICK_POSTAL:\n {\n nameColumnIndex = POSTAL_DISPLAY_NAME_COLUMN_INDEX;\n dataColumnIndex = POSTAL_ADDRESS_COLUMN_INDEX;\n typeColumnIndex = POSTAL_TYPE_COLUMN_INDEX;\n labelColumnIndex = POSTAL_LABEL_COLUMN_INDEX;\n defaultType = StructuredPostal.TYPE_HOME;\n break;\n }\n default:\n {\n nameColumnIndex = SUMMARY_NAME_COLUMN_INDEX;\n dataColumnIndex = -1;\n typeColumnIndex = -1;\n labelColumnIndex = -1;\n defaultType = Phone.TYPE_HOME;\n displayAdditionalData = false;\n }\n }\n cursor.copyStringToBuffer(nameColumnIndex, cache.nameBuffer);\n int size = cache.nameBuffer.sizeCopied;\n if (size != 0) {\n cache.nameView.setText(cache.nameBuffer.data, 0, size);\n } else {\n cache.nameView.setText(mUnknownNameText);\n }\n if (mDisplayPhotos) {\n long photoId = 0;\n if (!cursor.isNull(SUMMARY_PHOTO_ID_COLUMN_INDEX)) {\n photoId = cursor.getLong(SUMMARY_PHOTO_ID_COLUMN_INDEX);\n }\n if (photoId == 0) {\n cache.photoView.setImageResource(R.drawable.ic_contact_list_picture);\n } else {\n cache.photoView.setImageBitmap(null);\n Bitmap photo = null;\n SoftReference<Bitmap> ref = mBitmapCache.get(photoId);\n if (ref != null) {\n photo = ref.get();\n if (photo == null) {\n mBitmapCache.remove(photoId);\n }\n }\n if (photo != null) {\n cache.photoView.setImageBitmap(photo);\n } else {\n cache.photoView.setTag(photoId);\n cache.photoView.setImageResource(R.drawable.ic_contact_list_picture);\n mItemsMissingImages.add(cache.photoView);\n if (mScrollState != OnScrollListener.SCROLL_STATE_FLING) {\n sendFetchImageMessage(cache.photoView);\n } else {\n mItemsMissingImages.add(cache.photoView);\n }\n }\n }\n }\n if (!displayAdditionalData) {\n cache.dataView.setVisibility(View.GONE);\n cache.labelView.setVisibility(View.GONE);\n cache.presenceView.setVisibility(View.GONE);\n return;\n }\n cursor.copyStringToBuffer(dataColumnIndex, cache.dataBuffer);\n size = cache.dataBuffer.sizeCopied;\n if (size != 0) {\n dataView.setText(cache.dataBuffer.data, 0, size);\n dataView.setVisibility(View.VISIBLE);\n } else {\n dataView.setVisibility(View.GONE);\n }\n if (!cursor.isNull(typeColumnIndex)) {\n labelView.setVisibility(View.VISIBLE);\n int type = cursor.getInt(typeColumnIndex);\n if (type != CommonDataKinds.BaseTypes.TYPE_CUSTOM) {\n try {\n labelView.setText(mLocalizedLabels[type - 1]);\n } catch (ArrayIndexOutOfBoundsException e) {\n labelView.setText(mLocalizedLabels[defaultType - 1]);\n }\n } else {\n cursor.copyStringToBuffer(labelColumnIndex, cache.labelBuffer);\n labelView.setText(cache.labelBuffer.data, 0, cache.labelBuffer.sizeCopied);\n }\n } else {\n labelView.setVisibility(View.GONE);\n }\n ImageView presenceView = cache.presenceView;\n if ((mMode & MODE_MASK_NO_PRESENCE) == 0) {\n int serverStatus;\n if (!cursor.isNull(SUMMARY_PRESENCE_STATUS_COLUMN_INDEX)) {\n serverStatus = cursor.getInt(SUMMARY_PRESENCE_STATUS_COLUMN_INDEX);\n presenceView.setImageResource(Presence.getPresenceIconResourceId(serverStatus));\n presenceView.setVisibility(View.VISIBLE);\n } else {\n presenceView.setVisibility(View.GONE);\n }\n } else {\n presenceView.setVisibility(View.GONE);\n }\n}\n"
"public ICodePosition getPosition() {\n return this.position;\n}\n"
"public long read(long fd, long buf, int len, long offset) {\n if (fd == this.fd) {\n this.fd = -1;\n return -1;\n }\n return super.read(fd, buf, len, offset);\n}\n"
"public void onClick(View v) {\n setPreferences();\n TextView textView = (TextView) view.findViewById(R.id.passwordText);\n textView.setText(pwgen.generate(callingActivity.getApplicationContext()).get(0));\n}\n"
"public void run() {\n String hostname = \"String_Node_Str\";\n String url = \"String_Node_Str\";\n participantPortalRegistrar = new ParticipantPortalRegistrar();\n try {\n hostname = participantPortalRegistrar.getStudyHost(studyBean.getOid());\n } catch (Exception e) {\n e.printStackTrace();\n }\n for (String email : listOfEmails) {\n if (email.trim().equals(\"String_Node_Str\")) {\n pDTO = getParticipantInfo(uBean);\n if (pDTO != null) {\n String msg = null;\n String eSubject = null;\n msg = message.replaceAll(\"String_Node_Str\", pDTO.getAccessCode());\n msg = msg.replaceAll(\"String_Node_Str\", pDTO.getfName());\n eSubject = emailSubject.replaceAll(\"String_Node_Str\", pDTO.getAccessCode());\n eSubject = eSubject.replaceAll(\"String_Node_Str\", pDTO.getfName());\n String loginUrl = url + \"String_Node_Str\" + pDTO.getAccessCode() + \"String_Node_Str\";\n msg = msg.replaceAll(\"String_Node_Str\", loginUrl);\n eSubject = eSubject.replaceAll(\"String_Node_Str\", loginUrl);\n msg = msg.replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n eSubject = eSubject.replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n pDTO.setMessage(msg);\n pDTO.setEmailSubject(eSubject);\n try {\n participantPortalRegistrar.sendEmailThruMandrillViaOcui(pDTO);\n } catch (Exception e) {\n e.getStackTrace();\n }\n System.out.println(pDTO.getMessage() + \"String_Node_Str\" + pDTO.getEmailAccount() + \"String_Node_Str\");\n } else {\n pDTO = new ParticipantDTO();\n String msg = null;\n msg = message.replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n msg = msg.replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n msg = msg.replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n msg = msg.replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n pDTO.setMessage(msg);\n String eSubject = null;\n eSubject = emailSubject.replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n eSubject = eSubject.replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n eSubject = eSubject.replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n eSubject = eSubject.replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n pDTO.setEmailSubject(eSubject);\n }\n } else {\n pDTO.setEmailAccount(email.trim());\n System.out.println();\n execute(ExecutionMode.SAVE, ruleActionBean, pDTO);\n System.out.println(pDTO.getMessage() + \"String_Node_Str\" + pDTO.getEmailAccount() + \"String_Node_Str\");\n }\n }\n}\n"
"protected String getPropertyBindings(URI uri, SemanticPersistentEntity<?> entity, Map<String, Object> propertyToValue, MappingPolicy globalMappingPolicy) {\n StringBuilder sb = new StringBuilder();\n String subjectBinding = getSubjectBinding(uri, entity);\n AbstractPropertiesToQueryHandler.appendPattern(sb, subjectBinding, \"String_Node_Str\", \"String_Node_Str\" + entity.getRDFType() + \"String_Node_Str\");\n PropertiesToBindingsHandler handler = new PropertiesToBindingsHandler(sb, subjectBinding, propertyToValue, this.mappingContext, globalMappingPolicy, originalPredicates);\n entity.doWithProperties(handler);\n entity.doWithAssociations(handler);\n return sb.toString();\n}\n"
"void removeBindings(Collection<Binding> removes) {\n for (List<LoadPropertyBinding> bindings : _loadAfterBindings.values()) {\n bindings.removeAll(removes);\n }\n for (List<SavePropertyBinding> bindings : _saveAfterBindings.values()) {\n bindings.removeAll(removes);\n }\n for (List<LoadPropertyBinding> bindings : _loadBeforeBindings.values()) {\n bindings.removeAll(removes);\n }\n for (List<SavePropertyBinding> bindings : _saveBeforeBindings.values()) {\n bindings.removeAll(removes);\n }\n}\n"
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n Intent intent = getIntent();\n if (intent == null || !intent.hasExtra(EXTRA_PERMISSIONS)) {\n finish();\n return;\n }\n getWindow().setStatusBarColor(0);\n allPermissions = (ArrayList<String>) intent.getSerializableExtra(EXTRA_PERMISSIONS);\n options = (Permissions.Options) intent.getSerializableExtra(EXTRA_OPTIONS);\n if (options == null) {\n options = new Permissions.Options();\n }\n deniedPermissions = new ArrayList<>();\n noRationaleList = new ArrayList<>();\n boolean noRationale = true;\n for (String permission : allPermissions) {\n if (checkSelfPermission(permission) != PackageManager.PERMISSION_GRANTED) {\n deniedPermissions.add(permission);\n if (shouldShowRequestPermissionRationale(permission)) {\n noRationale = false;\n } else {\n noRationaleList.add(permission);\n }\n }\n }\n String rationale = intent.getStringExtra(EXTRA_RATIONALE);\n if (noRationale || TextUtils.isEmpty(rationale)) {\n Permissions.log(\"String_Node_Str\");\n requestPermissions(toArray(deniedPermissions), RC_PERMISSION);\n } else {\n Permissions.log(\"String_Node_Str\");\n showRationale(rationale);\n }\n}\n"
"public static void main(String[] args) throws Exception {\n InverseFunctionalObjectPropertyAxiomLearner l = new InverseFunctionalObjectPropertyAxiomLearner(new SparqlEndpointKS(SparqlEndpoint.getEndpointDBpediaLiveAKSW()));\n l.setPropertyToDescribe(new OWLDataFactoryImpl().getOWLObjectProperty(IRI.create(\"String_Node_Str\")));\n l.setMaxExecutionTimeInSeconds(5);\n l.setForceSPARQL_1_0_Mode(true);\n l.init();\n l.start();\n List<EvaluatedAxiom<OWLInverseFunctionalObjectPropertyAxiom>> axioms = l.getCurrentlyBestEvaluatedAxioms(5);\n System.out.println(axioms);\n for (EvaluatedAxiom<OWLInverseFunctionalObjectPropertyAxiom> axiom : axioms) {\n l.explainScore(axiom);\n }\n}\n"
"public String toString() {\n return \"String_Node_Str\" + content + \"String_Node_Str\" + name + \"String_Node_Str\" + tagAttributes + \"String_Node_Str\" + items + \"String_Node_Str\";\n}\n"
"public Iterator<List<T>> getCellsNear(Point3d pos) {\n if (!myIndexListInitialized)\n setupListsToNeighbours();\n int xIdx = (int) Math.round(pos.x / myGridSpacing);\n int yIdx = (int) Math.round(pos.y / myGridSpacing);\n int zIdx = (int) Math.round(pos.z / myGridSpacing);\n List<List<T>> list = myIndexList.get(new Index(xIdx, yIdx, zIdx));\n if (list == null) {\n return getCellsNearOld(pos);\n }\n Iterator<List<T>> it = list.listIterator();\n return it;\n}\n"
"private List<FileStatus> getFiles(final Path p, List<FileStatus> target) throws IOException {\n for (FileStatus f : getFileSystem().listStatus(p)) {\n if (f.isFile()) {\n target.add(f);\n }\n if (f.isDirectory() && recursive) {\n getFiles(f.getPath(), target, recursive);\n }\n }\n return target;\n}\n"
"protected void onImpact() {\n if (!world.isRemote) {\n newExplosion(world, shootingEntity, posX, posY, posZ, explosionSize, true, world.getGameRules().getBoolean(\"String_Node_Str\"));\n this.setDead();\n }\n}\n"
"public static String getText(HumanNPC npc, Player player) {\n String name = StringUtils.stripColour(npc.getStrippedName());\n ArrayDeque<String> array = NPCManager.getText(npc.getUID());\n String text = \"String_Node_Str\";\n if (array != null && array.size() > 0) {\n text = array.pop();\n array.addLast(text);\n NPCManager.setText(npc.getUID(), array);\n }\n if (text.isEmpty()) {\n text = UtilityProperties.getDefaultText();\n }\n if (!text.isEmpty()) {\n if (Constants.useNPCColours) {\n text = Constants.chatFormat.replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", npc.getStrippedName()) + text;\n } else {\n text = Constants.chatFormat.replace(\"String_Node_Str\", Constants.npcColour + name + ChatColor.WHITE).replace(\"String_Node_Str\", \"String_Node_Str\") + text;\n }\n return text;\n }\n return \"String_Node_Str\";\n}\n"
"private void doInstallOneSwitchFlow(final CommandMessage message, String replyToTopic, Destination replyDestination) throws FlowCommandException {\n InstallOneSwitchFlow command = (InstallOneSwitchFlow) message.getData();\n logger.debug(\"String_Node_Str\", command);\n Long meterId = command.getMeterId();\n if (meterId == null) {\n logger.error(\"String_Node_Str\", command.getCookie());\n meterId = (long) meterPool.allocate(command.getSwitchId(), command.getId());\n logger.error(\"String_Node_Str\", meterId, command.getCookie());\n }\n try {\n context.getSwitchManager().installMeter(DatapathId.of(command.getSwitchId()), command.getBandwidth(), 1024, meterId);\n OutputVlanType directOutputVlanType = command.getOutputVlanType();\n context.getSwitchManager().installOneSwitchFlow(DatapathId.of(command.getSwitchId()), command.getId(), command.getCookie(), command.getInputPort(), command.getOutputPort(), command.getInputVlanId(), command.getOutputVlanId(), directOutputVlanType, meterId);\n if (!StringUtils.isBlank(replyToTopic)) {\n message.setDestination(replyDestination);\n context.getKafkaProducer().postMessage(replyToTopic, message);\n }\n } catch (SwitchOperationException e) {\n throw new FlowCommandException(command.getId(), ErrorType.CREATION_FAILURE, e);\n }\n}\n"
"public static void init(FMLInitializationEvent event) {\n LogHelper.debug(\"String_Node_Str\");\n ResourceCrops.init();\n Seeds.init();\n NetworkRegistry.INSTANCE.registerGuiHandler(instance, new GuiHandler());\n proxy.registerTileEntities();\n proxy.registerRenderers();\n ModIntegration.init();\n LogHelper.info(\"String_Node_Str\");\n}\n"
"protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {\n mainForm.setStandaloneRendering(true);\n mainForm.setMultipartEnabled(true);\n qtiEl = new AssessmentTestFormItem(\"String_Node_Str\");\n formLayout.add(\"String_Node_Str\", qtiEl);\n ResourceLocator fileResourceLocator = new PathResourceLocator(fUnzippedDirRoot.toPath());\n final ResourceLocator inputResourceLocator = ImsQTI21Resource.createResolvingResourceLocator(fileResourceLocator);\n qtiEl.setResourceLocator(inputResourceLocator);\n qtiEl.setTestSessionController(testSessionController);\n qtiEl.setAssessmentObjectUri(qtiService.createAssessmentObjectUri(fUnzippedDirRoot));\n qtiEl.setCandidateSessionContext(AssessmentTestDisplayController.this);\n qtiEl.setMapperUri(mapperUri);\n}\n"
"protected ClassLoader createClassLoaderFromContext(ClassLoader parent) {\n Map appContext = context.getAppContext();\n if (appContext != null) {\n Object appLoader = appContext.get(EngineConstants.APPCONTEXT_CLASSLOADER_KEY);\n if (appLoader instanceof ClassLoader) {\n appClassLoader = new UnionClassLoader((ClassLoader) appLoader, systemClassLoader);\n }\n }\n return parent;\n}\n"
"private Position findMethod(IMethodInfo methodInfo) {\n ScriptParser parser = new ScriptParser(editor.getEditorText());\n Collection<IScriptMethodInfo> coll = parser.getAllMethodInfo();\n for (Iterator<IScriptMethodInfo> itr = coll.iterator(); itr.hasNext(); ) {\n IScriptMethodInfo mtd = itr.next();\n if (methodInfo.getName().equals(mtd.getName())) {\n return mtd.getPosition();\n }\n }\n return null;\n}\n"
"private ProtocolMetaData createProtocolMetadata(Cube cube, Archive<?> deployment) {\n Binding bindings = cube.bindings();\n HTTPContext httpContext = null;\n if (this.configuration.isEmbeddedPortSet()) {\n httpContext = new HTTPContext(bindings.getIP(), this.configuration.getEmbeddedPort());\n } else {\n if (bindings.getNumberOfPortBindings() == 1) {\n httpContext = new HTTPContext(bindings.getIP(), bindings.getFirstPortBinding().getBindingPort());\n } else {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n }\n if (containsArquillianServletProtocol(deployment)) {\n addArquillianTestServlet(deployment, httpContext);\n }\n return new ProtocolMetaData().addContext(httpContext);\n}\n"
"public static void register(Cluster cluster) {\n if (!(\"String_Node_Str\".equalsIgnoreCase(System.getProperty(ENABLE_JMX)) || System.getProperties().containsKey(\"String_Node_Str\"))) {\n return;\n }\n logger.log(Level.INFO, \"String_Node_Str\");\n if (showDetails()) {\n if (statCollectors == null) {\n statCollectors = new ScheduledThreadPoolExecutor(2);\n }\n }\n MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();\n try {\n ClusterMBean clusterMBean = new ClusterMBean(cluster);\n mbs.registerMBean(clusterMBean, clusterMBean.getObjectName());\n } catch (Exception e) {\n logger.log(Level.WARNING, \"String_Node_Str\", e);\n return;\n }\n try {\n if (dataMonitor == null) {\n dataMonitor = new DataMBean();\n }\n mbs.registerMBean(dataMonitor, null);\n } catch (Exception e) {\n logger.log(Level.WARNING, \"String_Node_Str\", e);\n }\n}\n"