content
stringlengths
40
137k
"private List<String> getProjectDependentClasspath(IProject project, boolean needExported) {\n if (!hasJavaNature(project)) {\n return Collections.emptyList();\n }\n List<String> retValue = new ArrayList<String>();\n IJavaProject fCurrJProject = JavaCore.create(project);\n IClasspathEntry[] classp...
"private void addGroupFileViewer(final Composite parent, final int width, int height) {\n tabFolder = new CTabFolder(parent, SWT.BORDER);\n tabFolder.setLayoutData(new GridData(GridData.FILL_BOTH));\n GridData tabFolderLayoutData = (GridData) tabFolder.getLayoutData();\n tabFolderLayoutData.heightHint = hei...
"public ClassDefinitionBuilder addFloatField(String fieldName) {\n check();\n fieldDefinitions.add(new FieldDefinitionImpl(index++, fieldName, FieldType.FLOAT));\n return this;\n}\n"
"protected Void visitLongLiteral(LongLiteral node, SubscriptContext context) {\n validateNestedArrayAccess(context);\n long value = node.getValue();\n if (value < 1 || value > MAX_VALUE) {\n throw new UnsupportedOperationException(String.format(Locale.ENGLISH, \"String_Node_Str\", MAX_VALUE));\n }\n ...
"protected void resetProjectOperationSelection() {\n selectExistingProject.setSelection(true);\n refreshProjectListAreaEnable(selectExistingProject.isEnabled());\n importDemoProject.setSelection(false);\n executeImportDemoProject.setVisible(false);\n importLocalProject.setSelection(false);\n executeIm...
"public void run() {\n ArraySet<Integer> persistentTaskIds = new ArraySet<Integer>();\n while (true) {\n final boolean probablyDone;\n synchronized (TaskPersister.this) {\n probablyDone = mWriteQueue.isEmpty();\n }\n if (probablyDone) {\n if (DEBUG)\n ...
"public FeatureVector getExpectedFeatureCounts(FgModel model, double[] params) {\n model.updateModelFromDoubles(params);\n FgModel feats = model.getDenseCopy();\n feats.zero();\n for (int i = 0; i < data.size(); i++) {\n LFgExample ex = data.get(i);\n FactorGraph fgLatPred = ex.getFgLatPred();...
"public boolean onKeyDown(int keyCode, KeyEvent event) {\n return mScrollView != null && mScrollView.executeKeyEvent(event);\n}\n"
"private static Runfiles collectRunfiles(RuleContext context, CcLinkingOutputs linkingOutputs, CcLibraryHelper.Info info, LinkStaticness linkStaticness, NestedSet<Artifact> filesToBuild, Iterable<Artifact> fakeLinkerInputs, boolean fake, ImmutableSet<CppSource> cAndCppSources) {\n Runfiles.Builder builder = new Runf...
"private static void addChildFilesToList(File directory, List<File> list, String fileExtension) {\n File[] filesInThisDir = directory.listFiles();\n if (filesInThisDir == null)\n return;\n for (File f : filesInThisDir) {\n if (f.isDirectory())\n addChildFilesToList(f, list, fileExtensi...
"public boolean onOptionsItemSelected(MenuItem item) {\n boolean result = true;\n switch(item.getItemId()) {\n case R.id.action_itinerary:\n computeItinerary();\n result = false;\n break;\n case R.id.action_route:\n computeOptimizedItinerary();\n ...
"public Status process() throws EventDeliveryException {\n Status status = Status.BACKOFF;\n Transaction transaction = this.getChannel().getTransaction();\n try {\n transaction.begin();\n List<Event> eventList = this.takeEventsFromChannel(this.getChannel(), this.batchSize);\n status = Stat...
"private Intent encryptAndSignImpl(Intent data, InputStream inputStream, OutputStream outputStream, boolean sign) {\n try {\n boolean asciiArmor = data.getBooleanExtra(OpenPgpApi.EXTRA_REQUEST_ASCII_ARMOR, true);\n String originalFilename = data.getStringExtra(OpenPgpApi.EXTRA_ORIGINAL_FILENAME);\n ...
"public static WidgetConfiguration loadConfiguration(Context context, int appWidgetId) {\n SharedPreferences widgetPrefs = context.getSharedPreferences(Constants.WIDGET_PREFS, 0);\n WidgetConfiguration widgetConfiguration = new WidgetConfiguration();\n widgetConfiguration.setShowUserComments(widgetPrefs.getBoo...
"private boolean connectedCodeBase() {\n if (delegate != null)\n return true;\n if (conn.getCodeBaseIOR() == null) {\n if (conn.getBroker().transportDebugFlag)\n conn.dprint(\"String_Node_Str\" + conn);\n return false;\n }\n synchronized (iorMapLock) {\n if (delegate !...
"public void testTouchIsDisabledOnGestureUntilAllPointersAreUp() {\n final int primaryKey1 = 'a';\n final int keyAIndex = findKeyIndex(primaryKey1);\n final int keyFIndex = findKeyIndex('f');\n final int keyJIndex = findKeyIndex('j');\n AnyKeyboard.AnyKey key1 = (AnyKeyboard.AnyKey) mEnglishKeyboard.getK...
"public Vec3d getRenderPosition(BlockPos pos, long tick, float partialTicks) {\n long diff = tickFinished - tickStarted;\n long afterTick = tick - tickStarted;\n float interp = (afterTick + partialTicks) / diff;\n interp = Math.max(0, Math.min(1, interp));\n Vec3d center = new Vec3d(pos).addVector(0.5, 0...
"public void replaceSciptPack(ScriptPack pack, String as) throws AVM2ParseException, CompilationException, IOException, InterruptedException {\n String scriptName = pack.getPathScriptName() + \"String_Node_Str\";\n int oldIndex = pack.scriptIndex;\n int newIndex = script_info.size();\n String documentClass ...
"public String toString() {\n double[] aux = this.instanceData.toDoubleArray();\n StringBuilder str = new StringBuilder();\n for (int attIndex = 0; attIndex < this.numAttributes(); attIndex++) {\n if (this.attribute(attIndex).isNominal()) {\n int valueIndex = (int) this.value(attIndex);\n ...
"public void onPlayerQuit(PlayerQuitEvent event) {\n Player player = event.getPlayer();\n Messages.sendMessage(Message.left_server, player, null);\n if (event.getPlayer().getHealth() == 0 || event.getPlayer().getHealth() == -1) {\n player.setHealth(20);\n player.teleport(player.getWorld().getSpaw...
"public static String getHandleInterfaceName(Role self, EndpointState s) {\n return \"String_Node_Str\" + self + \"String_Node_Str\" + s.getTakeable().stream().sorted(IOACTION_COMPARATOR).map((a) -> ActionInterfaceGenerator.getActionString(a)).collect(Collectors.joining(\"String_Node_Str\"));\n}\n"
"public void modelCheck() throws Exception {\n report(\"String_Node_Str\");\n if (this.checkLiveness) {\n report(\"String_Node_Str\");\n LiveCheck.init(this.tool, this.actions, this.metadir);\n report(\"String_Node_Str\");\n }\n boolean recovered = this.recover();\n if (!recovered) {...
"public void abort(OperationContext context, Transaction transaction) throws OperationException, TException {\n MetricsHelper helper = newHelper(\"String_Node_Str\");\n if (Log.isTraceEnabled())\n Log.trace(\"String_Node_Str\");\n try {\n TOperationContext tcontext = wrap(context);\n clien...
"private static String createSHA1String(final File file) throws IOException {\n FileInputStream fis = new FileInputStream(file);\n MessageDigest md = null;\n try {\n md = MessageDigest.getInstance(\"String_Node_Str\");\n } catch (NoSuchAlgorithmException e) {\n throw new IOException(\"String_N...
"public void testLateRootTask() throws InterruptedException {\n final String rootTaskId = \"String_Node_Str\";\n final String[] childTaskIds = new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" };\n final AtomicInteger numMsgs = new AtomicInteger(0);\n final EStage<GroupCommunicati...
"void handleBeforeAttributeName() {\n if (tryCreateTagEnd()) {\n return;\n }\n if (consumeWhitespace()) {\n return;\n }\n RawTextNode identifier = consumeHtmlIdentifier(EXPECTED_ATTRIBUTE_NAME);\n if (identifier == null) {\n context.resetAttribute();\n return;\n }\n c...
"public void build(String[] args) throws IOException {\n super.build(args);\n MechModel mech = new MechModel(\"String_Node_Str\");\n addModel(mech);\n addVerticalSprings(mech);\n for (AxialSpring s : mech.axialSprings()) {\n s.setRenderProps(null);\n }\n RenderProps.setLineStyle(mech, LineSt...
"public void commitWallPost(UUID txnId, String args) throws IOException {\n Object[] objArgs = parseArgs(args);\n List<String> nameList = (List<String>) objArgs[0];\n String message = (String) objArgs[1];\n List<File> oldTemps = Utility.getMatchingFiles(addr, WALL_POST_TEMP_PREFIX);\n for (File f : oldTe...
"private Object populateEntityFromHbaseData(Object entity, HBaseData hbaseData, EntityMetadata m, String rowKey, List<String> relationNames) {\n try {\n PropertyAccessorHelper.setId(entity, m, new String(hbaseData.getRowKey()));\n List<KeyValue> hbaseValues = hbaseData.getColumns();\n Map<String...
"public void perform(Arguments arguments, PrintStream output) throws Exception {\n DatasetId instance = cliConfig.getCurrentNamespace().dataset(arguments.get(ArgumentName.DATASET.toString()));\n DatasetMeta meta = datasetClient.get(instance);\n Table table = Table.builder().setHeader(\"String_Node_Str\", \"Str...
"private void killJobOnUnix(final int pid) throws GenieException {\n try {\n final Calendar tomorrow = Calendar.getInstance(JobConstants.UTC);\n tomorrow.add(Calendar.DAY_OF_YEAR, 1);\n final ProcessChecker processChecker = new UnixProcessChecker(pid, this.executor, tomorrow.getTime());\n ...
"protected boolean explainExpression(String expression) {\n if (expression == null || expression.isEmpty()) {\n return false;\n }\n return !expression.startsWith(\"String_Node_Str\");\n}\n"
"public void handleUpdate(ServerContext context, UpdateRequest request, ResultHandler<Resource> handler) {\n try {\n String objectClass = getObjectClass(context);\n RequestHandler delegate = objectClassHandlers.get(objectClass);\n if (null != delegate) {\n delegate.handleUpdate(contex...
"public void testAbstractCovariance_GRE272() {\n runNegativeTest(new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" }, \"String_Node_Str\");\n}\...
"public boolean checkReadOnly() {\n IProxyRepositoryFactory repFactory = DesignerPlugin.getDefault().getProxyRepositoryFactory();\n boolean readOnlyLocal = !isLastVersion(property.getItem()) || !repFactory.isEditableAndLockIfPossible(property.getItem());\n this.setReadOnly(readOnlyLocal);\n return readOnlyL...
"void processMasternodeBroadcast(MasternodeBroadcast mnb) {\n lock.lock();\n try {\n if (mapSeenMasternodeBroadcast.containsKey(mnb.getHash())) {\n params.masternodeSync.addedMasternodeList(mnb.getHash());\n return;\n }\n mapSeenMasternodeBroadcast.put(mnb.getHash(), mnb...
"public void testImplementingInterface2() {\n runConformTest(new String[] { \"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\" + \"...
"protected void createContents() {\n super.createContents();\n shlNewSet.setText(\"String_Node_Str\");\n text.setEditable(false);\n text.removeModifyListener(new ModifyKey());\n btnOk.setEnabled(true);\n for (String value : values) {\n TableItem item = new TableItem(table, SWT.NONE);\n i...
"public synchronized String getFileName() {\n if (_fileName != null)\n return _fileName;\n String ret = null;\n if (dloaders.size() > 0)\n ret = ((HTTPDownloader) dloaders.get(0)).getRemoteFileDesc().getFileName();\n else if (files != null && files.size() > 0)\n ret = ((RemoteFileDesc) ...
"public void testExtendingInterface2() {\n runNegativeTest(new String[] { \"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 convertToProcessNode(ConnectionItem connectionItem, String tableName) throws ProcessorException {\n EDatabaseComponentName name = EDatabaseComponentName.getCorrespondingComponentName(connectionItem, ERepositoryObjectType.METADATA_CONNECTIONS);\n String componentName = null;\n componentName = name....
"public Resource createResource(String identifier) throws RbacManagerException {\n return null;\n}\n"
"private Position parsePositionReport2(ChannelBuffer buf, int sequenceNumber, long timestamp) {\n Position position = new Position();\n position.setProtocol(getProtocolName());\n position.set(Event.KEY_INDEX, sequenceNumber);\n position.setDeviceId(getDeviceId());\n position.setTime(convertTimestamp(time...
"private void readTileData(File outputFile, int tileX, int tileY, int tileWidth, int tileHeight, int jp2TileX, int jp2TileY, int jp2TileWidth, int jp2TileHeight, short[] tileData, Rectangle destRect) throws IOException {\n synchronized (this) {\n if (!locks.containsKey(outputFile)) {\n locks.put(ou...
"public static ValueAndError empty() {\n return EMPTY_VALUE_AND_ERROR;\n}\n"
"public SkyValue compute(SkyKey skyKey, Environment env) throws RecursiveFilesystemTraversalFunctionException, InterruptedException {\n TraversalRequest traversal = (TraversalRequest) skyKey.argument();\n try {\n FileInfo rootInfo = lookUpFileInfo(env, traversal);\n if (!rootInfo.type.exists()) {\n ...
"public long getIteration() {\n return iterations.get() - 1;\n}\n"
"private void skipWhitespace() {\n while (ch <= ' ' && length-- > 0) {\n ch = input.nextChar();\n }\n}\n"
"private void createBuildPropertiesFile(final String featureLocation, final String[][] configurations) throws IOException {\n File file = new File(featureLocation);\n if (!file.exists() || !file.isDirectory()) {\n if (!file.mkdirs()) {\n throw new IOException(Messages.creatorCouldntCopy + \"Stri...
"public void insertModel(MLModelNew model) throws DatabaseHandlerException {\n Connection connection = null;\n PreparedStatement insertStatement = null;\n try {\n connection = dbh.getDataSource().getConnection();\n connection.setAutoCommit(false);\n insertStatement = connection.prepareStat...
"public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) throws Exception {\n if (e.getCause() instanceof ReadTimeoutException) {\n log.error(\"String_Node_Str\", this.proxy.getSlicer().getSliceName(), this.proxy.getSlicer().getControllerAddress().toString());\n ctx.getChannel().close(...
"public void onPlayerMove(PlayerMoveEvent event) {\n if (event.isCancelled())\n return;\n if (Jail.prisoners.containsKey(event.getPlayer().getName().toLowerCase())) {\n JailPrisoner prisoner = Jail.prisoners.get(event.getPlayer().getName().toLowerCase());\n if (prisoner.isBeingReleased() || p...
"public Employee process(Employee item) {\n LOG.info(\"String_Node_Str\" + item);\n taxCalculatorService.calculateTax(item);\n return item;\n}\n"
"protected ViewModel doGet(HttpServletRequest request, HttpServletResponse response) throws Exception {\n String sptoken = Strings.clean(request.getParameter(\"String_Node_Str\"));\n if (isJsonPreferred(request, response)) {\n Map<String, Object> model = new HashMap<String, Object>(1);\n if (sptoken...
"public static synchronized void savePreferences() {\n boolean shouldSave = getBooleanPreference(Preference.TYPES.SAVE_PREFS);\n System.out.println(\"String_Node_Str\" + shouldSave);\n try {\n for (Preference p : prefArray) {\n if (p.getValue() == null || ((!shouldSave || !p.shouldSave()) && ...
"public void modifyText(ModifyEvent e) {\n String min = lowerText.getText();\n String max = higherText.getText();\n if (!CheckValueUtils.isEmpty(max)) {\n if (isRangeForDate) {\n if (!CheckValueUtils.isDateValue(max)) {\n updateStatus(IStatus.ERROR, MSG_ONLY_DATE);\n ...
"public EntityRotFX spawnFogParticle(double x, double y, double z, int parRenderOrder) {\n double speed = 0D;\n Random rand = new Random();\n EntityRotFX entityfx = particleBehaviorFog.spawnNewParticleIconFX(Minecraft.getMinecraft().theWorld, tex, x, y, z, (rand.nextDouble() - rand.nextDouble()) * speed, 0.0D,...
"public static void toBean(AccountPo src, Account desc) {\n AssertUtil.canNotEmpty(src, \"String_Node_Str\");\n AssertUtil.canNotEmpty(desc, \"String_Node_Str\");\n desc.setCreateTime(src.getCreateTime());\n try {\n desc.setAddress(Address.fromHashs(src.getAddress()));\n } catch (NulsException e) ...
"public IConnector getConnector() {\n try {\n return new StreamingConnector();\n } catch (InitializationException e) {\n Assert.fail(\"String_Node_Str\");\n return null;\n }\n}\n"
"protected SearchRequestResult parse_search(String html, int page) {\n Document doc = Jsoup.parse(html);\n if (doc.select(\"String_Node_Str\").size() > 0) {\n if (doc.select(\"String_Node_Str\").text().trim().startsWith(\"String_Node_Str\")) {\n return new SearchRequestResult(new ArrayList<Searc...
"public EF_LearningBayesianNetwork transitionModel(EF_LearningBayesianNetwork bayesianNetwork, PlateuStructure plateuStructure) {\n for (Variable localVar : this.localHiddenVars) {\n Normal normalGlobalHiddenPreviousTimeStep = plateuStructure.getEFParameterPosterior(localVar).toUnivariateDistribution();\n ...
"protected boolean _isSearchCriteriaSet() {\n if (_commandSearchCriteria == null || _commandSearchCriteria.equals(\"String_Node_Str\")) {\n return false;\n }\n return false;\n}\n"
"public void setUp() throws Exception {\n super.setUp();\n consumer = (DuplicateArtifactsConsumer) lookup(KnownRepositoryContentConsumer.class, \"String_Node_Str\");\n assertNotNull(consumer);\n config = new ManagedRepositoryConfiguration();\n config.setId(TEST_REPO);\n config.setLocation(new File(\"S...
"public void breakpointAdded(IBreakpoint breakpoint) {\n if (!supportsBreakpoint(breakpoint)) {\n return;\n }\n try {\n if (!breakpoint.isEnabled()) {\n return;\n }\n } catch (CoreException e1) {\n return;\n }\n ScriptLineBreakpoint scriptPoint = (ScriptLineBreak...
"public boolean onLongClick(View v) {\n int position = getAdapterPosition();\n if (Utils.isWeekOfYearEnabled()) {\n if (position % 8 == 0) {\n return false;\n }\n position = fixForWeekOfYearNumber(position);\n }\n if (totalDays < position - 6 - startingDayOfWeek || position -...
"private void setPropertiesFormEditable(boolean visible) {\n clearContextParams();\n EDBParamName sidOrDatabase = null;\n if (EDatabaseTypeName.ORACLEFORSID.getProduct().equals(getConnection().getProductId())) {\n if (EDatabaseConnTemplate.ORACLESN.getDBDisplayName().equals(getConnection().getDatabaseTy...
"public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {\n try {\n flushText();\n int len = atts.getLength();\n serializer.startElement(namespaceURI, localName, getPrefix(qName), null);\n for (int i = 0; i < len; i++) {\n ...
"public static Date toDateWithCheck(String source, ULocale locale) throws BirtException {\n DateFormat dateFormat = DateFormatFactory.getDateInstance(DateFormat.SHORT, locale);\n Date resultDate = null;\n try {\n resultDate = dateFormat.parse(source);\n } catch (ParseException e) {\n return to...
"public static Address allocateContiguousChunks(int descriptor, Space space, int chunks, Address previous) {\n lock.acquire();\n int chunk = regionMap.alloc(chunks);\n if (VM.VERIFY_ASSERTIONS)\n VM.assertions._assert(chunk != 0);\n if (chunk == -1) {\n Log.write(\"String_Node_Str\");\n ...
"public DescribeLoadBalancersResponseType describeLoadBalancers(DescribeLoadBalancersType request) throws EucalyptusCloudException {\n DescribeLoadBalancersResponseType reply = request.getReply();\n final Context ctx = Contexts.lookup();\n final UserFullName ownerFullName = ctx.getUserFullName();\n final Se...
"public boolean applies(GameEvent event, Ability source, Game game) {\n return true;\n}\n"
"public LongMonitoringCounter reset() {\n return this;\n}\n"
"public void writeArtwork(final BufferedImage img) {\n try {\n final StandardArtwork s = new StandardArtwork();\n ImageIO.write(img, \"String_Node_Str\", this.entry.getCoverTempFile());\n s.setFromFile(this.entry.getCoverTempFile());\n this.tag.deleteArtworkField();\n this.tag.addF...
"public static QualifiedName fromNode(Node qnameNode) {\n if (qnameNode == null || !qnameNode.isQualifiedName()) {\n return null;\n }\n if (qnameNode.isGetProp()) {\n String pname = qnameNode.getLastChild().getString();\n return join(fromNode(qnameNode.getFirstChild()), new QualifiedName(p...
"public void initialize(DynMap config) throws Exception {\n if (config == null) {\n throw new Exception(\"String_Node_Str\");\n }\n this.setMaxWorkerThreads(config.getInteger(\"String_Node_Str\", 10));\n this.setMaxIOThreads(config.getInteger(\"String_Node_Str\", 8));\n List<String> controllerPack...
"private void reset(Lattice lattice) {\n for (Node[] level : lattice.getLevels()) {\n for (Node node : level) {\n if (node.isAnonymous()) {\n node.setNotTagged();\n node.setNotChecked();\n node.setAnonymous(false);\n node.setKAnonymous(fal...
"protected BigInteger convertObjectToBigInteger(Object sourceObject) throws ConversionException {\n if (sourceObject instanceof String) {\n String sourceString = (String) sourceObject;\n if (sourceString.length() == 0) {\n return null;\n } else if (sourceString.charAt(0) == PLUS) {\n ...
"public float[] asFloat() {\n ensureNotFreed();\n float[] ret = new float[length];\n JCuda.cudaMemcpy(Pointer.to(ret), pointer(), length * elementSize(), cudaMemcpyKind.cudaMemcpyDeviceToHost);\n return ret;\n}\n"
"protected void createFieldEditors() {\n IntegerFieldEditor prefixLengthEditor = new IntegerFieldEditor(Constants.PREF_MIN_PREFIX_LENGTH_FOR_TYPES, Messages.PREFPAGE_LABEL_PREFIX_LENGTH, getFieldEditorParent());\n prefixLengthEditor.setValidRange(1, 99);\n Text control = prefixLengthEditor.getTextControl(getFi...
"public static String getAggregateFunctionExpr(SeriesDefinition orthoSD, String strBaseAggExp, Query orthQuery) throws ChartException {\n String strOrthoAgg = null;\n SeriesGrouping grouping = orthoSD.getGrouping();\n if (orthQuery != null && orthQuery.getGrouping() != null && orthQuery.getGrouping().isEnabled...
"private AccessTokenResult tokenAuthenticationRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {\n OAuthGrantRequestAuthenticationResult authenticationResult;\n try {\n Application app = getApplication(request);\n OAuthPasswordGrantRequestAuthentication passwordGran...
"public void startRequest(DIRRequest rq) {\n xtreemfs_address_mappings_removeRequest request = (xtreemfs_address_mappings_removeRequest) rq.getRequestMessage();\n BabuDBInsertGroup ig;\n try {\n ig = database.createInsertGroup();\n } catch (BabuDBException e) {\n if (e.getErrorCode() == ErrorC...
"public String getResponsetemplate() {\n JSONObject jsonRecord = JSONObject.fromObject(customRecord.getOutMessage());\n return VELOCIMACRO_RESPONSE_PREFIX + \"String_Node_Str\" + jsonRecord.toString() + \"String_Node_Str\" + VELOCIMACRO_SUFFIX;\n}\n"
"protected <T extends AbstractObject> T copyWithNewUUID(Map<String, String> oldToNewUUIDMapping, T original) {\n T copy = (T) original.clone();\n copy.setId(UUID.randomUUID().toString());\n oldToNewUUIDMapping.put(original.getId(), copy);\n return copy;\n}\n"
"public String createdDocumentDestination() {\n List<Documents> documentsList = new ArrayList<Documents>();\n List<String> vendorCodeDocument = new ArrayList<String>();\n List<OrderItems> orderItemsList = new ArrayList<OrderItems>();\n Orders orderEntity = orderService.findOrdersById(orderIdParam);\n ord...
"public RenderedImage create(ParameterBlock paramBlock, RenderingHints renderHints) {\n ImagingListener listener = ImageUtil.getImagingListener(renderHints);\n SeekableStream src = (SeekableStream) paramBlock.getObjectParameter(0);\n try {\n src.seek(0L);\n } catch (IOException e) {\n listener...
"private boolean openBank() {\n try {\n if (!bank.isOpen()) {\n if (menu.isOpen()) {\n mouse.moveSlightly();\n sleep(random(40, 60));\n }\n RSObject bankBooth = objects.getNearest(Bank.BANK_BOOTHS);\n RSNPC banker = npcs.getNearest(Bank...
"public int run(final Configuration config, final PropertyManagement runTimeProperties) throws Exception {\n final DataStorePluginOptions dataStoreOptions = ((PersistableStore) runTimeProperties.getProperty(StoreParam.INPUT_STORE)).getDataStoreOptions();\n GeoWaveInputFormat.setDataStoreName(config, dataStoreOpti...
"public void run() {\n oldValue = recordStore.getMapEntry(dataKey).getValue();\n final Object valueBeforeProcess = mapService.toObject(oldValue);\n final MapEntrySimple entry = new MapEntrySimple(mapService.toObject(dataKey), valueBeforeProcess);\n response = mapService.toData(entryProcessor.process(entry))...
"public CompilationResult compileOnMemory(Collection<CtClass> ctClassList, URL[] cp) {\n Map<String, String> toCompile = new HashMap<String, String>();\n prettyPrinter = new DefaultJavaPrettyPrinter(getEnvironment());\n for (CtClass ctClass : ctClassList) {\n try {\n this.getProcessingManager...
"public void reset() {\n mCheckedItems.clear();\n mGridView.setSelection(0);\n mGridView.requestFocusFromTouch();\n mGridView.setSelection(0);\n mGridAdapter.swapCursor(null);\n resetSpinnerAdapter();\n clearCheckedItems();\n mHasRetrievedAllMedia = false;\n}\n"
"public void doProcessing(SamplePacket samples) {\n this.fftBlock.applyWindow(samples.re(), samples.im());\n this.fftBlock.fft(samples.re(), samples.im());\n double realPower;\n double imagPower;\n int size = samples.size();\n for (int i = 0; i < size; i++) {\n int targetIndex = (i + size / 2) ...
"public Range execute(Document document) {\n Range caret = document.getSelection().getRangeAt(0);\n TreeCaretPosition startSelection = treeOperationFactory.createCaretPosition(getOperation().getSiteId(), caret, caret.getStartOffset());\n TreeCaretPosition endSelection = treeOperationFactory.createCaretPosition...
"public void mouseDragged(MouseEvent evt) {\n if ((_target != null) && ((evt.getModifiers() & InputEvent.BUTTON1_MASK) != 0)) {\n setPosition(evt.getX(), evt.getY());\n }\n}\n"
"public boolean onTouch(View v, MotionEvent event) {\n float pos = event.getY();\n if (event.getAction() == 0)\n mLastYPos = pos;\n if (event.getAction() > 1) {\n if (((mLastYPos - pos) > 2.0f) || ((pos - mLastYPos) > 2.0f))\n mScrollDetected = true;\n }\n mLastYPos = pos;\n i...
"private static Object readSingleValue(final byte tagType, final ByteBuffer byteBuffer, final ValidationStringency validationStringency) {\n switch(tagType) {\n case 'Z':\n return readNullTerminatedString(byteBuffer);\n case 'A':\n return (char) byteBuffer.get();\n case 'I'...
"public void render(Component comp, Writer out) throws IOException {\n final SmartWriter wh = new SmartWriter(out);\n final Menu self = (Menu) comp;\n final String uuid = self.getUuid();\n if (self.isTopmost()) {\n wh.write(\"String_Node_Str\").write(uuid).write(\"String_Node_Str\");\n wh.writ...
"public Collection getParameterDefns(boolean includeParameterGroups) {\n Collection original = ((ReportRunnable) runnable).getParameterDefns(includeParameterGroups);\n Iterator iter = original.iterator();\n params = new ArrayList();\n while (iter.hasNext()) {\n ParameterDefnBase pBase = (ParameterDef...
"protected Rect growDown(final int w, final int h) {\n final Node down = new Node(mRoot.x, mRoot.y + mRoot.height, mRoot.width, h);\n final Node right = mRoot;\n mRoot = new Node(mRoot.x, mRoot.y, mRoot.width, mRoot.height + h);\n mRoot.split(down, right);\n return down.occupy(w, h);\n}\n"
"protected void addDefaultComponents(Entity entity, Node rootNode) {\n super.addDefaultComponents(entity, rootNode);\n if (transparency != null) {\n applyTransparency(TransparencyMode.DEFAULT, transparency);\n }\n}\n"