content stringlengths 40 137k |
|---|
"private static void hideItems() {\n LogHelper.debug(\"String_Node_Str\");\n for (int i = 0; i < 16; i++) {\n AgriCraft.proxy.hideItemInNEI(new ItemStack(Blocks.blockCrop, 1, i));\n AgriCraft.proxy.hideItemInNEI(new ItemStack(Blocks.blockSprinkler, 1, i));\n for (BlockModPlant plant : Crops.c... |
"public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"String_Node_Str\" + SECTION_PREFIX + this.getIndex().toString() + \"String_Node_Str\").append(KEY_NAME + \"String_Node_Str\" + this.getName() + \"String_Node_Str\").append(KEY_AVG_INSERT_SIZE + \"String_Node_Str\" + this.getAverag... |
"public ArrayList<Property> getFieldPropertiesForClass(JavaClass cls, TypeInfo info, boolean onlyPublic) {\n ArrayList properties = new ArrayList();\n if (cls == null) {\n return properties;\n }\n boolean hasAnyAttribteProperty = false;\n for (Iterator<JavaField> fieldIt = cls.getDeclaredFields().... |
"public static void main(String[] args) {\n Database db = new SQLite(\"String_Node_Str\");\n StandardLogger log = new StandardLogger();\n Log.setLogger(log);\n Log.setLevel(LoggingLevel.TRACE);\n MappingSession.registerDatabase(db);\n MappingSession.getConfiguration().setCreationPolicy(SchemeCreationP... |
"public List<DavResource> getResources(String url) throws SardineException {\n HttpPropFind propFind = new HttpPropFind(url);\n propFind.setEntity(SardineUtil.getResourcesEntity());\n HttpResponse response = this.executeWrapper(propFind);\n StatusLine statusLine = response.getStatusLine();\n if (!Sardine... |
"public String getQuery() {\n return new QueryBuilder(\"String_Node_Str\").append(isUnique ? \"String_Node_Str\" : \"String_Node_Str\").append(\"String_Node_Str\").appendQuoted(mIndex).append(\"String_Node_Str\").appendQuoted(FlowManager.getTableName(mTable)).append(\"String_Node_Str\").appendQuotedList(mColumns).ap... |
"protected void renderContent(GL2 gl) {\n if (layoutDisplayListIndex == -1)\n layoutDisplayListIndex = gl.glGenLists(1);\n gl.glEnable(GL.GL_BLEND);\n gl.glBlendFunc(GL.GL_ONE, GL.GL_ONE_MINUS_SRC_ALPHA);\n gl.glEnable(GL.GL_LINE_SMOOTH);\n GLU glu = null;\n if (isLayoutDirty()) {\n gl.g... |
"public void update(ObjectValue data) {\n super.update(data);\n if (!hasDataBoundChildren && view instanceof ViewGroup) {\n ViewGroup parent = (ViewGroup) view;\n int count = parent.getChildCount();\n View child;\n for (int index = 0; index < count; index++) {\n child = pare... |
"private void disconnect(C context, int disconnectReason) {\n LOG.info().$(\"String_Node_Str\").$ip(context.getIp()).$(\"String_Node_Str\").$(DisconnectReason.nameOf(disconnectReason)).$(']').$();\n context.close();\n connectionCount--;\n}\n"
|
"public List<Key> put(Transaction tx, Iterable<Entity> entityIterable) {\n boolean newTx = (tx == null);\n if (newTx)\n tx = beginTransaction();\n try {\n List<Key> list = new ArrayList<Key>();\n for (Entity entity : entityIterable) {\n final Key key = entity.getKey();\n ... |
"public Future<T> get() {\n Callable<T> get = () -> {\n try {\n this.c.setRequestMethod(\"String_Node_Str\");\n this.c.setRequestProperty(\"String_Node_Str\", \"String_Node_Str\");\n this.c.setRequestProperty(\"String_Node_Str\", \"String_Node_Str\");\n this.c.setDo... |
"protected void onRemove(Item item) {\n final Item removeItem = item;\n removeItem.setParent(null);\n if (removeItem instanceof Element)\n _elemMap.remove((Element) removeItem);\n}\n"
|
"private void assignMapReduceWorkingPath(TableDescriptor tableDescriptor) throws IOException {\n Map<String, String> tableProperties = tableDescriptor.getTableProperties();\n String mrIncWorkingPathStr = getProperty(tableProperties, BlurConstants.BLUR_BULK_UPDATE_WORKING_PATH);\n if (mrIncWorkingPathStr == nul... |
"private void initializedCatalogRepNode(List<IRepositoryNode> nodes, Package pack) {\n if (pack instanceof Catalog) {\n MetadataCatalogRepositoryObject metadataCatalog = new MetadataCatalogRepositoryObject(getObject(), (Catalog) pack);\n RepositoryNode catalogNode = DQRepNodeCreateFactory.createDBCatal... |
"public List<String> getPopulateStatements(String table) {\n List<String> statements;\n String ID_COLUMN = \"String_Node_Str\";\n if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n } else if (tab... |
"private Group getNextRightNode(GroupZipper parent) {\n if (parent == null) {\n return null;\n }\n if (parent.canRight()) {\n return up().right().getNode();\n } else {\n return getNextRightNode(parent);\n }\n}\n"
|
"public Object call(final Context cx, Scriptable scope, Scriptable thisObj, final Object[] args) {\n try {\n Function onSuccess = null;\n Function onFailure = null;\n int argsLength = arguments != null ? arguments.length : 0;\n if (arguments != null) {\n if (arguments.length > ... |
"public void initialize(ScaffoldInfo scaffoldInfo, ScaffoldType scaffoldType, EObject sourceObject, EObject targetObject, Iterable<EObject> references, Map<EObject, EObject> traceabilityMap) throws InitializerException {\n Collection<CDOObject> elementsToLock = new ArrayList<CDOObject>();\n elementsToLock.add(sca... |
"private static DB getDatabase() throws UnknownHostException {\n return mongoClient.getDB(dbTmpName);\n}\n"
|
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n ViewGroup rootView = (ViewGroup) inflater.inflate(R.layout.new_account_user_fragment_screen, container, false);\n WPTextView termsOfServiceTextView = (WPTextView) rootView.findViewById(R.id.l_agree_terms_of_serv... |
"void put(String signature, long usedAtMillis, UsageConfidence confidence) {\n notUploadedSignatures.add(new UsageDataEntry(signature, usedAtMillis, confidence));\n}\n"
|
"public void lookupHashMismatch() throws IOException {\n RuleKey key = new RuleKey(\"String_Node_Str\");\n SourcePath input = new FakeSourcePath(\"String_Node_Str\");\n Manifest manifest = Manifest.fromMap(new RuleKey(\"String_Node_Str\"), ImmutableMap.of(key, ImmutableMap.of(RESOLVER.getRelativePath(input).to... |
"public int countWithdrawnItems(Context context) throws SQLException {\n return itemDAO.countItems(context, false, true);\n}\n"
|
"private void visit(DumpableNode<?> node, PrintWriter writer, boolean first) {\n if (this.nodeIds.containsKey(node)) {\n return;\n }\n this.nodeIds.put(node, this.nodeCnt++);\n for (Iterator<? extends DumpableNode<?>> children = node.getPredecessors(); children.hasNext(); ) {\n final DumpableN... |
"public boolean prefire() throws IllegalActionException {\n return super.prefire();\n}\n"
|
"protected void configure(final Env env, final Config conf, final Binder binder, final BiConsumer<String, Executor> callback) {\n List<Map<String, Object>> executors = conf.hasPath(namespace) ? executors(conf.getValue(namespace), daemon, priority, Runtime.getRuntime().availableProcessors()) : Collections.emptyList()... |
"public static boolean spawn(PrisonLevel level, Room room, Collection<Room> rooms) {\n if (!spawned && (type != 0 || (Dungeon.depth > 6 && Random.Int(10 - Dungeon.depth) == 0))) {\n if (type == 0)\n type = Random.Int(Dungeon.isChallenged(Challenges.NO_HERBALISM) ? 2 : 3) + 1;\n if (setRoom(r... |
"ArrayList<Double> getInRange(ArrayList<Double> numbers, double min, double max){\n\tArrayList<Double> result = new ArrayList<Double>();\n\tfor (int i = 0; i < numbers.length; i ++){\n\t\tdouble number = numbers.get(i);\n\t\tif (number < min){\n\t\t\tresult.add(getValue(number, min, max));\n\t\t} else if (number < max)... |
"public void ClickCheckItem(InventoryClickEvent event) {\n if (ConfigPatch.AntiLongStringCrashenable == true) {\n if (evt.getWhoClicked().getType() != EntityType.PLAYER) {\n return;\n }\n Player player = (Player) event.getWhoClicked();\n ItemStack item = event.getCursor();\n ... |
"private void establishDefragSpillThreshold(ChunkList chunkMap, ImmixSpace space) {\n int availableLines;\n if (TMP_VERBOSE_DEFRAG_STATS || !TMP_USE_NAIVE_SPILL_DEFRAG_THRESHOLD) {\n availableLines = space.getAvailableLines(spillAvailHistogram);\n if (TMP_VERBOSE_DEFRAG_STATS && Options.verbose.getV... |
"public void onUserMessage(final UserMessageEvent event) {\n final String messageType = event.getMessageType();\n if (isChatMessage(messageType)) {\n final Page<?> page = event.getPage();\n final Visibility visibility = page.getVisibility();\n if (visibility != Visibility.focused && unattende... |
"protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {\n if (source == weeklyCalendar) {\n if (event instanceof KalendarGUIEditEvent) {\n KalendarGUIEditEvent guiEvent = (KalendarGUIEditEvent) event;\n KalendarEvent kalendarEvent = guiEvent.getKalendarEvent(... |
"public Object toMongoObject(final MappedField mf, final MappedClass mc, final Object value) {\n Object mappedValue = value;\n if (isAssignable(mf, value) || isEntity(mc)) {\n try {\n if (value instanceof Iterable) {\n MappedClass mapped = getMappedClass(mf.getSubClass());\n ... |
"protected void snapToPage(int whichPage, int delta, int duration, boolean immediate) {\n if (isWarping() && whichPage == mCurrentPage + 1) {\n mNextPage = getPageWarpIndex();\n if (DEBUG_WARP)\n Log.v(TAG, \"String_Node_Str\" + whichPage + \"String_Node_Str\");\n } else {\n mNextP... |
"private void actionImportData(final String path, final char separator) {\n final WorkerImport worker = new WorkerImport(path, separator);\n main.showProgressDialog(Resources.getMessage(\"String_Node_Str\"), worker);\n if (worker.getError() != null) {\n main.showErrorDialog(Resources.getMessage(\"String... |
"public static String getAggregationExpression(ComputedColumnHandle bindingColumn) {\n if (bindingColumn.getExpression() != null)\n return bindingColumn.getExpression();\n String functionName = bindingColumn.getAggregateFunction();\n try {\n IAggrFunction function = getAggregationManager().getAgg... |
"public boolean openTable(String tableName) throws BimserverDatabaseException {\n if (tables.containsKey(tableName)) {\n throw new BimserverDatabaseException(\"String_Node_Str\" + tableName + \"String_Node_Str\");\n }\n DatabaseConfig databaseConfig = new DatabaseConfig();\n databaseConfig.setAllowCr... |
"public Pair<double[], double[]> oneEval(Genotype<T> individual, int num) {\n NNTorusPredPreyAgent<T> agent = new NNTorusPredPreyAgent<T>(individual, false);\n brain = agent.getController();\n exec = new TorusWorldExec();\n TorusPredPreyGame game;\n if (CommonConstants.watch) {\n game = exec.runGa... |
"public void createTaskByLines(ActionRequest request, ActionResponse response) throws AxelorException {\n SalesOrder salesOrder = request.getContext().asType(SalesOrder.class);\n taskService.get().createTasks(salesOrder);\n}\n"
|
"public java_cup.runtime.Symbol next_token() throws java.io.IOException {\n int yy_input;\n int yy_action;\n int yy_currentPos_l;\n int yy_markedPos_l;\n int yy_endRead_l = yy_endRead;\n char[] yy_buffer_l = yy_buffer;\n char[] yycmap_l = yycmap;\n int[] yytrans_l = yytrans;\n int[] yy_rowMap... |
"public void actionPerformed(ActionEvent arg0) {\n if (arg0.getActionCommand().equalsIgnoreCase(\"String_Node_Str\")) {\n buyButtonClicked();\n }\n}\n"
|
"public void onAbsolutePathExtFileReceived(String absolutePath) {\n imageUtils.showFullImage(context, absolutePath);\n}\n"
|
"private boolean manageSecurityPolicy(SecurityPolicyType type, SrxCommand command, Long accountId, String username, String privateIp, List<String> applicationNames, List<String> cidrs, String ipsecVpnName, boolean defaultEgressAction) throws ExecutionException {\n String fromZone = _publicZone;\n String toZone = ... |
"public void setCurrentWizard(AccountRegistrationWizard wizard) {\n this.currentWizard = wizard;\n summaryPage.setPreferredSize(this.currentWizard.getSize());\n Iterator<WizardPage> i = wizard.getPages();\n while (i.hasNext()) {\n WizardPage page = i.next();\n this.registerWizardPage(page.getI... |
"IOdaDataSourceDesign newOdaDataSource(OdaDataSourceHandle source) throws BirtException {\n OdaDataSourceDesign dteSource = new OdaDataSourceDesign(source.getQualifiedName());\n IBaseDataSourceEventHandler eventHandler = new DataSourceScriptExecutor(source, context);\n dteSource.setEventHandler(eventHandler);\... |
"public RepeatStatus executeStep(ChunkContext chunkContext, JobExecutionStatusHolder jobExecutionStatusHolder) {\n clusterName = getJobParameters(chunkContext).getString(JobConstants.CLUSTER_NAME_JOB_PARAM);\n List<NodeEntity> nodes = findNodesToEnableLdap(chunkContext);\n clusterLdapUserMgmtCfgService.configu... |
"private static void printExtensionsList(ButterflyFacade butterflyFacade) throws IllegalAccessException, InstantiationException {\n Extension extension = butterflyFacade.getRegisteredExtension();\n if (extension == null) {\n logger.info(\"String_Node_Str\");\n return;\n }\n logger.info(\"Strin... |
"private void addEmbeddingFeatures(LocalObservations local, ObjFeatVec<String> fv) {\n NerMention m1 = local.getNe1();\n NerMention m2 = local.getNe2();\n Span m1span = m1.getSpan();\n Span m2span = m2.getSpan();\n FeaturizedSentence fsent = new FeaturizedSentence(sent, null);\n String ne1 = m1.getEnt... |
"public Map<String, IMappingData> getPrimaryData() {\n if (mappingBucket.isEmpty()) {\n URL listFeedURL;\n try {\n listFeedURL = getWorkSheet(GoogleSheetConstant.GOOGLE_MAP_SHEET_NAME).getListFeedUrl();\n ListFeed listFeed = service.getFeed(listFeedURL, ListFeed.class);\n ... |
"public void initControlConnection() throws Exception, RuntimeException {\n while (true) {\n try {\n Log.i(TAG, \"String_Node_Str\" + TOR_CONTROL_PORT);\n String baseMessage = getString(R.string.tor_process_connecting);\n sendCallbackMessage(baseMessage);\n Socket s... |
"private String downloadableUrl(String url, int width, int height) {\n if ((null != url) && url.startsWith(ContentManager.MATRIX_CONTENT_URI_SCHEME)) {\n if ((width > 0) && (height > 0)) {\n return mContentManager.getDownloadableThumbnailUrl(url, width, height, ContentManager.METHOD_SCALE);\n ... |
"public void delete() {\n executeTransaction(new ProcessModelTransaction.Builder<>(new ProcessModelTransaction.ProcessModel<TModel>() {\n public void processModel(TModel model) {\n model.delete();\n }\n }).add(model).build());\n}\n"
|
"void playTone(int tone) {\n if (!mDTMFToneEnabled) {\n return;\n }\n AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);\n int ringerMode = audioManager.getRingerMode();\n if ((ringerMode == AudioManager.RINGER_MODE_SILENT) || (ringerMode == AudioManager.RINGER_MOD... |
"public void markChanged(Entity v) {\n lock.lock();\n try {\n changes.add((EditableEntity) v);\n } finally {\n lock.unlock();\n }\n}\n"
|
"private void finishLaunch(ILaunch launch, ILaunchConfiguration config, String command, IProgressMonitor monitor, boolean retry) {\n String errorMessage = \"String_Node_Str\";\n try {\n File workDir = getWorkingDirectory(config);\n if (workDir == null) {\n workDir = new File(System.getPro... |
"protected static boolean checkComponentDefinitionCycle(SBOLDocument sbolDocument, ComponentDefinition componentDefinition, Set<URI> visited) {\n if (componentDefinition == null)\n return;\n visited.add(componentDefinition.getIdentity());\n for (Component component : componentDefinition.getComponents())... |
"public ReplSetHeartbeatReplyBuilder setAppliedOpTime(Optional<OpTime> appliedOpTime) {\n this.appliedOpTime = appliedOpTime.orElse(null);\n return this;\n}\n"
|
"public boolean parse(long ptr, int len, MultipartListener listener) throws InvalidMultipartHeader, HeadersTooLargeException {\n long hi = ptr + len;\n long _lo = Long.MAX_VALUE;\n char b;\n while (ptr < hi) {\n switch(state) {\n case BODY_BROKEN:\n _lo = ptr;\n ... |
"private static URL[] findJars(String pluginPath) {\n final File file = new File(pluginPath);\n if (!file.exists() || !file.isDirectory()) {\n return new URL[0];\n }\n File[] jars = file.listFiles(new FilenameFilter() {\n public boolean accept(File dir, String name) {\n return name.... |
"private void synchronize() {\n final ResourceSet resourceSet = new ResourceSetImpl();\n try {\n final EObject alreadySavedModel = ModelUtils.load(selectedFileObject.toString(), resourceSet);\n TypedReturnCode<TdDataProvider> rc = null;\n EList<ProviderConnection> connections = ((TdDataProvid... |
"public Client getClient() {\n return client;\n}\n"
|
"private int scanPage(int page) {\n int n = maxPage;\n while (n <= page) {\n if (offsetMap.length <= n) {\n offsetMap = Arrays.copyOf(offsetMap, page + 1);\n }\n int cslot = n % cachePageId.length;\n cachePageId[cslot] = n;\n try {\n readPage(((long) n) * p... |
"public void display(List<JobInfo> jobInfoList, AdminCommandContext context) {\n report = context.getActionReport();\n int longestName = TITLE_NAME.length();\n int longestJobId = TITLE_JOBID.length();\n int longestTime = TITLE_TIME.length();\n int longestState = TITLE_STATE.length();\n int longestUser... |
"private void joinViaTargetMember(AtomicBoolean joined, Address targetAddress, long maxJoinMillis) {\n try {\n logger.log(Level.FINEST, \"String_Node_Str\" + targetAddress);\n if (targetAddress == null) {\n throw new RuntimeException(\"String_Node_Str\" + targetAddress);\n }\n ... |
"public void stop() {\n this.setStopping();\n LOGGER.trace(\"String_Node_Str\", this);\n final LoggerContextFactory factory = LogManager.getFactory();\n if (factory instanceof Log4jContextFactory) {\n ContextSelector selector = ((Log4jContextFactory) factory).getSelector();\n if (selector inst... |
"public void testConstructorFromModule() {\n Service service = getProvider().getInstance(Service.class, \"String_Node_Str\");\n assertEquals(\"String_Node_Str\", service.sayHello());\n}\n"
|
"void stop(AudioMixerPushBufferStream outputStream) throws IOException {\n synchronized (inputDataSources) {\n if (this.outputStream != outputStream)\n return;\n if (started <= 0)\n return;\n started--;\n if (started == 0) {\n for (InputDataSourceDesc inpu... |
"public void postload() {\n try {\n boolean modified = false;\n if (!node.getNode(\"String_Node_Str\").getComment().isPresent()) {\n node.getNode(\"String_Node_Str\").setComment(\"String_Node_Str\");\n }\n for (Module mod : UltimateCore.get().getModuleService().getRegisteredMod... |
"public static void preInit() {\n CHAMELEON_SPAWNS = registerSpawnNormal(new PrimitiveMobsSpawnEntry(EntityChameleon.class, 0.25F) {\n public boolean isBiomeSuitable(Biome biome) {\n return BiomeDictionary.hasType(biome, BiomeDictionary.Type.PLAINS) && super.isBiomeSuitable(biome);\n }\n ... |
"private IAggregationResultSet[] populateRs(BirtCubeView view, AggregationDefinition[] aggrDefns, CubeQueryExecutorHelper cubeQueryExcutorHelper2, StopSign stopSign, boolean saveToRD, IBindingValueFetcher fetcher) throws IOException, BirtException {\n IAggregationResultSet[] rs = null;\n String id = null;\n Cu... |
"private void onTreeDataChange(TreeDataEvent event) {\n Object data = event.getParent();\n Component parent = getChildByNode(data);\n int indexFrom = event.getIndexFrom();\n int indexTo = event.getIndexTo();\n if (parent != null) {\n switch(event.getType()) {\n case TreeDataEvent.INTERV... |
"public SignatureEntry mapRow(ResultSet rs, int rowNum) throws SQLException {\n Integer confidence = rs.getInt(4);\n return new SignatureEntry(rs.getString(1), rs.getLong(2), rs.getLong(3), confidence == -1 ? null : SignatureConfidence.fromOrdinal(confidence));\n}\n"
|
"public int getMinPixelHeight() {\n if (minHeightPixels != -1)\n return minHeightPixels;\n if (pathway == null)\n return 120;\n return (int) (pathway.getHeight() * 0.8f);\n}\n"
|
"private KeyWrapper[] getSelectedKeys() {\n if (!isKeySelected()) {\n return new KeyWrapper[0];\n List<KeyWrapper> results = new ArrayList<KeyWrapper>();\n for (Object eachSelectedObj : ((IStructuredSelection) tvKeys.getSelection()).toArray()) {\n if (eachSelectedObj instanceof KeyWrapper)\n ... |
"private final String tenthsToFixedString(int x) {\n int tens = x / 10;\n return Integer.toString(tens) + \"String_Node_Str\" + (x - 10 * tens);\n}\n"
|
"private void initTreeNavigatorNodes() {\n initTables = ConnectionHelper.getTablesWithOrders(getConnection());\n if (initTables != null && !initTables.isEmpty()) {\n boolean isAllDeleted = true;\n for (int i = 0; i < initTables.size(); i++) {\n if (!TableHelper.isDeleted((MetadataTable) i... |
"public void testAwait_whenInstanceShutdown_thenLatchOpened() throws InterruptedException {\n TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory(1);\n final HazelcastInstance instance = factory.newHazelcastInstance(new Config());\n ICountDownLatch latch = instance.getCountDownLatch(randomStr... |
"public void quit(UUID tournamentId, UUID userId) {\n if (controllers.containsKey(tournamentId)) {\n controllers.get(tournamentId).quit(userId);\n } else {\n Logger.getLogger(TournamentManager.class).error(\"String_Node_Str\" + tournamentId + \"String_Node_Str\" + userId);\n }\n}\n"
|
"public void sendJsonError(AsyncContext asyncCtx, JsonRpcResponse message) {\n try {\n internalSendJsonAnswer(asyncCtx, message);\n } catch (Throwable e) {\n log.info(\"String_Node_Str\", e);\n } finally {\n if (asyncCtx != null) {\n try {\n asyncCtx.complete();\n... |
"private void onBufferDraw(Canvas canvas) {\n if (mKeyboardChanged) {\n invalidateAllKeys();\n mKeyboardChanged = false;\n }\n canvas.getClipBounds(mDirtyRect);\n if (mKeyboard == null)\n return;\n final boolean drawKeyboardNameText = (mKeyboardNameTextSize > 1f) && AnyApplication.ge... |
"public String buildJson() {\n Arrays.stream(bases).forEach(record -> {\n Consumer<SpecificRecordBase> consumer = customConvertersMap.get(record.getClass());\n if (consumer != null) {\n consumer.accept(record);\n } else {\n addCommonFields(record);\n }\n });\n ... |
"public synchronized void close() {\n if (_webSocket != null) {\n if (_wsIsOpen) {\n try {\n _webSocket.close();\n } catch (IllegalStateException ex) {\n }\n }\n _webSocket = null;\n }\n if (_pendingOutputs != null && _pendingOutputs.size() >... |
"private Bytes zeroOutDirty(long start, long end) {\n if (start < 0 || end > limit())\n throw new IllegalArgumentException(\"String_Node_Str\" + start + \"String_Node_Str\" + end);\n if (start >= end)\n return this;\n while (start < end && (start & 7) != 0) {\n byte b = UNSAFE.getByte(star... |
"void closeSystemDialogs() {\n closeAllApps(true);\n getWindow().closeAllPanels();\n try {\n dismissDialog(DIALOG_CREATE_SHORTCUT);\n } catch (Exception e) {\n }\n try {\n dismissDialog(DIALOG_RENAME_FOLDER);\n } catch (Exception e) {\n }\n mWaitingForResult = false;\n}\n"
|
"public boolean dimBlockAtLocalPos(int x, int y, int z) {\n if (_parent.getBlock(getBlockWorldPosX(x + 1), getBlockWorldPosY(y), getBlockWorldPosZ(z)) > 0 || _parent.getBlock(getBlockWorldPosX(x - 1), getBlockWorldPosY(y), getBlockWorldPosZ(z)) > 0 || _parent.getBlock(getBlockWorldPosX(x), getBlockWorldPosY(y), getB... |
"public void addTileToQueue(final File tileFile, final int level, final int i, final int j) {\n String tilesStr = this.buildTileId(level, i, j);\n if (!submitedTiles.contains(tilesStr)) {\n submitedTiles.add(tilesStr);\n futures.add(0, poolExcutorService.submit(new ServiceTile(initfile, level, i, j)... |
"public void testEmptyPayload() {\n _registry.register(newEndPoint(FOO.getServiceName(), FOO.getId(), \"String_Node_Str\"), false);\n}\n"
|
"public boolean keyUp(int code) {\n Keyboard.Log k = keyboard.codeToLog.get(code);\n if (k != null)\n k.up = Keyboard.t + 1;\n return true;\n}\n"
|
"public void advanced() {\n stackLayout.topControl = tosLoginComposite;\n base.layout();\n Project[] projectCollection = tosLoginComposite.readProject();\n for (int i = 0; i < projectCollection.length; i++) {\n tosLoginComposite.getProjectList().add(projectCollection[i].getLabel());\n tosLogin... |
"private static void applyColumns(Set<String> alreadyProcessed, OpenBitSet bits, Map<String, Set<String>> columnsToFetch, SegmentReader segmentReader, int primeDocRowId, int numberOfDocsInRow, Bits liveDocs) throws IOException {\n for (String family : columnsToFetch.keySet()) {\n if (!alreadyProcessed.contain... |
"private List<Contacts> loadContacts(Context context) {\n List<Contacts> kanjiStartContacts = new ArrayList<Contacts>();\n HashMap<String, Contacts> kanjiStartContactsHashMap = new HashMap<String, Contacts>();\n List<Contacts> nonKanjiStartContacts = new ArrayList<Contacts>();\n HashMap<String, Contacts> no... |
"public void testUseMemoryCachedMeta1() throws BirtException {\n this.appContextMap.put(DataEngine.MEMORY_DATA_SET_CACHE, new Integer(1));\n this.genCache();\n myDataEngine = newDataEngine();\n IResultMetaData meta = myDataEngine.getCachedDataSetMetaData(dataSource, dataSet);\n assertTrue(meta != null);\... |
"public IResultIterator preview() throws BirtException {\n result = task.execute();\n return result.nextResultIterator().getResultIterator();\n}\n"
|
"protected void addDependencies(Model model) {\n try {\n processorDependenciesManager.updateDependencies(null, model);\n final List<Dependency> dependencies = model.getDependencies();\n String parentId = getJobProcessor().getProperty().getId();\n final Set<JobInfo> clonedChildrenJobInfors... |
"protected void pathRequestFailed() {\n switch(state) {\n case CARRY_TAKE:\n super.getGrid().pushMaterial(super.getPos(), materialType, true);\n case CARRY_DROP:\n }\n}\n"
|
"private void fillBuffer() throws IOException {\n int len = (int) Math.min(charBuffer.capacity() - charBuffer.position(), remaining);\n if (len > 0) {\n len = reader.read(charBuffer, 0, len);\n } else {\n len = -1;\n }\n if (len < 0) {\n buffer = null;\n } else {\n buffer =... |
"public static synchronized void requestPermission(int requestCode, Activity target, PermissionListener listener, String... permissions) {\n if (target == null || permissions == null)\n return;\n mPermissionListener = listener;\n if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {\n if (mPermiss... |
"private LinkedList scanConvex(LinkedList rectList) {\n if (rectList == null) {\n rectList = new LinkedList();\n }\n int yMin = poly.ypoints[0];\n int topVertex = 0;\n int n = poly.npoints;\n for (int i = 1; i < n; i++) {\n if (poly.ypoints[i] < yMin) {\n yMin = poly.ypoints[i... |
"public void testGetRunePages() throws InterruptedException, TimeoutException, ExecutionException {\n try {\n handler.getRunePages(SUMMONER_ID_2).get(1, MINUTES);\n handler.getRunePagesMultipleUsers(SUMMONER_ID_2, SUMMONER_ID_1).get(1, MINUTES);\n } catch (RequestException ex) {\n if (isNotSe... |
"protected <K, V> CacheConfig<K, V> createConfigOnPartition(CacheConfig<K, V> cacheConfig) {\n try {\n int partitionId = clientContext.getPartitionService().getPartitionId(cacheConfig.getNameWithPrefix());\n CacheCreateConfigRequest request = new CacheCreateConfigRequest(cacheConfig, true, partitionId)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.