content stringlengths 40 137k |
|---|
"public int compare(SdlAppInfo one, SdlAppInfo two) {\n if (one != null) {\n if (two != null) {\n if (one.isCustomRouterService) {\n if (two.isCustomRouterService) {\n return 0;\n } else {\n return 1;\n }\n ... |
"private KVValue<?> buildSpecialObject(Map<String, Object> map) {\n Entry<String, Object> first = map.entrySet().iterator().next();\n String key = first.getKey();\n Object value = first.getValue();\n if (\"String_Node_Str\".equals(key) && value instanceof String) {\n return new ByteArrayKVMongoObject... |
"private QueryDefinition newPreIVReportQuery(int filterNeeded, boolean sortNeeded, int groupNeeded, int mode) {\n QueryDefinition qd = new QueryDefinition();\n qd.setDataSetName(\"String_Node_Str\");\n IBaseExpression[] rowBeArray = getRowExpr();\n IBinding[] totalBeArray = getAggrExpr();\n for (int i = ... |
"private static Realm createAndValidate(String absolutePath, byte[] key, boolean validateSchema, boolean autoRefresh) {\n Map<Integer, Realm> realms = realmsCache.get();\n Realm realm = realms.get(absolutePath.hashCode());\n if (realm != null) {\n return realm;\n }\n realm = new Realm(absolutePath... |
"private void selectExperiment(TmfExperiment<?> experiment) {\n fStartTime = Long.MAX_VALUE;\n fEndTime = Long.MIN_VALUE;\n fSelectedExperiment = (TmfExperiment<ITmfEvent>) experiment;\n ArrayList<ControlFlowEntry> rootList = new ArrayList<ControlFlowEntry>();\n for (ITmfTrace<?> trace : experiment.getTr... |
"protected double decideTaxForReservePool() {\n double currentFoodReserve;\n if (getDataModel().getReservedFoodHistory().isEmpty()) {\n currentFoodReserve = 0;\n else\n currentFoodReserve = getDataModel().getCurrentReservedFood();\n double tax = 0;\n double deltaHappiness = getAverageHappin... |
"private void createActiveResourceAdapter(String rarModuleName) throws ConnectorRuntimeException {\n ConnectorRuntime cr = connectorRuntimeProvider.get();\n ConnectorRegistry creg = ConnectorRegistry.getInstance();\n if (creg.isRegistered(rarModuleName))\n return;\n if (ConnectorAdminServiceUtils.isE... |
"private void saveSession(Session session) throws UnknownSessionException {\n if (session == null || session.getId() == null) {\n logger.error(\"String_Node_Str\");\n return;\n }\n byte[] key = getByteKey(session.getId());\n byte[] value = SerializeUtils.serialize(session);\n session.setTim... |
"public void test1() {\n ScriptingContainer jruby = new ScriptingContainer();\n RubyObject o = (RubyObject) jruby.runScriptlet(\"String_Node_Str\");\n String xml = xs.toXML(o);\n System.out.println(xml);\n Object r = xs.fromXML(xml);\n}\n"
|
"public static IResultMetaData retrieveResultMetaData(DataSetHandle dataSetHandle) throws BirtException {\n List resultSetList = null;\n if (dataSetHandle instanceof OdaDataSetHandle) {\n PropertyHandle handle = dataSetHandle.getPropertyHandle(OdaDataSetHandle.RESULT_SET_PROP);\n if (handle.isLocal(... |
"public void setRecord(IRecord record, boolean fireChangeEvent) {\n if (settingRecord) {\n if (record != this.record) {\n throw new IllegalStateException(\"String_Node_Str\" + record + \"String_Node_Str\" + this.record + \"String_Node_Str\");\n }\n return;\n }\n try {\n s... |
"protected double updateHappinessAfterHunt(double foodHunted, double foodReceived) {\n double entitlement = getDataModel().getEconomicBelief() * foodHunted;\n double surplus = foodReceived - entitlement;\n Double currentHappiness = getDataModel().getCurrentHappiness();\n if (currentHappiness == null)\n ... |
"public boolean placeCrossCrops(World world, int x, int y, int z, ItemStack crops) {\n if (world.isRemote) {\n return false;\n }\n if (crops == null || crops.getItem() == null || crops.getItem() != Items.crops || crops.stackSize < 1) {\n return false;\n }\n TileEntity te = world.getTileEnti... |
"public IRemoteServiceContainer selectConsumerContainer(EndpointDescription endpointDescription) throws SelectContainerException {\n trace(\"String_Node_Str\", \"String_Node_Str\" + endpointDescription);\n List<String> sic = PropertiesUtil.getStringPlusProperty(endpointDescription.getProperties(), org.osgi.servic... |
"public BptBuilderBase nextBuilder() {\n if (!returnedThis) {\n blueprint.adjustToWorld(world, x, y, z, dir);\n returnedThis = true;\n BptBuilderBase builder;\n if (blueprint instanceof Blueprint) {\n builder = new BptBuilderBlueprint((Blueprint) blueprint, world, x, y, z);\n ... |
"public void testGetWordRangeAtCursor() {\n ExtractedText et = new ExtractedText();\n final MockInputMethodService mockInputMethodService = new MockInputMethodService();\n final RichInputConnection ic = new RichInputConnection(mockInputMethodService);\n mockInputMethodService.setInputConnection(new MockConn... |
"private void renderHeldItem(EntityBismuth entity, ItemStack stack, ItemCameraTransforms.TransformType camera, EnumHandSide handSide) {\n if (!stack.isEmpty()) {\n GlStateManager.pushMatrix();\n if (entity.isSneaking()) {\n GlStateManager.translate(0.0F, 0.2F, 0.0F);\n }\n this... |
"public ArrayList<Pair<double[], double[]>> evaluateGroup(ArrayList<Genotype<T>> group) {\n HeuristicBoardGamePlayer[] players = new HeuristicBoardGamePlayer[group.size()];\n int index = 0;\n for (Genotype<T> gene : group) {\n HeuristicBoardGamePlayer evolved = players[index];\n evolved.setHeuris... |
"public void onZoomChanged(int index, float value, boolean isMoving) {\n if (mZoomListener != null) {\n mZoomListener.onZoomChanged(index, value, isMoving);\n }\n if (mZoomIndex != index)\n onZoomIndexChanged(index);\n}\n"
|
"private void updateFilterText() {\n if (WordPress.currentBlog == null)\n return;\n String blogId = String.valueOf(WordPress.getCurrentBlog().getBlogId());\n int countAll = WordPress.wpDB.getMediaCountAll(blogId);\n int countImages = WordPress.wpDB.getMediaCountImages(blogId);\n int countUnattache... |
"private void notifyFaction(IPlayableFaction oldFaction, int oldLevel) {\n if (oldFaction != null && !oldFaction.equals(currentFaction)) {\n VampirismMod.log.d(TAG, \"String_Node_Str\", oldFaction.getKey());\n oldFaction.getPlayerCapability(player).onLevelChanged(0, oldLevel);\n }\n if (currentFa... |
"public synchronized static <T> T getInstance(String daoName, Class daoClass) {\n T obj = (T) cach.get(daoName);\n if (null == obj) {\n String className = p.getProperty(daoName);\n if (null != className && !\"String_Node_Str\".equals(className)) {\n try {\n Class<Object> cl... |
"public final boolean objectReferenceTryCompareAndSwap(ObjectReference objref, ObjectReference old, ObjectReference target, Word offset, Word unused, int mode) {\n if (org.jikesrvm.VM.BuildForIA32) {\n return Magic.attemptObject(objref.toObject(), offset.toOffset(), old.toObject(), target.toObject());\n } ... |
"public static void saveChatMessage(Context context, DialogMessageCache dialogMessageCache) {\n unreadMessagesCount++;\n ContentValues values = new ContentValues();\n values.put(DialogMessageTable.Cols.ROOM_JID_ID, dialogMessageCache.getRoomJidId());\n values.put(DialogMessageTable.Cols.SENDER_ID, dialogMes... |
"protected void _provideAttributes(WebExporter exporter) throws IllegalActionException {\n WebAttribute webAttribute;\n String titleValue = stringValue();\n if (titleValue == null || titleValue.equals(\"String_Node_Str\")) {\n titleValue = toplevel().getDisplayName();\n }\n exporter.setTitle(title... |
"private void initWorkspace() {\n ResourceService.initResourcePersistence();\n SQLExplorerPlugin.getDefault().initAllDrivers();\n List<TdDataProvider> providers = PrvResourceFileHelper.getInstance().getAllDataProviders();\n for (DataProvider provider : providers) {\n CorePlugin.getDefault().addConnet... |
"public void onEvent(final RosterItem item) {\n final String message = i18n().userAdded(item.getJID().toString());\n fireMessage(message);\n}\n"
|
"public void recordGenericInterfaceMethodWithReturnTypeGivenByTypeParameterDependentOnAnotherTypeParameterOfSameName(final DerivedGenericInterface<String> dep) throws Exception {\n Class<?> generatedClass = dep.getClass();\n Method mockedBaseMethod = generatedClass.getDeclaredMethod(\"String_Node_Str\");\n Typ... |
"public Object visitTimingExpression(cqlParser.TimingExpressionContext ctx) {\n Expression left = parseExpression(ctx.expression(0));\n Expression right = parseExpression(ctx.expression(1));\n TimingOperatorContext timingOperatorContext = new TimingOperatorContext(left, right);\n timingOperators.push(timing... |
"protected DataType<?>[][] getDataTypeArray() {\n DataType<?>[][] dataTypes = new DataType[5][];\n dataTypes[AttributeTypeInternal.INSENSITIVE] = new DataType[dataIS.getHeader().length];\n dataTypes[AttributeTypeInternal.SENSITIVE] = new DataType[dataDI.getHeader().length];\n dataTypes[AttributeTypeInternal... |
"public boolean isMatch(int value) {\n Every every = (Every) cronField.getExpression();\n int start = offset();\n return ((value - start) % every.getPeriod().getValue()) == 0;\n}\n"
|
"public Iterator<QueryableEntry> iterator() {\n return getEntries().iterator();\n}\n"
|
"public void run() {\n NetUtils net = new NetUtils(mContext);\n final Optional<Bitmap> bmp = net.downloadImageToBitmap(url);\n mContext.runOnUiThread(new Runnable() {\n\n public void run() {\n pref.setIcon(new BitmapDrawable(getResources(), bmp.get()));\n }\n });\n ... |
"public void testXmlTransientOnClassValid() {\n if (shouldGenerateSchema) {\n outputResolver = generateSchema(CONTEXT_PATH, PATH, 1);\n shouldGenerateSchema = false;\n }\n String result = validateAgainstSchema(PATH + \"String_Node_Str\", EMPTY_NAMESPACE, outputResolver);\n assertTrue(\"String_... |
"protected String featureValueOf(final ImageRef actual) {\n return actual.getRegistryUrl();\n}\n"
|
"private File localizeKeytab(Location keytabLocation) throws IOException {\n if (!DirUtils.mkdirs(tempDir)) {\n throw new IOException(String.format(\"String_Node_Str\", tempDir));\n }\n Path localKeytabFile = Files.createTempFile(tempDir.toPath(), null, \"String_Node_Str\", FileUtils.OWNER_ONLY_RW);\n ... |
"public Type getType() {\n return this.method.getType();\n}\n"
|
"public Mail replaceTag(Mail mail) {\n List<? extends MailModelTag> mailModelTagList = MailModelTag.all().fetch();\n String content = mail.getContent();\n String subject = mail.getSubject();\n for (MailModelTag mailModelTag : mailModelTagList) {\n LOG.debug(\"String_Node_Str\", mailModelTag.getTag())... |
"public double dYdP1() {\n return 1502.824469929139 + (-1438.6974831849952 + (460.959476642384 - 49.43847385647082 * b) * b) * b;\n}\n"
|
"private int regenerateHealth(HealthComponent health, int healAmount) {\n while (time.getGameTimeInMs() >= health.nextRegenTick) {\n newHeal++;\n health.nextRegenTick = health.nextRegenTick + (long) (1000 / health.regenRate);\n }\n return healAmount;\n}\n"
|
"public void listChanged(ListEvent<List<Issue>> listChanges) {\n while (listChanges.next()) {\n final int type = listChanges.getType();\n final int index = listChanges.getIndex();\n final String status;\n final int count;\n if (type == ListEvent.INSERT) {\n List issuesOf... |
"public Map<OWLObjectProperty, OWLClassExpression> getObjectPropertyDomains() {\n Map<OWLObjectProperty, OWLClassExpression> result = new HashMap<>();\n String query = SPARQLQueryUtils.PREFIXES + \"String_Node_Str\";\n ResultSet rs = executeSelectQuery(query);\n while (rs.hasNext()) {\n QuerySolution... |
"private void validateMandatoryMessageHeaders(IcapMessage message, boolean isDecodingResponse) {\n if (!isDecodingResponse) {\n if (!message.containsHeader(IcapHeaders.Names.HOST)) {\n throw new IcapDecodingError(\"String_Node_Str\");\n }\n }\n if (!isDecodingOptionsRequest) {\n ... |
"public String getWithDefault(String key, String defaultMessage, Optional<String> language, Object... params) {\n Optional<String> value = get(key, language, params);\n if (value.isPresent()) {\n return value.get();\n } else {\n MessageFormat messageFormat = getMessageFormatForLocale(defaultMessa... |
"public void forbidsFilesCreateFileOutsideOfTests() throws Exception {\n new PmdAssert(\"String_Node_Str\", Matchers.is(true), Matchers.not(Matchers.containsString(PmdValidatorTest.FILES_CREATE_ERR))).validate();\n}\n"
|
"public boolean shouldAttackEntity(EntityLivingBase attacker, EntityLivingBase victim) {\n return !this.isOnSameTeam(victim);\n}\n"
|
"public static <T> void writeObjectAsXml(File dest, T t) throws IOException {\n XMLEncoder xmlenc = null;\n try {\n xmlenc = new XMLEncoder(FileUtil.getOutputStream(dest));\n xmlenc.writeObject(bean);\n } finally {\n IoUtil.close(xmlenc);\n }\n}\n"
|
"public Cron map(Cron cron) {\n Validate.notNull(cron, \"String_Node_Str\");\n List<CronField> fields = Lists.newArrayList();\n for (CronFieldName name : CronFieldName.values()) {\n if (mappings.containsKey(name)) {\n fields.add(mappings.get(name).apply(cron.retrieve(name)));\n }\n ... |
"public final JFieldRef staticRef(JVar field) {\n return new JFieldRef(this, field);\n}\n"
|
"public static UrlBuilder fromString(final String url, final Charset inputEncoding) {\n if (url.isEmpty()) {\n return new UrlBuilder();\n }\n final Matcher m = URI_PATTERN.matcher(url);\n String protocol = null, hostName = null, path = null, anchor = null;\n Integer port = null;\n final Map<Str... |
"protected void internalTestManagedEmployeesMassInsertOrMerge(boolean shouldInsert, boolean shouldUseSequencing) throws Exception {\n int nLevels = 2;\n int nDirects = 50;\n int id = 0;\n EntityManager em = null;\n if (!shouldUseSequencing) {\n Employee emp = new Employee();\n em = createEn... |
"public void update() {\n final Collection<AdvanceTask> tasks = new ArrayList<AdvanceTask>();\n for (final UniversePane[] element : this.grid) {\n for (final UniversePane anElement : element) {\n tasks.add(new AdvanceTask(anElement));\n }\n }\n try {\n this.threadPool.invokeA... |
"public void setup() throws Exception {\n int slot = slotId;\n String devnode_motion = \"String_Node_Str\" + slot;\n String devnode_acc = \"String_Node_Str\" + slot;\n String devnode_mdacc_control = \"String_Node_Str\" + slot;\n motionDevice = new Motion();\n CharDeviceUtils.openDeviceWithRetry(motion... |
"private void handleOnWriteFinished(PageRange[] pages, int sequence) {\n if (mRequestCounter.get() != sequence) {\n return;\n }\n if (isCancelled()) {\n if (mEditor.isDone()) {\n PrintJobConfigActivity.this.finish();\n }\n return;\n }\n mControllerState = CONTROLLER... |
"public INDArray getRows(int[] rindices) {\n ensureNotCleanedUp();\n INDArray rows = create(new int[] { rindices.length, columns() });\n for (int i = 0; i < rindices.length; i++) {\n rows.putRow(i, getRow(rindices[i]));\n }\n return rows;\n}\n"
|
"public static TreeMap<String, String> getPaginationLinks(HttpServerExchange exchange, RequestContext context, long size) throws IllegalQueryParamenterException {\n String requestPath = URLUtils.removeTrailingSlashes(exchange.getRequestPath());\n String queryString = URLUtils.decodeQueryString(exchange.getQuerySt... |
"private byte[] applyMixins(String transformedName, byte[] basicClass) {\n ClassNode targetClass = this.readClass(basicClass, true);\n List<MixinInfo> mixins = this.config.getMixinsFor(transformedName);\n Collections.sort(mixins);\n for (MixinInfo mixin : mixins) {\n this.logger.info(\"String_Node_St... |
"public void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == GodotAndroidRequest.GOOGLE_AUTHENTICATION_REQUEST) {\n GoogleSignInResult result = Auth.GoogleSignInApi.getSignInResultFromIntent(data);\n if (result != null && result.isSuccess()) {\n GoogleSi... |
"protected DgEnvironmentFactory setupEnvironment() {\n resetEnvironment(false);\n addRegexMatchOperation(getEnvironmentFactory());\n addEvalOperation(getEnvironmentFactory(), \"String_Node_Str\");\n addEvalOperation(getEnvironmentFactory(), \"String_Node_Str\");\n addEvalOperation(getEnvironmentFactory()... |
"private boolean shouldPerformTransformations(final List<DSSTransform> transforms) {\n if (transforms != null) {\n for (final DSSTransform transform : transforms) {\n if (!transform.isPerform()) {\n return true;\n }\n }\n }\n return false;\n}\n"
|
"protected synchronized List<ParameterDefinition> getParameterDefintions() {\n if (this.parameterDefinitions == null) {\n AspectDefinition aspectDefinition = dictionaryService.getAspect(customTypeAspect);\n if (aspectDefinition == null) {\n throw new AlfrescoRuntimeException(I18NUtil.getMess... |
"public Map<SkyKey, SkyValue> getValues() {\n return Collections.unmodifiableMap(Maps.transformValues(nodeMap, entry -> {\n try {\n return entry.toValue();\n }\n }));\n}\n"
|
"public void doWork(Window dialog, MouseEvent event) {\n AddGroupDialog addGroupDialog = (AddGroupDialog) dialog;\n String groupName = groupNameField.getText().trim();\n if (\"String_Node_Str\".equals(groupName)) {\n JOptionPane.showMessageDialog(null, \"String_Node_Str\");\n } else if (!FileUtil.dir... |
"private TestCase createTestCaseFromNode(Element e, Pattern filter) throws Exception {\n String name = StringUtil.emptyToNull(e.getAttribute(\"String_Node_Str\"));\n if (name == null)\n throw new Exception(\"String_Node_Str\");\n if (filter != null && !filter.matcher(name).matches())\n return nul... |
"public boolean hasNext() {\n while (i < os.length - 1 && !current.hasNext()) current = ((Container<?>) os[++i]).containerIterator();\n return i < os.length - 1 || current.hasNext();\n}\n"
|
"private void btnImportActionPerformed(java.awt.event.ActionEvent evt) {\n String lastFolder = MageFrame.getPreferences().get(\"String_Node_Str\", \"String_Node_Str\");\n if (!lastFolder.isEmpty()) {\n fcImportDeck.setCurrentDirectory(new File(lastFolder));\n }\n int ret = fcImportDeck.showOpenDialog... |
"public void onPrepareOptionsMenu(Menu menu) {\n menu.clear();\n menu.add(Menu.NONE, MENU_ITEM_SEARCH, Menu.NONE, getString(R.string.search)).setIcon(new IconDrawable(getActivity(), Iconify.IconValue.fa_search).colorRes(R.color.black).actionBarSize()).setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);\n menu.ad... |
"public boolean contains(int i) {\n if (densePart != null && inDenseRange(i)) {\n return densePart.contains(i);\n } else {\n return sparsePart.contains(i);\n }\n}\n"
|
"public void remove() {\n Iterators.checkRemove(!atStart);\n iterator.remove();\n}\n"
|
"public CreateStorageSnapshotResponseType CreateStorageSnapshot(CreateStorageSnapshotType request) throws EucalyptusCloudException {\n final long actionStart = System.currentTimeMillis();\n CreateStorageSnapshotResponseType reply = (CreateStorageSnapshotResponseType) request.getReply();\n StorageProperties.upd... |
"public void removeCustomOfferingDetails(long vmId) {\n Map<String, String> details = _uservmDetailsDao.listDetailsKeyPairs(vmId);\n details.remove(UsageEventVO.DynamicParameters.cpuNumber.name());\n details.remove(UsageEventVO.DynamicParameters.cpuSpeed.name());\n details.remove(UsageEventVO.DynamicParamet... |
"protected String getNeededModulesJarStr() {\n final boolean exportingJob = ProcessorUtilities.isExportConfig();\n final String classPathSeparator = extractClassPathSeparator();\n final String libPrefixPath = getRootWorkingDir(true);\n final File libDir = JavaProcessorUtilities.getJavaProjectLibFolder();\n ... |
"public Class classFromRow(AbstractRecord rowFromDatabase, AbstractSession session) throws DescriptorException {\n ((XMLRecord) rowFromDatabase).setSession(session);\n if (hasClassExtractor() || shouldUseClassNameAsIndicator()) {\n return super.classFromRow(rowFromDatabase, session);\n }\n Object ind... |
"private static ArgParser getParser() {\n ArgParser parser = new ArgParser(\"String_Node_Str\");\n parser.addArgument(new ArgDef().setShortOption('i').setLongOpt(\"String_Node_Str\").setDescription(\"String_Node_Str\").withParameter(true, \"String_Node_Str\").setRequired(true));\n parser.addArgument(new ArgDef... |
"public void testNoRepeatOfSmallImage2() {\n Position imagePosition = new Position(2, 2);\n BackgroundImageLayout layout = getLayoutOfSmallImage2();\n List positions = layout.getImagePositions(AreaConstants.NO_REPEAT);\n assertEquals(1, positions.size());\n assertEquals(imagePosition, positions.iterator(... |
"protected void invalidateValueCache() {\n if (cmap.isCacheValue()) {\n synchronized (this) {\n valueObject = null;\n }\n }\n}\n"
|
"public TorusPredPreyTask<T> getLonerTaskInstance() {\n if (task == null) {\n task = new TorusEvolvedPredatorsVsStaticPreyTask<T>();\n while (task.objectives.size() < Parameters.parameters.integerParameter(\"String_Node_Str\")) {\n task.addAllObjectives(task.objectives.size());\n }\n ... |
"public void execute() throws MojoExecutionException, MojoFailureException {\n try {\n SAXParserFactory spf = SAXParserFactory.newInstance();\n spf.setNamespaceAware(true);\n parser = spf.newSAXParser();\n } catch (SAXException e) {\n throw new Error(e);\n } catch (ParserConfigurati... |
"PageBtree split(int splitPoint) throws SQLException {\n int newPageId = index.getPageStore().allocatePage();\n PageBtreeNode p2 = PageBtreeNode.create(index, newPageId, parentPageId);\n index.getPageStore().logUndo(this, data);\n if (onlyPosition) {\n p2.onlyPosition = true;\n }\n int firstChi... |
"public void testClosure7() {\n String contents = \"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 assertExprType(conten... |
"public Object getId() {\n return new FactoryImpl.ProxyKey(\"String_Node_Str\", lockObject);\n}\n"
|
"public static int populateAggregationTable(AggregateTable table, AggregateObject aggreObj, int groupLvl, boolean aftergroup, boolean isDetailedRow) throws DataException {\n Context cx = Context.enter();\n AggregateRegistry reg = table.getAggrRegistry(groupLvl, calculationLvl, isDetailedRow, cx);\n try {\n ... |
"Type[] getGenericInterfaces(Class c) {\n try {\n return c.getGenericInterfaces();\n } catch (Throwable ex) {\n ex.printStackTrace();\n System.err.println(\"String_Node_Str\" + c + \"String_Node_Str\");\n return c.getInterfaces();\n }\n}\n"
|
"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 String getCaptionKey() {\n if (captionKey == null) {\n if (generateBy instanceof TableItemDesign) {\n return ((TableItemDesign) generateBy).getCaptionKey();\n }\n return captionKey;\n}\n"
|
"private void parseString() throws SyntaxException {\n if (this.code.charAt(this.pointer) != '\"') {\n return;\n }\n this.pointer++;\n String str = \"String_Node_Str\";\n int startPos = this.pointer;\n while ((this.pointer < this.code.length()) && ((this.code.charAt(this.pointer) != '\"'))) {\n... |
"public boolean apply(Game game, Ability source) {\n for (UUID opponentId : game.getOpponents(source.getControllerId())) {\n Player opponent = game.getPlayer(opponentId);\n if (opponent != null) {\n opponent.loseLife(2, game, false);\n }\n }\n return true;\n}\n"
|
"private CacheConfig extractCacheConfigFromMessage() {\n int clientVersion = endpoint.getClientVersion();\n if (BuildInfo.UNKNOWN_HAZELCAST_VERSION == clientVersion) {\n boolean compatibilityEnabled = nodeEngine.getProperties().getBoolean(GroupProperty.COMPATIBILITY_3_6_CLIENT_ENABLED);\n if (compat... |
"public void addParent(Integer parentId) {\n this.parents.clear();\n this.parents.add(parentId);\n}\n"
|
"protected BigInteger convertObjectToBigInteger(Object sourceObject) throws ConversionException {\n BigInteger bigInteger = null;\n try {\n if (sourceObject instanceof BigInteger) {\n bigInteger = (BigInteger) sourceObject;\n } else if (sourceObject instanceof String) {\n bigIn... |
"public org.springframework.core.env.PropertySource<?> locate(org.springframework.core.env.Environment environment) {\n ConfigClientProperties client = defaults.override(environment);\n CompositePropertySource composite = new CompositePropertySource(\"String_Node_Str\");\n RestTemplate restTemplate = this.rest... |
"public List<DoubleSolution> getResult() {\n return this.epsilonArchive.getSolutionList();\n}\n"
|
"public void initSPOTConfFileName() {\n runCommand(\"String_Node_Str\" + investigationId + \"String_Node_Str\" + File.separator + \"String_Node_Str\", false);\n}\n"
|
"public CompoundTag asNbt() {\n CompoundTag tag = new CompoundTag(uniqueId().toString());\n tag.addTag(new IntTag(\"String_Node_Str\").setValue(dimension.asByte()));\n tag.addTag(new IntTag(\"String_Node_Str\").setValue(gameMode.asByte()));\n tag.addTag(new IntTag(\"String_Node_Str\").setValue(score));\n ... |
"public boolean hasExtensions() {\n return CSharpTypeDeclarationImplUtil.hasExtensions(this);\n}\n"
|
"public float getScore(float[] data) {\n float logDval = 0.0f;\n for (int i = 0; i < feature.length; i++) {\n float logDiff = feature[i] - meanTransformed[i];\n logDval += logDiff * logDiff * precisionTransformed[i];\n }\n logDval = logMath.lnToLog(logDval);\n logDval -= logPreComputedGauss... |
"public static WebArchive createDeployment() {\n WebArchive war = ShrinkWrap.create(WebArchive.class, \"String_Node_Str\").addClass(AddressAgentTest.class).addClasses(AddressMock.class, AddressOperation.class, Address.class).addClasses(Address_.class).addAsLibraries(SOLDER).addAsWebInfResource(\"String_Node_Str\", \... |
"public Vector extractPrimaryKeyFromExpression(boolean requiresExactMatch, Expression expression, AbstractRecord translationRow, AbstractSession session) {\n AbstractRecord primaryKeyRow = createRecord(getPrimaryKeyMappings().size(), session);\n expression.getBuilder().setSession(session.getRootSession(null));\n ... |
"public ByteArray getContent() {\n if (content != null && content.eIsProxy()) {\n InternalEObject oldContent = (InternalEObject) content;\n content = (ByteArray) eResolveProxy(oldContent);\n if (content != oldContent) {\n if (eNotificationRequired()) {\n eNotify(new ENo... |
"public SubmissionStepConfig toModel(SubmissionSectionRest obj) {\n init();\n SubmissionStepConfig step;\n try {\n step = submissionConfigReader.getStepConfig(obj.getId());\n } catch (SubmissionConfigReaderException e) {\n throw new RuntimeException(e);\n }\n return step;\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.