content
stringlengths
40
137k
"public static boolean matches(IBond bondA1, IBond bondA2, boolean matchBond, boolean shouldMatchRings, boolean matchAtomTypes) {\n if (!isAtomMatch(bondA1, bondA2, shouldMatchRings, matchAtomTypes)) {\n return false;\n }\n return isBondMatch(new DefaultBondMatcher(bondA1, matchBond, shouldMatchRings, matchAtomTypes), bondA2);\n}\n"
"private String getFullWmicResult(String alias, String verb, String property) {\n StringBuilder res = new StringBuilder();\n BufferedReader in = null;\n BufferedWriter bw = null;\n try {\n ProcessBuilder pb = new ProcessBuilder(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", alias, verb, property);\n Process p = pb.start();\n bw = new BufferedWriter(new OutputStreamWriter(p.getOutputStream()));\n bw.write(13);\n bw.flush();\n p.waitFor();\n if (p.exitValue() == 0) {\n in = new BufferedReader(new InputStreamReader(p.getInputStream()));\n String line = null;\n while ((line = in.readLine()) != null) {\n line = line.trim();\n if (line.length() == 0) {\n continue;\n }\n if (line.toLowerCase(Locale.US).indexOf(property.toLowerCase()) != -1) {\n continue;\n }\n res.append(line).append(\"String_Node_Str\");\n }\n }\n } catch (Exception e) {\n } finally {\n if (in != null) {\n try {\n in.close();\n } catch (IOException e) {\n }\n }\n if (bw != null) {\n try {\n bw.close();\n } catch (IOException e) {\n }\n }\n }\n return res.toString();\n}\n"
"public SerializableClassDescriptor run() {\n final SerializableClassRegistry reg = SerializableClassRegistry.getInstance();\n final SerializableClass serializableClass = reg.lookup(subject);\n final SerializableField[] fields = serializableClass.getFields();\n final boolean hasWriteObject = serializableClass.hasWriteObject();\n try {\n return new BasicSerializableClassDescriptor(serializableClass, superDescriptor, fields, Externalizable.class.isAssignableFrom(subject) ? Protocol.ID_EXTERNALIZABLE_CLASS : hasWriteObject ? Protocol.ID_WRITE_OBJECT_CLASS : Protocol.ID_SERIALIZABLE_CLASS);\n } catch (ClassNotFoundException e) {\n throw new NoClassDefFoundError(e.getMessage());\n }\n}\n"
"private static boolean copyShort(short[] data, ByteBuffer targetBuffer, SerializeState state) {\n int totalBytes = state.getTotalBytes();\n int remainingCapacity = targetBuffer.remaining();\n int bytesCopied = state.getBytesCopied();\n int remainingToCopy = data.length * 2 - bytesCopied;\n int canCopy = (remainingCapacity > remainingToCopy ? remainingToCopy : remainingCapacity) / 2;\n int offSet = bytesCopied / 2;\n for (int i = 0; i < canCopy; i++) {\n targetBuffer.putShort(data[i + offSet]);\n }\n totalBytes += canCopy * 2;\n state.setTotalBytes(totalBytes);\n if (canCopy == remainingToCopy) {\n state.setData(null);\n state.setBytesCopied(0);\n return true;\n } else {\n state.setBytesCopied(canCopy * 2 + bytesCopied);\n return false;\n }\n}\n"
"public void testSubscriptionAfterApplicationNameUpdate() throws Exception {\n Map<String, String> headers = new HashMap<String, String>();\n headers.put(\"String_Node_Str\", apiStore.getSession());\n HttpResponse response = HTTPSClientUtils.doGet(storeURLHttp + \"String_Node_Str\", headers);\n Assert.assertEquals(response.getResponseCode(), HttpStatus.SC_OK, \"String_Node_Str\");\n response = apiStore.getAllSubscriptionsOfApplication(APP_NAME_TO_UPDATE);\n verifyResponse(response);\n Assert.assertTrue(response.getData().contains(API_NAME), \"String_Node_Str\");\n}\n"
"public void testTimeAffectsNanos() {\n long now = 1283895273005L;\n Timestamp t = new Timestamp(now);\n assertEquals(5000000, t.getNanos());\n t.setTime(now + 1);\n assertEquals(6000000, t.getNanos());\n}\n"
"private void send(Message m, int priority) {\n if (!supportsGGEP())\n m = m.stripExtendedPayload();\n int smh = hopsFlowMax;\n if ((smh > -1) && (m instanceof QueryRequest) && (m.getHops() >= smh))\n return;\n repOk();\n Assert.that(_outputQueue != null, \"String_Node_Str\");\n synchronized (_outputQueueLock) {\n _numMessagesSent++;\n _outputQueue[priority].add(m);\n int dropped = _outputQueue[priority].resetDropped();\n addSentDropped(dropped);\n _queued += 1 - dropped;\n _lastPriority = priority;\n _outputQueueLock.notify();\n }\n repOk();\n}\n"
"private void processDataElementAttributes(DataElementAttributes dataAttrs) {\n if (dataAttrs == null)\n return;\n String nativeName = dataAttrs.getName();\n String name = newParam.getName();\n if (StringUtil.isBlank(name) || (!StringUtil.isBlank(nativeName) && !name.equalsIgnoreCase(nativeName))) {\n newParam.setName(nativeName);\n }\n newParam.setNativeName(nativeName);\n newParam.setPosition(new Integer(dataAttrs.getPosition()));\n Integer newPos = new Integer(0);\n Integer pos = newParam.getPosition();\n if (pos == null || pos.intValue() < 0)\n newParam.setPosition(newPos);\n newParam.setNativeDataType(new Integer(dataAttrs.getNativeDataTypeCode()));\n String dataType = getROMDataType(dataSourceId, dataSetId, newParam, setDefinedParams.iterator());\n if (dataType == null || !DesignChoiceConstants.PARAM_TYPE_BOOLEAN.equalsIgnoreCase(dataType))\n newParam.setParameterDataType(dataType);\n ElementNullability nullability = dataAttrs.getNullability();\n processElementNullability(nullability);\n}\n"
"public void writePortableData(EntityPlayer player, NBTTagCompound tag) {\n if (!canPlayerAccess(player)) {\n return;\n }\n tag.setByte(\"String_Node_Str\", distance);\n tag.setByte(\"String_Node_Str\", intensity);\n tag.setByte(\"String_Node_Str\", duration);\n}\n"
"private void imageDownloaded() {\n if (banner != null && banner.isImageBanner()) {\n if (!flipper.getCurrentView().equals(image))\n flipper.showNext();\n } else\n flipper.startFlipping();\n show();\n}\n"
"public void stopRecord() throws InterruptedException {\n synchronized (REC_LOCK) {\n if (isRecordStarted) {\n isTryStopAudio = true;\n if (isRecordAudioStarted) {\n mAudioThread.join();\n isRecordAudioStarted = false;\n }\n synchronized (VIDEO_LOCK) {\n if (isRecordVideoStarted) {\n mEGLEncodeSurface = null;\n videoEncodeStep(true);\n }\n isRecordVideoStarted = false;\n }\n mAudioEncoder.stop();\n mAudioEncoder.release();\n mVideoEncoder.stop();\n mVideoEncoder.release();\n try {\n if (isMuxStarted) {\n isMuxStarted = false;\n mMuxer.stop();\n mMuxer.release();\n }\n } catch (IllegalStateException e) {\n e.printStackTrace();\n File file = new File(mOutputPath);\n if (file.exists() && file.delete()) {\n AvLog.d(\"String_Node_Str\" + mOutputPath);\n }\n }\n mAudioEncoder = null;\n mVideoEncoder = null;\n mMuxer = null;\n mAudioTrack = -1;\n mVideoTrack = -1;\n isRecordStarted = false;\n }\n }\n}\n"
"protected void okPressed() {\n try {\n inputParameter.setName(nameEditor.getText());\n inputParameter.setPromptText(UIUtil.convertToModelString(promptTextEditor.getText(), true));\n String newControlType = getSelectedControlType();\n if (PARAM_CONTROL_COMBO.equals(newControlType)) {\n newControlType = DesignChoiceConstants.PARAM_CONTROL_LIST_BOX;\n inputParameter.setMustMatch(false);\n } else if (PARAM_CONTROL_LIST.equals(newControlType)) {\n newControlType = DesignChoiceConstants.PARAM_CONTROL_LIST_BOX;\n inputParameter.setMustMatch(false);\n } else {\n inputParameter.setProperty(ScalarParameterHandle.MUCH_MATCH_PROP, null);\n }\n inputParameter.setControlType(newControlType);\n if (DesignChoiceConstants.PARAM_TYPE_DATETIME.equals(getSelectedDataType())) {\n defaultValue = DEUtil.convertToXMLString(DataTypeUtil.toDate(defaultValue, ULocale.US));\n }\n inputParameter.setDefaultValue(defaultValue);\n inputParameter.setDataType(DATA_TYPE_CHOICE_SET.findChoiceByDisplayName(dataTypeChooser.getText()).getName());\n PropertyHandle selectionChioceList = inputParameter.getPropertyHandle(ScalarParameterHandle.SELECTION_LIST_PROP);\n selectionChioceList.setValue(null);\n if (isStatic()) {\n inputParameter.setValueType(DesignChoiceConstants.PARAM_VALUE_TYPE_STATIC);\n if (!DesignChoiceConstants.PARAM_CONTROL_TEXT_BOX.equals(newControlType) && !DesignChoiceConstants.PARAM_CONTROL_CHECK_BOX.equals(newControlType)) {\n for (Iterator iter = choiceList.iterator(); iter.hasNext(); ) {\n SelectionChoice choice = (SelectionChoice) iter.next();\n if (isValidValue(choice.getValue()) == null) {\n selectionChioceList.addItem(choice);\n }\n }\n }\n inputParameter.setDataSetName(null);\n inputParameter.setValueExpr(null);\n inputParameter.setLabelExpr(null);\n } else {\n inputParameter.setValueType(DesignChoiceConstants.PARAM_VALUE_TYPE_DYNAMIC);\n inputParameter.setDataSetName(dataSetChooser.getText());\n inputParameter.setValueExpr(getExpression(columnChooser.getText()));\n inputParameter.setLabelExpr(getExpression(displayTextChooser.getText()));\n }\n inputParameter.setHelpText(UIUtil.convertToModelString(helpTextEditor.getText(), false));\n inputParameter.setCategory(formatCategroy);\n inputParameter.setPattern(formatPattern);\n if (isStatic() && (PARAM_CONTROL_COMBO.equals(getSelectedControlType()) || DesignChoiceConstants.PARAM_CONTROL_RADIO_BUTTON.equals(getSelectedControlType())) && !containValue(null, defaultValue, COLUMN_VALUE)) {\n defaultValue = null;\n }\n if (dirtyProperties.containsKey(CHECKBOX_HIDDEN)) {\n inputParameter.setHidden(getProperty(CHECKBOX_HIDDEN));\n }\n if (dirtyProperties.containsKey(CHECKBOX_ALLOW_NULL)) {\n inputParameter.setAllowNull(getProperty(CHECKBOX_ALLOW_NULL));\n }\n if (allowBlank.isEnabled()) {\n if (dirtyProperties.containsKey(CHECKBOX_ALLOW_BLANK)) {\n inputParameter.setAllowBlank(getProperty(CHECKBOX_ALLOW_BLANK));\n }\n } else {\n inputParameter.setProperty(ScalarParameterHandle.ALLOW_BLANK_PROP, null);\n }\n if (doNotEcho.isEnabled()) {\n if (dirtyProperties.containsKey(CHECKBOX_DO_NOT_ECHO)) {\n inputParameter.setConcealValue(getProperty(CHECKBOX_DO_NOT_ECHO));\n }\n } else {\n inputParameter.setProperty(ScalarParameterHandle.CONCEAL_VALUE_PROP, null);\n }\n if (needSort.isEnabled()) {\n if (dirtyProperties.containsKey(CHECKBOX_SORT)) {\n inputParameter.setFixedOrder(!getProperty(CHECKBOX_SORT));\n }\n } else {\n inputParameter.setProperty(ScalarParameterHandle.FIXED_ORDER_PROP, null);\n }\n if (!isStatic() && !StringUtil.isBlank(listLimit.getText())) {\n try {\n inputParameter.setListlimit(Integer.parseInt(listLimit.getText()));\n } catch (NumberFormatException ex) {\n ExceptionHandler.openErrorMessageBox(ERROR_TITLE_INVALID_LIST_LIMIT, MessageFormat.format(ERROR_MSG_INVALID_LIST_LIMIT, new Object[] { Integer.toString(Integer.MAX_VALUE) }));\n }\n } else {\n inputParameter.setProperty(ScalarParameterHandle.LIST_LIMIT_PROP, null);\n }\n } catch (Exception e) {\n ExceptionHandler.handle(e);\n return;\n }\n setResult(inputParameter);\n super.okPressed();\n}\n"
"public String aliasName() {\n return (StringUtils.isNotNullOrEmpty(aliasName) && shouldAddIdentifierToAliasName) ? QueryBuilder.quoteIfNeeded(aliasName) : aliasName;\n}\n"
"public void setProperty(String sProperty, Object oValue) {\n if (sProperty.equals(IDeviceRenderer.UPDATE_NOTIFIER)) {\n _iun = (IUpdateNotifier) oValue;\n _lhmAllTriggers.clear();\n Object obj = _iun.peerInstance();\n if (obj instanceof JComponent) {\n JComponent jc = (JComponent) obj;\n if (_eh != null) {\n jc.removeMouseListener(_eh);\n jc.removeMouseMotionListener(_eh);\n jc.removeKeyListener(_eh);\n jc.removeFocusListener(_eh);\n }\n _eh = new SwingEventHandler(iv, _lhmAllTriggers, _iun, getULocale());\n jc.addMouseListener(_eh);\n jc.addMouseMotionListener(_eh);\n jc.addKeyListener(_eh);\n jc.addFocusListener(_eh);\n }\n } else if (sProperty.equals(IDeviceRenderer.GRAPHICS_CONTEXT)) {\n _g2d = (Graphics2D) oValue;\n _g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n _g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n _g2d.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON);\n _g2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n logger.log(ILogger.INFORMATION, Messages.getString(\"String_Node_Str\", new Object[] { _g2d }, getULocale()));\n } else if (sProperty.equals(IDeviceRenderer.DPI_RESOLUTION)) {\n getDisplayServer().setDpiResolution(((Integer) oValue).intValue());\n }\n}\n"
"public void renderSmartConection(int x, int y, int z, IPartRenderHelper rh, RenderBlocks renderer, int channels, ForgeDirection of) {\n TileEntity te = this.tile.getWorldObj().getTileEntity(x + of.offsetX, y + of.offsetY, z + of.offsetZ);\n IPartHost ccph = te instanceof IPartHost ? (IPartHost) te : null;\n IGridHost ghh = te instanceof IGridHost ? (IGridHost) te : null;\n boolean isGlass = false;\n AEColor myColor = getCableColor();\n if (ghh != null && ccph != null && ghh.getCableConnectionType(of.getOpposite()) == AECableType.GLASS && ccph.getPart(of.getOpposite()) == null && ccph.getColor() != AEColor.Transparent) {\n isGlass = true;\n rh.setTexture(getGlassTexture(myColor = ccph.getColor()));\n } else if (ccph == null && ghh != null && ghh.getCableConnectionType(of.getOpposite()) != AECableType.GLASS) {\n rh.setTexture(getSmartTexture(myColor));\n switch(of) {\n case DOWN:\n rh.setBounds(5, 0, 5, 11, 4, 11);\n break;\n case EAST:\n rh.setBounds(12, 5, 5, 16, 11, 11);\n break;\n case NORTH:\n rh.setBounds(5, 5, 0, 11, 11, 4);\n break;\n case SOUTH:\n rh.setBounds(5, 5, 12, 11, 11, 16);\n break;\n case UP:\n rh.setBounds(5, 12, 5, 11, 16, 11);\n break;\n case WEST:\n rh.setBounds(0, 5, 5, 4, 11, 11);\n break;\n default:\n return;\n }\n rh.renderBlock(x, y, z, renderer);\n if (true) {\n setSmartConnectionRotations(of, renderer);\n IIcon defa = new TaughtIcon(getChannelTex(channels, false).getIcon(), -0.2f);\n IIcon defb = new TaughtIcon(getChannelTex(channels, true).getIcon(), -0.2f);\n if (of == ForgeDirection.EAST || of == ForgeDirection.WEST) {\n AEBaseBlock blk = (AEBaseBlock) rh.getBlock();\n FlipableIcon ico = blk.getRendererInstance().getTexture(ForgeDirection.EAST);\n ico.setFlip(false, true);\n }\n Tessellator.instance.setBrightness(15 << 20 | 15 << 5);\n Tessellator.instance.setColorOpaque_I(myColor.mediumVariant);\n rh.setTexture(defa, defa, defa, defa, defa, defa);\n renderAllFaces((AEBaseBlock) rh.getBlock(), x, y, z, renderer);\n Tessellator.instance.setColorOpaque_I(myColor.whiteVariant);\n rh.setTexture(defb, defb, defb, defb, defb, defb);\n renderAllFaces((AEBaseBlock) rh.getBlock(), x, y, z, renderer);\n renderer.uvRotateBottom = renderer.uvRotateEast = renderer.uvRotateNorth = renderer.uvRotateSouth = renderer.uvRotateTop = renderer.uvRotateWest = 0;\n }\n rh.setTexture(getTexture(getCableColor()));\n } else if (ghh != null && ccph != null && ghh.getCableConnectionType(of) != AECableType.GLASS && ccph.getColor() != AEColor.Transparent && ccph.getPart(of.getOpposite()) == null)\n rh.setTexture(getSmartTexture(myColor = ccph.getColor()));\n else\n rh.setTexture(getSmartTexture(getCableColor()));\n switch(of) {\n case DOWN:\n rh.setBounds(6, 0, 6, 10, 5, 10);\n break;\n case EAST:\n rh.setBounds(11, 6, 6, 16, 10, 10);\n break;\n case NORTH:\n rh.setBounds(6, 6, 0, 10, 10, 5);\n break;\n case SOUTH:\n rh.setBounds(6, 6, 11, 10, 10, 16);\n break;\n case UP:\n rh.setBounds(6, 11, 6, 10, 16, 10);\n break;\n case WEST:\n rh.setBounds(0, 6, 6, 5, 10, 10);\n break;\n default:\n return;\n }\n rh.renderBlock(x, y, z, renderer);\n if (!isGlass) {\n setSmartConnectionRotations(of, renderer);\n IIcon defa = new TaughtIcon(getChannelTex(channels, false).getIcon(), -0.2f);\n IIcon defb = new TaughtIcon(getChannelTex(channels, true).getIcon(), -0.2f);\n Tessellator.instance.setBrightness(15 << 20 | 15 << 5);\n Tessellator.instance.setColorOpaque_I(myColor.mediumVariant);\n rh.setTexture(defa, defa, defa, defa, defa, defa);\n renderAllFaces((AEBaseBlock) rh.getBlock(), x, y, z, renderer);\n Tessellator.instance.setColorOpaque_I(myColor.whiteVariant);\n rh.setTexture(defb, defb, defb, defb, defb, defb);\n renderAllFaces((AEBaseBlock) rh.getBlock(), x, y, z, renderer);\n renderer.uvRotateBottom = renderer.uvRotateEast = renderer.uvRotateNorth = renderer.uvRotateSouth = renderer.uvRotateTop = renderer.uvRotateWest = 0;\n }\n}\n"
"public void addEventListener(final String eventName, final LeoObject function) {\n switch(eventName.toLowerCase()) {\n case \"String_Node_Str\":\n {\n this.dispatcher.addEventListener(BombDisarmedEvent.class, new BombDisarmedListener() {\n public void onBombDisarmedEvent(BombDisarmedEvent event) {\n callFunction(eventName, function, event);\n }\n });\n break;\n }\n case \"String_Node_Str\":\n {\n this.dispatcher.addEventListener(BombExplodedEvent.class, new BombExplodedListener() {\n public void onBombExplodedEvent(BombExplodedEvent event) {\n callFunction(eventName, function, event);\n }\n });\n break;\n }\n case \"String_Node_Str\":\n {\n this.dispatcher.addEventListener(BombPlantedEvent.class, new BombPlantedListener() {\n public void onBombPlanted(BombPlantedEvent event) {\n callFunction(eventName, function, event);\n }\n });\n break;\n }\n case \"String_Node_Str\":\n {\n this.dispatcher.addEventListener(FlagCapturedEvent.class, new FlagCapturedListener() {\n public void onFlagCapturedEvent(FlagCapturedEvent event) {\n callFunction(eventName, function, event);\n }\n });\n break;\n }\n case \"String_Node_Str\":\n {\n this.dispatcher.addEventListener(FlagReturnedEvent.class, new FlagReturnedListener() {\n public void onFlagReturnedEvent(FlagReturnedEvent event) {\n callFunction(eventName, function, event);\n }\n });\n break;\n }\n case \"String_Node_Str\":\n {\n addEventListener(FlagStolenEvent.class, new FlagStolenListener() {\n\n public void onFlagStolenEvent(FlagStolenEvent event) {\n callFunction(eventName, function, event);\n }\n });\n break;\n }\n case \"String_Node_Str\":\n {\n this.dispatcher.addEventListener(GameEndEvent.class, new GameEndListener() {\n public void onGameEnd(GameEndEvent event) {\n callFunction(eventName, function, event);\n }\n });\n break;\n }\n case \"String_Node_Str\":\n {\n this.dispatcher.addEventListener(KillRollEvent.class, new KillRollListener() {\n public void onKillRoll(KillRollEvent event) {\n callFunction(eventName, function, event);\n }\n });\n break;\n }\n case \"String_Node_Str\":\n {\n this.dispatcher.addEventListener(KillStreakEvent.class, new KillStreakListener() {\n public void onKillStreak(KillStreakEvent event) {\n callFunction(eventName, function, event);\n }\n });\n break;\n }\n case \"String_Node_Str\":\n {\n this.dispatcher.addEventListener(PlayerAwardEvent.class, new PlayerAwardListener() {\n public void onPlayerAward(PlayerAwardEvent event) {\n callFunction(eventName, function, event);\n }\n });\n break;\n }\n case \"String_Node_Str\":\n {\n this.dispatcher.addEventListener(PlayerJoinedEvent.class, new PlayerJoinedListener() {\n public void onPlayerJoined(PlayerJoinedEvent event) {\n callFunction(eventName, function, event);\n }\n });\n break;\n }\n case \"String_Node_Str\":\n {\n this.dispatcher.addEventListener(PlayerKilledEvent.class, new PlayerKilledListener() {\n public void onPlayerKilled(PlayerKilledEvent event) {\n callFunction(eventName, function, event);\n }\n });\n break;\n }\n case \"String_Node_Str\":\n {\n this.dispatcher.addEventListener(PlayerLeftEvent.class, new PlayerLeftListener() {\n public void onPlayerLeft(PlayerLeftEvent event) {\n callFunction(eventName, function, event);\n }\n });\n break;\n }\n case \"String_Node_Str\":\n {\n this.dispatcher.addEventListener(PlayerSpawnedEvent.class, new PlayerSpawnedListener() {\n public void onPlayerSpawned(PlayerSpawnedEvent event) {\n callFunction(eventName, function, event);\n }\n });\n break;\n }\n case \"String_Node_Str\":\n {\n this.dispatcher.addEventListener(RoundEndedEvent.class, new RoundEndedListener() {\n public void onRoundEnded(RoundEndedEvent event) {\n callFunction(eventName, function, event);\n }\n });\n break;\n }\n case \"String_Node_Str\":\n {\n this.dispatcher.addEventListener(RoundStartedEvent.class, new RoundStartedListener() {\n public void onRoundStarted(RoundStartedEvent event) {\n callFunction(eventName, function, event);\n }\n });\n break;\n }\n case \"String_Node_Str\":\n {\n this.dispatcher.addEventListener(SoundEmittedEvent.class, new SoundEmitterListener() {\n public void onSoundEmitted(SoundEmittedEvent event) {\n callFunction(eventName, function, event);\n }\n });\n break;\n }\n case \"String_Node_Str\":\n {\n this.dispatcher.addEventListener(SurvivorEvent.class, new SurvivorEventListener() {\n public void onSurvivorEvent(SurvivorEvent event) {\n callFunction(eventName, function, event);\n }\n });\n break;\n }\n case \"String_Node_Str\":\n {\n this.dispatcher.addEventListener(TileRemovedEvent.class, new TileRemovedListener() {\n public void onTileRemoved(TileRemovedEvent event) {\n callFunction(eventName, function, event);\n }\n });\n break;\n }\n default:\n {\n Cons.println(\"String_Node_Str\" + eventName + \"String_Node_Str\");\n }\n }\n}\n"
"static String getClusterName(ProgramRun programRun) {\n String cleanedAppName = programRun.getApplication().replaceAll(\"String_Node_Str\", \"String_Node_Str\").toLowerCase();\n int maxAppLength = 51 - 5 - 1 - programRun.getRun().length();\n if (cleanedAppName.length() > maxAppLength) {\n cleanedAppName = cleanedAppName.substring(0, maxAppLength);\n }\n return cleanedAppName + \"String_Node_Str\" + programRun.getRun();\n}\n"
"public float getBackoff(WordSequence wordSequence) {\n float logBackoff = 0.0f;\n UnigramProbability prob = null;\n if (prob != null) {\n logBackoff = prob.getLogBackoff();\n }\n return logBackoff;\n}\n"
"public void cancelLongPress() {\n removeLongPressCallback();\n}\n"
"private void setupForm() {\n buildWood = createForm(\"String_Node_Str\", \"String_Node_Str\", BuildingType.WOOD);\n buildClay = createForm(\"String_Node_Str\", \"String_Node_Str\", BuildingType.CLAY);\n buildStable = createForm(\"String_Node_Str\", \"String_Node_Str\", BuildingType.STABLE);\n buildBarracks = createForm(\"String_Node_Str\", \"String_Node_Str\", BuildingType.BARRACKS);\n buildUpgrades = createForm(\"String_Node_Str\", \"String_Node_Str\", BuildingType.UPGRADE);\n buildDestruction = createForm(\"String_Node_Str\", \"String_Node_Str\", BuildingType.DESTRUCTION);\n buildGrain = createForm(\"String_Node_Str\", \"String_Node_Str\", BuildingType.GRAIN);\n buildIron = createForm(\"String_Node_Str\", \"String_Node_Str\", BuildingType.IRON);\n add(buildWood);\n add(buildClay);\n add(buildStable);\n add(buildBarracks);\n add(buildUpgrades);\n add(buildDestruction);\n add(buildGrain);\n add(buildIron);\n}\n"
"static private List<Match> findCandidateMatches(ScreenRegion screenRegion, String word, double minScore, boolean firstMatchOnly) {\n ScreenRegion snapshot = screenRegion.snapshot();\n TextMap map = TextMap.createFrom(snapshot.capture());\n List<TextMatch> ret = Lists.newArrayList();\n for (WeightedFontModel fontModel : fontModels) {\n logger.trace(\"String_Node_Str\" + fontModel);\n BufferedImage img = TextImageGenerator.create(word, fontModel.getFont(), fontModel.getSize(), fontModel.getTracking());\n ImageTarget t = new ImageTarget(img);\n t.setMinScore(minScore);\n List<ScreenRegion> rs = snapshot.findAll(t);\n if (!rs.isEmpty()) {\n logger.trace(\"String_Node_Str\" + rs.get(0).getScore());\n for (ScreenRegion r : rs) {\n int localx = r.x - snapshot.x;\n int localy = r.y - snapshot.y;\n if (map.computeTextScore(localx, localy, r.width, r.height) > 0) {\n Match m = new Match(r, fontModel);\n ret.add(m);\n fontModel.maxScore = Math.max(fontModel.maxScore, r.getScore());\n }\n }\n double quickAcceptThreshold = Math.max(0.65, fontModel.maxScore * 0.85);\n if (firstMatchOnly && rs.get(0).getScore() >= quickAcceptThreshold) {\n return ret;\n }\n }\n }\n return ret;\n}\n"
"public Document getCustomDocument() {\n return safe(getWrapped().getCustomDocument());\n}\n"
"public MappeableContainer flip(short i) {\n final int x = BufferUtil.toIntUnsigned(i);\n if (cardinality == MappeableArrayContainer.DEFAULT_MAX_SIZE + 1) {\n if ((bitmap.get(x / 64) & (1l << x)) != 0) {\n --cardinality;\n bitmap.put(x / 64, bitmap.get(x / 64) & ~(1l << x));\n return this.toArrayContainer();\n }\n }\n cardinality += 1 - 2 * ((bitmap.get(x / 64) & (1l << x)) >>> x);\n bitmap.put(x / 64, bitmap.get(x / 64) ^ (1l << x));\n return this;\n}\n"
"private boolean checkDeclaredFields(TreeLogger logger, TypeInfoComputed typeInfo, TypePath parent, ProblemReport problems) {\n JClassType classOrInterface = (JClassType) typeInfo.getType();\n if (classOrInterface.isEnum() != null) {\n return true;\n }\n JClassType baseType = getBaseType(classOrInterface);\n boolean allSucceeded = true;\n JField[] fields = baseType.getFields();\n if (fields.length > 0) {\n TreeLogger localLogger = logger.branch(TreeLogger.DEBUG, \"String_Node_Str\" + classOrInterface.getParameterizedQualifiedSourceName() + \"String_Node_Str\", null);\n for (JField field : fields) {\n if (!shouldConsiderForSerialization(localLogger, suppressNonStaticFinalFieldWarnings, field)) {\n continue;\n }\n TreeLogger fieldLogger = localLogger.branch(TreeLogger.DEBUG, field.toString(), null);\n JType fieldType = field.getType();\n TypePath path = TypePaths.createFieldPath(parent, field);\n if (typeInfo.isManuallySerializable() && fieldType.getLeafType() == typeOracle.getJavaLangObject()) {\n checkAllSubtypesOfObject(fieldLogger.branch(TreeLogger.WARN, \"String_Node_Str\", null), path, problems);\n } else {\n allSucceeded &= checkTypeInstantiable(fieldLogger, fieldType, path, problems);\n }\n }\n }\n boolean succeeded = allSucceeded || typeInfo.isManuallySerializable();\n if (succeeded) {\n typeInfo.setFieldSerializable();\n }\n return succeeded;\n}\n"
"public DeploymentImpl beginCreate() {\n if (creatableResourceGroup != null) {\n creatableResourceGroup.create();\n }\n DeploymentInner inner = new DeploymentInner().withProperties(new DeploymentProperties());\n inner.properties().withMode(mode());\n inner.properties().withTemplate(template());\n inner.properties().withTemplateLink(templateLink());\n inner.properties().withParameters(parameters());\n inner.properties().withParametersLink(parametersLink());\n setInner(this.manager().inner().deployments().beginCreateOrUpdate(resourceGroupName(), name(), inner));\n return this;\n}\n"
"public void draw(Canvas canvas) {\n if (isPlaying) {\n long elapsed = (System.currentTimeMillis() - last_tick);\n if (elapsed >= DURATION) {\n if (frame <= fcount) {\n last_tick = System.currentTimeMillis();\n frame++;\n } else {\n this.isPlaying = false;\n }\n }\n drawFrame(canvas);\n if (frame <= fcount)\n view.repaint();\n }\n}\n"
"protected void drawContainer(IContainerArea container) {\n IStyle style = container.getStyle();\n if (null == style) {\n return;\n }\n ContainerPosition curPos = getContainerPosition();\n if (container.getContent() != null) {\n int layoutX = curPos.x + getX(container);\n int layoutY = curPos.y + getY(container);\n int startX = layoutX;\n int startY = layoutY;\n int width = getWidth(container);\n int height = getHeight(container);\n Color bc = PropertyUtil.getColor(style.getProperty(StyleConstants.STYLE_BACKGROUND_COLOR));\n pageGraphic.drawBackgroundColor(bc, startX, startY, width, height);\n drawBackgroundImage(style, startX, startY, width, height);\n int borderTopWidth = getScaledValue(style.getProperty(StyleConstants.STYLE_BORDER_TOP_WIDTH));\n int borderLeftWidth = getScaledValue(style.getProperty(StyleConstants.STYLE_BORDER_LEFT_WIDTH));\n int borderBottomWidth = getScaledValue(style.getProperty(StyleConstants.STYLE_BORDER_BOTTOM_WIDTH));\n int borderRightWidth = getScaledValue(style.getProperty(StyleConstants.STYLE_BORDER_RIGHT_WIDTH));\n if (borderTopWidth > 0 || borderLeftWidth > 0 || borderBottomWidth > 0 || borderRightWidth > 0) {\n Color borderTopColor = PropertyUtil.getColor(style.getProperty(StyleConstants.STYLE_BORDER_TOP_COLOR));\n Color borderRightColor = PropertyUtil.getColor(style.getProperty(StyleConstants.STYLE_BORDER_RIGHT_COLOR));\n Color borderBottomColor = PropertyUtil.getColor(style.getProperty(StyleConstants.STYLE_BORDER_BOTTOM_COLOR));\n Color borderLeftColor = PropertyUtil.getColor(style.getProperty(StyleConstants.STYLE_BORDER_LEFT_COLOR));\n BorderInfo[] borders = new BorderInfo[4];\n borders[BorderInfo.TOP_BORDER] = new BorderInfo(layoutX + borderLeftWidth / 2, layoutY + borderTopWidth / 2, layoutX + getWidth(container) - borderRightWidth / 2, layoutY + borderTopWidth / 2, borderTopWidth, borderTopColor, style.getProperty(StyleConstants.STYLE_BORDER_TOP_STYLE), BorderInfo.TOP_BORDER);\n borders[BorderInfo.RIGHT_BORDER] = new BorderInfo(layoutX + getWidth(container) - borderRightWidth / 2, layoutY + borderTopWidth / 2, layoutX + getWidth(container) - borderRightWidth / 2, layoutY + getHeight(container) - borderBottomWidth / 2, borderRightWidth, borderRightColor, style.getProperty(StyleConstants.STYLE_BORDER_RIGHT_STYLE), BorderInfo.RIGHT_BORDER);\n borders[BorderInfo.BOTTOM_BORDER] = new BorderInfo(layoutX + borderLeftWidth / 2, layoutY + getHeight(container) - borderBottomWidth / 2, layoutX + getWidth(container) - borderRightWidth / 2, layoutY + getHeight(container) - borderBottomWidth / 2, borderBottomWidth, borderBottomColor, style.getProperty(StyleConstants.STYLE_BORDER_BOTTOM_STYLE), BorderInfo.BOTTOM_BORDER);\n borders[BorderInfo.LEFT_BORDER] = new BorderInfo(layoutX + borderLeftWidth / 2, layoutY + borderTopWidth / 2, layoutX + borderLeftWidth / 2, layoutY + getHeight(container) - borderBottomWidth / 2, borderLeftWidth, borderLeftColor, style.getProperty(StyleConstants.STYLE_BORDER_LEFT_STYLE), BorderInfo.LEFT_BORDER);\n drawBorder(borders);\n }\n }\n}\n"
"private static HashSet<String> findWhitelistedTypeDescriptorParts(final String typeDescriptor, final ArrayList<String> whitelistClassRefPrefix, final ArrayList<String> blacklistClassRefPrefix, HashSet<String> whitelistedFieldTypes) {\n final Matcher matcher = TYPE_PARAM_PATTERN.matcher(typeDescriptor);\n while (matcher.find()) {\n final String descriptorPart = matcher.group(2);\n if (scanSpec.pathIsWhitelisted(descriptorPart)) {\n if (whitelistedFieldTypes == null) {\n whitelistedFieldTypes = new HashSet<>();\n }\n final String fieldTypeName = descriptorPart.replace('/', '.');\n whitelistedFieldTypes.add(fieldTypeName);\n }\n }\n return whitelistedFieldTypes;\n}\n"
"public void execute(final Input input) {\n if (StringUtils.isBlank(input.getOption())) {\n input.setOption(Options.HELP.getOptionName());\n }\n switch(Options.fromName(input.getOption())) {\n case DETAILS:\n new PolicyDetails(input).details();\n break;\n case LIST:\n new PolicyList(input).list();\n break;\n case READ:\n new PolicyRead(input).read();\n break;\n case DELETE:\n new PolicyDelete(input).delete();\n break;\n case HELP:\n System.out.println(HELP_MESSAGE);\n break;\n default:\n new PolicyResultManager().defaultOptionMessage(input.getOption(), HELP_MESSAGE);\n }\n}\n"
"public void biTemporalQueryIsWithInNowValueToLongTest3() {\n Long nowValue = 1456876800000l;\n CassandraUtils cu = this.setUpSuite2(nowValue);\n cu.insert(data1);\n cu.insert(data2);\n cu.insert(data3);\n cu.insert(data4);\n cu.insert(data5);\n cu.query(biTemporalSearch(\"String_Node_Str\").operation(\"String_Node_Str\").vtFrom(\"String_Node_Str\").vtTo(\"String_Node_Str\").ttFrom(\"String_Node_Str\").ttTo(\"String_Node_Str\")).count();\n tearDown(cu);\n}\n"
"public void buildFieldsAndMethods() {\n super.buildFieldsAndMethods();\n GroovyTypeDeclaration[] anonymousTypes = ((GroovyTypeDeclaration) referenceContext).getAnonymousTypes();\n if (anonymousTypes != null) {\n for (GroovyTypeDeclaration anonType : anonymousTypes) {\n anonType.scope = new GroovyClassScope(this, anonType);\n anonType.resolve(anonType.enclosingScope);\n }\n }\n for (MethodBinding method : referenceContext.binding.methods()) {\n fixupTypeParameters(method);\n }\n}\n"
"public static Authorizable fromString(String entityString) {\n if (entityString == null || entityString.isEmpty()) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n String[] typeAndId = entityString.split(EntityId.IDSTRING_TYPE_SEPARATOR, 2);\n if (typeAndId.length != 2) {\n throw new IllegalArgumentException(String.format(\"String_Node_Str\", entityString));\n }\n String typeString = typeAndId[0];\n EntityType type = EntityType.valueOf(typeString.toUpperCase());\n String idString = typeAndId[1];\n List<String> idParts = Collections.emptyList();\n switch(type) {\n case KERBEROSPRINCIPAL:\n idParts = Collections.singletonList(idString);\n break;\n case DATASET:\n case DATASET_TYPE:\n case DATASET_MODULE:\n int namespaceSeparatorPos = idString.indexOf(EntityId.IDSTRING_PART_SEPARATOR);\n if (namespaceSeparatorPos > 0) {\n idParts = new ArrayList<>();\n idParts.add(idString.substring(0, namespaceSeparatorPos));\n idParts.add(idString.substring(namespaceSeparatorPos + 1));\n }\n break;\n default:\n idParts = Arrays.asList(EntityId.IDSTRING_PART_SEPARATOR_PATTERN.split(idString));\n }\n Map<EntityType, String> entityParts = new LinkedHashMap<>();\n checkParts(type, idParts, idParts.size() - 1, entityParts);\n return new Authorizable(type, entityParts);\n}\n"
"public boolean hasError() {\n return catastrophe != null || !errorMap.isEmpty();\n}\n"
"private static void initialiseFactory() {\n if (sessionFactory == null || sessionFactory.isClosed()) {\n try {\n log.info(\"String_Node_Str\");\n AnnotationConfiguration config = new AnnotationConfiguration();\n config.setProperty(CONNECTION_PROVIDER_CLASS, ORG_HIBERNATE_CONNECTION_C3_P0_CONNECTION_PROVIDER);\n config.setProperty(C3P0_ACQUIRE_INCREMENT, Settings.get(WaybackSettings.C3P0_ACQUIRE_INCREMENT));\n config.setProperty(C3P0_IDLE_TEST_PERIOD, Settings.get(WaybackSettings.C3P0_IDLE_PERIOD));\n config.setProperty(C3P0_MAX_SIZE, Settings.get(WaybackSettings.C3P0_MAX_SIZE));\n config.setProperty(C3P0_MAX_STATEMENTS, Settings.get(WaybackSettings.C3P0_MAX_STATEMENTS));\n config.setProperty(C3P0_MIN_SIZE, Settings.get(WaybackSettings.C3P0_MIN_SIZE));\n config.setProperty(C3P0_TIMEOUT, Settings.get(WaybackSettings.C3P0_TIMEOUT));\n config.setProperty(HIBERNATE_CONNECTION_DRIVER_CLASS, Settings.get(WaybackSettings.HIBERNATE_DB_DRIVER));\n config.setProperty(HIBERNATE_CONNECTION_URL, Settings.get(WaybackSettings.HIBERNATE_DB_URL));\n config.setProperty(HIBERNATE_DIALECT, Settings.get(WaybackSettings.HIBERNATE_DIALECT));\n config.setProperty(HIBERNATE_FORMAT_SQL, Settings.get(WaybackSettings.HIBERNATE_FORMAT_SQL));\n config.setProperty(HIBERNATE_BYTECODE_USE_REFLECTION_OPTIMIZER, Settings.get(WaybackSettings.HIBERNATE_REFLECTION_OPTIMIZER));\n config.setProperty(HIBERNATE_HBM2DDL_AUTO, Settings.get(WaybackSettings.HIBERNATE_HBM2DDL_AUTO));\n config.setProperty(HIBERNATE_TRANSACTION_FACTORY_CLASS, Settings.get(WaybackSettings.HIBERNATE_TRANSACTION_FACTORY));\n config.setProperty(HIBERNATE_SHOW_SQL, Settings.get(WaybackSettings.HIBERNATE_SHOW_SQL));\n log.info(\"String_Node_Str\" + CONNECTION_PROVIDER_CLASS + \"String_Node_Str\" + ORG_HIBERNATE_CONNECTION_C3_P0_CONNECTION_PROVIDER + \"String_Node_Str\" + C3P0_ACQUIRE_INCREMENT + \"String_Node_Str\" + Settings.get(WaybackSettings.C3P0_ACQUIRE_INCREMENT) + \"String_Node_Str\" + C3P0_IDLE_TEST_PERIOD + \"String_Node_Str\" + Settings.get(WaybackSettings.C3P0_IDLE_PERIOD) + \"String_Node_Str\" + C3P0_MAX_SIZE + \"String_Node_Str\" + Settings.get(WaybackSettings.C3P0_MAX_SIZE) + \"String_Node_Str\" + C3P0_MAX_STATEMENTS + \"String_Node_Str\" + Settings.get(WaybackSettings.C3P0_MAX_STATEMENTS) + \"String_Node_Str\" + C3P0_MIN_SIZE + \"String_Node_Str\" + Settings.get(WaybackSettings.C3P0_MIN_SIZE) + \"String_Node_Str\" + C3P0_TIMEOUT + \"String_Node_Str\" + Settings.get(WaybackSettings.C3P0_TIMEOUT) + \"String_Node_Str\" + HIBERNATE_CONNECTION_DRIVER_CLASS + \"String_Node_Str\" + Settings.get(WaybackSettings.HIBERNATE_DB_DRIVER) + \"String_Node_Str\" + HIBERNATE_CONNECTION_URL + \"String_Node_Str\" + Settings.get(WaybackSettings.HIBERNATE_DB_URL) + \"String_Node_Str\" + HIBERNATE_DIALECT + \"String_Node_Str\" + Settings.get(WaybackSettings.HIBERNATE_DIALECT) + \"String_Node_Str\" + HIBERNATE_FORMAT_SQL + \"String_Node_Str\" + Settings.get(WaybackSettings.HIBERNATE_FORMAT_SQL) + \"String_Node_Str\" + HIBERNATE_BYTECODE_USE_REFLECTION_OPTIMIZER + \"String_Node_Str\" + Settings.get(WaybackSettings.HIBERNATE_REFLECTION_OPTIMIZER) + \"String_Node_Str\" + HIBERNATE_HBM2DDL_AUTO + \"String_Node_Str\" + Settings.get(WaybackSettings.HIBERNATE_HBM2DDL_AUTO) + \"String_Node_Str\" + HIBERNATE_TRANSACTION_FACTORY_CLASS + \"String_Node_Str\" + Settings.get(WaybackSettings.HIBERNATE_TRANSACTION_FACTORY) + \"String_Node_Str\" + HIBERNATE_SHOW_SQL + \"String_Node_Str\" + Settings.get(WaybackSettings.HIBERNATE_SHOW_SQL));\n if (!Settings.get(WaybackSettings.HIBERNATE_USERNAME).isEmpty()) {\n config.setProperty(HIBERNATE_CONNECTION_USERNAME, Settings.get(WaybackSettings.HIBERNATE_USERNAME));\n }\n if (!Settings.get(WaybackSettings.HIBERNATE_PASSWORD).isEmpty()) {\n config.setProperty(HIBERNATE_CONNECTION_PASSWORD, Settings.get(WaybackSettings.HIBERNATE_PASSWORD));\n }\n config.addAnnotatedClass(ArchiveFile.class);\n sessionFactory = config.buildSessionFactory();\n } catch (Throwable ex) {\n log.fatal(\"String_Node_Str\" + \"String_Node_Str\", ex);\n throw new IllegalStateException(\"String_Node_Str\" + \"String_Node_Str\", ex);\n }\n }\n}\n"
"public void fillContextMenu(IMenuManager menu) {\n if (!isShowMenu()) {\n return;\n }\n TreeSelection currentSelection = ((TreeSelection) this.getContext().getSelection());\n if (isSelectedColumnLevel(currentSelection) || isSelectedMdmColumn(currentSelection)) {\n IMenuManager submenu = new MenuManager(DefaultMessagesImpl.getString(\"String_Node_Str\"), NEW_MENU_NAME);\n menu.insertAfter(ICommonMenuConstants.GROUP_NEW, submenu);\n analyzeColumnAction.setColumnSelection(currentSelection);\n submenu.add(analyzeColumnAction);\n }\n if (isSelectedTdColumn(currentSelection)) {\n analyzeColumnSetAction.setColumnSelection(currentSelection);\n menu.add(analyzeColumnSetAction);\n }\n}\n"
"public void fireCheck(ServiceConfiguration config) throws ServiceRegistrationException, CheckException {\n try {\n Clusters.lookup(config).check();\n } catch (NoSuchElementException ex) {\n LOG.error(ex);\n }\n}\n"
"private boolean updateAngleBands(Product multiSizeProduct, Product targetProduct, S2BandConstants bandConstants) {\n Vector<RenderedOp> inputsZenith = new Vector(17);\n Vector<RenderedOp> inputsAzimuth = new Vector(17);\n String azimuthAnglesBandName = String.format(\"String_Node_Str\", bandConstants.getPhysicalName());\n String zenithAnglesBandName = String.format(\"String_Node_Str\", bandConstants.getPhysicalName());\n Band bandZenith = targetProduct.getBand(zenithAnglesBandName);\n Band bandAzimuth = targetProduct.getBand(azimuthAnglesBandName);\n if (bandAzimuth == null || bandZenith == null) {\n return false;\n }\n for (int detectorId = 1; detectorId <= 12; detectorId++) {\n String maskName = String.format(\"String_Node_Str\", bandConstants.getFilenameBandId(), detectorId);\n String nextMaskName = String.format(\"String_Node_Str\", bandConstants.getFilenameBandId(), detectorId + 1);\n if (multiSizeProduct.getMaskGroup().get(maskName) == null) {\n continue;\n }\n String maskExpression;\n if (multiSizeProduct.getMaskGroup().get(nextMaskName) == null) {\n maskExpression = String.format(\"String_Node_Str\", maskName);\n } else {\n maskExpression = String.format(\"String_Node_Str\", maskName, nextMaskName);\n }\n MultiLevelImage footprint = multiSizeProduct.getMaskImage(maskExpression, multiSizeProduct.getBand(bandConstants.getPhysicalName()));\n MultiLevelImage footprintFinal = S2ResamplerUtils.createInterpolatedImage(footprint, 0.0f, multiSizeProduct.getBand(bandConstants.getPhysicalName()).getImageToModelTransform(), referenceWidth, referenceHeight, referenceTileSize, referenceMultiLevelModel, S2ResamplerUtils.getInterpolation(\"String_Node_Str\"));\n S2BandAnglesGridByDetector[] anglesGridByDetector = ((Sentinel2OrthoProductReader) multiSizeProduct.getProductReader()).getMetadataHeader().getAnglesGridByDetector(bandConstants.getBandIndex(), detectorId);\n float[] extendedZenithData = S2ResamplerUtils.extendDataV2(anglesGridByDetector[0].getData(), anglesGridByDetector[0].getWidth(), anglesGridByDetector[0].getHeight());\n float[] extendedAzimuthData = S2ResamplerUtils.extendDataV2(anglesGridByDetector[1].getData(), anglesGridByDetector[1].getWidth(), anglesGridByDetector[1].getHeight());\n int extendedWidth = anglesGridByDetector[0].getWidth() + 2;\n int extendedHeight = anglesGridByDetector[0].getHeight() + 2;\n AffineTransform originalAffineTransform5000 = new AffineTransform(anglesGridByDetector[0].getResX(), 0.0f, 0.0f, -anglesGridByDetector[0].getResX(), anglesGridByDetector[0].originX, anglesGridByDetector[0].originY);\n AffineTransform extendedAffineTransform5000 = (AffineTransform) originalAffineTransform5000.clone();\n extendedAffineTransform5000.translate(-1d, -1d);\n MultiLevelImage zenithMultiLevelImage = S2ResamplerUtils.createMultiLevelImage(extendedZenithData, extendedWidth, extendedHeight, extendedAffineTransform5000);\n MultiLevelImage targetImageZenith = S2ResamplerUtils.createInterpolatedImage(zenithMultiLevelImage, 0.0f, extendedAffineTransform5000, referenceWidth, referenceHeight, referenceTileSize, referenceMultiLevelModel, S2ResamplerUtils.getInterpolation(\"String_Node_Str\"));\n MultiLevelImage azimuthMultiLevelImage = S2ResamplerUtils.createMultiLevelImage(extendedAzimuthData, extendedWidth, extendedHeight, extendedAffineTransform5000);\n MultiLevelImage targetImageAzimuth = S2ResamplerUtils.createInterpolatedImage(azimuthMultiLevelImage, 0.0f, extendedAffineTransform5000, referenceWidth, referenceHeight, referenceTileSize, referenceMultiLevelModel, S2ResamplerUtils.getInterpolation(\"String_Node_Str\"));\n ImageLayout imageLayout = new ImageLayout();\n imageLayout.setMinX(0);\n imageLayout.setMinY(0);\n imageLayout.setTileWidth(DEFAULT_JAI_TILE_SIZE);\n imageLayout.setTileHeight(DEFAULT_JAI_TILE_SIZE);\n imageLayout.setTileGridXOffset(0);\n imageLayout.setTileGridYOffset(0);\n RenderingHints hints = new RenderingHints(JAI.KEY_TILE_CACHE, JAI.getDefaultInstance().getTileCache());\n hints.put(JAI.KEY_IMAGE_LAYOUT, imageLayout);\n RenderedOp multiZenith = MultiplyDescriptor.create(targetImageZenith.getImage(0), footprintFinal.getImage(0), hints);\n multiZenith = MultiplyConstDescriptor.create(multiZenith, new double[] { 1 / 255.0 }, hints);\n RenderedOp multiAzimuth = MultiplyDescriptor.create(targetImageAzimuth.getImage(0), footprintFinal.getImage(0), hints);\n multiAzimuth = MultiplyConstDescriptor.create(multiAzimuth, new double[] { 1 / 255.0 }, hints);\n inputsZenith.add(multiZenith);\n inputsAzimuth.add(multiAzimuth);\n }\n if (inputsAzimuth.size() == 0 || inputsZenith.size() == 0) {\n return false;\n }\n ImageLayout imageLayout = new ImageLayout();\n imageLayout.setMinX(0);\n imageLayout.setMinY(0);\n imageLayout.setTileWidth(DEFAULT_JAI_TILE_SIZE);\n imageLayout.setTileHeight(DEFAULT_JAI_TILE_SIZE);\n imageLayout.setTileGridXOffset(0);\n imageLayout.setTileGridYOffset(0);\n RenderingHints hints = new RenderingHints(JAI.KEY_TILE_CACHE, JAI.getDefaultInstance().getTileCache());\n hints.put(JAI.KEY_IMAGE_LAYOUT, imageLayout);\n RenderedOp finalAnglesZenith;\n RenderedOp finalAnglesAzimuth;\n if (inputsZenith.size() > 1) {\n finalAnglesZenith = AddCollectionDescriptor.create(inputsZenith, hints);\n } else {\n finalAnglesZenith = inputsZenith.firstElement();\n }\n if (inputsAzimuth.size() > 1) {\n finalAnglesAzimuth = AddCollectionDescriptor.create(inputsAzimuth, hints);\n } else {\n finalAnglesAzimuth = inputsAzimuth.firstElement();\n }\n MultiLevelImage finalImageZenith = new DefaultMultiLevelImage(new DefaultMultiLevelSource(finalAnglesZenith, referenceMultiLevelModel, Interpolation.getInstance(Interpolation.INTERP_NEAREST)));\n MultiLevelImage finalImageAzimuth = new DefaultMultiLevelImage(new DefaultMultiLevelSource(finalAnglesAzimuth, referenceMultiLevelModel, Interpolation.getInstance(Interpolation.INTERP_NEAREST)));\n bandZenith.setSourceImage(S2ResamplerUtils.adjustImageToModelTransform(finalImageZenith, referenceMultiLevelModel));\n bandAzimuth.setSourceImage(S2ResamplerUtils.adjustImageToModelTransform(finalImageAzimuth, referenceMultiLevelModel));\n return true;\n}\n"
"private String substituteGroups(RemoteFile drf, Matcher m) {\n String dst = drf.getName();\n StringBuilder sb = new StringBuilder();\n boolean lastWasWildcard = false;\n int begin = 0;\n int cg = 0;\n for (int i = 0; i < dst.length(); i++) {\n char c = dst.charAt(i);\n switch(c) {\n case '?':\n case '*':\n if (!lastWasWildcard) {\n sb.append(dst.substring(begin, i));\n cg++;\n }\n lastWasWildcard = true;\n break;\n default:\n if (lastWasWildcard) {\n sb.append(m.group(cg));\n lastWasWildcard = false;\n begin = i;\n }\n }\n }\n if (lastWasWildcard) {\n sb.append(m.group(cg));\n } else {\n sb.append(dst.substring(begin));\n }\n RemoteFile rf = new RemoteFile(drf.getProtocol(), drf.getHost(), drf.getPort(), drf.getDirectory(), sb.toString());\n return rf.getURIAsString();\n}\n"
"public void run() {\n if (logger.isLoggable(Level.FINE))\n logger.log(Level.FINE, \"String_Node_Str\");\n universe.removeCell(cellID);\n}\n"
"public synchronized Token get(Branch branch) {\n Token tmp = null;\n boolean blocked = false;\n try {\n if (_isPutWaiting()) {\n _setPutWaiting(false);\n tmp = _token;\n _setRendezvousComplete(false);\n notifyAll();\n while (!_isRendezvousComplete()) {\n _checkFlagsAndWait();\n }\n } else {\n _setGetWaiting(true);\n notifyAll();\n while (_isConditionalSendWaiting()) {\n _checkFlagsAndWait();\n }\n _checkFlags();\n markBlocked(branch);\n blocked = true;\n while (_isGetWaiting()) {\n _checkFlagsAndWait();\n }\n _checkFlags();\n wakeUpBlockedPartner();\n blocked = false;\n tmp = _token;\n _setRendezvousComplete(true);\n notifyAll();\n }\n } catch (InterruptedException ex) {\n throw new TerminateProcessException(\"String_Node_Str\");\n } finally {\n if (blocked) {\n wakeUpBlockedPartner();\n }\n }\n return tmp;\n}\n"
"public void createContent(String id, Element parent) {\n Document dom = parent.getOwnerDocument();\n if (ContentConstants.DOWNLOADEXTENSION_DATA.equals(id)) {\n Element tr = dom.createElement(\"String_Node_Str\");\n Element td = dom.createElement(\"String_Node_Str\");\n String style = \"String_Node_Str\";\n if (fInstalledExtensions == null || fInstalledExtensions.isEmpty()) {\n style = style + \"String_Node_Str\";\n }\n td.setAttribute(\"String_Node_Str\", style);\n Element span = dom.createElement(\"String_Node_Str\");\n span.setAttribute(\"String_Node_Str\", \"String_Node_Str\");\n span.appendChild(dom.createTextNode(\"String_Node_Str\"));\n td.appendChild(span);\n tr.appendChild(td);\n td = dom.createElement(\"String_Node_Str\");\n style = \"String_Node_Str\";\n if (fInstalledExtensions == null || fInstalledExtensions.isEmpty()) {\n style = style + \"String_Node_Str\";\n }\n td.setAttribute(\"String_Node_Str\", style);\n span = dom.createElement(\"String_Node_Str\");\n span.setAttribute(\"String_Node_Str\", \"String_Node_Str\");\n span.appendChild(dom.createTextNode(\"String_Node_Str\"));\n td.appendChild(span);\n tr.appendChild(td);\n td = dom.createElement(\"String_Node_Str\");\n style = \"String_Node_Str\";\n if (fInstalledExtensions == null || fInstalledExtensions.isEmpty()) {\n style = style + \"String_Node_Str\";\n }\n td.setAttribute(\"String_Node_Str\", style);\n span = dom.createElement(\"String_Node_Str\");\n span.setAttribute(\"String_Node_Str\", \"String_Node_Str\");\n span.appendChild(dom.createTextNode(\"String_Node_Str\"));\n td.appendChild(span);\n tr.appendChild(td);\n td = dom.createElement(\"String_Node_Str\");\n style = \"String_Node_Str\";\n if (fInstalledExtensions == null || fInstalledExtensions.isEmpty()) {\n style = style + \"String_Node_Str\";\n }\n td.setAttribute(\"String_Node_Str\", style);\n span = dom.createElement(\"String_Node_Str\");\n span.setAttribute(\"String_Node_Str\", \"String_Node_Str\");\n span.appendChild(dom.createTextNode(\"String_Node_Str\"));\n td.appendChild(span);\n tr.appendChild(td);\n parent.appendChild(tr);\n componentMap.clear();\n if (fInstalledExtensions != null) {\n Iterator ite = fInstalledExtensions.iterator();\n int size = fInstalledExtensions.size();\n count = 0;\n while (ite.hasNext()) {\n count++;\n ComponentExtension object = (ComponentExtension) ite.next();\n if (object.getLabel().equals(\"String_Node_Str\")) {\n continue;\n }\n Element trExtension = dom.createElement(\"String_Node_Str\");\n Element tdExtension = dom.createElement(\"String_Node_Str\");\n style = \"String_Node_Str\";\n if (count == size) {\n style = \"String_Node_Str\";\n }\n if (count % 2 == 0) {\n style = style + \"String_Node_Str\";\n }\n tdExtension.setAttribute(\"String_Node_Str\", style);\n tdExtension.appendChild(dom.createTextNode(object.getLabel()));\n trExtension.appendChild(tdExtension);\n tdExtension = dom.createElement(\"String_Node_Str\");\n style = \"String_Node_Str\";\n if (count == size) {\n style = \"String_Node_Str\";\n }\n if (count % 2 == 0) {\n style = style + \"String_Node_Str\";\n }\n tdExtension.setAttribute(\"String_Node_Str\", style);\n tdExtension.appendChild(dom.createTextNode(object.getDownloadedVersion()));\n trExtension.appendChild(tdExtension);\n tdExtension = dom.createElement(\"String_Node_Str\");\n style = \"String_Node_Str\";\n if (count == size) {\n style = \"String_Node_Str\";\n }\n if (count % 2 == 0) {\n style = style + \"String_Node_Str\";\n }\n tdExtension.setAttribute(\"String_Node_Str\", style);\n tdExtension.appendChild(dom.createTextNode(formatter.format(object.getDateDownload())));\n trExtension.appendChild(tdExtension);\n if (object != null && fDownloadedExtensions != null && fDownloadedExtensions.containsKey(object.getIdExtension())) {\n if (object.getVersionExtension().equals(object.getDownloadedVersion())) {\n tdExtension = dom.createElement(\"String_Node_Str\");\n style = \"String_Node_Str\";\n if (count == size) {\n style = \"String_Node_Str\";\n }\n if (count % 2 == 0) {\n style = style + \"String_Node_Str\";\n }\n tdExtension.setAttribute(\"String_Node_Str\", style);\n Text view = dom.createTextNode(Messages.getString(\"String_Node_Str\"));\n tdExtension.appendChild(view);\n trExtension.appendChild(tdExtension);\n } else {\n tdExtension = dom.createElement(\"String_Node_Str\");\n style = \"String_Node_Str\";\n if (count == size) {\n style = \"String_Node_Str\";\n }\n if (count % 2 == 0) {\n style = style + \"String_Node_Str\";\n }\n tdExtension.setAttribute(\"String_Node_Str\", style);\n Element hyperlink = dom.createElement(\"String_Node_Str\");\n String url = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + AvailableCompositeProvider.NUMBER + \"String_Node_Str\" + count;\n ;\n hyperlink.setAttribute(\"String_Node_Str\", url);\n Text view = dom.createTextNode(Messages.getString(\"String_Node_Str\"));\n hyperlink.appendChild(view);\n tdExtension.appendChild(hyperlink);\n trExtension.appendChild(tdExtension);\n }\n } else {\n tdExtension = dom.createElement(\"String_Node_Str\");\n style = \"String_Node_Str\";\n if (count == size) {\n style = \"String_Node_Str\";\n }\n if (count % 2 == 0) {\n style = style + \"String_Node_Str\";\n }\n tdExtension.setAttribute(\"String_Node_Str\", style);\n Element hyperlink = dom.createElement(\"String_Node_Str\");\n String url = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + AvailableCompositeProvider.NUMBER + \"String_Node_Str\" + count;\n hyperlink.setAttribute(\"String_Node_Str\", url);\n Text view = dom.createTextNode(Messages.getString(\"String_Node_Str\"));\n hyperlink.appendChild(view);\n tdExtension.appendChild(hyperlink);\n trExtension.appendChild(tdExtension);\n }\n componentMap.put(\"String_Node_Str\" + count, object);\n parent.appendChild(trExtension);\n }\n }\n }\n}\n"
"public static void addColor(Player player) {\n ScoreboardManager scoreboardManager = Bukkit.getScoreboardManager();\n Team team = scoreboardManager.getMainScoreboard().getTeam(player.getName());\n if (team == null) {\n Team t = scoreboardManager.getMainScoreboard().registerNewTeam(player.getName());\n t.setPrefix(Pex.getPlayerPrefix(player) + \"String_Node_Str\");\n t.addPlayer(player);\n } else {\n team.setPrefix(Pex.getPlayerPrefix(player) + \"String_Node_Str\");\n }\n}\n"
"public void installOperations() {\n operations.put(ShutdownOperation.RPC_NAME, new ShutdownOperation(master));\n operations.put(StatusPageOperation.RPC_NAME, new StatusPageOperation(master));\n operations.put(GetProtocolVersionOperation.RPC_NAME, new GetProtocolVersionOperation(master));\n operations.put(CreateVolumeOperation.RPC_NAME, new CreateVolumeOperation(master));\n operations.put(DeleteVolumeOperation.RPC_NAME, new DeleteVolumeOperation(master));\n operations.put(GetLocalVolumesOperation.RPC_NAME, new GetLocalVolumesOperation(master));\n operations.put(StatOperation.RPC_NAME, new StatOperation(master));\n operations.put(CheckAccessOperation.RPC_NAME, new CheckAccessOperation(master));\n operations.put(ReadDirOperation.RPC_NAME, new ReadDirOperation(master));\n operations.put(ReadDirAndStatOperation.RPC_NAME, new ReadDirAndStatOperation(master));\n operations.put(CreateFileOperation.RPC_NAME, new CreateFileOperation(master));\n operations.put(CreateDirOperation.RPC_NAME, new CreateDirOperation(master));\n operations.put(CreateSymLinkOperation.RPC_NAME, new CreateSymLinkOperation(master));\n operations.put(DeleteOperation.RPC_NAME, new DeleteOperation(master));\n operations.put(GetXAttrOperation.RPC_NAME, new GetXAttrOperation(master));\n operations.put(SetXAttrsOperation.RPC_NAME, new SetXAttrsOperation(master));\n operations.put(OpenOperation.RPC_NAME, new OpenOperation(master));\n operations.put(UpdateFileSizeOperation.RPC_NAME, new UpdateFileSizeOperation(master));\n operations.put(RenewOperation.RPC_NAME, new RenewOperation(master));\n operations.put(ChangeOwnerOperation.RPC_NAME, new ChangeOwnerOperation(master));\n operations.put(ChangeAccessModeOperation.RPC_NAME, new ChangeAccessModeOperation(master));\n operations.put(AddReplicaOperation.RPC_NAME, new AddReplicaOperation(master));\n operations.put(RemoveReplicaOperation.RPC_NAME, new RemoveReplicaOperation(master));\n operations.put(MoveOperation.RPC_NAME, new MoveOperation(master));\n operations.put(CreateLinkOperation.RPC_NAME, new CreateLinkOperation(master));\n operations.put(StatFSOperation.RPC_NAME, new StatFSOperation(master));\n operations.put(UtimeOperation.RPC_NAME, new UtimeOperation(master));\n operations.put(SetW32AttrsOperation.RPC_NAME, new SetW32AttrsOperation(master));\n operations.put(GetW32AttrsOperation.RPC_NAME, new GetW32AttrsOperation(master));\n operations.put(SetACLEntriesOperation.RPC_NAME, new SetACLEntriesOperation(master));\n operations.put(RemoveACLEntriesOperation.RPC_NAME, new RemoveACLEntriesOperation(master));\n operations.put(DumpDBOperation.RPC_NAME, new DumpDBOperation(master));\n operations.put(RestoreDBOperation.RPC_NAME, new RestoreDBOperation(master));\n operations.put(CheckFileListOperation.RPC_NAME, new CheckFileListOperation(master));\n}\n"
"public void sendMessageOnClick(View view) {\n sendMessage(false);\n}\n"
"public void testNanosComparison() {\n long now = 1283895273475L;\n Timestamp t = new Timestamp(now);\n t.setNanos(0);\n Timestamp t2 = new Timestamp(t.getTime());\n t2.setNanos(0);\n assertEquals(t, t2);\n assertEquals(0, t.compareTo(t2));\n assertFalse(t.before(t2));\n assertFalse(t.after(t2));\n t2.setNanos(1);\n assertFalse(t.equals(t2));\n assertTrue(t.compareTo(t2) < 0);\n assertTrue(t2.compareTo(t) > 0);\n assertTrue(t.before(t2));\n assertTrue(t2.after(t));\n}\n"
"private void updateEmail(String newEmail) {\n PushAccountSettingsPayload payload = new PushAccountSettingsPayload();\n payload.params = new HashMap<>();\n payload.params.put(\"String_Node_Str\", newEmail);\n mDispatcher.dispatch(AccountActionBuilder.newPostSettingsAction(payload));\n}\n"
"public Object invoke(Data key, EntryProcessor entryProcessor, Object[] arguments) {\n final long now = Clock.currentTimeMillis();\n final long start = isStatisticsEnabled() ? System.nanoTime() : 0;\n CacheRecord record = records.get(key);\n final boolean isExpired = processExpiredEntry(key, record, now);\n if (isExpired) {\n record = null;\n }\n if (isStatisticsEnabled()) {\n if (record == null || isExpired) {\n statistics.increaseCacheMisses(1);\n } else {\n statistics.increaseCacheHits(1);\n }\n }\n if (isStatisticsEnabled()) {\n statistics.addGetTimeNanos(System.nanoTime() - start);\n }\n CacheEntryProcessorEntry entry = new CacheEntryProcessorEntry(key, record, this, now);\n final Object process = entryProcessor.process(entry, arguments);\n entry.applyChanges();\n return process;\n}\n"
"private void makeDescription(StringBuilder buf, boolean values) {\n final String sep = Util.nl + \"String_Node_Str\";\n buf.append(printSegmentHeaderInfo(sep));\n RolapStar.Column[] columns = aggregation.getColumns();\n for (int i = 0; i < columns.length; i++) {\n buf.append(sep);\n buf.append(columns[i].getExpression().getGenericExpression());\n final Aggregation.Axis axis = axes[i];\n axis.getPredicate().describe(buf);\n if (values && isReady()) {\n Object[] keys = axis.getKeys();\n buf.append(\"String_Node_Str\");\n for (int j = 0; j < keys.length; j++) {\n if (j > 0) {\n buf.append(\"String_Node_Str\");\n }\n Object key = keys[j];\n buf.append(key);\n }\n buf.append(\"String_Node_Str\");\n }\n }\n if (!excludedRegions.isEmpty()) {\n buf.append(sep);\n buf.append(\"String_Node_Str\");\n int k = 0;\n for (Region excludedRegion : excludedRegions) {\n if (k++ > 0) {\n buf.append(\"String_Node_Str\");\n }\n excludedRegion.describe(buf);\n }\n buf.append('}');\n }\n buf.append('}');\n}\n"
"public final void shouldReturnBigDecimalValueFromStringUsingDecimalType() throws Exception {\n final String decimalStringValue = \"String_Node_Str\";\n defaultEntity.setField(DECIMAL_FIELD_NAME, decimalStringValue);\n BigDecimal result = defaultEntity.getDecimalField(DECIMAL_FIELD_NAME);\n Assert.assertNotNull(result);\n Assert.assertEquals(new BigDecimal(decimalStringValue).stripTrailingZeros(), result);\n}\n"
"public void send(int channelIndex, Token data) throws NoRoomException, IllegalActionException {\n if (_port == null) {\n throw new IllegalActionException(JavaScript.this, \"String_Node_Str\" + _parameter.getName() + \"String_Node_Str\");\n }\n if (getManager().getState() == ptolemy.actor.Manager.WRAPPING_UP) {\n System.err.println(\"String_Node_Str\" + data);\n return;\n }\n synchronized (JavaScript.this) {\n if (!_port.isOutput()) {\n if (!_port.isInput()) {\n throw new IllegalActionException(JavaScript.this, \"String_Node_Str\");\n }\n if (_localInputTokens == null) {\n _localInputTokens = new LinkedList<Token>();\n }\n _localInputTokens.add(data);\n _fireAtCurrentTime();\n } else if (_inFire) {\n if (_debugging) {\n _debug(\"String_Node_Str\" + data + \"String_Node_Str\" + _port.getName());\n }\n _port.send(channelIndex, data);\n } else {\n if (_outputTokens == null) {\n _outputTokens = new HashMap<IOPort, HashMap<Integer, List<Token>>>();\n }\n HashMap<Integer, List<Token>> tokens = _outputTokens.get(_port);\n if (tokens == null) {\n tokens = new HashMap<Integer, List<Token>>();\n _outputTokens.put(_port, tokens);\n }\n List<Token> queue = tokens.get(channelIndex);\n if (queue == null) {\n queue = new LinkedList<Token>();\n tokens.put(channelIndex, queue);\n }\n queue.add(data);\n if (_debugging) {\n _debug(\"String_Node_Str\" + data + \"String_Node_Str\" + _port.getName() + \"String_Node_Str\");\n }\n getDirector().fireAtCurrentTime(JavaScript.this);\n }\n }\n}\n"
"private void receiveParser(Context context, Intent intent) {\n try {\n int resultCode = intent.getIntExtra(Constants.EXTRA_PARSER_RESULT_CODE, TextParserService.RESULT_CODE_OK);\n if (resultCode == TextParserService.RESULT_CODE_OK) {\n parser = TextParser.fromString(intent.getStringExtra(Constants.EXTRA_PARSER));\n parserReceived = true;\n readable = parser.getReadable();\n wordList = readable.getWordList();\n emphasisList = readable.getEmphasisList();\n delayList = readable.getDelayList();\n YoYo.with(Techniques.FadeOut).duration(Constants.SECOND / 2).playOn(parsingProgressBar);\n readerLayout.setVisibility(View.VISIBLE);\n YoYo.with(Techniques.BounceIn).duration(2 * Constants.SECOND).playOn(readerLayout);\n final Handler handler = new Handler();\n readable.setPosition(Math.max(readable.getPosition() - Constants.READER_START_OFFSET, 0));\n reader = new Reader(handler, readable.getPosition());\n handler.postDelayed(reader, 3 * Constants.SECOND);\n if (isStorable()) {\n context.startService(createLastReadServiceIntent(context, (Storable) readable, Constants.DB_OPERATION_INSERT));\n }\n } else {\n int stringId;\n switch(resultCode) {\n case TextParserService.RESULT_CODE_WRONG_EXT:\n stringId = R.string.wrong_ext;\n break;\n case TextParserService.RESULT_CODE_EMPTY_CLIPBOARD:\n stringId = R.string.clipboard_empty;\n break;\n case TextParserService.RESULT_CODE_CANT_FETCH:\n stringId = R.string.cant_fetch;\n break;\n default:\n stringId = R.string.text_null;\n break;\n }\n Toast.makeText(context, stringId, Toast.LENGTH_SHORT).show();\n onStop();\n }\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n}\n"
"public void bindFromEmail(String emailAddress) {\n mQueryHandler.startQuery(TOKEN_EMAIL_LOOKUP, emailAddress, Uri.withAppendedPath(Email.CONTENT_LOOKUP_URI, Uri.encode(emailAddress)), EMAIL_LOOKUP_PROJECTION, null, null, null);\n}\n"
"private void setupAuthTokenFile(List<String> cmd, List<String> stdin) throws WindowsException {\n WindowsRemoteFileSystem wrfs = new WindowsRemoteFileSystem(dcomInfo.getCredentials());\n authTokenFilePath = dcomInfo.getNadminParentPath() + \"String_Node_Str\" + System.nanoTime() + new Random().nextInt(1000);\n authTokenFilePath = createUniqueFilename(dcomInfo.getNadminParentPath());\n authTokenFile = new WindowsRemoteFile(wrfs, authTokenFilePath);\n authTokenFile.copyFrom(stdin);\n URI authTokenFileUri = new File(authTokenFilePath).toURI();\n cmd.add(AsadminInput.CLI_INPUT_OPTION);\n cmd.add(authTokenFileUri.toString());\n}\n"
"public boolean performFinish() {\n boolean isMinEmpty = CheckValueUtils.isEmpty(lowerText.getText());\n boolean isMaxEmpty = CheckValueUtils.isEmpty(higherText.getText());\n if (isContainRowCount) {\n String plower = pLowerText.getText();\n String phigher = pHigherText.getText();\n boolean isPerMinEmpty = CheckValueUtils.isEmpty(plower);\n boolean isPerMaxEmpty = CheckValueUtils.isEmpty(phigher);\n if (isMinEmpty && isMaxEmpty && isPerMinEmpty && isPerMaxEmpty) {\n parameters.setIndicatorValidDomain(null);\n } else {\n if (isMinEmpty && isMaxEmpty) {\n removeRange(VALUE_THRESHOLD);\n } else {\n IndicatorHelper.setIndicatorThreshold(parameters, lowerText.getText(), higherText.getText());\n }\n if (isPerMinEmpty && isPerMaxEmpty) {\n removeRange(PERCENTAGE_THRESHOLD);\n } else {\n IndicatorHelper.setIndicatorThresholdInPercent(parameters, pLowerText.getText(), pHigherText.getText());\n }\n }\n } else {\n if (isMinEmpty && isMaxEmpty) {\n parameters.setIndicatorValidDomain(null);\n } else {\n IndicatorHelper.setIndicatorThreshold(parameters, lowerText.getText(), higherText.getText());\n }\n }\n return true;\n}\n"
"public int getSearchCount(String query, int maxitems) {\n return getSearchCourses(query, maxitems).size();\n}\n"
"public void parse() {\n try {\n Pattern honbunPattern = Pattern.compile(\"String_Node_Str\", Pattern.DOTALL);\n Pattern resPattern = Pattern.compile(\"String_Node_Str\", Pattern.DOTALL);\n Pattern textPattern = Pattern.compile(\"String_Node_Str\", Pattern.DOTALL);\n Pattern imgPattern = Pattern.compile(\"String_Node_Str\", Pattern.DOTALL);\n Pattern tagPattern = Pattern.compile(\"String_Node_Str\", Pattern.DOTALL);\n CookieSyncManager.createInstance(context);\n CookieSyncManager.getInstance().startSync();\n CookieManager.getInstance().setAcceptCookie(true);\n CookieManager.getInstance().removeExpiredCookie();\n DefaultHttpClient httpClient;\n httpClient = new DefaultHttpClient();\n httpClient.getParams().setParameter(ClientPNames.COOKIE_POLICY, CookiePolicy.BROWSER_COMPATIBILITY);\n httpClient.getParams().setParameter(\"String_Node_Str\", 5000);\n httpClient.getParams().setParameter(\"String_Node_Str\", 3000);\n HttpPost httppost = new HttpPost(urlStr);\n List<NameValuePair> nameValuePair = new ArrayList<NameValuePair>(3);\n nameValuePair.add(new BasicNameValuePair(\"String_Node_Str\", \"String_Node_Str\"));\n nameValuePair.add(new BasicNameValuePair(\"String_Node_Str\", \"String_Node_Str\"));\n nameValuePair.add(new BasicNameValuePair(\"String_Node_Str\", \"String_Node_Str\"));\n try {\n httppost.setEntity(new UrlEncodedFormEntity(nameValuePair));\n HttpResponse response = httpClient.execute(httppost);\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n response.getEntity().writeTo(byteArrayOutputStream);\n } catch (Exception e) {\n Log.d(\"String_Node_Str\", \"String_Node_Str\");\n }\n byte[] data = httpClient.getByteArrayFromURL(urlStr);\n Matcher mc = honbunPattern.matcher(new String(data, \"String_Node_Str\"));\n mc.find();\n mc.find();\n String honbun = mc.group(0);\n Matcher mcRes = resPattern.matcher(honbun);\n while (mcRes.find()) {\n Matcher mcText = textPattern.matcher(mcRes.group(1));\n mcText.find();\n FutabaStatus status = new FutabaStatus();\n String text = mcText.group(1);\n text = tagPattern.matcher(text).replaceAll(\"String_Node_Str\");\n status.setText(text);\n Matcher mcImg = thumbPattern.matcher(mcRes.group(1));\n if (mcImg.find()) {\n status.setImgURL(mcImg.group(1));\n Log.d(\"String_Node_Str\", mcImg.group(1));\n }\n statuses.add(status);\n }\n Log.d(\"String_Node_Str\", String.valueOf(statuses.size()));\n } catch (Exception e) {\n Log.d(\"String_Node_Str\", e.toString());\n throw new RuntimeException(e);\n }\n}\n"
"public void onIpScanned(String ip) {\n scanPercentage += getPerDevicePercent();\n updatePercentageOnActivity(scanPercentage);\n}\n"
"public void actionPerformed(ContextMenuItemEvent event) {\n app.setShowInHUD(true);\n}\n"
"public static ICubeQueryDefinition createCubeQuery(CrosstabReportItemHandle crosstabItem, IDataQueryDefinition parentQuery, boolean needMeasure, boolean needRowDimension, boolean needColumnDimension, boolean needBinding, boolean needSorting, boolean needFilter) throws BirtException {\n ICubeQueryDefinition cubeQuery = getCubeElementFactory().createCubeQuery(crosstabItem.getCubeName());\n List rowLevelNameList = new ArrayList();\n List columnLevelNameList = new ArrayList();\n List levelViewList = new ArrayList();\n Map levelMap = new HashMap();\n if (needMeasure) {\n for (int i = 0; i < crosstabItem.getMeasureCount(); i++) {\n MeasureViewHandle mv = crosstabItem.getMeasure(i);\n if (mv instanceof ComputedMeasureViewHandle) {\n continue;\n }\n if (mv.getCubeMeasure() == null) {\n throw new CrosstabException(Messages.getString(\"String_Node_Str\", mv.getCubeMeasureName()));\n }\n IMeasureDefinition mDef = cubeQuery.createMeasure(mv.getCubeMeasure().getName());\n mDef.setAggrFunction(mv.getCubeMeasure().getFunction() == null ? null : DataAdapterUtil.getRollUpAggregationName(mv.getCubeMeasure().getFunction()));\n Iterator mfitr = mv.filtersIterator();\n if (mfitr != null) {\n while (mfitr.hasNext()) {\n FilterConditionElementHandle filterCon = (FilterConditionElementHandle) mfitr.next();\n ConditionalExpression filterCondExpr;\n if (ModuleUtil.isListFilterValue(filterCon)) {\n filterCondExpr = new ConditionalExpression(filterCon.getExpr(), DataAdapterUtil.adaptModelFilterOperator(filterCon.getOperator()), filterCon.getValue1List());\n } else {\n filterCondExpr = new ConditionalExpression(filterCon.getExpr(), DataAdapterUtil.adaptModelFilterOperator(filterCon.getOperator()), filterCon.getValue1(), filterCon.getValue2());\n }\n ICubeFilterDefinition filterDef = getCubeElementFactory().creatCubeFilterDefinition(filterCondExpr, null, null, null);\n cubeQuery.addFilter(filterDef);\n }\n }\n }\n }\n if (needRowDimension && crosstabItem.getDimensionCount(ROW_AXIS_TYPE) > 0) {\n IEdgeDefinition rowEdge = cubeQuery.createEdge(ICubeQueryDefinition.ROW_EDGE);\n LevelHandle mirrorLevel = crosstabItem.getCrosstabView(ROW_AXIS_TYPE).getMirroredStartingLevel();\n for (int i = 0; i < crosstabItem.getDimensionCount(ROW_AXIS_TYPE); i++) {\n DimensionViewHandle dv = crosstabItem.getDimension(ROW_AXIS_TYPE, i);\n if (dv.getCubeDimension() == null) {\n throw new CrosstabException(Messages.getString(\"String_Node_Str\", dv.getCubeDimensionName()));\n }\n IDimensionDefinition dimDef = rowEdge.createDimension(dv.getCubeDimension().getName());\n IHierarchyDefinition hieDef = dimDef.createHierarchy(dv.getCubeDimension().getDefaultHierarchy().getName());\n for (int j = 0; j < dv.getLevelCount(); j++) {\n LevelViewHandle lv = dv.getLevel(j);\n if (lv.getCubeLevel() == null) {\n throw new CrosstabException(Messages.getString(\"String_Node_Str\", lv.getCubeLevelName()));\n }\n ILevelDefinition levelDef = hieDef.createLevel(lv.getCubeLevel().getName());\n rowLevelNameList.add(lv.getCubeLevel().getFullName());\n if (mirrorLevel != null && mirrorLevel.getQualifiedName().equals(lv.getCubeLevelName())) {\n rowEdge.setMirrorStartingLevel(levelDef);\n }\n levelViewList.add(lv);\n levelMap.put(lv.getCubeLevel(), levelDef);\n }\n }\n }\n if (needColumnDimension && crosstabItem.getDimensionCount(COLUMN_AXIS_TYPE) > 0) {\n IEdgeDefinition columnEdge = cubeQuery.createEdge(ICubeQueryDefinition.COLUMN_EDGE);\n LevelHandle mirrorLevel = crosstabItem.getCrosstabView(COLUMN_AXIS_TYPE).getMirroredStartingLevel();\n for (int i = 0; i < crosstabItem.getDimensionCount(COLUMN_AXIS_TYPE); i++) {\n DimensionViewHandle dv = crosstabItem.getDimension(COLUMN_AXIS_TYPE, i);\n if (dv.getCubeDimension() == null) {\n throw new CrosstabException(Messages.getString(\"String_Node_Str\", dv.getCubeDimensionName()));\n }\n IDimensionDefinition dimDef = columnEdge.createDimension(dv.getCubeDimension().getName());\n IHierarchyDefinition hieDef = dimDef.createHierarchy(dv.getCubeDimension().getDefaultHierarchy().getName());\n for (int j = 0; j < dv.getLevelCount(); j++) {\n LevelViewHandle lv = dv.getLevel(j);\n if (lv.getCubeLevel() == null) {\n throw new CrosstabException(Messages.getString(\"String_Node_Str\", lv.getCubeLevelName()));\n }\n ILevelDefinition levelDef = hieDef.createLevel(lv.getCubeLevel().getName());\n columnLevelNameList.add(lv.getCubeLevel().getFullName());\n if (mirrorLevel != null && mirrorLevel.getQualifiedName().equals(lv.getCubeLevelName())) {\n columnEdge.setMirrorStartingLevel(levelDef);\n }\n levelViewList.add(lv);\n levelMap.put(lv.getCubeLevel(), levelDef);\n }\n }\n }\n if (needSorting) {\n addLevelSorting(levelViewList, levelMap, cubeQuery);\n }\n if (needFilter) {\n addLevelFilter(levelViewList, levelMap, cubeQuery);\n }\n if (needBinding) {\n Iterator bindingItr = ((ExtendedItemHandle) crosstabItem.getModelHandle()).columnBindingsIterator();\n ModuleHandle module = ((ExtendedItemHandle) crosstabItem.getModelHandle()).getModuleHandle();\n if (bindingItr != null) {\n Map cache = new HashMap();\n while (bindingItr.hasNext()) {\n ComputedColumnHandle column = (ComputedColumnHandle) bindingItr.next();\n Binding binding = new Binding(column.getName());\n binding.setAggrFunction(column.getAggregateFunction() == null ? null : DataAdapterUtil.adaptModelAggregationType(column.getAggregateFunction()));\n binding.setExpression(column.getExpression() == null ? null : new ScriptExpression(column.getExpression()));\n binding.setDataType(DataAdapterUtil.adaptModelDataType(column.getDataType()));\n if (column.getFilterExpression() != null) {\n binding.setFilter(new ScriptExpression(column.getFilterExpression()));\n }\n for (Iterator argItr = column.argumentsIterator(); argItr.hasNext(); ) {\n AggregationArgumentHandle aah = (AggregationArgumentHandle) argItr.next();\n if (aah.getValue() != null) {\n binding.addArgument(new ScriptExpression(aah.getValue()));\n }\n }\n List aggrList = column.getAggregateOnList();\n if (aggrList != null) {\n for (Iterator aggrItr = aggrList.iterator(); aggrItr.hasNext(); ) {\n String baseLevel = (String) aggrItr.next();\n CrosstabUtil.addHierachyAggregateOn(module, binding, baseLevel, rowLevelNameList, columnLevelNameList, cache);\n }\n }\n cubeQuery.addBinding(binding);\n }\n }\n }\n return cubeQuery;\n}\n"
"public int relayedBlocks(List<Block> blocks) throws VerificationException {\n if (blocks == null || blocks.size() == 0) {\n return 0;\n }\n Block prev = null;\n Block first = blocks.get(0);\n int rollbackBlockNo = 0;\n if (Arrays.equals(first.getBlockPrev(), this.getLastBlock().getBlockHash())) {\n prev = this.getLastBlock();\n } else if (BlockProvider.getInstance().getMainChainBlock(first.getBlockPrev()) != null) {\n prev = this.getSameParent(first, this.getLastBlock());\n rollbackBlockNo = prev.getBlockNo();\n }\n if (prev == null) {\n return 0;\n }\n for (Block block : blocks) {\n if (!Arrays.equals(block.getBlockPrev(), prev.getBlockHash())) {\n return 0;\n }\n block.setBlockNo(prev.getBlockNo() + 1);\n try {\n block.verifyDifficultyFromPreviousBlock(prev);\n } catch (Exception e) {\n e.printStackTrace();\n break;\n }\n block.setMain(true);\n prev = block;\n }\n if (rollbackBlockNo > 0) {\n this.rollbackBlock(rollbackBlockNo);\n }\n this.addBlocks(blocks);\n for (Block block : blocks) {\n TxProvider.getInstance().confirmTx(block.getBlockNo(), block.getTxHashes());\n }\n this.lastBlock = blocks.get(blocks.size() - 1);\n return blocks.size();\n}\n"
"private void saveAccumulatorsOrStartTimes() {\n for (Map.Entry<Integer, Map<Integer, TimelineHostEventAccumulator>> entry : accumulators.entrySet()) {\n final int hostId = entry.getKey();\n final Map<Integer, TimelineHostEventAccumulator> hostAccumulators = entry.getValue();\n for (Map.Entry<Integer, TimelineHostEventAccumulator> accumulatorEntry : hostAccumulators.entrySet()) {\n final int categoryId = accumulatorEntry.getKey();\n final TimelineHostEventAccumulator accumulator = accumulatorEntry.getValue();\n if (fastShutdown.get()) {\n log.debug(\"String_Node_Str\", hostId, categoryId);\n startTimes.addTime(hostId, categoryId, accumulator.getStartTime());\n } else {\n log.debug(\"String_Node_Str\", hostId, categoryId);\n accumulator.extractAndQueueTimelineChunks();\n }\n }\n }\n}\n"
"public static List<HierarchicalStack> splitTier(final StackId roughTilesStackId, final Bounds parentStackBounds, final int maxPixelsPerDimension, final int tier) {\n final List<HierarchicalStack> splitStacks = new ArrayList<>();\n final int parentWidth = (int) Math.ceil(parentStackBounds.getDeltaX());\n final int parentHeight = (int) Math.ceil(parentStackBounds.getDeltaY());\n final int rowsAndColumns = deriveRowsAndColumnsForTier(tier);\n final int maxDimension = Math.max(parentWidth, parentHeight);\n final int maxDimensionPerCell = ceilIntDivide(maxDimension, rowsAndColumns);\n final int cellWidth = ceilIntDivide(parentWidth, rowsAndColumns);\n final int cellHeight = ceilIntDivide(parentHeight, rowsAndColumns);\n final double scale = Math.min(1.0, (double) maxPixelsPerDimension / maxDimensionPerCell);\n int row = 0;\n int column;\n Bounds splitStackBounds;\n final int parentMinX = parentStackBounds.getMinX().intValue();\n final int parentMinY = parentStackBounds.getMinY().intValue();\n final double parentMinZ = parentStackBounds.getMinZ();\n final int parentMaxX = (int) Math.ceil(parentStackBounds.getMaxX());\n final int parentMaxY = (int) Math.ceil(parentStackBounds.getMaxY());\n final double parentMaxZ = parentStackBounds.getMaxZ();\n for (int y = parentMinY; y < parentMaxY; y += cellHeight) {\n column = 0;\n for (int x = parentMinX; x < parentMaxX; x += cellWidth) {\n splitStackBounds = new Bounds((double) x, (double) y, parentMinZ, (double) x + cellWidth, (double) y + cellHeight, parentMaxZ);\n splitStacks.add(new HierarchicalStack(roughTilesStackId, tier, row, column, rowsAndColumns, rowsAndColumns, scale, splitStackBounds));\n column++;\n }\n row++;\n }\n return splitStacks;\n}\n"
"public void preInit(FMLPreInitializationEvent event) {\n super.preInit(event);\n NetworkRegistry.instance().registerGuiHandler(this, proxy);\n MinecraftForge.EVENT_BUS.register(this);\n MinecraftForge.EVENT_BUS.register(proxy);\n Settings.CONFIGURATION.load();\n blockExplosive = new BlockExplosive(Settings.getNextBlockID());\n blockMachine = new BlockICBMMachine(Settings.getNextBlockID());\n blockMissileTable = new BlockMissileTable(Settings.getNextBlockID());\n itemMissile = new ItemMissile(Settings.getNextItemID(), \"String_Node_Str\");\n itemBombDefuser = new ItemBombDefuser(Settings.getNextItemID());\n itemRadarGun = new ItemRadarGun(Settings.getNextItemID());\n itemRemoteDetonator = new ItemRemoteDetonator(Settings.getNextItemID());\n itemLaserDesignator = new ItemLaserDesignator(Settings.getNextItemID());\n itemRocketLauncher = new ItemRocketLauncher(Settings.getNextItemID());\n itemGrenade = new ItemGrenade(Settings.getNextItemID());\n itemBombCart = new ItemBombCart(Settings.getNextItemID());\n PDaDu.INSTANCE = new PDaDu(22, true, 5149489, \"String_Node_Str\");\n PChuanRanDu.INSTANCE = new PChuanRanDu(23, false, 5149489, \"String_Node_Str\");\n PDongShang.INSTANCE = new PDongShang(24, false, 5149489, \"String_Node_Str\");\n CREEPER_DROP_SULFER = Settings.CONFIGURATION.get(\"String_Node_Str\", \"String_Node_Str\", true).getBoolean(true);\n CREEPER_BLOW_UP_IN_FIRE = Settings.CONFIGURATION.get(\"String_Node_Str\", \"String_Node_Str\", true).getBoolean(true);\n Settings.CONFIGURATION.save();\n CreativeTabICBM.itemStack = new ItemStack(ICBMExplosion.blockExplosive);\n BlockDispenser.dispenseBehaviorRegistry.putObject(ICBMExplosion.itemGrenade, new IBehaviorDispenseItem() {\n public ItemStack dispense(IBlockSource blockSource, ItemStack itemStack) {\n World world = blockSource.getWorld();\n if (!world.isRemote) {\n int x = blockSource.getXInt();\n int y = blockSource.getYInt();\n int z = blockSource.getZInt();\n EnumFacing enumFacing = EnumFacing.getFront(blockSource.getBlockMetadata());\n EntityGrenade entity = new EntityGrenade(world, new Vector3(x, y, z), itemStack.getItemDamage());\n entity.setThrowableHeading(enumFacing.getFrontOffsetX(), 0.10000000149011612D, enumFacing.getFrontOffsetZ(), 0.5F, 1.0F);\n world.spawnEntityInWorld(entity);\n }\n itemStack.stackSize--;\n return itemStack;\n }\n });\n BlockDispenser.dispenseBehaviorRegistry.putObject(ICBMExplosion.itemBombCart, new IBehaviorDispenseItem() {\n private final BehaviorDefaultDispenseItem defaultItemDispenseBehavior = new BehaviorDefaultDispenseItem();\n public ItemStack dispense(IBlockSource blockSource, ItemStack itemStack) {\n World world = blockSource.getWorld();\n if (!world.isRemote) {\n int x = blockSource.getXInt();\n int y = blockSource.getYInt();\n int z = blockSource.getZInt();\n EnumFacing var3 = EnumFacing.getFront(blockSource.getBlockMetadata());\n World var4 = blockSource.getWorld();\n double var5 = blockSource.getX() + var3.getFrontOffsetX() * 1.125F;\n double var7 = blockSource.getY();\n double var9 = blockSource.getZ() + var3.getFrontOffsetZ() * 1.125F;\n int var11 = blockSource.getXInt() + var3.getFrontOffsetX();\n int var12 = blockSource.getYInt();\n int var13 = blockSource.getZInt() + var3.getFrontOffsetZ();\n int var14 = var4.getBlockId(var11, var12, var13);\n double var15;\n if (BlockRailBase.isRailBlock(var14)) {\n var15 = 0.0D;\n } else {\n if (var14 != 0 || !BlockRailBase.isRailBlock(var4.getBlockId(var11, var12 - 1, var13))) {\n return this.defaultItemDispenseBehavior.dispense(blockSource, itemStack);\n }\n var15 = -1.0D;\n }\n EntityBombCart var22 = new EntityBombCart(world, var5, var7 + var15, var9, itemStack.getItemDamage());\n world.spawnEntityInWorld(var22);\n world.playAuxSFX(1000, x, y, z, 0);\n }\n itemStack.stackSize--;\n return itemStack;\n }\n });\n ForgeChunkManager.setForcedChunkLoadingCallback(this, new LoadingCallback() {\n public void ticketsLoaded(List<Ticket> tickets, World world) {\n for (Ticket ticket : tickets) {\n if (ticket.getEntity() instanceof IChunkLoadHandler) {\n ((IChunkLoadHandler) ticket.getEntity()).chunkLoaderInit(ticket);\n } else {\n if (ticket.getModData() != null) {\n Vector3 position = new Vector3(ticket.getModData());\n TileEntity tileEntity = position.getTileEntity(ticket.world);\n if (tileEntity instanceof IChunkLoadHandler) {\n ((IChunkLoadHandler) tileEntity).chunkLoaderInit(ticket);\n }\n }\n }\n }\n }\n });\n GameRegistry.registerBlock(blockExplosive, ItemBlockExplosive.class, \"String_Node_Str\");\n GameRegistry.registerBlock(blockMachine, ItemBlockMachine.class, \"String_Node_Str\");\n GameRegistry.registerBlock(blockMissileTable, ItemBlockMissileTable.class, \"String_Node_Str\");\n ExplosiveHelper.explosionManager = ExplosiveRegistry.class;\n ICBMExplosion.proxy.preInit();\n}\n"
"public static String calculateClasspath(IJavaProject javaProject) {\n try {\n Set<String> accumulatedPathEntries = new LinkedHashSet<String>();\n IProject project = javaProject.getProject();\n String projectName = project.getName();\n IPath defaultOutputPath = javaProject.getOutputLocation();\n String defaultOutputLocation = pathToString(defaultOutputPath, project);\n IClasspathEntry[] cpes = javaProject.getResolvedClasspath(true);\n if (cpes != null && (classpath = CLASSPATH_CACHE.get(cpes)) == null) {\n Set<String> accumulatedPathEntries = new LinkedHashSet<String>();\n for (IClasspathEntry cpe : cpes) {\n if (cpe.getEntryKind() == IClasspathEntry.CPE_SOURCE) {\n continue;\n }\n IPath cpePath = cpe.getPath();\n String pathElement = null;\n String segmentZero = cpePath.segment(0);\n if (segmentZero.equals(projectName)) {\n pathElement = project.getFile(cpePath.removeFirstSegments(1)).getRawLocation().toOSString();\n } else {\n if (cpe.getEntryKind() == IClasspathEntry.CPE_LIBRARY) {\n try {\n IProject iproject = project.getWorkspace().getRoot().getProject(segmentZero);\n if (iproject != null) {\n IFile ifile = iproject.getFile(cpePath.removeFirstSegments(1));\n IPath ipath = (ifile == null ? null : ifile.getRawLocation());\n pathElement = (ipath == null ? null : ipath.toOSString());\n }\n } catch (Throwable t) {\n t.printStackTrace();\n }\n }\n if (cpe.getEntryKind() == IClasspathEntry.CPE_PROJECT) {\n computeDependenciesFromProject(project, segmentZero, accumulatedPathEntries);\n } else if (pathElement == null) {\n pathElement = cpe.getPath().toOSString();\n }\n }\n if (pathElement != null) {\n accumulatedPathEntries.add(pathElement);\n }\n }\n accumulatedPathEntries.add(defaultOutputLocation);\n try {\n if (isGroovyNaturedProject(project)) {\n for (IClasspathEntry entry : javaProject.getRawClasspath()) {\n if (entry.getOutputLocation() != null) {\n String location = pathToString(entry.getOutputLocation(), project);\n if (!defaultOutputLocation.equals(location)) {\n accumulatedPathEntries.add(location);\n }\n }\n }\n }\n } catch (CoreException e) {\n System.err.println(\"String_Node_Str\");\n }\n StringBuilder sb = new StringBuilder();\n for (String entry : accumulatedPathEntries) {\n sb.append(entry).append(File.pathSeparator);\n }\n return sb.toString();\n }\n } catch (JavaModelException jme) {\n System.err.println(\"String_Node_Str\" + javaProject.getProject().getName() + ':');\n jme.printStackTrace();\n }\n return \"String_Node_Str\";\n}\n"
"public void deleteResource(StoragePath storagePath) throws NotFoundException, GenericException {\n Path resourcePath = FSUtils.getEntityPath(basePath, storagePath);\n FSUtils.deletePath(resourcePath);\n Path resourceHistoryPath = historyPath.resolve(resourcePath);\n try {\n FSUtils.deletePath(resourceHistoryPath);\n FSUtils.deleteEmptyAncestorsQuietly(resourceHistoryPath);\n } catch (NotFoundException e) {\n }\n}\n"
"public DimensionType getY() {\n if (y != null) {\n return y;\n }\n if (generateBy instanceof ReportItemDesign) {\n return ((ReportItemDesign) generateBy).getY();\n }\n return null;\n}\n"
"public void sprint() {\n if (currentState != State.DEAD && stamina > 0 && !firing && !wasSprinting && recoveryTime <= 0) {\n Weapon weapon = this.inventory.currentItem();\n boolean isReady = weapon != null ? weapon.isReady() : true;\n if (weapon == null || !weapon.getType().equals(Type.ROCKET_LAUNCHER) && isReady) {\n if (currentState != State.SPRINTING) {\n game.emitSound(getId(), SoundType.RUFFLE, getCenterPos());\n }\n currentState = State.SPRINTING;\n return;\n }\n }\n wasSprinting = true;\n currentState = State.RUNNING;\n}\n"
"public boolean onNavigationItemSelected(MenuItem item) {\n navigateTo(item.getItemId(), getControllerFor(item.getItemId()));\n return true;\n}\n"
"public void testNotChanged() {\n Webhook hubA = Webhook.builder().name(\"String_Node_Str\").channelUrl(\"String_Node_Str\").callbackUrl(\"String_Node_Str\").build().withDefaults();\n Webhook hubC = Webhook.builder().name(\"String_Node_Str\").channelUrl(\"String_Node_Str\").callbackUrl(\"String_Node_Str\").build().withDefaults();\n assertFalse(hubA.allowedToChange(hubC));\n assertFalse(hubA.isChanged(hubC));\n}\n"
"private Map<String, Map<String, Object>> gatherReferencedAttributes(AttributeReference ar) {\n Map<String, Map<String, Object>> annos = new HashMap<String, Map<String, Object>>();\n try {\n Class<?> configBeanClass = Class.forName(ar.configBean());\n Method m = configBeanClass.getMethod(ar.methodName());\n for (Annotation a : m.getAnnotations()) {\n Map<String, Object> anno = new HashMap<String, Object>();\n for (Method am : a.annotationType().getDeclaredMethods()) {\n String methodName = am.getName();\n Object value = am.invoke(a);\n anno.put(methodName, value);\n }\n annos.put(a.annotationType().getName(), anno);\n }\n } catch (Exception ex) {\n Logger.getLogger(CompositeUtil.class.getName()).log(Level.SEVERE, ex.getLocalizedMessage());\n }\n return annos;\n}\n"
"public ArrayList<Property> getPropertyPropertiesForClass(JavaClass cls, TypeInfo info, boolean onlyPublic) {\n ArrayList<Property> properties = new ArrayList<Property>();\n if (cls == null) {\n return properties;\n }\n ArrayList<JavaMethod> getMethods = new ArrayList<JavaMethod>();\n for (JavaMethod next : new ArrayList<JavaMethod>(cls.getDeclaredMethods())) {\n if ((next.getName().startsWith(\"String_Node_Str\") && next.getName().length() > 3) || (next.getName().startsWith(\"String_Node_Str\") && next.getName().length() > 2)) {\n int modifiers = next.getModifiers();\n if (!Modifier.isStatic(modifiers) && !Modifier.isTransient(modifiers) && ((onlyPublic && Modifier.isPublic(next.getModifiers())) || !onlyPublic)) {\n getMethods.add(next);\n }\n }\n }\n boolean hasAnyAttribteProperty = false;\n for (int i = 0; i < getMethods.size(); i++) {\n JavaMethod getMethod = getMethods.get(i);\n String propertyName = \"String_Node_Str\";\n if (getMethod.getName().startsWith(\"String_Node_Str\")) {\n propertyName = getMethod.getName().substring(3);\n } else if (getMethod.getName().startsWith(\"String_Node_Str\")) {\n propertyName = getMethod.getName().substring(2);\n }\n String setMethodName = \"String_Node_Str\" + propertyName;\n propertyName = Character.toLowerCase(propertyName.charAt(0)) + propertyName.substring(1);\n JavaClass[] paramTypes = { (JavaClass) getMethod.getReturnType() };\n JavaMethod setMethod = cls.getDeclaredMethod(setMethodName, paramTypes);\n JavaMethod propertyMethod = null;\n if (setMethod != null && !setMethod.getAnnotations().isEmpty()) {\n if (!helper.isAnnotationPresent(setMethod, XmlTransient.class)) {\n propertyMethod = setMethod;\n }\n } else {\n if (!helper.isAnnotationPresent(getMethod, XmlTransient.class)) {\n propertyMethod = getMethod;\n }\n }\n Property property = null;\n if (helper.isAnnotationPresent(propertyMethod, XmlElements.class)) {\n property = new ChoiceProperty(helper);\n } else if (helper.isAnnotationPresent(propertyMethod, XmlAnyElement.class)) {\n property = new AnyProperty(helper);\n } else if (helper.isAnnotationPresent(propertyMethod, XmlElementRef.class) || helper.isAnnotationPresent(propertyMethod, XmlElementRefs.class)) {\n property = new ReferenceProperty(helper);\n } else {\n property = new Property(helper);\n }\n if (helper.isAnnotationPresent(propertyMethod, XmlMixed.class)) {\n info.setMixed(true);\n }\n property.setElement(propertyMethod);\n property.setSchemaName(getQNameForProperty(propertyName, propertyMethod, getNamespaceInfoForPackage(cls.getPackage())));\n property.setPropertyName(propertyName);\n JavaClass returnClass = (JavaClass) getMethod.getReturnType();\n if (!helper.isAnnotationPresent(returnClass, XmlTransient.class)) {\n property.setType(returnClass);\n } else {\n JavaClass parent = returnClass.getSuperclass();\n while (parent != null) {\n if (parent.getName().equals(\"String_Node_Str\")) {\n property.setType(parent);\n break;\n }\n if (!helper.isAnnotationPresent(parent, XmlTransient.class)) {\n property.setType(parent);\n break;\n }\n parent = parent.getSuperclass();\n }\n }\n property.setGenericType(helper.getGenericReturnType(getMethod));\n property.setGetMethodName(getMethod.getName());\n if (setMethod != null) {\n property.setSetMethodName(setMethodName);\n }\n property.setMethodProperty(true);\n JavaClass ptype = property.getType();\n if (helper.isAnnotationPresent(property.getElement(), XmlJavaTypeAdapter.class)) {\n XmlJavaTypeAdapter adapter = (XmlJavaTypeAdapter) helper.getAnnotation(property.getElement(), XmlJavaTypeAdapter.class);\n property.setAdapterClass(adapter.value());\n } else if (info.getAdaptersByClass().get(ptype) != null) {\n property.setAdapterClass(info.getAdaptersByClass().get(ptype));\n }\n if (property.hasAdapterClass()) {\n ptype = property.getValueType();\n }\n if (helper.isAnnotationPresent(property.getElement(), XmlSchemaType.class)) {\n XmlSchemaType schemaType = (XmlSchemaType) helper.getAnnotation(property.getElement(), XmlSchemaType.class);\n QName schemaTypeQname = new QName(schemaType.namespace(), schemaType.name());\n property.setSchemaType(schemaTypeQname);\n }\n if (helper.isAnnotationPresent(property.getElement(), XmlAttachmentRef.class) && areEquals(ptype, JAVAX_ACTIVATION_DATAHANDLER)) {\n property.setIsSwaAttachmentRef(true);\n property.setSchemaType(XMLConstants.SWA_REF_QNAME);\n } else if (areEquals(ptype, JAVAX_ACTIVATION_DATAHANDLER) || areEquals(ptype, byte[].class) || areEquals(ptype, Byte[].class) || areEquals(ptype, Image.class) || areEquals(ptype, Source.class) || areEquals(ptype, JAVAX_MAIL_INTERNET_MIMEMULTIPART)) {\n property.setIsMtomAttachment(true);\n property.setSchemaType(XMLConstants.BASE_64_BINARY_QNAME);\n }\n if (helper.isAnnotationPresent(property.getElement(), XmlMimeType.class)) {\n property.setMimeType(((XmlMimeType) helper.getAnnotation(property.getElement(), XmlMimeType.class)).value());\n }\n if (helper.isAnnotationPresent(property.getElement(), XmlJavaTypeAdapter.class)) {\n XmlJavaTypeAdapter adapter = (XmlJavaTypeAdapter) helper.getAnnotation(property.getElement(), XmlJavaTypeAdapter.class);\n property.setAdapterClass(adapter.value());\n } else if (info.getAdaptersByClass().get(ptype) != null) {\n property.setAdapterClass(info.getAdaptersByClass().get(ptype));\n }\n if (helper.isAnnotationPresent(property.getElement(), XmlAttribute.class)) {\n property.setIsAttribute(true);\n property.setIsRequired(((XmlAttribute) helper.getAnnotation(property.getElement(), XmlAttribute.class)).required());\n }\n if (helper.isAnnotationPresent(property.getElement(), XmlAnyAttribute.class)) {\n if (hasAnyAttribteProperty) {\n throw org.eclipse.persistence.exceptions.JAXBException.multipleAnyAttributeMapping(cls.getName());\n }\n if (!ptype.getName().equals(\"String_Node_Str\")) {\n throw org.eclipse.persistence.exceptions.JAXBException.anyAttributeOnNonMap(property.getPropertyName());\n }\n property.setIsAttribute(true);\n hasAnyAttribteProperty = true;\n }\n if (helper.isAnnotationPresent(property.getElement(), XmlElements.class)) {\n XmlElements xmlElements = (XmlElements) helper.getAnnotation(property.getElement(), XmlElements.class);\n XmlElement[] elements = xmlElements.value();\n ArrayList<Property> choiceProperties = new ArrayList<Property>(elements.length);\n for (int j = 0; j < elements.length; j++) {\n XmlElement next = elements[j];\n Property choiceProp = new Property();\n String name = next.name();\n String namespace = next.namespace();\n QName qName = null;\n if (name.equals(\"String_Node_Str\")) {\n name = propertyName;\n }\n if (!namespace.equals(\"String_Node_Str\")) {\n qName = new QName(namespace, name);\n } else {\n qName = new QName(name);\n }\n choiceProp.setPropertyName(property.getPropertyName());\n choiceProp.setType(helper.getJavaClass(next.type()));\n choiceProp.setSchemaName(qName);\n choiceProp.setSchemaType(getSchemaTypeFor(helper.getJavaClass(next.type())));\n choiceProp.setElement(property.getElement());\n choiceProperties.add(choiceProp);\n }\n ((ChoiceProperty) property).setChoiceProperties(choiceProperties);\n }\n if (helper.isAnnotationPresent(property.getElement(), XmlAnyElement.class)) {\n XmlAnyElement anyElement = (XmlAnyElement) helper.getAnnotation(property.getElement(), XmlAnyElement.class);\n ((AnyProperty) property).setDomHandlerClass(anyElement.value());\n ((AnyProperty) property).setLax(anyElement.lax());\n }\n if (helper.isAnnotationPresent(property.getElement(), XmlElementRef.class) || helper.isAnnotationPresent(property.getElement(), XmlElementRefs.class)) {\n XmlElementRef[] elementRefs;\n XmlElementRef ref = (XmlElementRef) helper.getAnnotation(property.getElement(), XmlElementRef.class);\n if (ref != null) {\n elementRefs = new XmlElementRef[] { ref };\n } else {\n XmlElementRefs refs = (XmlElementRefs) helper.getAnnotation(property.getElement(), XmlElementRefs.class);\n elementRefs = refs.value();\n info.setHasElementRefs(true);\n }\n for (XmlElementRef nextRef : elementRefs) {\n JavaClass type = ptype;\n String typeName = type.getQualifiedName();\n property.setType(type);\n if (isCollectionType(property)) {\n if (type.hasActualTypeArguments()) {\n type = (JavaClass) type.getActualTypeArguments().toArray()[0];\n typeName = type.getQualifiedName();\n }\n }\n if (nextRef.type() != XmlElementRef.DEFAULT.class) {\n typeName = helper.getJavaClass(nextRef.type()).getQualifiedName();\n }\n ElementDeclaration referencedElement = this.xmlRootElements.get(typeName);\n if (referencedElement != null) {\n addReferencedElement((ReferenceProperty) property, referencedElement);\n } else {\n String name = nextRef.name();\n String namespace = nextRef.namespace();\n if (namespace.equals(\"String_Node_Str\")) {\n namespace = \"String_Node_Str\";\n }\n QName qname = new QName(namespace, name);\n referencedElement = this.globalElements.get(qname);\n if (referencedElement != null) {\n addReferencedElement((ReferenceProperty) property, referencedElement);\n } else {\n throw org.eclipse.persistence.exceptions.JAXBException.invalidElementRef(property.getPropertyName(), cls.getName());\n }\n }\n }\n }\n if (helper.isAnnotationPresent(property.getElement(), XmlValue.class)) {\n info.setXmlValueProperty(property);\n JavaClass parent = cls.getSuperclass();\n while (parent != null && !(parent.getQualifiedName().equals(\"String_Node_Str\"))) {\n if (typeInfo.get(parent.getQualifiedName()) != null) {\n throw JAXBException.propertyOrFieldCannotBeXmlValue(propertyName);\n }\n parent = parent.getSuperclass();\n }\n }\n if (!helper.isAnnotationPresent(property.getElement(), XmlTransient.class)) {\n properties.add(property);\n } else {\n List<String> propOrderList = Arrays.asList(info.getPropOrder());\n if (propOrderList.contains(propertyName)) {\n throw JAXBException.transientInProporder(propertyName);\n }\n }\n if (ptype.isPrimitive()) {\n property.setIsRequired(true);\n } else if (helper.isAnnotationPresent(property.getElement(), XmlElement.class)) {\n XmlElement xmlElement = (XmlElement) helper.getAnnotation(property.getElement(), XmlElement.class);\n property.setIsRequired(xmlElement.required());\n property.setNillable(xmlElement.nillable());\n }\n }\n return properties;\n}\n"
"protected View prepareDecorView(View v) {\n return ContextMenuDecorView.prepareDecorView(getSupportActivity(), v, this, INTERNAL_DECOR_VIEW_ID);\n}\n"
"void writeDurationsToParcel(Parcel out) {\n out.writeInt(mDurationsTableSize);\n for (int i = 0; i < mDurationsTableSize; i++) {\n if (DEBUG_PARCEL)\n Slog.i(TAG, \"String_Node_Str\" + mName + \"String_Node_Str\" + i + \"String_Node_Str\" + printLongOffset(mDurationsTable[i]));\n out.writeInt(mDurationsTable[i]);\n }\n}\n"
"private void handleDoubleClick(int column, Object target) {\n if (column == 1 && getTreeProvider().allowsSecurity(target)) {\n Permission perm = getTreeProvider().getPermission(target);\n if (perm == null) {\n perm = getTreeProvider().createPermission(target);\n }\n boolean allowsCondition = getTreeProvider().allowsCondition(target);\n boolean allowsMask = getTreeProvider().allowsMasking(target);\n String message = getTreeProvider().getSecurityDialogMessage(target);\n SecurityDefinitionDialog dialog = new SecurityDefinitionDialog(getShell(), Messages.setSecurityValuesTitle, message, perm, allowsCondition, allowsMask, existingPerm);\n if (dialog.open() == Window.OK) {\n if (allowsCondition) {\n perm.setCondition(dialog.getCondition());\n perm.setConstraint(dialog.getConstraintValue());\n }\n if (allowsMask) {\n perm.setMask(dialog.getMask());\n perm.setOrder(dialog.getOrder());\n }\n getWizard().refreshAllTabs();\n validateInputs();\n }\n }\n}\n"
"public static final DefactoModel readModel(String pathToModel, Boolean isCorrect, List<String> languages) throws FileNotFoundException {\n Model model = ModelFactory.createDefaultModel();\n model.read(new FileReader(pathToModel), \"String_Node_Str\", \"String_Node_Str\");\n String absolutePath = new File(pathToModel).getAbsolutePath();\n absolutePath = absolutePath.replace(\"String_Node_Str\", \"String_Node_Str\");\n DefactoModel defactoModel = new DefactoModel(model, absolutePath, isCorrect, languages);\n return defactoModel;\n}\n"
"protected void collectStats(final long key, final Context context) {\n final long level = (key % numLevels) + minLevel;\n context.getCounter(\"String_Node_Str\", \"String_Node_Str\" + Long.toString(level)).increment(1);\n}\n"
"public void fire(ArrayList<LeftClickListener> listeners) {\n for (LeftClickListener listener : listeners) {\n listener.onLeftClick(this);\n if (isCancelled())\n break;\n }\n}\n"
"public boolean shouldExecuteOnProject(Project project) {\n if (!PHP.equals(project.getLanguage())) {\n return false;\n }\n Configuration configuration = project.getConfiguration();\n boolean skip = configuration.getBoolean(PHPCS_SKIP_KEY, !configuration.getBoolean(PHPCS_SHOULD_RUN_KEY, !parseBoolean(PHPCS_DEFAULT_SKIP)));\n if (skip) {\n return false;\n }\n if (!project.getReuseExistingRulesConfig() && profile.getActiveRulesByRepository(PHPCS_REPOSITORY_KEY).isEmpty()) {\n return false;\n }\n return true;\n}\n"
"private void removeItemFromRoster(Collection rosterItems, XMPPID itemIDToRemove) {\n boolean removed = false;\n for (Iterator i = rosterItems.iterator(); i.hasNext(); ) {\n IRosterItem item = (IRosterItem) i.next();\n if (item instanceof org.eclipse.ecf.presence.roster.RosterGroup) {\n org.eclipse.ecf.presence.roster.RosterGroup group = (org.eclipse.ecf.presence.roster.RosterGroup) item;\n removed = removeItemFromRosterGroup(group, itemIDToRemove);\n if (group.getEntries().size() == 0)\n i.remove();\n } else if (item instanceof org.eclipse.ecf.presence.roster.RosterEntry) {\n if (((org.eclipse.ecf.presence.roster.RosterEntry) item).getUser().getID().equals(itemIDToRemove)) {\n i.remove();\n removed = true;\n }\n }\n }\n}\n"
"private void registerDefaultProviders() {\n for (ProviderDefinition providerDefinition : getDefaultProviderProperties()) {\n if (!providerDefinition.getPlatforms().contains(platformBroker.getName()))\n continue;\n Map<String, String> properties = providerDefinition.getProperties();\n rootSchemaDef.addProviderDef(providerName, null, properties, null);\n }\n}\n"
"public int human$getExperienceSinceLevel() {\n return this.human$getTotalExperience() - xpAtLevel(this.human$getLevel());\n}\n"
"public Long startNode(String clusterName, String nodeGroupName, String nodeName) throws Exception {\n logger.info(\"String_Node_Str\" + ClusterCmdUtil.getFullNodeName(clusterName, nodeGroupName, nodeName));\n ClusterEntity cluster;\n NodeGroupEntity group;\n if ((cluster = ClusterEntity.findClusterEntityByName(clusterName)) == null) {\n logger.error(\"String_Node_Str\" + clusterName + \"String_Node_Str\");\n throw BddException.NOT_FOUND(\"String_Node_Str\", clusterName);\n }\n if ((group = NodeGroupEntity.findNodeGroupEntityByName(cluster, nodeGroupName)) == null) {\n logger.error(\"String_Node_Str\" + nodeGroupName + \"String_Node_Str\");\n throw BddException.NOT_FOUND(\"String_Node_Str\", nodeGroupName);\n }\n if (HadoopNodeEntity.findByName(group, nodeName) == null) {\n logger.error(\"String_Node_Str\" + nodeName + \"String_Node_Str\");\n throw BddException.NOT_FOUND(\"String_Node_Str\", nodeName);\n }\n StartClusterListener listener = new StartClusterListener(clusterName, nodeGroupName, nodeName);\n return createClusterMgmtTaskWithErrorSetting(cluster, listener, null);\n}\n"
"protected void dealExtendedItem(ExtendedItem element, Module module) {\n dealReportItem(element, module);\n List values = (List) element.getLocalProperty(module, ExtendedItem.FILTER_PROP);\n if (!(values == null || values.size() < 1)) {\n for (int i = 0; i < values.size(); i++) {\n FilterCondition struct = (FilterCondition) values.get(i);\n handleBoundsForValue(element, module, struct.getExpr());\n handleBoundsForValue(element, module, struct.getValue1());\n handleBoundsForValue(element, module, struct.getValue2());\n }\n }\n Object reportItem = element.getExtendedElement();\n if (reportItem != null && reportItem instanceof ICompatibleReportItem) {\n List jsExprs = ((ICompatibleReportItem) reportItem).getRowExpressions();\n for (int i = 0; i < jsExprs.size(); i++) handleBoundsForValue(element, module, (String) jsExprs.get(i));\n Map updatedExprs = DataBoundColumnUtil.handleJavaExpression(jsExprs, element, module, null);\n ((ICompatibleReportItem) reportItem).updateRowExpressions(updatedExprs);\n }\n}\n"
"public void onRequestPermissionsResult(final int requestCode, final String[] permissions, final int[] grantResults) {\n LOGW(TAG, \"String_Node_Str\" + grantResults.length + \"String_Node_Str\" + permissions.length);\n if (grantResults.length == APP_REQUIRED_PERMISSIONS.length && grantResults[0] == PackageManager.PERMISSION_GRANTED && grantResults[1] == PackageManager.PERMISSION_GRANTED) {\n clearSnackbar();\n reloadAccounts();\n refreshAccountListUI();\n } else {\n LOGI(TAG, \"String_Node_Str\");\n mSnackbar = new WeakReference<>(PermissionsUtils.displayConditionalPermissionDenialSnackbar(getActivity(), R.string.welcome_permissions_rationale, APP_REQUIRED_PERMISSIONS, REQUEST_PERMISSION_REQUEST_CODE));\n }\n}\n"
"public EnumActionResult onItemUse(EntityPlayer playerIn, World worldIn, BlockPos pos, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) {\n if (!worldIn.isRemote) {\n if (worldIn.rand.nextInt(16) == 0) {\n ItemStack stack = playerIn.getHeldItem(hand);\n Entity spawningEntity = new EntitySteven(worldIn);\n spawningEntity.setPosition(pos.getX() + 0.5, pos.getY() + 1.0, pos.getZ() + 0.5);\n worldIn.spawnEntity(spawningEntity);\n if (!playerIn.capabilities.isCreativeMode) {\n stack.damageItem(1, playerIn);\n }\n } else {\n if (worldIn.rand.nextInt(3) == 0) {\n worldIn.setWorldTime(worldIn.rand.nextInt(24000) - 12000);\n } else if (worldIn.rand.nextBoolean()) {\n if (worldIn.isRaining()) {\n worldIn.getWorldInfo().setCleanWeatherTime(worldIn.rand.nextInt(12000) + 12000);\n worldIn.getWorldInfo().setThunderTime(0);\n worldIn.getWorldInfo().setRainTime(0);\n worldIn.getWorldInfo().setRaining(false);\n } else {\n worldIn.getWorldInfo().setCleanWeatherTime(0);\n worldIn.getWorldInfo().setThunderTime(worldIn.rand.nextInt(12000) + 1200);\n worldIn.getWorldInfo().setRainTime(worldIn.rand.nextInt(12000) + 1200);\n worldIn.getWorldInfo().setRaining(true);\n }\n } else {\n for (int x = -4; x < 4; ++x) {\n for (int y = -4; y < 4; ++y) {\n for (int z = -4; z < 4; ++z) {\n BlockPos newp = pos.add(x, y, z);\n if (worldIn.rand.nextInt(3) != 0) {\n InjectorResult.drainBlock(worldIn, newp);\n }\n }\n }\n }\n }\n }\n return EnumActionResult.SUCCESS;\n }\n return EnumActionResult.PASS;\n}\n"
"public final SortedSet<OWLClassExpression> getSuperClasses(OWLClassExpression concept) {\n if (precomputeClassHierarchy) {\n return getClassHierarchy().getSuperClasses(concept, true);\n } else {\n try {\n return getSuperClassesImpl(concept);\n } catch (ReasoningMethodUnsupportedException e) {\n e.printStackTrace();\n }\n }\n return null;\n}\n"
"private void createAnonClassDecl(polyglot.ast.New aNew) {\n SootClass outerClass = ((soot.RefType) Util.getSootType(aNew.anonType().outer())).getSootClass();\n sootClass.addTag(new soot.tagkit.OuterClassTag(outerClass, \"String_Node_Str\", true));\n soot.SootClass typeClass = ((soot.RefType) Util.getSootType(aNew.objectType().type())).getSootClass();\n if (((polyglot.types.ClassType) aNew.objectType().type()).flags().isInterface()) {\n sootClass.addInterface(typeClass);\n sootClass.setSuperclass(soot.Scene.v().getSootClass(\"String_Node_Str\"));\n } else {\n sootClass.setSuperclass(typeClass);\n if (((polyglot.types.ClassType) aNew.objectType().type()).isNested()) {\n polyglot.types.ClassType superType = (polyglot.types.ClassType) aNew.objectType().type();\n Util.addInnerClassTag(sootClass, typeClass.getName(), ((soot.RefType) Util.getSootType(superType.outer())).toString(), superType.name(), Util.getModifier(superType.flags()));\n }\n }\n ArrayList params = new ArrayList();\n soot.SootMethod method;\n if (((polyglot.types.ClassType) aNew.objectType().type()).flags().isInterface()) {\n method = new soot.SootMethod(\"String_Node_Str\", params, soot.VoidType.v());\n } else {\n Iterator aIt = aNew.arguments().iterator();\n while (aIt.hasNext()) {\n polyglot.types.Type pType = ((polyglot.ast.Expr) aIt.next()).type();\n params.add(Util.getSootType(pType));\n }\n method = new soot.SootMethod(\"String_Node_Str\", params, soot.VoidType.v());\n }\n AnonClassInitMethodSource src = new AnonClassInitMethodSource();\n method.setSource(src);\n sootClass.addMethod(method);\n AnonLocalClassInfo info = (AnonLocalClassInfo) finalLocalInfo.get(new polyglot.util.IdentityKey(aNew.anonType()));\n if (!info.inStaticMethod()) {\n addOuterClassThisRefToInit(aNew.anonType().outer());\n addOuterClassThisRefField(aNew.anonType().outer());\n src.thisOuterType(Util.getSootType(aNew.anonType().outer()));\n src.hasOuterRef(true);\n }\n src.inStaticMethod(info.inStaticMethod());\n if (info != null) {\n src.setFinalsList(addFinalLocals(aNew.body(), info.finalLocals(), (polyglot.types.ClassType) aNew.anonType(), info));\n }\n src.outerClassType(Util.getSootType(aNew.anonType().outer()));\n if (((polyglot.types.ClassType) aNew.objectType().type()).isNested()) {\n src.superOuterType(Util.getSootType(((polyglot.types.ClassType) aNew.objectType().type()).outer()));\n src.isSubType(Util.isSubType(aNew.anonType().outer(), ((polyglot.types.ClassType) aNew.objectType().type()).outer()));\n }\n}\n"
"public void run() {\n op.checkIfCancelled();\n final int x0 = rectangle.x;\n final int y0 = rectangle.y;\n final int w = rectangle.width;\n final int h = rectangle.height;\n final int xMax = x0 + w;\n final int yMax = y0 + h;\n final Rectangle sourceRectangle = getSourceRectangle(x0, y0, w, h);\n for (int i = 0; i < sourceTiles.length; ++i) {\n sourceTiles[i] = op.getSourceTile(srcBandList.srcBands[i], sourceRectangle);\n dataBuffers[i] = sourceTiles[i].getDataBuffer();\n }\n final TileIndex srcIndex = new TileIndex(sourceTiles[0]);\n for (int y = y0; y < yMax; ++y) {\n for (int x = x0; x < xMax; ++x) {\n PolOpUtils.getMeanCoherencyMatrix(x, y, halfWindowSizeX, halfWindowSizeY, srcWidth, srcHeight, sourceProductType, srcIndex, dataBuffers, Tr, Ti);\n int clusterIdx;\n synchronized (clusterCounter) {\n if (category[y][x] == Categories.vol) {\n cluster[y][x] = findClosestCluster(Tr, Ti, pvCenterList);\n computeSummationOfT3(cluster[y][x] + 1, Tr, Ti, pvSumRe, pvSumIm);\n clusterCounter[0][cluster[y][x]] += 1;\n } else if (category[y][x] == Categories.dbl) {\n cluster[y][x] = findClosestCluster(Tr, Ti, pdCenterList);\n computeSummationOfT3(cluster[y][x] + 1, Tr, Ti, pdSumRe, pdSumIm);\n clusterCounter[1][cluster[y][x]] += 1;\n } else if (category[y][x] == Categories.suf) {\n cluster[y][x] = findClosestCluster(Tr, Ti, psCenterList);\n computeSummationOfT3(cluster[y][x] + 1, Tr, Ti, psSumRe, psSumIm);\n clusterCounter[2][cluster[y][x]] += 1;\n } else {\n java.util.List<ClusterInfo> allCenterList = new ArrayList<>();\n allCenterList.addAll(pvCenterList);\n allCenterList.addAll(pdCenterList);\n allCenterList.addAll(psCenterList);\n clusterIdx = findClosestCluster(Tr, Ti, allCenterList);\n if (clusterIdx >= pvNumClusters + pdNumClusters) {\n clusterIdx -= pvNumClusters + pdNumClusters;\n computeSummationOfT3(clusterIdx + 1, Tr, Ti, psSumRe, psSumIm);\n clusterCounter[2][clusterIdx] += 1;\n mask[y][x] = (byte) clusterIdx;\n } else if (clusterIdx >= pvNumClusters) {\n clusterIdx -= pvNumClusters;\n computeSummationOfT3(clusterIdx + 1, Tr, Ti, pdSumRe, pdSumIm);\n clusterCounter[1][clusterIdx] += 1;\n mask[y][x] = (byte) (-64 + clusterIdx);\n } else {\n computeSummationOfT3(clusterIdx + 1, Tr, Ti, pvSumRe, pvSumIm);\n clusterCounter[0][clusterIdx] += 1;\n mask[y][x] = (byte) (-128 + clusterIdx);\n }\n }\n }\n }\n }\n}\n"
"public RrPolygonList hatch(LayerRules layerConditions, boolean surface, RrHalfPlane overrideDirection) {\n RrPolygonList result = new RrPolygonList();\n boolean foundation = layerConditions.getLayingSupport();\n Extruder[] es = layerConditions.getPrinter().getExtruders();\n for (int i = 0; i < size(); i++) {\n Extruder e;\n Attributes att = attribute(i);\n if (foundation)\n e = es[0];\n else\n e = att.getExtruder();\n Extruder ei;\n if (!surface) {\n ei = e.getInfillExtruder();\n if (ei != null)\n att = new Attributes(ei.getMaterial(), null, null, ei.getAppearance());\n } else\n ei = e;\n if (ei != null) {\n RrHalfPlane hatchLine;\n if (overrideDirection != null)\n hatchLine = overrideDirection;\n result.add(get(i).hatch(hatchLine, layerConditions.getHatchWidth(ei), att));\n }\n }\n return result;\n}\n"
"public String toDebugString() {\n if (getJNode() instanceof JMethodCall) {\n return \"String_Node_Str\" + ((JMethodCall) getJNode()).getTarget().getName() + \"String_Node_Str\";\n }\n return \"String_Node_Str\" + getJNode().toSource() + \"String_Node_Str\";\n}\n"
"protected TupleList executeList(final SqlTupleReader tr) {\n tr.setMaxRows(maxRows);\n for (CrossJoinArg arg : args) {\n addLevel(tr, arg);\n }\n List<Object> key = new ArrayList<Object>();\n key.add(tr.getCacheKey());\n key.addAll(Arrays.asList(args));\n TupleList result = cache.get(key);\n boolean hasEnumTargets = (tr.getEnumTargetCount() > 0);\n if (result != null && !hasEnumTargets) {\n if (listener != null) {\n TupleEvent e = new TupleEvent(this, tr);\n listener.foundInCache(e);\n }\n return new DelegatingTupleList(args.length, Util.<List<Member>>cast(result));\n }\n if (result == null && listener != null) {\n TupleEvent e = new TupleEvent(this, tr);\n listener.executingSql(e);\n }\n TupleList partialResult = result;\n List<List<RolapMember>> newPartialResult = null;\n if (hasEnumTargets && partialResult == null) {\n newPartialResult = new ArrayList<List<RolapMember>>();\n }\n DataSource dataSource = schemaReader.getDataSource();\n if (args.length == 1) {\n result = tr.readMembers(dataSource, partialResult, newPartialResult);\n } else {\n result = tr.readTuples(dataSource, partialResult, newPartialResult);\n }\n if (hasEnumTargets) {\n if (newPartialResult != null) {\n cache.put(key, new DelegatingTupleList(args.length, Util.<List<Member>>cast(newPartialResult)));\n }\n } else {\n cache.put(key, result);\n }\n return result;\n}\n"
"public void run(IAction action) {\n store = getIPreferenceStore();\n Configuration config = getConfiguration(store, selection);\n PropertiesLoader props = getPropertiesLoader(config.language);\n StructuredSelection structuredSelection = null;\n InputStream inputStream = null;\n FileOutputStream outputStream = null;\n OutputStreamWriter writer = null;\n String projectName = null;\n String testCaseFileName = null;\n String testCaseCreateFilePath = null;\n String resourcePathForTargetClassFile = null;\n String resourcePathForTestClassFile = null;\n try {\n if (selection instanceof StructuredSelection) {\n structuredSelection = (StructuredSelection) selection;\n }\n if (isNotSelected(structuredSelection)) {\n openWarningForRequired(props);\n return;\n } else if (isSelectedSeveral(structuredSelection)) {\n openWarningForSelectOneOnly(props);\n return;\n }\n projectName = getProjectName(structuredSelection);\n resourcePathForTargetClassFile = getResourcePathForTargetClassFile(structuredSelection);\n String projectRootAbsolutePath = getIWorkspaceRoot().findMember(projectName).getLocationURI().getPath() + StringValue.DirectorySeparator.General;\n resourcePathForTestClassFile = resourcePathForTargetClassFile.replaceFirst(config.directoryPathOfProductSourceCode, config.directoryPathOfTestSourceCode).replace(StringValue.FileExtension.JavaFile, StringValue.JUnit.TestClassNameSuffix + StringValue.FileExtension.JavaFile);\n testCaseCreateFilePath = projectRootAbsolutePath + getResourcePathForTargetClassFile(structuredSelection).replace(config.directoryPathOfProductSourceCode, config.directoryPathOfTestSourceCode).replace(StringValue.FileExtension.JavaFile, StringValue.JUnit.TestClassNameSuffix + StringValue.FileExtension.JavaFile);\n testCaseFileName = (getClassNameFromResourcePathForTargetClassFile(resourcePathForTargetClassFile) + StringValue.FileExtension.JavaFile).replace(StringValue.FileExtension.JavaFile, StringValue.JUnit.TestClassNameSuffix + StringValue.FileExtension.JavaFile);\n String testCaseCreateDirPath = testCaseCreateFilePath.replaceFirst(\"String_Node_Str\", \"String_Node_Str\");\n File testDir = new File(testCaseCreateDirPath);\n String[] dirArr = testCaseCreateDirPath.split(StringValue.DirectorySeparator.General);\n String tmpDirPath = StringValue.Empty;\n String tmpResourceDirPath = StringValue.Empty;\n for (String each : dirArr) {\n tmpDirPath += StringValue.DirectorySeparator.General + each;\n File tmpDir = new File(tmpDirPath);\n if (tmpDir.getPath().length() <= projectRootAbsolutePath.length()) {\n continue;\n }\n tmpResourceDirPath += StringValue.DirectorySeparator.General + each;\n if (!tmpDir.exists()) {\n if (!tmpDir.mkdir()) {\n System.err.println(\"String_Node_Str\" + tmpDir.getPath());\n }\n String parentPathOfCreatedDir = projectName + StringValue.DirectorySeparator.General + tmpResourceDirPath + \"String_Node_Str\";\n if (!ResourceRefreshUtil.refreshLocal(null, parentPathOfCreatedDir)) {\n System.err.println(\"String_Node_Str\" + parentPathOfCreatedDir);\n }\n }\n }\n if (!testDir.mkdirs()) {\n System.err.println(\"String_Node_Str\");\n }\n String pathOfTestCaseDir = projectName + StringValue.DirectorySeparator.General + resourcePathForTestClassFile + \"String_Node_Str\";\n if (!ResourceRefreshUtil.refreshLocal(null, pathOfTestCaseDir)) {\n openWarningForResourceRefreshError(props);\n return;\n }\n try {\n File outputIOFile = new File(testCaseCreateDirPath + StringValue.DirectorySeparator.General + testCaseFileName);\n String msg = props.get(Dialog.Common.alreadyExist) + \"String_Node_Str\" + testCaseFileName + \"String_Node_Str\" + StringValue.LineFeed + props.get(Dialog.Common.confirmToProceed);\n if (outputIOFile.exists() && !openConfirm(props, msg)) {\n return;\n }\n IResource targetClassResource = getIWorkspaceRoot().findMember(\"String_Node_Str\" + projectName + \"String_Node_Str\" + resourcePathForTargetClassFile);\n IFile targetClassFile = (IFile) targetClassResource;\n String absolutePath = projectRootAbsolutePath + StringValue.DirectorySeparator.General;\n config.directoryPathOfProductSourceCode = absolutePath + config.directoryPathOfProductSourceCode;\n config.directoryPathOfTestSourceCode = absolutePath + config.directoryPathOfTestSourceCode;\n String encoding = UniversalDetectorUtil.getDetectedEncoding(EclipseIFileUtil.getInputStreamFrom(targetClassFile));\n InputStream targetInputStream = EclipseIFileUtil.getInputStreamFrom(targetClassFile);\n String sourceCodeString = IOUtil.readAsString(targetInputStream, encoding);\n LineBreakProvider lineBreakProvider = new LineBreakProvider(config, null);\n TestCaseGenerator generator = TestCaseGeneratorFactory.create(config, lineBreakProvider);\n generator.initialize(new ClassMetaExtractor(config).extract(sourceCodeString));\n outputStream = new FileOutputStream(testCaseCreateDirPath + StringValue.DirectorySeparator.General + testCaseFileName);\n String charset = null;\n if (config.outputFileEncoding != null) {\n charset = config.outputFileEncoding;\n } else {\n charset = getDetectedCharsetFrom(targetClassFile, config.outputFileEncoding);\n }\n writer = new OutputStreamWriter(outputStream, charset);\n writer.write(generator.getNewTestCaseSourceCode());\n } catch (InvalidPreferenceException ipe) {\n ipe.printStackTrace();\n openWarning(props, props.get(Dialog.Common.invalidPreference));\n return;\n } catch (FileNotFoundException fnfe) {\n fnfe.printStackTrace();\n } finally {\n IOUtils.closeQuietly(writer);\n IOUtils.closeQuietly(outputStream);\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n IOUtils.closeQuietly(inputStream);\n IOUtils.closeQuietly(outputStream);\n IOUtils.closeQuietly(writer);\n }\n if (!ResourceRefreshUtil.refreshLocal(null, projectName + StringValue.DirectorySeparator.General + resourcePathForTestClassFile + \"String_Node_Str\")) {\n openWarningForResourceRefreshError(props);\n System.err.println(\"String_Node_Str\");\n return;\n }\n int retryCount = 0;\n IEditorPart editorPart = null;\n ThreadUtil.sleep(1500);\n while (true) {\n try {\n IProject project = getIProject(projectName);\n IFile testCaseFile = getIFile(project, resourcePathForTestClassFile);\n IWorkbenchPage page = getIWorkbenchPage();\n editorPart = getIEditorPart(page, testCaseFile);\n if (editorPart == null) {\n throw new NullPointerException();\n }\n break;\n } catch (Exception e) {\n retryCount++;\n if (retryCount > 3) {\n break;\n }\n ThreadUtil.sleep(1500);\n }\n }\n editorPart.setFocus();\n}\n"
"private void addAuthenticationFields() {\n Group authGroup = Form.createGroup(this, 1, Messages.getString(\"String_Node_Str\"), 110);\n authGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n authPartComposite = new Composite(authGroup, SWT.NULL);\n GridLayout authPartLayout = new GridLayout(1, false);\n authPartLayout.marginWidth = 0;\n authPartLayout.marginHeight = 0;\n authPartComposite.setLayout(authPartLayout);\n authPartComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n authCommonComposite = new Composite(authPartComposite, SWT.NULL);\n GridLayout authCommonCompLayout = new GridLayout(1, false);\n authCommonCompLayout.marginWidth = 0;\n authCommonCompLayout.marginHeight = 0;\n authCommonComposite.setLayout(authCommonCompLayout);\n authCommonComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n kerberosBtn = new Button(authCommonComposite, SWT.CHECK);\n kerberosBtn.setText(Messages.getString(\"String_Node_Str\"));\n kerberosBtn.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 4, 1));\n authNodejtOrRmHistoryComposite = new Composite(authCommonComposite, SWT.NULL);\n GridLayout authNodejtOrRmHistoryCompLayout = new GridLayout(4, false);\n authNodejtOrRmHistoryCompLayout.marginWidth = 0;\n authNodejtOrRmHistoryCompLayout.marginHeight = 0;\n authNodejtOrRmHistoryComposite.setLayout(authNodejtOrRmHistoryCompLayout);\n authNodejtOrRmHistoryComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n namenodePrincipalText = new LabelledText(authNodejtOrRmHistoryComposite, Messages.getString(\"String_Node_Str\"), 1);\n jtOrRmPrincipalText = new LabelledText(authNodejtOrRmHistoryComposite, Messages.getString(\"String_Node_Str\"), 1);\n jobHistoryPrincipalText = new LabelledText(authNodejtOrRmHistoryComposite, Messages.getString(\"String_Node_Str\"), 1);\n Composite placeHolder = new Composite(authCommonComposite, SWT.NULL);\n GridLayout placeHolderLayout = new GridLayout(4, false);\n placeHolderLayout.marginWidth = 0;\n placeHolderLayout.marginHeight = 0;\n placeHolder.setLayout(placeHolderLayout);\n placeHolder.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n userNameText = new LabelledText(placeHolder, Messages.getString(\"String_Node_Str\"), 1);\n groupText = new LabelledText(placeHolder, Messages.getString(\"String_Node_Str\"), 1);\n authKeytabComposite = new Composite(authGroup, SWT.NULL);\n GridLayout authKeytabCompLayout = new GridLayout(5, false);\n authKeytabCompLayout.marginWidth = 0;\n authKeytabCompLayout.marginHeight = 0;\n authKeytabComposite.setLayout(authKeytabCompLayout);\n authKeytabComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n keytabBtn = new Button(authKeytabComposite, SWT.CHECK);\n keytabBtn.setText(Messages.getString(\"String_Node_Str\"));\n keytabBtn.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 5, 1));\n keytabPrincipalText = new LabelledText(authKeytabComposite, Messages.getString(\"String_Node_Str\"), 1);\n String[] extensions = { \"String_Node_Str\" };\n keytabText = new LabelledFileField(authKeytabComposite, Messages.getString(\"String_Node_Str\"), extensions);\n authMaprTComposite = new Composite(authGroup, SWT.NULL);\n GridLayout authMaprTicketCompLayout = new GridLayout(1, false);\n authMaprTicketCompLayout.marginWidth = 0;\n authMaprTicketCompLayout.marginHeight = 0;\n authMaprTComposite.setLayout(authMaprTicketCompLayout);\n authMaprTComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n maprTBtn = new Button(authMaprTComposite, SWT.CHECK);\n maprTBtn.setText(Messages.getString(\"String_Node_Str\"));\n maprTBtn.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\n maprTPCDCompposite = new Composite(authMaprTComposite, SWT.NULL);\n GridLayout maprTPCDCompositeLayout = new GridLayout(1, false);\n maprTPCDCompositeLayout.marginWidth = 0;\n maprTPCDCompositeLayout.marginHeight = 0;\n maprTPCDCompposite.setLayout(maprTPCDCompositeLayout);\n maprTPCDCompposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n maprTPasswordCompposite = new Composite(maprTPCDCompposite, SWT.NULL);\n GridLayout maprTPasswordComppositeLayout = new GridLayout(2, false);\n maprTPasswordComppositeLayout.marginWidth = 0;\n maprTPasswordComppositeLayout.marginHeight = 0;\n maprTPasswordCompposite.setLayout(maprTPasswordComppositeLayout);\n maprTPasswordCompposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n maprTPasswordText = new LabelledText(maprTPasswordCompposite, Messages.getString(\"String_Node_Str\"), 1, SWT.PASSWORD | SWT.BORDER | SWT.SINGLE);\n maprTPasswordText.getTextControl().setEchoChar('*');\n Composite maprTCDCompposite = new Composite(maprTPCDCompposite, SWT.NULL);\n GridLayout maprTCDComppositeLayout = new GridLayout(2, false);\n maprTCDComppositeLayout.marginWidth = 0;\n maprTCDComppositeLayout.marginHeight = 0;\n maprTCDCompposite.setLayout(maprTCDComppositeLayout);\n maprTCDCompposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n maprTClusterText = new LabelledText(maprTCDCompposite, Messages.getString(\"String_Node_Str\"), 1);\n maprTDurationText = new LabelledText(maprTCDCompposite, Messages.getString(\"String_Node_Str\"), 1);\n maprTSetComposite = new Composite(authMaprTComposite, SWT.NULL);\n GridLayout maprTicketSetCompLayout = new GridLayout(3, false);\n maprTicketSetCompLayout.marginWidth = 0;\n maprTicketSetCompLayout.marginHeight = 0;\n maprTSetComposite.setLayout(maprTicketSetCompLayout);\n maprTSetComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n setMaprTHomeDirBtn = new Button(maprTSetComposite, SWT.CHECK);\n setMaprTHomeDirBtn.setText(Messages.getString(\"String_Node_Str\"));\n maprTHomeDirText = new LabelledText(maprTSetComposite, \"String_Node_Str\", 1);\n setHadoopLoginBtn = new Button(maprTSetComposite, SWT.CHECK);\n setHadoopLoginBtn.setText(Messages.getString(\"String_Node_Str\"));\n maprTHadoopLoginText = new LabelledText(maprTSetComposite, \"String_Node_Str\", 1);\n preloadAuthentificationBtn = new Button(maprTSetComposite, SWT.CHECK);\n preloadAuthentificationBtn.setText(Messages.getString(\"String_Node_Str\"));\n}\n"
"private void clearImpl() {\n Map<File, Future> fileFutures;\n rwLock.writeLock().lock();\n try {\n fileFutures = new ArrayList<Future>(fileToFutures.values());\n fileToFutures.clear();\n files.clear();\n urnMap.clear();\n fileToFileDescMap.clear();\n } finally {\n rwLock.writeLock().unlock();\n }\n for (Future future : fileFutures) {\n future.cancel(true);\n }\n dispatch(new FileViewChangeEvent(LibraryImpl.this, FileViewChangeEvent.Type.FILES_CLEARED, true));\n}\n"
"private void assertTree(SortedSet<TreeEntry> tree, String volume, String path, boolean recursive) throws Exception {\n SortedSet<TreeEntry> subtree = getSubtree(tree, path, recursive);\n int offs = 0;\n for (TreeEntry entry : subtree) {\n if (path.equals(entry.getName()))\n offs = entry.getName().length();\n String relPath = entry.getName().substring(offs);\n if (relPath.startsWith(\"String_Node_Str\"))\n relPath = relPath.substring(1);\n invokeSync(client.getattr(mrcAddress, uc, volume, relPath));\n }\n}\n"
"public BooleanToken isLessThan(ScalarToken arg) throws IllegalActionException {\n int typeInfo = TypeLattice.compare(this, arg);\n if (typeInfo == CPO.INCOMPARABLE) {\n throw new IllegalActionException(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + arg.getType());\n }\n if (typeInfo == CPO.LOWER) {\n return arg.isLessThan(this);\n }\n ScalarToken longArg = arg;\n if (typeInfo == CPO.HIGHER) {\n longArg = (ScalarToken) convert(arg);\n }\n if (_value < longArg.longValue()) {\n return new BooleanToken(true);\n }\n return new BooleanToken(false);\n}\n"
"public boolean applies(Ability abilityToModify, Ability source, Game game) {\n if (abilityToModify instanceof SpellAbility || abilityToModify instanceof FlashbackAbility || abilityToModify instanceof RetraceAbility) {\n Card sourceCard = game.getCard(abilityToModify.getSourceId());\n StackObject stackObject = game.getStack().getStackObject(abilityToModify.getSourceId());\n if (stackObject != null && stackObject instanceof Spell) {\n Zone zone = ((Spell) stackObject).getFromZone();\n if (zone != null && zone.equals(Zone.HAND)) {\n if (sourceCard != null && sourceCard.getOwnerId().equals(source.getControllerId()) && !sourceCard.getCardType().contains(CardType.LAND)) {\n Player player = game.getPlayer(source.getControllerId());\n String message = \"String_Node_Str\" + sourceCard.getName() + \"String_Node_Str\";\n if (player != null && player.chooseUse(outcome, message, game)) {\n return true;\n }\n }\n }\n }\n }\n return false;\n}\n"
"static List topOrBottom(Evaluator evaluator, List members, Calc exp, boolean isTop, boolean isPercent, double target) {\n Map mapMemberToValue = evaluateMembers(evaluator, exp, members, false);\n sort(evaluator, members, exp, isTop, true);\n if (isPercent) {\n toPercent(members, mapMemberToValue);\n }\n double runningTotal = 0;\n int numMembers = members.size();\n int nullCount = 0;\n for (int i = 0; i < numMembers; i++) {\n if (runningTotal >= target) {\n members = members.subList(0, i);\n break;\n }\n Object o = mapMemberToValue.get(members.get(i));\n if (o == Util.nullValue) {\n nullCount++;\n } else if (o instanceof Number) {\n runningTotal += ((Number) o).doubleValue();\n } else if (o instanceof Exception) {\n } else {\n throw Util.newInternal(\"String_Node_Str\" + o + \"String_Node_Str\");\n }\n }\n if ((numMembers > 0) && isPercent && (nullCount == numMembers)) {\n return (isTop) ? members.subList(0, 1) : members.subList(numMembers - 1, numMembers);\n }\n return members;\n}\n"
"public Sound transform(Sound sound) {\n int threshold = 100;\n int channelNum = sound.getChannelNum();\n Sound builtSound = new Sound(new long[sound.getSamples().length], sound.getNbBytesPerSample(), sound.getFreq(), channelNum);\n List<Integer> freqs;\n this.log(new LogEvent(LogLevel.VERBOSE, \"String_Node_Str\"));\n PeakFindSoundTransformation peak = new PeakFindSoundTransformation(threshold);\n peak.transform(sound);\n freqs = peak.getLoudestFreqs();\n double lastFreq = freqs.get(0);\n int lastBegining = 0;\n for (int i = 0; i < freqs.size(); i++) {\n this.log(new LogEvent(LogLevel.VERBOSE, \"String_Node_Str\" + i + \"String_Node_Str\" + freqs.size()));\n int length = (i - 1 - lastBegining) * threshold;\n if (i == freqs.size() - 1 || (Math.abs(freqs.get(i) - lastFreq) > freqs.get(i) / 100 && length > sound.getFreq() / 2)) {\n Note note = this.pack.get(this.instrument).getNearestNote((int) lastFreq);\n Sound attack = note.getAttack((int) lastFreq, channelNum, length);\n Sound decay = note.getDecay((int) lastFreq, channelNum, length);\n Sound sustain = note.getSustain((int) lastFreq, channelNum, length);\n Sound release = note.getRelease((int) lastFreq, channelNum, length);\n builtSound.append(threshold * lastBegining, attack, decay, sustain, release);\n lastBegining = i;\n lastFreq = freqs.get(i);\n }\n }\n return builtSound;\n}\n"
"protected void _execute() throws IllegalActionException {\n CompositeActor container = (CompositeActor) classToInstantiate.getContainer();\n CompositeActor newActor = null;\n try {\n Instantiable instance = null;\n StructuralInformation info = _strucuralInformation.get(classHandle);\n LinkedList<ComponentEntity> actors = info.freeActors;\n if (actors.size() == 0) {\n instance = classToInstantiate.instantiate(container, objectName);\n newActor = (CompositeActor) instance;\n LinkedList<IOPort> outputPortList = (LinkedList<IOPort>) newActor.outputPortList();\n container.notifyConnectivityChange();\n for (IOPort out : outputPortList) {\n ComponentRelation r = null;\n HashSet<IOPort> ports = info.getPortReceiver(out.getName());\n if (ports == null) {\n continue;\n }\n for (IOPort recv : ports) {\n if (r == null) {\n r = container.connect(out, recv, objectName + \"String_Node_Str\" + out.getName());\n } else {\n recv.link(r);\n }\n }\n }\n if (_debugging) {\n _debug(\"String_Node_Str\" + objectName);\n }\n } else {\n instance = actors.poll();\n if (instance == null) {\n throw new IllegalActionException(\"String_Node_Str\");\n } else {\n newActor = (CompositeActor) instance;\n newActor.setDisplayName(objectName);\n if (_debugging) {\n _debug(instance.getName() + \"String_Node_Str\" + objectName);\n }\n }\n }\n {\n Attribute name = newActor.getAttribute(\"String_Node_Str\");\n if (name != null) {\n Parameter p = (Parameter) name;\n p.setTypeEquals(BaseType.STRING);\n p.setExpression(\"String_Node_Str\" + objectName + \"String_Node_Str\");\n }\n }\n List<HlaSubscriber> subscribers = newActor.entityList(HlaSubscriber.class);\n for (int i = 0; i < subscribers.size(); ++i) {\n HlaSubscriber sub = subscribers.get(i);\n sub.objectName.setExpression(\"String_Node_Str\" + objectName + \"String_Node_Str\");\n ;\n sub.setObjectHandle(objectHandle);\n _hlaAttributesSubscribedTo.put(sub.getIdentity(), new Object[] { sub.output, sub.output.getType(), \"String_Node_Str\", classHandle, sub.getAttributeHandle() });\n _fromFederationEvents.put(sub.getIdentity(), new LinkedList<TimedEvent>());\n }\n } catch (NameDuplicationException | CloneNotSupportedException ex) {\n ex.printStackTrace();\n }\n}\n"