content
stringlengths
40
137k
"protected IStatus run(IProgressMonitor monitor) {\n AtsClientService.getNotifyEndpoint().sendNotifications(notifications);\n return Status.OK_STATUS;\n}\n"
"public AttributeDataset remove(String... cols) {\n HashSet<String> remains = new HashSet<>();\n for (Attribute attr : attributes) {\n remains.add(attr.getName());\n }\n for (String col : cols) {\n remains.remove(col);\n }\n Attribute[] attrs = new Attribute[remains.size()];\n int[] index = new int[remains.size()];\n for (int j = 0, i = 0; j < attributes.length; j++) {\n boolean hit = false;\n for (int k = 0; k < cols.length; k++) {\n if (attributes[j].getName().equals(cols[k])) {\n hit = true;\n break;\n }\n }\n if (!hit) {\n index[i] = j;\n attrs[i] = attributes[j];\n i++;\n }\n }\n AttributeDataset sub = new AttributeDataset(name, attrs, response);\n for (Datum<double[]> datum : data) {\n double[] x = new double[index.length];\n for (int i = 0; i < x.length; i++) {\n x[i] = datum.x[index[i]];\n }\n Row row = response == null ? sub.add(x) : sub.add(x, datum.y);\n row.name = datum.name;\n row.weight = datum.weight;\n row.description = datum.description;\n row.timestamp = datum.timestamp;\n }\n return sub;\n}\n"
"public static short[][] max(short[][] image, int windowsize) {\n int w = image.length;\n int h = image[0].length;\n short[][] imgMax = new short[w][h];\n short max;\n short val;\n for (int i = 0; i < w; i++) for (int j = 0; j < h; j++) {\n max = Short.MIN_VALUE;\n Neigborhood neigh = new Neighborhood(Point(i, j), windowsize);\n for (Point p : neigh) {\n val = (i >= 0 && j >= 0 && i < w && j < h) ? image[p.getX()][p.getY()] : Short.MIN_VALUE;\n if (val > max)\n max = val;\n }\n imgMax[i][j] = max;\n }\n}\n"
"public Set<Post> find(Map<Enum, Object> fieldsMap) throws IOException {\n Set<Post> foundSet = new HashSet<Post>();\n EnumSet<Post._Fields> dateFields = EnumSet.of(Post._Fields.posted_at_millis);\n if (fieldsMap == null || fieldsMap.isEmpty()) {\n return foundSet;\n }\n StringBuilder statementString = new StringBuilder();\n statementString.append(\"String_Node_Str\");\n statementString.append(\"String_Node_Str\");\n statementString.append(\"String_Node_Str\");\n Iterator<Map.Entry<Enum, Object>> iter = fieldsMap.entrySet().iterator();\n while (iter.hasNext()) {\n Map.Entry<Enum, Object> entry = iter.next();\n Enum field = entry.getKey();\n String queryValue = entry.getValue().toString();\n if (dateFields.contains(field)) {\n queryValue = new Date((Long) entry.getValue()).toString();\n }\n statementString.append(field + \"String_Node_Str\" + queryValue + \"String_Node_Str\");\n if (iter.hasNext()) {\n statementString.append(\"String_Node_Str\");\n }\n }\n statementString.append(\"String_Node_Str\");\n executeQuery(foundSet, statementString);\n return foundSet;\n}\n"
"public void testScheduleAndLaunch() throws IOException {\n Map<String, File> iniParams = exportWorkflowInis();\n String localhost = ITUtility.getLocalhost();\n Log.info(\"String_Node_Str\" + localhost);\n Map<String, Integer> wr_accessions = new HashMap<String, Integer>();\n for (Entry<String, File> e : bundleLocations.entrySet()) {\n Log.info(\"String_Node_Str\" + e.getKey());\n String workflowPath = iniParams.get(e.getKey()).getAbsolutePath();\n String accession = Integer.toString(installedWorkflows.get(e.getKey()));\n String listCommand = \"String_Node_Str\" + workflowPath + \"String_Node_Str\" + accession + \"String_Node_Str\" + PARENT + \"String_Node_Str\" + localhost;\n String listOutput = ITUtility.runSeqWareJar(listCommand, ReturnValue.SUCCESS);\n Log.info(listOutput);\n String extractValueFrom = ITUtility.extractValueFrom(listOutput, \"String_Node_Str\");\n int wr_accession = Integer.valueOf(extractValueFrom);\n wr_accessions.put(e.getKey(), wr_accession);\n launchedWorkflowRuns.add(wr_accession);\n Log.info(\"String_Node_Str\" + e.getKey() + \"String_Node_Str\" + wr_accession);\n }\n String schedCommand = \"String_Node_Str\";\n String schedOutput = ITUtility.runSeqWareJar(schedCommand, ReturnValue.SUCCESS);\n Log.info(schedOutput);\n try {\n Log.info(\"String_Node_Str\");\n Thread.sleep(5000);\n } catch (InterruptedException ex) {\n }\n for (Entry<String, Integer> e : wr_accessions.entrySet()) {\n Log.info(\"String_Node_Str\" + e.getKey());\n String listCommand = \"String_Node_Str\" + e.getValue();\n String listOutput = ITUtility.runSeqWareJar(listCommand, ReturnValue.SUCCESS);\n Log.info(listOutput);\n }\n}\n"
"public void handle(HttpExchange httpExchange) throws IOException {\n this.httpExchange = httpExchange;\n this.responseContentType = MediaType.APPLICATION_JSON;\n String rawUrl = httpExchange.getRequestURI().getQuery();\n HashMap<String, String> paramMap;\n int statusCode;\n try {\n paramMap = ServerUtils.getUrlParams(rawUrl);\n processRequest(httpExchange, paramMap);\n } catch (UnsupportedEncodingException ex) {\n this.statusCode = HttpURLConnection.HTTP_BAD_REQUEST;\n this.response = \"String_Node_Str\";\n }\n if (this.statusCode != HttpURLConnection.HTTP_OK) {\n this.responseMimeType = MediaType.TEXT_PLAIN;\n }\n this.setMandatoryResponseHeaders();\n if (this.responseMimeType == MediaType.APPLICATION_JSON || this.statusCode != HttpURLConnection.HTTP_OK) {\n this.writeTextResponse();\n } else {\n this.writeByteResponse();\n }\n}\n"
"private static Map<String, String> parseResult(byte[] data, String nonce, int keyHandle) throws YubiHSMCommandFailedException, YubiHSMErrorException {\n Map<String, String> result = new HashMap<String, String>();\n if (data[10] == Defines.YSM_STATUS_OK) {\n byte[] aead = Utils.rangeOfByteArray(data, Defines.YSM_AEAD_NONCE_SIZE + 6, data[11]);\n Utils.validateCmdResponseBA(\"String_Node_Str\", Utils.rangeOfByteArray(data, 6, 4), Utils.leIntToBA(keyHandle));\n result.put(\"String_Node_Str\", Utils.validateCmdResponseString(\"String_Node_Str\", Utils.byteArrayToHex(Utils.rangeOfByteArray(data, 0, Defines.YSM_AEAD_NONCE_SIZE)), nonce));\n result.put(\"String_Node_Str\", Utils.byteArrayToHex(aead));\n } else {\n throw new YubiHSMCommandFailedException(\"String_Node_Str\" + Defines.getCommandString(command) + \"String_Node_Str\" + Defines.getCommandStatus(data[10]));\n }\n return result;\n}\n"
"public void resourceWithSlashRequest() throws Exception {\n this.environmentRepository.setSearchLocations(\"String_Node_Str\");\n MockHttpServletRequest request = new MockHttpServletRequest();\n request.setRequestURI(\"String_Node_Str\" + \"String_Node_Str\");\n String resource = this.controller.resolve(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", request);\n assertEquals(\"String_Node_Str\", resource);\n}\n"
"static int copy(final CharSequence source, final int offset, final CharBuffer destination) {\n final int length = Math.min(source.length() - offset, destination.remaining());\n final char[] array = destination.array();\n final int start = destination.position();\n source.getChars(offset, offset + length, array, start);\n destination.position(start + length);\n return length;\n}\n"
"public ExtendedTestCaseResult read(final Resource resource) {\n checkNotNull(resource);\n RLOGTestCaseResult test = RLOGTestCaseResultReader.create().read(resource);\n SimpleAnnotationSet annotationSet = SimpleAnnotationSet.create();\n Set<Property> excludesProperties = ImmutableSet.of(RLOG.level, RLOG.resource, RLOG.message, PROV.wasGeneratedBy, DCTerms.date, RDFUNITv.testCase);\n Set<Resource> excludesTypes = ImmutableSet.of(RDFUNITv.RLOGTestCaseResult, RDFUNITv.TestCaseResult, RLOG.Entry);\n for (Statement smt : resource.listProperties().toList()) {\n if (excludesProperties.contains(smt.getPredicate())) {\n continue;\n }\n if (RDF.type.equals(smt.getPredicate()) && excludesTypes.contains(smt.getObject().asResource())) {\n continue;\n }\n annotationSet.add(smt.getPredicate(), smt.getObject());\n }\n return new ExtendedTestCaseResultImpl(resource, test.getTestCaseUri(), test.getSeverity(), test.getMessage(), test.getTimestamp(), test.getFailingResource(), annotationSet.getAnnotations());\n}\n"
"private Object getThisVm() {\n if (thisVm == null) {\n synchronized (this) {\n if (thisVm == null) {\n try {\n MonitoredHost localHost = MonitoredHost.getMonitoredHost(\"String_Node_Str\");\n VmIdentifier vmIdent = new VmIdentifier(\"String_Node_Str\");\n thisVm = localHost.getMonitoredVm(vmIdent);\n } catch (MonitorException me) {\n throw new IllegalArgumentException(\"String_Node_Str\" + me);\n } catch (URISyntaxException use) {\n throw new IllegalArgumentException(\"String_Node_Str\" + use);\n }\n }\n }\n }\n return thisVm;\n}\n"
"private void startAnimationToState(StackScrollState finalState) {\n if (mChildHierarchyDirty) {\n generateChildHierarchyEvents();\n mChildHierarchyDirty = false;\n }\n if (!mAnimationEvents.isEmpty()) {\n mStateAnimator.startAnimationForEvents(mAnimationEvents, mCurrentStackScrollState);\n } else {\n applyCurrentState();\n }\n}\n"
"public void accept(Visitor visitor) {\n if (obj == null) {\n return;\n }\n TypeInfo<?> objTypeInfo = new TypeInfo<Object>(objType);\n if (exclusionStrategy.shouldSkipClass(objTypeInfo.getTopLevelClass())) {\n return;\n }\n if (ancestors.contains(obj)) {\n throw new IllegalStateException(\"String_Node_Str\" + obj);\n }\n ancestors.push(obj);\n try {\n if (isCollectionOrArray(objTypeInfo)) {\n if (objTypeInfo.isArray()) {\n visitor.visitArray(obj, objType);\n } else {\n visitor.visitCollection((Collection<?>) obj, objType);\n }\n } else if (objTypeInfo.getTopLevelClass().isEnum()) {\n visitor.visitEnum(obj, objType);\n } else if (objTypeInfo.isPrimitiveOrStringAndNotAnArray()) {\n visitor.visitPrimitiveValue(obj);\n } else if (objType == Object.class && isPrimitiveOrString(obj)) {\n visitor.visitPrimitiveValue(obj);\n } else {\n if (!visitor.visitUsingCustomHandler(obj, objType)) {\n visitor.startVisitingObject(obj);\n for (Class<?> curr = objTypeInfo.getTopLevelClass(); curr != null && !curr.equals(Object.class); curr = curr.getSuperclass()) {\n if (!curr.isSynthetic()) {\n navigateClassFields(obj, curr, visitor);\n }\n }\n visitor.endVisitingObject(obj);\n }\n }\n } finally {\n ancestors.pop();\n }\n}\n"
"public void testGetEdges() {\n this.sqlgGraph.tx().normalBatchModeOn();\n Vertex root = this.sqlgGraph.addVertex(T.label, \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n Vertex god = this.sqlgGraph.addVertex(T.label, \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n Edge sqlgEdge = root.addEdge(\"String_Node_Str\", god);\n Assert.assertNull(sqlgEdge.id());\n Edge rootGodEdge = vertexTraversal(root).outE(\"String_Node_Str\").next();\n Assert.assertNotNull(rootGodEdge);\n Assert.assertNotNull(rootGodEdge.id());\n this.sqlgGraph.tx().commit();\n}\n"
"public synchronized void onBackPressed() {\n mTabLayout.clearDisappearingChildren();\n showActionBar();\n if (mCurrentView.canGoBack()) {\n if (!mCurrentView.isShown()) {\n onHideCustomView();\n } else {\n mCurrentView.goBack();\n }\n } else {\n if (!mCurrentView.isDestroyed())\n deleteTab(mCurrentView.getId());\n }\n}\n"
"private void _handleDeclaration(ASTNode node, List bodyDeclarations, TypeAnalyzerState state) {\n Class currentClass = state.getCurrentClass();\n Class parent = currentClass.getSuperclass();\n List newMethods = new LinkedList();\n List newFields = new LinkedList();\n AST ast = node.getAST();\n CompilationUnit root = (CompilationUnit) node.getRoot();\n List fieldNames = new LinkedList();\n List fieldTypes = new LinkedList();\n Iterator bodyIter = bodyDeclarations.iterator();\n while (bodyIter.hasNext()) {\n Object nextDeclaration = bodyIter.next();\n if (nextDeclaration instanceof FieldDeclaration) {\n FieldDeclaration fieldDecl = (FieldDeclaration) nextDeclaration;\n boolean isStatic = Modifier.isStatic(fieldDecl.getModifiers());\n if (isStatic && HANDLE_STATIC_FIELDS != true)\n continue;\n if (Modifier.isPrivate(fieldDecl.getModifiers())) {\n Type type = Type.getType(fieldDecl);\n Iterator fragmentIter = fieldDecl.fragments().iterator();\n while (fragmentIter.hasNext()) {\n VariableDeclarationFragment fragment = (VariableDeclarationFragment) fragmentIter.next();\n String fieldName = fragment.getName().getIdentifier();\n Hashtable[] tables = new Hashtable[] { _accessedFields, _specialAccessedFields, _backupFields };\n for (int i = 0; i < tables.length; i++) {\n List indicesList = _getAccessedField(tables[i], currentClass.getName(), fieldName);\n if (indicesList == null)\n continue;\n Iterator indicesIter = indicesList.iterator();\n while (indicesIter.hasNext()) {\n int indices = ((Integer) indicesIter.next()).intValue();\n if (tables[i] == _backupFields)\n newMethods.add(_createBackupMethod(ast, root, state, fieldName, type, indices, isStatic));\n else\n newMethods.add(_createAssignMethod(ast, root, state, fieldName, type, indices, tables[i] == _specialAccessedFields, isStatic));\n }\n }\n fieldNames.add(fieldName);\n fieldTypes.add(type);\n FieldDeclaration field = _createFieldRecord(ast, root, state, fieldName, type.dimensions(), isStatic);\n if (field != null)\n newFields.add(field);\n }\n }\n }\n }\n boolean isInterface = node instanceof TypeDeclaration && ((TypeDeclaration) node).isInterface();\n boolean isAnonymous = node instanceof AnonymousClassDeclaration;\n if (isAnonymous) {\n Class[] interfaces = currentClass.getInterfaces();\n for (int i = 0; i < interfaces.length; i++) if (state.getCrossAnalyzedTypes().contains(interfaces[i].getName()))\n isAnonymous = false;\n }\n RehandleDeclarationRecord declarationRecord = null;\n if (isAnonymous) {\n Class[] interfaces = currentClass.getInterfaces();\n if (interfaces.length == 1) {\n declarationRecord = new RehandleDeclarationRecord(bodyDeclarations);\n addToLists(_rehandleDeclaration, interfaces[0].getName(), declarationRecord);\n }\n }\n boolean ignore = !_isInStaticMethod.isEmpty() && _isInStaticMethod.peek() == Boolean.TRUE && isAnonymous;\n if (!isInterface && !ignore)\n newFields.add(_createRecordArray(ast, root, state, fieldNames));\n newMethods.add(_createRestoreMethod(ast, root, state, fieldNames, fieldTypes, isAnonymous, isInterface));\n MethodDeclaration getCheckpoint = _createGetCheckpointMethod(ast, root, state, isAnonymous, isInterface);\n if (getCheckpoint != null)\n newMethods.add(getCheckpoint);\n MethodDeclaration setCheckpoint = _createSetCheckpointMethod(ast, root, state, isAnonymous, isInterface);\n if (setCheckpoint != null)\n newMethods.add(setCheckpoint);\n if (isAnonymous)\n bodyDeclarations.add(_createProxyClass(ast, root, state));\n else {\n if (node instanceof TypeDeclaration) {\n String rollbackType = getClassName(Rollbackable.class, state, root);\n ((TypeDeclaration) node).superInterfaces().add(createName(ast, rollbackType));\n }\n if (!isInterface) {\n FieldDeclaration checkpointField = _createCheckpointField(ast, root, state);\n if (checkpointField != null)\n bodyDeclarations.add(0, checkpointField);\n FieldDeclaration record = _createCheckpointRecord(ast, root, state);\n if (record != null)\n newFields.add(0, record);\n }\n }\n bodyDeclarations.addAll(newMethods);\n bodyDeclarations.addAll(newFields);\n if (isAnonymous) {\n Initializer initializer = ast.newInitializer();\n Block body = ast.newBlock();\n initializer.setBody(body);\n MethodInvocation addInvocation = ast.newMethodInvocation();\n addInvocation.setExpression(ast.newSimpleName(CHECKPOINT_NAME));\n addInvocation.setName(ast.newSimpleName(\"String_Node_Str\"));\n ClassInstanceCreation proxy = ast.newClassInstanceCreation();\n proxy.setName(ast.newSimpleName(_getProxyName()));\n addInvocation.arguments().add(proxy);\n body.statements().add(ast.newExpressionStatement(addInvocation));\n bodyDeclarations.add(initializer);\n }\n}\n"
"public void enqueue(MovingMessage msg) {\n Iterator iterator = msg.getRecipientIterator();\n StringBuilder tos = new StringBuilder();\n while (iterator.hasNext()) {\n MailAddress username = (MailAddress) iterator.next();\n if (tos.length() > 0) {\n tos += \"String_Node_Str\";\n }\n tos += username;\n }\n try {\n msg.getMessage().addRecipients(Message.RecipientType.TO, tos);\n } catch (MessagingException e) {\n throw new RuntimeException(e);\n }\n iterator = msg.getRecipientIterator();\n while (iterator.hasNext()) {\n MailAddress username = (MailAddress) iterator.next();\n handle(msg, username);\n }\n}\n"
"public boolean execute(LocalDataArea lda) {\n if (lda.stack.isEmpty()) {\n return false;\n }\n Object value = lda.localVariables.get(EcmaScript.toString(lda.pop()));\n if (value == null) {\n value = Undefined.INSTANCE;\n }\n lda.stack.push(value);\n return true;\n}\n"
"public boolean applies(UUID sourceId, Ability source, Game game) {\n Card card = game.getCard(sourceId);\n if (card != null) {\n if (!card.getCardType().contains(CardType.LAND) && card.getOwnerId().equals(source.getControllerId())) {\n return card.getSpellAbility().isInUseableZone(game, card, false);\n }\n }\n return false;\n}\n"
"public void visitDirectory(File directory, String relativePath) throws IOException {\n if (relativePath.isEmpty()) {\n return;\n }\n String entryName = relativePath.replace('\\\\', '/') + \"String_Node_Str\";\n if (alreadyAddedEntries.contains(entryName)) {\n return;\n }\n JarEntry entry = new JarEntry(entryName);\n entry.setTime(directory.lastModified());\n jar.putNextEntry(entry);\n jar.closeEntry();\n}\n"
"public static MsgIntegrityViolationWrapper readMsgIntegrityViolationFromTrace(String jobId, String taskId, long superstepNo) throws IOException, ClassNotFoundException, InstantiationException, IllegalAccessException {\n FileSystem fs = ServerUtils.getFileSystem();\n String traceFilePath = ServerUtils.getIntegrityTraceFilePath(jobId, taskId, superstepNo, DebugTrace.INTEGRITY_MESSAGE);\n MsgIntegrityViolationWrapper msgIntegrityViolationWrapper = new MsgIntegrityViolationWrapper();\n msgIntegrityViolationWrapper.loadFromHDFS(fs, traceFilePath, getCachedJobJarPath(jobId));\n return msgIntegrityViolationWrapper;\n}\n"
"private void processFrameInternal(short[] frame, int offset, int length, float windowDuration) {\n float currentRms = rms(frame, offset, length);\n float currentDbfs = rms2dbfs(currentRms, 1e-10F, 1F);\n currentDbfs = energyObserver.smooth(currentDbfs);\n boolean currentState = trigger.state(currentDbfs);\n if (hangoverMaxDuration > 0) {\n if (!currentState) {\n hangoverDuration = min(hangoverMaxDuration, hangoverDuration + windowDuration);\n currentState = hangoverDuration < hangoverMaxDuration;\n } else {\n hangoverDuration = 0;\n }\n }\n if (!currentState) {\n for (int i = offset; i < length; i++) {\n frame[i] = currentMean;\n }\n }\n}\n"
"public List getCorruptRanges(InputStream is) throws IOException {\n LOG.trace(\"String_Node_Str\");\n List ret = new ArrayList();\n int n = log2Ceil((int) FILE_SIZE) - DEPTH;\n int nodeSize = 1 << n;\n List fileHashes = createTTNodes(nodeSize, FILE_SIZE, is);\n int minSize = Math.min(fileHashes.size(), NODES.size());\n for (int i = 0; i < minSize; i++) {\n byte[] aHash = (byte[]) fileHashes.get(i);\n byte[] bHash = (byte[]) NODES.get(i);\n for (int j = 0; j < aHash.length; j++) {\n if (aHash[j] != bHash[j]) {\n Interval in = new Interval(i * nodeSize, (int) Math.min((i + 1) * nodeSize - 1, FILE_SIZE - 1));\n ret.add(in);\n if (LOG.isDebugEnabled())\n LOG.debug(Base32.encode(ROOT_HASH) + \"String_Node_Str\" + in);\n break;\n }\n }\n }\n return ret;\n}\n"
"private void tidyRevisions(String path, Populate populate) throws Exception {\n TimeTask timer = new TimeTask();\n log(\"String_Node_Str\");\n boolean delete = ((AutoCleanImpl) populate).isDelete();\n boolean replace = ((AutoCleanImpl) populate).isReplace();\n String[] base = { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" };\n List<String> list = new ArrayList<String>();\n list.addAll(Arrays.asList(base));\n String[] args = list.toArray(new String[list.size()]);\n ReconcileFilesOptions statusOpts = new ReconcileFilesOptions(args);\n List<IFileSpec> files = FileSpecBuilder.makeFileSpecList(path);\n List<IFileSpec> status = iclient.reconcileFiles(files, statusOpts);\n validate.check(status, \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n List<IFileSpec> update = new ArrayList<IFileSpec>();\n for (IFileSpec s : status) {\n if (s.getOpStatus() == FileSpecOpStatus.VALID) {\n String local = s.getLocalPathString();\n if (local == null) {\n local = depotToLocal(s);\n }\n switch(s.getAction()) {\n case ADD:\n if (local != null && delete) {\n File unlink = new File(local);\n boolean ok = unlink.delete();\n if (!ok) {\n log(\"String_Node_Str\" + local);\n }\n }\n break;\n default:\n update.add(s);\n break;\n }\n } else {\n String msg = s.getStatusMessage();\n if (msg.contains(\"String_Node_Str\")) {\n String rev = msg.substring(0, msg.indexOf(\"String_Node_Str\"));\n IFileSpec spec = new FileSpec(rev);\n update.add(spec);\n }\n }\n }\n if (!update.isEmpty() && replace) {\n SyncOptions syncOpts = new SyncOptions();\n syncOpts.setForceUpdate(true);\n syncOpts.setQuiet(populate.isQuiet());\n List<IFileSpec> syncMsg = iclient.sync(update, syncOpts);\n validate.check(syncMsg, \"String_Node_Str\", \"String_Node_Str\");\n }\n log(\"String_Node_Str\" + timer.toString() + \"String_Node_Str\");\n}\n"
"public AnnotationIndexTypes getFieldObject() {\n return realmGetter$fieldObject();\n}\n"
"public Article get(int wpId) {\n try {\n Connection conn = connect();\n DSLContext context = DSL.using(conn, SQLDialect.H2);\n Record record = context.select().from(Tables.ARTICLE).where(Tables.ARTICLE.ID.equal(wpId)).fetchOne();\n Article a = new Article(record.getValue(Tables.ARTICLE.ID), record.getValue(Tables.ARTICLE.TITLE), Article.NameSpace.intToNS(record.getValue(Tables.ARTICLE.NS)), Article.PageType.values()[record.getValue(Tables.ARTICLE.PTYPE)]);\n conn.close();\n return a;\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n}\n"
"protected String getFullyQualifiedTableName(Column column) {\n final ColumnSet columnSetOwner = ColumnHelper.getColumnSetOwner(column);\n return dbmsLanguage.toQualifiedName(null, ColumnSetHelper.getParentCatalogOrSchema(columnSetOwner).getName(), columnSetOwner.getName());\n}\n"
"public void encode(Object requestBody, Type bodyType, RequestTemplate request) throws EncodeException {\n if (requestBody != null) {\n Class<?> requestType = requestBody.getClass();\n Collection<String> contentTypes = request.headers().get(\"String_Node_Str\");\n MediaType requestContentType = null;\n if (contentTypes != null && !contentTypes.isEmpty()) {\n String type = contentTypes.iterator().next();\n requestContentType = MediaType.valueOf(type);\n }\n for (HttpMessageConverter<?> messageConverter : this.messageConverters.getObject().getConverters()) {\n if (messageConverter.canWrite(requestType, requestContentType)) {\n if (log.isDebugEnabled()) {\n if (requestContentType != null) {\n log.debug(\"String_Node_Str\" + requestBody + \"String_Node_Str\" + requestContentType + \"String_Node_Str\" + messageConverter + \"String_Node_Str\");\n } else {\n log.debug(\"String_Node_Str\" + requestBody + \"String_Node_Str\" + messageConverter + \"String_Node_Str\");\n }\n }\n FeignOutputMessage outputMessage = new FeignOutputMessage(request);\n try {\n HttpMessageConverter<Object> copy = (HttpMessageConverter<Object>) messageConverter;\n copy.write(requestBody, requestContentType, outputMessage);\n } catch (IOException ex) {\n throw new EncodeException(\"String_Node_Str\", ex);\n }\n request.headers(null);\n request.headers(getHeaders(outputMessage.getHeaders()));\n if (messageConverter instanceof ByteArrayHttpMessageConverter) {\n request.body(outputMessage.getOutputStream().toByteArray(), null);\n } else {\n request.body(outputMessage.getOutputStream().toByteArray(), Charset.forName(\"String_Node_Str\"));\n }\n return;\n }\n }\n String message = \"String_Node_Str\" + \"String_Node_Str\" + requestType.getName() + \"String_Node_Str\";\n if (requestContentType != null) {\n message += \"String_Node_Str\" + requestContentType + \"String_Node_Str\";\n }\n throw new EncodeException(message);\n }\n}\n"
"public String toString() {\n return \"String_Node_Str\" + platform + \"String_Node_Str\" + name + \"String_Node_Str\" + slot + \"String_Node_Str\" + dependencies + \"String_Node_Str\" + archives + \"String_Node_Str\";\n}\n"
"public static <P, S, E extends BooleanExpression> boolean isEquivalent(SAFA<P, S> laut, SAFA<P, S> raut, BooleanAlgebra<P, S> ba, BooleanExpressionFactory<E> boolexpr) throws TimeoutException {\n SAFARelation similar = new SATRelation();\n LinkedList<Pair<Pair<E, E>, List<S>>> worklist = new LinkedList<>();\n BooleanExpressionMorphism<E> coerce = new BooleanExpressionMorphism<>((x) -> boolexpr.MkState(x), boolexpr);\n E leftInitial = coerce.apply(laut.initialState);\n E rightInitial = coerce.apply(raut.initialState);\n similar.add(leftInitial, rightInitial);\n worklist.add(new Pair<>(leftInitial, rightInitial));\n while (!worklist.isEmpty()) {\n Pair<E, E> next = worklist.removeFirst();\n E left = next.getFirst();\n E right = next.getSecond();\n P guard = ba.True();\n do {\n S model = ba.generateWitness(guard);\n P implicant = ba.True();\n Map<Integer, E> leftMove = new HashMap<>();\n Map<Integer, E> rightMove = new HashMap<>();\n for (Integer s : left.getStates()) {\n E succ = boolexpr.False();\n for (SAFAInputMove<P, S> tr : laut.getInputMovesFrom(s)) {\n if (ba.HasModel(tr.guard, model)) {\n succ = boolexpr.MkOr(succ, coerce.apply(tr.to));\n implicant = ba.MkAnd(implicant, tr.guard);\n }\n }\n leftMove.put(s, succ);\n }\n for (Integer s : right.getStates()) {\n E succ = boolexpr.False();\n for (SAFAInputMove<P, S> tr : raut.getInputMovesFrom(s)) {\n if (ba.HasModel(tr.guard, model)) {\n succ = boolexpr.MkOr(succ, coerce.apply(tr.to));\n implicant = ba.MkAnd(implicant, tr.guard);\n }\n }\n rightMove.put(s, succ);\n }\n E leftSucc = boolexpr.substitute((lit) -> leftMove.get(lit)).apply(left);\n E rightSucc = boolexpr.substitute((lit) -> rightMove.get(lit)).apply(right);\n if (leftSucc.hasModel(laut.finalStates) != rightSucc.hasModel(raut.finalStates)) {\n return false;\n } else if (!similar.isMember(leftSucc, rightSucc)) {\n similar.add(leftSucc, rightSucc);\n worklist.addFirst(new Pair<>(leftSucc, rightSucc));\n }\n guard = ba.MkAnd(guard, ba.MkNot(implicant));\n } while (ba.IsSatisfiable(guard));\n }\n return true;\n}\n"
"public static <V> V adapt(Object object, Class<V> target) {\n if (object == null)\n return null;\n if (target.isInstance(object))\n return (V) object;\n if (object instanceof IAdaptable)\n return Utils.getAdapter(((IAdaptable) object), target);\n return null;\n}\n"
"public String getInternalName() {\n if (this.upperBound != null) {\n return this.upperBound.getInternalName();\n }\n if (this.upperBounds != null && !this.upperBounds.isEmpty()) {\n return this.upperBounds.get(0).getInternalName();\n }\n return \"String_Node_Str\";\n}\n"
"public static String extractImdb(File file) {\n String ret = extract(file, IMDB_REG);\n if (!StringUtils.isEmpty(ret) && ret.startsWith(\"String_Node_Str\") && ret.length() > 2) {\n ret = ret.substring(2);\n }\n return ret;\n}\n"
"public Dataset<Row> getDataset() {\n if (ds == null && (vc.getDbms() instanceof DbmsSpark2)) {\n return ((DbmsSpark2) vc.getDbms()).emptyDataset();\n } else {\n return ds;\n }\n}\n"
"public void onClick(View view) {\n EditText newSubjectField = (EditText) findViewById(R.id.subject_create_name);\n String currentSubjectName = newSubjectField.getText().toString();\n createSubject(currentSubjectName);\n Spinner spinner = (Spinner) findViewById(R.id.subject_list_dropdown);\n populateSpinner(spinner);\n flipper.setDisplayedChild(Interview.SUBJECT_DETAILS_VIEW);\n}\n"
"private boolean shouldShowRenameFolderMenu(RepositoryNode node) {\n boolean show = false;\n if (node instanceof AnalysisSubFolderRepNode) {\n AnalysisSubFolderRepNode anaSubFolderNode = (AnalysisSubFolderRepNode) node;\n show = !anaSubFolderNode.isVirtualFolder();\n } else if (node instanceof ReportSubFolderRepNode) {\n ReportSubFolderRepNode repSubFolderNode = (ReportSubFolderRepNode) node;\n show = !repSubFolderNode.isVirtualFolder();\n } else if (node instanceof UserDefIndicatorSubFolderRepNode || node instanceof PatternRegexSubFolderRepNode || node instanceof PatternSqlSubFolderRepNode || node instanceof RulesSQLSubFolderRepNode || node instanceof RulesParserSubFolderRepNode || node instanceof DBConnectionSubFolderRepNode || node instanceof MDMConnectionSubFolderRepNode || node instanceof DFConnectionSubFolderRepNode) {\n show = true;\n }\n return show;\n}\n"
"public char[] getCompletionProposalAutoActivationCharacters() {\n return new char[] { START };\n}\n"
"public void submitPledgeViaHTTP() throws Exception {\n backend.shutdown();\n initCoreState();\n peerGroup.setMinBroadcastConnections(2);\n Triplet<Transaction, Transaction, LHProtos.Pledge> data = TestUtils.makePledge(project, to, project.getGoalAmount());\n Transaction stubTx = data.getValue0();\n Transaction pledgeTx = data.getValue1();\n LHProtos.Pledge pledge = data.getValue2();\n writeProjectToDisk();\n ObservableSet<LHProtos.Pledge> pledges = backend.mirrorOpenPledges(project, gate);\n Transaction depTx = FakeTxBuilder.createFakeTx(params, Coin.COIN, address);\n pledge = pledge.toBuilder().setTransactions(0, ByteString.copyFrom(depTx.bitcoinSerialize())).addTransactions(ByteString.copyFrom(pledgeTx.bitcoinSerialize())).build();\n InboundMessageQueuer p1 = connectPeer(1);\n InboundMessageQueuer p2 = connectPeer(2, supportingVer);\n CompletableFuture<LHProtos.Pledge> future = backend.submitPledge(project, pledge);\n assertFalse(future.isDone());\n Transaction broadcast = (Transaction) waitForOutbound(p1);\n assertEquals(depTx, broadcast);\n assertNull(outbound(p2));\n InventoryMessage inv = new InventoryMessage(params);\n inv.addTransaction(depTx);\n inbound(p2, inv);\n GetUTXOsMessage getutxos = (GetUTXOsMessage) waitForOutbound(p2);\n assertNotNull(getutxos);\n assertEquals(pledgeTx.getInput(0).getOutpoint(), getutxos.getOutPoints().get(0));\n inbound(p2, new UTXOsMessage(params, ImmutableList.of(stubTx.getOutput(0)), new long[] { UTXOsMessage.MEMPOOL_HEIGHT }, blockStore.getChainHead().getHeader().getHash(), blockStore.getChainHead().getHeight()));\n AtomicBoolean flag = new AtomicBoolean(false);\n pledges.addListener((SetChangeListener<LHProtos.Pledge>) c -> {\n flag.set(c.wasAdded());\n });\n gate.waitAndRun();\n assertTrue(flag.get());\n assertEquals(1, pledges.size());\n final LHProtos.Pledge pledge2 = pledges.iterator().next();\n assertEquals(Coin.COIN.value / 2, pledge2.getTotalInputValue());\n future.get();\n final Sha256Hash pledgeHash = Sha256Hash.create(pledge.toByteArray());\n final List<Path> dirFiles = mapList(listDir(AppDirectory.dir()), Path::getFileName);\n assertTrue(dirFiles.contains(Paths.get(pledgeHash.toString() + DiskManager.PLEDGE_FILE_EXTENSION)));\n}\n"
"private boolean addAppInfo(String type, String value) {\n if (declaration != null) {\n if (declaration.getAnnotation() == null) {\n declaration.setAnnotation(annotation);\n }\n } else if (complexTypeDef != null && type.startsWith(\"String_Node_Str\")) {\n if (complexTypeDef.getAnnotation() == null) {\n complexTypeDef.setAnnotation(annotation);\n }\n } else {\n return true;\n }\n Element appinfo = annotation.createApplicationInformation(type);\n Node text = appinfo.getOwnerDocument().createTextNode(value);\n appinfo.appendChild(text);\n annotation.getElement().appendChild(appinfo);\n hasChanged = true;\n return true;\n}\n"
"private void archive(final WalletAccount account) {\n CurrencyBasedBalance balance = Preconditions.checkNotNull(account.getCurrencyBasedBalance());\n final WalletAccount linkedAccount = getLinkedAccount(account);\n new AlertDialog.Builder(getActivity()).setTitle(R.string.archiving_account_title).setMessage(Html.fromHtml(createArchiveDialogText(account, linkedAccount))).setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {\n\n public void onClick(DialogInterface arg0, int arg1) {\n account.archiveAccount();\n WalletAccount linkedAccount = Utils.getLinkedAccount(account, _mbwManager.getColuManager().getAccounts().values());\n if (linkedAccount != null) {\n linkedAccount.archiveAccount();\n }\n WalletAccount correspondingBCHAccount = _mbwManager.getWalletManager(false).getAccount(MbwManager.getBitcoinCashAccountId(account));\n if (correspondingBCHAccount != null) {\n correspondingBCHAccount.archiveAccount();\n }\n _mbwManager.setSelectedAccount(_mbwManager.getWalletManager(false).getActiveAccounts().get(0).getId());\n eventBus.post(new AccountChanged(account.getId()));\n updateIncludingMenus();\n _toaster.toast(R.string.archived, false);\n }\n }).setNegativeButton(R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface arg0, int arg1) {\n }\n }).show();\n}\n"
"public void onComponentTag(final Component component, final ComponentTag tag) {\n tag.put(\"String_Node_Str\", kind);\n}\n"
"protected void handleTCPConnectBackRequest(TCPConnectBackVendorMessage tcp, Connection source) {\n final int portToContact = tcp.getConnectBackPort();\n InetAddress sourceAddr = source.getInetAddress();\n Message msg = new TCPConnectBackRedirect(sourceAddr, portToContact);\n int sentTo = 0;\n List<ManagedConnection> peers = new ArrayList<ManagedConnection>(_manager.getInitializedConnections());\n Collections.shuffle(peers);\n for (Iterator i = peers.iterator(); i.hasNext() && sentTo < MAX_TCP_CONNECTBACK_FORWARDS; ) {\n ManagedConnection currMC = (ManagedConnection) i.next();\n if (currMC == source)\n continue;\n if (currMC.remoteHostSupportsTCPRedirect() >= 0) {\n currMC.send(msg);\n sentTo++;\n }\n }\n}\n"
"public void validateInvoiceModel() {\n Invoice invoice = transformer.toModel(testFile);\n ConformanceLevel conformanceLevel = invoice.getContext().getGuideline().getConformanceLevel();\n Class<?>[] validationGroups = resolveIntoValidationGroups(conformanceLevel);\n Set<ConstraintViolation<Invoice>> validationResult = validator.validate(invoice, validationGroups);\n for (ConstraintViolation<Invoice> violation : validationResult) {\n String msg = violation.getPropertyPath() + \"String_Node_Str\" + violation.getMessage() + \"String_Node_Str\" + violation.getInvalidValue();\n assertThat(validationResult).as(msg).isEmpty();\n }\n}\n"
"public boolean execute() {\n if (session.getRollbackResults() != null && session.getRollbackResults().size() > 0) {\n Util.sendMessage(sender, \"String_Node_Str\");\n return true;\n }\n SearchParser parser = null;\n try {\n parser = new SearchParser(player, args);\n parser.loc = null;\n if (parser.actions.size() > 0) {\n for (DataType type : parser.actions) if (!type.canRollback())\n throw new IllegalArgumentException(\"String_Node_Str\" + type.getConfigName());\n } else {\n for (DataType type : DataType.values()) if (type.canRollback())\n parser.actions.add(type);\n }\n } catch (IllegalArgumentException e) {\n Util.sendMessage(sender, \"String_Node_Str\" + e.getMessage());\n return true;\n }\n new SearchQuery(new RollbackCallback(session), parser, SearchDir.DESC);\n return true;\n}\n"
"public List<String> getVideoFilterOptions(DLNAResource dlna, DLNAMediaInfo media, OutputParams params) throws IOException {\n List<String> videoFilterOptions = new ArrayList<>();\n ArrayList<String> filterChain = new ArrayList<>();\n ArrayList<String> scalePadFilterChain = new ArrayList<>();\n final RendererConfiguration renderer = params.mediaRenderer;\n boolean isMediaValid = media != null && media.isMediaparsed() && media.getHeight() != 0;\n boolean isResolutionTooHighForRenderer = isMediaValid && !params.mediaRenderer.isResolutionCompatibleWithRenderer(media.getWidth(), media.getHeight());\n int scaleWidth = 0;\n int scaleHeight = 0;\n if (media.getWidth() > 0 && media.getHeight() > 0) {\n scaleWidth = media.getWidth();\n scaleHeight = media.getHeight();\n }\n boolean is3D = media.is3d() && !media.stereoscopyIsAnaglyph();\n boolean keepAR = renderer.isKeepAspectRatio() && !media.is3dFullSbsOrOu() && !\"String_Node_Str\".equals(media.getAspectRatioContainer());\n if (isResolutionTooHighForRenderer || (!renderer.isRescaleByRenderer() && renderer.isMaximumResolutionSpecified() && media.getWidth() < 720)) {\n if (media.is3dFullSbsOrOu()) {\n scalePadFilterChain.add(String.format(\"String_Node_Str\", renderer.getMaxVideoWidth(), renderer.getMaxVideoHeight()));\n } else {\n scalePadFilterChain.add(String.format(\"String_Node_Str\", renderer.getMaxVideoWidth(), renderer.getMaxVideoHeight()));\n if (keepAR) {\n scalePadFilterChain.add(String.format(\"String_Node_Str\", renderer.getMaxVideoWidth(), renderer.getMaxVideoHeight()));\n }\n }\n } else if (keepAR && isMediaValid) {\n if ((media.getWidth() / (double) media.getHeight()) >= (16 / (double) 9)) {\n scalePadFilterChain.add(\"String_Node_Str\");\n scaleHeight = (int) Math.round(scaleWidth / (16 / (double) 9));\n } else {\n scalePadFilterChain.add(\"String_Node_Str\");\n scaleWidth = (int) Math.round(scaleHeight * (16 / (double) 9));\n }\n scaleWidth = convertToModX(scaleWidth, 4);\n scaleHeight = convertToModX(scaleHeight, 4);\n if (scaleHeight > renderer.getMaxVideoHeight() || scaleWidth > renderer.getMaxVideoWidth()) {\n scaleHeight = renderer.getMaxVideoHeight();\n scaleWidth = renderer.getMaxVideoWidth();\n }\n scalePadFilterChain.add(\"String_Node_Str\" + scaleWidth + \"String_Node_Str\" + scaleHeight);\n }\n boolean override = true;\n if (renderer instanceof RendererConfiguration.OutputOverride) {\n RendererConfiguration.OutputOverride or = (RendererConfiguration.OutputOverride) renderer;\n override = or.addSubtitles();\n }\n if (!isDisableSubtitles(params) && override) {\n StringBuilder subsFilter = new StringBuilder();\n if (params.sid.getType().isText()) {\n String originalSubsFilename;\n String subsFilename;\n if (params.sid.isEmbedded() || is3D) {\n originalSubsFilename = SubtitleUtils.getSubtitles(dlna, media, params, configuration, SubtitleType.ASS).getAbsolutePath();\n } else {\n originalSubsFilename = params.sid.getExternalFile().getAbsolutePath();\n }\n if (originalSubsFilename != null) {\n StringBuilder s = new StringBuilder();\n CharacterIterator it = new StringCharacterIterator(originalSubsFilename);\n for (char ch = it.first(); ch != CharacterIterator.DONE; ch = it.next()) {\n switch(ch) {\n case '\\'':\n s.append(\"String_Node_Str\");\n break;\n case ':':\n s.append(\"String_Node_Str\");\n break;\n case '\\\\':\n s.append(\"String_Node_Str\");\n break;\n case ']':\n case '[':\n s.append(\"String_Node_Str\");\n default:\n s.append(ch);\n break;\n }\n }\n subsFilename = s.toString();\n subsFilename = subsFilename.replace(\"String_Node_Str\", \"String_Node_Str\");\n subsFilter.append(\"String_Node_Str\").append(subsFilename);\n int subtitlesWidth = scaleWidth;\n int subtitlesHeight = scaleHeight;\n if (params.sid.isExternal() && params.sid.getType() != SubtitleType.ASS || configuration.isFFmpegFontConfig()) {\n if (subtitlesWidth > 0 && subtitlesHeight > 0) {\n if (params.sid.getType() == SubtitleType.ASS) {\n setSubtitlesResolution(originalSubsFilename, subtitlesWidth, subtitlesHeight);\n }\n if (!is3D) {\n subsFilter.append(\"String_Node_Str\").append(subtitlesWidth).append(\"String_Node_Str\").append(subtitlesHeight);\n }\n if (!params.sid.isExternalFileUtf8()) {\n String encoding = isNotBlank(configuration.getSubtitlesCodepage()) ? configuration.getSubtitlesCodepage() : params.sid.getExternalFileCharacterSet() != null ? params.sid.getExternalFileCharacterSet() : null;\n if (encoding != null) {\n subsFilter.append(\"String_Node_Str\").append(encoding);\n }\n }\n }\n }\n }\n } else if (params.sid.getType().isPicture()) {\n if (params.sid.getId() < 100) {\n subsFilter.append(\"String_Node_Str\").append(media.getSubtitleTracksList().indexOf(params.sid)).append(\"String_Node_Str\");\n } else {\n videoFilterOptions.add(\"String_Node_Str\");\n videoFilterOptions.add(params.sid.getExternalFile().getAbsolutePath());\n subsFilter.append(\"String_Node_Str\");\n }\n }\n if (isNotBlank(subsFilter)) {\n if (params.timeseek > 0) {\n filterChain.add(\"String_Node_Str\" + params.timeseek + \"String_Node_Str\");\n }\n filterChain.add(subsFilter.toString());\n if (params.timeseek > 0) {\n filterChain.add(\"String_Node_Str\");\n }\n }\n }\n String overrideVF = renderer.getFFmpegVideoFilterOverride();\n if (StringUtils.isNotEmpty(overrideVF)) {\n filterChain.add(overrideVF);\n } else {\n filterChain.addAll(scalePadFilterChain);\n }\n if (is3D && media.get3DLayout() != null && isNotBlank(params.mediaRenderer.getOutput3DFormat()) && !media.get3DLayout().toString().toLowerCase().equals(params.mediaRenderer.getOutput3DFormat().trim())) {\n filterChain.add(\"String_Node_Str\" + media.get3DLayout().toString().toLowerCase() + \"String_Node_Str\" + params.mediaRenderer.getOutput3DFormat().trim().toLowerCase());\n }\n if (filterChain.size() > 0) {\n videoFilterOptions.add(\"String_Node_Str\");\n videoFilterOptions.add(StringUtils.join(filterChain, \"String_Node_Str\"));\n }\n return videoFilterOptions;\n}\n"
"private void applyState(TurboIssue issue) throws QualifierApplicationException {\n if (!content.isPresent()) {\n throw new QualifierApplicationException(\"String_Node_Str\");\n }\n if (content.get().toLowerCase().contains(\"String_Node_Str\")) {\n issue.setOpen(true);\n } else if (content.get().toLowerCase().contains(\"String_Node_Str\")) {\n issue.setOpen(false);\n }\n}\n"
"public void onConnectionStateChange(BluetoothGatt gatt, int status, int newState) {\n if (newState == BluetoothProfile.STATE_CONNECTED && status == gatt.GATT_SUCCESS) {\n Log.i(TAG, \"String_Node_Str\");\n mBluetoothGatt = gatt;\n html = new StringBuilder(\"String_Node_Str\");\n if (VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) {\n gatt.requestConnectionPriority(CONNECTION_PRIORITY_HIGH);\n gatt.requestMtu(505);\n } else {\n gatt.discoverServices();\n }\n } else if (newState == BluetoothProfile.STATE_DISCONNECTED) {\n Log.i(TAG, \"String_Node_Str\");\n close();\n } else if (status != gatt.GATT_SUCCESS) {\n Log.i(TAG, \"String_Node_Str\" + status);\n close();\n }\n}\n"
"public static Map<String, Map<Class<?>, Double>> parseDisambiguationResults(String fileName, Class<?> clazz, String packageNameDisambiguator) throws IOException, URISyntaxException, ClassNotFoundException {\n Map<String, Map<Class<?>, Double>> results = new HashMap<>();\n List<String> lines = FileUtils.readRelevantLinesFromFile(clazz, fileName);\n if (lines.isEmpty())\n throw new RuntimeException(fileName + \"String_Node_Str\");\n String[] headers = lines.get(0).split(DELIMITER);\n for (String line : lines.subList(1, lines.size())) {\n String[] values = line.split(DELIMITER);\n String uri = values[0];\n Map<Class<?>, Double> map = new HashMap<>();\n for (int i = 1; i < values.length; i++) {\n Double value = Double.parseDouble(values[i]);\n String fullClassName = packageNameDisambiguator + \"String_Node_Str\" + headers[i];\n Class<?> keyClazz = Class.forName(fullClassName);\n map.put(keyClazz, value);\n }\n results.put(uri, map);\n }\n return results;\n}\n"
"protected static void appendHtmlTable(final Writer writer, final Map<String, String> entries) throws IOException {\n writer.append(\"String_Node_Str\").append(\"String_Node_Str\").append(\"String_Node_Str\");\n for (final Entry<String, String> entry : entries.entrySet()) {\n writer.append(\"String_Node_Str\").append(entry.getKey()).append(\"String_Node_Str\").append(\"String_Node_Str\");\n if (entry.getValue() != null) {\n writer.append(escapeHtml(entry.getValue()));\n } else {\n writer.append(\"String_Node_Str\");\n }\n writer.append(\"String_Node_Str\");\n }\n writer.append(\"String_Node_Str\");\n}\n"
"private void removeSelectedElements(final Tree newTree) {\n TreeItem[] selection = newTree.getSelection();\n for (TreeItem item : selection) {\n ModelElementIndicator meIndicator = (ModelElementIndicator) item.getData(MODELELEMENT_INDICATOR_KEY);\n IndicatorUnit indicatorUnit = (IndicatorUnit) item.getData(INDICATOR_UNIT_KEY);\n if (indicatorUnit != null) {\n deleteIndicatorItems(meIndicator, indicatorUnit);\n } else {\n TdColumn tdColumn = (TdColumn) item.getData(COLUMN_INDICATOR_KEY);\n deleteColumnItems(tdColumn);\n }\n removeItemBranch(item);\n }\n}\n"
"private void updateAllIntervals(final long deltaInNanos) {\n for (Entry<TimeUnit, Histogram> entry : this.intervals.entrySet()) {\n long delta = entry.getKey().convert(deltaInNanos, TimeUnit.NANOSECONDS);\n LOGGER.info(\"String_Node_Str\", entry.getKey(), delta);\n LOGGER.info(\"String_Node_Str\", histogram);\n LOGGER.info(\"String_Node_Str\", histogram.getSnapshot().get99thPercentile());\n histogram.update(delta);\n LOGGER.info(\"String_Node_Str\", histogram.getSnapshot().get99thPercentile());\n }\n}\n"
"public String getColumnText(Object element, int columnIndex) {\n if (element instanceof RuleCollection) {\n if (columnIndex == 1) {\n RuleGroup rg = (RuleGroup) element;\n String label = rg.label();\n return standardized(label, rg.ruleCount());\n }\n return columnDescriptors[columnIndex].stringValueFor((RuleCollection) element);\n }\n if (element instanceof Rule) {\n return columnDescriptors[columnIndex].stringValueFor((Rule) element);\n }\n return \"String_Node_Str\";\n}\n"
"public void close() throws BirtException {\n if (resultIterator != null)\n resultIterator.close();\n}\n"
"public void onGlobalLayout() {\n createShader();\n setMaskScale(1.0f);\n if (mCallback != null) {\n mCallback.onSetupAnimation(SpotlightView.this);\n }\n Utils.removeOnGlobalLayoutListenerCompat(SpotlightView.this, this);\n}\n"
"public boolean applies(GameEvent event, Ability source, Game game) {\n if (event.getType() == GameEvent.EventType.CAST_SPELL) {\n Permanent enchantment = game.getPermanent(source.getSourceId());\n if (enchantment != null && enchantment.getAttachedTo() != null) {\n Player player = game.getPlayer(enchantment.getAttachedTo());\n if (player != null && event.getPlayerId().equals(player.getId())) {\n Watcher watcher = game.getState().getWatchers().get(\"String_Node_Str\", player.getId());\n if (watcher != null && watcher.conditionMet()) {\n return true;\n }\n }\n }\n return false;\n}\n"
"private void populateRequest(List<Artifact> artifacts, DataRightInput request) {\n if (request.isEmpty()) {\n List<Artifact> allArtifacts = new ArrayList<>();\n if (recurseChildren || (renderer.getBooleanOption(RECURSE_ON_LOAD) && !renderer.getBooleanOption(\"String_Node_Str\"))) {\n for (Artifact art : artifacts) {\n allArtifacts.add(art);\n if (!art.isHistorical()) {\n allArtifacts.addAll(art.getDescendants());\n }\n }\n } else {\n allArtifacts.addAll(artifacts);\n }\n int index = 0;\n String overrideClassification = (String) renderer.getOption(ITemplateRenderer.OVERRIDE_DATA_RIGHTS_OPTION);\n for (Artifact artifact : allArtifacts) {\n String classification = null;\n if (overrideClassification != null && ITemplateRenderer.DataRightsClassification.isValid(overrideClassification)) {\n classification = overrideClassification;\n } else {\n classification = artifact.getSoleAttributeValueAsString(CoreAttributeTypes.DataRightsClassification, \"String_Node_Str\");\n }\n PageOrientation orientation = WordRendererUtil.getPageOrientation(artifact);\n request.addData(artifact.getGuid(), classification, orientation, index);\n index++;\n }\n }\n}\n"
"public void createPartControl(Composite parent) {\n Composite body = new Composite(parent, SWT.NONE);\n GridLayout layout = new GridLayout(1, false);\n layout.marginHeight = 0;\n layout.marginWidth = 0;\n layout.horizontalSpacing = 0;\n layout.verticalSpacing = 0;\n layout.numColumns = 1;\n body.setLayout(layout);\n Composite composite = new Composite(body, SWT.NONE);\n composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));\n stackLayout = new StackLayout();\n composite.setLayout(stackLayout);\n composite.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_LIST_BACKGROUND));\n createMessage(composite);\n createViewer(composite);\n initActions();\n createPopupMenu(body);\n contributeToActionBars();\n toolTip = new BuildToolTip(getViewer().getControl());\n toolTip.setViewer(viewer);\n IWorkbenchSiteProgressService progress = (IWorkbenchSiteProgressService) getSite().getAdapter(IWorkbenchSiteProgressService.class);\n if (progress != null) {\n progress.showBusyForFamily(BuildsConstants.JOB_FAMILY);\n }\n model = BuildsUiInternal.getModel();\n modelListener = new BuildModelContentAdapter() {\n public void doNotifyChanged(Notification msg) {\n if (!viewer.getControl().isDisposed()) {\n lastRefresh = new Date();\n updateContents(Status.OK_STATUS);\n }\n }\n };\n model.eAdapters().add(modelListener);\n if (stateMemento != null) {\n restoreState(stateMemento);\n stateMemento = null;\n }\n serviceMessageControl = new BuildsServiceMessageControl(body);\n viewer.setInput(model);\n viewer.setSorter(new BuildTreeSorter());\n viewer.expandAll();\n installAutomaticResize(viewer.getTree());\n getSite().setSelectionProvider(viewer);\n getSite().getSelectionProvider().addSelectionChangedListener(propertiesAction);\n propertiesAction.selectionChanged((IStructuredSelection) getSite().getSelectionProvider().getSelection());\n updateContents(Status.OK_STATUS);\n treeViewerSupport = new TreeViewerSupport(viewer, getStateFile());\n NotificationSinkProxy.setControl(serviceMessageControl);\n}\n"
"public Collection<InjectionPlan<?>> getChildren() {\n return (Collection) Collections.unmodifiableCollection(Arrays.asList(this.alternatives));\n}\n"
"private void retrieveTypeFromParameter(AstNode methodDeclaration) {\n AstNode parameterList = methodDeclaration.getFirstChild(PHPGrammar.PARAMETER_LIST);\n if (parameterList != null) {\n for (AstNode parameter : parameterList.getChildren(PHPGrammar.PARAMETER)) {\n AstNode classType = parameter.getFirstChild(PHPGrammar.OPTIONAL_CLASS_TYPE);\n if (classType != null && classType.getFirstChild().is(PHPGrammar.FULLY_QUALIFIED_CLASS_NAME)) {\n types.add(getClassName(classType.getFirstChild()));\n }\n }\n }\n}\n"
"private void addPendingStep(Description description, String stringStep) {\n testCases++;\n Description testDescription = Description.createSuiteDescription(getJunitSafeString(\"String_Node_Str\" + stringStep));\n description.addChild(testDescription);\n}\n"
"public View create(Element elem) {\n Object o = elem.getAttributes().getAttribute(StyleConstants.NameAttribute);\n if (o instanceof HTML.Tag) {\n HTML.Tag kind = (HTML.Tag) o;\n if (Objects.equals(kind, HTML.Tag.IMG)) {\n return new ImageView(elem) {\n public URL getImageURL() {\n URL url = super.getImageURL();\n URI uri = null;\n try {\n uri = url.toURI();\n } catch (URISyntaxException ex) {\n }\n if (uri != null && imageCache.get(uri) == null) {\n imageCache.put(uri, Toolkit.getDefaultToolkit().createImage(url));\n }\n return url;\n }\n };\n }\n }\n return super.create(elem);\n}\n"
"public void widgetSelected(SelectionEvent e) {\n remainDBTypeList.clear();\n remainDBTypeList.addAll(allDBTypeList);\n for (Expression expression : tempExpression) {\n String language = expression.getLanguage();\n String languageName = PatternLanguageType.findNameByLanguage(language);\n remainDBTypeList.remove(languageName);\n }\n if (remainDBTypeList.size() == 0) {\n MessageDialog.openWarning(null, DefaultMessagesImpl.getString(\"String_Node_Str\"), DefaultMessagesImpl.getString(\"String_Node_Str\"));\n return;\n }\n String language = PatternLanguageType.findLanguageByName(remainDBTypeList.get(0));\n Expression expression = BooleanExpressionHelper.createExpression(language, null);\n creatNewExpressLine(expression);\n tempExpression.add(expression);\n definitionSection.setExpanded(true);\n setDirty(true);\n}\n"
"public void setInStack(ItemStack stack) {\n if (stack != null) {\n if (inStack == null)\n applyDiff(stack.stackSize);\n else\n applyDiff(stack.stackSize - inCount);\n }\n inStack = null;\n syncInStack();\n syncOutStack();\n}\n"
"private DeclaredTypeOperator getPointerTypeOperator(TypeReference type) {\n if (type.isPrimitiveType()) {\n return new DeclaredTypeOperator(language.getPrimitive(type));\n } else {\n IClass klass = cha.lookupClass(type);\n if (klass == null) {\n return new DeclaredTypeOperator(BOTTOM);\n } else {\n return new DeclaredTypeOperator(new ConeType(klass));\n }\n }\n}\n"
"public OrderStatusLogsBean transformToOrderStatusLogsFormBean(OrderStatusLogs entity) {\n OrderStatusLogsBean formBean = new OrderStatusLogsBean();\n formBean.setCreatedTimestamp(entity.getCreatedTimestamp());\n formBean.setStatus(entity.getStatus());\n formBean.setCreatedBy(entity.getCreatedBy());\n formBean.setNameSize(orderService.findOrderItemByOrderItemId(entity.getOrderItemId()).getNameSize());\n formBean.setOrderItemId(entity.getOrderItemId());\n return formBean;\n}\n"
"protected boolean tmpDirIsEmpty() {\n return tmpDir().listFiles().length == 0;\n}\n"
"public List<Node> getChildren() {\n Set<Node> users = new HashSet<Node>();\n if (owner == null)\n return Collections.emptyList();\n for (Node l : owner.getWhereUsedHandler().getWhereUsed(true)) if (l instanceof LibraryNode && !l.isDeleted())\n users.add(new LibraryUserNode((LibraryNode) l, owner));\n return new ArrayList<Node>(users);\n}\n"
"private void runGroovyScript(Object groovyScriptEngine, String scriptName, Object groovyBinding) throws ShellException {\n try {\n Method runMethod = groovyScriptEngine.getClass().getMethod(\"String_Node_Str\", String.class, groovyBinding.getClass());\n runMethod.invoke(groovyScriptEngine, scriptName + \"String_Node_Str\", groovyBinding);\n } catch (Exception e) {\n throw new ShellException(\"String_Node_Str\" + this.findProperMessage(e));\n }\n}\n"
"public void characters(char[] ch, int start, int lenght) throws SAXException {\n String trimmed = new String(ch, start, lenght).trim();\n if (!trimmed.isEmpty() && !tagStack.empty()) {\n tagStack.peek().appendContent(trimmed);\n }\n}\n"
"public LongMonitoringCounter increment() {\n return this;\n}\n"
"private void checkMethod(IMethod m) {\n Name name = m.getName();\n if (name == Name.equals) {\n if (m.parameterCount() == 1 && m.getParameter(0).getType().equals(Types.OBJECT)) {\n this.methods |= EQUALS;\n }\n return;\n }\n if (name == Name.hashCode) {\n if (m.parameterCount() == 0) {\n this.methods |= HASHCODE;\n }\n return;\n }\n if (name == Name.toString) {\n if (m.parameterCount() == 0) {\n this.methods |= TOSTRING;\n }\n return;\n }\n if (name == Name.apply) {\n if (m.parameterCount() == this.theClass.parameterCount()) {\n int len = this.theClass.parameterCount();\n for (int i = 0; i < len; i++) {\n IType t1 = m.getParameter(i).getType();\n IType t2 = m.getParameter(i).getType();\n if (!t1.equals(t2)) {\n return;\n }\n }\n this.methods |= APPLY;\n }\n return;\n }\n}\n"
"public boolean apply(Diff input) {\n final Object value;\n if (input instanceof ReferenceChange) {\n value = ((ReferenceChange) input).getValue();\n } else if (input instanceof AttributeChange) {\n value = ((AttributeChange) input).getValue();\n } else {\n return false;\n }\n if (value == null) {\n return expectedValue == null;\n } else {\n return value.equals(expectedValue);\n }\n}\n"
"public void fire(final DescribeSensorsResponse msg) {\n try {\n final Iterable<String> uuidList = Iterables.transform(VmInstances.list(VmState.RUNNING), VmInstances.toInstanceUuid());\n for (final SensorsResourceType sensorData : msg.getSensorsResources()) {\n if (!RESOURCE_TYPE_INSTANCE.equals(sensorData.getResourceType()) || !Iterables.contains(uuidList, sensorData.getResourceUuid()))\n continue;\n for (final MetricsResourceType metricType : sensorData.getMetrics()) {\n for (final MetricCounterType counterType : metricType.getCounters()) {\n final long sequenceNumber = counterType.getSequenceNum();\n for (final MetricDimensionsType dimensionType : counterType.getDimensions()) {\n final List<MetricDimensionsValuesType> values = Lists.newArrayList(dimensionType.getValues());\n Collections.sort(values, Ordering.natural().onResultOf(GetTimestamp.INSTANCE));\n if (!values.isEmpty()) {\n final MetricDimensionsValuesType latestValue = Iterables.getLast(values);\n final Double usageValue = latestValue.getValue();\n final Long usageTimestamp = latestValue.getTimestamp().getTime();\n final long sequenceNumber = counterType.getSequenceNum() + (values.size() - 1);\n fireUsageEvent(new Supplier<InstanceUsageEvent>() {\n public InstanceUsageEvent get() {\n return new InstanceUsageEvent(sensorData.getResourceUuid(), sensorData.getResourceName(), metricType.getMetricName(), currentSeqNum, dimensionType.getDimensionName(), usageValue, usageTimestamp);\n }\n });\n }\n }\n }\n }\n }\n } catch (Exception ex) {\n LOG.debug(\"String_Node_Str\", ex);\n }\n}\n"
"public void onPluginDirectorySearched(PluginStore.OnPluginDirectorySearched event) {\n if (mSearchQuery == null || !mSearchQuery.equals(event.searchTerm)) {\n return;\n }\n if (event.isError()) {\n AppLog.e(AppLog.T.PLUGINS, \"String_Node_Str\" + event.error.type + \"String_Node_Str\" + event.error.message);\n mSearchPluginsListStatus.setValue(PluginListStatus.ERROR);\n return;\n }\n mSearchResults.setValue(event.plugins);\n mSearchPluginsListStatus.setValue(PluginListStatus.DONE);\n}\n"
"public NumberFormatter getNumberFormatter(String pattern, String locale) {\n String key = pattern + \"String_Node_Str\" + locale;\n NumberFormatter fmt = numberFormatters.get(key);\n if (fmt == null) {\n fmt = new NumberFormatter(pattern, locale == null ? ulocale : new ULocale(locale));\n numberFormatters.put(key, fmt);\n }\n return fmt;\n}\n"
"private void requestPageContentIfNeeded() {\n if (getWidth() > 0 && getHeight() > 0 && !mContentRequested && mProvider != null && !mNeedsLayout) {\n mContentRequested = true;\n mProvider.getPageContent(new RenderSpec(getWidth(), getHeight(), mAttributes), this);\n }\n}\n"
"public void testIgnoreAndExclude() {\n select().from(User.class).exclude(\"String_Node_Str\").one();\n select().from(User.class).exclude(User::getAge).one();\n}\n"
"private void renderOverviewRelations(GL gl) {\n if (setsToCompare == null || setsToCompare.size() == 0)\n return;\n float alpha = 0.6f;\n ContentSelectionManager contentSelectionManager = useCase.getContentSelectionManager();\n ContentVirtualArray contentVALeft = setsToCompare.get(0).getContentVA(ContentVAType.CONTENT);\n for (Integer contentID : contentVALeft) {\n for (SelectionType type : contentSelectionManager.getSelectionTypes(contentID)) {\n float[] typeColor = type.getColor();\n typeColor[3] = alpha;\n gl.glColor4fv(typeColor, 0);\n if (type == SelectionType.MOUSE_OVER || type == SelectionType.SELECTION) {\n gl.glLineWidth(5);\n break;\n } else {\n gl.glLineWidth(1);\n }\n }\n Vec2f leftPos = leftHeatMapWrapper.getRightOverviewLinkPositionFromContentID(contentID);\n if (leftPos == null)\n continue;\n Vec2f rightPos = rightHeatMapWrapper.getLeftOverviewLinkPositionFromContentID(contentID);\n if (rightPos == null)\n continue;\n gl.glPushName(pickingManager.getPickingID(iUniqueID, EPickingType.POLYLINE_SELECTION, contentID));\n ArrayList<Vec3f> points = new ArrayList<Vec3f>();\n points.add(new Vec3f(leftPos.x(), leftPos.y(), 0));\n Tree<ClusterNode> tree;\n int nodeID;\n ClusterNode node;\n ArrayList<ClusterNode> pathToRoot;\n tree = setsToCompare.get(0).getContentTree();\n nodeID = tree.getNodeIDsFromLeafID(contentID).get(0);\n node = tree.getNodeByNumber(nodeID);\n pathToRoot = node.getParentPath(tree.getRoot());\n pathToRoot.remove(pathToRoot.size() - 1);\n for (ClusterNode pathNode : pathToRoot) {\n Vec3f nodePos = pathNode.getPos();\n points.add(nodePos);\n }\n tree = setsToCompare.get(1).getContentTree();\n nodeID = tree.getNodeIDsFromLeafID(contentID).get(0);\n node = tree.getNodeByNumber(nodeID);\n pathToRoot = node.getParentPath(tree.getRoot());\n pathToRoot.remove(pathToRoot.size() - 1);\n for (ClusterNode pathNode : pathToRoot) {\n Vec3f nodePos = pathNode.getPos();\n points.add(nodePos);\n break;\n }\n points.add(new Vec3f(rightPos.x(), rightPos.y(), 0));\n NURBSCurve curve = new NURBSCurve(points, 30);\n points = curve.getCurvePoints();\n gl.glBegin(GL.GL_LINE_STRIP);\n for (int i = 0; i < points.size(); i++) gl.glVertex3f(points.get(i).x(), points.get(i).y(), 0);\n gl.glEnd();\n gl.glPopName();\n }\n}\n"
"public int getBlocksRemaining() {\n if (currentBlock != null && rowIndex < currentBlock.getEndIndex()) {\n return masterSequence.getBlockCount(atomicCount) - blockCount + 1;\n } else {\n return masterSequence.getBlockCount(atomicCount) - blockCount;\n }\n}\n"
"protected BigDecimal convertObjectToBigDecimal(Object sourceObject) throws ConversionException {\n if (sourceObject instanceof String && ((String) sourceObject).length() > 0 && ((String) sourceObject).charAt(0) == PLUS) {\n return super.convertObjectToBigDecimal(((String) sourceObject).substring(1));\n }\n return super.convertObjectToBigDecimal(sourceObject);\n}\n"
"public static void addBiomsOPlentyBiomes() {\n for (int i = 0; i < BIOMES_OPLENTY_CATACOMBS_BIOMES.length; i++) {\n if (BIOMES_OPLENTY_CATACOMBS_BIOMES[i] != null) {\n CATACOMBS_BIOMES.add(BIOMES_OPLENTY_CATACOMBS_BIOMES[i].biomeID);\n } else {\n unNamedBiomeError(BIOMES_OPLENTY_NAME, i);\n }\n }\n for (int i = 0; i < BIOMES_OPLENTY_MEMORIAL_BIOMES.length; i++) {\n if (BIOMES_OPLENTY_MEMORIAL_BIOMES[i] != null) {\n MEMORIAL_BIOMES.add(BIOMES_OPLENTY_MEMORIAL_BIOMES[i].biomeID);\n } else {\n unNamedBiomeError(BIOMES_OPLENTY_NAME, i);\n }\n }\n for (int i = 0; i < BIOMES_OPLENTY_GRAVES_BIOMES.length; i++) {\n if (BIOMES_OPLENTY_GRAVES_BIOMES[i] != null) {\n GRAVES_BIOMES.add(BIOMES_OPLENTY_GRAVES_BIOMES[i].biomeID);\n } else {\n unNamedBiomeError(BIOMES_OPLENTY_NAME, i);\n }\n }\n}\n"
"public static boolean isReferenceElement(DesignElementHandle handle) {\n return isLinkedElement(handle);\n}\n"
"private void decode() throws AndrolibException {\n try {\n baksmali.disassembleDexFile(mApkFile.getAbsolutePath(), new DexFile(mApkFile), false, mOutDir.getAbsolutePath(), null, null, null, false, true, true, true, false, false, mDebug ? main.DIFFPRE : 0, false, false, null);\n } catch (IOException ex) {\n throw new AndrolibException(ex);\n }\n}\n"
"public int getAlignedResIndex(Group g, Chain c) {\n boolean contained = false;\n for (Chain member : getChains()) {\n if (c.getChainID().equals(member.getChainID())) {\n contained = true;\n break;\n }\n }\n if (!contained)\n throw new IllegalArgumentException(\"String_Node_Str\" + c.getChainID() + \"String_Node_Str\" + getChainIds().toString());\n if (chains2pdbResNums2ResSerials.isEmpty() || !chains2pdbResNums2ResSerials.containsKey(c.getChainID())) {\n initResSerialsMap(c);\n }\n Integer alignedSerial = chains2pdbResNums2ResSerials.get(c.getChainID()).get(g.getResidueNumber());\n if (alignedSerial == null) {\n return -1;\n }\n return alignedSerial;\n}\n"
"private GroupLevelNetworkPartitionContext getGroupLevelNetworkPartitionContext(String groupId, String appId, Instance parentInstanceContext) {\n GroupLevelNetworkPartitionContext groupLevelNetworkPartitionContext;\n ChildPolicy policy = PolicyManager.getInstance().getDeploymentPolicyByApplication(appId).getChildPolicy(groupId);\n String networkPartitionId = parentInstanceContext.getNetworkPartitionId();\n if (this.networkPartitionCtxts.containsKey(networkPartitionId)) {\n groupLevelNetworkPartitionContext = (GroupLevelNetworkPartitionContext) this.networkPartitionCtxts.get(networkPartitionId);\n } else {\n if (policy != null) {\n ChildLevelNetworkPartition networkPartition = policy.getChildLevelNetworkPartition(parentInstanceContext.getNetworkPartitionId());\n groupLevelNetworkPartitionContext = new GroupLevelNetworkPartitionContext(networkPartitionId, networkPartition.getPartitionAlgo());\n } else {\n groupLevelNetworkPartitionContext = new GroupLevelNetworkPartitionContext(networkPartitionId);\n }\n if (log.isInfoEnabled()) {\n log.info(\"String_Node_Str\" + networkPartitionId + \"String_Node_Str\" + \"String_Node_Str\" + this.id);\n }\n this.addNetworkPartitionContext(groupLevelNetworkPartitionContext);\n }\n return groupLevelNetworkPartitionContext;\n}\n"
"private List<PointTextContainer> processFourPointGreedy(List<PointTextContainer> labels, List<SymbolContainer> symbols, List<PointTextContainer> areaLabels, int tileSize) {\n List<PointTextContainer> resolutionSet = new ArrayList<PointTextContainer>();\n ReferencePosition[] refPos = new ReferencePosition[(labels.size()) * 4];\n PriorityQueue<ReferencePosition> priorUp = new PriorityQueue<ReferencePosition>(labels.size() * 4 * 2 + labels.size() / 10 * 2, ReferencePositionYComparator.INSTANCE);\n PriorityQueue<ReferencePosition> priorDown = new PriorityQueue<ReferencePosition>(labels.size() * 4 * 2 + labels.size() / 10 * 2, ReferencePositionHeightComparator.INSTANCE);\n PointTextContainer tmp;\n int dis = START_DISTANCE_TO_SYMBOLS;\n for (int z = 0; z < labels.size(); z++) {\n if (labels.get(z) != null) {\n if (labels.get(z).symbol != null) {\n tmp = labels.get(z);\n refPos[z * 4] = new ReferencePosition(tmp.x - (float) tmp.boundary.getWidth() / 2, tmp.y - (float) tmp.symbol.symbol.getHeight() / 2 - dis, z, tmp.boundary.getWidth(), tmp.boundary.getHeight());\n refPos[z * 4 + 1] = new ReferencePosition(tmp.x - (float) tmp.boundary.getWidth() / 2, tmp.y + (float) tmp.symbol.symbol.getHeight() / 2 + (float) tmp.boundary.getHeight() + dis, z, tmp.boundary.getWidth(), tmp.boundary.getHeight());\n refPos[z * 4 + 2] = new ReferencePosition(tmp.x - (float) tmp.symbol.symbol.getWidth() / 2 - tmp.boundary.getWidth() - dis, tmp.y + (float) tmp.boundary.getHeight() / 2, z, tmp.boundary.getWidth(), tmp.boundary.getHeight());\n refPos[z * 4 + 3] = new ReferencePosition(tmp.x + (float) tmp.symbol.symbol.getWidth() / 2 + dis, tmp.y + (float) tmp.boundary.getHeight() / 2 - 0.1f, z, tmp.boundary.getWidth(), tmp.boundary.getHeight());\n } else {\n refPos[z * 4] = new ReferencePosition(labels.get(z).x - ((labels.get(z).boundary.getWidth()) / 2), labels.get(z).y, z, labels.get(z).boundary.getWidth(), labels.get(z).boundary.getHeight());\n refPos[z * 4 + 1] = null;\n refPos[z * 4 + 2] = null;\n refPos[z * 4 + 3] = null;\n }\n }\n }\n removeNonValidateReferencePosition(refPos, symbols, areaLabels, tileSize);\n for (int i = 0; i < refPos.length; i++) {\n this.referencePosition = refPos[i];\n if (this.referencePosition != null) {\n priorUp.add(this.referencePosition);\n priorDown.add(this.referencePosition);\n }\n }\n while (priorUp.size() != 0) {\n this.referencePosition = priorUp.remove();\n this.label = labels.get(this.referencePosition.nodeNumber);\n resolutionSet.add(new PointTextContainer(this.label.text, this.referencePosition.x, this.referencePosition.y, this.label.paintFront, this.label.paintBack, this.label.symbol));\n if (priorUp.size() == 0) {\n return resolutionSet;\n }\n priorUp.remove(refPos[this.referencePosition.nodeNumber * 4 + 0]);\n priorUp.remove(refPos[this.referencePosition.nodeNumber * 4 + 1]);\n priorUp.remove(refPos[this.referencePosition.nodeNumber * 4 + 2]);\n priorUp.remove(refPos[this.referencePosition.nodeNumber * 4 + 3]);\n priorDown.remove(refPos[this.referencePosition.nodeNumber * 4 + 0]);\n priorDown.remove(refPos[this.referencePosition.nodeNumber * 4 + 1]);\n priorDown.remove(refPos[this.referencePosition.nodeNumber * 4 + 2]);\n priorDown.remove(refPos[this.referencePosition.nodeNumber * 4 + 3]);\n LinkedList<ReferencePosition> linkedRef = new LinkedList<ReferencePosition>();\n while (priorDown.size() != 0) {\n if (priorDown.peek().x < this.referencePosition.x + this.referencePosition.width) {\n linkedRef.add(priorDown.remove());\n } else {\n break;\n }\n }\n for (int i = 0; i < linkedRef.size(); i++) {\n if ((linkedRef.get(i).x <= this.referencePosition.x + this.referencePosition.width) && (linkedRef.get(i).y >= this.referencePosition.y - linkedRef.get(i).height) && (linkedRef.get(i).y <= this.referencePosition.y + linkedRef.get(i).height)) {\n priorUp.remove(linkedRef.get(i));\n linkedRef.remove(i);\n i--;\n }\n }\n priorDown.addAll(linkedRef);\n }\n return resolutionSet;\n}\n"
"public float getPercent(Interpolation i) {\n float percent;\n if (complete) {\n percent = 1;\n } else {\n percent = time / duration;\n if (i != null)\n percent = i.getInterpolation().apply(percent);\n }\n return (reverse ? 1 - percent : percent);\n}\n"
"public void getRegionsToBeCompacted(HttpRequest request, HttpResponder responder) {\n if (!initializePruningDebug(responder)) {\n return;\n }\n try {\n Method method = debugClazz.getMethod(\"String_Node_Str\", Integer.class);\n method.setAccessible(true);\n Object response = method.invoke(debugObject);\n Set<String> regionNames = (Set<String>) response;\n responder.sendJson(HttpResponseStatus.OK, regionNames);\n } catch (Exception e) {\n responder.sendString(HttpResponseStatus.BAD_REQUEST, e.getMessage());\n LOG.debug(\"String_Node_Str\", e);\n }\n}\n"
"public String submitRequest(RequestInfo requestInfo) throws IOException {\n log.debug(\"String_Node_Str\");\n String updateUrl = requestInfo.getUpdateUrl();\n StringBuilder builder = new StringBuilder(updateUrl);\n Map<String, Object> requestParams = requestInfo.getRequestParams();\n if (requestParams != null && requestParams.size() > 0) {\n builder.append(updateUrl.contains(\"String_Node_Str\") ? \"String_Node_Str\" : \"String_Node_Str\");\n for (String key : requestParams.keySet()) {\n builder.append(URLEncoder.encode(key, CHARSET_NAME));\n builder.append(\"String_Node_Str\");\n builder.append(URLEncoder.encode(String.valueOf(requestParams.get(key)), CHARSET_NAME));\n builder.append(\"String_Node_Str\");\n }\n builder.deleteCharAt(builder.length() - 1);\n }\n URL targetUrl = new URL(builder.toString());\n log.trace(\"String_Node_Str\" + builder.toString());\n HttpURLConnection connection = (HttpURLConnection) targetUrl.openConnection();\n connection.setDefaultUseCaches(false);\n connection.setConnectTimeout(5 * 60 * 1000);\n connection.setReadTimeout(5 * 60 * 1000);\n try {\n connection.setRequestMethod(requestInfo.getMethod());\n } catch (ProtocolException e) {\n throw new RuntimeException(e);\n }\n Map<String, Object> headers = requestInfo.getRequestHeaders();\n if (headers != null) {\n for (String key : headers.keySet()) {\n connection.addRequestProperty(key, String.valueOf(headers.get(key)));\n }\n }\n InputStream is = connection.getInputStream();\n String response = toStringBuffer(is).toString();\n log.trace(\"String_Node_Str\" + response);\n is.close();\n connection.disconnect();\n return response;\n}\n"
"public List<String> getWailaBody(ItemStack itemStack, List<String> list, IWailaDataAccessor dataAccessor, IWailaConfigHandler configHandler) {\n Block block = dataAccessor.getBlock();\n TileEntity te = dataAccessor.getTileEntity();\n if (block != null && block instanceof BlockCrop && te != null && te instanceof TileEntityCrop) {\n TileEntityCrop crop = (TileEntityCrop) te;\n if (crop.hasPlant()) {\n int growth = crop.growth;\n int gain = crop.gain;\n int strength = crop.strength;\n String seedName = ((ItemSeeds) crop.seed).getItemStackDisplayName(new ItemStack((ItemSeeds) crop.seed, 1, crop.seedMeta));\n list.add(StatCollector.translateToLocal(\"String_Node_Str\") + \"String_Node_Str\" + seedName);\n list.add(\"String_Node_Str\" + StatCollector.translateToLocal(\"String_Node_Str\") + \"String_Node_Str\" + growth);\n list.add(\"String_Node_Str\" + StatCollector.translateToLocal(\"String_Node_Str\") + \"String_Node_Str\" + gain);\n list.add(\"String_Node_Str\" + StatCollector.translateToLocal(\"String_Node_Str\") + \"String_Node_Str\" + strength);\n }\n }\n return list;\n}\n"
"private String getJavaTypeForProperty(Property property) {\n if (property.isMany() || ((SDOType) property.getType()).isXsdList()) {\n return \"String_Node_Str\";\n } else {\n SDOType propertyType = property.getType();\n Class instanceClass = propertyType.getInstanceClass();\n if (ClassConstants.ABYTE.equals(instanceClass)) {\n return \"String_Node_Str\";\n } else if (instanceClass.equals(ClassConstants.APBYTE)) {\n return \"String_Node_Str\";\n }\n return instanceClass.getName();\n }\n}\n"
"public int[] getImageBuf(int required, int requested, int nPixels) {\n int requiredBytes = required;\n int requestedBytes = requested;\n int size = requestedBytes;\n if (size > imageBufIdealSize)\n size = imageBufIdealSize;\n if (size < requiredBytes)\n size = requiredBytes;\n if (imageBufSize < size) {\n imageBufSize = size;\n imageBuf = new int[imageBufSize];\n }\n if (nPixels != 0)\n nPixels = imageBufSize / (handler.cp.pf().bpp / 8);\n return imageBuf;\n}\n"
"public ExecutionResult createFileInVR(String routerIp, String filePath, String fileName, String content) {\n VmwareManager mgr = getServiceContext().getStockObject(VmwareManager.CONTEXT_STOCK_NAME);\n File keyFile = mgr.getSystemVMKeyFile();\n try {\n SshHelper.scpTo(routerIp, 3922, \"String_Node_Str\", keyFile, null, filePath, content.getBytes(\"String_Node_Str\"), fileName, null);\n } catch (Exception e) {\n s_logger.warn(\"String_Node_Str\" + filePath + fileName + \"String_Node_Str\" + routerIp, e);\n return new ExecutionResult(false, e.getMessage());\n }\n return new ExecutionResult(true, null);\n}\n"
"private String getSelectClause() {\n StringBuilder clause = new StringBuilder(\"String_Node_Str\");\n if (selectedIModelFields.isEmpty()) {\n clause.append(\"String_Node_Str\");\n } else {\n Iterator<ModelField> it = selectedIModelFields.iterator();\n while (it.hasNext()) {\n clause.append(it.next().getSqlKeyword());\n if (it.hasNext()) {\n clause.append(\"String_Node_Str\");\n }\n }\n }\n String tableName = Utility.getTableName(mainModel);\n return clause.append(\"String_Node_Str\").append(tableName).append(\"String_Node_Str\").toString();\n}\n"
"public static void loadWorld(World world) {\n if (world == null) {\n return;\n }\n Set<String> worlds;\n if (config.contains(\"String_Node_Str\")) {\n worlds = config.getConfigurationSection(\"String_Node_Str\").getKeys(false);\n } else {\n worlds = new HashSet<String>();\n }\n ChunkGenerator generator = world.getGenerator();\n loadWorld(world.getName(), generator);\n}\n"
"public boolean isEnabled() {\n return !eventManager.isEventClosed(item.getModelObject());\n}\n"
"public void outboxURLShouldBeReturnedWhenTheDecisionTreesAreComplete() {\n ivrContext.callState(CallState.ALL_TREES_COMPLETED);\n String patientId = \"String_Node_Str\";\n tamaIVRContextForTest.patientId(patientId);\n when(voiceOutboxService.getNumberPendingMessages(patientId)).thenReturn(3);\n assertEquals(TAMACallFlowController.PRE_OUTBOX_URL, tamaCallFlowController.urlFor(kooKooIVRContext));\n}\n"
"private void register(SimonSuperMXBean simonMxBean) {\n String name = constructObjectName(simonMxBean);\n try {\n ObjectName objectName = new ObjectName(name);\n if (mBeanServer.isRegistered(objectName)) {\n mBeanServer.unregisterMBean(objectName);\n } else {\n registeredNames.add(name);\n }\n mBeanServer.registerMBean(simonMxBean, objectName);\n message(\"String_Node_Str\" + objectName);\n } catch (JMException e) {\n warning(\"String_Node_Str\" + name, e);\n registeredNames.remove(name);\n }\n}\n"
"protected List<TdColumn> extractColumns(DatabaseMetaData dbMetaData, IMetadataConnection metadataConnection, String databaseType, String catalogName, String schemaName, String tableName) {\n MappingTypeRetriever mappingTypeRetriever = null;\n columnIndex = 0;\n List<TdColumn> metadataColumns = new ArrayList<TdColumn>();\n List<String> columnLabels = new ArrayList<String>();\n Map<String, String> primaryKeys = new HashMap<String, String>();\n ResultSet columns = null;\n Statement stmt = null;\n try {\n boolean isAccess = EDatabaseTypeName.ACCESS.getDisplayName().equals(metadataConnection.getDbType());\n if (isAccess) {\n primaryKeys = retrievePrimaryKeys(dbMetaData, null, null, tableName);\n } else {\n primaryKeys = retrievePrimaryKeys(dbMetaData, catalogName, schemaName, tableName);\n }\n columns = getColumnsResultSet(dbMetaData, catalogName, schemaName, tableName);\n IRepositoryService repositoryService = CoreRuntimePlugin.getInstance().getRepositoryService();\n while (columns.next()) {\n Boolean b = false;\n String fetchTableName = ExtractMetaDataUtils.getStringMetaDataInfo(columns, ExtractManager.TABLE_NAME, null);\n fetchTableName = ManagementTextUtils.filterSpecialChar(fetchTableName);\n if (fetchTableName.equals(tableName) || databaseType.equals(EDatabaseTypeName.SQLITE.getDisplayName())) {\n TdColumn metadataColumn = RelationalFactory.eINSTANCE.createTdColumn();\n String label = ExtractMetaDataUtils.getStringMetaDataInfo(columns, \"String_Node_Str\", null);\n label = ManagementTextUtils.filterSpecialChar(label);\n String sub = \"String_Node_Str\";\n String sub2 = \"String_Node_Str\";\n String label2 = label;\n if (label != null && label.length() > 0 && label.startsWith(\"String_Node_Str\")) {\n sub = label.substring(1);\n if (sub != null && sub.length() > 0) {\n sub2 = sub.substring(1);\n }\n }\n if (coreService != null && (coreService.isKeyword(label) || coreService.isKeyword(sub) || coreService.isKeyword(sub2))) {\n label = \"String_Node_Str\" + label;\n b = true;\n }\n metadataColumn.setLabel(label);\n metadataColumn.setOriginalField(label2);\n label = MetadataToolHelper.validateColumnName(label, columnIndex, columnLabels);\n metadataColumn.setLabel(label);\n columnIndex++;\n if (primaryKeys != null && !primaryKeys.isEmpty() && primaryKeys.get(metadataColumn.getOriginalField()) != null) {\n metadataColumn.setKey(true);\n } else {\n metadataColumn.setKey(false);\n }\n String typeName = \"String_Node_Str\";\n if (ExtractMetaDataUtils.isUseAllSynonyms()) {\n typeName = \"String_Node_Str\";\n }\n String dbType = ExtractMetaDataUtils.getStringMetaDataInfo(columns, typeName, null).toUpperCase();\n dbType = dbType.trim();\n dbType = ManagementTextUtils.filterSpecialChar(dbType);\n dbType = handleDBtype(dbType);\n metadataColumn.setSourceType(dbType);\n Integer columnSize;\n columnSize = ExtractMetaDataUtils.getIntMetaDataInfo(columns, \"String_Node_Str\");\n metadataColumn.setLength(columnSize);\n String talendType = null;\n if (metadataConnection.getMapping() != null) {\n mappingTypeRetriever = MetadataTalendType.getMappingTypeRetriever(metadataConnection.getMapping());\n }\n Integer intMetaDataInfo = ExtractMetaDataUtils.getIntMetaDataInfo(columns, \"String_Node_Str\");\n talendType = mappingTypeRetriever.getDefaultSelectedTalendType(dbType, columnSize, intMetaDataInfo);\n talendType = ManagementTextUtils.filterSpecialChar(talendType);\n if (talendType == null) {\n if (LanguageManager.getCurrentLanguage() == ECodeLanguage.JAVA) {\n talendType = JavaTypesManager.getDefaultJavaType().getId();\n log.warn(Messages.getString(\"String_Node_Str\", dbType));\n }\n } else {\n }\n metadataColumn.setTalendType(talendType);\n String stringMetaDataInfo = ExtractMetaDataUtils.getStringMetaDataInfo(columns, \"String_Node_Str\", dbMetaData);\n boolean isNullable = ExtractMetaDataUtils.getBooleanMetaDataInfo(columns, \"String_Node_Str\");\n metadataColumn.setNullable(isNullable);\n String commentInfo = ExtractMetaDataUtils.getStringMetaDataInfo(columns, ExtractManager.REMARKS, null);\n if (commentInfo != null && commentInfo.length() > 0) {\n commentInfo = ManagementTextUtils.filterSpecialChar(commentInfo);\n }\n metadataColumn.setComment(commentInfo);\n addColumnAttributes(metadataConnection, columns, metadataColumn, label, label2, dbType, columnSize, intMetaDataInfo, commentInfo);\n checkPrecision(metadataColumn, tableName, dbType, intMetaDataInfo);\n if (stringMetaDataInfo != null && stringMetaDataInfo.length() > 0 && stringMetaDataInfo.charAt(0) == 0x0) {\n stringMetaDataInfo = \"String_Node_Str\";\n }\n stringMetaDataInfo = ManagementTextUtils.filterSpecialChar(stringMetaDataInfo);\n metadataColumn.setDefaultValue(stringMetaDataInfo);\n ExtractMetaDataUtils.handleDefaultValue(metadataColumn, dbMetaData);\n checkTypeForTimestamp(metadataConnection, metadataColumn, dbType);\n metadataColumns.add(metadataColumn);\n columnLabels.add(metadataColumn.getLabel());\n }\n }\n checkComments(metadataConnection, tableName, metadataColumns);\n } catch (SQLException e) {\n ExceptionHandler.process(e);\n log.error(e.toString());\n throw new RuntimeException(e);\n } catch (Exception e) {\n ExceptionHandler.process(e);\n log.error(e.toString());\n throw new RuntimeException(e);\n } finally {\n try {\n if (columns != null) {\n columns.close();\n }\n if (stmt != null) {\n stmt.close();\n }\n } catch (SQLException e) {\n log.error(e.toString());\n }\n }\n return metadataColumns;\n}\n"
"public void datasetLineage(HttpRequest request, HttpResponder responder, String namespaceId, String datasetId, long start, long end, int levels) throws Exception {\n checkArguments(start, end, levels);\n Id.DatasetInstance datasetInstance = Id.DatasetInstance.from(namespaceId, datasetId);\n Lineage lineage = lineageGenerator.computeLineage(datasetInstance, start, end, levels);\n responder.sendJson(HttpResponseStatus.OK, new LineageRecord(start, end, lineage.getRelations()), LineageRecord.class, GSON);\n}\n"