content
stringlengths
40
137k
"public String getDataServiceVersion() throws ODataException {\n if (schemas == null) {\n schemas = edmProvider.getSchemas();\n }\n if (dataServiceVersion == null) {\n dataServiceVersion = ODataServiceVersion.V10;\n if (schemas != null) {\n for (Schema schema : schemas) {\n List<EntityType> entityTypes = schema.getEntityTypes();\n if (entityTypes != null) {\n for (EntityType entityType : entityTypes) {\n List<Property> properties = entityType.getProperties();\n if (properties != null) {\n for (Property property : properties) {\n if (property.getCustomizableFeedMappings() != null) {\n if (property.getCustomizableFeedMappings().getFcKeepInContent() != null) {\n if (!property.getCustomizableFeedMappings().getFcKeepInContent()) {\n dataServiceVersion = Edm.DATA_SERVICE_VERSION_20;\n return dataServiceVersion;\n }\n }\n }\n }\n if (entityType.getCustomizableFeedMappings() != null) {\n if (entityType.getCustomizableFeedMappings().getFcKeepInContent() != null) {\n if (entityType.getCustomizableFeedMappings().getFcKeepInContent()) {\n dataServiceVersion = Edm.DATA_SERVICE_VERSION_20;\n return dataServiceVersion;\n }\n }\n }\n }\n }\n }\n }\n }\n }\n return dataServiceVersion;\n}\n"
"public static List<OMNode> getMatchingNodes(final String xpath, final OMElement elt) throws MalformedConfigurationFileException {\n AXIOMXPath axiomXpath;\n List<OMNode> nodeList = null;\n try {\n axiomXpath = new AXIOMXPath(xpath);\n nodeList = axiomXpath.selectNodes(elt);\n return nodeList;\n } catch (JaxenException e) {\n String msg = \"String_Node_Str\" + xpath + \"String_Node_Str\";\n LOG.error(msg, e);\n throw new MalformedConfigurationFileException(msg, e);\n }\n}\n"
"private void deleteEntity(final InternalDataDefinition dataDefinition, final Long entityId) {\n Object databaseEntity = getDatabaseEntity(dataDefinition, entityId);\n checkNotNull(databaseEntity, \"String_Node_Str\", dataDefinition.getPluginIdentifier() + \"String_Node_Str\" + dataDefinition.getName(), entityId);\n Entity entity = get(dataDefinition, entityId);\n priorityService.deprioritizeEntity(dataDefinition, databaseEntity);\n Map<String, FieldDefinition> fields = dataDefinition.getFields();\n for (FieldDefinition fieldDefinition : fields.values()) {\n if (fieldDefinition.getType() instanceof HasManyType) {\n HasManyType hasManyFieldType = (HasManyType) fieldDefinition.getType();\n EntityList children = entity.getHasManyField(fieldDefinition.getName());\n InternalDataDefinition childDataDefinition = (InternalDataDefinition) hasManyFieldType.getDataDefinition();\n if (HasManyType.Cascade.NULLIFY.equals(hasManyFieldType.getCascade()) && children != null) {\n for (Entity child : children) {\n child.setField(hasManyFieldType.getJoinFieldName(), null);\n child = save(childDataDefinition, child);\n if (!child.isValid()) {\n throw new IllegalStateException(getConstraintViolationMessage(dataDefinition, entity));\n }\n }\n }\n }\n if (fieldDefinition.getType() instanceof TreeType) {\n TreeType treeFieldType = (TreeType) fieldDefinition.getType();\n EntityTree children = entity.getTreeField(fieldDefinition.getName());\n InternalDataDefinition childDataDefinition = (InternalDataDefinition) treeFieldType.getDataDefinition();\n if (TreeType.Cascade.NULLIFY.equals(treeFieldType.getCascade()) && children != null) {\n for (Entity child : children) {\n child.setField(treeFieldType.getJoinFieldName(), null);\n child = save(childDataDefinition, child);\n if (!child.isValid()) {\n throw new IllegalStateException(String.format(\"String_Node_Str\", expressionService.getValue(entity, dataDefinition.getIdentifierExpression(), Locale.ENGLISH)));\n }\n }\n }\n }\n }\n try {\n hibernateService.getCurrentSession().delete(databaseEntity);\n hibernateService.getCurrentSession().flush();\n } catch (ConstraintViolationException e) {\n throw new IllegalStateException(String.format(\"String_Node_Str\", expressionService.getValue(entity, dataDefinition.getIdentifierExpression(), Locale.ENGLISH)), e);\n }\n logEntityInfo(dataDefinition, entityId, \"String_Node_Str\");\n}\n"
"protected String getInsertDocPartDataStatement(String schemaName, MetaDocPart metaDocPart, Iterator<MetaField> metaFieldIterator, Iterator<MetaScalar> metaScalarIterator, Collection<InternalField<?>> internalFields, List<FieldType> fieldTypeList) {\n final StringBuilder insertStatementBuilder = new StringBuilder(2048);\n final StringBuilder insertStatementValuesBuilder = new StringBuilder(1024);\n insertStatementBuilder.append(\"String_Node_Str\").append(schemaName).append(\"String_Node_Str\").append(metaDocPart.getIdentifier()).append(\"String_Node_Str\");\n insertStatementValuesBuilder.append(\"String_Node_Str\");\n for (InternalField<?> internalField : internalFields) {\n insertStatementBuilder.append(\"String_Node_Str\").append(internalField.getName()).append(\"String_Node_Str\");\n insertStatementValuesBuilder.append(\"String_Node_Str\");\n }\n while (metaScalarIterator.hasNext()) {\n MetaScalar metaScalar = metaScalarIterator.next();\n insertStatementBuilder.append(\"String_Node_Str\").append(metaScalar.getIdentifier()).append(\"String_Node_Str\");\n insertStatementValuesBuilder.append(sqlHelper.getPlaceholder(type)).append(',');\n fieldTypeList.add(type);\n }\n while (metaFieldIterator.hasNext()) {\n MetaField metaField = metaFieldIterator.next();\n insertStatementBuilder.append(\"String_Node_Str\").append(metaField.getIdentifier()).append(\"String_Node_Str\");\n insertStatementValuesBuilder.append(\"String_Node_Str\");\n fieldTypeList.add(metaField.getType());\n }\n insertStatementBuilder.setCharAt(insertStatementBuilder.length() - 1, ')');\n insertStatementValuesBuilder.setCharAt(insertStatementValuesBuilder.length() - 1, ')');\n insertStatementBuilder.append(insertStatementValuesBuilder);\n String statement = insertStatementBuilder.toString();\n return statement;\n}\n"
"public void onNext(GenericOverall genericOverall) {\n if (genericOverall.getOcs().getMeta().getStatusCode() == 200 || genericOverall.getOcs().getMeta().getStatusCode() == 202) {\n HashMap<String, String> queryMap = new HashMap<>();\n queryMap.put(\"String_Node_Str\", finalPushConfigurationState.deviceIdentifier);\n queryMap.put(\"String_Node_Str\", finalPushConfigurationState.getUserPublicKey());\n queryMap.put(\"String_Node_Str\", finalPushConfigurationState.getDeviceIdentifierSignature());\n ncApi.unregisterDeviceForNotificationsWithProxy(ApiUtils.getCredentials(userEntity.getUsername(), userEntity.getToken()), ApiUtils.getUrlPushProxy(), queryMap).subscribeOn(Schedulers.newThread()).subscribe(new Observer<Void>() {\n\n public void onSubscribe(Disposable d) {\n }\n public void onNext(Void aVoid) {\n userUtils.deleteUser(userEntity.getUsername(), userEntity.getBaseUrl()).subscribe(new CompletableObserver() {\n public void onSubscribe(Disposable d) {\n }\n public void onComplete() {\n }\n public void onError(Throwable e) {\n }\n });\n }\n public void onError(Throwable e) {\n }\n public void onComplete() {\n }\n });\n }\n}\n"
"public void run() {\n try {\n if (mSSDPSocket != null)\n mSSDPSocket.send(message);\n } catch (IOException e) {\n e.printStackTrace();\n }\n}\n"
"public void programRunRecord(HttpRequest request, HttpResponder responder, String namespaceId, String appId, String programType, String programId, String runid) {\n ProgramType type = ProgramType.valueOfCategoryName(programType);\n if (type == null || type == ProgramType.WEBAPP) {\n responder.sendStatus(HttpResponseStatus.NOT_FOUND);\n return;\n }\n try {\n RunRecordMeta runRecordMeta = store.getRun(Id.Program.from(namespaceId, appId, type, programId), runid);\n if (runRecordMeta != null) {\n RunRecord runRecord = CONVERT_TO_RUN_RECORD.apply(runRecordMeta);\n responder.sendJson(HttpResponseStatus.OK, runRecord);\n return;\n }\n responder.sendStatus(HttpResponseStatus.NOT_FOUND);\n } catch (SecurityException e) {\n responder.sendStatus(HttpResponseStatus.UNAUTHORIZED);\n } catch (Throwable e) {\n LOG.error(\"String_Node_Str\", e);\n responder.sendStatus(HttpResponseStatus.INTERNAL_SERVER_ERROR);\n }\n}\n"
"public Result call(final String method, final String apiKey, Map<String, String> params) {\n params = new WeakHashMap<String, String>(params);\n InputStream inputStream = null;\n if (inputStream == null) {\n params.put(PARAM_API_KEY, apiKey);\n try {\n final HttpURLConnection urlConnection = openPostConnection(method, params);\n inputStream = getInputStreamFromConnection(urlConnection);\n if (inputStream == null) {\n lastResult = Result.createHttpErrorResult(urlConnection.getResponseCode(), urlConnection.getResponseMessage());\n return lastResult;\n }\n } catch (final IOException ioEx) {\n Log.e(TAG, \"String_Node_Str\", ioEx);\n lastResult = Result.createHttpErrorResult(HttpStatus.SC_SERVICE_UNAVAILABLE, ioEx.getLocalizedMessage());\n return lastResult;\n }\n }\n try {\n final Result result = createResultFromInputStream(inputStream);\n lastResult = result;\n return result;\n } catch (final IOException ignored) {\n } catch (final SAXException ignored) {\n }\n return null;\n}\n"
"public void addListener(AsyncListener listener, ServletRequest servletRequest, ServletResponse servletResponse) {\n if (listener == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n if (servletRequest == null || servletResponse == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n if (!isOkToConfigure.get()) {\n throw new IllegalStateException(STRING_MANAGER.getString(\"String_Node_Str\"));\n }\n synchronized (asyncListenerContexts) {\n asyncListenerContexts.add(new AsyncListenerContext(listener, servletRequest, servletResponse));\n }\n}\n"
"private void removeObjects() {\n for (GameObject g : toBeRemoved) {\n g.parent(null);\n if (g.body.isInWorld())\n world.removeRigidBody(g.body);\n g.body.setUserPointer(null);\n objects.remove(g);\n if (g instanceof Light)\n lights.remove(g);\n if (g.mesh().instances.size() == 0 && g.mesh().autoDispose)\n g.mesh().dispose();\n g.scene = null;\n }\n toBeRemoved.clear();\n}\n"
"public Item getItemDropped(int p_149650_1_, Random p_149650_2_, int p_149650_3_) {\n return Item.getItemFromBlock(NContent.rareSapling);\n}\n"
"private BufferedImage loadbuffer_selected() throws IOException {\n BufferedImage res;\n String path = PreferencesDialog.getCachedValue(PreferencesDialog.KEY_BATTLEFIELD_IMAGE, \"String_Node_Str\");\n if (path != null && !path.equals(\"String_Node_Str\")) {\n try {\n res = ImageIO.read(new File(path));\n return res;\n } catch (Exception e) {\n res = null;\n }\n }\n return null;\n}\n"
"public void a_step_fails() {\n throw new AssertionError();\n}\n"
"public boolean validate(Map<String, String> parameters, ConstraintValidatorContext context, List<TemplateParam> paramsList) {\n boolean valid = true;\n for (TemplateParam param : paramsList) {\n if (param.getRegex().isPresent()) {\n if (parameters.containsKey(param.getName())) {\n if (!parameters.get(param.getName()).matches(param.getRegex().get())) {\n addParameterConstraintViolation(context, param.getName(), String.format(\"String_Node_Str\", param.getName(), param.getRegex().get()));\n valid = false;\n }\n } else {\n valid = false;\n }\n }\n }\n return valid;\n}\n"
"protected void updateSections() {\n String selectedBinderKey = bindersEl.isOneSelected() ? bindersEl.getSelectedKey() : null;\n if (selectedBinderKey == null || \"String_Node_Str\".equals(selectedBinderKey)) {\n sectionsEl.setKeysAndValues(new String[] { \"String_Node_Str\" }, new String[] { \"String_Node_Str\" }, null);\n sectionsEl.reset();\n sectionsEl.setVisible(false);\n } else {\n List<Section> sections = portfolioService.getSections(currentBinder);\n if (sections.isEmpty()) {\n sectionsEl.setKeysAndValues(new String[] { \"String_Node_Str\" }, new String[] { \"String_Node_Str\" }, null);\n sectionsEl.reset();\n sectionsEl.setVisible(false);\n } else {\n int numOfSections = sections.size();\n String[] theKeys = new String[numOfSections];\n String[] theValues = new String[numOfSections];\n for (int i = 0; i < numOfSections; i++) {\n Long sectionKey = sections.get(i).getKey();\n theKeys[i] = sectionKey.toString();\n theValues[i] = sections.get(i).getTitle();\n }\n sectionsEl.setKeysAndValues(theKeys, theValues, null);\n sectionsEl.reset();\n sectionsEl.setEnabled(true);\n sectionsEl.setVisible(true);\n }\n }\n}\n"
"public void execute() throws ServerApiException, InvalidParameterValueException, PermissionDeniedException, InsufficientAddressCapacityException, InsufficientCapacityException, ConcurrentOperationException {\n boolean result = BaseCmd._networkMgr.deletePortForwardingRule(id, false);\n if (result) {\n SuccessResponse response = new SuccessResponse(getName());\n this.setResponseObject(response);\n } else {\n throw new ServerApiException(BaseCmd.INTERNAL_ERROR, \"String_Node_Str\");\n }\n}\n"
"public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object value, AbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) {\n Converter converter = xmlChoiceCollectionMapping.getConverter();\n if (null != converter) {\n if (converter instanceof XMLConverter) {\n value = ((XMLConverter) converter).convertObjectValueToDataValue(value, session, marshalRecord.getMarshaller());\n } else {\n value = converter.convertObjectValueToDataValue(value, session);\n }\n }\n NodeValue associatedNodeValue = null;\n XMLField associatedField = null;\n Object fieldValue = value;\n if (value instanceof XMLRoot) {\n XMLRoot rootValue = (XMLRoot) value;\n String localName = rootValue.getLocalName();\n String namespaceUri = rootValue.getNamespaceURI();\n fieldValue = rootValue.getObject();\n associatedField = getFieldForName(localName, namespaceUri);\n if (associatedField == null) {\n associatedField = xmlChoiceCollectionMapping.getClassToFieldMappings().get(fieldValue.getClass());\n }\n } else {\n associatedField = xmlChoiceCollectionMapping.getClassToFieldMappings().get(value.getClass());\n }\n if (associatedField != null) {\n associatedNodeValue = this.fieldToNodeValues.get(associatedField);\n }\n if (associatedNodeValue != null) {\n XPathFragment frag = associatedField.getXPathFragment();\n while (frag != null) {\n if (associatedNodeValue.isOwningNode(frag)) {\n ContainerValue nestedNodeValue = (ContainerValue) associatedNodeValue;\n nestedNodeValue.marshalSingleValue(frag, marshalRecord, object, fieldValue, session, namespaceResolver, marshalContext);\n break;\n }\n frag = frag.getNextFragment();\n if (frag == null) {\n ContainerValue nestedNodeValue = (ContainerValue) ((XMLChoiceCollectionMappingUnmarshalNodeValue) associatedNodeValue).getChoiceElementNodeValue();\n nestedNodeValue.marshalSingleValue(frag, marshalRecord, object, fieldValue, session, namespaceResolver, marshalContext);\n }\n }\n }\n return true;\n}\n"
"public ValidationResult validateCode(String system, String code, String display) {\n try {\n if (system.equals(\"String_Node_Str\"))\n return verifySnomed(code, display);\n } catch (Exception e) {\n return new ValidationResult(IssueSeverity.WARNING, \"String_Node_Str\" + code + \"String_Node_Str\" + e.getMessage());\n }\n try {\n if (system.equals(\"String_Node_Str\"))\n return verifyLoinc(code, display);\n if (system.equals(\"String_Node_Str\"))\n return verifyUcum(code, display);\n if (codeSystems.containsKey(system) && codeSystems.get(system) != null) {\n return verifyCode(codeSystems.get(system), code, display);\n }\n if (system.startsWith(\"String_Node_Str\"))\n return new ValidationResult(new ConceptDefinitionComponent());\n } catch (Exception e) {\n return new ValidationResult(IssueSeverity.ERROR, \"String_Node_Str\" + code + \"String_Node_Str\" + system + \"String_Node_Str\" + e.getMessage());\n }\n return super.validateCode(system, code, display);\n}\n"
"final static public void smoothForScale(final ImageProcessor source, final float scale, final float sourceSigma, final float targetSigma) {\n if (scale >= 1.0f)\n return;\n float s = targetSigma / scale;\n final float v = s * s - sourceSigma * sourceSigma;\n if (v <= 0)\n return;\n final float sigma = (float) Math.sqrt(v);\n new GaussianBlur().blurGaussian(source, sigma, sigma, 0.01);\n}\n"
"public void multiFilterDemo() throws Exception {\n FilterDescriptor idFilter = new FilterDescriptor(FilterCondition.AND, \"String_Node_Str\", FilterOperator.GREATER_THAN_OR_EQUAL, 2);\n FilterDescriptor priceFilter = new FilterDescriptor(FilterCondition.AND, \"String_Node_Str\", FilterOperator.LESS_THAN, 15);\n Map<String, Object> queryParams = MybatisQueryProvider.getWhereQueryParamMap(Product.class, \"String_Node_Str\", idFilter, priceFilter);\n Product productView = northwindDao.getProductByDynamic(queryParams).stream().findFirst().orElse(null);\n assertEquals(Integer.valueOf(2), productView.getProductID());\n}\n"
"protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if ((requestCode == PHOTO_PICKED || requestCode == CROP_DONE) && (resultCode == RESULT_OK) && (data != null)) {\n try {\n InputStream s = new FileInputStream(mTempFile);\n try {\n Bitmap bitmap = BitmapFactory.decodeStream(s);\n if (bitmap == null) {\n Log.e(LOG_TAG, \"String_Node_Str\" + \"String_Node_Str\" + mTempFile);\n } else {\n mHandler.sendEmptyMessage(SHOW_PROGRESS);\n new SetWallpaperThread(bitmap, mHandler, this, mTempFile).start();\n }\n mDoLaunch = false;\n } finally {\n Util.closeSilently(s);\n }\n mDoLaunch = false;\n } catch (FileNotFoundException ex) {\n }\n } else {\n setResult(RESULT_CANCELED);\n finish();\n }\n}\n"
"public ValidateResult validate(AliasTransaction tx) {\n Alias alias = tx.getTxData();\n Alias aliasDb = aliasService.getAlias(alias.getAlias());\n if (null != aliasDb) {\n return ValidateResult.getFailedResult(this.getClass().getName(), AccountErrorCode.ALIAS_EXIST);\n }\n if (!Address.validAddress(alias.getAddress())) {\n return ValidateResult.getFailedResult(this.getClass().getName(), AccountErrorCode.ADDRESS_ERROR);\n }\n if (!StringUtils.validAlias(alias.getAlias())) {\n return ValidateResult.getFailedResult(this.getClass().getName(), AccountErrorCode.ALIAS_ERROR);\n }\n AliasPo aliasPo = alisaStorageService.getAlias(alias.getAlias()).getData();\n if (aliasPo != null) {\n return ValidateResult.getFailedResult(this.getClass().getName(), AccountErrorCode.ALIAS_EXIST);\n }\n if (tx.isFreeOfFee()) {\n return ValidateResult.getFailedResult(alias.getClass().getName(), TransactionErrorCode.FEE_NOT_RIGHT);\n }\n CoinData coinData = tx.getCoinData();\n if (null == coinData) {\n return ValidateResult.getFailedResult(this.getClass().getName(), TransactionErrorCode.FEE_NOT_RIGHT);\n }\n Na realFee = tx.getFee();\n Na fee = TransactionFeeCalculator.getFee(tx.size());\n if (realFee.isLessThan(fee.add(AccountConstant.ALIAS_NA))) {\n return ValidateResult.getFailedResult(this.getClass().getName(), TransactionErrorCode.FEE_NOT_RIGHT);\n }\n P2PKHScriptSig sig = new P2PKHScriptSig();\n try {\n sig.parse(tx.getScriptSig());\n } catch (NulsException e) {\n Log.error(e);\n return ValidateResult.getFailedResult(this.getClass().getName(), e.getMessage());\n }\n if (!Arrays.equals(tx.getTxData().getAddress(), AddressTool.getAddress(sig.getPublicKey()))) {\n ValidateResult result = ValidateResult.getFailedResult(this.getClass().getName(), \"String_Node_Str\");\n result.setLevel(SeverityLevelEnum.FLAGRANT_FOUL);\n return result;\n }\n return ValidateResult.getSuccessResult();\n}\n"
"private static CtorAndArgs<SimpleOrderWithBuilder> simpleOrderArgs() {\n try {\n final Constructor<SimpleOrderWithBuilder> simpleOrderConstructor = SimpleOrderWithBuilder.class.getConstructor(Builder.class, SimpleOrderWithBuilder.Side.class, long.class, long.class);\n return new CtorAndArgs<SimpleOrderWithBuilder>(simpleOrderConstructor, null, 0L, 0L);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n}\n"
"private Vec3 extractVec3FromJsonXYZ(JSONObject offsetObj) {\n Object xString = offsetObj.get(\"String_Node_Str\");\n double xValue = JSONMessageHandler.convertObjectFromJsonToDouble(xString);\n Object yString = offsetObj.get(\"String_Node_Str\");\n double yValue = JSONMessageHandler.convertObjectFromJsonRoDouble(yString);\n Object zString = offsetObj.get(\"String_Node_Str\");\n double zValue = JSONMessageHandler.convertObjectFromJsonRoDouble(zString);\n Vec3 offsetAsVec3 = new Vec3(xValue, yValue, zValue);\n return offsetAsVec3;\n}\n"
"public void resourceAllocated(JobID jobID, AllocatedResource allocatedResource) {\n if (allocatedResource == null) {\n LOG.error(\"String_Node_Str\");\n return;\n }\n if (allocatedResource.getInstance() instanceof DummyInstance) {\n LOG.debug(\"String_Node_Str\");\n return;\n }\n try {\n allocatedResource.getInstance().checkLibraryAvailability(jobID);\n } catch (IOException ioe) {\n LOG.error(\"String_Node_Str\" + StringUtils.stringifyException(ioe));\n }\n synchronized (this.jobQueue) {\n final ExecutionGraph eg = getExecutionGraphByID(jobID);\n if (eg == null) {\n try {\n this.instanceManager.releaseAllocatedResource(jobID, null, allocatedResource);\n } catch (InstanceException e) {\n LOG.error(e);\n }\n return;\n }\n AllocatedResource resourceToBeReplaced = null;\n ExecutionGraphIterator it = new ExecutionGraphIterator(eg, eg.getIndexOfCurrentExecutionStage(), true, true);\n while (it.hasNext()) {\n final ExecutionVertex vertex = it.next();\n if (vertex.getExecutionState() == ExecutionState.ASSIGNING && vertex.getAllocatedResource() != null) {\n if (vertex.getAllocatedResource().getInstanceType().equals(allocatedResource.getInstanceType())) {\n resourceToBeReplaced = vertex.getAllocatedResource();\n break;\n }\n }\n }\n if (resourceToBeReplaced == null) {\n LOG.warn(\"String_Node_Str\" + allocatedResource.getInstance() + \"String_Node_Str\" + eg.getJobID());\n try {\n this.instanceManager.releaseAllocatedResource(jobID, eg.getJobConfiguration(), allocatedResource);\n } catch (InstanceException e) {\n LOG.error(e);\n }\n return;\n }\n it = new ExecutionGraphIterator(eg, true);\n while (it.hasNext()) {\n final ExecutionVertex vertex = it.next();\n if (vertex.getAllocatedResource().equals(resourceToBeReplaced)) {\n vertex.setAllocatedResource(allocatedResource);\n vertex.setExecutionState(ExecutionState.ASSIGNED);\n }\n }\n }\n}\n"
"private void checkFolder() {\n boolean dabei = false;\n File folder = new File(subConfig.getStringProperty(\"String_Node_Str\", JDUtilities.getConfiguration().getStringProperty(Configuration.PARAM_DOWNLOAD_DIRECTORY)));\n if (folder.isDirectory()) {\n String[] help = folder.list();\n for (int i = 0; i < help.length; i++) {\n if (help[i].endsWith(\"String_Node_Str\") || help[i].endsWith(\"String_Node_Str\") || help[i].endsWith(\"String_Node_Str\")) {\n File container = new File(folder, help[i]);\n for (int j = 0; j < added.size(); j++) {\n if (container.getAbsolutePath().equals(added.get(i))) {\n dabei = true;\n break;\n }\n }\n if (!dabei) {\n JDUtilities.getController().loadContainerFile(container);\n added.add(container.getAbsolutePath());\n if (this.getProperties().getBooleanProperty(\"String_Node_Str\", true)) {\n container.delete();\n }\n }\n }\n }\n }\n}\n"
"<E> Node generate(E entity, PersistenceDelegator delegator, PersistenceCache pc) {\n EntityMetadata entityMetadata = KunderaMetadataManager.getEntityMetadata(entity.getClass());\n Object entityId = onPreChecks(entity, delegator.getClient(entityMetadata));\n Node node = builder.buildNode(entity, pc, entityId);\n if (node != null && !traversedNodes.contains(node)) {\n for (Relation relation : entityMetadata.getRelations()) {\n Object childObject = PropertyAccessorHelper.getObject(entity, relation.getProperty());\n if (childObject != null && !ProxyHelper.isProxyOrCollection(childObject)) {\n EntityMetadata childMetadata = KunderaMetadataManager.getEntityMetadata(PropertyAccessorHelper.getGenericClass(relation.getProperty()));\n childObject = onIfSharedByPK(relation, childObject, childMetadata, entityId);\n node = builder.getRelationBuilder(childObject, relation, node).assignResources(delegator, pc, childMetadata).build().getNode();\n }\n }\n traversedNodes.add(node);\n }\n return null;\n}\n"
"public static String[] getAggFunParameters(SeriesDefinition orthSD, SeriesDefinition baseSD, Query orthQuery) {\n if (baseSD.getGrouping() != null && baseSD.getGrouping().isEnabled()) {\n SeriesGrouping grouping = orthSD.getGrouping();\n if (grouping != null && grouping.isEnabled()) {\n if (orthQuery != null && orthQuery.getGrouping() != null) {\n return orthQuery.getGrouping().getAggregateParameters().toArray(new String[0]);\n }\n return grouping.getAggregateParameters().toArray(new String[0]);\n }\n return baseSD.getGrouping().getAggregateParameters().toArray(new String[0]);\n } else {\n if (orthQuery != null && orthQuery.getGrouping() != null && orthQuery.getGrouping().isEnabled()) {\n return orthQuery.getGrouping().getAggregateParameters().toArray(new String[0]);\n }\n return orthSD.getGrouping().getAggregateParameters().toArray(new String[0]);\n }\n}\n"
"public void testPullRequestLifecycleManagement() throws Exception {\n Thread.sleep(3000);\n List<GHHook> hooks = gitHubRepo.getHooks();\n GHHook webhook = null;\n for (GHHook hook : hooks) {\n if (\"String_Node_Str\".equals(hook.getName()) && webhookUrl.equals(hook.getConfig().get(\"String_Node_Str\"))) {\n webhook = hook;\n break;\n }\n }\n Assert.assertNotNull(MessageFormat.format(\"String_Node_Str\", webhookUrl, gitHubRepo.getUrl()), webhook);\n pullRequest.open();\n new Condition() {\n\n public boolean satisfied() {\n return project.getLastBuild() != null;\n }\n }, 60);\n Assert.assertNotNull(MessageFormat.format(\"String_Node_Str\", pullRequest.getGHPullRequest().getUrl()), project.getLastBuild());\n waitForCompletion(TimeUnit.MINUTES.toSeconds(15));\n Assert.assertFalse(MessageFormat.format(\"String_Node_Str\", pullRequest.getGHPullRequest().getUrl()), project.getLastBuild().isBuilding());\n final List<JSONObject> instances = new ArrayList<JSONObject>();\n instances.addAll(checkBuild(null));\n final String triggerPhrase = \"String_Node_Str\";\n pullRequest.comment(triggerPhrase);\n Assert.assertNull(MessageFormat.format(\"String_Node_Str\", triggerPhrase), waitForNextBuild(30));\n updateTriggerPhrase(triggerPhrase);\n pullRequest.comment(triggerPhrase);\n Assert.assertNotNull(MessageFormat.format(\"String_Node_Str\", pullRequest.getGHPullRequest().getUrl()), waitForNextBuild(60));\n waitForCompletion(TimeUnit.MINUTES.toSeconds(15));\n Assert.assertFalse(MessageFormat.format(\"String_Node_Str\", pullRequest.getGHPullRequest().getUrl()), project.getLastBuild().isBuilding());\n instances.addAll(checkBuild(TestUtils.GITHUB_USER));\n pullRequest.close();\n waitForDeletion(instances, TimeUnit.MINUTES.toSeconds(10));\n Assert.assertTrue(\"String_Node_Str\", instances.isEmpty());\n pullRequest.comment(triggerPhrase);\n Assert.assertNull(\"String_Node_Str\", waitForNextBuild(30));\n updateWhitelist(testTag);\n pullRequest.open();\n Assert.assertNull(\"String_Node_Str\", waitForNextBuild(30));\n pullRequest.comment(triggerPhrase);\n Assert.assertNull(\"String_Node_Str\", waitForNextBuild(30));\n pullRequest.close();\n pullRequest.reopen();\n Assert.assertNull(\"String_Node_Str\", waitForNextBuild(30));\n updateWhitelist(testTag + ',' + TestUtils.GITHUB_USER);\n pullRequest.reopen();\n AbstractBuild build = waitForNextBuild(60);\n Assert.assertNotNull(\"String_Node_Str\", build);\n waitForCompletion(TimeUnit.MINUTES.toSeconds(15));\n Assert.assertFalse(MessageFormat.format(\"String_Node_Str\", pullRequest.getGHPullRequest().getUrl()), build.isBuilding());\n instances.addAll(checkBuild(null));\n pullRequest.comment(triggerPhrase);\n build = waitForNextBuild(60);\n Assert.assertNotNull(\"String_Node_Str\", build);\n waitForCompletion(TimeUnit.MINUTES.toSeconds(15));\n instances.addAll(checkBuild(TestUtils.GITHUB_USER));\n pullRequest.close();\n waitForDeletion(instances, TimeUnit.MINUTES.toSeconds(10));\n Assert.assertTrue(\"String_Node_Str\", instances.isEmpty());\n}\n"
"public Object getValue() throws IllegalActionException {\n Type type = _typeable.getType();\n if (_arrayLength > 0) {\n return new ArrayType(type, _arrayLength);\n } else {\n return new ArrayType(type);\n }\n}\n"
"public Object[] poll() {\n Object[] cells = cellsQueue.poll();\n firstCells = cellsQueue.peekFirst();\n return cells;\n}\n"
"private Point getTokenOrigin(int numTokens, int currentToken, int numStations, int currentStation) {\n Point p = new Point();\n switch(numStations) {\n case 1:\n switch(numTokens) {\n case 1:\n p.x = (center.x - 9);\n p.y = (center.y - 9);\n return p;\n case 2:\n if (currentToken == 0) {\n p.x = (center.x - 5);\n p.y = (center.y - 9);\n return p;\n } else {\n p.x = (center.x - 17);\n p.y = (center.y - 9);\n return p;\n }\n case 3:\n if (currentToken == 0) {\n p.x = (center.x - 14);\n p.y = (center.y - 3);\n return p;\n } else if (currentToken == 1) {\n p.x = (center.x - 5);\n p.y = (center.y - 3);\n return p;\n } else {\n p.x = (center.x - 9);\n p.y = (center.y - 14);\n return p;\n }\n case 4:\n case 5:\n case 6:\n default:\n return center;\n }\n case 2:\n if (currentStation == 0) {\n switch(numTokens) {\n case 1:\n p.x = (center.x - 14);\n p.y = (center.y + 3);\n return p;\n case 2:\n if (currentToken == 0) {\n p.x = (center.x - 20);\n p.y = (center.y - 3);\n return p;\n } else {\n p.x = (center.x - 20);\n p.y = (center.y + 12);\n return p;\n }\n default:\n return center;\n }\n } else {\n switch(numTokens) {\n case 1:\n p.x = (center.x - 1);\n p.y = (center.y - 20);\n return p;\n case 2:\n if (currentToken == 0) {\n p.x = (center.x - 1);\n p.y = (center.y - 20);\n return p;\n } else {\n p.x = (center.x - 6);\n p.y = (center.y - 8);\n return p;\n }\n default:\n return center;\n }\n }\n case 3:\n default:\n return center;\n }\n}\n"
"public static List<Integer> sieveOfErathostenes(int n) {\n if (n < 2) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n Set<Integer> numbers = new HashSet<>(n);\n for (int i = 2; i <= n && i >= 2; i++) {\n numbers.add(i);\n }\n for (int i = 2; i <= Math.sqrt((double) n); i++) {\n if (numbers.contains(i)) {\n for (int j = i * i; j <= n; j += i) {\n numbers.remove(j);\n }\n }\n }\n return new ArrayList<>(numbers);\n}\n"
"public void createValueList() {\n if (!values.isEmpty() && valueList.isEmpty()) {\n valueList.addAll(values);\n }\n}\n"
"private void updateColumnsOfDataSetHandle() {\n DataSetHandle dataSet = ((DataSetEditor) getContainer()).getHandle();\n DataSetViewData[] items;\n try {\n items = DataSetProvider.getCurrentInstance().getColumns(dataSet, false, true, true);\n int inexistence = 0;\n for (int i = 0; i < items.length; i++) {\n boolean exist = false;\n if (items[i].isComputedColumn()) {\n Iterator iter = computedColumns.iterator();\n while (iter.hasNext()) {\n ComputedColumn computedColumn = null;\n Object obj = iter.next();\n if (obj instanceof ComputedColumnHandle) {\n computedColumn = (ComputedColumn) ((ComputedColumnHandle) obj).getStructure();\n }\n if (computedColumn != null && items[i].getName().equals(computedColumn.getName())) {\n exist = true;\n }\n }\n if (computedColumn != null && items[i].getName().equals(computedColumn.getName())) {\n exist = true;\n }\n }\n if (!exist) {\n items[i] = null;\n inexistence++;\n }\n }\n }\n if (inexistence == 0)\n return;\n DataSetViewData[] existItems = new DataSetViewData[items.length - inexistence];\n int index = 0;\n for (int i = 0; i < items.length; i++) {\n if (items[i] != null) {\n existItems[index] = items[i];\n index++;\n }\n }\n DataSetProvider.getCurrentInstance().updateColumnsOfDataSetHandle(dataSet, existItems);\n}\n"
"public void clicked(InputEvent event, float x, float y) {\n Scene scn = scnWidget.getScene();\n if (scn == null)\n return;\n Vector2 p = new Vector2(Gdx.input.getX(), Gdx.input.getY());\n scnWidget.screenToWorldCoords(p);\n if (deleteObstacle) {\n deleteObstacle = false;\n Ctx.msg.hide();\n PolygonalNavGraph pf = scn.getPolygonalNavGraph();\n ArrayList<Polygon> obstacles = scn.getPolygonalNavGraph().getObstacles();\n for (int j = 0; j < obstacles.size(); j++) {\n Polygon o = obstacles.get(j);\n if (o.contains(p.x, p.y)) {\n Ctx.project.getSelectedChapter().deleteObstacle(Ctx.project.getSelectedScene(), j);\n pf.getObstacles().remove(j);\n return;\n }\n }\n }\n if (getTapCount() == 2) {\n Polygon poly = scnWidget.getSelectedActor().getBBox();\n if (scn.getPolygonalNavGraph() != null && scnWidget.getShowWalkZone()) {\n Polygon poly = scn.getPolygonalNavGraph().getWalkZone();\n ArrayList<Polygon> obstacles = scn.getPolygonalNavGraph().getObstacles();\n if (Gdx.input.isKeyPressed(Keys.CONTROL_LEFT)) {\n boolean deleted = PolygonUtils.deletePoint(poly, p.x, p.y, CanvasDrawer.CORNER_DIST);\n if (deleted) {\n Ctx.project.getSelectedChapter().setWalkZonePolygon(Ctx.project.getSelectedScene(), poly);\n return;\n } else {\n for (int i = 0; i < obstacles.size(); i++) {\n Polygon o = obstacles.get(i);\n deleted = PolygonUtils.deletePoint(o, p.x, p.y, CanvasDrawer.CORNER_DIST);\n if (deleted) {\n Ctx.project.getSelectedChapter().setObstaclePolygon(Ctx.project.getSelectedScene(), i, o);\n return;\n }\n }\n }\n } else {\n boolean created = PolygonUtils.addClampPointIfTolerance(poly, p.x, p.y, CanvasDrawer.CORNER_DIST);\n if (created) {\n Ctx.project.getSelectedChapter().setWalkZonePolygon(Ctx.project.getSelectedScene(), poly);\n return;\n } else {\n for (int i = 0; i < obstacles.size(); i++) {\n Polygon o = obstacles.get(i);\n created = PolygonUtils.addClampPointIfTolerance(o, p.x, p.y, CanvasDrawer.CORNER_DIST);\n if (created) {\n Ctx.project.getSelectedChapter().setObstaclePolygon(Ctx.project.getSelectedScene(), i, o);\n return;\n }\n }\n }\n }\n }\n if (!(scnWidget.getSelectedActor() instanceof SpriteActor) || !((SpriteActor) scnWidget.getSelectedActor()).isBboxFromRenderer()) {\n if (Gdx.input.isKeyPressed(Keys.CONTROL_LEFT)) {\n boolean deleted = PolygonUtils.deletePoint(poly, p.x, p.y, CanvasDrawer.CORNER_DIST);\n if (deleted) {\n Ctx.project.getSelectedChapter().setBbox(Ctx.project.getSelectedActor(), poly);\n return;\n }\n } else {\n boolean created = PolygonUtils.addClampPointIfTolerance(poly, p.x, p.y, CanvasDrawer.CORNER_DIST);\n if (created) {\n Ctx.project.getSelectedChapter().setBbox(Ctx.project.getSelectedActor(), poly);\n return;\n }\n }\n }\n }\n}\n"
"private static long getAddressValue(VM_Address addr, String msg, boolean warn) {\n if (addr == null)\n return 0L;\n long value = 0L;\n if (addr instanceof VM_Address) {\n value = ((VM_Address) addr).toLong();\n } else if (addr instanceof VM_Word) {\n value = ((VM_Word) addr).toLong();\n } else if (addr instanceof VM_Extent) {\n value = ((VM_Extent) addr).toLong();\n } else if (addr instanceof VM_Offset) {\n value = ((VM_Offset) addr).toLong();\n } else {\n VM.sysWriteln(\"String_Node_Str\" + addr);\n VM.sysFail(\"String_Node_Str\");\n }\n if (warn)\n check((int) value, msg);\n return value;\n}\n"
"private void install() throws ProcessManagerException {\n if (info.dryRun) {\n try {\n xmlFileCopy = Strings.get(\"String_Node_Str\") + FileUtils.readSmallFile(targetXml);\n } catch (IOException ex) {\n }\n if (!targetWin32Exe.delete())\n dryRun(\"String_Node_Str\" + targetWin32Exe);\n if (!targetXml.delete())\n dryRun(\"String_Node_Str\" + targetXml);\n } else {\n ProcessManager mgr = new ProcessManager(targetWin32Exe.getPath(), \"String_Node_Str\");\n mgr.setEcho(false);\n mgr.execute();\n int ret = mgr.getExitValue();\n if (ret != 0)\n throw new RuntimeException(Strings.get(\"String_Node_Str\", \"String_Node_Str\" + ret, mgr.getStdout(), mgr.getStderr()));\n trace(\"String_Node_Str\" + mgr.getStderr());\n trace(\"String_Node_Str\" + mgr.getStdout());\n }\n}\n"
"public void run() {\n hideToolTip();\n}\n"
"public void testNestedCrossTab2() throws Exception {\n ICubeQueryDefinition cqd = new CubeQueryDefinition(cubeName);\n IEdgeDefinition columnEdge = cqd.createEdge(ICubeQueryDefinition.COLUMN_EDGE);\n IEdgeDefinition rowEdge = cqd.createEdge(ICubeQueryDefinition.ROW_EDGE);\n IDimensionDefinition dim1 = columnEdge.createDimension(\"String_Node_Str\");\n IHierarchyDefinition hier1 = dim1.createHierarchy(\"String_Node_Str\");\n ILevelDefinition level11 = hier1.createLevel(\"String_Node_Str\");\n ILevelDefinition level12 = hier1.createLevel(\"String_Node_Str\");\n ILevelDefinition level13 = hier1.createLevel(\"String_Node_Str\");\n IDimensionDefinition dim2 = rowEdge.createDimension(\"String_Node_Str\");\n IHierarchyDefinition hier2 = dim2.createHierarchy(\"String_Node_Str\");\n ILevelDefinition level21 = hier2.createLevel(\"String_Node_Str\");\n createSortTestBindings(cqd);\n CubeSortDefinition sorter4 = new CubeSortDefinition();\n sorter4.setExpression(\"String_Node_Str\");\n sorter4.setAxisQualifierLevels(null);\n sorter4.setAxisQualifierValues(null);\n sorter4.setTargetLevel(level13);\n sorter4.setSortDirection(ISortDefinition.SORT_DESC);\n CubeSortDefinition sorter5 = new CubeSortDefinition();\n sorter5.setExpression(\"String_Node_Str\");\n sorter5.setAxisQualifierLevels(null);\n sorter5.setAxisQualifierValues(null);\n sorter5.setTargetLevel(level11);\n sorter5.setSortDirection(ISortDefinition.SORT_DESC);\n cqd.addSort(sorter4);\n cqd.addSort(sorter5);\n DataEngineImpl engine = (DataEngineImpl) DataEngine.newDataEngine(DataEngineContext.newInstance(DataEngineContext.DIRECT_PRESENTATION, null, null, null));\n this.createCube(engine);\n IPreparedCubeQuery pcq = engine.prepare(cqd, null);\n ICubeQueryResults cqResults = pcq.execute(null);\n CubeCursor outerCursor = cqResults.getCubeCursor();\n CubeFilterDefinition filter1 = new CubeFilterDefinition(new ConditionalExpression(\"String_Node_Str\", IConditionalExpression.OP_EQ, \"String_Node_Str\"));\n filter1.setTargetLevel(level13);\n cqd.addFilter(filter1);\n IBinding out = new Binding(\"String_Node_Str\");\n out.setExpression(new ScriptExpression(\"String_Node_Str\"));\n cqd.addBinding(out);\n int depth = 0;\n EdgeCursor edge1 = (EdgeCursor) (outerCursor.getOrdinateEdge().get(0));\n EdgeCursor edge2 = (EdgeCursor) (outerCursor.getOrdinateEdge().get(1));\n edge1.beforeFirst();\n while (edge2.next()) {\n if (depth > 5)\n break;\n edge1.beforeFirst();\n while (edge1.next()) {\n depth++;\n if (depth > 5)\n break;\n this.testPrintln(\"String_Node_Str\" + outerCursor.getObject(\"String_Node_Str\").toString());\n IPreparedCubeQuery pcq1 = engine.prepare(cqd, null);\n ICubeQueryResults cqResults1 = (ICubeQueryResults) pcq1.execute(cqResults, null);\n CubeCursor cursor = cqResults1.getCubeCursor();\n printCube(cursor, \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" }, \"String_Node_Str\", \"String_Node_Str\", false);\n this.testPrintln(\"String_Node_Str\" + cursor.getObject(\"String_Node_Str\"));\n }\n }\n this.checkOutputFile();\n}\n"
"public void onClick(View v) {\n String confirmationCode = NumberTranslator.toEnglish(phoneConfirimationCodeEt.getText().toString());\n if (!confirmationCode.trim().matches(regexStr)) {\n Snackbari.showS(mBackBtn, \"String_Node_Str\");\n return;\n }\n apiRequest.login(confirmationCode, DeviceInfo.getDeviceID(context));\n progressView.setVisibility(View.VISIBLE);\n login_get_verification_tv.setVisibility(View.INVISIBLE);\n secondBtnLay.setOnClickListener(notRecievedCode);\n}\n"
"public void init(String conferenceJid, XMPPConnection connection, String savingDir) {\n logger.setLevelAll();\n logger.debug(this.getClass() + \"String_Node_Str\");\n transport = new JireconIceUdpTransportManagerImpl();\n srtpControl = new JireconDtlsControlManagerImpl();\n JireconSessionInfo sessionInfo = new JireconSessionInfo();\n JireconRecorderInfo recorderInfo = new JireconRecorderInfo();\n session = new JireconSessionImpl(connection, conferenceJid, savingDir, sessionInfo, recorderInfo);\n recorder = new JireconRecorderImpl(savingDir, recorderInfo, sessionInfo);\n updateState(JireconTaskState.INITIATED);\n}\n"
"public Dimension getPreferredSize(int wHint, int hHint) {\n return getPreferredSize(wHint, hHint, false, false, false);\n}\n"
"public boolean mayBuyCompanyShare(PublicCompanyI company, int number) {\n if (portfolio.ownsShare(company) + number * company.getShareUnit() > playerShareLimit && !company.getCurrentPrice().isNoHoldLimit())\n return false;\n return true;\n}\n"
"private void checkPermissions() {\n String[] permissionList = new String[2];\n permissionList[0] = Manifest.permission.RECORD_AUDIO;\n if (QBRTCTypes.QBConferenceType.QB_CONFERENCE_TYPE_VIDEO.equals(qbConferenceType)) {\n permissionList[1] = (Manifest.permission.CAMERA);\n }\n if (systemPermissionHelper.isAllPermissionGranted(permissionList)) {\n initCallFragment();\n } else {\n systemPermissionHelper.checkAndRequestPermissions(permissionList);\n }\n}\n"
"public boolean isAvailable(Game game, Ability source) {\n RefractionTrapWatcher watcher = (RefractionTrapWatcher) game.getState().getWatchers().get(\"String_Node_Str\");\n return watcher != null && watcher.conditionMetForAnOpponent(source.getControllerId(), game);\n}\n"
"private void reportExportAllFailed(String exportDir, JBException e) {\n StringBuilder msg = new StringBuilder(Messages.DBToolExportAllFailed);\n msg.append(StringConstants.SPACE);\n msg.append(exportDir);\n msg.append(StringConstants.NEWLINE);\n msg.append(e.getLocalizedMessage());\n printlnConsoleError(msg.toString());\n}\n"
"private List<IPath> getPathList() throws IOException {\n List<IPath> result = new ArrayList<IPath>();\n Map<String, Ref> refsMap = getRepository().getRefDatabase().getRefs(getObject().toPortableString());\n for (Map.Entry<String, Ref> entry : refsMap.entrySet()) {\n if (entry.getValue().isSymbolic())\n continue;\n result.add(getObject().append(new Path(entry.getKey())));\n }\n return result;\n}\n"
"public List getDefaultEmptyContainerValues() {\n return xPathObjectBuilder.getDefaultEmptyContainerValues();\n}\n"
"public void execute() throws BuildException {\n checkConfiguration();\n Vector files = getFileList();\n if (isUpToDate(files)) {\n return;\n }\n log(\"String_Node_Str\" + archiveType + \"String_Node_Str\" + cabFile.getAbsolutePath());\n if (!Os.isFamily(\"String_Node_Str\")) {\n log(\"String_Node_Str\", Project.MSG_VERBOSE);\n StringBuffer sb = new StringBuffer();\n Enumeration fileEnum = files.elements();\n while (fileEnum.hasMoreElements()) {\n sb.append(fileEnum.nextElement()).append(\"String_Node_Str\");\n }\n sb.append(\"String_Node_Str\").append(cabFile.getAbsolutePath()).append(\"String_Node_Str\");\n try {\n Process p = Execute.launch(getProject(), new String[] { \"String_Node_Str\" }, null, baseDir, true);\n OutputStream out = p.getOutputStream();\n out.write(sb.toString().getBytes());\n out.flush();\n out.close();\n } catch (IOException ex) {\n String msg = \"String_Node_Str\" + cabFile + \"String_Node_Str\" + ex.getMessage();\n throw new BuildException(msg);\n }\n } else {\n try {\n File listFile = createListFile(files);\n ExecTask exec = createExec();\n File outFile = null;\n exec.setFailonerror(true);\n exec.setDir(baseDir);\n if (!doVerbose) {\n outFile = fileUtils.createTempFile(\"String_Node_Str\", \"String_Node_Str\", null);\n exec.setOutput(outFile);\n }\n exec.setCommand(createCommand(listFile));\n exec.execute();\n if (outFile != null) {\n outFile.delete();\n }\n listFile.delete();\n } catch (IOException ioe) {\n String msg = \"String_Node_Str\" + cabFile + \"String_Node_Str\" + ioe.getMessage();\n throw new BuildException(msg);\n }\n }\n}\n"
"public static Fund.FundBuilder zrxFundFunderKnown() {\n return Fund.builder().amountInWei(new BigDecimal(\"String_Node_Str\")).funderUserId(\"String_Node_Str\").funder(\"String_Node_Str\").requestId(1L).token(TokenInfoDtoMother.zrx().getAddress());\n}\n"
"public BaseFont createFont(String familyName, int fontStyle) {\n String key = familyName + fontStyle;\n synchronized (baseFonts) {\n if (baseFonts.containsKey(key)) {\n bf = (BaseFont) baseFonts.get(key);\n } else {\n try {\n String fontEncoding = (String) fontEncodings.get(familyName);\n if (fontEncoding == null) {\n fontEncoding = BaseFont.IDENTITY_H;\n }\n font = FontFactory.getFont(familyName, fontEncoding, BaseFont.EMBEDDED, 14, fontStyle).getBaseFont();\n baseFonts.put(key, font);\n } catch (Throwable de) {\n baseFonts.put(key, font);\n return null;\n }\n }\n return font;\n }\n}\n"
"public void onClick(View v) {\n submitComment(mReplyToCommentId);\n}\n"
"public void login(Loginable loginable) {\n this.loginableRef = new WeakReference(loginable);\n if (idField.getText().toString().trim().equals(\"String_Node_Str\") || pwdField.getText().toString().trim().equals(\"String_Node_Str\")) {\n toast.show();\n } else {\n if (saveidCheckBox.isChecked()) {\n privateUtil.setSavedUserId(idField.getText().toString());\n }\n session.loginWithDialog(getContext(), idField.getText().toString(), pwdField.getText().toString(), loginable);\n }\n}\n"
"protected void createContents() {\n shell.setText(title);\n shell.setLayout(new GridLayout(1, false));\n dataContent.setShell(shell);\n okCancel.setShell(shell);\n shell.setSize(width, height);\n dataContent.initContents();\n okCancel.initContents();\n inputKey = dataContent.getInputKey();\n btnOk = okCancel.getOkButton();\n minWidth = 600;\n minHeight = 500;\n super.createContents();\n}\n"
"private void applyAggrFilter(AggregationDefinition[] aggregations, IAggregationResultSet[] resultSet, int j, AggrFilter filter, List levelFilters) throws IOException, DataException {\n List selKeyValueList = new ArrayList();\n AggregationFunctionDefinition[] aggrFuncs = aggregations[j].getAggregationFunctions();\n DimLevel[] aggrLevels = filter.getAggrLevels();\n String[] fields = getAllFieldNames(aggrLevels, resultSet[j]);\n String[] aggrNames = new String[aggrFuncs.length];\n for (int k = 0; k < aggrFuncs.length; k++) {\n aggrNames[k] = aggrFuncs[k].getName();\n }\n for (int k = 0; k < resultSet[j].length(); k++) {\n resultSet[j].seek(k);\n int fieldIndex = 0;\n Object[] fieldValues = new Object[fields.length];\n Object[] aggrValues = new Object[aggrFuncs.length];\n for (int m = 0; m < aggrLevels.length; m++) {\n int levelIndex = resultSet[j].getLevelIndex(aggrLevels[m]);\n if (levelIndex < 0 || levelIndex >= resultSet[j].getLevelCount())\n continue;\n fieldValues[fieldIndex++] = resultSet[j].getLevelKeyValue(levelIndex)[0];\n }\n for (int m = 0; m < aggrFuncs.length; m++) {\n int aggrIndex = resultSet[j].getAggregationIndex(aggrNames[m]);\n aggrValues[m] = resultSet[j].getAggregationValue(aggrIndex);\n }\n RowForFilter row = new RowForFilter(fields, aggrNames);\n row.setFieldValues(fieldValues);\n row.setAggrValues(aggrValues);\n boolean isSelect = filter.getFilterHelper().evaluateFilter(row);\n if (isSelect) {\n int levelIndex = resultSet[j].getLevelIndex(filter.getTargetLevel());\n Object[] levelKeyValue = resultSet[j].getLevelKeyValue(levelIndex);\n if (levelKeyValue != null && levelKeyValue[0] != null)\n selKeyValueList.add(levelKeyValue);\n }\n }\n if (selKeyValueList.isEmpty()) {\n isEmptyXTab = true;\n } else {\n Object[][] keyValues = new Object[selKeyValueList.size()][];\n for (int i = 0; i < selKeyValueList.size(); i++) {\n keyValues[i] = (Object[]) selKeyValueList.get(i);\n }\n ISelection selection = SelectionFactory.createMutiKeySelection(keyValues);\n LevelFilter levelFilter = new LevelFilter(filter.getTargetLevel(), new ISelection[] { selection });\n levelFilters.add(levelFilter);\n }\n}\n"
"public void onEntityDeath(EntityDeathEvent e) {\n if (e.getEntity() instanceof HumanEntity)\n return;\n if (e.getEntity() instanceof LivingEntity) {\n if (e.getDrops().size() > 0) {\n Location loc = e.getEntity().getLocation();\n EntityDeathPoint p = new EntityDeathPoint(loc.getX(), loc.getY(), loc.getZ());\n EntityDeathBox box = new EntityDeathBox(loc.getX(), loc.getY(), loc.getZ(), radius);\n int r = generator.nextInt(maxDeaths) + minDeaths;\n int deathCount = getNearbyDeathCount(p);\n if (deathCount > r) {\n if (this.debug) {\n System.out.println(String.format(\"String_Node_Str\", p.x, p.y, p.z, e.getEntity().toString(), deathCount, r, nearbyDeaths.size()));\n }\n e.getDrops().clear();\n return;\n }\n this.nearbyDeaths.add(box);\n }\n }\n}\n"
"public List getTypesToGenerateFrom() {\n SDOType dataObjectType = (SDOType) typeHelper.getType(SDOConstants.SDO_URL, SDOConstants.DATAOBJECT);\n SDOProperty xmlDataTypeProperty = (SDOProperty) typeHelper.getOpenContentProperty(SDOConstants.SDOXML_URL, SDOConstants.SDOXML_DATATYPE);\n List types = new ArrayList();\n String uri = getControlUri();\n Type stringType = typeHelper.getType(\"String_Node_Str\", \"String_Node_Str\");\n Type intType = typeHelper.getType(\"String_Node_Str\", \"String_Node_Str\");\n Type dateType = typeHelper.getType(\"String_Node_Str\", \"String_Node_Str\");\n Type decimalType = typeHelper.getType(\"String_Node_Str\", \"String_Node_Str\");\n String javaPackage = \"String_Node_Str\";\n SDOType gregorianDateType = new SDODataType(uri, \"String_Node_Str\", (SDOTypeHelper) typeHelper);\n gregorianDateType.setInstanceProperty(SDOConstants.JAVA_CLASS_PROPERTY, \"String_Node_Str\");\n List aliasNames = new ArrayList();\n aliasNames.add(\"String_Node_Str\");\n gregorianDateType.setAliasNames(aliasNames);\n SDOType USaddrType = new SDOType(uri, \"String_Node_Str\");\n USaddrType.setDataType(false);\n SDOProperty addrNameProp = new SDOProperty(aHelperContext);\n addrNameProp.setXsd(true);\n addrNameProp.setXsdLocalName(\"String_Node_Str\");\n addrNameProp.setName(\"String_Node_Str\");\n addrNameProp.setType(stringType);\n addrNameProp.setContainingType(USaddrType);\n USaddrType.getDeclaredProperties().add(addrNameProp);\n SDOProperty streetProp = new SDOProperty(aHelperContext);\n streetProp.setName(\"String_Node_Str\");\n streetProp.setXsd(true);\n streetProp.setXsdLocalName(\"String_Node_Str\");\n streetProp.setType(stringType);\n streetProp.setContainingType(USaddrType);\n USaddrType.getDeclaredProperties().add(streetProp);\n SDOProperty cityProp = new SDOProperty(aHelperContext);\n cityProp.setName(\"String_Node_Str\");\n cityProp.setXsdLocalName(\"String_Node_Str\");\n cityProp.setXsd(true);\n cityProp.setType(stringType);\n cityProp.setContainingType(USaddrType);\n USaddrType.getDeclaredProperties().add(cityProp);\n SDOProperty stateProp = new SDOProperty(aHelperContext);\n stateProp.setName(\"String_Node_Str\");\n stateProp.setXsd(true);\n stateProp.setXsdLocalName(\"String_Node_Str\");\n stateProp.setType(stringType);\n stateProp.setContainingType(USaddrType);\n USaddrType.getDeclaredProperties().add(stateProp);\n SDOProperty zipProp = new SDOProperty(aHelperContext);\n zipProp.setXsd(true);\n zipProp.setName(\"String_Node_Str\");\n zipProp.setXsdLocalName(\"String_Node_Str\");\n zipProp.setType(decimalType);\n zipProp.setContainingType(USaddrType);\n USaddrType.getDeclaredProperties().add(zipProp);\n SDOProperty countryProp = new SDOProperty(aHelperContext);\n countryProp.setXsd(true);\n countryProp.setName(\"String_Node_Str\");\n countryProp.setXsdLocalName(\"String_Node_Str\");\n countryProp.setType(stringType);\n countryProp.setDefault(\"String_Node_Str\");\n countryProp.setContainingType(USaddrType);\n USaddrType.getDeclaredProperties().add(countryProp);\n SDOType quantityType = new SDODataType(uri, \"String_Node_Str\", (SDOTypeHelper) typeHelper);\n quantityType.setXsdType(SDOConstants.ANY_TYPE_QNAME);\n quantityType.getBaseTypes().add(intType);\n quantityType.setInstanceClassName(\"String_Node_Str\");\n SDOType SKUType = new SDODataType(uri, \"String_Node_Str\", (SDOTypeHelper) typeHelper);\n SKUType.setXsd(true);\n SKUType.setXsdLocalName(\"String_Node_Str\");\n SKUType.setInstanceClassName(\"String_Node_Str\");\n SKUType.setInstanceProperty(SDOConstants.JAVA_CLASS_PROPERTY, \"String_Node_Str\");\n SDOType itemType = new SDOType(uri, \"String_Node_Str\");\n itemType.setDataType(false);\n itemType.setInstanceClassName(javaPackage + \"String_Node_Str\" + \"String_Node_Str\");\n itemType.setXsdLocalName(\"String_Node_Str\");\n SDOProperty productNameProp = new SDOProperty(aHelperContext);\n productNameProp.setXsd(true);\n productNameProp.setName(\"String_Node_Str\");\n productNameProp.setXsdLocalName(\"String_Node_Str\");\n productNameProp.setType(stringType);\n productNameProp.setReadOnly(true);\n productNameProp.setContainingType(itemType);\n itemType.getDeclaredProperties().add(productNameProp);\n SDOProperty pOrderProp = new SDOProperty(aHelperContext);\n pOrderProp.setXsd(true);\n pOrderProp.setName(\"String_Node_Str\");\n pOrderProp.setXsdLocalName(\"String_Node_Str\");\n pOrderProp.setType(stringType);\n pOrderProp.setInstanceProperty(SDOConstants.XMLELEMENT_PROPERTY, Boolean.TRUE);\n pOrderProp.setMany(false);\n pOrderProp.setContainment(true);\n pOrderProp.setContainingType(itemType);\n itemType.getDeclaredProperties().add(pOrderProp);\n SDOProperty quantityProp = new SDOProperty(aHelperContext);\n quantityProp.setXsd(true);\n quantityProp.setName(\"String_Node_Str\");\n quantityProp.setXsdLocalName(\"String_Node_Str\");\n quantityProp.setContainingType(itemType);\n quantityProp.setInstanceProperty(xmlDataTypeProperty, SDOConstants.SDO_INTEGER);\n quantityProp.setType(SDOConstants.SDO_INTEGER);\n itemType.getDeclaredProperties().add(quantityProp);\n SDOProperty partNumProp = new SDOProperty(aHelperContext);\n partNumProp.setXsd(true);\n partNumProp.setName(\"String_Node_Str\");\n partNumProp.setXsdLocalName(\"String_Node_Str\");\n partNumProp.setType(SKUType);\n partNumProp.setContainingType(itemType);\n itemType.getDeclaredProperties().add(partNumProp);\n SDOProperty USPriceProp = new SDOProperty(aHelperContext);\n USPriceProp.setXsd(true);\n USPriceProp.setName(\"String_Node_Str\");\n USPriceProp.setXsdLocalName(\"String_Node_Str\");\n USPriceProp.setType(decimalType);\n USPriceProp.setContainingType(itemType);\n itemType.getDeclaredProperties().add(USPriceProp);\n SDOProperty itemCommentProp = new SDOProperty(aHelperContext);\n itemCommentProp.setXsd(true);\n itemCommentProp.setName(\"String_Node_Str\");\n itemCommentProp.setXsdLocalName(\"String_Node_Str\");\n itemCommentProp.setType(stringType);\n itemCommentProp.setContainment(false);\n List names = new ArrayList();\n names.add(\"String_Node_Str\");\n itemCommentProp.setAliasNames(names);\n itemCommentProp.setContainingType(itemType);\n itemCommentProp.setContainment(false);\n itemType.getDeclaredProperties().add(itemCommentProp);\n SDOProperty shipDateProp = new SDOProperty(aHelperContext);\n shipDateProp.setXsd(true);\n shipDateProp.setName(\"String_Node_Str\");\n shipDateProp.setXsdLocalName(\"String_Node_Str\");\n shipDateProp.setType(SDOConstants.SDO_YEARMONTHDAY);\n shipDateProp.setContainment(false);\n shipDateProp.setContainingType(itemType);\n itemType.getDeclaredProperties().add(shipDateProp);\n SDOType itemsType = new SDOType(uri, \"String_Node_Str\");\n itemsType.setDataType(false);\n itemsType.setInstanceClassName(javaPackage + \"String_Node_Str\" + \"String_Node_Str\");\n SDOProperty itemProp = new SDOProperty(aHelperContext);\n itemProp.setXsd(true);\n itemProp.setName(\"String_Node_Str\");\n itemProp.setXsdLocalName(\"String_Node_Str\");\n itemProp.setContainment(true);\n itemProp.setMany(true);\n itemProp.setInstanceProperty(SDOConstants.XMLELEMENT_PROPERTY, Boolean.TRUE);\n itemProp.setContainingType(itemsType);\n itemProp.setType(itemType);\n itemsType.getDeclaredProperties().add(itemProp);\n SDOType POtype = new SDOType(uri, \"String_Node_Str\");\n POtype.setDataType(false);\n POtype.setSequenced(true);\n names = new ArrayList();\n names.add(\"String_Node_Str\");\n POtype.setAliasNames(names);\n POtype.setInstanceClassName(javaPackage + \"String_Node_Str\" + \"String_Node_Str\");\n SDOProperty shipToProp = new SDOProperty(aHelperContext);\n shipToProp.setXsd(true);\n shipToProp.setName(\"String_Node_Str\");\n shipToProp.setMany(true);\n shipToProp.setXsdLocalName(\"String_Node_Str\");\n shipToProp.setContainment(true);\n names = new ArrayList();\n names.add(\"String_Node_Str\");\n shipToProp.setAliasNames(names);\n shipToProp.setMany(true);\n shipToProp.setInstanceProperty(SDOConstants.XMLELEMENT_PROPERTY, Boolean.TRUE);\n shipToProp.setContainingType(POtype);\n shipToProp.setType(USaddrType);\n SDOProperty billToProp = new SDOProperty(aHelperContext);\n billToProp.setXsd(true);\n billToProp.setName(\"String_Node_Str\");\n billToProp.setXsdLocalName(\"String_Node_Str\");\n billToProp.setReadOnly(true);\n billToProp.setContainment(true);\n billToProp.setInstanceProperty(SDOConstants.XMLELEMENT_PROPERTY, Boolean.TRUE);\n billToProp.setContainingType(POtype);\n billToProp.setType(USaddrType);\n SDOProperty itemsProp = new SDOProperty(aHelperContext);\n itemsProp.setXsd(true);\n itemsProp.setName(\"String_Node_Str\");\n itemsProp.setXsdLocalName(\"String_Node_Str\");\n itemsProp.setContainment(true);\n itemsProp.setInstanceProperty(SDOConstants.XMLELEMENT_PROPERTY, Boolean.TRUE);\n itemsProp.setInstanceProperty(xmlDataTypeProperty, itemsType);\n itemsProp.setType(dataObjectType);\n itemsProp.setContainingType(POtype);\n SDOProperty commentProp = new SDOProperty(aHelperContext);\n commentProp.setXsd(true);\n commentProp.setName(\"String_Node_Str\");\n commentProp.setXsdLocalName(\"String_Node_Str\");\n commentProp.setType(stringType);\n commentProp.setContainingType(POtype);\n commentProp.setContainment(false);\n SDOProperty orderDateProp = new SDOProperty(aHelperContext);\n orderDateProp.setXsd(true);\n orderDateProp.setName(\"String_Node_Str\");\n orderDateProp.setXsdLocalName(\"String_Node_Str\");\n orderDateProp.setType(SDOConstants.SDO_YEARMONTHDAY);\n orderDateProp.setInstanceProperty(xmlDataTypeProperty, gregorianDateType);\n orderDateProp.setContainingType(POtype);\n orderDateProp.setContainment(false);\n SDOProperty topPriorityItemProp = new SDOProperty(aHelperContext);\n topPriorityItemProp.setXsd(true);\n topPriorityItemProp.setName(\"String_Node_Str\");\n topPriorityItemProp.setXsdLocalName(\"String_Node_Str\");\n topPriorityItemProp.setType(itemType);\n topPriorityItemProp.setMany(true);\n topPriorityItemProp.setInstanceProperty(SDOConstants.XMLELEMENT_PROPERTY, Boolean.TRUE);\n topPriorityItemProp.setContainment(true);\n topPriorityItemProp.setContainingType(POtype);\n POtype.getDeclaredProperties().add(shipToProp);\n POtype.getDeclaredProperties().add(billToProp);\n POtype.getDeclaredProperties().add(itemsProp);\n POtype.getDeclaredProperties().add(commentProp);\n POtype.getDeclaredProperties().add(orderDateProp);\n POtype.getDeclaredProperties().add(topPriorityItemProp);\n types.add(USaddrType);\n types.add(gregorianDateType);\n types.add(POtype);\n types.add(itemsType);\n types.add(itemType);\n types.add(quantityType);\n types.add(SKUType);\n return types;\n}\n"
"public boolean execute(final Player plr, final String... args) {\n if (args.length < 2) {\n PlayerFunctions.sendMessage(plr, C.TRUSTED_NEED_ARGUMENT);\n return true;\n }\n if (!PlayerFunctions.isInPlot(plr)) {\n PlayerFunctions.sendMessage(plr, C.NOT_IN_PLOT);\n return true;\n }\n final Plot plot = PlayerFunctions.getCurrentPlot(plr);\n if ((plot.owner == null) || !plot.getOwner().equals(plr)) {\n PlayerFunctions.sendMessage(plr, C.NO_PLOT_PERMS);\n return true;\n }\n if (args[0].equalsIgnoreCase(\"String_Node_Str\")) {\n UUID uuid;\n if (args[1].equalsIgnoreCase(\"String_Node_Str\")) {\n uuid = DBFunc.everyone;\n } else {\n uuid = UUIDHandler.getUUID(args[1]);\n }\n if (!plot.trusted.contains(uuid)) {\n if (plot.owner == uuid) {\n PlayerFunctions.sendMessage(plr, C.ALREADY_OWNER);\n return false;\n }\n if (plot.helpers.contains(uuid)) {\n plot.helpers.remove(uuid);\n DBFunc.removeHelper(plr.getWorld().getName(), plot, Bukkit.getOfflinePlayer(uuid));\n }\n if (plot.denied.contains(uuid)) {\n plot.denied.remove(uuid);\n DBFunc.removeDenied(plr.getWorld().getName(), plot, Bukkit.getOfflinePlayer(uuid));\n }\n plot.addTrusted(uuid);\n DBFunc.setTrusted(plr.getWorld().getName(), plot, Bukkit.getOfflinePlayer(args[1]));\n final PlayerPlotTrustedEvent event = new PlayerPlotTrustedEvent(plr, plot, uuid, true);\n Bukkit.getPluginManager().callEvent(event);\n } else {\n PlayerFunctions.sendMessage(plr, C.ALREADY_ADDED);\n return false;\n }\n PlayerFunctions.sendMessage(plr, C.TRUSTED_ADDED);\n return true;\n } else if (args[0].equalsIgnoreCase(\"String_Node_Str\")) {\n if (args[1].equalsIgnoreCase(\"String_Node_Str\")) {\n final UUID uuid = DBFunc.everyone;\n if (!plot.trusted.contains(uuid)) {\n PlayerFunctions.sendMessage(plr, C.T_WAS_NOT_ADDED);\n return true;\n }\n plot.removeTrusted(uuid);\n DBFunc.removeTrusted(plr.getWorld().getName(), plot, Bukkit.getOfflinePlayer(args[1]));\n PlayerFunctions.sendMessage(plr, C.TRUSTED_REMOVED);\n return true;\n }\n final UUID uuid = UUIDHandler.getUUID(args[1]);\n plot.removeTrusted(uuid);\n DBFunc.removeTrusted(plr.getWorld().getName(), plot, Bukkit.getOfflinePlayer(args[1]));\n final PlayerPlotTrustedEvent event = new PlayerPlotTrustedEvent(plr, plot, uuid, false);\n Bukkit.getPluginManager().callEvent(event);\n PlayerFunctions.sendMessage(plr, C.TRUSTED_REMOVED);\n } else {\n PlayerFunctions.sendMessage(plr, C.TRUSTED_NEED_ARGUMENT);\n return true;\n }\n return true;\n}\n"
"private Map<String, EntitlementCertificate> generateEntitlementCerts(Consumer consumer, Map<String, Entitlement> entitlements, Map<String, Product> productMap, boolean thisIsUeberCert) throws GeneralSecurityException, IOException {\n log.info(\"String_Node_Str\");\n KeyPair keyPair = keyPairCurator.getConsumerKeyPair(consumer);\n byte[] pemEncodedKeyPair = pki.getPemEncoded(keyPair.getPrivate());\n Map<String, CertificateSerial> serialMap = new HashMap<String, CertificateSerial>();\n for (Entry<String, Entitlement> entry : entitlements.entrySet()) {\n serialMap.put(entry.getKey(), new CertificateSerial(entry.getValue().getEndDate()));\n }\n serialCurator.saveOrUpdateAll(serialMap);\n Map<String, EntitlementCertificate> entitlementCerts = new HashMap<String, EntitlementCertificate>();\n for (Entry<String, Entitlement> entry : entitlements.entrySet()) {\n Entitlement entitlement = entry.getValue();\n CertificateSerial serial = serialMap.get(entry.getKey());\n Product product = productMap.get(entry.getKey());\n log.info(\"String_Node_Str\", entitlement);\n Set<Product> products = new HashSet<Product>(entitlement.getPool().getProvidedProducts());\n products.addAll(getDerivedProductsForDistributor(entitlement));\n products.add(product);\n Map<String, EnvironmentContent> promotedContent = getPromotedContent(entitlement);\n String contentPrefix = getContentPrefix(entitlement, !thisIsUeberCert);\n log.info(\"String_Node_Str\", product);\n log.debug(\"String_Node_Str\", products);\n List<org.candlepin.model.dto.Product> productModels = v3extensionUtil.createProducts(product, products, contentPrefix, promotedContent, entitlement.getConsumer(), entitlement);\n X509Certificate x509Cert = createX509Certificate(entitlement, product, products, productModels, BigInteger.valueOf(serial.getId()), keyPair, !thisIsUeberCert);\n EntitlementCertificate cert = new EntitlementCertificate();\n cert.setSerial(serial);\n cert.setKeyAsBytes(pemEncodedKeyPair);\n log.info(\"String_Node_Str\");\n String pem = new String(this.pki.getPemEncoded(x509Cert));\n if (shouldGenerateV3(entitlement)) {\n log.debug(\"String_Node_Str\");\n byte[] payloadBytes = v3extensionUtil.createEntitlementDataPayload(product, productModels, entitlement, contentPrefix, promotedContent);\n String payload = \"String_Node_Str\";\n payload += Util.toBase64(payloadBytes);\n payload += \"String_Node_Str\";\n byte[] bytes = pki.getSHA256WithRSAHash(new ByteArrayInputStream(payloadBytes));\n String signature = \"String_Node_Str\";\n signature += Util.toBase64(bytes);\n signature += \"String_Node_Str\";\n pem += payload + signature;\n }\n cert.setCert(pem);\n cert.setEntitlement(entitlement);\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\" + serial.getId());\n log.debug(\"String_Node_Str\" + cert.getKey());\n log.debug(\"String_Node_Str\" + cert.getCert());\n }\n entitlement.getCertificates().add(cert);\n entitlementCerts.put(entry.getKey(), cert);\n }\n log.info(\"String_Node_Str\");\n entCertCurator.saveOrUpdateAll(entitlementCerts.values(), false);\n return entitlementCerts;\n}\n"
"private static List<File> getXMLFilePath() {\n List<File> xmlListFile = new ArrayList<File>();\n String[] pluginIDs = new String[] { ResourcesPlugin.PLUGIN_ID, \"String_Node_Str\", ResourcesPlugin.TDQ_PLUGIN_ID, getMDMDemoPluginId() };\n for (String pluginID : pluginIDs) {\n Bundle bundle = Platform.getBundle(pluginID);\n if (bundle != null) {\n URL url = null;\n String fullPath = XML_FILE_PATH;\n if (ResourcesPlugin.TDQ_PLUGIN_ID.equals(pluginIDs[i])) {\n fullPath = PluginConstant.EMPTY_STRING;\n }\n URL fileUrl = FileLocator.find(bundle, new Path(fullPath), null);\n try {\n if (fileUrl != null) {\n url = FileLocator.toFileURL(fileUrl);\n }\n } catch (IOException e) {\n ExceptionHandler.process(e);\n }\n if (url == null)\n continue;\n File xmlFilePath = new File(url.getPath());\n if (xmlFilePath.exists()) {\n String[] files = xmlFilePath.list(new FilenameFilter() {\n public boolean accept(File arg0, String arg1) {\n return XmlUtil.isXMLFile(arg1);\n }\n });\n for (String file : files) {\n File xml = new File(url.getPath() + \"String_Node_Str\" + file);\n xmlListFile.add(xml);\n }\n }\n }\n }\n return xmlListFile;\n}\n"
"final private void Members(JsonObject o) throws ParseException {\n Pair(o);\n switch((jj_ntk == -1) ? jj_ntk() : jj_ntk) {\n case 20:\n jj_consume_token(20);\n Members(o);\n break;\n default:\n jj_la1[2] = jj_gen;\n ;\n }\n}\n"
"public static ServiceFunctionChains getServiceFunctionChainsRef() {\n LOG.debug(\"String_Node_Str\", Thread.currentThread().getStackTrace()[1]);\n InstanceIdentifier<ServiceFunctionChains> sfcsIID;\n sfcsIID = InstanceIdentifier.builder(ServiceFunctionChains.class).build();\n DataObject dataObject = odlSfc.dataProvider.readConfigurationData(sfcsIID);\n if (dataObject instanceof ServiceFunctionChains) {\n ServiceFunctionChains serviceFunctionChains = (ServiceFunctionChains) dataObject;\n LOG.info(\"String_Node_Str\", Thread.currentThread().getStackTrace()[1]);\n return serviceFunctionChains;\n } else {\n LOG.info(\"String_Node_Str\", Thread.currentThread().getStackTrace()[1]);\n return null;\n }\n}\n"
"public void preProcess(INDArray array, MinMaxStats stats) {\n if (array.rank() <= 2) {\n array.subiRowVector(stats.getLower());\n array.diviRowVector(stats.getRange());\n } else {\n Nd4j.getExecutioner().execAndReturn(new BroadcastSubOp(array, stats.getLower(), array, 1));\n Nd4j.getExecutioner().execAndReturn(new BroadcastDivOp(array, stats.getRange(), array, 1));\n }\n array.muli(maxRange - minRange);\n array.addi(minRange);\n}\n"
"public void onSuccess(ListResult<OrgUnitDTO> result) {\n for (OrgUnitDTO orgUnitDTO : result.getData()) {\n fillOrgUnitsComboboxes(orgUnitDTO, mainOrgUnitComboBox, secondaryOrgUnitsComboBox);\n }\n}\n"
"private static void tAddDownload() {\n debug(\"String_Node_Str\");\n final int RATE = 500;\n final int FUDGE_FACTOR = RATE * 1024;\n uploader1.setRate(RATE);\n uploader2.setRate(RATE);\n RemoteFileDesc rfd1 = newRFD(6346, 100);\n RemoteFileDesc rfd2 = newRFD(6347, 100);\n Downloader download = null;\n try {\n download = dm.download(new RemoteFileDesc[] { rfd1 }, false);\n ((ManagedDownloader) download).addDownload(rfd2);\n } catch (FileExistsException e) {\n check(false, \"String_Node_Str\");\n return;\n } catch (AlreadyDownloadingException e) {\n check(false, \"String_Node_Str\");\n return;\n } catch (java.io.FileNotFoundException e) {\n check(false, \"String_Node_Str\");\n return;\n }\n waitForComplete(download);\n if (isComplete())\n debug(\"String_Node_Str\" + \"String_Node_Str\");\n else\n check(false, \"String_Node_Str\");\n int u1 = uploader1.amountUploaded();\n int u2 = uploader2.amountUploaded();\n debug(\"String_Node_Str\" + u1 + \"String_Node_Str\");\n debug(\"String_Node_Str\" + u2 + \"String_Node_Str\");\n debug(\"String_Node_Str\" + (u1 + u2) + \"String_Node_Str\");\n check(u1 < (TestFile.length() / 2 + (FUDGE_FACTOR)), \"String_Node_Str\");\n check(u2 < (TestFile.length() / 2 + (FUDGE_FACTOR)), \"String_Node_Str\");\n}\n"
"public Set<CellFactorySPI> getCellFactoriesByExtension(String extension) {\n if (extension != null) {\n extension = extension.toLowerCase();\n return cellFactoryExtensionMap.get(extension);\n }\n return null;\n}\n"
"protected void monitor(MonitorStatusEvent statusEvent) {\n String id = statusEvent.getId();\n LifeCycleState status1 = statusEvent.getStatus();\n if (status1 == ClusterStatus.Active || status1 == GroupStatus.Active) {\n onChildActivatedEvent(id);\n } else if (status1 == ClusterStatus.Inactive || status1 == GroupStatus.Inactive) {\n onChildInActiveEvent(id);\n } else if (status1 == ClusterStatus.Terminating || status1 == GroupStatus.Terminating) {\n onChildTerminatingEvent(id);\n StatusChecker.getInstance().onChildStatusChange(id, this.id, this.appId);\n } else if (status1 == ClusterStatus.Terminated || status1 == GroupStatus.Terminated) {\n this.aliasToInActiveMonitorsMap.remove(id);\n if (this.status != ApplicationStatus.Terminating) {\n onChildTerminatedEvent(id);\n } else {\n StatusChecker.getInstance().onChildStatusChange(id, this.id, this.appId);\n log.info(\"String_Node_Str\" + id);\n }\n }\n}\n"
"public void verify(MWProject project) {\n MWDescriptor descriptor;\n Hashtable descriptors = new Hashtable();\n descriptor = project.descriptorNamed(\"String_Node_Str\");\n descriptors.put(descriptor, org_eclipse_persistence_tools_workbench_test_models_employee_Address());\n descriptor = project.descriptorNamed(\"String_Node_Str\");\n descriptors.put(descriptor, test_oracle_models_employee_Employee());\n descriptor = project.descriptorNamed(\"String_Node_Str\");\n descriptors.put(descriptor, test_oracle_models_employee_EmploymentPeriod());\n descriptor = project.descriptorNamed(\"String_Node_Str\");\n descriptors.put(descriptor, test_oracle_models_employee_LargeProject());\n descriptor = project.descriptorNamed(\"String_Node_Str\");\n descriptors.put(descriptor, test_oracle_models_employee_PhoneNumber());\n descriptor = project.descriptorNamed(\"String_Node_Str\");\n descriptors.put(descriptor, test_oracle_models_employee_Project());\n descriptor = project.descriptorNamed(\"String_Node_Str\");\n descriptors.put(descriptor, test_oracle_models_employee_SmallProject());\n testDescriptors(descriptors);\n}\n"
"private void defineSourceDataSets(JointDataSetHandle jointDataSetHandle) throws BirtException {\n Iterator iter = ((JointDataSetHandle) jointDataSetHandle).dataSetsIterator();\n while (iter.hasNext()) {\n DataSetHandle dsHandle = (DataSetHandle) iter.next();\n if (dsHandle != null) {\n defineDataSet(dsHandle);\n }\n }\n}\n"
"private DesiredCapabilities appendSauceLabsCredentials(DesiredCapabilities caps) {\n logger.entering(caps);\n String sauceUserName = Config.getConfigProperty(ConfigProperty.SAUCELAB_USER_NAME);\n String sauceApiKey = Config.getConfigProperty(ConfigProperty.SAUCELAB_API_KEY);\n String tunnelUserId = Config.getConfigProperty(ConfigProperty.SAUCELAB_TUNNEL_USER_ID);\n if (sauceUserName != null && sauceApiKey != null) {\n caps.setCapability(USER_NAME, sauceUserName);\n caps.setCapability(ACCESS_KEY, sauceApiKey);\n caps.setCapability(PARENT_TUNNEL, tunnelUserId);\n }\n logger.exiting(caps);\n return caps;\n}\n"
"private static boolean deployEJBTimerService(File root, File appScratchFile, String resourceName, boolean is_upgrade) {\n boolean deployed = false;\n logger.log(Level.INFO, \"String_Node_Str\");\n File app = null;\n try {\n app = FileUtils.getManagedFile(TIMER_SERVICE_APP_NAME + \"String_Node_Str\", new File(root, \"String_Node_Str\"));\n } catch (Exception e) {\n logger.log(Level.WARNING, \"String_Node_Str\", e);\n }\n if (app == null || !app.exists()) {\n logger.log(Level.WARNING, \"String_Node_Str\" + \"String_Node_Str\" + TIMER_SERVICE_APP_NAME + \"String_Node_Str\");\n } else {\n DeployCommandParameters params = new DeployCommandParameters(app);\n params.name = TIMER_SERVICE_APP_NAME;\n try {\n EjbContainerUtil _ejbContainerUtil = EjbContainerUtilImpl.getInstance();\n if (_ejbContainerUtil.isDas()) {\n boolean scratchFileCreated = appScratchFile.createNewFile();\n if (!is_upgrade && scratchFileCreated) {\n params.origin = OpsParams.Origin.deploy;\n }\n } else {\n params.origin = OpsParams.Origin.load;\n }\n params.target = _ejbContainerUtil.getServerEnvironment().getInstanceName();\n ActionReport report = _ejbContainerUtil.getServices().getService(ActionReport.class, \"String_Node_Str\");\n Deployment deployment = _ejbContainerUtil.getDeployment();\n ExtendedDeploymentContext dc = deployment.getBuilder(logger, params, report).source(app).build();\n dc.addTransientAppMetaData(DatabaseConstants.JTA_DATASOURCE_JNDI_NAME_OVERRIDE, resourceName);\n Properties appProps = dc.getAppProps();\n appProps.setProperty(ServerTags.OBJECT_TYPE, DeploymentProperties.SYSTEM_ALL);\n deployment.deploy(dc);\n if (report.getActionExitCode() != ActionReport.ExitCode.SUCCESS) {\n logger.log(Level.WARNING, \"String_Node_Str\", report.getFailureCause());\n } else {\n deployed = true;\n }\n } catch (Exception e) {\n logger.log(Level.WARNING, \"String_Node_Str\", e);\n } finally {\n if (!deployed && params.origin.isDeploy() && appScratchFile.exists()) {\n appScratchFile.delete();\n }\n }\n }\n return deployed;\n}\n"
"public boolean isValidMetaValue(int meta) {\n if (meta < 0 || meta >= unlocalizedNames.length)\n return false;\n return unlocalizedNames != null && unlocalizedNames[meta] != null;\n}\n"
"public TokenType getToken() {\n return TokenType.RETURN;\n}\n"
"public void test() {\n CommitStatusUpdater.updateCommitStatus(build, taskListener, BuildState.success, STAGE);\n verify(client).changeBuildStatus(Integer.toString(PROJECT_ID), REVISION, BuildState.success, null, STAGE, DisplayURLProvider.get().getRunURL(build), null);\n}\n"
"public void calculateOffsets() {\n super.calculateOffsets();\n if (mDataNotSet)\n return;\n float diameter = getDiameter();\n float radius = diameter / 2f;\n PointF c = getCenter();\n float shift = mData.getDataSet().getSelectionShift();\n mCircleBox.set(c.x - radius + shift, c.y - radius + shift, c.x + radius - shift, c.y + radius - shift);\n}\n"
"static List<Locale> getLocalesForBuckets(LocaleSet systemLocales) {\n final LocaleList localeList = systemLocales.getAllLocales();\n final List<Locale> locales = new ArrayList<>(localeList.size() + sDefaultLabelLocales.length);\n for (int i = 0; i < localeList.size(); i++) {\n locales.add(localeList.get(i));\n }\n for (int i = 0; i < sDefaultLabelLocales.length; i++) {\n locales.add(sDefaultLabelLocales[i]);\n }\n final List<Locale> ret = new ArrayList<>(locales.size());\n boolean allowChinese = true;\n for (int i = 0; i < locales.size(); i++) {\n final Locale locale = locales.get(i);\n if (ret.contains(locale)) {\n continue;\n }\n if (LocaleSet.isLanguageChinese(locale)) {\n if (!allowChinese) {\n continue;\n }\n allowChinese = false;\n }\n if (LocaleSet.isLanguageJapanese(locale)) {\n allowChinese = false;\n }\n if (DEBUG) {\n Log.d(TAG, \"String_Node_Str\" + locale.toLanguageTag());\n }\n ret.add(locale);\n }\n return ret;\n}\n"
"public void configure(Binder binder) {\n binder.bindConstant().annotatedWith(VirtualNodes.class).to(Integer.getInteger(\"String_Node_Str\", VirtualNodes.DEFAULT));\n binder.bindConstant().annotatedWith(MaxEventBufferSize.class).to(Integer.getInteger(\"String_Node_Str\", MaxEventBufferSize.DEFAULT));\n binder.bindConstant().annotatedWith(MaxEventDispatchers.class).to(Integer.getInteger(\"String_Node_Str\", MaxEventDispatchers.DEFAULT));\n binder.bindConstant().annotatedWith(MaxDrainDelayInMS.class).to(Long.getLong(\"String_Node_Str\", MaxDrainDelayInMS.DEFAULT));\n binder.bindConstant().annotatedWith(SpooledEventExpirationInMS.class).to(Long.getLong(\"String_Node_Str\", SpooledEventExpirationInMS.DEFAULT));\n binder.bindConstant().annotatedWith(LocalSpoolRoot.class).to(System.getProperty(\"String_Node_Str\", LocalSpoolRoot.DEFAULT));\n binder.bindConstant().annotatedWith(EventServiceName.class).to(System.getProperty(\"String_Node_Str\"));\n final String eventServiceName = System.getProperty(\"String_Node_Str\");\n bind(ExecutorService.class).annotatedWith(PublisherExecutor.class).toInstance(Executors.newFixedThreadPool(50, new NamedThreadFactory(\"String_Node_Str\")));\n bind(Selector.class).annotatedWith(PublisherSelector.class).toInstance(new Selector() {\n\n public boolean match(ServiceDescriptor sd) {\n return sd.getName().equals(eventServiceName);\n }\n });\n binder.bind(ConsistentHashingServiceChooser.class).asEagerSingleton();\n binder.bind(EventServiceChooser.class).to(AreciboEventServiceChooser.class).asEagerSingleton();\n binder.bind(EventPublisher.class).to(AreciboEventPublisher.class).asEagerSingleton();\n binder.bind(String.class).annotatedWith(EventSenderType.class).toInstance(senderType);\n ExportBuilder builder = MBeanModule.newExporter(binder);\n builder.export(AreciboEventServiceChooser.class).as(\"String_Node_Str\");\n builder.export(AreciboEventPublisher.class).as(\"String_Node_Str\");\n}\n"
"private List<? extends Object> updateAndExtractValuesFromFieldData(PrestoContextRules rules, PrestoFieldUsage field, FieldData fieldData, boolean resolveEmbedded, boolean includeExisting, boolean filterNonStorable, boolean validateValueTypes) {\n Collection<Value> values = fieldData.getValues();\n List<Object> result = new ArrayList<Object>(values.size());\n if (!values.isEmpty()) {\n PrestoContext context = rules.getContext();\n if (field.isReferenceField()) {\n if (field.isInline()) {\n List<Object> newValues = new ArrayList<Object>();\n for (Value value : values) {\n TopicView embeddedTopic = getEmbeddedTopic(value);\n if (embeddedTopic != null) {\n boolean filterNonStorableNested = true;\n newValues.add(buildInlineTopic(context, field, embeddedTopic, filterNonStorableNested, validateValueTypes));\n } else {\n String typeId = value.getType();\n PrestoType type = schemaProvider.getTypeById(typeId, null);\n if (type != null) {\n newValues.add(buildInlineTopic(context, type, value.getValue()));\n } else {\n throw new InvalidValueTypeConstraintException(getSchemaProvider());\n }\n }\n }\n if (context.isNewTopic()) {\n result.addAll(newValues);\n } else {\n PrestoTopic topic = context.getTopic();\n List<? extends Object> existingValues = topic.getValues(field);\n result.addAll(mergeInlineTopics(newValues, existingValues, includeExisting));\n }\n } else {\n List<String> valueIds = new ArrayList<String>(values.size());\n for (Value value : values) {\n TopicView embeddedTopic = getEmbeddedTopic(value);\n if (resolveEmbedded && embeddedTopic != null) {\n result.add(updateEmbeddedTopic(rules, field, embeddedTopic));\n } else {\n String valueId = getReferenceValue(value);\n if (valueId != null) {\n valueIds.add(valueId);\n }\n }\n }\n if (!valueIds.isEmpty()) {\n result.addAll(getDataProvider().getTopicsByIds(valueIds));\n }\n }\n if (validateValueTypes) {\n validateValueTypes(context, field, result);\n }\n } else {\n for (Value value : values) {\n result.add(getPrimitiveValue(value));\n }\n }\n if (filterNonStorable) {\n filterNonStorableFieldValues(rules, field, result);\n }\n }\n return result;\n}\n"
"private BuildRule createTestLibraryRule(TargetGraph targetGraph, BuildRuleParams params, BuildRuleResolver resolver, CellPathResolver cellRoots, AppleTestDescriptionArg args, Optional<SourcePath> testHostAppBinarySourcePath, ImmutableSet<BuildTarget> blacklist, BuildTarget libraryTarget, ImmutableSortedSet<BuildTarget> extraCxxDeps) throws NoSuchBuildTargetException {\n BuildTarget existingLibraryTarget = libraryTarget.withAppendedFlavors(AppleDebuggableBinary.RULE_FLAVOR, CxxStrip.RULE_FLAVOR).withAppendedFlavors(StripStyle.NON_GLOBAL_SYMBOLS.getFlavor());\n Optional<BuildRule> existingLibrary = resolver.getRuleOptional(existingLibraryTarget);\n BuildRule library;\n if (existingLibrary.isPresent()) {\n library = existingLibrary.get();\n } else {\n library = appleLibraryDescription.createLibraryBuildRule(targetGraph, params.withBuildTarget(libraryTarget), resolver, cellRoots, args, Optional.of(Linker.LinkableDepType.STATIC), testHostAppBinarySourcePath, blacklist, extraCxxDeps, CxxLibraryDescription.TransitiveCxxPreprocessorInputFunction.fromDeps());\n resolver.addToIndex(library);\n }\n return library;\n}\n"
"public static String shortenURL(String longUrl) {\n if (longUrl == null) {\n return longUrl;\n }\n try {\n URL url = new URL(\"String_Node_Str\");\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\n connection.setDoOutput(true);\n connection.setRequestMethod(\"String_Node_Str\");\n connection.setRequestProperty(\"String_Node_Str\", \"String_Node_Str\");\n String urlParameters = \"String_Node_Str\" + URLEncoder.encode(longUrl, UTF8_ENCODING);\n DataOutputStream wr = new DataOutputStream(connection.getOutputStream());\n wr.writeBytes(URLEncoder.encode(urlParameters, UTF8_ENCODING));\n wr.flush();\n wr.close();\n BufferedReader rd = new BufferedReader(new InputStreamReader(connection.getInputStream()));\n String line;\n StringBuilder sb = new StringBuilder();\n while ((line = rd.readLine()) != null) {\n sb.append(line);\n }\n return \"String_Node_Str\" + sb.toString();\n } catch (Exception e) {\n return longUrl;\n }\n}\n"
"private void renderBlockParticles(Vector3f worldPos, Vector3f cameraPosition, BlockParticleEffectComponent particleEffect) {\n Vector3i worldPos3i = new Vector3i(worldPos, RoundingMode.HALF_UP);\n Biome biome = worldProvider.getBiome(worldPos3i);\n glPushMatrix();\n glTranslated(worldPos.x - cameraPosition.x, worldPos.y - cameraPosition.y, worldPos.z - cameraPosition.z);\n for (Particle particle : particleEffect.particles) {\n glPushMatrix();\n glTranslatef(particle.position.x, particle.position.y, particle.position.z);\n OpenGLUtil.applyBillboardOrientation();\n glScalef(particle.size, particle.size, particle.size);\n float light = worldRenderer.getRenderingLightValueAt(new Vector3f(worldPos.x + particle.position.x, worldPos.y + particle.position.y, worldPos.z + particle.position.z));\n renderParticle(particle, blockManager.getBlock(particleEffect.blockType).getBlockFamily().getArchetypeBlock(), biome, light);\n glPopMatrix();\n }\n glPopMatrix();\n}\n"
"public void addModZip(Path zipPath) {\n ModWorkflowBuilder builder = new ModWorkflowBuilder(\"String_Node_Str\" + zipPath);\n final Mod futureMod = builder.addLocalMod(zipPath, config, loader);\n builder.refreshModAfterWorkflowComplete(futureMod, loader);\n submitDownloadWorkflow(builder);\n}\n"
"private Map<String, PersistenceUnitMetadata> findPersistenceMetadatas() throws InvalidConfigurationException {\n Enumeration<URL> xmls = null;\n try {\n xmls = this.getClass().getClassLoader().getResources(\"String_Node_Str\");\n } catch (IOException ioex) {\n log.warn(\"String_Node_Str\" + ioex.getMessage());\n }\n if (xmls == null || !xmls.hasMoreElements()) {\n log.info(\"String_Node_Str\" + \"String_Node_Str\");\n throw new InvalidConfigurationException(\"String_Node_Str\" + \"String_Node_Str\");\n }\n Set<String> persistenceUnitNames = new HashSet<String>();\n Map<String, PersistenceUnitMetadata> persistenceUnitMap = new HashMap<String, PersistenceUnitMetadata>();\n while (xmls.hasMoreElements()) {\n URL url = xmls.nextElement();\n log.trace(\"String_Node_Str\" + url);\n List<PersistenceUnitMetadata> metadataFiles = PersistenceXMLLoader.findPersistenceUnits(url, PersistenceUnitTransactionType.RESOURCE_LOCAL);\n for (PersistenceUnitMetadata metadata : metadataFiles) {\n if (persistenceUnitNames.contains(metadata.getPersistenceUnitName())) {\n if (log.isWarnEnabled()) {\n log.warn(\"String_Node_Str\" + metadata.getPersistenceUnitName() + \"String_Node_Str\");\n }\n }\n if (metadata.getPersistenceProviderClassName() == null || PROVIDER_IMPLEMENTATION_NAME.equalsIgnoreCase(metadata.getPersistenceProviderClassName())) {\n persistenceUnitMap.put(metadata.getPersistenceUnitName(), metadata);\n }\n persistenceUnitNames.add(metadata.getPersistenceUnitName());\n }\n }\n return persistenceUnitMap;\n}\n"
"private void writeExcelResponse(byte[] aResponseData, HttpServletResponse response) throws UnsupportedEncodingException, IOException {\n response.setCharacterEncoding(SettingsConstants.COMMON_ENCODING);\n response.setContentType(EXCEL_CONTENT_TYPE);\n response.addHeader(\"String_Node_Str\", \"String_Node_Str\");\n response.setContentLength(aResponse.length);\n response.getOutputStream().write(aResponse);\n}\n"
"public static void main(String[] args) {\n logger.info(\"String_Node_Str\");\n ApplicationContext appContext = new ClassPathXmlApplicationContext(\"String_Node_Str\");\n JavaRayConfiguration configuration = (JavaRayConfiguration) appContext.getBean(\"String_Node_Str\");\n View view = new View(configuration);\n logger.debug(\"String_Node_Str\", new Object[] { configuration.getViewWidth(), configuration.getViewHeight(), configuration.getAntiAlias() });\n Camera camera = new Camera(new Vector3(4, 3, 3));\n Scene scene = getSceneThree(configuration);\n long t = new Date().getTime();\n try {\n new RayTracer(configuration).render(scene, view, camera);\n } catch (Exception e) {\n logger.error(\"String_Node_Str\", e);\n }\n logger.debug(\"String_Node_Str\", ((new Date().getTime() - t) / 1000));\n}\n"
"private void saveProjectFlexibleElement(ProjectModel projectModel, EntityManager em, HashMap<Object, Object> modelesReset, HashSet<Object> modelesImport) {\n if (projectModel.getProjectBanner() != null && projectModel.getProjectBanner().getLayout() != null) {\n final List<LayoutGroup> bannerLayoutGroups = projectModel.getProjectBanner().getLayout().getGroups();\n saveLayoutGroups(bannerLayoutGroups, em, modelesReset, modelesImport, authentication);\n }\n if (projectModel.getProjectDetails() != null && projectModel.getProjectDetails().getLayout() != null) {\n final List<LayoutGroup> detailLayoutGroups = projectModel.getProjectDetails().getLayout().getGroups();\n saveLayoutGroups(detailLayoutGroups, em, modelesReset, modelesImport);\n }\n List<PhaseModel> phases = projectModel.getPhases();\n if (phases != null) {\n projectModel.setPhases(null);\n em.persist(projectModel);\n for (PhaseModel phase : phases) {\n phase.setParentProjectModel(projectModel);\n if (phase.getLayout() != null) {\n final List<LayoutGroup> phaseLayoutGroups = phase.getLayout().getGroups();\n saveLayoutGroups(phaseLayoutGroups, em, modelesReset, modelesImport);\n }\n if (phase.getDefinition() != null) {\n em.persist(phase.getDefinition());\n }\n em.persist(phase);\n }\n projectModel.setPhases(phases);\n }\n}\n"
"public void scaleRasterNearestInt() throws IOException {\n int scale;\n MrGeoRaster scaled;\n for (scale = 1; scale < 15; scale++) {\n scaled = numberedInt.scale(width * scale, height * scale, false, new double[] { Double.NaN });\n compareResult(scale, scaled);\n }\n for (scale = 2; scale < 8; scale++) {\n scaled = numberedInt.scale(width / scale, height / scale, false, new double[] { Double.NaN });\n compareResult(1.0 / scale, numberedInt, scaled);\n }\n}\n"
"protected void flushToEdge(EdgeDraftGetter edgeDraft, Edge edge) {\n if (edgeDraft.getColor() != null) {\n edge.getEdgeData().setR(edgeDraft.getColor().getRed() / 255f);\n edge.getEdgeData().setG(edgeDraft.getColor().getGreen() / 255f);\n edge.getEdgeData().setB(edgeDraft.getColor().getBlue() / 255f);\n } else {\n edge.getEdgeData().setR(-1f);\n edge.getEdgeData().setG(-1f);\n edge.getEdgeData().setB(-1f);\n }\n if (edgeDraft.getLabel() != null) {\n edge.getEdgeData().setLabel(edgeDraft.getLabel());\n }\n if (edge.getEdgeData().getTextData() != null) {\n edge.getEdgeData().getTextData().setVisible(edgeDraft.isLabelVisible());\n }\n if (edgeDraft.getLabelSize() != -1f && edge.getEdgeData().getTextData() != null) {\n edge.getEdgeData().getTextData().setSize(edgeDraft.getLabelSize());\n }\n if (edgeDraft.getLabelColor() != null && edge.getEdgeData().getTextData() != null) {\n Color labelColor = edgeDraft.getLabelColor();\n edge.getEdgeData().getTextData().setColor(labelColor.getRed() / 255f, labelColor.getGreen() / 255f, labelColor.getBlue() / 255f, labelColor.getAlpha() / 255f);\n }\n if (edgeDraft.getTimeInterval() != null) {\n AttributeColumn col = attributeModel.getEdgeTable().getColumn(DynamicModel.TIMEINTERVAL_COLUMN);\n if (col == null) {\n col = attributeModel.getEdgeTable().addColumn(DynamicModel.TIMEINTERVAL_COLUMN, \"String_Node_Str\", AttributeType.TIME_INTERVAL, AttributeOrigin.PROPERTY, null);\n }\n edge.getEdgeData().getAttributes().setValue(col.getIndex(), edgeDraft.getTimeInterval());\n }\n if (edge.getEdgeData().getAttributes() != null) {\n AttributeRow row = (AttributeRow) edge.getEdgeData().getAttributes();\n for (AttributeValue val : edgeDraft.getAttributeRow().getValues()) {\n if (!val.getColumn().getOrigin().equals(AttributeOrigin.PROPERTY) && val.getValue() != null) {\n row.setValue(val.getColumn(), val.getValue());\n }\n }\n }\n}\n"
"public void check(MarkerList markers, IContext context) {\n if (this.value != null) {\n this.value.check(markers, context);\n }\n for (int i = 0; i < this.caseCount; i++) {\n this.cases[i].check(markers, context);\n }\n}\n"
"public void handleClick(MouseEvent ev) {\n if (ev.getButton() == 1) {\n if (Repository.getSuiteNr() == 0)\n return;\n if (keypress == 0) {\n deselectAll();\n getClickedItem(ev.getX(), ev.getY());\n if (selected.size() > 0) {\n selectItem(selected);\n if (getItem(selected, false).getType() == 2) {\n Item temp = getItem(selected, false);\n int userDefNr = temp.getUserDefNr();\n boolean root = false;\n Repository.window.mainpanel.p1.suitaDetails.setParent(temp);\n if (temp.getPos().size() == 1) {\n root = true;\n if (userDefNr != Repository.window.mainpanel.p1.suitaDetails.getDefsNr()) {\n System.out.println(\"String_Node_Str\" + temp.getName() + \"String_Node_Str\" + userDefNr + \"String_Node_Str\" + Repository.window.mainpanel.p1.suitaDetails.getDefsNr() + \"String_Node_Str\");\n if (Repository.window.mainpanel.p1.suitaDetails.getDefsNr() < userDefNr) {\n temp.getUserDefs().subList(Repository.window.mainpanel.p1.suitaDetails.getDefsNr(), userDefNr).clear();\n }\n }\n try {\n for (int i = 0; i < Repository.window.mainpanel.p1.suitaDetails.getDefsNr(); i++) {\n if (temp.getUserDefNr() == i)\n break;\n Repository.window.mainpanel.p1.suitaDetails.getDefPanel(i).setDescription(temp.getUserDef(i)[1], true);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n Repository.window.mainpanel.p1.suitaDetails.setSuiteDetails(root);\n }\n if (getItem(selected, false).getType() == 1) {\n Item temp = getItem(selected, false);\n Repository.window.mainpanel.p1.suitaDetails.setParent(temp);\n Repository.window.mainpanel.p1.suitaDetails.setTCDetails();\n }\n if (getItem(selected, false).getCheckRectangle().intersects(new Rectangle(ev.getX() - 1, ev.getY() - 1, 2, 2))) {\n getItem(selected, false).setCheck(!getItem(selected, false).getCheck());\n } else if (getItem(selected, false).getSubItemsNr() > 0 && ev.getClickCount() == 2 && getItem(selected, false).getType() != 1) {\n if (getItem(selected, false).getType() == 2 && !itemIsExpanded(getItem(selected, false))) {\n if (!onlyOptionals)\n getItem(selected, false).setVisibleTC();\n else {\n Item parent = getItem(selected, false);\n for (Item i : parent.getSubItems()) {\n if (i.isOptional()) {\n i.setSubItemVisible(true);\n i.setSubItemVisible(true);\n i.setVisible(false);\n }\n }\n }\n } else\n getItem(selected, false).setVisible(!itemIsExpanded(getItem(selected, false)));\n }\n updateLocations(getItem(selected, false));\n } else {\n Repository.window.mainpanel.p1.suitaDetails.setGlobalDetails();\n }\n repaint();\n } else if (keypress == 2) {\n getClickedItem(ev.getX(), ev.getY());\n if (selected.size() > 0) {\n int[] theone = new int[selected.size()];\n for (int i = 0; i < selected.size(); i++) {\n theone[i] = selected.get(i).intValue();\n }\n Item theone1 = getItem(selected, false);\n theone1.select(!theone1.isSelected());\n if (theone1.isSelected())\n selectedcollection.add(theone);\n else {\n for (int m = 0; m < selectedcollection.size(); m++) {\n if (Arrays.equals(selectedcollection.get(m), theone)) {\n selectedcollection.remove(m);\n break;\n }\n }\n }\n if (selectedcollection.size() == 0) {\n Repository.window.mainpanel.p1.remove.setEnabled(false);\n }\n repaint();\n }\n } else {\n if (selected.size() > 0) {\n deselectAll();\n int[] theone1 = new int[selected.size()];\n for (int i = 0; i < selected.size(); i++) {\n theone1[i] = selected.get(i).intValue();\n }\n getClickedItem(ev.getX(), ev.getY());\n int[] theone2 = new int[selected.size()];\n for (int i = 0; i < selected.size(); i++) {\n theone2[i] = selected.get(i).intValue();\n }\n if (theone1.length == theone2.length) {\n if (theone1.length > 1) {\n int[] temp1, temp2;\n temp1 = Arrays.copyOfRange(theone1, 0, theone1.length - 1);\n temp2 = Arrays.copyOfRange(theone2, 0, theone2.length - 1);\n if (Arrays.equals(temp1, temp2)) {\n int[] first, second;\n if (theone2[theone2.length - 1] >= theone1[theone1.length - 1]) {\n first = theone2;\n second = theone1;\n } else {\n first = theone1;\n second = theone2;\n }\n ArrayList<Integer> temp11 = new ArrayList<Integer>();\n for (int i = 0; i < temp1.length; i++) temp11.add(new Integer(temp1[i]));\n Item parent = getItem(temp11, false);\n for (int i = second[second.length - 1]; i < first[first.length - 1] + 1; i++) {\n parent.getSubItem(i).select(true);\n int[] temporary = new int[parent.getSubItem(i).getPos().size()];\n for (int m = 0; m < temporary.length; m++) {\n temporary[m] = parent.getSubItem(i).getPos().get(m).intValue();\n }\n selectedcollection.add(temporary);\n }\n }\n } else {\n int first, second;\n if (theone1[0] >= theone2[0]) {\n first = theone1[0];\n second = theone2[0];\n } else {\n second = theone1[0];\n first = theone2[0];\n }\n for (int m = second; m < first + 1; m++) {\n Repository.getSuita(m).select(true);\n selectedcollection.add(new int[] { m });\n }\n }\n }\n repaint();\n }\n }\n }\n if (ev.getButton() == 3) {\n getClickedItem(ev.getX(), ev.getY());\n if ((selected.size() == 0)) {\n if (Repository.getSuiteNr() > 0) {\n deselectAll();\n repaint();\n }\n noSelectionPopUp(ev);\n } else {\n if (!getItem(selected, false).isSelected()) {\n deselectAll();\n selectItem(selected);\n repaint();\n Item temp = getItem(selected, false);\n if (temp.getType() == 0)\n propertyPopUp(ev, getItem(selected, false));\n else if (temp.getType() == 1) {\n Repository.window.mainpanel.p1.suitaDetails.setParent(temp);\n Repository.window.mainpanel.p1.suitaDetails.setTCDetails();\n tcPopUp(ev, getItem(selected, false));\n } else {\n boolean root = false;\n Repository.window.mainpanel.p1.suitaDetails.setParent(temp);\n if (temp.getPos().size() == 1) {\n root = true;\n int userDefNr = temp.getUserDefNr();\n if (userDefNr != Repository.window.mainpanel.p1.suitaDetails.getDefsNr()) {\n System.out.println(\"String_Node_Str\" + temp.getName() + \"String_Node_Str\" + userDefNr + \"String_Node_Str\" + Repository.window.mainpanel.p1.suitaDetails.getDefsNr() + \"String_Node_Str\");\n if (Repository.window.mainpanel.p1.suitaDetails.getDefsNr() < userDefNr) {\n temp.getUserDefs().subList(Repository.window.mainpanel.p1.suitaDetails.getDefsNr(), userDefNr).clear();\n }\n }\n try {\n for (int i = 0; i < Repository.window.mainpanel.p1.suitaDetails.getDefsNr(); i++) {\n if (temp.getUserDefNr() == i)\n break;\n Repository.window.mainpanel.p1.suitaDetails.getDefPanel(i).setDescription(temp.getUserDef(i)[1]);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n Repository.window.mainpanel.p1.suitaDetails.setSuiteDetails(root);\n suitaPopUp(ev, temp);\n }\n } else {\n if (selectedcollection.size() == 1) {\n if (getItem(selected, false).getType() == 0)\n propertyPopUp(ev, getItem(selected, false));\n else if (getItem(selected, false).getType() == 1)\n tcPopUp(ev, getItem(selected, false));\n else {\n System.out.println(\"String_Node_Str\");\n Item temp = getItem(selected, false);\n boolean root = false;\n Repository.window.mainpanel.p1.suitaDetails.setParent(temp);\n if (temp.getPos().size() == 1) {\n root = true;\n int userDefNr = temp.getUserDefNr();\n if (userDefNr != Repository.window.mainpanel.p1.suitaDetails.getDefsNr()) {\n System.out.println(\"String_Node_Str\" + temp.getName() + \"String_Node_Str\" + userDefNr + \"String_Node_Str\" + Repository.window.mainpanel.p1.suitaDetails.getDefsNr() + \"String_Node_Str\");\n if (Repository.window.mainpanel.p1.suitaDetails.getDefsNr() < userDefNr) {\n temp.getUserDefs().subList(Repository.window.mainpanel.p1.suitaDetails.getDefsNr(), userDefNr).clear();\n }\n }\n try {\n for (int i = 0; i < Repository.window.mainpanel.p1.suitaDetails.getDefsNr(); i++) {\n if (temp.getUserDefNr() == i)\n break;\n Repository.window.mainpanel.p1.suitaDetails.getDefPanel(i).setDescription(temp.getUserDef(i)[1]);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n Repository.window.mainpanel.p1.suitaDetails.setSuiteDetails(root);\n suitaPopUp(ev, getItem(selected, false));\n }\n } else {\n multipleSelectionPopUp(ev);\n }\n }\n }\n }\n if (selectedcollection.size() > 0)\n Repository.window.mainpanel.p1.remove.setEnabled(true);\n}\n"
"public void onConnected() {\n MediaMetadata mMediaMetadata = new MediaMetadata(MediaMetadata.MEDIA_TYPE_PHOTO);\n mMediaMetadata.putString(MediaMetadata.KEY_TITLE, title);\n mMediaMetadata.putString(MediaMetadata.KEY_SUBTITLE, description);\n if (iconSrc != null) {\n Uri iconUri = Uri.parse(iconSrc);\n WebImage image = new WebImage(iconUri, 100, 100);\n mMediaMetadata.addImage(image);\n }\n MediaInfo mediaInfo = new MediaInfo.Builder(url).setContentType(mimeType).setStreamType(MediaInfo.STREAM_TYPE_NONE).setMetadata(mMediaMetadata).build();\n boolean relaunchIfRunning = false;\n if (Cast.CastApi.getApplicationStatus(mApiClient) != null && mediaAppId.equals(currentAppId)) {\n relaunchIfRunning = false;\n } else {\n relaunchIfRunning = true;\n }\n Cast.CastApi.launchApplication(mApiClient, mediaAppId, relaunchIfRunning).setResultCallback(new ApplicationConnectionResultCallback(mediaInfo, listener));\n}\n"
"public static Queue<String> getStartupOrder(ParentBehavior component) {\n Queue<String> startup = new LinkedList<String>();\n DependencyOrder dependencyOrder = component.getDependencyOrder();\n if (dependencyOrder != null) {\n Set<StartupOrder> startupOrderSet = dependencyOrder.getStartupOrders();\n for (StartupOrder startupOrder : startupOrderSet) {\n String start = startupOrder.getStart();\n String after = startupOrder.getAfter();\n if (!startup.contains(start)) {\n startup.add(start);\n if (!startup.contains(after)) {\n startup.add(after);\n } else {\n }\n } else {\n if (!startup.contains(after)) {\n startup.add(after);\n } else {\n }\n }\n }\n }\n for (String grpAlias : component.getAliasToGroupMap().keySet()) {\n if (!startup.contains(\"String_Node_Str\" + grpAlias)) {\n startup.add(\"String_Node_Str\" + grpAlias);\n }\n }\n for (Set<String> clusterIds : component.getServiceNameToClusterIdsMap().values()) {\n for (String clusterId : clusterIds) {\n if (!startup.contains(clusterId)) {\n startup.add(clusterId);\n }\n }\n }\n return startup;\n}\n"
"protected String buildDrillAction(IAction action, IReportContext context) {\n if (action == null || context == null)\n return null;\n String baseURL = null;\n Object renderContext = getRenderContext(context);\n if (renderContext instanceof HTMLRenderContext) {\n baseURL = ((HTMLRenderContext) renderContext).getBaseURL();\n }\n if (renderContext instanceof PDFRenderContext) {\n baseURL = ((PDFRenderContext) renderContext).getBaseURL();\n }\n if (baseURL == null)\n baseURL = IBirtConstants.VIEWER_PREVIEW;\n StringBuffer link = new StringBuffer();\n String reportName = getReportName(context, action);\n if (reportName != null && !reportName.equals(\"String_Node_Str\")) {\n link.append(baseURL);\n link.append(reportName.toLowerCase().endsWith(\"String_Node_Str\") ? \"String_Node_Str\" : \"String_Node_Str\");\n try {\n link.append(URLEncoder.encode(reportName, ParameterAccessor.UTF_8_ENCODE));\n } catch (UnsupportedEncodingException e1) {\n }\n String format = action.getFormat();\n if (format == null || format.length() == 0)\n format = hostFormat;\n if (format != null && format.length() > 0) {\n link.append(ParameterAccessor.getQueryParameterString(ParameterAccessor.PARAM_FORMAT, format));\n }\n if (action.getParameterBindings() != null) {\n Iterator paramsIte = action.getParameterBindings().entrySet().iterator();\n while (paramsIte.hasNext()) {\n Map.Entry entry = (Map.Entry) paramsIte.next();\n try {\n String key = (String) entry.getKey();\n Object valueObj = entry.getValue();\n if (valueObj != null) {\n String value = DataUtil.getDisplayValue(valueObj);\n link.append(ParameterAccessor.getQueryParameterString(URLEncoder.encode(key, ParameterAccessor.UTF_8_ENCODE), URLEncoder.encode(value, ParameterAccessor.UTF_8_ENCODE)));\n }\n } catch (UnsupportedEncodingException e) {\n }\n }\n if (!reportName.toLowerCase().endsWith(ParameterAccessor.SUFFIX_REPORT_DOCUMENT) && baseURL.lastIndexOf(IBirtConstants.SERVLET_PATH_FRAMESET) > 0) {\n link.append(ParameterAccessor.getQueryParameterString(ParameterAccessor.PARAM_OVERWRITE, String.valueOf(true)));\n }\n }\n if (locale != null) {\n link.append(ParameterAccessor.getQueryParameterString(ParameterAccessor.PARAM_LOCALE, locale.toString()));\n }\n if (isRtl) {\n link.append(ParameterAccessor.getQueryParameterString(ParameterAccessor.PARAM_RTL, String.valueOf(isRtl)));\n }\n link.append(ParameterAccessor.getQueryParameterString(ParameterAccessor.PARAM_MASTERPAGE, String.valueOf(this.isMasterPageContent)));\n try {\n if (resourceFolder != null) {\n String res = URLEncoder.encode(resourceFolder, ParameterAccessor.UTF_8_ENCODE);\n link.append(ParameterAccessor.getQueryParameterString(ParameterAccessor.PARAM_RESOURCE_FOLDER, res));\n }\n } catch (UnsupportedEncodingException e) {\n }\n String bookmark = action.getBookmark();\n if (bookmark != null) {\n try {\n if (baseURL.lastIndexOf(IBirtConstants.SERVLET_PATH_PREVIEW) > 0 || IBirtConstants.PDF_RENDER_FORMAT.equalsIgnoreCase(format)) {\n link.append(\"String_Node_Str\");\n if (!action.isBookmark() && reportName.toLowerCase().endsWith(\"String_Node_Str\")) {\n InputOptions options = new InputOptions();\n options.setOption(InputOptions.OPT_LOCALE, locale);\n bookmark = BirtReportServiceFactory.getReportService().findTocByName(reportName, bookmark, options);\n }\n } else {\n bookmark = URLEncoder.encode(bookmark, ParameterAccessor.UTF_8_ENCODE);\n link.append(ParameterAccessor.getQueryParameterString(ParameterAccessor.PARAM_BOOKMARK, bookmark));\n if (!action.isBookmark())\n link.append(ParameterAccessor.getQueryParameterString(ParameterAccessor.PARAM_ISTOC, \"String_Node_Str\"));\n }\n link.append(URLEncoder.encode(bookmark, ParameterAccessor.UTF_8_ENCODE));\n } catch (UnsupportedEncodingException e) {\n }\n }\n }\n return link.toString();\n}\n"
"private void buildParameterTree() {\n ModuleHandle module = SessionHandleAdapter.getInstance().getReportDesignHandle();\n if (module == null) {\n return;\n }\n for (Iterator iterator = module.getParameters().iterator(); iterator.hasNext(); ) {\n ReportElementHandle handle = (ReportElementHandle) iterator.next();\n if (handle instanceof ParameterHandle) {\n createSubTreeItem(parametersItem, DEUtil.getDisplayLabel(handle, false), ReportPlatformUIImages.getImage(handle), DEUtil.getExpression(handle), ((ParameterHandle) handle).getHelpText(), true);\n } else if (handle instanceof ParameterGroupHandle) {\n TreeItem groupItem = createSubTreeItem(parametersItem, DEUtil.getDisplayLabel(handle, false), ReportPlatformUIImages.getImage(handle), true);\n for (Iterator itor = ((ParameterGroupHandle) handle).getParameters().iterator(); itor.hasNext(); ) {\n ParameterHandle parameter = (ParameterHandle) itor.next();\n createSubTreeItem(groupItem, parameter.getDisplayLabel(), ReportPlatformUIImages.getImage(handle), DEUtil.getExpression(parameter), parameter.getDisplayLabel(), true);\n }\n }\n }\n}\n"
"private void fixAfterSparseInsert() {\n if (sparseInsertCount++ > SPARSE_INSERT_THRESHOLD) {\n sparseInsertCount = 0;\n IntIterator sparseBits = sparsePart.intIterator();\n int thisBit = sparseBits.next();\n if (densePart == null) {\n int maxOffset = -1;\n int maxCount = -1;\n int maxMax = -1;\n int offset = thisBit;\n int bits = 32;\n int count = 1;\n while (sparseBits.hasNext()) {\n int nextBit = sparseBits.next();\n int newBits = bits + (nextBit - thisBit);\n int newCount = count + 1;\n if (newBits < (32 * newCount)) {\n count = newCount;\n bits = newBits;\n } else if (bits > 32 * count) {\n if (count > maxCount) {\n maxOffset = offset;\n maxMax = thisBit;\n maxCount = count;\n }\n offset = nextBit;\n count = 1;\n bits = 32;\n }\n thisBit = nextBit;\n }\n if (maxOffset != -1) {\n densePart = new OffsetBitVector(maxOffset, maxMax - maxOffset);\n sparseBits = sparsePart.intIterator();\n while ((sparseBits.next()) != maxOffset) ;\n for (int i = 0; i < maxCount; i++) {\n densePart.set(sparseBits.next());\n }\n for (int bit1 = densePart.nextSetBit(0); bit1 != -1; bit1 = densePart.nextSetBit(bit1 + 1)) {\n sparsePart.remove(bit1);\n }\n }\n } else {\n int moveCount = 0;\n int newOffset = -1;\n int newLength = -1;\n if (thisBit < densePart.getOffset()) {\n newOffset = thisBit;\n int bits = 32;\n int count = 1;\n while (sparseBits.hasNext()) {\n int nextBit = sparseBits.next();\n if (nextBit >= densePart.getOffset()) {\n if (bits > (32 * count)) {\n moveCount += count;\n break;\n } else {\n newOffset = -1;\n }\n } else {\n bits += (nextBit - thisBit);\n count++;\n if (bits > (32 * count)) {\n newOffset = nextBit;\n count = 1;\n bits = 32;\n }\n }\n }\n }\n if (thisBit >= densePart.length()) {\n int count = 1;\n int bits = (thisBit + 1 - densePart.length());\n if (32 * count > bits) {\n newLength = thisBit;\n }\n while (sparseBits.hasNext()) {\n thisBit = sparseBits.next();\n count++;\n bits = (thisBit + 1 - densePart.length());\n newLength = (32 * count > bits) ? thisBit : newLength;\n }\n if (newLength > -1) {\n moveCount += count;\n }\n }\n if (newOffset != -1 || newLength != -1) {\n int index = 0;\n int[] bits = new int[moveCount];\n for (sparseBits = sparsePart.intIterator(); sparseBits.hasNext(); ) {\n int bit = sparseBits.next();\n if (newOffset != -1 && bit >= newOffset && bit <= densePart.getOffset()) {\n bits[index++] = bit;\n }\n if (newLength != -1 && bit >= densePart.length() && bit <= newLength) {\n bits[index++] = bit;\n }\n }\n for (int i = 0; i < moveCount; i++) {\n sparsePart.remove(bits[i]);\n densePart.set(bits[i]);\n }\n }\n }\n }\n}\n"
"public void widgetSelected(SelectionEvent e) {\n MenuEntryDialog dlg = (MenuEntryDialog) ((Widget) e.getSource()).getData(\"String_Node_Str\");\n if (dlg.getReturnCode() == Window.OK) {\n String id = dlg.getIdText().getText();\n if (\"String_Node_Str\".equals(id)) {\n MessageDialog.openError(viewer.getControl().getShell(), \"String_Node_Str\", \"String_Node_Str\");\n return;\n }\n LinkedHashMap<String, String> descriptions = ((LinkedHashMap<String, String>) dlg.getDescriptionsTableViewer().getInput());\n if (descriptions.size() == 0) {\n MessageDialog.openError(viewer.getControl().getShell(), \"String_Node_Str\", \"String_Node_Str\");\n return;\n }\n treeEntry.getWsMenuEntry().setId(id);\n treeEntry.getWsMenuEntry().setContext(\"String_Node_Str\".equals(dlg.getContextText().getText()) ? null : dlg.getContextText().getText());\n treeEntry.getWsMenuEntry().setApplication(\"String_Node_Str\".equals(dlg.getApplicationNameText().getText()) ? null : dlg.getApplicationNameText().getText());\n treeEntry.getWsMenuEntry().setIcon(\"String_Node_Str\".equals(dlg.getIconPathText().getText()) ? null : dlg.getIconPathText().getText());\n WSMenuMenuEntriesDescriptions[] wsDescriptions = new WSMenuMenuEntriesDescriptions[descriptions.size()];\n Set<String> isoCodes = descriptions.keySet();\n int i = 0;\n for (Iterator iter = isoCodes.iterator(); iter.hasNext(); ) {\n String isoCode = (String) iter.next();\n wsDescriptions[i] = new WSMenuMenuEntriesDescriptions();\n wsDescriptions[i].setLanguage(isoCode);\n wsDescriptions[i].setLabel(descriptions.get(isoCode));\n i++;\n }\n treeEntry.getWsMenuEntry().setDescriptions(wsDescriptions);\n viewer.setExpandedState(treeEntry, true);\n viewer.refresh(treeEntry, true);\n markDirtyWithoutCommit();\n }\n dlg.close();\n}\n"
"public static ListBoxModel doFillCredentialsItems(Item context, String remote, Class credentialType) {\n Jenkins j = Jenkins.getInstance();\n if (context == null && !j.hasPermission(Jenkins.ADMINISTER) || context != null && !context.hasPermission(Item.EXTENDED_READ)) {\n return new StandardListBoxModel();\n }\n List<DomainRequirement> domainRequirements;\n if (remote == null) {\n domainRequirements = Collections.<DomainRequirement>emptyList();\n } else {\n domainRequirements = URIRequirementBuilder.fromUri(remote.trim()).build();\n }\n return new StandardListBoxModel().withEmptySelection().withMatching(CredentialsMatchers.instanceOf(credentialType), CredentialsProvider.lookupCredentials(StandardCredentials.class, context, ACL.SYSTEM, domainRequirements));\n}\n"
"public boolean removeCoverageStore(String workspace, String storename) {\n try {\n final StringBuilder url = new StringBuilder(restURL);\n url.append(\"String_Node_Str\").append(workspace).append(\"String_Node_Str\").append(storename);\n if (recurse)\n url.append(\"String_Node_Str\");\n final URL deleteStore = new URL(url.toString());\n boolean deleted = HTTPUtils.delete(deleteStore.toExternalForm(), gsuser, gspass);\n if (!deleted) {\n LOGGER.warn(\"String_Node_Str\" + workspace + \"String_Node_Str\" + storename);\n } else {\n LOGGER.info(\"String_Node_Str\" + workspace + \"String_Node_Str\" + storename);\n }\n return deleted;\n } catch (MalformedURLException ex) {\n LOGGER.error(ex);\n return false;\n }\n}\n"
"private Node nextNode() {\n skipWhitespace();\n int start = cursor;\n if (cursor >= length) {\n return null;\n } else if (expr[cursor] == ';') {\n ++cursor;\n return new StatementTerminator();\n }\n switch(expr[cursor]) {\n case '@':\n start++;\n skipToEOS();\n String scriptTk = new String(expr, start, cursor - start);\n return new ScriptNode(new TokenNode(scriptTk), true);\n case '\\'':\n case '\"':\n cursor = balancedCapture(expr, cursor, expr[cursor]);\n return new StringTokenNode(new String(expr, start + 1, cursor++ - start - 1));\n case '(':\n cursor = balancedCapture(expr, cursor, expr[cursor]);\n return new FSHParser(new String(expr, ++start, cursor++ - start), true).parse();\n default:\n String tk = captureToken();\n if (isReservedWord(tk)) {\n boolean block = \"String_Node_Str\".equals(tk) || \"String_Node_Str\".equals(tk) || \"String_Node_Str\".equals(tk);\n start = cursor;\n SkipLoop: while (cursor <= length) {\n switch(expr[cursor]) {\n case '\\'':\n case '\"':\n case '(':\n cursor = balancedCapture(expr, cursor, expr[cursor]);\n if (block) {\n cursor++;\n while (cursor != length && Character.isWhitespace(expr[cursor])) cursor++;\n StringAppender buf = new StringAppender();\n if (cursor != length) {\n do {\n boolean openBracket = expr[cursor] == '{';\n if (openBracket) {\n cursor++;\n }\n buf.append(shellToMVEL(new String(expr, start, cursor - start - (openBracket ? 1 : 0)), true));\n if (openBracket) {\n buf.append('{');\n }\n start = cursor;\n if (openBracket) {\n cursor = balancedCapture(expr, cursor, '{');\n } else {\n while (cursor != length && expr[cursor] != ';') cursor++;\n }\n int offset = cursor != length && expr[cursor] == '}' ? -1 : 0;\n buf.append(shellToMVEL(new String(expr, start, cursor - start).trim(), false));\n if (offset == -1) {\n buf.append(\"String_Node_Str\");\n cursor++;\n }\n tk += buf.toString();\n buf.reset();\n start = cursor;\n } while (ifThenElseBlockContinues());\n return new ScriptNode(new TokenNode(tk), false);\n }\n }\n break;\n case ';':\n break SkipLoop;\n }\n cursor++;\n }\n tk += new String(expr, start, cursor - start);\n }\n return tk.startsWith(\"String_Node_Str\") ? new ScriptNode(new TokenNode(tk), false) : new TokenNode(tk);\n }\n}\n"