content stringlengths 40 137k |
|---|
"void leaderAction() {\n _lastLeaderActionTime.set(System.currentTimeMillis());\n}\n"
|
"public void drawValues(Canvas c) {\n float sliceangle = mChart.getSliceAngle();\n float factor = mChart.getFactor();\n PointF center = mChart.getCenterOffsets();\n float yoffset = Utils.convertDpToPixel(5f);\n for (int i = 0; i < mChart.getData().getDataSetCount(); i++) {\n IRadarDataSet dataSet ... |
"public int getExcludedListSize() {\n return getInvalidSize() + inProgress.size();\n}\n"
|
"public String getLabel() {\n if (getExtensionBase() == null)\n return super.getLabel();\n return super.getLabel() + \"String_Node_Str\" + getExtensionBase().getNameWithPrefix() + \"String_Node_Str\";\n}\n"
|
"public void testPrintResponse() {\n ArrayList<database.containers.Genome> genomeList;\n try {\n DatabaseAccessor db = new DatabaseAccessor(ServerSettings.databaseUsername, ServerSettings.databasePassword, ServerSettings.databaseHost, ServerSettings.databaseName);\n genomeList = db.getAllGenomReleas... |
"private void fillBuffer() throws SQLException {\n if (remaining > 0 || endOfFile) {\n return;\n }\n if (trunkNext == 0) {\n endOfFile = true;\n return;\n }\n if (trunk == null) {\n trunk = new PageStreamTrunk(store, trunkNext);\n trunk.read();\n }\n int next;\n ... |
"public static Task buildFromDto(org.dodgybits.shuffle.dto.ShuffleProtos.Task dto, Locator<Context> contextLocator, Locator<Project> projectLocator) {\n Long id = dto.getId();\n String description = dto.getDescription();\n String details = dto.getDetails();\n Context context = null;\n if (dto.hasContextI... |
"public void printAll() {\n AutoTypeImage[] types = AutoTypeImage.getSpecificTypes();\n for (AutoTypeImage t : types) {\n input = t;\n printMultiply();\n printMultiplyBounded();\n printDivide();\n printDivideBounded();\n printPlus();\n printPlusBounded();\n ... |
"public Boolean call() {\n synchronized (lifecycleLock) {\n if (!paused.get()) {\n fireLifecycleEvent(PAUSING);\n } else {\n return false;\n }\n paused.set(false);\n fireLifecycleEvent(PAUSED);\n return true;\n }\n}\n"
|
"public static void computeXTextSize(XText xText) {\n if (Widgets.isAccessible(xText.getStyledText())) {\n int height = xText.getStyledText().getLineCount() * xText.getStyledText().getLineHeight();\n GridData formTextGd = new GridData(SWT.FILL, SWT.FILL, true, true);\n if (xText.isFillVertically... |
"public void warn(Object message) {\n if (isWarnEnabled())\n log(LEVEL_WARN, message, null);\n}\n"
|
"public static boolean removeAnalyses(TdReport report, Collection<Analysis> analyses) {\n boolean removed = true;\n for (Analysis analysis : analyses) {\n if (!report.removeAnalysis(analysis)) {\n removed = false;\n }\n }\n return removed;\n}\n"
|
"void makeProof(NodeRepresentation nodeRep, boolean isAndProof, boolean sufficesOnly) {\n int proofIndent = PROOF_INDENT;\n String proofIndentString = StringHelper.copyString(\"String_Node_Str\", proofIndent);\n String[] assumptionsText = createdAssumptions();\n String[] proofText = null;\n if (this.proo... |
"public void draw(float fXCenter, float fYCenter, GL gl, GLU glu) {\n PartialDisc pdCurrentRootElement = radialHierarchy.getCurrentRootElement();\n PartialDisc pdCurrentMouseOverElement = radialHierarchy.getCurrentMouseOverElement();\n PartialDisc pdCurrentSelectedElement = radialHierarchy.getCurrentSelectedEl... |
"public PopupStep onChosen(final PsiFile selectedValue, boolean finalChoice) {\n return doFinalStep(() -> {\n if (selectedValue == NEW_FILE_HOLDER) {\n createFileAndAddImpl(editor);\n } else {\n addImpl(project, selectedValue.getVirtualFile());\n }\n });\n}\n"
|
"public void documentEnd() {\n if (current_chain != null) {\n current_chain.addGroup(current_group);\n if (isKnownChain(current_chain.getChainID(), current_model) == null) {\n current_model.add(current_chain);\n }\n } else {\n logger.warn(\"String_Node_Str\");\n }\n st... |
"public void testPiwikExceptionHandler() throws Exception {\n assertFalse(Thread.getDefaultUncaughtExceptionHandler() instanceof PiwikExceptionHandler);\n QuickTrack.trackUncaughtExceptions(tracker);\n assertTrue(Thread.getDefaultUncaughtExceptionHandler() instanceof PiwikExceptionHandler);\n try {\n ... |
"protected Report executeOnAIP(IndexService index, ModelService model, StorageService storage, Report report, SimpleJobPluginInfo jobPluginInfo, List<AIP> list, Job job) throws PluginException {\n for (AIP aip : list) {\n LOGGER.debug(\"String_Node_Str\", aip.getId());\n List<String> newRepresentations... |
"public void setUp() throws Exception {\n final Context context = Robolectric.getShadowApplication().getApplicationContext();\n ConnectionParameter connParams = new ConnectionParameter(0, new Bundle(), null);\n mavlinkApi = new MockMavLinkServiceAPI();\n DroidPlannerPrefs dpPrefs = new DroidPlannerPrefs(con... |
"void incCounter(LuceneCommand command) {\n if (command.isConsideredNormalWriteCommand()) {\n containsWrites = true;\n }\n}\n"
|
"public int run(CommandLine cmd) throws Exception {\n int result = super.run(cmd);\n if (result != 0) {\n return result;\n }\n lilyClient = new LilyClient(zkConnectionString, 60000);\n Repository repository = PureRepository.wrap(lilyClient.getRepository());\n typeManager = repository.getTypeMan... |
"protected HearthTreeNode notifyMinionSummon(HearthTreeNode boardState, PlayerSide targetSide, Deck deckPlayer0, Deck deckPlayer1) throws HSException {\n HearthTreeNode toRet = boardState;\n ArrayList<MinionSummonedInterface> matches = new ArrayList<MinionSummonedInterface>();\n Card hero = toRet.data_.getCurr... |
"public static boolean isVersionSynched(IProject project) {\n GrailsClasspathContainer container = GrailsClasspathUtils.getClasspathContainer(JavaCore.create(project));\n if (container != null) {\n GrailsVersion oldVersion = container.getGrailsVersion();\n if (oldVersion != null) {\n Grai... |
"public void setOption(String option, String value, String world) {\n this.node.set(formatPath(world, \"String_Node_Str\", option), value);\n this.save();\n}\n"
|
"public static void maybeRefresh(Collection<Refreshable> alreadyRefreshed, Refreshable refreshable) {\n if (!alreadyRefreshed.contains(refreshable)) {\n alreadyRefreshed.add(refreshable);\n log.info(\"String_Node_Str\", refreshable);\n refreshable.refresh(alreadyRefreshed);\n RefreshHelpe... |
"public void testfillUIConnParams_DB2ZOS() throws Exception {\n java.sql.Connection sqlConnection = mock(java.sql.Connection.class);\n IMetadataConnection metadataBean = mock(IMetadataConnection.class);\n DatabaseConnection connection = mock(DatabaseConnection.class);\n EList<TaggedValue> taggedValues = new... |
"private void loadGeneralACL() throws DataException {\n this.acls = new LinkedHashMap<String, Integer>();\n if (!engine.getContext().hasInStream(\"String_Node_Str\", null, DataEngineContext.ACL_COLLECTION_STREAM)) {\n return;\n }\n DataInputStream aclCollectionStream = new DataInputStream(engine.getC... |
"public Set<DistributionModuleGroup> getModuleGroups() throws Exception {\n Set<DistributionModuleGroup> hs = new HashSet<>();\n DynamicPluginAdapter pluginAdapter = getPluginAdapter();\n String hdfsRuntimeId = pluginAdapter.getRuntimeModuleGroupIdByTemplateId(DynamicModuleGroupConstant.HDFS_MODULE_GROUP.getMo... |
"public final void serializeBody(BeanT o, XMLSerializer w, Object outerPeer) throws SAXException, AccessorException, IOException, XMLStreamException {\n CharSequence value = xacc.print(o);\n if (value != null)\n w.text(value, fieldName);\n}\n"
|
"private boolean doGet(String url) throws IOException {\n logger.fine(\"String_Node_Str\" + url);\n GetMethod method = new GetMethod(url);\n if (referer != null) {\n method.setRequestHeader(\"String_Node_Str\", referer);\n }\n int statusCode = client.executeMethod(method);\n if (statusCode != H... |
"protected void run() throws Exception {\n try {\n Tasks.waitFor(true, new Callable<Boolean>() {\n public Boolean call() throws Exception {\n if (stopping) {\n return true;\n }\n List<ArtifactSummary> artifacts = null;\n ... |
"public Indent getIndent() {\n if (formattingInfo.getCsvCodeStyleSettings().TABULARIZE && formattingInfo.getCsvCodeStyleSettings().LEADING_WHITE_SPACES && getNode().getElementType() == CsvTypes.RECORD && (formattingInfo.getCsvCodeStyleSettings().WHITE_SPACES_OUTSIDE_QUOTES || !CsvFormatHelper.isFirstFieldOfRecordQuo... |
"private File createLocalFile(CrawlFile file, String extension) {\n return new File(getCrawlerDownloadDir().getAbsolutePath() + SystemUtils.FILE_SEPARATOR + file.getName().getPath() + extension);\n}\n"
|
"private void TabSelected(int menuItemId) {\n if (menuItemId == R.id.bottomBarHome) {\n if (menuItemId != menuItemIdSelected) {\n clearStack();\n mToolbarTitleTextView.setText(\"String_Node_Str\" + AppController.getStoredString(Constants.MY_LOCATION_NAME));\n replaceFragment(h... |
"public void commitPendingDataToDisk() {\n final Parcel next;\n synchronized (this) {\n next = mPendingWrite;\n mPendingWrite = null;\n mWriteLock.lock();\n }\n try {\n FileOutputStream stream = new FileOutputStream(mFile.chooseForWrite());\n stream.write(next.marshall());... |
"protected ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object obj, BindException errors) throws Exception {\n HttpSession httpSession = request.getSession();\n String view = getFormView();\n if (Context.isAuthenticated()) {\n ConceptClass cc = (ConceptClass) obj;\n ... |
"private void processAIPPermissions(IndexService index, ModelService model, Job currentJob, AIP aip, Report reportItem) {\n try {\n String jobCreatorUsername = currentJob.getUsername();\n if (aip.getParentId() != null) {\n try {\n IndexedAIP parentAIP = index.retrieve(IndexedA... |
"public void map(PactRecord record, Collector out) throws Exception {\n Tuple inputTuple = record.getField(1, this.inputTuple);\n if (inputTuple.getStringValueAt(1).indexOf(COLOR) != -1) {\n record.setField(1, PactNull.getInstance());\n out.collect(record);\n }\n}\n"
|
"public void generateChunk(Chunk c) {\n double[][][] densityMap = new double[Chunk.SIZE_X + 1][Chunk.SIZE_Y + 1][Chunk.SIZE_Z + 1];\n for (int x = 0; x <= Chunk.SIZE_X; x += SAMPLE_RATE_3D_HOR) {\n for (int z = 0; z <= Chunk.SIZE_Z; z += SAMPLE_RATE_3D_HOR) {\n for (int y = 0; y <= Chunk.SIZE_Y;... |
"public boolean readFrom(ByteBuffer source) {\n if (data == null) {\n data = new Data();\n }\n if (!isStatusSet(stType)) {\n if (source.remaining() < 4) {\n return false;\n }\n data.type = source.getInt();\n setStatus(stType);\n }\n if (!isStatusSet(stClassId... |
"public void run() {\n if (!connected) {\n connectToServer();\n }\n if (connected) {\n isRunning = true;\n while (!stopOperation) {\n try {\n NetworkMessage msg = new NetworkMessage();\n Schema<NetworkMessage> schema = RuntimeSchema.getSchema(Networ... |
"private void newListen() throws InterruptedException {\n Subscription subscribe = null;\n try {\n subscribe = web3j.transactionObservable().subscribe(tx -> listenTx(tx, false), getOnError());\n } catch (Exception e) {\n e.printStackTrace();\n }\n while (true) {\n if (null == subscri... |
"public Map<String, SqwFile> setupFiles() {\n try {\n SqwFile file0 = this.createFile(\"String_Node_Str\");\n file0.setSourcePath(getProperty(\"String_Node_Str\"));\n file0.setType(\"String_Node_Str\");\n file0.setIsInput(true);\n } catch (Exception ex) {\n ex.printStackTrace();... |
"public void dragOperationChanged(DropTargetEvent event) {\n super.dragOperationChanged(event);\n event.feedback = DND.FEEDBACK_EXPAND;\n doDropValidation(event, commonViewer);\n}\n"
|
"protected String getShortInfoLocal() {\n if (isRenderedRemote())\n return (((AGLView) getRemoteRenderingGLView()).getShortInfo());\n else\n return getShortInfo();\n}\n"
|
"private void init() {\n assignIDCategories();\n if (recordIDCategory == null || dimensionIDCategory == null) {\n throw new IllegalStateException(\"String_Node_Str\" + toString() + \"String_Node_Str\" + recordIDCategory + \"String_Node_Str\" + dimensionIDCategory);\n }\n recordIDMappingManager = IDMa... |
"private void queueEvents(final E state) {\n for (final Request event : this.messages.get(state)) {\n EventRecord.caller(StatefulMessageSet.class, EventType.VM_STARTING, state.name(), event.getCallback().toString()).debug();\n if (event.getCallback() instanceof BroadcastCallback) {\n final B... |
"public void compute(ProcessorArmingCollection arg0) {\n LinkedList<Event> delayedEvents = new LinkedList();\n HashSet<Integer> pressedKeys = new HashSet();\n synchronized (events) {\n for (Event evt : events) {\n if (evt instanceof KeyEvent3D && evt.isFocussed()) {\n KeyEvent ... |
"public Class loadClass(String className, SDOType type) throws ClassNotFoundException {\n Class javaClass = generatedClasses.get(className);\n if (javaClass != null) {\n return javaClass;\n }\n try {\n javaClass = getParent().loadClass(className);\n } catch (ClassNotFoundException e) {\n ... |
"public void testCreateXaResource() throws Exception {\n Map<Object, Object> config = new HashMap<Object, Object>();\n config.put(\"String_Node_Str\", \"String_Node_Str\");\n xaDsMgr.registerDataSource(\"String_Node_Str\", new DummyXaDataSource(config), \"String_Node_Str\".getBytes());\n XaDataSource xaDs =... |
"protected void addLinks(SearchConfigurationResource halResource, Pageable pageable, LinkedList<Link> list) throws Exception {\n SearchConfigurationRest data = halResource.getContent();\n if (data != null) {\n list.add(buildLink(Link.REL_SELF, getMethodOn().getSearchConfiguration(data.getScope(), data.getC... |
"public Color getDebugColorAt(int x, int y) {\n return debugColors[x][y];\n}\n"
|
"public void processXML(AnnotationsProcessor annotationsProcessor, JavaModelInput jModelInput, TypeMappingInfo[] typeMappingInfos, JavaClass[] originalJavaClasses) {\n this.jModelInput = jModelInput;\n this.aProcessor = annotationsProcessor;\n Map<String, XmlEnum> xmlEnumMap = new HashMap<String, XmlEnum>();\n... |
"protected void onEvent(Event event) {\n if (!initialized) {\n CompleteTenantEvent completeTenantEvent = (CompleteTenantEvent) event;\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\");\n }\n for (Tenant tenant : completeTenantEvent.getTenants()) {\n for ... |
"private void processBlockChanges(NetData.NetMessage message) {\n for (NetData.BlockChangeMessage blockChange : message.getBlockChangeList()) {\n Block newBlock = blockManager.getBlock((short) blockChange.getNewBlock());\n logger.debug(\"String_Node_Str\", newBlock);\n WorldProvider worldProvide... |
"public void removeNodeContainer(final NodeContainer nodeContainer) {\n String uniqueName = nodeContainer.getNode().getUniqueName();\n removeUniqueNodeName(uniqueName);\n if (nodeContainer instanceof JobletContainer) {\n Set<NodeContainer> readedContainers = new HashSet<NodeContainer>();\n remove... |
"public void delete(String objectType, UUID key) {\n CDefinition def = keyspaceDefinition.getDefinitions().get(objectType);\n Map<String, String> values = getByKey(objectType, key);\n CQLStatementIterator statementIterator = cqlGenerator.makeCQLforDelete(objectType, key, values, null);\n mapResults(statemen... |
"public void setErrorHandler(ErrorHandler handler) {\n if (validatorHandler != null) {\n validatorHandler.setErrorHandler(handler);\n } else {\n reader.setErrorHandler(handler);\n }\n}\n"
|
"public void getRequirementsForPlacement(IBuilderContext context, List<ItemStack> requirements) {\n requirements.add(new ItemStack(Blocks.DIRT));\n}\n"
|
"static void adjustLayoutMasterSet(LayoutMasterSet layoutMasterSet, ConversionSectionWrappers conversionSectionWrappers, Map<String, Integer> headerBpda, Map<String, Integer> footerBpda) {\n List<ConversionSectionWrapper> sections = conversionSectionWrappers.getList();\n ConversionSectionWrapper section = null;\n... |
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n Permanent sourcePermanent = game.getPermanentOrLKIBattlefield(source.getSourceId());\n if (controller != null && sourcePermanent != null) {\n UUID exileId = CardUtil.getCardExileZoneId(ga... |
"public void testSemiSupervisedOnSynthetic() {\n DmvModel dmvModel = SimpleStaticDmvModel.getThreePosTagInstance();\n DmvTrainCorpus trainCorpus = getSemiSupervisedSyntheticCorpus(dmvModel);\n System.out.println(dmvModel.toString());\n System.out.println(trainCorpus);\n double expectedParseWeight = -31.2... |
"public void handleMapChange(MapChangeEvent event) {\n Set<?> affectedElements = event.diff.getChangedKeys();\n if (!affectedElements.isEmpty()) {\n LabelProviderChangedEvent newEvent = new LabelProviderChangedEvent(TreeLabelProviderImpl.this, affectedElements.toArray());\n fireLabelProviderChanged(... |
"public void testClosuresBasic() {\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\");\n}\n"
|
"public NetworkOfferingResponse createNetworkOfferingResponse(NetworkOffering offering) {\n NetworkOfferingResponse response = new NetworkOfferingResponse();\n response.setId(offering.getUuid());\n response.setName(offering.getName());\n response.setDisplayText(offering.getDisplayText());\n response.setT... |
"public void refresh() {\n Display.getDefault().asyncExec(new Runnable() {\n\n protected void execute(IProgressMonitor monitor) throws CoreException, InvocationTargetException, InterruptedException {\n IProject project = getResource();\n project.touch(null);\n }\n ... |
"public synchronized int hashCode() {\n if (__hashCodeCalc) {\n return 0;\n }\n __hashCodeCalc = true;\n int _hashCode = 1;\n _hashCode += Long.valueOf(getId()).hashCode();\n if (getName() != null) {\n _hashCode += getName().hashCode();\n }\n if (getDisplayName() != null) {\n ... |
"private long openPartition(int partitionIndex, int columnBase, boolean last) {\n try {\n Path path = partitionPathGenerator.generate(this, partitionIndex);\n final long partitionSize;\n if (ff.exists(path)) {\n path.chopZ();\n if (last) {\n partitionSize = t... |
"private boolean getPackageSizeInfoLI(String packageName, int userHandle, PackageStats pStats) {\n if (packageName == null) {\n Slog.w(TAG, \"String_Node_Str\");\n return false;\n }\n PackageParser.Package p;\n boolean dataOnly = false;\n String asecPath = null;\n synchronized (mPackages... |
"public ScriptConstraintValue[] getValues() {\n Map<String, List<String>> details = rmCaveatconfigService.getListDetails(info.getName());\n if (details == null) {\n details = new HashMap<String, List<String>>();\n }\n Map<String, List<String>> pivot = PivotUtil.getPivot(details);\n Set<String> val... |
"public static org.hl7.fhir.dstu2016may.model.ImplementationGuide convertImplementationGuide(org.hl7.fhir.dstu3.model.ImplementationGuide src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2016may.model.ImplementationGuide tgt = new org.hl7.fhir.dstu2016may.mo... |
"public void renderingLivingEvent(Pre evt) {\n if (evt.entity instanceof EntityLivingBase) {\n if (evt.entity.getActivePotionEffect(PoisonFrostBite.INSTANCE) != null) {\n try {\n ModelBase modelBase = (ModelBase) ReflectionHelper.getPrivateValue(RendererLivingEntity.class, evt.render... |
"public void run() {\n ctx.returnResultAsync(Results.json().render(ctx.getParameter(\"String_Node_Str\")));\n}\n"
|
"public void testPrepareColumns() {\n logger.info(\"String_Node_Str\");\n CQLTranslator translator = new CQLTranslator();\n UUID timeLineId = UUID.randomUUID();\n Date currentDate = new Date();\n CassandraCompoundKey key = new CassandraCompoundKey(\"String_Node_Str\", 1, timeLineId);\n CassandraPrimeU... |
"public void setEncoding(String encoding) {\n config.setEncoding(Encoding.getEncoding(encoding));\n}\n"
|
"void doGen(CodeBuilder cb) {\n cb.checkCast(EXTENDABLE_BUILDER_TYPE);\n baseArg.gen(cb);\n Label argIsNull = null;\n Label end = null;\n if (isNullable) {\n argIsNull = new Label();\n end = new Label();\n cb.dup();\n cb.ifNull(argIsNull);\n }\n extensionIdentifier.gen(c... |
"public void updateDbStatistics() {\n String cmd = dbConnectionInfo.getStatisticsCommand();\n if (cmd != null) {\n EntityManager em = openSession();\n try {\n Query q = em.createNativeQuery(cmd);\n EntityTransaction tx = getTransaction(em);\n q.executeUpdate();\n ... |
"private FragmentTransaction prepareHomeScreen(boolean animated, int type) {\n final FragmentManager fragmentManager = this.activity.getSupportFragmentManager();\n final HomeFragment fragment = this.activity.createHomeFragment();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n int ... |
"private void remoteRemove(Bytes keyBytes, int hash2, final long timestamp, final byte identifier) {\n lock();\n try {\n long keyLen = keyBytes.remaining();\n hashLookupLiveAndDeleted.startSearch(hash2);\n for (int pos; (pos = hashLookupLiveAndDeleted.nextPos()) >= 0; ) {\n long of... |
"void freeChildren() throws SQLException {\n if (firstOverflowPageId != 0) {\n PageStore store = index.getPageStore();\n int next = firstOverflowPageId;\n do {\n PageDataOverflow page = index.getPageOverflow(next);\n store.free(next, false);\n next = page.getNext... |
"public void notify_event(Event e) {\n if (!visible) {\n return;\n }\n Object[] elem = children.toArray();\n for (int i = 0; i < elem.length; i++) {\n NE_GUI_Element __elem = (NE_GUI_Element) elem[i];\n __elem.notify_event(e);\n }\n if (e instanceof EMouseClick) {\n EMouseC... |
"public boolean remove(Object key) {\n checkKey(key);\n sendEventAsync(remove, toParameters(remove, key), true);\n return false;\n}\n"
|
"public void onLoadingFailed(String imageUri, View view, FailReason failReason) {\n NotifyDownloadFinished(null);\n Log.d(TAG, \"String_Node_Str\" + imageUri);\n}\n"
|
"public EMovableType popWeaponForBearer() {\n List<RequestStack> stacks = super.getStacks();\n for (RequestStack stack : stacks) {\n if (stack.getMaterialType() == EMaterialType.BOW || stack.getMaterialType() == EMaterialType.SWORD || stack.getMaterialType() == EMaterialType.SPEAR) {\n stack.pop... |
"public void saveNBTData(NBTTagCompound compound) {\n NBTTagList list = new NBTTagList();\n for (LoreKey key : collectedLore) {\n NBTTagCompound tag = new NBTTagCompound();\n key.writeToNBT(tag);\n if (autoplayed.contains(key)) {\n tag.setBoolean(\"String_Node_Str\", true);\n ... |
"public int compare(ColumnInfo o1, ColumnInfo o2) {\n return Integer.valueOf(o1.order).compareTo(Integer.valueOf(o2.order));\n}\n"
|
"public List<PaymentInvoice> setPaymentInvoiceList(PaymentVoucher paymentVoucher, MoveLine moveLineToPay) throws AxelorException {\n List<PaymentInvoice> paymentInvoiceList = new ArrayList<PaymentInvoice>();\n for (MoveLine moveLine : this.getMoveLines(paymentVoucher, moveLineToPay)) {\n PaymentInvoice pay... |
"public boolean hasNextChild() {\n if (isFirst) {\n isFirst = false;\n advance();\n }\n return false;\n}\n"
|
"private double[][] combineTrainKernels(double[][] matrixA, double[][] matrixB) {\n double[][] matrix = new double[trainSet.size()][trainSet.size()];\n Pair<DirectedMultigraphWithRoot<Vertex<String>, Edge<String>>> pairA, pairB;\n for (int i = 0; i < trainSet.size(); i++) {\n pairA = trainSet.get(i);\n ... |
"public static void main(String[] argv) {\n if (argv.length < 2) {\n usage();\n System.exit(-1);\n }\n boolean endless = false;\n boolean randsleep = false;\n long sleep = 0;\n String props = null;\n long iters = 100;\n StringBuffer b = new StringBuffer();\n for (int j = 0; j < ... |
"public void send() {\n if (logger.isInfoEnabled()) {\n logger.info(\"String_Node_Str\" + getUrl());\n }\n for (Map.Entry<Statistics, AtomicReference<long[]>> entry : statisticsMap.entrySet()) {\n Statistics statistics = entry.getKey();\n AtomicReference<long[]> reference = entry.getValue(... |
"void generate() throws Exception {\n String className = \"String_Node_Str\";\n CppClass class_CRectangleSimple = CppClass.factory.create(className);\n class_CRectangleSimple.setComment(new CCommentImpl(\"String_Node_Str\"));\n CppTypeGenerator type_int = new CppTypeGenerator(Cpp.INT);\n CppVar var_x = C... |
"private void init() {\n JedisPoolConfig config = new JedisPoolConfig();\n config.setMaxIdle(100);\n config.setMaxTotal(100);\n config.setMaxWaitMillis(10000);\n config.setTestOnBorrow(true);\n config.setTestOnReturn(true);\n RedisClusterConfiguration redisClusterConfiguration = new RedisClusterCon... |
"protected File getFile(String path, boolean nativeCode, boolean notifyMissingJar) {\n File file = super.getFile(path, nativeCode);\n if (file == null && path.endsWith(\"String_Node_Str\") && ((generation.getRevision().getTypes() & ModuleRevision.TYPE_FRAGMENT) == 0)) {\n URL resourcePathInFragment = findI... |
"public void putAll(final Map<? extends K, ? extends V> map) {\n Pairs pairs = new Pairs(map.size());\n for (final K key : map.keySet()) {\n final V value = map.get(key);\n lsFutures.add(putAsync(key, value));\n }\n for (Future future : lsFutures) {\n try {\n future.get();\n ... |
"protected void _updateLinks() throws IllegalActionException {\n if (_channel == null) {\n return;\n }\n Iterator subscribers = _findSubscribers().iterator();\n if (_relation != null) {\n try {\n _relation.setContainer(null);\n } catch (NameDuplicationException e) {\n ... |
"public void renderReportlet(OutputStream os, HttpServletRequest request, IReportDocument reportDocument, String reportletId, String format, boolean masterPage, boolean svgFlag, List activeIds, Locale locale, boolean rtl, String iServletPath) throws RemoteException {\n if (reportDocument == null) {\n AxisFaul... |
"public Collection<ParameterEnum<?>> getParameters() {\n final Set<ParameterEnum<?>> params = new HashSet<ParameterEnum<?>>();\n params.addAll(super.getParameters());\n params.addAll(Arrays.asList(new ParameterEnum<?>[] { StoreParameters.StoreParam.INPUT_STORE, StoreParameters.StoreParam.OUTPUT_STORE, GlobalPa... |
"public void registerCoreTags() {\n new CuboidTags(denizen);\n new EntityTags(denizen);\n new ListTags(denizen);\n new LocationTags(denizen);\n if (Depends.citizens != null)\n new NPCTags(denizen);\n new PlayerTags(denizen);\n new QueueTags(denizen);\n new ScriptTags(denizen);\n new Ut... |
"private final void takeOverBlockedLand(LinkedList<ISPosition2D> blockedBorder, short startPartition) {\n for (ISPosition2D curr : blockedBorder) {\n short y = curr.getY();\n for (short x = curr.getX(); ; x++) {\n if (grid.isBlocked(x, y)) {\n grid.setPartitionAndPlayerAt(x, y... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.