content
stringlengths
40
137k
"public void testOverrideMasterSpreadObjects() throws Exception {\n Spread newSpread;\n String masterSpreadName = \"String_Node_Str\";\n newSpread = cloned.newSpread(masterSpreadName);\n newSpread.setTransformationMatrix(0);\n MasterSpread master = cloned.getMasterSpread(masterSpreadName);\n assertNotNull(\"String_Node_Str\", master);\n Page newPage = newSpread.addPage(10);\n assertNotNull(\"String_Node_Str\", newPage);\n assertEquals(\"String_Node_Str\", 0, newSpread.getAllFrames().size());\n newSpread.overrideMasterSpreadObjects();\n assertTrue(\"String_Node_Str\", newSpread.getAllFrames().size() > 0);\n boolean foundThread = false;\n for (TextFrame frame : newSpread.getAllFrames()) {\n if (\"String_Node_Str\".equals(frame.getLabel().trim())) {\n foundThread = true;\n TextFrame nextInThread = frame.getNextInThread();\n assertNotNull(nextInThread);\n InDesignComponent nextInThreadMaster = nextInThread.getMasterFrame();\n assertNotNull(nextInThreadMaster);\n assertNotSame(nextInThreadMaster, frame.getNextInThread());\n assertNotSame(nextInThread.getPreviousInThread(), frame.getMasterFrame());\n assertEquals(\"String_Node_Str\", frame, nextInThread.getPreviousInThread());\n }\n }\n assertTrue(\"String_Node_Str\", foundThread);\n assertTrue(\"String_Node_Str\", newPage.getAllFrames().size() > 0);\n}\n"
"private void checkCallParamTypes(CallNode call, TemplateNode callee) {\n TemplateParamTypes calleeParamTypes = getTemplateParamTypes(callee);\n Set<String> explicitParams = Sets.newHashSet();\n for (CallParamNode callerParam : call.getChildren()) {\n SoyType argType = null;\n if (callerParam.getKind() == SoyNode.Kind.CALL_PARAM_VALUE_NODE) {\n ExprNode expr = ((CallParamValueNode) callerParam).getValueExprUnion().getExpr();\n if (expr != null) {\n argType = expr.getType();\n }\n } else if (callerParam.getKind() == SoyNode.Kind.CALL_PARAM_CONTENT_NODE) {\n argType = SanitizedType.getTypeForContentKind(((CallParamContentNode) callerParam).getContentKind());\n }\n if (argType != null) {\n Collection<SoyType> declaredParamTypes = calleeParamTypes.params.get(callerParam.getKey());\n for (SoyType formalType : declaredParamTypes) {\n checkArgumentAgainstParamType(call, callerParam.getKey(), argType, formalType, calleeParamTypes.isIndirect(callerParam.getKey()));\n }\n }\n explicitParams.add(callerParam.getKey());\n }\n if (call.isPassingData()) {\n if (call.isPassingAllData() && template.getParams() != null) {\n for (TemplateParam callerParam : template.getParams()) {\n if (!(callerParam instanceof HeaderParam)) {\n continue;\n }\n String paramName = callerParam.name();\n if (explicitParams.contains(paramName)) {\n continue;\n }\n Collection<SoyType> declaredParamTypes = calleeParamTypes.params.get(paramName);\n for (SoyType formalType : declaredParamTypes) {\n checkArgumentAgainstParamType(call, paramName, callerParam.type(), formalType, calleeParamTypes.isIndirect(paramName));\n }\n }\n } else {\n }\n }\n}\n"
"boolean applyOptions() {\n BittorrentSettings.UPLOAD_TORRENTS_FOREVER.setValue(uploadTorrentsForeverButton.isSelected());\n if (!uploadTorrentsForeverButton.isSelected()) {\n BittorrentSettings.LIBTORRENT_SEED_RATIO_LIMIT.setValue(seedRatioModel.getNumber().floatValue());\n BittorrentSettings.LIBTORRENT_SEED_TIME_LIMIT.setValue(((Double) Math.ceil(((Double) seedTime.getValue()).doubleValue() * 60 * 60 * 24)).intValue());\n }\n BittorrentSettings.TORRENT_SHOW_POPUP_BEFORE_DOWNLOADING.setValue(prioritizeTorrentPopup.isSelected());\n if (torrentManager.get().isValid()) {\n torrentManager.get().setTorrentManagerSettings(torrentSettings);\n }\n return false;\n}\n"
"public void show() {\n shell.open();\n while (!shell.isDisposed()) {\n try {\n if (!display.readAndDispatch()) {\n display.sleep();\n }\n } catch (final Exception e) {\n controller.actionShowErrorDialog(Resources.getMessage(\"String_Node_Str\"), Resources.getMessage(\"String_Node_Str\") + Resources.getMessage(\"String_Node_Str\"), e);\n StringWriter sw = new StringWriter();\n PrintWriter pw = new PrintWriter(sw);\n e.printStackTrace(pw);\n controller.getResources().getLogger().info(sw.toString());\n }\n }\n display.dispose();\n}\n"
"static Throwable recursiveGetThrowable(ErrorTrace et) {\n String classname = ErrorTraceManipulator.getProperty(et, PROPERTY_JAVAEXCEPTION_CLASS);\n String message = ErrorTraceManipulator.getProperty(et, PROPERTY_JAVAEXCEPTION_MESSAGE);\n if (message == null) {\n message = \"String_Node_Str\";\n }\n Throwable thr = null;\n if (classname != null) {\n try {\n Class exClass = Class.forName(classname);\n if (AcsJException.class.isAssignableFrom(exClass)) {\n Constructor msgCtor = exClass.getConstructor(new Class[] { String.class });\n thr = (Throwable) msgCtor.newInstance(new Object[] { message });\n }\n } catch (Exception e) {\n message = \"String_Node_Str\" + message;\n }\n }\n if (thr == null) {\n thr = new DefaultAcsJException(message, et.errorType, et.errorCode, et.shortDescription);\n }\n resurrectThrowable(thr, et);\n return thr;\n}\n"
"public void testNewRuleInLatestGroovy() {\n if (GroovyUtils.GROOVY_LEVEL < 18) {\n runNegativeTest(new String[] { \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" }, \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n } else {\n this.runNegativeTest(new String[] { \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" }, \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n }\n}\n"
"private boolean includeRCSAForDescription(IContainer container, IRemoteServiceContainerAdapter adapter, ID endpointID, ServiceEndpointDescription description) {\n if (endpointID.equals(container.getID()))\n return false;\n String connectNamespaceName = (String) description.getProperty(ECFServicePublication.PROP_KEY_ENDPOINT_CONTAINERID_NAMESPACE);\n if (connectNamespaceName != null) {\n Namespace namespace = container.getConnectNamespace();\n if (namespace != null && namespace.getName().equals(connectNamespaceName))\n return true;\n }\n return true;\n}\n"
"private boolean chunkLoaded() {\n return this.bukkitEntity.getWorld().isChunkLoaded(this.npc.getChunkX(), this.npc.getChunkZ());\n}\n"
"private double evaluateConsistencyMultiThread(final int intervals, double[] grad) {\n double f_direct = 0.0;\n double f_inverse = 0.0;\n final int nproc = Runtime.getRuntime().availableProcessors();\n int block_height_target = this.targetCurrentHeight / nproc;\n if (this.targetCurrentHeight % 2 != 0)\n block_height_target++;\n int block_height_source = this.sourceCurrentHeight / nproc;\n if (this.sourceCurrentHeight % 2 != 0)\n block_height_source++;\n final int nThreads = nproc;\n Thread[] threads = new Thread[nThreads];\n Rectangle[] rect_target = new Rectangle[nThreads];\n Rectangle[] rect_source = new Rectangle[nThreads];\n final double[][] grad_direct = new double[nThreads][grad.length];\n final double[][] grad_inverse = new double[nThreads][grad.length];\n final double[][] result = new double[nThreads][4];\n int n_direct = 0;\n int n_inverse = 0;\n for (int i = 0; i < nThreads; i++) {\n int y_start_target = i * block_height_target;\n int y_start_source = i * block_height_source;\n if (nThreads - 1 == i) {\n block_height_target = this.targetCurrentHeight - i * block_height_target;\n block_height_source = this.sourceCurrentHeight - i * block_height_source;\n }\n rect_target[i] = new Rectangle(0, y_start_target, this.targetCurrentWidth, block_height_target);\n rect_source[i] = new Rectangle(0, y_start_source, this.sourceCurrentWidth, block_height_source);\n threads[i] = new Thread(new EvaluateConsistencyTile(this, grad_direct[i], grad_inverse[i], result[i], rect_target[i], rect_source[i]));\n threads[i].start();\n }\n for (int i = 0; i < nThreads; i++) {\n try {\n threads[i].join();\n threads[i] = null;\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n for (int i = 0; i < nThreads; i++) {\n f_direct += result[i][0];\n n_direct += result[i][1];\n f_inverse += result[i][2];\n n_inverse += result[i][3];\n }\n f_direct /= n_direct;\n f_inverse /= n_inverse;\n for (int i = 0; i < nThreads; i++) {\n for (int j = 0; j < grad.length; j++) grad[j] += (grad_direct[i][j] / n_direct) + (grad_inverse[i][j] / n_inverse);\n }\n this.partialDirectConsitencyError = this.consistencyWeight * f_direct;\n this.partialInverseConsitencyError = this.consistencyWeight * f_inverse;\n double consistencyDirectError = (n_direct == 0) ? 1.0 / FLT_EPSILON : (this.consistencyWeight * f_direct);\n double consistencyInverseError = (n_inverse == 0) ? 1.0 / FLT_EPSILON : (this.consistencyWeight * f_inverse);\n if (showMarquardtOptim) {\n IJ.log(\"String_Node_Str\" + consistencyDirectError);\n IJ.log(\"String_Node_Str\" + consistencyInverseError);\n }\n if (n_direct == 0 || n_inverse == 0)\n return 1 / FLT_EPSILON;\n return (this.consistencyWeight * (f_direct + f_inverse));\n}\n"
"public static boolean isSupernodeOS() {\n if (_isWindows98 || _isWindows95 || _isMacClassic) {\n return false;\n }\n return true;\n}\n"
"protected void configure() {\n bind(FileManager.class).to(FileManagerStub.class);\n}\n"
"public void testSetTimeout_noTimeout() {\n delayTestFinish(TEST_FINISH_DELAY);\n try {\n RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, getTestBaseURL() + \"String_Node_Str\");\n builder.setTimeoutMillis(10000);\n builder.sendRequest(null, new RequestCallback() {\n public void onError(Request request, Throwable exception) {\n fail(\"String_Node_Str\");\n }\n public void onResponseReceived(Request request, Response response) {\n assertEquals(200, response.getStatusCode());\n finishTest();\n }\n });\n}\n"
"public IssueRelation createRelation(String projectKey, Integer issueId, Integer issueToId, String type) throws IOException, AuthenticationException, NotFoundException, RedmineException {\n URI uri = createURI(\"String_Node_Str\" + issueId + \"String_Node_Str\");\n HttpPost http = new HttpPost(uri);\n IssueRelation toCreate = new IssueRelation();\n toCreate.setIssueId(issueId);\n toCreate.setIssueToId(issueToId);\n toCreate.setType(type);\n String xml = RedmineXMLGenerator.toXML(toCreate);\n setEntity((HttpEntityEnclosingRequest) http, xml);\n Response response = sendRequest(http);\n IssueRelation relation = RedmineXMLParser.parseRelationFromXML(response.getBody());\n return relation;\n}\n"
"public boolean contains(Object o) {\n return set.contains(o);\n}\n"
"public void update(SshMachineLocation machine) {\n synchronized (mutex) {\n String[] templateList = new String[] { \"String_Node_Str\", \"String_Node_Str\" };\n for (String fileName : templateList) {\n String contents = ((BindDnsServerSshDriver) getDriver()).processTemplate(\"String_Node_Str\" + fileName);\n machine.copyTo(new ByteArrayInputStream(contents.getBytes()), \"String_Node_Str\" + fileName);\n }\n machine.execCommands(\"String_Node_Str\", ImmutableList.of(CommonCommands.sudo(\"String_Node_Str\")));\n }\n}\n"
"public boolean onScaleBegin(ScaleGestureDetector detector) {\n if (scaleDetectorActive) {\n isScaled = true;\n scale = 1.0f;\n mEdgeGlowLeft.onRelease();\n mEdgeGlowRight.onRelease();\n mEdgeGlowTop.onRelease();\n mEdgeGlowBottom.onRelease();\n } else {\n isScaled = false;\n }\n return isScaled;\n}\n"
"public void flushCache() throws CacheFileManagerException {\n try {\n flushCache(file_position, length, false, -1, 0, -1);\n file.flush();\n } catch (FMFileManagerException e) {\n manager.rethrow(this, e);\n }\n}\n"
"public IMethod getCalleeTarget(CGNode N, CallSiteReference site, IClass receiver) {\n MethodReference m = site.getDeclaredTarget();\n if (isEJBSuperInterface(m.getDeclaringClass())) {\n IClass inferred = getReceiverClassFromTypeInference(N, site);\n if (inferred != null) {\n receiver = inferred;\n }\n }\n if (FakeRootMethod.isFakeRootMethod(N.getMethod().getReference())) {\n if (deployment.isMessageDriven(m.getDeclaringClass())) {\n if (m.getName().equals(onMessageAtom) && m.getDescriptor().equals(onMessageDesc)) {\n return hijackOnMessageEntrypoint(m);\n }\n } else if (receiver != null && cha.implementsInterface(receiver, servlet)) {\n IMethod resolved = cha.resolveMethod(receiver, m.getSelector());\n if (!resolved.isInit() && !resolved.isClinit()) {\n return hijackServletEntrypoint(m);\n }\n }\n }\n m = specializeForReceiverType(receiver, m);\n SyntheticMethod X = methodReferenceIntercept(m);\n if (X != null) {\n return X;\n }\n IMethod target = parent.getCalleeTarget(N, site, receiver);\n if (target == null) {\n return null;\n }\n X = methodReferenceIntercept(target.getReference());\n if (X != null) {\n return X;\n } else {\n return target;\n }\n}\n"
"protected Rectangle forwardMapRect(Rectangle sourceRect, int sourceIndex) {\n if (sourceRect == null) {\n throw new IllegalArgumentException(JaiI18N.getString(\"String_Node_Str\"));\n } else if (sourceIndex != 0) {\n throw new IllegalArgumentException(JaiI18N.getString(\"String_Node_Str\"));\n }\n Point2D p1 = mapSourcePoint(new Point2D.Double(sourceRect.x, sourceRect.y));\n Point2D p2 = mapSourcePoint(new Point2D.Double(sourceRect.x + sourceRect.width - 1, sourceRect.y + sourceRect.height - 1));\n int x1 = (int) Math.floor(p1.getX());\n int y1 = (int) Math.floor(p1.getY());\n int x2 = (int) Math.floor(p2.getX());\n int y2 = (int) Math.floor(p2.getY());\n return new Rectangle(x1, y1, x2 - x1 + 1, y2 - y1 + 1);\n}\n"
"private void preRenderSetupSceneReflectiveRefractive(boolean isHeadUnderWater) {\n sceneReflectiveRefractive = frameBuffersManager.getFBO(\"String_Node_Str\");\n sceneReflectiveRefractive.bind();\n if (isHeadUnderWater) {\n GL11.glDisable(GL11.GL_CULL_FACE);\n }\n}\n"
"public static void main(final String[] args) {\n if ((args == null) || (args.length == 0)) {\n log.error(\"String_Node_Str\");\n System.exit(1);\n }\n final SimpleIngestIndexWriter si = new SimpleIngestIndexWriter();\n DataStore geowaveDataStore = null;\n String namespace = null;\n String instance = null;\n if (args.length != 5) {\n log.error(\"String_Node_Str\");\n System.exit(1);\n }\n namespace = args[5];\n instance = args[2];\n try {\n final BasicAccumuloOperations bao = si.getAccumuloOperationsInstance(args[1], args[2], args[3], args[4], args[5]);\n geowaveDataStore = si.getAccumuloGeowaveDataStore(bao);\n } catch (final Exception e) {\n log.error(\"String_Node_Str\", e);\n System.exit(1);\n }\n si.generateGrid(geowaveDataStore);\n System.out.println(\"String_Node_Str\" + namespace + \"String_Node_Str\" + instance);\n}\n"
"public long lastModified() {\n long lastModified = 0;\n for (File xmlFile : gwtXmlFiles) {\n if (xmlFile.exists()) {\n lastModified = Math.min(lastModified, xmlFile.lastModified());\n }\n }\n return lastModified;\n}\n"
"private int getPosition(Object target) {\n this.newTarget = target;\n int position = DNDUtil.calculateNextPosition(target, canContain);\n if (position > -1) {\n if (DNDUtil.getDesignElementHandle(target).getContainerSlotHandle() != null) {\n this.newTarget = DNDUtil.getDesignElementHandle(target).getContainerSlotHandle();\n } else {\n this.newTarget = DNDUtil.getDesignElementHandle(target).getContainerPropertyHandle();\n }\n if (getCurrentLocation() == LOCATION_BEFORE || (getCurrentLocation() == LOCATION_AFTER && target == getSelectedObject())) {\n position--;\n }\n }\n return position;\n}\n"
"private boolean isOwnColumnBinding(int pos) {\n List<ComputedColumnHandle> bindings = getBindingList(inputElement);\n return pos < 0 ? false : bindings.get(pos).getElementHandle() == inputElement;\n}\n"
"public void render() {\n GL10 gl = Gdx.graphics.getGL10();\n gl.glClear(GL10.GL_COLOR_BUFFER_BIT);\n camera.update();\n camera.apply(gl);\n if (Gdx.input.justTouched()) {\n wp = new WayPoint(spawn, target, false);\n wp.CalculateNextPossibleWayPoints();\n }\n meshObj.render(gl);\n rotate++;\n}\n"
"public void onReceive(Context context, Intent intent) {\n final String action = intent.getAction();\n if (SettingsFragment.ACTION_UPDATED_STATUS_PERIOD.equals(action)) {\n scheduleWatchdog();\n }\n}\n"
"public void moveChange(long segmentIndex, long oldPos, long newPos) {\n for (long next = modIterSet.nextSetBit(0L); next > 0L; next = modIterSet.nextSetBit(next + 1L)) {\n try {\n ModificationIterator modificationIterator = acquireModificationIterator((byte) next);\n if (modificationIterator.dropChange(segmentIndex, oldPos))\n modificationIterator.raiseChange(segmentIndex, newPos, timestamp);\n } catch (Exception e) {\n LOG.error(\"String_Node_Str\", e);\n }\n }\n}\n"
"public void testResultingMarginalsProb() {\n boolean logDomain = false;\n testResultMarginalsHelper(logDomain, false);\n testResultMarginalsHelper(logDomain, true);\n}\n"
"private void generateProxyMethod(SourceWriter w, SerializableTypeOracle serializableTypeOracle, JMethod syncMethod, JMethod asyncMethod) {\n w.println();\n JType asyncReturnType = asyncMethod.getReturnType().getErasedType();\n w.print(\"String_Node_Str\");\n w.print(asyncReturnType.getQualifiedSourceName());\n w.print(\"String_Node_Str\");\n w.print(asyncMethod.getName() + \"String_Node_Str\");\n boolean needsComma = false;\n boolean needsTryCatchBlock = false;\n NameFactory nameFactory = new NameFactory();\n JParameter[] asyncParams = asyncMethod.getParameters();\n for (int i = 0; i < asyncParams.length; ++i) {\n JParameter param = asyncParams[i];\n if (needsComma) {\n w.print(\"String_Node_Str\");\n } else {\n needsComma = true;\n }\n JType paramType = param.getType();\n if (i < asyncParams.length - 1 && paramType.isPrimitive() == null && !paramType.getQualifiedSourceName().equals(String.class.getCanonicalName())) {\n needsTryCatchBlock = true;\n }\n w.print(paramType.getParameterizedQualifiedSourceName());\n w.print(\"String_Node_Str\");\n String paramName = param.getName();\n nameFactory.addName(paramName);\n w.print(paramName);\n }\n w.println(\"String_Node_Str\");\n w.indent();\n String requestIdName = nameFactory.createName(\"String_Node_Str\");\n w.println(\"String_Node_Str\" + requestIdName + \"String_Node_Str\");\n String statsMethodExpr = getProxySimpleName() + \"String_Node_Str\" + syncMethod.getName() + \"String_Node_Str\";\n String tossName = nameFactory.createName(\"String_Node_Str\");\n w.println(\"String_Node_Str\" + tossName + \"String_Node_Str\" + statsMethodExpr + \"String_Node_Str\" + getProxySimpleName() + \"String_Node_Str\" + syncMethod.getName() + \"String_Node_Str\");\n w.print(ClientSerializationStreamWriter.class.getSimpleName());\n w.print(\"String_Node_Str\");\n String streamWriterName = nameFactory.createName(\"String_Node_Str\");\n w.println(streamWriterName + \"String_Node_Str\");\n w.println(\"String_Node_Str\");\n w.println(streamWriterName + \"String_Node_Str\");\n if (needsTryCatchBlock) {\n w.println(\"String_Node_Str\");\n w.indent();\n }\n if (!shouldEnforceTypeVersioning()) {\n w.println(streamWriterName + \"String_Node_Str\" + ClientSerializationStreamReader.class.getName() + \"String_Node_Str\");\n }\n w.println(streamWriterName + \"String_Node_Str\" + syncMethod.getName() + \"String_Node_Str\");\n JParameter[] syncParams = syncMethod.getParameters();\n w.println(streamWriterName + \"String_Node_Str\" + syncParams.length + \"String_Node_Str\");\n for (JParameter param : syncParams) {\n w.println(streamWriterName + \"String_Node_Str\" + serializableTypeOracle.getSerializedTypeName(param.getType()) + \"String_Node_Str\");\n }\n for (int i = 0; i < asyncParams.length - 1; ++i) {\n JParameter asyncParam = asyncParams[i];\n w.print(streamWriterName + \"String_Node_Str\");\n w.print(Shared.getStreamWriteMethodNameFor(asyncParam.getType()));\n w.println(\"String_Node_Str\" + asyncParam.getName() + \"String_Node_Str\");\n }\n JParameter callbackParam = asyncParams[asyncParams.length - 1];\n String callbackName = callbackParam.getName();\n if (needsTryCatchBlock) {\n w.outdent();\n w.print(\"String_Node_Str\");\n String exceptionName = nameFactory.createName(\"String_Node_Str\");\n w.println(exceptionName + \"String_Node_Str\");\n w.indent();\n w.println(callbackName + \"String_Node_Str\" + exceptionName + \"String_Node_Str\");\n w.outdent();\n w.println(\"String_Node_Str\");\n }\n w.println();\n String payloadName = nameFactory.createName(\"String_Node_Str\");\n w.println(\"String_Node_Str\" + payloadName + \"String_Node_Str\" + streamWriterName + \"String_Node_Str\");\n w.println(tossName + \"String_Node_Str\" + statsMethodExpr + \"String_Node_Str\" + getProxySimpleName() + \"String_Node_Str\" + syncMethod.getName() + \"String_Node_Str\");\n if (asyncReturnType == JPrimitiveType.VOID) {\n w.print(\"String_Node_Str\");\n } else if (asyncReturnType.getQualifiedSourceName().equals(RequestBuilder.class.getName())) {\n w.print(\"String_Node_Str\");\n } else if (asyncReturnType.getQualifiedSourceName().equals(Request.class.getName())) {\n w.print(\"String_Node_Str\");\n } else {\n throw new RuntimeException(\"String_Node_Str\" + asyncReturnType.getQualifiedSourceName());\n }\n JType returnType = syncMethod.getReturnType();\n w.print(\"String_Node_Str\" + getResponseReaderFor(returnType).name());\n w.println(\"String_Node_Str\" + getProxySimpleName() + \"String_Node_Str\" + syncMethod.getName() + \"String_Node_Str\" + payloadName + \"String_Node_Str\" + callbackName + \"String_Node_Str\");\n w.outdent();\n w.println(\"String_Node_Str\");\n}\n"
"StockholmStructure parse(Scanner scanner) throws ParserException, IOException {\n if (scanner == null) {\n if (internalScanner != null) {\n scanner = internalScanner;\n } else {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n }\n this.stockholmStructure = new StockholmStructure();\n String line = null;\n int linesCount = 0;\n try {\n while (scanner.hasNextLine()) {\n line = scanner.nextLine();\n if (linesCount == 0 && line == null) {\n throw new IOException(\"String_Node_Str\");\n }\n if ((line == null) || line.trim().length() == 0) {\n continue;\n }\n if (line.startsWith(\"String_Node_Str\")) {\n if (line.startsWith(GENERIC_PER_FILE_ANNOTATION, 2)) {\n int firstSpaceIndex = line.indexOf(' ', 5);\n String featureName = line.substring(5, firstSpaceIndex);\n String value = line.substring(firstSpaceIndex).trim();\n handleFileAnnotation(featureName, value);\n } else if (line.startsWith(GENERIC_PER_CONSENSUS_ANNOTATION, 2)) {\n this.status = STATUS_INSIDE_FILE;\n int firstSpaceIndex = line.indexOf(' ', 5);\n String featureName = line.substring(5, firstSpaceIndex);\n String value = line.substring(firstSpaceIndex).trim();\n handleConsensusAnnotation(featureName, value);\n } else if (line.startsWith(GENERIC_PER_SEQUENCE_ANNOTATION, 2)) {\n int index1 = line.indexOf(' ', 5);\n String seqName = line.substring(5, index1);\n while (line.charAt(++index1) <= ' ') ;\n int index2 = line.indexOf(' ', index1);\n String featureName = line.substring(index1, index2);\n String value = line.substring(index2).trim();\n handleSequenceAnnotation(seqName, featureName, value);\n } else if (line.startsWith(GENERIC_PER_RESIDUE_ANNOTATION, 2)) {\n int index1 = line.indexOf(' ', 5);\n String seqName = line.substring(5, index1);\n while (line.charAt(++index1) == ' ') ;\n int index2 = line.indexOf(' ', index1);\n String featureName = line.substring(index1, index2);\n String value = line.substring(index2).trim();\n handleResidueAnnotation(seqName, featureName, value);\n }\n } else if (line.startsWith(\"String_Node_Str\")) {\n if (status == STATUS_OUTSIDE_FILE) {\n status = STATUS_INSIDE_FILE;\n String[] header = line.split(\"String_Node_Str\");\n stockholmStructure.getFileAnnotation().setFormat(header[1]);\n stockholmStructure.getFileAnnotation().setVersion(header[2]);\n } else {\n throw new ParserException(\"String_Node_Str\" + line + \"String_Node_Str\");\n }\n } else if (line.trim().equals(\"String_Node_Str\")) {\n status = STATUS_OUTSIDE_FILE;\n break;\n } else {\n if (status == STATUS_IN_SEQUENCE) {\n handleSequenceLine(line);\n } else {\n System.err.println(\"String_Node_Str\" + line + \"String_Node_Str\");\n throw new ParserException(\"String_Node_Str\" + line + \"String_Node_Str\");\n }\n }\n linesCount++;\n } while (scanner.hasNextLine());\n } catch (IOException e) {\n e.printStackTrace();\n throw new IOException(\"String_Node_Str\");\n }\n int length = -1;\n Map<String, StringBuffer> sequences = stockholmStructure.getSequences();\n for (String sequencename : sequences.keySet()) {\n StringBuffer sequence = sequences.get(sequencename);\n if (length == -1) {\n length = sequence.length();\n } else if (length != sequence.length()) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n }\n return this.stockholmStructure;\n}\n"
"public void onRequest(InfoData info, GitHubData request) {\n if (!requests.contains(request)) {\n requests.add(request);\n else {\n int i = requests.indexOf(request);\n GitHubData activeRequest = requests.get(i);\n if (activeRequest.isInitialized()) {\n info.onInit(activeRequest);\n } else\n requests.set(i, requests.get(i).merge(request));\n }\n}\n"
"Object getParameterValue(int idx) {\n if (idx == 0) {\n return name;\n } else {\n final int argDescsEnd = paramNames.length * 2 + 1;\n if (idx < argDescsEnd) {\n String paramName = paramNames[(idx - 1) / 2];\n if (idx % 2 != 0) {\n return paramName;\n } else {\n return paramDefaults.get(paramName);\n }\n } else if (idx == argDescsEnd) {\n return catchAllParamName;\n } else if (idx == argDescsEnd + 1) {\n return new Integer(isFunction ? TYPE_FUNCTION : TYPE_MACRO);\n } else {\n throw new IndexOutOfBoundsException();\n }\n }\n}\n"
"public void apply() {\n System.out.println(\"String_Node_Str\" + this.varplaceholder.getInvocation().getExecutable().getSimpleName() + \"String_Node_Str\" + this.selectedExecutableTarget.getSimpleName());\n this.previousElementName = this.varplaceholder.getInvocation().getExecutable().getSimpleName();\n this.varplaceholder.getInvocation().getExecutable().setSimpleName(this.selectedExecutableTarget.getSimpleName());\n}\n"
"public void calculateBuffer() {\n if (adderUGen == null) {\n for (int j = 0; j < outs; j++) {\n float[] bi = bufIn[j];\n float[] bo = bufOut[j];\n for (int i = 0; i < bufferSize; i++) {\n bo[i] = bi[i] + adder;\n }\n }\n } else {\n adderUGen.update();\n if (outs == 1) {\n float[] bi = bufIn[0];\n float[] bo = bufOut[0];\n for (int i = 0; i < bufferSize; i++) {\n adder = adderUGen.getValue(0, i);\n bo[i] = bi[i] + adder;\n }\n } else {\n for (int i = 0; i < bufferSize; i++) {\n for (int j = 0; j < outs; j++) {\n adder = adderUGen.getValue(0, i);\n bufOut[j][i] = bufIn[j][i] + adder;\n }\n }\n }\n }\n}\n"
"public boolean onBreak(Player p, Block b, SlimefunItem item, UnregisterReason reason) {\n me.mrCookieSlime.Slimefun.holograms.XPCollector.getArmorStand(b).remove();\n for (int slot : getOutputSlots()) {\n if (BlockStorage.getInventory(b).getItemInSlot(slot) != null) {\n b.getWorld().dropItemNaturally(b.getLocation(), BlockStorage.getInventory(b).getItemInSlot(slot));\n }\n return true;\n}\n"
"public void updateData(List<ListGroup> data) {\n if (data == null || expandableListView == null) {\n if (!isDataBound()) {\n setDataBound(false);\n }\n return;\n }\n if (data.isEmpty()) {\n Log.d(Constants.LOG_TAG, \"String_Node_Str\");\n if (!isDataBound()) {\n setDataBound(false);\n }\n return;\n }\n if (expandableListView.getExpandableListAdapter() == null) {\n expandableListView.setAdapter(newAdapter(new ArrayList<>(data)));\n } else {\n mAdapter.removeAllGroups();\n mAdapter.addAllGroups(new ArrayList<>(data));\n mAdapter.notifyDataSetChanged();\n }\n expandableListView.setVisibility(View.VISIBLE);\n expandForMode(data);\n if (progressBar != null) {\n progressBar.setVisibility(View.GONE);\n }\n mNoDataBinder.unbindData();\n setDataBound(true);\n}\n"
"public void testLaunchCliAppLaunchError() throws Throwable {\n final String app = \"String_Node_Str\";\n final Process brooklyn = startBrooklyn(\"String_Node_Str\", \"String_Node_Str\", app, \"String_Node_Str\", \"String_Node_Str\");\n BrooklynCliTest test = new BrooklynCliTest(brooklyn) {\n public void checkConsole() {\n assertConsoleOutput(\"String_Node_Str\");\n assertConsoleError(\"String_Node_Str\");\n }\n };\n testBrooklyn(brooklyn, test, 2);\n}\n"
"public void testLeaveGroup() {\n mockServer.expect(requestTo(\"String_Node_Str\")).andExpect(method(DELETE)).andRespond(withSuccess(\"String_Node_Str\", MediaType.TEXT_PLAIN));\n yammerTemplate.groupOperations().leaveGroup(1234L);\n}\n"
"public void PreCacheFavIcon(Feed feed) {\n if (feed.getFaviconUrl() == null) {\n Log.v(TAG, \"String_Node_Str\" + feed.getFeedTitle());\n return;\n }\n new GetImageThreaded(feed.getFaviconUrl(), favIconDownloadFinished, feed.getId()).start();\n}\n"
"protected void onResume() {\n super.onResume();\n if (debug)\n Log.d(TAG, \"String_Node_Str\");\n if ((!firstTime) && (CategoryList.isSignedIn() == false)) {\n Intent frontdoor = new Intent(this, FrontDoor.class);\n startActivity(frontdoor);\n finish();\n }\n}\n"
"private boolean connectLow(String dbUrl, String driverClassName, Properties props) throws SQLException {\n boolean ok = true;\n try {\n driver = ConnectionUtils.getClassDriver(driverClassName);\n connection = driver.connect(dbUrl, props);\n this.providerConnection = DatabaseContentRetriever.getProviderConnection(dbUrl, driverClassName, props, connection);\n } catch (InstantiationException e) {\n log.error(e);\n ok = false;\n } catch (IllegalAccessException e) {\n log.error(e);\n ok = false;\n } catch (ClassNotFoundException e) {\n log.error(e);\n ok = false;\n }\n return ok;\n}\n"
"private void populateNodeRelEvent(PrimitiveElement element, TransactionDataImpl result) {\n for (int nodeId : element.nodes.keySet()) {\n CowNodeElement nodeElement = element.nodes.get(nodeId);\n NodeProxy node = new NodeProxy(nodeId, nodeManager);\n NodeImpl nodeImpl = nodeManager.getNodeForProxy(nodeId);\n if (nodeElement.deleted) {\n if (nodeManager.nodeCreated(nodeId)) {\n continue;\n }\n result.deleted(node);\n }\n if (nodeElement.relationshipAddMap != null && !nodeElement.deleted) {\n for (String type : nodeElement.relationshipAddMap.keySet()) {\n IntArray createdRels = nodeElement.relationshipAddMap.get(type);\n for (int i = 0; i < createdRels.length(); i++) {\n int relId = createdRels.get(i);\n CowRelElement relElement = element.relationships.get(relId);\n if (relElement != null && relElement.deleted) {\n continue;\n }\n RelationshipProxy rel = new RelationshipProxy(relId, nodeManager);\n if (rel.getStartNode().getId() == nodeId) {\n result.created(new RelationshipProxy(relId, nodeManager));\n }\n }\n }\n }\n if (nodeElement.relationshipRemoveMap != null) {\n for (String type : nodeElement.relationshipRemoveMap.keySet()) {\n IntArray deletedRels = nodeElement.relationshipRemoveMap.get(type);\n for (int i = 0; i < deletedRels.length(); i++) {\n int relId = deletedRels.get(i);\n if (nodeManager.relCreated(relId)) {\n continue;\n }\n RelationshipProxy rel = new RelationshipProxy(relId, nodeManager);\n if (rel.getStartNode().getId() == nodeId) {\n result.deleted(new RelationshipProxy(relId, nodeManager));\n }\n }\n }\n }\n if (nodeElement.deleted) {\n if (nodeManager.nodeCreated(nodeId)) {\n continue;\n }\n result.deleted(node);\n List<PropertyEventData> props = nodeImpl.getAllCommittedProperties();\n for (PropertyEventData data : props) {\n result.removedProperty(node, data.getKey(), data.getValue());\n }\n } else {\n if (nodeElement.propertyAddMap != null) {\n for (PropertyData data : nodeElement.propertyAddMap.values()) {\n String key = nodeManager.getKeyForProperty(data.getId());\n Object oldValue = nodeImpl.getCommittedPropertyValue(key);\n Object newValue = data.getValue();\n result.assignedProperty(node, key, newValue, oldValue);\n }\n }\n if (nodeElement.propertyRemoveMap != null) {\n for (PropertyData data : nodeElement.propertyRemoveMap.values()) {\n String key = nodeManager.getKeyForProperty(data.getId());\n Object oldValue = nodeImpl.getCommittedPropertyValue(key);\n result.removedProperty(node, key, oldValue);\n }\n }\n }\n }\n}\n"
"public void startRequest(MRCRequest rq) {\n try {\n final readdirRequest rqArgs = (readdirRequest) rq.getRequestArgs();\n final VolumeManager vMan = master.getVolumeManager();\n final FileAccessManager faMan = master.getFileAccessManager();\n validateContext(rq);\n Path p = new Path(rqArgs.getPath());\n VolumeInfo volume = vMan.getVolumeByName(p.getComp(0));\n StorageManager sMan = vMan.getStorageManager(volume.getId());\n PathResolver res = new PathResolver(sMan, p);\n faMan.checkSearchPermission(sMan, res, rq.getDetails().userId, rq.getDetails().superUser, rq.getDetails().groupIds);\n res.checkIfFileDoesNotExist();\n FileMetadata file = res.getFile();\n String target = sMan.getSoftlinkTarget(file.getId());\n if (target != null) {\n rqArgs.setPath(target);\n p = new Path(target);\n if (!vMan.hasVolume(p.getComp(0))) {\n finishRequest(rq, new ErrorRecord(ErrorClass.USER_EXCEPTION, ErrNo.ENOENT, \"String_Node_Str\" + target + \"String_Node_Str\"));\n return;\n }\n volume = vMan.getVolumeByName(p.getComp(0));\n sMan = vMan.getStorageManager(volume.getId());\n res = new PathResolver(sMan, p);\n file = res.getFile();\n }\n faMan.checkPermission(FileAccessManager.O_RDONLY, sMan, file, res.getParentDirId(), rq.getDetails().userId, rq.getDetails().superUser, rq.getDetails().groupIds);\n AtomicDBUpdate update = sMan.createAtomicDBUpdate(master, rq);\n if (!master.getConfig().isNoAtime())\n MRCHelper.updateFileTimes(res.getParentDirId(), file, true, false, false, sMan, update);\n DirectoryEntrySet dirContent = new DirectoryEntrySet();\n Iterator<FileMetadata> it = sMan.getChildren(res.getFile().getId());\n while (it.hasNext()) {\n FileMetadata child = it.next();\n String linkTarget = sMan.getSoftlinkTarget(child.getId());\n int mode = faMan.getPosixAccessMode(sMan, child, rq.getDetails().userId, rq.getDetails().groupIds);\n mode |= linkTarget != null ? Constants.SYSTEM_V_FCNTL_S_IFLNK : child.isDirectory() ? Constants.SYSTEM_V_FCNTL_S_IFDIR : Constants.SYSTEM_V_FCNTL_S_IFREG;\n long size = linkTarget != null ? linkTarget.length() : child.isDirectory() ? 0 : child.getSize();\n int type = linkTarget != null ? 3 : child.isDirectory() ? 2 : 1;\n stat_ stat = new stat_(mode, child.getLinkCount(), 1, 1, 0, size, child.getAtime(), child.getMtime(), child.getCtime(), child.getOwnerId(), child.getOwningGroupId(), volume.getId() + \"String_Node_Str\" + child.getId(), linkTarget, type, child.getEpoch(), (int) child.getW32Attrs());\n dirContent.add(new DirectoryEntry(child.getFileName(), stat, linkTarget));\n }\n rq.setResponse(new readdirResponse(dirContent));\n update.execute();\n } catch (UserException exc) {\n Logging.logMessage(Logging.LEVEL_TRACE, this, exc);\n finishRequest(rq, new ErrorRecord(ErrorClass.USER_EXCEPTION, exc.getErrno(), exc.getMessage(), exc));\n } catch (Exception exc) {\n finishRequest(rq, new ErrorRecord(ErrorClass.INTERNAL_SERVER_ERROR, \"String_Node_Str\", exc));\n }\n}\n"
"public void setMold(String mold) {\n if (mold != null && (DEFAULT.equals(mold) || mold.length() == 0))\n mold = null;\n if (!Objects.equals(_auxinf != null ? _auxinf.mold : DEFAULT, mold)) {\n if (!_def.hasMold(mold != null ? mold : DEFAULT))\n throw new UiException(\"String_Node_Str\" + mold + \"String_Node_Str\" + _def.getMoldNames());\n final String oldtype = getWidgetClass();\n initAuxInfo().mold = mold;\n if (Objects.equals(oldtype, getWidgetClass()))\n smartUpdate(\"String_Node_Str\", getMold());\n else\n invalidate();\n }\n}\n"
"private void fullRefresh() throws IOException {\n resolutionsByResource = Maps.newIdentityHashMap();\n childPathsByParentPath = ArrayListMultimap.create();\n maybeInitializeWatchService();\n onNewDirectory(rootDirectory);\n}\n"
"boolean isPrototype(StringBuffer source) {\n String s = source.toString();\n if (s.matches(\"String_Node_Str\") || s.matches(\"String_Node_Str\") || s.matches(\"String_Node_Str\") || s.matches(\"String_Node_Str\") || s.matches(\"String_Node_Str\") || s.matches(\"String_Node_Str\") || s.matches(\"String_Node_Str\")) {\n return true;\n }\n if (s.matches(\"String_Node_Str\") || s.matches(\"String_Node_Str\") || s.matches(\"String_Node_Str\") || s.matches(\"String_Node_Str\") || s.matches(\"String_Node_Str\") || s.matches(\"String_Node_Str\") || s.matches(\"String_Node_Str\") || s.matches(\"String_Node_Str\") || s.matches(\"String_Node_Str\") || s.matches(\"String_Node_Str\") || s.matches(\"String_Node_Str\") || s.matches(\"String_Node_Str\") || s.matches(\"String_Node_Str\") || s.matches(\"String_Node_Str\")) {\n int braceIndex = s.indexOf('{');\n int semicolonIndex = s.indexOf(';');\n if (braceIndex == -1) {\n return false;\n }\n if (semicolonIndex == -1) {\n return true;\n }\n return braceIndex < semicolonIndex;\n }\n return false;\n}\n"
"public void setUp() throws SDKException {\n String restUrl = OntSdkTest.URL;\n ontSdk = OntSdk.getInstance();\n ontSdk.setRestful(restUrl);\n ontSdk.setDefaultConnect(ontSdk.getRestful());\n ontSdk.openWalletFile(walletFile);\n}\n"
"private void updateColumnsOfDataSetHandle() {\n DataSetHandle dataSet = ((DataSetEditor) getContainer()).getHandle();\n DataSetViewData[] items;\n try {\n items = DataSetProvider.getCurrentInstance().getColumns(dataSet, false, true);\n int inexistence = 0;\n for (int i = 0; i < items.length; i++) {\n boolean exist = false;\n if (items[i].isComputedColumn()) {\n Iterator iter = computedColumns.iterator();\n while (iter.hasNext()) {\n ComputedColumn computedColumn = null;\n Object obj = iter.next();\n if (obj instanceof ComputedColumnHandle) {\n computedColumn = (ComputedColumn) ((ComputedColumnHandle) obj).getStructure();\n }\n if (computedColumn != null && items[i].getName().equals(computedColumn.getName())) {\n exist = true;\n }\n }\n if (!exist) {\n items[i] = null;\n inexistence++;\n }\n }\n }\n if (inexistence == 0)\n return;\n DataSetViewData[] existItems = new DataSetViewData[items.length - inexistence];\n int index = 0;\n for (int i = 0; i < items.length; i++) {\n if (items[i] != null) {\n existItems[index] = items[i];\n index++;\n }\n }\n DataSetProvider.getCurrentInstance().updateColumnsOfDataSetHandle(dataSet, existItems);\n } catch (BirtException e) {\n DataSetExceptionHandler.handle(e);\n }\n}\n"
"public static boolean isArgComplex(ArgumentType argument) {\n return isTypeComplex(argument.getEnclosedType());\n}\n"
"public static List<String> varNameList(List<Arg> inputs) {\n ArrayList<String> result = new ArrayList<String>();\n collectVarNames(result, inputs, false);\n return result;\n}\n"
"public static void init() {\n blockCrop = new BlockCrop();\n RegisterHelper.registerBlock(blockCrop, Names.Objects.crops);\n seedAnalyzer = new BlockSeedAnalyzer();\n RegisterHelper.registerBlock(seedAnalyzer, Names.Objects.seedAnalyzer);\n if (!ConfigurationHandler.disableIrrigation) {\n blockWaterTank = new BlockWaterTank();\n RegisterHelper.registerBlock(blockWaterTank, Names.Objects.tank, ItemBlockCustomWood.class);\n blockWaterChannel = new BlockWaterChannel();\n RegisterHelper.registerBlock(blockWaterChannel, Names.Objects.channel, ItemBlockCustomWood.class);\n blockChannelValve = new BlockChannelValve();\n RegisterHelper.registerBlock(blockChannelValve, Names.Objects.valve, ItemBlockCustomWood.class);\n blockSprinkler = new BlockSprinkler();\n RegisterHelper.registerBlock(blockSprinkler, Names.Objects.sprinkler);\n }\n if (!ConfigurationHandler.disableSeedStorage) {\n blockSeedStorage = new BlockSeedStorage();\n RegisterHelper.registerBlock(blockSeedStorage, Names.Objects.seedStorage, ItemBlockCustomWood.class);\n if (!ConfigurationHandler.disableSeedWarehouse) {\n blockSeedStorageController = new BlockSeedStorageController();\n RegisterHelper.registerBlock(blockSeedStorageController, Names.Objects.seedStorageController, ItemBlockCustomWood.class);\n }\n }\n LogHelper.debug(\"String_Node_Str\");\n}\n"
"public static Integer toInteger(Object source) throws BirtException {\n if (source == null)\n return null;\n if (source instanceof Integer) {\n return (Integer) source;\n } else if (source instanceof Number) {\n int intValue = ((Number) source).intValue();\n return new Integer(intValue);\n } else if (source instanceof Boolean) {\n if (true == ((Boolean) source).booleanValue())\n return new Integer(1);\n return new Integer(0);\n } else if (source instanceof Date) {\n long longValue = ((Date) source).getTime();\n return new Integer((int) longValue);\n } else if (source instanceof String) {\n try {\n return new Integer(Double.valueOf((String) source).intValue());\n } catch (NumberFormatException e) {\n try {\n Number number = NumberFormat.getInstance(ULocale.getDefault()).parse((String) source);\n if (number != null)\n return new Integer(number.intValue());\n throw new CoreException(ResourceConstants.CONVERT_FAILS, new Object[] { source.toString(), \"String_Node_Str\" });\n } catch (ParseException e1) {\n throw new CoreException(ResourceConstants.CONVERT_FAILS, new Object[] { source.toString(), \"String_Node_Str\" });\n }\n }\n } else {\n throw new CoreException(ResourceConstants.CONVERT_FAILS, new Object[] { source.toString(), \"String_Node_Str\" });\n }\n}\n"
"public Query<T> order(String condition) {\n if (snapshotted)\n throw new QueryException(\"String_Node_Str\");\n sort = parseFieldsString(condition, clazz, this.ds.getMapper(), this.validateName);\n return this;\n}\n"
"private void updateSearchGroupList() {\n List<BusinessGroup> groups;\n if (searchController.isEmpty()) {\n groups = Collections.emptyList();\n } else {\n Long id = searchController.getId();\n String name = searchController.getName();\n String description = searchController.getDescription();\n String owner = searchController.getOwner();\n SearchBusinessGroupParams params = new SearchBusinessGroupParams();\n if (id != null) {\n params.setGroupKeys(Collections.singletonList(id));\n }\n params.setName(name);\n params.setDescription(description);\n params.setOwnerName(owner);\n groups = businessGroupService.findBusinessGroups(params, null, 0, -1);\n }\n List<BGTableItem> wrapped = new ArrayList<BGTableItem>();\n Set<Long> membership = new HashSet<Long>();\n Map<Long, Long> resourceKeys = new HashMap<Long, Long>();\n for (BusinessGroup group : groups) {\n OLATResource ores = OLATResourceManager.getInstance().findResourceable(group);\n resourceKeys.put(group.getKey(), ores.getKey());\n if (businessGroupService.isIdentityInBusinessGroup(getIdentity(), group)) {\n membership.add(group.getKey());\n }\n }\n List<OLATResourceAccess> resourcesWithAC = acFrontendManager.getAccessMethodForResources(resourceKeys.values(), true, new Date());\n for (BusinessGroup group : groups) {\n Long oresKey = resourceKeys.get(group.getKey());\n OLATResourceAccess bgAccess = null;\n for (OLATResourceAccess access : resourcesWithAC) {\n if (oresKey.equals(access.getResource().getKey())) {\n bgAccess = access;\n break;\n }\n }\n if (bgAccess != null) {\n wrapped.add(wrapGroup(group, true, Boolean.TRUE, null, true, bgAccess.getMethods()));\n }\n }\n groupListModel.setEntries(wrapped);\n groupListCtr.modelChanged();\n}\n"
"public void testTxnReplace() throws TransactionException {\n Config config = new Config();\n final TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory(2);\n final HazelcastInstance h1 = factory.newHazelcastInstance(config);\n final HazelcastInstance h2 = factory.newHazelcastInstance(config);\n final IMap map2 = h2.getMap(\"String_Node_Str\");\n boolean b = h1.executeTransaction(new TransactionOptions().setTimeout(1, TimeUnit.SECONDS), new TransactionalTask<Boolean>() {\n public Boolean execute(TransactionalTaskContext context) throws TransactionException {\n final TransactionalMap<Object, Object> txMap = context.getMap(\"String_Node_Str\");\n assertNull(txMap.replace(\"String_Node_Str\", \"String_Node_Str\"));\n txMap.put(\"String_Node_Str\", \"String_Node_Str\");\n assertEquals(\"String_Node_Str\", txMap.replace(\"String_Node_Str\", \"String_Node_Str\"));\n assertEquals(\"String_Node_Str\", txMap.get(\"String_Node_Str\"));\n assertNull(map2.get(\"String_Node_Str\"));\n assertNull(map2.get(\"String_Node_Str\"));\n return true;\n }\n });\n assertTrue(b);\n IMap map1 = h1.getMap(\"String_Node_Str\");\n assertEquals(\"String_Node_Str\", map1.get(\"String_Node_Str\"));\n assertEquals(\"String_Node_Str\", map2.get(\"String_Node_Str\"));\n}\n"
"public void run() {\n ServerUpdate update;\n while (true) {\n synchronized (updates) {\n while ((update = updates.poll()) == null) {\n try {\n updates.wait();\n } catch (InterruptedException e) {\n }\n }\n updates.notifyAll();\n }\n try {\n if (receiver != null) {\n List<ControlChange> clientControlChages = receiver.receiveServerUpdate(update);\n if (clientControlChages != null)\n console.receiveClientControlChanges(clientControlChages);\n }\n } catch (RemoteException e) {\n e.printStackTrace();\n disconnectReceiver();\n }\n }\n}\n"
"public void acquire() {\n int ticket = VM_Synchronization.fetchAndAdd(this, dispenserFieldOffset, 1);\n int retryCountdown = TIMEOUT_CHECK_FREQ;\n long localStart = 0;\n long lastSlowReport = 0;\n while (ticket != serving) {\n if (localStart == 0)\n lastSlowReport = localStart = VM_Time.cycles();\n if (--retryCountdown == 0) {\n retryCountdown = TIMEOUT_CHECK_FREQ;\n long now = VM_Time.cycles();\n long lastReportDuration = now - lastSlowReport;\n long waitTime = now - localStart;\n if (lastReportDuration > SLOW_THRESHOLD + VM_Time.millisToCycles(200 * (VM_Thread.getCurrentThread().getIndex() % 5))) {\n lastSlowReport = now;\n Log.write(\"String_Node_Str\");\n writeThreadIdToLog(VM_Thread.getCurrentThread());\n Log.write(\"String_Node_Str\");\n Log.write(ticket);\n Log.write(\"String_Node_Str\");\n Log.write(id);\n Log.write(\"String_Node_Str\");\n Log.write(name);\n Log.write(\"String_Node_Str\");\n Log.write(serving);\n Log.write(\"String_Node_Str\");\n Log.write(VM_Time.cyclesToMillis(waitTime));\n Log.write(\"String_Node_Str\");\n Log.writelnNoFlush();\n VM_Thread t = thread;\n if (t == null)\n Log.writeln(\"String_Node_Str\", false);\n else {\n Log.write(\"String_Node_Str\");\n writeThreadIdToLog(t);\n Log.write(\"String_Node_Str\");\n Log.writeln(where, false);\n }\n Log.write(\"String_Node_Str\");\n Log.writeln(localStart, false);\n for (int i = (serving + 90) % 100; i != (serving % 100); i = (i + 1) % 100) {\n if (VM.VerifyAssertions)\n VM._assert(i >= 0 && i < 100);\n Log.write(\"String_Node_Str\");\n Log.write(i);\n Log.write(\"String_Node_Str\");\n Log.write(servingHistory[i]);\n Log.write(\"String_Node_Str\");\n Log.write(tidHistory[i]);\n Log.write(\"String_Node_Str\");\n Log.write(startHistory[i]);\n Log.write(\"String_Node_Str\");\n Log.write(endHistory[i]);\n Log.write(\"String_Node_Str\");\n Log.write(VM_Time.cyclesToMillis(startHistory[i] - localStart));\n Log.writelnNoFlush();\n }\n Log.flush();\n }\n if (waitTime > TIME_OUT) {\n Log.write(\"String_Node_Str\");\n writeThreadIdToLog(VM_Thread.getCurrentThread());\n Log.writeln();\n VM_Scheduler.dumpStack();\n Assert.fail(\"String_Node_Str\");\n }\n }\n }\n if (REPORT_SLOW) {\n servingHistory[serving % 100] = serving;\n tidHistory[serving % 100] = VM_Thread.getCurrentThread().getIndex();\n startHistory[serving % 100] = VM_Time.cycles();\n setLocker(VM_Time.cycles(), VM_Thread.getCurrentThread(), -1);\n }\n if (verbose > 1) {\n Log.write(\"String_Node_Str\");\n writeThreadIdToLog(thread);\n Log.write(\"String_Node_Str\");\n Log.write(id);\n Log.write(\"String_Node_Str\");\n Log.write(name);\n Log.writeln();\n }\n VM_Magic.isync();\n}\n"
"public void handleFree(DownloadLink link) throws Exception {\n requestFileInformation(link);\n dl = jd.plugins.BrowserAdapter.openDownload(this.br, link, DLLINK, true, 0);\n if (!dl.getConnection().isContentDisposition() && !dl.getConnection().getContentType().startsWith(\"String_Node_Str\")) {\n this.dl.getConnection().disconnect();\n throw new PluginException(LinkStatus.ERROR_PLUGIN_DEFECT);\n }\n dl.startDownload();\n}\n"
"public void writeTo(StreamOutput out) throws IOException {\n super.writeTo(out);\n try {\n out.writeLong(contextId.getMostSignificantBits());\n out.writeLong(contextId.getLeastSignificantBits());\n out.writeBoolean(failed);\n if (!failed) {\n groupByResult.writeTo(out);\n }\n } catch (Exception e) {\n logger.error(e.getMessage(), e);\n throw e;\n }\n}\n"
"private void generateIOStateInterfacesFirstPass(Set<EndpointState> visited, EndpointState s) {\n if (visited.contains(s) || s.isTerminal()) {\n return;\n }\n String key = IOStateInterfaceGenerator.getIOStateInterfaceName(getSelf(), s);\n if (!this.iostates.containsKey(key)) {\n IOStateInterfaceGenerator ifgen = null;\n switch(s.getStateKind()) {\n case OUTPUT:\n ifgen = new SelectInterfaceGenerator(this.apigen, this.actions, s);\n break;\n case UNARY_INPUT:\n ifgen = new ReceiveInterfaceGenerator(this.apigen, this.actions, s);\n break;\n case POLY_INPUT:\n InterfaceBuilder cases = new CaseInterfaceGenerator(this.apigen, this.actions, s).generateType();\n this.iostates.put(cases.getName(), cases);\n ifgen = new BranchInterfaceGenerator(this.apigen, this.actions, s);\n break;\n case TERMINAL:\n default:\n throw new RuntimeException(\"String_Node_Str\");\n }\n this.iostates.put(key, ifgen.generateType());\n }\n visited.add(s);\n for (IOAction a : s.getTakeable()) {\n generateIOStateInterfacesFirstPass(visited, s.take(a));\n }\n}\n"
"public void registrationStateChanged(RegistrationStateChangeEvent evt) {\n if (evt.getNewState().equals(RegistrationState.UNREGISTERING)) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"String_Node_Str\");\n }\n cancelTimer();\n ssContactList.destroy();\n try {\n publishPresenceStatus(sipStatusEnum.getStatus(SipStatusEnum.OFFLINE), \"String_Node_Str\");\n } catch (OperationFailedException e) {\n logger.error(\"String_Node_Str\", e);\n }\n stopEvents();\n } else if (evt.getNewState().equals(RegistrationState.REGISTERED)) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"String_Node_Str\");\n }\n ssContactList.init();\n if ((!presenceEnabled) || (pollingTask != null)) {\n return;\n }\n for (ContactSipImpl contact : ssContactList.getAllContacts(ssContactList.getRootGroup())) {\n forcePollContact(contact);\n }\n pollingTask = new PollOfflineContactsTask();\n timer.schedule(pollingTask, pollingTaskPeriod, pollingTaskPeriod);\n } else if (evt.getNewState().equals(RegistrationState.CONNECTION_FAILED)) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"String_Node_Str\");\n }\n ssContactList.destroy();\n for (ContactSipImpl contact : ssContactList.getAllContacts(ssContactList.getRootGroup())) {\n PresenceStatus oldContactStatus = contact.getPresenceStatus();\n if (subscriber != null) {\n try {\n subscriber.removeSubscription(getAddress(contact));\n } catch (OperationFailedException ex) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"String_Node_Str\" + contact);\n }\n }\n }\n if (!oldContactStatus.isOnline()) {\n continue;\n }\n contact.setPresenceStatus(sipStatusEnum.getStatus(SipStatusEnum.OFFLINE));\n fireContactPresenceStatusChangeEvent(contact, contact.getParentContactGroup(), oldContactStatus);\n }\n cancelTimer();\n waitedCallIds.clear();\n try {\n publishPresenceStatus(sipStatusEnum.getStatus(SipStatusEnum.OFFLINE), \"String_Node_Str\");\n } catch (OperationFailedException e) {\n logger.error(\"String_Node_Str\", e);\n }\n }\n}\n"
"private void recordVariationQualitiesAndClear(Alignments.AlignmentEntry.Builder result, List<Alignments.SequenceVariation> sequenceVariationsList) {\n int index = 0;\n for (final Alignments.SequenceVariation seqVar : sequenceVariationsList) {\n final String from = seqVar.getFrom();\n final ByteString toQualities = seqVar.getToQuality();\n final int length = from.length();\n final boolean hasToQuals = seqVar.hasToQuality();\n final int toQualSize = toQualities.size();\n varToQualLength.add(toQualSize);\n final int toQualsLength = hasToQuals ? seqVar.getToQuality().size() : 0;\n for (int i = 0; i < toQualsLength; i++) {\n if (hasToQuals && i < toQualSize) {\n varQuals.add(toQualities.byteAt(i));\n }\n }\n Alignments.SequenceVariation.Builder varBuilder = Alignments.SequenceVariation.newBuilder(seqVar);\n varBuilder.clearToQuality();\n result.setSequenceVariations(index, varBuilder.buildPartial());\n index++;\n }\n}\n"
"private ServiceGroup getServiceGroup(String serviceGroupName) throws ApplicationDefinitionException {\n try {\n return RegistryManager.getInstance().getServiceGroup(serviceGroupUuid);\n } catch (Exception e) {\n String errorMsg = \"String_Node_Str\" + serviceGroupName;\n log.error(errorMsg, e);\n throw new ApplicationDefinitionException(errorMsg, e);\n }\n}\n"
"public void queryBySku() {\n final String sku = \"String_Node_Str\";\n final ProductVariantDraft masterVariant = ProductVariantDraftBuilder.of().sku(sku).attributes(Sizes.ATTRIBUTE.draftOf(Sizes.S), Colors.ATTRIBUTE.draftOf(Colors.GREEN)).build();\n final ProductDraft productDraft = ProductDraftBuilder.of(productType, en(\"String_Node_Str\"), en(\"String_Node_Str\"), masterVariant).build();\n client().executeBlocking(ProductCreateCommand.of(productDraft));\n final PagedQueryResult<Product> result = client().executeBlocking(ProductQuery.of().bySku(sku, STAGED));\n assertThat(result.getResults()).hasSize(1);\n assertThat(result.getResults().get(0).getMasterData().getStaged().getMasterVariant().getSku()).contains(sku);\n assertThat(result.getResults().get(0).getMasterData().getStaged().getMasterVariant().findAttribute(Colors.ATTRIBUTE)).contains(Colors.GREEN);\n assertThat(result.getResults().get(0).getMasterData().getStaged().getMasterVariant().findAttribute(Sizes.ATTRIBUTE)).contains(Sizes.S);\n}\n"
"private void mergeBuckets() {\n List<KeyIterable<Integer, Row>> buckets = new ArrayList<>(numBuckets);\n synchronized (lock) {\n for (Map.Entry<Integer, Bucket> entry : bucketsByIdx.entrySet()) {\n buckets.add(new KeyIterable<>(entry.getKey(), entry.getValue()));\n }\n }\n for (Integer integer : bucketsByIdx.keySet()) {\n bucketsByIdx.put(integer, null);\n }\n pagingIterator.merge(buckets);\n}\n"
"public boolean execute(ExecutionContext executionContext) throws ProcessExecutionException, InterruptedException {\n try {\n SingleMassArgs args = (SingleMassArgs) this.getProcessArgs();\n log.info(\"String_Node_Str\" + args.getConfig().getAbsolutePath());\n log.debug(\"String_Node_Str\");\n args.validateKmers(args.getKmin(), args.getKmax());\n log.debug(\"String_Node_Str\");\n this.createSupportDirectories(genericAssembler, args);\n WaitCondition assemblerWait = null;\n if (!args.isStatsOnly()) {\n for (int k = getFirstValidKmer(args.getKmin()); k <= args.getKmax(); k = nextKmer(k)) {\n File outputDir = new File(args.getOutputDir(), Integer.toString(k));\n log.debug(\"String_Node_Str\" + args.getAssembler() + \"String_Node_Str\" + outputDir.getAbsolutePath());\n Assembler assembler = AssemblerFactory.createAssembler(args.getAssembler(), k, args.getLibs(), outputDir);\n log.debug(\"String_Node_Str\" + assembler != null ? assembler.getName() : \"String_Node_Str\");\n AssemblerArgs asmArgs = assembler.getArgs();\n log.debug(\"String_Node_Str\" + asmArgs.toString());\n asmArgs.setThreads(args.getThreads());\n asmArgs.setCoverageCutoff(args.getCoverageCutoff());\n this.executeAssembler(assembler, args.getJobPrefix() + \"String_Node_Str\" + k, executionContext);\n this.createLinks(assembler, k, executionContext);\n }\n if (executionContext.usingScheduler()) {\n if (args.getParallelismLevel() == MassArgs.ParallelismLevel.PARALLEL_ASSEMBLIES_ONLY) {\n log.debug(\"String_Node_Str\");\n this.executeScheduledWait(args.getJobPrefix(), args.getOutputDir(), executionContext);\n } else if (args.getParallelismLevel().doParallelMass()) {\n log.debug(\"String_Node_Str\");\n assemblerWait = executionContext.getScheduler().createWaitCondition(ExitStatus.Type.COMPLETED_SUCCESS, args.getJobPrefix() + \"String_Node_Str\");\n }\n }\n }\n log.debug(\"String_Node_Str\");\n this.dispatchStatsJob(assemblerWait, executionContext);\n log.info(\"String_Node_Str\");\n } catch (IOException ioe) {\n throw new ProcessExecutionException(-1, ioe);\n } catch (CommandExecutionException cee) {\n throw new ProcessExecutionException(-2, cee);\n }\n return true;\n}\n"
"protected void init(RepositoryNode node) {\n ERepositoryObjectType nodeType = (ERepositoryObjectType) node.getProperties(EProperties.CONTENT_TYPE);\n if (ERepositoryObjectType.METADATA_FILE_FTP != null && !ERepositoryObjectType.METADATA_FILE_FTP.equals(nodeType)) {\n setEnabled(false);\n return;\n }\n IProxyRepositoryFactory factory = ProxyRepositoryFactory.getInstance();\n switch(node.getType()) {\n case SIMPLE_FOLDER:\n if (node.getObject() != null && node.getObject().getProperty().getItem().getState().isDeleted()) {\n setEnabled(false);\n return;\n }\n case SYSTEM_FOLDER:\n if (factory.isUserReadOnlyOnCurrentProject() || !ProjectManager.getInstance().isInCurrentMainProject(node)) {\n setEnabled(false);\n return;\n }\n this.setText(CREATE_LABEL);\n this.setImageDescriptor(createImage);\n collectChildNames(node);\n break;\n case REPOSITORY_ELEMENT:\n if (factory.isPotentiallyEditable(node.getObject())) {\n this.setText(EDIT_LABEL);\n this.setImageDescriptor(defaultImage);\n collectSiblingNames(node);\n } else {\n this.setText(OPEN_LABEL);\n this.setImageDescriptor(defaultImage);\n }\n break;\n default:\n return;\n }\n setEnabled(true);\n}\n"
"private static boolean testAndMark(VM_Address ref, int value) throws VM_PragmaInline {\n int oldValue;\n do {\n oldValue = VM_Interface.prepareAvailableBits(ref);\n VM_Word markBit = oldValue.and(GC_MARK_BIT_MASK);\n if (markBit.EQ(value))\n return false;\n } while (!VM_Interface.attemptAvailableBits(ref, oldValue, oldValue ^ GC_MARK_BIT_MASK));\n return true;\n}\n"
"public Set<DistributionModuleGroup> getModuleGroups(ComponentType componentType, String componentName) {\n return getNodeModuleGroupsMap().get(new NodeComponentTypeBean(componentType, componentName));\n}\n"
"public synchronized void mergeTable(AttributeTable table) {\n for (AttributeColumn column : table.getColumns()) {\n AttributeColumn existingCol = getColumn(column);\n if (existingCol == null) {\n addColumn(column.getId(), column.getTitle(), column.getType(), column.getOrigin(), column.getDefaultValue());\n }\n }\n}\n"
"private URI replaceHREF(final String attName, final Attributes atts) {\n URI attValue = toURI(atts.getValue(attName));\n if (attValue != null) {\n final String fragment = attValue.getFragment();\n if (fragment != null) {\n attValue = stripFragment(attValue);\n }\n if (attValue.toString().length() != 0) {\n final URI current = currentFile.toURI().resolve(attValue);\n attValue = getRelativePath(currentFile.toURI(), current);\n }\n if (fragment != null) {\n attValue = setFragment(attValue, fragment);\n }\n } else {\n return null;\n }\n return attValue;\n}\n"
"public List<String> getPopulateStatements(String table) {\n List<String> statements = new ArrayList<>();\n if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList(\"String_Node_Str\");\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList(\"String_Node_Str\");\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList(\"String_Node_Str\", \"String_Node_Str\");\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList(\"String_Node_Str\");\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList(\"String_Node_Str\", \"String_Node_Str\");\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList(\"String_Node_Str\", \"String_Node_Str\");\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList(\"String_Node_Str\");\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList(\"String_Node_Str\", \"String_Node_Str\");\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList(\"String_Node_Str\", \"String_Node_Str\");\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList();\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList(\"String_Node_Str\", \"String_Node_Str\");\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList(\"String_Node_Str\", \"String_Node_Str\");\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList();\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList();\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList();\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList();\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList();\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList();\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList();\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList();\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList();\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList(\"String_Node_Str\");\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList(\"String_Node_Str\");\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList(\"String_Node_Str\");\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList();\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList();\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList();\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList();\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList();\n } else if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n } else {\n statements = Arrays.asList();\n }\n ArrayList<String> all = new ArrayList<>();\n all.add(\"String_Node_Str\" + table + \"String_Node_Str\");\n all.addAll(statements);\n return all;\n}\n"
"protected PlayersClient get_player_client() {\n if (mPlayersClient == null) {\n GoogleAuthentication googleAuthentication = GoogleAuthentication.getInstance(activity);\n mPlayersClient = Games.getPlayersClient(activity, googleAuthentication.get_account());\n }\n return mPlayersClient;\n}\n"
"public MigrationResult migrateFromFiles(String settingsFile, String databaseFile, boolean doMigrateDatabase) {\n logger.info(\"String_Node_Str\", settingsFile, databaseFile);\n Map<String, String> migrationData = new HashMap<>();\n migrationData.put(\"String_Node_Str\", databaseFile);\n migrationData.put(\"String_Node_Str\", String.valueOf(doMigrateDatabase));\n try {\n migrationData.put(\"String_Node_Str\", new String(Files.readAllBytes(new File(settingsFile).toPath())));\n } catch (IOException e) {\n logger.error(\"String_Node_Str\", e);\n return MigrationResult.requirementsNotMet(\"String_Node_Str\" + e);\n }\n MigrationResult migrationResult = new MigrationResult();\n migrationResult.setConfigMigrated(false);\n migrationResult.setDatabaseMigrated(false);\n if (doMigrateDatabase && !new File(databaseFile).exists()) {\n return MigrationResult.requirementsNotMet(\"String_Node_Str\");\n } else if (!new File(settingsFile).exists()) {\n return MigrationResult.requirementsNotMet(\"String_Node_Str\");\n }\n return startMigration(migrationData);\n}\n"
"public static boolean isSchemaFromSidOrDatabase(EDatabaseTypeName inType) {\n if (EDatabaseTypeName.TERADATA.equals(inType) || EDatabaseTypeName.IMPALA.equals(inType) || EDatabaseTypeName.AS400.equals(inType) || EDatabaseTypeName.EXASOL.equals(inType) || EDatabaseTypeName.HIVE.equals(inType)) {\n return true;\n } else {\n return false;\n }\n}\n"
"public void damage(int dmg, Object src) {\n if (dmg >= HP) {\n ((PrisonBossLevel) Dungeon.level).progress();\n return;\n }\n int beforeHitHP = HP;\n super.damage(dmg, src);\n if (beforeHitHP > HT / 2 && HP <= HT / 2) {\n HP = HT / 2;\n yell(\"String_Node_Str\");\n ((PrisonBossLevel) Dungeon.level).progress();\n BossHealthBar.bleed(true);\n }\n}\n"
"private int getNextId() {\n try {\n wbLock.lock();\n maxId++;\n return maxId * 1000 + SysConfig.serverId;\n } finally {\n idLock.unlock();\n }\n}\n"
"protected Boolean doInBackground(Post... posts) {\n post = posts[0];\n nm = (NotificationManager) context.getSystemService(\"String_Node_Str\");\n String postOrPage = (String) (post.isPage() ? context.getResources().getText(R.string.page_id) : context.getResources().getText(R.string.post_id));\n String message = context.getResources().getText(R.string.uploading) + \"String_Node_Str\" + postOrPage;\n n = new Notification(R.drawable.notification_icon, message, System.currentTimeMillis());\n Intent notificationIntent = new Intent(context, Posts.class);\n notificationIntent.setData((Uri.parse(\"String_Node_Str\" + post.blogID)));\n notificationIntent.putExtra(\"String_Node_Str\", true);\n PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, notificationIntent, Intent.FLAG_ACTIVITY_CLEAR_TOP);\n n.setLatestEventInfo(context, message, message, pendingIntent);\n notificationID = 22 + Integer.valueOf(post.blogID);\n nm.notify(notificationID, n);\n if (post.post_status == null) {\n post.post_status = \"String_Node_Str\";\n }\n Boolean publishThis = false;\n boolean mediaError = false;\n Spannable s;\n String descriptionContent = \"String_Node_Str\", moreContent = \"String_Node_Str\";\n int moreCount = 1;\n if (post.getMt_text_more() != null)\n moreCount++;\n for (int x = 0; x < moreCount; x++) {\n if (x == 0)\n s = (Spannable) WPHtml.fromHtml(post.getDescription(), context, post);\n else\n s = (Spannable) WPHtml.fromHtml(post.getMt_text_more(), context, post);\n WPImageSpan[] click_spans = s.getSpans(0, s.length(), WPImageSpan.class);\n if (click_spans.length != 0) {\n for (int i = 0; i < click_spans.length; i++) {\n String prompt = context.getResources().getText(R.string.uploading_media_item) + String.valueOf(i + 1);\n n.setLatestEventInfo(context, context.getResources().getText(R.string.uploading) + \"String_Node_Str\" + postOrPage, prompt, n.contentIntent);\n nm.notify(notificationID, n);\n WPImageSpan wpIS = click_spans[i];\n int start = s.getSpanStart(wpIS);\n int end = s.getSpanEnd(wpIS);\n MediaFile mf = new MediaFile();\n mf.setPostID(post.getId());\n mf.setTitle(wpIS.getTitle());\n mf.setCaption(wpIS.getCaption());\n mf.setDescription(wpIS.getDescription());\n mf.setFeatured(wpIS.isFeatured());\n mf.setFileName(wpIS.getImageSource().toString());\n mf.setHorizontalAlignment(wpIS.getHorizontalAlignment());\n mf.setWidth(wpIS.getWidth());\n String imgHTML = uploadImage(mf);\n if (imgHTML != null) {\n SpannableString ss = new SpannableString(imgHTML);\n s.setSpan(ss, start, end, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);\n s.removeSpan(wpIS);\n } else {\n mediaError = true;\n }\n }\n }\n if (x == 0)\n descriptionContent = WPHtml.toHtml(s);\n else\n moreContent = WPHtml.toHtml(s);\n }\n if (!mediaError) {\n JSONArray categories = post.getCategories();\n String[] theCategories = null;\n if (categories != null) {\n theCategories = new String[categories.length()];\n for (int i = 0; i < categories.length(); i++) {\n try {\n theCategories[i] = categories.getString(i);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }\n Map<String, Object> contentStruct = new HashMap<String, Object>();\n if (!post.isPage) {\n HashMap<?, ?> globalSettings = WordPress.wpDB.getNotificationOptions(context);\n boolean taglineValue = false;\n String tagline = \"String_Node_Str\";\n if (globalSettings != null) {\n if (globalSettings.get(\"String_Node_Str\").toString().equals(\"String_Node_Str\")) {\n taglineValue = true;\n }\n if (taglineValue) {\n tagline = globalSettings.get(\"String_Node_Str\").toString();\n if (tagline != null) {\n String tag = \"String_Node_Str\" + tagline + \"String_Node_Str\";\n if (moreContent == \"String_Node_Str\")\n descriptionContent += tag;\n else\n moreContent += tag;\n }\n }\n }\n if (!post.getWP_post_format().equals(\"String_Node_Str\")) {\n if (!post.getWP_post_format().equals(\"String_Node_Str\"))\n contentStruct.put(\"String_Node_Str\", post.getWP_post_format());\n }\n }\n contentStruct.put(\"String_Node_Str\", (post.isPage) ? \"String_Node_Str\" : \"String_Node_Str\");\n contentStruct.put(\"String_Node_Str\", post.title);\n long pubDate = post.date_created_gmt;\n if (pubDate != 0) {\n Date dateCreated = new Date(pubDate);\n contentStruct.put(\"String_Node_Str\", dateCreated);\n Date date_created_gmt = new Date(pubDate + (dateCreated.getTimezoneOffset() * 60000));\n contentStruct.put(\"String_Node_Str\", date_created_gmt);\n }\n descriptionContent = descriptionContent.replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\");\n moreContent = moreContent.replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\");\n if (!moreContent.equals(\"String_Node_Str\")) {\n descriptionContent = descriptionContent + \"String_Node_Str\" + moreContent;\n post.mt_text_more = \"String_Node_Str\";\n }\n descriptionContent = descriptionContent.replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n contentStruct.put(\"String_Node_Str\", descriptionContent);\n if (!post.isPage) {\n if (post.mt_keywords != \"String_Node_Str\") {\n contentStruct.put(\"String_Node_Str\", post.mt_keywords);\n }\n if (theCategories != null) {\n if (theCategories.length > 0)\n contentStruct.put(\"String_Node_Str\", theCategories);\n }\n }\n contentStruct.put((post.isPage) ? \"String_Node_Str\" : \"String_Node_Str\", post.post_status);\n Double latitude = 0.0;\n Double longitude = 0.0;\n if (!post.isPage) {\n latitude = (Double) post.getLatitude();\n longitude = (Double) post.getLongitude();\n if (latitude > 0) {\n HashMap<Object, Object> hLatitude = new HashMap<Object, Object>();\n hLatitude.put(\"String_Node_Str\", \"String_Node_Str\");\n hLatitude.put(\"String_Node_Str\", latitude);\n HashMap<Object, Object> hLongitude = new HashMap<Object, Object>();\n hLongitude.put(\"String_Node_Str\", \"String_Node_Str\");\n hLongitude.put(\"String_Node_Str\", longitude);\n HashMap<Object, Object> hPublic = new HashMap<Object, Object>();\n hPublic.put(\"String_Node_Str\", \"String_Node_Str\");\n hPublic.put(\"String_Node_Str\", 1);\n Object[] geo = { hLatitude, hLongitude, hPublic };\n contentStruct.put(\"String_Node_Str\", geo);\n }\n }\n XMLRPCClient client = new XMLRPCClient(post.blog.getUrl(), post.blog.getHttpuser(), post.blog.getHttppassword());\n n.setLatestEventInfo(context, message, message, n.contentIntent);\n nm.notify(notificationID, n);\n if (post.wp_password != null) {\n contentStruct.put(\"String_Node_Str\", post.wp_password);\n }\n Object[] params;\n if (post.isLocalDraft() && !post.uploaded)\n params = new Object[] { post.blog.getBlogId(), post.blog.getUsername(), post.blog.getPassword(), contentStruct, publishThis };\n else\n params = new Object[] { post.getPostid(), post.blog.getUsername(), post.blog.getPassword(), contentStruct, publishThis };\n try {\n client.call((post.isLocalDraft() && !post.uploaded) ? \"String_Node_Str\" : \"String_Node_Str\", params);\n post.setUploaded(true);\n post.update();\n return true;\n } catch (final XMLRPCException e) {\n error = e.getLocalizedMessage();\n }\n }\n return false;\n}\n"
"private void emitColumnAssignment(JavaWriter javaWriter, String valueStatement) throws IOException {\n boolean isContainerFieldDefinition = accessModel.isModelContainerAdapter;\n boolean fieldIsAModelContainer = accessModel.fieldIsAModelContainer;\n boolean isNull = valueStatement.equals(\"String_Node_Str\");\n AdapterQueryBuilder queryBuilder = new AdapterQueryBuilder();\n if (isModelContainerAdapter) {\n if (accessModel.isForeignKeyField) {\n queryBuilder.append(modelContainerName);\n } else {\n queryBuilder.append(ModelUtils.getVariable(true));\n }\n } else {\n queryBuilder.appendVariable(isContainerFieldDefinition);\n }\n if (fieldIsAModelContainer && isModelContainerAdapter) {\n queryBuilder.appendPut(accessModel.getReferencedColumnFieldName());\n } else if (fieldIsAModelContainer) {\n queryBuilder.append(\"String_Node_Str\").append(accessModel.columnFieldName).appendPut(accessModel.getReferencedColumnFieldName());\n } else if (isModelContainerAdapter && accessModel.isForeignKeyField) {\n queryBuilder.appendPut(accessModel.getReferencedColumnFieldName());\n }\n if (isContainerFieldDefinition) {\n queryBuilder.appendPut(accessModel.containerKeyName);\n } else if (isWritingForContainers) {\n queryBuilder.appendPut(accessModel.getReferencedColumnFieldName());\n } else {\n queryBuilder.append(\"String_Node_Str\").append(accessModel.getSetterReferenceColumnFieldName());\n if (!accessModel.isPrivate) {\n queryBuilder.appendSpaceSeparated(\"String_Node_Str\");\n }\n }\n if (accessModel.isEnum) {\n if (!valueStatement.equals(\"String_Node_Str\")) {\n queryBuilder.append(accessModel.castedClass).append(\"String_Node_Str\");\n }\n } else {\n if (accessModel.requiresTypeConverter && !isContainerFieldDefinition) {\n queryBuilder.appendTypeConverter(accessModel.columnFieldBoxedType, accessModel.columnFieldBoxedType, true);\n } else if (accessModel.isABlob) {\n queryBuilder.append(String.format(\"String_Node_Str\", Blob.class.getName()));\n }\n }\n queryBuilder.append(valueStatement);\n if (accessModel.requiresTypeConverter && !isContainerFieldDefinition && !accessModel.isEnum || (accessModel.isEnum && isContainerFieldDefinition && !valueStatement.equals(\"String_Node_Str\"))) {\n queryBuilder.append(\"String_Node_Str\");\n } else if (isContainerFieldDefinition || isWritingForContainers || accessModel.isABlob || (accessModel.isEnum && !valueStatement.equals(\"String_Node_Str\"))) {\n queryBuilder.append(\"String_Node_Str\");\n }\n if (accessModel.isPrivate && !isContainerFieldDefinition) {\n queryBuilder.append(\"String_Node_Str\");\n }\n javaWriter.emitStatement(queryBuilder.toString());\n}\n"
"public int parseInto(DateTimeParserBucket bucket, String text, int position) {\n DateTimeParser[] parsers = iParsers;\n int length = parsers.length;\n final Object originalState = bucket.saveState();\n boolean isOptional = false;\n int bestValidPos = position;\n int bestValidParser = 0;\n for (int i = 0; i < length; i++) {\n if (i != 0) {\n bucket.undoChanges(state);\n }\n DateTimeParser parser = parsers[i];\n if (parser == null) {\n if (bestValidPos > position) {\n break;\n }\n return position;\n }\n int parsePos = parser.parseInto(bucket, text, position);\n if (parsePos >= position) {\n if (parsePos >= text.length()) {\n return parsePos;\n }\n if (parsePos > bestValidPos) {\n bestValidPos = parsePos;\n bestValidParser = i;\n }\n } else {\n parsePos = ~parsePos;\n if (parsePos > bestInvalidPos) {\n bestInvalidPos = parsePos;\n bestInvalidParser = i;\n }\n }\n }\n if (bestValidPos > position) {\n if (bestValidParser == length - 1) {\n return bestValidPos;\n }\n bucket.undoChanges(state);\n return parsers[bestValidParser].parseInto(bucket, text, position);\n }\n if (bestInvalidParser == length - 1) {\n return ~bestInvalidPos;\n }\n bucket.undoChanges(state);\n return parsers[bestInvalidParser].parseInto(bucket, text, position);\n}\n"
"public StreamConnector getStreamConnector(Channel channel) {\n if (!getChannels().contains(channel)) {\n return null;\n MultiplexingDatagramSocket rtpSocket = iceStream.getComponent(Component.RTP).getSocket();\n MultiplexingDatagramSocket rtcpSocket;\n if (numComponents > 1 && !rtcpmux) {\n rtcpSocket = iceStream.getComponent(Component.RTCP).getSocket();\n } else {\n rtcpSocket = rtpSocket;\n }\n if (rtpSocket == null || rtcpSocket == null) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n if (channel instanceof SctpConnection) {\n try {\n DatagramSocket dtlsSocket = rtpSocket.getSocket(new DTLSDatagramFilter());\n return new DefaultStreamConnector(dtlsSocket, null);\n } catch (SocketException se) {\n logger.warn(\"String_Node_Str\" + se);\n }\n }\n if (!(channel instanceof RtpChannel))\n return null;\n RtpChannel rtpChannel = (RtpChannel) channel;\n DatagramSocket channelRtpSocket, channelRtcpSocket;\n try {\n channelRtpSocket = rtpSocket.getSocket(rtpChannel.getDatagramFilter(false));\n channelRtcpSocket = rtcpSocket.getSocket(rtpChannel.getDatagramFilter(false));\n } catch (SocketException se) {\n throw new RuntimeException(\"String_Node_Str\", se);\n }\n return new DefaultStreamConnector(channelRtpSocket, channelRtcpSocket, rtcpmux);\n}\n"
"protected static double computeLoudestFreq(FrequenciesState fs) {\n double max = 0;\n double freq = 0;\n for (int i = 0; i < fs.getMaxfrequency() / 2; i++) {\n double val = Math.pow(fs.getState()[i].abs(), 2);\n freq = (max < val ? i : freq);\n max = (max < val ? val : max);\n }\n return freq;\n}\n"
"public void testOpenCaseOld() {\n SymmetryAxes axes = new SymmetryAxes();\n Matrix4d t10 = new Matrix4d();\n t10.set(1, new Vector3d(1, 0, 0));\n List<Integer> repeats = Arrays.asList(0, 0, 1, 1, 2, 2, 3, 3);\n List<List<Integer>> superposition = Arrays.asList(Arrays.asList(0, 1, 2, 3, 4, 5), Arrays.asList(2, 3, 4, 5, 6, 7));\n axes.addAxis(t10, superposition, repeats, 4);\n Matrix4d r180 = new Matrix4d();\n r180.set(new AxisAngle4d(1, 0, 0, Math.PI));\n repeats = Arrays.asList(0, 1, 0, 1, 0, 1, 0, 1);\n superposition = Arrays.asList(Arrays.asList(0, 1), Arrays.asList(1, 0));\n axes.addAxis(r180, superposition, repeats, 2);\n assertEquals(2, axes.getElementaryAxes().size());\n Matrix4d expectedEven = new Matrix4d();\n expectedEven.setIdentity();\n Matrix4d expectedOdd = new Matrix4d(r180);\n assertEquals(expectedEven, axes.getRepeatTransform(0));\n assertEquals(expectedOdd, axes.getRepeatTransform(1));\n expectedEven.mul(t10);\n expectedOdd.mul(r180, expectedEven);\n assertEquals(expectedEven, axes.getRepeatTransform(2));\n assertEquals(expectedOdd, axes.getRepeatTransform(3));\n expectedEven.mul(t10);\n expectedOdd.mul(r180, expectedEven);\n assertEquals(expectedEven, axes.getRepeatTransform(4));\n assertEquals(expectedOdd, axes.getRepeatTransform(5));\n expectedEven.mul(t10);\n expectedOdd.mul(r180, expectedEven);\n assertEquals(expectedEven, axes.getRepeatTransform(6));\n assertEquals(expectedOdd, axes.getRepeatTransform(7));\n List<List<Integer>> relation = Arrays.asList(Arrays.asList(0, 1, 2, 3, 4, 5), Arrays.asList(2, 3, 4, 5, 6, 7));\n assertEquals(relation, axes.getRepeatRelation(0));\n relation = Arrays.asList(Arrays.asList(0, 1), Arrays.asList(1, 0));\n assertEquals(relation, axes.getRepeatRelation(1));\n try {\n axes.getRepeatRelation(2);\n fail(\"String_Node_Str\");\n } catch (IndexOutOfBoundsException e) {\n }\n}\n"
"protected void handleSelectionButtonEnablement(List<Object> selectedObjects) {\n if (projects == null || projects.isEmpty()) {\n selectionButtons.get(ButtonTypes.ADD).setEnabled(false);\n selectionButtons.get(ButtonTypes.EDIT).setEnabled(false);\n selectionButtons.get(ButtonTypes.REMOVE).setEnabled(false);\n } else if (selectedObjects == null || selectedObjects.isEmpty()) {\n selectionButtons.get(ButtonTypes.ADD).setEnabled(true);\n selectionButtons.get(ButtonTypes.EDIT).setEnabled(false);\n selectionButtons.get(ButtonTypes.REMOVE).setEnabled(false);\n } else if (selectedObjects.size() == 1) {\n Object selectedObj = selectedObjects.get(0);\n if (selectedObj instanceof GroovySuggestionDeclaringType) {\n selectionButtons.get(ButtonTypes.ADD).setEnabled(true);\n selectionButtons.get(ButtonTypes.EDIT).setEnabled(false);\n selectionButtons.get(ButtonTypes.REMOVE).setEnabled(true);\n } else if (selectedObj instanceof IGroovySuggestion) {\n selectionButtons.get(ButtonTypes.ADD).setEnabled(true);\n selectionButtons.get(ButtonTypes.EDIT).setEnabled(true);\n selectionButtons.get(ButtonTypes.REMOVE).setEnabled(true);\n }\n } else {\n selectionButtons.get(ButtonTypes.ADD).setEnabled(false);\n selectionButtons.get(ButtonTypes.EDIT).setEnabled(false);\n selectionButtons.get(ButtonTypes.REMOVE).setEnabled(true);\n }\n}\n"
"public Word next() {\n Position currentPos = mPositions.getLast();\n mCurrentString.setLength(currentPos.length);\n do {\n if (currentPos.pos.hasNext()) {\n final CharGroup currentGroup = currentPos.pos.next();\n currentPos.length = mCurrentString.length();\n for (int i : currentGroup.mChars) {\n mCurrentString.append(Character.toChars(i));\n }\n if (null != currentGroup.mChildren) {\n currentPos = new Position(currentGroup.mChildren.mData);\n mPositions.addLast(currentPos);\n }\n if (currentGroup.mFrequency >= 0)\n return new Word(mCurrentString.toString(), currentGroup.mFrequency, currentGroup.mShortcutTargets, currentGroup.mBigrams, currentGroup.mIsNotAWord, currentGroup.mIsBlacklistEntry);\n } else {\n mPositions.removeLast();\n currentPos = mPositions.getLast();\n mCurrentString.setLength(mPositions.getLast().length);\n }\n } while (true);\n}\n"
"public PgpEditKeyResult modifySecretKeyRing(CanonicalizedSecretKeyRing wsKR, CryptoInputParcel cryptoInput, SaveKeyringParcel saveParcel, OperationLog log) {\n int indent = 0;\n log.add(LogType.MSG_MF, indent, KeyFormattingUtils.convertKeyIdToHex(wsKR.getMasterKeyId()));\n indent += 1;\n progress(R.string.progress_building_key, 0);\n if (saveParcel.mMasterKeyId == null || saveParcel.mMasterKeyId != wsKR.getMasterKeyId()) {\n log.add(LogType.MSG_MF_ERROR_KEYID, indent);\n return new PgpEditKeyResult(PgpEditKeyResult.RESULT_ERROR, log, null);\n }\n PGPSecretKeyRing sKR = wsKR.getRing();\n PGPSecretKey masterSecretKey = sKR.getSecretKey();\n if (saveParcel.mFingerprint == null || !Arrays.equals(saveParcel.mFingerprint, masterSecretKey.getPublicKey().getFingerprint())) {\n log.add(LogType.MSG_MF_ERROR_FINGERPRINT, indent);\n return new PgpEditKeyResult(PgpEditKeyResult.RESULT_ERROR, log, null);\n }\n if (saveParcel.isEmpty()) {\n log.add(LogType.MSG_MF_ERROR_NOOP, indent);\n return new PgpEditKeyResult(PgpEditKeyResult.RESULT_ERROR, log, null);\n }\n for (SaveKeyringParcel.SubkeyChange change : saveParcel.mChangeSubKeys) {\n if (change.mMoveKeyToCard) {\n byte[] subKeyId = new byte[8];\n ByteBuffer buf = ByteBuffer.wrap(subKeyId);\n buf.putLong(change.mKeyId).rewind();\n byte[] serialNumber = cryptoInput.getCryptoData().get(buf);\n if (serialNumber != null) {\n change.mMoveKeyToCard = false;\n change.mDummyDivert = serialNumber;\n }\n }\n }\n if (isDummy(masterSecretKey) || saveParcel.isRestrictedOnly()) {\n log.add(LogType.MSG_MF_RESTRICTED_MODE, indent);\n return internalRestricted(sKR, saveParcel, log, indent + 1);\n }\n if (!isDivertToCard(masterSecretKey) && !cryptoInput.hasPassphrase()) {\n log.add(LogType.MSG_MF_REQUIRE_PASSPHRASE, indent);\n return new PgpEditKeyResult(log, RequiredInputParcel.createRequiredSignPassphrase(masterSecretKey.getKeyID(), masterSecretKey.getKeyID(), cryptoInput.getSignatureTime()));\n }\n PGPPublicKey masterPublicKey = masterSecretKey.getPublicKey();\n int masterKeyFlags = readKeyFlags(masterPublicKey) | KeyFlags.CERTIFY_OTHER;\n Date expiryTime = wsKR.getPublicKey().getExpiryTime();\n long masterKeyExpiry = expiryTime != null ? expiryTime.getTime() / 1000 : 0L;\n return internal(sKR, masterSecretKey, masterKeyFlags, masterKeyExpiry, cryptoInput, saveParcel, log);\n}\n"
"public boolean syncDeleteVMs(List<BaseNode> badNodes, StatusUpdater statusUpdator, boolean ignoreUnavailableNodes) {\n logger.info(\"String_Node_Str\");\n List<Callable<Void>> storeProcedures = new ArrayList<Callable<Void>>();\n for (int i = 0; i < badNodes.size(); i++) {\n BaseNode node = badNodes.get(i);\n if (node.getVmMobId() == null) {\n continue;\n }\n DeleteVmByIdSP deleteSp = new DeleteVmByIdSP(node.getVmMobId());\n storeProcedures.add(deleteSp);\n }\n try {\n if (storeProcedures.isEmpty()) {\n logger.info(\"String_Node_Str\");\n return true;\n }\n Callable<Void>[] storeProceduresArray = storeProcedures.toArray(new Callable[0]);\n logger.info(\"String_Node_Str\");\n BaseProgressCallback callback = new BaseProgressCallback(statusUpdator, 0, 50);\n ExecutionResult[] result = Scheduler.executeStoredProcedures(com.vmware.aurora.composition.concurrent.Priority.BACKGROUND, storeProceduresArray, callback);\n if (result == null) {\n logger.error(\"String_Node_Str\");\n return false;\n }\n int total = 0;\n boolean failed = false;\n for (int i = 0; i < storeProceduresArray.length; i++) {\n BaseNode vNode = toBeDeleted.get(i);\n vNode.setFinished(true);\n if (result[i].finished && result[i].throwable == null) {\n vNode.setSuccess(true);\n vNode.setVmMobId(null);\n ++total;\n } else if (result[i].throwable != null) {\n vNode.setSuccess(false);\n vNode.setErrMessage(getErrorMessage(result[i].throwable));\n if (ignoreUnavailableNodes) {\n DeleteVmByIdSP sp = (DeleteVmByIdSP) storeProceduresArray[i];\n VcVirtualMachine vcVm = sp.getVcVm();\n if (!vcVm.isConnected() || vcVm.getHost().isUnavailbleForManagement()) {\n logger.error(\"String_Node_Str\" + vcVm.getName() + \"String_Node_Str\" + vcVm.getConnectionState() + \"String_Node_Str\");\n logger.error(\"String_Node_Str\");\n continue;\n }\n }\n logger.error(\"String_Node_Str\" + vNode.getVmName(), result[i].throwable);\n failed = true;\n }\n vNode.setFinished(true);\n }\n logger.info(total + \"String_Node_Str\");\n return !failed;\n } catch (InterruptedException e) {\n logger.error(\"String_Node_Str\", e);\n throw BddException.INTERNAL(e, e.getMessage());\n }\n}\n"
"public static SortedMap<String, Object> rhombusMapFromJsonMap(Map<String, Object> jsonMap, CDefinition definition) {\n SortedMap<String, Object> rhombusMap = Maps.newTreeMap();\n for (CField field : definition.getFields().values()) {\n if (jsonMap.containsKey(field.getName())) {\n rhombusMap.put(field.getName(), typedObjectFromValueAndField(jsonMap.get(field.getName()), field));\n }\n }\n return rhombusMap;\n}\n"
"public void perform(Arguments arguments, PrintStream output) throws Exception {\n DatasetId instance = cliConfig.getCurrentNamespace().dataset(arguments.get(ArgumentName.DATASET.toString()));\n Map<String, String> properties = datasetClient.getProperties(instance);\n output.printf(GSON.toJson(properties));\n}\n"
"public void run(Context context) throws IOException, InterruptedException {\n String userReducer = context.getConfiguration().get(ATTR_REDUCER_CLASS);\n Reducer delegate = createReducerInstance(context, userReducer);\n MapReduceContextProvider mrContextProvider = new MapReduceContextProvider(context);\n BasicMapReduceContext basicMapReduceContext = mrContextProvider.get();\n basicMapReduceContext.injectFields(delegate);\n LoggingContextAccessor.setLoggingContext(basicMapReduceContext.getLoggingContext());\n delegate.run(context);\n}\n"
"private void retrieveAIPPreservationInformation(StoragePath storagePath, List<String> representationIds, final Map<String, List<String>> preservationRepresentationObjects, final Map<String, List<String>> preservationFileObjects, final Map<String, List<String>> preservationEvents) {\n for (String representationID : representationIds) {\n try {\n StoragePath representationPreservationPath = ModelUtils.getPreservationPath(storagePath.getName(), representationID);\n List<String> preservationFileIds = ModelUtils.getChildIds(storage, representationPreservationPath, false);\n final List<String> preservationRepresentationObjectFileIds = new ArrayList<String>();\n final List<String> preservationFileObjectFileIds = new ArrayList<String>();\n final List<String> preservationEventFileIds = new ArrayList<String>();\n for (String preservationFileId : preservationFileIds) {\n StoragePath binaryPath = ModelUtils.getPreservationFilePath(storagePath.getName(), representationID, preservationFileId);\n Binary preservationBinary = storage.getBinary(binaryPath);\n if (ModelUtils.isPreservationRepresentationObject(preservationBinary)) {\n preservationRepresentationObjectFileIds.add(preservationFileId);\n } else if (ModelUtils.isPreservationEvent(preservationBinary)) {\n preservationEventFileIds.add(preservationFileId);\n } else if (ModelUtils.isPreservationFileObject(preservationBinary)) {\n preservationFileObjectFileIds.add(preservationFileId);\n } else {\n LOGGER.warn(\"String_Node_Str\", binaryPath.asString());\n }\n }\n preservationRepresentationObjects.put(representationID, preservationRepresentationObjectFileIds);\n preservationFileObjects.put(representationID, preservationFileObjectFileIds);\n preservationEvents.put(representationID, preservationEventFileIds);\n } catch (StorageServiceException e) {\n LOGGER.error(\"String_Node_Str\", e);\n }\n }\n}\n"
"protected CtElement getFixIngredient(Gen gen, CtElement targetStmt, String type, GenProgMutationOperation operationType) {\n CtElement fix = null;\n int attempts = 0;\n boolean continueSearching = true;\n int elementsFromFixSpace = 0;\n List<?> ingredients = null;\n if (type == null) {\n ingredients = this.fixspace.getFixSpace(gen.getCodeElement());\n } else {\n ingredients = this.fixspace.getFixSpace(gen.getCodeElement(), type);\n }\n elementsFromFixSpace = (ingredients == null) ? 0 : ingredients.size();\n while (continueSearching && attempts < elementsFromFixSpace) {\n if (type == null) {\n fix = this.fixspace.getElementFromSpace(gen.getCodeElement());\n } else {\n fix = this.fixspace.getElementFromSpace(gen.getCodeElement(), type);\n }\n if (fix == null) {\n return null;\n }\n attempts++;\n INGREDIENT_STATUS fixStat = null;\n boolean alreadyApplied = alreadyApplied(gen, fix, operationType), ccompatibleNameTypes = false;\n if (!alreadyApplied && !fix.getSignature().equals(targetStmt.getSignature())) {\n ccompatibleNameTypes = VariableResolver.fitInPlace(gen.getContextOfGen(), fix);\n log.info(\"String_Node_Str\" + \"String_Node_Str\" + ccompatibleNameTypes);\n continueSearching = !ccompatibleNameTypes;\n fixStat = (ccompatibleNameTypes) ? INGREDIENT_STATUS.compiles : INGREDIENT_STATUS.notcompiles;\n } else {\n fixStat = INGREDIENT_STATUS.alreadyanalyzed;\n currentStat.sizeSpace.add(new StatSpaceSize(gen.getProgramVariant().getId(), gen.getCodeElement().getClass().getSimpleName(), elementsFromFixSpace, (fix != null) ? fix.getClass().getSimpleName() : \"String_Node_Str\", fixStat));\n }\n if (continueSearching) {\n log.debug(\"String_Node_Str\" + targetStmt.getSignature());\n return null;\n }\n return fix;\n}\n"
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n MageObject sourceObject = source.getSourceObject(game);\n if (controller != null && sourceObject != null) {\n Cards topLib = new CardsImpl();\n topLib.addAll(controller.getLibrary().getTopCards(game, 10));\n controller.revealCards(sourceObject.getIdName(), topLib, game);\n Cards chosenCards = new CardsImpl();\n if (game.getOpponents(controller.getId()).size() >= topLib.getCards(StaticFilters.FILTER_CARD_NON_LAND, game).size()) {\n chosenCards.addAll(topLib.getCards(StaticFilters.FILTER_CARD_NON_LAND, game));\n topLib.removeAll(chosenCards);\n } else if (!topLib.getCards(StaticFilters.FILTER_CARD_NON_LAND, game).isEmpty()) {\n for (UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)) {\n if (controller.hasOpponent(playerId, game)) {\n Player opponent = game.getPlayer(playerId);\n if (opponent != null && !topLib.getCards(StaticFilters.FILTER_CARD_NON_LAND, game).isEmpty()) {\n TargetCard target = new TargetCard(Zone.LIBRARY, StaticFilters.FILTER_CARD_NON_LAND);\n if (opponent.choose(Outcome.Detriment, topLib, target, game)) {\n Card card = game.getCard(target.getFirstTarget());\n if (card != null) {\n topLib.remove(card);\n chosenCards.add(card);\n }\n }\n }\n }\n }\n }\n controller.moveCards(chosenCards, Zone.HAND, source, game);\n controller.putCardsOnBottomOfLibrary(topLib, game, source, false);\n return true;\n }\n return false;\n}\n"
"private void handleColor(ChannelUID channelUID, HSBType command) throws IOException {\n if (CHANNEL_COLOR.equals(channelUID.getId())) {\n handleBrightness(command.getBrightness());\n connection.sendCommand(commands.color(new HSBType(command.getHue(), command.getSaturation(), PercentType.HUNDRED)));\n handleOnOff(command);\n }\n}\n"
"public void context_popup(EMouseClick event) {\n class ActionDrop extends BaseItemAction {\n BaseItem item;\n public ActionDrop(BaseItem item) {\n this.item = item;\n this.name = \"String_Node_Str\";\n }\n public void execute() {\n System.out.println(\"String_Node_Str\");\n item.drop();\n }\n }\n System.out.println(\"String_Node_Str\");\n NE_GUI_Popup __popup = new NE_GUI_Popup();\n NE_GUI_System ui = Game.get_game_mode().get_ui().get_nge_ui();\n ui.root.add(__popup);\n __popup.x = event.origin.getX();\n __popup.y = event.get_window_y();\n ArrayList action_list = item.get_action_list();\n Iterator<IAction> itr = action_list.iterator();\n while (itr.hasNext()) {\n IAction element = itr.next();\n __popup.add_item(element);\n }\n __popup.add_item(new ActionDrop(item));\n}\n"
"public void encodeBegin(FacesContext context) throws IOException {\n ResponseWriter writer = context.getResponseWriter();\n Map<String, Object> attributes = getAttributes();\n String clientId = getClientId(context);\n writer.startElement(\"String_Node_Str\", this);\n writer.writeAttribute(\"String_Node_Str\", \"String_Node_Str\", null);\n final String hiddenInputFieldID = clientId + \"String_Node_Str\";\n writer.writeAttribute(\"String_Node_Str\", hiddenInputFieldID, \"String_Node_Str\");\n writer.writeAttribute(\"String_Node_Str\", hiddenInputFieldID, \"String_Node_Str\");\n writer.writeAttribute(\"String_Node_Str\", determineActiveIndex(attributes, currentlyActiveIndex), \"String_Node_Str\");\n writer.endElement(\"String_Node_Str\");\n writer.startElement(UL, this);\n writer.writeAttribute(ID, clientId, ID);\n String classes = \"String_Node_Str\";\n if (attributes.containsKey(STYLECLASS)) {\n classes += \"String_Node_Str\";\n classes += attributes.get(STYLECLASS);\n }\n writer.writeAttribute(CLASS, classes, CLASS);\n String role = \"String_Node_Str\";\n R.encodeHTML4DHTMLAttrs(writer, attributes, TAB_VIEW_ATTRS);\n if (attributes.containsKey(ROLE)) {\n role = (String) attributes.get(ROLE);\n }\n writer.writeAttribute(ROLE, role, ROLE);\n encodeTabs(context, writer, getChildren(), attributes, currentlyActiveIndex);\n writer.endElement(\"String_Node_Str\");\n encodeTabContentPanes(context, writer, this, attributes, currentlyActiveIndex);\n}\n"
"public void render(SafeHtmlBuilder sb, List<C> values, int start, SelectionModel<? super C> selectionModel) {\n CellTree.Style style = nodeView.tree.getStyle();\n String itemValueStyle = style.cellTreeItemValue();\n String selectedStyle = \"String_Node_Str\" + style.cellTreeSelectedItem();\n String itemStyle = style.cellTreeItem();\n String itemImageValueStyle = \"String_Node_Str\" + style.cellTreeItemImageValue();\n String openStyle = \"String_Node_Str\" + style.cellTreeOpenItem();\n String topStyle = \"String_Node_Str\" + style.cellTreeTopItem();\n String topImageValueStyle = \"String_Node_Str\" + style.cellTreeTopItemImageValue();\n boolean isRootNode = nodeView.isRootNode();\n SafeHtml openImage = nodeView.tree.getOpenImageHtml(isRootNode);\n SafeHtml closedImage = nodeView.tree.getClosedImageHtml(isRootNode);\n int imageWidth = nodeView.tree.getImageWidth();\n String paddingDirection = LocaleInfo.getCurrentLocale().isRTL() ? \"String_Node_Str\" : \"String_Node_Str\";\n int paddingAmount = imageWidth * nodeView.depth;\n Set<Object> openNodes = new HashSet<Object>();\n int childCount = nodeView.getChildCount();\n int end = start + values.size();\n for (int i = start; i < end && i < childCount; i++) {\n CellTreeNodeView<?> child = nodeView.getChildNode(i);\n if (child.isOpen()) {\n openNodes.add(child.getValueKey());\n }\n }\n ProvidesKey<C> keyProvider = nodeInfo.getProvidesKey();\n TreeViewModel model = nodeView.tree.getTreeViewModel();\n for (C value : values) {\n Object key = keyProvider.getKey(value);\n boolean isOpen = openNodes.contains(key);\n StringBuilder outerClasses = new StringBuilder(itemStyle);\n if (isOpen) {\n outerClasses.append(openStyle);\n }\n if (isRootNode) {\n outerClasses.append(topStyle);\n }\n if (selectionModel != null && selectionModel.isSelected(value)) {\n outerClasses.append(selectedStyle);\n }\n StringBuilder innerClasses = new StringBuilder(itemStyle);\n innerClasses.append(itemImageValueStyle);\n if (isRootNode) {\n innerClasses.append(topImageValueStyle);\n }\n SafeHtml image;\n if (isOpen) {\n image = openImage;\n } else if (model.isLeaf(value)) {\n image = LEAF_IMAGE;\n } else {\n image = closedImage;\n }\n SafeHtmlBuilder cellBuilder = new SafeHtmlBuilder();\n cell.render(value, key, cellBuilder);\n SafeHtml innerDiv = template.innerDiv(paddingDirection, imageWidth, innerClasses.toString(), image, itemValueStyle, cellBuilder.toSafeHtml());\n sb.append(template.outerDiv(paddingDirection, paddingAmount, outerClasses.toString(), innerDiv));\n }\n}\n"
"public RecordType getRecordTypeById(Context context, long id) {\n RecordTypeDao recordTypeDao = getDaoSession(context).getRecordTypeDao();\n RecordType recordType = getSingleData(recordTypeDao.queryBuilder().where(RecordTypeDao.Properties.RecordTypeID.eq(id)).build().list());\n if (recordType == null)\n recordType = new RecordType(0L, 0L, \"String_Node_Str\", Constant.RecordType.ZUICHU.getId(), true, Constant.RecordTypeConstant.ICON_TYPE_YI_BAN, 0, Constant.Sex.ALL.getId(), Constant.Occupation.ALL.getId(), true, false, \"String_Node_Str\");\n return recordType;\n}\n"
"protected List<Object> recursivelyPopulateEntities(EntityMetadata m, Client client) {\n List<Object> entities = new ArrayList<Object>();\n ApplicationMetadata appMetadata = KunderaMetadata.INSTANCE.getApplicationMetadata();\n String query = appMetadata.getQuery(getJPAQuery());\n boolean isNative = kunderaQuery.isNative();\n if (isNative) {\n String nativeQuery = query != null ? query : getJPAQuery();\n Neo4JNativeQuery nativeQueryImpl = Neo4JNativeQueryFactory.getNativeQueryImplementation(queryType);\n entities = nativeQueryImpl.executeNativeQuery(nativeQuery, (Neo4JClient) client, m);\n } else {\n String luceneQuery = getLuceneQuery(kunderaQuery);\n entities = ((Neo4JClient) client).executeLuceneQuery(m, luceneQuery);\n }\n return setRelationEntities(entities, client, m);\n}\n"
"public SSHClientOutput execCommand(String command, int timeoutSeconds) throws Exception {\n try {\n System.out.println(\"String_Node_Str\" + username + \"String_Node_Str\" + hostname + \"String_Node_Str\" + command);\n StringBuffer text = new StringBuffer();\n int exitCode = -1;\n Session session = newJSchSession();\n session.connect();\n Channel channel = session.openChannel(\"String_Node_Str\");\n ((ChannelExec) channel).setCommand(command);\n channel.setInputStream(null);\n ((ChannelExec) channel).setErrStream(System.err);\n InputStream in = channel.getInputStream();\n InputStream err = ((ChannelExec) channel).getErrStream();\n channel.connect();\n int timeout = timeoutSeconds;\n byte[] tmp = new byte[1024];\n while (true) {\n timeout--;\n while (in.available() > 0) {\n int i = in.read(tmp, 0, 1024);\n if (i < 0)\n break;\n String line = new String(tmp, 0, i);\n text.append(line);\n if (logAppender != null) {\n logAppender.log(line);\n }\n }\n while (err.available() > 0) {\n int i = err.read(tmp, 0, 1024);\n if (i < 0)\n break;\n String line = new String(tmp, 0, i);\n text.append(line);\n if (this.sshLogger != null) {\n this.sshLogger.log(line);\n }\n }\n if (channel.isClosed()) {\n if (in.available() > 0)\n continue;\n exitCode = channel.getExitStatus();\n System.out.println(\"String_Node_Str\" + username + \"String_Node_Str\" + hostname + \"String_Node_Str\" + exitCode);\n break;\n }\n try {\n Thread.sleep(1000);\n } catch (Exception ee) {\n throw ee;\n }\n if (timeout < 0)\n throw new Exception(\"String_Node_Str\" + timeoutSeconds + \"String_Node_Str\");\n }\n channel.disconnect();\n session.disconnect();\n return new SSHClientOutput(exitCode, text.toString());\n } catch (Exception e) {\n throw e;\n }\n}\n"