content
stringlengths
40
137k
"protected void clickOnTodayAssignment(ActionEvent todayAssignmentAe, Proxy proxy, GUIHome guiHome) {\n if (!(todayAssignmentAe.getActionCommand().equals(\"String_Node_Str\"))) {\n JButton pressedButton = (JButton) todayAssignmentAe.getSource();\n StringTokenizer cmdToken = new StringTokenizer(buttonTo...
"protected void writeFile(final String name, final byte[] content) throws IOException {\n final File file = new File(db.getDirectory(), name);\n final LockFile lck = new LockFile(file, db.getFS());\n if (!lck.lock())\n throw new ObjectWritingException(MessageFormat.format(CLIText.get().cantWrite, file))...
"private ImmutablePair<ArtifactDescriptor, PluginClass> getPluginEntry(NamespaceId namespace, Id.Artifact parentArtifactId, Map.Entry<byte[], byte[]> column) {\n ArtifactColumn artifactColumn = ArtifactColumn.parse(column.getKey());\n Id.Namespace artifactNamespace = artifactColumn.artifactId.getNamespace();\n ...
"private String queueCommand(BaseCmd cmdObj, Map<String, String> params) throws Exception {\n UserContext ctx = UserContext.current();\n Long callerUserId = ctx.getCallerUserId();\n Account caller = ctx.getCaller();\n if (cmdObj instanceof BaseAsyncCmd) {\n Long objectId = null;\n String objec...
"public JobOutput getJobDetails(Loader loader, String jobID) throws IOException {\n YamlLoader yamlLoader = (YamlLoader) loader;\n String appHome = yamlLoader.getjHome() + File.separator;\n YamlConfig yamlConfig = (YamlConfig) yamlLoader.getYamlConfiguration();\n String agentHome = RemotingUtil.getAgentHome...
"public static void handleGroupInstanceTerminatedEvent(String appId, String groupId, String instanceId) {\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\" + groupId + \"String_Node_Str\" + appId + \"String_Node_Str\" + instanceId);\n }\n Applications applications = ApplicationHolder.getAppl...
"public void clicked(InputEvent event, float x, float y) {\n ui.getWorld().resume();\n ui.getWorld().setCutMode(false);\n if (testScene.isChecked())\n ui.getWorld().setTestScene(scenes.getSelected());\n ui.getWorld().setCurrentScene(scenes.getSelected(), initScene.isChecked());\n ui.setCurrentScre...
"private String getAvailabilityString(ArrayList<ArrayList<String>> timeslots) {\n if (timeslots == null || timeslots.size() == 0) {\n return null;\n }\n for (ArrayList<String> timeslotTimes : timeslots) {\n if (timeslotTimes.size() != 2) {\n Log.e(TAG, \"String_Node_Str\");\n ...
"public void addChild(DLNAResource child, boolean isNew) {\n if (child == null) {\n LOGGER.error(\"String_Node_Str\", getName());\n LOGGER.debug(\"String_Node_Str\", new NullPointerException(\"String_Node_Str\"));\n return;\n }\n child.parent = this;\n child.masterParent = masterParent;...
"public void render(Context context, Result result) {\n String finalName = context.getRequestPath().replaceFirst(PUBLIC_PREFIX, \"String_Node_Str\");\n URL url = null;\n if (ninjaProperties.isDev()) {\n File possibleFileInSrc = new File(srcDir + File.separator + ASSETS_PREFIX + finalName);\n if (...
"private void bluetoothStateChangeHandler(int prevState, int newState) {\n if (prevState != newState) {\n if (newState == BluetoothAdapter.STATE_ON || newState == BluetoothAdapter.STATE_OFF) {\n boolean isUp = (newState == BluetoothAdapter.STATE_ON);\n sendBluetoothStateCallback(isUp);\n...
"public Map<String, Object> readProperties(Element element, String... propertyKeys) {\n Scanner s = getScanner();\n s.setRange(Range.exact((String) element.getId()));\n if (propertyKeys != null) {\n s.fetchColumnFamily(new Text(Constants.LABEL));\n for (String key : propertyKeys) {\n s...
"public View getView(int position, View convertView, ViewGroup parent) {\n int itemType = this.getItemViewType(position);\n switch(itemType) {\n case WAKELOCK_TYPE:\n WakelockStats wakelock = (WakelockStats) getItem(position);\n WakelockViewHolder viewHolder;\n if (convertV...
"public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object objectValue, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) {\n objectValue = xmlCompositeObjectMapping.convertObjectValueToDataValue(objectValue, sessi...
"public void run() {\n Island island = plugin.getGrid().getIsland(targetPlayer);\n final IslandPreLevelEvent event = new IslandPreLevelEvent(targetPlayer, island, score);\n event.setLongPointsToNextLevel(pointsToNextLevel);\n plugin.getServer().getPluginManager().callEvent(event);\n long oldLevel = plugi...
"public Path toPath(float width, float height, int numSample) {\n final float[] pts = GestureUtilities.temporalSampling(this, numSample);\n final RectF rect = boundingBox;\n GestureUtilities.translate(pts, -rect.left, -rect.top);\n float sx = width / rect.width();\n float sy = height / rect.height();\n ...
"private Section getFreeSection(int requiredLength) {\n int start = 0;\n int length = 0;\n int closestStart = 0;\n int closestLength = Integer.MAX_VALUE;\n int i;\n for (i = 2; i < this.filledSectorArray.size(); i++) {\n if (this.filledSectorArray.get(i)) {\n if ((length >= requiredL...
"public int getCapacity() {\n return _queueMaxCapacity;\n}\n"
"public boolean checkTrigger(GameEvent event, Game game) {\n if (event.getType() == EventType.SPELL_CAST && event.getZone() == Zone.LIBRARY) {\n Spell spell = game.getStack().getSpell(event.getTargetId());\n if (spell != null && spell.getControllerId().equals(super.getControllerId()) && (spell.getCardT...
"public PacketTile getDescPacket() {\n return new PacketTile(this, getSaveData());\n}\n"
"public boolean doRemove(XtentisPort port, Object wsObj) throws RemoteException {\n if (wsObj != null) {\n WSCustomForm wsForm = (WSCustomForm) wsObj;\n port.deleteCustomForm(new WSDeleteCustomForm(new WSCustomFormPK(wsForm.getDatamodel(), wsForm.getEntity(), cmd.getObjName())));\n return true;\...
"public Bitmap apply(Bitmap bitmap, float scaleFactor, boolean highQuality) {\n Canvas canvas = new Canvas(bitmap);\n applyHelper(canvas, bitmap.getWidth(), bitmap.getHeight());\n return bitmap;\n}\n"
"private void leavingServletContainer(Request req, Response res) {\n if (interceptors == null)\n return;\n for (ServletContainerInterceptor interceptor : interceptors) {\n try {\n interceptor.postInvoke(req, res);\n } catch (Throwable th) {\n log.log(Level.SEVERE, INTERN...
"public int read(int address, boolean word, long cycles) {\n PortReg reg = portMap[address - offset];\n if (word && reg == PortReg.IV_L) {\n return (readPort(PortReg.IV_H, cycles) << 8) | readPort(reg, cycles);\n } else if (word && ioPair != null) {\n return read_port(reg, cycles) | (ioPair.read_...
"public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n if (obj == null)\n return false;\n if (getClass() != obj.getClass())\n return false;\n Relation other = (Relation) obj;\n if (id == null) {\n if (other.id != null)\n return false;\n } else...
"public Object invokeTriggerFunction(List<WindowBufferItem> events) {\n return triggerFunction.trigger(events);\n}\n"
"public int getInt(String property) {\n return ((JsonObject) current).has(property) ? ((JsonObject) current).get(property).getAsInt() : 0;\n}\n"
"public IComplexNDArray get(NDArrayIndex... indexes) {\n ensureNotCleanedUp();\n indexes = Indices.adjustIndices(shape(), indexes);\n int[] offsets = Indices.offsets(indexes);\n int[] shape = Indices.shape(shape(), indexes);\n if (!Indices.isContiguous(indexes)) {\n IComplexNDArray ret = Nd4j.crea...
"public void run() {\n try {\n startCassandraProcess();\n startupLatch.countDown();\n } catch (InterruptedException e) {\n throw new IllegalStateException(e);\n }\n}\n"
"private static AbstractAlgorithm createPartialNone(final SolutionSpace solutionSpace, final NodeChecker checker, final FLASHStrategy strategy) {\n PhaseAnonymityProperty binaryAnonymityProperty = PhaseAnonymityProperty.K_ANONYMITY;\n NodeAction binaryTriggerSkip = new NodeAction() {\n public boolean appli...
"public static void addApplication(ApplicationBean appDefinition, ConfigurationContext ctxt, String userName, String tenantDomain) throws RestAPIException {\n try {\n if (AutoscalerServiceClient.getInstance().getApplication(appDefinition.getApplicationId()) != null) {\n String msg = \"String_Node_S...
"public void run() {\n if ((pos2.getX() - pos1.getX()) < 48) {\n MainUtil.setSimpleCuboid(world, new Location(world, pos1.getX(), 0, pos1.getZ()), new Location(world, pos2.getX() + 1, 1, pos2.getZ() + 1), new PlotBlock((short) 7, (byte) 0));\n TaskManager.runTaskLater(new Runnable() {\n publ...
"public void initialize(AbstractSession session) throws DescriptorException {\n if (getHistoryPolicy() != null) {\n session.getProject().setHasGenericHistorySupport(true);\n }\n if (isIsolated()) {\n session.getProject().setHasIsolatedClasses(true);\n }\n if (!shouldIsolateObjectsInUnitOfWo...
"private void addKeys() throws Exception {\n for (int i = 0; i <= 30; i++) {\n int flags = 1 << i;\n String key = new String();\n key = duplicateStr(String.format(\"String_Node_Str\", i + 1), 32);\n addKey(flags, i, key);\n }\n addKey(0x200, 0x1000, duplicateStr(\"String_Node_Str\",...
"void animateScroll(float curScroll, float newScroll, final Runnable postRunnable) {\n if (mScrollAnimator != null && mScrollAnimator.isRunning()) {\n setStackScroll(mFinalAnimatedScroll);\n mScroller.startScroll(0, progressToScrollRange(mFinalAnimatedScroll), 0, 0, 0);\n }\n stopScroller();\n ...
"public org.hl7.fhir.dstu2.model.Immunization convertImmunization(org.hl7.fhir.dstu3.model.Immunization src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Immunization tgt = new org.hl7.fhir.dstu2.model.Immunization();\n copyDomainResource(src, tgt)...
"private ApplicationWithPrograms deployApp(NamespaceId namespaceId, String appName, String configStr, ProgramTerminator programTerminator, ArtifactDetail artifactDetail) throws Exception {\n authorizationEnforcer.enforce(namespaceId, authenticationContext.getPrincipal(), Action.WRITE);\n ApplicationClass appClass...
"protected void done() {\n if (epubcheckResult == false) {\n gui.setBorderStateError();\n gui.addLogMessageToTextLog(\"String_Node_Str\" + \"String_Node_Str\");\n if (report.getErrorCount() > 0 && report.getWarningCount() > 0) {\n resultMessage = String.format(__(\"String_Node_Str\"),...
"private void sendP2PMessage(Object message, final ResponseListener<Object> listener) {\n JSONObject _payload = new JSONObject();\n try {\n _payload.put(\"String_Node_Str\", \"String_Node_Str\");\n _payload.put(\"String_Node_Str\", getFullAppId());\n _payload.put(\"String_Node_Str\", message)...
"void convert(Attributes attributes, Stack<PermissionContainer> stack) throws SAXException {\n PermissionContainer container = stack.peek();\n String[] parts = attributes.getValue(\"String_Node_Str\").split(\"String_Node_Str\");\n String[] coords = parts[0].split(\"String_Node_Str\");\n Coordinate start;\n ...
"public static AsyncResponseHandler bindAsyncResponse(AsyncResponse asyncResponse, ListenableFuture<?> futureResponse, Executor httpResponseExecutor) {\n FutureCallback<Object> callback = toFutureCallback(asyncResponse);\n Futures.addCallback(futureResponse, callback, httpResponseExecutor);\n return new AsyncR...
"public void test() {\n org.eclipse.persistence.sessions.DatabaseSession testSession = null;\n try {\n Project project = new ConstructorProject();\n project.setLogin(getSession().getLogin());\n org.eclipse.persistence.sessions.DatabaseSession testSession = project.createDatabaseSession();\n ...
"public void onBeginDrag(View v) {\n TaskView tv = (TaskView) v;\n tv.setClipViewInStack(false);\n tv.setTouchEnabled(false);\n final ViewParent parent = mSv.getParent();\n if (parent != null) {\n parent.requestDisallowInterceptTouchEvent(true);\n }\n mSv.addIgnoreTask(tv.getTask());\n mC...
"public void RelayRequestMsg() {\n ConnectMsg.Request req = new ConnectMsg.Request(gSrc, gSrc, utility, true, age);\n RelayRequestMsg.ClientToServer msg = new RelayRequestMsg.ClientToServer(gSrc, gDest, remoteClientId, req);\n msg.setTimeoutId(UUID.nextUUID());\n try {\n ChannelBuffer buffer = msg.to...
"void scroll(Object contentViewCore, int yVel, int y) {\n try {\n float density = mActivity.getResources().getDisplayMetrics().density + 1;\n Utils.callMethod(contentViewCore, \"String_Node_Str\", SystemClock.uptimeMillis(), 0, (int) (yVel * density));\n return;\n } catch (Throwable t) {\n ...
"protected void uploadContent(HttpServletRequest req, HttpServletResponse resp) throws IOException {\n String sessionId = extractSessionId(req);\n RepositoryHttpEndpointImpl elem = repoHttpManager.getHttpRepoItemElem(sessionId);\n if (elem == null) {\n resp.setStatus(HttpServletResponse.SC_NOT_FOUND);\n...
"private void getSuggestedWords(final int sessionId, final int sequenceNumber, final OnGetSuggestedWordsCallback callback) {\n final Keyboard keyboard = mKeyboardSwitcher.getKeyboard();\n final Suggest suggest = mSuggest;\n if (keyboard == null || suggest == null) {\n callback.onGetSuggestedWords(Sugges...
"public boolean tryRemove(ChunkLocation location) {\n if (location.x() < 7 && location.z() < 7) {\n return true;\n }\n CRefCounter chunk = get(location);\n if (chunk == null) {\n return false;\n }\n if (!chunk.hasStrongRefs()) {\n TridentChunk c = chunk.unwrap();\n if (chun...
"public void dispose() {\n super.dispose();\n chartModel = null;\n if (previewPainter != null) {\n previewPainter.dispose();\n }\n previewPainter = null;\n sSubType = null;\n sType = null;\n sDimension = null;\n vSubTypeNames = null;\n orientation = null;\n}\n"
"public static void main(String[] args) {\n long result = 0;\n for (int i = 1; i <= 10; i++) {\n result += firstIncorrectTerm(i);\n }\n System.out.println(result);\n}\n"
"public void record(File file) {\n count += 1;\n size += file.length();\n lastModified = max(lastModified, file.lastModified());\n hashCodeSum += file.hashCode();\n log.trace(\"String_Node_Str\", file, this);\n}\n"
"public void onListItemClick(ListView listView, View view, int position, long id) {\n super.onListItemClick(listView, view, position, id);\n mCallbacks.onItemSelected(searchresult.getResults().get(position).getNr(), searchresult.getResults().get(position).getId(), searchresult.getResults().get(position).getPage()...
"public void start() {\n super.start();\n sum = 0D;\n}\n"
"private void _pointSearch(RStarNode start, SpatialPoint point) {\n HyperRectangle searchRegion = new HyperRectangle(point.getCords());\n HyperRectangle intersection = start.getMBR().getIntersection(searchRegion);\n if (intersection != null) {\n if (start.isLeaf()) {\n float[] searchPoints = ...
"public boolean hasNext() {\n if (current == null || !current.hasNext()) {\n if (page > 0) {\n List<T> values = complete(submit(req(\"String_Node_Str\", url, page++), handler));\n if (values == null || values.isEmpty()) {\n page = -1;\n }\n current = ...
"public ObjectProxy make(IocMaking ing, IocObject iobj) {\n Mirror<?> mirror = ing.getMirrors().getMirror(iobj.getType(), ing.getObjectName());\n ObjectProxy op = new ObjectProxy();\n if (iobj.isSingleton() && null != ing.getObjectName())\n ing.getContext().save(iobj.getScope(), ing.getObjectName(), op)...
"public void intervalAdded(ListDataEvent e) {\n final Product[] propertySourceProducts = binningFormModel.getPropertyValue(BinningFormModel.PROPERTY_KEY_SOURCE_PRODUCTS);\n final Product[] newSourceProducts = sourceProductList.getSourceProducts();\n for (Product newSourceProduct : newSourceProducts) {\n ...
"public Fraction getFractionWithMaxDigits(int maxDigitsForDenominator) {\n int lastIndex = integerList.size();\n Fraction previousFraction = null;\n for (int i = 0; i < lastIndex; i++) {\n Fraction fraction = getFraction(i, new Fraction((integerList.get(i)).intValue(), 1));\n if (fraction.getDeno...
"public void handleInit() {\n size = 10;\n Integer curMaxId = worldBossDao.selectMaxId();\n if (curMaxId == null) {\n curMaxId = 1;\n } else {\n byte[] data = worldBossDao.selectWorldBossRecords(curMaxId);\n if (data != null) {\n worldBossData = JsonUtils.string2Object(new St...
"private void onContentLoaded(List<Content> contents) {\n if (getActivity() != null) {\n if (contents != null && contents.size() > 0) {\n Collections.sort(contents);\n displayContent(contents);\n } else if (getAdapter() == null || getAdapter().getItemCount() == 0) {\n s...
"private static FootPrint getProxyCameraFootPrint(Footprint footprint) {\n if (footprint == null)\n return null;\n return new FootPrint(footprint.getGSD(), MathUtils.coord2DToLatLong(footprint.getVertexInGlobalFrame()));\n}\n"
"public void write(UriInfo uriInfo, Writer w, EntitiesResponse response) {\n String baseUri = uriInfo.getBaseUri().toString();\n EdmEntitySet ees = response.getEntitySet();\n String entitySetName = ees.getName();\n DateTime utc = new DateTime().withZone(DateTimeZone.UTC);\n String updated = InternalUtil....
"public void perform(final GraphRewrite event, final EvaluationContext context, final ArchiveModel payload) {\n if (payload.getUnzippedDirectory() != null) {\n Decompiler decompiler = new ProcyonDecompiler(new ProcyonConfiguration().setIncludeNested(false));\n String archivePath = ((FileModel) payload)...
"public String getPerMatch() {\n Double match = Double.parseDouble(getNumMatch());\n return TextFormatFactory.createStandardPercent(match / getSum());\n}\n"
"public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n final Activity callingActivity = getActivity();\n LayoutInflater inflater = callingActivity.getLayoutInflater();\n final View view = inflater.inflate(R.layout.fragment_pwgen, ...
"private Library resolveLibrary(String identifier) {\n return libraries.get(identifier);\n}\n"
"public static void safeClose(ResultSet rs) {\n if (null != rs)\n try {\n if (!rs.isClosed())\n rs.close();\n } catch (Throwable e) {\n }\n}\n"
"public void testServerSideClose() throws Exception {\n MiniAcceptor acceptor = new MiniAcceptor(SERVER_PORT);\n ManagedConnection out = new ManagedConnection(\"String_Node_Str\", SERVER_PORT);\n out.initialize();\n out.buildAndStartQueues();\n Connection in = acceptor.accept();\n assertTrue(\"String_...
"public void handleCoreEvent(CoreEvent event) {\n final PageEditorInput input = (PageEditorInput) getEditorInput();\n XWikiEclipsePage page = input.getPage();\n String targetPageId = null;\n DataManager dataManager = null;\n if (event.getSource() instanceof DataManager) {\n dataManager = (DataMana...
"protected void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n String valueStr = value.toString();\n if (valueStr == null || valueStr.length() == 0 || valueStr.trim().length() == 0) {\n LOG.warn(\"String_Node_Str\");\n return;\n }\n double[] dVa...
"private boolean startsWith(char[] buffer, char[] phrase) {\n if (phrase.length > buffer.length)\n return false;\n for (int i = 0; i < phrase.length; i++) {\n if (buffer[i] != phrase[i])\n return false;\n }\n return true;\n}\n"
"public void xPathNode(XPathNode xPathNode, NullCapableValue nullCapableValue) {\n if (!(isNullRepresentedByXsiNil() || marshalNullRepresentation == XMLNullRepresentationType.XSI_NIL)) {\n if (xPathNode.getXPathFragment().isAttribute()) {\n return;\n }\n }\n XPathNode parentNode = xPat...
"public void configField(SchemaField iField) {\n if (checkFeature(iField, ValidationFieldFeatures.ENABLED) || checkFeature(iField, ValidationFieldFeatures.REQUIRED) || checkFeature(iField, ValidationFieldFeatures.MAX) || checkFeature(iField, ValidationFieldFeatures.MIN) || checkFeature(iField, ValidationFieldFeature...
"private boolean setOpenGroup0(int groupIndex, boolean open) {\n if (_opens == null) {\n if (open)\n return true;\n int length = getGroupCount();\n _opens = new boolean[length];\n for (int i = 0; i < length; i++) _opens[i] = true;\n }\n if (_opens[groupIndex] != open) {\n...
"protected boolean isSelectionValid(SelectionChangedEvent event) {\n boolean highlightOKButton = true;\n IStructuredSelection selection = (IStructuredSelection) event.getSelection();\n if (selection == null || selection.size() != 1) {\n highlightOKButton = false;\n } else {\n RepositoryNode no...
"public Object getValue(int row, int col) {\n return data.elementAt(row)[col];\n}\n"
"public void onBlockHarvested(World world, int x, int y, int z, int meta, EntityPlayer player) {\n if (meta % 4 == 1) {\n if (world.difficultySetting.getDifficultyId() > 2)\n world.createExplosion(null, x, y, z, 1.75f, false);\n else\n world.createExplosion(null, x, y, z, 2f, fals...
"private void generateEnvironment() {\n List<BGArea> tmpAreas = areaManager.loadAreas(psf.getAreaKeys());\n List<BusinessGroup> groups = businessGroupService.loadBusinessGroups(psf.getGroupKeys());\n Set<BGArea> areas = new HashSet<BGArea>();\n areas.addAll(tmpAreas);\n List<BGArea> areaByGroups = areaMa...
"public void updateEntity() {\n if (++ticksSinceLastAtack > 40) {\n Entity e = MobHelper.getNearestTargetWithinAABB(worldObj, xCoord + 0.5, yCoord - 3.0, zCoord + 0.5, 5.0F, GenericUtils.selectorLiving);\n if (e != null) {\n ticksSinceLastAtack = 0;\n e.attackEntityFrom(DamageSour...
"public Resource findResource(final String workspaceUri) {\n if (!WorkspaceResourceFinderUtil.isValidWorkspaceUri(workspaceUri))\n return null;\n final String normalizedUriString = WorkspaceResourceFinderUtil.normalizeUriString(workspaceUri);\n File modelFile = new File(normalizedUriString);\n if (mo...
"public void keyPressed(KeyEvent e) {\n if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {\n e.consume();\n _frame.cancelFullScreen();\n }\n}\n"
"public static int unsignedArrayCompare(char[] a, int aoff, int alen, char[] b, int boff, int blen) {\n int compareLen = Math.min(alen, blen);\n for (int i = 0; i < compareLen; ++i) {\n int curA = a[aoff + i] & 0xFFFF;\n int curB = b[boff + i] & 0xFFFF;\n if (curA != curB)\n return...
"public void renderGraphLabels(Graph graph) {\n textFont(uniEdgeMiniLabelFont);\n for (UnidirectionalEdge e : graph.getUnidirectionalEdges()) {\n if (!e.isCurved()) {\n if (e.showLabel() && e.hasLabel() && e.getLabel().getFont() != null) {\n renderEdgeLabel(e.getLabel());\n ...
"public DbMaintainer createDbMaintainer() {\n ScriptRunner scriptRunner = createScriptRunner();\n ScriptSource scriptSource = createScriptSource();\n ExecutedScriptInfoSource executedScriptInfoSource = createExecutedScriptInfoSource();\n boolean cleanDbEnabled = PropertyUtils.getBoolean(PROPERTY_CLEANDB_ENA...
"public void addCommonsComponents() {\n Label findLabel = new Label(composite, SWT.NONE);\n findLabel.setText(\"String_Node_Str\");\n searchText = new Text(composite, SWT.BORDER);\n GridData gridData = new GridData();\n gridData.widthHint = 150;\n searchText.setBackground(EntryState.NONE.getColor());\...
"public void run() {\n PlayerCombatClass CCQuitter = plugin.getPCC(name);\n CCQuitter.setScheduledtask(false);\n if (!(plugin.isPlrOnline(CCQuitter.getPlayerName()))) {\n plugin.logit(CCQuitter.getPlayerName() + \"String_Node_Str\");\n if (CCQuitter.isTagged()) {\n CCQuitter.setPvplogg...
"public void run() {\n try {\n synchronized (lock) {\n ChartView view = (ChartView) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(VIEW_ID, \"String_Node_Str\" + (SEC_ID++), IWorkbenchPage.VIEW_ACTIVATE);\n view.setChart(chart);\n }\n } catch (Par...
"private void prepareSortedStacks() throws DataException, IOException {\n allSortedFactRows = new ArrayList();\n int levelSize = 0;\n int measureSize = 0;\n while (true) {\n int maxLevelCount = 0;\n int aggregationIndex = -1;\n int[] levelSortType = null;\n for (int i = 0; i < ag...
"public void testActiveStatus() throws Exception {\n serviceClient.checkAvailability(service);\n}\n"
"private List<Map<String, Double>> calcStkDailyMACD(List<Double> stockPrice, int paramSHORT, int paramLONG, int paramM) {\n List<Map<String, Double>> result = new ArrayList<Map<String, Double>>();\n double shortEMA = getMa(stockPrice, paramLONG - paramSHORT, paramSHORT);\n double longEMA = getMa(stockPrice, 0,...
"private void storeState(long hash, OpTime opTime) throws OplogManagerPersistException {\n Preconditions.checkState(isRunning(), \"String_Node_Str\");\n Status<?> result = retrier.retry(() -> {\n try (WriteMongodTransaction transaction = connection.openWriteTransaction()) {\n Status<Long> delete...
"public static void logInfo(String msg, int level) {\n if (logLevel == -42)\n if (CreeperConfig.logLevel != -42)\n logLevel = CreeperConfig.logLevel;\n if (level <= logLevel) {\n log.info(\"String_Node_Str\" + msg);\n record(\"String_Node_Str\" + msg);\n }\n}\n"
"public static ResourceLocation file(File root) {\n if (!root.exists())\n return new ErrorResourceLocation(root);\n try {\n return new FileSystemResourceLocation(root.getAbsoluteFile().getCanonicalFile());\n } catch (Exception e) {\n return new ErrorResourceLocation(root);\n }\n}\n"
"public void onError(Throwable e) {\n e.printStackTrace();\n AlertDialog dialogTip = new AlertDialog.Builder(getContext()).setMessage(R.string.error_mnemonics).setNegativeButton(R.string.cancel, (dialog, which) -> dialog.cancel()).create();\n dialogTip.show();\n customProgressDialog.cancel();\n etMnemoni...
"public void queryStatus() throws CloudRuntimeException {\n String status = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" +...
"public void testOnClickClose() throws Exception {\n OnKeyboardActionListener keyboardActionListener = Mockito.mock(OnKeyboardActionListener.class);\n FrameKeyboardViewClickListener listener = new FrameKeyboardViewClickListener(keyboardActionListener);\n Mockito.verifyZeroInteractions(keyboardActionListener);\...
"public void fillContextMenu(IMenuManager menu) {\n Object obj = ((TreeSelection) this.getContext().getSelection()).getFirstElement();\n if (obj instanceof IFolder) {\n IFolder folder = (IFolder) obj;\n if (ResourceService.isSubFolder(ResourceManager.getAnalysisFolder(), folder)) {\n Crea...
"public int docID() {\n return print(DOC_ID, primeDoc);\n}\n"
"private Class generateArrayValue(JavaClass arrayClass, JavaClass componentClass, JavaClass nestedClass, TypeMappingInfo typeMappingInfo) {\n String packageName;\n String qualifiedClassName;\n if (componentClass.isArray()) {\n packageName = componentClass.getPackageName();\n qualifiedClassName = ...
"private static boolean groupDoesNotExist(ServiceConfiguration configuration, AWSAutoScalingAutoScalingGroupResourceAction action) throws Exception {\n if (!Boolean.TRUE.equals(action.info.getCreatedEnoughToDelete()))\n return true;\n DescribeAutoScalingGroupsType describeAutoScalingGroupsType = MessageHel...