content stringlengths 40 137k |
|---|
"private void postRetry(final String providerName, final Operation operation, final String action) {\n final long when = System.currentTimeMillis() + getTryDelay(providerName, operation);\n OPFLog.d(\"String_Node_Str\", providerName, SimpleDateFormat.getDateTimeInstance().format(new Date(when)));\n final Intent intent = new Intent(appContext, RetryBroadcastReceiver.class);\n intent.setAction(action);\n intent.putExtra(EXTRA_PROVIDER_NAME, providerName);\n alarmManager.set(AlarmManager.RTC, when, PendingIntent.getBroadcast(appContext, 0, intent, 0));\n}\n"
|
"public void pauseProcessed(ResumeHandle resumeable) {\n downstream.pauseProcessed(resumeable);\n}\n"
|
"private Class<T> redefineClassOrImplementInterface(Class<T> classToMock) {\n if (classToMock.isInterface()) {\n return createInstanceOfMockedImplementationClass(classToMock, mockedType);\n }\n if (isAbstract(classToMock.getModifiers()) && classToMock.getClassLoader() != null) {\n classToMock = generateConcreteSubclass(classToMock);\n }\n classesToRestore = redefineMethods(realClass, classToMock, mockedType);\n return classToMock;\n}\n"
|
"private GeographicCRS parseGeoGCS(final Element parent) throws ParseException {\n final Element element = parent.pullElement(WKTKeywords.GeogCS);\n Object name = element.pullString(\"String_Node_Str\");\n final Unit<Angle> angularUnit = parseUnit(element, SI.RADIAN);\n final PrimeMeridian meridian = parsePrimem(element, angularUnit);\n final GeodeticDatum datum = parseDatum(element, meridian);\n if (((String) name).isEmpty()) {\n name = datum.getName();\n }\n CoordinateSystemAxis axis0 = parseAxis(element, true, angularUnit, false);\n CoordinateSystemAxis axis1 = null;\n try {\n if (axis0 != null) {\n axis1 = parseAxis(element, angularUnit, true);\n }\n if (axis0 == null || isAxisIgnored) {\n axis0 = createAxis(\"String_Node_Str\", AxisDirection.EAST, angularUnit);\n axis1 = createAxis(\"String_Node_Str\", AxisDirection.NORTH, angularUnit);\n }\n final Map<String, ?> properties = parseAuthorityAndClose(element, name);\n return crsFactory.createGeographicCRS(properties, datum, csFactory.createEllipsoidalCS(properties, axis0, axis1));\n } catch (FactoryException exception) {\n throw element.parseFailed(exception);\n }\n}\n"
|
"public synchronized void createTables() throws BoardInitException, SQLException {\n PreparedStatement pst = conn.prepareStatement(\"String_Node_Str\");\n ResultSet res = null;\n String commonSql = null;\n try {\n pst.setString(1, \"String_Node_Str\");\n res = pst.executeQuery();\n if (!res.isBeforeFirst()) {\n try {\n commonSql = Resources.toString(Resources.getResource(\"String_Node_Str\"), Charsets.UTF_8);\n } catch (IOException e) {\n throw new BoardInitException(e);\n } catch (IllegalArgumentException e) {\n throw new BoardInitException(e);\n }\n }\n } finally {\n pst.close();\n conn.commit();\n }\n pst = conn.prepareStatement(\"String_Node_Str\");\n try {\n pst.setString(1, this.table);\n res = pst.executeQuery();\n if (res.isBeforeFirst())\n return;\n } finally {\n pst.close();\n conn.commit();\n }\n String boardSql;\n try {\n boardSql = Resources.toString(Resources.getResource(\"String_Node_Str\"), Charsets.UTF_8);\n boardSql = boardSql.replaceAll(\"String_Node_Str\", table);\n } catch (IOException e) {\n throw new BoardInitException(e);\n } catch (IllegalArgumentException e) {\n throw new BoardInitException(e);\n }\n String triggersSql;\n try {\n triggersSql = Resources.toString(Resources.getResource(\"String_Node_Str\"), Charsets.UTF_8);\n triggersSql = triggersSql.replaceAll(\"String_Node_Str\", table);\n } catch (IOException e) {\n throw new BoardInitException(e);\n } catch (IllegalArgumentException e) {\n throw new BoardInitException(e);\n }\n Statement st = conn.createStatement();\n try {\n if (commonSql != null)\n st.executeUpdate(commonSql);\n st.executeUpdate(boardSql);\n st.executeUpdate(triggersSql);\n conn.commit();\n } finally {\n st.close();\n }\n}\n"
|
"public void resetUid(Uid uid, JsonValue target) {\n if (null != uid && null != target) {\n target.put(ResourceResponse.FIELD_CONTENT_ID, uid.getUidValue());\n }\n}\n"
|
"public boolean canTarget(UUID id, Ability source, Game game) {\n StackObject stackObject = game.getStack().getStackObject(id);\n return (stackObject instanceof Spell) || (stackObject instanceof StackAbility);\n}\n"
|
"public boolean isAnnotationPresent(AnnotatedElement elem, Class annotationClass) {\n if (allAnnotationsMap.get(elem) == null) {\n getAnnotationsFromElement(elem);\n }\n return allAnnotationsMap.get(elem).keySet().contains(annotationClass);\n}\n"
|
"public RequestManager initRequestManager(long requestTimeout) {\n RequestManager requestManager = new RequestManager().withRequestProcessor(new ThreadSamplingRequestProcessor().withRequestLengthSamplingThreshold(5000)).withRequestProcessor(new RequestRecorderRequestProcessor()).withResultsProcessor(new FileResultsArchiver().withOutputDirectory(new File(\"String_Node_Str\"))).withRequestTimeout(requestTimeout);\n requestManager.start();\n return requestManager;\n}\n"
|
"public void setFromConnection(Connection conn) {\n this.conn = conn;\n if (lockAddress == null) {\n lockAddress = conn.getEndPoint();\n}\n"
|
"private IntObjectHashMap<IntArrayList> getVarConsMap(FactorList factors) {\n IntObjectHashMap<IntArrayList> varConsMap = new IntObjectHashMap<IntArrayList>();\n for (int i = 0; i < factors.size(); i++) {\n Factor factor = factors.get(i);\n if (boundsOnly && !(factor instanceof BoundFactor)) {\n continue;\n }\n for (LongDoubleEntry ve : factor.G) {\n if (ve.get() != 0.0) {\n int veIdx = SafeCast.safeLongToInt(ve.index());\n if (inputVarIds.contains(veIdx)) {\n Utilities.addToList(varConsMap, veIdx, i);\n }\n }\n }\n }\n return varConsMap;\n}\n"
|
"public String getReference(TypedIOPort port, String[] channelAndOffset, boolean forComposite, boolean isWrite, CodeGeneratorHelper helper) throws IllegalActionException {\n Actor actor = (Actor) port.getContainer();\n Director director = actor.getDirector();\n if (_debugging) {\n _debug(\"String_Node_Str\" + port.getFullName() + \"String_Node_Str\" + actor.getFullName() + \"String_Node_Str\" + director.getFullName());\n }\n if (port.isOutput() && forComposite == false && !director.getFullName().contains(\"String_Node_Str\")) {\n if (channelAndOffset[0].equals(\"String_Node_Str\")) {\n channelAndOffset[0] = \"String_Node_Str\";\n }\n return CodeGeneratorHelper.generateName(port);\n } else {\n return super.getReference(port, channelAndOffset, forComposite, isWrite, helper);\n }\n}\n"
|
"public void testImportStatic3() {\n runConformTest(new String[] { \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" }, \"String_Node_Str\");\n GroovyCompilationUnitDeclaration gcud = getCUDeclFor(\"String_Node_Str\");\n ImportReference[] irs = gcud.imports;\n assertTrue(irs[0] instanceof AliasImportReference);\n assertEquals(\"String_Node_Str\", irs[0].toString().trim());\n assertTrue(irs[0].isStatic());\n assertEquals(\"String_Node_Str\", new String(((AliasImportReference) irs[0]).getSimpleName()));\n}\n"
|
"public static Map<String, Object> formatReconEntry(Map<String, Object> entry) {\n Map<String, Object> formattedEntry = new LinkedHashMap<String, Object>();\n formattedEntry.put(\"String_Node_Str\", entry.get(\"String_Node_Str\"));\n formattedEntry.put(\"String_Node_Str\", entry.get(\"String_Node_Str\"));\n formattedEntry.put(\"String_Node_Str\", entry.get(\"String_Node_Str\"));\n formattedEntry.put(\"String_Node_Str\", entry.get(\"String_Node_Str\"));\n formattedEntry.put(\"String_Node_Str\", entry.get(\"String_Node_Str\"));\n formattedEntry.put(\"String_Node_Str\", entry.get(\"String_Node_Str\"));\n formattedEntry.put(\"String_Node_Str\", entry.get(\"String_Node_Str\"));\n formattedEntry.put(\"String_Node_Str\", entry.get(\"String_Node_Str\"));\n formattedEntry.put(\"String_Node_Str\", entry.get(\"String_Node_Str\"));\n if (\"String_Node_Str\".equals(entry.get(\"String_Node_Str\")) || null == entry.get(\"String_Node_Str\")) {\n formattedEntry.put(\"String_Node_Str\", entry.get(\"String_Node_Str\"));\n formattedEntry.put(\"String_Node_Str\", entry.get(\"String_Node_Str\"));\n formattedEntry.put(\"String_Node_Str\", entry.get(\"String_Node_Str\"));\n formattedEntry.put(\"String_Node_Str\", entry.get(\"String_Node_Str\"));\n formattedEntry.put(\"String_Node_Str\", entry.get(\"String_Node_Str\"));\n formattedEntry.put(\"String_Node_Str\", entry.get(\"String_Node_Str\"));\n formattedEntry.put(\"String_Node_Str\", entry.get(\"String_Node_Str\"));\n } else {\n formattedEntry.put(\"String_Node_Str\", entry.get(\"String_Node_Str\"));\n }\n return formattedEntry;\n}\n"
|
"public boolean parse(Bytes jsonText) {\n TokenType tok;\n long startOffset = jsonText.position();\n around_again: while (true) {\n switch(stateStack.current()) {\n case PARSE_COMPLETE:\n if (topLevelStrategy == ALLOW_MULTIPLE_VALUES) {\n stateStack.set(GOT_VALUE);\n continue around_again;\n }\n if (topLevelStrategy != ALLOW_TRAILING_GARBAGE) {\n if (jsonText.remaining() > 0) {\n tok = lexer.lex(jsonText);\n if (tok != EOF) {\n return parseError(\"String_Node_Str\");\n }\n continue around_again;\n }\n }\n return true;\n case LEXICAL_ERROR:\n case PARSE_ERROR:\n throw new IllegalStateException(\"String_Node_Str\" + parseError);\n case HANDLER_CANCEL:\n throw new IllegalStateException(\"String_Node_Str\");\n case HANDLER_EXCEPTION:\n throw new IllegalStateException(\"String_Node_Str\");\n case START:\n case GOT_VALUE:\n case MAP_NEED_VAL:\n case ARRAY_NEED_VAL:\n case ARRAY_START:\n {\n byte stateToPush = START;\n tok = lexer.lex(jsonText);\n switch(tok) {\n case EOF:\n return true;\n case ERROR:\n lexicalError();\n case STRING:\n if (stringValueHandler != null) {\n try {\n if (!onString.on()) {\n stateStack.set(HANDLER_CANCEL);\n return false;\n }\n } catch (Exception e) {\n return handlerError(e);\n }\n }\n break;\n case STRING_WITH_ESCAPES:\n if (stringValueHandler != null) {\n try {\n if (!onEscapedString.on()) {\n stateStack.set(HANDLER_CANCEL);\n return false;\n }\n } catch (Exception e) {\n return handlerError(e);\n }\n }\n break;\n case BOOL:\n if (booleanHandler != null) {\n boolean value = lexer.outBuf.readUnsignedByte(lexer.outPos) == 't';\n try {\n if (!booleanHandler.onBoolean(value)) {\n stateStack.set(HANDLER_CANCEL);\n return false;\n }\n } catch (Exception e) {\n return handlerError(e);\n }\n }\n break;\n case NULL:\n if (nullHandler != null) {\n try {\n if (!nullHandler.onNull()) {\n stateStack.set(HANDLER_CANCEL);\n return false;\n }\n } catch (Exception e) {\n return handlerError(e);\n }\n }\n break;\n case LEFT_BRACKET:\n if (objectStartHandler != null) {\n try {\n if (!objectStartHandler.onObjectStart()) {\n stateStack.set(HANDLER_CANCEL);\n return false;\n }\n } catch (Exception e) {\n return handlerError(e);\n }\n }\n stateToPush = MAP_START;\n break;\n case LEFT_BRACE:\n if (arrayStartHandler != null) {\n try {\n if (!arrayStartHandler.onArrayStart()) {\n stateStack.set(HANDLER_CANCEL);\n return false;\n }\n } catch (Exception e) {\n return handlerError(e);\n }\n }\n stateToPush = ARRAY_START;\n break;\n case INTEGER:\n if (numberHandler != null) {\n try {\n if (!onNumber.on()) {\n stateStack.set(HANDLER_CANCEL);\n return false;\n }\n }\n } else if (integerHandler != null) {\n try {\n long i = parseInteger(lexer.outBuf, lexer.outPos, lexer.outLen);\n if (!integerHandler.onInteger(i)) {\n stateStack.set(HANDLER_CANCEL);\n return false;\n }\n } catch (NumberFormatException e) {\n tryRestoreErrorEffect(jsonText, startOffset);\n return parseError(\"String_Node_Str\", e);\n } catch (Exception e) {\n return handlerError(e);\n }\n }\n break;\n case DOUBLE:\n if (numberHandler != null) {\n if (stringValueHandler != null) {\n try {\n if (!onNumber.on()) {\n stateStack.set(HANDLER_CANCEL);\n return false;\n }\n } catch (Exception e) {\n return handlerError(e);\n }\n }\n } else if (floatingHandler != null) {\n try {\n if (!onFloating.on()) {\n stateStack.set(HANDLER_CANCEL);\n return false;\n }\n } catch (NumberFormatException e) {\n tryRestoreErrorEffect(jsonText, startOffset);\n return parseError(\"String_Node_Str\", e);\n } catch (Exception e) {\n return handlerError(e);\n }\n }\n break;\n case RIGHT_BRACE:\n {\n if (stateStack.current() == ARRAY_START) {\n if (arrayEndHandler != null) {\n try {\n if (!arrayEndHandler.onArrayEnd()) {\n stateStack.set(HANDLER_CANCEL);\n return false;\n }\n } catch (Exception e) {\n return handlerError(e);\n }\n }\n stateStack.pop();\n continue around_again;\n }\n }\n case COLON:\n case COMMA:\n case RIGHT_BRACKET:\n return parseError(\"String_Node_Str\");\n default:\n return parseError(\"String_Node_Str\");\n }\n {\n byte s = stateStack.current();\n if (s == START || s == GOT_VALUE) {\n stateStack.set(PARSE_COMPLETE);\n } else if (s == MAP_NEED_VAL) {\n stateStack.set(MAP_GOT_VAL);\n } else {\n stateStack.set(ARRAY_GOT_VAL);\n }\n }\n if (stateToPush != START) {\n stateStack.push(stateToPush);\n }\n continue around_again;\n }\n case MAP_START:\n case MAP_NEED_KEY:\n {\n tok = lexer.lex(jsonText);\n OnString onKey = this.onKey;\n switch(tok) {\n case EOF:\n return true;\n case ERROR:\n lexicalError();\n case STRING_WITH_ESCAPES:\n onKey = onEscapedKey;\n case STRING:\n if (objectKeyHandler != null) {\n try {\n if (!onKey.on()) {\n stateStack.set(HANDLER_CANCEL);\n return false;\n }\n } catch (Exception e) {\n return handlerError(e);\n }\n }\n stateStack.set(MAP_SEP);\n continue around_again;\n case RIGHT_BRACKET:\n if (stateStack.current() == MAP_START) {\n if (objectEndHandler != null) {\n try {\n if (!objectEndHandler.onObjectEnd()) {\n stateStack.set(HANDLER_CANCEL);\n return false;\n }\n } catch (Exception e) {\n return handlerError(e);\n }\n }\n stateStack.pop();\n continue around_again;\n }\n default:\n return parseError(\"String_Node_Str\");\n }\n }\n case MAP_SEP:\n {\n tok = lexer.lex(jsonText);\n switch(tok) {\n case COLON:\n stateStack.set(MAP_NEED_VAL);\n continue around_again;\n case EOF:\n return true;\n case ERROR:\n lexicalError();\n default:\n return parseError(\"String_Node_Str\");\n }\n }\n case MAP_GOT_VAL:\n {\n tok = lexer.lex(jsonText);\n switch(tok) {\n case RIGHT_BRACKET:\n if (objectEndHandler != null) {\n try {\n if (!objectEndHandler.onObjectEnd()) {\n stateStack.set(HANDLER_CANCEL);\n return false;\n }\n } catch (Exception e) {\n return handlerError(e);\n }\n }\n stateStack.pop();\n continue around_again;\n case COMMA:\n stateStack.set(MAP_NEED_KEY);\n continue around_again;\n case EOF:\n return true;\n case ERROR:\n lexicalError();\n default:\n tryRestoreErrorEffect(jsonText, startOffset);\n return parseError(\"String_Node_Str\");\n }\n }\n case ARRAY_GOT_VAL:\n {\n tok = lexer.lex(jsonText);\n switch(tok) {\n case RIGHT_BRACE:\n if (arrayEndHandler != null) {\n try {\n if (!arrayEndHandler.onArrayEnd()) {\n stateStack.set(HANDLER_CANCEL);\n return false;\n }\n } catch (Exception e) {\n return handlerError(e);\n }\n }\n stateStack.pop();\n continue around_again;\n case COMMA:\n stateStack.set(ARRAY_NEED_VAL);\n continue around_again;\n case EOF:\n return true;\n case ERROR:\n return lexicalError();\n default:\n return parseError(\"String_Node_Str\");\n }\n }\n }\n }\n}\n"
|
"protected RowContent createRowContent() {\n RowContent content = (RowContent) reportContent.createRowContent();\n content.setRowID(100);\n return content;\n}\n"
|
"private void disconnectConnected(Profile profile) {\n LocalBluetoothProfileManager profileManager = LocalBluetoothProfileManager.getProfileManager(mLocalManager, profile);\n CachedBluetoothDeviceManager cachedDeviceManager = mLocalManager.getCachedDeviceManager();\n Set<BluetoothDevice> devices = profileManager.getConnectedDevices();\n if (devices == null)\n return;\n for (BluetoothDevice device : devices) {\n CachedBluetoothDevice cachedDevice = cachedDeviceManager.findDevice(device);\n if (cachedDevice != null) {\n disconnectInt(cachedDevice, profile);\n }\n }\n}\n"
|
"public Path getResourcePath() throws IOException {\n if (resourcePath == null) {\n try {\n resourcePath = determineResourcePath(getConfiguration(), getResourceName());\n } catch (URISyntaxException e) {\n throw new IOException(e);\n }\n }\n return resourcePath;\n}\n"
|
"void fixGroupIndex(int j, int to, boolean infront) {\n for (Iterator it = getChildren().listIterator(j); it.hasNext() && (to < 0 || j <= to); ++j) {\n Object o = it.next();\n if (o instanceof Group) {\n int[] g = getLastGroupsInfoAt(j + (infront ? -1 : 1));\n if (g != null) {\n g[0] = j;\n if (g[2] != -1)\n g[2] += (infront ? 1 : -1);\n }\n }\n }\n}\n"
|
"public void stopDecoding(DecoderListener listener) {\n Timber.i(\"String_Node_Str\");\n this.decoderListenerRef.set(listener);\n if (!isDecoding.get()) {\n if (listener != null) {\n notifyDecodingEnded();\n }\n } else {\n if (decodedFirstFrame.get()) {\n if (processInputData.compareAndSet(true, false)) {\n sendCompletionFlag.set(!processNALUChunk(naluChunkAssembler.getEndOfStream()));\n }\n } else {\n handler.post(stopSafely);\n }\n }\n}\n"
|
"public boolean isMixedContent() {\n return isMixedContent;\n}\n"
|
"private void applyMetadataChanges(EntityMetadata metadata) {\n metadata.setPersistenceUnit(persistenceUnit);\n PersistenceUnitMetadata puMetadata = KunderaMetadata.INSTANCE.getApplicationMetadata().getPersistenceUnitMetadata(persistenceUnit);\n String keyspace = puProperties != null ? (String) puProperties.get(PersistenceProperties.KUNDERA_KEYSPACE) : null;\n keyspace = keyspace == null ? puMetadata.getProperty(PersistenceProperties.KUNDERA_KEYSPACE) : keyspace;\n if (metadata.getSchema() == null) {\n metadata.setSchema(keyspace);\n }\n if (metadata.getTableName() == null) {\n metadata.setTableName(metadata.getEntityClazz().getSimpleName());\n }\n}\n"
|
"public void testParseIssueNonUnicodeSymbols() {\n try {\n String xml = MyIOUtils.getResourceAsString(\"String_Node_Str\");\n String nonLatinSymbols = \"String_Node_Str\";\n List<Issue> issues = RedmineXMLParser.parseObjectsFromXML(Issue.class, xml);\n Assert.assertTrue(issues.size() == 1);\n Issue issue = issues.get(0);\n Assert.assertEquals(nonLatinSymbols, issue.getSubject());\n } catch (Exception e) {\n Assert.fail(e.getMessage());\n }\n}\n"
|
"public void testSimpleNested() {\n JSONObject j1 = new JSONObject();\n j1.put(\"String_Node_Str\", new JSONString(\"String_Node_Str\"));\n JSONObject j2 = new JSONObject();\n j2.put(\"String_Node_Str\", new JSONString(\"String_Node_Str\"));\n JSONObject j22 = new JSONObject();\n j22.put(\"String_Node_Str\", new JSONString(\"String_Node_Str\"));\n j2.put(\"String_Node_Str\", j22);\n JSONObject j3 = new JSONObject();\n j3.put(\"String_Node_Str\", j1);\n j3.put(\"String_Node_Str\", j2);\n assertEquals(\"String_Node_Str\", j3.toString());\n}\n"
|
"public static String getStringFromJsonNode(JsonNode jsonNode) {\n return (jsonNode == null || jsonNode.isTextual() && jsonNode.textValue() == null) ? null : jsonNode.toString();\n}\n"
|
"private void resetDataLoader() {\n if (_dataLoader != null) {\n if (shallReset) {\n _dataLoader.reset();\n smartUpdate(\"String_Node_Str\", 0);\n }\n _dataLoader = null;\n smartUpdate(\"String_Node_Str\", 0);\n }\n smartUpdate(\"String_Node_Str\", true);\n _currentTop = 0;\n _currentLeft = 0;\n _topPad = 0;\n}\n"
|
"public boolean checkTrigger(GameEvent event, Game game) {\n if (event.getType().equals(GameEvent.EventType.DAMAGED_PLAYER) && event.getTargetId().equals(this.getControllerId())) {\n DamagedEvent damagedEvent = (DamagedEvent) event;\n return damagedEvent.isCombatDamage();\n }\n return false;\n}\n"
|
"public void testCreateNeoStore() {\n try {\n initializeStores();\n startTx();\n int node1 = ds.nextId(Node.class);\n nStore.createNode(node1);\n int node2 = ds.nextId(Node.class);\n nStore.createNode(node2);\n int n1prop1 = pStore.nextId();\n int n1prop2 = pStore.nextId();\n int n1prop3 = pStore.nextId();\n nStore.addProperty(node1, n1prop1, index(\"String_Node_Str\"), \"String_Node_Str\");\n nStore.addProperty(node1, n1prop2, index(\"String_Node_Str\"), new Integer(1));\n nStore.addProperty(node1, n1prop3, index(\"String_Node_Str\"), new Boolean(true));\n int n2prop1 = pStore.nextId();\n int n2prop2 = pStore.nextId();\n int n2prop3 = pStore.nextId();\n nStore.addProperty(node2, n2prop1, index(\"String_Node_Str\"), \"String_Node_Str\");\n nStore.addProperty(node2, n2prop2, index(\"String_Node_Str\"), new Integer(2));\n nStore.addProperty(node2, n2prop3, index(\"String_Node_Str\"), new Boolean(false));\n int relType1 = ds.nextId(RelationshipType.class);\n relTypeStore.addRelationshipType(relType1, \"String_Node_Str\");\n int relType2 = ds.nextId(RelationshipType.class);\n relTypeStore.addRelationshipType(relType2, \"String_Node_Str\");\n int rel1 = ds.nextId(Relationship.class);\n rStore.createRelationship(rel1, node1, node2, relType1);\n int rel2 = ds.nextId(Relationship.class);\n rStore.createRelationship(rel2, node2, node1, relType2);\n int r1prop1 = pStore.nextId();\n int r1prop2 = pStore.nextId();\n int r1prop3 = pStore.nextId();\n rStore.addProperty(rel1, r1prop1, index(\"String_Node_Str\"), \"String_Node_Str\");\n rStore.addProperty(rel1, r1prop2, index(\"String_Node_Str\"), new Integer(1));\n rStore.addProperty(rel1, r1prop3, index(\"String_Node_Str\"), new Boolean(true));\n int r2prop1 = pStore.nextId();\n int r2prop2 = pStore.nextId();\n int r2prop3 = pStore.nextId();\n rStore.addProperty(rel2, r2prop1, index(\"String_Node_Str\"), \"String_Node_Str\");\n rStore.addProperty(rel2, r2prop2, index(\"String_Node_Str\"), new Integer(2));\n rStore.addProperty(rel2, r2prop3, index(\"String_Node_Str\"), new Boolean(false));\n commitTx();\n ds.close();\n initializeStores();\n startTx();\n validateNodeRel1(node1, n1prop1, n1prop2, n1prop3, rel1, rel2, relType1, relType2);\n validateNodeRel2(node2, n2prop1, n2prop2, n2prop3, rel1, rel2, relType1, relType2);\n validateRel1(rel1, r1prop1, r1prop2, r1prop3, node1, node2, relType1);\n validateRel2(rel2, r2prop1, r2prop2, r2prop3, node2, node1, relType2);\n validateRelTypes(relType1, relType2);\n validateRelTypes(relType1, relType2);\n commitTx();\n ds.close();\n initializeStores();\n startTx();\n deleteRel1(rel1, r1prop1, r1prop2, r1prop3, node1, node2, relType1);\n deleteRel2(rel2, r2prop1, r2prop2, r2prop3, node2, node1, relType2);\n deleteNode1(node1, n1prop1, n1prop2, n1prop3);\n deleteNode2(node2, n2prop1, n2prop2, n2prop3);\n commitTx();\n ds.close();\n initializeStores();\n startTx();\n assertEquals(false, nStore.loadLightNode(node1));\n assertEquals(false, nStore.loadLightNode(node2));\n testGetRels(new int[] { rel1, rel2 });\n int[] nodeIds = new int[10];\n for (int i = 0; i < 3; i++) {\n nodeIds[i] = ds.nextId(Node.class);\n nStore.createNode(nodeIds[i]);\n nStore.addProperty(nodeIds[i], pStore.nextId(), index(\"String_Node_Str\"), new Integer(10 - i));\n }\n for (int i = 0; i < 2; i++) {\n int id = ds.nextId(Relationship.class);\n rStore.createRelationship(id, nodeIds[i], nodeIds[i + 1], relType1);\n rStore.deleteRelationship(id);\n }\n for (int i = 0; i < 3; i++) {\n RelationshipData[] rels = nStore.getRelationships(nodeIds[i]);\n for (int j = 0; j < rels.length; j++) {\n rStore.deleteRelationship(rels[j].getId());\n }\n nStore.deleteNode(nodeIds[i]);\n }\n commitTx();\n ds.close();\n } catch (Exception e) {\n e.printStackTrace();\n fail(\"String_Node_Str\" + e);\n }\n}\n"
|
"public boolean equals(Object obj) {\n if (obj == this)\n return true;\n if (obj == null)\n return false;\n if (obj.getClass() != getClass())\n return false;\n return ((GitModelWorkingFile) obj).getLocation().equals(getLocation());\n}\n"
|
"public List<? extends PortForwardingRule> listPortForwardingRules(ListPortForwardingRulesCmd cmd) {\n Ip ipAddress = new Ip(cmd.getIpAddress());\n Account caller = UserContext.current().getAccount();\n IPAddressVO ipAddressVO = _ipAddressDao.findById(ipAddress.addr());\n if (ipAddressVO == null || !ipAddressVO.readyToUse()) {\n throw new InvalidParameterValueException(\"String_Node_Str\" + ipAddress);\n }\n List<PortForwardingRuleVO> rules = _forwardingDao.listByIp(ipAddress);\n _accountMgr.checkAccess(caller, rules.toArray(new PortForwardingRuleVO[rules.size()]));\n return rules;\n}\n"
|
"public boolean removeMapObject(AbstractHexMapObject mapObject) {\n return objectsGrid.removeMapObject(x, y, mapObject);\n}\n"
|
"public static ByteBuffer readToByteBuffer(InputStream inputStream) {\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n byte[] buffer = new byte[4096];\n try {\n while (true) {\n int n = inputStream.read(buffer);\n if (n < 0)\n break;\n outputStream.write(buffer, 0, n);\n }\n }\n ByteBuffer byteBuffer = BufferUtils.createByteBuffer(outputStream.size());\n byteBuffer.put(outputStream.toByteArray()).flip();\n return byteBuffer;\n}\n"
|
"static void assertArraysEqual(String[] actual, String[] expected) {\n try {\n assertEquals(actual, expected, \"String_Node_Str\");\n } catch (AssertionError x) {\n AssertionError ae = new AssertionError(String.format(\"String_Node_Str\", java.util.Arrays.toString(expected), java.util.Arrays.toString(actual)));\n ae.initCause(x);\n throw ae;\n }\n}\n"
|
"public void onPersonSelected(Person person) {\n FragmentManager fragmentManager = getFragmentManager();\n PersonDetailFragment personDetailFragment = (PersonDetailFragment) fragmentManager.findFragmentByTag(KEY_PERSON_DETAIL_FRAGMENT);\n long personID = person.getPersonID();\n int localTableBlogID = person.getLocalTableBlogId();\n if (personDetailFragment == null) {\n personDetailFragment = PersonDetailFragment.newInstance(personID, localTableBlogID);\n } else {\n personDetailFragment.setPersonDetails(personID, localTableBlogID);\n }\n if (!personDetailFragment.isAdded()) {\n FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(R.animator.fragment_slide_in_from_right, 0, 0, R.animator.fragment_slide_out_to_right);\n fragmentTransaction.add(R.id.fragment_container, personDetailFragment, KEY_PERSON_DETAIL_FRAGMENT);\n fragmentTransaction.addToBackStack(null);\n fragmentTransaction.commit();\n }\n}\n"
|
"public LogisticRegressionParams doCompute(MasterContext<LogisticRegressionParams, LogisticRegressionParams> context) {\n if (isInitialized.compareAndSet(false, true)) {\n if (!context.isFirstIteration()) {\n LogisticRegressionParams lastMasterResult = context.getMasterResult();\n if (lastMasterResult != null && lastMasterResult.getParameters() != null) {\n this.weights = lastMasterResult.getParameters();\n return lastMasterResult;\n } else {\n return initWeights();\n }\n }\n }\n if (context.isFirstIteration()) {\n if (this.isContinuousEnabled) {\n return initOrRecoverParams(context);\n } else {\n return initWeights();\n }\n } else {\n double[] gradients = new double[this.inputNum + 1];\n double trainError = 0.0d, testError = 0d;\n long trainSize = 0, testSize = 0;\n for (LogisticRegressionParams param : context.getWorkerResults()) {\n if (param != null) {\n for (int i = 0; i < gradients.length; i++) {\n gradients[i] += param.getParameters()[i];\n }\n trainError += param.getTrainError();\n testError += param.getTestError();\n trainSize += param.getTrainSize();\n testSize += param.getTestSize();\n }\n }\n if (this.weightCalculator == null) {\n this.weightCalculator = new Weight(weights.length, trainSize, learningRate, this.propagation, this.regularizedConstant, RegulationLevel.to(this.validParams.get(CommonConstants.REG_LEVEL_KEY)), 0d);\n } else {\n this.weightCalculator.setNumTrainSize(trainSize);\n }\n double[] oldWeights = Arrays.copyOf(this.weights, this.weights.length);\n this.weights = this.weightCalculator.calculateWeights(this.weights, gradients);\n double finalTrainError = trainError / trainSize;\n double finalTestError = testError / testSize;\n LOG.info(\"String_Node_Str\", context.getCurrentIteration(), finalTrainError, finalTestError);\n LogisticRegressionParams lrParams = new LogisticRegressionParams(weights, finalTrainError, finalTestError, trainSize, testSize);\n boolean vtTriggered = false;\n if (validationTolerance > 0d) {\n double weightSumSquare = 0d;\n double diffWeightSumSquare = 0d;\n for (int i = 0; i < weights.length; i++) {\n weightSumSquare += Math.pow(weights[i], 2);\n diffWeightSumSquare += Math.pow(weights[i] - oldWeights[i], 2);\n }\n if (Math.pow(diffWeightSumSquare, 0.5) < this.validationTolerance * Math.max(Math.pow(weightSumSquare, 0.5), 1d)) {\n LOG.info(\"String_Node_Str\", Math.pow(diffWeightSumSquare, 0.5), Math.pow(weightSumSquare, 0.5), validationTolerance);\n vtTriggered = true;\n }\n }\n if (finalTestError < this.bestValidationError) {\n this.bestValidationError = finalTestError;\n }\n if (judger.judge(finalTrainError + finalTestError / 2, convergenceThreshold) || vtTriggered) {\n LOG.info(\"String_Node_Str\", context.getCurrentIteration());\n lrParams.setHalt(true);\n } else {\n LOG.debug(\"String_Node_Str\", context.getCurrentIteration());\n }\n return lrParams;\n }\n}\n"
|
"private URL generateRestJobSpringConfig(ProcessItem processItem) throws IOException {\n File targetFile = new File(getTmpFolder() + PATH_SEPARATOR + \"String_Node_Str\");\n NodeType restRequestComponent = getRESTRequestComponent(processItem);\n Map<String, Object> endpointInfo = new HashMap<String, Object>();\n endpointInfo.put(\"String_Node_Str\", jobName);\n endpointInfo.put(\"String_Node_Str\", jobClassName);\n final String runtimeServicesContext = \"String_Node_Str\";\n final String runtimeServicesContextFull = runtimeServicesContext + \"String_Node_Str\";\n String endpointUri = EmfModelUtils.computeTextElementValue(\"String_Node_Str\", restRequestComponent);\n if (!endpointUri.isEmpty() && !endpointUri.contains(\"String_Node_Str\") && !endpointUri.startsWith(\"String_Node_Str\")) {\n endpointUri = \"String_Node_Str\" + endpointUri;\n }\n if (runtimeServicesContextFull.equals(endpointUri) || runtimeServicesContext.equals(endpointUri)) {\n } else if (endpointUri.startsWith(runtimeServicesContextFull)) {\n endpointUri = endpointUri.substring(runtimeServicesContextFull.length() - 1);\n }\n endpointInfo.put(\"String_Node_Str\", endpointUri);\n endpointInfo.put(\"String_Node_Str\", EmfModelUtils.computeCheckElementValue(\"String_Node_Str\", restRequestComponent));\n endpointInfo.put(\"String_Node_Str\", EmfModelUtils.computeCheckElementValue(\"String_Node_Str\", restRequestComponent));\n endpointInfo.put(\"String_Node_Str\", EmfModelUtils.computeCheckElementValue(\"String_Node_Str\", restRequestComponent));\n endpointInfo.put(\"String_Node_Str\", EmfModelUtils.computeCheckElementValue(\"String_Node_Str\", restRequestComponent));\n endpointInfo.put(\"String_Node_Str\", EmfModelUtils.computeCheckElementValue(\"String_Node_Str\", restRequestComponent));\n Map<String, String> slCustomProperties = new HashMap<String, String>();\n ElementParameterType customPropsType = EmfModelUtils.findElementParameterByName(\"String_Node_Str\", restRequestComponent);\n if (null != customPropsType) {\n EList<?> elementValues = customPropsType.getElementValue();\n final int size = elementValues.size();\n for (int i = 0; i < size; i += 2) {\n if (size <= i + 1) {\n break;\n }\n ElementValueType name = (ElementValueType) elementValues.get(i);\n ElementValueType value = (ElementValueType) elementValues.get(i + 1);\n if (null != name && null != value) {\n if (null != name.getValue() && null != value.getValue()) {\n slCustomProperties.put(unquote(name.getValue()), unquote(value.getValue()));\n }\n }\n }\n }\n endpointInfo.put(\"String_Node_Str\", slCustomProperties);\n endpointInfo.put(\"String_Node_Str\", EmfModelUtils.computeTextElementValue(\"String_Node_Str\", restRequestComponent));\n endpointInfo.put(\"String_Node_Str\", EmfModelUtils.computeTextElementValue(\"String_Node_Str\", restRequestComponent));\n endpointInfo.put(\"String_Node_Str\", DataSourceConfig.getAliases(processItem));\n Map<String, Object> contextParams = new HashMap<String, Object>();\n contextParams.put(\"String_Node_Str\", endpointInfo);\n TemplateProcessor.processTemplate(\"String_Node_Str\", contextParams, targetFile, new InputStreamReader(this.getClass().getResourceAsStream(TEMPLATE_SPRING_JOB_REST)));\n return targetFile.toURI().toURL();\n}\n"
|
"public <T extends Event> void registerEventReceiver(EventReceiver<T> eventReceiver, Class<T> eventClass, int priority, Class<? extends Component>... componentTypes) {\n EventHandlerInfo info = new ReceiverEventHandlerInfo<T>(eventReceiver, priority, componentTypes);\n addEventHandler(eventClass, info, Arrays.asList(componentTypes));\n}\n"
|
"private void addProvider(String url) {\n boolean is_new_provider = !solo.searchText(url);\n if (is_new_provider)\n added_providers = added_providers + 1;\n solo.clickOnActionBarItem(R.id.new_provider);\n solo.enterText(0, url);\n if (BuildConfig.FLAVOR.equals(\"String_Node_Str\")) {\n solo.clickOnCheckBox(0);\n }\n solo.clickOnText(solo.getString(R.string.save));\n if (expectSuccess) {\n waitForProviderDetails();\n } else {\n waitForNoValidProviderError();\n }\n solo.goBack();\n}\n"
|
"public boolean equals(Object obj) {\n if (!super.equals(obj)) {\n return false;\n }\n if (!(obj instanceof SingleInstanceProfilingEvent)) {\n return false;\n }\n final SingleInstanceProfilingEvent singleInstanceProfilingEvent = (SingleInstanceProfilingEvent) obj;\n if (!this.instanceName.equals(singleInstanceProfilingEvent.getInstanceName())) {\n return false;\n }\n return true;\n}\n"
|
"public boolean testZOverlap(Object3D near) {\n return !((this.getZMin() >= near.getZMax()) || (near.getZMin() >= this.getZMax()));\n}\n"
|
"public boolean checkTrigger(GameEvent event, Game game) {\n Permanent permanent = game.getPermanent(event.getTargetId());\n if (permanent != null && permanent.getControllerId().equals(this.controllerId) && (permanent.getSubtype().contains(\"String_Node_Str\") || permanent.getSubtype().contains(\"String_Node_Str\"))) {\n MageObject object = game.getObject(event.getSourceId());\n if (object != null && object instanceof Spell) {\n Card c = (Spell) object;\n if (c.getCardType().contains(CardType.INSTANT) || c.getCardType().contains(CardType.SORCERY)) {\n if (getTargets().isEmpty()) {\n for (Effect effect : getEffects()) {\n effect.setTargetPointer(new FixedTarget(event.getTargetId()));\n }\n }\n return true;\n }\n }\n }\n return false;\n}\n"
|
"public IStatus testRun(IProgressMonitor m) {\n GraphUIJob uijob = new GraphUIJob(Messages.getString(\"String_Node_Str\"), this, viewID);\n uijob.schedule();\n view = uijob.getViewer();\n return Status.OK_STATUS;\n}\n"
|
"public void unloadResources(Property property) {\n for (Resource resource : getAffectedResources(property)) {\n if (resource != null) {\n resource.unload();\n resourceSet.getResources().remove(resource);\n }\n }\n}\n"
|
"private void addDatastoreEntity(final DatastoreType type, final List<String> datastores, final String name, final boolean regex) {\n if (dsDao.nameExisted(name)) {\n throw BddException.ALREADY_EXISTS(\"String_Node_Str\", name);\n }\n resService.refreshDatastore();\n for (String ds : datastores) {\n String dsPattern = ds;\n if (!regex) {\n dsPattern = CommonUtil.getDatastoreJavaPattern(ds);\n }\n if (!resService.isDatastoreExistInVC(dsPattern)) {\n throw VcProviderException.DATASTORE_NOT_FOUND(ds);\n }\n VcDatastoreEntity entity = new VcDatastoreEntity();\n entity.setType(type);\n entity.setName(name);\n entity.setVcDatastore(ds);\n entity.setRegex(regex);\n dsDao.insert(entity);\n logger.info(\"String_Node_Str\" + type + \"String_Node_Str\" + ds);\n }\n}\n"
|
"public byte[] get() {\n if (isInMemory()) {\n if (cachedContent == null) {\n cachedContent = dfos.getData();\n }\n return cachedContent;\n }\n byte[] fileData = new byte[(int) getSize()];\n FileInputStream fis = null;\n try {\n fis = new FileInputStream(dfos.getFile());\n if (fis.read(fileData) != (int) getSize())\n if (log.isLoggable(Level.INFO))\n log.log(Level.INFO, sm.getString(\"String_Node_Str\"));\n } catch (IOException e) {\n fileData = null;\n } finally {\n if (fis != null) {\n try {\n fis.close();\n } catch (IOException e) {\n }\n }\n }\n return fileData;\n}\n"
|
"private void registerPlayerSkinListener() {\n PacketListener spawnListener = new PacketAdapter(PacketAdapter.params(SkinsRestorer.getInstance(), PacketType.Play.Server.NAMED_ENTITY_SPAWN).listenerPriority(ListenerPriority.HIGHEST)) {\n\n public void onPacketSending(PacketEvent event) {\n StructureModifier<UUID> uuids = event.getPacket().getSpecificModifier(UUID.class);\n UUID uuid = uuids.read(0);\n Player player = Bukkit.getPlayer(uuid);\n SkinsRestorer.getInstance().logDebug(\"String_Node_Str\" + player.getName());\n if (player != null && SkinsRestorer.getInstance().getSkinStorage().hasLoadedSkinData(player.getName())) {\n SkinsRestorer.getInstance().logDebug(\"String_Node_Str\" + player.getName());\n SkinProfile skinprofile = SkinsRestorer.getInstance().getSkinStorage().getLoadedSkinData(player.getName());\n uuids.write(0, skinprofile.getUUID());\n }\n }\n };\n ProtocolLibrary.getProtocolManager().addPacketListener(spawnListener);\n}\n"
|
"public void testPE1603() throws Throwable {\n assertTimestampValue(2, null);\n conn.execute(\"String_Node_Str\");\n assertTimestampValue(2, 10l);\n conn.execute(\"String_Node_Str\");\n assertTimestampValue(2, null);\n conn.execute(\"String_Node_Str\");\n assertTimestampValue(2, 300000000l);\n conn.execute(\"String_Node_Str\");\n assertTimestampValue(2, null);\n new ExpectedExceptionTester() {\n public void test() throws Throwable {\n conn.execute(\"String_Node_Str\");\n }\n }.assertException(PESQLStateException.class, \"String_Node_Str\");\n new ExpectedExceptionTester() {\n public void test() throws Throwable {\n conn.execute(\"String_Node_Str\");\n }\n }.assertError(SchemaException.class, MySQLErrors.wrongTypeForVariable, \"String_Node_Str\");\n}\n"
|
"public String getSetting(String name) throws RemoteException {\n String value = null;\n try {\n SQLiteDatabase policyDb = getDatabase();\n if (mStmtGetSetting == null) {\n String sql = \"String_Node_Str\" + cTableSetting + \"String_Node_Str\";\n mStmtGetSetting = policyDb.compileStatement(sql);\n }\n mLock.readLock().lock();\n policyDb.beginTransaction();\n try {\n SQLiteDatabase policyDb = getDatabase();\n if (mStmtGetSetting == null) {\n String sql = \"String_Node_Str\" + cTableSetting + \"String_Node_Str\";\n mStmtGetSetting = policyDb.compileStatement(sql);\n }\n mLock.readLock().lock();\n policyDb.beginTransaction();\n try {\n try {\n synchronized (mStmtGetSetting) {\n mStmtGetSetting.clearBindings();\n mStmtGetSetting.bindString(1, name);\n value = mStmtGetSetting.simpleQueryForString();\n }\n } catch (SQLiteDoneException ignored) {\n }\n policyDb.setTransactionSuccessful();\n } finally {\n try {\n policyDb.endTransaction();\n } finally {\n mLock.readLock().unlock();\n }\n }\n } catch (Throwable ex) {\n Util.bug(null, ex);\n throw new RemoteException(ex.toString());\n }\n }\n return value;\n}\n"
|
"public void setSource(String source) {\n this.source = source == null ? \"String_Node_Str\" : source;\n}\n"
|
"private IVirtualArray pmlcluster(EClustererType eClustererType) {\n int[] clusterid = new int[iNrSamples];\n Node[] result = new Node[iNrSamples - 1];\n for (int j = 0; j < iNrSamples; j++) clusterid[j] = j;\n ArrayList<Integer> AlIndexes = new ArrayList<Integer>();\n int j;\n ClosestPair pair = null;\n float[][] distmatrix;\n try {\n distmatrix = new float[iNrSamples][iNrSamples];\n } catch (OutOfMemoryError e) {\n return null;\n }\n distmatrix = similarities.clone();\n int iPercentage = 1;\n if (eClustererType == EClustererType.GENE_CLUSTERING)\n GeneralManager.get().getEventPublisher().triggerEvent(new RenameProgressBarEvent(\"String_Node_Str\"));\n else\n GeneralManager.get().getEventPublisher().triggerEvent(new RenameProgressBarEvent(\"String_Node_Str\"));\n for (int n = iNrSamples; n > 1; n--) {\n if (bClusteringCanceled == false) {\n int tempPercentage = (int) ((float) (iNrSamples - n) / iNrSamples * 100);\n if (iPercentage == tempPercentage) {\n GeneralManager.get().getEventPublisher().triggerEvent(new ClusterProgressEvent(iPercentage, false));\n iPercentage++;\n }\n int is = 1;\n int js = 0;\n pair = find_closest_pair(n, distmatrix);\n if (pair.update) {\n is = pair.x;\n js = pair.y;\n }\n for (j = 0; j < js; j++) distmatrix[js][j] = Math.max(distmatrix[is][j], distmatrix[js][j]);\n for (j = js + 1; j < is; j++) distmatrix[j][js] = Math.max(distmatrix[is][j], distmatrix[j][js]);\n for (j = is + 1; j < n; j++) distmatrix[j][js] = Math.max(distmatrix[j][is], distmatrix[j][js]);\n for (j = 0; j < is; j++) distmatrix[is][j] = distmatrix[n - 1][j];\n for (j = is + 1; j < n - 1; j++) distmatrix[j][is] = distmatrix[n - 1][j];\n Node node = new Node();\n node.setCorrelation(pair.correlation);\n node.setLeft(clusterid[is]);\n node.setRight(clusterid[js]);\n result[iNrSamples - n] = node;\n clusterid[js] = n - iNrSamples - 1;\n clusterid[is] = clusterid[n - 1];\n processEvents();\n } else {\n GeneralManager.get().getEventPublisher().triggerEvent(new ClusterProgressEvent(100, true));\n return null;\n }\n }\n tree = new Tree<ClusterNode>();\n ClusterNode node = new ClusterNode(\"String_Node_Str\", getNodeCounter(), 0f, 0, true, -1);\n tree.setRootNode(node);\n treeStructureToTree(node, result, result.length - 1, eClustererType);\n ClusterHelper.determineNrElements(tree);\n ClusterHelper.determineHierarchyDepth(tree);\n ClusterHelper.determineExpressionValue(tree, eClustererType, set);\n AlIndexes = ClusterHelper.getGeneIdsOfNode(tree, tree.getRoot());\n if (eClustererType == EClustererType.GENE_CLUSTERING)\n set.setClusteredTreeGenes(tree);\n else\n set.setClusteredTreeExps(tree);\n IVirtualArray virtualArray = null;\n if (eClustererType == EClustererType.GENE_CLUSTERING)\n virtualArray = new VirtualArray(set.getVA(iVAIdContent).getVAType(), set.depth(), AlIndexes);\n else if (eClustererType == EClustererType.EXPERIMENTS_CLUSTERING)\n virtualArray = new VirtualArray(set.getVA(iVAIdStorage).getVAType(), set.size(), AlIndexes);\n GeneralManager.get().getEventPublisher().triggerEvent(new ClusterProgressEvent(iProgressBarMultiplier * 50 + iProgressBarOffsetValue, true));\n return virtualArray;\n}\n"
|
"private void onTerminationOfInstance(String childId, String instanceId) {\n removeInstanceFromFromInactiveMap(childId, instanceId);\n removeInstanceFromFromTerminatingMap(childId, instanceId);\n GroupInstance instance = (GroupInstance) instanceIdToInstanceMap.get(instanceId);\n if (instance != null) {\n if (instance.getStatus() == GroupStatus.Terminating || instance.getStatus() == GroupStatus.Terminated) {\n ServiceReferenceHolder.getInstance().getGroupStatusProcessorChain().process(id, appId, instanceId);\n } else {\n boolean active = verifyGroupStatus(childId, instanceId, GroupStatus.Active);\n if (!active) {\n onChildTerminatedEvent(childId, instanceId);\n } else {\n log.info(\"String_Node_Str\" + instanceId + \"String_Node_Str\" + appId + \"String_Node_Str\" + \"String_Node_Str\" + childId);\n }\n }\n } else {\n log.warn(\"String_Node_Str\" + id);\n }\n}\n"
|
"private boolean replaceOnExist(Job job, JobPo jobPo) {\n JobPo existJobPo = appContext.getExecutableJobQueue().getJob(job.getTaskTrackerNodeGroup(), job.getTaskId());\n if (existJobPo == null) {\n existJobPo = appContext.getCronJobQueue().getJob(job.getTaskTrackerNodeGroup(), job.getTaskId());\n if (existJobPo == null) {\n existJobPo = appContext.getRepeatJobQueue().getJob(job.getTaskTrackerNodeGroup(), job.getTaskId());\n }\n }\n if (oldJobPo != null) {\n String jobId = oldJobPo.getJobId();\n appContext.getExecutableJobQueue().remove(job.getTaskTrackerNodeGroup(), jobId);\n if (job.isCron()) {\n appContext.getCronJobQueue().remove(jobId);\n } else if (job.isRepeatable()) {\n appContext.getRepeatJobQueue().remove(jobId);\n }\n jobPo.setJobId(jobId);\n }\n try {\n addJob(job, jobPo);\n } catch (DupEntryException e) {\n LOGGER.warn(\"String_Node_Str\", job);\n return false;\n }\n return true;\n}\n"
|
"public RepeatStatus executeStep(ChunkContext chunkContext, JobExecutionStatusHolder jobExecutionStatusHolder) throws Exception {\n String targetName = getJobParameters(chunkContext).getString(JobConstants.TARGET_NAME_JOB_PARAM);\n String clusterName = getJobParameters(chunkContext).getString(JobConstants.CLUSTER_NAME_JOB_PARAM);\n if (targetName == null) {\n targetName = clusterName;\n }\n String jobName = chunkContext.getStepContext().getJobName();\n logger.info(\"String_Node_Str\" + targetName + \"String_Node_Str\" + managementOperation + \"String_Node_Str\" + jobName);\n boolean vmPowerOn = false;\n String vmPowerOnStr = getJobParameters(chunkContext).getString(JobConstants.IS_VM_POWER_ON);\n if (vmPowerOnStr != null) {\n logger.info(\"String_Node_Str\" + vmPowerOnStr);\n vmPowerOn = Boolean.parseBoolean(vmPowerOnStr);\n }\n if (checkVMStatus && targetName.split(\"String_Node_Str\").length == 3 && !vmPowerOn) {\n return RepeatStatus.FINISHED;\n }\n SoftwareManager softwareMgr = softwareMgrs.getSoftwareManagerByClusterName(clusterName);\n if (ManagementOperation.CONFIGURE.equals(managementOperation) || JobConstants.RESUME_CLUSTER_JOB_NAME.equals(jobName)) {\n logger.info(\"String_Node_Str\");\n List<NodeEntity> nodes = lockClusterEntityMgr.getClusterEntityMgr().findAllNodes(clusterName);\n Set<String> hostnames = new HashSet<String>();\n for (NodeEntity node : nodes) {\n hostnames.add(node.getHostName());\n }\n SyncHostsUtils.SyncHosts(clusterSpec, hostnames, softwareMgr);\n }\n StatusUpdater statusUpdater = new DefaultStatusUpdater(jobExecutionStatusHolder, getJobExecutionId(chunkContext));\n ISoftwareManagementTask task = null;\n if (!CommonUtil.isBlank(clusterSpec.getAppManager()) && !Constants.IRONFAN.equalsIgnoreCase(clusterSpec.getAppManager())) {\n task = createExternalTask(chunkContext, targetName, clusterName, clusterSpec, statusUpdater);\n } else {\n task = createThriftTask(chunkContext, targetName, statusUpdater);\n }\n if (task != null) {\n Map<String, Object> ret = task.call();\n if (!(Boolean) ret.get(\"String_Node_Str\")) {\n String errorMessage = (String) ret.get(\"String_Node_Str\");\n putIntoJobExecutionContext(chunkContext, JobConstants.CURRENT_ERROR_MESSAGE, errorMessage);\n throw TaskException.EXECUTION_FAILED(errorMessage);\n }\n }\n return RepeatStatus.FINISHED;\n}\n"
|
"public FileSlice getHeadSlice(FileConfig fileConfig) {\n String filePath = fileConfig.getFilePath();\n RdfFileLogUtil.common.info(\"String_Node_Str\" + filePath);\n FileInfo fileInfo = storage.getFileInfo(filePath);\n if (!fileInfo.isExists()) {\n throw new RdfFileException(\"String_Node_Str\" + filePath + \"String_Node_Str\", RdfErrorEnum.NOT_EXSIT);\n }\n if (0 == fileInfo.getSize()) {\n RdfFileLogUtil.common.warn(\"String_Node_Str\" + filePath + \"String_Node_Str\");\n return new FileSlice(filePath, FileDataTypeEnum.HEAD, 0, 0);\n } else {\n RdfFileLogUtil.common.debug(\"String_Node_Str\" + fileInfo.getSize());\n }\n if (!fileConfig.isPartial() && (fileConfig.getFileDataType() == FileDataTypeEnum.BODY || fileConfig.getFileDataType() == FileDataTypeEnum.TAIL)) {\n return new FileSlice(fileConfig.getFilePath(), FileDataTypeEnum.HEAD, 0, 0);\n }\n FileMeta fileMeta = TemplateLoader.load(fileConfig.getTemplatePath(), fileConfig.getTemplateEncoding());\n if (!fileMeta.hasHead()) {\n throw new RdfFileException(\"String_Node_Str\" + fileConfig.getTemplatePath() + \"String_Node_Str\", RdfErrorEnum.HEAD_NOT_DEFINED);\n }\n int headRowsAffected = ProtocolLoader.getRowsAfftected(fileConfig, FileDataTypeEnum.HEAD);\n if (headRowsAffected == 0) {\n RdfFileLogUtil.common.info(\"String_Node_Str\" + headRowsAffected);\n return new FileSlice(filePath, FileDataTypeEnum.HEAD, 0, 0);\n } else {\n RdfFileLogUtil.common.debug(\"String_Node_Str\" + headRowsAffected);\n }\n long bufferSize = OssUtil.OSS_READ_HEAD_BUFFER;\n long size = fileInfo.getSize();\n if (size < bufferSize) {\n bufferSize = size;\n }\n long start = 0;\n RdfFileLogUtil.common.debug(\"String_Node_Str\" + start + \"String_Node_Str\" + bufferSize);\n InputStream is = storage.getInputStream(filePath, start, bufferSize);\n byte[] bs = OssUtil.read(is, (int) bufferSize);\n RdfFileLogUtil.common.debug(\"String_Node_Str\" + bs.length);\n RdfFileLogUtil.common.debug(\"String_Node_Str\" + new String(bs));\n int headLineCount = 0;\n boolean next = true;\n int count = 0;\n int idx = 0;\n while (next) {\n count++;\n switch(bs[idx++]) {\n case '\\n':\n headLineCount++;\n if (headLineCount == headRowsAffected) {\n next = false;\n break;\n }\n if (idx == bufferSize) {\n RdfFileLogUtil.common.debug(\"String_Node_Str\" + bufferSize + \"String_Node_Str\" + bufferSize);\n start = start + bufferSize;\n long left = size - start;\n RdfFileLogUtil.common.debug(\"String_Node_Str\" + start + \"String_Node_Str\" + left);\n if (left == 0) {\n next = false;\n break;\n }\n if (left < bufferSize) {\n bufferSize = left;\n RdfFileLogUtil.common.debug(\"String_Node_Str\" + start + \"String_Node_Str\" + bufferSize);\n } else {\n RdfFileLogUtil.common.debug(\"String_Node_Str\" + start + \"String_Node_Str\" + bufferSize);\n }\n is = storage.getInputStream(filePath, start, bufferSize);\n bs = OssUtil.read(is, (int) bufferSize);\n RdfFileLogUtil.common.debug(\"String_Node_Str\" + count);\n RdfFileLogUtil.common.debug(\"String_Node_Str\" + new String(bs));\n idx = 0;\n }\n break;\n case '\\r':\n if (idx < bufferSize) {\n if (bs[idx] != '\\n') {\n headLineCount++;\n }\n } else if (count == size) {\n headLineCount++;\n next = false;\n } else {\n RdfFileLogUtil.common.debug(\"String_Node_Str\" + bufferSize + \"String_Node_Str\" + bufferSize);\n start = start + bufferSize;\n long left = size - start;\n RdfFileLogUtil.common.debug(\"String_Node_Str\" + start + \"String_Node_Str\" + left);\n if (left == 0) {\n next = false;\n break;\n }\n if (left < bufferSize) {\n bufferSize = left;\n RdfFileLogUtil.common.debug(\"String_Node_Str\" + start + \"String_Node_Str\" + bufferSize);\n } else {\n RdfFileLogUtil.common.debug(\"String_Node_Str\" + start + \"String_Node_Str\" + bufferSize);\n }\n is = storage.getInputStream(filePath, start, bufferSize);\n bs = OssUtil.read(is, (int) bufferSize);\n RdfFileLogUtil.common.debug(\"String_Node_Str\" + count);\n RdfFileLogUtil.common.debug(\"String_Node_Str\" + new String(bs));\n if (bs[0] != '\\n') {\n headLineCount++;\n }\n idx = 0;\n }\n if (headLineCount == headRowsAffected) {\n next = false;\n }\n break;\n default:\n if (idx == bufferSize) {\n RdfFileLogUtil.common.debug(\"String_Node_Str\" + bufferSize + \"String_Node_Str\" + bufferSize);\n start = start + bufferSize;\n long left = size - start;\n RdfFileLogUtil.common.debug(\"String_Node_Str\" + start + \"String_Node_Str\" + left);\n if (left == 0) {\n next = false;\n break;\n }\n if (left < bufferSize) {\n bufferSize = left;\n RdfFileLogUtil.common.debug(\"String_Node_Str\" + start + \"String_Node_Str\" + bufferSize);\n } else {\n RdfFileLogUtil.common.debug(\"String_Node_Str\" + start + \"String_Node_Str\" + bufferSize);\n }\n is = storage.getInputStream(filePath, start, bufferSize);\n bs = OssUtil.read(is, (int) bufferSize);\n RdfFileLogUtil.common.debug(\"String_Node_Str\" + count);\n RdfFileLogUtil.common.debug(\"String_Node_Str\" + new String(bs));\n idx = 0;\n }\n break;\n }\n }\n RdfFileLogUtil.common.info(\"String_Node_Str\" + filePath + \"String_Node_Str\" + count);\n return new FileSlice(fileConfig.getFilePath(), FileDataTypeEnum.HEAD, 0, count);\n}\n"
|
"public ItemStack removeCrossCrops(World world, int x, int y, int z) {\n if (world.isRemote) {\n return null;\n }\n TileEntity te = world.getTileEntity(x, y, z);\n if (te instanceof TileEntityCrop) {\n TileEntityCrop crop = (TileEntityCrop) te;\n if (crop.isCrossCrop()) {\n crop.setCrossCrop(false);\n crop.markForUpdate();\n return new ItemStack(Items.crops, 1);\n }\n }\n return null;\n}\n"
|
"public void testWriteChannelState() throws IOException, ClassNotFoundException {\n BigQueryOptions options = BigQueryOptions.builder().projectId(\"String_Node_Str\").build();\n TableDataWriteChannel writer = new TableDataWriteChannel(options, LOAD_CONFIGURATION, \"String_Node_Str\");\n RestorableState<WriteChannel> state = writer.capture();\n RestorableState<WriteChannel> deserializedState = serializeAndDeserialize(state);\n assertEquals(state, deserializedState);\n assertEquals(state.hashCode(), deserializedState.hashCode());\n assertEquals(state.toString(), deserializedState.toString());\n}\n"
|
"public Object reverseConversions(boolean executeInReverseOrder, int index, Object value) {\n List<Conversion<?, ?>> conversions = conversionsByIndex.get(index);\n if (conversions != null) {\n Conversion<String, ?> conversion = null;\n try {\n if (executeInReverseOrder) {\n for (int i = conversions.size() - 1; i >= 0; i--) {\n conversion = conversions.get(i);\n value = ((Conversion<String, Object>) conversion).revert(value);\n }\n } else {\n for (Conversion<String, ?> c : conversions) {\n conversion = c;\n value = ((Conversion<String, Object>) conversion).revert(value);\n }\n }\n } catch (Exception ex) {\n if (conversion != null) {\n throw new IllegalStateException(\"String_Node_Str\" + value + \"String_Node_Str\" + conversion.getClass().getName(), ex);\n } else {\n throw new IllegalStateException(\"String_Node_Str\" + value + \"String_Node_Str\", ex);\n }\n }\n }\n return value;\n}\n"
|
"private Map<TableId, Future<?>> upgradeQueues(final NamespaceMeta namespaceMeta, ExecutorService executor) throws Exception {\n try (HBaseAdmin admin = new HBaseAdmin(hConf)) {\n String hbaseNamespace = tableUtil.getHBaseNamespace(namespaceMeta);\n List<TableId> tableIds = tableUtil.listTablesInNamespace(admin, hbaseNamespace);\n List<TableId> stateStoreTableIds = Lists.newArrayList();\n Map<TableId, Future<?>> futures = new HashMap<>();\n for (final TableId tableId : tableIds) {\n if (isDataTable(tableId)) {\n Runnable runnable = new Runnable() {\npublic Void call() throws Exception {\n LOG.info(\"String_Node_Str\", tableId);\n Properties properties = new Properties();\n HTableDescriptor desc = tableUtil.getHTableDescriptor(admin, tableId);\n if (desc.getValue(HBaseQueueAdmin.PROPERTY_PREFIX_BYTES) == null) {\n properties.setProperty(HBaseQueueAdmin.PROPERTY_PREFIX_BYTES, Integer.toString(SaltedHBaseQueueStrategy.SALT_BYTES));\n }\n }\n };\n Future<?> future = executor.submit(runnable);\n futures.put(tableId, future);\n }\n return futures;\n }\n}\n"
|
"public boolean compose() {\n while (hasMore()) {\n handleNext();\n }\n return hasMore;\n}\n"
|
"private void enableButtons() {\n int sel = filterList.getSelected();\n int cnt = filterList.getMaximum();\n delFilter.setEnabled(sel != -1 && cnt > 0);\n upFilter.setEnabled(sel > 0 && cnt > 0);\n downFilter.setEnabled(sel < cnt - 1 && sel != -1 && cnt > 0);\n if (sel == -1) {\n addFilter.setText(\"String_Node_Str\");\n } else {\n addFilter.setText(\"String_Node_Str\");\n }\n player.setEnabled(\"String_Node_Str\".equals(typeOptions.getCurrentChoice()));\n}\n"
|
"public IoFuture<Connection> connect() throws IOException {\n final URI uri;\n try {\n uri = this.getConnectionURI();\n } catch (URISyntaxException e) {\n throw MESSAGES.couldNotConnect(e);\n }\n final Endpoint endpoint = this.endpointInjectedValue.getValue();\n final CallbackHandler callbackHandler;\n final CallbackHandlerFactory cbhFactory;\n SSLContext sslContext = null;\n SecurityRealm realm = securityRealmInjectedValue.getOptionalValue();\n if (realm != null && (cbhFactory = realm.getSecretCallbackHandlerFactory()) != null && username != null) {\n callbackHandler = cbhFactory.getCallbackHandler(username);\n } else {\n callbackHandler = getCallbackHandler();\n }\n if (realm != null) {\n sslContext = realm.getSSLContext();\n }\n final OptionMap.Builder builder = OptionMap.builder();\n builder.set(SASL_POLICY_NOANONYMOUS, Boolean.FALSE);\n builder.set(SASL_POLICY_NOPLAINTEXT, Boolean.FALSE);\n builder.set(Options.SASL_DISALLOWED_MECHANISMS, Sequence.of(JBOSS_LOCAL_USER));\n if (uri.getScheme().equals(HTTP_REMOTING)) {\n builder.set(SSL_ENABLED, false);\n } else if (uri.getScheme().equals(HTTPS_REMOTING)) {\n builder.set(SSL_ENABLED, true);\n builder.set(SSL_STARTTLS, false);\n } else {\n builder.set(Options.SSL_ENABLED, true);\n builder.set(Options.SSL_STARTTLS, true);\n }\n builder.addAll(this.connectionCreationOptions);\n return endpoint.connect(uri, builder.getMap(), callbackHandler, sslContext);\n}\n"
|
"public static void send(Channel channel, ErrorCode errorCode) {\n P003_StreamTerminator streamTerminator = new P003_StreamTerminator();\n streamTerminator.init(channel);\n streamTerminator.setLoginCount(ClientBean.getPerformedActionsCount(channel));\n streamTerminator.setErrorCode(errorCode.get());\n if (errorCode != ErrorCode.None) {\n LOGGER.debug(String.format(\"String_Node_Str\", channel.remoteAddress().toString(), errorCode.message()));\n }\n channel.write(streamTerminator);\n}\n"
|
"public void defineDataSet(IBaseDataSetDesign design) throws BirtException {\n IDataSetInterceptor dataSetInterceptor = DataSetInterceptorFinder.find(design);\n if (dataSetInterceptor != null) {\n dataSetInterceptor.preDefineDataSet(sessionContext.getAppContext(), dataEngine.getDataSourceDesign(design.getDataSourceName()), design, getDataSessionContext().getModuleHandle());\n if (this.dataSetInterceptorList == null) {\n this.dataSetInterceptorList = new ArrayList<IDataSetInterceptor>();\n }\n this.dataSetInterceptorList.add(dataSetInterceptor);\n }\n dataEngine.defineDataSet(design);\n}\n"
|
"private void setData(int count, float range) {\n ArrayList<String> xVals = new ArrayList<String>();\n for (int i = 0; i < count; i++) {\n xVals.add((1990 + i) + \"String_Node_Str\");\n }\n ArrayList<Entry> vals1 = new ArrayList<Entry>();\n for (int i = 0; i < count; i++) {\n float mult = (range + 1);\n float val = (float) (Math.random() * mult) + 20;\n vals1.add(new Entry(val, i));\n }\n LineDataSet set1 = new LineDataSet(vals1, \"String_Node_Str\");\n set1.setDrawCubic(true);\n set1.setCubicIntensity(0.2f);\n set1.setDrawCircles(false);\n set1.setLineWidth(2f);\n set1.setCircleSize(5f);\n set1.setHighLightColor(Color.rgb(244, 117, 117));\n set1.setColor(Color.rgb(104, 241, 175));\n set1.setFillColor(ColorTemplate.getHoloBlue());\n LineData data = new LineData(xVals, set1);\n data.setValueTypeface(tf);\n data.setValueTextSize(9f);\n data.setDrawValues(false);\n mChart.setData(data);\n}\n"
|
"public void checkTruncateRuleNegative() {\n final String[] original = { \"String_Node_Str\" };\n ConfigSource config = Exec.newConfigSource().set(\"String_Node_Str\", ImmutableList.of(ImmutableMap.of(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", -1)));\n exception.expect(TaskValidationException.class);\n renameAndCheckSchema(config, original, original);\n}\n"
|
"protected void compactHitsArithmMean() {\n ArrayList<CollectorDoc> newHits = new ArrayList<CollectorDoc>(new Float((hits.size() * 0.75f)).intValue());\n if (hits.size() < 1)\n return;\n CollectorDoc currDoc = hits.get(0);\n int seenTimes = 0;\n float score = 0.0f;\n for (CollectorDoc d : hits) {\n if (d.doc == currDoc.doc) {\n score += d.score;\n seenTimes += 1;\n continue;\n }\n if (seenTimes > 1)\n currDoc.score = (float) score / seenTimes;\n newHits.add(currDoc);\n currDoc = d;\n seenTimes = 1;\n score = currDoc.score;\n }\n if (newHits.size() == 0 || newHits.get(newHits.size() - 1).doc != currDoc.doc) {\n currDoc.score = (float) score / seenTimes;\n }\n newHits.add(currDoc);\n hits = newHits;\n}\n"
|
"private boolean exists(UUID nodeId) {\n ColumnSlice<Long, String> slice = HFactory.createSliceQuery(keyspace, StringSerializer.get(), LongSerializer.get(), StringSerializer.get()).setColumnFamily(COLUMN_FAMILY).setKey(nodeId.toString()).setRange(expirationCutoff().getMillis(), Long.MAX_VALUE, false, 1).execute().get();\n return !slice.getColumns().isEmpty();\n}\n"
|
"public List<String> syncSetParam(String clusterName, Integer activeComputeNodeNum, Integer minComputeNodeNum, Boolean enableAuto, Priority ioPriority) throws Exception {\n ClusterEntity cluster = clusterEntityMgr.findByName(clusterName);\n ClusterRead clusterRead = getClusterByName(clusterName, false);\n if (cluster == null) {\n logger.error(\"String_Node_Str\" + clusterName + \"String_Node_Str\");\n throw BddException.NOT_FOUND(\"String_Node_Str\", clusterName);\n }\n if (ioPriority != null) {\n prioritizeCluster(clusterName, ioPriority);\n }\n cluster = clusterEntityMgr.findByName(clusterName);\n if (enableAuto != null && enableAuto != cluster.getAutomationEnable()) {\n cluster.setAutomationEnable(enableAuto);\n }\n if (minComputeNodeNum != null && minComputeNodeNum != cluster.getVhmMinNum()) {\n cluster.setVhmMinNum(minComputeNodeNum);\n }\n List<String> nodeGroupNames = new ArrayList<String>();\n if ((enableAuto != null || minComputeNodeNum != null || activeComputeNodeNum != null) && !clusterRead.validateSetManualElasticity(nodeGroupNames)) {\n throw BddException.INVALID_PARAMETER(\"String_Node_Str\", clusterName);\n }\n if (activeComputeNodeNum != null) {\n if (activeComputeNodeNum != cluster.getVhmTargetNum()) {\n cluster.setVhmTargetNum(activeComputeNodeNum);\n }\n }\n if ((enableAuto != null) && !ClusterStatus.RUNNING.equals(cluster.getStatus())) {\n logger.error(\"String_Node_Str\" + clusterName + \"String_Node_Str\" + cluster.getStatus() + \"String_Node_Str\");\n throw ClusterManagerException.SET_AUTO_ELASTICITY_NOT_ALLOWED_ERROR(clusterName, \"String_Node_Str\");\n }\n if (!ClusterStatus.RUNNING.equals(cluster.getStatus()) && !ClusterStatus.STOPPED.equals(cluster.getStatus())) {\n logger.error(\"String_Node_Str\" + clusterName + \"String_Node_Str\" + cluster.getStatus() + \"String_Node_Str\");\n throw ClusterManagerException.SET_AUTO_ELASTICITY_NOT_ALLOWED_ERROR(clusterName, \"String_Node_Str\");\n }\n clusterEntityMgr.update(cluster);\n if (enableAuto != null || minComputeNodeNum != null) {\n boolean success = clusteringService.setAutoElasticity(clusterName);\n if (!success) {\n throw ClusterManagerException.SET_AUTO_ELASTICITY_NOT_ALLOWED_ERROR(clusterName, \"String_Node_Str\");\n }\n }\n if (enableAuto != null && !enableAuto && cluster.getVhmTargetNum() == null) {\n JobUtils.waitForManual(clusterName, executionService);\n }\n return nodeGroupNames;\n}\n"
|
"public void onBindViewHolder(RecyclerView.ViewHolder viewHolder, int position1) {\n final ViewHolder holder = (ZipAdapter.ViewHolder) viewHolder;\n if (position1 == 0) {\n holder.rl.setMinimumHeight(zipViewer.paddingTop);\n return;\n }\n final ZipObj rowItem = enter.get(position1 - 1);\n final int p = position1 - 1;\n GradientDrawable gradientDrawable = (GradientDrawable) holder.imageView.getBackground();\n if (rowItem.getEntry() == null) {\n holder.imageView.setImageResource(R.drawable.abc_ic_ab_back_mtrl_am_alpha);\n gradientDrawable.setColor(Color.parseColor(\"String_Node_Str\"));\n holder.txtTitle.setText(\"String_Node_Str\");\n holder.txtDesc.setText(\"String_Node_Str\");\n holder.date.setText(R.string.goback);\n } else {\n holder.imageView.setImageDrawable(Icons.loadMimeIcon(zipViewer.getActivity(), rowItem.getName(), false));\n final StringBuilder stringBuilder = new StringBuilder(rowItem.getName());\n if (zipViewer.showLastModified)\n holder.date.setText(new Futils().getdate(rowItem.getTime(), \"String_Node_Str\", zipViewer.year));\n if (rowItem.isDirectory()) {\n holder.imageView.setImageDrawable(folder);\n gradientDrawable.setColor(Color.parseColor(zipViewer.iconskin));\n if (stringBuilder.toString().length() > 0) {\n stringBuilder.deleteCharAt(rowItem.getName().length() - 1);\n try {\n holder.txtTitle.setText(stringBuilder.toString().substring(stringBuilder.toString().lastIndexOf(\"String_Node_Str\") + 1));\n } catch (Exception e) {\n holder.txtTitle.setText(rowItem.getName().substring(0, rowItem.getName().lastIndexOf(\"String_Node_Str\")));\n }\n }\n } else {\n if (zipViewer.showSize)\n holder.txtDesc.setText(new Futils().readableFileSize(rowItem.getSize()));\n holder.txtTitle.setText(rowItem.getName().substring(rowItem.getName().lastIndexOf(\"String_Node_Str\") + 1));\n if (zipViewer.coloriseIcons) {\n if (Icons.isVideo(rowItem.getName()))\n gradientDrawable.setColor(Color.parseColor(\"String_Node_Str\"));\n else if (Icons.isAudio(rowItem.getName()))\n gradientDrawable.setColor(Color.parseColor(\"String_Node_Str\"));\n else if (Icons.isPdf(rowItem.getName()))\n gradientDrawable.setColor(Color.parseColor(\"String_Node_Str\"));\n else if (Icons.isCode(rowItem.getName()))\n gradientDrawable.setColor(Color.parseColor(\"String_Node_Str\"));\n else if (Icons.isText(rowItem.getName()))\n gradientDrawable.setColor(Color.parseColor(\"String_Node_Str\"));\n else if (Icons.isArchive(rowItem.getName()))\n gradientDrawable.setColor(Color.parseColor(\"String_Node_Str\"));\n else if (Icons.isgeneric(rowItem.getName()))\n gradientDrawable.setColor(Color.parseColor(\"String_Node_Str\"));\n else\n gradientDrawable.setColor(Color.parseColor(zipViewer.skin));\n } else\n gradientDrawable.setColor(Color.parseColor(zipViewer.skin));\n }\n }\n holder.rl.setOnLongClickListener(new View.OnLongClickListener() {\n public boolean onLongClick(View view) {\n if (rowItem.getEntry() != null)\n toggleChecked(p);\n System.out.println(\"String_Node_Str\");\n return false;\n }\n });\n holder.imageView.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n if (rowItem.getEntry() != null) {\n final Animation animation = AnimationUtils.loadAnimation(zipViewer.getActivity(), R.anim.holder_anim);\n holder.imageView.setAnimation(animation);\n toggleChecked(p);\n }\n }\n });\n Boolean checked = myChecked.get(p);\n if (checked != null) {\n if (zipViewer.mainActivity.theme1 == 0) {\n holder.rl.setBackgroundResource(R.drawable.safr_ripple_white);\n } else {\n holder.rl.setBackgroundResource(R.drawable.safr_ripple_black);\n }\n if (checked) {\n holder.imageView.setImageDrawable(zipViewer.getResources().getDrawable(R.drawable.abc_ic_cab_done_holo_dark));\n gradientDrawable.setColor(Color.parseColor(\"String_Node_Str\"));\n if (Build.VERSION.SDK_INT >= 21) {\n holder.rl.setElevation(6f);\n } else {\n if (zipViewer.mainActivity.theme1 == 0) {\n holder.rl.setBackgroundColor(c.getResources().getColor(R.color.safr_pressed));\n } else {\n holder.rl.setBackgroundColor(c.getResources().getColor(R.color.safr_pressed_dark));\n }\n }\n } else {\n if (Build.VERSION.SDK_INT >= 21) {\n holder.rl.setElevation(0f);\n }\n }\n }\n holder.rl.setOnClickListener(new View.OnClickListener() {\n public void onClick(View p1) {\n System.out.println(\"String_Node_Str\");\n if (rowItem.getEntry() == null)\n zipViewer.goBack();\n else {\n if (zipViewer.selection)\n toggleChecked(p);\n else {\n final StringBuilder stringBuilder = new StringBuilder(rowItem.getName());\n if (rowItem.isDirectory())\n stringBuilder.deleteCharAt(rowItem.getName().length() - 1);\n if (rowItem.isDirectory()) {\n new ZipHelperTask(zipViewer, stringBuilder.toString()).execute(zipViewer.f);\n } else {\n String x = rowItem.getName().substring(rowItem.getName().lastIndexOf(\"String_Node_Str\") + 1);\n File file = new File(c.getCacheDir().getAbsolutePath() + \"String_Node_Str\" + x);\n zipViewer.files.clear();\n zipViewer.files.add(0, file);\n try {\n ZipFile zipFile = new ZipFile(zipViewer.f);\n new ZipExtractTask(zipFile, c.getCacheDir().getAbsolutePath(), zipViewer.getActivity(), x, true, rowItem.getEntry()).execute();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }\n }\n });\n}\n"
|
"public void visitIincInsn(int var, int increment) {\n if (include) {\n getAdaptee().visitIincInsn(var, increment);\n }\n}\n"
|
"private String getValueFormula(ChartDataSource<?> dataSource) {\n if (dataSource.isReference()) {\n return dataSource.getFormulaString();\n } else {\n StringBuilder expression = new StringBuilder(\"String_Node_Str\");\n int count = dataSource.getPointCount();\n for (int i = 0; i < count; ++i) {\n Object value = dataSource.getPointAt(i);\n if (value == null) {\n if (dataSource.isNumeric()) {\n expression.append(\"String_Node_Str\");\n } else {\n expression.append(\"String_Node_Str\");\n }\n } else {\n if (dataSource.isNumeric()) {\n expression.append(value.toString());\n } else {\n expression.append(\"String_Node_Str\").append(value).append(\"String_Node_Str\");\n }\n }\n if (i != count - 1) {\n expression.append(\"String_Node_Str\");\n }\n }\n expression.append(\"String_Node_Str\");\n return expression.toString();\n }\n}\n"
|
"public boolean createSource() {\n long frequency;\n int sampleRate;\n int sourceType = Integer.valueOf(preferences.getString(getString(R.string.pref_sourceType), \"String_Node_Str\"));\n switch(sourceType) {\n case FILE_SOURCE:\n try {\n frequency = Integer.valueOf(preferences.getString(getString(R.string.pref_filesource_frequency), \"String_Node_Str\"));\n sampleRate = Integer.valueOf(preferences.getString(getString(R.string.pref_filesource_sampleRate), \"String_Node_Str\"));\n } catch (NumberFormatException e) {\n this.runOnUiThread(new Runnable() {\n public void run() {\n Toast.makeText(MainActivity.this, \"String_Node_Str\", Toast.LENGTH_LONG).show();\n }\n });\n return false;\n }\n String filename = preferences.getString(getString(R.string.pref_filesource_file), \"String_Node_Str\");\n int fileFormat = Integer.valueOf(preferences.getString(getString(R.string.pref_filesource_format), \"String_Node_Str\"));\n boolean repeat = preferences.getBoolean(getString(R.string.pref_filesource_repeat), false);\n source = new FileIQSource(filename, sampleRate, frequency, 16384, repeat, fileFormat);\n break;\n case HACKRF_SOURCE:\n source = new HackrfSource();\n source.setFrequency(preferences.getLong(getString(R.string.pref_frequency), 97000000));\n source.setSampleRate(preferences.getInt(getString(R.string.pref_sampleRate), HackrfSource.MAX_SAMPLERATE));\n ((HackrfSource) source).setVgaRxGain(preferences.getInt(getString(R.string.pref_hackrf_vgaRxGain), HackrfSource.MAX_VGA_RX_GAIN / 2));\n ((HackrfSource) source).setLnaGain(preferences.getInt(getString(R.string.pref_hackrf_lnaGain), HackrfSource.MAX_LNA_GAIN / 2));\n ((HackrfSource) source).setAmplifier(preferences.getBoolean(getString(R.string.pref_hackrf_amplifier), false));\n ((HackrfSource) source).setAntennaPower(preferences.getBoolean(getString(R.string.pref_hackrf_antennaPower), false));\n ((HackrfSource) source).setFrequencyShift(Integer.valueOf(preferences.getString(getString(R.string.pref_hackrf_frequencyShift), \"String_Node_Str\")));\n break;\n case RTLSDR_SOURCE:\n if (preferences.getBoolean(getString(R.string.pref_rtlsdr_externalServer), false))\n source = new RtlsdrSource(preferences.getString(getString(R.string.pref_rtlsdr_ip), \"String_Node_Str\"), Integer.valueOf(preferences.getString(getString(R.string.pref_rtlsdr_port), \"String_Node_Str\")));\n else {\n source = new RtlsdrSource(\"String_Node_Str\", 1234);\n }\n frequency = preferences.getLong(getString(R.string.pref_frequency), 97000000);\n sampleRate = preferences.getInt(getString(R.string.pref_sampleRate), source.getMaxSampleRate());\n if (sampleRate > 2000000)\n sampleRate = 2000000;\n source.setFrequency(frequency);\n source.setSampleRate(sampleRate);\n ((RtlsdrSource) source).setFrequencyCorrection(Integer.valueOf(preferences.getString(getString(R.string.pref_rtlsdr_frequencyCorrection), \"String_Node_Str\")));\n ((RtlsdrSource) source).setUpconverterFrequencyShift(Integer.valueOf(preferences.getString(getString(R.string.pref_rtlsdr_upconverterFrequencyShift), \"String_Node_Str\")));\n ((RtlsdrSource) source).setManualGain(preferences.getBoolean(getString(R.string.pref_rtlsdr_manual_gain), false));\n ((RtlsdrSource) source).setAutomaticGainControl(preferences.getBoolean(getString(R.string.pref_rtlsdr_agc), false));\n if (((RtlsdrSource) source).isManualGain()) {\n ((RtlsdrSource) source).setGain(preferences.getInt(getString(R.string.pref_rtlsdr_gain), 0));\n ((RtlsdrSource) source).setIFGain(preferences.getInt(getString(R.string.pref_rtlsdr_ifGain), 0));\n }\n break;\n default:\n Log.e(LOGTAG, \"String_Node_Str\" + sourceType);\n return false;\n }\n analyzerSurface.setSource(source);\n return true;\n}\n"
|
"private KeyboardMetadata addKeyboardRow(AddOn.AddOnResourceMapping resourceMapping, Context context, int rowResId, final KeyboardDimens keyboardDimens, int rowMode) {\n XmlResourceParser parser = context.getResources().getXml(rowResId);\n List<Key> keys = getKeys();\n boolean inKey = false;\n boolean inRow = false;\n final float keyHorizontalGap = keyboardDimens.getKeyHorizontalGap();\n final float rowVerticalGap = keyboardDimens.getRowVerticalGap();\n float x = 0;\n float y = rowVerticalGap;\n Key key = null;\n Row currentRow = null;\n float rowHeight = 0;\n Resources res = context.getResources();\n KeyboardMetadata m = new KeyboardMetadata();\n try {\n int event;\n while ((event = parser.next()) != XmlResourceParser.END_DOCUMENT) {\n if (event == XmlResourceParser.START_TAG) {\n String tag = parser.getName();\n if (TAG_ROW.equals(tag)) {\n inRow = true;\n x = 0;\n currentRow = createRowFromXml(resourceMapping, res, parser, rowMode);\n if (currentRow == null) {\n skipToEndOfRow(parser);\n inRow = false;\n } else {\n m.rowsCount++;\n m.isTopRow = currentRow.rowEdgeFlags == Keyboard.EDGE_TOP;\n if (!m.isTopRow) {\n y = getHeight() + getVerticalGap();\n }\n rowHeight = 0;\n }\n } else if (TAG_KEY.equals(tag)) {\n inKey = true;\n x += (keyHorizontalGap / 2);\n key = createKeyFromXml(resourceMapping, mLocalContext, context, currentRow, keyboardDimens, (int) x, (int) y, parser);\n key.width = (int) (key.width - keyHorizontalGap);\n if (m.isTopRow)\n keys.add(m.keysCount, key);\n else\n keys.add(key);\n m.keysCount++;\n rowHeight = Math.max(key.height, rowHeight);\n }\n } else if (event == XmlResourceParser.END_TAG) {\n if (inKey) {\n inKey = false;\n x += (key.gap + key.width);\n x += (keyHorizontalGap / 2);\n if (x > m.rowWidth) {\n m.rowWidth = (int) x;\n mMaxGenericRowsWidth = Math.max(mMaxGenericRowsWidth, m.rowWidth);\n }\n } else if (inRow) {\n inRow = false;\n y += currentRow.verticalGap;\n y += rowHeight;\n y += rowVerticalGap;\n m.totalHeight = (int) (m.totalHeight + (rowHeight + currentRow.verticalGap));\n }\n }\n }\n } catch (XmlPullParserException e) {\n Logger.e(TAG, e, \"String_Node_Str\" + e.getMessage());\n } catch (IOException e) {\n Logger.e(TAG, e, \"String_Node_Str\" + e.getMessage());\n }\n return m;\n}\n"
|
"public void populate(final World world, final Random rand, final Chunk chunk) {\n if (this.plotworld.TERRAIN == 3) {\n int X = chunk.getX() << 4;\n int Z = chunk.getZ() << 4;\n if (ChunkManager.FORCE_PASTE) {\n for (short x = 0; x < 16; x++) {\n for (short z = 0; z < 16; z++) {\n final PlotLoc loc = new PlotLoc((short) (X + x), (short) (Z + z));\n final HashMap<Short, Short> blocks = ChunkManager.GENERATE_BLOCKS.get(loc);\n HashMap<Short, Byte> datas = ChunkManager.GENERATE_DATA.get(loc);\n for (final Entry<Short, Short> entry : blocks.entrySet()) {\n int y = entry.getKey();\n byte data;\n if (datas != null) {\n data = datas.get(y);\n } else {\n data = 0;\n }\n BukkitSetBlockManager.setBlockManager.set(world, x, y, z, blocks.get(y), data);\n }\n }\n }\n return;\n }\n if (ChunkManager.CURRENT_PLOT_CLEAR != null) {\n PlotLoc loc;\n for (Entry<PlotLoc, HashMap<Short, Byte>> entry : ChunkManager.GENERATE_DATA.entrySet()) {\n HashMap<Short, Byte> datas = ChunkManager.GENERATE_DATA.get(entry.getKey());\n for (Entry<Short, Byte> entry2 : entry.getValue().entrySet()) {\n Short y = entry2.getKey();\n byte data;\n if (datas != null) {\n data = datas.get(y);\n } else {\n data = 0;\n }\n loc = entry.getKey();\n int xx = loc.x - X;\n int zz = loc.z - Z;\n if (xx >= 0 && xx < 16) {\n if (zz >= 0 && zz < 16) {\n BukkitSetBlockManager.setBlockManager.set(world, xx, y, zz, entry2.getValue(), data);\n }\n }\n }\n }\n }\n return;\n }\n final int X = chunk.getX();\n final int Z = chunk.getZ();\n final int x = X << 4;\n final int z = Z << 4;\n final int x2 = x + 15;\n final int z2 = z + 15;\n final boolean inX1 = ((x >= this.bx) && (x <= this.tx));\n final boolean inX2 = ((x2 >= this.bx) && (x2 <= this.tx));\n final boolean inZ1 = ((z >= this.bz) && (z <= this.tz));\n final boolean inZ2 = ((z2 >= this.bz) && (z2 <= this.tz));\n final boolean inX = inX1 || inX2;\n final boolean inZ = inZ1 || inZ2;\n if (!inX || !inZ) {\n return;\n }\n final boolean check;\n check = !inX1 || !inX2 || !inZ1 || !inZ2;\n if (this.plotworld.TERRAIN > 1) {\n final PlotId plot1 = this.manager.getPlotIdAbs(this.plotworld, bx, 0, bz);\n final PlotId plot2 = this.manager.getPlotIdAbs(this.plotworld, tx, 0, tz);\n if ((plot1 != null) && (plot2 != null) && plot1.equals(plot2)) {\n return;\n }\n }\n if (this.o) {\n populateBlocks(world, rand, X, Z, x, z, check);\n } else {\n TaskManager.runTaskLater(new Runnable() {\n public void run() {\n populateBiome(world, x, z);\n }\n }, 20 + rand.nextInt(10));\n TaskManager.runTaskLater(new Runnable() {\n public void run() {\n chunk.load(true);\n populateBlocks(world, rand, X, Z, x, z, check);\n }\n }, 40 + rand.nextInt(40));\n }\n}\n"
|
"public static String newIdentifier() {\n String uid = UUID.randomUUID().toString().toUpperCase(Locale.ENGLISH);\n String epoch = LiquidTools.tenCharEpoch(Calendar.getInstance().getTimeInMillis());\n return uid + \"String_Node_Str\" + epoch;\n}\n"
|
"public void onXMLDocumentChanged(ExtensibleContentEditorPage source, ExtensibleEditorContent newCotent) {\n commitParameters(newCotent.getContent());\n}\n"
|
"public org.dspace.rest.common.Collection getCollection(Integer collectionId, String expand, Integer limit, Integer offset, String user_ip, String user_agent, String xforwarderfor, HttpHeaders headers, HttpServletRequest request) throws WebApplicationException {\n log.info(\"String_Node_Str\" + collectionId + \"String_Node_Str\");\n org.dspace.core.Context context = null;\n Collection collection = null;\n try {\n context = createContext(getUser(headers));\n org.dspace.content.Collection dspaceCollection = findCollection(context, collectionId, org.dspace.core.Constants.READ);\n writeStats(dspaceCollection, UsageEvent.Action.VIEW, user_ip, user_agent, xforwarderfor, headers, request, context);\n collection = new Collection(dspaceCollection, expand, context, limit, offset);\n context.complete();\n } catch (SQLException e) {\n processException(\"String_Node_Str\" + collectionId + \"String_Node_Str\" + e, context);\n } catch (ContextException e) {\n processException(\"String_Node_Str\" + collectionId + \"String_Node_Str\" + e.getMessage(), context);\n } finally {\n processFinally(context);\n }\n log.trace(\"String_Node_Str\" + collectionId + \"String_Node_Str\");\n return collection;\n}\n"
|
"public TableDefinition buildBRANCHB_BRANCHBTable() {\n TableDefinition table = new TableDefinition();\n table.setName(\"String_Node_Str\");\n FieldDefinition fieldBRANCHB_ID = new FieldDefinition();\n fieldBRANCHB_ID.setName(\"String_Node_Str\");\n fieldBRANCHB_ID.setTypeName(\"String_Node_Str\");\n fieldBRANCHB_ID.setSize(0);\n fieldBRANCHB_ID.setSubSize(0);\n fieldBRANCHB_ID.setIsPrimaryKey(true);\n fieldBRANCHB_ID.setIsIdentity(false);\n fieldBRANCHB_ID.setUnique(false);\n fieldBRANCHB_ID.setShouldAllowNull(false);\n table.addField(fieldBRANCHB_ID);\n FieldDefinition fieldBRANCHBS_ID = new FieldDefinition();\n fieldBRANCHBS_ID.setName(\"String_Node_Str\");\n fieldBRANCHBS_ID.setTypeName(\"String_Node_Str\");\n fieldBRANCHBS_ID.setSize(0);\n fieldBRANCHBS_ID.setSubSize(0);\n fieldBRANCHBS_ID.setIsPrimaryKey(true);\n fieldBRANCHBS_ID.setIsIdentity(false);\n fieldBRANCHBS_ID.setUnique(false);\n fieldBRANCHBS_ID.setShouldAllowNull(true);\n table.addField(fieldBRANCHBS_ID);\n ForeignKeyConstraint foreignKeyBRANCHB_BRANCHB_BRANCHB = new ForeignKeyConstraint();\n foreignKeyBRANCHB_BRANCHB_BRANCHB.setName(\"String_Node_Str\");\n foreignKeyBRANCHB_BRANCHB_BRANCHB.setTargetTable(\"String_Node_Str\");\n foreignKeyBRANCHB_BRANCHB_BRANCHB.addSourceField(\"String_Node_Str\");\n foreignKeyBRANCHB_BRANCHB_BRANCHB.addTargetField(\"String_Node_Str\");\n table.addForeignKeyConstraint(foreignKeyBRANCHB_BRANCHB_BRANCHB);\n ForeignKeyConstraint foreignKeyBRANCHB_BRANCHB_BRANCHB2 = new ForeignKeyConstraint();\n foreignKeyBRANCHB_BRANCHB_BRANCHB2.setName(\"String_Node_Str\");\n foreignKeyBRANCHB_BRANCHB_BRANCHB2.setTargetTable(\"String_Node_Str\");\n foreignKeyBRANCHB_BRANCHB_BRANCHB2.addSourceField(\"String_Node_Str\");\n foreignKeyBRANCHB_BRANCHB_BRANCHB2.addTargetField(\"String_Node_Str\");\n table.addForeignKeyConstraint(foreignKeyBRANCHB_BRANCHB_BRANCHB2);\n return table;\n}\n"
|
"public static void notifyRemoteException(JobSupervisor supervisor, Throwable throwable) {\n String name = supervisor.getConfiguration().getName();\n String jobId = supervisor.getConfiguration().getJobId();\n NotifyRemoteExceptionOperation operation = new NotifyRemoteExceptionOperation(name, jobId, throwable);\n MapReduceService mapReduceService = supervisor.getMapReduceService();\n NodeEngine nodeEngine = mapReduceService.getNodeEngine();\n try {\n Address jobOwner = supervisor.getJobOwner();\n if (supervisor.isOwnerNode()) {\n supervisor.notifyRemoteException(jobOwner, throwable);\n } else {\n String name = supervisor.getConfiguration().getName();\n String jobId = supervisor.getConfiguration().getJobId();\n NotifyRemoteExceptionOperation operation = new NotifyRemoteExceptionOperation(name, jobId, throwable);\n OperationService os = nodeEngine.getOperationService();\n os.send(operation, jobOwner);\n }\n } catch (Exception e) {\n ILogger logger = nodeEngine.getLogger(MapReduceUtil.class);\n logger.warning(\"String_Node_Str\", e);\n }\n}\n"
|
"public Node read(JsonReader in) throws IOException {\n int id = in.nextInt();\n Node node = treeGson.getNode(id);\n RenderableNode renderableNode = new RenderableNode(CoreRegistry.get(BehaviorNodeFactory.class).getNodeComponent(node));\n renderableNode.setNode(node);\n nextName(in, \"String_Node_Str\");\n in.beginArray();\n float x = (float) in.nextDouble();\n float y = (float) in.nextDouble();\n in.endArray();\n renderableNode.setPosition(x, y);\n nextName(in, \"String_Node_Str\");\n in.beginArray();\n x = (float) in.nextDouble();\n y = (float) in.nextDouble();\n in.endArray();\n renderableNode.setSize(new Vector2f(x, y));\n nextName(in, \"String_Node_Str\");\n in.beginArray();\n int i = 0;\n while (in.hasNext()) {\n RenderableNode child = gsonNode.fromJson(in, RenderableNode.class);\n renderableNode.setChild(i, child);\n i++;\n }\n in.endArray();\n in.endObject();\n return renderableNode;\n}\n"
|
"protected void computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect) {\n RasterFormatTag[] formatTags = getFormatTags();\n RasterAccessor dst = new RasterAccessor(dest, destRect, formatTags[1], getColorModel());\n Rectangle srcRect = mapDestRect(destRect, 0).intersection(sources[0].getBounds());\n RasterAccessor src = new RasterAccessor(sources[0], srcRect, formatTags[0], getSourceImage(0).getColorModel());\n switch(dst.getDataType()) {\n case DataBuffer.TYPE_BYTE:\n computeRectByte(src, dst);\n break;\n case DataBuffer.TYPE_USHORT:\n computeRectUShort(src, dst);\n break;\n case DataBuffer.TYPE_SHORT:\n computeRectShort(src, dst);\n break;\n case DataBuffer.TYPE_INT:\n computeRectInt(src, dst);\n break;\n case DataBuffer.TYPE_FLOAT:\n computeRectFloat(src, dst);\n break;\n case DataBuffer.TYPE_DOUBLE:\n computeRectDouble(src, dst);\n break;\n default:\n throw new RuntimeException(JaiI18N.getString(\"String_Node_Str\"));\n }\n if (dst.isDataCopy()) {\n dst.clampDataArrays();\n dst.copyDataToRaster();\n }\n}\n"
|
"public int numEmptyLevels(LevelBag bag) {\n int empty = 0;\n for (int i = 0; i < bag.level.length; i++) {\n if (bag.level[i].isEmpty()) {\n empty++;\n }\n }\n return empty;\n}\n"
|
"public void updateModelCompare(SModelComparePluginConfiguration modelCompare) throws ServerException, UserException {\n requireRealUserAuthentication();\n DatabaseSession session = getBimServer().getDatabase().createSession();\n try {\n ModelComparePluginConfiguration convert = session.get(modelCompare.getOid(), OldQuery.getDefault());\n getBimServer().getSConverter().convertFromSObject(modelCompare, convert, session);\n session.executeAndCommitAction(new UpdateModelCompareDatabaseAction(session, getInternalAccessMethod(), convert));\n } catch (Exception e) {\n handleException(e);\n } finally {\n session.close();\n }\n}\n"
|
"public Rectangle setShadow(int color, float offsetX, float offsetY) {\n setShadow(true);\n setShadowColor(color);\n setShadowOffsetX(offsetX);\n setShadowOffsetY(offsetY);\n return this;\n}\n"
|
"public void testWellSelect() throws InterruptedException {\n WaitUtil.implicitlyWait(5);\n LogUtil.printCurrentMethodName();\n String wellSelectorUiSelector = \"String_Node_Str\";\n AndroidElement wellSelectItemTv = mDriver.findElementByAndroidUIAutomator(wellSelectorUiSelector);\n if (AppUtil.isInstall(App.MM_PACKAGE_NAME)) {\n wellSelectItemTv.click();\n WaitUtil.forceWait(2);\n AppUtil.killApp(App.MM_PACKAGE_NAME);\n } else {\n wellSelectItemTv.click();\n PageRouteUtil.pressBack();\n if (ContextUtil.getCurrentActivity().equals(\"String_Node_Str\")) {\n AppUtil.handleInfoSwitch2Native();\n WaitUtil.implicitlyWait(2);\n mDriver.findElement(By.id(\"String_Node_Str\")).click();\n System.out.println(ContextUtil.getCurrentActivity());\n } else {\n System.out.println(ContextUtil.getCurrentActivity());\n }\n }\n}\n"
|
"public final PostAggItem hyperUniqueCardinality() throws RecognitionException {\n PostAggItem postAggItem = null;\n Token a = null;\n postAggItem = new PostAggItem(\"String_Node_Str\");\n try {\n {\n {\n match(input, UNIQUE, FOLLOW_UNIQUE_in_hyperUniqueCardinality2343);\n int alt131 = 2;\n int LA131_0 = input.LA(1);\n if ((LA131_0 == WS)) {\n alt131 = 1;\n }\n switch(alt131) {\n case 1:\n {\n match(input, WS, FOLLOW_WS_in_hyperUniqueCardinality2319);\n }\n break;\n }\n a = (Token) match(input, ID, FOLLOW_ID_in_hyperUniqueCardinality2324);\n int alt132 = 2;\n int LA132_0 = input.LA(1);\n if ((LA132_0 == WS)) {\n alt132 = 1;\n }\n switch(alt132) {\n case 1:\n {\n match(input, WS, FOLLOW_WS_in_hyperUniqueCardinality2326);\n }\n break;\n }\n match(input, RPARAN, FOLLOW_RPARAN_in_hyperUniqueCardinality2329);\n postAggItem.fieldName = (a != null ? a.getText() : null);\n }\n }\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n }\n return postAggItem;\n}\n"
|
"public void loadAgent() {\n VirtualMachine vm;\n if (AttachProvider.providers().isEmpty()) {\n if (HOTSPOT_VM) {\n vm = getVirtualMachineImplementationFromEmbeddedOnes();\n } else {\n String helpMessage = getHelpMessageForNonHotSpotVM(vmName);\n throw new IllegalStateException(helpMessage);\n }\n } else {\n vm = attachToRunningVM();\n }\n loadAgentAndDetachFromRunningVM(vm);\n}\n"
|
"private final void addRule(CSSStyleSheet styleSheet, CSSRule rule) throws MalformedURLException, UnsupportedEncodingException {\n HTMLDocumentImpl document = this.document;\n if (rule instanceof CSSStyleRule) {\n CSSStyleRule sr = (CSSStyleRule) rule;\n String selectorList = sr.getSelectorText();\n StringTokenizer commaTok = new StringTokenizer(selectorList, \"String_Node_Str\");\n while (commaTok.hasMoreTokens()) {\n String selectorPart = commaTok.nextToken().toLowerCase();\n ArrayList<SimpleSelector> simpleSelectors = null;\n String lastSelectorText = null;\n StringTokenizer tok = new StringTokenizer(selectorPart, \"String_Node_Str\");\n if (tok.hasMoreTokens()) {\n simpleSelectors = new ArrayList<SimpleSelector>();\n SimpleSelector prevSelector = null;\n SELECTOR_FOR: for (; ; ) {\n String token = tok.nextToken();\n if (\"String_Node_Str\".equals(token)) {\n if (prevSelector != null) {\n prevSelector.setSelectorType(SimpleSelector.PARENT);\n }\n continue SELECTOR_FOR;\n } else if (\"String_Node_Str\".equals(token)) {\n if (prevSelector != null) {\n prevSelector.setSelectorType(SimpleSelector.PRECEEDING_SIBLING);\n }\n continue SELECTOR_FOR;\n }\n int colonIdx = token.indexOf(':');\n String simpleSelectorText = colonIdx == -1 ? token : token.substring(0, colonIdx);\n pseudoElement = colonIdx == -1 ? null : token.substring(colonIdx + 1);\n prevSelector = new SimpleSelector(simpleSelectorText, pseudoElement);\n simpleSelectors.add(prevSelector);\n if (!tok.hasMoreTokens()) {\n lastSelectorText = simpleSelectorText;\n break;\n }\n }\n }\n if (lastSelectorText != null) {\n int dotIdx = lastSelectorText.indexOf('.');\n if (dotIdx != -1) {\n String elemtl = lastSelectorText.substring(0, dotIdx);\n String classtl = lastSelectorText.substring(dotIdx + 1);\n this.addClassRule(elemtl, classtl, sr, simpleSelectors);\n } else {\n int poundIdx = lastSelectorText.indexOf('#');\n if (poundIdx != -1) {\n String elemtl = lastSelectorText.substring(0, poundIdx);\n String idtl = lastSelectorText.substring(poundIdx + 1);\n this.addIdRule(elemtl, idtl, sr, simpleSelectors);\n } else {\n String elemtl = lastSelectorText;\n this.addElementRule(elemtl, sr, simpleSelectors);\n }\n }\n }\n }\n if (selectorList.contains(\"String_Node_Str\") && selectorList.endsWith(\"String_Node_Str\")) {\n String selector = selectorList.replace(\"String_Node_Str\", \"String_Node_Str\");\n int quadIdx = selector.indexOf(\"String_Node_Str\") + 1;\n htmlElement = selector.substring(0, selector.indexOf(\"String_Node_Str\"));\n if (selectorList.contains(SelectorMatcher.OP_PIPE_EQUAL)) {\n int eqIdx = selector.indexOf(SelectorMatcher.OP_PIPE_EQUAL);\n attribute = selector.substring(quadIdx, eqIdx);\n attributeValue = selector.substring(eqIdx + 2, selector.length() - 1);\n attributeOperator = OP_PIPE_EQUAL;\n } else if (selectorList.contains(OP_CIRCUMFLEX_EQUAL)) {\n int eqIdx = selector.indexOf(OP_CIRCUMFLEX_EQUAL);\n attribute = selector.substring(quadIdx, eqIdx);\n attributeValue = selector.substring(eqIdx + 2, selector.length() - 1);\n attributeOperator = OP_CIRCUMFLEX_EQUAL;\n } else if (selectorList.contains(OP_TILDE_EQUAL)) {\n int eqIdx = selector.indexOf(OP_TILDE_EQUAL);\n attribute = selector.substring(quadIdx, eqIdx);\n attributeValue = selector.substring(eqIdx + 2, selector.length() - 1);\n attributeOperator = OP_TILDE_EQUAL;\n } else if (selectorList.contains(OP_DOLLAR_EQUAL)) {\n int eqIdx = selector.indexOf(OP_DOLLAR_EQUAL);\n attribute = selector.substring(quadIdx, eqIdx);\n attributeValue = selector.substring(eqIdx + 2, selector.length() - 1);\n attributeOperator = OP_DOLLAR_EQUAL;\n } else if (selectorList.contains(OP_STAR_EQUAL)) {\n int eqIdx = selector.indexOf(OP_STAR_EQUAL);\n attribute = selector.substring(quadIdx, eqIdx);\n attributeValue = selector.substring(eqIdx + 2, selector.length() - 1);\n attributeOperator = OP_STAR_EQUAL;\n } else if (selectorList.contains(OP_EQUAL)) {\n int eqIdx = selector.indexOf(OP_EQUAL);\n attribute = selector.substring(quadIdx, eqIdx);\n attributeValue = selector.substring(eqIdx + 1, selector.length() - 1);\n attributeOperator = OP_EQUAL;\n } else {\n attribute = selector.substring(quadIdx, selector.length() - 1);\n attributeValue = \"String_Node_Str\";\n attributeOperator = OP_ALL;\n }\n this.addAttributeRule(htmlElement, attributeValue, sr, new ArrayList<SimpleSelector>());\n }\n } else if (rule instanceof CSSImportRule) {\n UserAgentContext uacontext = document.getUserAgentContext();\n if (uacontext.isExternalCSSEnabled()) {\n CSSImportRule importRule = (CSSImportRule) rule;\n if (CSSUtilities.matchesMedia(importRule.getMedia(), uacontext)) {\n String href = importRule.getHref();\n try {\n CSSStyleSheet sheet = CSSUtilities.parse(href, document);\n if (sheet != null) {\n this.addStyleSheet(sheet);\n }\n } catch (Exception err) {\n logger.error(\"String_Node_Str\" + href + \"String_Node_Str\" + err);\n }\n }\n }\n } else if (rule instanceof CSSMediaRule) {\n CSSMediaRule mrule = (CSSMediaRule) rule;\n MediaList mediaList = mrule.getMedia();\n if (CSSUtilities.matchesMedia(mediaList, document.getUserAgentContext())) {\n CSSRuleList ruleList = mrule.getCssRules();\n int length = ruleList.getLength();\n for (int i = 0; i < length; i++) {\n CSSRule subRule = ruleList.item(i);\n this.addRule(styleSheet, subRule);\n }\n }\n }\n}\n"
|
"public Target createTarget(TargetConfiguration targetConfiguration, LocalDate fromDate, LocalDate toDate) {\n Target target = new Target();\n target.setCallEmittedNumberTarget(targetConfiguration.getCallEmittedNumber());\n target.setMeetingNumberTarget(targetConfiguration.getMeetingNumber());\n target.setOpportunityAmountWonTarget(targetConfiguration.getOpportunityAmountWon());\n target.setOpportunityCreatedNumberTarget(targetConfiguration.getOpportunityCreatedNumber());\n target.setOpportunityCreatedWonTarget(targetConfiguration.getOpportunityCreatedWon());\n target.setPeriodTypeSelect(targetConfiguration.getPeriodTypeSelect());\n target.setFromDate(fromDate);\n target.setToDate(toDate);\n target.setUser(targetConfiguration.getUser());\n target.setTeam(targetConfiguration.getTeam());\n target.setName(targetConfiguration.getName());\n target.setCode(targetConfiguration.getCode());\n return save(target);\n}\n"
|
"private String printParameter(Object s) {\n Object val = DynamicUtilities.getDynamicValue(s, visibleInterval.getLow(), visibleInterval.getHigh());\n if (val == null) {\n return valueForEmptyAttributes;\n }\n String res = val.toString().replaceAll(\"String_Node_Str\", \"String_Node_Str\").replace('\\\"', ' ');\n if (res.contains(\"String_Node_Str\")) {\n return \"String_Node_Str\" + res + \"String_Node_Str\";\n } else {\n return res;\n }\n}\n"
|
"public void startup() {\n OpenCLTrainingProfile profile = null;\n if (this.getDevice() != null)\n profile = new OpenCLTrainingProfile(this.getDevice());\n final Backpropagation train = new Backpropagation(getNetwork(), getTrainingData(), profile, this.learningRate, this.momentum);\n train.setNumThreads(EncogWorkBench.getInstance().getConfig().getThreadCount());\n setTrain(train);\n}\n"
|
"public ItemStack createMaterial(MaterialType mat) {\n String name = mat.name();\n if (mat.damageValue == -1) {\n boolean enabled = true;\n for (AEFeature f : mat.getFeature()) enabled = enabled && AEConfig.instance.isFeatureEnabled(f);\n if (enabled) {\n int newMaterialNum = AEConfig.instance.get(\"String_Node_Str\", name, AEConfig.instance.getFreeMaterial()).getInt();\n mat.damageValue = newMaterialNum;\n ItemStackSrc output = new ItemStackSrc(this, newMaterialNum);\n dmgToMaterial.put(newMaterialNum, mat);\n if (mat.getOreName() != null)\n OreDictionary.registerOre(mat.getOreName(), output);\n return output;\n }\n return null;\n } else\n throw new RuntimeException(\"String_Node_Str\");\n}\n"
|
"public EOEnterpriseObject object() {\n return object.eo();\n}\n"
|
"private boolean isInSvnMode() {\n if (isInSvnMode == null) {\n try {\n if (!factory.isLocalConnectionProvider()) {\n IMDMSVNProviderService service = getSvnProviderService();\n if (service != null && service.isProjectInSvnMode()) {\n isInSvnMode = Boolean.TRUE;\n }\n }\n } catch (PersistenceException e) {\n log.error(e.getMessage(), e);\n }\n if (isInSvnMode == null) {\n isInSvnMode = Boolean.FALSE;\n }\n }\n return isInSvnMode.booleanValue();\n}\n"
|
"public DateTime lastExecution(DateTime date) {\n Validate.notNull(date);\n NearestValue secondsValue = seconds.getPreviousValue(date.getSecondOfMinute(), 1);\n NearestValue minutesValue = minutes.getPreviousValue(date.getMinuteOfHour(), secondsValue.getShifts());\n NearestValue hoursValue = hours.getPreviousValue(date.getHourOfDay(), minutesValue.getShifts());\n NearestValue monthsValue;\n int month = 1;\n int day = 1;\n if (months.getValues().contains(date.getMonthOfYear())) {\n monthsValue = new NearestValue(date.getMonthOfYear(), 0);\n day = date.getDayOfMonth();\n } else {\n monthsValue = months.getPreviousValue(date.getMonthOfYear(), 0);\n month = monthsValue.getValue();\n day = new DateTime(date.getYear(), month, 1, 1, 1).dayOfMonth().withMaximumValue().getDayOfMonth();\n }\n TimeNode days = new TimeNode(generateDayCandidates(date.getYear(), month, ((DayOfWeekFieldDefinition) cronDefinition.getFieldDefinition(CronFieldName.DAY_OF_WEEK)).getMondayDoWValue()));\n NearestValue daysValue = days.getPreviousValue(day, hoursValue.getShifts());\n monthsValue = months.getPreviousValue(month, daysValue.getShifts());\n if (daysValue.getShifts() > 0) {\n days = new TimeNode(generateDayCandidates(date.getYear(), monthsValue.getValue()));\n List<Integer> dayCandidates = days.getValues();\n daysValue = new NearestValue(dayCandidates.get(dayCandidates.size() - 1), 0);\n }\n NearestValue yearsValue = new TimeNode(generateYearCandidates(date.getYear())).getPreviousValue(date.getYear(), monthsValue.getShifts());\n return new DateTime(yearsValue.getValue(), monthsValue.getValue(), daysValue.getValue(), hoursValue.getValue(), minutesValue.getValue(), secondsValue.getValue());\n}\n"
|
"private void forceCreateBackupLogs() {\n backupLogsCreated = true;\n OperationService operationService = nodeEngine.getOperationService();\n List<Future> futures = new ArrayList<Future>(backupAddresses.length);\n for (Address backupAddress : backupAddresses) {\n if (nodeEngine.getClusterService().getMember(backupAddress) != null) {\n final CreateTxBackupLogOperation op = createCreateTxBackupLogOperation();\n Future f = operationService.invokeOnTarget(SERVICE_NAME, op, backupAddress);\n futures.add(f);\n }\n }\n waitWithDeadline(futures, timeoutMillis, MILLISECONDS, replicationTxExceptionHandler);\n}\n"
|
"public void validate(Owner owner, Errors errors) {\n if (!StringUtils.hasLength(owner.getFirstName())) {\n errors.rejectValue(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n }\n if (!StringUtils.hasLength(owner.getLastName())) {\n errors.rejectValue(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n }\n if (!StringUtils.hasLength(owner.getAddress())) {\n errors.rejectValue(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n }\n if (!StringUtils.hasLength(owner.getCity())) {\n errors.rejectValue(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n }\n String telephone = owner.getTelephone();\n if (StringUtils.hasLength(telephone)) {\n for (int i = 0; i < telephone.length(); ++i) {\n if (!Character.isDigit(telephone.charAt(i))) {\n errors.rejectValue(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n break;\n }\n }\n }\n}\n"
|
"protected int doWork() {\n boolean allQueryNameSorted = true;\n final List<SAMFileReader> readers = new ArrayList<SAMFileReader>();\n for (final File f : INPUT) {\n IoUtil.assertFileIsReadable(f);\n SAMFileReader reader = new SAMFileReader(f);\n readers.add(new SAMFileReader(f));\n if (reader.getFileHeader().getSortOrder() != SortOrder.queryname)\n allQueryNameSorted = false;\n }\n if (OUTPUT != null)\n OUTPUT = OUTPUT.getAbsoluteFile();\n final boolean differentOutputSpecified = OUTPUT != null;\n if (differentOutputSpecified) {\n IoUtil.assertFileIsWritable(OUTPUT);\n } else if (INPUT.size() != 1) {\n throw new PicardException(\"String_Node_Str\");\n } else {\n final File soleInput = INPUT.get(0).getAbsoluteFile();\n final File dir = soleInput.getParentFile().getAbsoluteFile();\n try {\n IoUtil.assertFileIsWritable(soleInput);\n IoUtil.assertDirectoryIsWritable(dir);\n OUTPUT = File.createTempFile(soleInput.getName() + \"String_Node_Str\", \"String_Node_Str\", dir);\n } catch (IOException ioe) {\n throw new RuntimeIOException(\"String_Node_Str\" + dir.getAbsolutePath());\n }\n }\n final PeekableIterator<SAMRecord> iterator;\n final SAMFileHeader header;\n {\n Iterator<SAMRecord> tmp;\n if (INPUT.size() > 1) {\n final SamFileHeaderMerger merger = new SamFileHeaderMerger(readers, SortOrder.unsorted, false);\n tmp = new MergingSamRecordIterator(merger, false);\n header = merger.getMergedHeader();\n } else {\n tmp = readers.get(0).iterator();\n header = readers.get(0).getFileHeader();\n }\n if (allQueryNameSorted) {\n iterator = new PeekableIterator<SAMRecord>(tmp);\n } else {\n log.info(\"String_Node_Str\");\n final SortingCollection<SAMRecord> sorter = SortingCollection.newInstance(SAMRecord.class, new BAMRecordCodec(header), new SAMRecordQueryNameComparator(), MAX_RECORDS_IN_RAM, TMP_DIR);\n while (tmp.hasNext()) {\n sorter.add(tmp.next());\n }\n iterator = new PeekableIterator<SAMRecord>(sorter.iterator());\n log.info(\"String_Node_Str\");\n }\n final SortOrder outputSortOrder = SORT_ORDER == null ? readers.get(0).getFileHeader().getSortOrder() : SORT_ORDER;\n log.info(\"String_Node_Str\" + outputSortOrder);\n header.setSortOrder(outputSortOrder);\n }\n final SAMFileWriter out = new SAMFileWriterFactory().makeSAMOrBAMWriter(header, header.getSortOrder() == SortOrder.queryname, OUTPUT);\n log.info(\"String_Node_Str\");\n long count = 0;\n while (iterator.hasNext()) {\n final SAMRecord rec1 = iterator.next();\n final SAMRecord rec2 = iterator.hasNext() ? iterator.peek() : null;\n if (rec2 != null && rec1.getReadName().equals(rec2.getReadName())) {\n iterator.next();\n SamPairUtil.setMateInfo(rec1, rec2, header);\n out.addAlignment(rec1);\n out.addAlignment(rec2);\n count += 2;\n } else {\n out.addAlignment(rec1);\n ++count;\n }\n if (count % 1000000 == 0) {\n log.info(\"String_Node_Str\" + count + \"String_Node_Str\");\n }\n }\n if (header.getSortOrder() == SortOrder.queryname) {\n log.info(\"String_Node_Str\");\n } else {\n log.info(\"String_Node_Str\");\n }\n out.close();\n if (!differentOutputSpecified) {\n log.info(\"String_Node_Str\");\n final File soleInput = INPUT.get(0).getAbsoluteFile();\n final File old = new File(soleInput.getParentFile(), soleInput.getName() + \"String_Node_Str\");\n if (!old.exists() && soleInput.renameTo(old)) {\n if (OUTPUT.renameTo(soleInput)) {\n if (!old.delete()) {\n log.warn(\"String_Node_Str\" + old.getAbsolutePath());\n return 1;\n }\n } else {\n log.error(\"String_Node_Str\" + soleInput.getAbsolutePath());\n log.error(\"String_Node_Str\" + old.getAbsolutePath());\n log.error(\"String_Node_Str\" + OUTPUT.getAbsolutePath());\n return 1;\n }\n } else {\n log.error(\"String_Node_Str\" + soleInput.getAbsolutePath());\n if (!OUTPUT.delete()) {\n log.error(\"String_Node_Str\" + OUTPUT.getAbsolutePath());\n }\n return 1;\n }\n }\n return 0;\n}\n"
|
"private int calculateCommentTotalByNodeCounting(NodeRef discussableNode) {\n if (!nodeService.hasAspect(discussableNode, ForumModel.ASPECT_DISCUSSABLE)) {\n throw new IllegalArgumentException(\"String_Node_Str\" + ForumModel.ASPECT_DISCUSSABLE + \"String_Node_Str\");\n }\n return result;\n}\n"
|
"protected Section creatMetadataSection(final ScrolledForm form, Composite topComp) {\n Section section = createSection(form, topComp, getMetadataTitle(), \"String_Node_Str\");\n Composite parent = toolkit.createComposite(section);\n parent.setLayout(new GridLayout(2, false));\n nameText = createMetadataTextFiled(NAME_LABEL, nameText, parent);\n purposeText = createMetadataTextFiled(PURPOSE_LABEL, purposeText, parent);\n descriptionText = createMetadataTextFiled(DESCRIPTION_LABEL, descriptionText, parent);\n authorText = createMetadataTextFiled(AUTHOR_LABEL, authorText, parent);\n if (!isDefaultProject()) {\n authorText.setEnabled(false);\n authorText.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WIDGET_BACKGROUND));\n }\n toolkit.createLabel(parent, STATUS_LABEL);\n statusCombo = new CCombo(parent, SWT.BORDER);\n statusCombo.setEditable(false);\n TaggedValue taggedValue = TaggedValueHelper.getTaggedValue(TaggedValueHelper.DEV_STATUS, getCurrentModelElement(this.getEditor()).getTaggedValue());\n if (taggedValue != null) {\n statusValue = taggedValue.getValue();\n }\n List<org.talend.core.model.properties.Status> statusList = MetadataHelper.getTechnicalStatus();\n if (statusList != null && statusList.size() > 0) {\n List<String> statusArray = MetadataHelper.toArray(statusList);\n String[] tempString = new String[statusList.size()];\n statusCombo.setItems(statusArray.toArray(tempString));\n if (statusArray.contains(statusValue)) {\n statusCombo.remove(statusValue);\n statusCombo.add(statusValue, 0);\n }\n } else {\n for (DevelopmentStatus status : DevelopmentStatus.values()) {\n statusCombo.add(status.getLiteral());\n }\n statusCombo.remove(statusValue);\n statusCombo.add(statusValue, 0);\n }\n initMetaTextFied();\n nameText.addModifyListener(new ModifyListener() {\n public void modifyText(ModifyEvent e) {\n setDirty(true);\n }\n });\n purposeText.addModifyListener(new ModifyListener() {\n public void modifyText(ModifyEvent e) {\n setDirty(true);\n }\n });\n descriptionText.addModifyListener(new ModifyListener() {\n public void modifyText(ModifyEvent e) {\n setDirty(true);\n }\n });\n authorText.addModifyListener(new ModifyListener() {\n public void modifyText(ModifyEvent e) {\n setDirty(true);\n }\n });\n statusCombo.addModifyListener(new ModifyListener() {\n public void modifyText(ModifyEvent e) {\n setDirty(true);\n }\n });\n section.setClient(parent);\n return section;\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.