content
stringlengths
40
137k
"public void execute(CommandSender sender, CommandArgs args) {\n try {\n if (Utils.isPlayer(sender, false))\n ACPlayer.getPlayer(((Player) sender).getName()).executeLastCmd();\n else\n ACPlayer.getPlayer(\"String_Node_Str\").executeLastCmd();\n Utils.sI18n(sender, \"String_...
"public void insert(String table, String[] fields, List<Object[]> rows) throws SQLException {\n this.checkConnection();\n String[] fieldPlaceholders = new String[fields.length];\n Arrays.fill(fieldPlaceholders, \"String_Node_Str\");\n String sql = \"String_Node_Str\" + table + \"String_Node_Str\" + StringUt...
"public Object getRawNoReplacement(String name) {\n throw new RuntimeException(\"String_Node_Str\");\n}\n"
"public void endElement(String uri, String localName, String qName) throws SAXException {\n if (qName.equalsIgnoreCase(\"String_Node_Str\")) {\n return;\n }\n if (qName.equalsIgnoreCase(\"String_Node_Str\")) {\n P4ChangeEntry entry = (P4ChangeEntry) objects.pop();\n changeEntries.add(entry...
"public ITmfEvent parseEvent(final ITmfContext context) {\n if (!(fEventStream instanceof TmfTraceStub)) {\n return null;\n }\n final RandomAccessFile stream = ((TmfTraceStub) fEventStream).getStream();\n if (stream == null) {\n return null;\n }\n long location = 0;\n if (context != n...
"public void operationComplete(final ChannelFuture future) throws Exception {\n try {\n if (entryCount > 0) {\n svc.submit(new Runnable() {\n\n public Void call() throws Exception {\n inOperationComplete = true;\n try {\n ResponseWriterListener.this.futur...
"public void onReceive(Context context, Intent intent) {\n switch(intent.getAction()) {\n case AppUpdateStatusManager.BROADCAST_APPSTATUS_LIST_CHANGED:\n notificationManager.cancelAll();\n updateStatusLists();\n createSummaryNotifications();\n for (AppUpdateStatusMa...
"boolean removeSubgroup(MetaContactGroup group) {\n if (subgroups.contains(group)) {\n removeSubgroup(subgroupsOrderedCopy.indexOf(group));\n return true;\n } else {\n return false;\n }\n}\n"
"public void testSetTypeString() throws Exception {\n assertEquals(\"String_Node_Str\", field.getName());\n field.setType(\"String_Node_Str\");\n field.getOrigin();\n assertTrue(field.toString().contains(\"String_Node_Str\"));\n assertEquals(\"String_Node_Str\", field.getType());\n}\n"
"public boolean shouldBackup() {\n return Boolean.TRUE.equals(response) && backupRecord != null;\n}\n"
"public boolean taskMatches(Dtos.TaskDto task) {\n List<Dtos.FilteredEntity> filteredEntities = filterDataDto.getFullTextFilter().getFilteredEntities();\n if (filteredEntities != null && filteredEntities.size() != 0) {\n boolean matches = false;\n if (filteredEntities.contains(Dtos.FilteredEntity.SH...
"public void init() {\n showStatus(\"String_Node_Str\");\n String directory = getParameter(\"String_Node_Str\");\n final BufferedImage image = loadImage(directory + \"String_Node_Str\");\n final String panelPath = getParameter(\"String_Node_Str\");\n Class inputType = ImageFloat32.class;\n showStatus(...
"public void testSimpleProcedure() {\n if (!getServerSession().getPlatform().isOracle()) {\n return;\n }\n EntityManager em = createEntityManager();\n beginTransaction(em);\n try {\n Query query = em.createNamedQuery(\"String_Node_Str\");\n query.setParameter(\"String_Node_Str\", \"S...
"IntSet gen(SingleInstructionBasicBlock b) {\n if (b.isEntryBlock()) {\n return heapEntryStatements();\n } else {\n SSAInstruction s = b.getInstruction();\n if (s == null) {\n return null;\n } else {\n if (s instanceof SSAInvokeInstruction) {\n Stat...
"public synchronized boolean removeKubernetesHost(String kubernetesHostId) throws NonExistingKubernetesHostException {\n if (kubernetesHostId == null) {\n throw new NonExistingKubernetesHostException(\"String_Node_Str\");\n }\n if (log.isInfoEnabled()) {\n log.info(\"String_Node_Str\" + kubernete...
"private void lookForOrphans() {\n List<String> orphans;\n try {\n orphans = ZKUtil.listChildrenNoWatch(this.watcher, this.watcher.getZNodePaths().splitLogZNode);\n if (orphans == null) {\n LOG.warn(\"String_Node_Str\" + this.watcher.znodePaths.splitLogZNode);\n return;\n ...
"private void updateHourControl() {\n if (is24HourView()) {\n if (mHourFormat == 'k') {\n mHourSpinner.setMinValue(1);\n mHourSpinner.setMaxValue(24);\n } else {\n mHourSpinner.setMinValue(0);\n mHourSpinner.setMaxValue(23);\n }\n } else {\n ...
"public void beforeStep(String title) {\n TestState testState = this.testState.get();\n if (!testState.isGivenStoryRunning() && testState.currentStep != null) {\n notifier.fireTestStarted(testState.currentStep);\n }\n}\n"
"protected Void doInBackground(Void... params) {\n Debug.msg(LOG_TAG, \"String_Node_Str\");\n synchronized (this) {\n try {\n while (!mIsCameraReady) {\n if (isCancelled()) {\n printLivecycleStatus(\"String_Node_Str\");\n break;\n ...
"public void run() {\n setName(\"String_Node_Str\");\n getBroadcaster().fireEvent(new LinkCheckEvent(this, LinkCheckEvent.START));\n pc = new ProgressController(\"String_Node_Str\");\n pc.getBroadcaster().addListener(LinkCheck.getLinkChecker());\n pc.setRange(0);\n while (LinksToCheck.size() != 0) {\n...
"public ResultSet getResultSet(Connection conn, String tableName, String[] fieldNames, Object[] fieldValues, boolean limitOne) throws DatabaseReadException {\n PreparedStatement ps;\n ResultSet toRet = null;\n try {\n if (fieldNames.length > 0) {\n StringBuilder sb = new StringBuilder();\n ...
"public void issue386() {\n HazelcastInstance h1 = Hazelcast.newHazelcastInstance(null);\n IMap map = h1.getMap(\"String_Node_Str\");\n int maxLoopCount = 10000000;\n for (int count = 0; count < maxLoopCount; count++) {\n if (count % 10000 == 0) {\n System.out.println(\"String_Node_Str\" +...
"private void quietClose(final SelectionKey key, final Exception e) {\n if (LOG.isDebugEnabled() && e != null)\n LOG.debug(\"String_Node_Str\", e);\n if (key.channel() != null && key.attachment() != null && connectionListener != null)\n connectionListener.onDisconnect(((SocketChannel) key.channel())...
"public StormTopology createTopology() {\n LOGGER.info(\"String_Node_Str\");\n TopologyBuilder tb = new TopologyBuilder();\n final String topic = config.getKafkaOtsdbTopic();\n final String spoutId = topic + \"String_Node_Str\";\n final String boltId = topic + \"String_Node_Str\";\n checkAndCreateTopi...
"public boolean doInteraction(Object arg) {\n start();\n return true;\n}\n"
"public boolean alphabetsMatch(AlphabetCarrying object) {\n Alphabet[] oas = object.getAlphabets();\n return oas.length == 2 && oas[0].equals(getDataAlphabet()) && oas[1].equals(getTargetAlphabet());\n}\n"
"private void clearHeadsUpDisappearRunning() {\n for (int i = 0; i < getChildCount(); i++) {\n View view = getChildAt(i);\n if (view instanceof ExpandableNotificationRow) {\n ExpandableNotificationRow row = (ExpandableNotificationRow) view;\n row.setHeadsupDisappearRunning(false);...
"public synchronized long getSize() {\n return journalSize.get();\n}\n"
"public void testAddAmendmentControllerWithVetoListener() throws Exception {\n final OverlayWidget overlayWidget = new OverlayWidgetImpl();\n final Boolean[] hits = new Boolean[] { false, false };\n overlayWidget.setListener(new OverlayWidgetListenerMock() {\n public void afterAmendmentControllerAdded(O...
"public DateTime getFirstReg() {\n if (FirstReg != null) {\n return FirstReg;\n } else {\n return new DateTime(1900, 1, 1, 1, 1);\n }\n}\n"
"protected RectF getLocalCropBounds() {\n return mLocalGeometry.getPreviewCropBounds();\n}\n"
"public void resume() {\n curAction = lastAction;\n lastAction = null;\n damageInterrupt = false;\n next();\n}\n"
"public ColumnConfig setValueDate(String valueDate) {\n if (valueDate == null || valueDate.equalsIgnoreCase(\"String_Node_Str\")) {\n this.valueDate = null;\n } else {\n try {\n this.valueDate = new ISODateFormat().parse(valueDate);\n } catch (ParseException e) {\n this....
"private boolean checkGroundAndPos(World worldIn, BlockPos position, IBlockState ground) {\n if (worldIn.getBlockState(position).getMaterial().isLiquid())\n return false;\n IBlockState b = worldIn.getBlockState(position.down());\n if (b.getMaterial().isLiquid() || b.getBlock() instanceof IFluidBlock)\n ...
"protected Mono<Void> doNotify(InstanceEvent event, Instance instance) {\n HttpHeaders headers = new HttpHeaders();\n headers.setContentType(MediaType.APPLICATION_JSON);\n String auth = Base64Utils.encodeToString(String.format(\"String_Node_Str\", token, username).getBytes(StandardCharsets.UTF_8));\n header...
"public XSDSchema getXSDSchema(String fileName) throws URISyntaxException, MalformedURLException {\n XSDResourceImpl mainXsdResource = (XSDResourceImpl) resourceSet.getResource(URI.createFileURI(fileName), true);\n boolean haveExternalDependenciesWithoutLocation = false;\n for (Resource resource : resourceSet....
"public void stressTest() throws InterruptedException {\n AtomicInteger requestCount = new AtomicInteger();\n AtomicInteger successCount = new AtomicInteger();\n ResponseServerMessageListener serverListener = new ResponseServerMessageListener(requestCount, successCount);\n PinpointSocketFactory socketFactor...
"public void setDefaultErrorHandler(LongTaskErrorHandler errorHandler) {\n if (errorHandler != null) {\n this.defaultErrorHandler = errorHandler;\n }\n}\n"
"public String toString() {\n return \"String_Node_Str\" + freeMotionTransPrior.getParameters() + \"String_Node_Str\" + edgeMotionTransPrior.getParameters() + \"String_Node_Str\";\n}\n"
"public final void setTracking(String packageName, boolean shouldTrack) {\n Set<String> apps = getTrackedApps(this);\n SharedPreferences.Editor editor = getSharedPreferences(PREF_FILE_APPS, Context.MODE_PRIVATE).edit();\n boolean done;\n if (shouldTrack) {\n editor.putBoolean(packageName, true);\n ...
"public static MrsImagePyramidMetadata load(final InputStream stream) throws JsonGenerationException, JsonMappingException, IOException {\n final ObjectMapper mapper = new ObjectMapper();\n return mapper.readValue(stream, MrsImagePyramidMetadata.class);\n}\n"
"private static ReactionRemoved extractReactionRemovedEvent(SlackSession slackSession, JSONObject obj) {\n JSONObject item = (JSONObject) obj.get(\"String_Node_Str\");\n String emojiName = (String) obj.get(\"String_Node_Str\");\n String messageId = (String) message.get(\"String_Node_Str\");\n String channel...
"public long getRetweetedStatusId() {\n return retweetStatusId;\n}\n"
"public void coerceBytes(ImmutableBytesWritable ptr, Object object, PDataType actualType, Integer maxLength, Integer scale, SortOrder actualModifier, Integer desiredMaxLength, Integer desiredScale, SortOrder expectedModifier) {\n if (ptr.getLength() > getByteSize() && actualType.isCoercibleTo(PTimestamp.INSTANCE)) {...
"public static Sound playSound(SoundType type, float x, float y) {\n Sound sound = null;\n switch(type) {\n case EMPTY_FIRE:\n sound = playFreeSound(emptyFireSnd, x, y);\n break;\n case THOMPSON_FIRE:\n sound = playFreeSound(thompsonFire, x, y);\n break;\n...
"public static <T> T[] concat(T[] first, T[] second) {\n List<T> list = new ArrayList<T>();\n list.addAll(Arrays.asList(first));\n list.addAll(Arrays.asList(second));\n return list;\n}\n"
"protected void visitChildren(CellArea container) {\n Iterator<IArea> iter = container.getChildren();\n int childrencount = container.getChildrenCount();\n if (childrencount > 1 || childrencount == 0 || !(container.getFirstChild() instanceof BlockTextArea)) {\n drawEmptyTextBox();\n }\n while (ite...
"public static String formatNumberPattern(String givenValue, ULocale locale) {\n if (givenValue == null) {\n return \"String_Node_Str\";\n }\n if (givenValue.length() == 1) {\n char ch = givenValue.charAt(0);\n if (ch == 'G' || ch == 'g' || ch == 'd' || ch == 'D') {\n return \"S...
"public void initialise(Canvas canvas) {\n region = canvas.getRegion();\n int ringWidth = (int) (0.2578125 * region.width());\n int innerRadius = (int) (0.2421875 * region.width());\n double offset = innerRadius + ringWidth / 2;\n radius = ringWidth + innerRadius;\n logger.info(\"String_Node_Str\" + r...
"public void testQueryExecuteOnStoredProcQueryBuiltFromJPAThatDoesNothing() {\n if (supportsStoredProcedures() && getPlatform().isMySQL()) {\n EntityManager em = createEntityManager();\n try {\n getServerSession(getPersistenceUnitName()).executeQuery(em.createNamedStoredProcedureQuery(\"Stri...
"private void calculateMobs(List<Pair<DimensionDescriptor.DimletDescriptor, List<DimensionDescriptor.DimletDescriptor>>> dimlets, Random random) {\n dimlets = extractType(DimletType.DIMLET_MOBS, dimlets);\n if (dimlets.isEmpty()) {\n while (random.nextFloat() < DimletConfiguration.randomExtraMobsChance) {\...
"protected ResourceResponse newResourceResponse(Attributes attributes) {\n final WebRequest request = (WebRequest) attributes.getRequest();\n final HttpServletRequest httpRequest = (HttpServletRequest) request.getContainerRequest();\n final PageParameters params = attributes.getParameters();\n final Resourc...
"private float getUnigramProbability(WordSequence wordSequence) {\n String unigram = wordSequence.getWord(0);\n UnigramProbability unigramProb = getUnigram(unigram);\n if (unigramProb == null) {\n unigram = \"String_Node_Str\";\n unigramProb = (UnigramProbability) unigramIDMap.get(unigram);\n ...
"public void setTableFilterResult(List<Map<Integer, RegexpMatchingIndicator>> tableFilterResult) {\n this.tableFilterResult = new TableFilterResult(tableFilterResult);\n}\n"
"private static void setReverseGeocodingDetails(View d, Activity context, float lat, float lng) {\n String value = EMPTY_STRING;\n if (lat == INVALID_LATLNG || lng == INVALID_LATLNG) {\n hideDetailsRow(d, R.id.details_location_row);\n return;\n }\n try {\n Geocoder geocoder = new Geocod...
"public static String convertSoundLayer(int layerIndex, String backgroundColor, HashMap<Integer, CharacterTag> characters, List<Tag> tags, List<Tag> timeLineTags) {\n String ret = \"String_Node_Str\";\n StartSoundTag lastStartSound = null;\n SoundStreamHeadTypeTag lastSoundStreamHead = null;\n StartSoundTag...
"IResultMetaData refreshMetaData(DataSetHandle dataSetHandle, boolean holdEvent) throws BirtException {\n IResultMetaData rsMeta = null;\n BirtException e = null;\n try {\n rsMeta = this.getDataSetMetaData(dataSetHandle, false);\n } catch (BirtException e1) {\n e = e1;\n }\n if (needsSet...
"public List<Pool> createPools(Subscription sub, List<Pool> existingPools) {\n log.info(\"String_Node_Str\" + sub);\n PoolHelper helper = new PoolHelper(this.poolManager, this.productCache, null);\n List<Pool> pools = new LinkedList<Pool>();\n Map<String, String> attributes = helper.getFlattenedAttributes(s...
"protected void connectWater(TileEntityChannel channel, Tessellator tessellator, char axis, int direction, float y, IIcon icon) {\n if (axis == 'x' || axis == 'z') {\n if (channel.hasNeighbour(axis, direction)) {\n boolean x = axis == 'x';\n TileEntityCustomWood te = (TileEntityCustomWoo...
"public static List<RepositoryNode> getModelElementRepNodes(RepositoryNode parentNode, boolean recursive) {\n List<RepositoryNode> result = new ArrayList<RepositoryNode>();\n List<IRepositoryNode> children = parentNode.getChildren();\n for (IRepositoryNode node : children) {\n ModelElement modelElementF...
"public String compute() {\n for (int i = upperIdx; i > lowerIdx; i--) {\n recordLazyEval = new RecordLazyEval(fileChunk.get(i));\n if (recordLazyEval.operationType == DELETE_OPERATION) {\n actForDeleteOperation();\n } else if (recordLazyEval.operationType == INSERT_OPERATION) {\n ...
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n mHeaderHeight = getResources().getDimensionPixelSize(R.dimen.header_height2);\n mMinHeaderTranslation = -(mHeaderHeight) + QuickReturnUtils.getActionBarHeight(getActivity());\n}\n"
"public boolean satisfiesPerSpeciesMIDs(List<Triplet<Element, Element, Double>> mids) {\n for (Triplet<Element, Element, Double> mid : mids) {\n Element a = mid.getFirst();\n Element b = mid.getSecond();\n Double minid = mid.getThird();\n for (int i = 0; i < getNumSites(); i++) {\n ...
"public void renameFolderForLocal(final ERepositoryObjectType type, final IPath sourcePath, final String label) throws PersistenceException {\n IPath lastPath = sourcePath;\n if (sourcePath.lastSegment().equalsIgnoreCase(label)) {\n String tmpLabel = label.concat(this.getNextId());\n renameFolderExe...
"public void jsonSourceMapperTest12() throws InterruptedException {\n log.info(\"String_Node_Str\");\n String streams = \"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 noteWifiOffLocked(int uid) {\n if (mWifiOn) {\n mWifiOn = false;\n mWifiOnTimer.stopRunningLocked(this);\n }\n if (mWifiOnUid >= 0) {\n getUidStatsLocked(mWifiOnUid).noteWifiTurnedOffLocked();\n mWifiOnUid = -1;\n }\n}\n"
"public DeploymentDescriptorFile getSunConfigurationDDFile() {\n if (ejbRuntimeDD == null) {\n ejbRuntimeDD = new EjbRuntimeDDFile();\n }\n return ejbRuntimeDD;\n}\n"
"public IValue resolve(MarkerList markers, IContext context) {\n if (this.instance != null) {\n if (this.instance.valueTag() == FIELD_ACCESS) {\n FieldAccess fa = (FieldAccess) this.instance;\n if (fa.instance != null) {\n fa.instance = fa.instance.resolve(markers, context...
"public void actionPerformed(ActionEvent e) {\n if (product != null) {\n if (product.isMultiSize()) {\n final Product resampledProduct = MultiSizeIssue.maybeResample(this.product);\n if (resampledProduct != null) {\n product = resampledProduct;\n }\n }\n ...
"public boolean onTouchEvent(MotionEvent ev) {\n mArrowNavigation = false;\n if (!isVisible()) {\n return true;\n }\n if (mLocks != 0) {\n return true;\n }\n super.onTouchEvent(ev);\n int x = (int) ev.getX();\n int y = (int) ev.getY();\n int action = ev.getAction();\n switch(...
"protected boolean visit(IResourceDelta delta, Collection<Runnable> runnables) {\n VisitResourceHelper visitHelper = new VisitResourceHelper(delta);\n boolean merged = ProjectRepositoryNode.getInstance().getMergeRefProject();\n Set<RepositoryNode> topLevelNodes = getTopLevelNodes();\n boolean visitChildren ...
"public final void run(int major, int minor) {\n try {\n Display.create(format, attribs);\n } catch (Exception exc) {\n exc.printStackTrace();\n System.exit(1);\n }\n gameLoop();\n}\n"
"protected void setRunnable(boolean runnable) {\n if (clearTracePerfBtn != null && !clearTracePerfBtn.isDisposed()) {\n IProcess2 iProcess = null;\n boolean enableClearBtn = true;\n if (processContext != null && (iProcess = processContext.getProcess()) != null) {\n if (iProcess.disabl...
"private void parseVersion(final String version) {\n Matcher snapshotMatcher = snapshotPattern.matcher(version);\n snapshotMatcher.matches();\n final String versionWithoutSnapshot = snapshotMatcher.group(1);\n snapshotDelimiter = snapshotMatcher.group(3);\n snapshot = snapshotMatcher.group(4);\n Match...
"JdbcExpertConfigFile init() {\n String home = config.get(\"String_Node_Str\").toString();\n try {\n home = Disks.normalize(home);\n if (home == null)\n home = config.get(\"String_Node_Str\").toString();\n long max = config.containsKey(\"String_Node_Str\") ? ((Number) config.get(\"...
"public boolean apply(Game game, Ability source) {\n Permanent permanent = game.getPermanent(source.getSourceId());\n if (permanent != null) {\n if (objectReference == null || !objectReference.refersTo(permanent, game)) {\n abilitiesToAdd = new HashSet<>();\n this.objectReference = ne...
"public static int getVersion() {\n return 2009120211;\n}\n"
"public void run() {\n try {\n for (long i = start; i <= end; i = i + 1L) {\n a.add((double) i);\n }\n } catch (ClassCastException cce) {\n for (long i = start; i <= end; i = i + 1) {\n a.add(i);\n }\n }\n}\n"
"public static Collection<Player> getPlayersAroundPoint(Location location, double distance) {\n Collection<Player> players = new HashSet<Player>();\n for (Player player : Bukkit.getOnlinePlayers()) {\n if (player.getLocation().getWorld().equals(location.getWorld())) {\n if (player.getLocation()....
"public IResultIterator execute(IEventHandler eventHandler) throws DataException {\n if (customDataSet == null) {\n return new CachedResultSet(this, resultMetadata, resultObjsIterator, groupingLevel, eventHandler, session);\n } else {\n if (DataSetCacheManager.getInstance().doesSaveToCache() == fals...
"public Bullet shoot() {\n if (source.check(\"String_Node_Str\")) {\n Point bulletPoint = new Point(position);\n CircleBullet bullet = new CircleBullet(bulletPoint, 0, BULLETRADIUS, BULLETIMAGEID, shooting++);\n int x = (int) position.getX();\n int y = (int) position.getY() - 10;\n ...
"protected void parseFile(BufferedReader reader) throws IOException {\n swtGuiManager.setProgressBarText(\"String_Node_Str\" + targetIDType);\n float progressBarFactor = 100f / numberOfLinesInFile;\n IDSpecification idSpecification = groupingSpecifications.getRowIDSpecification();\n IDType sourceIDType = ID...
"private void printAspectAttributes(PrintStream out) {\n ISourceContext context = null;\n if (enclosingClass != null && enclosingClass.getType() != null) {\n context = enclosingClass.getType().getSourceContext();\n }\n List as = BcelAttributes.readAjAttributes(attributes, context, null);\n if (!as...
"public void fire() throws IllegalActionException {\n if (firstOperand.hasToken(0)) {\n double input1 = ((DoubleToken) firstOperand.get(0)).doubleValue();\n double input2 = 0;\n if (_function == REMAINDER) {\n if (secondOperand.hasToken(0)) {\n in2 = ((DoubleToken) seco...
"private byte[] decodeBlockOrRandom(byte[] in, int inOff, int inLen) throws InvalidCipherTextException {\n if (!forPrivateKey) {\n throw new InvalidCipherTextException(\"String_Node_Str\");\n }\n byte[] block = engine.processBlock(in, inOff, inLen);\n byte[] random;\n if (this.fallback == null) {\...
"public void modifyText(ModifyEvent e) {\n String max = maxValue.getText();\n if (max == \"String_Node_Str\") {\n updateStatus(IStatus.ERROR, MSG_EMPTY);\n } else if (!CheckValueUtils.isRealNumberValue(max)) {\n updateStatus(IStatus.ERROR, MSG_ONLY_REAL_NUMBER);\n } else {\n updateStatu...
"public void insert(int position, List<ListIdentifier> patch, List<Character> lc) {\n idTable.addAll(position + 1, patch);\n documentStr.insert(position, makeChar(lc));\n}\n"
"public void onUpdate() {\n if (this.blockID >= Block.blocksList.length) {\n this.setDead();\n return;\n }\n if (this.posY > 400 || Block.blocksList[this.blockID] == null || this.blockID == ZhuYaoBase.bJia.blockID || this.blockID == Block.pistonExtension.blockID || this.blockID == Block.waterMovi...
"public static DropItemEvent.Destruct callLivingDropsEvent(Event event) {\n DropItemEvent.Destruct spongeEvent = (DropItemEvent.Destruct) event;\n final Cause cause = spongeEvent.getCause();\n Object source = cause.root();\n Optional<DamageSource> damageSource = cause.first(DamageSource.class);\n final O...
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.repository_deployments_layout);\n repository = getIntent().getParcelableExtra(Constants.REPOSITORY);\n ((TextView) findViewById(R.id.repoTitle)).setText(repository.getTitle());\n findView...
"protected Object getObject(WebElement element, Method method, Object[] args) throws InvocationTargetException, IllegalAccessException, InstantiationException {\n ContentType type = getCurrentContentType(element);\n if (cachedElement == null || (locator != null && !((CacheableLocator) locator).isLookUpCached()) |...
"public Object clone(Workspace workspace) throws CloneNotSupportedException {\n PlotterBase newObject = (PlotterBase) super.clone(workspace);\n newObject._configureBases = null;\n newObject._configureSources = null;\n newObject._configureTexts = null;\n newObject._implementation = null;\n try {\n ...
"protected void handleShowImageData(final ID id, final byte[] data, final Boolean done) {\n final Display display = localGUI.getTextControl().getDisplay();\n display.asyncExec(new Runnable() {\n public void run() {\n if (showImageShell != null && showImageShell.getSenderID().equals(id)) {\n ...
"public void textModifiedByChooseSuggestion(int suggestionLength, int replacedPhraseLength, int index, String before, String after) {\n setHasLoggingInfo(true);\n Intent i = newLoggingBroadcast(LoggingEvents.VoiceIme.TEXT_MODIFIED);\n i.putExtra(LoggingEvents.VoiceIme.EXTRA_TEXT_MODIFIED_LENGTH, suggestionLeng...
"private void createVirtualMachine(AzureClient azureClient, AzureTemplate azureTemplate, String name, String vmName, String commonName, User user, String hash) throws FileNotFoundException, CertificateException, NoSuchAlgorithmException {\n byte[] encoded = Base64.encodeBase64(vmName.getBytes());\n String label =...
"private boolean spaceInOutput() {\n ItemStack stack = inventory[9].copy();\n for (int i = 25; i < 34; i++) {\n if (inventory[i] == null || (inventory[i].getItem().equals(stack.getItem()) && inventory[i].getItemDamage() == stack.getItemDamage() && inventory[i].stackSize <= inventory[i].getMaxStackSize() - ...
"private void setMaprTicketConfig(Object config, IMetadataConnection metadataConn, ClassLoader classLoader, boolean useKerberos) throws Exception {\n ReflectionUtils.invokeMethod(config, \"String_Node_Str\", new Object[] { \"String_Node_Str\", \"String_Node_Str\" });\n System.setProperty(\"String_Node_Str\", \"St...
"private void setTdDataProvider() {\n ConnectionAnalysisParameter connectionParams = (ConnectionAnalysisParameter) AbstractAnalysisWizardPage.getConnectionParams();\n file = (IFile) getSelection().getFirstElement();\n TypedReturnCode<TdDataProvider> tdProvider = PrvResourceFileHelper.getInstance().getTdProvide...
"private static void createAndRunPipeline(String[] args) {\n Pipeline pipeline = InterpretationPipelineFactory.from(args).createPipeline();\n LOG.info(\"String_Node_Str\", Arrays.asList(args));\n PipelineResult.State state = pipeline.run().waitUntilFinish();\n LOG.info(\"String_Node_Str\", state, args);\n}\...
"private void validateDeploymentPolicy(DeploymentPolicy deploymentPolicy) throws InvalidDeploymentPolicyException, RemoteException {\n if (null == deploymentPolicy) {\n String msg = \"String_Node_Str\";\n log.error(msg);\n throw new InvalidDeploymentPolicyException(msg);\n }\n if (log.isIn...