content
stringlengths
40
137k
"private void drawFacesRaw(GL2 gl, PolygonalMesh mesh, TextureProps textureProps, int flags) {\n Vector3d nrm;\n Vector3d[] nrms = null;\n Vector3d vtxNrm = new Vector3d();\n int[] shadingModel = new int[1];\n gl.glGetIntegerv(GL2.GL_SHADE_MODEL, shadingModel, 0);\n boolean computeVertexNormals = (flags & COMPUTE_VERTEX_NORMALS) != 0;\n boolean useRenderNormals = mesh.isRenderBuffered() && !mesh.isFixed();\n boolean useVertexColors = (flags & GLRenderer.VERTEX_COLORING) != 0;\n boolean useHSVInterpolation = (flags & GLRenderer.HSV_COLOR_INTERPOLATION) != 0;\n System.out.println(useHSVInterpolation);\n boolean useTextureCoords = (textureProps != null && textureProps.isEnabled() && !textureProps.isAutomatic() && mesh.myTextureIndices != null);\n boolean mergeQuadTriangles = (shadingModel[0] == GL2.GL_SMOOTH);\n if ((flags & IS_SELECTING) != 0) {\n useVertexColors = false;\n }\n if (computeVertexNormals) {\n nrms = new Vector3d[mesh.getNumVertices()];\n for (int v = 0; v < mesh.getNumVertices(); v++) {\n nrms[v] = new Vector3d();\n if (useRenderNormals) {\n mesh.getVertices().get(v).computeRenderNormal(nrms[v]);\n } else {\n mesh.getVertices().get(v).computeNormal(nrms[v]);\n }\n }\n }\n if (useVertexColors && useHSVInterpolation) {\n useHSVInterpolation = setupHSVInterpolation(gl);\n }\n myLastEdgeCnt = 0;\n ArrayList<Face> faceList = mesh.getFaces();\n int[] faceOrder = mesh.getFaceOrder();\n int faceIdx;\n for (int i = 0; i < faceList.size(); i++) {\n if (faceOrder == null) {\n faceIdx = i;\n } else {\n faceIdx = faceOrder[i];\n }\n faceIdx = unpackEdges(faceList, faceIdx, mergeQuadTriangles);\n Face face = faceList.get(faceIdx);\n if (myEdgeCnt > 4) {\n gl.glBegin(GL2.GL_POLYGON);\n } else if (myLastEdgeCnt != myEdgeCnt) {\n if (myLastEdgeCnt == 3 || myLastEdgeCnt == 4) {\n gl.glEnd();\n }\n if (myEdgeCnt == 3) {\n gl.glBegin(GL2.GL_TRIANGLES);\n } else {\n gl.glBegin(GL2.GL_QUADS);\n }\n }\n if (!computeVertexNormals) {\n Vector3d faceNrm;\n if (useRenderNormals) {\n faceNrm = face.getRenderNormal();\n } else {\n faceNrm = face.getNormal();\n }\n gl.glNormal3d(faceNrm.x, faceNrm.y, faceNrm.z);\n }\n for (int edgeIdx = 0; edgeIdx < myEdgeCnt; edgeIdx++) {\n HalfEdge he = myEdges[edgeIdx];\n Vertex3d vtx = he.head;\n Point3d pnt = useRenderNormals ? vtx.myRenderPnt : vtx.pnt;\n if (computeVertexNormals) {\n HalfEdge lastHard = he.lastHardEdge();\n if (lastHard != null) {\n lastHard.computeVertexNormal(vtxNrm, useRenderNormals);\n gl.glNormal3d(vtxNrm.x, vtxNrm.y, vtxNrm.z);\n } else {\n nrm = nrms[he.head.idx];\n gl.glNormal3d(nrm.x, nrm.y, nrm.z);\n }\n }\n if (useTextureCoords) {\n int iv = mesh.myTextureIndices.get(faceIdx)[edgeIdx];\n Vector3d vtext = (Vector3d) mesh.myTextureVertexList.get(iv);\n double sss = vtext.x;\n double ttt = vtext.y;\n gl.glTexCoord2f((float) sss, (float) (1 - ttt));\n }\n if (useVertexColors) {\n setVertexColor(gl, vtx, useHSVInterpolation);\n }\n gl.glVertex3d(pnt.x, pnt.y, pnt.z);\n }\n if (myEdgeCnt > 4) {\n gl.glEnd();\n }\n myLastEdgeCnt = myEdgeCnt;\n }\n if (myLastEdgeCnt == 3 || myLastEdgeCnt == 4) {\n gl.glEnd();\n }\n if (useVertexColors && useHSVInterpolation) {\n gl.glUseProgramObjectARB(0);\n }\n}\n"
"private boolean commonPassedParametersAlreadyContainOneOfTheKeys(VariableBindingKeyPair keyPair) {\n for (VariableBindingKeyPair key : commonPassedParameters.keySet()) {\n if (key.getKey1().equals(keyPair.getKey1()) || key.getKey2().equals(keyPair.getKey2())) {\n return key;\n }\n }\n return false;\n}\n"
"public void prepareFor(Record record) {\n DirectMapValues values = MapUtils.getMapValues(map, record, partitionBy);\n final CharSequence str = valueColumn.getFlyweightStr(record);\n if (values.isNew()) {\n nextNull = true;\n if (str == null) {\n allocAndStoreNull(values);\n } else {\n allocAndStore(str, values);\n }\n } else {\n nextNull = false;\n long ptr = values.getLong(0);\n int len = values.getInt(1);\n copyToBuffer(ptr);\n if (toByteLen(str.length()) > len) {\n Unsafe.free(ptr, len);\n store(str, values);\n } else {\n Chars.put(ptr, str);\n }\n }\n}\n"
"public Set<String> getTeamIDs() {\n final Set<String> set = new HashSet<>();\n if (participantId != null) {\n try {\n Long.parseLong(participantId);\n } catch (final NumberFormatException e) {\n set.add(participantId);\n }\n }\n for (final LeagueEntry entry : entries) {\n if (entry.getPlayerOrTeamId() != null) {\n try {\n Long.parseLong(entry.getPlayerOrTeamId());\n } catch (final NumberFormatException e) {\n set.add(entry.getPlayerOrTeamId());\n }\n }\n }\n return set;\n}\n"
"protected T[] convertInternal(Object value) {\n return value.getClass().isArray() ? convertArrayToArray(value) : convertObjectToArray(value);\n}\n"
"protected <T> ICompletableFuture<T> removeAsyncInternal(K key, V oldValue, boolean hasOldValue, boolean isGet, boolean withCompletionEvent) {\n ensureOpen();\n if (hasOldValue) {\n validateNotNull(key, oldValue);\n CacheProxyUtil.validateConfiguredTypes(cacheConfig, key, oldValue);\n } else {\n validateNotNull(key);\n CacheProxyUtil.validateConfiguredTypes(cacheConfig, key);\n }\n final Data keyData = toData(key);\n final Data oldValueData = oldValue != null ? toData(oldValue) : DefaultData.NULL_DATA;\n final int completionId = withCompletionEvent ? nextCompletionId() : -1;\n ClientMessage request;\n if (isGet) {\n request = CacheGetAndRemoveCodec.encodeRequest(nameWithPrefix, keyData);\n } else {\n request = CacheRemoveCodec.encodeRequest(nameWithPrefix, keyData, oldValueData);\n }\n ICompletableFuture future;\n try {\n future = invoke(request, keyData, withCompletionEvent);\n invalidateNearCache(keyData);\n } catch (Exception e) {\n throw ExceptionUtil.rethrow(e);\n }\n return future;\n}\n"
"private ProgramVariant createProgramInstance(List<SuspiciousCode> suspiciousList, int idProgramInstance) {\n ProgramVariant progInstance = new ProgramVariant(idProgramInstance);\n log.debug(\"String_Node_Str\" + idProgramInstance);\n if (!suspiciousList.isEmpty()) {\n for (SuspiciousCode suspiciousCode : suspiciousList) {\n List<SuspiciousModificationPoint> modifPoints = createModificationPoints(suspiciousCode, progInstance);\n if (modifPoints != null && !modifPoints.isEmpty()) {\n progInstance.addModificationPoints(modifPoints);\n }\n }\n log.info(\"String_Node_Str\" + suspiciousList.size() + \"String_Node_Str\" + progInstance.getModificationPoints().size());\n } else {\n List<SuspiciousModificationPoint> pointsFromAllStatements = createModificationPoints(progInstance);\n progInstance.getModificationPoints().addAll(pointsFromAllStatements);\n }\n log.info(\"String_Node_Str\" + progInstance.getModificationPoints().size());\n int maxModPoints = ConfigurationProperties.getPropertyInt(\"String_Node_Str\");\n if (progInstance.getModificationPoints().size() > maxModPoints) {\n progInstance.setModificationPoints(progInstance.getModificationPoints().subList(0, maxModPoints));\n log.info(\"String_Node_Str\" + progInstance.getModificationPoints().size());\n }\n for (int i = 0; i < progInstance.getModificationPoints().size(); i++) {\n ModificationPoint mp = progInstance.getModificationPoints().get(i);\n mp.identified = i;\n }\n return progInstance;\n}\n"
"private void addFooter(StringBuffer html, boolean isType, boolean isComplexType, String typeName, String relPath, boolean isIndex, String keyLinks) throws OutputFormatterException {\n logger.entering(\"String_Node_Str\", \"String_Node_Str\", html);\n String content = getFooterInformation(replacementMap, hdrFileParameterName);\n html.append(getTextInDiv(content, \"String_Node_Str\"));\n html.append(HtmlUtils.getEndTags());\n logger.exiting(\"String_Node_Str\", \"String_Node_Str\", html);\n}\n"
"public void consume(ChangeInfo changeDetails) {\n if (selectedChange.changeId.equals(changeDetails.changeId)) {\n selectedChange = changeDetails;\n baseRevision = Optional.absent();\n selectBaseRevisionAction.setSelectedChange(selectedChange);\n for (GerritChangeNodeDecorator decorator : changeNodeDecorators) {\n decorator.onChangeSelected(project, selectedChange);\n }\n updateChangesBrowser();\n }\n}\n"
"public static void main(String[] args) throws UnknownHostException, ScribbleRuntimeException, IOException, ClassNotFoundException, ExecutionException, InterruptedException {\n Proto1 adder = new Proto1();\n SessionEndpoint se = adder.project(Proto1.C, new ObjectStreamFormatter());\n try (Proto1_C_0 s0 = new Proto1_C_0(se)) {\n s0.connect(Proto1.S, \"String_Node_Str\", 8888);\n Proto1_C_1 s1 = s0.init();\n Proto1_C_6 s6 = s1.branch();\n switch(s6.op) {\n case _1:\n {\n Buff<Integer> b1 = new Buff<>();\n Buff<Future_Proto1_C_4> b2 = new Buff<>();\n s6.receive(Proto1._1, b1).async(Proto1._2, b2).send(Proto1.S, Proto1._3, 3);\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\" + b2.val.sync().pay1);\n break;\n }\n case _4:\n {\n s6.receive(Proto1._4).async(Proto1._5).receive(Proto1._6);\n break;\n }\n }\n System.out.println(\"String_Node_Str\");\n }\n}\n"
"private void logEvent(final Map map, final Player player, final Object obj, long time) {\n map.put(player.getName(), obj);\n micromanage.getPlugin().getServer().getScheduler().scheduleSyncDelayedTask(micromanage.getPlugin(), new Runnable() {\n public void run() {\n map.remove(player);\n }\n }, time);\n}\n"
"public synchronized void registerCache(Cache<?, ?> cache, float ratio, int minSize) {\n if (cache == null || ratio >= 1 || ratio <= 0 || minSize < 0) {\n throw new IllegalArgumentException(\"String_Node_Str\" + cache + \"String_Node_Str\" + ratio + \"String_Node_Str\" + minSize);\n }\n if (cache instanceof SoftLruCache<?, ?>) {\n softCaches.add((SoftLruCache<?, ?>) cache);\n return;\n }\n for (AdaptiveCacheElement element : caches) {\n if (element.getCache() == cache) {\n log.fine(\"String_Node_Str\" + cache.getName() + \"String_Node_Str\");\n return;\n }\n }\n AdaptiveCacheElement element = new AdaptiveCacheElement(cache, ratio, minSize);\n caches.add(element);\n cache.setAdaptiveStatus(true);\n log.fine(\"String_Node_Str\" + cache.getName() + \"String_Node_Str\" + ratio + \"String_Node_Str\" + minSize + \"String_Node_Str\");\n}\n"
"public KurentoClient getKurentoClient() {\n if (kurentoClient == null && isKmsStarted) {\n kurentoClient = createKurentoClient();\n }\n return kurentoClient;\n}\n"
"public void createPost(Integer groupId, String title, String summary) {\n Map<String, String> post = new HashMap<String, String>();\n post.put(\"String_Node_Str\", title);\n post.put(\"String_Node_Str\", summary);\n return restOperations.postForLocation(GROUP_CREATE_POST_URL, post, groupId);\n}\n"
"private boolean init(Uri uri, IImageList imageList) {\n if (uri == null)\n return false;\n mAllImages = (imageList == null) ? buildImageListFromUri(uri) : imageList;\n mAllImages.open(getContentResolver());\n IImage image = mAllImages.getImageForUri(uri);\n if (image == null)\n return false;\n mCurrentPosition = mAllImages.getImageIndex(image);\n mLastSlideShowImage = mCurrentPosition;\n return true;\n}\n"
"public Map<String, Object> toData(TransactionReadable txRecord) throws OseeCoreException {\n Map<String, Object> data = new LinkedHashMap<>();\n data.put(\"String_Node_Str\", txRecord.getLocalId());\n data.put(\"String_Node_Str\", txRecord.getTxType());\n data.put(\"String_Node_Str\", txRecord.getDate());\n data.put(\"String_Node_Str\", txRecord.getComment());\n data.put(\"String_Node_Str\", txRecord.getAuthorId());\n IOseeBranch branch = getBranchFromUuid(txRecord.getBranchId());\n URI uri;\n if (isAtEndOfPath(uriInfo.getPath(), \"String_Node_Str\")) {\n uri = uriInfo.getAbsolutePathBuilder().path(\"String_Node_Str\").build(branch.getUuid());\n } else {\n uri = uriInfo.getAbsolutePathBuilder().path(\"String_Node_Str\").build(branch.getUuid());\n }\n data.put(\"String_Node_Str\", asLink(uri.getPath(), branch.getName()));\n return data;\n}\n"
"String getResponseCotent(HttpURLConnection conn, String charset) throws IOException {\n InputStream is = null;\n BufferedReader br = null;\n try {\n is = conn.getInputStream();\n Reader isr = (charset != null) ? new InputStreamReader(is, charset) : new InputStreamReader(is);\n br = new BufferedReader(isr);\n StringBuilder buf = new StringBuilder();\n String line = null;\n while ((line = br.readLine()) != null) {\n buf.append(line);\n buf.append(\"String_Node_Str\");\n }\n return buf.toString();\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (Exception e2) {\n }\n }\n if (br != null) {\n try {\n br.close();\n } catch (Exception e2) {\n }\n }\n }\n}\n"
"public void setEnvironment() throws Exception {\n String fileFormat = \"String_Node_Str\";\n super.init(userMode);\n log.info(\"String_Node_Str\" + userMode);\n String path = TestConfigurationProvider.getResourceLocation() + File.separator + \"String_Node_Str\" + File.separator + \"String_Node_Str\" + File.separator + \"String_Node_Str\" + File.separator;\n String sourcePath = path + webApp + fileFormat;\n String sessionId = createSession(gatewayContextWrk);\n WebAppAdminClient webAppAdminClient = new WebAppAdminClient(gatewayContextWrk.getContextUrls().getBackEndUrl(), sessionId);\n webAppAdminClient.uploadWarFile(sourcePath);\n boolean isWebAppDeployed = WebAppDeploymentUtil.isWebApplicationDeployed(gatewayContextWrk.getContextUrls().getBackEndUrl(), sessionId, webApp);\n assertTrue(isWebAppDeployed, \"String_Node_Str\");\n String publisherURLHttp = publisherUrls.getWebAppURLHttp();\n String storeURLHttp = storeUrls.getWebAppURLHttp();\n apiPublisher = new APIPublisherRestClient(publisherURLHttp);\n apiStore = new APIStoreRestClient(storeURLHttp);\n apiPublisher.login(publisherContext.getContextTenant().getContextUser().getUserName(), publisherContext.getContextTenant().getContextUser().getPassword());\n apiStore.login(storeContext.getContextTenant().getContextUser().getUserName(), storeContext.getContextTenant().getContextUser().getPassword());\n String uri = \"String_Node_Str\";\n List<APIResourceBean> resourceBeanList = new ArrayList<APIResourceBean>();\n resourceBeanList.add(new APIResourceBean(\"String_Node_Str\", \"String_Node_Str\", tier, uri));\n String endpoint = \"String_Node_Str\";\n String endpointUrl = gatewayUrlsWrk.getWebAppURLHttp() + webApp + endpoint;\n providerName = publisherContext.getContextTenant().getContextUser().getUserName();\n int count = 1;\n for (int apiCount = 0; apiCount < numberOfApis; apiCount++) {\n String tempApiName = apiName + count;\n String tempApiContext = apiContext + count;\n APICreationRequestBean apiCreationRequestBean = new APICreationRequestBean(tempApiName, tempApiContext, version, providerName, new URL(endpointUrl));\n apiCreationRequestBean.setEndpointType(endPointType);\n apiCreationRequestBean.setTiersCollection(tier);\n apiCreationRequestBean.setTags(tags);\n apiCreationRequestBean.setResourceBeanList(resourceBeanList);\n apiCreationRequestBean.setDescription(description);\n apiCreationRequestBean.setVisibility(visibility);\n HttpResponse apiCreateResponse = apiPublisher.addAPI(apiCreationRequestBean);\n assertEquals(apiCreateResponse.getResponseCode(), Response.Status.OK.getStatusCode(), \"String_Node_Str\");\n JSONObject createApiJsonObject = new JSONObject(apiCreateResponse.getData());\n assertEquals(createApiJsonObject.getBoolean(\"String_Node_Str\"), false, \"String_Node_Str\");\n HttpResponse verifyApiResponse = apiPublisher.getApi(tempApiName, providerName, version);\n JSONObject verifyApiJsonObject = new JSONObject(verifyApiResponse.getData());\n assertFalse(verifyApiJsonObject.getBoolean(\"String_Node_Str\"), \"String_Node_Str\");\n apiNameList.add(tempApiName);\n apiContextList.add(tempApiContext);\n APILifeCycleStateRequest updateRequest = new APILifeCycleStateRequest(tempApiName, providerName, APILifeCycleState.PUBLISHED);\n HttpResponse statusUpdateResponse = apiPublisher.changeAPILifeCycleStatus(updateRequest);\n assertEquals(statusUpdateResponse.getResponseCode(), Response.Status.OK.getStatusCode(), \"String_Node_Str\");\n JSONObject statusUpdateJsonObject = new JSONObject(statusUpdateResponse.getData());\n assertFalse(statusUpdateJsonObject.getBoolean(\"String_Node_Str\"), \"String_Node_Str\");\n count++;\n }\n if (gatewayContextWrk.getContextTenant().getDomain().equals(FrameworkConstants.SUPER_TENANT_DOMAIN_NAME)) {\n gatewayUrl = gatewayUrlsWrk.getWebAppURLNhttp();\n } else {\n gatewayUrl = gatewayUrlsWrk.getWebAppURLNhttp() + \"String_Node_Str\" + gatewayContextWrk.getContextTenant().getDomain() + \"String_Node_Str\";\n }\n providerName = storeContext.getContextTenant().getContextUser().getUserName();\n HttpResponse createAppResponse = apiStore.addApplication(applicationName, tier, \"String_Node_Str\", \"String_Node_Str\");\n assertEquals(createAppResponse.getResponseCode(), Response.Status.OK.getStatusCode(), \"String_Node_Str\");\n JSONObject createAppJsonObject = new JSONObject(createAppResponse.getData());\n assertFalse(createAppJsonObject.getBoolean(\"String_Node_Str\"), \"String_Node_Str\" + applicationName);\n for (int apiCount = 0; apiCount < numberOfApis - 2; apiCount++) {\n accessUrl = gatewayUrl + apiContextList.get(apiCount) + \"String_Node_Str\" + version + \"String_Node_Str\";\n SubscriptionRequest apiSubscriptionRequest = new SubscriptionRequest(apiNameList.get(apiCount), version, providerName, applicationName, tier);\n HttpResponse subscriptionResponse = apiStore.subscribe(apiSubscriptionRequest);\n assertEquals(subscriptionResponse.getResponseCode(), Response.Status.OK.getStatusCode(), \"String_Node_Str\");\n JSONObject subscriptionResponseJsonObject = new JSONObject(subscriptionResponse.getData());\n assertFalse(subscriptionResponseJsonObject.getBoolean(\"String_Node_Str\"), \"String_Node_Str\");\n }\n HttpResponse createNewAppResponse = apiStore.addApplication(newApplicationName, tier, \"String_Node_Str\", \"String_Node_Str\");\n assertEquals(createAppResponse.getResponseCode(), Response.Status.OK.getStatusCode(), \"String_Node_Str\");\n JSONObject createNewAppJsonObject = new JSONObject(createNewAppResponse.getData());\n assertFalse(createAppJsonObject.getBoolean(\"String_Node_Str\"), \"String_Node_Str\" + applicationName);\n providerName = storeContext.getContextTenant().getContextUser().getUserName();\n for (int apiCount = numberOfApis - 2; apiCount < numberOfApis; apiCount++) {\n accessUrl = gatewayUrl + apiContextList.get(apiCount) + \"String_Node_Str\" + version + \"String_Node_Str\";\n SubscriptionRequest apiSubscriptionRequestDefaultApp = new SubscriptionRequest(apiNameList.get(apiCount), version, providerName, newApplicationName, tier);\n HttpResponse subscriptionResponseDefaultApp = apiStore.subscribe(apiSubscriptionRequestDefaultApp);\n assertEquals(subscriptionResponseDefaultApp.getResponseCode(), Response.Status.OK.getStatusCode(), \"String_Node_Str\");\n JSONObject subscriptionResponseJsonObject = new JSONObject(subscriptionResponseDefaultApp.getData());\n assertFalse(subscriptionResponseJsonObject.getBoolean(\"String_Node_Str\"), \"String_Node_Str\");\n }\n}\n"
"public Vector getCachedUpdateCalls(Vector updateFields) {\n return (Vector) getCachedUpdateCalls().get(updateFields);\n}\n"
"public Scriptable getScriptable() {\n if (jsObject == null) {\n jsObject = new JSDataSource(this, this.scope);\n }\n return jsObject;\n}\n"
"private Object authenticate(Connection connection, Credentials credentials, ClientPrincipal principal, boolean reAuth, boolean firstConnection) throws IOException {\n AuthenticationRequest auth = new AuthenticationRequest(credentials, principal);\n auth.setReAuth(reAuth);\n auth.setFirstConnection(firstConnection);\n final SerializationService serializationService = getSerializationService();\n connection.write(serializationService.toData(auth));\n final Data addressData = connection.read();\n Address address = ErrorHandler.returnResultOrThrowException(serializationService.toObject(addressData));\n connection.setEndpoint(address);\n final Data data = connection.read();\n return ErrorHandler.returnResultOrThrowException(serializationService.toObject(data));\n}\n"
"public <T> T addStage(Class<T> stepsClass) {\n if (stages.containsKey(stepsClass)) {\n return (T) stages.get(stepsClass).instance;\n T result = setupCglibProxy(stepsClass);\n stages.put(stepsClass, new StageState(result));\n gatherRules(result);\n injectSteps(result);\n return result;\n}\n"
"private boolean setState(RadioState state) {\n if (DEBUG)\n log(\"String_Node_Str\" + stateMachine + \"String_Node_Str\" + state);\n stateMachine = state;\n memory[REG_FSMSTAT0] = (memory[REG_FSMSTAT0] & 0x3f);\n switch(stateMachine) {\n case VREG_OFF:\n if (DEBUG)\n log(\"String_Node_Str\");\n flushRX();\n flushTX();\n status &= ~(STATUS_RSSI_VALID | STATUS_XOSC16M_STABLE);\n registers[REG_RSSISTAT] = 0;\n crcOk = false;\n reset();\n setMode(MODE_POWER_OFF);\n updateCCA();\n break;\n case POWER_DOWN:\n rxFIFO.reset();\n status &= ~(STATUS_RSSI_VALID | STATUS_XOSC16M_STABLE);\n registers[REG_RSSISTAT] = 0;\n crcOk = false;\n reset();\n setMode(MODE_POWER_OFF);\n updateCCA();\n break;\n case RX_CALIBRATE:\n setSymbolEvent(12);\n setMode(MODE_RX_ON);\n break;\n case RX_SFD_SEARCH:\n zeroSymbols = 0;\n if ((status & STATUS_RSSI_VALID) == 0) {\n setSymbolEvent(8);\n }\n updateCCA();\n setMode(MODE_RX_ON);\n break;\n case TX_CALIBRATE:\n setSymbolEvent(12 + 2);\n setMode(MODE_TXRX_ON);\n break;\n case TX_PREAMBLE:\n shrPos = 0;\n SHR[0] = 0;\n SHR[1] = 0;\n SHR[2] = 0;\n SHR[3] = 0;\n SHR[4] = 0x7A;\n shrNext();\n break;\n case TX_FRAME:\n txfifoPos = 0;\n crcOk = false;\n txNext();\n break;\n case RX_WAIT:\n setSymbolEvent(8);\n setMode(MODE_RX_ON);\n break;\n case IDLE:\n status &= ~STATUS_RSSI_VALID;\n registers[REG_RSSISTAT] = 0;\n setMode(MODE_TXRX_OFF);\n updateCCA();\n break;\n case TX_ACK_CALIBRATE:\n status |= STATUS_TX_ACTIVE;\n setSymbolEvent(12 + 2 + 2);\n setMode(MODE_TXRX_ON);\n break;\n case TX_ACK_PREAMBLE:\n shrPos = 0;\n SHR[0] = 0;\n SHR[1] = 0;\n SHR[2] = 0;\n SHR[3] = 0;\n SHR[4] = 0x7A;\n shrNext();\n break;\n case TX_ACK:\n ackPos = 0;\n crcOk = false;\n ackNext();\n break;\n case RX_FRAME:\n rxFIFO.mark();\n rxread = 0;\n frameRejected = false;\n shouldAck = false;\n crcOk = false;\n break;\n }\n stateChanged(stateMachine.state);\n return true;\n}\n"
"public static boolean isAztecEditorToolbarExpanded() {\n return getBoolean(UndeletablePrefKey.AZTEC_EDITOR_TOOLBAR_EXPANDED, false);\n}\n"
"private void initOptions() {\n ConfigurableOption bidiProcessing = new ConfigurableOption(BIDI_PROCESSING);\n bidiProcessing.setDisplayName(getMessage(\"String_Node_Str\"));\n bidiProcessing.setDataType(IConfigurableOption.DataType.BOOLEAN);\n bidiProcessing.setDisplayType(IConfigurableOption.DisplayType.CHECKBOX);\n bidiProcessing.setDefaultValue(Boolean.TRUE);\n bidiProcessing.setToolTip(null);\n bidiProcessing.setDescription(getMessage(\"String_Node_Str\"));\n ConfigurableOption textWrapping = new ConfigurableOption(TEXT_WRAPPING);\n textWrapping.setDisplayName(getMessage(\"String_Node_Str\"));\n textWrapping.setDataType(IConfigurableOption.DataType.BOOLEAN);\n textWrapping.setDisplayType(IConfigurableOption.DisplayType.CHECKBOX);\n textWrapping.setDefaultValue(Boolean.TRUE);\n textWrapping.setToolTip(null);\n textWrapping.setDescription(getMessage(\"String_Node_Str\"));\n ConfigurableOption fontSubstitution = new ConfigurableOption(FONT_SUBSTITUTION);\n fontSubstitution.setDisplayName(getMessage(\"String_Node_Str\"));\n fontSubstitution.setDataType(IConfigurableOption.DataType.BOOLEAN);\n fontSubstitution.setDisplayType(IConfigurableOption.DisplayType.CHECKBOX);\n fontSubstitution.setDefaultValue(Boolean.TRUE);\n fontSubstitution.setToolTip(null);\n fontSubstitution.setDescription(getMessage(\"String_Node_Str\"));\n ConfigurableOption pageOverFlow = new ConfigurableOption(IPDFRenderOption.PAGE_OVERFLOW);\n pageOverFlow.setDisplayName(getMessage(\"String_Node_Str\"));\n pageOverFlow.setDataType(IConfigurableOption.DataType.INTEGER);\n pageOverFlow.setDisplayType(IConfigurableOption.DisplayType.COMBO);\n pageOverFlow.setChoices(new OptionValue[] { new OptionValue(IPDFRenderOption.CLIP_CONTENT, getMessage(\"String_Node_Str\")), new OptionValue(IPDFRenderOption.FIT_TO_PAGE_SIZE, getMessage(\"String_Node_Str\")), new OptionValue(IPDFRenderOption.OUTPUT_TO_MULTIPLE_PAGES, getMessage(\"String_Node_Str\")), new OptionValue(IPDFRenderOption.ENLARGE_PAGE_SIZE, getMessage(\"String_Node_Str\")) });\n pageOverFlow.setDefaultValue(IPDFRenderOption.CLIP_CONTENT);\n pageOverFlow.setToolTip(null);\n pageOverFlow.setDescription(getMessage(\"String_Node_Str\"));\n ConfigurableOption chartDpi = new ConfigurableOption(CHART_DPI);\n chartDpi.setDisplayName(getMessage(\"String_Node_Str\"));\n chartDpi.setDataType(IConfigurableOption.DataType.INTEGER);\n chartDpi.setDisplayType(IConfigurableOption.DisplayType.TEXT);\n chartDpi.setDefaultValue(new Integer(192));\n chartDpi.setToolTip(\"String_Node_Str\");\n chartDpi.setDescription(getMessage(\"String_Node_Str\"));\n options = new IConfigurableOption[] { bidiProcessing, textWrapping, fontSubstitution, pageOverFlow, copies, collate, duplex, paperSize, paperTray, scale, resolution, color, chartDpi };\n}\n"
"private void buildProcess() {\n process = new Process(property);\n process.getContextManager().getListContext().addAll(node.getProcess().getContextManager().getListContext());\n process.getContextManager().setDefaultContext(this.selectContext);\n outputComponent = ComponentsFactoryProvider.getInstance().get(EDatabaseComponentName.FILEDELIMITED.getOutPutComponentName(), ComponentCategory.CATEGORY_4_DI.getName());\n if (node.getComponent().getModulesNeeded().size() > 0) {\n for (ModuleNeeded module : node.getComponent().getModulesNeeded()) {\n if (module.isRequired(node.getElementParameters())) {\n Node libNode1 = new Node(ComponentsFactoryProvider.getInstance().get(LIB_NODE, ComponentCategory.CATEGORY_4_DI.getName()), process);\n libNode1.setPropertyValue(\"String_Node_Str\", \"String_Node_Str\" + module.getModuleName() + \"String_Node_Str\");\n NodeContainer nc = null;\n if (libNode1.isJoblet()) {\n nc = new JobletContainer(libNode1);\n } else {\n nc = new NodeContainer(libNode1);\n }\n process.addNodeContainer(nc);\n }\n }\n } else {\n if (node.getComponent().getName().equals(\"String_Node_Str\")) {\n List<String> drivers = EDatabaseVersion4Drivers.getDrivers(info.getTrueDBTypeForJDBC(), info.getDbVersion());\n String moduleNeedName = \"String_Node_Str\";\n Node libNode1 = new Node(ComponentsFactoryProvider.getInstance().get(LIB_NODE, ComponentCategory.CATEGORY_4_DI.getName()), process);\n if (drivers.size() > 0) {\n moduleNeedName = drivers.get(0).toString();\n libNode1.setPropertyValue(\"String_Node_Str\", \"String_Node_Str\" + moduleNeedName + \"String_Node_Str\");\n }\n process.addNodeContainer(new NodeContainer(libNode1));\n }\n }\n INode connectionNode = null;\n IElementParameter existConnection = node.getElementParameter(\"String_Node_Str\");\n boolean useExistConnection = (existConnection == null ? false : (Boolean) existConnection.getValue());\n if (useExistConnection) {\n IElementParameter connector = node.getElementParameter(\"String_Node_Str\");\n if (connector != null) {\n String connectorValue = connector.getValue().toString();\n List<? extends INode> graphicalNodes = originalProcess.getGraphicalNodes();\n for (INode node : graphicalNodes) {\n if (node.getUniqueName().equals(connectorValue)) {\n connectionNode = node;\n break;\n }\n }\n }\n }\n List<ModuleNeeded> neededLibraries = new ArrayList<ModuleNeeded>();\n JavaProcessUtil.addNodeRelatedModules(process, neededLibraries, node);\n for (ModuleNeeded module : neededLibraries) {\n Node libNode1 = new Node(ComponentsFactoryProvider.getInstance().get(LIB_NODE), process);\n libNode1.setPropertyValue(\"String_Node_Str\", \"String_Node_Str\" + module.getModuleName() + \"String_Node_Str\");\n process.addNodeContainer(new NodeContainer(libNode1));\n }\n if (connectionNode != null) {\n neededLibraries = new ArrayList<ModuleNeeded>();\n JavaProcessUtil.addNodeRelatedModules(process, neededLibraries, connectionNode);\n for (ModuleNeeded module : neededLibraries) {\n Node libNode1 = new Node(ComponentsFactoryProvider.getInstance().get(LIB_NODE), process);\n libNode1.setPropertyValue(\"String_Node_Str\", \"String_Node_Str\" + module.getModuleName() + \"String_Node_Str\");\n process.addNodeContainer(new NodeContainer(libNode1));\n }\n }\n for (ModuleNeeded module : outputComponent.getModulesNeeded()) {\n Node libNode2 = new Node(ComponentsFactoryProvider.getInstance().get(LIB_NODE), process);\n libNode2.setPropertyValue(\"String_Node_Str\", \"String_Node_Str\" + module.getModuleName() + \"String_Node_Str\");\n process.addNodeContainer(new NodeContainer(libNode2));\n }\n int fetchSize = maximumRowsToPreview;\n if (maximumRowsToPreview > 1000) {\n fetchSize = 1000;\n }\n String codeStart, codeMain, codeEnd;\n temppath = buildTempCSVFilename();\n memoSQL = memoSQL.replace(\"String_Node_Str\", \"String_Node_Str\");\n String createStatament = \"String_Node_Str\";\n String systemProperty = \"String_Node_Str\";\n if (info.isHive()) {\n createStatament = \"String_Node_Str\";\n systemProperty = \"String_Node_Str\" + info.getJobTracker() + \"String_Node_Str\" + \"String_Node_Str\" + info.getNameNode() + \"String_Node_Str\";\n if (info.getThrifturi() != null) {\n systemProperty = systemProperty + \"String_Node_Str\" + \"String_Node_Str\" + info.getThrifturi() + \"String_Node_Str\" + \"String_Node_Str\";\n }\n }\n codeStart = systemProperty + \"String_Node_Str\" + info.getDriverClassName() + \"String_Node_Str\" + \"String_Node_Str\" + info.getUrl() + \"String_Node_Str\" + \"String_Node_Str\" + info.getUsername() + \"String_Node_Str\" + info.getPwd() + \"String_Node_Str\" + \"String_Node_Str\" + createStatament + \"String_Node_Str\" + \"String_Node_Str\" + fetchSize + \"String_Node_Str\" + \"String_Node_Str\" + memoSQL + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + temppath + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n codeMain = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n codeEnd = \"String_Node_Str\" + \"String_Node_Str\" + maximumRowsToPreview + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n IComponent component = null;\n switch(LanguageManager.getCurrentLanguage()) {\n case JAVA:\n component = ComponentsFactoryProvider.getInstance().get(\"String_Node_Str\");\n break;\n case PERL:\n default:\n component = ComponentsFactoryProvider.getInstance().get(\"String_Node_Str\");\n break;\n }\n Node flexNode = new Node(component, process);\n flexNode.setPropertyValue(\"String_Node_Str\", codeStart);\n flexNode.setPropertyValue(\"String_Node_Str\", codeMain);\n flexNode.setPropertyValue(\"String_Node_Str\", codeEnd);\n process.addNodeContainer(new NodeContainer(flexNode));\n}\n"
"protected DataType resolveProperty(DataType sourceType, String identifier, boolean mustResolve) {\n DataType currentType = sourceType;\n while (currentType != null) {\n if (currentType instanceof ClassType) {\n ClassType classType = (ClassType) currentType;\n for (ClassTypeElement e : classType.getElements()) {\n if (e.getName().equals(identifier)) {\n if (e.isProhibited()) {\n throw new IllegalArgumentException(String.format(\"String_Node_Str\", e.getName(), ((ClassType) currentType).getName()));\n }\n return e.getType();\n }\n }\n } else if (currentType instanceof TupleType) {\n TupleType tupleType = (TupleType) currentType;\n for (TupleTypeElement e : tupleType.getElements()) {\n if (e.getName().equals(identifier)) {\n return e.getType();\n }\n }\n } else if (currentType instanceof IntervalType) {\n IntervalType intervalType = (IntervalType) currentType;\n switch(identifier) {\n case \"String_Node_Str\":\n case \"String_Node_Str\":\n return intervalType.getPointType();\n case \"String_Node_Str\":\n case \"String_Node_Str\":\n return resolveTypeName(\"String_Node_Str\", \"String_Node_Str\");\n default:\n throw new IllegalArgumentException(String.format(\"String_Node_Str\", identifier));\n }\n }\n if (currentType.getBaseType() != null) {\n currentType = currentType.getBaseType();\n } else {\n break;\n }\n }\n if (mustResolve) {\n throw new IllegalArgumentException(String.format(\"String_Node_Str\", identifier, sourceType != null ? sourceType.toLabel() : null));\n }\n return null;\n}\n"
"public void updatePlayer(Server server, List<PlayerInfo> list) {\n try {\n int connected = server.getOnlinePlayers();\n for (PlayerInfo playerInfo : list) {\n try {\n Date playerLastUpdate;\n Player player = playerDAO.findByServerAndGuid(server.getKey(), playerInfo.getGuid());\n if (player == null) {\n player = new Player();\n player.setCreated(playerInfo.getUpdated());\n player.setGuid(playerInfo.getGuid());\n player.setLevel(playerInfo.getLevel());\n player.setClientId(playerInfo.getClientId());\n player.setServer(server.getKey());\n player.setBanInfo(null);\n player.setBanInfoUpdated(null);\n playerLastUpdate = playerInfo.getUpdated();\n } else {\n player.setLevel(playerInfo.getLevel());\n if (player.getClientId() == null) {\n player.setClientId(playerInfo.getClientId());\n }\n playerLastUpdate = player.getUpdated();\n }\n if (Events.BAN.equals(playerInfo.getEvent())) {\n BanInfo banInfo = new BanInfo(playerInfo.getExtra());\n player.setBanInfo(banInfo.toString());\n player.setBanInfoUpdated(playerInfo.getUpdated());\n player.setConnected(false);\n connected += -1;\n } else if (Events.CONNECT.equals(playerInfo.getEvent()) || Events.DISCONNECT.equals(playerInfo.getEvent()) || Events.UNBAN.equals(playerInfo.getEvent()) || Events.UPDATE.equals(playerInfo.getEvent())) {\n player.setBanInfo(null);\n player.setBanInfoUpdated(null);\n if (Events.CONNECT.equals(playerInfo.getEvent()) || Events.UPDATE.equals(playerInfo.getEvent())) {\n player.setConnected(true);\n if (Events.CONNECT.equals(playerInfo.getEvent())) {\n connected += 1;\n }\n } else if (Events.DISCONNECT.equals(playerInfo.getEvent())) {\n player.setConnected(false);\n connected += -1;\n }\n } else if (Events.ADDNOTE.equals(playerInfo.getEvent())) {\n player.setNote(playerInfo.getExtra());\n } else if (Events.DELNOTE.equals(playerInfo.getEvent())) {\n player.setNote(null);\n }\n player.setUpdated(playerInfo.getUpdated());\n playerDAO.save(player);\n Alias alias;\n alias = aliasDAO.findByPlayerAndNicknameAndIp(player.getKey(), playerInfo.getName(), playerInfo.getIp());\n if (alias == null) {\n alias = new Alias();\n alias.setCount(1L);\n alias.setCreated(playerInfo.getUpdated());\n alias.setNickname(playerInfo.getName());\n alias.setNgrams(NGrams.ngrams(playerInfo.getName()));\n alias.setPlayer(player.getKey());\n alias.setIp(playerInfo.getIp());\n alias.setServer(server.getKey());\n alias.setUpdated(playerInfo.getUpdated());\n } else {\n if (Events.CONNECT.equals(playerInfo.getEvent())) {\n if (server.getUpdated() == null || server.getUpdated().after(playerLastUpdate)) {\n alias.setCount(alias.getCount() + 1L);\n }\n }\n alias.setUpdated(playerInfo.getUpdated());\n }\n aliasDAO.save(alias, true);\n } catch (Exception e) {\n log.severe(e.getMessage());\n StringWriter w = new StringWriter();\n e.printStackTrace(new PrintWriter(w));\n log.severe(w.getBuffer().toString());\n }\n }\n server.setDirty(true);\n serverDAO.save(server);\n } catch (Exception e) {\n log.severe(e.getMessage());\n StringWriter w = new StringWriter();\n e.printStackTrace(new PrintWriter(w));\n log.severe(w.getBuffer().toString());\n }\n}\n"
"public Node[] selectStartNodes(Graph g, int dimension) {\n Collection<Node> sn = new ArrayList<Node>();\n Random r = new Random();\n int gsize = g.getNodeCount();\n int nid;\n Node n;\n int i = 0;\n while (sn.size() < dimension) {\n nid = r.nextInt(gsize - 1);\n nid = nid % gsize;\n n = g.getNode(nid);\n if (!sn.contains(n)) {\n sn.add(n);\n }\n }\n return sn.toArray(new Node[dimension]);\n}\n"
"public Collection getSelectionList(String name) {\n usingParameterValues();\n ReportDesignHandle report = (ReportDesignHandle) this.runnable.getDesignHandle();\n ScalarParameterHandle parameter = (ScalarParameterHandle) report.findParameter(name);\n if (parameter == null) {\n return Collections.EMPTY_LIST;\n }\n String selectionType = parameter.getValueType();\n String dataType = parameter.getDataType();\n boolean fixedOrder = parameter.isFixedOrder();\n if (DesignChoiceConstants.PARAM_VALUE_TYPE_DYNAMIC.equals(selectionType)) {\n if (parameter.getDataSetName() != null) {\n return getChoicesFromParameterQuery(parameter);\n } else if (isCascadingParameter(parameter)) {\n Object[] parameterValuesAhead = getParameterValuesAhead(parameter);\n return getChoicesFromParameterGroup(parameter, parameterValuesAhead);\n }\n } else if (DesignChoiceConstants.PARAM_VALUE_TYPE_STATIC.equals(selectionType)) {\n Iterator iter = parameter.choiceIterator();\n ArrayList choices = new ArrayList();\n while (iter.hasNext()) {\n SelectionChoiceHandle choice = (SelectionChoiceHandle) iter.next();\n String label = report.getMessage(choice.getLabelKey(), locale);\n if (label == null) {\n label = choice.getLabel();\n }\n Object value = getStringValue(choice.getValue(), dataType);\n choices.add(new SelectionChoice(label, value));\n }\n if (!fixedOrder)\n Collections.sort(choices, new SelectionChoiceComparator(true, parameter.getPattern(), ULocale.forLocale(locale)));\n return choices;\n }\n return Collections.EMPTY_LIST;\n}\n"
"public CreateImageResponseType createImage(CreateImageType request) throws EucalyptusCloudException {\n CreateImageResponseType reply = request.getReply();\n Context ctx = Contexts.lookup();\n VmInstance vm;\n try {\n vm = RestrictedTypes.doPrivileged(request.getInstanceId(), VmInstance.class);\n if (!VmState.RUNNING.equals(vm.getState()) && !VmState.STOPPED.equals(vm.getState())) {\n throw new EucalyptusCloudException(\"String_Node_Str\" + vm.getInstanceId() + \"String_Node_Str\" + vm.getState().getName());\n }\n if (vm.isBlockStorage() && !ctx.hasAdministrativePrivileges()) {\n throw new EucalyptusCloudException(\"String_Node_Str\" + vm.getInstanceId() + \"String_Node_Str\" + vm.getState().getName());\n } else if (vm.isBlockStorage()) {\n } else {\n Cluster cluster = null;\n try {\n ServiceConfiguration ccConfig = Topology.lookup(ClusterController.class, vm.lookupPartition());\n cluster = Clusters.lookup(ccConfig);\n } catch (NoSuchElementException e) {\n LOG.debug(e);\n throw new EucalyptusCloudException(\"String_Node_Str\" + Topology.lookup(ClusterController.class, vm.lookupPartition()));\n }\n }\n } catch (AuthException ex) {\n throw new EucalyptusCloudException(\"String_Node_Str\" + request.getInstanceId() + \"String_Node_Str\" + ctx.getUser().getName());\n } catch (NoSuchElementException ex) {\n throw new EucalyptusCloudException(\"String_Node_Str\" + request.getInstanceId(), ex);\n } catch (PersistenceException ex) {\n throw new EucalyptusCloudException(\"String_Node_Str\" + request.getInstanceId(), ex);\n }\n return reply;\n}\n"
"public String getPassword() {\n if (getServerRoot() != null)\n return getServerRoot().getUser().getPassword();\n return null;\n}\n"
"public void handleReceived(ClientConnection connection) {\n TridentPlayer player = ((PlayerConnection) connection).getPlayer();\n player.setLocale(locale);\n}\n"
"public static void getAdminObjectResourceWizard(HandlerContext handlerCtx) {\n Boolean reload = (Boolean) handlerCtx.getInputValue(\"String_Node_Str\");\n Map attrMap = (Map) handlerCtx.getInputValue(\"String_Node_Str\");\n Map currentMap = (Map) handlerCtx.getInputValue(\"String_Node_Str\");\n String name = null;\n String resAdapter = null;\n String resType = null;\n String className = null;\n if (attrMap == null) {\n attrMap = new HashMap();\n }\n if (((reload == null) || (!reload)) && (currentMap != null)) {\n name = (String) currentMap.get(\"String_Node_Str\");\n resAdapter = (String) currentMap.get(\"String_Node_Str\");\n resType = (String) currentMap.get(\"String_Node_Str\");\n className = (String) currentMap.get(\"String_Node_Str\");\n attrMap.putAll(currentMap);\n } else {\n name = (String) attrMap.get(\"String_Node_Str\");\n resAdapter = (String) attrMap.get(\"String_Node_Str\");\n resType = (String) attrMap.get(\"String_Node_Str\");\n className = (String) attrMap.get(\"String_Node_Str\");\n }\n if (resAdapter != null) {\n resAdapter = resAdapter.trim();\n }\n if (GuiUtil.isEmpty(resAdapter) && Boolean.parseBoolean((String) GuiUtil.getSessionValue(\"String_Node_Str\"))) {\n resAdapter = \"String_Node_Str\";\n }\n attrMap.put(\"String_Node_Str\", name);\n attrMap.put(\"String_Node_Str\", resType);\n attrMap.put(\"String_Node_Str\", resAdapter);\n attrMap.put(\"String_Node_Str\", className);\n handlerCtx.setOutputValue(\"String_Node_Str\", attrMap);\n}\n"
"private void processGetPreviousRevision(final String line) {\n if (!line.startsWith(\"String_Node_Str\")) {\n final String message = REZ.getString(\"String_Node_Str\", line);\n throw new IllegalStateException(message);\n }\n m_previousRevision = line.substring(9);\n saveEntry();\n m_revision = m_previousRevision;\n m_status = GET_DATE;\n}\n"
"public QueryExecutionNode deepcopy() {\n SelectAllExecutionNode node = new SelectAllExecutionNode(plan);\n copyFields(this, node);\n return node;\n}\n"
"public String getResponse(String url) {\n Cursor cursor = db.query(TABLE_API, new String[] { Response.URL, Response.RESPONSE, Response.LASTUPDATE }, Response.URL + \"String_Node_Str\", new String[] { url }, null, null, null, null);\n if (cursor != null && cursor.moveToFirst()) {\n String response = cursor.getString(1);\n cursor.close();\n return response;\n } else {\n Log.w(Constants.LOG_TAG, \"String_Node_Str\" + url);\n return null;\n }\n}\n"
"public static ArrayList<Location> getAllSpawns(JavaPlugin plugin, String arena) {\n FileConfiguration config = MinigamesAPI.getAPI().pinstances.get(plugin).getArenasConfig().getConfig();\n ArrayList<Location> ret = new ArrayList<Location>();\n if (!config.isSet(\"String_Node_Str\" + arena + \"String_Node_Str\")) {\n return ret;\n }\n for (String spawn : config.getConfigurationSection(\"String_Node_Str\" + arena + \"String_Node_Str\").getKeys(false)) {\n ret.add(getComponentForArena(plugin, arena, \"String_Node_Str\" + spawn));\n }\n return ret;\n}\n"
"public void testConfig2LoadingTypes() {\n List<LoadingType> loadingTypes = StatementPredicateFactory.LoadingType.fromConfig(config2);\n assertTrue(loadingTypes.size() == 1);\n assertTrue(loadingTypes.get(0).equals(LoadingType.COMPLETE));\n}\n"
"public void report(final Measurement m) throws ReportingException {\n final String delim = delimiter;\n synchronized (this) {\n final StringBuffer sb = new StringBuffer();\n final Map<String, Object> results = m.getAll();\n final Object defaultResult = m.get();\n if (resultNames.isEmpty()) {\n for (String key : results.keySet()) {\n if (!key.equals(Measurement.DEFAULT_RESULT)) {\n resultNames.add(key);\n }\n }\n }\n for (String key : results.keySet()) {\n if (!key.equals(Measurement.DEFAULT_RESULT)) {\n resultNames.add(key);\n sb.append(delimiter);\n sb.append(key);\n }\n }\n sb.append(\"String_Node_Str\");\n }\n sb.append(Utils.timeToHMS(m.getTime()));\n sb.append(delimiter);\n sb.append(m.getIteration());\n if (defaultResult != null) {\n sb.append(delimiter);\n if (defaultResult instanceof Quantity<?>) {\n sb.append(((Quantity<?>) defaultResult).getNumber());\n } else {\n sb.append(defaultResult);\n }\n }\n Object currentResult;\n for (String resultName : resultNames) {\n sb.append(delimiter);\n currentResult = results.get(resultName);\n if (currentResult instanceof Quantity<?>) {\n sb.append(((Quantity<?>) currentResult).getNumber());\n } else {\n sb.append(currentResult);\n }\n }\n try (BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(csvFile, true), Utils.getDefaultEncoding()))) {\n bw.append(sb.toString());\n bw.newLine();\n } catch (IOException ioe) {\n throw new ReportingException(\"String_Node_Str\" + csvFile.getPath(), ioe);\n }\n}\n"
"protected void fireSyntheticLoadEvent(final Image image) {\n DeferredCommand.addCommand(new Command() {\n public void execute() {\n NativeEvent evt = Document.get().createLoadEvent();\n getImageElement(image).dispatchEvent(evt);\n }\n };\n Scheduler.get().scheduleDeferred(syntheticEventCommand);\n}\n"
"public void writeNBT() {\n HashMap<Block, Integer> mapBlockToInternalID = getBlockToInternalIDMap();\n try {\n if (levelData == null) {\n System.out.println(\"String_Node_Str\");\n levelData = new NBTTagCompound();\n }\n int[] metadataInt = new int[map_sizeX * map_sizeY * map_sizeZ];\n int[] blockidsInt = new int[map_sizeX * map_sizeY * map_sizeZ];\n byte[] metadataByte = new byte[map_sizeX * map_sizeY * map_sizeZ];\n byte[] blockidsByte = new byte[map_sizeX * map_sizeY * map_sizeZ];\n NBTTagList var16 = new NBTTagList();\n for (int xx = 0; xx < map_sizeX; xx++) {\n for (int yy = 0; yy < map_sizeY; yy++) {\n for (int zz = 0; zz < map_sizeZ; zz++) {\n int index = yy * map_sizeX * map_sizeZ + zz * map_sizeX + xx;\n if (newFormat) {\n Integer tryID = mapBlockToInternalID.get(build_blockIDArr[xx][yy][zz]);\n if (tryID == null) {\n System.out.println(\"String_Node_Str\" + build_blockIDArr[xx][yy][zz]);\n } else {\n int internalID = Integer.valueOf(tryID);\n blockidsInt[index] = internalID;\n }\n metadataInt[index] = build_blockMetaArr[xx][yy][zz];\n } else {\n System.out.println(\"String_Node_Str\");\n }\n World worldRef = DimensionManager.getWorld(dim);\n TileEntity tEnt = worldRef.getTileEntity(new BlockPos(map_coord_minX + xx, map_coord_minY + yy, map_coord_minZ + zz));\n if (tEnt != null) {\n NBTTagCompound var10 = new NBTTagCompound();\n if (tEnt instanceof SchematicData) {\n ((SchematicData) tEnt).writeToNBT(var10, this);\n } else {\n tEnt.writeToNBT(var10);\n }\n var10.setBoolean(\"String_Node_Str\", true);\n var10.setInteger(\"String_Node_Str\", xx);\n var10.setInteger(\"String_Node_Str\", yy);\n var10.setInteger(\"String_Node_Str\", zz);\n var16.appendTag(var10);\n }\n }\n }\n }\n levelData.setTag(\"String_Node_Str\", var16);\n if (newFormat) {\n levelData.setIntArray(\"String_Node_Str\", blockidsInt);\n levelData.setIntArray(\"String_Node_Str\", metadataInt);\n } else {\n levelData.setByteArray(\"String_Node_Str\", blockidsByte);\n levelData.setByteArray(\"String_Node_Str\", metadataByte);\n }\n levelData.setBoolean(\"String_Node_Str\", newFormat);\n levelData.setString(\"String_Node_Str\", getSaveVersion());\n levelData.setTag(\"String_Node_Str\", genBlockIDToNameMap());\n levelData.setShort(\"String_Node_Str\", (short) map_sizeX);\n levelData.setShort(\"String_Node_Str\", (short) map_sizeY);\n levelData.setShort(\"String_Node_Str\", (short) map_sizeZ);\n levelData.setShort(\"String_Node_Str\", (short) map_surfaceOffset);\n saveLevelData(file);\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n}\n"
"public String getInvalidRowsStatement() {\n IndicatorDefinition indicatorDefinition = this.indicator.getIndicatorDefinition();\n if (indicatorDefinition instanceof UDIndicatorDefinition) {\n EList<TdExpression> list = ((UDIndicatorDefinition) indicatorDefinition).getViewInvalidRowsExpression();\n return getQueryAfterReplaced(indicatorDefinition, list);\n }\n String regexPatternString = dbmsLanguage.getRegexPatternString((PatternMatchingIndicator) this.indicator);\n String regexCmp = dbmsLanguage.regexNotLike(columnName, regexPatternString) + functionReturnValue;\n String nullClause = dbmsLanguage.or() + columnName + dbmsLanguage.isNull();\n String pattCondStr = \"String_Node_Str\" + regexCmp + nullClause + \"String_Node_Str\";\n return getRowsStatement(pattCondStr);\n}\n"
"public static org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideContactComponent convertImplementationGuideContactComponent(org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideContactComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideContactComponent tgt = new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideContactComponent();\n copyElement(src, tgt);\n tgt.setName(src.getName());\n for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(convertContactPoint(t));\n return tgt;\n}\n"
"protected void handleReactionSubstrateTag() {\n Integer reactionSubstrateID = -1;\n for (int attributeIndex = 0; attributeIndex < attributes.getLength(); attributeIndex++) {\n attributeName = attributes.getLocalName(attributeIndex);\n if (\"String_Node_Str\".equals(attributeName)) {\n attributeName = attributes.getQName(attributeIndex);\n }\n if (attributeName.equals(\"String_Node_Str\")) {\n reactionSubstrateName = attributes.getValue(attributeIndex);\n }\n }\n PathwayVertexRep sourceVertexRep = hashKgmlNameToVertexRep.get(reactionSubstrateName);\n PathwayVertexRep targetVertexRep = hashKgmlReactionNameToVertexRep.get(currentReactionName);\n if (currentPathway.getEdge(sourceVertexRep, targetVertexRep) != null && targetVertexRep.getType().equals(EPathwayVertexType.group))\n return;\n PathwayReactionEdgeRep pathwayReactionEdgeRep = new PathwayReactionEdgeRep(currentReactionType);\n try {\n currentPathway.addEdge(sourceVertexRep, targetVertexRep, pathwayReactionEdgeRep);\n if (currentReactionType == EPathwayReactionEdgeType.reversible) {\n pathwayReactionEdgeRep = new PathwayReactionEdgeRep(currentReactionType);\n currentPathway.addEdge(targetVertexRep, sourceVertexRep, pathwayReactionEdgeRep);\n }\n } catch (Exception e) {\n }\n}\n"
"public void repaint() {\n if (skipRepaint) {\n return;\n }\n try {\n if (parent != null) {\n core = parent.getCore();\n }\n if (core == null) {\n return;\n }\n PropertiesManager propMan = core.getPropertiesManager();\n skipRepaint = true;\n if (!curSetText) {\n if (propMan.isEnforceRTL()) {\n prefixRTL();\n } else {\n defixRTL();\n }\n Font testFont = propMan.getFontCon();\n if (testFont != null && !testFont.getFamily().equals(getFont().getFamily())) {\n setFont(testFont);\n }\n }\n skipRepaint = false;\n } catch (Exception e) {\n InfoBox.error(\"String_Node_Str\", \"String_Node_Str\" + e.getLocalizedMessage(), null);\n skipRepaint = false;\n }\n super.repaint();\n}\n"
"private void reAssemble() {\n clear();\n if (items != null) {\n for (int i = 0; i < items.size(); i++) {\n items.get(i).dispose();\n }\n }\n items.clear();\n for (int i = 0; i < dataVO.composite.sImages.size(); i++) {\n SimpleImageVO tmpVo = dataVO.composite.sImages.get(i);\n ImageItem itm = new ImageItem(tmpVo, essentials.rm, this);\n inventorize(itm);\n addActor(itm);\n itm.setZIndex(tmpVo.zIndex);\n }\n for (int i = 0; i < dataVO.composite.sImage9patchs.size(); i++) {\n Image9patchVO tmpVo = dataVO.composite.sImage9patchs.get(i);\n Image9patchItem itm = new Image9patchItem(tmpVo, essentials.rm, this);\n inventorize(itm);\n addActor(itm);\n itm.setZIndex(tmpVo.zIndex);\n }\n for (int i = 0; i < dataVO.composite.sTextBox.size(); i++) {\n TextBoxVO tmpVo = dataVO.composite.sTextBox.get(i);\n TextBoxItem itm = new TextBoxItem(tmpVo, essentials.rm, this);\n inventorize(itm);\n addActor(itm);\n itm.setZIndex(itm.dataVO.zIndex);\n }\n for (int i = 0; i < dataVO.composite.sButtons.size(); i++) {\n ButtonVO tmpVo = dataVO.composite.sButtons.get(i);\n TextButtonItem itm = new TextButtonItem(tmpVo, essentials.rm, this);\n inventorize(itm);\n addActor(itm);\n itm.setZIndex(itm.dataVO.zIndex);\n }\n for (int i = 0; i < dataVO.composite.sLabels.size(); i++) {\n LabelVO tmpVo = dataVO.composite.sLabels.get(i);\n LabelItem itm = new LabelItem(tmpVo, essentials.rm, this);\n inventorize(itm);\n addActor(itm);\n itm.setZIndex(itm.dataVO.zIndex);\n }\n for (int i = 0; i < dataVO.composite.sCheckBoxes.size(); i++) {\n CheckBoxVO tmpVo = dataVO.composite.sCheckBoxes.get(i);\n CheckBoxItem itm = new CheckBoxItem(tmpVo, essentials.rm, this);\n inventorize(itm);\n addActor(itm);\n itm.setZIndex(itm.dataVO.zIndex);\n }\n for (int i = 0; i < dataVO.composite.sSelectBoxes.size(); i++) {\n SelectBoxVO tmpVo = dataVO.composite.sSelectBoxes.get(i);\n SelectBoxItem itm = new SelectBoxItem(tmpVo, essentials.rm, this);\n inventorize(itm);\n addActor(itm);\n itm.setZIndex(itm.dataVO.zIndex);\n }\n for (int i = 0; i < dataVO.composite.sComposites.size(); i++) {\n CompositeItemVO tmpVo = dataVO.composite.sComposites.get(i);\n CompositeItem itm = new CompositeItem(tmpVo, essentials, this);\n inventorize(itm);\n addActor(itm);\n itm.setZIndex(itm.dataVO.zIndex);\n }\n for (int i = 0; i < dataVO.composite.sParticleEffects.size(); i++) {\n ParticleEffectVO tmpVo = dataVO.composite.sParticleEffects.get(i);\n ParticleItem itm = new ParticleItem(tmpVo, essentials.rm, this);\n inventorize(itm);\n addActor(itm);\n itm.setZIndex(itm.dataVO.zIndex);\n }\n if (essentials.rayHandler != null) {\n for (int i = 0; i < dataVO.composite.sLights.size(); i++) {\n LightVO tmpVo = dataVO.composite.sLights.get(i);\n LightActor itm = new LightActor(tmpVo, essentials, this);\n inventorize(itm);\n addActor(itm);\n }\n }\n for (int i = 0; i < dataVO.composite.sSpineAnimations.size(); i++) {\n SpineVO tmpVo = dataVO.composite.sSpineAnimations.get(i);\n SpineActor itm = new SpineActor(tmpVo, essentials, this);\n inventorize(itm);\n addActor(itm);\n itm.setZIndex(itm.dataVO.zIndex);\n }\n if (essentials.spineReflectionHelper != null) {\n for (int i = 0; i < dataVO.composite.sSpriteAnimations.size(); i++) {\n SpriteAnimationVO tmpVo = dataVO.composite.sSpriteAnimations.get(i);\n SpriteAnimation itm = new SpriteAnimation(tmpVo, essentials, this);\n inventorize(itm);\n itm.start();\n addActor(itm);\n itm.setZIndex(itm.dataVO.zIndex);\n }\n }\n if (dataVO.composite.layers.size() == 0) {\n LayerItemVO layerVO = new LayerItemVO();\n layerVO.layerName = \"String_Node_Str\";\n dataVO.composite.layers.add(layerVO);\n }\n recalculateSize();\n sortZindexes();\n reAssembleLayers();\n}\n"
"public void setProperty(String key, String value, String comment) {\n this.commentMap.put(key, comment);\n keys.add(key);\n return super.setProperty(key, value);\n}\n"
"protected void addXMLEntityMappings(String mappingFile) {\n try {\n addXMLEntityMappings(mappingFile, XMLEntityMappingsReader.getEclipseLinkOrmProject());\n } catch (XMLMarshalException e) {\n try {\n fileObject = persistenceUnitReader.getFileObject(mappingFile, processingEnv);\n addXMLEntityMappings(fileObject, mappingFile, XMLEntityMappingsReader.getEclipseLinkOrmProject());\n } catch (XMLMarshalException e) {\n try {\n addXMLEntityMappings(fileObject, mappingFile, XMLEntityMappingsReader.getOrm2Project());\n } catch (XMLMarshalException ee) {\n addXMLEntityMappings(fileObject, mappingFile, XMLEntityMappingsReader.getOrm1Project());\n }\n }\n } catch (IOException exception) {\n processingEnv.getMessager().printMessage(Kind.NOTE, \"String_Node_Str\" + mappingFile);\n }\n}\n"
"public String constructCompleteCopyCommandTemporarySqlVertex(SqlgGraph sqlgGraph, SqlgVertex vertex, Map<String, Object> keyValueMap) {\n return internalConstructCompleteCopyCommandSqlVertex(sqlgGraph, true, vertex, false, keyValueMap);\n}\n"
"public void onChunkUnload() {\n removeFromRegistry();\n}\n"
"public void setUp() throws MojoExecutionException, MojoFailureException {\n builder = new Library();\n if (directory != null) {\n builder.setDirectory(directory);\n }\n super.setUp();\n builder.setOutput(getOutput());\n if (checkNullOrEmpty(includeClasses) && checkNullOrEmpty(includeFiles) && checkNullOrEmpty(includeNamespaces) && checkNullOrEmpty(includeResourceBundles) && checkNullOrEmpty(includeResourceBundlesArtifact) && checkNullOrEmpty(includeSources) && checkNullOrEmpty(includeStylesheet)) {\n getLog().warn(\"String_Node_Str\");\n List<File> sourcePaths = new ArrayList<File>(Arrays.asList(this.sourcePaths));\n sourcePaths.remove(new File(resourceBundlePath));\n includeSources = sourcePaths.toArray(new File[0]);\n includeFiles = listAllResources();\n }\n if (!checkNullOrEmpty(includeClasses)) {\n for (String asClass : includeClasses) {\n builder.addComponent(asClass);\n }\n }\n if (!checkNullOrEmpty(includeFiles)) {\n for (String includeFile : includeFiles) {\n if (includeFile == null) {\n throw new MojoFailureException(\"String_Node_Str\");\n }\n File file = MavenUtils.resolveResourceFile(project, includeFile);\n File folder = getResourceFolder(file);\n String relativePath = PathUtil.getRelativePath(folder, file);\n if (relativePath.startsWith(\"String_Node_Str\")) {\n relativePath = file.getName();\n }\n builder.addArchiveFile(relativePath.replace('\\\\', '/'), file);\n }\n }\n if (!checkNullOrEmpty(includeNamespaces)) {\n for (String uri : includeNamespaces) {\n try {\n builder.addComponent(new URI(uri));\n } catch (URISyntaxException e) {\n throw new MojoExecutionException(\"String_Node_Str\" + uri, e);\n }\n }\n }\n if (!checkNullOrEmpty(includeResourceBundles)) {\n for (String rb : includeResourceBundles) {\n builder.addResourceBundle(rb);\n }\n }\n if (!checkNullOrEmpty(includeResourceBundlesArtifact)) {\n for (MavenArtifact mvnArtifact : includeResourceBundlesArtifact) {\n Artifact artifact = artifactFactory.createArtifactWithClassifier(mvnArtifact.getGroupId(), mvnArtifact.getArtifactId(), mvnArtifact.getVersion(), \"String_Node_Str\", \"String_Node_Str\");\n resolveArtifact(artifact, resolver, localRepository, remoteRepositories);\n String bundleFile;\n try {\n bundleFile = FileUtils.readFileToString(artifact.getFile());\n } catch (IOException e) {\n throw new MojoExecutionException(\"String_Node_Str\" + artifact, e);\n }\n String[] bundles = bundleFile.split(\"String_Node_Str\");\n for (String bundle : bundles) {\n builder.addResourceBundle(bundle);\n }\n }\n }\n if (!checkNullOrEmpty(includeSources)) {\n for (File file : includeSources) {\n if (file == null) {\n throw new MojoFailureException(\"String_Node_Str\");\n }\n if (!file.getName().contains(\"String_Node_Str\") && !file.exists()) {\n throw new MojoFailureException(\"String_Node_Str\" + file.getName() + \"String_Node_Str\");\n }\n builder.addComponent(file);\n }\n }\n includeStylesheet();\n computeDigest();\n if (addMavenDescriptor) {\n builder.addArchiveFile(\"String_Node_Str\" + project.getGroupId() + \"String_Node_Str\" + project.getArtifactId() + \"String_Node_Str\", new File(project.getBasedir(), \"String_Node_Str\"));\n }\n}\n"
"public boolean execute() {\n try {\n IProject rootProject = ResourceManager.getRootProject();\n if (!rootProject.exists()) {\n rootProject = DQStructureManager.getInstance().createNewProject(ResourceManager.DEFAULT_PROJECT_NAME);\n }\n IResource[] resources = ResourcesPlugin.getWorkspace().getRoot().members();\n if (resources != null && resources.length > 0) {\n for (IResource resource : resources) {\n if (resource.getName().equals(\"String_Node_Str\") || resource.getName().equals(\"String_Node_Str\") || resource.getName().equals(\"String_Node_Str\")) {\n IPath destination = null;\n IFolder prefixFolder = rootProject.getFolder(DQStructureManager.PREFIX_TDQ + resource.getName());\n prefixFolder.create(IResource.FORCE, true, new NullProgressMonitor());\n for (IResource rs : ((IProject) resource).members()) {\n if (rs.getName().equals(\"String_Node_Str\")) {\n continue;\n }\n destination = prefixFolder.getFolder(rs.getName()).getFullPath();\n rs.copy(destination, IResource.FORCE, new NullProgressMonitor());\n }\n resource.delete(true, new NullProgressMonitor());\n }\n }\n }\n String pathName = ResourcesPlugin.getWorkspace().getRoot().getLocation().toOSString() + \"String_Node_Str\";\n File repFolder = new File(pathName);\n if (repFolder.exists()) {\n FileUtils.copyDirectory(repFolder, ResourceManager.getReportingDBFolder().getLocation().toFile());\n FileUtils.forceDelete(new File(pathName));\n }\n fileContentUpgrade(rootProject);\n } catch (InvocationTargetException e) {\n logger.error(e, e);\n } catch (InterruptedException e) {\n logger.error(e, e);\n } catch (CoreException e) {\n logger.error(e, e);\n } catch (IOException e) {\n logger.error(e, e);\n } catch (Throwable e) {\n logger.error(e);\n }\n return false;\n}\n"
"public void setClosed() {\n closed.set(true);\n PortfolioOwner shareDestination;\n if (canBeRestarted) {\n if (certsAreInitiallyAvailable) {\n shareDestination = bank.getIpo();\n } else {\n shareDestination = bank.getUnavailable();\n }\n reinitialise();\n } else {\n shareDestination = bank.getScrapHeap();\n inGameState.set(false);\n }\n for (PublicCertificate cert : certificates) {\n if (cert.getOwner() != shareDestination) {\n cert.moveTo(shareDestination);\n }\n }\n portfolio.getTrainsModel().getPortfolio().moveAll(bank.getPool());\n int cash = treasury.value();\n if (cash > 0) {\n treasury.setSuppressZero(true);\n MoneyModel.cashMoveToBank(this, cash);\n }\n lastRevenue.setSuppressZero(true);\n setLastRevenue(0);\n for (BaseToken token : baseTokens.getLaidTokens()) {\n baseTokens.addFreeToken(token);\n }\n stockMarket.close(this);\n}\n"
"private BeanDefinition getEntityManagerBeanDefinitionFor(String entityManagerFactoryBeanName, Object source) {\n BeanDefinitionBuilder builder = BeanDefinitionBuilder.rootBeanDefinition(\"String_Node_Str\");\n builder.setFactoryMethod(\"String_Node_Str\");\n builder.addConstructorArgReference(entityManagerFactoryBeanName);\n AbstractBeanDefinition bean = builder.getRawBeanDefinition();\n bean.setSource(source);\n return bean;\n}\n"
"public boolean attackEntityFrom(DamageSource source, float amount) {\n if (isEntityInvulnerable(source)) {\n return false;\n } else {\n markVelocityChanged();\n Entity entity = source.getTrueSource();\n if (entity != null) {\n Vec3d vec3 = entity.getLookVec();\n motionX = vec3.x;\n motionY = vec3.y;\n motionZ = vec3.z;\n if (entity instanceof EntityLivingBase) {\n shootingEntity = (EntityLivingBase) entity;\n }\n return true;\n } else {\n return false;\n }\n }\n}\n"
"public synchronized void addMessageListener(MessageListener messageListener) {\n check(messageListener);\n boolean shouldCall = messageListenerManager().noMessageListenerRegistered(name);\n messageListenerManager().registerMessageListener(name, messageListener);\n if (shouldCall) {\n doAddListenerCall(messageListener);\n }\n}\n"
"static void appendExtensionSourceCode(StringBuilder buf, String code) {\n Assertion.on(\"String_Node_Str\").mustNotBeNull(buf);\n Assertion.on(\"String_Node_Str\").mustNotBeNull(code);\n String[] separatedListBySemicolon = code.split(StringValue.Semicolon);\n for (String separatedBySemicolon : separatedListBySemicolon) {\n if (separatedBySemicolon != null && separatedBySemicolon.trim().length() > 0) {\n separatedBySemicolon = separatedBySemicolon.trim().replaceAll(StringValue.CarriageReturn, \"String_Node_Str\");\n String[] lines = separatedBySemicolon.split(StringValue.LineFeed);\n for (int i = 0; i < (lines.length - 1); i++) {\n String line = lines[i];\n if (line != null && line.trim().length() > 0) {\n appendTabs(buf, 2);\n buf.append(line.trim());\n if (!line.endsWith(\"String_Node_Str\") && !line.endsWith(\"String_Node_Str\") && !line.endsWith(\"String_Node_Str\") && !line.endsWith(\"String_Node_Str\")) {\n buf.append(StringValue.Semicolon);\n }\n appendCRLF(buf);\n }\n }\n }\n }\n}\n"
"public Object create(User user, PropertyMap properties) {\n orgUnitModel = (OrgUnitModelDTO) properties.get(AdminUtil.ADMIN_ORG_UNIT_MODEL);\n if (orgUnitModel != null && ProjectModelStatus.DRAFT.equals(orgUnitModel.getStatus())) {\n if (orgUnitModel.getId() != -1) {\n update(user, orgUnitModel, properties);\n if (modelToUpdate != null) {\n OrgUnitModelDTO orgUnitDTOUpdated = mapper.map(modelToUpdate, OrgUnitModelDTO.class);\n return orgUnitDTOUpdated;\n }\n } else {\n OrgUnitModel oM = createOrgUnitModel(null, properties, user);\n OrgUnitDetails oMDetails = new OrgUnitDetails();\n Layout oMDetailsLayout = new Layout();\n oMDetailsLayout.setColumnsCount(1);\n oMDetailsLayout.setRowsCount(1);\n oMDetails.setLayout(oMDetailsLayout);\n oMDetails.setOrgUnitModel(oM);\n LayoutGroup detailsGroup = new LayoutGroup();\n detailsGroup.setTitle(\"String_Node_Str\");\n detailsGroup.setColumn(0);\n detailsGroup.setRow(0);\n detailsGroup.setParentLayout(oMDetailsLayout);\n int order = 0;\n for (DefaultFlexibleElementType e : DefaultFlexibleElementType.values()) {\n if (!DefaultFlexibleElementType.OWNER.equals(e) && !DefaultFlexibleElementType.START_DATE.equals(e) && !DefaultFlexibleElementType.END_DATE.equals(e) && !(DefaultFlexibleElementType.BUDGET.equals(e) && Boolean.FALSE.equals(oM.getHasBudget()))) {\n DefaultFlexibleElement defaultElement = new DefaultFlexibleElement();\n defaultElement.setType(e);\n defaultElement.setValidates(false);\n defaultElement.setAmendable(false);\n em.persist(defaultElement);\n LayoutConstraint defaultLayoutConstraint = new LayoutConstraint();\n defaultLayoutConstraint.setParentLayoutGroup(detailsGroup);\n defaultLayoutConstraint.setElement(defaultElement);\n defaultLayoutConstraint.setSortOrder(order++);\n detailsGroup.addConstraint(defaultLayoutConstraint);\n }\n }\n List<LayoutGroup> detailsGroups = new ArrayList<LayoutGroup>();\n detailsGroups.add(detailsGroup);\n oMDetailsLayout.setGroups(detailsGroups);\n OrgUnitBanner oMBanner = new OrgUnitBanner();\n Layout oMBannerLayout = new Layout();\n oMBannerLayout.setColumnsCount(3);\n oMBannerLayout.setRowsCount(2);\n oMBanner.setLayout(oMBannerLayout);\n oMBanner.setOrgUnitModel(oM);\n List<LayoutGroup> bannerGroups = new ArrayList<LayoutGroup>();\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 2; j++) {\n LayoutGroup bannerGroup = new LayoutGroup();\n bannerGroup.setColumn(i);\n bannerGroup.setRow(j);\n bannerGroup.setParentLayout(oMBannerLayout);\n bannerGroups.add(bannerGroup);\n }\n }\n oMBannerLayout.setGroups(bannerGroups);\n oM.setDetails(oMDetails);\n oM.setBanner(oMBanner);\n em.persist(oM);\n return mapper.map(oM, OrgUnitModelDTO.class);\n }\n }\n return null;\n}\n"
"public static void refreshAllBuffers() {\n synchronized (buffers) {\n for (Vertexbuffer buf : buffers) {\n buf.updateVertices();\n buf.updateGLData();\n }\n }\n}\n"
"public static <T> T clone(T data) {\n if (data == null || Data.isPrimitive(data.getClass())) {\n return data;\n }\n if (data instanceof GenericData) {\n return (T) ((GenericData) data).clone();\n }\n T copy;\n Class<?> dataClass = data.getClass();\n if (dataClass.isArray()) {\n copy = (T) Array.newInstance(dataClass.getComponentType(), Array.getLength(data));\n } else if (data instanceof ArrayMap<?, ?>) {\n copy = (T) ((ArrayMap<?, ?>) data).clone();\n } else {\n copy = (T) Types.newInstance(dataClass);\n }\n deepCopy(data, copy);\n return copy;\n}\n"
"public synchronized void start(FtpServerContext context) {\n try {\n this.context = context;\n acceptor = new NioSocketAcceptor(Runtime.getRuntime().availableProcessors());\n if (getServerAddress() != null) {\n address = new InetSocketAddress(getServerAddress(), getPort());\n } else {\n address = new InetSocketAddress(getPort());\n }\n acceptor.setReuseAddress(true);\n acceptor.getSessionConfig().setReadBufferSize(2048);\n acceptor.getSessionConfig().setIdleTime(IdleStatus.BOTH_IDLE, getIdleTimeout());\n ((SocketSessionConfig) acceptor.getSessionConfig()).setReceiveBufferSize(512);\n MdcInjectionFilter mdcFilter = new MdcInjectionFilter();\n acceptor.getFilterChain().addLast(\"String_Node_Str\", mdcFilter);\n acceptor.getFilterChain().addLast(\"String_Node_Str\", new BlacklistFilter());\n updateBlacklistFilter();\n acceptor.getFilterChain().addLast(\"String_Node_Str\", new ExecutorFilter(filterExecutor));\n acceptor.getFilterChain().addLast(\"String_Node_Str\", new ProtocolCodecFilter(new FtpServerProtocolCodecFactory()));\n acceptor.getFilterChain().addLast(\"String_Node_Str\", mdcFilter);\n acceptor.getFilterChain().addLast(\"String_Node_Str\", new FtpLoggingFilter());\n if (isImplicitSsl()) {\n SslConfiguration ssl = getSslConfiguration();\n SslFilter sslFilter;\n try {\n sslFilter = new SslFilter(ssl.getSSLContext());\n } catch (GeneralSecurityException e) {\n throw new FtpServerConfigurationException(\"String_Node_Str\");\n }\n if (ssl.getClientAuth() == ClientAuth.NEED) {\n sslFilter.setNeedClientAuth(true);\n } else if (ssl.getClientAuth() == ClientAuth.WANT) {\n sslFilter.setWantClientAuth(true);\n }\n if (ssl.getEnabledCipherSuites() != null) {\n sslFilter.setEnabledCipherSuites(ssl.getEnabledCipherSuites());\n }\n acceptor.getFilterChain().addFirst(\"String_Node_Str\", sslFilter);\n }\n handler.init(context, this);\n acceptor.setHandler(new FtpHandlerAdapter(context, handler));\n try {\n acceptor.bind(address);\n } catch (IOException e) {\n throw new FtpServerConfigurationException(\"String_Node_Str\" + address + \"String_Node_Str\", e);\n }\n updatePort();\n } catch (RuntimeException e) {\n stop();\n throw e;\n }\n}\n"
"private void selectBucketAndUploadFiles(File[] files) {\n List<String> names = model.getCurrentNames();\n final String bucketName = display.selectOption(\"String_Node_Str\", \"String_Node_Str\", names);\n if (bucketName != null) {\n controller.selectBucket(bucketName);\n controller.showObjects();\n uploadFiles(files);\n }\n}\n"
"private ProductDetailVo assembleProductDetailVo(Product product) {\n ProductDetailVo productDetailVo = new ProductDetailVo();\n productDetailVo.setId(product.getId());\n productDetailVo.setSubtitle(product.getSubtitle());\n productDetailVo.setPrice(product.getPrice());\n productDetailVo.setMainImage(product.getMainImage());\n productDetailVo.setSubImages(Lists.newArrayList(product.getSubImages().split(\"String_Node_Str\")));\n productDetailVo.setCategoryId(product.getCategoryId());\n productDetailVo.setDetail(product.getDetail());\n productDetailVo.setName(product.getName());\n productDetailVo.setRate(product.getRate());\n productDetailVo.setStatus(product.getStatus());\n productDetailVo.setStock(product.getStock());\n productDetailVo.setImageHost(PropertiesUtil.getProperty(Const.FTPSERVERHTTPPREFIX, \"String_Node_Str\"));\n productDetailVo.setParentCategoryId(new Integer(0));\n productDetailVo.setCreateTime(DateTimeUtil.dateToStr(product.getCreateTime()));\n productDetailVo.setUpdateTime(DateTimeUtil.dateToStr(product.getUpdateTime()));\n return productDetailVo;\n}\n"
"public void run() {\n List<Player> tmpPlayers = new ArrayList<Player>();\n while (true) {\n tmpPlayers = new ArrayList<Player>(players);\n for (Iterator<Animation> it = animations.iterator(); it.hasNext(); ) {\n Animation a = it.next();\n a.duration -= 20.0f / 1000.0f;\n if (a.duration <= 0)\n it.remove();\n }\n for (Iterator<Enemy> it = enemies.iterator(); it.hasNext(); ) {\n Enemy e = it.next();\n if (e.isAlive()) {\n AgentBehaviour ai = e.AI;\n for (AgentRule rule : aiRules) {\n if (rule.matches(ai.type, ai.currentGoal, ai.currentMode)) {\n }\n }\n e.update();\n } else {\n it.remove();\n }\n }\n for (Player p : tmpPlayers) {\n if (locationFacts.size() == 0) {\n locationFacts.put(new Point(p.getX(), p.getY()), 0.1f);\n }\n p.update();\n for (Iterator<Chest> it = chests.iterator(); it.hasNext(); ) {\n Chest c = it.next();\n if (c.isOpened()) {\n it.remove();\n } else {\n if (distanceBetween(p, c) < 1) {\n if (p.getInventory().getSize() + c.getItems().size() <= Inventory.MAX_SIZE) {\n c.open();\n for (GameItem item : c.getItems()) p.getInventory().addItem(item);\n p.incMoney(c.money);\n }\n }\n }\n }\n }\n Iterator<Entry<Point, Float>> iter = locationFacts.entrySet().iterator();\n while (iter.hasNext()) {\n Map.Entry<Point, Float> pairs = (Map.Entry<Point, Float>) iter.next();\n pairs.setValue((float) (pairs.getValue() - 0.01));\n if (pairs.getValue() < 0)\n iter.remove();\n }\n Player[] toSend = new Player[tmpPlayers.size()];\n for (int i = 0; i < tmpPlayers.size(); i++) toSend[i] = tmpPlayers.get(i);\n Chest[] chestsToSend = new Chest[chests.size()];\n for (int i = 0; i < chests.size(); i++) chestsToSend[i] = chests.get(i);\n Enemy[] eneToSend = new Enemy[enemies.size()];\n for (int i = 0; i < enemies.size(); i++) eneToSend[i] = enemies.get(i);\n Animation[] animsToSend = new Animation[animations.size()];\n for (int i = 0; i < animations.size(); i++) animsToSend[i] = animations.get(i);\n try {\n server.send(new DataPacket(toSend));\n server.send(new DataPacket(chestsToSend));\n server.send(new DataPacket(eneToSend));\n server.send(new DataPacket(animsToSend));\n Thread.sleep(20);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n}\n"
"public int getSize() {\n return data.size();\n}\n"
"protected void handleAttributes(MediaFormat format, Map<String, String> attrs) {\n if (attrs != null) {\n String width = null;\n String height = null;\n for (Map.Entry<String, String> attr : attrs.entrySet()) {\n String key = attr.getKey();\n String value = attr.getValue();\n if (key.equals(\"String_Node_Str\")) {\n if (value.equals(\"String_Node_Str\"))\n ;\n } else if (key.equals(\"String_Node_Str\")) {\n if ((attrs.containsKey(\"String_Node_Str\") || attrs.containsKey(\"String_Node_Str\")) && (outputSize != null)) {\n continue;\n }\n Dimension[] res = parseSendRecvResolution(value);\n if (res != null) {\n outputSize = res[1];\n qualityControl.setRemoteSendMaxPreset(new QualityPreset(res[0]));\n qualityControl.setRemoteReceiveResolution(outputSize);\n ((VideoMediaDeviceSession) getDeviceSession()).setOutputSize(outputSize);\n }\n } else if (key.equals(\"String_Node_Str\")) {\n Dimension dim = new Dimension(352, 288);\n if ((outputSize == null) || ((outputSize.width < dim.width) && (outputSize.height < dim.height))) {\n outputSize = dim;\n ((VideoMediaDeviceSession) getDeviceSession()).setOutputSize(outputSize);\n }\n } else if (key.equals(\"String_Node_Str\")) {\n Dimension dim = new Dimension(176, 144);\n if ((outputSize == null) || ((outputSize.width < dim.width) && (outputSize.height < dim.height))) {\n outputSize = dim;\n ((VideoMediaDeviceSession) getDeviceSession()).setOutputSize(outputSize);\n }\n } else if (key.equals(\"String_Node_Str\")) {\n Dimension dim = new Dimension(640, 480);\n if ((outputSize == null) || ((outputSize.width < dim.width) && (outputSize.height < dim.height))) {\n outputSize = dim;\n ((VideoMediaDeviceSession) getDeviceSession()).setOutputSize(outputSize);\n }\n } else if (key.equals(\"String_Node_Str\")) {\n String[] args = value.split(\"String_Node_Str\");\n if (args.length < 3)\n continue;\n try {\n Dimension dim = new Dimension(Integer.parseInt(args[0]), Integer.parseInt(args[1]));\n if ((outputSize == null) || ((outputSize.width < dim.width) && (outputSize.height < dim.height))) {\n outputSize = dim;\n ((VideoMediaDeviceSession) getDeviceSession()).setOutputSize(outputSize);\n }\n } catch (Exception e) {\n }\n } else if (key.equals(\"String_Node_Str\")) {\n width = value;\n if (height != null) {\n outputSize = new Dimension(Integer.parseInt(width), Integer.parseInt(height));\n ((VideoMediaDeviceSession) getDeviceSession()).setOutputSize(outputSize);\n }\n } else if (key.equals(\"String_Node_Str\")) {\n height = value;\n if (width != null) {\n outputSize = new Dimension(Integer.parseInt(width), Integer.parseInt(height));\n ((VideoMediaDeviceSession) getDeviceSession()).setOutputSize(outputSize);\n }\n }\n }\n }\n}\n"
"private void handlePresencePacket(Presence p) {\n PacketExtension packetExt = p.getExtension(MediaExtension.NAMESPACE);\n MUCUser userExt = (MUCUser) p.getExtension(\"String_Node_Str\", \"String_Node_Str\");\n String remoteJid = userExt.getItem().getJid();\n if (null != remoteJid && null != packetExt) {\n MediaExtension mediaExt = (MediaExtension) packetExt;\n for (MediaType mediaType : MediaType.values()) {\n if (MediaType.AUDIO != mediaType && MediaType.VIDEO != mediaType) {\n continue;\n }\n MediaDirection direction = MediaDirection.parseString(mediaExt.getDirection(mediaType.toString()));\n String ssrc = mediaExt.getSsrc(mediaType.toString());\n if (direction == MediaDirection.SENDONLY || direction == MediaDirection.SENDRECV) {\n sessionInfo.addRemoteSsrc(mediaType, remoteJid, ssrc);\n }\n }\n }\n}\n"
"private void registerActions(RegisterAction[] actions) {\n for (int i = 0; i < actions.length; i++) {\n if (actions[i] != null)\n addRetargetAction(new ReportRetargetAction(actions[i].id, actions[i].displayName, actions[i].style));\n }\n}\n"
"protected String getDNOfUser(String adminUser, String adminPassword, Context context, String netid) {\n String resultDN;\n int ldap_search_scope_value = 0;\n try {\n ldap_search_scope_value = Integer.parseInt(ldap_search_scope.trim());\n } catch (Exception e) {\n if (ldap_search_scope != null) {\n log.warn(LogManager.getHeader(context, \"String_Node_Str\", \"String_Node_Str\" + ldap_search_scope));\n }\n }\n Hashtable env = new Hashtable(11);\n env.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, \"String_Node_Str\");\n env.put(javax.naming.Context.PROVIDER_URL, ldap_provider_url);\n env.put(javax.naming.Context.SECURITY_AUTHENTICATION, \"String_Node_Str\");\n env.put(javax.naming.Context.SECURITY_PRINCIPAL, adminUser);\n env.put(javax.naming.Context.SECURITY_CREDENTIALS, adminPassword);\n DirContext ctx = null;\n try {\n ctx = new InitialDirContext(env);\n Attributes matchAttrs = new BasicAttributes(true);\n matchAttrs.put(new BasicAttribute(ldap_id_field, netid));\n try {\n SearchControls ctrls = new SearchControls();\n ctrls.setSearchScope(ldap_search_scope_value);\n NamingEnumeration<SearchResult> answer = ctx.search(ldap_provider_url + ldap_search_context, \"String_Node_Str\", new Object[] { ldap_id_field, netid }, ctrls);\n while (answer.hasMoreElements()) {\n SearchResult sr = answer.next();\n resultDN = (sr.getName() + \"String_Node_Str\" + ldap_search_context);\n String[] attlist = { ldap_email_field, ldap_givenname_field, ldap_surname_field, ldap_phone_field };\n Attributes atts = sr.getAttributes();\n Attribute att;\n if (attlist[0] != null) {\n att = atts.get(attlist[0]);\n if (att != null)\n ldapEmail = (String) att.get();\n }\n if (attlist[1] != null) {\n att = atts.get(attlist[1]);\n if (att != null)\n ldapGivenName = (String) att.get();\n }\n if (attlist[2] != null) {\n att = atts.get(attlist[2]);\n if (att != null)\n ldapSurname = (String) att.get();\n }\n if (attlist[3] != null) {\n att = atts.get(attlist[3]);\n if (att != null)\n ldapPhone = (String) att.get();\n }\n if (answer.hasMoreElements()) {\n } else {\n log.debug(LogManager.getHeader(context, \"String_Node_Str\", resultDN));\n return resultDN;\n }\n }\n } catch (NamingException e) {\n log.warn(LogManager.getHeader(context, \"String_Node_Str\", \"String_Node_Str\" + e));\n }\n } catch (NamingException e) {\n log.warn(LogManager.getHeader(context, \"String_Node_Str\", \"String_Node_Str\" + e));\n } finally {\n try {\n if (ctx != null)\n ctx.close();\n } catch (NamingException e) {\n }\n }\n return null;\n}\n"
"public void doWork() throws Exception {\n List<Position> positions = positionProvider.getPositions();\n Date currentDate = new Date();\n for (EventProducer eventProducer : eventProducers) {\n eventProducer.setCurrentDate(currentDate);\n eventProducer.before();\n }\n Position prevPosition = null;\n Device device = null;\n DeviceState state = null;\n for (Position position : positions) {\n if (device == null || device.getId() != position.getDevice().getId()) {\n device = position.getDevice();\n state = deviceState.get(device.getId());\n if (state == null || state.latestPositionId == null) {\n state = new DeviceState();\n deviceState.put(device.getId(), state);\n prevPosition = null;\n } else {\n prevPosition = entityManager.get().find(Position.class, state.latestPositionId);\n }\n }\n for (int i = 0; i < eventProducers.size(); i++) {\n eventProducers.get(i).positionScanned(prevPosition, position);\n }\n state.latestPositionId = position.getId();\n prevPosition = position;\n lastScannedPositionId = Math.max(lastScannedPositionId, position.getId());\n }\n for (EventProducer eventProducer : eventProducers) {\n eventProducer.after();\n }\n}\n"
"public static Bundle verifyText(Context context, InputData data, OutputStream outStream, boolean lookupUnknownKey, ProgressDialogUpdater progress) throws IOException, GeneralException, PGPException, SignatureException {\n Bundle returnData = new Bundle();\n ByteArrayOutputStream out = new ByteArrayOutputStream();\n ArmoredInputStream aIn = new ArmoredInputStream(data.getInputStream());\n updateProgress(progress, R.string.progress_done, 0, 100);\n ByteArrayOutputStream lineOut = new ByteArrayOutputStream();\n int lookAhead = readInputLine(lineOut, aIn);\n byte[] lineSep = getLineSeparator();\n byte[] line = lineOut.toByteArray();\n out.write(line, 0, getLengthWithoutSeparator(line));\n out.write(lineSep);\n while (lookAhead != -1 && aIn.isClearText()) {\n lookAhead = readInputLine(lineOut, lookAhead, aIn);\n line = lineOut.toByteArray();\n out.write(line, 0, getLengthWithoutSeparator(line));\n out.write(lineSep);\n }\n out.close();\n byte[] clearText = out.toByteArray();\n outStream.write(clearText);\n returnData.putBoolean(ApgService.RESULT_SIGNATURE, true);\n if (progress != null)\n progress.setProgress(R.string.progress_processingSignature, 60, 100);\n PGPObjectFactory pgpFact = new PGPObjectFactory(aIn);\n PGPSignatureList sigList = (PGPSignatureList) pgpFact.nextObject();\n if (sigList == null) {\n throw new GeneralException(context.getString(R.string.error_corruptData));\n }\n PGPSignature signature = null;\n long signatureKeyId = 0;\n PGPPublicKey signatureKey = null;\n for (int i = 0; i < sigList.size(); ++i) {\n signature = sigList.get(i);\n signatureKey = getPublicKey(signature.getKeyID());\n if (signatureKeyId == 0) {\n signatureKeyId = signature.getKeyID();\n }\n if (signatureKey == null && lookupUnknownKey) {\n returnData = new Bundle();\n returnData.putLong(ApgService.RESULT_SIGNATURE_KEY_ID, signatureKeyId);\n returnData.putBoolean(ApgService.RESULT_SIGNATURE_LOOKUP_KEY, true);\n return returnData;\n }\n if (signatureKey == null) {\n signature = null;\n } else {\n signatureKeyId = signature.getKeyID();\n String userId = null;\n PGPPublicKeyRing sigKeyRing = getPublicKeyRing(signatureKeyId);\n if (sigKeyRing != null) {\n userId = PGPHelper.getMainUserId(PGPHelper.getMasterKey(sigKeyRing));\n }\n returnData.putString(ApgService.RESULT_SIGNATURE_USER_ID, userId);\n break;\n }\n }\n returnData.putLong(ApgService.RESULT_SIGNATURE_KEY_ID, signatureKeyId);\n if (signature == null) {\n returnData.putBoolean(ApgService.RESULT_SIGNATURE_UNKNOWN, true);\n if (progress != null)\n progress.setProgress(R.string.progress_done, 100, 100);\n return returnData;\n }\n JcaPGPContentVerifierBuilderProvider contentVerifierBuilderProvider = new JcaPGPContentVerifierBuilderProvider().setProvider(BOUNCY_CASTLE_PROVIDER_NAME);\n signature.init(contentVerifierBuilderProvider, signatureKey);\n InputStream sigIn = new BufferedInputStream(new ByteArrayInputStream(clearText));\n lookAhead = readInputLine(lineOut, sigIn);\n processLine(signature, lineOut.toByteArray());\n if (lookAhead != -1) {\n do {\n lookAhead = readInputLine(lineOut, lookAhead, sigIn);\n signature.update((byte) '\\r');\n signature.update((byte) '\\n');\n processLine(signature, lineOut.toByteArray());\n } while (lookAhead != -1);\n }\n returnData.putBoolean(ApgService.RESULT_SIGNATURE_SUCCESS, signature.verify());\n if (progress != null)\n progress.setProgress(R.string.progress_done, 100, 100);\n return returnData;\n}\n"
"private void recordUnidentifiableAtomLinkages(List<ModifiedCompound> modComps, List<Group> residues, List<Group> ligands) {\n Set<StructureAtomLinkage> identifiedLinkages = new HashSet<StructureAtomLinkage>();\n for (ModifiedCompound mc : modComps) {\n identifiedLinkages.addAll(mc.getAtomLinkages());\n }\n int nRes = residues.size();\n for (int i = 0; i < nRes - 1; i++) {\n Group group1 = residues.get(i);\n for (int j = i + 1; j < nRes; j++) {\n Group group2 = residues.get(j);\n List<Atom[]> linkages = StructureUtil.findNonNCAtomLinkages(group1, true, group2, true, bondLengthTolerance);\n for (Atom[] atoms : linkages) {\n StructureAtomLinkage link = StructureUtil.getStructureAtomLinkage(atoms[0], ComponentType.AMINOACID, atoms[1], ComponentType.AMINOACID);\n if (!identifiedLinkages.contains(link)) {\n unidentifiableAtomLinkages.add(link);\n }\n }\n }\n }\n int nLig = ligands.size();\n for (int i = 0; i < nRes; i++) {\n Group group1 = residues.get(i);\n for (int j = 0; j < nLig; j++) {\n Group group2 = ligands.get(j);\n if (group1 == group2) {\n continue;\n }\n List<Atom[]> linkages = StructureUtil.findNonNCAtomLinkages(group1, true, group2, false, bondLengthTolerance);\n for (Atom[] atoms : linkages) {\n StructureAtomLinkage link = StructureUtil.getStructureAtomLinkage(atoms[0], ComponentType.LIGAND, atoms[1], ComponentType.LIGAND);\n if (!identifiedLinkages.contains(link)) {\n unidentifiableAtomLinkages.add(link);\n }\n }\n }\n }\n}\n"
"public static AccountManager getAccountManager() {\n if (accountManager == null) {\n accountManager = ServiceUtils.getService(bundleContext, AccountManager.class);\n }\n return accountManager;\n}\n"
"public IFile duplicate() {\n IFile newFile = SimpleHandle.getNewFile(file);\n try {\n file.copy(newFile.getFullPath(), true, null);\n } catch (CoreException e) {\n e.printStackTrace();\n }\n createProperty(newFile.getLocation().toFile());\n return newFile;\n}\n"
"public void modifyText(ModifyEvent e) {\n String min = lowerText.getText();\n String max = higherText.getText();\n if (!CheckValueUtils.isEmpty(max)) {\n if (isRangeForDate) {\n if (!CheckValueUtils.isDateValue(max)) {\n updateStatus(IStatus.ERROR, MSG_ONLY_DATE);\n } else {\n updateStatus(IStatus.OK, MSG_OK);\n }\n } else if (!CheckValueUtils.isNumberWithNegativeValue(max)) {\n updateStatus(IStatus.ERROR, MSG_ONLY_NUMBER);\n } else if (!CheckValueUtils.isEmpty(min) && CheckValueUtils.isAoverB(min, max)) {\n updateStatus(IStatus.ERROR, UIMessages.MSG_LOWER_LESS_HIGHER);\n } else {\n if (!CheckValueUtils.isNumberWithNegativeValue(max)) {\n updateStatus(IStatus.ERROR, MSG_ONLY_NUMBER);\n } else if (!CheckValueUtils.isEmpty(min) && CheckValueUtils.isAoverB(min, max)) {\n updateStatus(IStatus.ERROR, UIMessages.MSG_LOWER_LESS_HIGHER);\n } else {\n updateStatus(IStatus.OK, MSG_OK);\n }\n }\n } else {\n updateStatus(IStatus.OK, UIMessages.MSG_INDICATOR_WIZARD);\n }\n}\n"
"public RESTCoverageStore publishExternalMosaic(String workspace, String storeName, File mosaicDir, GSCoverageEncoder coverageEncoder, GSLayerEncoder layerEncoder) throws FileNotFoundException {\n if (!createExternalMosaic(workspace, storeName, mosaicDir, coverageEncoder, layerEncoder)) {\n return null;\n }\n String coverageName = coverageEncoder.getName();\n if (layerEncoder == null) {\n throw new IllegalArgumentException(\"String_Node_Str\" + workspace + \"String_Node_Str\" + coverageName);\n }\n final RESTCoverageStore store = reader.getCoverageStore(workspace, storeName);\n if (store == null) {\n LOGGER.warn(\"String_Node_Str\" + workspace + \"String_Node_Str\" + storeName + \"String_Node_Str\");\n return null;\n }\n return store;\n}\n"
"public void refresh() {\n List plugins = Orderings.pluginOrdering().sortedCopy(this.documentationPluginsManager.documentationPlugins());\n logger.info(\"String_Node_Str\", Integer.valueOf(plugins.size()));\n Iterator var3 = plugins.iterator();\n while (var3.hasNext()) {\n DocumentationPlugin each = (DocumentationPlugin) var3.next();\n DocumentationType documentationType = each.getDocumentationType();\n if (each.isEnabled()) {\n this.scanDocumentation(this.buildContext(each));\n } else {\n log.info(\"String_Node_Str\", documentationType.getName(), documentationType.getVersion());\n }\n }\n}\n"
"public void write(ByteBuffer buf) {\n try {\n for (; ; ) {\n if (!rwLock.compareAndSet(false, true)) {\n break;\n }\n }\n buf.flip();\n int bufSize = buf.limit();\n if (bufSize <= MAPPED_SIZE) {\n mappedByteBuffer.clear();\n int position = 0;\n int count = fileChannel.write(buf, position);\n if (buf.hasRemaining()) {\n throw new IOException(\"String_Node_Str\" + count + \"String_Node_Str\" + buf.remaining());\n } else {\n NetSystem.getInstance().getBufferPool().recycle(buf);\n }\n int tranfered = write0(position, count);\n netOutCounter++;\n netOutBytes += tranfered;\n lastWriteTime = TimeUtil.currentTimeMillis();\n } else {\n int cnt = (bufSize / MAPPED_SIZE) + (bufSize % MAPPED_SIZE > 0 ? 1 : 0);\n int postion = 0;\n for (int i = 1; i <= cnt; i++) {\n int limit = MAPPED_SIZE * i;\n if (limit > bufSize) {\n limit = bufSize;\n }\n buf.position(postion);\n buf.limit(limit);\n ByteBuffer tmpBuf = buf.slice();\n mappedByteBuffer.clear();\n int count = fileChannel.write(tmpBuf, 0);\n if (tmpBuf.hasRemaining()) {\n throw new IOException(\"String_Node_Str\" + count + \"String_Node_Str\" + tmpBuf.remaining());\n }\n int tranfered = write0(0, count);\n postion += tranfered;\n }\n NetSystem.getInstance().getBufferPool().recycle(buf);\n }\n } catch (IOException e) {\n LOGGER.error(\"String_Node_Str\", e);\n this.close(\"String_Node_Str\" + e);\n } finally {\n rwLock.set(false);\n }\n}\n"
"private TridentChunk rawChunk(ChunkLocation location) {\n TridentChunk chunk = world.chunkAt(location, false);\n if (chunk == null) {\n chunk = new TridentChunk(world, location);\n world.addChunkAt(location, chunk);\n }\n chunk.generate();\n return chunk;\n}\n"
"public void setCrawlerTraps(List<String> regExps, boolean strictMode) {\n ArgumentNotValid.checkNotNull(regExps, \"String_Node_Str\");\n List<String> cleanedListOfCrawlerTraps = new ArrayList<String>();\n for (String crawlerTrap : regExps) {\n log.trace(\"String_Node_Str\" + crawlerTrap + \"String_Node_Str\");\n String trimmedString = crawlerTrap.trim();\n log.trace(\"String_Node_Str\" + trimmedString + \"String_Node_Str\");\n if (!(trimmedString.length() == 0)) {\n cleanedListOfCrawlerTraps.add(crawlerTrap);\n } else {\n log.trace(\"String_Node_Str\");\n }\n }\n List<String> errMsgs = new ArrayList<String>();\n for (String regexp : cleanedListOfCrawlerTraps) {\n boolean wellformed = false;\n try {\n Pattern.compile(regexp);\n wellformed = CrawlertrapsUtils.isCrawlertrapsWellformedXML(regexp);\n if (!wellformed) {\n errMsgs.add(\"String_Node_Str\" + regexp + \"String_Node_Str\" + \"String_Node_Str\");\n }\n } catch (PatternSyntaxException e) {\n errMsgs.add(\"String_Node_Str\" + regexp + \"String_Node_Str\" + e.getDescription() + \"String_Node_Str\");\n }\n }\n if (errMsgs.size() > 0) {\n if (strictMode) {\n throw new ArgumentNotValid(errMsgs.size() + \"String_Node_Str\" + StringUtils.conjoin(\"String_Node_Str\", errMsgs));\n } else {\n log.warn(errMsgs.size() + \"String_Node_Str\" + StringUtils.conjoin(\"String_Node_Str\", errMsgs));\n }\n crawlerTraps = Collections.unmodifiableList(cleanedListOfCrawlerTraps);\n if (!crawlerTraps.isEmpty()) {\n log.trace(\"String_Node_Str\", domainName, crawlerTraps.size());\n }\n}\n"
"public void testCharConvert_whenPassedString_thenConvertToChar() {\n Comparable value = \"String_Node_Str\";\n Comparable expectedCharacter = 'f';\n Comparable actualCharacter = TypeConverters.CHAR_CONVERTER.convert(value);\n assertThat(actualCharacter, allOf(is(instanceOf(Character.class)), is(equalTo(expectedCharacter))));\n}\n"
"public boolean processAnnotation(Annotation annotation) {\n String name = annotation.type.fullName;\n if (\"String_Node_Str\".equals(name)) {\n this.modifiers |= Modifiers.VAR;\n return true;\n }\n if (\"String_Node_Str\".equals(name)) {\n this.modifiers |= Modifiers.LAZY;\n return true;\n }\n return false;\n}\n"
"public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) {\n Player player = null;\n String commandName = command.getName();\n if (sender instanceof Player) {\n player = (Player) sender;\n } else {\n log.info(\"String_Node_Str\");\n return false;\n }\n Animator animator = getAnimator(player.getName());\n if (commandName.equalsIgnoreCase(\"String_Node_Str\")) {\n if (animator.hasOpenAnimation()) {\n player.sendMessage(\"String_Node_Str\");\n } else {\n if (args.length == 1) {\n Animation animation = getAnimation(args[0]);\n if (animation == null) {\n createNewAnimation(args[0], player);\n player.sendMessage(\"String_Node_Str\");\n } else {\n player.sendMessage(\"String_Node_Str\");\n }\n } else {\n player.sendMessage(\"String_Node_Str\");\n }\n }\n return true;\n } else if (commandName.equalsIgnoreCase(\"String_Node_Str\")) {\n if (!animator.hasOpenAnimation()) {\n player.sendMessage(\"String_Node_Str\");\n } else {\n animator.closeAnimation();\n player.sendMessage(\"String_Node_Str\");\n }\n return true;\n } else if (commandName.equalsIgnoreCase(\"String_Node_Str\")) {\n if (animator.hasOpenAnimation()) {\n player.sendMessage(\"String_Node_Str\");\n } else {\n if (args.length == 1) {\n Animation animation = getAnimation(args[0]);\n if (animation != null) {\n animator.openAnimation(animation);\n player.sendMessage(\"String_Node_Str\");\n } else {\n player.sendMessage(\"String_Node_Str\");\n }\n } else {\n player.sendMessage(\"String_Node_Str\");\n }\n }\n return true;\n } else if (commandName.equalsIgnoreCase(\"String_Node_Str\")) {\n if (animator.hasOpenAnimation()) {\n Animation open_anime = animator.getOpenAnimation();\n if (!open_anime.isAreaSet()) {\n if (animator.locationsSet()) {\n Area area = new Area(this, player.getWorld(), animator.getLoc1(), animator.getLoc2());\n open_anime.setArea(area);\n player.sendMessage(\"String_Node_Str\" + area.get_blocks().size());\n } else {\n player.sendMessage(\"String_Node_Str\");\n }\n } else {\n player.sendMessage(\"String_Node_Str\");\n }\n } else {\n player.sendMessage(\"String_Node_Str\");\n }\n return true;\n } else if (commandName.equalsIgnoreCase(\"String_Node_Str\")) {\n if (animator.hasOpenAnimation()) {\n Animation open_anime = animator.getOpenAnimation();\n if (open_anime.isAreaSet()) {\n frameset this_frameset = open_anime.getFrames();\n if (this_frameset.frames.size() == 0) {\n Hashtable<Integer, Block> blocks = new Hashtable<Integer, Block>();\n for (Location location : open_anime.getArea().get_blocks()) {\n blocks.put(blocks.size(), this_frameset.this_world.getBlockAt(location));\n }\n this_frameset.add_frame(blocks);\n open_anime.setLastFrameBytes(this_frameset.frames.get((this_frameset.frames.size() - 1)).frame_blocks_data);\n open_anime.setLastFrameTypes(this_frameset.frames.get((this_frameset.frames.size() - 1)).frame_blocks_type);\n player.sendMessage(\"String_Node_Str\" + blocks.size() + \"String_Node_Str\" + this_frameset.frames.size());\n } else {\n Hashtable<Integer, Block> blocks = new Hashtable<Integer, Block>();\n Map<Location, Material> jprevtype = open_anime.getLastFrameTypes();\n Map<Location, Byte> jprevbyte = open_anime.getLastFrameBytes();\n for (Location location : open_anime.getArea().get_blocks()) {\n if (this_frameset.this_world.getBlockAt(location).getType() != jprevtype.get(location)) {\n blocks.put(blocks.size(), this_frameset.this_world.getBlockAt(location));\n jprevtype.put(location, this_frameset.this_world.getBlockAt(location).getType());\n jprevbyte.put(location, this_frameset.this_world.getBlockAt(location).getData());\n } else if (this_frameset.this_world.getBlockAt(location).getData() != jprevbyte.get(location)) {\n blocks.put(blocks.size(), this_frameset.this_world.getBlockAt(location));\n jprevbyte.put(location, this_frameset.this_world.getBlockAt(location).getData());\n }\n }\n this_frameset.add_frame(blocks);\n open_anime.setLastFrameBytes(jprevbyte);\n open_anime.setLastFrameTypes(jprevtype);\n player.sendMessage(\"String_Node_Str\" + blocks.size() + \"String_Node_Str\" + this_frameset.frames.size());\n }\n } else {\n player.sendMessage(\"String_Node_Str\");\n }\n } else {\n player.sendMessage(\"String_Node_Str\");\n }\n return true;\n } else if (commandName.equalsIgnoreCase(\"String_Node_Str\")) {\n if (animator.hasOpenAnimation()) {\n Animation open_anime = animator.getOpenAnimation();\n if (open_anime.isAreaSet()) {\n if (!open_anime.isPlaying()) {\n Thread animation_player = null;\n if (args.length == 1) {\n if (args[0].equalsIgnoreCase(\"String_Node_Str\")) {\n open_anime.setRepeat(true);\n animation_player = new play(this, open_anime);\n } else {\n open_anime.setRepeat(false);\n animation_player = new play(this, open_anime, Integer.valueOf(args[0]));\n }\n } else if (args.length == 2) {\n if (args[1].equalsIgnoreCase(\"String_Node_Str\")) {\n open_anime.setRepeat(true);\n }\n animation_player = new play(this, open_anime, Integer.valueOf(args[0]));\n } else {\n open_anime.setRepeat(false);\n animation_player = new play(this, open_anime);\n }\n animation_player.start();\n player.sendMessage(\"String_Node_Str\");\n } else {\n player.sendMessage(\"String_Node_Str\");\n }\n } else {\n player.sendMessage(\"String_Node_Str\");\n }\n } else {\n player.sendMessage(\"String_Node_Str\");\n }\n return true;\n } else if (commandName.equalsIgnoreCase(\"String_Node_Str\")) {\n if (animator.hasOpenAnimation()) {\n Animation open_anime = animator.getOpenAnimation();\n if (open_anime.isAreaSet()) {\n if (open_anime.isPlaying()) {\n if (open_anime.isRepeat()) {\n player.sendMessage(\"String_Node_Str\");\n open_anime.setRepeat(false);\n } else {\n player.sendMessage(\"String_Node_Str\");\n }\n } else {\n player.sendMessage(\"String_Node_Str\");\n }\n } else {\n player.sendMessage(\"String_Node_Str\");\n }\n } else {\n player.sendMessage(\"String_Node_Str\");\n }\n return true;\n } else if (commandName.equalsIgnoreCase(\"String_Node_Str\")) {\n if (animator.hasOpenAnimation()) {\n Animation open_anime = animator.getOpenAnimation();\n if (open_anime.isAreaSet()) {\n if (args.length == 1) {\n if (args[0].equalsIgnoreCase(\"String_Node_Str\")) {\n frameset g = open_anime.getFrames();\n Integer hi = 0;\n while (hi < g.frames.size()) {\n g.gt(hi);\n hi++;\n }\n player.sendMessage(\"String_Node_Str\" + g.frames.size() + \"String_Node_Str\");\n } else if (args[0].equalsIgnoreCase(\"String_Node_Str\")) {\n frameset g = open_anime.getFrames();\n g.gt(0);\n player.sendMessage(\"String_Node_Str\");\n } else if (is_integer(args[0])) {\n frameset g = open_anime.getFrames();\n if (g.frames.size() >= Integer.valueOf(args[0])) {\n Integer hi = 0;\n while (hi < Integer.valueOf(args[0])) {\n g.gt(hi);\n hi++;\n }\n player.sendMessage(\"String_Node_Str\" + (Integer.valueOf(args[0]) + 1) + \"String_Node_Str\");\n } else {\n player.sendMessage(\"String_Node_Str\");\n }\n } else {\n player.sendMessage(\"String_Node_Str\");\n }\n } else {\n player.sendMessage(\"String_Node_Str\");\n }\n } else {\n player.sendMessage(\"String_Node_Str\");\n }\n } else {\n player.sendMessage(\"String_Node_Str\");\n }\n return true;\n }\n return false;\n}\n"
"public String toNonNullValue(LocalDateTime value) {\n String formatted = LOCAL_DATETIME_PRINTER.print(value);\n return formatted;\n}\n"
"public void addRoutes(RestRouter rootRouter, RestRouter realmRouter) {\n realmRouter.route(\"String_Node_Str\").auditAs(OAUTH2).authorizeWith(ResourceOwnerOrSuperUserAuthzModule.class).through(UmaEnabledFilter.class).toCollection(ResourceSetResource.class);\n realmRouter.route(\"String_Node_Str\").auditAs(OAUTH2).authorizeWith(ResourceOwnerOrSuperUserAuthzModule.class).through(UmaEnabledFilter.class).toCollection(UmaLabelResource.class);\n}\n"
"public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {\n Log.d(TAG, \"String_Node_Str\" + isAllowUntrusted());\n if (isAllowUntrusted()) {\n handler.proceed();\n } else {\n handler.cancel();\n }\n}\n"
"void setParent(Widget parent) {\n this.parent = parent;\n if (parent == null) {\n if (oldParent != null && oldParent.isAttached()) {\n onDetach();\n }\n } else if (parent.isAttached()) {\n onAttach();\n }\n}\n"
"private void updateClipping() {\n int top = mClipTopOptimization;\n if (top >= getActualHeight()) {\n top = getActualHeight() - 1;\n }\n mClipRect.set(0, top, getWidth(), getActualHeight());\n setClipBounds(mClipRect);\n}\n"
"public void appendDeclarations(NTASystem system, String NUM_METHODS) {\n super.appendDeclarations(system, NUM_METHODS);\n system.appendDeclaration(String.format(\"String_Node_Str\", NUM_METHODS, initNumBlocks()));\n system.appendDeclaration(String.format(\"String_Node_Str\", NUM_METHODS, cache.getNumBlocks(), initCache(NUM_METHODS)));\n system.appendDeclaration(String.format(\"String_Node_Str\"));\n system.appendDeclaration(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + cache.getNumBlocks() + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + (cache.getNumBlocks() - 1) + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + NUM_METHODS + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n}\n"
"private void addColumn(PROXY proxy, Field singleField, byte[] idValue, RowToPersist row) {\n Object value = ReflectionUtil.fetchFieldValue(proxy, singleField);\n Column c = new Column();\n byte[] columnName = formTheColumnName(proxy, idValue, singleField);\n c.setName(columnName);\n if (value != null) {\n byte[] columnValue = null;\n NoSqlConverter customConv = singleField.getAnnotation(NoSqlConverter.class);\n if (customConv != null) {\n columnValue = getBytesValue(value, customConv);\n } else {\n columnValue = StandardConverters.convertToBytes(value);\n }\n c.setValue(columnValue);\n }\n row.getColumns().add(c);\n}\n"
"private void fillPlayersPane() {\n playersPane.setVisible(false);\n int maxPlayers = GamesInfo.getMaxPlayers(gameName);\n String[] playerList = new String[maxPlayers];\n String[] testPlayers = Config.get(\"String_Node_Str\").split(\"String_Node_Str\");\n for (int i = 0; i < playerNameFields.length; i++) {\n if (playerNameFields[i] != null && playerNameFields[i].getText().length() > 0) {\n playerList[i] = playerNameFields[i].getText();\n } else if (i < testPlayers.length && testPlayers[i].length() > 0) {\n playerList[i] = testPlayers[i];\n }\n }\n playersPane.removeAll();\n playersPane.setLayout(new GridLayout(maxPlayers + 1, 0));\n playersPane.setBorder(BorderFactory.createLoweredBevelBorder());\n playersPane.add(new JLabel(\"String_Node_Str\"));\n playersPane.add(new JLabel(\"String_Node_Str\"));\n for (int i = 0; i < GamesInfo.getMaxPlayers(gameName); i++) {\n playerBoxes[i] = new JComboBox();\n playerBoxes[i].addItem(\"String_Node_Str\");\n playerBoxes[i].addItem(\"String_Node_Str\");\n if (testPlayers.length > 0 && i < playerList.length) {\n playerNameFields[i] = new JTextField(playerList[i]);\n } else {\n playerNameFields[i] = new JTextField();\n }\n if (playerNameFields[i].getText().length() > 0) {\n playerBoxes[i].setSelectedIndex(1);\n } else {\n playerBoxes[i].setSelectedIndex(0);\n }\n playersPane.add(playerBoxes[i]);\n playersPane.add(playerNameFields[i]);\n }\n playersPane.setVisible(true);\n}\n"
"private boolean inChild(int x, int y) {\n if (getChildCount() > 0) {\n final View child = getChildAt(0);\n return !(y < child.getTop() || y >= child.getBottom() || x < child.getLeft() - scrollX || x >= child.getRight() - scrollX);\n }\n return false;\n}\n"
"private int[] getDisplayColorCalibrationArray() {\n try {\n if (checkService()) {\n return sService.getDisplayColorCalibration();\n }\n } catch (RemoteException e) {\n }\n return null;\n}\n"
"private static CronDefinition quartz() {\n return CronDefinitionBuilder.defineCron().withSeconds().and().withMinutes().and().withHours().and().withDayOfMonth().supportsHash().supportsL().supportsW().supportsLW().supportsQuestionMark().and().withMonth().and().withDayOfWeek().withValidRange(1, 7).withMondayDoWValue(2).supportsHash().supportsL().supportsW().supportsQuestionMark().and().withYear().withValidRange(1970, 2099).and().lastFieldOptional().instance();\n}\n"
"public List<List<Position>> lines() {\n List<List<Position>> lines = new LinkedList<List<Position>>();\n List<Position> line;\n line = new LinkedList<Position>();\n for (int x = 0; x < Model.LEVELS - z; x++) {\n line.add(at(x, y, z));\n }\n lines.add(line);\n line = new LinkedList<Position>();\n for (int y = 0; y < Model.LEVELS - z; y++) {\n line.add(at(x, y, z));\n }\n lines.add(line);\n if (onFirstDiagonal()) {\n line = new LinkedList<Position>();\n for (int xy = 0; xy < Model.LEVELS - z; xy++) {\n if (isValid(xy, xy, z))\n line.add(at(xy, xy, z));\n }\n lines.add(line);\n }\n if (onSecondDiagonal()) {\n line = new LinkedList<Position>();\n for (int xy = 0; xy < Model.LEVELS - z; xy++) {\n if (isValid(xy, Model.LEVELS_1 - z - xy, z))\n line.add(at(xy, Model.LEVELS_1 - z - xy, z));\n }\n lines.add(line);\n }\n return lines;\n}\n"
"public String getTableOriginalColumnPath(String tableName, String columnName) {\n Object tableInfo = this.tableInfos.get(tableName == null ? \"String_Node_Str\" : tableName.trim());\n if (tableInfo != null)\n return ((TableInfo) tableInfo).getOriginalPath(columnName == null ? \"String_Node_Str\" : columnName.trim());\n else\n return null;\n}\n"
"protected void endPage() {\n if (context.isAutoPageBreak()) {\n context.setAutoPageBreak(false);\n autoPageBreak();\n }\n if (isPageEmpty()) {\n if (!isFirst) {\n if (isLast) {\n context.setPageNumber(context.getPageNumber() - 1);\n context.setPageCount(context.getPageCount() - 1);\n resolveTotalPage();\n }\n return;\n } else {\n if (!isLast) {\n return;\n }\n }\n }\n MasterPageDesign mp = getMasterPage(report);\n if (mp instanceof SimpleMasterPageDesign) {\n if (isFirst && !((SimpleMasterPageDesign) mp).isShowHeaderOnFirst()) {\n removeHeader();\n isFirst = false;\n }\n if (isLast && !((SimpleMasterPageDesign) mp).isShowFooterOnLast()) {\n removeFooter();\n }\n if (((SimpleMasterPageDesign) mp).isFloatingFooter()) {\n floatingFooter();\n }\n }\n if (isFirst) {\n isFirst = false;\n }\n emitter.startPage(pageContent);\n emitter.endPage(pageContent);\n pageBreakEvent();\n if (!isLast) {\n context.setPageNumber(context.getPageNumber() + 1);\n context.setPageCount(context.getPageCount() + 1);\n }\n}\n"
"public PointF getTrans(float x, float y) {\n ViewPortHandler vph = mChart.getViewPortHandler();\n float xTrans = x - vph.offsetLeft();\n float yTrans = 0f;\n if (inverted()) {\n yTrans = -(y - vph.offsetTop());\n } else {\n yTrans = -(mChart.getMeasuredHeight() - y - vph.offsetBottom());\n }\n return new PointF(xTrans, yTrans);\n}\n"
"public void onLoadFinished(Loader<ObaStopsForLocationResponse> loader, ObaStopsForLocationResponse response) {\n Log.d(TAG, \"String_Node_Str\");\n mFragment.showProgress(false);\n if (response.getCode() != ObaApi.OBA_OK) {\n Activity act = mFragment.getActivity();\n Toast.makeText(act, act.getString(R.string.main_stop_errors), Toast.LENGTH_LONG).show();\n return;\n }\n if (response.getOutOfRange()) {\n mFragment.notifyOutOfRange();\n return;\n }\n List<ObaStop> stops = Arrays.asList(response.getStops());\n mFragment.showStops(stops, response);\n}\n"