content
stringlengths
40
137k
"protected void setup(Context context) throws IOException, InterruptedException {\n super.setup(context);\n Path uHatPath = new Path(context.getConfiguration().get(PROP_UHAT_PATH));\n Path sigmaPath = new Path(context.getConfiguration().get(PROP_SIGMA_PATH));\n FileSystem fs = FileSystem.get(uHatPath.toUri(), context.getConfiguration());\n uHat = SSVDHelper.drmLoadAsDense(fs, uHatPath, context.getConfiguration());\n kp = uHat.columnSize();\n k = context.getConfiguration().getInt(PROP_K, kp);\n uRow = new DenseVector(k);\n uRowWritable = new VectorWritable(uRow);\n SSVDSolver.OutputScalingEnum outputScaling = SSVDSolver.OutputScalingEnum.valueOf(context.getConfiguration().get(PROP_OUTPUT_SCALING));\n switch(outputScaling) {\n case SIGMA:\n sValues = SSVDHelper.loadVector(sigmaPath, context.getConfiguration());\n break;\n case HALFSIGMA:\n sValues = SSVDHelper.loadVector(sigmaPath, context.getConfiguration());\n sValues.assign(Functions.SQRT);\n break;\n default:\n }\n}\n"
"public int colorMultiplier(IBlockAccess world, BlockPos pos, int renderPass) {\n TileLeaves leaves = getLeafTile(world, pos);\n if (leaves == null) {\n return super.colorMultiplier(world, pos, 0);\n }\n int colour = leaves.getFoliageColour(Proxies.common.getClientInstance().thePlayer);\n if (colour == PluginArboriculture.proxy.getFoliageColorBasic()) {\n colour = super.colorMultiplier(world, pos);\n }\n return colour;\n}\n"
"public void testSystemExitFromClientMainWithNoDD() throws Exception {\n String APP_NAME = \"String_Node_Str\";\n JavaArchive jar = ShrinkHelper.buildJavaArchive(APP_NAME + \"String_Node_Str\", \"String_Node_Str\");\n EnterpriseArchive app = ShrinkWrap.create(EnterpriseArchive.class, APP_NAME + \"String_Node_Str\").addAsModule(jar).addAsManifestResource(new File(\"String_Node_Str\" + APP_NAME + \"String_Node_Str\"));\n ShrinkHelper.exportAppToClient(client, app);\n client.startClient();\n assertAppMessage(\"String_Node_Str\");\n assertNotAppMessage(\"String_Node_Str\");\n assertAppMessage(\"String_Node_Str\");\n assertNotAppMessage(\"String_Node_Str\");\n}\n"
"private void updateRecentsTasks() {\n RecentsTaskLoader loader = Recents.getTaskLoader();\n RecentsTaskLoadPlan plan = RecentsImpl.consumeInstanceLoadPlan();\n if (plan == null) {\n plan = loader.createLoadPlan(this);\n }\n RecentsConfiguration config = Recents.getConfiguration();\n RecentsActivityLaunchState launchState = config.getLaunchState();\n if (!plan.hasTasks()) {\n loader.preloadTasks(plan, -1, !launchState.launchedFromHome);\n }\n mLaunchedFromHome = launchState.launchedFromHome;\n TaskStack stack = plan.getTaskStack();\n RecentsTaskLoadPlan.Options loadOpts = new RecentsTaskLoadPlan.Options();\n loadOpts.runningTaskId = launchState.launchedToTaskId;\n loadOpts.numVisibleTasks = stack.getStackTaskCount();\n loadOpts.numVisibleTaskThumbnails = stack.getStackTaskCount();\n loader.loadTasks(this, plan, loadOpts);\n mRecentsView.setTaskStack(stack);\n List stackTasks = stack.getStackTasks();\n Collections.reverse(stackTasks);\n if (mTaskStackViewAdapter == null) {\n mTaskStackViewAdapter = new TaskStackHorizontalViewAdapter(stackTasks);\n mTaskStackHorizontalGridView = mRecentsView.setTaskStackViewAdapter(mTaskStackViewAdapter);\n } else {\n mTaskStackViewAdapter.setNewStackTasks(stackTasks);\n }\n if (launchState.launchedToTaskId != -1) {\n ArrayList<Task> tasks = stack.getStackTasks();\n int taskCount = tasks.size();\n for (int i = 0; i < taskCount; i++) {\n Task t = tasks.get(i);\n if (t.key.id == launchState.launchedToTaskId) {\n t.isLaunchTarget = true;\n break;\n }\n }\n }\n}\n"
"public static boolean isPrice(String text) {\n if (NumberUtil.isDouble(text)) {\n return true;\n }\n return text.trim().equalsIgnoreCase(FREE_TEXT);\n}\n"
"public void testErmaGradientLinearChainWithLoops() {\n FgAndVars fgv = FactorGraphsForTests.getLinearChainFgWithVars();\n FactorGraph fg = fgv.fg;\n ExplicitFactor loop0 = new ExplicitFactor(new VarSet(fgv.t0, fgv.t2));\n ExplicitFactor loop1 = new ExplicitFactor(new VarSet(fgv.w0, fgv.w2));\n ExplicitFactor loop2 = new ExplicitFactor(new VarSet(fgv.t0, fgv.t1, fgv.t2));\n ExplicitFactor loop3 = new ExplicitFactor(new VarSet(fgv.w0, fgv.w1, fgv.w2));\n fg.addFactor(loop0);\n fg.addFactor(loop1);\n fg.addFactor(loop2);\n fg.addFactor(loop3);\n VarConfig goldConfig = new VarConfig();\n goldConfig.put(fgv.w0, 0);\n goldConfig.put(fgv.w1, 1);\n goldConfig.put(fgv.w2, 0);\n goldConfig.put(fgv.t1, 1);\n goldConfig.put(fgv.t2, 1);\n ErmaBpPrm prm = new ErmaBpPrm();\n prm.updateOrder = BpUpdateOrder.SEQUENTIAL;\n prm.schedule = BpScheduleType.TREE_LIKE;\n prm.maxIterations = 2;\n prm.s = s;\n prm.normalizeMessages = true;\n testGradientByFiniteDifferences(fg, goldConfig, prm);\n}\n"
"public void arc(int ca, int cb, double ra, double rb, int da, int db, ArcType type) {\n if (ra <= 0) {\n throw new IllegalArgumentException(\"String_Node_Str\" + ra + \"String_Node_Str\");\n }\n if (rb <= 0) {\n throw new IllegalArgumentException(\"String_Node_Str\" + rb + \"String_Node_Str\");\n }\n double ra2 = ra * ra;\n double rb2 = rb * rb;\n double sigma = 2 * rb2 + ra2 * (1 - 2 * rb);\n for (int a = 0, b = (int) rb; rb2 * a <= ra2 * b; a++) {\n iterator.iterate(ca - a, cb - b);\n if (type.shouldDrawSecondQuadrant()) {\n iterator.iterate(ca + a + da, cb - b);\n if (type.shouldDrawAllQuadrants()) {\n iterator.iterate(ca - a, cb + b + db);\n iterator.iterate(ca + a + da, cb + b + db);\n }\n }\n if (sigma >= 0) {\n sigma += 4 * ra2 * (1 - b);\n b--;\n }\n sigma += rb2 * ((4 * a) + 6);\n }\n sigma = 2 * ra2 + rb2 * (1 - 2 * ra);\n for (int a = (int) ra, b = 0; ra2 * b <= rb2 * a; b++) {\n iterator.iterate(ca - a, cb - b);\n if (type.shouldDrawSecondQuadrant()) {\n iterator.iterate(ca + a + da, cb - b);\n if (type.shouldDrawAllQuadrants()) {\n iterator.iterate(ca - a, cb + b + db);\n iterator.iterate(ca + a + da, cb + b + db);\n }\n }\n if (sigma >= 0) {\n sigma += 4 * rb2 * (1 - a);\n a--;\n }\n sigma += ra2 * ((4 * b) + 6);\n }\n}\n"
"private int getIsolatedUid(int uid) {\n if (PrivacyManager.isIsolated(uid))\n try {\n Class<?> cam;\n Object am;\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n cam = mAm.getClass();\n am = mAm;\n } else {\n cam = Class.forName(\"String_Node_Str\");\n am = cam.getMethod(\"String_Node_Str\").invoke(null);\n }\n Field fmIsolatedProcesses = cam.getDeclaredField(\"String_Node_Str\");\n fmIsolatedProcesses.setAccessible(true);\n SparseArray<?> mIsolatedProcesses = (SparseArray<?>) fmIsolatedProcesses.get(am);\n Object processRecord = mIsolatedProcesses.get(uid);\n Field fInfo = processRecord.getClass().getDeclaredField(\"String_Node_Str\");\n fInfo.setAccessible(true);\n ApplicationInfo info = (ApplicationInfo) fInfo.get(processRecord);\n Util.log(null, Log.WARN, \"String_Node_Str\" + uid + \"String_Node_Str\" + info.uid + \"String_Node_Str\" + info.packageName);\n return info.uid;\n } catch (Throwable ex) {\n Util.bug(null, ex);\n }\n return uid;\n}\n"
"private void jumpToQuestion(FormIndex questionIndex) {\n boolean newRepeat = false;\n if (questionIndex.isInForm() && !model.isIndexRelevant(questionIndex))\n throw new IllegalStateException();\n updatePins(questionIndex);\n IFormElement last = model.getForm().getChild(questionIndex);\n if (last instanceof GroupDef) {\n if (((GroupDef) last).getRepeat() && model.getForm().getInstance().resolveReference(model.getForm().getChildInstanceRef(questionIndex)) == null) {\n if (((GroupDef) last).noAddRemove) {\n boolean forwards = questionIndex.compareTo(activeQuestionIndex) > 0;\n if (forwards) {\n step(controller.stepToNextEvent());\n } else {\n step(controller.stepToPreviousEvent());\n }\n return;\n } else {\n newRepeat = true;\n }\n } else {\n boolean forwards = questionIndex.compareTo(activeQuestionIndex) > 0;\n if (forwards) {\n createHeaderForElement(questionIndex, false);\n step(controller.stepToNextEvent());\n } else {\n step(controller.stepToPreviousEvent());\n }\n return;\n }\n } else if (questionIndex.isInForm() && model.isIndexReadonly(questionIndex)) {\n boolean forwards = questionIndex.compareTo(activeQuestionIndex) > 0;\n if (forwards) {\n step(controller.stepToNextEvent());\n } else {\n step(controller.stepToPreviousEvent());\n }\n return;\n }\n if (questionIndex.compareTo(activeQuestionIndex) > 0) {\n if (activeQuestionIndex.isInForm()) {\n if (activeIsInterstitial) {\n removeFrame(activeQuestionIndex);\n } else {\n ((ChatterboxWidget) get(questionIndexes.indexOf(activeQuestionIndex, true))).setViewState(ChatterboxWidget.VIEW_COLLAPSED);\n }\n }\n FormIndex index = activeQuestionIndex;\n while (!index.equals(questionIndex)) {\n index = model.getForm().incrementIndex(index);\n putQuestion(index, index.equals(questionIndex), newRepeat);\n }\n } else if (questionIndex.compareTo(activeQuestionIndex) <= 0) {\n FormIndex index = activeQuestionIndex;\n while (!index.equals(questionIndex)) {\n removeFrame(index);\n index = model.getForm().decrementIndex(index);\n }\n if (questionIndex.isInForm()) {\n if (newRepeat) {\n putQuestion(questionIndex, true, newRepeat);\n } else {\n ((ChatterboxWidget) get(questionIndexes.indexOf(questionIndex, true))).setViewState(ChatterboxWidget.VIEW_EXPANDED);\n }\n }\n }\n if (!questionIndex.equals(activeQuestionIndex)) {\n activeQuestionIndex = questionIndex;\n if (activeQuestionIndex.isInForm()) {\n int index = questionIndexes.indexOf(activeQuestionIndex, true);\n ChatterboxWidget widget = (ChatterboxWidget) get(index);\n widget.setPinned(true);\n widget.showCommands();\n int prevheight = this.container.getScrollHeight();\n this.container.setScrollHeight(-1);\n this.focus(widget, true);\n this.container.setScrollHeight(prevheight);\n }\n progressBar.setMaxValue(model.getNumQuestions());\n progressBar.setValue(questionIndexes.size());\n }\n if (this.questionIndexes.size() <= 1) {\n this.removeCommand(backCommand);\n } else {\n addBackCommand();\n }\n babysitStyles();\n}\n"
"public void onClick(DialogInterface dialog, int which) {\n final EntityDelta delta = getSelectedEntityDelta();\n delta.markDeleted();\n bindTabs();\n bindHeader();\n}\n"
"public GDo leaveProjection(ScribNode parent, ScribNode child, Projector proj, ScribNode visited) throws ScribbleException {\n GDo gd = (GDo) visited;\n Role popped = proj.popSelf();\n Role self = proj.peekSelf();\n LDo projection = null;\n if (gd.roles.getRoles().contains(self)) {\n RoleArgList roleinstans = gd.roles.project(self);\n NonRoleArgList arginstans = gd.args.project(self);\n LProtocolNameNode target = Projector.makeProjectedFullNameNode(gd.getTargetProtocolDeclFullName(mc), popped);\n projection = AstFactoryImpl.FACTORY.LDo(roleinstans, arginstans, target);\n }\n proj.pushEnv(proj.popEnv().setProjection(projection));\n return (GDo) GSimpleInteractionNodeDel.super.leaveProjection(parent, child, proj, gd);\n}\n"
"public static void main(String[] args) {\n Map m = ConnectionDefinitionUtils.getConnectionDefinitionPropertiesAndDefaults(\"String_Node_Str\", \"String_Node_Str\");\n Set<Map.Entry> elements = m.entrySet();\n for (Map.Entry element : elements) {\n System.out.println(element.getKey() + \"String_Node_Str\" + element.getValue());\n }\n}\n"
"public void endElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord) {\n Object value = unmarshalRecord.getCharacters().toString();\n boolean isCDATA = unmarshalRecord.isBufferCDATA();\n unmarshalRecord.resetStringBuffer();\n XMLField toWrite = xmlField;\n if (xmlField.isCDATA() != isCDATA) {\n toWrite = new XMLField(xmlField.getName());\n toWrite.setNamespaceResolver(xmlField.getNamespaceResolver());\n toWrite.setIsCDATA(isCDATA);\n }\n XMLConversionManager xmlConversionManager = (XMLConversionManager) unmarshalRecord.getSession().getDatasourcePlatform().getConversionManager();\n if (unmarshalRecord.getTypeQName() != null) {\n Class typeClass = xmlField.getJavaClass(unmarshalRecord.getTypeQName());\n value = xmlConversionManager.convertObject(value, typeClass, unmarshalRecord.getTypeQName());\n } else {\n value = unmarshalRecord.getXMLReader().convertValueBasedOnSchemaType(xmlField, value, xmlConversionManager, unmarshalRecord);\n }\n if (null == unmarshalRecord.getTransformationRecord()) {\n unmarshalRecord.setTransformationRecord(new XMLTransformationRecord(\"String_Node_Str\", unmarshalRecord));\n }\n unmarshalRecord.getTransformationRecord().put(toWrite, value);\n}\n"
"private void updateReltable(final Element elem) {\n final String hrefValue = elem.getAttribute(ATTRIBUTE_NAME_HREF);\n if (hrefValue.length() != 0) {\n if (changeTable.containsKey(resolveFile(filePath, hrefValue).getPath())) {\n String resulthrefValue = null;\n final String fragment = getFragment(hrefValue);\n if (fragment != null) {\n resulthrefValue = getRelativeUnixPath(filePath + UNIX_SEPARATOR + FILE_NAME_STUB_DITAMAP, resolveFile(filePath, hrefValue).getPath()) + fragment;\n } else {\n resulthrefValue = getRelativeUnixPath(filePath + UNIX_SEPARATOR + FILE_NAME_STUB_DITAMAP, resolveFile(filePath, hrefValue).getPath());\n }\n elem.setAttribute(ATTRIBUTE_NAME_HREF, resulthrefValue);\n }\n }\n final NodeList children = elem.getChildNodes();\n for (int i = 0; i < children.getLength(); i++) {\n final Node current = children.item(i);\n if (current.getNodeType() == Node.ELEMENT_NODE) {\n final Element currentElem = (Element) current;\n final String classValue = currentElem.getAttribute(ATTRIBUTE_NAME_CLASS);\n if (MAP_TOPICREF.matches(classValue)) {\n }\n }\n }\n}\n"
"public void startRequest(DIRRequest rq) {\n try {\n final service_registerRequest request = (service_registerRequest) rq.getRequestMessage();\n final ServiceRegistry reg = request.getService();\n byte[] data = database.directLookup(DIRRequestDispatcher.DB_NAME, DIRRequestDispatcher.INDEX_ID_SERVREG, reg.getUuid().getBytes());\n long currentVersion = 0;\n if (data != null) {\n ServiceRegistry dbData = new ServiceRegistry();\n ReusableBuffer buf = ReusableBuffer.wrap(data);\n dbData.deserialize(buf);\n currentVersion = dbData.getVersion();\n }\n if (reg.getVersion() != currentVersion) {\n rq.sendException(new ConcurrentModificationException());\n return;\n }\n currentVersion++;\n reg.setVersion(currentVersion);\n reg.setLast_updated(System.currentTimeMillis() / 1000l);\n final int dataSize = reg.calculateSize();\n ONCRPCBufferWriter writer = new ONCRPCBufferWriter(dataSize);\n reg.serialize(writer);\n writer.flip();\n assert (writer.getBuffers().size() == 1);\n byte[] newData = writer.getBuffers().get(0).array();\n writer.freeBuffers();\n BabuDBInsertGroup ig = database.createInsertGroup(DIRRequestDispatcher.DB_NAME);\n ig.addInsert(DIRRequestDispatcher.INDEX_ID_SERVREG, reg.getUuid().getBytes(), newData);\n database.directInsert(ig);\n service_registerResponse response = new service_registerResponse(currentVersion);\n rq.sendSuccess(response);\n } catch (BabuDBException ex) {\n Logging.logMessage(Logging.LEVEL_ERROR, this, ex);\n rq.sendInternalServerError(ex);\n } catch (Throwable th) {\n Logging.logMessage(Logging.LEVEL_ERROR, this, th);\n rq.sendInternalServerError(th);\n }\n}\n"
"public boolean isDone() {\n return super.isDone();\n}\n"
"static void deleteInstances(List<PullRequestData> pullRequestDataList, GHPullRequest pullRequest) {\n Set<PullRequestInstance> prInstances = new HashSet<PullRequestInstance>();\n for (PullRequestData prData : pullRequestDataList) {\n prInstances.addAll(prData.getInstances());\n }\n List<String> terminatingInstanceURLs = new ArrayList<String>();\n for (PullRequestInstance instance : prInstances) {\n Client client = ClientCache.getClient(instance.cloud);\n if (client != null) {\n boolean instanceExists = true;\n try {\n LOGGER.info(MessageFormat.format(\"String_Node_Str\", client.getInstanceUrl(instance.id), pullRequest.getUrl()));\n monitor = client.terminate(instance.id);\n } catch (ClientException ex) {\n if (ex.getStatusCode() == HttpStatus.SC_CONFLICT) {\n try {\n monitor = client.forceTerminate(instance.id);\n } catch (IOException ex1) {\n LOGGER.log(Level.SEVERE, MessageFormat.format(\"String_Node_Str\", instance.id), ex1);\n }\n } else if (ex.getStatusCode() == HttpStatus.SC_NOT_FOUND) {\n LOGGER.info(MessageFormat.format(\"String_Node_Str\", client.getInstanceUrl(instance.id)));\n } else {\n LOGGER.log(Level.SEVERE, MessageFormat.format(\"String_Node_Str\", instance.id), ex);\n }\n } catch (IOException ex) {\n LOGGER.log(Level.SEVERE, MessageFormat.format(\"String_Node_Str\", instance.id), ex);\n }\n if (monitor != null) {\n Jenkins.getInstance().getExtensionList(ElasticBoxExecutor.Workload.class).get(DeleteInstancesWorkload.class).add(instance);\n terminatingInstanceURLs.add(monitor.getResourceUrl());\n }\n }\n }\n if (!terminatingInstanceURLs.isEmpty()) {\n try {\n pullRequest.comment(MessageFormat.format(\"String_Node_Str\", StringUtils.join(terminatingInstanceURLs, \"String_Node_Str\")));\n } catch (IOException ex) {\n LOGGER.log(Level.SEVERE, MessageFormat.format(\"String_Node_Str\", pullRequest.getUrl(), ex));\n }\n }\n}\n"
"public String toString() {\n final StringBuffer buf = new StringBuffer(\"String_Node_Str\");\n String tType = \"String_Node_Str\";\n if (transformType == 0) {\n tType = \"String_Node_Str\";\n } else if (transformType == 1) {\n tType = \"String_Node_Str\";\n } else if (transformType == 2) {\n tType = \"String_Node_Str\";\n }\n buf.append(\"String_Node_Str\" + tType);\n buf.append(\"String_Node_Str\").append(getOffset());\n buf.append(\"String_Node_Str\").append(getLengthOfReplacedText()).append(\"String_Node_Str\").append(getText()).append(\"String_Node_Str\");\n buf.append(\"String_Node_Str\").append(getLocalOperationsCount());\n buf.append(\"String_Node_Str\").append(getRemoteOperationsCount()).append(\"String_Node_Str\");\n return buf.toString();\n}\n"
"public void onListItemClick(ListView l, View v, int position, long id) {\n if (mIsScanRunning) {\n return;\n }\n String url = mNearbyDeviceAdapter.getItem(position);\n String urlToNavigateTo = url;\n if (mUrlToUrlMetadata.get(url) != null) {\n String siteUrl = mUrlToUrlMetadata.get(url).siteUrl;\n if (siteUrl != null) {\n urlToNavigateTo = siteUrl;\n }\n }\n openUrlInBrowser(urlToNavigateTo);\n}\n"
"public void run() {\n while (true) {\n try {\n byte[] buf = new byte[256];\n DatagramPacket packet = new DatagramPacket(buf, buf.length);\n socket.receive(packet);\n Packet type = Packet.getType(packet.getData());\n switch(type) {\n case SAYS:\n Packet.Says says = new Packet.Says(packet.getData());\n Integer lastSeqNum = lastSeqNumsReceived.get(says.nickname);\n if (lastSeqNum == null || lastSeqNum <= says.sequenceNumber) {\n System.out.println(Utils.boxify(says));\n lastSeqNumsReceived.put(says.nickname, lastSeqNum);\n }\n packet = new DatagramPacket(buf, buf.length, packet.getAddress(), packet.getPort());\n socket.send(packet);\n break;\n case YEAH:\n sender.recievedYeah(new Packet.Yeah(packet.getData()));\n break;\n case GDAY:\n manager.receivedGday(new Peer(packet.getAddress(), packet.getPort()), new Packet.GDay(packet.getData()));\n break;\n case GBYE:\n manager.recievedGbye(new Packet.GBye(packet.getData()));\n break;\n default:\n System.err.println(\"String_Node_Str\" + packet.getData().toString());\n }\n } catch (IOException e) {\n e.printStackTrace();\n break;\n }\n }\n socket.close();\n}\n"
"public void selectionChanged(IWorkbenchPart part, ISelection selection) {\n clearContainer();\n boolean isNeedcreateDefault = true;\n try {\n if (part instanceof DQRespositoryView) {\n if (selection.equals(currentSelection)) {\n return;\n } else {\n currentSelection = selection;\n }\n StructuredSelection sel = (StructuredSelection) selection;\n Object fe = sel.getFirstElement();\n if (fe instanceof AnalysisRepNode || fe instanceof ReportRepNode || fe instanceof SysIndicatorDefinitionRepNode || fe instanceof PatternRepNode || fe instanceof RuleRepNode) {\n fe = ((IRepositoryNode) fe).getObject();\n }\n if (fe instanceof IFile) {\n IFile fe2 = (IFile) fe;\n isNeedcreateDefault = createFileDetail(isNeedcreateDefault, fe2);\n } else if (fe instanceof IRepositoryViewObject) {\n isNeedcreateDefault = createFileDetail(isNeedcreateDefault, (IRepositoryViewObject) fe);\n } else if (fe instanceof DBConnectionRepNode) {\n DBConnectionRepNode connNode = (DBConnectionRepNode) fe;\n ConnectionItem connectionItem = (ConnectionItem) connNode.getObject().getProperty().getItem();\n createDataProviderDetail(connectionItem);\n isNeedcreateDefault = false;\n } else if (fe instanceof DBCatalogRepNode) {\n DBCatalogRepNode catalogNode = (DBCatalogRepNode) fe;\n Catalog catalog = catalogNode.getCatalog();\n createTdCatalogDetail(catalog);\n isNeedcreateDefault = false;\n } else if (fe instanceof DBSchemaRepNode) {\n DBSchemaRepNode schemaNode = (DBSchemaRepNode) fe;\n Schema schema = schemaNode.getSchema();\n createTdSchemaDetail(schema);\n isNeedcreateDefault = false;\n } else if (fe instanceof DBTableRepNode) {\n DBTableRepNode tableNode = (DBTableRepNode) fe;\n if (!DQRepositoryNode.isOnFilterring()) {\n tableNode.getChildren().get(0).getChildren();\n }\n TdTable tdTable = tableNode.getTdTable();\n createTableDetail(tdTable);\n isNeedcreateDefault = false;\n } else if (fe instanceof DBViewRepNode) {\n DBViewRepNode viewNode = (DBViewRepNode) fe;\n if (!DQRepositoryNode.isOnFilterring()) {\n viewNode.getChildren().get(0).getChildren();\n }\n createNameCommentDetail(viewNode.getTdView());\n isNeedcreateDefault = false;\n } else if (fe instanceof DBColumnRepNode) {\n DBColumnRepNode columnNode = (DBColumnRepNode) fe;\n TdColumn column = columnNode.getTdColumn();\n createTdColumn(column);\n isNeedcreateDefault = false;\n } else if (fe instanceof IEcosComponent) {\n IEcosComponent component = (IEcosComponent) fe;\n createEcosComponent(component);\n isNeedcreateDefault = false;\n } else if (fe instanceof RegularExpression) {\n RegularExpression regularExpression = (RegularExpression) fe;\n createRegularExpression(regularExpression);\n isNeedcreateDefault = false;\n } else if (fe instanceof PatternLanguageRepNode) {\n PatternLanguageRepNode pattLangNode = (PatternLanguageRepNode) fe;\n createRegularExpression(pattLangNode.getRegularExpression());\n isNeedcreateDefault = false;\n } else if (fe instanceof SourceFileRepNode) {\n IPath filePath = WorkbenchUtils.getFilePath((SourceFileRepNode) fe);\n IFile file = ResourceManager.getRootProject().getFile(filePath);\n createSqlFileDetail(file);\n } else if (fe instanceof ExchangeComponentRepNode) {\n IEcosComponent ecosComponent = ((ExchangeComponentRepNode) fe).getEcosComponent();\n IEcosComponent component = ecosComponent;\n createEcosComponent(component);\n isNeedcreateDefault = false;\n } else if (fe instanceof MDMConnectionRepNode) {\n MDMConnectionRepNode mdmNode = (MDMConnectionRepNode) fe;\n MDMConnection mdmConnection = mdmNode.getMdmConnection();\n createDataProviderDetail(mdmConnection);\n isNeedcreateDefault = false;\n } else if (fe instanceof DFConnectionRepNode) {\n DFConnectionRepNode dfNode = (DFConnectionRepNode) fe;\n DelimitedFileConnection dfConnection = dfNode.getDfConnection();\n createDFconnectionName(dfNode.getObject().getLabel());\n createDataProviderDetail(dfConnection);\n isNeedcreateDefault = false;\n }\n if (PluginChecker.isTDQLoaded()) {\n if (fe instanceof EObject) {\n createTechnicalDetail((EObject) fe);\n } else if (fe instanceof IFile) {\n createTechnicalDetail((IFile) fe);\n } else if (fe instanceof IRepositoryViewObject) {\n createTechnicalDetail((IRepositoryViewObject) fe);\n } else {\n createExtDefault();\n }\n }\n if (!scomp.isDisposed()) {\n scomp.setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));\n composite.layout();\n }\n } else if (part instanceof CommonFormEditor) {\n CommonFormEditor editor = (CommonFormEditor) part;\n IEditorInput editorInput = editor.getEditorInput();\n if (editorInput instanceof IFileEditorInput) {\n IFileEditorInput input = (IFileEditorInput) editorInput;\n IFile file = input.getFile();\n isNeedcreateDefault = createFileDetail(isNeedcreateDefault, file);\n }\n }\n if (isNeedcreateDefault) {\n createDefault();\n }\n if (!gContainer.isDisposed()) {\n gContainer.layout();\n if (tContainer != null) {\n tContainer.layout();\n }\n }\n } catch (MissingDriverException e) {\n if (PluginChecker.isOnlyTopLoaded()) {\n MessageDialog.openWarning(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), DefaultMessagesImpl.getString(\"String_Node_Str\"), e.getErrorMessage());\n } else {\n log.error(e);\n }\n }\n}\n"
"private void _init() {\n try {\n Scheduler scheduler = new JoglScheduler(workspace());\n setScheduler(scheduler);\n } catch (Exception ex) {\n throw new InternalErrorException(this, ex, \"String_Node_Str\");\n }\n try {\n iterationInterval = new Parameter(this, \"String_Node_Str\");\n iterationInterval.setExpression(\"String_Node_Str\");\n iterationInterval.setTypeEquals(new ArrayType(BaseType.INT, 2));\n iterationTimeLowerBound = new Parameter(this, \"String_Node_Str\", new IntToken(33));\n iterationTimeLowerBound.setTypeEquals(BaseType.INT);\n } catch (Throwable throwable) {\n throw new InternalErrorException(this, throwable, \"String_Node_Str\");\n }\n try {\n pushMatrix = new PushMatrix(this);\n popMatrix = new PopMatrix(this);\n } catch (Throwable throwable) {\n throw new InternalErrorException(this, throwable, \"String_Node_Str\");\n }\n _reset();\n}\n"
"public void run() {\n boolean success = false;\n try {\n LoggingContextAccessor.setLoggingContext(context.getLoggingContext());\n LOG.info(\"String_Node_Str\", context.toString(), Arrays.toString(sparkSubmitArgs));\n ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader();\n Thread.currentThread().setContextClassLoader(conf.getClassLoader());\n try {\n SparkProgramWrapper.setSparkProgramRunning(true);\n SparkSubmit.main(sparkSubmitArgs);\n } catch (Exception e) {\n LOG.error(\"String_Node_Str\", context.toString(), e);\n } finally {\n success = SparkProgramWrapper.isSparkProgramSuccessful();\n SparkProgramWrapper.setSparkProgramRunning(false);\n Thread.currentThread().setContextClassLoader(oldClassLoader);\n }\n } catch (Exception e) {\n LOG.warn(\"String_Node_Str\", e);\n throw Throwables.propagate(e);\n } finally {\n stopController(success, context, job, tx);\n try {\n dependencyJar.delete();\n } catch (IOException e) {\n LOG.warn(\"String_Node_Str\", dependencyJar.toURI());\n }\n try {\n jobJarCopy.delete();\n } catch (IOException e) {\n LOG.warn(\"String_Node_Str\", jobJarCopy.toURI());\n }\n }\n}\n"
"public void renderInfoArea(GL2 gl, Vec3f vecLowerLeft, boolean bFirstTime, float fZValue) {\n String sCurrent;\n float fXLowerLeft = vecLowerLeft.x();\n float fYLowerLeft = vecLowerLeft.y();\n int iCount = 0;\n while (iCount < 2) {\n if (iCount == 0) {\n gl.glColor4fv(InfoAreaRenderStyle.INFO_AREA_COLOR, 0);\n gl.glBegin(GL2.GL_POLYGON);\n } else {\n gl.glColor4fv(InfoAreaRenderStyle.INFO_AREA_BORDER_COLOR, 0);\n gl.glLineWidth(InfoAreaRenderStyle.INFO_AREA_BORDER_WIDTH);\n gl.glBegin(GL2.GL_LINE_STRIP);\n }\n gl.glVertex3f(fXLowerLeft, fYLowerLeft, fZValue);\n gl.glVertex3f(fXLowerLeft + fWidth, fYLowerLeft, fZValue);\n gl.glVertex3f(fXLowerLeft + fWidth, fYLowerLeft + fHeight, fZValue);\n gl.glVertex3f(fXLowerLeft, fYLowerLeft + fHeight, fZValue);\n if (iCount == 1) {\n gl.glVertex3f(fXLowerLeft, fYLowerLeft, fZValue);\n }\n gl.glEnd();\n iCount++;\n }\n textRenderer.setColor(1f, 1f, 1f, 1);\n float fYUpperLeft = fYLowerLeft + fHeight;\n float fNextLineHeight = fYUpperLeft;\n textRenderer.begin3DRendering();\n Iterator<String> contentIterator = sContent.iterator();\n iCount = 0;\n float fFontScaling = 0.01f;\n while (contentIterator.hasNext()) {\n if (iCount == 1) {\n fFontScaling = renderStyle.getSmallFontScalingFactor();\n }\n sCurrent = contentIterator.next();\n fNextLineHeight -= (float) textRenderer.getBounds(sCurrent).getHeight() * fFontScaling + fSpacing;\n textRenderer.draw3D(sCurrent, fXLowerLeft + fSpacing, fNextLineHeight, fZValue + 0.001f, fFontScaling);\n iCount++;\n }\n textRenderer.end3DRendering();\n if (miniView != null) {\n miniView.render(gl, fXLowerLeft + fTextWidth + fSpacing, fYLowerLeft + fSpacing, 0);\n }\n}\n"
"public static List<String> prune(List<String> terms, boolean ignoreSymbols, boolean ignoreDigits, boolean lowercase, int minChar, int maxChar, int minTokens, int maxTokens) {\n List<String> result = new ArrayList<>();\n for (String term : terms) {\n if (ignoreDigits)\n term = term.replaceAll(digitsPattern, \"String_Node_Str\").replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n if (ignoreSymbols)\n term = term.replaceAll(symbolsPattern, \"String_Node_Str\").replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n int start = 0, end = term.length();\n for (int i = 0; i < term.length(); i++) {\n if (Character.isLetterOrDigit(term.charAt(i))) {\n start = i;\n break;\n }\n }\n for (int i = term.length() - 1; i > -1; i--) {\n if (Character.isLetterOrDigit(term.charAt(i))) {\n end = i + 1;\n break;\n }\n }\n term = term.substring(start, end).trim();\n if (term.length() >= minChar && term.length() <= maxChar) {\n int tokens = term.split(\"String_Node_Str\").length;\n if (tokens >= minTokens && tokens <= maxTokens)\n if (lowercase) {\n result.add(term.toLowerCase());\n } else {\n result.add(term);\n }\n }\n }\n return result;\n}\n"
"private void setFilters(Intent intent) {\n currentDistanceInKilometers = intent.getIntExtra(ActivityFilter.RESULT_DISTANCE, ActivityFilter.DEFAULT_DISTANCE_IN_KILOMETERS);\n state.filters = intent.getStringArrayExtra(ActivityFilter.RESULT_FILTER_ARRAY);\n Log.d(TAG, \"String_Node_Str\" + currentDistanceInKilometers + \"String_Node_Str\" + Arrays.toString(state.filters));\n}\n"
"private void refreshLineChart() {\n final LineData data = new LineData(xLineVals1);\n Calendar calendar = Calendar.getInstance();\n mRecordManager.getYearRecordDetail(calendar.get(Calendar.YEAR), new Handler() {\n\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n List<LineChartDo> list = (List<LineChartDo>) msg.obj;\n data.addDataSet(getLineDateSet(list, \"String_Node_Str\", getResources().getColor(R.color.accent_red), 0));\n data.addDataSet(getLineDateSet(list, \"String_Node_Str\", getResources().getColor(R.color.accent_green), 1));\n data.addDataSet(getLineDateSet(list, \"String_Node_Str\", getResources().getColor(R.color.accent_blue), 2));\n mLineChart.setData(data);\n mLineChart.animateXY(500, 500);\n }\n });\n}\n"
"private List<UpdateResult> checkNodePropertiesFromRepository(final Node node, boolean onlySimpleShow) {\n if (node == null) {\n return Collections.emptyList();\n }\n List<UpdateResult> propertiesResults = new ArrayList<UpdateResult>();\n String propertyType = (String) node.getPropertyValue(EParameterName.PROPERTY_TYPE.getName());\n if (propertyType != null) {\n if (propertyType.equals(EmfComponent.REPOSITORY)) {\n String propertyValue = (String) node.getPropertyValue(EParameterName.REPOSITORY_PROPERTY_TYPE.getName());\n if (node.getComponent().getName().startsWith(\"String_Node_Str\")) {\n if (propertyValue.contains(\"String_Node_Str\")) {\n propertyValue = propertyValue.split(\"String_Node_Str\")[0];\n }\n }\n IRepositoryViewObject lastVersion = UpdateRepositoryUtils.getRepositoryObjectById(propertyValue);\n UpdateCheckResult result = null;\n Connection repositoryConnection = null;\n RulesItem repositoryRulesItem = null;\n LinkRulesItem repositoryLinkRulesItem = null;\n String source = null;\n Item item = null;\n if (lastVersion != null) {\n item = lastVersion.getProperty().getItem();\n if (item != null && item instanceof ConnectionItem) {\n source = UpdateRepositoryUtils.getRepositorySourceName(item);\n repositoryConnection = ((ConnectionItem) item).getConnection();\n }\n if (item != null && item instanceof FileItem) {\n if (item instanceof RulesItem) {\n repositoryRulesItem = (RulesItem) item;\n }\n }\n if (item != null && item instanceof LinkRulesItem) {\n repositoryLinkRulesItem = (LinkRulesItem) item;\n }\n }\n if (repositoryConnection != null) {\n boolean sameValues = true;\n boolean isXsdPath = false;\n if (repositoryConnection instanceof XmlFileConnectionImpl) {\n String filePath = ((XmlFileConnectionImpl) repositoryConnection).getXmlFilePath();\n if (filePath != null) {\n if (XmlUtil.isXSDFile(filePath)) {\n isXsdPath = true;\n }\n }\n }\n boolean needBuildIn = false;\n if (repositoryConnection instanceof SalesforceSchemaConnection && !((SalesforceSchemaConnection) repositoryConnection).isUseCustomModuleName()) {\n IElementParameter param = node.getElementParameter(\"String_Node_Str\");\n if (param != null) {\n boolean found = false;\n SalesforceSchemaConnection salesforceConnection = (SalesforceSchemaConnection) repositoryConnection;\n List<SalesforceModuleUnit> units = salesforceConnection.getModules();\n for (SalesforceModuleUnit unit : units) {\n if (unit.getLabel() != null && unit.getLabel().equals(param.getValue())) {\n found = true;\n break;\n }\n }\n if (!found) {\n result = new UpdateCheckResult(node);\n result.setResult(EUpdateItemType.NODE_PROPERTY, EUpdateResult.BUIL_IN);\n needBuildIn = true;\n }\n }\n }\n for (IElementParameter param : node.getElementParameters()) {\n if (needBuildIn) {\n break;\n }\n String repositoryValue = param.getRepositoryValue();\n if ((repositoryValue != null) && (param.isShow(node.getElementParameters()) || (node instanceof INode && ((INode) node).getComponent().getName().equals(\"String_Node_Str\")) || (node instanceof INode && ((INode) node).getComponent().getName().equals(\"String_Node_Str\")))) {\n if ((param.getFieldType().equals(EParameterFieldType.FILE) && isXsdPath) || (repositoryConnection instanceof SalesforceSchemaConnection && \"String_Node_Str\".equals(repositoryValue) && !((SalesforceSchemaConnection) repositoryConnection).isUseCustomModuleName())) {\n continue;\n }\n IMetadataTable table = null;\n if (!node.getMetadataList().isEmpty()) {\n table = node.getMetadataList().get(0);\n }\n Object objectValue = RepositoryToComponentProperty.getValue(repositoryConnection, repositoryValue, table);\n if (objectValue == null || \"String_Node_Str\".equals(objectValue)) {\n if (GlobalServiceRegister.getDefault().isServiceRegistered(IESBService.class)) {\n IESBService service = (IESBService) GlobalServiceRegister.getDefault().getService(IESBService.class);\n if (service != null) {\n objectValue = service.getValue(item, repositoryValue, node);\n }\n }\n }\n if (param.getName().equals(EParameterName.CDC_TYPE_MODE.getName()) && item instanceof DatabaseConnectionItem) {\n if (PluginChecker.isCDCPluginLoaded()) {\n ICDCProviderService service = (ICDCProviderService) GlobalServiceRegister.getDefault().getService(ICDCProviderService.class);\n if (service != null) {\n try {\n List<IRepositoryViewObject> all;\n all = CorePlugin.getDefault().getProxyRepositoryFactory().getAll(ERepositoryObjectType.METADATA_CONNECTIONS);\n for (IRepositoryViewObject obj : all) {\n Item tempItem = obj.getProperty().getItem();\n if (tempItem instanceof DatabaseConnectionItem) {\n String cdcLinkId = service.getCDCConnectionLinkId((DatabaseConnectionItem) tempItem);\n if (cdcLinkId != null && item.getProperty().getId().equals(cdcLinkId)) {\n objectValue = RepositoryToComponentProperty.getValue(((DatabaseConnectionItem) tempItem).getConnection(), repositoryValue, node.getMetadataList().get(0));\n break;\n }\n }\n }\n } catch (PersistenceException e) {\n ExceptionHandler.process(e);\n }\n }\n }\n }\n Object value = param.getValue();\n if (objectValue != null) {\n if ((param.getFieldType().equals(EParameterFieldType.CLOSED_LIST) && UpdatesConstants.TYPE.equals(param.getRepositoryValue()))) {\n boolean found = false;\n String[] list = param.getListRepositoryItems();\n for (int i = 0; (i < list.length) && (!found); i++) {\n if (objectValue.equals(list[i])) {\n found = true;\n }\n }\n if (!found) {\n sameValues = false;\n }\n } else {\n if (param.getFieldType().equals(EParameterFieldType.TABLE)) {\n List<Map<String, Object>> oldList = (List<Map<String, Object>>) value;\n String name = param.getName();\n if (\"String_Node_Str\".equals(name) || \"String_Node_Str\".equals(name) || \"String_Node_Str\".equals(name) && !oldList.isEmpty() && objectValue instanceof List) {\n List objectList = (List) objectValue;\n if (oldList.size() != objectList.size()) {\n sameValues = false;\n } else {\n for (int i = 0; i < oldList.size(); i++) {\n Map<String, Object> oldMap = oldList.get(i);\n Map<String, Object> objectMap = (Map<String, Object>) objectList.get(i);\n if (oldMap.get(\"String_Node_Str\").equals(objectMap.get(\"String_Node_Str\")) && oldMap.get(\"String_Node_Str\").equals(objectMap.get(\"String_Node_Str\")) && ((oldMap.get(\"String_Node_Str\") == null && objectMap.get(\"String_Node_Str\") == null) || (oldMap.get(\"String_Node_Str\") != null && objectMap.get(\"String_Node_Str\") != null && oldMap.get(\"String_Node_Str\").equals(objectMap.get(\"String_Node_Str\")))) && ((oldMap.get(\"String_Node_Str\") == null && objectMap.get(\"String_Node_Str\") == null) || (oldMap.get(\"String_Node_Str\") != null && oldMap.get(\"String_Node_Str\") != null && oldMap.get(\"String_Node_Str\").equals(objectMap.get(\"String_Node_Str\"))))) {\n sameValues = true;\n } else {\n sameValues = false;\n break;\n }\n }\n }\n } else if (param.getName().equals(\"String_Node_Str\") && oldList != null && objectValue instanceof List) {\n List repList = (List) objectValue;\n if (oldList.size() == repList.size()) {\n for (Map<String, Object> line : oldList) {\n final String sheetName = \"String_Node_Str\";\n Object oldValue = line.get(sheetName);\n if (oldValue instanceof String && repList.get(0) instanceof Map) {\n boolean found = false;\n for (Map map : (List<Map>) repList) {\n Object repValue = map.get(sheetName);\n if (oldValue.equals(repValue)) {\n found = true;\n break;\n }\n }\n if (!found) {\n sameValues = false;\n break;\n }\n }\n }\n } else {\n sameValues = false;\n }\n } else if (param.getName().equals(\"String_Node_Str\") && oldList != null) {\n List objectList = (List) objectValue;\n if (oldList.size() != objectList.size()) {\n sameValues = false;\n } else {\n for (int i = 0; i < oldList.size(); i++) {\n Map<String, Object> oldMap = oldList.get(i);\n Map<String, Object> objectMap = (Map<String, Object>) objectList.get(i);\n if (oldMap.get(\"String_Node_Str\").equals(objectMap.get(\"String_Node_Str\"))) {\n sameValues = true;\n } else {\n sameValues = false;\n break;\n }\n }\n }\n }\n } else if (value instanceof String && objectValue instanceof String) {\n if (!value.equals(\"String_Node_Str\") && !value.equals(objectValue)) {\n if (repositoryConnection instanceof XmlFileConnection) {\n if ((((XmlFileConnection) repositoryConnection).getXmlFilePath().endsWith(\"String_Node_Str\") || ((XmlFileConnection) repositoryConnection).getXmlFilePath().endsWith(\"String_Node_Str\")) && repositoryValue.equals(\"String_Node_Str\")) {\n } else {\n sameValues = false;\n }\n } else {\n sameValues = false;\n }\n }\n if (repositoryValue.equals(\"String_Node_Str\")) {\n IElementParameter paramEncoding = param.getChildParameters().get(EParameterName.ENCODING_TYPE.getName());\n if (paramEncoding != null) {\n if (repositoryConnection instanceof FTPConnection) {\n if (((FTPConnection) repositoryConnection).getEcoding() != null) {\n paramEncoding.setValue(((FTPConnection) repositoryConnection).getEcoding());\n } else {\n paramEncoding.setValue(EmfComponent.ENCODING_TYPE_CUSTOM);\n }\n } else {\n paramEncoding.setValue(EmfComponent.ENCODING_TYPE_CUSTOM);\n }\n }\n }\n } else if (value instanceof Boolean && objectValue instanceof Boolean) {\n sameValues = ((Boolean) value).equals((Boolean) objectValue);\n }\n }\n } else if (param.getFieldType().equals(EParameterFieldType.TABLE) && UpdatesConstants.XML_MAPPING.equals(repositoryValue)) {\n List<Map<String, Object>> newMaps = RepositoryToComponentProperty.getXMLMappingValue(repositoryConnection, node.getMetadataList());\n if ((value instanceof List) && newMaps != null) {\n List<Map<String, Object>> oldMaps = (List<Map<String, Object>>) value;\n if (oldMaps.size() != newMaps.size()) {\n sameValues = false;\n break;\n }\n for (int i = 0; i < newMaps.size() && sameValues; i++) {\n Map<String, Object> newmap = newMaps.get(i);\n Map<String, Object> oldmap = null;\n if (i < oldMaps.size()) {\n oldmap = oldMaps.get(i);\n }\n if (oldmap != null && sameValues) {\n Object o = newmap.get(UpdatesConstants.QUERY);\n if (o != null) {\n sameValues = newmap.get(UpdatesConstants.QUERY).equals(oldmap.get(UpdatesConstants.QUERY));\n } else {\n sameValues = oldmap.get(UpdatesConstants.QUERY) == null;\n }\n }\n if (newmap.get(UpdatesConstants.SCHEMA) != null) {\n if (!newmap.get(UpdatesConstants.SCHEMA).equals(newmap.get(UpdatesConstants.SCHEMA))) {\n oldmap = null;\n for (int j = 0; j < oldMaps.size(); j++) {\n Map<String, Object> m = oldMaps.get(j);\n if (newmap.get(UpdatesConstants.SCHEMA).equals(m.get(UpdatesConstants.SCHEMA))) {\n oldmap = m;\n }\n }\n }\n if (oldmap == null) {\n sameValues = false;\n } else {\n Object o = newmap.get(UpdatesConstants.MAPPING);\n if (o != null) {\n sameValues = o.equals(oldmap.get(UpdatesConstants.MAPPING));\n } else {\n sameValues = oldmap.get(UpdatesConstants.MAPPING) == null;\n }\n }\n }\n if (!sameValues) {\n break;\n }\n }\n }\n } else if (param.getFieldType().equals(EParameterFieldType.TABLE) && param.getName().equals(\"String_Node_Str\")) {\n objectValue = RepositoryToComponentProperty.getValue(repositoryConnection, param.getName(), node.getMetadataList().get(0));\n if (value == null) {\n sameValues = false;\n break;\n }\n if (objectValue == null) {\n sameValues = false;\n break;\n }\n List<Map<String, Object>> oldMaps = (List<Map<String, Object>>) value;\n List repList = (List) objectValue;\n if (oldMaps.size() == repList.size()) {\n for (Map<String, Object> line : oldMaps) {\n final String sheetName = \"String_Node_Str\";\n Object oldValue = line.get(sheetName);\n if (oldValue instanceof String && repList.get(0) instanceof String) {\n boolean found = false;\n for (String str : (List<String>) repList) {\n Object repValue = TalendTextUtils.addQuotes(str);\n if (oldValue.equals(repValue)) {\n found = true;\n break;\n }\n }\n if (!found) {\n sameValues = false;\n break;\n }\n }\n }\n } else {\n sameValues = false;\n }\n }\n }\n if (!sameValues) {\n break;\n }\n }\n if (onlySimpleShow || !sameValues) {\n result = new UpdateCheckResult(node);\n result.setResult(EUpdateItemType.NODE_PROPERTY, EUpdateResult.UPDATE, repositoryConnection, source);\n }\n for (IElementParameter param : node.getElementParameters()) {\n String repositoryValue = param.getRepositoryValue();\n if (param.isShow(node.getElementParameters()) && (repositoryValue != null) && (!param.getName().equals(EParameterName.PROPERTY_TYPE.getName())) && param.getFieldType() != EParameterFieldType.MEMO_SQL && !(\"String_Node_Str\".equals(node.getComponent().getName()) && \"String_Node_Str\".equals(param.getRepositoryValue())) && !(\"String_Node_Str\".equals(node.getComponent().getName()) && param.getName().equals(UpdatesConstants.MAPPING))) {\n param.setRepositoryValueUsed(true);\n param.setReadOnly(true);\n }\n }\n List<UpdateResult> contextResults = checkParameterContextMode(node.getElementParameters(), (ConnectionItem) lastVersion.getProperty().getItem(), null);\n if (contextResults != null) {\n propertiesResults.addAll(contextResults);\n }\n } else if (repositoryRulesItem != null) {\n boolean isFindRules = false;\n IElementParameter param = node.getElementParameter(EParameterName.REPOSITORY_PROPERTY_TYPE.getName());\n if (param != null) {\n isFindRules = true;\n }\n if (!isFindRules) {\n result = new UpdateCheckResult(node);\n result.setResult(EUpdateItemType.NODE_PROPERTY, EUpdateResult.BUIL_IN);\n }\n } else if (repositoryLinkRulesItem != null) {\n boolean isFindLinkRules = false;\n IElementParameter param = node.getElementParameter(EParameterName.REPOSITORY_PROPERTY_TYPE.getName());\n if (param != null) {\n isFindLinkRules = true;\n }\n if (!isFindLinkRules) {\n result = new UpdateCheckResult(node);\n result.setResult(EUpdateItemType.NODE_PROPERTY, EUpdateResult.BUIL_IN);\n }\n } else {\n result = new UpdateCheckResult(node);\n result.setResult(EUpdateItemType.NODE_PROPERTY, EUpdateResult.BUIL_IN);\n }\n if (result != null) {\n result.setJob(getProcess());\n setConfigrationForReadOnlyJob(result);\n propertiesResults.add(result);\n }\n }\n }\n return propertiesResults;\n}\n"
"public static <T extends SharedHashMap<Integer, CharSequence>> T newTcpSocketShmIntString(final byte identifier, final int serverPort, final InetSocketAddress... InetSocketAddress) throws IOException {\n final TcpReplicatorBuilder tcpReplicatorBuilder = new TcpReplicatorBuilder(serverPort, InetSocketAddress).heartBeatInterval(100);\n return (T) new SharedHashMapBuilder().entries(1000).identifier(identifier).tcpReplication(tcpReplicatorBuilder).entries(20000).create(getPersistenceFile(), Integer.class, CharSequence.class);\n}\n"
"public void setLocation(final Point location) {\n if (location == null || this.location.equals(location)) {\n return;\n }\n this.location = location;\n nodeLabel.setLocation(location);\n nodeError.setLocation(location);\n nodeProgressBar.setLocation(location);\n firePropertyChange(LOCATION, null, location);\n}\n"
"protected XMLDescriptor findReferenceDescriptor(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, Attributes atts, DatabaseMapping mapping, UnmarshalKeepAsElementPolicy policy) {\n XMLDescriptor returnDescriptor = null;\n if (atts != null) {\n XMLContext xmlContext = unmarshalRecord.getUnmarshaller().getXMLContext();\n String schemaType = null;\n if (unmarshalRecord.isNamespaceAware()) {\n schemaType = atts.getValue(XMLConstants.SCHEMA_INSTANCE_URL, XMLConstants.SCHEMA_TYPE_ATTRIBUTE);\n } else {\n schemaType = atts.getValue(XMLConstants.EMPTY_STRING, XMLConstants.SCHEMA_TYPE_ATTRIBUTE);\n }\n if (schemaType != null) {\n schemaType = schemaType.trim();\n if (schemaType.length() > 0) {\n XPathFragment frag = new XPathFragment();\n frag.setNamespaceAware(unmarshalRecord.isNamespaceAware());\n frag.setXPath(schemaType);\n QName qname = null;\n if (frag.hasNamespace()) {\n String prefix = frag.getPrefix();\n String url = unmarshalRecord.resolveNamespacePrefix(prefix);\n frag.setNamespaceURI(url);\n qname = new QName(url, frag.getLocalName());\n unmarshalRecord.setTypeQName(qname);\n } else {\n String url = unmarshalRecord.resolveNamespacePrefix(XMLConstants.EMPTY_STRING);\n if (null != url) {\n frag.setNamespaceURI(url);\n qname = new QName(url, frag.getLocalName());\n unmarshalRecord.setTypeQName(qname);\n }\n }\n returnDescriptor = xmlContext.getDescriptorByGlobalType(frag);\n if (returnDescriptor == null) {\n if (policy == null || (policy != null && policy != UnmarshalKeepAsElementPolicy.KEEP_UNKNOWN_AS_ELEMENT && policy != UnmarshalKeepAsElementPolicy.KEEP_ALL_AS_ELEMENT)) {\n Class theClass = (Class) ((XMLConversionManager) unmarshalRecord.getSession().getDatasourcePlatform().getConversionManager()).getDefaultXMLTypes().get(qname);\n if (theClass == null) {\n throw XMLMarshalException.unknownXsiTypeValue(schemaType, mapping);\n }\n }\n }\n }\n }\n }\n return returnDescriptor;\n}\n"
"public void createControl(final Composite parent) {\n container = new Composite(parent, SWT.NULL);\n final GridLayout layout = new GridLayout();\n container.setLayout(layout);\n nCols = 2;\n layout.numColumns = nCols;\n final Label label1 = new Label(container, SWT.NULL);\n if (!targetNode.isEditable())\n label1.setText(Messages.getString(\"String_Node_Str\"));\n else\n label1.setText(Messages.getString(\"String_Node_Str\"));\n label1.setToolTipText(Messages.getString(\"String_Node_Str\"));\n final Label libraryField = new Label(container, SWT.NULL | SWT.READ_ONLY);\n libraryField.setText(targetLib.getLabel() + \"String_Node_Str\" + targetLib.getVersion() + \"String_Node_Str\");\n libraryField.setToolTipText(Messages.getString(\"String_Node_Str\"));\n if (targetNode.getLibrary().getEditStatus().equals(NodeEditStatus.PATCH)) {\n label1.setText(Messages.getString(\"String_Node_Str\"));\n libraryField.setToolTipText(Messages.getString(\"String_Node_Str\"));\n }\n postCombo(Messages.getString(\"String_Node_Str\"));\n postCommonFields();\n final GridData gd = new GridData(GridData.FILL_HORIZONTAL);\n name.setLayoutData(gd);\n setControl(container);\n setPageComplete(false);\n}\n"
"public ArrayList<Property> getFieldPropertiesForClass(JavaClass cls, TypeInfo info, boolean onlyPublic) {\n ArrayList<Property> properties = new ArrayList<Property>();\n if (cls == null) {\n return properties;\n }\n boolean hasAnyAttribteProperty = false;\n for (Iterator<JavaField> fieldIt = cls.getDeclaredFields().iterator(); fieldIt.hasNext(); ) {\n JavaField nextField = fieldIt.next();\n if (!helper.isAnnotationPresent(nextField, XmlTransient.class)) {\n int modifiers = nextField.getModifiers();\n if (!Modifier.isStatic(modifiers) && !Modifier.isTransient(modifiers) && ((Modifier.isPublic(nextField.getModifiers()) && onlyPublic) || !onlyPublic)) {\n Property property = null;\n if (helper.isAnnotationPresent((JavaHasAnnotations) nextField, XmlElements.class)) {\n property = new ChoiceProperty(helper);\n property.setElement((JavaHasAnnotations) nextField);\n XmlElements xmlElements = (XmlElements) helper.getAnnotation(property.getElement(), XmlElements.class);\n XmlElement[] elements = xmlElements.value();\n ArrayList<Property> choiceProperties = new ArrayList<Property>(elements.length);\n for (int i = 0; i < elements.length; i++) {\n XmlElement next = elements[i];\n Property choiceProp = new Property();\n String name = next.name();\n String namespace = next.namespace();\n QName qName = null;\n if (name.equals(\"String_Node_Str\")) {\n name = nextField.getName();\n }\n if (!namespace.equals(\"String_Node_Str\")) {\n qName = new QName(namespace, name);\n } else {\n NamespaceInfo namespaceInfo = getNamespaceInfoForPackage(cls.getPackage());\n if (namespaceInfo.isElementFormQualified()) {\n qName = new QName(namespaceInfo.getNamespace(), name);\n } else {\n qName = new QName(name);\n }\n }\n choiceProp.setPropertyName(property.getPropertyName());\n Class typeClass = next.type();\n if (typeClass.equals(XmlElement.DEFAULT.class)) {\n JavaClass type = nextField.getResolvedType();\n if (isCollectionType(type)) {\n if (type.hasActualTypeArguments()) {\n JavaClass itemType = (JavaClass) type.getActualTypeArguments().toArray()[0];\n choiceProp.setType(itemType);\n } else {\n choiceProp.setType(helper.getJavaClass(\"String_Node_Str\"));\n }\n } else {\n choiceProp.setType(type);\n }\n } else {\n choiceProp.setType(helper.getJavaClass(next.type()));\n }\n choiceProp.setSchemaName(qName);\n choiceProp.setSchemaType(getSchemaTypeFor(helper.getJavaClass(next.type())));\n choiceProp.setElement(property.getElement());\n choiceProperties.add(choiceProp);\n }\n ((ChoiceProperty) property).setChoiceProperties(choiceProperties);\n } else if (helper.isAnnotationPresent((JavaHasAnnotations) nextField, XmlAnyElement.class)) {\n property = new AnyProperty(helper);\n property.setElement((JavaHasAnnotations) nextField);\n XmlAnyElement anyElement = (XmlAnyElement) helper.getAnnotation((JavaHasAnnotations) nextField, XmlAnyElement.class);\n ((AnyProperty) property).setLax(anyElement.lax());\n ((AnyProperty) property).setDomHandlerClass(anyElement.value());\n } else if (helper.isAnnotationPresent((JavaHasAnnotations) nextField, XmlElementRef.class) || helper.isAnnotationPresent((JavaHasAnnotations) nextField, XmlElementRefs.class)) {\n property = new ReferenceProperty(helper);\n property.setElement(nextField);\n XmlElementRef[] elementRefs;\n XmlElementRef ref = (XmlElementRef) helper.getAnnotation((JavaHasAnnotations) nextField, XmlElementRef.class);\n if (ref != null) {\n elementRefs = new XmlElementRef[] { ref };\n } else {\n XmlElementRefs refs = (XmlElementRefs) helper.getAnnotation((JavaHasAnnotations) nextField, XmlElementRefs.class);\n elementRefs = refs.value();\n info.setHasElementRefs(true);\n }\n for (XmlElementRef nextRef : elementRefs) {\n JavaClass type = nextField.getResolvedType();\n String typeName = type.getQualifiedName();\n property.setType(type);\n if (isCollectionType(property)) {\n if (type.hasActualTypeArguments()) {\n type = (JavaClass) type.getActualTypeArguments().toArray()[0];\n typeName = type.getQualifiedName();\n }\n }\n if (nextRef.type() != XmlElementRef.DEFAULT.class) {\n typeName = helper.getJavaClass(nextRef.type()).getQualifiedName();\n }\n ElementDeclaration referencedElement = this.xmlRootElements.get(typeName);\n if (referencedElement != null) {\n addReferencedElement((ReferenceProperty) property, referencedElement);\n } else {\n String name = nextRef.name();\n String namespace = nextRef.namespace();\n if (namespace.equals(\"String_Node_Str\")) {\n namespace = \"String_Node_Str\";\n }\n QName qname = new QName(namespace, name);\n referencedElement = this.globalElements.get(qname);\n if (referencedElement != null) {\n addReferencedElement((ReferenceProperty) property, referencedElement);\n } else {\n throw org.eclipse.persistence.exceptions.JAXBException.invalidElementRef(property.getPropertyName(), cls.getName());\n }\n }\n }\n } else {\n property = new Property(helper);\n property.setElement((JavaHasAnnotations) nextField);\n }\n JavaClass ptype = (JavaClass) nextField.getResolvedType();\n if (!helper.isAnnotationPresent(ptype, XmlTransient.class)) {\n property.setType(ptype);\n } else {\n JavaClass parent = ptype.getSuperclass();\n while (parent != null) {\n if (parent.getClass().getName().equals(\"String_Node_Str\")) {\n property.setType(parent);\n break;\n }\n if (!helper.isAnnotationPresent(parent, XmlTransient.class)) {\n property.setType(parent);\n break;\n }\n parent = parent.getSuperclass();\n }\n }\n if (helper.isAnnotationPresent(property.getElement(), XmlJavaTypeAdapter.class)) {\n XmlJavaTypeAdapter adapter = (XmlJavaTypeAdapter) helper.getAnnotation(property.getElement(), XmlJavaTypeAdapter.class);\n property.setAdapterClass(adapter.value());\n } else if (info.getAdaptersByClass().get(ptype) != null) {\n property.setAdapterClass(info.getAdapterClass(ptype));\n }\n if (property.hasAdapterClass()) {\n ptype = property.getValueType();\n }\n property.setGenericType(helper.getGenericType(nextField));\n property.setPropertyName(nextField.getName());\n if (helper.isAnnotationPresent(property.getElement(), XmlAttachmentRef.class) && areEquals(ptype, JAVAX_ACTIVATION_DATAHANDLER)) {\n property.setIsSwaAttachmentRef(true);\n property.setSchemaType(XMLConstants.SWA_REF_QNAME);\n } else if (areEquals(ptype, JAVAX_ACTIVATION_DATAHANDLER) || areEquals(ptype, byte[].class) || areEquals(ptype, Byte[].class) || areEquals(ptype, Image.class) || areEquals(ptype, Source.class) || areEquals(ptype, JAVAX_MAIL_INTERNET_MIMEMULTIPART)) {\n property.setIsMtomAttachment(true);\n property.setSchemaType(XMLConstants.BASE_64_BINARY_QNAME);\n }\n if (helper.isAnnotationPresent(property.getElement(), XmlMimeType.class)) {\n property.setMimeType(((XmlMimeType) helper.getAnnotation(property.getElement(), XmlMimeType.class)).value());\n }\n if (helper.isAnnotationPresent(property.getElement(), XmlSchemaType.class)) {\n XmlSchemaType schemaType = (XmlSchemaType) helper.getAnnotation(property.getElement(), XmlSchemaType.class);\n QName schemaTypeQname = new QName(schemaType.namespace(), schemaType.name());\n property.setSchemaType(schemaTypeQname);\n }\n if (helper.isAnnotationPresent(property.getElement(), XmlAttribute.class)) {\n property.setIsAttribute(true);\n property.setIsRequired(((XmlAttribute) helper.getAnnotation(property.getElement(), XmlAttribute.class)).required());\n }\n if (helper.isAnnotationPresent(property.getElement(), XmlAnyAttribute.class)) {\n if (hasAnyAttribteProperty) {\n throw org.eclipse.persistence.exceptions.JAXBException.multipleAnyAttributeMapping(cls.getName());\n }\n if (!ptype.getName().equals(\"String_Node_Str\")) {\n throw org.eclipse.persistence.exceptions.JAXBException.anyAttributeOnNonMap(property.getPropertyName());\n }\n property.setIsAttribute(true);\n hasAnyAttribteProperty = true;\n }\n if (helper.isAnnotationPresent(property.getElement(), XmlElement.class)) {\n property.setIsRequired(((XmlElement) helper.getAnnotation(property.getElement(), XmlElement.class)).required());\n }\n property.setSchemaName(getQNameForProperty(Introspector.decapitalize(nextField.getName()), nextField, getNamespaceInfoForPackage(cls.getPackage())));\n properties.add(property);\n }\n }\n }\n return properties;\n}\n"
"public void testOpExecutionerTransformOps() throws Exception {\n final DataBuffer.AllocationMode origAlloc = Nd4j.alloc;\n DefaultOpExecutioner opExec = (DefaultOpExecutioner) Nd4j.getExecutioner();\n List<Class<? extends TransformOp>> testClasses = new ArrayList<>();\n testClasses.add(AddOp.class);\n testClasses.add(CopyOp.class);\n testClasses.add(MulOp.class);\n testClasses.add(DivOp.class);\n testClasses.add(RDivOp.class);\n testClasses.add(RSubOp.class);\n testClasses.add(SubOp.class);\n testClasses.add(Tanh.class);\n testClasses.add(Sigmoid.class);\n testClasses.add(RectifedLinear.class);\n testClasses.add(SoftMax.class);\n int[] shape = { 30, 50 };\n for (DataBuffer.Type dtype : DataBuffer.Type.values()) {\n Nd4j.dtype = dtype;\n Nd4j.factory().setDType(dtype);\n Nd4j.getRandom().setSeed(12345);\n INDArray origFirst = Nd4j.rand(shape);\n INDArray origSecond = Nd4j.rand(shape);\n for (Class<? extends TransformOp> opClass : testClasses) {\n String msg = \"String_Node_Str\" + opClass.getName() + \"String_Node_Str\" + dtype;\n Constructor<? extends TransformOp> xyzConstructor = opClass.getConstructor(INDArray.class, INDArray.class, INDArray.class);\n DefaultOpExecutioner.setParallelThreshold(Integer.MAX_VALUE);\n Nd4j.alloc = DataBuffer.AllocationMode.HEAP;\n INDArray x1 = getCopyOf(origFirst, DataBuffer.AllocationMode.HEAP, dtype);\n INDArray y1 = getCopyOf(origSecond, DataBuffer.AllocationMode.HEAP, dtype);\n INDArray z1 = getCopyOf(origFirst, DataBuffer.AllocationMode.HEAP, dtype);\n TransformOp op = xyzConstructor.newInstance(x1, y1, z1);\n opExec.exec(op);\n assertEquals(x1, origFirst);\n assertEquals(y1, origSecond);\n INDArray x2 = getCopyOf(origFirst, DataBuffer.AllocationMode.HEAP, dtype);\n INDArray y2 = getCopyOf(origSecond, DataBuffer.AllocationMode.HEAP, dtype);\n op = xyzConstructor.newInstance(x2, y2, x2);\n opExec.exec(op);\n assertEquals(y2, origSecond);\n assertEquals(x2, z1);\n if (!op.isPassThrough()) {\n INDArray x1a = getCopyOf(origFirst, DataBuffer.AllocationMode.HEAP, dtype);\n INDArray y1a = getCopyOf(origSecond, DataBuffer.AllocationMode.HEAP, dtype);\n INDArray z1a = getCopyOf(origFirst, DataBuffer.AllocationMode.HEAP, dtype);\n op = xyzConstructor.newInstance(x1a, y1a, z1a);\n new TransformViaTensorDataBufferAction(op, Integer.MAX_VALUE, x1a, y1a, z1a).invoke();\n assertEquals(msg, x1a, origFirst);\n assertEquals(msg, y1a, origSecond);\n assertEquals(msg, z1a, z1);\n INDArray x2a = getCopyOf(origFirst, DataBuffer.AllocationMode.HEAP, dtype);\n INDArray y2a = getCopyOf(origSecond, DataBuffer.AllocationMode.HEAP, dtype);\n op = xyzConstructor.newInstance(x2a, y2a, x2a);\n new TransformViaTensorDataBufferTask(op, Integer.MAX_VALUE, x2a, y2a, x2a).invoke();\n assertEquals(msg, y2a, origSecond);\n assertEquals(msg, x2a, z1);\n }\n DefaultOpExecutioner.setParallelThreshold(5);\n Nd4j.alloc = DataBuffer.AllocationMode.HEAP;\n INDArray x3 = getCopyOf(origFirst, DataBuffer.AllocationMode.HEAP, dtype);\n INDArray y3 = getCopyOf(origSecond, DataBuffer.AllocationMode.HEAP, dtype);\n INDArray z3 = getCopyOf(origFirst, DataBuffer.AllocationMode.HEAP, dtype);\n op = xyzConstructor.newInstance(x3, y3, z3);\n opExec.exec(op);\n assertEquals(msg, x3, origFirst);\n assertEquals(msg, y3, origSecond);\n assertEquals(msg, z3, z1);\n INDArray x4 = getCopyOf(origFirst, DataBuffer.AllocationMode.HEAP, dtype);\n INDArray y4 = getCopyOf(origSecond, DataBuffer.AllocationMode.HEAP, dtype);\n op = xyzConstructor.newInstance(x4, y4, x4);\n opExec.exec(op);\n assertEquals(msg, y4, origSecond);\n assertEquals(msg, x4, z1);\n if (!op.isPassThrough()) {\n INDArray x3a = getCopyOf(origFirst, DataBuffer.AllocationMode.HEAP, dtype);\n INDArray y3a = getCopyOf(origSecond, DataBuffer.AllocationMode.HEAP, dtype);\n INDArray z3a = getCopyOf(origFirst, DataBuffer.AllocationMode.HEAP, dtype);\n op = xyzConstructor.newInstance(x3a, y3a, z3a);\n new TransformViaTensorDataBufferTask(op, 5, x3a, y3a, z3a).invoke();\n assertEquals(msg, x3a, origFirst);\n assertEquals(msg, y3a, origSecond);\n assertEquals(msg, z3a, z1);\n INDArray x4a = getCopyOf(origFirst, DataBuffer.AllocationMode.HEAP, dtype);\n INDArray y4a = getCopyOf(origSecond, DataBuffer.AllocationMode.HEAP, dtype);\n op = xyzConstructor.newInstance(x4a, y4a, x4a);\n new TransformViaTensorDataBufferTask(op, 5, x4a, y4a, x4a).invoke();\n assertEquals(msg, y4a, origSecond);\n assertEquals(msg, x4a, z1);\n }\n DefaultOpExecutioner.setParallelThreshold(Integer.MAX_VALUE);\n Nd4j.alloc = DataBuffer.AllocationMode.DIRECT;\n INDArray x5 = getCopyOf(origFirst, DataBuffer.AllocationMode.DIRECT, dtype);\n INDArray y5 = getCopyOf(origSecond, DataBuffer.AllocationMode.DIRECT, dtype);\n INDArray z5 = getCopyOf(origFirst, DataBuffer.AllocationMode.DIRECT, dtype);\n op = xyzConstructor.newInstance(x5, y5, z5);\n opExec.exec(op);\n assertEquals(msg, x5, origFirst);\n assertEquals(msg, y5, origSecond);\n assertEquals(msg, z5, z1);\n INDArray x6 = getCopyOf(origFirst, DataBuffer.AllocationMode.DIRECT, dtype);\n INDArray y6 = getCopyOf(origSecond, DataBuffer.AllocationMode.DIRECT, dtype);\n op = xyzConstructor.newInstance(x6, y6, x6);\n opExec.exec(op);\n assertEquals(msg, y6, origSecond);\n assertEquals(msg, x6, z1);\n if (!op.isPassThrough()) {\n INDArray x5a = getCopyOf(origFirst, DataBuffer.AllocationMode.DIRECT, dtype);\n INDArray y5a = getCopyOf(origSecond, DataBuffer.AllocationMode.DIRECT, dtype);\n INDArray z5a = getCopyOf(origFirst, DataBuffer.AllocationMode.DIRECT, dtype);\n op = xyzConstructor.newInstance(x5a, y5a, z5a);\n new TransformViaTensorDataBufferTask(op, Integer.MAX_VALUE, x5a, y5a, z5a).invoke();\n assertEquals(msg, x5a, origFirst);\n assertEquals(msg, y5a, origSecond);\n assertEquals(msg, z5a, z5);\n INDArray x6a = getCopyOf(origFirst, DataBuffer.AllocationMode.DIRECT, dtype);\n INDArray y6a = getCopyOf(origSecond, DataBuffer.AllocationMode.DIRECT, dtype);\n op = xyzConstructor.newInstance(x6a, y6a, x6a);\n new TransformViaTensorDataBufferTask(op, Integer.MAX_VALUE, x6a, y6a, x6a).invoke();\n assertEquals(msg, y6a, origSecond);\n assertEquals(msg, x6a, z1);\n }\n DefaultOpExecutioner.setParallelThreshold(5);\n Nd4j.alloc = DataBuffer.AllocationMode.DIRECT;\n INDArray x7 = getCopyOf(origFirst, DataBuffer.AllocationMode.DIRECT, dtype);\n INDArray y7 = getCopyOf(origSecond, DataBuffer.AllocationMode.DIRECT, dtype);\n INDArray z7 = getCopyOf(origFirst, DataBuffer.AllocationMode.DIRECT, dtype);\n op = xyzConstructor.newInstance(x7, y7, z7);\n opExec.exec(op);\n assertEquals(msg, x7, origFirst);\n assertEquals(msg, y7, origSecond);\n assertEquals(msg, z7, z1);\n INDArray x8 = getCopyOf(origFirst, DataBuffer.AllocationMode.DIRECT, dtype);\n INDArray y8 = getCopyOf(origSecond, DataBuffer.AllocationMode.DIRECT, dtype);\n op = xyzConstructor.newInstance(x8, y8, x8);\n opExec.exec(op);\n assertEquals(msg, y8, origSecond);\n assertEquals(msg, x8, z1);\n if (!op.isPassThrough()) {\n INDArray x7a = getCopyOf(origFirst, DataBuffer.AllocationMode.DIRECT, dtype);\n INDArray y7a = getCopyOf(origSecond, DataBuffer.AllocationMode.DIRECT, dtype);\n INDArray z7a = getCopyOf(origFirst, DataBuffer.AllocationMode.DIRECT, dtype);\n op = xyzConstructor.newInstance(x7a, y7a, z7a);\n new TransformViaTensorDataBufferTask(op, 5, x7a, y7a, z7a).invoke();\n assertEquals(msg, x7a, origFirst);\n assertEquals(msg, y7a, origSecond);\n assertEquals(msg, z7a, z1);\n INDArray x8a = getCopyOf(origFirst, DataBuffer.AllocationMode.DIRECT, dtype);\n INDArray y8a = getCopyOf(origSecond, DataBuffer.AllocationMode.DIRECT, dtype);\n op = xyzConstructor.newInstance(x8a, y8a, x8a);\n new TransformViaTensorDataBufferTask(op, 5, x8a, y8a, x8a).invoke();\n assertEquals(msg, y8a, origSecond);\n assertEquals(msg, x8a, z1);\n }\n }\n }\n Nd4j.alloc = origAlloc;\n}\n"
"public boolean execute() {\n try {\n IProject rootProject = DQStructureManager.getInstance().createNewProject(org.talend.dataquality.PluginConstant.getRootProjectName());\n rootProject.delete(true, true, new NullProgressMonitor());\n rootProject = DQStructureManager.getInstance().createNewProject(org.talend.dataquality.PluginConstant.getRootProjectName(), PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());\n IResource[] resources = ResourcesPlugin.getWorkspace().getRoot().members();\n if (resources != null && resources.length > 0) {\n for (IResource resource : resources) {\n if (resource instanceof IProject && !resource.getName().equals(org.talend.dataquality.PluginConstant.getRootProjectName())) {\n IPath destination = null;\n IFolder prefixFolder = rootProject.getFolder(DQStructureManager.PREFIX_TDQ + resource.getName());\n prefixFolder.create(IResource.FORCE, true, new NullProgressMonitor());\n for (IResource rs : ((IProject) resource).members()) {\n if (rs.getName().equals(\"String_Node_Str\")) {\n continue;\n }\n destination = prefixFolder.getFolder(rs.getName()).getFullPath();\n rs.copy(destination, IResource.FORCE, new NullProgressMonitor());\n }\n resource.delete(true, new NullProgressMonitor());\n }\n }\n }\n } catch (InvocationTargetException e) {\n logger.error(e, e);\n } catch (InterruptedException e) {\n logger.error(e, e);\n } catch (CoreException e) {\n logger.error(e, e);\n }\n return false;\n}\n"
"public void handleAverageRequestsInFlightEvent(AverageRequestsInFlightEvent averageRequestsInFlightEvent) {\n String networkPartitionId = averageRequestsInFlightEvent.getNetworkPartitionId();\n String clusterId = averageRequestsInFlightEvent.getClusterId();\n String clusterInstanceId = averageRequestsInFlightEvent.getClusterInstanceId();\n float value = averageRequestsInFlightEvent.getValue();\n if (log.isDebugEnabled()) {\n log.debug(String.format(\"String_Node_Str\" + \"String_Node_Str\", clusterId, clusterInstanceId, networkPartitionId, value));\n }\n if (clusterInstanceId.equals(StratosConstants.NOT_DEFINED)) {\n NetworkPartitionContext networkPartitionContext = getNetworkPartitionContext(networkPartitionId);\n if (null != networkPartitionContext) {\n int totalActiveMemberCount = 0;\n for (InstanceContext clusterInstanceContext : networkPartitionContext.getInstanceIdToInstanceContextMap().values()) {\n if (clusterInstanceContext instanceof ClusterInstanceContext) {\n totalActiveMemberCount += ((ClusterInstanceContext) clusterInstanceContext).getActiveMemberCount();\n }\n }\n for (InstanceContext instanceContext : networkPartitionContext.getInstanceIdToInstanceContextMap().values()) {\n if (instanceContext instanceof ClusterInstanceContext) {\n ClusterInstanceContext clusterInstanceContext = ((ClusterInstanceContext) instanceContext);\n float averageRequestsInFlight = value * clusterInstanceContext.getActiveMemberCount() / totalActiveMemberCount;\n clusterInstanceContext.setAverageRequestsInFlight(averageRequestsInFlight);\n if (log.isDebugEnabled()) {\n log.debug(String.format(\"String_Node_Str\" + \"String_Node_Str\", clusterId, clusterInstanceContext.getId(), networkPartitionId, averageRequestsInFlight));\n }\n }\n }\n } else {\n if (log.isDebugEnabled()) {\n log.debug(String.format(\"String_Node_Str\" + \"String_Node_Str\", networkPartitionId));\n }\n }\n } else {\n ClusterInstanceContext clusterInstanceContext = getClusterInstanceContext(networkPartitionId, clusterInstanceId);\n if (null != clusterInstanceContext) {\n clusterInstanceContext.setAverageRequestsInFlight(value);\n } else {\n if (log.isDebugEnabled()) {\n log.debug(String.format(\"String_Node_Str\" + \"String_Node_Str\", clusterInstanceId));\n }\n }\n }\n}\n"
"public static void setMapSize(int width, int height) {\n PathFinder.width = width;\n PathFinder.size = width * height;\n distance = new int[size];\n goals = new boolean[size];\n queue = new int[size];\n maxVal = new int[size];\n Arrays.fill(maxVal, Integer.MAX_VALUE);\n dir = new int[] { -1, +1, -width, +width, -width - 1, -width + 1, +width - 1, +width + 1 };\n NEIGHBOURS4 = new int[] { -width, -1, +1, +width };\n NEIGHBOURS8 = new int[] { -width - 1, -width, -width + 1, -1, +1, +width - 1, +width, +width + 1 };\n NEIGHBOURS9 = new int[] { -width - 1, -width, -width + 1, -1, 0, +1, +width - 1, +width, +width + 1 };\n CIRCLE4 = new int[] { -width, +1, +width, -1 };\n CIRCLE8 = new int[] { -width - 1, -width, -width + 1, +1, +width + 1, +width, +width - 1, -1 };\n}\n"
"public NutResource get_material(String media_id) {\n String url = String.format(\"String_Node_Str\", getAccessToken());\n Request req = Request.create(url, METHOD.POST);\n NutMap body = new NutMap();\n body.put(\"String_Node_Str\", media_id);\n req.setData(Json.toJson(body));\n final Response resp = Sender.create(req).send();\n if (!resp.isOK())\n throw new IllegalStateException(\"String_Node_Str\" + resp.getStatus());\n String disposition = resp.getHeader().get(\"String_Node_Str\");\n return new WxResource(disposition, resp.getStream());\n}\n"
"private void initLayoutCenter() {\n sideArchThickness = viewFrustum.getWidth() * ARCH_STAND_WIDTH_PERCENT;\n archInnerWidth = viewFrustum.getWidth() * (ARCH_STAND_WIDTH_PERCENT + 0.05f);\n archTopY = viewFrustum.getHeight() * ARCH_TOP_PERCENT;\n archBottomY = viewFrustum.getHeight() * ARCH_BOTTOM_PERCENT;\n archHeight = (ARCH_TOP_PERCENT - ARCH_BOTTOM_PERCENT) * viewFrustum.getHeight();\n float centerLayoutWidth = viewFrustum.getWidth() - 2 * archInnerWidth;\n float spacerWidth = (centerLayoutWidth - (centerGroupEndIndex - centerGroupStartIndex) * archHeight) / (centerGroupEndIndex - centerGroupStartIndex);\n centerRowLayout = new Row(\"String_Node_Str\");\n centerRowLayout.setFrameColor(1, 1, 0, 1);\n centerRowLayout.setDebug(false);\n ElementLayout dimensionGroupSpacing = new ElementLayout(\"String_Node_Str\");\n DimensionGroupSpacingRenderer dimensionGroupSpacingRenderer = new DimensionGroupSpacingRenderer();\n dimensionGroupSpacing.setRenderer(dimensionGroupSpacingRenderer);\n dimensionGroupSpacing.setPixelGLConverter(parentGLCanvas.getPixelGLConverter());\n dimensionGroupSpacing.setAbsoluteSizeX(spacerWidth);\n centerRowLayout.appendElement(dimensionGroupSpacing);\n for (int dimensionGroupIndex = centerGroupStartIndex; dimensionGroupIndex < centerGroupEndIndex; dimensionGroupIndex++) {\n DimensionGroup group = dimensionGroups.get(dimensionGroupIndex);\n group.setCollapsed(false);\n group.getLayout().setAbsoluteSizeX(archHeight);\n group.getLayout().setRatioSizeY(1);\n group.setArchBounds(archHeight, ARCH_BOTTOM_PERCENT, ARCH_TOP_PERCENT - ARCH_BOTTOM_PERCENT, ARCH_BOTTOM_PERCENT);\n centerRowLayout.appendElement(group.getLayout());\n dimensionGroupSpacing = new ElementLayout(\"String_Node_Str\");\n dimensionGroupSpacingRenderer = new DimensionGroupSpacingRenderer();\n dimensionGroupSpacing.setRenderer(dimensionGroupSpacingRenderer);\n dimensionGroupSpacing.setPixelGLConverter(parentGLCanvas.getPixelGLConverter());\n dimensionGroupSpacing.setAbsoluteSizeX(spacerWidth);\n centerRowLayout.appendElement(dimensionGroupSpacing);\n }\n centerLayout = new LayoutTemplate();\n centerLayout.setPixelGLConverter(parentGLCanvas.getPixelGLConverter());\n centerLayout.setBaseElementLayout(centerRowLayout);\n ViewFrustum centerArchFrustum = new ViewFrustum(viewFrustum.getProjectionMode(), 0, centerLayoutWidth, 0, viewFrustum.getHeight(), 0, 1);\n centerLayoutManager = new LayoutManager(centerArchFrustum);\n centerLayoutManager.setTemplate(centerLayout);\n if (uninitializedDimensionGroups.size() == 0)\n centerLayoutManager.updateLayout();\n}\n"
"public synchronized static Map initViewerProps(ServletContext context, Map props) {\n if (props == null)\n props = new HashMap();\n String file = context.getInitParameter(INIT_PARAM_CONFIG_FILE);\n if (file == null || file.trim().length() <= 0)\n file = IBirtConstants.DEFAULT_VIEWER_CONFIG_FILE;\n try {\n InputStream is = null;\n if (isRelativePath(file)) {\n if (!file.startsWith(\"String_Node_Str\"))\n file = \"String_Node_Str\" + file;\n is = context.getResourceAsStream(file);\n } else {\n is = new FileInputStream(file);\n }\n PropertyResourceBundle bundle = new PropertyResourceBundle(is);\n if (bundle != null) {\n Enumeration<String> keys = bundle.getKeys();\n while (keys != null && keys.hasMoreElements()) {\n String key = (String) keys.nextElement();\n String value = (String) bundle.getObject(key);\n if (key != null && value != null)\n props.put(key, value);\n }\n }\n } catch (Exception e) {\n }\n return props;\n}\n"
"private void testAdapterLifeCycle(String namespaceId, String templateId, String adapterName, AdapterConfig adapterConfig) throws Exception {\n String deleteURL = getVersionedAPIPath(\"String_Node_Str\" + templateId, Constants.Gateway.API_VERSION_3_TOKEN, namespaceId);\n HttpResponse response = createAdapter(namespaceId, adapterName, adapterConfig);\n Assert.assertEquals(200, response.getStatusLine().getStatusCode());\n response = createAdapter(namespaceId, adapterName, adapterConfig);\n Assert.assertEquals(409, response.getStatusLine().getStatusCode());\n response = listAdapters(namespaceId);\n Assert.assertEquals(200, response.getStatusLine().getStatusCode());\n List<AdapterDetail> list = readResponse(response, ADAPTER_SPEC_LIST_TYPE);\n Assert.assertEquals(1, list.size());\n checkIsExpected(adapterConfig, list.get(0));\n response = getAdapter(namespaceId, adapterName);\n Assert.assertEquals(200, response.getStatusLine().getStatusCode());\n AdapterDetail receivedAdapterConfig = readResponse(response, AdapterDetail.class);\n checkIsExpected(adapterConfig, receivedAdapterConfig);\n List<JsonObject> deployedApps = getAppList(namespaceId);\n Assert.assertEquals(1, deployedApps.size());\n JsonObject deployedApp = deployedApps.get(0);\n Assert.assertEquals(templateId, deployedApp.get(\"String_Node_Str\").getAsString());\n String status = getAdapterStatus(Id.Adapter.from(namespaceId, adapterName));\n Assert.assertEquals(\"String_Node_Str\", status);\n response = startStopAdapter(namespaceId, adapterName, \"String_Node_Str\");\n Assert.assertEquals(409, response.getStatusLine().getStatusCode());\n response = startStopAdapter(namespaceId, adapterName, \"String_Node_Str\");\n Assert.assertEquals(200, response.getStatusLine().getStatusCode());\n status = getAdapterStatus(Id.Adapter.from(namespaceId, adapterName));\n Assert.assertEquals(\"String_Node_Str\", status);\n deleteApplication(1, deleteURL, 403);\n response = deleteAdapter(namespaceId, adapterName);\n Assert.assertEquals(409, response.getStatusLine().getStatusCode());\n response = startStopAdapter(namespaceId, adapterName, \"String_Node_Str\");\n Assert.assertEquals(200, response.getStatusLine().getStatusCode());\n deleteApplication(1, deleteURL, 403);\n response = deleteAdapter(namespaceId, adapterName);\n Assert.assertEquals(200, response.getStatusLine().getStatusCode());\n response = getAdapter(namespaceId, adapterName);\n Assert.assertEquals(404, response.getStatusLine().getStatusCode());\n deleteApplication(60, deleteURL, 404);\n deployedApps = getAppList(namespaceId);\n Assert.assertTrue(deployedApps.isEmpty());\n response = createAdapter(namespaceId, adapterName, adapterConfig);\n Assert.assertEquals(200, response.getStatusLine().getStatusCode());\n response = deleteAdapter(namespaceId, adapterName);\n Assert.assertEquals(200, response.getStatusLine().getStatusCode());\n deleteApplication(60, deleteURL, 404);\n deployedApps = getAppList(namespaceId);\n Assert.assertTrue(deployedApps.isEmpty());\n}\n"
"public void sortLinkList() {\n Collections.sort(linkList, new Comparator() {\n public int compare(Object a, Object b) {\n if (a instanceof DownloadLink && b instanceof DownloadLink) {\n if (((DownloadLink) a).extractFileNameFromURL().compareToIgnoreCase(((DownloadLink) b).extractFileNameFromURL()) > 0) {\n return -1;\n } else if (((DownloadLink) a).extractFileNameFromURL().compareToIgnoreCase(((DownloadLink) b).extractFileNameFromURL()) < 0) {\n return 1;\n } else {\n return 0;\n }\n }\n return 0;\n }\n });\n}\n"
"public void init(String url) {\n initMenuBar();\n setJMenuBar(menuBar);\n bodyPanel = new OTViewContainerPanel(this, null);\n if (showTree) {\n dataTreeModel = new SimpleTreeModel();\n folderTreeModel = new SimpleTreeModel();\n updateTreePane();\n getContentPane().add(splitPane);\n } else {\n getContentPane().add(bodyPanel);\n }\n setBounds(100, 100, 875, 600);\n setVisible(true);\n if (url != null) {\n try {\n loadURL(new URL(url));\n } catch (Exception e) {\n System.err.println(\"String_Node_Str\");\n e.printStackTrace();\n return;\n }\n }\n}\n"
"public void setUp() throws Exception {\n DataExplorerTestHelper.initDataExplorer();\n patternExplorer = new PatternExplorer();\n PatternMatchingIndicator indicator = mock(PatternMatchingIndicator.class);\n when(indicator.eClass()).thenReturn(null);\n ModelElement element = mock(ModelElement.class);\n when(element.getName()).thenReturn(\"String_Node_Str\");\n when(indicator.getAnalyzedElement()).thenReturn(element);\n indicator.setAnalyzedElement(element);\n DbmsLanguage dbmsLanguage = mock(DbmsLanguage.class);\n when(dbmsLanguage.getRegexPatternString(indicator)).thenReturn(RES_VALIED_ROWS);\n when(dbmsLanguage.quote(anyString())).thenReturn(\"String_Node_Str\");\n when(dbmsLanguage.regexLike(anyString(), anyString())).thenReturn(\"String_Node_Str\");\n when(dbmsLanguage.regexNotLike(anyString(), anyString())).thenReturn(\"String_Node_Str\");\n when(dbmsLanguage.getFunctionReturnValue()).thenReturn(\"String_Node_Str\");\n when(dbmsLanguage.where()).thenReturn(\"String_Node_Str\");\n when(dbmsLanguage.and()).thenReturn(\"String_Node_Str\");\n when(dbmsLanguage.from()).thenReturn(\"String_Node_Str\");\n when(dbmsLanguage.or()).thenReturn(\"String_Node_Str\");\n when(dbmsLanguage.isNull()).thenReturn(\"String_Node_Str\");\n Analysis analysis = DataExplorerTestHelper.getAnalysis(indicator, dbmsLanguage);\n patternExplorer.setAnalysis(analysis);\n ChartDataEntity cdEntity = mock(ChartDataEntity.class);\n when(cdEntity.getIndicator()).thenReturn(indicator);\n PowerMockito.mockStatic(IndicatorEnum.class);\n when(IndicatorEnum.findIndicatorEnum(indicator.eClass())).thenReturn(IndicatorEnum.RowCountIndicatorEnum);\n patternExplorer.setEnitty(cdEntity);\n Expression instantiatedExpression = mock(Expression.class);\n when(dbmsLanguage.getInstantiatedExpression(indicator)).thenReturn(instantiatedExpression);\n when(instantiatedExpression.getBody()).thenReturn(\"String_Node_Str\");\n}\n"
"public void finish(IBinder token) {\n synchronized (this) {\n if (mImpl == null) {\n Slog.w(TAG, \"String_Node_Str\");\n return;\n }\n final int callingPid = Binder.getCallingPid();\n final int callingUid = Binder.getCallingUid();\n final long caller = Binder.clearCallingIdentity();\n try {\n mImpl.finishLocked(token);\n } finally {\n Binder.restoreCallingIdentity(caller);\n }\n }\n}\n"
"private String regQuery(String key, String value, int mode) {\n String result = \"String_Node_Str\";\n try {\n ProcessBuilder pb = new ProcessBuilder(\"String_Node_Str\", \"String_Node_Str\", key, \"String_Node_Str\", value);\n Process pr = pb.start();\n BufferedReader input = new BufferedReader(new InputStreamReader(pr.getInputStream()));\n String line;\n while ((line = input.readLine()) != null) {\n result = result + line + '\\n';\n }\n pr.waitFor();\n } catch (InterruptedException | IOException e) {\n log.log(Level.INFO, \"String_Node_Str\", e);\n }\n try {\n if (mode == 0) {\n return result.substring(result.lastIndexOf(\"String_Node_Str\") + 2, result.indexOf('\\n', result.lastIndexOf(\"String_Node_Str\")));\n }\n return result.substring(result.lastIndexOf(\"String_Node_Str\") - 1, result.indexOf('\\n', result.lastIndexOf(\"String_Node_Str\")));\n } catch (IndexOutOfBoundsException e) {\n return \"String_Node_Str\";\n }\n}\n"
"protected void onCreate(final Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_fragment_wrapper);\n if (savedInstanceState == null) {\n ExchangeRatesFragment fragment = new ExchangeRatesFragment();\n fragment.setArguments(getIntent().getExtras());\n getSupportFragmentManager().beginTransaction().add(R.id.container, fragment).commit();\n }\n ActionBar actionBar = getSupportActionBar();\n if (actionBar != null) {\n actionBar.setDisplayHomeAsUpEnabled(true);\n actionBar.setDisplayShowHomeEnabled(false);\n }\n}\n"
"protected void organizeVerticalAlignment() {\n final Style contentStyle = content.getStyle();\n final Style alignerStyle = aligner.getStyle();\n contentStyle.clearDisplay();\n contentStyle.clearProperty(\"String_Node_Str\");\n alignerStyle.setDisplay(Style.Display.NONE);\n switch(verticalAlignment) {\n case TOP:\n contentStyle.setVerticalAlign(Style.VerticalAlign.TOP);\n break;\n case BOTTOM:\n {\n contentStyle.clearTop();\n contentStyle.setBottom(0, Style.Unit.PX);\n break;\n }\n case CENTER:\n {\n contentStyle.clearTop();\n contentStyle.clearBottom();\n contentStyle.setPosition(Style.Position.RELATIVE);\n contentStyle.setDisplay(Style.Display.INLINE_BLOCK);\n contentStyle.setVerticalAlign(Style.VerticalAlign.MIDDLE);\n alignerStyle.setDisplay(Style.Display.INLINE_BLOCK);\n break;\n }\n }\n}\n"
"public static void stopDiscovery() throws IOException {\n INSTANCE.doStopDiscovery();\n}\n"
"public ConfiguredAspect create(ConfiguredTarget base, RuleContext ruleContext, AspectParameters params) throws InterruptedException {\n ConfiguredAspect.Builder result = new ConfiguredAspect.Builder(this, params, ruleContext);\n Function<Artifact, Artifact> desugaredJars = desugarJarsIfRequested(base, ruleContext, result);\n TriState incrementalAttr = TriState.valueOf(params.getOnlyValueOfAttribute(\"String_Node_Str\"));\n if (incrementalAttr == TriState.NO || (getAndroidConfig(ruleContext).getIncrementalDexingBinaries().isEmpty() && incrementalAttr != TriState.YES)) {\n return result.build();\n }\n if (JavaCommon.isNeverLink(ruleContext)) {\n return result.addProvider(DexArchiveProvider.NEVERLINK).build();\n }\n DexArchiveProvider.Builder dexArchives = new DexArchiveProvider.Builder().addTransitiveProviders(collectPrerequisites(ruleContext, DexArchiveProvider.class));\n JavaRuntimeJarProvider jarProvider = base.getProvider(JavaRuntimeJarProvider.class);\n if (jarProvider != null) {\n Set<Set<String>> aspectDexopts = aspectDexopts(ruleContext);\n for (Artifact jar : jarProvider.getRuntimeJars()) {\n for (Set<String> incrementalDexopts : aspectDexopts) {\n String uniqueFilename = (basenameClash ? jar.getRootRelativePathString() : jar.getFilename()) + Joiner.on(\"String_Node_Str\").join(incrementalDexopts) + \"String_Node_Str\";\n Artifact dexArchive = createDexArchiveAction(ruleContext, ASPECT_DEXBUILDER_PREREQ, desugaredJars.apply(jar), incrementalDexopts, AndroidBinary.getDxArtifact(ruleContext, uniqueFilename));\n dexArchives.addDexArchive(incrementalDexopts, dexArchive, jar);\n }\n }\n }\n return result.addProvider(dexArchives.build()).build();\n}\n"
"public void addSourceToTargetMap(MappableItem sourceItem, MappableItem targetItem) {\n sourceToCdmMaps.add(new ItemToItemMap(sourceItem, targetItem));\n}\n"
"private static Properties loadProperties(String propertiesFile) throws FileNotFoundException {\n try {\n Properties properties = new Properties();\n File propFile = new File(propertiesFile);\n String propFilePath = propFile.getAbsolutePath();\n FileInputStream fis = new FileInputStream(propFilePath);\n properties.load(fis);\n return properties;\n } catch (IOException ex) {\n Mediator.getLogger(CpadDataExtract.class.getName()).log(Level.SEVERE, \"String_Node_Str\" + propertiesFile, ex);\n throw new FileNotFoundException(\"String_Node_Str\" + propertiesFile);\n }\n}\n"
"public static Index create(InputSplit genericSplit, TaskAttemptContext context) {\n LOG.setLevel(Level.DEBUG);\n Configuration conf = context.getConfiguration();\n Class<?> indexClass = conf.getClass(\"String_Node_Str\", null);\n Class<?> guiceModule = conf.getClass(\"String_Node_Str\", null);\n String hdfsFile = inputToFileSplit(genericSplit).getPath().toString();\n LOG.debug(\"String_Node_Str\" + hdfsFile);\n try {\n LOG.debug(\"String_Node_Str\" + indexClass.toString() + \"String_Node_Str\" + guiceModule.toString());\n RunModule module = (RunModule) guiceModule.getConstructor().newInstance();\n module.setHdfsFile(hdfsFile);\n LOG.debug(\"String_Node_Str\" + module.getClass().getName().toString());\n Injector injector = Guice.createInjector(module);\n LOG.debug(\"String_Node_Str\");\n Index index = (Index) injector.getInstance(indexClass);\n index.open();\n return index;\n } catch (Exception e) {\n LOG.debug(e);\n return null;\n }\n}\n"
"private void mavenBuildCodeProjectPom(String goals, String module) {\n IFile childModulePomFile;\n if (TalendMavenContants.CURRENT_PATH.equals(module)) {\n childModulePomFile = this.getProject().getFile(MavenConstants.POM_FILE_NAME);\n } else {\n IFolder moduleFolder = this.getProject().getFolder(module);\n childModulePomFile = moduleFolder.getFile(MavenConstants.POM_FILE_NAME);\n }\n if (childModulePomFile.getLocation().toFile().exists()) {\n TalendMavenLauncher mavenLauncher = null;\n if (goals == null || goals.trim().length() == 0 || goals.equals(MavenConstants.GOAL_COMPILE)) {\n buildWholeCodeProject();\n buildWholeCodeProject();\n }\n } else {\n throw new RuntimeException(\"String_Node_Str\" + module);\n }\n}\n"
"private synchronized URI getConnectionURI() throws IOException, URISyntaxException {\n if (this.connectionURI != null) {\n return this.connectionURI;\n }\n final OutboundSocketBinding destinationOutboundSocket = this.destinationOutboundSocketBindingInjectedValue.getValue();\n final InetAddress destinationAddress = destinationOutboundSocket.getDestinationAddress();\n final int port = destinationOutboundSocket.getDestinationPort();\n this.connectionURI = new URI(REMOTE_URI_SCHEME + NetworkUtils.formatPossibleIpv6Address(destinationAddress.getHostAddress()) + \"String_Node_Str\" + port);\n return this.connectionURI;\n}\n"
"private ParsingProblem buildProgram(DmvTrainCorpus corpus, DmvModel model) throws IloException {\n ParsingProblem pp = new ParsingProblem();\n pp.arcRoot = new IloNumVar[corpus.size()][];\n pp.arcChild = new IloNumVar[corpus.size()][][];\n pp.flowRoot = new IloNumVar[corpus.size()][];\n pp.flowChild = new IloNumVar[corpus.size()][][];\n for (int s = 0; s < corpus.size(); s++) {\n Sentence sent = corpus.getSentence(s);\n pp.arcRoot[s] = new IloNumVar[sent.size()];\n pp.arcChild[s] = new IloNumVar[sent.size()][sent.size()];\n pp.flowRoot[s] = new IloNumVar[sent.size()];\n pp.flowChild[s] = new IloNumVar[sent.size()][sent.size()];\n for (int c = 0; c < sent.size(); c++) {\n pp.arcRoot[s][c] = cplex.numVar(0, 1, String.format(\"String_Node_Str\", s, c));\n pp.flowRoot[s][c] = cplex.numVar(0, sent.size(), String.format(\"String_Node_Str\", s, c));\n }\n for (int p = 0; p < sent.size(); p++) {\n for (int c = 0; c < sent.size(); c++) {\n pp.arcChild[s][p][c] = cplex.numVar(0, 1, String.format(\"String_Node_Str\", s, p, c));\n pp.flowChild[s][p][c] = cplex.numVar(0, sent.size(), String.format(\"String_Node_Str\", s, p, c));\n }\n }\n }\n pp.numToSide = new IloNumVar[corpus.size()][][];\n pp.genAdj = new IloNumVar[corpus.size()][][];\n pp.stopAdj = new IloNumVar[corpus.size()][][];\n pp.numNonAdj = new IloNumVar[corpus.size()][][];\n for (int s = 0; s < corpus.size(); s++) {\n Sentence sent = corpus.getSentence(s);\n pp.numToSide[s] = new IloNumVar[sent.size()][2];\n pp.genAdj[s] = new IloNumVar[sent.size()][2];\n pp.noGenAdj[s] = new IloNumVar[sent.size()][2];\n pp.numNonAdj[s] = new IloNumVar[sent.size()][2];\n for (int i = 0; i < sent.size(); i++) {\n for (int side = 0; side < 2; side++) {\n pp.numToSide[s][i][side] = cplex.numVar(0, sent.size(), String.format(\"String_Node_Str\", s, i, side));\n pp.genAdj[s][i][side] = cplex.numVar(0, 1, String.format(\"String_Node_Str\", s, i, side));\n pp.noGenAdj[s][i][side] = cplex.numVar(0, 1, String.format(\"String_Node_Str\", s, i, side));\n pp.numNonAdj[s][i][side] = cplex.numVar(0, sent.size() - 1, String.format(\"String_Node_Str\", s, i, side));\n }\n }\n }\n pp.oneArcPerWall = new IloRange[corpus.size()];\n for (int s = 0; s < corpus.size(); s++) {\n double[] ones = new double[pp.arcRoot[s].length];\n Arrays.fill(ones, 1.0);\n IloLinearNumExpr expr = cplex.scalProd(ones, pp.arcRoot[s]);\n pp.oneArcPerWall[s] = cplex.eq(expr, 1.0, \"String_Node_Str\");\n }\n pp.oneParent = new IloRange[corpus.size()][];\n for (int s = 0; s < corpus.size(); s++) {\n Sentence sent = corpus.getSentence(s);\n pp.oneParent[s] = new IloRange[sent.size()];\n for (int c = 0; c < sent.size(); c++) {\n IloLinearNumExpr expr = cplex.linearNumExpr();\n for (int p = 0; p < sent.size(); p++) {\n expr.addTerm(1.0, pp.arcChild[s][p][c]);\n }\n expr.addTerm(1.0, pp.arcRoot[s][c]);\n pp.oneParent[s][c] = cplex.eq(expr, 1.0, \"String_Node_Str\");\n }\n }\n pp.rootFlowIsSentLength = new IloRange[corpus.size()];\n for (int s = 0; s < corpus.size(); s++) {\n double[] ones = new double[pp.arcRoot[s].length];\n Arrays.fill(ones, 1.0);\n IloLinearNumExpr expr = cplex.scalProd(ones, pp.flowRoot[s]);\n Sentence sent = corpus.getSentence(s);\n pp.rootFlowIsSentLength[s] = cplex.eq(expr, sent.size(), \"String_Node_Str\");\n }\n pp.flowDiff = new IloRange[corpus.size()][];\n for (int s = 0; s < corpus.size(); s++) {\n Sentence sent = corpus.getSentence(s);\n pp.flowDiff[s] = new IloRange[sent.size()];\n for (int i = 0; i < sent.size(); i++) {\n IloLinearNumExpr expr = cplex.linearNumExpr();\n for (int p = 0; p < sent.size(); p++) {\n expr.addTerm(1.0, pp.flowChild[s][p][i]);\n }\n expr.addTerm(1.0, pp.flowRoot[s][i]);\n for (int c = 0; c < sent.size(); c++) {\n expr.addTerm(-1.0, pp.flowChild[s][i][c]);\n }\n pp.flowDiff[s][i] = cplex.eq(expr, 1.0, \"String_Node_Str\");\n }\n }\n pp.flowBound = new IloRange[corpus.size()][][];\n for (int s = 0; s < corpus.size(); s++) {\n Sentence sent = corpus.getSentence(s);\n pp.flowBound[s] = new IloRange[sent.size()][sent.size()];\n for (int c = 0; c < sent.size(); c++) {\n for (int p = 0; p < sent.size(); p++) {\n IloLinearNumExpr expr = cplex.linearNumExpr();\n expr.addTerm(1.0, pp.flowChild[s][p][c]);\n expr.addTerm(-sent.size(), pp.arcChild[s][p][c]);\n pp.flowBound[s][p][c] = cplex.le(expr, 0.0, \"String_Node_Str\");\n }\n }\n }\n if (formulation == IlpFormulation.FLOW_PROJ_LPRELAX) {\n pp.projectivity = new IloRange[corpus.size()][][];\n for (int s = 0; s < corpus.size(); s++) {\n Sentence sent = corpus.getSentence(s);\n pp.projectivity[s] = new IloRange[sent.size()][sent.size()];\n for (int p = 0; p < sent.size(); p++) {\n for (int c = 0; c < sent.size(); c++) {\n if (c == p) {\n continue;\n }\n IloLinearNumExpr expr = cplex.linearNumExpr();\n for (int k = Math.min(p, c) + 1; k < Math.max(p, c); k++) {\n for (int l = 0; l < sent.size(); l++) {\n if (l >= Math.min(p, c) && l <= Math.max(p, c)) {\n continue;\n }\n expr.addTerm(1.0, pp.arcChild[s][k][l]);\n expr.addTerm(1.0, pp.arcChild[s][l][k]);\n }\n }\n expr.addTerm(sent.size(), pp.arcChild[s][p][c]);\n pp.projectivity[s][p][c] = cplex.le(expr, sent.size(), \"String_Node_Str\");\n }\n }\n }\n }\n pp.numToSideCons = new IloRange[corpus.size()][][];\n for (int s = 0; s < corpus.size(); s++) {\n Sentence sent = corpus.getSentence(s);\n pp.numToSideCons[s] = new IloRange[sent.size()][2];\n for (int p = 0; p < sent.size(); p++) {\n for (int side = 0; side < 2; side++) {\n IloLinearNumExpr expr = cplex.linearNumExpr();\n if (side == DmvModel.Lr.LEFT.getAsInt()) {\n for (int c = 0; c < p - 1; c++) {\n expr.addTerm(1.0, pp.arcChild[s][p][c]);\n }\n } else {\n for (int c = p + 1; c < sent.size(); c++) {\n expr.addTerm(1.0, pp.arcChild[s][p][c]);\n }\n }\n expr.addTerm(-1.0, pp.numToSide[s][p][side]);\n pp.numToSideCons[s][p][side] = cplex.eq(expr, 0.0, \"String_Node_Str\");\n }\n }\n }\n pp.genAdjCons = new IloRange[corpus.size()][][];\n for (int s = 0; s < corpus.size(); s++) {\n Sentence sent = corpus.getSentence(s);\n pp.genAdjCons[s] = new IloRange[sent.size()][2];\n for (int p = 0; p < sent.size(); p++) {\n for (int side = 0; side < 2; side++) {\n IloLinearNumExpr expr = cplex.linearNumExpr();\n expr.addTerm(-1.0, pp.genAdj[s][p][side]);\n expr.addTerm(1.0 / sent.size(), pp.numToSide[s][p][side]);\n pp.genAdjCons[s][p][side] = cplex.le(expr, 0.0, \"String_Node_Str\");\n }\n }\n }\n pp.numNonAdjCons = new IloRange[corpus.size()][][];\n for (int s = 0; s < corpus.size(); s++) {\n Sentence sent = corpus.getSentence(s);\n pp.numNonAdjCons[s] = new IloRange[sent.size()][2];\n for (int p = 0; p < sent.size(); p++) {\n for (int side = 0; side < 2; side++) {\n IloLinearNumExpr expr = cplex.linearNumExpr();\n expr.addTerm(1.0, pp.numToSide[s][p][side]);\n expr.addTerm(-1.0, pp.genAdj[s][p][side]);\n expr.addTerm(-1.0, pp.numNonAdj[s][p][side]);\n pp.numNonAdjCons[s][p][side] = cplex.eq(expr, 0.0, \"String_Node_Str\");\n }\n }\n }\n pp.noGenAdjCons = new IloRange[corpus.size()][][];\n for (int s = 0; s < corpus.size(); s++) {\n Sentence sent = corpus.getSentence(s);\n pp.noGenAdjCons[s] = new IloRange[sent.size()][2];\n for (int p = 0; p < sent.size(); p++) {\n for (int side = 0; side < 2; side++) {\n IloLinearNumExpr expr = cplex.linearNumExpr();\n expr.addTerm(1.0, pp.genAdj[s][p][side]);\n expr.addTerm(1.0, pp.noGenAdj[s][p][side]);\n pp.noGenAdjCons[s][p][side] = cplex.eq(expr, 1.0, \"String_Node_Str\");\n }\n }\n }\n pp.mat = cplex.LPMatrix();\n pp.mat.addRows(pp.oneArcPerWall);\n addRows(pp.mat, pp.oneParent);\n pp.mat.addRows(pp.rootFlowIsSentLength);\n addRows(pp.mat, pp.flowDiff);\n addRows(pp.mat, pp.flowBound);\n if (formulation == IlpFormulation.FLOW_PROJ_LPRELAX) {\n addRows(pp.mat, pp.projectivity);\n }\n addRows(pp.mat, pp.numToSideCons);\n addRows(pp.mat, pp.genAdjCons);\n addRows(pp.mat, pp.numNonAdjCons);\n addRows(pp.mat, pp.noGenAdjCons);\n pp.obj = cplex.maximize();\n IloLinearNumExpr expr = cplex.linearNumExpr();\n for (int s = 0; s < corpus.size(); s++) {\n Sentence sent = corpus.getSentence(s);\n DepSentenceDist sd = new DepSentenceDist(sent, model);\n for (int c = 0; c < sent.size(); c++) {\n expr.addTerm(sd.root[c], pp.arcRoot[s][c]);\n for (int p = 0; p < sent.size(); p++) {\n expr.addTerm(sd.child[c][p][0], pp.arcChild[s][p][c]);\n }\n }\n for (int p = 0; p < sent.size(); p++) {\n for (int side = 0; side < 2; side++) {\n expr.addTerm(sd.decision[p][side][0][0], pp.noGenAdj[s][p][side]);\n expr.addTerm(sd.decision[p][side][0][1] + sd.decision[p][side][1][0], pp.genAdj[s][p][side]);\n expr.addTerm(sd.decision[p][side][1][1], pp.numNonAdj[s][p][side]);\n }\n }\n }\n pp.obj.setExpr(expr);\n return pp;\n}\n"
"public boolean savePost() {\n EditText titleET = (EditText) findViewById(R.id.title);\n String title = titleET.getText().toString();\n WPEditText contentET = (WPEditText) findViewById(R.id.postContent);\n String content = EscapeUtils.unescapeHtml(WPHtml.toHtml(contentET.getText()));\n EditText passwordET = (EditText) findViewById(R.id.post_password);\n String password = passwordET.getText().toString();\n content = content.replace(\"String_Node_Str\", \"String_Node_Str\");\n content = content.replace(\"String_Node_Str\", \"String_Node_Str\");\n content = content.replace(\"String_Node_Str\", \"String_Node_Str\");\n TextView tvPubDate = (TextView) findViewById(R.id.pubDate);\n String pubDate = tvPubDate.getText().toString();\n long pubDateTimestamp = 0;\n if (!pubDate.equals(getResources().getText(R.string.immediately))) {\n if (isCustomPubDate)\n pubDateTimestamp = customPubDate;\n else if (!isNew)\n pubDateTimestamp = post.getDate_created_gmt();\n }\n String tags = \"String_Node_Str\", postFormat = \"String_Node_Str\";\n if (!isPage) {\n EditText tagsET = (EditText) findViewById(R.id.tags);\n tags = tagsET.getText().toString();\n Spinner postFormatSpinner = (Spinner) findViewById(R.id.postFormat);\n postFormat = postFormats[postFormatSpinner.getSelectedItemPosition()];\n }\n String images = \"String_Node_Str\";\n boolean success = false;\n if (content.equals(\"String_Node_Str\")) {\n AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(EditPost.this);\n dialogBuilder.setTitle(getResources().getText(R.string.empty_fields));\n dialogBuilder.setMessage(getResources().getText(R.string.title_post_required));\n dialogBuilder.setPositiveButton(\"String_Node_Str\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int whichButton) {\n }\n });\n dialogBuilder.setCancelable(true);\n dialogBuilder.create().show();\n } else {\n if (!isNew) {\n post.deleteMediaFiles();\n Spannable s = contentET.getText();\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 WPImageSpan wpIS = click_spans[i];\n images += wpIS.getImageSource().toString() + \"String_Node_Str\";\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 mf.save(EditPost.this);\n }\n }\n }\n Spinner spinner = (Spinner) findViewById(R.id.status);\n int selectedStatus = spinner.getSelectedItemPosition();\n String status = \"String_Node_Str\";\n switch(selectedStatus) {\n case 0:\n status = \"String_Node_Str\";\n break;\n case 1:\n status = \"String_Node_Str\";\n break;\n case 2:\n status = \"String_Node_Str\";\n break;\n case 3:\n status = \"String_Node_Str\";\n break;\n case 4:\n status = \"String_Node_Str\";\n break;\n }\n Double latitude = 0.0;\n Double longitude = 0.0;\n if (blog.isLocation()) {\n try {\n latitude = curLocation.getLatitude();\n longitude = curLocation.getLongitude();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n String needle = \"String_Node_Str\" + getResources().getText(R.string.more_tag) + \"String_Node_Str\";\n if (isNew) {\n post = new Post(id, title, content, images, pubDateTimestamp, categories.toString(), tags, status, password, latitude, longitude, isPage, postFormat, EditPost.this, true);\n post.setLocalDraft(true);\n if (content.indexOf(needle) >= 0) {\n post.setDescription(content.substring(0, content.indexOf(needle)));\n post.setMt_text_more(content.substring(content.indexOf(needle) + needle.length(), content.length()));\n }\n success = post.save();\n post.deleteMediaFiles();\n Spannable s = contentET.getText();\n WPImageSpan[] image_spans = s.getSpans(0, s.length(), WPImageSpan.class);\n if (image_spans.length != 0) {\n for (int i = 0; i < image_spans.length; i++) {\n WPImageSpan wpIS = image_spans[i];\n images += wpIS.getImageSource().toString() + \"String_Node_Str\";\n MediaFile mf = new MediaFile();\n mf.setPostID(post.getId());\n mf.setTitle(wpIS.getTitle());\n mf.setCaption(wpIS.getCaption());\n mf.setFileName(wpIS.getImageSource().toString());\n mf.setFilePath(wpIS.getImageSource().toString());\n mf.setHorizontalAlignment(wpIS.getHorizontalAlignment());\n mf.setWidth(wpIS.getWidth());\n mf.setVideo(wpIS.isVideo());\n mf.save(EditPost.this);\n }\n }\n } else {\n post.setTitle(title);\n if (content.indexOf(needle) >= 0) {\n post.setDescription(content.substring(0, content.indexOf(needle)));\n post.setMt_text_more(content.substring(content.indexOf(needle) + needle.length(), content.length()));\n } else {\n post.setDescription(content);\n }\n post.setMediaPaths(images);\n post.setDate_created_gmt(pubDateTimestamp);\n post.setCategories(categories);\n post.setMt_keywords(tags);\n post.setPost_status(status);\n post.setWP_password(password);\n post.setLatitude(latitude);\n post.setLongitude(longitude);\n post.setWP_post_form(postFormat);\n success = post.update();\n }\n }\n return success;\n}\n"
"public void run(SolrQueryRequest locReq, BatchHandlerRequestQueue queue) throws Exception {\n SolrParams params = locReq.getParams();\n String jobid = params.get(\"String_Node_Str\");\n String workDir = params.get(\"String_Node_Str\");\n File input = new File(workDir + \"String_Node_Str\" + jobid + \"String_Node_Str\");\n if (!input.canRead()) {\n throw new SolrException(ErrorCode.BAD_REQUEST, \"String_Node_Str\" + input);\n }\n AtomicReader reader = locReq.getSearcher().getAtomicReader();\n FixedBitSet bits = new FixedBitSet(reader.maxDoc());\n Map<String, Integer> bibcodes = DictionaryRecIdCache.INSTANCE.getCache(DictionaryRecIdCache.Str2LuceneId.MAPPING, locReq.getSearcher(), new String[] { \"String_Node_Str\", \"String_Node_Str\" });\n BufferedReader br = new BufferedReader(new FileReader(input));\n String line;\n while ((line = br.readLine()) != null) {\n line = line.toLowerCase().trim();\n if (bibcodes.containsKey(line)) {\n bits.set(bibcodes.get(line));\n }\n }\n br.close();\n if (bits.cardinality() <= 0) {\n return;\n }\n ModifiableSolrParams mParams = new ModifiableSolrParams(locReq.getParams());\n mParams.set(CommonParams.Q, \"String_Node_Str\");\n locReq.setParams(mParams);\n internalWorker.setFilter(new BitSetFilter(bits));\n internalWorker.run(locReq, queue);\n}\n"
"private void setupBorders() {\n LinearLayout list = (LinearLayout) findViewById(R.id.listBorders);\n Vector<FilterRepresentation> borders = new Vector<FilterRepresentation>();\n ImageButton borderButton = (ImageButton) findViewById(R.id.borderButton);\n borders.add(new FilterImageBorderRepresentation(0));\n FiltersManager.getManager().addBorders(this, borders);\n for (int i = 0; i < borders.size(); i++) {\n FilterRepresentation filter = borders.elementAt(i);\n filter.setName(getString(R.string.borders));\n if (i == 0) {\n filter.setName(getString(R.string.none));\n }\n FilterIconButton b = setupFilterRepresentationButton(filter, list, borderButton);\n if (i == 0) {\n mNullBorderFilter = b;\n mNullBorderFilter.setSelected(true);\n }\n }\n}\n"
"public CacheableLocator createLocator(AnnotatedElement annotatedElement) {\n TimeOutDuration customDuration;\n if (annotatedElement.isAnnotationPresent(WithTimeout.class)) {\n WithTimeout withTimeout = annotatedElement.getAnnotation(WithTimeout.class);\n customDuration = new TimeOutDuration(withTimeout.time(), withTimeout.unit());\n } else {\n customDuration = timeOutDuration;\n builder.setAnnotated(annotatedElement);\n By by = builder.buildBy();\n if (by != null)\n return new AppiumElementLocator(searchContext, by, builder.isLookupCached(), customDuration, originalWebDriver);\n return null;\n}\n"
"public void destroy() {\n try {\n if (!freed.get()) {\n JCuda.cudaFree(pointer);\n freed = true;\n }\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n}\n"
"public boolean rollback() throws IOException {\n HttpClient client = new HttpClient();\n client.getState().setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(username, password));\n HttpMethod method = new DeleteMethod(url + \"String_Node_Str\" + id);\n method.setDoAuthentication(true);\n try {\n client.executeMethod(method);\n } catch (HttpException e) {\n throw e;\n } catch (IOException e) {\n throw e;\n } finally {\n method.releaseConnection();\n }\n int statuscode = method.getStatusCode();\n if (statuscode >= 400) {\n throw new MDMTransactionException(\"String_Node_Str\" + statuscode);\n }\n return true;\n}\n"
"public boolean isIndexColumn() {\n if (this.columnHintHandle != null) {\n return columnHintHandle.isIndexColumn();\n else\n return (Boolean) columnHint.getProperty(null, ColumnHint.INDEX_COLUMN_MEMBER);\n}\n"
"public Bytes readBytes() throws IOException {\n long start = delegate.getFilePointer();\n if (start == 226) {\n start = delegate.getFilePointer();\n }\n int size = readInt();\n byte[] b = new byte[size];\n int totalReadSize = 0;\n int readSize = read(b, 0, b.length);\n totalReadSize = readSize;\n while (readSize != -1 && totalReadSize < size) {\n readSize = read(b, totalReadSize, size - totalReadSize);\n if (readSize != -1) {\n totalReadSize += readSize;\n }\n }\n return new Bytes(b);\n}\n"
"public void reset() {\n String value = getExternalSetValue();\n if (useHistory)\n historyManager.addHistoryEntry(historyManagerKeyForThisNode, value, new Date());\n if (COMBOBOX_PANEL.equals(renderMode)) {\n fillComboBox();\n }\n setDefaultValue();\n}\n"
"public Iterator<T> iterator() {\n return CollectionUtils.safetyIterator(results);\n}\n"
"public AFPChain align(Atom[] ca1, Atom[] ca2, Object parameters) throws StructureException {\n if (parameters == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n if (!(parameters instanceof SmithWaterman3DParameters))\n throw new IllegalArgumentException(\"String_Node_Str\" + parameters.getClass().getName());\n params = (SmithWaterman3DParameters) parameters;\n AFPChain afpChain = new AFPChain();\n try {\n s1 = new ProteinSequence(seq1);\n s2 = new ProteinSequence(seq2);\n } catch (CompoundNotFoundException e) {\n throw new StructureException(e.getMessage(), e);\n }\n return afpChain;\n}\n"
"public String toString() {\n getReadWriteLock().readLock().lock();\n try {\n return source.toString();\n } finally {\n getReadWriteLock().readLock().unlock();\n }\n}\n"
"public void addRenderEngine(SRenderEnginePluginConfiguration renderEngine) throws ServerException, UserException {\n requireRealUserAuthentication();\n DatabaseSession session = getBimServer().getDatabase().createSession();\n try {\n RenderEnginePluginConfiguration convert = getBimServer().getSConverter().convertFromSObject(renderEngine, session);\n return session.executeAndCommitAction(new AddRenderEngineDatabaseAction(session, getInternalAccessMethod(), getAuthorization(), convert));\n } catch (Exception e) {\n handleException(e);\n } finally {\n session.close();\n }\n}\n"
"public Response getCellResource(String wfsName, String path) {\n LOGGER.fine(\"String_Node_Str\" + wfsName + \"String_Node_Str\" + path);\n WFS wfs = WFSManager.getWFSManager().getWFS(wfsName);\n if (wfs == null) {\n logger.warning(\"String_Node_Str\" + wfsName);\n ResponseBuilder rb = Response.status(Response.Status.BAD_REQUEST);\n return rb.build();\n }\n WFSCellDirectory dir = wfs.getRootDirectory();\n if (dir == null) {\n logger.warning(\"String_Node_Str\" + wfsName);\n ResponseBuilder rb = Response.status(Response.Status.BAD_REQUEST);\n return rb.build();\n }\n String[] paths = new String[0];\n if (path.compareTo(\"String_Node_Str\") != 0) {\n paths = path.split(\"String_Node_Str\");\n }\n for (int i = 0; i < paths.length; i++) {\n WFSCell cell = dir.getCellByName(paths[i]);\n if (cell == null) {\n logger.info(\"String_Node_Str\" + path);\n ResponseBuilder rb = Response.status(Response.Status.BAD_REQUEST);\n return rb.build();\n }\n if ((dir = cell.getCellDirectory()) == null) {\n ResponseBuilder rb = Response.status(Response.Status.BAD_REQUEST);\n return rb.build();\n }\n }\n String[] names = dir.getCellNames();\n if (names == null) {\n logger.info(\"String_Node_Str\" + path);\n ResponseBuilder rb = Response.status(Response.Status.BAD_REQUEST);\n return rb.build();\n }\n LinkedList<Cell> list = new LinkedList<Cell>();\n for (String name : names) {\n WFSCell cell = dir.getCellByName(name);\n if (cell == null) {\n logger.info(\"String_Node_Str\" + name);\n continue;\n }\n list.add(new Cell(name, cell.getLastModified()));\n }\n Cell[] childs = list.toArray(new Cell[] {});\n CellList children = new CellList(path, childs);\n try {\n StringWriter sw = new StringWriter();\n children.encode(sw);\n ResponseBuilder rb = Response.ok(sw.toString());\n return rb.build();\n } catch (JAXBException excp) {\n logger.info(\"String_Node_Str\" + path + \"String_Node_Str\" + excp.toString());\n ResponseBuilder rb = Response.status(Response.Status.BAD_REQUEST);\n return rb.build();\n }\n}\n"
"private void write(Consumer<BytesChronicleMap> c) {\n final BytesChronicleMap bytesMap = bytesMap(channelId);\n if (bytesMap == null) {\n LOG.error(\"String_Node_Str\" + channelId + \"String_Node_Str\");\n return;\n }\n bytesMap.output = null;\n final Bytes<?> bytes = outWire.bytes();\n bytes.mark();\n outWire.write(isException).bool(false);\n try {\n c.accept(bytesMap);\n } catch (Exception e) {\n outWire.bytes().reset();\n outWire.write(isException).bool(true);\n outWire.write(exception).text(toString(e));\n LOG.error(\"String_Node_Str\", e);\n return;\n }\n}\n"
"public NameAndLocation findPreviousTypeNameToken(ISourceBuffer buffer, int start) {\n int current = Math.min(start, buffer.length()) - 1;\n while (current >= 0 && !Character.isWhitespace(buffer.charAt(current)) && Character.isJavaIdentifierPart(buffer.charAt(current))) {\n current--;\n }\n if (current < 0 || !Character.isWhitespace(buffer.charAt(current))) {\n return null;\n }\n StringBuilder sb = new StringBuilder();\n while (current >= 0 && (Character.isWhitespace(buffer.charAt(current)) || buffer.charAt(current) == '[' || buffer.charAt(current) == ']') && buffer.charAt(current) != '\\n' && buffer.charAt(current) != '\\r') {\n sb.append(buffer.charAt(current--));\n }\n if (current < 0 || !Character.isJavaIdentifierPart(buffer.charAt(current))) {\n return null;\n }\n while (current >= 0 && Character.isJavaIdentifierPart(buffer.charAt(current))) {\n sb.append(buffer.charAt(current--));\n }\n if (sb.length() > 0) {\n return new NameAndLocation(sb.reverse().toString(), current + 1);\n } else {\n return null;\n }\n}\n"
"public void onAuthenticationChanged(OnAuthenticationChanged event) {\n if (event.isError()) {\n endProgress();\n AppLog.e(T.API, \"String_Node_Str\" + event.error.type + \"String_Node_Str\" + event.error.message);\n mLoginListener.track(AnalyticsTracker.Stat.LOGIN_FAILED, event.getClass().getSimpleName(), event.error.type.toString(), event.error.message);\n if (mIsSocialLogin) {\n mLoginListener.track(AnalyticsTracker.Stat.LOGIN_SOCIAL_FAILURE, event.getClass().getSimpleName(), event.error.type.toString(), event.error.message);\n }\n if (isAdded()) {\n handleAuthError(event.error.type, event.error.message);\n }\n return;\n }\n AppLog.i(T.NUX, \"String_Node_Str\" + event.toString());\n if (isSocialLoginConnect) {\n PushSocialLoginPayload payload = new PushSocialLoginPayload(mIdToken, mService);\n mDispatcher.dispatch(AccountActionBuilder.newPushSocialConnectAction(payload));\n } else {\n doFinishLogin();\n }\n}\n"
"public void refreshDrawer() {\n Menu menu = navView.getMenu();\n menu.clear();\n actionViewStateManager.deselectCurrentActionView();\n int order = 0;\n ArrayList<String> storageDirectories = mainActivity.getStorageDirectories();\n storage_count = 0;\n for (String file : storageDirectories) {\n File f = new File(file);\n String name;\n int icon1 = R.drawable.ic_sd_storage_white_24dp;\n if (\"String_Node_Str\".equals(file) || \"String_Node_Str\".equals(file) || \"String_Node_Str\".equals(file)) {\n name = resources.getString(R.string.storage);\n } else if (\"String_Node_Str\".equals(file)) {\n name = resources.getString(R.string.extstorage);\n } else if (\"String_Node_Str\".equals(file)) {\n name = resources.getString(R.string.rootdirectory);\n icon1 = R.drawable.ic_drawer_root_white;\n } else if (file.contains(OTGUtil.PREFIX_OTG)) {\n name = \"String_Node_Str\";\n icon1 = R.drawable.ic_usb_white_24dp;\n } else\n name = f.getName();\n if (!f.isDirectory() || f.canExecute()) {\n addNewItem(menu, STORAGES_GROUP, order++, name, new MenuMetadata(file), icon1, R.drawable.ic_show_chart_black_24dp);\n if (storage_count == 0)\n firstPath = file;\n else if (storage_count == 1)\n secondPath = file;\n storage_count++;\n }\n }\n dataUtils.setStorages(storageDirectories);\n if (dataUtils.getServers().size() > 0) {\n Collections.sort(dataUtils.getServers(), new BookSorter());\n synchronized (dataUtils.getServers()) {\n for (String[] file : dataUtils.getServers()) {\n addNewItem(menu, SERVERS_GROUP, order++, file[0], new MenuMetadata(file[1]), R.drawable.ic_settings_remote_white_24dp, R.drawable.ic_edit_24dp);\n }\n }\n }\n ArrayList<String[]> accountAuthenticationList = new ArrayList<>();\n if (CloudSheetFragment.isCloudProviderAvailable(mainActivity)) {\n for (CloudStorage cloudStorage : dataUtils.getAccounts()) {\n if (cloudStorage instanceof Dropbox) {\n addNewItem(menu, CLOUDS_GROUP, order++, CloudHandler.CLOUD_NAME_DROPBOX, new MenuMetadata(CloudHandler.CLOUD_PREFIX_DROPBOX + \"String_Node_Str\"), R.drawable.ic_dropbox_white_24dp, R.drawable.ic_edit_24dp);\n accountAuthenticationList.add(new String[] { CloudHandler.CLOUD_NAME_DROPBOX, CloudHandler.CLOUD_PREFIX_DROPBOX + \"String_Node_Str\" });\n } else if (cloudStorage instanceof Box) {\n addNewItem(menu, CLOUDS_GROUP, order++, CloudHandler.CLOUD_NAME_BOX, new MenuMetadata(CloudHandler.CLOUD_PREFIX_BOX + \"String_Node_Str\"), R.drawable.ic_box_white_24dp, R.drawable.ic_edit_24dp);\n accountAuthenticationList.add(new String[] { CloudHandler.CLOUD_NAME_BOX, CloudHandler.CLOUD_PREFIX_BOX + \"String_Node_Str\" });\n } else if (cloudStorage instanceof OneDrive) {\n addNewItem(menu, CLOUDS_GROUP, order++, CloudHandler.CLOUD_NAME_ONE_DRIVE, new MenuMetadata(CloudHandler.CLOUD_PREFIX_ONE_DRIVE + \"String_Node_Str\"), R.drawable.ic_onedrive_white_24dp, R.drawable.ic_edit_24dp);\n accountAuthenticationList.add(new String[] { CloudHandler.CLOUD_NAME_ONE_DRIVE, CloudHandler.CLOUD_PREFIX_ONE_DRIVE + \"String_Node_Str\" });\n } else if (cloudStorage instanceof GoogleDrive) {\n addNewItem(menu, CLOUDS_GROUP, order++, CloudHandler.CLOUD_NAME_GOOGLE_DRIVE, new MenuMetadata(CloudHandler.CLOUD_PREFIX_GOOGLE_DRIVE + \"String_Node_Str\"), R.drawable.ic_google_drive_white_24dp, R.drawable.ic_edit_24dp);\n accountAuthenticationList.add(new String[] { CloudHandler.CLOUD_NAME_GOOGLE_DRIVE, CloudHandler.CLOUD_PREFIX_GOOGLE_DRIVE + \"String_Node_Str\" });\n }\n }\n Collections.sort(accountAuthenticationList, new BookSorter());\n }\n if (mainActivity.getBoolean(PREFERENCE_SHOW_SIDEBAR_FOLDERS)) {\n if (dataUtils.getBooks().size() > 0) {\n Collections.sort(dataUtils.getBooks(), new BookSorter());\n synchronized (dataUtils.getBooks()) {\n for (String[] file : dataUtils.getBooks()) {\n addNewItem(menu, FOLDERS_GROUP, order++, file[0], new MenuMetadata(file[1]), R.drawable.ic_folder_white_24dp, R.drawable.ic_edit_24dp);\n }\n }\n }\n }\n Boolean[] quickAccessPref = TinyDB.getBooleanArray(mainActivity.getPrefs(), QuickAccessPref.KEY, QuickAccessPref.DEFAULT);\n if (mainActivity.getBoolean(PREFERENCE_SHOW_SIDEBAR_QUICKACCESSES)) {\n if (quickAccessPref[0]) {\n addNewItem(menu, QUICKACCESSES_GROUP, order++, R.string.quick, new MenuMetadata(\"String_Node_Str\"), R.drawable.ic_star_white_24dp, null);\n }\n if (quickAccessPref[1]) {\n addNewItem(menu, QUICKACCESSES_GROUP, order++, R.string.recent, new MenuMetadata(\"String_Node_Str\"), R.drawable.ic_history_white_24dp, null);\n }\n if (quickAccessPref[2]) {\n addNewItem(menu, QUICKACCESSES_GROUP, order++, R.string.images, new MenuMetadata(\"String_Node_Str\"), R.drawable.ic_photo_library_white_24dp, null);\n }\n if (quickAccessPref[3]) {\n addNewItem(menu, QUICKACCESSES_GROUP, order++, R.string.videos, new MenuMetadata(\"String_Node_Str\"), R.drawable.ic_video_library_white_24dp, null);\n }\n if (quickAccessPref[4]) {\n addNewItem(menu, QUICKACCESSES_GROUP, order++, R.string.audio, new MenuMetadata(\"String_Node_Str\"), R.drawable.ic_library_music_white_24dp, null);\n }\n if (quickAccessPref[5]) {\n addNewItem(menu, QUICKACCESSES_GROUP, order++, R.string.documents, new MenuMetadata(\"String_Node_Str\"), R.drawable.ic_library_books_white_24dp, null);\n }\n if (quickAccessPref[6]) {\n addNewItem(menu, QUICKACCESSES_GROUP, order++, R.string.apks, new MenuMetadata(\"String_Node_Str\"), R.drawable.ic_apk_library_white_24dp, null);\n }\n }\n addNewItem(menu, LASTGROUP, order++, R.string.ftp, new MenuMetadata(() -> {\n FragmentTransaction transaction2 = mainActivity.getSupportFragmentManager().beginTransaction();\n transaction2.replace(R.id.content_frame, new FTPServerFragment());\n mainActivity.getAppbar().getAppbarLayout().animate().translationY(0).setInterpolator(new DecelerateInterpolator(2)).start();\n pending_fragmentTransaction = transaction2;\n if (!isDrawerLocked)\n close();\n else\n onDrawerClosed();\n }), R.drawable.ic_ftp_white_24dp, null);\n addNewItem(menu, LASTGROUP, order++, R.string.apps, new MenuMetadata(() -> {\n FragmentTransaction transaction2 = mainActivity.getSupportFragmentManager().beginTransaction();\n transaction2.replace(R.id.content_frame, new AppsListFragment());\n mainActivity.getAppbar().getAppbarLayout().animate().translationY(0).setInterpolator(new DecelerateInterpolator(2)).start();\n pending_fragmentTransaction = transaction2;\n if (!isDrawerLocked)\n close();\n else\n onDrawerClosed();\n }), R.drawable.ic_android_white_24dp, null);\n addNewItem(menu, LASTGROUP, order++, R.string.setting, new MenuMetadata(() -> {\n Intent in = new Intent(mainActivity, PreferencesActivity.class);\n mainActivity.startActivity(in);\n mainActivity.finish();\n }), R.drawable.ic_settings_white_24dp, null);\n for (int i = 0; i < navView.getMenu().size(); i++) {\n navView.getMenu().getItem(i).setEnabled(true);\n }\n for (int group : GROUPS) {\n menu.setGroupCheckable(group, true, true);\n }\n MenuItem item = navView.getSelected();\n if (item != null) {\n item.setChecked(true);\n actionViewStateManager.selectActionView(item);\n isSomethingSelected = true;\n }\n}\n"
"public void setInputArray(IOPort port, Actor actor) throws IllegalActionException {\n if (!_dynamic && _buffer != null) {\n fillParameters(actor, port);\n }\n}\n"
"public void downloadFromExternal(boolean force) throws Exception {\n int oldVersion = Utils.getInternalSettingInt(mContext, Const.CAFETERIA_DB_VERSION, 1);\n if (oldVersion < 2) {\n db.execSQL(\"String_Node_Str\");\n db.execSQL(\"String_Node_Str\");\n Utils.setInternalSetting(mContext, Const.CAFETERIA_DB_VERSION, 2);\n force = true;\n }\n if (!force && !SyncManager.needSync(db, this, TIME_TO_SYNC)) {\n return;\n }\n String url = \"String_Node_Str\";\n JSONArray jsonArray = Utils.downloadJsonArray(mContext, url);\n removeCache();\n db.beginTransaction();\n try {\n for (int i = 0; i < jsonArray.length(); i++) {\n replaceIntoDb(getFromJson(jsonArray.getJSONObject(i)));\n }\n SyncManager.replaceIntoDb(db, this);\n db.setTransactionSuccessful();\n } finally {\n db.endTransaction();\n }\n}\n"
"protected String getSchemaURL() {\n return TagNames.JAVAEE_NAMESPACE + \"String_Node_Str\" + getSystemID();\n}\n"
"public String getAuthenticityToken() {\n if (!data.containsKey(AUTHENTICITY_KEY)) {\n put(AUTHENTICITY_KEY, UUID.randomUUID().toString());\n }\n return data.get(AUTHENTICITY_KEY);\n}\n"
"protected ResponseEntity queryRedirectDomainOrNs(QueryParam queryParam, String paramName) {\n LOGGER.debug(\"String_Node_Str\", queryParam);\n RedirectResponse redirect = redirectService.queryDomain(queryParam);\n String servicePartUri = QueryUri.DOMAIN.getName();\n if (queryParam instanceof NameserverQueryParam) {\n servicePartUri = QueryUri.NAMESERVER.getName();\n }\n if (null != redirect && StringUtils.isNotBlank(redirect.getUrl())) {\n String redirectUrl = StringUtil.generateEncodedRedirectURL(paramName, queryParam.getQueryUri().getName(), redirect.getUrl());\n return RestResponseUtil.createResponse301(redirectUrl);\n }\n LOGGER.debug(\"String_Node_Str\", queryParam);\n return RestResponseUtil.createResponse404();\n}\n"
"public int compare(CharSequence s1, CharSequence s2) {\n if (s1 instanceof CompactString && s2 instanceof CompactString) {\n CompactString cs1 = (CompactString) s1;\n CompactString cs2 = (CompactString) s2;\n return cs1.compareTo(cs2);\n }\n int len1 = s1.length();\n int len2 = s2.length();\n int n = Math.min(len1, len2);\n int k = 0;\n while (k < n) {\n char c1 = s1.charAt(k);\n char c2 = s2.charAt(k);\n if (c1 != c2) {\n return c2 - c1;\n }\n k++;\n }\n return len1 - len2;\n}\n"
"public static Path[] listOutputFiles(FileSystem fs, Path outpath) throws IOException {\n Collection<Path> outpaths = Lists.newArrayList();\n for (FileStatus s : fs.listStatus(outpath, PathFilters.logsCRCFilter())) {\n if (!s.isDir() && !s.getPath().getName().startsWith(\"String_Node_Str\")) {\n outpaths.add(s.getPath());\n }\n }\n return outpaths.toArray(new Path[outpaths.size()]);\n}\n"
"private void addIdentity(Identity idt) {\n for (Identity e : walletInMem.getIdentities()) {\n if (e.ontid.equals(idt.ontid)) {\n return;\n }\n }\n wallet.getIdentities().add(idt);\n}\n"
"public void testSetScopeToResourceTestCase() throws Exception {\n String APIContext = \"String_Node_Str\";\n String tags = \"String_Node_Str\";\n String url = \"String_Node_Str\";\n String description = \"String_Node_Str\";\n apiPublisher.login(user.getUserName(), user.getPassword());\n APIRequest apiRequest = new APIRequest(APIName, APIContext, new URL(url));\n apiRequest.setTags(tags);\n apiRequest.setDescription(description);\n apiRequest.setVersion(APIVersion);\n apiRequest.setVisibility(\"String_Node_Str\");\n apiRequest.setRoles(\"String_Node_Str\");\n apiRequest.setProvider(providerName);\n apiPublisher.addAPI(apiRequest);\n apiPublisher.deleteAPI(APIName, APIVersion, providerName);\n apiPublisher.addAPI(apiRequest);\n APILifeCycleStateRequest updateRequest = new APILifeCycleStateRequest(APIName, providerName, APILifeCycleState.PUBLISHED);\n apiPublisher.changeAPILifeCycleStatus(updateRequest);\n waitForAPIDeploymentSync(apiRequest.getProvider(), apiRequest.getName(), apiRequest.getVersion(), APIMIntegrationConstants.IS_API_EXISTS);\n String modifiedResource = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"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 HttpResponse response = apiPublisher.updateResourceOfAPI(providerName, APIName, APIVersion, modifiedResource);\n apiStoreRestClient.waitForSwaggerDocument(providerName, APIName, APIVersion, \"String_Node_Str\", executionMode);\n JSONObject jsonObject = new JSONObject(response.getData());\n boolean error = (Boolean) jsonObject.get(\"String_Node_Str\");\n assertEquals(error, false, \"String_Node_Str\");\n}\n"
"public GChoice leaveProjection(ScribNode parent, ScribNode child, Projector proj, ScribNode visited) throws ScribbleException {\n GChoice gc = (GChoice) visited;\n List<LProtocolBlock> blocks = gc.getBlocks().stream().map((b) -> (LProtocolBlock) ((ProjectionEnv) b.del().env()).getProjection()).collect(Collectors.toList());\n LChoice projection = null;\n if (blocks.stream().filter((b) -> !b.isEmpty()).count() > 0) {\n List<LChoice> cs = blocks.stream().map((b) -> AstFactoryImpl.FACTORY.LChoice(AstFactoryImpl.FACTORY.DummyProjectionRoleNode(), Arrays.asList(b))).collect(Collectors.toList());\n LChoice merged = cs.get(0);\n for (int i = 1; i < cs.size(); i++) {\n merged = merged.merge(cs.get(i));\n }\n projection = merged;\n }\n proj.pushEnv(proj.popEnv().setProjection(projection));\n return (GChoice) GCompoundInteractionNodeDel.super.leaveProjection(parent, child, proj, gc);\n}\n"
"private void spawnMob(World world, int x, int y, int z) {\n if (GraveStoneMobSpawn.checkChance(world.rand)) {\n TileEntityGSGraveStone tileEntity = (TileEntityGSGraveStone) world.getBlockTileEntity(x, y, z);\n if (tileEntity != null) {\n Entity mob = GraveStoneMobSpawn.getMobEntity(world, tileEntity.getGraveType(), x, y, z);\n if (mob != null) {\n GraveStoneMobSpawn.spawnMob(world, mob, x, y, z);\n }\n }\n }\n}\n"
"public void updateListView() {\n MainActivity activity = (MainActivity) getActivity();\n Radio playingRadio = null;\n if (activity.getCurrentPlayingItem() instanceof Radio)\n playingRadio = (Radio) activity.getCurrentPlayingItem();\n RadioArrayAdapter adapter = new RadioArrayAdapter(this, Radio.getRadios(), playingRadio);\n list.setAdapter(adapter);\n}\n"
"public T next() {\n try {\n T t = varList.get(offset);\n offset += varList.entityFactory.getLength(t);\n index++;\n return t;\n } catch (Exception ex) {\n return null;\n }\n}\n"
"public int getPhase() {\n return phase;\n}\n"
"public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n final Project other = (Project) obj;\n if (this.project == null) {\n if (other.project != null) {\n return false;\n }\n } else if (!this.project.equals(other.project)) {\n if (this.project.getTechnicalLabel().equals(other.project.getTechnicalLabel()))\n return true;\n return false;\n }\n return true;\n}\n"
"static Boolean restoreMuteState(Phone phone) {\n Connection c = phone.getForegroundCall().getEarliestConnection();\n if (c != null) {\n Boolean shouldMute;\n if (phone.getPhoneName().equals(\"String_Node_Str\") && PhoneApp.getInstance().cdmaPhoneCallState.getCurrentCallState() == CdmaPhoneCallState.PhoneCallState.THRWAY_ACTIVE) {\n shouldMute = sConnectionMuteTable.get(phone.getForegroundCall().getLatestConnection());\n } else {\n shouldMute = sConnectionMuteTable.get(phone.getForegroundCall().getEarliestConnection());\n }\n if (shouldMute == null) {\n if (DBG)\n log(\"String_Node_Str\");\n shouldMute = Boolean.FALSE;\n }\n setMute(phone, shouldMute.booleanValue());\n return shouldMute;\n }\n return Boolean.valueOf(getMute(phone));\n}\n"
"public void initialize() throws IllegalActionException, NameDuplicationException {\n if (_initialized) {\n return;\n }\n if (initialParametersURL == null) {\n throw new IllegalActionException(this, \"String_Node_Str\" + \"String_Node_Str\");\n }\n URL initialParameters = getClass().getClassLoader().getResource(initialParametersURL.getExpression());\n if (initialParameters == null) {\n throw new IllegalActionException(this, \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + initialParametersURL.getExpression() + \"String_Node_Str\");\n }\n BufferedReader inputReader = null;\n try {\n inputReader = new BufferedReader(new InputStreamReader(initialParameters.openStream(), \"String_Node_Str\"));\n String inputLine;\n StringBuffer buffer = new StringBuffer();\n while ((inputLine = inputReader.readLine()) != null) {\n buffer.append(inputLine + \"String_Node_Str\");\n }\n inputReader.close();\n addChangeListener(this);\n try {\n requestChange(new MoMLChangeRequest(this, this, buffer.toString()));\n } catch (Exception ex) {\n throw new IllegalActionException(this, ex, \"String_Node_Str\" + buffer.toString());\n }\n } catch (Exception ex) {\n throw new IllegalActionException(this, ex, \"String_Node_Str\" + initialParametersURL.getExpression() + \"String_Node_Str\");\n } finally {\n try {\n if (inputReader != null) {\n inputReader.close();\n }\n } catch (IOException ex) {\n throw new IllegalActionException(this, ex, \"String_Node_Str\" + initialParameters + \"String_Node_Str\");\n }\n }\n _initialized = true;\n}\n"
"public void initialize(FormEditor editor) {\n super.initialize(editor);\n String[] supportTypes = PatternLanguageType.getAllLanguageTypes();\n allDBTypeList = new ArrayList<String>();\n allDBTypeList.addAll(Arrays.asList(supportTypes));\n remainDBTypeList = new ArrayList<String>();\n remainDBTypeList.addAll(allDBTypeList);\n remainDBTypeListAF = new ArrayList<String>();\n remainDBTypeListAF.addAll(allDBTypeList);\n remainDBTypeListCM = new ArrayList<String>();\n remainDBTypeListCM.addAll(allDBTypeList);\n initTempExpressionMap();\n if (widgetMap == null) {\n widgetMap = new HashMap<CCombo, Composite>();\n } else {\n widgetMap.clear();\n }\n definition = (IndicatorDefinition) getCurrentModelElement(getEditor());\n if (definition != null && definition.getCategories().size() > 0) {\n category = definition.getCategories().get(0);\n } else {\n category = DefinitionHandler.getInstance().getUserDefinedCountIndicatorCategory();\n }\n if (definition != null) {\n hasAggregateExpression = definition.getAggregate1argFunctions().size() > 0;\n hasDateExpression = definition.getDate1argFunctions().size() > 0;\n hasCharactersMapping = definition.getCharactersMapping().size() > 0;\n }\n systemIndicator = this.getEditor().getEditorInput() instanceof IndicatorEditorInput;\n afExpressionMap = new HashMap<String, AggregateDateExpression>();\n afExpressionMapTemp = new HashMap<String, AggregateDateExpression>();\n charactersMappingMap = new HashMap<String, CharactersMapping>();\n charactersMappingMapTemp = new HashMap<String, CharactersMapping>();\n}\n"
"private Node createExternFunction(Node exportedFunction) {\n Node paramList = NodeUtil.getFunctionParameters(exportedFunction).cloneTree();\n Node param = paramList.getFirstChild();\n while (param != null && param.isName()) {\n String originalName = param.getOriginalName();\n if (originalName != null) {\n param.setString(originalName);\n }\n param = param.getNext();\n }\n Node externFunction = IR.function(IR.name(\"String_Node_Str\"), paramList, IR.block());\n if (exportedFunction.getJSType() != null) {\n externFunction.setJSType(exportedFunction.getJSType());\n deleteInlineJsdocs(externFunction);\n }\n return externFunction;\n}\n"
"public int doStartTag() throws JspException {\n if (null != snip) {\n Map dublinCore = DublinCore.generate(snip);\n try {\n JspWriter out = pageContext.getOut();\n if (\"String_Node_Str\".equals(format)) {\n Iterator iterator = dublinCore.keySet().iterator();\n while (iterator.hasNext()) {\n String name = (String) iterator.next();\n String value = (String) dublinCore.get(name);\n out.print(\"String_Node_Str\");\n out.print(name.toLowerCase());\n out.print(\"String_Node_Str\");\n out.print(Encoder.escape(value));\n out.print(\"String_Node_Str\");\n out.print(name);\n out.println(\"String_Node_Str\");\n }\n } else {\n out.println(\"String_Node_Str\");\n Iterator iterator = dublinCore.keySet().iterator();\n while (iterator.hasNext()) {\n String name = (String) iterator.next();\n String value = (String) dublinCore.get(name);\n out.print(\"String_Node_Str\");\n out.print(capitalize(name));\n out.print(\"String_Node_Str\");\n out.print(value);\n out.println(\"String_Node_Str\");\n }\n }\n } catch (IOException e) {\n Logger.warn(\"String_Node_Str\", e);\n }\n }\n return super.doStartTag();\n}\n"
"public void testCatchingUp() throws Exception {\n init(true);\n for (int i = 1; i <= 2; i++) as.put(i, i);\n assertSame(as, bs, cs);\n close(true, true, c);\n for (int i = 3; i <= 5; i++) as.put(i, i);\n assertSame(as, bs);\n c = create(\"String_Node_Str\", true);\n cs = new ReplicatedStateMachine<>(c);\n c.connect(CLUSTER);\n Util.waitUntilAllChannelsHaveSameView(10000, 500, a, b, c);\n assertSame(as, bs, cs);\n}\n"
"public final void setImage_(final File imageFile) {\n Gtk.dispatch(new Runnable() {\n\n public void run() {\n AppIndicator.app_indicator_set_icon(appIndicator, imageFile.getAbsolutePath());\n if (!isActive) {\n isActive = true;\n AppIndicator.app_indicator_set_status(appIndicator, AppIndicator.STATUS_ACTIVE);\n hookMenuOpen();\n }\n }\n });\n dispatch(new Runnable() {\n public void run() {\n ((TrayPopup) _native).setTitleBarImage(imageFile);\n }\n });\n}\n"
"protected void resolveOnce() {\n String[] cmd = new String[] { configuration.getMplayerPath(), \"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\", ProcessUtil.getShortFileNameIfWideChars(file.getAbsolutePath()), \"String_Node_Str\" + title };\n OutputParams params = new OutputParams(configuration);\n params.maxBufferSize = 1;\n if (configuration.isDvdIsoThumbnails()) {\n try {\n params.workDir = configuration.getTempFolder();\n } catch (IOException e1) {\n LOGGER.debug(\"String_Node_Str\", e1);\n }\n cmd[2] = \"String_Node_Str\";\n cmd[3] = \"String_Node_Str\";\n cmd[7] = \"String_Node_Str\";\n cmd[8] = \"String_Node_Str\";\n String frameName = \"String_Node_Str\" + this.hashCode();\n frameName = \"String_Node_Str\" + frameName + \"String_Node_Str\";\n frameName = frameName.replace(',', '_');\n cmd[10] = \"String_Node_Str\" + frameName;\n }\n params.log = true;\n final ProcessWrapperImpl pw = new ProcessWrapperImpl(cmd, params, true, false);\n Runnable r = new Runnable() {\n public void run() {\n try {\n Thread.sleep(10000);\n } catch (InterruptedException e) {\n }\n pw.stopProcess();\n }\n };\n Thread failsafe = new Thread(r, \"String_Node_Str\");\n failsafe.start();\n pw.runInSameThread();\n List<String> lines = pw.getOtherResults();\n String duration = null;\n int nbsectors = 0;\n String fps = null;\n String aspect = null;\n String width = null;\n String height = null;\n ArrayList<DLNAMediaAudio> audio = new ArrayList<>();\n ArrayList<DLNAMediaSubtitle> subs = new ArrayList<>();\n if (lines != null) {\n for (String line : lines) {\n if (line.startsWith(\"String_Node_Str\")) {\n nbsectors = Integer.parseInt(line.substring(line.lastIndexOf('=') + 1).trim());\n }\n if (line.startsWith(\"String_Node_Str\")) {\n DLNAMediaAudio lang = new DLNAMediaAudio();\n lang.setId(Integer.parseInt(line.substring(line.indexOf(\"String_Node_Str\") + 5, line.lastIndexOf('.')).trim()));\n lang.setLang(line.substring(line.indexOf(\"String_Node_Str\") + 10, line.lastIndexOf(\"String_Node_Str\")).trim());\n int end = line.lastIndexOf(\"String_Node_Str\");\n if (line.lastIndexOf('(') < end && line.lastIndexOf('(') > line.indexOf(\"String_Node_Str\")) {\n end = line.lastIndexOf('(');\n }\n lang.setCodecA(line.substring(line.indexOf(\"String_Node_Str\") + 8, end).trim());\n if (line.contains(\"String_Node_Str\")) {\n lang.getAudioProperties().setNumberOfChannels(2);\n } else {\n lang.getAudioProperties().setNumberOfChannels(6);\n }\n audio.add(lang);\n }\n if (line.startsWith(\"String_Node_Str\")) {\n DLNAMediaSubtitle lang = new DLNAMediaSubtitle();\n lang.setId(Integer.parseInt(line.substring(line.indexOf(\"String_Node_Str\") + 3, line.lastIndexOf(\"String_Node_Str\")).trim()));\n lang.setLang(line.substring(line.indexOf(\"String_Node_Str\") + 10).trim());\n if (lang.getLang().equals(\"String_Node_Str\")) {\n lang.setLang(DLNAMediaLang.UND);\n }\n lang.setType(SubtitleType.UNKNOWN);\n subs.add(lang);\n }\n if (line.startsWith(\"String_Node_Str\")) {\n width = line.substring(line.indexOf(\"String_Node_Str\") + 15).trim();\n }\n if (line.startsWith(\"String_Node_Str\")) {\n height = line.substring(line.indexOf(\"String_Node_Str\") + 16).trim();\n }\n if (line.startsWith(\"String_Node_Str\")) {\n fps = line.substring(line.indexOf(\"String_Node_Str\") + 13).trim();\n }\n if (line.startsWith(\"String_Node_Str\")) {\n duration = line.substring(line.indexOf(\"String_Node_Str\") + 10).trim();\n }\n if (line.startsWith(\"String_Node_Str\")) {\n aspect = line.substring(line.indexOf(\"String_Node_Str\") + 16).trim();\n }\n }\n }\n if (configuration.isDvdIsoThumbnails()) {\n try {\n String frameName = \"String_Node_Str\" + this.hashCode();\n frameName = configuration.getTempFolder() + \"String_Node_Str\" + frameName + \"String_Node_Str\";\n frameName = frameName.replace(',', '_');\n File jpg = new File(frameName + \"String_Node_Str\");\n if (jpg.exists()) {\n try (InputStream is = new FileInputStream(jpg)) {\n int sz = is.available();\n if (sz > 0) {\n byte[] thumb = new byte[sz];\n is.read(thumb);\n getMedia().setThumb(thumb);\n }\n }\n if (!jpg.delete()) {\n jpg.deleteOnExit();\n }\n if (!jpg.getParentFile().delete() && !jpg.getParentFile().delete()) {\n LOGGER.debug(\"String_Node_Str\" + jpg.getParentFile().getAbsolutePath() + \"String_Node_Str\");\n }\n }\n jpg = new File(frameName + \"String_Node_Str\");\n if (jpg.exists()) {\n if (!jpg.delete()) {\n jpg.deleteOnExit();\n }\n if (!jpg.getParentFile().delete()) {\n jpg.getParentFile().delete();\n }\n }\n } catch (IOException e) {\n LOGGER.trace(\"String_Node_Str\" + e.getMessage());\n }\n }\n length = nbsectors * 2048;\n double d = 0;\n if (duration != null) {\n d = Double.parseDouble(duration);\n }\n getMedia().setAudioTracksList(audio);\n getMedia().setSubtitleTracksList(subs);\n if (duration != null) {\n getMedia().setDuration(d);\n }\n getMedia().setFrameRate(fps);\n getMedia().setAspectRatioDvdIso(aspect);\n getMedia().setDvdtrack(title);\n getMedia().setContainer(\"String_Node_Str\");\n getMedia().setCodecV(\"String_Node_Str\");\n try {\n getMedia().setWidth(Integer.parseInt(width));\n } catch (NumberFormatException nfe) {\n LOGGER.debug(\"String_Node_Str\" + width + \"String_Node_Str\");\n }\n try {\n getMedia().setHeight(Integer.parseInt(height));\n } catch (NumberFormatException nfe) {\n LOGGER.debug(\"String_Node_Str\" + height + \"String_Node_Str\");\n }\n getMedia().setMediaparsed(true);\n}\n"
"public Plan getPlan(String... args) {\n int noSubTasks = (args.length > 0 ? Integer.parseInt(args[0]) : 1);\n String dataInput = (args.length > 1 ? args[1] : \"String_Node_Str\");\n String output = (args.length > 2 ? args[2] : \"String_Node_Str\");\n DataSourceContract<PactNull, PactString> data = new DataSourceContract<PactNull, PactString>(LineInFormat.class, dataInput, \"String_Node_Str\");\n data.setDegreeOfParallelism(noSubTasks);\n MapContract<PactNull, PactString, PactString, PactInteger> mapper = new MapContract<PactNull, PactString, PactString, PactInteger>(TokenizeLine.class, \"String_Node_Str\");\n mapper.setDegreeOfParallelism(noSubTasks);\n ReduceContract<PactString, PactInteger, PactString, PactInteger> reducer = new ReduceContract<PactString, PactInteger, PactString, PactInteger>(CountWords.class, \"String_Node_Str\");\n reducer.setDegreeOfParallelism(noSubTasks);\n DataSinkContract<PactString, PactInteger> out = new DataSinkContract<PactString, PactInteger>(WordCountOutFormat.class, output, \"String_Node_Str\");\n out.setDegreeOfParallelism(noSubTasks);\n out.setInput(reducer);\n reducer.setInput(mapper);\n mapper.setInput(data);\n return new Plan(out, \"String_Node_Str\");\n}\n"
"public void addFieldWrite(DynamicComposite composite, Object instance) {\n Object current = null;\n if (instance != null) {\n current = ProxyUtils.getAdded(instance);\n }\n getSerializationStrategy().addToComponent(composite, current);\n}\n"
"public void testInOperators() {\n Condition.In in = column(ConditionModel$Table.NAME).in(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n ConditionGroup conditionQueryBuilder = ConditionGroup.clause().and(in);\n assertEquals(\"String_Node_Str\", conditionQueryBuilder.getQuery().trim());\n Condition.In notIn = column(ConditionModel$Table.NAME).notIn(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n conditionQueryBuilder = new ConditionQueryBuilder<>(ConditionModel.class, notIn);\n assertEquals(\"String_Node_Str\", conditionQueryBuilder.getQuery().trim());\n}\n"