content
stringlengths
40
137k
"public static String getTypeString(int type) throws OdaException {\n Integer typeInteger = Integer.valueOf(type);\n if (typeIntStringPair.containsKey(typeInteger))\n return typeIntStringPair.get(typeInteger).toString();\n throw new OdaException();\n}\n"
"public Insets getPaddingAndBorder(int height, Border border, Insets margin, int fontSize, Properties properties, boolean isButton, int valign) {\n Insets insets = null;\n Insets borderMargin = margin;\n if (border != null) {\n if (border instanceof CompoundBorder) {\n Insets marginInside = ComponentFactoryHelper.getBorderInsetsForNoComponent(((CompoundBorder) border).getInsideBorder());\n borderMargin = TemplateGenerator.sumInsets(borderMargin, marginInside);\n Border ob = ((CompoundBorder) border).getOutsideBorder();\n if (ob instanceof ISupportCustomBorderInsets) {\n insets = ((ISupportCustomBorderInsets) ob).getCustomBorderInsets();\n } else {\n insets = ob.getBorderInsets(null);\n }\n } else if (border instanceof ISupportCustomBorderInsets) {\n insets = ((ISupportCustomBorderInsets) border).getCustomBorderInsets();\n } else {\n try {\n insets = border.getBorderInsets(null);\n } catch (Exception ex) {\n insets = defaultBorder;\n Debug.error(ex);\n }\n }\n } else {\n insets = defaultBorder;\n }\n Insets padding = borderMargin;\n if (padding == null)\n padding = defaultPadding;\n if (properties != null) {\n Insets borderAndPadding = TemplateGenerator.sumInsets(insets, padding);\n int innerHeight = height;\n if (borderAndPadding != null)\n innerHeight -= borderAndPadding.top + borderAndPadding.bottom;\n int bottomPaddingExtra = 0;\n if (isButton && valign != ISupportTextSetup.CENTER) {\n bottomPaddingExtra = innerHeight;\n }\n if (padding == null) {\n properties.put(\"String_Node_Str\", \"String_Node_Str\");\n properties.put(\"String_Node_Str\", \"String_Node_Str\");\n properties.put(\"String_Node_Str\", \"String_Node_Str\");\n properties.put(\"String_Node_Str\", getSizeString(bottomPaddingExtra));\n } else {\n properties.put(\"String_Node_Str\", getSizeString(padding.top));\n properties.put(\"String_Node_Str\", getSizeString(padding.right));\n properties.put(\"String_Node_Str\", getSizeString(padding.left));\n properties.put(\"String_Node_Str\", getSizeString((bottomPaddingExtra + padding.bottom)));\n }\n }\n if (insets == null)\n insets = padding;\n else {\n insets = TemplateGenerator.sumInsets(insets, padding);\n }\n return insets;\n}\n"
"public List<?> getResultList() {\n log.info(\"String_Node_Str\" + query);\n List results = null;\n try {\n EntityMetadata m = kunderaQuery.getEntityMetadata();\n Client client = persistenceDelegeator.getClient(m);\n List<EntitySaveGraph> graphs = persistenceDelegeator.getGraph(m.getEntityClazz().newInstance(), m);\n Map<Boolean, List<String>> relationHolder = persistenceDelegeator.getRelations(graphs, m.getEntityClazz());\n List<String> relationNames = relationHolder.values().iterator().next();\n boolean isParent = relationHolder.keySet().iterator().next();\n if (relationNames.isEmpty() && !m.isRelationViaJoinTable()) {\n results = populateEntities(m, client);\n } else {\n results = handleAssociations(m, client, graphs, relationNames, isParent);\n }\n } catch (InstantiationException e) {\n log.error(\"String_Node_Str\" + e.getMessage());\n throw new QueryHandlerException(e.getMessage());\n } catch (IllegalAccessException e) {\n log.error(\"String_Node_Str\" + e.getMessage());\n throw new QueryHandlerException(e.getMessage());\n }\n return results != null && !results.isEmpty() ? results : null;\n}\n"
"protected void go(RP rp) throws Exception {\n pendingManager = new PendingManager();\n pendingManager.rp = rp;\n ndx = 0;\n int w = 0;\n while (w < win && w < count) {\n sender();\n w += 1;\n }\n}\n"
"public void handleMessage(Message msg) {\n if (DebugFlags.WEB_VIEW) {\n Log.v(LOGTAG, msg.what < REMEMBER_PASSWORD || msg.what > SHOW_RECT_MSG_ID ? Integer.toString(msg.what) : HandlerDebugString[msg.what - REMEMBER_PASSWORD]);\n }\n if (mWebViewCore == null) {\n return;\n }\n switch(msg.what) {\n case REMEMBER_PASSWORD:\n {\n mDatabase.setUsernamePassword(msg.getData().getString(\"String_Node_Str\"), msg.getData().getString(\"String_Node_Str\"), msg.getData().getString(\"String_Node_Str\"));\n ((Message) msg.obj).sendToTarget();\n break;\n }\n case NEVER_REMEMBER_PASSWORD:\n {\n mDatabase.setUsernamePassword(msg.getData().getString(\"String_Node_Str\"), null, null);\n ((Message) msg.obj).sendToTarget();\n break;\n }\n case SWITCH_TO_SHORTPRESS:\n {\n if (mPreventDrag == PREVENT_DRAG_MAYBE_YES) {\n mPreventDrag = PREVENT_DRAG_NO;\n }\n if (mTouchMode == TOUCH_INIT_MODE) {\n mTouchMode = TOUCH_SHORTPRESS_START_MODE;\n updateSelection();\n } else if (mTouchMode == TOUCH_DOUBLE_TAP_MODE) {\n mTouchMode = TOUCH_DONE_MODE;\n }\n break;\n }\n case SWITCH_TO_LONGPRESS:\n {\n if (mPreventDrag == PREVENT_DRAG_NO) {\n mTouchMode = TOUCH_DONE_MODE;\n performLongClick();\n rebuildWebTextView();\n }\n break;\n }\n case RELEASE_SINGLE_TAP:\n {\n if (mPreventDrag == PREVENT_DRAG_NO) {\n mTouchMode = TOUCH_DONE_MODE;\n doShortPress();\n }\n break;\n }\n case SCROLL_BY_MSG_ID:\n setContentScrollBy(msg.arg1, msg.arg2, (Boolean) msg.obj);\n break;\n case SYNC_SCROLL_TO_MSG_ID:\n if (mUserScroll) {\n mUserScroll = false;\n break;\n }\n case SCROLL_TO_MSG_ID:\n if (setContentScrollTo(msg.arg1, msg.arg2)) {\n mUserScroll = false;\n mWebViewCore.sendMessage(EventHub.SYNC_SCROLL, msg.arg1, msg.arg2);\n }\n break;\n case SPAWN_SCROLL_TO_MSG_ID:\n spawnContentScrollTo(msg.arg1, msg.arg2);\n break;\n case NEW_PICTURE_MSG_ID:\n {\n WebSettings settings = mWebViewCore.getSettings();\n final int viewWidth = getViewWidth();\n final WebViewCore.DrawData draw = (WebViewCore.DrawData) msg.obj;\n final Point viewSize = draw.mViewPoint;\n boolean useWideViewport = settings.getUseWideViewPort();\n WebViewCore.RestoreState restoreState = draw.mRestoreState;\n if (restoreState != null) {\n mInZoomOverview = false;\n updateZoomRange(restoreState, viewSize.x, draw.mMinPrefWidth, true);\n if (mInitialScaleInPercent > 0) {\n setNewZoomScale(mInitialScaleInPercent / 100.0f, mInitialScaleInPercent != mTextWrapScale * 100, false);\n } else if (restoreState.mViewScale > 0) {\n mTextWrapScale = restoreState.mTextWrapScale;\n setNewZoomScale(restoreState.mViewScale, false, false);\n } else {\n mInZoomOverview = useWideViewport && settings.getLoadWithOverviewMode();\n float scale;\n if (mInZoomOverview) {\n scale = (float) viewWidth / WebViewCore.DEFAULT_VIEWPORT_WIDTH;\n } else {\n scale = restoreState.mTextWrapScale;\n }\n setNewZoomScale(scale, Math.abs(scale - mTextWrapScale) >= 0.01f, false);\n }\n setContentScrollTo(restoreState.mScrollX, restoreState.mScrollY);\n clearTextEntry();\n }\n final boolean updateLayout = viewSize.x == mLastWidthSent && viewSize.y == mLastHeightSent;\n recordNewContentSize(draw.mWidthHeight.x, draw.mWidthHeight.y + (mFindIsUp ? mFindHeight : 0), updateLayout);\n if (DebugFlags.WEB_VIEW) {\n Rect b = draw.mInvalRegion.getBounds();\n Log.v(LOGTAG, \"String_Node_Str\" + b.left + \"String_Node_Str\" + b.top + \"String_Node_Str\" + b.right + \"String_Node_Str\" + b.bottom + \"String_Node_Str\");\n }\n invalidateContentRect(draw.mInvalRegion.getBounds());\n if (mPictureListener != null) {\n mPictureListener.onNewPicture(WebView.this, capturePicture());\n }\n if (useWideViewport) {\n mZoomOverviewWidth = Math.max((int) (viewWidth / mDefaultScale), Math.max(draw.mMinPrefWidth, draw.mViewPoint.x));\n }\n if (!mMinZoomScaleFixed) {\n mMinZoomScale = (float) viewWidth / mZoomOverviewWidth;\n }\n if (!mDrawHistory && mInZoomOverview) {\n if (Math.abs((viewWidth * mInvActualScale) - mZoomOverviewWidth) > 1) {\n setNewZoomScale((float) viewWidth / mZoomOverviewWidth, Math.abs(mActualScale - mTextWrapScale) < 0.01f, false);\n }\n }\n break;\n }\n case WEBCORE_INITIALIZED_MSG_ID:\n nativeCreate(msg.arg1);\n break;\n case UPDATE_TEXTFIELD_TEXT_MSG_ID:\n if (inEditingMode() && mWebTextView.isSameTextField(msg.arg1)) {\n if (msg.getData().getBoolean(\"String_Node_Str\")) {\n Spannable text = (Spannable) mWebTextView.getText();\n int start = Selection.getSelectionStart(text);\n int end = Selection.getSelectionEnd(text);\n mWebTextView.setInPassword(true);\n Spannable pword = (Spannable) mWebTextView.getText();\n Selection.setSelection(pword, start, end);\n } else if (msg.arg2 == mTextGeneration) {\n mWebTextView.setTextAndKeepSelection((String) msg.obj);\n }\n }\n break;\n case UPDATE_TEXT_SELECTION_MSG_ID:\n if (inEditingMode() && mWebTextView.isSameTextField(msg.arg1) && msg.arg2 == mTextGeneration) {\n WebViewCore.TextSelectionData tData = (WebViewCore.TextSelectionData) msg.obj;\n mWebTextView.setSelectionFromWebKit(tData.mStart, tData.mEnd);\n }\n break;\n case MOVE_OUT_OF_PLUGIN:\n if (nativePluginEatsNavKey()) {\n navHandledKey(msg.arg1, 1, false, 0, true);\n }\n break;\n case UPDATE_TEXT_ENTRY_MSG_ID:\n if (inEditingMode() && nativeCursorIsTextInput()) {\n mWebTextView.bringIntoView();\n rebuildWebTextView();\n }\n break;\n case CLEAR_TEXT_ENTRY:\n clearTextEntry();\n break;\n case INVAL_RECT_MSG_ID:\n {\n Rect r = (Rect) msg.obj;\n if (r == null) {\n invalidate();\n } else {\n viewInvalidate(r.left, r.top, r.right, r.bottom);\n }\n break;\n }\n case REQUEST_FORM_DATA:\n AutoCompleteAdapter adapter = (AutoCompleteAdapter) msg.obj;\n if (mWebTextView.isSameTextField(msg.arg1)) {\n mWebTextView.setAdapterCustom(adapter);\n }\n break;\n case UPDATE_CLIPBOARD:\n String str = (String) msg.obj;\n if (DebugFlags.WEB_VIEW) {\n Log.v(LOGTAG, \"String_Node_Str\" + str);\n }\n try {\n IClipboard clip = IClipboard.Stub.asInterface(ServiceManager.getService(\"String_Node_Str\"));\n clip.setClipboardText(str);\n } catch (android.os.RemoteException e) {\n Log.e(LOGTAG, \"String_Node_Str\", e);\n }\n break;\n case RESUME_WEBCORE_UPDATE:\n WebViewCore.resumeUpdate(mWebViewCore);\n break;\n case LONG_PRESS_CENTER:\n mGotCenterDown = false;\n mTrackballDown = false;\n if (getParent() != null) {\n performLongClick();\n }\n break;\n case WEBCORE_NEED_TOUCH_EVENTS:\n mForwardTouchEvents = (msg.arg1 != 0);\n break;\n case PREVENT_TOUCH_ID:\n if (msg.arg1 == MotionEvent.ACTION_DOWN) {\n if (mPreventDrag == PREVENT_DRAG_MAYBE_YES) {\n mPreventDrag = msg.arg2 == 1 ? PREVENT_DRAG_YES : PREVENT_DRAG_NO;\n if (mPreventDrag == PREVENT_DRAG_YES) {\n mTouchMode = TOUCH_DONE_MODE;\n }\n }\n }\n break;\n case REQUEST_KEYBOARD:\n if (msg.arg1 == 0) {\n hideSoftKeyboard();\n } else {\n displaySoftKeyboard(false);\n }\n break;\n case SHOW_RECT_MSG_ID:\n WebViewCore.ShowRectData data = (WebViewCore.ShowRectData) msg.obj;\n int x = mScrollX;\n int left = contentToViewDimension(data.mLeft);\n int width = contentToViewDimension(data.mWidth);\n int maxWidth = contentToViewDimension(data.mContentWidth);\n int viewWidth = getViewWidth();\n if (width < viewWidth) {\n x += left + width / 2 - mScrollX - viewWidth / 2;\n } else {\n x += (int) (left + data.mXPercentInDoc * width - mScrollX - data.mXPercentInView * viewWidth);\n }\n x = Math.max(0, (Math.min(maxWidth, x + viewWidth)) - viewWidth);\n int y = mScrollY;\n int top = contentToViewDimension(data.mTop);\n int height = contentToViewDimension(data.mHeight);\n int maxHeight = contentToViewDimension(data.mContentHeight);\n int viewHeight = getViewHeight();\n if (height < viewHeight) {\n y += top + height / 2 - mScrollY - viewHeight / 2;\n } else {\n y += (int) (top + data.mYPercentInDoc * height - mScrollY - data.mYPercentInView * viewHeight);\n }\n y = Math.max(0, (Math.min(maxHeight, y + viewHeight) - viewHeight));\n scrollTo(x, y);\n break;\n default:\n super.handleMessage(msg);\n break;\n }\n}\n"
"public void testImportsForNoTypes() {\n Set<TypeMirror> types = ImmutableSet.of();\n TypeSimplifier typeSimplifier = new TypeSimplifier(typeUtil, \"String_Node_Str\", types, baseWithoutContainedTypes());\n assertEquals(ImmutableSet.of(), typeSimplifier.typesToImport());\n}\n"
"public String handleStyleImage(String uri, boolean isBackground) {\n ReportDesignHandle design = (ReportDesignHandle) runnable.getDesignHandle();\n URL url = design.findResource(uri, IResourceLocator.IMAGE, reportContext.getAppContext());\n if (url == null) {\n return uri;\n }\n uri = url.toExternalForm();\n Image image = null;\n if (isBackground) {\n try {\n byte[] buffer = SvgFile.transSvgToArray(uri);\n image = new Image(buffer, uri, \"String_Node_Str\");\n } catch (IOException e) {\n image = new Image(uri);\n }\n } else {\n image = new Image(uri);\n }\n image.setReportRunnable(runnable);\n image.setRenderOption(renderOption);\n String imgUri = null;\n if (imageHandler != null) {\n switch(image.getSource()) {\n case IImage.URL_IMAGE:\n imgUri = imageHandler.onURLImage(image, reportContext);\n break;\n case IImage.FILE_IMAGE:\n imgUri = imageHandler.onFileImage(image, reportContext);\n break;\n case IImage.CUSTOM_IMAGE:\n imgUri = imageHandler.onCustomImage(image, reportContext);\n break;\n case IImage.INVALID_IMAGE:\n break;\n default:\n assert (false);\n }\n }\n return imgUri;\n}\n"
"public Block[][][] buildChunk() {\n Block[][][] chunk = new Block[16][256][16];\n for (int x = 0; x < 16; x++) {\n for (int y = 0; y < 256; y++) {\n for (int z = 0; z < 16; z++) {\n if ((y > 0 && y <= 16) || (y > 48 && y <= 64) || (y > 96 && y <= 112) || (y > 144 && y <= 160))\n chunk[x][y][z] = VetheaBlocks.dreamStone;\n if (tree1Countl1 <= 1 && y == 30 + rand.nextInt(5) && rand.nextInt(155) == 0 && x + 5 < 16 && z + 7 < 16 && shouldGenTree1) {\n tree1Countl1++;\n floatingTree1.generate(chunk, x, y, z);\n }\n }\n }\n }\n return chunk;\n}\n"
"private void sendPingToDevice(String deviceId, String userId, String roomId) {\n if ((null == userId) || (null == roomId)) {\n return;\n }\n if (TextUtils.isEmpty(deviceId)) {\n deviceId = \"String_Node_Str\";\n }\n HashMap<String, Long> lastTsByRoom = mLastNewDeviceMessageTsByUserDeviceRoom.objectForDevice(deviceId, userId);\n if (null == lastTsByRoom) {\n lastTsByRoom = new HashMap<>();\n }\n Long lastTs = lastTsByRoom.get(roomId);\n if (null == lastTs) {\n lastTs = 0L;\n }\n long now = System.currentTimeMillis();\n if ((now - lastTs) < 3600000) {\n return;\n }\n lastTsByRoom.put(roomId, now);\n mLastNewDeviceMessageTsByUserDeviceRoom.setObject(lastTsByRoom, userId, deviceId);\n MXUsersDevicesMap<Map<String, Object>> contentMap = new MXUsersDevicesMap<>();\n HashMap<String, Object> submap = new HashMap<>();\n submap.put(\"String_Node_Str\", mSession.getCredentials().deviceId);\n submap.put(\"String_Node_Str\", Arrays.asList(roomId));\n HashMap<String, Map<String, Object>> map = new HashMap<>();\n map.put(deviceId, submap);\n contentMap.setObjects(map, userId);\n mSession.getCryptoRestClient().sendToDevice(Event.EVENT_TYPE_NEW_DEVICE, contentMap, new ApiCallback<Void>() {\n public void onSuccess(Void info) {\n }\n public void onNetworkError(Exception e) {\n Log.e(LOG_TAG, \"String_Node_Str\" + e.getMessage());\n }\n public void onMatrixError(MatrixError e) {\n Log.e(LOG_TAG, \"String_Node_Str\" + e.getLocalizedMessage());\n }\n public void onUnexpectedError(Exception e) {\n Log.e(LOG_TAG, \"String_Node_Str\" + e.getMessage());\n }\n });\n}\n"
"void setTrain(int id, int majors, int minors, boolean ignoreMinors, int multiplyMajors, int multiplyMinors) {\n trainMaxMajors[id] = majors;\n trainMaxMinors[id] = minors;\n trainIgnoreMinors[id] = ignoreMinors;\n for (int j = 0; j < nbVertexes; j++) {\n if (vertexMajor[j]) {\n vertexValueByTrain[j][id] = vertexValueByTrain[j][id] * multiplyMajors;\n }\n if (vertexMinor[id]) {\n vertexValueByTrain[j][id] = vertexValueByTrain[j][id] * multiplyMinors;\n }\n }\n}\n"
"public Object caseModelElementChangeLeftTarget(ModelElementChangeLeftTarget object) {\n if (!object.isRemote()) {\n EObject leftElement = object.getLeftElement();\n View leftElementNotation = leftSemantic2notationMap.get(leftElement);\n if (leftElementNotation == null) {\n return null;\n }\n annotateNotation(leftElementNotation, Constants.STYLE_STATE_VALUE_ADDED);\n for (TreeIterator<EObject> iter = leftElement.eAllContents(); iter.hasNext(); ) {\n EObject element = iter.next();\n View notationElement = leftSemantic2notationMap.get(element);\n if (notationElement == null) {\n continue;\n }\n annotateNotation(notationElement, Constants.STYLE_STATE_VALUE_ADDED);\n }\n EObject staticElement = merge2StaticSemanticMap.get(leftElement);\n if (staticElement != null) {\n View staticNotationElement = staticSemantic2notationMap.get(staticElement);\n if (staticNotationElement != null)\n annotateNotation(staticNotationElement, Constants.STYLE_STATE_VALUE_ADDED);\n for (TreeIterator<EObject> iter = staticElement.eAllContents(); iter.hasNext(); ) {\n EObject element = iter.next();\n staticNotationElement = staticSemantic2notationMap.get(element);\n if (staticNotationElement != null)\n annotateNotation(staticNotationElement, Constants.STYLE_STATE_VALUE_ADDED);\n }\n }\n result = object;\n }\n}\n"
"public static void removePipe(Pipe<?> pipe) {\n if (!isValid(pipe)) {\n return;\n }\n World world = pipe.container.getWorldObj();\n if (world == null) {\n return;\n }\n int x = pipe.container.xCoord;\n int y = pipe.container.yCoord;\n int z = pipe.container.zCoord;\n if (lastRemovedDate != world.getTotalWorldTime()) {\n lastRemovedDate = world.getTotalWorldTime();\n pipeRemoved.clear();\n }\n pipeRemoved.put(new BlockIndex(x, y, z), pipe);\n updateNeighbourSignalState(pipe);\n world.removeTileEntity(x, y, z);\n}\n"
"public boolean applies(UUID sourceId, Ability source, UUID affectedControllerId, Game game) {\n if (affectedControllerId.equals(source.getControllerId())) {\n if (getTargetPointer().getFirst(game, source) == null) {\n this.discard();\n return false;\n }\n if (sourceId.equals(getTargetPointer().getFirst(game, source))) {\n Card card = game.getCard(sourceId);\n if (card != null) {\n if (game.getState().getZone(sourceId) == Zone.EXILED) {\n Player player = game.getPlayer(affectedControllerId);\n player.setCastSourceIdWithAlternateMana(sourceId, null, card.getSpellAbility().getCosts());\n return true;\n } else {\n this.discard();\n }\n }\n }\n }\n return false;\n}\n"
"public boolean progress() {\n if (System.currentTimeMillis() - time >= interval) {\n time = System.currentTimeMillis();\n if (progress < height) {\n moveEarth();\n removeTimers.put(player, System.currentTimeMillis());\n } else {\n if (removeTimers.contains(player)) {\n if (removeTimers.get(player) + removeTimer <= System.currentTimeMillis()) {\n baseblocks.put(location.clone().add(direction.clone().multiply(-1 * (height))).getBlock(), (height - 1));\n if (!revertblocks()) {\n instances.remove(id);\n }\n }\n }\n return false;\n }\n }\n return true;\n}\n"
"private CtfTmfEventField[] parseFields(EventDefinition eventDef) {\n List<CtfTmfEventField> fields = new ArrayList<CtfTmfEventField>();\n StructDefinition structFields = eventDef.getFields();\n HashMap<String, Definition> definitions = structFields.getDefinitions();\n String curFieldName = null;\n Definition curFieldDef;\n CtfTmfEventField curField;\n Iterator<Entry<String, Definition>> it = definitions.entrySet().iterator();\n while (it.hasNext()) {\n Entry<String, Definition> entry = it.next();\n curFieldName = entry.getKey();\n curFieldDef = entry.getValue();\n curField = CtfTmfEventField.parseField(curFieldDef, curFieldName);\n fields.add(curField);\n }\n long ip = -1;\n StructDefinition structContext = eventDef.getContext();\n if (structContext != null) {\n definitions = structContext.getDefinitions();\n String curContextName;\n Definition curContextDef;\n CtfTmfEventField curContext;\n it = definitions.entrySet().iterator();\n while (it.hasNext()) {\n Entry<String, Definition> entry = it.next();\n if (entry.getKey().equals(\"String_Node_Str\") && (entry.getValue() instanceof IntegerDefinition)) {\n ip = ((IntegerDefinition) entry.getValue()).getValue();\n }\n curContextName = CONTEXT_FIELD_PREFIX + entry.getKey();\n curContextDef = entry.getValue();\n curContext = CtfTmfEventField.parseField(curContextDef, curContextName);\n fields.add(curContext);\n }\n }\n final String name = eventDef.getDeclaration().getName();\n List<CTFCallsite> eventList = fTrace.getCTFTrace().getCallsiteCandidates(name);\n if (!eventList.isEmpty()) {\n final String callsite = \"String_Node_Str\";\n if (eventList.size() == 1 || ip == -1) {\n CTFCallsite cs = eventList.get(0);\n fields.add(new CTFStringField(cs.toString(), callsite));\n } else {\n fields.add(new CTFStringField(fTrace.getCTFTrace().getCallsite(name, ip).toString(), callsite));\n }\n }\n return fields.toArray(new CtfTmfEventField[fields.size()]);\n}\n"
"public CtMethod toMethod(String name, CtClass declaring, ClassMap map) throws CannotCompileException {\n CtMethod method = new CtMethod(null, declaring);\n method.copy(this, false, map);\n if (isConstructor()) {\n MethodInfo minfo = method.getMethodInfo2();\n CodeAttribute ca = minfo.getCodeAttribute();\n if (ca != null) {\n removeConsCall(ca);\n }\n method.setName(name);\n return method;\n}\n"
"public void setUp() {\n underTest = new ProvisionCompleteHandler();\n MockitoAnnotations.initMocks(this);\n resourceSet = new HashSet<>();\n resourceSet.add(new Resource(ResourceType.CLOUDFORMATION_STACK, \"String_Node_Str\", new Stack()));\n event = createEvent();\n}\n"
"public void onFinished() {\n refreshTitle();\n setProgressBarIndeterminateVisibility(false);\n infoText.setVisibility(realtimeList.getCount() > 0 ? View.GONE : View.VISIBLE);\n if (realtimeList.itemsAddedWithoutNotify > 0) {\n realtimeList.itemsAddedWithoutNotify = 0;\n realtimeList.notifyDataSetChanged();\n }\n realtimeProvider = null;\n loadDevi();\n}\n"
"public static void handleOnRender(DataContent content, ExecutionContext context) {\n try {\n ReportItemDesign dataItemDesign = (ReportItemDesign) content.getGenerateBy();\n IDataItemInstance dataItem = new DataItemInstance(content, context);\n if (handleJS(dataItem, dataItemDesign.getOnRender(), context).didRun())\n return;\n IDataItemEventHandler eh = (IDataItemEventHandler) getInstance((DataItemHandle) dataItemDesign.getHandle());\n if (eh != null)\n eh.onRender(dataItem, context.getReportContext());\n } catch (Exception e) {\n log.log(Level.WARNING, e.getMessage(), e);\n }\n}\n"
"public void fillDataSetDescription() {\n EDataType dataType = numericalDataPropertiesWidget.getDataType();\n DataDescription dataDescription = new DataDescription(dataType == EDataType.FLOAT ? EDataClass.REAL_NUMBER : EDataClass.NATURAL_NUMBER, dataType, numericalDataPropertiesWidget.getNumericalProperties());\n dataSetDescription.setDataDescription(dataDescription);\n dataSetDescription.setTransposeMatrix(dataTranspositionWidget.isTransposition());\n ArrayList<ColumnDescription> inputPattern = new ArrayList<ColumnDescription>();\n DataImportWizard wizard = getWizard();\n for (Integer selected : wizard.getSelectedColumns()) {\n int columnIndex = selected.intValue();\n if (columnIndex == dataSetDescription.getColumnOfRowIds())\n continue;\n inputPattern.add(new ColumnDescription(columnIndex, dataDescription));\n }\n dataSetDescription.setParsingPattern(inputPattern);\n}\n"
"protected void outputImg(Element ele, HashMap cssStyles, IContent content) {\n String src = ele.getAttribute(\"String_Node_Str\");\n if (src != null) {\n IImageContent image = new ImageContent(content);\n addChild(content, image);\n handleStyle(ele, cssStyles, image);\n if (!FileUtil.isLocalResource(src)) {\n image.setImageSource(IImageContent.IMAGE_URL);\n image.setURI(src);\n } else {\n ReportDesignHandle handle = content.getReportContent().getDesign().getReportDesign();\n URL url = handle.findResource(src, IResourceLocator.IMAGE);\n if (url != null) {\n src = url.toString();\n }\n image.setImageSource(IImageContent.IMAGE_FILE);\n image.setURI(src);\n }\n if (null != ele.getAttribute(\"String_Node_Str\") && !\"String_Node_Str\".equals(ele.getAttribute(\"String_Node_Str\"))) {\n image.setWidth(DimensionType.parserUnit(ele.getAttribute(\"String_Node_Str\"), DimensionType.UNITS_PX));\n }\n if (ele.getAttribute(\"String_Node_Str\") != null && !\"String_Node_Str\".equals(ele.getAttribute(\"String_Node_Str\"))) {\n image.setWidth(DimensionType.parserUnit(ele.getAttribute(\"String_Node_Str\")));\n }\n if (ele.getAttribute(\"String_Node_Str\") != null && !\"String_Node_Str\".equals(ele.getAttribute(\"String_Node_Str\"))) {\n image.setAltText(ele.getAttribute(\"String_Node_Str\"));\n }\n }\n}\n"
"public static void showChildViews(ExpandableListAdapter mAdapter, LinearLayout mLinearLayout, int groupPosition, View groupView, boolean animate) {\n int childCount = Math.min(mAdapter.getChildrenCount(groupPosition), STATS_CHILD_MAX_ITEMS);\n if (childCount == 0) {\n return;\n }\n final ViewGroup childContainer = (ViewGroup) groupView.findViewById(R.id.layout_child_container);\n if (childContainer == null) {\n return;\n }\n int numExistingViews = childContainer.getChildCount();\n if (childCount < numExistingViews) {\n int numToRemove = numExistingViews - childCount;\n childContainer.removeViews(childCount, numToRemove);\n numExistingViews = childCount;\n }\n for (int i = 0; i < childCount; i++) {\n boolean isLastChild = (i == childCount - 1);\n if (i < numExistingViews) {\n View convertView = childContainer.getChildAt(i);\n mAdapter.getChildView(groupPosition, i, isLastChild, convertView, mLinearLayout);\n } else {\n View childView = mAdapter.getChildView(groupPosition, i, isLastChild, null, mLinearLayout);\n childView.setPadding(0, childView.getPaddingTop(), 0, isLastChild ? 0 : childView.getPaddingBottom());\n setViewBackgroundWithoutResettingPadding(childView, R.drawable.stats_list_item_child_background);\n childContainer.addView(childView);\n }\n }\n if (childContainer.getVisibility() != View.VISIBLE) {\n if (animate) {\n Animation expand = new ScaleAnimation(1.0f, 1.0f, 0.0f, 1.0f);\n expand.setDuration(ANIM_DURATION);\n expand.setInterpolator(getInterpolator());\n childContainer.startAnimation(expand);\n }\n childContainer.setVisibility(View.VISIBLE);\n }\n StatsUIHelper.setGroupChevron(true, groupView, animate);\n}\n"
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n registerReceiver(disposedReceiver, new IntentFilter(DISPOSED_ACTION));\n Pair<Intent, Integer> intentRequestPair;\n RxGallery.Request request = getIntent().getParcelableExtra(EXTRA_REQUEST);\n switch(request.getSource()) {\n case GALLERY:\n handleIntentRequestPair(getGalleryIntentRequestPair(request));\n break;\n default:\n intentRequestPair = getPhotoOrVideoCaptureIntentRequestPair(request);\n break;\n }\n if (intentRequestPair.first.resolveActivity(getPackageManager()) != null) {\n startActivityForResult(intentRequestPair.first, intentRequestPair.second);\n } else {\n sendErrorNoActivity();\n finish();\n }\n}\n"
"public int run(String[] args) throws Exception {\n addInputOption();\n addOutputOption();\n addOption(DefaultOptionCreator.overwriteOption().create());\n addOption(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n addOption(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n addOption(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n addOption(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n Map<String, String> parsedArgs = parseArguments(args);\n Path input = getInputPath();\n Path output = getOutputPath();\n int chunkSize = Integer.parseInt(parsedArgs.get(\"String_Node_Str\"));\n String separator = parsedArgs.get(\"String_Node_Str\");\n Configuration conf = getConf();\n if (conf == null) {\n setConf(new Configuration());\n conf = getConf();\n }\n AtomicInteger currentPhase = new AtomicInteger();\n int[] msgDim = new int[1];\n List<Path> msgIdChunks = null;\n boolean overwrite = hasOption(DefaultOptionCreator.OVERWRITE_OPTION);\n if (shouldRunNextPhase(parsedArgs, currentPhase)) {\n Path msgIdsPath = new Path(output, \"String_Node_Str\");\n if (overwrite) {\n HadoopUtil.delete(conf, msgIdsPath);\n }\n log.info(\"String_Node_Str\");\n Job createMsgIdDictionary = prepareJob(input, msgIdsPath, SequenceFileInputFormat.class, MsgIdToDictionaryMapper.class, Text.class, VarIntWritable.class, MailToDictionaryReducer.class, Text.class, VarIntWritable.class, SequenceFileOutputFormat.class);\n createMsgIdDictionary.waitForCompletion(true);\n msgIdChunks = createDictionaryChunks(msgIdsPath, output, \"String_Node_Str\", createMsgIdDictionary.getConfiguration(), chunkSize, msgDim);\n }\n List<Path> fromChunks = null;\n if (shouldRunNextPhase(parsedArgs, currentPhase)) {\n Path fromIdsPath = new Path(output, \"String_Node_Str\");\n if (overwrite) {\n HadoopUtil.delete(conf, fromIdsPath);\n }\n log.info(\"String_Node_Str\");\n Job createFromIdDictionary = prepareJob(input, fromIdsPath, SequenceFileInputFormat.class, FromEmailToDictionaryMapper.class, Text.class, VarIntWritable.class, MailToDictionaryReducer.class, Text.class, VarIntWritable.class, SequenceFileOutputFormat.class);\n createFromIdDictionary.getConfiguration().set(EmailUtility.SEPARATOR, separator);\n createFromIdDictionary.waitForCompletion(true);\n int[] fromDim = new int[1];\n fromChunks = createDictionaryChunks(fromIdsPath, output, \"String_Node_Str\", createFromIdDictionary.getConfiguration(), chunkSize, fromDim);\n }\n if (shouldRunNextPhase(parsedArgs, currentPhase) && fromChunks != null && msgIdChunks != null) {\n log.info(\"String_Node_Str\");\n Path vecPath = new Path(output, \"String_Node_Str\");\n if (overwrite) {\n HadoopUtil.delete(conf, vecPath);\n }\n conf.set(EmailUtility.MSG_ID_DIMENSION, String.valueOf(msgDim[0]));\n conf.set(EmailUtility.FROM_PREFIX, \"String_Node_Str\");\n conf.set(EmailUtility.MSG_IDS_PREFIX, \"String_Node_Str\");\n conf.set(EmailUtility.FROM_INDEX, parsedArgs.get(\"String_Node_Str\"));\n conf.set(EmailUtility.REFS_INDEX, parsedArgs.get(\"String_Node_Str\"));\n conf.set(EmailUtility.SEPARATOR, separator);\n int j = 0;\n int i = 0;\n for (Path fromChunk : fromChunks) {\n for (Path idChunk : msgIdChunks) {\n Path out = new Path(vecPath, \"String_Node_Str\" + i + '-' + j);\n DistributedCache.setCacheFiles(new URI[] { fromChunk.toUri(), idChunk.toUri() }, conf);\n Job createRecMatrix = prepareJob(input, out, SequenceFileInputFormat.class, MailToRecMapper.class, Text.class, LongWritable.class, MailToRecReducer.class, Text.class, NullWritable.class, TextOutputFormat.class);\n createRecMatrix.getConfiguration().set(\"String_Node_Str\", \"String_Node_Str\");\n createRecMatrix.waitForCompletion(true);\n FileStatus[] fs = HadoopUtil.getFileStatus(new Path(out, \"String_Node_Str\"), PathType.GLOB, PathFilters.partFilter(), null, conf);\n for (int k = 0; k < fs.length; k++) {\n FileStatus f = fs[k];\n Path outPath = new Path(vecPath, \"String_Node_Str\" + i + '-' + j + '-' + k);\n FileUtil.copy(f.getPath().getFileSystem(conf), f.getPath(), outPath.getFileSystem(conf), outPath, true, overwrite, conf);\n }\n HadoopUtil.delete(conf, out);\n j++;\n }\n i++;\n }\n }\n return 0;\n}\n"
"private VerticalCRS parseVertCS(final Element parent) throws ParseException {\n final Element element = parent.pullElement(WKTKeywords.Vert_CS);\n final String name = element.pullString(\"String_Node_Str\");\n final VerticalDatum datum = parseVertDatum(element);\n final Unit<Length> linearUnit = parseUnit(element, SI.METRE);\n CoordinateSystemAxis axis = parseAxis(element, false, linearUnit, false);\n try {\n if (axis == null || isAxisIgnored) {\n axis = createAxis(\"String_Node_Str\", AxisDirection.UP, linearUnit);\n }\n return crsFactory.createVerticalCRS(parseAuthorityAndClose(element, name), datum, csFactory.createVerticalCS(singletonMap(\"String_Node_Str\", name), axis));\n } catch (FactoryException exception) {\n throw element.parseFailed(exception);\n }\n}\n"
"public static String typeName(Object varName) {\n if (varName == null) {\n return \"String_Node_Str\";\n } else {\n String name = varName.getClass().getName();\n if (name.lastIndexOf(\"String_Node_Str\") >= 0) {\n name = name.substring(name.lastIndexOf(\"String_Node_Str\") + 1);\n }\n return name;\n }\n}\n"
"private void processingEnd(final int numEntries) {\n System.out.printf(\"String_Node_Str\", numEntries);\n final int avgQualScore = (int) (sumQualScores / numQualScoresSampled);\n final String likelyEncoding;\n if (!qualityScoresFound) {\n likelyEncoding = \"String_Node_Str\";\n } else if (avgQualScore <= 41) {\n likelyEncoding = \"String_Node_Str\";\n } else if (avgQualScore <= 83) {\n likelyEncoding = \"String_Node_Str\";\n } else {\n likelyEncoding = \"String_Node_Str\";\n }\n System.out.printf(\"String_Node_Str\", minQualScore);\n System.out.printf(\"String_Node_Str\", maxQualScore);\n System.out.printf(\"String_Node_Str\", avgQualScore);\n System.out.printf(\"String_Node_Str\", likelyEncoding);\n likelyEncodings.add(likelyEncoding);\n avgQualScores.add(avgQualScore);\n}\n"
"public int setWhite() {\n if (localIndex == -1) {\n throw new NoSuchElementException(\"String_Node_Str\");\n } else if (currentNode == null || getIndex() >= barcode.treeSize() || localIndex < currentNode.whiteSpace) {\n return getWhiteIndex();\n } else if (getIndex() != barcode.treeSize() - 1) {\n if (currentNode.rootSize == 1) {\n BarcodeNode affectedNode = currentNode;\n findNextNode();\n affectedNode.setWhite(getIndex(), localIndex, 1);\n if (barcode.getRootNode() != null)\n barcode.treeSizeChanged();\n if (currentNode.whiteSpace == 0 && currentNode.rootSize == 0)\n currentNode = affectedNode;\n return whiteSoFar + localIndex;\n } else if (localIndex == currentNode.whiteSpace) {\n currentNode.setWhite(getIndex(), localIndex, 1);\n if (barcode.getRootNode() != null)\n barcode.treeSizeChanged();\n return whiteSoFar + localIndex;\n } else {\n currentNode.setWhite(getIndex(), localIndex, 1);\n if (barcode.getRootNode() != null)\n barcode.treeSizeChanged();\n blackSoFar += currentNode.rootSize;\n whiteSoFar += currentNode.whiteSpace;\n findNextNode();\n localIndex = 0;\n return whiteSoFar;\n }\n } else if (currentNode.rootSize == 1) {\n BarcodeNode affectedNode = currentNode;\n if (currentNode.whiteSpace + 1 == barcode.treeSize()) {\n currentNode = null;\n affectedNode.setWhite(getIndex(), localIndex, 1);\n if (barcode.getRootNode() != null)\n barcode.treeSizeChanged();\n return localIndex;\n } else {\n findPreviousNode();\n int currentLocalIndex = localIndex;\n blackSoFar -= currentNode.rootSize;\n whiteSoFar -= currentNode.whiteSpace;\n localIndex += currentNode.whiteSpace + currentNode.rootSize;\n affectedNode.setWhite(getIndex(), currentLocalIndex, 1);\n if (barcode.getRootNode() != null)\n barcode.treeSizeChanged();\n if (currentNode.whiteSpace == 0 && currentNode.rootSize == 0)\n currentNode = affectedNode;\n return whiteSoFar + localIndex - currentNode.rootSize;\n }\n } else {\n currentNode.setWhite(getIndex(), localIndex, 1);\n if (barcode.getRootNode() != null)\n barcode.treeSizeChanged();\n return whiteSoFar + localIndex - currentNode.rootSize;\n }\n}\n"
"private void writeInjectMethod(JavaWriter jw, TypeElement element, AnnotatedFragment fragment) throws IOException, ProcessingException {\n Set<ArgumentAnnotatedField> allArguments = fragment.getAll();\n String fragmentType = supportAnnotations ? \"String_Node_Str\" + element.getSimpleName().toString() : element.getSimpleName().toString();\n jw.beginMethod(\"String_Node_Str\", \"String_Node_Str\", EnumSet.of(Modifier.PUBLIC, Modifier.FINAL, Modifier.STATIC), fragmentType, \"String_Node_Str\");\n if (!allArguments.isEmpty()) {\n jw.emitStatement(\"String_Node_Str\");\n if (!fragment.getRequiredFields().isEmpty()) {\n jw.beginControlFlow(\"String_Node_Str\");\n jw.emitStatement(\"String_Node_Str\");\n jw.endControlFlow();\n }\n }\n int setterAssignmentHelperCounter = 0;\n for (ArgumentAnnotatedField field : allArguments) {\n jw.emitEmptyLine();\n String setterMethod = null;\n boolean useSetter = field.isUseSetterMethod();\n if (useSetter) {\n ExecutableElement setterMethodElement = fragment.findSetterForField(field);\n setterMethod = setterMethodElement.getSimpleName().toString();\n }\n if (field.hasCustomBundler()) {\n String setterAssignmentHelperStr = null;\n String assignmentStr;\n if (useSetter) {\n setterAssignmentHelperStr = field.getType() + \"String_Node_Str\" + setterAssignmentHelperCounter + \"String_Node_Str\";\n assignmentStr = \"String_Node_Str\" + setterAssignmentHelperCounter + \"String_Node_Str\";\n setterAssignmentHelperCounter++;\n } else {\n assignmentStr = \"String_Node_Str\";\n }\n if (field.isRequired()) {\n jw.beginControlFlow(\"String_Node_Str\" + JavaWriter.stringLiteral(CUSTOM_BUNDLER_BUNDLE_KEY + field.getKey()) + \"String_Node_Str\");\n jw.emitStatement(\"String_Node_Str\", field.getKey());\n jw.endControlFlow();\n if (useSetter) {\n jw.emitStatement(setterAssignmentHelperStr, field.getBundlerFieldName(), field.getKey());\n jw.emitStatement(assignmentStr, setterMethod);\n } else {\n jw.emitStatement(assignmentStr, field.getName(), field.getBundlerFieldName(), field.getKey());\n }\n } else {\n jw.beginControlFlow(\"String_Node_Str\" + JavaWriter.stringLiteral(CUSTOM_BUNDLER_BUNDLE_KEY + field.getKey()) + \"String_Node_Str\");\n if (useSetter) {\n jw.emitStatement(setterAssignmentHelperStr, field.getBundlerFieldName(), field.getKey());\n jw.emitStatement(assignmentStr, setterMethod);\n } else {\n jw.emitStatement(assignmentStr, field.getName(), field.getBundlerFieldName(), field.getKey());\n }\n jw.endControlFlow();\n }\n } else {\n String op = getOperation(field);\n if (op == null) {\n throw new ProcessingException(element, \"String_Node_Str\" + \"String_Node_Str\", ArgsBundler.class.getSimpleName());\n }\n String cast = \"String_Node_Str\".equals(op) ? \"String_Node_Str\" + field.getType() + \"String_Node_Str\" : \"String_Node_Str\";\n if (!field.isRequired()) {\n jw.beginControlFlow(\"String_Node_Str\" + JavaWriter.stringLiteral(field.getKey()) + \"String_Node_Str\");\n } else {\n jw.beginControlFlow(\"String_Node_Str\" + JavaWriter.stringLiteral(field.getKey()) + \"String_Node_Str\");\n jw.emitStatement(\"String_Node_Str\", field.getKey());\n jw.endControlFlow();\n }\n if (useSetter) {\n jw.emitStatement(\"String_Node_Str\" + setterAssignmentHelperCounter + \"String_Node_Str\", field.getType(), op, field.getKey(), cast);\n jw.emitStatement(\"String_Node_Str\" + setterAssignmentHelperCounter + \"String_Node_Str\", setterMethod);\n setterAssignmentHelperCounter++;\n } else {\n jw.emitStatement(\"String_Node_Str\", field.getName(), op, field.getKey(), cast);\n }\n if (!field.isRequired()) {\n jw.endControlFlow();\n }\n }\n }\n jw.endMethod();\n}\n"
"public boolean onPartShiftActivate(EntityPlayer player, Vec3 pos) {\n ItemStack is = player.inventory.getCurrentItem();\n if (is != null && is.getItem() instanceof IMemoryCard) {\n IMemoryCard mc = (IMemoryCard) is.getItem();\n NBTTagCompound data = new NBTTagCompound();\n long newFreq = freq;\n output = false;\n if (output || freq == 0) {\n newFreq = System.currentTimeMillis();\n try {\n proxy.getP2P().updateFreq(this, newFreq);\n } catch (GridAccessException e) {\n }\n }\n onTunnelConfigChange();\n ItemStack p2pItem = getItemStack(PartItemStack.Wrench);\n String type = p2pItem.getUnlocalizedName();\n p2pItem.writeToNBT(data);\n data.setLong(\"String_Node_Str\", freq);\n mc.setMemoryCardContents(is, type + \"String_Node_Str\", data);\n mc.notifyUser(player, MemoryCardMessages.SETTINGS_SAVED);\n return true;\n }\n return false;\n}\n"
"public void refreshAllChildNodes(RepositoryNode rootNode) {\n if (rootNode != null) {\n rootNode.setInitialized(false);\n if (rootNode.getContentType() != null && !rootNode.getContentType().equals(ERepositoryObjectType.METADATA))\n rootNode.getChildren().clear();\n if (rootNode.getParent() instanceof ProjectRepositoryNode) {\n ((ProjectRepositoryNode) rootNode.getParent()).clearNodeAndProjectCash();\n }\n contentProvider.getChildren(rootNode);\n viewer.refresh(rootNode);\n final ProjectRepositoryNode root = (ProjectRepositoryNode) getRoot();\n if (!rootNode.getContentType().equals(ERepositoryObjectType.DOCUMENTATION)) {\n root.getRecBinNode().setInitialized(false);\n root.getRecBinNode().getChildren().clear();\n contentProvider.getChildren(root.getRecBinNode());\n viewer.refresh(root.getRecBinNode());\n }\n }\n}\n"
"public CharSequence render(ZDoc doc) {\n Tag html = tag(\"String_Node_Str\");\n Tag head = tag(\"String_Node_Str\");\n html.add(head);\n head.add(tag(\"String_Node_Str\").attr(\"String_Node_Str\", \"String_Node_Str\").attr(\"String_Node_Str\", \"String_Node_Str\"));\n if (!Strings.isBlank(doc.getTitle()))\n head.add(tag(\"String_Node_Str\").add(text(doc.getTitle())));\n if (doc.hasAttr(\"String_Node_Str\")) {\n List<File> csss = (List<File>) doc.getAttr(\"String_Node_Str\");\n for (File css : csss) {\n String path = doc.getRelativePath(css);\n head.add(Tag.tag(\"String_Node_Str\").attr(\"String_Node_Str\", path).attr(\"String_Node_Str\", \"String_Node_Str\").attr(\"String_Node_Str\", \"String_Node_Str\"));\n }\n }\n if (doc.hasAttr(\"String_Node_Str\")) {\n List<File> jss = (List<File>) doc.getAttr(\"String_Node_Str\");\n for (File js : jss) {\n String path = doc.getRelativePath(js);\n head.add(Tag.tag(\"String_Node_Str\").attr(\"String_Node_Str\", path).attr(\"String_Node_Str\", \"String_Node_Str\"));\n }\n }\n Tag body = tag(\"String_Node_Str\");\n body.add(tag(\"String_Node_Str\").attr(\"String_Node_Str\", \"String_Node_Str\"));\n body.add(Tag.tag(\"String_Node_Str\").attr(\"String_Node_Str\", \"String_Node_Str\").add(Tag.text(doc.getTitle())));\n if (doc.hasAuthor())\n body.add(appendAuthorTag(doc, Tag.tag(\"String_Node_Str\").attr(\"String_Node_Str\", \"String_Node_Str\")));\n html.add(body);\n Tag container = tag(\"String_Node_Str\").attr(\"String_Node_Str\", \"String_Node_Str\");\n body.add(container);\n if (doc.hasAuthor())\n body.add(appendAuthorTag(doc, Tag.tag(\"String_Node_Str\").attr(\"String_Node_Str\", \"String_Node_Str\")));\n ZBlock[] ps = doc.root().children();\n for (ZBlock p : ps) renderBlock(container, p);\n return new StringBuilder().append(COMMON_INFO).append(\"String_Node_Str\").append(html.toString());\n}\n"
"public void onFocus(FocusEvent event) {\n focusHint();\n prevText = getText();\n isFocused = true;\n}\n"
"public ListenableFuture<Object[]> getContentsAndDeserialize(ByteString fingerprint, DeserializationContext deserializationContext) throws IOException {\n ListenableFuture<Object[]> contents = nestedSetCache.contentsForFingerprint(fingerprint);\n if (contents != null) {\n return contents;\n }\n ListenableFuture<byte[]> retrieved = nestedSetStorageEndpoint.get(fingerprint);\n future.setFuture(Futures.transformAsync(retrieved, bytes -> {\n CodedInputStream codedIn = CodedInputStream.newInstance(bytes);\n int numberOfElements = codedIn.readInt32();\n DeserializationContext newDeserializationContext = deserializationContext.getNewMemoizingContext();\n List<ListenableFuture<?>> deserializationFutures = new ArrayList<>();\n for (int i = 0; i < numberOfElements; i++) {\n Object deserializedElement = newDeserializationContext.deserialize(codedIn);\n if (deserializedElement instanceof ByteString) {\n deserializationFutures.add(getContentsAndDeserialize((ByteString) deserializedElement, deserializationContext));\n } else {\n deserializationFutures.add(Futures.immediateFuture(deserializedElement));\n }\n }\n return Futures.whenAllComplete(deserializationFutures).call(() -> {\n Object[] deserializedContents = new Object[deserializationFutures.size()];\n for (int i = 0; i < deserializationFutures.size(); i++) {\n deserializedContents[i] = Futures.getDone(deserializationFutures.get(i));\n }\n return deserializedContents;\n }, executor);\n }, executor);\n FingerprintComputationResult fingerprintComputationResult = FingerprintComputationResult.create(fingerprint, Futures.immediateFuture(null));\n nestedSetCache.put(fingerprintComputationResult, result);\n return result;\n}\n"
"public Boolean apply(Game game, Permanent permanent) {\n if (!permanent.getCardType().contains(CardType.ENCHANTMENT)) {\n permanent.getCardType().add(CardType.ENCHANTMENT);\n }\n return false;\n}\n"
"public boolean step() {\n CoreRegistry.put(WorldGeneratorPluginLibrary.class, new WorldGeneratorPluginLibrary(CoreRegistry.get(ModuleManager.class).getEnvironment(), CoreRegistry.get(ReflectFactory.class), CoreRegistry.get(CopyStrategyLibrary.class)));\n StorageManager storageManager = CoreRegistry.put(StorageManager.class, new StorageManagerInternal(CoreRegistry.get(ModuleManager.class).getEnvironment(), (EngineEntityManager) CoreRegistry.get(EntityManager.class)));\n WorldInfo worldInfo = gameManifest.getWorldInfo(TerasologyConstants.MAIN_WORLD);\n if (worldInfo.getSeed() == null || worldInfo.getSeed().isEmpty()) {\n FastRandom random = new FastRandom();\n worldInfo.setSeed(random.nextString(16));\n }\n logger.info(\"String_Node_Str\", worldInfo.getSeed());\n WorldGenerator worldGenerator;\n try {\n worldGenerator = worldGeneratorManager.createGenerator(worldInfo.getWorldGenerator());\n CoreRegistry.put(WorldGenerator.class, worldGenerator);\n } catch (UnresolvedWorldGeneratorException e) {\n logger.error(\"String_Node_Str\", e);\n CoreRegistry.get(GameEngine.class).changeState(new StateMainMenu(\"String_Node_Str\"));\n return false;\n }\n LocalChunkProvider chunkProvider = new LocalChunkProvider(storageManager, worldGenerator);\n CoreRegistry.get(ComponentSystemManager.class).register(new RelevanceSystem(chunkProvider), \"String_Node_Str\");\n EntityAwareWorldProvider entityWorldProvider = new EntityAwareWorldProvider(new WorldProviderCoreImpl(worldInfo, chunkProvider));\n WorldProvider worldProvider = new WorldProviderWrapper(entityWorldProvider);\n CoreRegistry.put(WorldProvider.class, worldProvider);\n chunkProvider.setBlockEntityRegistry(entityWorldProvider);\n CoreRegistry.put(BlockEntityRegistry.class, entityWorldProvider);\n CoreRegistry.get(ComponentSystemManager.class).register(entityWorldProvider, \"String_Node_Str\");\n RenderingSubsystemFactory engineSubsystemFactory = CoreRegistry.get(RenderingSubsystemFactory.class);\n WorldRenderer worldRenderer = engineSubsystemFactory.createWorldRenderer(worldProvider, chunkProvider, CoreRegistry.get(LocalPlayerSystem.class));\n CoreRegistry.put(WorldRenderer.class, worldRenderer);\n CoreRegistry.put(LocalPlayer.class, new LocalPlayer());\n CoreRegistry.put(Camera.class, worldRenderer.getActiveCamera());\n CoreRegistry.put(PhysicsEngine.class, worldRenderer.getBulletRenderer());\n CoreRegistry.put(Physics.class, worldRenderer.getBulletRenderer());\n worldProvider.getTime().setMilliseconds(worldInfo.getTime());\n return true;\n}\n"
"private void receiveMessage(final Message message) {\n final String messageBody = message.getBody();\n if ((Type.error != message.getType()) && Empty.not(messageBody)) {\n final Delay delay = DelayHelper.getDelay(message);\n final String color = ColorHelper.getColor(message.getFrom().getJID());\n final ChatMessage chatMessage = new ChatMessage(null, color, userName, messageBody, ChatMessage.MessageType.incoming);\n if (delay != null) {\n chatMessage.setDate(delay.getStamp());\n }\n addMessage(chatMessage);\n fireUserMessage(messageBody);\n if (getVisibility() == Visibility.hidden) {\n requestVisibility(Visibility.notFocused);\n }\n }\n}\n"
"public void run() {\n Log.v(LOG_TAG, \"String_Node_Str\");\n animationDisplayIdx = (animationDisplayIdx + 1) % nAnimationFrames;\n Message msg = Message.obtain();\n msg.what = NetworkProtocol.NETWORK_RET_ANIMATION;\n msg.obj = animationFrames[animationDisplayIdx];\n returnMsgHandler.sendMessage(msg);\n if (isRunning)\n timer.schedule(new animationTask(), animationPeriods[animationDisplayIdx]);\n}\n"
"public void selectionChanged(SelectionChangedEvent event) {\n IStructuredSelection selection = (IStructuredSelection) event.getSelection();\n TalendPropertyTabDescriptor descriptor = (TalendPropertyTabDescriptor) selection.getFirstElement();\n if (descriptor == null) {\n return;\n }\n if (currentSelectedTab != null && (!currentSelectedTab.getData().equals(descriptor.getData()) || currentSelectedTab.getCategory() != descriptor.getCategory())) {\n for (Control curControl : tabFactory.getTabComposite().getChildren()) {\n curControl.dispose();\n }\n }\n if (element == null || !element.equals(descriptor.getData()) || currentSelectedTab == null || currentSelectedTab.getCategory() != descriptor.getCategory() || selectedPrimary) {\n element = (Element) descriptor.getData();\n currentSelectedTab = descriptor;\n if (descriptor.getData() instanceof ConnectionLabel) {\n createDynamicComposite(tabFactory.getTabComposite(), ((ConnectionLabel) descriptor.getData()).getConnection(), descriptor.getCategory());\n } else {\n createDynamicComposite(tabFactory.getTabComposite(), (Element) descriptor.getData(), descriptor.getCategory());\n }\n selectedPrimary = false;\n }\n}\n"
"public void resolveTypes(MarkerList markers, IContext context) {\n for (int i = 0; i < this.genericCount; i++) {\n this.generics[i] = this.generics[i].resolve(markers, context, TypePosition.TYPE);\n }\n}\n"
"private URL getImageUrl(ImageSize size) {\n String hostUrl = ServerUtils.getAppspotHostUrl();\n try {\n return new URL(hostUrl + \"String_Node_Str\" + (size == ImageSize.thumb ? \"String_Node_Str\" : \"String_Node_Str\") + getSecret() + \"String_Node_Str\" + KeyFactory.keyToString(id));\n } catch (MalformedURLException e) {\n throw new RuntimeException(e);\n }\n}\n"
"public boolean add(E obj) {\n if (size == maxSize) {\n return false;\n objects[add] = obj;\n add++;\n size++;\n if (add == maxSize) {\n add = 0;\n }\n return true;\n}\n"
"protected void applyLayoutInternal(InternalNode[] entitiesToLayout, InternalRelationship[] relationshipsToConsider, double boundsX, double boundsY, double boundsWidth, double boundsHeight) {\n BundleDependencyContentResult contentResult = this.contentProvider.getContentResult();\n Set<IBundle> rootBundles = contentResult.getBundles();\n Set<IBundle> bundlesProcessed = new HashSet<IBundle>();\n if (contentResult != null) {\n Set<ColumnHolder> columnNodes = new HashSet<ColumnHolder>();\n double columnWith = 0;\n double currentX = boundsX + 0;\n double currentY = boundsY + 10;\n double maxY = boundsHeight;\n int degree = contentResult.getIncomingDegree().intValue();\n while (degree > 0) {\n Set<InternalNode> degreeNodes = new HashSet<InternalNode>();\n Set<IBundle> deps = contentResult.getIncomingDependencies().get(degree);\n for (IBundle bundle : deps) {\n if (!bundlesProcessed.contains(bundle) && !rootBundles.contains(bundle) && lowestRanking(bundle, contentResult.getIncomingDegree(), contentResult.getIncomingDependencies()) == degree) {\n for (InternalNode node : entitiesToLayout) {\n LayoutEntity obj = node.getLayoutEntity();\n IBundle graphBundle = (IBundle) ((GraphNode) obj.getGraphData()).getData();\n if (graphBundle.equals(bundle)) {\n columnWith = Math.max(columnWith, node.getWidthInLayout());\n node.setLocation(currentX, currentY);\n bundlesProcessed.add(bundle);\n currentY = currentY + node.getHeightInLayout() + 15;\n degreeNodes.add(node);\n maxY = Math.max(currentY, maxY);\n break;\n }\n }\n }\n }\n for (InternalNode node : degreeNodes) {\n if (node.getWidthInLayout() < columnWith) {\n double x = (columnWith - node.getWidthInLayout()) / 2;\n node.setLocation(node.getLayoutEntity().getXInLayout() + x, node.getLayoutEntity().getYInLayout());\n }\n }\n ColumnHolder holder = new ColumnHolder();\n holder.index = columns;\n holder.y = currentY;\n holder.nodes = degreeNodes;\n columnNodes.add(holder);\n columns++;\n currentY = boundsY + 10;\n if (degreeNodes.size() > 0) {\n currentX = currentX + columnWith + 30;\n }\n degree--;\n columnWith = 0;\n }\n Set<InternalNode> rootNodes = new HashSet<InternalNode>();\n for (IBundle bundle : rootBundles) {\n for (InternalNode node : entitiesToLayout) {\n LayoutEntity obj = node.getLayoutEntity();\n IBundle graphBundle = (IBundle) ((GraphNode) obj.getGraphData()).getData();\n if (graphBundle.equals(bundle)) {\n columnWith = Math.max(columnWith, node.getWidthInLayout());\n node.setLocation(currentX, currentY);\n bundlesProcessed.add(bundle);\n currentY = currentY + node.getHeightInLayout() + 15;\n maxY = Math.max(currentY, maxY);\n rootNodes.add(node);\n break;\n }\n }\n }\n for (InternalNode node : rootNodes) {\n if (node.getWidthInLayout() < columnWith) {\n double x = (columnWith - node.getWidthInLayout()) / 2;\n node.setLocation(node.getLayoutEntity().getXInLayout() + x, node.getLayoutEntity().getYInLayout());\n }\n }\n ColumnHolder holder = new ColumnHolder();\n holder.index = columns;\n holder.y = currentY;\n holder.nodes = rootNodes;\n columnNodes.add(holder);\n currentY = boundsY + 10;\n currentX = currentX + columnWith + 30;\n int maxDegree = contentResult.getOutgoingDegree();\n degree = 1;\n while (degree <= maxDegree) {\n Set<InternalNode> degreeNodes = new HashSet<InternalNode>();\n Set<IBundle> deps = contentResult.getOutgoingDependencies().get(degree);\n for (IBundle bundle : deps) {\n if (!bundlesProcessed.contains(bundle) && !rootBundles.contains(bundle) && lowestRanking(bundle, contentResult.getOutgoingDegree(), contentResult.getOutgoingDependencies()) == degree) {\n for (InternalNode node : entitiesToLayout) {\n LayoutEntity obj = node.getLayoutEntity();\n IBundle graphBundle = (IBundle) ((GraphNode) obj.getGraphData()).getData();\n if (graphBundle.equals(bundle)) {\n columnWith = Math.max(columnWith, node.getWidthInLayout());\n node.setLocation(currentX, currentY);\n bundlesProcessed.add(bundle);\n currentY = currentY + node.getHeightInLayout() + 15;\n maxY = Math.max(currentY, maxY);\n degreeNodes.add(node);\n break;\n }\n }\n }\n }\n for (InternalNode node : degreeNodes) {\n if (node.getWidthInLayout() < columnWith) {\n double x = (columnWith - node.getWidthInLayout()) / 2;\n node.setLocation(node.getLayoutEntity().getXInLayout() + x, node.getLayoutEntity().getYInLayout());\n }\n }\n holder = new ColumnHolder();\n holder.index = columns;\n holder.y = currentY;\n holder.nodes = degreeNodes;\n columnNodes.add(holder);\n currentY = boundsY + 10;\n currentX = currentX + columnWith + 30;\n degree++;\n columnWith = 0;\n }\n for (ColumnHolder column : columnNodes) {\n if (column.y <= maxY) {\n double y = (maxY - column.y) / 2;\n for (InternalNode node : column.nodes) {\n node.setLocation(node.getLayoutEntity().getXInLayout(), node.getLayoutEntity().getYInLayout() + y);\n }\n }\n }\n }\n}\n"
"public static synchronized void handleApplicationDeployment(Application application, ApplicationClusterContext[] appClusterContexts) {\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\" + application.getUniqueIdentifier());\n }\n ApplicationHolder.persistApplication(application);\n for (ApplicationClusterContext appClusterContext : appClusterContexts) {\n String deploymentPolicyName = appClusterContext.getDeploymentPolicyName();\n if (StringUtils.isEmpty(deploymentPolicyName)) {\n deploymentPolicyName = AutoscalerUtil.getDeploymentPolicyIdByAlias(application.getUniqueIdentifier(), AutoscalerUtil.getAliasFromClusterId(appClusterContext.getClusterId()));\n }\n if (StringUtils.isEmpty(deploymentPolicyName)) {\n throw new AutoScalerException(String.format(\"String_Node_Str\" + \"String_Node_Str\", application.getUniqueIdentifier(), appClusterContext.getClusterId()));\n }\n DeploymentPolicy deploymentPolicy = PolicyManager.getInstance().getDeploymentPolicy(deploymentPolicyName);\n if (deploymentPolicy == null) {\n throw new AutoScalerException(String.format(\"String_Node_Str\" + \"String_Node_Str\", application.getUniqueIdentifier(), appClusterContext.getDeploymentPolicyName()));\n }\n StringBuilder stringBuilder = new StringBuilder();\n for (NetworkPartitionRef networkPartitionRef : deploymentPolicy.getNetworkPartitionRefs()) {\n if (stringBuilder.length() > 0) {\n stringBuilder.append(\"String_Node_Str\");\n }\n stringBuilder.append(networkPartitionRef.getId());\n }\n Property npIdListProperty = new Property(AutoscalerConstants.NETWORK_PARTITION_ID_LIST, stringBuilder.toString());\n appClusterContext.getProperties().addProperty(npIdListProperty);\n }\n AutoscalerCloudControllerClient.getInstance().createApplicationClusters(application.getUniqueIdentifier(), appClusterContexts);\n}\n"
"private void init(View rootView) {\n getActivity().setTitle(R.string.nav_stayapply);\n mAccountPrefs = getActivity().getSharedPreferences(getString(R.string.PREFS_ACCOUNT), MODE_PRIVATE);\n mDefaultStatusPrefs = getActivity().getSharedPreferences(getString(R.string.PREFS_DEFAULTSTATUS), MODE_PRIVATE);\n mDefaultStatusTV = (TextView) rootView.findViewById(R.id.tv_stayapply_defaultstatus);\n mSelectedWeekTV = (TextView) rootView.findViewById(R.id.tv_stayapply_selectedweek);\n mSelectedWeekStatusTV = (TextView) rootView.findViewById(R.id.tv_stayapply_selectedweekstatus);\n final CalendarView calendarView = (CalendarView) rootView.findViewById(R.id.calendar_stayapply);\n new LoadDefaultStayStatusTask().execute();\n Button changeDefaultStatusBtn = (Button) rootView.findViewById(R.id.btn_stayapply_changedefaultstatus);\n changeDefaultStatusBtn.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n ChangeDefaultStatusDialog.newInstance(getContext(), mDefaultStatusPrefs.getInt(getString(R.string.PREFS_DEFAULTSTATUS_DEFAULTSTATUS), STAY), new ChangeDefaultStatusDialog.ChangeDefaultStatusListener() {\n public void onChangeDefaultStatus(int defaultStatus) {\n mDefaultStatusPrefs.edit().putInt(getString(R.string.PREFS_DEFAULTSTATUS_DEFAULTSTATUS), defaultStatus).apply();\n setDefaultStatusTV(StayApplyUtils.getStringFromStayStatus(defaultStatus));\n }\n }).show(getChildFragmentManager(), null);\n }\n });\n setSelectedWeekTV(calendarView.getLastSelectedWeekString());\n mSelectedDate = new Date();\n new LoadStayStatusTask().execute(DateUtils.dateToWeekDateString(mSelectedDate));\n calendarView.setOnDateClickListener(new CalendarView.OnDateClickListener() {\n public void onDateClick(Date date) {\n mSelectedDate = date;\n setSelectedWeekTV(date);\n setSelectedWeekStatusTV(null);\n new LoadStayStatusTask().execute(DateUtils.dateToWeekDateString(mSelectedDate));\n }\n });\n final DMSRadioButton fridayGoRB = (DMSRadioButton) rootView.findViewById(R.id.rb_stayapply_fridaygo);\n final DMSRadioButton saturdayGoRB = (DMSRadioButton) rootView.findViewById(R.id.rb_stayapply_saturdaygo);\n final DMSRadioButton saturdayComeRB = (DMSRadioButton) rootView.findViewById(R.id.rb_stayapply_saturdaycome);\n final DMSRadioButton stayRB = (DMSRadioButton) rootView.findViewById(R.id.rb_stayapply_stay);\n DMSButton applyBtn = (DMSButton) rootView.findViewById(R.id.btn_stayapply_apply);\n applyBtn.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n if (fridayGoRB.isChecked()) {\n new ApplyStayStatusTask().execute(FRIDAY_GO, DateUtils.dateToWeekDateString(mSelectedDate));\n } else if (saturdayGoRB.isChecked()) {\n new ApplyStayStatusTask().execute(SATURDAY_GO, DateUtils.dateToWeekDateString(mSelectedDate));\n } else if (saturdayComeRB.isChecked()) {\n new ApplyStayStatusTask().execute(SATURDAY_COME, DateUtils.dateToWeekDateString(mSelectedDate));\n } else if (stayRB.isChecked()) {\n new ApplyStayStatusTask().execute(STAY, DateUtils.dateToWeekDateString(mSelectedDate));\n } else {\n Toast.makeText(getContext(), R.string.stayapply_nochecked, Toast.LENGTH_SHORT).show();\n }\n }\n });\n}\n"
"private Object[] filterOutDuplicatedElems(List<XSDElementDeclaration> xsdElementDeclarations) {\n List<XSDElementDeclaration> list = new ArrayList<XSDElementDeclaration>();\n for (XSDElementDeclaration el : (XSDElementDeclaration[]) xsdElementDeclarations.toArray(new XSDElementDeclaration[xsdElementDeclarations.size()])) {\n boolean exist = false;\n for (XSDElementDeclaration xsdEl : list) {\n if (xsdEl.getName().equals(el.getName()) && xsdEl.getTargetNamespace() != null && el.getTargetNamespace() != null && xsdEl.getTargetNamespace().equals(el.getTargetNamespace())) {\n exist = true;\n break;\n } else if (xsdEl.getName().equals(el.getName()) && xsdEl.getTargetNamespace() == null && el.getTargetNamespace() == null) {\n exist = true;\n break;\n }\n }\n if (!exist) {\n if ((conceptName != null && el.getName().equals(conceptName)) || (conceptName == null && (el.getTargetNamespace() != null && !el.getTargetNamespace().equals(XSDConstants.SCHEMA_FOR_SCHEMA_URI_2001)) || (conceptName == null && el.getTargetNamespace() == null))) {\n if (filter.equalsIgnoreCase(\"String_Node_Str\") || el.getName().toLowerCase().startsWith(filter.toLowerCase()))\n list.add(el);\n }\n }\n }\n return list.toArray();\n}\n"
"private void save() {\n String userName = nameTxt.getText().trim();\n if (userName.equals(\"String_Node_Str\")) {\n GuiUtils.showErrorMessage(this, \"String_Node_Str\");\n return;\n }\n try {\n BaseUser user = new BaseUser();\n user.setName(userName);\n if (setPassword(user)) {\n user.setHomeDirectory(directoryTxt.getText());\n user.setEnabled(enabledChkBox.isSelected());\n user.setWritePermission(writeChkBox.isSelected());\n user.setMaxIdleTime(getMaxIdleTime(uploadLst));\n user.setMaxUploadRate(getBytesTransferRate(uploadLst));\n user.setMaxDownloadRate(getBytesTransferRate(downloadLst));\n fconfig.getUserManager().save(user);\n refresh(fconfig);\n GuiUtils.showInformationMessage(this, \"String_Node_Str\" + user.getName());\n }\n } catch (Exception ex) {\n GuiUtils.showErrorMessage(this, ex.getMessage());\n }\n}\n"
"private int filterFeedbackResponseCommentResults(FeedbackResponseCommentSearchResultBundle frCommentSearchResults, List<InstructorAttributes> instructors, int totalResultsSize) {\n Iterator<Entry<String, List<FeedbackResponseAttributes>>> iterFr = frCommentSearchResults.responses.entrySet().iterator();\n while (iterFr.hasNext()) {\n List<FeedbackResponseAttributes> frs = iterFr.next().getValue();\n Iterator<FeedbackResponseAttributes> fr = frs.iterator();\n while (fr.hasNext()) {\n FeedbackResponseAttributes response = fr.next();\n FeedbackQuestionAttributes relatedQuestion = getRelatedQuestionOfResponse(frCommentSearchResults, response);\n InstructorAttributes instructor = this.getInstructorForCourseId(response.courseId, instructors);\n boolean isVisibleResponse = true;\n boolean needCheckPrivilege = relatedQuestion == null || !(relatedQuestion.recipientType == FeedbackParticipantType.NONE || relatedQuestion.recipientType == FeedbackParticipantType.INSTRUCTORS || relatedQuestion.recipientType == FeedbackParticipantType.STUDENTS);\n boolean isNotAllowedForInstructor = instructor == null || !(instructor.isAllowedForPrivilege(response.giverSection, response.feedbackSessionName, Const.ParamsNames.INSTRUCTOR_PERMISSION_VIEW_SESSION_IN_SECTIONS)) || !(instructor.isAllowedForPrivilege(response.recipientSection, response.feedbackSessionName, Const.ParamsNames.INSTRUCTOR_PERMISSION_VIEW_SESSION_IN_SECTIONS));\n if (needCheckPrivilege && isNotAllowedForInstructor) {\n isVisibleResponse = false;\n }\n if (!isVisibleResponse) {\n int sizeOfCommentList = frCommentSearchResults.comments.get(response.getId()).size();\n totalResultsSize -= sizeOfCommentList;\n frCommentSearchResults.comments.remove(response.getId());\n fr.remove();\n }\n }\n }\n return totalResultsSize;\n}\n"
"public void T_setFloat_2() throws IOException {\n IColumn column = new PrimitiveColumn(ColumnType.FLOAT, \"String_Node_Str\");\n column.add(ColumnType.FLOAT, new FloatObj((float) 100), 0);\n column.add(ColumnType.FLOAT, new FloatObj((float) 200), 1);\n column.add(ColumnType.FLOAT, new FloatObj((float) 255), 5);\n ColumnBinaryMakerConfig defaultConfig = new ColumnBinaryMakerConfig();\n ColumnBinaryMakerCustomConfigNode configNode = new ColumnBinaryMakerCustomConfigNode(\"String_Node_Str\", defaultConfig);\n IColumnBinaryMaker maker = new OptimizeFloatColumnBinaryMaker();\n ColumnBinary columnBinary = maker.toBinary(defaultConfig, null, column);\n BufferAllocator allocator = new RootAllocator(1024 * 1024 * 10);\n SchemaChangeCallBack callBack = new SchemaChangeCallBack();\n MapVector parent = new MapVector(\"String_Node_Str\", allocator, new FieldType(false, Struct.INSTANCE, null, null), callBack);\n parent.allocateNew();\n IMemoryAllocator memoryAllocator = ArrowMemoryAllocatorFactory.getFromMapVector(ColumnType.FLOAT, \"String_Node_Str\", allocator, parent);\n maker.loadInMemoryStorage(columnBinary, memoryAllocator);\n MapReader rootReader = parent.getReader();\n FieldReader reader = rootReader.reader(\"String_Node_Str\");\n reader.setPosition(0);\n assertEquals(reader.readFloat().floatValue(), (float) 100);\n reader.setPosition(1);\n assertEquals(reader.readFloat().floatValue(), (float) 200);\n reader.setPosition(5);\n assertEquals(reader.readFloat().floatValue(), (float) 255);\n reader.setPosition(2);\n assertEquals(reader.readFloat(), null);\n reader.setPosition(3);\n assertEquals(reader.readFloat(), null);\n reader.setPosition(4);\n assertEquals(reader.readFloat(), null);\n}\n"
"public Builder withId(final String id) {\n this.bId = StringUtils.isBlank(id) ? null : id;\n return this;\n}\n"
"public Long getId() {\n return id.getValue();\n}\n"
"public void registerRecordPerspective(RecordPerspective recordPerspective) {\n if (recordPerspective.getPerspectiveID() == null)\n throw new IllegalStateException(\"String_Node_Str\" + recordPerspective);\n if (!recordPerspective.getIdType().equals(dataDomain.getRecordIDType()))\n throw new IllegalStateException(\"String_Node_Str\" + recordPerspective.getIdType());\n hashRecordPerspectives.put(recordPerspective.getPerspectiveID(), recordPerspective);\n if (recordPerspective.isDefault()) {\n if (defaultRecordPerspective != null)\n throw new IllegalStateException(\"String_Node_Str\");\n defaultRecordPerspective = recordPerspective;\n }\n if (triggerUpdate) {\n DataDomainUpdateEvent event = new DataDomainUpdateEvent(dataDomain);\n event.setSender(this);\n GeneralManager.get().getEventPublisher().triggerEvent(event);\n }\n}\n"
"public boolean upgradeVirtualMachine(Long vmId, Long newServiceOfferingId, Map<String, String> customParameters) throws ResourceUnavailableException, ConcurrentOperationException, ManagementServerException, VirtualMachineMigrationException {\n VMInstanceVO vmInstance = _vmInstanceDao.findById(vmId);\n if (vmInstance != null) {\n List<VMSnapshotVO> vmSnapshots = _vmSnapshotDao.findByVm(vmId);\n if (vmSnapshots.size() > 0) {\n throw new InvalidParameterValueException(\"String_Node_Str\");\n }\n if (vmInstance.getState().equals(State.Stopped)) {\n upgradeStoppedVirtualMachine(vmId, newServiceOfferingId, customParameters);\n return true;\n }\n if (vmInstance.getState().equals(State.Running)) {\n return upgradeRunningVirtualMachine(vmId, newServiceOfferingId, customParameters);\n }\n }\n return false;\n}\n"
"void init(ChannelPipeline pipeline) {\n pipeline.addLast(\"String_Node_Str\", new HttpResponseEncoder());\n pipeline.addLast(\"String_Node_Str\", new HttpRequestDecoder());\n pipeline.addLast(\"String_Node_Str\", new HttpObjectAggregator(65536));\n pipeline.addLast(\"String_Node_Str\", new WebSocketServerProtocolHandler(\"String_Node_Str\", MQTT_SUBPROTOCOL_CSV_LIST));\n pipeline.addLast(\"String_Node_Str\", new WebSocketFrameToByteBufDecoder());\n pipeline.addLast(\"String_Node_Str\", new ByteBufToWebSocketFrameEncoder());\n pipeline.addFirst(\"String_Node_Str\", new IdleStateHandler(0, 0, Constants.DEFAULT_CONNECT_TIMEOUT));\n pipeline.addAfter(\"String_Node_Str\", \"String_Node_Str\", timeoutHandler);\n pipeline.addFirst(\"String_Node_Str\", new BytesMetricsHandler(m_bytesMetricsCollector));\n pipeline.addLast(\"String_Node_Str\", new MQTTDecoder());\n pipeline.addLast(\"String_Node_Str\", new MQTTEncoder());\n pipeline.addLast(\"String_Node_Str\", new MessageMetricsHandler(m_metricsCollector));\n pipeline.addLast(\"String_Node_Str\", handler);\n}\n"
"public void validateVo(EntityManager em, UserVo vo) throws InvalidVoException {\n if (vo == null) {\n throw new InvalidVoException(\"String_Node_Str\");\n }\n if (vo.getFirstName() == null || vo.getFirstName().isEmpty()) {\n throw new InvalidVoException(\"String_Node_Str\");\n }\n if (vo.getLastName() == null) {\n throw new InvalidVoException(\"String_Node_Str\");\n }\n if (vo.getUserName() == null) {\n throw new InvalidVoException(\"String_Node_Str\");\n }\n if (vo.getUserName().length() > MAX_USERNAME_LENGTH || vo.getUserName().length() < MIN_USERNAME_LENGTH) {\n throw new InvalidVoException(\"String_Node_Str\");\n }\n if (vo.getPassword() == null) {\n throw new InvalidVoException(\"String_Node_Str\");\n }\n if (vo.getPassword().length() > MAX_USER_PASSWORD_LENGTH || vo.getUserName().length() < MIN_USER_PASSWORD_LENGTH) {\n throw new InvalidVoException(\"String_Node_Str\");\n }\n if (vo.getProgramsId() == null) {\n throw new InvalidVoException(\"String_Node_Str\");\n }\n if (vo.getProgramsId().isEmpty()) {\n throw new InvalidVoException(\"String_Node_Str\");\n }\n for (Long programId : vo.getProgramsId()) {\n if (programId == null) {\n throw new InvalidVoException(\"String_Node_Str\");\n }\n if (this.getDaoFactory().getProgramDao().getById(em, programId) == null) {\n throw new InvalidVoException(\"String_Node_Str\");\n }\n }\n if (vo.getRol() == null) {\n throw new InvalidVoException(\"String_Node_Str\");\n }\n}\n"
"private void onAddEmptyColumn(AddNewColumnEvent event) {\n if (preview != null || templateColumn != null)\n return;\n int index;\n if (event.getObjectId() <= 0) {\n index = -1;\n } else {\n BrickColumnManager brickColumnManager = stratomex.getBrickColumnManager();\n BrickColumn col = brickColumnManager.getBrickColumnSpacers().get(event.getObjectId()).getLeftDimGroup();\n index = col == null ? -1 : brickColumnManager.getBrickColumns().indexOf(col);\n }\n templateIndex = index;\n templateColumn = createTemplateElement(index + 1);\n stratomex.relayout();\n}\n"
"public void failure(RetrofitError error) {\n if (mAdapter == null || mAdapter.isEmpty()) {\n mMultiView.setErrorText(R.id.errorMessage, ApiClient.getErrorCode(error));\n mMultiView.setViewState(MultiStateView.VIEW_STATE_ERROR);\n } else {\n SnackBar.show(NotificationActivity.this, ApiClient.getErrorCode(error));\n mMultiView.setViewState(MultiStateView.ViewState.CONTENT);\n }\n}\n"
"public boolean isHandled() {\n return handled;\n}\n"
"private V getResult() {\n if (defaultValue != null) {\n return defaultValue;\n }\n if (deserializedValue != null) {\n return deserializedValue;\n } else {\n if (valueData != null) {\n deserializedValue = serializationService.toObject(valueData);\n }\n return deserializedValue;\n }\n}\n"
"public FloatCContainer log(int iBase) {\n float[] fArTarget = new float[container.length];\n float fTmp;\n for (int index = 0; index < fArContainer.length; index++) {\n fTmp = fArContainer[index];\n fArTarget[index] = (float) Math.log(fTmp) / (float) Math.log(iBase);\n if (fArTarget[index] == Float.NEGATIVE_INFINITY) {\n fArTarget[index] = 0;\n }\n }\n return new FloatCContainer(fArTarget);\n}\n"
"public List<PortConfig> deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {\n Gson jsonp = s_gBuilder.create();\n List<PortConfig> pcs = jsonp.fromJson(json, listType);\n return pcs;\n}\n"
"public static void createBootImageObjects(Vector<String> typeNames, String bootImageTypeNamesFile) throws IllegalAccessException {\n Callbacks.notifyBootImage(typeNames.elements());\n long startTime = 0;\n long stopTime = 0;\n if (verbose >= 1)\n say(\"String_Node_Str\");\n if (profile)\n startTime = System.currentTimeMillis();\n for (String typeName : typeNames) {\n if (verbose >= 4)\n say(\"String_Node_Str\", typeName);\n RVMType type;\n try {\n TypeReference tRef = TypeReference.findOrCreate(typeName);\n type = tRef.resolve();\n } catch (NoClassDefFoundError ncdf) {\n ncdf.printStackTrace(System.out);\n fail(bootImageTypeNamesFile + \"String_Node_Str\" + typeName + \"String_Node_Str\" + ncdf);\n return;\n } catch (IllegalArgumentException ila) {\n ila.printStackTrace(System.out);\n fail(bootImageTypeNamesFile + \"String_Node_Str\" + typeName + \"String_Node_Str\" + ila);\n return;\n }\n type.markAsBootImageClass();\n typeName = typeName.replace('/', '.');\n if (typeName.startsWith(\"String_Node_Str\"))\n typeName = typeName.substring(1, typeName.length() - 1);\n bootImageTypes.put(typeName, type);\n }\n if (profile) {\n stopTime = System.currentTimeMillis();\n System.out.println(\"String_Node_Str\" + (stopTime - startTime) + \"String_Node_Str\");\n }\n if (verbose >= 1)\n say(String.valueOf(bootImageTypes.size()), \"String_Node_Str\");\n if (profile)\n startTime = System.currentTimeMillis();\n if (verbose >= 1)\n say(\"String_Node_Str\");\n for (RVMType type : bootImageTypes.values()) {\n if (verbose >= 2)\n say(\"String_Node_Str\" + type);\n type.resolve();\n }\n for (RVMType type : bootImageTypes.values()) {\n type.allBootImageTypesResolved();\n }\n if (profile) {\n stopTime = System.currentTimeMillis();\n System.out.println(\"String_Node_Str\" + (stopTime - startTime) + \"String_Node_Str\");\n }\n BootRecord bootRecord = BootRecord.the_boot_record;\n RVMClass rvmBRType = getRvmType(bootRecord.getClass()).asClass();\n RVMArray intArrayType = RVMArray.getPrimitiveArrayType(10);\n bootImage.allocateDataStorage(rvmBRType.getInstanceSize(), ObjectModel.getAlignment(rvmBRType), ObjectModel.getOffsetForAlignment(rvmBRType, false));\n Address jtocAddress = bootImage.allocateDataStorage(intArrayType.getInstanceSize(0), ObjectModel.getAlignment(intArrayType), ObjectModel.getOffsetForAlignment(intArrayType, false));\n bootImage.resetAllocator();\n bootRecord.tocRegister = jtocAddress.plus(intArrayType.getInstanceSize(Statics.middleOfTable));\n OutOfLineMachineCode.init();\n if (profile)\n startTime = System.currentTimeMillis();\n if (verbose >= 1)\n say(\"String_Node_Str\");\n if (verbose >= 1)\n say(\"String_Node_Str\" + numThreads + \"String_Node_Str\");\n ExecutorService threadPool = Executors.newFixedThreadPool(numThreads);\n for (RVMType type : bootImageTypes.values()) {\n threadPool.execute(new BootImageWorker(type));\n }\n threadPool.shutdown();\n try {\n while (!threadPool.awaitTermination(Long.MAX_VALUE, TimeUnit.SECONDS)) {\n say(\"String_Node_Str\");\n }\n } catch (InterruptedException e) {\n throw new Error(\"String_Node_Str\", e);\n }\n if (BootImageWorker.instantiationFailed) {\n throw new Error(\"String_Node_Str\");\n }\n if (profile) {\n stopTime = System.currentTimeMillis();\n System.out.println(\"String_Node_Str\" + (stopTime - startTime) + \"String_Node_Str\");\n }\n staticsJunk = Statics.bootImageInstantiationFinished();\n FunctionTable functionTable = BuildJNIFunctionTable.buildTable();\n JNIEnvironment.initFunctionTable(functionTable);\n if (verbose >= 1)\n say(\"String_Node_Str\");\n if (profile)\n startTime = System.currentTimeMillis();\n bootImageTypeFields = new HashMap<Key, FieldInfo>(bootImageTypes.size());\n HashSet<String> invalidEntrys = new HashSet<String>();\n for (RVMType rvmType : bootImageTypes.values()) {\n FieldInfo fieldInfo;\n if (!rvmType.isClassType())\n continue;\n Class jdkType = getJdkType(rvmType);\n if (jdkType == null)\n continue;\n Key key = new Key(jdkType);\n fieldInfo = bootImageTypeFields.get(key);\n if (fieldInfo != null) {\n fieldInfo.rvmType = rvmType;\n } else {\n if (verbose >= 1)\n say(\"String_Node_Str\" + rvmType);\n fieldInfo = new FieldInfo(jdkType, rvmType);\n bootImageTypeFields.put(key, fieldInfo);\n for (Class cls = jdkType.getSuperclass(); cls != null; cls = cls.getSuperclass()) {\n key = new Key(cls);\n fieldInfo = bootImageTypeFields.get(key);\n if (fieldInfo != null) {\n break;\n } else {\n if (verbose >= 1)\n say(\"String_Node_Str\" + jdkType);\n fieldInfo = new FieldInfo(cls, null);\n bootImageTypeFields.put(key, fieldInfo);\n }\n }\n }\n }\n for (FieldInfo fieldInfo : bootImageTypeFields.values()) {\n RVMType rvmType = fieldInfo.rvmType;\n if (rvmType == null) {\n if (verbose >= 1)\n say(\"String_Node_Str\" + fieldInfo.jdkType);\n continue;\n }\n Class jdkType = fieldInfo.jdkType;\n if (verbose >= 1)\n say(\"String_Node_Str\" + rvmType);\n RVMField[] rvmFields = rvmType.getStaticFields();\n fieldInfo.jdkStaticFields = new Field[rvmFields.length];\n for (int j = 0; j < rvmFields.length; j++) {\n String rvmName = rvmFields[j].getName().toString();\n for (Field f : fieldInfo.jdkFields) {\n if (f.getName().equals(rvmName)) {\n fieldInfo.jdkStaticFields[j] = f;\n f.setAccessible(true);\n break;\n }\n }\n }\n rvmFields = rvmType.getInstanceFields();\n fieldInfo.jdkInstanceFields = new Field[rvmFields.length];\n for (int j = 0; j < rvmFields.length; j++) {\n String rvmName = rvmFields[j].getName().toString();\n jdkType = getJdkType(rvmFields[j].getDeclaringClass());\n if (jdkType == null)\n continue;\n FieldInfo jdkFieldInfo = bootImageTypeFields.get(new Key(jdkType));\n if (jdkFieldInfo == null)\n continue;\n Field[] jdkFields = jdkFieldInfo.jdkFields;\n for (Field f : jdkFields) {\n if (f.getName().equals(rvmName)) {\n fieldInfo.jdkInstanceFields[j] = f;\n f.setAccessible(true);\n break;\n }\n }\n }\n }\n if (profile) {\n stopTime = System.currentTimeMillis();\n System.out.println(\"String_Node_Str\" + (stopTime - startTime) + \"String_Node_Str\");\n }\n startupThread = Scheduler.setupBootThread();\n byte[] stack = startupThread.getStack();\n int idx = stack.length - 1;\n if (VM.LittleEndian) {\n stack[idx--] = (byte) 0xde;\n stack[idx--] = (byte) 0xad;\n stack[idx--] = (byte) 0xba;\n stack[idx--] = (byte) 0xbe;\n } else {\n stack[idx--] = (byte) 0xbe;\n stack[idx--] = (byte) 0xba;\n stack[idx--] = (byte) 0xad;\n stack[idx--] = (byte) 0xde;\n }\n BootstrapClassLoader.setBootstrapRepositories(bootImageRepositoriesAtExecutionTime);\n if (verbose >= 1)\n say(\"String_Node_Str\");\n if (profile)\n startTime = System.currentTimeMillis();\n for (RVMType rvmType : bootImageTypes.values()) {\n if (verbose >= 1)\n say(\"String_Node_Str\", rvmType.toString());\n if (!rvmType.isClassType())\n continue;\n Class jdkType = getJdkType(rvmType);\n if (jdkType == null && verbose >= 1) {\n say(\"String_Node_Str\" + rvmType + \"String_Node_Str\");\n }\n RVMField[] rvmFields = rvmType.getStaticFields();\n for (int j = 0; j < rvmFields.length; ++j) {\n RVMField rvmField = rvmFields[j];\n TypeReference rvmFieldType = rvmField.getType();\n Offset rvmFieldOffset = rvmField.getOffset();\n String rvmFieldName = rvmField.getName().toString();\n Field jdkFieldAcc = null;\n if (jdkType != null)\n jdkFieldAcc = getJdkFieldAccessor(jdkType, j, STATIC_FIELD);\n if (jdkFieldAcc == null) {\n if (jdkType != null) {\n if (!copyKnownClasspathStaticField(jdkType, rvmFieldName, rvmFieldType, rvmFieldOffset)) {\n if (verbose >= 2) {\n traceContext.push(rvmFieldType.toString(), jdkType.getName(), rvmFieldName);\n traceContext.traceFieldNotInHostJdk();\n traceContext.pop();\n }\n Statics.setSlotContents(rvmFieldOffset, 0);\n if (!VM.runningTool)\n bootImage.countNulledReference();\n invalidEntrys.add(jdkType.getName());\n }\n } else {\n if (verbose >= 2) {\n traceContext.push(rvmFieldType.toString(), rvmFieldType.toString(), rvmFieldName);\n traceContext.traceFieldNotInHostJdk();\n traceContext.pop();\n }\n Statics.setSlotContents(rvmFieldOffset, 0);\n if (!VM.runningTool)\n bootImage.countNulledReference();\n invalidEntrys.add(rvmField.getDeclaringClass().toString());\n }\n continue;\n }\n if (!Modifier.isStatic(jdkFieldAcc.getModifiers())) {\n if (verbose >= 2)\n traceContext.push(rvmFieldType.toString(), jdkType.getName(), rvmFieldName);\n if (verbose >= 2)\n traceContext.traceFieldNotStaticInHostJdk();\n if (verbose >= 2)\n traceContext.pop();\n Statics.setSlotContents(rvmFieldOffset, 0);\n if (!VM.runningTool)\n bootImage.countNulledReference();\n invalidEntrys.add(jdkType.getName());\n continue;\n }\n if (!equalTypes(jdkFieldAcc.getType().getName(), rvmFieldType)) {\n if (verbose >= 2)\n traceContext.push(rvmFieldType.toString(), jdkType.getName(), rvmFieldName);\n if (verbose >= 2)\n traceContext.traceFieldDifferentTypeInHostJdk();\n if (verbose >= 2)\n traceContext.pop();\n Statics.setSlotContents(rvmFieldOffset, 0);\n if (!VM.runningTool)\n bootImage.countNulledReference();\n invalidEntrys.add(jdkType.getName());\n continue;\n }\n if (verbose >= 2)\n say(\"String_Node_Str\", String.valueOf(Statics.offsetAsSlot(rvmFieldOffset)), \"String_Node_Str\", rvmField.toString());\n if (rvmFieldType.isPrimitiveType()) {\n if (rvmFieldType.isBooleanType()) {\n Statics.setSlotContents(rvmFieldOffset, jdkFieldAcc.getBoolean(null) ? 1 : 0);\n } else if (rvmFieldType.isByteType()) {\n Statics.setSlotContents(rvmFieldOffset, jdkFieldAcc.getByte(null));\n } else if (rvmFieldType.isCharType()) {\n Statics.setSlotContents(rvmFieldOffset, jdkFieldAcc.getChar(null));\n } else if (rvmFieldType.isShortType()) {\n Statics.setSlotContents(rvmFieldOffset, jdkFieldAcc.getShort(null));\n } else if (rvmFieldType.isIntType()) {\n Statics.setSlotContents(rvmFieldOffset, jdkFieldAcc.getInt(null));\n } else if (rvmFieldType.isLongType()) {\n Statics.setSlotContents(rvmFieldOffset, jdkFieldAcc.getLong(null));\n } else if (rvmFieldType.isFloatType()) {\n float f = jdkFieldAcc.getFloat(null);\n Statics.setSlotContents(rvmFieldOffset, Float.floatToIntBits(f));\n } else if (rvmFieldType.isDoubleType()) {\n double d = jdkFieldAcc.getDouble(null);\n Statics.setSlotContents(rvmFieldOffset, Double.doubleToLongBits(d));\n } else if (rvmFieldType.equals(TypeReference.Address) || rvmFieldType.equals(TypeReference.Word) || rvmFieldType.equals(TypeReference.Extent) || rvmFieldType.equals(TypeReference.Offset)) {\n Object o = jdkFieldAcc.get(null);\n String msg = \"String_Node_Str\" + rvmField.toString();\n boolean warn = rvmFieldType.equals(TypeReference.Address);\n Statics.setSlotContents(rvmFieldOffset, getWordValue(o, msg, warn));\n } else {\n fail(\"String_Node_Str\" + rvmFieldType);\n }\n } else {\n final Object o = jdkFieldAcc.get(null);\n if (verbose >= 3)\n say(\"String_Node_Str\", VM.addressAsHexString(Magic.objectAsAddress(o)));\n Statics.setSlotContents(rvmFieldOffset, o);\n }\n }\n }\n if (verbose >= 2) {\n for (final String entry : invalidEntrys) {\n say(\"String_Node_Str\", entry);\n }\n }\n if (profile) {\n stopTime = System.currentTimeMillis();\n System.out.println(\"String_Node_Str\" + (stopTime - startTime) + \"String_Node_Str\");\n }\n}\n"
"private ItemStack findNextColor(ItemStack is, ItemStack anchor, int scrollOffset) {\n ItemStack newColor = null;\n IMEInventory<IAEItemStack> inv = AEApi.instance().registries().cell().getCellInventory(is, StorageChannel.ITEMS);\n if (inv != null) {\n IItemList<IAEItemStack> itemList = inv.getAvailableItems(AEApi.instance().storage().createItemList());\n if (anchor == null) {\n IAEItemStack firstItem = itemList.getFirstItem();\n if (firstItem != null)\n newColor = firstItem.getItemStack();\n } else {\n LinkedList<IAEItemStack> list = new LinkedList<IAEItemStack>();\n for (IAEItemStack i : itemList) list.add(i);\n Collections.sort(list, new Comparator<IAEItemStack>() {\n public int compare(IAEItemStack a, IAEItemStack b) {\n return ItemSorters.compareInt(a.getItemDamage(), b.getItemDamage());\n }\n });\n if (list.size() <= 0)\n return null;\n IAEItemStack where = list.getFirst();\n int cycles = 1 + list.size();\n while (cycles > 0 && !where.equals(anchor)) {\n list.addLast(list.removeFirst());\n cycles--;\n where = list.getFirst();\n }\n if (scrollOffset > 0)\n list.addLast(list.removeFirst());\n if (scrollOffset < 0)\n list.addFirst(list.removeLast());\n return list.get(0).getItemStack();\n }\n }\n if (newColor != null)\n setColor(is, newColor);\n return newColor;\n}\n"
"public Sequence sequenceLength(String region) {\n Sequence sequence = sequence(region);\n sequence.dna = \"String_Node_Str\";\n return sequence;\n}\n"
"public boolean canLeaveThePage() {\n if (isDirty()) {\n MessageDialog prefDialog = new MessageDialog(UIUtil.getDefaultShell(), Messages.getString(\"String_Node_Str\"), null, Messages.getString(\"String_Node_Str\"), MessageDialog.INFORMATION, new String[] { Messages.getString(\"String_Node_Str\"), Messages.getString(\"String_Node_Str\"), Messages.getString(\"String_Node_Str\") }, 0);\n int ret = prefDialog.open();\n switch(ret) {\n case 0:\n doSave(null);\n break;\n case 1:\n if (getEditorInput() != null) {\n this.setInput(getEditorInput());\n }\n break;\n case 2:\n return false;\n }\n }\n IEditorInput input = getEditorInput();\n boolean validModel = false;\n validModel = isValidModelFile();\n if (!validModel) {\n Display.getCurrent().beep();\n MessageDialog.openError(Display.getCurrent().getActiveShell(), Messages.getString(\"String_Node_Str\"), Messages.getString(\"String_Node_Str\"));\n return false;\n }\n return true;\n}\n"
"public void testDitaKeyspaceConstruction() throws Exception {\n Element resourceElement = null;\n URI resourceUri = null;\n DitaKeySpace keySpace;\n KeyAccessOptions keyAccessOptions = new KeyAccessOptions();\n DitaKeyDefinitionContext keydefContext = dlmService.registerRootMap(rootMap);\n assertNotNull(keydefContext);\n DitaKeyDefinitionContext candKeydefContext = dlmService.getKeyDefinitionContext(rootMap);\n assertEquals(keydefContext, candKeydefContext);\n keySpace = dlmService.getKeySpace(keyAccessOptions, keydefContext);\n assertNotNull(keySpace);\n assertEquals(rootMap.getDocumentURI(), keySpace.getRootMap(keyAccessOptions).getDocumentURI());\n dlmService.unRegisterKeySpace(keydefContext);\n keySpace = dlmService.getKeySpace(keyAccessOptions, keydefContext);\n assertNull(\"String_Node_Str\", keySpace);\n keydefContext = dlmService.registerRootMap(rootMap);\n assertNotNull(keydefContext);\n dlmService.markKeySpaceOutOfDate(keydefContext);\n assertNotNull(keydefContext);\n assertTrue(keydefContext.isOutOfDate());\n KeyReportOptions reportOptions = new KeyReportOptions();\n KeySpaceReporter reporter = new TextKeySpaceReporter();\n reporter.setPrintStream(System.out);\n reporter.report(keyAccessOptions, dlmService.getKeySpace(keyAccessOptions, keydefContext), reportOptions);\n reportOptions.setSortByMap(true);\n reporter.report(keyAccessOptions, dlmService.getKeySpace(keyAccessOptions, keydefContext), reportOptions);\n reportOptions.setSortByMap(false);\n reportOptions.setAllKeys(true);\n reporter.report(keyAccessOptions, dlmService.getKeySpace(keyAccessOptions, keydefContext), reportOptions);\n Set<String> keys = dlmService.getKeys(keyAccessOptions, keydefContext);\n assertNotNull(keys);\n assertEquals(keyCount, keys.size());\n keySpace = dlmService.getKeySpace(keyAccessOptions, keydefContext);\n assertNotNull(keySpace);\n assertEquals(keyCount, keySpace.size());\n Document candDoc = keySpace.getRootMap(keyAccessOptions);\n assertEquals(candDoc.getDocumentURI(), rootMap.getDocumentURI());\n Set<DitaKeyDefinition> keyDefSet = dlmService.getEffectiveKeyDefinitions(keyAccessOptions, keydefContext);\n List<DitaKeyDefinition> keyDefList = null;\n assertNotNull(\"String_Node_Str\", keyDefSet);\n assertEquals(keyCount, keyDefSet.size());\n DitaKeyDefinition keyDef = dlmService.getKeyDefinition(keyAccessOptions, keydefContext, key01);\n assertNotNull(\"String_Node_Str\", keyDef);\n String rootMapId = keyDef.getBaseUri().toURL().toExternalForm();\n assertNotNull(rootMapId);\n assertEquals(rootMap.getDocumentURI(), rootMapId);\n keyDefSet = dlmService.getEffectiveKeyDefinitionsForKey(keyAccessOptions, key01);\n assertNotNull(\"String_Node_Str\", keyDefSet);\n assertEquals(1, keyDefSet.size());\n keyDefList = dlmService.getAllKeyDefinitionsForKey(keyAccessOptions, key01);\n assertNotNull(\"String_Node_Str\", keyDefList);\n assertEquals(5, keyDefList.size());\n keyDef = dlmService.getKeyDefinition(keyAccessOptions, keydefContext, key01);\n assertNotNull(keyDef);\n assertEquals(key01, keyDef.getKey());\n KeyAccessOptions kaoNotWindows = new KeyAccessOptions();\n kaoNotWindows.addExclusion(\"String_Node_Str\", \"String_Node_Str\");\n KeyAccessOptions kaoNotOsx = new KeyAccessOptions();\n kaoNotOsx.addExclusion(\"String_Node_Str\", \"String_Node_Str\");\n KeyAccessOptions kaoNotOsxOrWin = new KeyAccessOptions();\n kaoNotOsxOrWin.addExclusion(\"String_Node_Str\", \"String_Node_Str\");\n kaoNotOsxOrWin.addExclusion(\"String_Node_Str\", \"String_Node_Str\");\n DitaKeyDefinition keyDefOsx = dlmService.getKeyDefinition(kaoNotWindows, keydefContext, key01);\n assertNotNull(keyDefOsx);\n assertEquals(keyDefOsx, keyDef);\n assertTrue(keyDefOsx.getDitaPropsSpec().equals(keyDef.getDitaPropsSpec()));\n DitaKeyDefinition keyDefWindows = dlmService.getKeyDefinition(kaoNotOsx, keydefContext, key01);\n assertFalse(keyDefOsx.equals(keyDefWindows));\n assertFalse(keyDefOsx.getDitaPropsSpec().equals(keyDefWindows.getDitaPropsSpec()));\n keyDefList = dlmService.getAllKeyDefinitionsForKey(keyAccessOptions, keydefContext, key01);\n assertNotNull(keyDefList);\n assertEquals(5, keyDefList.size());\n DitaResource res;\n DitaElementResource elemRes;\n URL resUrl;\n res = dlmService.getResource(keyAccessOptions, keydefContext, key01);\n assertNotNull(res);\n assertTrue(\"String_Node_Str\", res instanceof DitaElementResource);\n elemRes = (DitaElementResource) res;\n Element resElem = elemRes.getElement();\n assertNotNull(\"String_Node_Str\", resElem);\n resUrl = res.getUrl();\n assertNotNull(\"String_Node_Str\", resUrl);\n res = dlmService.getResource(keyAccessOptions, keydefContext, key02);\n assertNotNull(res);\n assertFalse(\"String_Node_Str\", res instanceof DitaElementResource);\n resUrl = res.getUrl();\n assertNotNull(resUrl);\n assertTrue(dlmService.isKeyDefined(key01));\n assertTrue(dlmService.isKeyDefined(key01, keydefContext));\n assertFalse(dlmService.isKeyDefined(\"String_Node_Str\"));\n assertFalse(dlmService.isKeyDefined(\"String_Node_Str\", keydefContext));\n}\n"
"public void fillProperties(Form formElNodeForm, FormElement fe, Object formElementProperty, PropertyDescription propertySpec, DataAdapterList dal, WebFormComponent component, Object componentNode, String level) {\n IPropertyType<?> type = propertySpec.getType();\n if (propertySpec.isArray() && formElementProperty instanceof List && !(formElementProperty instanceof IComplexPropertyValue)) {\n List<Object> processedArray = new ArrayList<>();\n List<Object> fePropertyArray = (List<Object>) formElementProperty;\n for (Object arrayValue : fePropertyArray) {\n Object propValue = initFormElementProperty(formElNodeForm, fe, arrayValue, propertySpec.asArrayElement(), dal, component, componentNode, level, true);\n switch(type.getName()) {\n case \"String_Node_Str\":\n {\n Debug.error(\"String_Node_Str\");\n Object dataproviderID = propValue;\n if (dataproviderID instanceof String) {\n dal.add(component, level + (String) dataproviderID, propertySpec.getName());\n }\n break;\n }\n case \"String_Node_Str\":\n {\n Debug.error(\"String_Node_Str\");\n if (propValue != null && propValue instanceof String && (((String) propValue).contains(\"String_Node_Str\")) || ((String) propValue).startsWith(\"String_Node_Str\")) {\n dal.addTaggedProperty(component, level + propertySpec.getName(), (String) propValue);\n }\n break;\n }\n default:\n {\n processedArray.add(propValue);\n }\n }\n }\n if (processedArray.size() > 0) {\n putInComponentNode(componentNode, propertySpec.getName(), processedArray, propertySpec, component);\n }\n } else {\n Object propValue = initFormElementProperty(formElNodeForm, fe, formElementProperty, propertySpec, dal, component, componentNode, level, false);\n String propName = propertySpec.getName();\n switch(type.getName()) {\n case \"String_Node_Str\":\n {\n Object dataproviderID = formElementProperty;\n if (dataproviderID instanceof String) {\n dal.add(component, (String) dataproviderID, level + propName);\n return;\n }\n break;\n }\n case \"String_Node_Str\":\n {\n if (propValue != null && propValue instanceof String && (((String) propValue).contains(\"String_Node_Str\") || ((String) propValue).startsWith(\"String_Node_Str\"))) {\n dal.addTaggedProperty(component, level + propName, (String) propValue);\n return;\n }\n break;\n }\n case \"String_Node_Str\":\n return;\n default:\n break;\n }\n if (propValue != null)\n putInComponentNode(componentNode, propName, propValue, propertySpec, component);\n }\n}\n"
"public void doSave(final IProgressMonitor monitor) {\n if (!isDirty()) {\n return;\n }\n updateRunJobContext();\n designerEditor.getProcess().getProperty().eAdapters().remove(dirtyListener);\n IRepositoryService service = CorePlugin.getDefault().getRepositoryService();\n IProxyRepositoryFactory repFactory = service.getProxyRepositoryFactory();\n display = getSite().getShell().getDisplay();\n repFactory.addRepositoryWorkUnitListener(repositoryWorkListener);\n if (getActivePage() == 0 || getActivePage() == 1) {\n getEditor(0).doSave(monitor);\n } else if (getActivePage() == 2) {\n getEditor(2).doSave(monitor);\n try {\n IProcess2 oldProcess = getProcess();\n ICreateXtextProcessService n = CorePlugin.getDefault().getCreateXtextProcessService();\n ProcessType processType = n.convertDesignerEditorInput(((IFile) getEditor(2).getEditorInput().getAdapter(IResource.class)).getLocation().toOSString(), oldProcess.getProperty());\n IProcess2 newProcess = null;\n Item item = getProcess().getProperty().getItem();\n if (item instanceof ProcessItem) {\n ((Process) designerEditor.getProcess()).updateProcess(processType);\n } else if (item instanceof JobletProcessItem) {\n AbstractProcessProvider processProvider = AbstractProcessProvider.findProcessProviderFromPID(IComponent.JOBLET_PID);\n if (processProvider != null) {\n newProcess = processProvider.buildNewGraphicProcess(item);\n }\n designerEditor.setProcess(newProcess);\n Boolean lastVersion = null;\n if (oldProcess instanceof ILastVersionChecker) {\n lastVersion = ((ILastVersionChecker) oldProcess).isLastVersion(item);\n }\n if (designerEditor.getEditorInput() instanceof JobEditorInput) {\n ((JobEditorInput) designerEditor.getEditorInput()).checkInit(lastVersion, null, true);\n }\n }\n getEditor(0).doSave(monitor);\n } catch (PersistenceException e) {\n ExceptionHandler.process(e);\n }\n }\n if (processEditorInput != null) {\n propertyInformation = new ArrayList(processEditorInput.getItem().getProperty().getInformations());\n propertyIsDirty = false;\n firePropertyChange(IEditorPart.PROP_DIRTY);\n if (processEditorInput.getItem() instanceof ProcessItem) {\n RepositoryManager.refresh(ERepositoryObjectType.PROCESS);\n } else {\n RepositoryManager.refresh(ERepositoryObjectType.JOBLET);\n }\n }\n if (designerEditor != null && dirtyListener != null)\n designerEditor.getProcess().getProperty().eAdapters().add(dirtyListener);\n}\n"
"public void widgetSelected(SelectionEvent e) {\n remainDBTypeList.clear();\n remainDBTypeList.addAll(allDBTypeList);\n for (PatternComponent patternComponent : tempPatternComponents) {\n String language = ((RegularExpressionImpl) patternComponent).getExpression().getLanguage();\n String languageName = PatternLanguageType.findNameByLanguage(language);\n remainDBTypeList.remove(languageName);\n }\n if (remainDBTypeList.size() == 0) {\n MessageDialog.openWarning(null, DefaultMessagesImpl.getString(\"String_Node_Str\"), DefaultMessagesImpl.getString(\"String_Node_Str\"));\n return;\n }\n String language = PatternLanguageType.findLanguageByName(remainDBTypeList.get(0));\n RegularExpression newRegularExpress = BooleanExpressionHelper.createRegularExpression(language, null);\n newRegularExpress.setExpressionType(expressionType);\n creatNewExpressLine(newRegularExpress);\n tempPatternComponents.add(newRegularExpress);\n patternDefinitionSection.setExpanded(true);\n setDirty(true);\n}\n"
"public List<Extension> extract() throws IOException, InterruptedException {\n File tempDir = File.createTempFile(\"String_Node_Str\", \"String_Node_Str\");\n tempDir.delete();\n tempDir.mkdirs();\n StandardJavaFileManager fileManager = null;\n try {\n File srcdir = new File(tempDir, \"String_Node_Str\");\n File libdir = new File(tempDir, \"String_Node_Str\");\n FileUtils.unzip(artifact.resolveSources(), srcdir);\n File pom = artifact.resolvePOM();\n FileUtils.copyFile(pom, new File(srcdir, \"String_Node_Str\"));\n downloadDependencies(srcdir, libdir);\n JavaCompiler javac1 = JavacTool.create();\n DiagnosticListener<? super JavaFileObject> errorListener = new DiagnosticListener<JavaFileObject>() {\n public void report(Diagnostic<? extends JavaFileObject> diagnostic) {\n System.out.println(diagnostic);\n }\n };\n fileManager = javac1.getStandardFileManager(errorListener, Locale.getDefault(), Charset.defaultCharset());\n fileManager.setLocation(StandardLocation.CLASS_PATH, generateClassPath(libdir));\n List<String> options = Arrays.asList(\"String_Node_Str\");\n Iterable<? extends JavaFileObject> files = fileManager.getJavaFileObjectsFromFiles(generateSources(srcdir));\n JavaCompiler.CompilationTask task = javac1.getTask(null, fileManager, errorListener, options, null, files);\n final JavacTask javac = (JavacTask) task;\n final Trees trees = Trees.instance(javac);\n final Elements elements = javac.getElements();\n final Types types = javac.getTypes();\n Iterable<? extends CompilationUnitTree> parsed = javac.parse();\n javac.analyze();\n final List<Extension> r = new ArrayList<Extension>();\n TreePathScanner<?, ?> classScanner = new TreePathScanner<Void, Void>() {\n final TypeElement extensionPoint = elements.getTypeElement(\"String_Node_Str\");\n public Void visitClass(ClassTree ct, Void _) {\n TreePath path = getCurrentPath();\n TypeElement e = (TypeElement) trees.getElement(path);\n if (e != null)\n checkIfExtension(path, e, e);\n return super.visitClass(ct, _);\n }\n private void checkIfExtension(TreePath pathToRoot, TypeElement root, TypeElement e) {\n for (TypeMirror i : e.getInterfaces()) {\n if (types.asElement(i).equals(extensionPoint))\n r.add(new Extension(hpi, javac, trees, root, pathToRoot, e));\n checkIfExtension(pathToRoot, root, (TypeElement) types.asElement(i));\n }\n TypeMirror s = e.getSuperclass();\n if (!(s instanceof NoType))\n checkIfExtension(pathToRoot, root, (TypeElement) types.asElement(s));\n }\n };\n for (CompilationUnitTree u : parsed) classScanner.scan(u, null);\n return r;\n } finally {\n FileUtils.deleteDirectory(tempDir);\n if (fileManager != null)\n fileManager.close();\n }\n}\n"
"public IValue withType(IType arrayType, ITypeContext typeContext, MarkerList markers, IContext context) {\n if (!arrayType.isArrayType()) {\n IClass iclass = arrayType.getTheClass();\n if (iclass == Types.OBJECT_CLASS || iclass == null) {\n return this;\n }\n if (iclass.getAnnotation(ARRAY_CONVERTIBLE) != null) {\n return new LiteralExpression(this).withType(arrayType, typeContext, markers, context);\n }\n return null;\n }\n IType elementType = arrayType.getElementType();\n for (int i = 0; i < this.valueCount; i++) {\n if (!this.values[i].isType(elementType)) {\n return null;\n }\n }\n for (int i = 0; i < this.valueCount; i++) {\n IValue value = this.values[i];\n IValue value1 = value.withType(elementType, typeContext, markers, context);\n if (value1 == null) {\n Marker marker = markers.create(value.getPosition(), \"String_Node_Str\");\n marker.addInfo(\"String_Node_Str\" + this.requiredType);\n marker.addInfo(\"String_Node_Str\" + value.getType());\n } else {\n value = value1;\n this.values[i] = value1;\n }\n }\n this.elementType = elementType;\n this.requiredType = arrayType;\n return this;\n}\n"
"public ArtifactSet link(TreeLogger logger, LinkerContext context, ArtifactSet artifacts, boolean onePermutation) throws UnableToCompleteException {\n if (onePermutation) {\n ArtifactSet toReturn = new ArtifactSet(artifacts);\n for (CompilationResult compilation : toReturn.find(CompilationResult.class)) {\n toReturn.addAll(doEmitCompilation(logger, context, compilation, artifacts));\n }\n return toReturn;\n } else {\n permutationsUtil.setupPermutationsMap(artifacts);\n ArtifactSet toReturn = new ArtifactSet(artifacts);\n EmittedArtifact art = emitSelectionScript(logger, context, artifacts);\n if (art != null) {\n toReturn.add(art);\n }\n maybeOutputPropertyMap(logger, context, toReturn);\n maybeAddHostedModeFile(logger, context, toReturn);\n return toReturn;\n }\n}\n"
"public void expandLobbyUp(int amount) {\n l2.setY(Math.min(arena.getWorld().getMaxHeight(), l2.getY() + amount));\n set(RegionPoint.L2, l2);\n}\n"
"public String getCommandLine() {\n try {\n return nativeWindowsProcess.getCommandLine();\n } catch (WinpException exc) {\n System.out.println(exc.getLocalizedMessage());\n return \"String_Node_Str\";\n }\n}\n"
"public void testName002Negative() throws Exception {\n boolean exception = false;\n String msg = null;\n String src = \"String_Node_Str\";\n String tmpdir = System.getenv(\"String_Node_Str\");\n try {\n Class[] jClasses = new Class[] { Name002.class };\n Generator gen = new Generator(new JavaModelInputImpl(jClasses, new JavaModelImpl(Thread.currentThread().getContextClassLoader())));\n gen.generateSchemaFiles(tmpdir, null);\n SchemaFactory sFact = SchemaFactory.newInstance(W3C_XML_SCHEMA_NS_URI);\n Schema theSchema = sFact.newSchema(new File(tmpdir + \"String_Node_Str\"));\n Validator validator = theSchema.newValidator();\n StreamSource ss = new StreamSource(new File(src));\n validator.validate(ss);\n } catch (Exception ex) {\n exception = true;\n msg = ex.getMessage();\n }\n assertFalse(\"String_Node_Str\" + msg, exception == false);\n}\n"
"public void map(ImmutableBytesWritable row, Result values, Context context) throws IOException {\n Preconditions.checkState(values != null, \"String_Node_Str\");\n String currentFamilyName = null;\n String currentQualifierName = null;\n String currentRowKey = null;\n Configuration config = context.getConfiguration();\n String separator = config.get(\"String_Node_Str\", \"String_Node_Str\");\n try {\n context.getCounter(Counters.ROWS).increment(1);\n context.write(new Text(\"String_Node_Str\"), new IntWritable(1));\n if (values != null && !values.isEmpty()) {\n for (Cell value : values.listCells()) {\n currentRowKey = Bytes.toStringBinary(CellUtil.cloneRow(value));\n String thisRowFamilyName = Bytes.toStringBinary(CellUtil.cloneFamily(value));\n if (!thisRowFamilyName.equals(currentFamilyName)) {\n currentFamilyName = thisRowFamilyName;\n context.getCounter(\"String_Node_Str\", thisRowFamilyName).increment(1);\n if (1 == context.getCounter(\"String_Node_Str\", thisRowFamilyName).getValue()) {\n context.write(new Text(\"String_Node_Str\"), new IntWritable(1));\n context.write(new Text(thisRowFamilyName), new IntWritable(1));\n }\n }\n String thisRowQualifierName = thisRowFamilyName + separator + Bytes.toStringBinary(CellUtil.cloneQualifier(value));\n if (!thisRowQualifierName.equals(currentQualifierName)) {\n currentQualifierName = thisRowQualifierName;\n context.getCounter(\"String_Node_Str\", thisRowQualifierName).increment(1);\n context.write(new Text(\"String_Node_Str\"), new IntWritable(1));\n context.write(new Text(thisRowFamilyName), new IntWritable(1));\n }\n }\n String thisRowQualifierName = thisRowFamilyName + separator + Bytes.toStringBinary(CellUtil.cloneQualifier(value));\n if (!thisRowQualifierName.equals(currentQualifierName)) {\n currentQualifierName = thisRowQualifierName;\n context.getCounter(\"String_Node_Str\", thisRowQualifierName).increment(1);\n context.write(new Text(\"String_Node_Str\"), new IntWritable(1));\n context.write(new Text(thisRowQualifierName), new IntWritable(1));\n context.getCounter(\"String_Node_Str\", currentRowKey + separator + thisRowQualifierName).increment(1);\n context.write(new Text(currentRowKey + separator + thisRowQualifierName + \"String_Node_Str\"), new IntWritable(1));\n } else {\n currentQualifierName = thisRowQualifierName;\n context.getCounter(\"String_Node_Str\", currentRowKey + separator + thisRowQualifierName).increment(1);\n context.write(new Text(currentRowKey + separator + thisRowQualifierName + \"String_Node_Str\"), new IntWritable(1));\n }\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n}\n"
"public static String RToSqlUdf(String RExp) {\n return RToSqlUdf(RExp, null, null);\n}\n"
"public ValueAxis getDomainAxisForDataset(int index) {\n int upper = Math.max(getDatasetCount(), getRendererCount());\n if (index < 0 || index >= upper) {\n throw new IllegalArgumentException(\"String_Node_Str\" + index + \"String_Node_Str\");\n }\n ValueAxis valueAxis;\n List axisIndices = (List) this.datasetToDomainAxesMap.get(index);\n if (axisIndices != null) {\n Integer axisIndex = (Integer) axisIndices.get(0);\n valueAxis = getDomainAxis(axisIndex.intValue());\n } else {\n valueAxis = getDomainAxis(0);\n }\n return valueAxis;\n}\n"
"public DynRealm save(final DynRealm dynRealm) {\n DynRealm merged = entityManager().merge(dynRealm);\n clearDynMembers(merged);\n merged.getDynMemberships().stream().map(memb -> jpaAnySearchDAO().search(SearchCondConverter.convert(memb.getFIQLCond()), memb.getAnyType().getKind())).forEachOrdered(matching -> {\n matching.forEach(any -> {\n Query insert = entityManager().createNativeQuery(\"String_Node_Str\" + DYNMEMB_TABLE + \"String_Node_Str\");\n insert.setParameter(1, any.getKey());\n insert.setParameter(2, merged.getKey());\n insert.executeUpdate();\n publisher.publishEvent(new AnyCreatedUpdatedEvent<>(this, any, AuthContextUtils.getDomain()));\n });\n });\n return merged;\n}\n"
"private boolean evalTypePredicate(Node ttlAst, NameResolver nameResolver) {\n TypeI[] params = evalTypeParams(ttlAst, nameResolver);\n String name = getCallName(ttlAst);\n Keywords keyword = nameToKeyword(name);\n TypeI type = params[0];\n switch(keyword) {\n case EQ:\n return type.isEquivalentTo(params[1]);\n case SUB:\n return type.isSubtypeOf(params[1]);\n case ISCTOR:\n return type.isConstructor();\n case ISTEMPLATIZED:\n return type.isObjectType() && type.toMaybeObjectType().isGenericObjectType();\n case ISRECORD:\n return type.isRecordType();\n case ISUNKNOWN:\n return type.isSomeUnknownType();\n default:\n throw new IllegalStateException(\"String_Node_Str\");\n }\n}\n"
"public void testSimpleAdd() throws Exception {\n TestUtils.assertMemoryLeak(() -> {\n int N = 100000;\n try (SymbolMapWriter writer = new SymbolMapWriter(configuration, \"String_Node_Str\", 4, Numbers.ceilPow2(N / 2))) {\n Rnd rnd = new Rnd();\n long prev = -1L;\n for (int i = 0; i < N; i++) {\n CharSequence cs = rnd.nextChars(10);\n long key = writer.put(cs);\n Assert.assertEquals(prev + 1, key);\n Assert.assertEquals(key, writer.put(cs));\n prev = key;\n }\n }\n });\n}\n"
"public void initializeUI(UIBuilder builder) throws Exception {\n JavaCompilerFacet javaCompilerFacet = getJavaCompilerFacet(builder.getUIContext());\n sourceVersion.setDefaultValue(javaCompilerFacet.getSourceCompilerVersion());\n targetVersion.setDefaultValue(javaCompilerFacet.getTargetCompilerVersion());\n builder.add(sourceVersion).add(targetVersion);\n}\n"
"private void sendPack() throws IOException {\n final boolean thin = options.contains(OPTION_THIN_PACK);\n final boolean progress = !options.contains(OPTION_NO_PROGRESS);\n final boolean sideband = options.contains(OPTION_SIDE_BAND) || options.contains(OPTION_SIDE_BAND_64K);\n ProgressMonitor pm = NullProgressMonitor.INSTANCE;\n OutputStream packOut = rawOut;\n if (sideband) {\n int bufsz = SideBandOutputStream.SMALL_BUF;\n if (options.contains(OPTION_SIDE_BAND_64K))\n bufsz = SideBandOutputStream.MAX_BUF;\n packOut = new SideBandOutputStream(SideBandOutputStream.CH_DATA, bufsz, rawOut);\n if (progress)\n pm = new SideBandProgressMonitor(new SideBandOutputStream(SideBandOutputStream.CH_PROGRESS, bufsz, rawOut));\n }\n final PackWriter pw = new PackWriter(db);\n try {\n pw.setDeltaBaseAsOffset(options.contains(OPTION_OFS_DELTA));\n pw.setThin(thin);\n pw.preparePack(pm, wantAll, commonBase);\n if (options.contains(OPTION_INCLUDE_TAG)) {\n for (final Ref r : refs.values()) {\n final RevObject o;\n try {\n o = walk.parseAny(r.getObjectId());\n } catch (IOException e) {\n continue;\n }\n if (o.has(WANT) || !(o instanceof RevTag))\n continue;\n final RevTag t = (RevTag) o;\n if (!pw.willInclude(t) && pw.willInclude(t.getObject()))\n pw.addObject(t);\n }\n }\n pw.writePack(pm, NullProgressMonitor.INSTANCE, packOut);\n } finally {\n pw.release();\n }\n packOut.flush();\n if (sideband)\n pckOut.end();\n}\n"
"public void setModelMatrix2d(double left, double right, double bottom, double top) {\n AffineTransform3d XMW = new AffineTransform3d();\n double w = right - left;\n double h = top - bottom;\n XMW.A.m00 = 2 / w;\n XMW.A.m11 = 2 / h;\n XMW.p.set(-(left + right) / w, -(top + bottom) / h, 0);\n setModelMatrix(XMW);\n}\n"
"public void setUp() throws MojoExecutionException, MojoFailureException {\n builder = new Library();\n if (directory != null) {\n builder.setDirectory(directory);\n }\n super.setUp();\n if (outputFile == null) {\n if (output == null) {\n outputFile = new File(build.getDirectory(), build.getFinalName() + \"String_Node_Str\");\n } else {\n outputFile = new File(build.getDirectory(), output);\n }\n }\n builder.setOutput(outputFile);\n if (checkNullOrEmpty(includeClasses) && checkNullOrEmpty(includeFiles) && checkNullOrEmpty(includeNamespaces) && checkNullOrEmpty(includeResourceBundles) && checkNullOrEmpty(includeResourceBundlesArtifact) && checkNullOrEmpty(includeSources) && checkNullOrEmpty(includeStylesheet)) {\n getLog().warn(\"String_Node_Str\");\n includeSources = sourcePaths.clone();\n includeFiles = listAllResources();\n }\n if (!checkNullOrEmpty(includeClasses)) {\n for (String asClass : includeClasses) {\n builder.addComponent(asClass);\n }\n }\n if (!checkNullOrEmpty(includeFiles)) {\n for (String includeFile : includeFiles) {\n if (includeFile == null) {\n throw new MojoFailureException(\"String_Node_Str\");\n }\n File file = new File(includeFile);\n if (!file.exists()) {\n file = MavenUtils.resolveResourceFile(project, includeFile);\n }\n if (file == null || !file.exists()) {\n throw new MojoFailureException(\"String_Node_Str\" + includeFile + \"String_Node_Str\");\n }\n File folder = getResourceFolder(file);\n String relativePath = PathUtil.getRelativePath(folder, file);\n if (relativePath.startsWith(\"String_Node_Str\")) {\n relativePath = file.getName();\n }\n builder.addArchiveFile(relativePath.replace('\\\\', '/'), file);\n }\n }\n if (!checkNullOrEmpty(includeNamespaces)) {\n for (String uri : includeNamespaces) {\n try {\n builder.addComponent(new URI(uri));\n } catch (URISyntaxException e) {\n throw new MojoExecutionException(\"String_Node_Str\" + uri, e);\n }\n }\n }\n if (!checkNullOrEmpty(includeResourceBundles)) {\n for (String rb : includeResourceBundles) {\n builder.addResourceBundle(rb);\n }\n }\n if (!checkNullOrEmpty(includeResourceBundlesArtifact)) {\n for (MavenArtifact mvnArtifact : includeResourceBundlesArtifact) {\n Artifact artifact = artifactFactory.createArtifactWithClassifier(mvnArtifact.getGroupId(), mvnArtifact.getArtifactId(), mvnArtifact.getVersion(), \"String_Node_Str\", \"String_Node_Str\");\n resolveArtifact(artifact, resolver, localRepository, remoteRepositories);\n String bundleFile;\n try {\n bundleFile = FileUtils.readFileToString(artifact.getFile());\n } catch (IOException e) {\n throw new MojoExecutionException(\"String_Node_Str\" + artifact, e);\n }\n String[] bundles = bundleFile.split(\"String_Node_Str\");\n for (String bundle : bundles) {\n builder.addResourceBundle(bundle);\n }\n }\n }\n if (!checkNullOrEmpty(includeSources)) {\n for (File file : includeSources) {\n if (file == null) {\n throw new MojoFailureException(\"String_Node_Str\");\n }\n if (!file.getName().contains(\"String_Node_Str\") && !file.exists()) {\n throw new MojoFailureException(\"String_Node_Str\" + file.getName() + \"String_Node_Str\");\n }\n builder.addComponent(file);\n }\n }\n includeStylesheet();\n computeDigest();\n if (addMavenDescriptor) {\n builder.addArchiveFile(\"String_Node_Str\" + project.getGroupId() + \"String_Node_Str\" + project.getArtifactId() + \"String_Node_Str\", new File(project.getBasedir(), \"String_Node_Str\"));\n }\n}\n"
"private void buildCashStream() {\n stream = new CashStream();\n TimePoint ref = DateRoller.NEXT_BUZ_DAY.roll(timestamp);\n TimePoint payday = DateRoller.MOD_NEXT_BUZ_DAY.roll(ref.plus(maturity));\n if (payday.minus(ref).getDay() <= 0)\n payday = DateRoller.NEXT_BUZ_DAY.roll(ref.plus(maturity));\n stream.add(CashFlow.create(1 / rateType.disFactorAfter(rate, payday.minus(ref))), payday);\n}\n"
"final void startActivityLocked(ActivityRecord r, boolean newTask, boolean doResume, boolean keepCurTransition, Bundle options) {\n TaskRecord rTask = r.task;\n final int taskId = rTask.taskId;\n if (!r.mLaunchTaskBehind && (taskForIdLocked(taskId) == null || newTask)) {\n insertTaskAtTop(rTask, r);\n mWindowManager.moveTaskToTop(taskId);\n }\n TaskRecord task = null;\n if (!newTask) {\n boolean startIt = true;\n for (int taskNdx = mTaskHistory.size() - 1; taskNdx >= 0; --taskNdx) {\n task = mTaskHistory.get(taskNdx);\n if (task.getTopActivity() == null) {\n continue;\n }\n if (task == r.task) {\n if (!startIt) {\n if (DEBUG_ADD_REMOVE)\n Slog.i(TAG, \"String_Node_Str\" + r + \"String_Node_Str\" + task, new RuntimeException(\"String_Node_Str\").fillInStackTrace());\n task.addActivityToTop(r);\n r.putInHistory();\n mWindowManager.addAppToken(task.mActivities.indexOf(r), r.appToken, r.task.taskId, mStackId, r.info.screenOrientation, r.fullscreen, (r.info.flags & ActivityInfo.FLAG_SHOW_ON_LOCK_SCREEN) != 0, r.userId, r.info.configChanges, task.voiceSession != null, r.mLaunchTaskBehind);\n if (VALIDATE_TOKENS) {\n validateAppTokensLocked();\n }\n ActivityOptions.abort(options);\n return;\n }\n break;\n } else if (task.numFullscreen > 0) {\n startIt = false;\n }\n }\n }\n if (task == r.task && mTaskHistory.indexOf(task) != (mTaskHistory.size() - 1)) {\n mStackSupervisor.mUserLeaving = false;\n if (DEBUG_USER_LEAVING)\n Slog.v(TAG_USER_LEAVING, \"String_Node_Str\");\n }\n task = r.task;\n if (DEBUG_ADD_REMOVE)\n Slog.i(TAG, \"String_Node_Str\" + r + \"String_Node_Str\" + task, new RuntimeException(\"String_Node_Str\").fillInStackTrace());\n task.addActivityToTop(r);\n task.setFrontOfTask();\n r.putInHistory();\n if (!isHomeStack() || numActivities() > 0) {\n boolean showStartingIcon = newTask;\n ProcessRecord proc = r.app;\n if (proc == null) {\n proc = mService.mProcessNames.get(r.processName, r.info.applicationInfo.uid);\n }\n if (proc == null || proc.thread == null) {\n showStartingIcon = true;\n }\n if (DEBUG_TRANSITION)\n Slog.v(TAG_TRANSITION, \"String_Node_Str\" + r);\n if ((r.intent.getFlags() & Intent.FLAG_ACTIVITY_NO_ANIMATION) != 0) {\n mWindowManager.prepareAppTransition(AppTransition.TRANSIT_NONE, keepCurTransition);\n mNoAnimActivities.add(r);\n } else {\n mWindowManager.prepareAppTransition(newTask ? r.mLaunchTaskBehind ? AppTransition.TRANSIT_TASK_OPEN_BEHIND : AppTransition.TRANSIT_TASK_OPEN : AppTransition.TRANSIT_ACTIVITY_OPEN, keepCurTransition);\n mNoAnimActivities.remove(r);\n }\n mWindowManager.addAppToken(task.mActivities.indexOf(r), r.appToken, r.task.taskId, mStackId, r.info.screenOrientation, r.fullscreen, (r.info.flags & ActivityInfo.FLAG_SHOW_ON_LOCK_SCREEN) != 0, r.userId, r.info.configChanges, task.voiceSession != null, r.mLaunchTaskBehind);\n boolean doShow = true;\n if (newTask) {\n if ((r.intent.getFlags() & Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED) != 0) {\n resetTaskIfNeededLocked(r, r);\n doShow = topRunningNonDelayedActivityLocked(null) == r;\n }\n } else if (options != null && new ActivityOptions(options).getAnimationType() == ActivityOptions.ANIM_SCENE_TRANSITION) {\n doShow = false;\n }\n if (r.mLaunchTaskBehind) {\n mWindowManager.setAppVisibility(r.appToken, true);\n ensureActivitiesVisibleLocked(null, 0);\n } else if (SHOW_APP_STARTING_PREVIEW && doShow) {\n ActivityRecord prev = mResumedActivity;\n if (prev != null) {\n if (prev.task != r.task) {\n prev = null;\n } else if (prev.nowVisible) {\n prev = null;\n }\n }\n mWindowManager.setAppStartingWindow(r.appToken, r.packageName, r.theme, mService.compatibilityInfoForPackageLocked(r.info.applicationInfo), r.nonLocalizedLabel, r.labelRes, r.icon, r.logo, r.windowFlags, prev != null ? prev.appToken : null, showStartingIcon);\n r.mStartingWindowShown = true;\n }\n } else {\n mWindowManager.addAppToken(task.mActivities.indexOf(r), r.appToken, r.task.taskId, mStackId, r.info.screenOrientation, r.fullscreen, (r.info.flags & ActivityInfo.FLAG_SHOW_ON_LOCK_SCREEN) != 0, r.userId, r.info.configChanges, task.voiceSession != null, r.mLaunchTaskBehind);\n ActivityOptions.abort(options);\n options = null;\n }\n if (VALIDATE_TOKENS) {\n validateAppTokensLocked();\n }\n if (doResume) {\n mStackSupervisor.resumeTopActivitiesLocked(this, r, options);\n }\n}\n"
"public List evaluateList(Evaluator evaluator) {\n final Member member = memberCalc.evaluateMember(evaluator);\n List result = new ArrayList();\n int depth = depthCalc.evaluateInteger(evaluator);\n final SchemaReader schemaReader = evaluator.getSchemaReader();\n if (depth < 0) {\n depth = -1;\n }\n descendantsLeavesByDepth(member, result, schemaReader, depth);\n hierarchize(result, false);\n return result;\n}\n"
"public void outputInstructionStack(PrintWriter pw) {\n pw.println(\"String_Node_Str\");\n ListIterator stackIter = instructionStack.listIterator(instructionStack.size());\n boolean topElement = true;\n while (stackIter.hasPrevious()) {\n TemplateElement stackEl = (TemplateElement) stackIter.previous();\n if (stackEl.isShownInStackTrace() || !stackIter.hasNext()) {\n if (topElement) {\n pw.print(\"String_Node_Str\");\n topElement = false;\n } else {\n pw.print(\"String_Node_Str\");\n }\n pw.println(getStackTraceElementLine(stackEl));\n }\n }\n pw.println(\"String_Node_Str\");\n pw.flush();\n}\n"
"public IValue checkArguments(MarkerList markers, ICodePosition position, IContext context, IValue instance, IArguments arguments, ITypeContext typeContext) {\n int len = arguments.size();\n if ((this.modifiers & Modifiers.PREFIX) == Modifiers.PREFIX) {\n IValue argument = arguments.getFirstValue();\n arguments.setFirstValue(instance);\n instance = argument;\n }\n if (instance != null) {\n int mod = this.modifiers & Modifiers.INFIX;\n if (mod == Modifiers.INFIX && instance.valueTag() != IValue.CLASS_ACCESS) {\n IParameter par = this.parameters[0];\n IValue instance1 = IType.convertValue(instance, par.getType(), typeContext, markers, context);\n if (instance1 == null) {\n Util.createTypeError(markers, instance, par.getType(), typeContext, \"String_Node_Str\", par.getName());\n } else {\n instance = instance1;\n }\n if ((this.modifiers & Modifiers.VARARGS) != 0) {\n arguments.checkVarargsValue(this.parameterCount - 2, this.parameters[this.parameterCount - 1], typeContext, markers, context);\n for (int i = 0; i < this.parameterCount - 2; i++) {\n arguments.checkValue(i, this.parameters[i + 1], typeContext, markers, context);\n }\n this.checkTypeVarsInferred(markers, position, typeContext);\n return instance;\n }\n for (int i = 0; i < this.parameterCount - 1; i++) {\n arguments.checkValue(i, this.parameters[i + 1], typeContext, markers, context);\n }\n this.checkTypeVarsInferred(markers, position, typeContext);\n return instance;\n }\n if ((this.modifiers & Modifiers.STATIC) != 0) {\n if (instance.valueTag() != IValue.CLASS_ACCESS) {\n markers.add(position, \"String_Node_Str\", this.name.unqualified);\n } else if (instance.getType().getTheClass() != this.theClass) {\n markers.add(position, \"String_Node_Str\", this.name.unqualified, this.theClass.getFullName());\n }\n instance = null;\n } else if (instance.valueTag() == IValue.CLASS_ACCESS) {\n if (!instance.getType().getTheClass().isObject()) {\n markers.add(position, \"String_Node_Str\", this.name.unqualified);\n }\n } else if (this.intrinsicOpcodes == null || !instance.isPrimitive()) {\n instance = IType.convertValue(instance, this.theClass.getType(), typeContext, markers, context);\n }\n } else if ((this.modifiers & Modifiers.STATIC) == 0) {\n if (context.isStatic()) {\n markers.add(position, \"String_Node_Str\", this.name);\n } else {\n markers.add(position, \"String_Node_Str\", this.name.unqualified);\n instance = new ThisValue(position, this.theClass.getType(), context, markers);\n }\n }\n if ((this.modifiers & Modifiers.VARARGS) != 0) {\n len = this.parameterCount - 1;\n arguments.checkVarargsValue(len, this.parameters[len], typeContext, markers, null);\n for (int i = 0; i < len; i++) {\n arguments.checkValue(i, this.parameters[i], typeContext, markers, context);\n }\n this.checkTypeVarsInferred(markers, position, typeContext);\n return instance;\n }\n for (int i = 0; i < this.parameterCount; i++) {\n arguments.checkValue(i, this.parameters[i], typeContext, markers, context);\n }\n this.checkTypeVarsInferred(markers, position, typeContext);\n return instance;\n}\n"
"private static Map<String, String> parse(String line, String body) {\n String[] fields = body.split(\"String_Node_Str\");\n Map<String, String> attributes = new LinkedHashMap<String, String>();\n for (String field : fields) {\n String[] nameValPair = field.split(\"String_Node_Str\");\n if (nameValPair.length != 2) {\n throw new RuntimeException(\"String_Node_Str\" + field + \"String_Node_Str\" + line);\n }\n attributes.put(nameValPair[0].trim(), nameValPair[1].trim());\n }\n return attributes;\n}\n"
"public void testResolveItem4MissItemFile() throws Exception {\n ImportBasicHandler basicHandler = new ImportBasicHandler();\n ImportItem ImportItem = new ImportItem(processPropPath1);\n ImportItem.setItemName(processPropPath1.lastSegment());\n Property property = mock(Property.class);\n itemRecord.setProperty(property);\n ProcessItem item = PropertiesFactory.eINSTANCE.createProcessItem();\n when(property.getItem()).thenReturn(item);\n ResourcesManager resManager = mock(ResourcesManager.class);\n Set<IPath> pathes = new HashSet<IPath>();\n IPath projPath = new Path(\"String_Node_Str\" + FileConstants.LOCAL_PROJECT_FILENAME);\n pathes.add(projPath);\n pathes.add(processPropPath1);\n when(resManager.getPaths()).thenReturn(pathes);\n basicHandler.resolveItem(resManager, itemRecord);\n Assert.assertFalse(itemRecord.getErrors().isEmpty());\n Assert.assertFalse(itemRecord.isValid());\n Assert.assertTrue(itemRecord.getErrors().size() == 1);\n}\n"
"private Node createElement(Node parent, XPathFragment fragment, NamespaceResolver namespaceResolver, Node value) {\n String elementName = fragment.getXPath();\n Document document = parent.getOwnerDocument();\n if ((document == null) && (parent.getNodeType() == Node.DOCUMENT_NODE)) {\n document = (Document) parent;\n }\n String nodeUri = value.getNamespaceURI();\n String nodeName = value.getLocalName();\n String fragUri = fragment.getNamespaceURI();\n String fragName = fragment.getLocalName();\n if ((nodeName != null) && nodeName.equals(fragName) && (((nodeUri != null) && nodeUri.equals(fragUri)) || ((nodeUri == null) && (fragUri == null)))) {\n if (document != value.getOwnerDocument()) {\n return document.importNode(value, true);\n }\n return value;\n } else {\n String namespace = resolveNamespacePrefix(fragment, namespaceResolver);\n Element clone = document.createElementNS(namespace, fragName);\n NamedNodeMap attributes = value.getAttributes();\n int attributesLength = attributes.getLength();\n for (int index = 0; index < attributesLength; index++) {\n Node attribute = document.importNode(attributes.item(index), true);\n clone.setAttributeNode((Attr) attribute);\n }\n NodeList elements = value.getChildNodes();\n int elementsLength = elements.getLength();\n for (int index = 0; index < elementsLength; index++) {\n Node attribute = document.importNode(elements.item(index), true);\n clone.appendChild(attribute);\n }\n return clone;\n }\n}\n"
"public Format[] getSupportedOutputFormats(Format input) {\n if (input == null)\n return supportedOutputFormats;\n }\n size = ((VideoFormat) supportedOutputFormats[0]).getSize();\n if (size != null) {\n return supportedOutputFormats;\n }\n size = ((VideoFormat) input).getSize();\n return new Format[] { new YUVFormat(size, -1, Format.byteArray, -1.0f, YUVFormat.YUV_420, -1, -1, 0, -1, -1), new YUVFormat(size, -1, Format.intArray, -1.0f, YUVFormat.YUV_420, -1, -1, 0, -1, -1), new YUVFormat(size, -1, Format.shortArray, -1.0f, YUVFormat.YUV_420, -1, -1, 0, -1, -1), new RGBFormat(size, -1, Format.byteArray, -1.0f, 32, -1, -1, -1), new RGBFormat(size, -1, Format.intArray, -1.0f, 32, -1, -1, -1), new RGBFormat(size, -1, Format.shortArray, -1.0f, 32, -1, -1, -1), new RGBFormat(size, -1, Format.byteArray, -1.0f, 24, -1, -1, -1), new RGBFormat(size, -1, Format.intArray, -1.0f, 24, -1, -1, -1), new RGBFormat(size, -1, Format.shortArray, -1.0f, 24, -1, -1, -1) };\n}\n"
"public static void main(String[] args) {\n Group group = new Group();\n group.close();\n group.commit();\n TableBase a = group.getTable(\"String_Node_Str\");\n long tableCount = group.getTableCount();\n String firstTableName = group.getTableName(0);\n if (group.hasTable(\"String_Node_Str\")) {\n }\n if (group.isValid()) {\n }\n ByteBuffer buffer = group.writeToByteBuffer();\n File file = new File(\"String_Node_Str\");\n try {\n group.writeToFile(file);\n } catch (IOException e) {\n throw new RuntimeException(\"String_Node_Str\", e);\n }\n try {\n group.writeToFile(\"String_Node_Str\");\n } catch (IOException e) {\n throw new RuntimeException(\"String_Node_Str\", e);\n }\n byte[] mem = group.writeToMem();\n}\n"
"public EasyJsonObject action(Sender sender, int command, EasyJsonObject requestObject) throws SQLException {\n String id = requestObject.getString(\"String_Node_Str\");\n String hashedId = SHA256.encrypt(id);\n String data = requestObject.getString(\"String_Node_Str\");\n File file = new File(\"String_Node_Str\".concat(hashedId));\n if (!file.exists()) {\n try {\n file.createNewFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n try {\n FileWriter fw = new FileWriter(file);\n fw.write(data);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return responseObject;\n}\n"
"public int executeCommand(CommandContext context) {\n if (context.getArgumentCount() == 0) {\n ServiceComponent[] sc = (ServiceComponent[]) registry.getAllComponents(ServiceComponent.class);\n for (int i = 0; i < sc.length; i++) {\n context.out.printf(\"String_Node_Str\", sc[i].getName(), sc[i].getStatus());\n }\n } else if (context.getArgumentCount() == 1) {\n String name = context.getArgument(0);\n ServiceComponent sc = getServiceForName(registry, name);\n if (sc != null) {\n context.out.printf(\"String_Node_Str\", sc.getName(), sc.getStatus());\n } else {\n context.out.println(\"String_Node_Str\" + name);\n }\n } else {\n String name = context.getArgument(0);\n String operation = context.getArgument(1);\n if (\"String_Node_Str\".equals(operation)) {\n ServiceComponent sc = getServiceForName(registry, name);\n if (sc != null) {\n sc.start();\n context.out.println(\"String_Node_Str\" + sc.getName() + \"String_Node_Str\");\n } else {\n context.out.println(\"String_Node_Str\" + name);\n }\n } else if (\"String_Node_Str\".equals(operation)) {\n ServiceComponent sc = getServiceForName(registry, name);\n if (sc != null) {\n sc.stop();\n context.out.println(\"String_Node_Str\" + sc.getName() + \"String_Node_Str\");\n } else {\n context.out.println(\"String_Node_Str\" + name);\n }\n }\n }\n return 0;\n}\n"
"private boolean getChildrenVisibility(final InMemoryTreeNode<T> node) {\n boolean visibility;\n final List<InMemoryTreeNode<T>> children = node.getChildren();\n if (children.isEmpty()) {\n visibility = visibleByDefault;\n }\n return visibility;\n}\n"
"public ODataResponse handleRequest(final ODataRequest suppliedRequest) throws ODataException {\n ODataRequest request;\n String mimeHeaderContentId = suppliedRequest.getRequestHeaderValue(BatchConstants.MIME_HEADER_CONTENT_ID.toLowerCase(Locale.ENGLISH));\n String requestHeaderContentId = suppliedRequest.getRequestHeaderValue(BatchConstants.REQUEST_HEADER_CONTENT_ID.toLowerCase(Locale.ENGLISH));\n List<PathSegment> odataSegments = suppliedRequest.getPathInfo().getODataSegments();\n if (!odataSegments.isEmpty() && odataSegments.get(0).getPath().matches(\"String_Node_Str\")) {\n request = modifyRequest(suppliedRequest, odataSegments);\n } else {\n request = suppliedRequest;\n }\n ODataRequestHandler handler = createHandler(request);\n ODataResponse response = handler.handle(request);\n if (response.getStatus().getStatusCode() < BAD_REQUEST) {\n response = setContentIdHeader(response, mimeHeaderContentId, requestHeaderContentId);\n }\n if (request.getMethod().equals(ODataHttpMethod.POST)) {\n String baseUri = getBaseUri(request);\n if (mimeHeaderContentId != null) {\n fillContentIdMap(response, mimeHeaderContentId, baseUri);\n } else if (requestHeaderContentId != null) {\n fillContentIdMap(response, requestHeaderContentId, baseUri);\n }\n }\n return response;\n}\n"
"public void setIcon(String iconStyle) {\n if (currentStyle != null) {\n icon.removeStyleName(currentStyle);\n }\n currentStyle = iconStyle;\n icon.addStyleName(iconStyle);\n}\n"