content
stringlengths
40
137k
"private static IndexMetaDataCache getIndexMetaData(RegionCoprocessorEnvironment env, Map<String, byte[]> attributes) throws IOException {\n if (attributes == null) {\n return IndexMetaDataCache.EMPTY_INDEX_META_DATA_CACHE;\n }\n byte[] uuid = attributes.get(PhoenixIndexCodec.INDEX_UUID);\n if (uuid == null) {\n return IndexMetaDataCache.EMPTY_INDEX_META_DATA_CACHE;\n }\n boolean useProto = false;\n byte[] md = attributes.get(PhoenixIndexCodec.INDEX_PROTO_MD);\n useProto = md != null;\n if (md == null) {\n md = attributes.get(PhoenixIndexCodec.INDEX_MD);\n }\n byte[] txState = attributes.get(BaseScannerRegionObserver.TX_STATE);\n if (md != null) {\n final List<IndexMaintainer> indexMaintainers = IndexMaintainer.deserialize(md, useProto);\n final PhoenixTransactionContext txnContext = TransactionFactory.getTransactionFactory().getTransactionContext(txState);\n return new IndexMetaDataCache() {\n public void close() throws IOException {\n }\n public List<IndexMaintainer> getIndexMaintainers() {\n return indexMaintainers;\n }\n public PhoenixTransactionContext getTransactionContext() {\n return txnContext;\n }\n };\n } else {\n byte[] tenantIdBytes = attributes.get(PhoenixRuntime.TENANT_ID_ATTRIB);\n ImmutableBytesPtr tenantId = tenantIdBytes == null ? null : new ImmutableBytesPtr(tenantIdBytes);\n TenantCache cache = GlobalCache.getTenantCache(env, tenantId);\n IndexMetaDataCache indexCache = (IndexMetaDataCache) cache.getServerCache(new ImmutableBytesPtr(uuid));\n if (indexCache == null) {\n String msg = \"String_Node_Str\" + ServerCacheClient.idToString(uuid) + \"String_Node_Str\" + env.getRegion() + \"String_Node_Str\" + env.getServerName().getServerName();\n SQLException e = new SQLExceptionInfo.Builder(SQLExceptionCode.INDEX_METADATA_NOT_FOUND).setMessage(msg).build().buildException();\n ServerUtil.throwIOException(\"String_Node_Str\", e);\n }\n return indexCache;\n }\n}\n"
"private void getHWExceptionRegisters(int verbosity) {\n if (processCodeLocations && thread.hardwareExceptionRegisters.inuse) {\n Address ip = thread.hardwareExceptionRegisters.ip;\n VM_CompiledMethod compiledMethod = VM_CompiledMethods.findMethodForInstruction(ip);\n if (VM.VerifyAssertions) {\n VM._assert(compiledMethod != null);\n compiledMethod.setObsolete(false);\n ObjectReference code = ObjectReference.fromObject(compiledMethod.getEntryCodeArray());\n Address ipLoc = thread.hardwareExceptionRegisters.getIPLocation();\n codeLocationsPush(code, ipLoc);\n }\n}\n"
"public void doSessionCreated(final SessionManagementBean sessionBean) throws Exception {\n ServiceManagementBean serviceBean = sessionBean.getServiceManagementBean();\n if (serviceBean.areNotificationsEnabled()) {\n JSONObject sessionData = new JSONObject();\n IoSessionEx session = sessionBean.getSession();\n sessionData.put(\"String_Node_Str\", session.getId());\n sessionData.put(\"String_Node_Str\", serviceBean.getId());\n sessionData.put(\"String_Node_Str\", session.getCreationTime());\n sessionData.put(\"String_Node_Str\", session.getLocalAddress());\n sessionData.put(\"String_Node_Str\", serviceBean.getSessionRemoteAddress(session));\n ResourceAddress address = BridgeSession.LOCAL_ADDRESS.get(session);\n sessionData.put(\"String_Node_Str\", Utils.getSessionTypeName(address));\n sessionData.put(\"String_Node_Str\", Utils.getSessionDirection(session));\n Map<String, String> userPrincipals = sessionBean.getUserPrincipalMap();\n if (userPrincipals != null) {\n sessionData.put(\"String_Node_Str\", userPrincipals);\n }\n JSONObject protocolAttributes = null;\n if (session instanceof AbstractWsBridgeSession) {\n AbstractWsBridgeSession wsBridgeSession = (AbstractWsBridgeSession) session;\n protocolAttributes = new JSONObject();\n List<WebSocketExtension> extensions = wsBridgeSession.getExtensions();\n if (extensions != null && extensions.size() > 0) {\n JSONObject jsonObj = new JSONObject();\n for (ExtensionHeader extension : extensions) {\n String token = extension.getExtensionToken();\n JSONArray paramsArray = null;\n if (extension.hasParameters()) {\n paramsArray = new JSONArray();\n for (ExtensionParameter param : extension.getParameters()) {\n String name = param.getName();\n String value = param.getValue();\n if (value == null) {\n paramsArray.put(name.toString());\n } else {\n paramsArray.put(name.toString() + \"String_Node_Str\" + value.toString());\n }\n }\n }\n jsonObj.put(token, paramsArray);\n }\n protocolAttributes.put(\"String_Node_Str\", jsonObj);\n }\n if (session instanceof WsnSession) {\n WsnSession wsnSession = (WsnSession) session;\n WebSocketWireProtocol protocolVersion = wsnSession.getVersion();\n protocolAttributes.put(\"String_Node_Str\", protocolVersion.toString());\n } else if (session instanceof WsebSession) {\n WsebSession wsebSession = (WsebSession) session;\n ResourceAddress readAddr = wsebSession.getReadAddress();\n ResourceAddress writeAddr = wsebSession.getWriteAddress();\n if (readAddr != null) {\n protocolAttributes.put(\"String_Node_Str\", readAddr);\n }\n if (writeAddr != null) {\n protocolAttributes.put(\"String_Node_Str\", writeAddr);\n }\n } else if (session instanceof WsrSession) {\n WsrSession wsrSession = (WsrSession) session;\n ResourceAddress rtmpAddress = wsrSession.getRtmpAddress();\n protocolAttributes.put(\"String_Node_Str\", rtmpAddress);\n }\n }\n if (protocolAttributes != null) {\n sessionData.put(\"String_Node_Str\", protocolAttributes);\n }\n OID notificationOID = MIBConstants.oidServiceConnectionNotification;\n VariableBinding[] variables = new VariableBinding[1];\n variables[0] = new VariableBinding(notificationOID, new OctetString(sessionData.toString()));\n sendNotification(notificationOID, variables);\n }\n}\n"
"public boolean contains(JavaFXHierarchyContainer child) {\n List<JavaFXHierarchyContainer> children = getContainerList();\n for (JavaFXHierarchyContainer cont : children) {\n if (cont.equals(child)) {\n return true;\n }\n }\n return false;\n}\n"
"public String getInstallDir() {\n if (installDir != null)\n return installDir;\n String existingVal = getEntity().getAttribute(SoftwareProcess.INSTALL_DIR);\n if (Strings.isNonBlank(existingVal)) {\n installDir = existingVal;\n return installDir;\n }\n setInstallLabel();\n Maybe<Object> minstallDir = getEntity().getConfigRaw(SoftwareProcess.INSTALL_DIR, true);\n if (!minstallDir.isPresent() || minstallDir.get() == null) {\n String installBasedir = ((EntityInternal) entity).getManagementContext().getConfig().getFirst(\"String_Node_Str\");\n if (installBasedir != null) {\n log.warn(\"String_Node_Str\" + entity + \"String_Node_Str\");\n installDir = Os.mergePathsUnix(installBasedir, getEntityVersionLabel() + \"String_Node_Str\" + entity.getId());\n installDir = Os.tidyPath(installDir);\n getEntity().setAttribute(SoftwareProcess.INSTALL_DIR, installDir);\n return installDir;\n }\n }\n setInstallDir(Os.tidyPath(ConfigToAttributes.apply(getEntity(), SoftwareProcess.INSTALL_DIR)));\n return installDir;\n}\n"
"protected int doCompare(Viewer v, Object e1, Object e2) {\n ILabelProvider labelProvider = (ILabelProvider) viewer.getLabelProvider(columnIndex);\n String t1 = labelProvider.getText(e1);\n String t2 = labelProvider.getText(e2);\n if (t1 == null)\n t1 = \"String_Node_Str\";\n if (t2 == null)\n t2 = \"String_Node_Str\";\n return t1.compareToIgnoreCase(t2);\n}\n"
"protected void drawSimpleLabels(Graphics2D g2, List keys, double totalValue, Rectangle2D plotArea, Rectangle2D pieArea, PiePlotState state) {\n Composite originalComposite = g2.getComposite();\n g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 1.0f));\n Rectangle2D labelsArea = this.simpleLabelOffset.createInsetRectangle(pieArea);\n double runningTotal = 0.0;\n for (Comparable key : keys) {\n boolean include;\n double v = 0.0;\n Number n = getDataset().getValue(key);\n if (n == null) {\n include = !getIgnoreNullValues();\n } else {\n v = n.doubleValue();\n include = getIgnoreZeroValues() ? v > 0.0 : v >= 0.0;\n }\n if (include) {\n runningTotal = runningTotal + v;\n double mid = getStartAngle() + (getDirection().getFactor() * ((runningTotal - v / 2.0) * 360) / totalValue);\n Arc2D arc = new Arc2D.Double(labelsArea, getStartAngle(), mid - getStartAngle(), Arc2D.OPEN);\n int x = (int) arc.getEndPoint().getX();\n int y = (int) arc.getEndPoint().getY();\n PieSectionLabelGenerator myLabelGenerator = getLabelGenerator();\n if (myLabelGenerator == null) {\n continue;\n }\n String label = myLabelGenerator.generateSectionLabel(this.dataset, key);\n if (label == null) {\n continue;\n }\n g2.setFont(this.labelFont);\n FontMetrics fm = g2.getFontMetrics();\n Rectangle2D bounds = TextUtilities.getTextBounds(label, g2, fm);\n Rectangle2D out = this.labelPadding.createOutsetRectangle(bounds);\n Shape bg = ShapeUtilities.createTranslatedShape(out, x - bounds.getCenterX(), y - bounds.getCenterY());\n if (this.labelShadowPaint != null && this.shadowGenerator == null) {\n Shape shadow = ShapeUtilities.createTranslatedShape(bg, this.shadowXOffset, this.shadowYOffset);\n g2.setPaint(this.labelShadowPaint);\n g2.fill(shadow);\n }\n if (this.labelBackgroundPaint != null) {\n g2.setPaint(this.labelBackgroundPaint);\n g2.fill(bg);\n }\n if (this.labelOutlinePaint != null && this.labelOutlineStroke != null) {\n g2.setPaint(this.labelOutlinePaint);\n g2.setStroke(this.labelOutlineStroke);\n g2.draw(bg);\n }\n g2.setPaint(this.labelPaint);\n g2.setFont(this.labelFont);\n TextUtilities.drawAlignedString(label, g2, x, y, TextAnchor.CENTER);\n }\n }\n g2.setComposite(originalComposite);\n}\n"
"public byte[] getXAttr(long fileId, String uid, String key) throws DatabaseException {\n try {\n byte[] prefix = BabuDBStorageHelper.createXAttrPrefixKey(fileId, uid, key);\n it = database.prefixLookup(XATTRS_INDEX, prefix, null).get();\n while (it.hasNext()) {\n Entry<byte[], byte[]> curr = it.next();\n BufferBackedXAttr xattr = new BufferBackedXAttr(curr.getKey(), curr.getValue());\n if (uid.equals(xattr.getOwner()) && key.equals(xattr.getKey()))\n return xattr.getValue();\n }\n return null;\n } catch (BabuDBException exc) {\n throw new DatabaseException(exc);\n }\n}\n"
"protected boolean canDrop(Object source) {\n if (source == null) {\n return false;\n }\n if (source instanceof StructuredSelection) {\n return canDrop(((StructuredSelection) source).toArray());\n }\n if (source instanceof Object[]) {\n Object[] array = (Object[]) source;\n if (array.length == 0) {\n return false;\n }\n for (int i = 0; i < array.length; i++) {\n if (DNDUtil.checkContainerExists(array[i], array))\n continue;\n if (canDrop(array[i]))\n return true;\n }\n return false;\n }\n source = DNDUtil.unwrapToModel(source);\n if (source instanceof SlotHandle) {\n SlotHandle slot = (SlotHandle) source;\n DesignElementHandle handle = slot.getElementHandle();\n return slot.getContents().size() > 0 && (handle instanceof ListHandle || handle instanceof ListGroupHandle);\n }\n if (source instanceof EmbeddedImageHandle) {\n return true;\n }\n if (source instanceof CellHandle) {\n return ((CellHandle) source).getContent().getContents().size() > 0;\n }\n if (source instanceof MasterPageHandle) {\n return false;\n } else if (source instanceof ReportElementHandle) {\n if (((ReportElementHandle) source).getRoot() instanceof LibraryHandle && SessionHandleAdapter.getInstance().getReportDesignHandle() instanceof ReportDesignHandle) {\n return false;\n }\n return true;\n } else\n return false;\n}\n"
"public boolean hasInvalidCharacters() {\n if (!ValueValidationUtil.isEmpty(value)) {\n Matcher matcher = VALID_CHARS.matcher(value);\n return !matcher.matches();\n }\n return true;\n}\n"
"private static boolean cacheMe(Class implClass) {\n if (cacheMeCache.containsKey(implClass)) {\n return ((Boolean) cacheMeCache.get(implClass)).booleanValue();\n else {\n boolean reusable = true;\n String key = REUSABLE_PREFIX + implClass.getName();\n if (ConfigurationManager.getProperty(key) != null)\n reusable = ConfigurationManager.getBooleanProperty(key);\n cacheMeCache.put(implClass, new Boolean(reusable));\n return reusable;\n }\n}\n"
"public static ThroughputBenchmark newInstance(final String URL, final int concurrency, final int timeInMinute, final int SQLType, final boolean isElasticsearchPrimitive) throws Exception {\n if (!isElasticsearchPrimitive) {\n return new CrabsThroughputBenchmark(URL, concurrency, timeInMinute, SQLType);\n }\n final Protocol protocol = Protocol.parseURL(URL);\n final Properties properties = protocol.getProperties();\n properties.put(PROPERTY_ENTRY$BENCHMARK_ENABLED.identifier, true);\n return new ElasticsearchThroughputBenchmark(protocol.getServerAddresses(), protocol.getDatabaseName(), \"String_Node_Str\", properties, timeInMinute, concurrency, SQLType, Boolean.parseBoolean(properties.getProperty(PROPERTY_ENTRY$ES_CACHE_ENABLED.identifier, PROPERTY_ENTRY$ES_CACHE_ENABLED.defaultValue)));\n}\n"
"public static String maskPasswordsInDefinition(String definition) {\n Assert.hasText(definition, \"String_Node_Str\");\n final StringBuffer output = new StringBuffer();\n final Matcher matcher = passwordParameterPattern.matcher(definition);\n while (matcher.find()) {\n final String passwordValue = matcher.group(3);\n final String maskedPasswordValue;\n if (passwordValue.startsWith(\"String_Node_Str\") && passwordValue.endsWith(\"String_Node_Str\")) {\n final String passwordValueWithoutQuotes = passwordValue.substring(1, passwordValue.length() - 1);\n maskedPasswordValue = \"String_Node_Str\" + passwordValueWithoutQuotes.replaceAll(\"String_Node_Str\", \"String_Node_Str\") + \"String_Node_Str\";\n } else {\n maskedPasswordValue = matcher.group(3).replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n }\n matcher.appendReplacement(output, matcher.group(1) + maskedPasswordValue);\n }\n matcher.appendTail(output);\n return output.toString();\n}\n"
"public IDataSetResultSet loadDataSetData(IResultClass targetResultClass, IOrderedIntSet preFilteredRowIds, Map<String, StringTable> stringTableMap, Map index, boolean includeInnerID, Map appContext) throws DataException {\n boolean loadResultClass = false;\n if (targetResultClass == null) {\n targetResultClass = this.loadResultClass(includeInnerID);\n IDataSetReader reader = DataSetStore.createReader(streamManager, targetResultClass, appContext);\n if (reader != null)\n return reader.load(preFilteredRowIds == null ? null : preFilteredRowIds);\n if (!streamManager.hasInStream(DataEngineContext.DATASET_DATA_STREAM, StreamManager.ROOT_STREAM, StreamManager.BASE_SCOPE))\n return null;\n RAInputStream stream = streamManager.getInStream(DataEngineContext.DATASET_DATA_STREAM, StreamManager.ROOT_STREAM, StreamManager.BASE_SCOPE);\n RAInputStream lensStream = null;\n if (version >= VersionManager.VERSION_2_2_1_3)\n lensStream = streamManager.getInStream(DataEngineContext.DATASET_DATA_LEN_STREAM, StreamManager.ROOT_STREAM, StreamManager.BASE_SCOPE);\n int adjustedVersion = resolveVersionConflict();\n if (includeInnerID) {\n List<ResultFieldMetadata> fields = new ArrayList<ResultFieldMetadata>(targetResultClass.getFieldCount() - 1);\n for (int i = 1; i <= targetResultClass.getFieldCount(); i++) {\n ResultFieldMetadata f = targetResultClass.getFieldMetaData(i);\n if (f.getName().equals(ExprMetaUtil.POS_NAME))\n continue;\n fields.add(f);\n }\n targetResultClass = new ResultClass(fields);\n }\n return new DataSetResultSet(stream, lensStream, targetResultClass, preFilteredRowIds, stringTableMap, index, adjustedVersion, includeInnerID);\n}\n"
"private static List<SdlApp> findAllSdlApps(Context context) {\n List<SdlApp> apps = new ArrayList<SdlApp>();\n PackageManager packageManager = context.getPackageManager();\n Intent intent = new Intent();\n intent.setAction(TransportConstants.START_ROUTER_SERVICE_ACTION);\n List<ResolveInfo> infoList = packageManager.queryBroadcastReceivers(intent, 0);\n Collections.sort(infoList, new Comparator<ResolveInfo>() {\n public int compare(ResolveInfo lhs, ResolveInfo rhs) {\n return lhs.activityInfo.packageName.compareTo(rhs.activityInfo.packageName);\n }\n });\n if (infoList != null) {\n String packageName;\n for (ResolveInfo info : infoList) {\n packageName = info.activityInfo.packageName;\n try {\n apps.add(new SdlApp(packageName, packageManager.getPackageInfo(packageName, 0).versionCode));\n } catch (NameNotFoundException e) {\n e.printStackTrace();\n }\n }\n return apps;\n } else {\n Log.i(TAG, \"String_Node_Str\");\n return null;\n }\n}\n"
"private void firebaseAuthWithFacebook(final AccessToken accessToken) {\n Log.d(TAG, \"String_Node_Str\");\n AuthCredential credential = FacebookAuthProvider.getCredential(accessToken.getToken());\n FirebaseUser firebaseUser = mAuth.getCurrentUser();\n Task<AuthResult> authResultTask;\n if (firebaseUser != null) {\n authResultTask = firebaseUser.linkWithCredential(credential);\n } else {\n authResultTask = mAuth.signInWithCredential(credential);\n }\n if (authResultTask != null) {\n authResultTask.addOnCompleteListener(activity, new OnCompleteListener<AuthResult>() {\n\n public void onComplete(Task<AuthResult> task) {\n if (task.isSuccessful()) {\n if (updateConnectionStatus(GodotConnectStatus.CONNECTED)) {\n FirebaseUser firebaseUser = mAuth.getCurrentUser();\n Log.d(TAG, \"String_Node_Str\");\n GodotLib.calldeferred(instance_id, \"String_Node_Str\", new Object[] { firebaseUser.getDisplayName() });\n }\n } else {\n if (updateConnectionStatus(GodotConnectStatus.DISCONNECTED)) {\n Log.w(TAG, task.getException());\n GodotLib.calldeferred(instance_id, \"String_Node_Str\", new Object[] { task.getException().toString() });\n }\n }\n }\n });\n}\n"
"public String getResponse(String request) throws IOException {\n String response = null;\n try {\n response = executeRequest(request);\n } catch (SocketTimeoutException e) {\n Log.w(\"String_Node_Str\", \"String_Node_Str\", e);\n Log.i(\"String_Node_Str\", \"String_Node_Str\");\n httpsUrl = url;\n try {\n response = executeRequest(request);\n } catch (SocketTimeoutException e2) {\n throw new SocketTimeoutException(\"String_Node_Str\");\n }\n } catch (IllegalArgumentException e) {\n throw new IllegalArgumentException(e.getMessage());\n } catch (SSLException e) {\n if (e.getMessage().equals(\"String_Node_Str\")) {\n Log.i(\"String_Node_Str\", \"String_Node_Str\");\n client.getConnectionManager().getSchemeRegistry().unregister(\"String_Node_Str\");\n client.getConnectionManager().getSchemeRegistry().register(new Scheme(\"String_Node_Str\", newSslSocketFactory(), httpsUrl != null && httpsUrl.getPort() != -1 ? httpsUrl.getPort() : 443));\n try {\n response = executeRequest(request);\n } catch (SSLException e2) {\n Log.i(\"String_Node_Str\", \"String_Node_Str\");\n httpsUrl = url;\n response = executeRequest(request);\n }\n }\n } catch (UnknownHostException e) {\n Log.d(\"String_Node_Str\", \"String_Node_Str\" + url + \"String_Node_Str\" + url.getHost());\n throw new UnknownHostException(\"String_Node_Str\" + url.getHost());\n }\n if (response == null) {\n throw new IOException(\"String_Node_Str\");\n }\n return response;\n}\n"
"void readFromParcelInner(Parcel parcel, int length) {\n int magic = parcel.readInt();\n if (magic != BUNDLE_MAGIC) {\n throw new IllegalStateException(\"String_Node_Str\" + Integer.toHexString(magic));\n }\n int offset = parcel.dataPosition();\n parcel.setDataPosition(offset + length);\n Parcel p = Parcel.obtain();\n p.setDataPosition(0);\n p.appendFrom(parcel, offset, length);\n p.setDataPosition(0);\n mParcelledData = p;\n mHasFds = p.hasFileDescriptors();\n mFdsKnown = true;\n}\n"
"public void processRender(UIWidget uiWidget, Writer w) throws Exception {\n PortalRequestContext pContext = Util.getPortalRequestContext();\n MVCRequestContext appReqContext = new MVCRequestContext(this, pContext);\n String instanceId = uiWidget.getApplicationInstanceUniqueId();\n String userName = pContext.getRemoteUser();\n int posX = uiWidget.getProperties().getIntValue(\"String_Node_Str\");\n int posY = uiWidget.getProperties().getIntValue(\"String_Node_Str\");\n int zIndex = uiWidget.getProperties().getIntValue(\"String_Node_Str\");\n w.write(\"String_Node_Str\" + userName + \"String_Node_Str\" + logOutAction + \"String_Node_Str\" + instanceId + \"String_Node_Str\" + posX + \"String_Node_Str\" + posY + \"String_Node_Str\" + zIndex + \"String_Node_Str\");\n String script = \"String_Node_Str\" + instanceId + \"String_Node_Str\";\n appReqContext.getJavascriptManager().addCustomizedOnLoadScript(script);\n}\n"
"public boolean setDisplayGammaCalibration(int idx, int[] rgb) {\n try {\n if (checkService()) {\n return sService.setDisplayGammaCalibration(idx, rgb);\n }\n } catch (RemoteException e) {\n }\n return false;\n}\n"
"public void sendShowViewWithID(User touser, String id, String secID, Integer mode) {\n ID receiver = null;\n if (touser != null) {\n receiver = touser.getID();\n }\n try {\n final SharedObjectMsg m = SharedObjectMsg.createMsg(null, HANDLE_SHOW_VIEW_WITH_ID_MSG, getUser(), id, secID, mode);\n forwardMsgTo(receiver, m);\n if (receiver == null) {\n sendSelf(m);\n }\n } catch (final Exception e) {\n log(\"String_Node_Str\" + touser, e);\n }\n}\n"
"public void refreshSources(String peerId) throws IOException {\n String terminateMessage = \"String_Node_Str\" + peerId + \"String_Node_Str\";\n ReplicationPeer peer = replicationPeers.getPeer(peerId);\n ReplicationSourceInterface src = createSource(peerId, peer);\n synchronized (this.latestPaths) {\n ReplicationSourceInterface toRemove = this.sources.put(peerId, src);\n if (toRemove != null) {\n LOG.info(\"String_Node_Str\" + toRemove.getPeerId());\n toRemove.terminate(terminateMessage);\n }\n for (SortedSet<String> walsByGroup : walsById.get(peerId).values()) {\n walsByGroup.forEach(wal -> src.enqueueLog(new Path(this.logDir, wal)));\n }\n }\n LOG.info(\"String_Node_Str\" + src.getPeerId());\n src.startup();\n List<ReplicationSourceInterface> toStartup = new ArrayList<>();\n synchronized (this.oldsources) {\n List<String> previousQueueIds = new ArrayList<>();\n for (ReplicationSourceInterface oldSource : this.oldsources) {\n if (oldSource.getPeerId().equals(peerId)) {\n previousQueueIds.add(oldSource.getQueueId());\n oldSource.terminate(terminateMessage);\n this.oldsources.remove(oldSource);\n }\n }\n for (String queueId : previousQueueIds) {\n ReplicationSourceInterface replicationSource = createSource(queueId, peer);\n this.oldsources.add(replicationSource);\n for (SortedSet<String> walsByGroup : walsByIdRecoveredQueues.get(queueId).values()) {\n walsByGroup.forEach(wal -> src.enqueueLog(new Path(wal)));\n }\n toStartup.add(replicationSource);\n }\n }\n for (ReplicationSourceInterface replicationSource : toStartup) {\n replicationSource.startup();\n }\n}\n"
"public void performVerboseAction() {\n System.err.println(\"String_Node_Str\" + nEvaluated);\n System.err.println(\"String_Node_Str\" + nCreated);\n System.err.println(\"String_Node_Str\" + workList.size());\n if (MORE_VERBOSE) {\n if (!workList.isEmpty()) {\n AbstractStatement s = workList.takeStatement();\n System.err.println(\"String_Node_Str\" + lineBreak(s.toString(), 132));\n if (s instanceof VerboseAction) {\n ((VerboseAction) s).performVerboseAction();\n }\n workList.insertStatement(s);\n }\n workList.insertStatement(s);\n }\n}\n"
"private ValueLobDb createLob(InputStream in, int type) throws IOException {\n byte[] streamStoreId;\n try {\n streamStoreId = streamStore.put(in);\n } catch (Exception e) {\n throw DbException.convertToIOException(e);\n }\n long lobId = generateLobId();\n long length = streamStore.length(streamStoreId);\n int tableId = LobStorageFrontend.TABLE_TEMP;\n Object[] value = new Object[] { streamStoreId, tableId, length, 0 };\n lobMap.put(lobId, value);\n Object[] key = new Object[] { streamStoreId, lobId };\n refMap.put(key, Boolean.TRUE);\n ValueLobDb lob = ValueLobDb.create(type, database, tableId, lobId, null, length);\n return lob;\n}\n"
"public void createPartControl(Composite parent) {\n fParent = parent;\n fTitlePrefix = getTitle();\n TmfExperiment<ITmfEvent> experiment = (TmfExperiment<ITmfEvent>) TmfExperiment.getCurrentExperiment();\n if (experiment != null) {\n experimentSelected(new TmfExperimentSelectedSignal<TmfEvent>(this, experiment));\n } else {\n fEventsTable = createEventsTable(parent);\n }\n}\n"
"public void init(WorkerContext<DTMasterParams, DTWorkerParams> context) {\n Properties props = context.getProps();\n try {\n SourceType sourceType = SourceType.valueOf(props.getProperty(CommonConstants.MODELSET_SOURCE_TYPE, SourceType.HDFS.toString()));\n this.modelConfig = CommonUtils.loadModelConfig(props.getProperty(CommonConstants.SHIFU_MODEL_CONFIG), sourceType);\n this.columnConfigList = CommonUtils.loadColumnConfigList(props.getProperty(CommonConstants.SHIFU_COLUMN_CONFIG), sourceType);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n this.columnCategoryIndexMapping = new HashMap<Integer, Map<String, Integer>>();\n for (ColumnConfig config : this.columnConfigList) {\n if (config.isCategorical()) {\n if (config.getBinCategory() != null) {\n Map<String, Integer> tmpMap = new HashMap<String, Integer>();\n for (int i = 0; i < config.getBinCategory().size(); i++) {\n tmpMap.put(config.getBinCategory().get(i), i);\n }\n this.columnCategoryIndexMapping.put(config.getColumnNum(), tmpMap);\n }\n }\n }\n Integer kCrossValidation = this.modelConfig.getTrain().getNumKFold();\n if (kCrossValidation != null && kCrossValidation > 0) {\n isKFoldCV = true;\n }\n this.isContinuousEnabled = Boolean.TRUE.toString().equalsIgnoreCase(context.getProps().getProperty(CommonConstants.CONTINUOUS_TRAINING));\n this.workerThreadCount = modelConfig.getTrain().getWorkerThreadCount();\n this.threadPool = Executors.newFixedThreadPool(this.workerThreadCount);\n context.addCompletionCallBack(new WorkerCompletionCallBack<DTMasterParams, DTWorkerParams>() {\n public void callback(WorkerContext<DTMasterParams, DTWorkerParams> context) {\n DTWorker.this.threadPool.shutdownNow();\n try {\n DTWorker.this.threadPool.awaitTermination(2, TimeUnit.SECONDS);\n } catch (InterruptedException e) {\n Thread.currentThread().interrupt();\n }\n }\n });\n this.trainerId = Integer.valueOf(context.getProps().getProperty(CommonConstants.SHIFU_TRAINER_ID, \"String_Node_Str\"));\n this.isOneVsAll = modelConfig.isClassification() && modelConfig.getTrain().isOneVsAll();\n GridSearch gs = new GridSearch(modelConfig.getTrain().getParams());\n Map<String, Object> validParams = this.modelConfig.getTrain().getParams();\n if (gs.hasHyperParam()) {\n validParams = gs.getParams(this.trainerId);\n LOG.info(\"String_Node_Str\", validParams);\n }\n this.treeNum = Integer.valueOf(validParams.get(\"String_Node_Str\").toString());\n double memoryFraction = Double.valueOf(context.getProps().getProperty(\"String_Node_Str\", \"String_Node_Str\"));\n LOG.info(\"String_Node_Str\", Runtime.getRuntime().maxMemory(), memoryFraction);\n double validationRate = this.modelConfig.getValidSetRate();\n if (StringUtils.isNotBlank(modelConfig.getValidationDataSetRawPath())) {\n this.trainingData = new MemoryLimitedList<Data>((long) (Runtime.getRuntime().maxMemory() * memoryFraction * 0.6), new ArrayList<Data>());\n this.validationData = new MemoryLimitedList<Data>((long) (Runtime.getRuntime().maxMemory() * memoryFraction * 0.4), new ArrayList<Data>());\n } else {\n this.trainingData = new MemoryLimitedList<Data>((long) (Runtime.getRuntime().maxMemory() * memoryFraction), new ArrayList<Data>());\n }\n int[] inputOutputIndex = DTrainUtils.getNumericAndCategoricalInputAndOutputCounts(this.columnConfigList);\n this.inputCount = inputOutputIndex[0] + inputOutputIndex[1];\n this.outputNodeCount = 1;\n this.isAfterVarSelect = inputOutputIndex[3] == 1 ? true : false;\n this.isManualValidation = (modelConfig.getValidationDataSetRawPath() != null && !\"String_Node_Str\".equals(modelConfig.getValidationDataSetRawPath()));\n int numClasses = this.modelConfig.isClassification() ? this.modelConfig.getTags().size() : 2;\n String imStr = validParams.get(\"String_Node_Str\").toString();\n int minInstancesPerNode = Integer.valueOf(validParams.get(\"String_Node_Str\").toString());\n double minInfoGain = Double.valueOf(validParams.get(\"String_Node_Str\").toString());\n if (imStr.equalsIgnoreCase(\"String_Node_Str\")) {\n impurity = new Entropy(numClasses, minInstancesPerNode, minInfoGain);\n } else if (imStr.equalsIgnoreCase(\"String_Node_Str\")) {\n impurity = new Gini(numClasses, minInstancesPerNode, minInfoGain);\n } else if (imStr.equalsIgnoreCase(\"String_Node_Str\")) {\n impurity = new FriedmanMSE(minInstancesPerNode, minInfoGain);\n } else {\n impurity = new Variance(minInstancesPerNode, minInfoGain);\n }\n this.isRF = ALGORITHM.RF.toString().equalsIgnoreCase(modelConfig.getAlgorithm());\n this.isGBDT = ALGORITHM.GBT.toString().equalsIgnoreCase(modelConfig.getAlgorithm());\n String lossStr = validParams.get(\"String_Node_Str\").toString();\n if (lossStr.equalsIgnoreCase(\"String_Node_Str\")) {\n this.loss = new LogLoss();\n } else if (lossStr.equalsIgnoreCase(\"String_Node_Str\")) {\n this.loss = new AbsoluteLoss();\n } else if (lossStr.equalsIgnoreCase(\"String_Node_Str\")) {\n this.loss = new HalfGradSquaredLoss();\n } else if (lossStr.equalsIgnoreCase(\"String_Node_Str\")) {\n this.loss = new SquaredLoss();\n } else {\n try {\n this.loss = (Loss) ClassUtils.newInstance(Class.forName(lossStr));\n } catch (ClassNotFoundException e) {\n LOG.warn(\"String_Node_Str\", lossStr);\n this.loss = new SquaredLoss();\n }\n }\n if (this.isGBDT) {\n this.learningRate = Double.valueOf(validParams.get(NNTrainer.LEARNING_RATE).toString());\n Object swrObj = validParams.get(\"String_Node_Str\");\n if (swrObj != null) {\n this.gbdtSampleWithReplacement = Boolean.TRUE.toString().equalsIgnoreCase(swrObj.toString());\n }\n }\n this.isStratifiedSampling = this.modelConfig.getTrain().getStratifiedSample();\n this.checkpointOutput = new Path(context.getProps().getProperty(CommonConstants.SHIFU_DT_MASTER_CHECKPOINT_FOLDER, \"String_Node_Str\" + context.getAppId()));\n LOG.info(\"String_Node_Str\", isAfterVarSelect, treeNum, impurity.getClass().getName(), loss.getClass().getName(), this.learningRate, this.gbdtSampleWithReplacement, this.isRF, this.isGBDT, this.isStratifiedSampling, this.isKFoldCV, kCrossValidation);\n if (!context.isFirstIteration()) {\n if (this.isGBDT) {\n isNeedRecoverGBDTPredict = true;\n } else {\n recoverTrees = context.getLastMasterResult().getTrees();\n }\n }\n if (context.isFirstIteration() && this.isContinuousEnabled && this.isGBDT) {\n Path modelPath = new Path(context.getProps().getProperty(CommonConstants.GUAGUA_OUTPUT));\n TreeModel existingModel = null;\n try {\n existingModel = (TreeModel) CommonUtils.loadModel(modelConfig, columnConfigList, modelPath, ShifuFileUtils.getFileSystemBySourceType(this.modelConfig.getDataSet().getSource()));\n } catch (IOException e) {\n LOG.error(\"String_Node_Str\", e);\n }\n if (existingModel == null) {\n LOG.warn(\"String_Node_Str\");\n return;\n } else {\n recoverTrees = existingModel.getTrees();\n LOG.info(\"String_Node_Str\", recoverTrees.size());\n }\n }\n}\n"
"public ServiceInformations queryWSDLInterfaces(String search, String subProjectId, String visibility) throws Exception {\n CoreSession documentManager = SessionFactory.getSession(request);\n DocumentService documentService = Framework.getService(DocumentService.class);\n boolean searchParamIncluded = false;\n ArrayList<String> parameters = new ArrayList<String>();\n StringBuilder query = new StringBuilder();\n query.append(\"String_Node_Str\");\n if (search != null && !\"String_Node_Str\".equals(search)) {\n String searchParam = \"String_Node_Str\" + search + \"String_Node_Str\";\n query.append(\"String_Node_Str\" + \"String_Node_Str\" + SoaNode.XPATH_SOANAME + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + WsdlInfoFacet.XPATH_WSDL_PORTTYPE_NAME + \"String_Node_Str\");\n parameters.add(searchParam);\n parameters.add(searchParam);\n parameters.add(searchParam);\n parameters.add(searchParam);\n searchParamIncluded = true;\n }\n if (subProjectId != null && !\"String_Node_Str\".equals(subProjectId)) {\n String subProjectCriterias = \"String_Node_Str\";\n DocumentModel subProjectModel = SubprojectServiceImpl.getSubprojectById(documentManager, subProjectId);\n if (subProjectModel != null) {\n subProjectCriterias = SubprojectServiceImpl.buildCriteriaSeenFromSubproject(subProjectModel);\n if (searchParamIncluded) {\n query.append(\"String_Node_Str\").append(subProjectCriterias);\n } else {\n query.append(\"String_Node_Str\").append(subProjectCriterias);\n }\n } else {\n throw new Exception(\"String_Node_Str\" + subProjectId + \"String_Node_Str\");\n }\n }\n String nxqlQuery = NXQLQueryBuilder.getQuery(query.toString(), parameters.toArray(), false, true);\n DocumentModelList soaNodeModelList = documentService.query(documentManager, nxqlQuery, true, false);\n ServiceInformations serviceInformations = new ServiceInformations();\n for (DocumentModel soaNodeModel : soaNodeModelList) {\n serviceInformations.addServiceInformation(SoaNodeInformationToWSDLInformationMapper.mapToServiceInformation(soaNodeModel, NUXEO_BASE_URL, documentManager));\n }\n return serviceInformations;\n}\n"
"public void startupDefaultShell(PostStartup startup) throws Exception {\n if (!Boolean.getBoolean(\"String_Node_Str\")) {\n Settings settings = new SettingsBuilder().create();\n this.shell = shellFactory.createShell(OperatingSystemUtils.getWorkingDir(), settings);\n }\n}\n"
"public SopremoModule asElementaryOperators() {\n final SopremoModule sopremoModule = new SopremoModule(this.getName(), 1, 1);\n JsonStream input = sopremoModule.getInput(0);\n int itCount = this.numberOfPartitions;\n ExtractRelatingBlocks[] xBlocks = new ExtractRelatingBlocks[itCount];\n ExtractNonRelatingBlocks[] abBlocks = new ExtractNonRelatingBlocks[itCount];\n TransformAKey[] a = new TransformAKey[itCount];\n TransformBKey[] b = new TransformBKey[itCount];\n TransformXKey[] x = new TransformXKey[itCount];\n BAndXMatch[] xb = new BAndXMatch[itCount];\n AMatch[] axb = new AMatch[itCount];\n UnionAll[] itOutput = new UnionAll[itCount];\n for (int i = 0; i < itCount; i++) {\n JsonStream inputStream = i == 0 ? fullMatrix : itOutput[i - 1];\n xBlocks[i] = new ExtractRelatingBlocks().withInputs(inputStream);\n xBlocks[i].setIterationStep(i + 1);\n abBlocks[i] = new ExtractNonRelatingBlocks().withInputs(inputStream);\n abBlocks[i].setIterationStep(i + 1);\n a[i] = new TransformAKey().withInputs(abBlocks[i]);\n a[i].setIterationStep(i + 1);\n b[i] = new TransformBKey().withInputs(abBlocks[i]);\n b[i].setIterationStep(i + 1);\n x[i] = new TransformXKey().withInputs(xBlocks[i]);\n xb[i] = new BAndXMatch().withInputs(b[i], x[i]);\n axb[i] = new AMatch().withInputs(a[i], xb[i]);\n itOutput[i] = new UnionAll().withInputs(abBlocks[i], axb[i]);\n }\n sopremoModule.getOutput(0).setInput(0, itOutput[itCount - 1]);\n return sopremoModule;\n}\n"
"protected InformationLossWithBound<InformationLossDefault> getInformationLossInternal(final Node node, final IHashGroupify g) {\n if (node.getLowerBound() != null) {\n return new InformationLossWithBound<InformationLossDefault>((InformationLossDefault) node.getLowerBound(), (InformationLossDefault) node.getLowerBound());\n }\n double result = 0;\n for (int column = 0; column < hierarchies.length; column++) {\n final int state = node.getTransformation()[column];\n double value = cache[column][state];\n if (value == NA) {\n value = 0d;\n final int[][] cardinality = cardinalities[column];\n final int[][] hierarchy = hierarchies[column];\n for (int in = 0; in < hierarchy.length; in++) {\n final int out = hierarchy[in][state];\n final double a = cardinality[in][0];\n final double b = cardinality[out][state];\n if (a != 0d) {\n value += a * log2(a / b);\n }\n }\n cache[column][state] = value;\n }\n result += value;\n }\n result = result == 0.0d ? result : -result;\n return new InformationLossDefaultWithBound(result, result);\n}\n"
"protected Node getTimeRoot() {\n if (timeTreeRoot != null) {\n return timeTreeRoot;\n }\n synchronized (this) {\n if (timeTreeRoot != null) {\n return timeTreeRoot;\n }\n Node result;\n Iterator<Node> nodeIterator = GlobalGraphOperations.at(database).getAllNodesWithLabel(TimeTreeRoot).iterator();\n if (nodeIterator.hasNext()) {\n LOG.error(\"String_Node_Str\");\n throw new IllegalStateException(\"String_Node_Str\");\n }\n return result;\n }\n LOG.info(\"String_Node_Str\");\n return database.createNode(TimeTreeRoot);\n}\n"
"private String createTimeInClause(Handle dbHandle, DateTime startTime, DateTime endTime, String tenantId, String metricName, Map<String, String> dimensions) {\n if (startTime == null) {\n return \"String_Node_Str\";\n }\n Set<byte[]> defDimIdSet = new HashSet<>();\n String namePart = \"String_Node_Str\";\n if (metricName != null && !metricName.isEmpty()) {\n namePart = \"String_Node_Str\";\n }\n String defDimSql = String.format(DEFDIM_IDS_SELECT, namePart, MetricQueries.buildDimensionAndClause(dimensions, \"String_Node_Str\", 0));\n Query<Map<String, Object>> query = dbHandle.createQuery(defDimSql).bind(\"String_Node_Str\", tenantId);\n MetricQueries.bindDimensionsToQuery(query, dimensions);\n if (metricName != null && !metricName.isEmpty()) {\n query.bind(\"String_Node_Str\", metricName);\n }\n List<Map<String, Object>> rows = query.list();\n for (Map<String, Object> row : rows) {\n byte[] defDimId = (byte[]) row.get(\"String_Node_Str\");\n defDimIdSet.add(defDimId);\n }\n if (defDimIdSet.size() == 0) {\n return \"String_Node_Str\";\n }\n String timeAndClause = \"String_Node_Str\";\n if (endTime != null) {\n timeAndClause = \"String_Node_Str\";\n } else {\n timeAndClause = \"String_Node_Str\";\n }\n String defDimInClause = MetricQueries.createDefDimIdInClause(defDimIdSet);\n return String.format(MEASUREMENT_AND_CLAUSE, defDimInClause, timeAndClause);\n}\n"
"public void run() {\n try {\n model.run();\n } catch (Exception e) {\n e.printStackTrace();\n }\n}\n"
"public boolean matches(ItemStack stack) {\n if (stacks.size() == 0 || !hasFilter()) {\n return true;\n }\n for (ItemStack s : stacks) {\n if (StackUtil.isMatchingItemOrList(s, stack)) {\n return true;\n }\n }\n return false;\n}\n"
"public void processVoiceChatMessage(WonderlandClientSender sender, WonderlandClientID clientID, VoiceChatMessage message) {\n String group = message.getGroup();\n if (message instanceof VoiceChatInfoRequestMessage) {\n sendVoiceChatInfo(sender, clientID, group);\n return;\n }\n if (message instanceof VoiceChatBusyMessage) {\n VoiceChatBusyMessage msg = (VoiceChatBusyMessage) message;\n CommsManager cm = CommsManagerFactory.getCommsManager();\n WonderlandClientID id = cm.getWonderlandClientID(msg.getCaller().clientID);\n if (id == null) {\n logger.warning(\"String_Node_Str\" + msg.getCaller());\n return;\n }\n sendVoiceChatBusyMessage(sender, id, msg);\n return;\n }\n VoiceManager vm = AppContext.getManager(VoiceManager.class);\n AudioGroup audioGroup = vm.getAudioGroup(group);\n if (message instanceof VoiceChatLeaveMessage) {\n if (audioGroup == null) {\n logger.info(\"String_Node_Str\");\n return;\n }\n VoiceChatLeaveMessage msg = (VoiceChatLeaveMessage) message;\n Player player = vm.getPlayer(msg.getCallee().callID);\n if (player == null) {\n logger.warning(\"String_Node_Str\" + msg.getCallee());\n if (audioGroup.getNumberOfPlayers() == 0) {\n endVoiceChat(vm, audioGroup);\n }\n sender.send(msg);\n return;\n }\n removePlayerFromAudioGroup(audioGroup, player);\n if (audioGroup.getNumberOfPlayers() <= 1) {\n endVoiceChat(vm, audioGroup);\n }\n sender.send(msg);\n vm.dump(\"String_Node_Str\");\n return;\n }\n if (message instanceof VoiceChatEndMessage) {\n if (audioGroup == null) {\n logger.info(\"String_Node_Str\");\n return;\n }\n endVoiceChat(vm, audioGroup);\n vm.dump(\"String_Node_Str\");\n return;\n }\n if (message instanceof VoiceChatJoinAcceptedMessage == true) {\n if (audioGroup == null) {\n logger.warning(\"String_Node_Str\" + group + \"String_Node_Str\");\n return;\n }\n VoiceChatJoinAcceptedMessage msg = (VoiceChatJoinAcceptedMessage) message;\n addPlayerToAudioGroup(vm, audioGroup, msg.getCallee(), msg.getChatType());\n sender.send(msg);\n return;\n }\n if (message instanceof VoiceChatHoldMessage == true) {\n VoiceChatHoldMessage msg = (VoiceChatHoldMessage) message;\n if (audioGroup == null) {\n logger.warning(\"String_Node_Str\" + group + \"String_Node_Str\");\n return;\n }\n Player player = vm.getPlayer(msg.getCallee().callID);\n if (player == null) {\n logger.warning(\"String_Node_Str\" + msg.getCallee().callID);\n return;\n }\n AudioGroupPlayerInfo playerInfo = audioGroup.getPlayerInfo(player);\n if (playerInfo == null) {\n logger.warning(\"String_Node_Str\" + player);\n return;\n }\n AudioGroup livePlayerAudioGroup = vm.getVoiceManagerParameters().livePlayerAudioGroup;\n AudioGroup stationaryPlayerAudioGroup = vm.getVoiceManagerParameters().stationaryPlayerAudioGroup;\n if (msg.isOnHold()) {\n playerInfo.isSpeaking = false;\n audioGroup.setSpeakingAttenuation(player, 0);\n audioGroup.setListenAttenuation(player, 0);\n livePlayerAudioGroup.setSpeakingAttenuation(player, AudioGroup.DEFAULT_SPEAKING_ATTENUATION);\n livePlayerAudioGroup.setListenAttenuation(player, AudioGroup.DEFAULT_LISTEN_ATTENUATION);\n stationaryPlayerAudioGroup.setSpeakingAttenuation(player, AudioGroup.DEFAULT_SPEAKING_ATTENUATION);\n stationaryPlayerAudioGroup.setListenAttenuation(player, AudioGroup.DEFAULT_LISTEN_ATTENUATION);\n } else {\n playerInfo.isSpeaking = true;\n audioGroup.setSpeakingAttenuation(player, AudioGroup.DEFAULT_SPEAKING_ATTENUATION);\n audioGroup.setListenAttenuation(player, AudioGroup.DEFAULT_LISTEN_ATTENUATION);\n if (playerInfo.chatType.equals(ChatType.PUBLIC)) {\n livePlayerAudioGroup.setSpeakingAttenuation(player, AudioGroup.DEFAULT_SPEAKING_ATTENUATION);\n livePlayerAudioGroup.setListenAttenuation(player, AudioGroup.DEFAULT_LISTEN_ATTENUATION);\n stationaryPlayerAudioGroup.setListenAttenuation(player, AudioGroup.DEFAULT_LISTEN_ATTENUATION);\n } else {\n livePlayerAudioGroup.setSpeakingAttenuation(player, 0);\n livePlayerAudioGroup.setListenAttenuation(player, AudioGroup.MINIMAL_LISTEN_ATTENUATION);\n stationaryPlayerAudioGroup.setListenAttenuation(player, AudioGroup.MINIMAL_LISTEN_ATTENUATION);\n }\n }\n sender.send(msg);\n return;\n }\n if (message instanceof VoiceChatJoinMessage == false) {\n logger.warning(\"String_Node_Str\" + message);\n return;\n }\n VoiceChatJoinMessage msg = (VoiceChatJoinMessage) message;\n if (audioGroup == null) {\n AudioGroupSetup setup = new AudioGroupSetup();\n setup.spatializer = new FullVolumeSpatializer();\n setup.spatializer.setAttenuator(DefaultSpatializer.DEFAULT_MAXIMUM_VOLUME);\n setup.virtualPlayerListener = this;\n setup.audioGroupListener = this;\n audioGroup = vm.createAudioGroup(group, setup);\n }\n PresenceInfo[] calleeList = msg.getCalleeList();\n PresenceInfo caller = msg.getCaller();\n boolean added = addPlayerToAudioGroup(vm, audioGroup, caller, msg.getChatType());\n if (added) {\n sender.send(new VoiceChatJoinAcceptedMessage(group, caller, msg.getChatType()));\n }\n if (added == false && (calleeList == null || calleeList.length == 0)) {\n endVoiceChat(vm, audioGroup);\n return;\n }\n logger.info(\"String_Node_Str\" + group + \"String_Node_Str\" + caller + \"String_Node_Str\" + msg.getPhoneNumber() + \"String_Node_Str\" + msg.getName());\n for (int i = 0; i < calleeList.length; i++) {\n PresenceInfo info = calleeList[i];\n CellID cellID = calleeList[i].cellID;\n logger.fine(\"String_Node_Str\" + calleeList[i]);\n String callID = calleeList[i].callID;\n Player player = vm.getPlayer(callID);\n if (player == null) {\n logger.warning(\"String_Node_Str\" + callID);\n continue;\n }\n AudioGroupPlayerInfo playerInfo = audioGroup.getPlayerInfo(player);\n if (playerInfo != null && sameChatType(playerInfo.chatType, msg.getChatType())) {\n logger.fine(\"String_Node_Str\" + info + \"String_Node_Str\" + audioGroup);\n continue;\n }\n WonderlandClientID id = CommsManagerFactory.getCommsManager().getWonderlandClientID(info.clientID);\n if (id == null) {\n logger.warning(\"String_Node_Str\" + info);\n continue;\n }\n Call call = player.getCall();\n if (call != null) {\n try {\n call.playTreatment(\"String_Node_Str\");\n } catch (IOException e) {\n logger.warning(\"String_Node_Str\" + e.getMessage());\n }\n }\n logger.info(\"String_Node_Str\" + info + \"String_Node_Str\" + group + \"String_Node_Str\" + msg.getChatType());\n requestPlayerJoinAudioGroup(sender, id, group, caller, calleeList, msg.getChatType());\n }\n vm.dump(\"String_Node_Str\");\n return;\n}\n"
"private void verifyOwner(NamespacedEntityId entityId, KerberosPrincipalId specifiedOwnerPrincipal) throws DatasetManagementException, ConflictException {\n String ownerPrincipal;\n try {\n ownerPrincipal = ownerAdmin.getImpersonationPrincipal(entityId);\n if (!Objects.equals(ownerPrincipal, specifiedOwnerPrincipal == null ? null : specifiedOwnerPrincipal.getPrincipal())) {\n throw new ConflictException(String.format(\"String_Node_Str\" + \"String_Node_Str\", entityId.getEntityType(), entityId.getEntityName(), Constants.Security.PRINCIPAL, specifiedOwnerPrincipal, Constants.Security.PRINCIPAL));\n }\n } catch (IOException e) {\n throw new DatasetManagementException(e.getMessage(), e);\n }\n}\n"
"public static void main(String[] args) {\n SimpleLayout layout = new SimpleLayout();\n ConsoleAppender consoleAppender = new ConsoleAppender(layout);\n Logger logger = Logger.getRootLogger();\n logger.removeAllAppenders();\n logger.addAppender(consoleAppender);\n logger.setLevel(Level.INFO);\n JUnitCore.main(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n}\n"
"public String getMavenUriSnapshot() {\n MavenArtifact artifact = null;\n if (getMavenUri() != null) {\n if (getMavenUri().split(MavenUrlHelper.SEPERATOR).length < 4 && getModuleName().lastIndexOf(\"String_Node_Str\") != -1) {\n String extension = getModuleName().substring(getModuleName().lastIndexOf(\"String_Node_Str\") + 1, getModuleName().length());\n artifact = MavenUrlHelper.parseMvnUrl(getMavenUri());\n if (artifact != null) {\n artifact.setType(extension);\n }\n } else {\n artifact = MavenUrlHelper.parseMvnUrl(getMavenUri());\n }\n }\n if (artifact != null && !MavenConstants.DEFAULT_LIB_GROUP_ID.equals(artifact.getGroupId())) {\n return getMavenUri();\n }\n if (StringUtils.isEmpty(mavenUriSnapshot) && artifact != null) {\n mavenUriSnapshot = MavenUrlHelper.generateMvnUrl(artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion() + \"String_Node_Str\", artifact.getType(), artifact.getClassifier());\n }\n if (StringUtils.isEmpty(mavenUriSnapshot)) {\n ILibraryManagerService libManagerService = (ILibraryManagerService) GlobalServiceRegister.getDefault().getService(ILibraryManagerService.class);\n String mvnUrisFromIndex = libManagerService.getMavenUriFromIndex(getModuleName());\n if (mvnUrisFromIndex != null) {\n final String[] split = mvnUrisFromIndex.split(MavenUrlHelper.MVN_INDEX_SPLITER);\n String maxVerstion = null;\n for (String mvnUri : split) {\n if (maxVerstion == null) {\n maxVerstion = mvnUri;\n } else {\n MavenArtifact lastArtifact = MavenUrlHelper.parseMvnUrl(maxVerstion);\n MavenArtifact currentArtifact = MavenUrlHelper.parseMvnUrl(mvnUri);\n if (lastArtifact != null && currentArtifact != null) {\n String lastV = lastArtifact.getVersion();\n lastV = lastV.replace(MavenConstants.SNAPSHOT, \"String_Node_Str\");\n String currentV = currentArtifact.getVersion();\n currentV = currentV.replace(MavenConstants.SNAPSHOT, \"String_Node_Str\");\n if (!lastV.equals(currentV)) {\n Version lastVersion = new Version(lastV);\n Version currentVersion = new Version(currentV);\n if (currentVersion.compareTo(lastVersion) > 0) {\n maxVerstion = mvnUri;\n }\n }\n }\n }\n }\n mavenUriSnapshot = maxVerstion;\n }\n }\n if (StringUtils.isEmpty(mavenUriSnapshot)) {\n mavenUriSnapshot = MavenUrlHelper.generateMvnUrlForJarName(getModuleName());\n }\n return mavenUriSnapshot;\n}\n"
"private void createButtonSection(Composite topComp) {\n Composite buttonsComp = masterPage.getEditor().getToolkit().createComposite(topComp, SWT.NONE);\n buttonsComp.setLayout(new GridLayout(3, true));\n buttonsComp.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n GridData buttonGridData = new GridData();\n buttonGridData.heightHint = 25;\n buttonGridData.horizontalAlignment = GridData.CENTER;\n buttonGridData.verticalAlignment = GridData.FILL;\n buttonGridData.grabExcessHorizontalSpace = true;\n buttonGridData.grabExcessVerticalSpace = true;\n final Button delButton = new Button(buttonsComp, SWT.NULL);\n delButton.setImage(ImageLib.getImage(ImageLib.DELETE_ACTION));\n delButton.setLayoutData(buttonGridData);\n final Button moveUpButton = new Button(buttonsComp, SWT.NULL);\n moveUpButton.setText(DefaultMessagesImpl.getString(\"String_Node_Str\"));\n moveUpButton.setLayoutData(buttonGridData);\n final Button moveDownButton = new Button(buttonsComp, SWT.NULL);\n moveDownButton.setText(DefaultMessagesImpl.getString(\"String_Node_Str\"));\n moveDownButton.setLayoutData(buttonGridData);\n buttons.put(\"String_Node_Str\", delButton);\n buttons.put(\"String_Node_Str\", moveUpButton);\n buttons.put(\"String_Node_Str\", moveDownButton);\n enabledButtons(false);\n moveUpButton.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(SelectionEvent e) {\n moveElement(masterPage.getTreeViewer(), -1);\n }\n });\n moveDownButton.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(SelectionEvent e) {\n moveElement(masterPage.getTreeViewer(), 1);\n }\n });\n delButton.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(SelectionEvent e) {\n Tree currentTree = tree;\n Object[] selectItem = currentTree.getSelection();\n List<Column> columnList = masterPage.getTreeViewer().getColumnSetMultiValueList();\n for (int i = 0; i < selectItem.length; i++) {\n Object removeElement = ((TreeItem) selectItem[i]).getData(AnalysisColumnNominalIntervalTreeViewer.COLUMN_INDICATOR_KEY);\n columnList.remove(removeElement);\n }\n masterPage.getTreeViewer().setInput(convertList(columnList).toArray());\n enabledButtons(false);\n }\n });\n}\n"
"public List<Fact> getAllFacts(String locationName) {\n List<Fact> facts = jdbcTemplate.query(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\", new FactRowMapper(), locationName);\n return facts;\n}\n"
"private int getAccuracy(TypeConfidence confidence) {\n return (shouldAlwaysBeAccurate() || confidence == TypeConfidence.EXACT ? SearchMatch.A_ACCURATE : SearchMatch.A_INACCURATE);\n}\n"
"public void run() throws PersistenceException {\n try {\n for (String name : names) {\n String path = new Path(Platform.getInstanceLocation().getURL().getPath()).toFile().getPath();\n path = path + File.separatorChar + projectLabel + File.separatorChar + ERepositoryObjectType.getFolderName(ERepositoryObjectType.LIBS) + File.separatorChar + name;\n File libsTargetFile = new File(path);\n File source = new File(PreferencesUtilities.getLibrariesPath(ECodeLanguage.JAVA) + File.separatorChar + name);\n FilesUtils.copyFile(source, libsTargetFile);\n synJavaLibs(source);\n }\n eclipseProject.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());\n } catch (IOException e) {\n ExceptionHandler.process(e);\n } catch (CoreException e) {\n ExceptionHandler.process(e);\n }\n}\n"
"public void write(ClassWriter writer) {\n String internalName = this.getInternalName();\n String signature = this.getSignature();\n String superClass = null;\n int interfaceCount = this.interfaces.size();\n String[] interfaces = new String[interfaceCount];\n if (this.superType != null) {\n superClass = this.superType.getInternalName();\n }\n for (int i = 0; i < interfaceCount; i++) {\n IType type = this.interfaces.get(i);\n interfaces[i] = type.getInternalName();\n }\n writer.visit(Opcodes.V1_8, this.modifiers & 0xFFFF, internalName, signature, superClass, interfaces);\n if (this.outerClass != null) {\n writer.visitOuterClass(this.outerClass.getInternalName(), null, null);\n }\n if ((this.modifiers & Modifiers.OBJECT_CLASS) != 0) {\n writer.visitAnnotation(\"String_Node_Str\", true);\n }\n if ((this.modifiers & Modifiers.SEALED) != 0) {\n writer.visitAnnotation(\"String_Node_Str\", false);\n }\n if ((this.modifiers & Modifiers.DEPRECATED) != 0) {\n writer.visitAnnotation(\"String_Node_Str\", true);\n }\n if ((this.modifiers & Modifiers.FUNCTIONAL) != 0) {\n writer.visitAnnotation(\"String_Node_Str\", true);\n }\n if (this.annotations != null) {\n for (Annotation a : this.annotations) {\n a.write(writer);\n }\n }\n if (this.outerClass != null) {\n this.writeInnerClassInfo(writer);\n }\n if (this.superType != null) {\n IClass iclass = this.superType.getTheClass();\n if (iclass != null) {\n iclass.writeInnerClassInfo(writer);\n }\n }\n for (int i = 0; i < interfaceCount; i++) {\n IType type = this.interfaces.get(i);\n IClass iclass = type.getTheClass();\n if (iclass != null) {\n iclass.writeInnerClassInfo(writer);\n }\n }\n List<IField> fields;\n List<IMethod> methods;\n List<IProperty> properties;\n if (this.body != null) {\n fields = this.body.fields;\n methods = this.body.methods;\n properties = this.body.properties;\n for (IClass iclass : this.body.classes) {\n iclass.writeInnerClassInfo(writer);\n }\n } else {\n fields = Collections.EMPTY_LIST;\n methods = Collections.EMPTY_LIST;\n properties = Collections.EMPTY_LIST;\n }\n ThisValue thisValue = new ThisValue(null, this.type);\n IField instanceField = this.instanceField;\n StatementList instanceFields = new StatementList(null);\n StatementList staticFields = new StatementList(null);\n boolean hasConstructor = false;\n for (IField f : fields) {\n f.write(writer);\n if (f.hasModifier(Modifiers.LAZY)) {\n continue;\n }\n if (f.hasModifier(Modifiers.STATIC)) {\n FieldAssign assign = new FieldAssign(null);\n assign.qualifiedName = f.getQualifiedName();\n assign.value = f.getValue();\n assign.field = f;\n staticFields.addValue(assign);\n } else {\n FieldAssign assign = new FieldAssign(null);\n assign.qualifiedName = f.getQualifiedName();\n assign.instance = thisValue;\n assign.value = f.getValue();\n assign.field = f;\n instanceFields.addValue(assign);\n }\n }\n if (this.superConstructor != null) {\n MethodCall call = new MethodCall(null);\n call.instance = new SuperValue(null, this.superType);\n call.method = this.superConstructor;\n call.name = \"String_Node_Str\";\n call.qualifiedName = \"String_Node_Str\";\n call.arguments = Util.EMPTY_VALUES;\n instanceFields.getValues().add(0, call);\n }\n if (this.constructor != null) {\n this.constructor.setValue(instanceFields);\n this.constructor.write(writer);\n }\n for (IProperty p : properties) {\n p.write(writer);\n }\n for (IMethod m : methods) {\n String name = m.getName();\n m.write(writer);\n }\n if ((this.modifiers & Modifiers.CASE_CLASS) != 0) {\n MethodWriter mw = new MethodWriter(writer, writer.visitMethod(Modifiers.PUBLIC | Modifiers.SYNTHETIC, \"String_Node_Str\", \"String_Node_Str\", null, null));\n mw.visitParameter(\"String_Node_Str\", \"String_Node_Str\", 0);\n mw.addLocal(1, this.type);\n mw.visitCode();\n CaseClasses.writeEquals(mw, this, fields);\n mw.visitEnd();\n mw = new MethodWriter(writer, writer.visitMethod(Modifiers.PUBLIC | Modifiers.SYNTHETIC, \"String_Node_Str\", \"String_Node_Str\", null, null));\n mw.addLocal(0, this.type);\n mw.visitCode();\n CaseClasses.writeHashCode(mw, this, fields);\n mw.visitEnd();\n mw = new MethodWriter(writer, writer.visitMethod(Modifiers.PUBLIC | Modifiers.SYNTHETIC, \"String_Node_Str\", \"String_Node_Str\", null, null));\n mw.addLocal(0, this.type);\n mw.visitCode();\n CaseClasses.writeToString(mw, this, fields);\n mw.visitEnd();\n }\n if (instanceField != null) {\n instanceField.write(writer);\n FieldAssign assign = new FieldAssign(null);\n assign.name = assign.qualifiedName = \"String_Node_Str\";\n assign.field = instanceField;\n ConstructorCall call = new ConstructorCall(null);\n call.type = this.type;\n call.method = this.constructor;\n assign.value = call;\n staticFields.addValue(assign);\n }\n if (!staticFields.isEmpty()) {\n Method m = new Method(this);\n m.setQualifiedName(\"String_Node_Str\");\n m.setType(Type.VOID);\n m.setModifiers(Modifiers.STATIC | Modifiers.MANDATED);\n m.setValue(staticFields);\n m.write(writer);\n }\n}\n"
"private GL3Object buildLineGLO(GL3 gl, int pidx, int nidx, int cidx, int tidx, int oidx) {\n int nattribs = 0;\n if (pidx >= 0) {\n nattribs++;\n }\n if (nidx >= 0) {\n nattribs++;\n }\n if (cidx >= 0) {\n nattribs++;\n }\n if (tidx >= 0) {\n tidx++;\n }\n GL3VertexAttributeArray[] attribs = new GL3VertexAttributeArray[nattribs];\n int aidx = 0;\n if (pidx >= 0) {\n AttributeInfo pinfo = positionInfo[pidx];\n BufferObject vbo = vbos[pinfo.vboIndex];\n BufferStorage bs = positionPutter.storage();\n int offset = pinfo.offset + 2 * lineGroupOffsets[oidx] * pinfo.stride;\n attribs[aidx] = new GL3VertexAttributeArray(vbo, GL3VertexAttribute.VERTEX_POSITION, GL3Util.getGLType(bs.type()), bs.size(), bs.isNormalized(), offset, pinfo.stride, lineCount2);\n aidx++;\n }\n if (nidx >= 0) {\n AttributeInfo ninfo = normalInfo[nidx];\n BufferObject vbo = vbos[ninfo.vboIndex];\n BufferStorage bs = normalPutter.storage();\n int offset = ninfo.offset + lineGroupOffsets[oidx] * ninfo.stride;\n attribs[aidx] = new GL3VertexAttributeArray(vbo, GL3VertexAttribute.VERTEX_NORMAL, GL3Util.getGLType(bs.type()), bs.size(), bs.isNormalized(), offset, ninfo.stride, ninfo.count);\n aidx++;\n }\n if (cidx >= 0) {\n AttributeInfo cinfo = colorInfo[cidx];\n BufferObject vbo = vbos[cinfo.vboIndex];\n BufferStorage bs = colorPutter.storage();\n int offset = cinfo.offset + lineGroupOffsets[oidx] * cinfo.stride;\n attribs[aidx] = new GL3VertexAttributeArray(vbo, GL3VertexAttribute.VERTEX_COLOR, GL3Util.getGLType(bs.type()), bs.size(), bs.isNormalized(), offset, cinfo.stride, cinfo.count);\n aidx++;\n }\n if (tidx >= 0) {\n AttributeInfo tinfo = textureInfo[tidx];\n BufferObject vbo = vbos[tinfo.vboIndex];\n BufferStorage bs = texturePutter.storage();\n int offset = tinfo.offset + lineGroupOffsets[oidx] * tinfo.stride;\n attribs[aidx] = new GL3VertexAttributeArray(vbo, GL3VertexAttribute.VERTEX_TEXTURE, GL3Util.getGLType(bs.type()), bs.size(), bs.isNormalized(), offset, tinfo.stride, tinfo.count);\n aidx++;\n }\n GL3Object glo = new GL3Object(gl, attribs, null, GL.GL_LINES);\n return glo;\n}\n"
"public void run() {\n device.clearCache();\n params.put(RCDevice.ParameterKeys.INTENT_INCOMING_CALL, new Intent(RCDevice.ACTION_INCOMING_CALL, null, InstrumentationRegistry.getTargetContext(), CallActivity.class));\n params.put(RCDevice.ParameterKeys.INTENT_INCOMING_MESSAGE, new Intent(RCDevice.ACTION_INCOMING_MESSAGE, null, InstrumentationRegistry.getTargetContext(), MessageActivity.class));\n params.put(RCDevice.ParameterKeys.SIGNALING_DOMAIN, SERVER_HOST + \"String_Node_Str\" + SERVER_PORT);\n params.put(RCDevice.ParameterKeys.SIGNALING_USERNAME, CLIENT_NAME);\n params.put(RCDevice.ParameterKeys.SIGNALING_PASSWORD, CLIENT_PASSWORD);\n params.put(RCDevice.ParameterKeys.MEDIA_ICE_URL, ICE_URL);\n params.put(RCDevice.ParameterKeys.MEDIA_ICE_USERNAME, ICE_USERNAME);\n params.put(RCDevice.ParameterKeys.MEDIA_ICE_PASSWORD, ICE_PASSWORD);\n params.put(RCDevice.ParameterKeys.MEDIA_ICE_DOMAIN, ICE_DOMAIN);\n params.put(RCDevice.ParameterKeys.MEDIA_TURN_ENABLED, true);\n params.put(RCDevice.ParameterKeys.SIGNALING_SECURE_ENABLED, false);\n params.put(RCDevice.ParameterKeys.PUSH_NOTIFICATIONS_ENABLE_PUSH_FOR_ACCOUNT, false);\n params.put(RCDevice.ParameterKeys.DEBUG_DISABLE_CERTIFICATE_VERIFICATION, true);\n params.put(RCDevice.ParameterKeys.PUSH_NOTIFICATIONS_APPLICATION_NAME, PUSH_APPLICATION_NAME);\n params.put(RCDevice.ParameterKeys.PUSH_NOTIFICATIONS_ACCOUNT_EMAIL, PUSH_ACCOUNT);\n params.put(RCDevice.ParameterKeys.PUSH_NOTIFICATIONS_ACCOUNT_PASSWORD, PUSH_PASSWORD);\n params.put(RCDevice.ParameterKeys.PUSH_NOTIFICATIONS_PUSH_DOMAIN, PUSH_DOMAIN);\n params.put(RCDevice.ParameterKeys.PUSH_NOTIFICATIONS_HTTP_DOMAIN, HTTP_DOMAIN);\n params.put(RCDevice.ParameterKeys.PUSH_NOTIFICATIONS_FCM_SERVER_KEY, PUSH_FCM_KEY);\n device.setLogLevel(Log.VERBOSE);\n try {\n device.initialize(InstrumentationRegistry.getTargetContext(), params, IntegrationTests.this);\n } catch (RCException e) {\n Log.e(TAG, \"String_Node_Str\" + e.errorText);\n }\n}\n"
"public void openColumnsSelectionDialog(TableViewer columnsElementViewer, List<RepositoryNode> columnsOfSectionPart, boolean isLeftPart) {\n RepositoryNode connNode = masterPage.getConnComboSelectNode();\n ColumnsSelectionDialog dialog = new ColumnsSelectionDialog(masterPage, null, DefaultMessagesImpl.getString(\"String_Node_Str\"), columnsOfSectionPart, connNode, DefaultMessagesImpl.getString(\"String_Node_Str\"));\n if (dialog.open() == Window.OK) {\n Object[] columns = dialog.getResult();\n List<RepositoryNode> columnSet = new ArrayList<RepositoryNode>();\n for (Object obj : columns) {\n if (obj instanceof DBColumnRepNode) {\n columnSet.add((RepositoryNode) obj);\n }\n }\n columnsElementViewer.setInput(columnSet);\n columnsOfSectionPart.clear();\n columnsOfSectionPart.addAll(columnSet);\n computeRefreshDataPreviewPart(isLeftPart, columnSet, columnsElementViewer);\n updateBindConnection(masterPage, tableViewerPosStack);\n }\n}\n"
"public int getDistanceFrom(Member member) {\n if (member.localMember()) {\n return 0;\n }\n Integer distance = distances.get(member);\n if (distance != null) {\n return distance;\n }\n calculateDistances();\n Integer d = distances.get(member);\n return (d == null) ? -1 : d;\n}\n"
"public void testDefineDataSource() throws BirtException {\n ScriptExpression expr;\n IQueryDefinition queryDefn;\n expr = new ScriptExpression(\"String_Node_Str\");\n queryDefn = getScriptQueryDefn(expr);\n try {\n IPreparedQuery preparedQuery = myDataEngine.prepare(queryDefn);\n IQueryResults queryResults = preparedQuery.execute(null);\n IResultIterator it = queryResults.getResultIterator();\n it.close();\n queryResults.close();\n } catch (Exception e) {\n fail(e.getMessage());\n }\n expr = new ScriptExpression(\"String_Node_Str\");\n queryDefn = getJDBCQueryDefn(expr);\n try {\n IPreparedQuery preparedQuery = myDataEngine.prepare(queryDefn);\n IQueryResults queryResults = preparedQuery.execute(null);\n queryResults.getResultIterator();\n } catch (Exception e) {\n fail(e.getMessage());\n }\n}\n"
"public void onSurfaceChanged(GL10 gl, int width, int height) {\n gl.glViewport(0, 0, width, height);\n mScreenWidth = width;\n mScreenHeight = height;\n float ratio = (float) width / height;\n mGame.updateScreenMeasures((2.0f * ratio) - WALL, 2.0f - WALL);\n gl.glMatrixMode(GL10.GL_PROJECTION);\n gl.glLoadIdentity();\n gl.glOrthof(-ratio, ratio, -1.0f, 1.0f, -1.0f, 1.0f);\n Matrix.orthoM(mUnprojectProjMatrix, 0, -ratio, ratio, -1.0f, 1.0f, -1.0f, 1.0f);\n Matrix.setIdentityM(mUnprojectViewMatrix, 0);\n}\n"
"public AccountHolder getAccountHolder(String uuidOrName) {\n OfflinePlayer player;\n try {\n UUID playerId = UUID.fromString(uuidOrName);\n player = Bukkit.getOfflinePlayer(playerId);\n } catch (IllegalArgumentException ignored) {\n for (OfflinePlayer p : Bukkit.getOfflinePlayers()) {\n if (uuidOrName.equals(p.getName()))\n return new PlayerAccountHolder(p);\n }\n return null;\n }\n if (player.isOnline() || player.hasPlayedBefore())\n return new PlayerAccountHolder(player);\n else\n return null;\n}\n"
"private Object doInvoke(InterpretContext ctx, FunctionInvoker fn, Object[] arguments) throws InterpretException {\n boolean useLatest = (fn != null);\n if (fn == null) {\n Class<?>[] argumentTypes = ParameterUtils.getParameterTypes(arguments);\n fn = ctx.getGlobalResolver().resolveFunction(name, argumentTypes);\n if (fn == null) {\n String signature = SignatureUtils.getFunctionSignature(name, argumentTypes);\n throw new InterpretException(Errors.FUNCTION_NOT_FOUND, signature).set(position);\n }\n this.last = fn;\n }\n if (unsafe) {\n JetSecurityManager securityManager = ctx.getSecurityManager();\n if (securityManager != null) {\n try {\n fn.checkAccess(securityManager);\n } catch (RuntimeException e) {\n throw new InterpretException(e).set(position);\n }\n }\n unsafe = false;\n }\n try {\n return fn.invoke(arguments);\n } catch (InterpretException e) {\n throw e;\n } catch (RuntimeException e) {\n if (useLatest && Errors.isReflectIllegalArgument(e)) {\n return doInvoke(ctx, null, arguments);\n }\n throw new InterpretException(Errors.FUNCTION_INVOKE_ERROR, fn.getSignature()).cause(e).set(position);\n }\n}\n"
"protected Trace createTrace(Object target, Object[] args) {\n final HttpServletRequest request = (HttpServletRequest) args[0];\n final String requestURI = request.getRequestURI();\n if (excludeUrlFilter.filter(requestURI)) {\n if (isTrace) {\n logger.trace(\"String_Node_Str\", requestURI);\n }\n return null;\n }\n final boolean sampling = samplingEnable(request);\n if (!sampling) {\n final TraceContext traceContext = getTraceContext();\n final Trace trace = traceContext.disableSampling();\n if (isDebug) {\n logger.debug(\"String_Node_Str\", request.getRequestURI(), request.getRemoteAddr());\n }\n return trace;\n }\n final TraceId traceId = populateTraceIdFromRequest(request);\n if (traceId != null) {\n final Trace trace = getTraceContext().continueTraceObject(traceId);\n if (trace.canSampled()) {\n if (isDebug) {\n logger.debug(\"String_Node_Str\", new Object[] { traceId, request.getRequestURI(), request.getRemoteAddr() });\n }\n } else {\n if (isDebug) {\n logger.debug(\"String_Node_Str\", new Object[] { traceId, request.getRequestURI(), request.getRemoteAddr() });\n }\n }\n return trace;\n } else {\n final Trace trace = getTraceContext().newTraceObject();\n if (trace.canSampled()) {\n if (isDebug) {\n logger.debug(\"String_Node_Str\", request.getRequestURI(), request.getRemoteAddr());\n }\n } else {\n if (isDebug) {\n logger.debug(\"String_Node_Str\", request.getRequestURI(), request.getRemoteAddr());\n }\n }\n return trace;\n }\n}\n"
"public void testEdgeInputMap() throws Exception {\n final String INSTANCE_NAME = \"String_Node_Str\";\n final String TEST_TABLE_1 = \"String_Node_Str\";\n if (!System.getProperty(\"String_Node_Str\").startsWith(\"String_Node_Str\")) {\n Graph g = GraphFactory.open(new AccumuloGraphConfiguration().setInstanceName(INSTANCE_NAME).setGraphName(TEST_TABLE_1).setInstanceType(InstanceType.Mock).autoFlush(true).create(true).getConfiguration());\n for (int i = 0; i < 100; i++) {\n g.addEdge(null, g.addVertex(i + \"String_Node_Str\"), g.addVertex(i + \"String_Node_Str\"), \"String_Node_Str\");\n }\n assertEquals(0, MRTester.main(new String[] { \"String_Node_Str\", \"String_Node_Str\", TEST_TABLE_1, INSTANCE_NAME, \"String_Node_Str\" }));\n System.out.println(e1);\n assertNull(e1);\n assertNull(e2);\n }\n}\n"
"private void appendMethodDeclaration(MethodModel method) {\n EnumSet<ElementModifier> modifiers = method.getModifiers();\n if (type.getKind() == ElementKind.INTERFACE) {\n modifiers.remove(ElementModifier.ABSTRACT);\n }\n appendModifiers(modifiers);\n append(\"String_Node_Str\");\n appendGenericSignature(method.getTypeParameters());\n if (method.isConstructor()) {\n append(\"String_Node_Str\");\n append(method.getEnclosingElement().getSimpleName());\n } else {\n append(\"String_Node_Str\");\n append(method.getReturnType().getDeclaredName());\n append(\"String_Node_Str\");\n append(method.getSimpleName());\n }\n append(\"String_Node_Str\");\n Iterator<? extends VariableModel> it = method.getParameters().iterator();\n if (it.hasNext()) {\n for (; ; ) {\n VariableModel param = it.next();\n appendVariableDeclaration(param);\n if (!it.hasNext()) {\n break;\n }\n append(\"String_Node_Str\");\n }\n }\n append(\"String_Node_Str\");\n Set<? extends TypeName> exceptions = method.getExceptions();\n if (exceptions.size() != 0) {\n append(\"String_Node_Str\");\n appendJoin(exceptions, \"String_Node_Str\");\n }\n}\n"
"private AttributeType actionImportHierarchy(final String path, final char separator) {\n try {\n return Hierarchy.create(path, separator);\n } catch (Throwable error) {\n if (error instanceof RuntimeException) {\n if (error.getCause() != null) {\n error = error.getCause();\n }\n }\n if ((error instanceof IllegalArgumentException) || (error instanceof IOException)) {\n main.showInfoDialog(\"String_Node_Str\", error.getMessage());\n } else {\n main.showErrorDialog(Resources.getMessage(\"String_Node_Str\"), Resources.getMessage(\"String_Node_Str\"), error);\n }\n }\n return null;\n}\n"
"public static short[] deserializeShort(List<MPIBuffer> buffers, int byteLength) {\n int noOfDoubles = byteLength / 2;\n short[] returnDoubles = new short[noOfDoubles];\n int bufferIndex = 0;\n for (int i = 0; i < noOfDoubles; i++) {\n ByteBuffer byteBuffer = buffers.get(bufferIndex).getByteBuffer();\n int remaining = byteBuffer.remaining();\n if (remaining >= 2) {\n returnDoubles[i] = byteBuffer.getShort();\n } else {\n bufferIndex = getReadBuffer(buffers, 4, bufferIndex);\n if (bufferIndex < 0) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n }\n }\n return returnDoubles;\n}\n"
"private void dispatchEventToButtons(MouseEvent event) {\n TreePath mousePath = getPathForLocation(event.getX(), event.getY());\n if (mousePath == null)\n return;\n ContactListTreeCellRenderer renderer = (ContactListTreeCellRenderer) getCellRenderer().getTreeCellRendererComponent(this, mousePath.getLastPathComponent(), getLastSelectedPathComponent() == mousePath.getLastPathComponent(), true, true, getRowForPath(mousePath), true);\n if (!mousePath.equals(getSelectionPath())) {\n renderer.resetRolloverState();\n this.repaint();\n return;\n }\n Rectangle r = this.getPathBounds(mousePath);\n int translatedX = event.getX() - r.x;\n int translatedY = event.getY() - r.y;\n Component mouseComponent = renderer.findComponentAt(translatedX, translatedY);\n if (logger.isDebugEnabled() && mouseComponent != null)\n logger.debug(\"String_Node_Str\" + mouseComponent.getClass().getName() + \"String_Node_Str\" + mouseComponent.getBounds() + \"String_Node_Str\" + translatedX + \"String_Node_Str\" + translatedY);\n if (mouseComponent instanceof SIPCommButton) {\n MouseEvent evt = new MouseEvent(mouseComponent, event.getID(), event.getWhen(), event.getModifiers(), 5, 5, event.getClickCount(), event.isPopupTrigger());\n ((SIPCommButton) mouseComponent).getModel().setRollover(event.getID() == MouseEvent.MOUSE_MOVED);\n if (event.getID() == MouseEvent.MOUSE_RELEASED && event.getClickCount() < 2 && previouslySelectedNode instanceof GroupNode) {\n previouslySelectedNode = null;\n }\n renderer.resetRolloverState(mouseComponent);\n mouseComponent.dispatchEvent(evt);\n } else {\n renderer.resetRolloverState();\n }\n this.repaint();\n}\n"
"public static final Interpreter newInterpreter(String zslang, Page owner) {\n if (zslang == null || zslang.length() == 0 || owner == null)\n throw new IllegalArgumentException(\"String_Node_Str\");\n final String zsl = zslang.toLowerCase(java.util.Locale.ENGLISH);\n final Object clsnm;\n synchronized (_ips) {\n clsnm = _ips.get(zsl);\n }\n if (clsnm == null)\n throw new InterpreterNotFoundException(zslang, MZk.NOT_FOUND, zslang);\n final Class<? extends Interpreter> cls;\n if (clsnm instanceof Class) {\n cls = cast((Class) clsnm);\n } else {\n Class<?> c;\n try {\n c = Classes.forNameByThread((String) clsnm);\n } catch (ClassNotFoundException ex) {\n throw new UiException(\"String_Node_Str\" + clsnm);\n }\n if (!Interpreter.class.isAssignableFrom(c))\n throw new IllegalArgumentException(c + \"String_Node_Str\" + Interpreter.class);\n cls = cast(c);\n synchronized (_ips) {\n final Object old = _ips.put(zsl, cls);\n if (old != clsnm)\n _ips.put(zsl, old);\n }\n }\n try {\n final Interpreter ip = cls.newInstance();\n ip.init(owner, zslang);\n return ip;\n } catch (Exception ex) {\n throw UiException.Aide.wrap(ex, \"String_Node_Str\" + cls);\n }\n}\n"
"public static String getHive2StandaloneURLString(DatabaseConnection dbConn, boolean supportContext) {\n String s = EDatabaseConnTemplate.HIVE.getUrlTemplate(EDatabaseVersion4Drivers.HIVE_2_STANDALONE);\n return getHiveStandaloneURlString(s, supportContext, server, port, sid);\n}\n"
"public static Data createProjection(final DataMatrix data, final String[] header, final int[] columns, final Dictionary dictionary) {\n if (columns.length == 0) {\n return new Data(null, new String[0], new int[0], new Dictionary(0));\n }\n DataMatrix matrix = new DataMatrix(data.getNumRows(), columns.length);\n for (int row = 0; row < data.getNumRows(); row++) {\n matrix.setRow(row);\n data.setRow(row);\n for (int index = 0; index < columns.length; index++) {\n matrix.setValueAtColumn(index, data.getValueAtColumn(columns[index]));\n }\n }\n String[] newHeader = new String[columns.length];\n int index = 0;\n for (int column : columns) {\n newHeader[index++] = header[column];\n }\n return new Data(matrix, newHeader, columns, new Dictionary(dictionary, columns));\n}\n"
"public void modifyText(final ModifyEvent e) {\n if (!isContextMode()) {\n getConnection().setFormat(FileFormat.getByName(fileFormatCombo.getText()));\n if (getConnection().getRowSeparatorType() == RowSeparator.STANDART_EOL_LITERAL) {\n if (getConnection().getFormat().toString().equals(FileFormat.MAC_LITERAL.getName())) {\n getConnection().setRowSeparatorValue(TalendQuoteUtils.addQuotes(\"String_Node_Str\"));\n } else {\n getConnection().setRowSeparatorValue(\"String_Node_Str\");\n }\n }\n fileViewerText.setText(Messages.getString(\"String_Node_Str\"));\n checkFilePathAndManageIt();\n }\n}\n"
"public void resetHandlers() {\n LowerPriorityTestResponseExceptionMapper.reset();\n getWireMockServer().stubFor(get(urlEqualTo(\"String_Node_Str\")).willReturn(aResponse().withStatus(STATUS).withBody(BODY)));\n}\n"
"public void testNotAvailableAfterTryingToConnect() throws Exception {\n TestUtils.showMessageDialog(\"String_Node_Str\");\n assertEquals(Connector.Status.NOT_AVAILABLE, WindowsConnector.getInstance().connect());\n final boolean[] available = new boolean[1];\n ConnectorListener listener = new AbstractConnectorListener() {\n public void statusChanged(ConnectorStatusEvent event) {\n Connector.Status status = event.getStatus();\n if (status == Connector.Status.API_AVAILABLE) {\n available[0] = true;\n }\n }\n };\n WindowsConnector.getInstance().addConnectorListener(listener, false);\n TestUtils.showMessageDialog(\"String_Node_Str\");\n assertTrue(available[0]);\n}\n"
"public void soundLevelChanged(SoundLevelChangeEvent evt) {\n Object evtSource = evt.getSource();\n if (evtSource.equals(callPeer)) {\n updateSoundBar(evt.getLevel());\n}\n"
"private List<String> getCandidateURIsSortedBySimilarity(Slot slot) {\n logger.info(\"String_Node_Str\" + slot.getWords() + \"String_Node_Str\");\n mon.start();\n List<String> sortedURIs = new ArrayList<String>();\n SolrSearch index = getIndexBySlotType(slot);\n Map<String, SolrQueryResultSet> uriCache = getCacheBySlotType(slot);\n SortedSet<SolrQueryResultItem> tmp;\n SolrQueryResultSet rs;\n List<String> words;\n if (slot.getSlotType() == SlotType.RESOURCE) {\n words = slot.getWords();\n } else {\n words = pruneList(slot.getWords());\n }\n for (String word : words) {\n tmp = new TreeSet<SolrQueryResultItem>(new SolrQueryResultStringSimilarityComparator(word));\n rs = uriCache.get(word);\n if (rs == null) {\n rs = index.getResourcesWithScores(word, 50);\n uriCache.put(word, rs);\n }\n tmp.addAll(rs.getItems());\n int i = 0;\n for (SolrQueryResultItem item : tmp) {\n if (!sortedURIs.contains(item.getUri())) {\n sortedURIs.add(item.getUri());\n }\n if (sortedURIs.size() == MAX_URIS_PER_SLOT) {\n break;\n }\n i++;\n }\n tmp.clear();\n }\n slot2URI.put(slot, sortedURIs);\n mon.stop();\n logger.info(\"String_Node_Str\" + mon.getLastValue() + \"String_Node_Str\");\n logger.info(\"String_Node_Str\" + sortedURIs);\n return sortedURIs;\n}\n"
"private static boolean isAllowedToNotReturn(Scope methodScope) {\n Node fn = methodScope.getRoot();\n if (fn.isFromExterns()) {\n return true;\n }\n if (!NodeUtil.isPrototypeMethod(fn)) {\n return false;\n }\n JSType maybeInterface;\n Node ntQnameNode = NodeUtil.getPrototypeClassName(fn.getParent().getFirstChild());\n if (ntQnameNode.isName()) {\n maybeInterface = methodScope.getDeclaredTypeOf(ntQnameNode.getString());\n } else {\n QualifiedName ntQname = QualifiedName.fromNode(ntQnameNode);\n JSType rootNamespace = methodScope.getDeclaredTypeOf(ntQname.getLeftmostName());\n maybeInterface = rootNamespace == null ? null : rootNamespace.getProp(ntQname.getAllButLeftmost());\n }\n return maybeInterface != null && maybeInterface.isInterfaceDefinition();\n}\n"
"private static Set<Integer> checkPropertyStore(String storeName, Set<Integer> propertyIndex) throws IOException {\n File propStore = new File(storeName);\n if (!propStore.exists()) {\n throw new IOException(\"String_Node_Str\" + storeName);\n }\n File idGenerator = new File(storeName + \"String_Node_Str\");\n if (idGenerator.exists()) {\n boolean success = idGenerator.delete();\n assert success;\n }\n Set<Integer> arrayStartBlocks = checkDynamicStore(storeName + \"String_Node_Str\");\n Set<Integer> stringStartBlocks = checkDynamicStore(storeName + \"String_Node_Str\");\n int recordSize = 25;\n System.out.print(storeName);\n ByteBuffer buffer = ByteBuffer.allocate(recordSize);\n FileChannel fileChannel = new RandomAccessFile(storeName, \"String_Node_Str\").getChannel();\n long fileSize = fileChannel.size();\n fileChannel.position(0);\n long dot = fileSize / recordSize / 20;\n Set<Integer> startBlocks = new java.util.HashSet<Integer>();\n int i = 0;\n int inUseCount = 0;\n for (i = 0; (long) (i + 1) * recordSize <= fileSize; i++) {\n buffer.clear();\n fileChannel.position((long) i * recordSize);\n fileChannel.read(buffer);\n buffer.flip();\n byte inUse = buffer.get();\n if (inUse == RECORD_IN_USE) {\n inUseCount++;\n int type = buffer.getInt();\n int key = buffer.getInt();\n long prop = buffer.getLong();\n int previous = buffer.getInt();\n int next = buffer.getInt();\n if (next != NO_NEXT_BLOCK) {\n if ((next + 1) * recordSize > fileSize || next < 0) {\n throw new IOException(\"String_Node_Str\" + next + \"String_Node_Str\" + i);\n }\n buffer.clear();\n fileChannel.position((long) next * recordSize);\n fileChannel.read(buffer);\n buffer.flip();\n if (buffer.get() != RECORD_IN_USE) {\n throw new IOException(\"String_Node_Str\" + next + \"String_Node_Str\" + i);\n }\n buffer.getInt();\n buffer.getInt();\n buffer.getLong();\n int prev = buffer.getInt();\n if (prev != i) {\n throw new IOException(\"String_Node_Str\" + next + \"String_Node_Str\" + i);\n }\n }\n if (previous == NO_PREV_BLOCK) {\n startBlocks.add(i);\n } else {\n if ((previous + 1) * recordSize > fileSize || previous < 0) {\n throw new IOException(\"String_Node_Str\" + previous + \"String_Node_Str\" + i);\n }\n buffer.clear();\n fileChannel.position((long) previous * recordSize);\n fileChannel.read(buffer);\n buffer.flip();\n if (buffer.get() != RECORD_IN_USE) {\n throw new IOException(\"String_Node_Str\" + previous + \"String_Node_Str\" + i);\n }\n buffer.getInt();\n buffer.getInt();\n buffer.getLong();\n buffer.getInt();\n int nxt = buffer.getInt();\n if (nxt != i) {\n throw new IOException(\"String_Node_Str\" + previous + \"String_Node_Str\" + i);\n }\n }\n if (type < 1 || type > 10) {\n throw new IOException(\"String_Node_Str\" + type + \"String_Node_Str\" + i);\n }\n if (!propertyIndex.contains(key)) {\n throw new IOException(\"String_Node_Str\" + key + \"String_Node_Str\" + i);\n }\n if (type == 9 && !arrayStartBlocks.remove((int) prop)) {\n throw new IOException(\"String_Node_Str\" + prop + \"String_Node_Str\" + i);\n }\n if (type == 2 && !stringStartBlocks.remove((int) prop)) {\n throw new IOException(\"String_Node_Str\" + prop + \"String_Node_Str\" + i);\n }\n } else if (inUse != RECORD_NOT_IN_USE) {\n System.out.println(\"String_Node_Str\" + i);\n System.out.println(\"String_Node_Str\" + inUse);\n }\n if (dot != 0 && i % dot == 0) {\n System.out.print(\"String_Node_Str\");\n }\n }\n System.out.print(\"String_Node_Str\" + i + \"String_Node_Str\" + inUseCount);\n if (!stringStartBlocks.isEmpty()) {\n System.out.println(\"String_Node_Str\" + stringStartBlocks.size());\n }\n fileChannel.close();\n System.out.println(\"String_Node_Str\");\n return startBlocks;\n}\n"
"public static List<Object> getChildFromTXT(String folderPath) {\n List<Object> ls = new ArrayList<Object>();\n try {\n IPath iPath = null;\n IFile file = null;\n IFolder folder = null;\n HashSet<String> set = new HashSet<String>();\n DQRecycleBinNode rbn = null;\n for (String[] es : delLs) {\n if (es.length < 2 || folderType.equals(es[0] + \"String_Node_Str\") && folderPath.equals(es[1]))\n continue;\n if (es[1].startsWith(folderPath)) {\n iPath = new Path(es[1]);\n if (es[0].equals(\"String_Node_Str\")) {\n file = ResourcesPlugin.getWorkspace().getRoot().getFile(iPath);\n if (file.getParent().getFullPath().toOSString().equals(folderPath)) {\n rbn = new DQRecycleBinNode();\n rbn.setObject(file);\n ls.add(rbn);\n } else {\n addToSet(es[1], folderPath, set);\n }\n } else if (es[0].equals(\"String_Node_Str\")) {\n addToSet(es[1], folderPath, set);\n }\n }\n }\n Iterator<String> iterator = set.iterator();\n while (iterator.hasNext()) {\n rbn = new DQRecycleBinNode();\n folder = ResourcesPlugin.getWorkspace().getRoot().getFolder(new Path(iterator.next()));\n rbn.setObject(folder);\n ls.add(rbn);\n }\n } catch (Exception exc) {\n log.error(exc, exc);\n }\n return ls;\n}\n"
"static String populateProjectData(NewModuleProjectData data, String paths, boolean assignValues) {\n if (data.getProjectName() != null && data.getCodeNameBase() != null && assignValues) {\n return null;\n }\n String wrongOnes = null;\n StringTokenizer tokens = new StringTokenizer(paths, File.pathSeparator);\n boolean cutShortestPath = false;\n boolean fileAlreadyMarked = false;\n if (tokens.hasMoreTokens()) {\n fileAlreadyMarked = false;\n File fil = new File(tokens.nextToken());\n if (!fil.exists()) {\n return wrongOnes;\n }\n String name = fil.getName();\n int inddd = name.lastIndexOf('.');\n if (inddd > -1) {\n name = name.substring(0, inddd);\n }\n name = name.replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n if (assignValues) {\n data.setProjectName(name);\n }\n JarFile jf = null;\n String shortestPath = null;\n try {\n jf = new JarFile(fil);\n if (assignValues) {\n Manifest manifest = jf.getManifest();\n if (manifest != null) {\n Attributes attributes = manifest.getMainAttributes();\n if (attributes.getValue(\"String_Node_Str\") != null) {\n data.setProjectName(attributes.getValue(\"String_Node_Str\").replaceAll(\"String_Node_Str\", \"String_Node_Str\").replaceAll(\"String_Node_Str\", \"String_Node_Str\"));\n } else {\n if (manifest.getEntries().size() == 1) {\n attributes = manifest.getEntries().values().iterator().next();\n if (attributes.getValue(\"String_Node_Str\") != null) {\n data.setProjectName(attributes.getValue(\"String_Node_Str\").replaceAll(\"String_Node_Str\", \"String_Node_Str\").replaceAll(\"String_Node_Str\", \"String_Node_Str\"));\n }\n }\n }\n }\n }\n Enumeration en = jf.entries();\n while (en.hasMoreElements()) {\n JarEntry entry = (JarEntry) en.nextElement();\n if (!entry.isDirectory() && entry.getName().endsWith(\"String_Node_Str\")) {\n String nm = entry.getName();\n if (!ApisupportAntUtils.isValidJavaFQN(nm.substring(0, nm.length() - 6).replace('/', '.'))) {\n continue;\n }\n int index = nm.lastIndexOf('/');\n if (index > -1) {\n String path = nm.substring(0, index);\n if (shortestPath != null && path.length() == shortestPath.length() && !path.equals(shortestPath)) {\n cutShortestPath = true;\n }\n if (shortestPath == null || path.length() < shortestPath.length()) {\n shortestPath = path;\n cutShortestPath = false;\n }\n } else {\n if (!fileAlreadyMarked) {\n wrongOnes = wrongOnes == null ? fil.getName() : wrongOnes + \"String_Node_Str\" + fil.getName();\n fileAlreadyMarked = true;\n }\n }\n }\n }\n } catch (IOException e) {\n ErrorManager.getDefault().notify(ErrorManager.WARNING, e);\n } finally {\n if (jf != null) {\n try {\n jf.close();\n } catch (IOException e) {\n Util.err.notify(ErrorManager.INFORMATIONAL, e);\n }\n }\n }\n if (shortestPath != null && assignValues) {\n shortestPath = shortestPath.replace('/', '.');\n if (cutShortestPath && shortestPath.indexOf('.') != shortestPath.lastIndexOf('.')) {\n int ind = shortestPath.lastIndexOf('.');\n shortestPath = shortestPath.substring(0, ind);\n }\n data.setCodeNameBase(shortestPath);\n }\n }\n return wrongOnes;\n}\n"
"public void join(UUID userId) {\n UUID playerId = userPlayerMap.get(userId);\n GameSession gameSession = new GameSession(game, userId, playerId, useTimeout);\n gameSessions.put(playerId, gameSession);\n User user = UserManager.getInstance().getUser(userId);\n if (userId == null || playerId == null) {\n logger.fatal(\"String_Node_Str\");\n logger.fatal(\"String_Node_Str\" + game.getId());\n logger.fatal(\"String_Node_Str\" + userId);\n return;\n }\n Player player = game.getPlayer(playerId);\n if (player == null) {\n logger.fatal(\"String_Node_Str\" + playerId);\n return;\n }\n GameSession gameSession = gameSessions.get(playerId);\n String joinType;\n if (gameSession == null) {\n gameSession = new GameSession(game, userId, playerId, useTimeout);\n gameSessions.put(playerId, gameSession);\n gameSession.setUserData(user.getUserData());\n joinType = \"String_Node_Str\";\n } else {\n joinType = \"String_Node_Str\";\n }\n user.addGame(playerId, gameSession);\n logger.debug(new StringBuilder(\"String_Node_Str\").append(playerId).append(\"String_Node_Str\").append(game.getId()).toString());\n ChatManager.getInstance().broadcast(chatId, \"String_Node_Str\", new StringBuilder(game.getPlayer(playerId).getName()).append(\"String_Node_Str\").toString(), MessageColor.ORANGE, true, MessageType.GAME);\n checkStart();\n}\n"
"public boolean replace(Data key, Object oldValue, Object newValue, ExpiryPolicy expiryPolicy, String source, int completionId) {\n expiryPolicy = getExpiryPolicy(expiryPolicy);\n final long now = Clock.currentTimeMillis();\n final long start = isStatisticsEnabled() ? System.nanoTime() : 0;\n boolean isHit = false;\n boolean replaced = false;\n R record = records.get(key);\n boolean isExpired = record != null && record.isExpiredAt(now);\n try {\n if (record == null || isExpired) {\n replaced = false;\n } else {\n isHit = true;\n Object currentValue = toStorageValue(record);\n if (compare(currentValue, toStorageValue(oldValue))) {\n replaced = updateRecordWithExpiry(key, newValue, record, expiryPolicy, now, false, completionId);\n } else {\n onRecordAccess(key, record, expiryPolicy, now);\n replaced = false;\n }\n }\n if (!replaced) {\n publishEvent(CacheEventType.COMPLETED, key, null, null, false, completionId, CacheRecord.EXPIRATION_TIME_NOT_AVAILABLE);\n }\n onReplace(key, oldValue, newValue, expiryPolicy, source, false, record, isExpired, replaced);\n updateReplaceStat(replaced, isHit, start);\n updateHasExpiringEntry(record);\n return replaced;\n } catch (Throwable error) {\n onReplaceError(key, oldValue, newValue, expiryPolicy, source, false, record, isExpired, replaced, error);\n throw ExceptionUtil.rethrow(error);\n }\n}\n"
"public Map<String, String> getSystemTagsAsString() {\n return Maps.transformValues(getSystemTagsMap(), SystemTag::getValue);\n}\n"
"public void testCompilesTestSourcesIntoDynamicLibrary() throws Exception {\n if (OS.getCurrent() == OS.WINDOWS) {\n return;\n }\n scratch.file(\"String_Node_Str\", \"String_Node_Str\");\n useConfiguration(\"String_Node_Str\", \"String_Node_Str\");\n ConfiguredTarget configuredTarget = getConfiguredTarget(\"String_Node_Str\");\n CppLinkAction linkAction = (CppLinkAction) getGeneratingAction(configuredTarget, \"String_Node_Str\" + OsUtils.executableExtension());\n assertThat(artifactsToStrings(linkAction.getInputs())).contains(\"String_Node_Str\" + CrosstoolConfigurationHelper.defaultCpu() + \"String_Node_Str\");\n assertThat(linkAction.getArguments()).contains(getBinArtifactWithNoOwner(\"String_Node_Str\" + CrosstoolConfigurationHelper.defaultCpu() + \"String_Node_Str\").getExecPathString());\n RunfilesProvider runfilesProvider = configuredTarget.getProvider(RunfilesProvider.class);\n assertThat(artifactsToStrings(runfilesProvider.getDefaultRunfiles().getArtifacts())).contains(\"String_Node_Str\" + CrosstoolConfigurationHelper.defaultCpu() + \"String_Node_Str\");\n}\n"
"public void testGetRefreshedDataProvider() throws SQLException {\n DatabaseConnection dbProvider = ConnectionFactory.eINSTANCE.createDatabaseConnection();\n setJDBCMysqlConnection(dbProvider);\n List<Catalog> catalogPackageFilter = new ArrayList<Catalog>();\n List<orgomg.cwm.objectmodel.core.Package> schemaPackageFilter = new ArrayList<orgomg.cwm.objectmodel.core.Package>();\n TypedReturnCode<java.sql.Connection> returnCode = new TypedReturnCode<java.sql.Connection>(true);\n java.sql.Connection mockSqlConn = Mockito.mock(java.sql.Connection.class);\n returnCode.setObject(mockSqlConn);\n DatabaseMetaData mockDatabaseMetaData = Mockito.mock(DatabaseMetaData.class);\n Mockito.when(mockDatabaseMetaData.supportsCatalogsInIndexDefinitions()).thenReturn(true);\n List<String> catalogNames = new ArrayList<String>();\n List<String> packageFilter = MetadataConnectionUtils.getPackageFilter(dbProvider, mockDatabaseMetaData, true);\n boolean haveFilter = false;\n if (packageFilter.size() > 0) {\n catalogNames.addAll(packageFilter);\n haveFilter = true;\n } else {\n catalogNames.add(\"String_Node_Str\");\n catalogNames.add(\"String_Node_Str\");\n catalogNames.add(\"String_Node_Str\");\n }\n ResultSet mockCatalogResults = Mockito.mock(ResultSet.class);\n if (haveFilter) {\n Mockito.when(mockCatalogResults.next()).thenReturn(true, false);\n } else {\n Mockito.when(mockCatalogResults.next()).thenReturn(true, true, true, false);\n }\n Mockito.when(mockCatalogResults.getString(MetaDataConstants.TABLE_CAT.name())).thenReturn(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n ResultSet mockSchemaResults = Mockito.mock(ResultSet.class);\n Mockito.when(mockSchemaResults.next()).thenReturn(false);\n Mockito.when(mockDatabaseMetaData.getDatabaseProductName()).thenReturn(EDatabaseTypeName.MYSQL.getProduct());\n Mockito.when(mockDatabaseMetaData.getCatalogs()).thenReturn(mockCatalogResults);\n Mockito.when(mockDatabaseMetaData.getDriverName()).thenReturn(\"String_Node_Str\");\n Mockito.when(mockDatabaseMetaData.getSchemas()).thenReturn(mockSchemaResults);\n CoreRuntimePlugin instanceMock = Mockito.mock(CoreRuntimePlugin.class);\n PowerMockito.mockStatic(CoreRuntimePlugin.class);\n Mockito.when(CoreRuntimePlugin.getInstance()).thenReturn(instanceMock);\n Mockito.when(instanceMock.getRepositoryService()).thenReturn(null);\n PowerMockito.mockStatic(ExtractMetaDataUtils.class);\n ExtractMetaDataUtils extract = Mockito.mock(ExtractMetaDataUtils.class);\n Mockito.when(ExtractMetaDataUtils.getInstance()).thenReturn(extract);\n Mockito.when(extract.getConnectionMetadata(mockSqlConn)).thenReturn(mockDatabaseMetaData);\n PowerMockito.mockStatic(ConnectionHelper.class);\n Set<MetadataTable> result = new HashSet<MetadataTable>();\n Mockito.when(ConnectionHelper.getTables(dbProvider)).thenReturn(result);\n Mockito.when(ConnectionHelper.addCatalogs((Collection<Catalog>) Mockito.any(), (Connection) Mockito.any())).thenCallRealMethod();\n Mockito.when(ConnectionHelper.addPackages((Collection<Catalog>) Mockito.any(), (Connection) Mockito.any())).thenCallRealMethod();\n MetadataFillFactory mockMetadataFillFactory = Mockito.mock(MetadataFillFactory.class);\n PowerMockito.mockStatic(MetadataFillFactory.class);\n Mockito.when(MetadataFillFactory.getDBInstance()).thenReturn(mockMetadataFillFactory);\n Mockito.when(MetadataFillFactory.getDBInstance()).thenReturn(mockMetadataFillFactory);\n Mockito.when(MetadataFillFactory.getDBInstance()).thenCallRealMethod();\n Mockito.when(MetadataFillFactory.getDBInstance()).thenReturn(mockMetadataFillFactory);\n Mockito.when(mockMetadataFillFactory.createConnection((IMetadataConnection) Mockito.any())).thenReturn(returnCode);\n Mockito.when(mockMetadataFillFactory.fillUIConnParams((IMetadataConnection) Mockito.any(), (Connection) Mockito.isNull())).thenReturn(dbProvider);\n Mockito.when(mockMetadataFillFactory.fillCatalogs((Connection) Mockito.any(), (DatabaseMetaData) Mockito.any(), Mockito.anyList())).thenCallRealMethod();\n Mockito.when(mockMetadataFillFactory.fillSchemas((Connection) Mockito.any(), (DatabaseMetaData) Mockito.any(), Mockito.anyList())).thenReturn(schemaPackageFilter);\n List<Schema> schemaList = new ArrayList<Schema>();\n Mockito.when(mockMetadataFillFactory.fillSchemaToCatalog((Connection) Mockito.any(), (DatabaseMetaData) Mockito.any(), (Catalog) Mockito.any(), (List<String>) Mockito.any())).thenReturn(schemaList);\n DQStructureComparer.getRefreshedDataProvider(dbProvider);\n List<Catalog> catalogs = CatalogHelper.getCatalogs(dbProvider.getDataPackage());\n assertTrue(catalogs.size() == catalogNames.size());\n for (int index = 0; index < catalogNames.size(); index++) {\n assertTrue(catalogNames.get(index).equalsIgnoreCase(catalogs.get(index).getName()));\n }\n}\n"
"public <T extends TokenObject> List<List<List<AnnotationObject>>> predictSentences(List<List<T>> inputData) {\n List<List<List<AnnotationObject>>> result = new ArrayList<>();\n for (List<T> sentence : inputData) {\n List<List<AnnotationObject>> annotatedSentence = new ArrayList<>();\n int sentenceIndex = 0;\n while (sentenceIndex < sentence.size() - 1) {\n TokenObject token = sentence.get(sentenceIndex);\n List<AnnotationObject> word;\n if (isNamedEntity(token)) {\n StringBuilder coveredText = new StringBuilder(token.getCoveredText());\n int endCharacter = token.getOffset().getEndCharacter();\n int endToken = token.getOffset().getEndToken();\n TokenObject nextTokenObject = sentence.get(sentenceIndex + 1);\n while (isNamedEntity(nextTokenObject) && sentenceIndex + 1 < sentence.size() - 1) {\n coveredText.append(\"String_Node_Str\").append(nextTokenObject.getCoveredText());\n endCharacter = nextTokenObject.getOffset().getEndCharacter();\n endToken = nextTokenObject.getOffset().getEndToken();\n sentenceIndex++;\n nextTokenObject = sentence.get(sentenceIndex + 1);\n }\n token.setCoveredText(coveredText.toString());\n token.setOffset(new Offset(token.getOffset().getBeginCharacter(), endCharacter, token.getOffset().getBeginToken(), endToken));\n word = predictToken(token);\n annotatedSentence.add(word);\n }\n sentenceIndex++;\n }\n result.add(annotatedSentence);\n }\n return result;\n}\n"
"public void testFilter1Cache() throws Exception {\n ICubeQueryDefinition cqd = new CubeQueryDefinition(cubeName);\n IEdgeDefinition columnEdge = cqd.createEdge(ICubeQueryDefinition.COLUMN_EDGE);\n IEdgeDefinition rowEdge = cqd.createEdge(ICubeQueryDefinition.ROW_EDGE);\n IDimensionDefinition dim1 = columnEdge.createDimension(\"String_Node_Str\");\n IHierarchyDefinition hier1 = dim1.createHierarchy(\"String_Node_Str\");\n hier1.createLevel(\"String_Node_Str\");\n hier1.createLevel(\"String_Node_Str\");\n IDimensionDefinition dim2 = rowEdge.createDimension(\"String_Node_Str\");\n IHierarchyDefinition hier2 = dim2.createHierarchy(\"String_Node_Str\");\n hier2.createLevel(\"String_Node_Str\");\n cqd.createMeasure(\"String_Node_Str\");\n IBinding binding1 = new Binding(\"String_Node_Str\");\n binding1.setExpression(new ScriptExpression(\"String_Node_Str\"));\n cqd.addBinding(binding1);\n IBinding binding2 = new Binding(\"String_Node_Str\");\n binding2.setExpression(new ScriptExpression(\"String_Node_Str\"));\n cqd.addBinding(binding2);\n IBinding binding4 = new Binding(\"String_Node_Str\");\n binding4.setExpression(new ScriptExpression(\"String_Node_Str\"));\n cqd.addBinding(binding4);\n IBinding binding5 = new Binding(\"String_Node_Str\");\n binding5.setExpression(new ScriptExpression(\"String_Node_Str\"));\n cqd.addBinding(binding5);\n IFilterDefinition filter = new FilterDefinition(new ConditionalExpression(\"String_Node_Str\", IConditionalExpression.OP_EQ, \"String_Node_Str\"));\n cqd.addFilter(filter);\n DataEngineImpl engine = (DataEngineImpl) DataEngine.newDataEngine(DataEngineContext.newInstance(DataEngineContext.DIRECT_PRESENTATION, null, null, null));\n this.createCube(engine);\n cqd.setCacheQueryResults(true);\n IPreparedCubeQuery pcq = engine.prepare(cqd, null);\n ICubeQueryResults queryResults = pcq.execute(null);\n CubeCursor cursor = queryResults.getCubeCursor();\n List columnEdgeBindingNames = new ArrayList();\n columnEdgeBindingNames.add(\"String_Node_Str\");\n columnEdgeBindingNames.add(\"String_Node_Str\");\n cqd.setQueryResultsID(queryResults.getID());\n pcq = engine.prepare(cqd, null);\n queryResults = pcq.execute(null);\n cursor = queryResults.getCubeCursor();\n this.printCube(cursor, columnEdgeBindingNames, \"String_Node_Str\", \"String_Node_Str\");\n}\n"
"protected String buildDrillAction(IAction action, IReportContext context) {\n if (action == null || context == null)\n return null;\n String baseURL = null;\n Object renderContext = getRenderContext(context);\n if (renderContext instanceof HTMLRenderContext) {\n baseURL = ((HTMLRenderContext) renderContext).getBaseURL();\n }\n if (renderContext instanceof PDFRenderContext) {\n baseURL = ((PDFRenderContext) renderContext).getBaseURL();\n }\n if (baseURL == null)\n baseURL = IBirtConstants.VIEWER_PREVIEW;\n StringBuffer link = new StringBuffer();\n String reportName = getReportName(context, action);\n if (reportName != null && !reportName.equals(\"String_Node_Str\")) {\n link.append(baseURL);\n link.append(reportName.toLowerCase().endsWith(\"String_Node_Str\") ? \"String_Node_Str\" : \"String_Node_Str\");\n try {\n link.append(URLEncoder.encode(reportName, ParameterAccessor.UTF_8_ENCODE));\n } catch (UnsupportedEncodingException e1) {\n }\n String format = action.getFormat();\n if (format == null || format.length() == 0)\n format = hostFormat;\n if (format != null && format.length() > 0) {\n link.append(ParameterAccessor.getQueryParameterString(ParameterAccessor.PARAM_FORMAT, format));\n }\n if (action.getParameterBindings() != null) {\n Iterator paramsIte = action.getParameterBindings().entrySet().iterator();\n while (paramsIte.hasNext()) {\n Map.Entry entry = (Map.Entry) paramsIte.next();\n try {\n String key = (String) entry.getKey();\n Object valueObj = entry.getValue();\n if (valueObj != null) {\n String value = DataUtil.getDisplayValue(valueObj);\n link.append(ParameterAccessor.getQueryParameterString(URLEncoder.encode(key, ParameterAccessor.UTF_8_ENCODE), URLEncoder.encode(value, ParameterAccessor.UTF_8_ENCODE)));\n }\n } catch (UnsupportedEncodingException e) {\n }\n }\n if (!reportName.toLowerCase().endsWith(ParameterAccessor.SUFFIX_REPORT_DOCUMENT) && baseURL.lastIndexOf(IBirtConstants.SERVLET_PATH_FRAMESET) > 0) {\n link.append(ParameterAccessor.getQueryParameterString(ParameterAccessor.PARAM_OVERWRITE, String.valueOf(true)));\n }\n }\n if (locale != null) {\n link.append(ParameterAccessor.getQueryParameterString(ParameterAccessor.PARAM_LOCALE, locale.toString()));\n }\n if (isRtl) {\n link.append(ParameterAccessor.getQueryParameterString(ParameterAccessor.PARAM_RTL, String.valueOf(isRtl)));\n }\n link.append(ParameterAccessor.getQueryParameterString(ParameterAccessor.PARAM_MASTERPAGE, String.valueOf(this.isMasterPageContent)));\n try {\n if (resourceFolder != null)\n resourceFolder = URLEncoder.encode(resourceFolder, ParameterAccessor.UTF_8_ENCODE);\n } catch (UnsupportedEncodingException e) {\n }\n if (resourceFolder != null) {\n link.append(ParameterAccessor.getQueryParameterString(ParameterAccessor.PARAM_RESOURCE_FOLDER, this.resourceFolder));\n }\n String bookmark = action.getBookmark();\n if (bookmark != null) {\n try {\n if (baseURL.lastIndexOf(IBirtConstants.SERVLET_PATH_PREVIEW) > 0 || IBirtConstants.PDF_RENDER_FORMAT.equalsIgnoreCase(format)) {\n link.append(\"String_Node_Str\");\n } else {\n link.append(\"String_Node_Str\");\n }\n link.append(URLEncoder.encode(action.getBookmark(), ParameterAccessor.UTF_8_ENCODE));\n } catch (UnsupportedEncodingException e) {\n }\n }\n }\n return link.toString();\n}\n"
"public List<TargetType> getPossibleTargets() {\n List<PathPosition> positions = pathPositions;\n int size = positions.size();\n if (size == 1 && positions.get(0).getMethod() == null && managedType.getJavaType().equals(positions.get(0).getRealCurrentClass())) {\n return Collections.emptyList();\n }\n List<TargetType> possibleTargets = new ArrayList<TargetType>(size);\n for (int i = 0; i < size; i++) {\n PathPosition position = positions.get(i);\n possibleTargets.add(new TargetTypeImpl(position.hasCollectionJoin(), position.getMethod(), position.getRealCurrentClass(), position.getCurrentClass(), position.getCurrentClass()));\n }\n return possibleTargets;\n}\n"
"public static void main(String[] args) throws Exception {\n DebugClient.disableReadTimeoutHandler(IdleStateHandler.class);\n Main.main(args);\n}\n"
"void open() throws IOException {\n try {\n this.outputStream = new FSDataOutputStream(location.getOutputStream(), null);\n this.dataFileWriter = new DataFileWriter<>(new GenericDatumWriter<GenericRecord>(schema));\n this.dataFileWriter.create(schema, this.outputStream);\n this.dataFileWriter.setSyncInterval(syncIntervalBytes);\n this.createTime = System.currentTimeMillis();\n } catch (Exception e) {\n close();\n throw new IOException(\"String_Node_Str\" + location, e);\n }\n this.isOpen = true;\n}\n"
"private boolean checkAnyRunning(Predicate<Id.Program> predicate, ProgramType... types) {\n for (ProgramType type : types) {\n for (Map.Entry<RunId, ProgramRuntimeService.RuntimeInfo> entry : runtimeService.list(type).entrySet()) {\n ProgramController.State programState = entry.getValue().getController().getState();\n if (programState == ProgramController.State.STOPPED || programState == ProgramController.State.ERROR) {\n continue;\n }\n Id.Program programId = entry.getValue().getProgramId();\n if (predicate.apply(programId)) {\n LOG.trace(\"String_Node_Str\", programId.getApplicationId(), type, programId.getId(), entry.getValue().getController().getRunId());\n return true;\n }\n }\n }\n return false;\n}\n"
"private boolean rewritePacket(StreamRTPManagerDesc streamRTPManager, boolean write, boolean rewrite, byte[] buf, int off, int len) {\n if (_data) {\n Long ssrc = RawPacket.getSSRCAsLong(buf, off, len);\n ResumableStreamRewriter rewriter = streamRTPManager.streamRTPManager.getResumableStreamRewriter(ssrc, true);\n return rewrite ? rewriter.rewriteRTP(write, buf, off, len) : rewriter.restoreRTP(buf, off, len);\n } else {\n int offset = off, length = len;\n boolean modified = false;\n while (length > 0) {\n if (!RTCPHeaderUtils.isValid(buf, offset, length)) {\n break;\n }\n int pktLen = RTCPHeaderUtils.getLength(buf, offset, length);\n int pt = RTCPHeaderUtils.getPacketType(buf, offset, pktLen);\n if (pt == RTCPPacket.SR) {\n long ssrc = RTCPHeaderUtils.getSenderSSRC(buf, offset, pktLen);\n ResumableStreamRewriter rewriter = streamRTPManager.streamRTPManager.getResumableStreamRewriter(ssrc, false);\n if (rewriter != null) {\n boolean mod = rewriter.processRTCP(rewrite, buf, offset, pktLen);\n if (mod) {\n modified = mod;\n }\n }\n }\n offset += pktLen;\n length -= pktLen;\n }\n return modified;\n }\n}\n"
"public String execute(ClusterServicePdu pdu) throws RemoteException {\n HttpClient client = getHttpClient();\n PostMethod method = new PostMethod(_serviceUrl);\n method.addParameter(\"String_Node_Str\", Integer.toString(RemoteMethodConstants.METHOD_DELIVER_PDU));\n method.addParameter(\"String_Node_Str\", pdu.getSourcePeer());\n method.addParameter(\"String_Node_Str\", pdu.getDestPeer());\n method.addParameter(\"String_Node_Str\", Long.toString(pdu.getSequenceId()));\n method.addParameter(\"String_Node_Str\", Long.toString(pdu.getAckSequenceId()));\n method.addParameter(\"String_Node_Str\", Long.toString(pdu.getAgentId()));\n method.addParameter(\"String_Node_Str\", pdu.getJsonPackage());\n method.addParameter(\"String_Node_Str\", pdu.isStopOnError() ? \"String_Node_Str\" : \"String_Node_Str\");\n method.addParameter(\"String_Node_Str\", pdu.isRequest() ? \"String_Node_Str\" : \"String_Node_Str\");\n try {\n return executePostMethod(client, method);\n } finally {\n method.releaseConnection();\n }\n}\n"
"public void testImport_SC() throws IOException, URISyntaxException {\n URL itemUrl = QTIImportProcessorTest.class.getResource(\"String_Node_Str\");\n Assert.assertNotNull(itemUrl);\n File itemFile = new File(itemUrl.toURI());\n QTIImportProcessor proc = new QTIImportProcessor(owner, Locale.ENGLISH, itemFile.getName(), itemFile, questionItemDao, qItemTypeDao, qEduContextDao, qpoolFileStorage);\n DocInfos docInfos = proc.getDocInfos();\n Assert.assertNotNull(docInfos);\n Assert.assertNotNull(docInfos.getFilename());\n Assert.assertNotNull(docInfos.getDocument());\n Assert.assertEquals(\"String_Node_Str\", docInfos.getFilename());\n List<ItemInfos> itemInfos = proc.getItemList(docInfos);\n Assert.assertNotNull(itemInfos);\n Assert.assertEquals(1, itemInfos.size());\n QuestionItemImpl item = proc.processItem(docInfos, itemInfos.get(0));\n Assert.assertNotNull(item);\n dbInstance.commitAndCloseSession();\n proc.processFiles(item, itemInfos.get(0));\n QuestionItemFull reloadItem = questionItemDao.loadById(item.getKey());\n Assert.assertNotNull(reloadItem);\n Assert.assertNotNull(reloadItem.getCreationDate());\n Assert.assertNotNull(reloadItem.getLastModified());\n Assert.assertEquals(QuestionStatus.draft, reloadItem.getQuestionStatus());\n Assert.assertEquals(QTIConstants.QTI_12_FORMAT, reloadItem.getFormat());\n Assert.assertEquals(\"String_Node_Str\", reloadItem.getTitle());\n Assert.assertEquals(\"String_Node_Str\", reloadItem.getDescription());\n Assert.assertNotNull(reloadItem.getType());\n Assert.assertEquals(QuestionType.SC.name(), reloadItem.getType().getType());\n VFSContainer itemDir = qpoolFileStorage.getContainer(reloadItem.getDirectory());\n Assert.assertNotNull(itemDir);\n VFSItem qtiLeaf = itemDir.resolve(reloadItem.getRootFilename());\n Assert.assertNotNull(qtiLeaf);\n Assert.assertTrue(qtiLeaf instanceof VFSLeaf);\n Assert.assertTrue(qtiLeaf.exists());\n Assert.assertEquals(itemFile.length(), ((VFSLeaf) qtiLeaf).getSize());\n}\n"
"public static void main(String[] args) throws Exception {\n Arguments arguments = new Arguments(args);\n List<String> errors = new ArrayList<String>();\n if (arguments.exists(\"String_Node_Str\", \"String_Node_Str\")) {\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n System.out.println();\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n System.out.println();\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n System.out.println();\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n System.exit(0);\n }\n String source = arguments.value(\"String_Node_Str\", \"String_Node_Str\");\n if (source == null) {\n errors.add(\"String_Node_Str\");\n }\n String springVersion = arguments.value(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n Collection<String> packages = arguments.valueList(\"String_Node_Str\", \"String_Node_Str\");\n if (packages.isEmpty()) {\n errors.add(\"String_Node_Str\");\n }\n if (!errors.isEmpty()) {\n for (String error : errors) {\n System.err.println(error);\n }\n System.err.println(\"String_Node_Str\");\n System.exit(1);\n }\n File sourceDir = new File(source);\n File[] packageDirs = new File[packages.size()];\n int i = 0;\n for (String packageStr : packages) {\n packageStr = packageStr.replaceAll(\"String_Node_Str\", File.separator);\n packageDirs[i] = new File(sourceDir, packageStr);\n i++;\n }\n ApplicationContextGenerator generator = new ApplicationContextGenerator(springVersion);\n JavaFileFilter javaFileFilter = new JavaFileFilter();\n for (File directory : packageDirs) {\n File[] files = directory.listFiles(javaFileFilter);\n for (File file : files) {\n generator.addBean(new FileReader(file));\n }\n }\n Document document = generator.getDocument();\n String xmlString;\n {\n TransformerFactory transfac = TransformerFactory.newInstance();\n Transformer trans = transfac.newTransformer();\n trans.setOutputProperty(OutputKeys.INDENT, \"String_Node_Str\");\n StringWriter sw = new StringWriter();\n StreamResult result = new StreamResult(sw);\n DOMSource domSource = new DOMSource(document);\n trans.transform(domSource, result);\n xmlString = sw.toString();\n }\n System.out.println(xmlString);\n}\n"
"public void addDownload(String streamId) throws RobonoboException {\n File dataFile = new File(downloadsDir, makeFileNameSafe(streamId));\n log.info(\"String_Node_Str\" + streamId);\n Stream s = streams.getKnownStream(streamId);\n DownloadingTrack d = new DownloadingTrack(s, dataFile, DownloadStatus.Paused);\n long startTime = System.currentTimeMillis();\n synchronized (this) {\n if (startTime == lastDlStartTime)\n startTime++;\n lastDlStartTime = startTime;\n }\n d.setDateAdded(new Date(startTime));\n try {\n PageBuffer pb = storage.createPageBufForDownload(s, dataFile);\n if (numRunningDownloads() < rbnb.getConfig().getMaxRunningDownloads())\n startDownload(d, pb);\n } catch (Exception e) {\n log.error(\"String_Node_Str\" + s.getStreamId(), e);\n throw new RobonoboException(e);\n } finally {\n if (d != null)\n db.putDownload(d);\n }\n synchronized (dPriority) {\n dPriority.add(s.getStreamId());\n }\n updatePriorities();\n synchronized (this) {\n downloadStreamIds.add(s.getStreamId());\n }\n event.fireTrackUpdated(s.getStreamId());\n event.fireMyLibraryUpdated();\n}\n"
"public final void movableEntered(ShortPoint2D position, NewMovable movable, boolean informFullArea) {\n short x = position.getX();\n short y = position.getY();\n int idx = getIdx(x, y);\n if (idx < 0) {\n System.out.println(\"String_Node_Str\");\n }\n this.movableGrid[idx] = movable;\n if (movable != null && movable.getMovableType() == EMovableType.BEARER) {\n ground.walkOn(x, y);\n }\n if (movable.isAttackable()) {\n IMapArea area;\n if (informFullArea) {\n area = new HexGridArea(x, y, (short) 1, Constants.SOLDIER_SEARCH_RADIUS);\n } else {\n area = new HexBorderArea(x, y, (short) (Constants.SOLDIER_SEARCH_RADIUS - 1));\n }\n boolean foundOne = false;\n byte movablePlayer = movable.getPlayer();\n for (ShortPoint2D curr : area) {\n short currX = curr.getX();\n short currY = curr.getY();\n if (0 <= currX && currX < width && 0 <= currY && currY < height) {\n NewMovable currMovable = getMovableAt(currX, currY);\n if (isEnemy(movablePlayer, currMovable)) {\n currMovable.informAboutAttackable(movable);\n if (!foundOne) {\n movable.informAboutAttackable(currMovable);\n foundOne = true;\n }\n }\n }\n }\n }\n}\n"
"private Component createButton(Element aTag) throws Exception {\n final TextButton component = new TextButton() {\n protected void onRedraw() {\n super.onRedraw();\n ControlsUtils.reapplyStyle(this);\n }\n };\n processEvents(component, aTag);\n Publisher.publish(component);\n setIconAndAlign(component, aTag);\n if (aTag.hasAttribute(\"String_Node_Str\"))\n component.setText(aTag.getAttribute(\"String_Node_Str\"));\n checkBorders(component, aTag);\n PublishedComponent publishedComp = (PublishedComponent) component.getData(Form.PUBLISHED_DATA_KEY);\n processGeneralProperties(component, aTag, publishedComp);\n return component;\n}\n"
"public String getWisemlfilename() {\n return wisemlFilename;\n}\n"
"public float getMaxV() {\n return v + (vScale * h / ih);\n}\n"
"public Object visitCell(CellDesign cell, Object value) {\n BaseQueryDefinition query = createQuery(cell, value);\n for (int i = 0; i < cell.getContentCount(); i++) {\n build(query, cell.getContent(i));\n }\n finishVisit(cell, query);\n return getResultQuery(query, value);\n}\n"
"public AREA_CODE[] getAreaCode() {\n return (areaCode == null) ? null : Arrays.copyOf(areaCode, areaCode.length);\n}\n"
"protected static RoaringBitmap lazyorfromlazyinputs(final RoaringBitmap x1, final RoaringBitmap x2) {\n final RoaringBitmap answer = new RoaringBitmap();\n int pos1 = 0, pos2 = 0;\n final int length1 = x1.highLowContainer.size(), length2 = x2.highLowContainer.size();\n main: if (pos1 < length1 && pos2 < length2) {\n short s1 = x1.highLowContainer.getKeyAtIndex(pos1);\n short s2 = x2.highLowContainer.getKeyAtIndex(pos2);\n while (true) {\n if (s1 == s2) {\n Container c1 = x1.highLowContainer.getContainerAtIndex(pos1);\n Container c2 = x2.highLowContainer.getContainerAtIndex(pos2);\n if ((c2 instanceof BitmapContainer) && (!(c1 instanceof BitmapContainer))) {\n Container tmp = c1;\n c1 = c2;\n c2 = tmp;\n }\n answer.highLowContainer.append(s1, c1.lazyIOR(c2));\n pos1++;\n pos2++;\n if ((pos1 == length1) || (pos2 == length2)) {\n break main;\n }\n s1 = x1.highLowContainer.getKeyAtIndex(pos1);\n s2 = x2.highLowContainer.getKeyAtIndex(pos2);\n } else if (Util.compareUnsigned(s1, s2) < 0) {\n Container c1 = x1.highLowContainer.getContainerAtIndex(pos1);\n answer.highLowContainer.append(s1, c1);\n pos1++;\n if (pos1 == length1) {\n break main;\n }\n s1 = x1.highLowContainer.getKeyAtIndex(pos1);\n } else {\n Container c2 = x2.highLowContainer.getContainerAtIndex(pos2);\n answer.highLowContainer.append(s2, c2);\n pos2++;\n if (pos2 == length2) {\n break main;\n }\n s2 = x2.highLowContainer.getKeyAtIndex(pos2);\n }\n }\n }\n if (pos1 == length1) {\n answer.highLowContainer.append(x2.highLowContainer, pos2, length2);\n } else if (pos2 == length2) {\n answer.highLowContainer.append(x1.highLowContainer, pos1, length1);\n }\n return answer;\n}\n"
"public JsonValue convertToJson(RedirectCallback callback, int index) throws RestAuthException {\n JsonValue callbacksJson = json(array(createOutputField(\"String_Node_Str\", callback.getRedirectUrl()), createOutputField(\"String_Node_Str\", callback.getMethod()), createOutputField(\"String_Node_Str\", callback.getTrackingCookie())));\n JsonValue jsonValue = json(object(field(\"String_Node_Str\", CALLBACK_NAME), field(\"String_Node_Str\", callbacksJson.getObject())));\n if (callback.getRedirectData() != null) {\n callbacksJson.add(createOutputField(\"String_Node_Str\", callback.getRedirectData()));\n }\n return jsonValue;\n}\n"
"public String toString() {\n String result = new String(getBytes(), StandardCharsets.US_ASCII);\n if (result.indexOf(NUL) != -1) {\n result = result.substring(0, result.indexOf(NUL));\n }\n return result;\n}\n"
"public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage, String filePath) {\n try {\n Debug.dLog(\"String_Node_Str\" + filePath);\n layout.setBackgroundDrawable(new BitmapDrawable(loadedImage));\n layout.postInvalidate();\n } catch (Exception e) {\n Debug.dLog(e);\n }\n super.onLoadingComplete(imageUri, view, loadedImage, filePath);\n}\n"
"public String create(GuacamoleConfiguration config) throws GuacamoleException {\n String connectionId = Integer.toString(getNextConnectionID());\n String name = QCParser.getName(config);\n Connection connection = new SimpleConnection(name, connectionId, config);\n connection.setParentIdentifier(QuickConnectUserContext.ROOT_IDENTIFIER);\n add(connection);\n this.rootGroup.addConnectionIdentifier(connectionId);\n return connectionId;\n}\n"
"public void attributesChanged(AttributeEvent event) {\n if (event.getEventType().equals(AttributeEvent.EventType.ADD_COLUMN) || event.getEventType().equals(AttributeEvent.EventType.REMOVE_COLUMN)) {\n if (refreshTimer != null) {\n refreshTimer.restart();\n } else {\n refreshTimer = new Timer(1000, new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n fireChangeEvent();\n }\n });\n refreshTimer.setRepeats(false);\n refreshTimer.start();\n }\n }\n}\n"
"public void close(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception {\n BytesMetrics metrics = ctx.attr(ATTR_KEY_METRICS).get();\n m_collector.sumReadBytes(metrics.readBytes());\n m_collector.sumWroteBytes(metrics.wroteBytes());\n super.close(ctx, promise);\n}\n"
"public boolean hasDataLeft() {\n if (this.closeAcknowledgementReceived) {\n return false;\n }\n if ((this.lastSequenceNumberWithReceiverNotFound + 1) == this.sequenceNumber) {\n return false;\n }\n return true;\n}\n"