content stringlengths 40 137k |
|---|
"public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n outState.putInt(KEY_IN_PROGRESS_MESSAGE_ID, mInProgressMessageId);\n outState.putIntegerArrayList(KEY_OLD_SITES_IDS, mOldSitesIDs);\n outState.putString(KEY_NONCE_AUTHENTICATOR, mNonceAuthenticator);\n outState.p... |
"public static ClassificationStatistics adaptedRandIndexStats3D(ImagePlus originalLabels, ImagePlus proposedLabels) {\n if (originalLabels.getImageStack().getProcessor(1) instanceof ShortProcessor == false || proposedLabels.getImageStack().getProcessor(1) instanceof ShortProcessor == false)\n return null;\n ... |
"private void replyPost(UComment comment) {\n if (!UserAPI.isLoggedIn()) {\n gotoLogin();\n } else {\n Intent intent = new Intent(this, ReplyActivity.class);\n intent.putExtra(Consts.Extra_Ace_Model, post);\n if (comment != null) {\n intent.putExtra(Consts.Extra_Simple_Comme... |
"private void test(String... args) {\n for (int i = 0; i < args.length; i++) {\n if (\"String_Node_Str\".equals(args[i])) {\n url = args[++i];\n } else if (\"String_Node_Str\".equals(args[i])) {\n driver = args[++i];\n } else if (\"String_Node_Str\".equals(args[i])) {\n ... |
"public List<String> get(String webhook) {\n return limitChildren(webhook);\n}\n"
|
"public void onGcpClick(MarkerSource gcp) {\n ((com.droidplanner.gcp.Gcp) gcp).toogleState();\n gcpMapFragment.markers.updateMarker(gcp);\n}\n"
|
"public AdapterStore getAdapterStore(final PropertyManagement runTimeProperties) throws Exception {\n PersistableStore store = (PersistableStore) StoreParameters.StoreParam.INPUT_STORE.getHelper().getValue(runTimeProperties);\n return store.getDataStoreOptions().createAdapterStore();\n}\n"
|
"private final int computeOomAdjLocked(ProcessRecord app, int cachedAdj, ProcessRecord TOP_APP, boolean doingAll, long now) {\n if (mAdjSeq == app.adjSeq) {\n return app.curRawAdj;\n }\n if (app.thread == null) {\n app.adjSeq = mAdjSeq;\n app.curSchedGroup = Process.THREAD_GROUP_BG_NONINTE... |
"public Expression createCaseOperandExpression(final String expression, final MacroConfiguration macroConfiguration, Set<String> usedMacros) {\n return getOrDefault(\"String_Node_Str\", delegate, expression, false, macroConfiguration, CASE_OPERAND_EXPRESSION_SUPPLIER);\n}\n"
|
"public static void trackModuleRelativePageView(String page) {\n trackPageViewAsync(GWT.getModuleName() + \"String_Node_Str\" + page);\n}\n"
|
"private static Object convertCollectionToJavaTypes(Collection<?> coll, Object empty, Type genericReturnType) {\n Object ret = Transient.invoke(empty);\n for (Object o : coll) ret = ConjBang.invoke(ret, convertCollectionElementToJavaTypes(o, genericReturnType));\n return Persistent.invoke(ret);\n}\n"
|
"private void addNullMap(TrackerNode node) {\n final Object propName = node.getFieldScript();\n LinkedHashSet<TrackerNode> nodes = _nullMap.get(propName);\n if (nodes == null) {\n nodes = new HashSet<TrackerNode>();\n _nullMap.put(propName, nodes);\n }\n nodes.add(node);\n removeBeanMap(... |
"protected void handleDestinationBrowseButtonPressed() {\n FileDialog dialog = new FileDialog(getContainer().getShell(), SWT.SAVE);\n JobExportType jobExportType = getCurrentExportType1();\n switch(jobExportType) {\n case WSWAR:\n dialog.setFilterExtensions(new String[] { \"String_Node_Str\" ... |
"public void testCrashingOnBadCode_GRE290_2() {\n runNegativeTest(new String[] { \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" }, \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_St... |
"public List<QBHistoryMessage> getDialogMessages(QBDialog dialog, String roomJidId) throws QBResponseException {\n Bundle bundle = new Bundle();\n QBCustomObjectRequestBuilder customObjectRequestBuilder = new QBCustomObjectRequestBuilder();\n customObjectRequestBuilder.setPagesLimit(Consts.DIALOG_MESSAGES_PER_... |
"public List executeQuery(String cqlQuery, Class clazz, List<String> relationalField, CassandraDataHandler dataHandler) {\n EntityMetadata entityMetadata = KunderaMetadataManager.getEntityMetadata(clazz);\n CqlResult result = null;\n List returnedEntities = new ArrayList();\n try {\n if (log.isInfoEn... |
"public AutoFilter autoFilter(int field, Object criteria1, int filterOp, Object criteria2, boolean visibleDropDown) {\n AutoFilter af = _sheet.getAutoFilter();\n if (af == null) {\n af = autoFilter();\n }\n final FilterColumn fc = BookHelper.getOrCreateFilterColumn(af, field - 1);\n BookHelper.set... |
"public boolean incrementToken() throws IOException {\n if (!emitSingleTokens && unusedTokens.size() > 0) {\n Log.debug(\"String_Node_Str\");\n Token aToken = unusedTokens.remove(0);\n emit(aToken);\n return true;\n }\n if (lastToken != null) {\n emit(lastToken);\n las... |
"public boolean runCommand() {\n if (args.length < 1) {\n return false;\n }\n String playerName = this.getPlayerNameFromArgs(args[0]);\n if (playerName != null) {\n String reason = MCBouncerUtil.getReasonOrDefault(args, MCBouncerUtil.implodeWithoutFirstElement(args, \"String_Node_Str\"), MCBCo... |
"public synchronized void openConnection() {\n if (isConnected() || isConnecting())\n return;\n final String tag = toString();\n final int connectionType = connParams.getConnectionType();\n final Bundle paramsBundle = connParams.getParamsBundle();\n if (mavlinkConn == null) {\n switch(conne... |
"public static AccessKeyMetadataType getAccessKey(ServiceConfiguration configuration, String accessKeyId, String userName, String effectiveUserId) throws Exception {\n AccessKeyMetadataType retVal = null;\n boolean seenAllAccessKeys = false;\n String accessKeyMarker = null;\n while (!seenAllAccessKeys && (r... |
"public void testInsertionSpeed() {\n BatchInserter inserter = new BatchInserterImpl(PATH);\n BatchInserterIndexProvider provider = new LuceneBatchInserterIndexProvider(inserter);\n BatchInserterIndex index = provider.nodeIndex(\"String_Node_Str\", EXACT_CONFIG);\n index.setCacheCapacity(\"String_Node_Str\"... |
"public Resource copyDefinitionsIntoFolder(URI destinationUri) {\n Resource resource = getIndicatorsDefinitions().eResource();\n EMFUtil.getInstance().changeUri(resource, destinationUri);\n if (EMFUtil.getInstance().saveResource(resource)) {\n if (log.isInfoEnabled()) {\n log.info(\"String_No... |
"public static Date fromCGL(String str) {\n SimpleDateFormat sdf = QuotesStreamReader.DATE_FORMAT_SHORT;\n try {\n return sdf.parse(str);\n } catch (ParseException e) {\n throw new RuntimeException(\"String_Node_Str\" + str, e);\n }\n}\n"
|
"public void updateFiltersFromUIDL(UIDL uidl, ApplicationConnection client) {\n if (uidl == null) {\n return;\n }\n getWidget().filters.filtersVisible = uidl.hasAttribute(\"String_Node_Str\") ? uidl.getBooleanAttribute(\"String_Node_Str\") : false;\n getWidget().filters.setVisible(getWidget().filters... |
"public Composite createArea(Composite parent) {\n int numColumns = 2;\n if (description != null && description.length() > 0) {\n numColumns++;\n }\n if ((style & BUTTON_AGGREGATION) == BUTTON_AGGREGATION) {\n numColumns++;\n }\n if ((style & BUTTON_GROUP) == BUTTON_GROUP) {\n num... |
"public Object[] getChildren(Object model) {\n LibraryHandle handle = ((LibraryHandle) model);\n ArrayList list = new ArrayList();\n if (handle.getNamespace() == null) {\n list.add(handle.getDataSources());\n list.add(handle.getDataSets());\n }\n return list.toArray();\n}\n"
|
"public void clearWeed() {\n this.weed = false;\n this.worldObj.setBlockMetadataWithNotify(this.xCoord, this.yCoord, this.zCoord, 0, 2);\n this.markDirtyAndMarkForUpdate();\n}\n"
|
"protected boolean wakeAll(Slot nd) {\n boolean res = false;\n if (nd != null)\n for (; nd != null; nd = nd.getNext()) nd.wake();\n}\n"
|
"public void run() {\n XMLRPCClientInterface client = XMLRPCFactory.instantiate(blog.getUri(), blog.getHttpuser(), blog.getHttppassword());\n Map<String, Object> replyHash = new HashMap<String, Object>();\n replyHash.put(\"String_Node_Str\", Long.toString(comment.commentID));\n replyHash.put(\"String_Node_S... |
"protected void updateSelection() {\n ConfigTreeNode node = _tree.getSelectedNode();\n _epanel.setObject(node == null ? null : node.getRawConfig());\n boolean enable = (node != null);\n _exportConfigs.setEnabled(enable);\n _cut.setEnabled(enable);\n _copy.setEnabled(enable);\n _delete.setEnabled(en... |
"public String readRawContent(ZVerseBackendState rafBook, Key key) throws IOException {\n SwordBookMetaData bookMetaData = getBookMetaData();\n final String charset = bookMetaData.getBookCharset();\n final String compressType = (String) bookMetaData.getProperty(ConfigEntryType.COMPRESS_TYPE);\n final String... |
"private List<Map<String, Object>> getFileListDataSorted(String path, int sort_type) {\n updatePathShow(path);\n return getFileListDataSortedAsync(path, sort_type);\n}\n"
|
"public void testInsert() throws Exception {\n DataHubKey key = new DataHubKey((short) 1003);\n String channelName = \"String_Node_Str\";\n byte[] data = \"String_Node_Str\".getBytes();\n long millis = 90210L;\n Optional<String> contentType = Optional.of(\"String_Node_Str\");\n DataHubCompositeValue v... |
"public boolean equals(final Object obj) {\n if (this == obj) {\n return true;\n }\n if (obj == null) {\n return false;\n }\n if (!(obj instanceof FilterKey)) {\n final Throwable t = new RuntimeException(\"String_Node_Str\");\n t.printStackTrace();\n return false;\n ... |
"public boolean searcherInitialization(IndexSearcher searcher, Weight firstOrderWeight) throws IOException {\n if (invertedIndex == null) {\n if (cacheGetter != null) {\n invertedIndex = (int[][]) cacheGetter.getCache();\n } else {\n invertedIndex = DictionaryRecIdCache.INSTANCE.g... |
"private void doFireball(final SnipeData v) {\n final Vector targetCoords = new Vector(this.getTargetBlock().getX() + .5 * this.getTargetBlock().getX() / Math.abs(this.getTargetBlock().getX()), this.getTargetBlock().getY() + .5, this.getTargetBlock().getZ() + .5 * this.getTargetBlock().getZ() / Math.abs(this.getTarg... |
"private void initUIListenerForBaseTypeCombos() {\n customChangedListener = new ISelectionChangedListener() {\n\n public void selectionChanged(SelectionChangedEvent event) {\n if (section != null && getSelectedBaseTypeName().length() > 0) {\n section.autoCommit();\n }\n ... |
"public static <ModelClass extends Model> Update table(Class<ModelClass> table) {\n return new Update<>(table);\n}\n"
|
"public static OTDataObject copy(OTDataObject original, OTDatabase otDb, OTDataList orphanDataList, int maxDepth, OTExternalIDProvider idProvider) throws Exception {\n OTDataObject copy = otDb.createDataObject(original.getType());\n copyInto(original, copy, orphanDataList, maxDepth, idProvider, dataObjectFinder);... |
"protected void setUp() throws MojoExecutionException, MojoFailureException {\n if (sourcePaths == null) {\n List<String> sourceRoots = project.getCompileSourceRoots();\n List<File> sources = new ArrayList<File>();\n for (String sourceRoot : sourceRoots) {\n File source = new File(sou... |
"private void processTransferredResource(ModelService model, Report report, SimpleJobPluginInfo jobPluginInfo, Job job, List<TransferredResource> resources) {\n if (destinationId == null) {\n destinationId = \"String_Node_Str\";\n }\n try {\n Map<String, String> moveResult = RodaCoreFactory.getTr... |
"private void extractFile(final FSFile rec, final File outDir, final ExtractProgressMonitor progressDialog, final LinkedList<String> errorMessages, final ExtractProperties extractProperties, final ObjectContainer<Boolean> skipDirectory, final FSForkType forkType) {\n final String originalFileName;\n if (forkType ... |
"public JSONObject createPathUpdateJson(GeometryPath path, int typeOfEdit, int atIndex) {\n JSONObject topJson = new JSONObject();\n UUID pathUuid = pathList.get(path);\n topJson.put(\"String_Node_Str\", \"String_Node_Str\");\n topJson.put(\"String_Node_Str\", pathUuid.toString());\n if (typeOfEdit == 2)... |
"public static void oneTimeSetup() {\n mgr = IntegrationTestHelper.createRedmineManager();\n userManager = mgr.getUserManager();\n try {\n createNonAdminUser();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n}\n"
|
"public boolean setVoiceInput(VoiceInput vi) {\n if (mVoiceInput == null && vi != null) {\n mService.onKeyboardLanguageChanged();\n mVoiceInput = vi;\n if (isVoiceMode() && mVoiceInput != null) {\n if (DBG) {\n Log.d(TAG, \"String_Node_Str\");\n }\n ... |
"public Object invoke(Object self, Method method, Method proceed, Object[] args) throws Exception {\n try {\n final String mname = method.getName();\n if (mname.equals(\"String_Node_Str\")) {\n int a = (_origin != null) ? (Integer) method.invoke(_origin, args) : 0;\n return 37 * 3... |
"protected EObject getMatchedEObject(EObject from, int side) throws IllegalArgumentException {\n if (side != LEFT_OBJECT && side != RIGHT_OBJECT && side != ANCESTOR_OBJECT) {\n throw new IllegalArgumentException(EMFCompareDiffMessages.getString(\"String_Node_Str\"));\n }\n EObject matchedEObject = null;... |
"private void startRecording(AudioFormat audioFormat) throws SoundTransformException {\n final TargetDataLine line;\n DataLine.Info info = new DataLine.Info(TargetDataLine.class, audioFormat);\n this.baos = new ByteArrayOutputStream();\n if (!AudioSystem.isLineSupported(info)) {\n throw new SoundTran... |
"public int compareTo(T o) {\n if (!(this.clazz.isInstance(o))) {\n try {\n if ((this.clazz).equals(Long.class)) {\n Integer value = Integer.valueOf(this.getStringValue());\n Integer obj = Integer.valueOf(o.toString());\n return value.compareTo(obj);\n ... |
"public Long deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {\n customDeserializerInvoked.value = true;\n if (json == null || json.isJsonNull()) {\n return null;\n } else {\n Number number = json.getAsJsonPrimitive().getAsNumber();\n ... |
"public boolean equals(Object o) {\n if (o instanceof ExpressionCacheKey) {\n ExpressionCacheKey other = (ExpressionCacheKey) o;\n return this.expr.equals(other.expr) && contextsEqual(this, other) && originalContextsEqual(this, other);\n }\n return false;\n}\n"
|
"public void fire() throws IllegalActionException {\n BooleanToken value = null;\n BooleanToken in = null;\n for (int i = 0; i < input.getWidth(); i++) {\n if (input.hasToken(i)) {\n in = (BooleanToken) (input.get(i));\n if (in != null)\n value = _updateFunction(in, ... |
"private void handleRankingReconsideration(Message message) {\n if (!(message.obj instanceof RankingReconsideration))\n return;\n RankingFuture future = (RankingFuture) message.obj;\n future.run();\n try {\n NotificationRecord record = future.get();\n synchronized (mNotificationList) {\... |
"private boolean modifyJointCondition() throws SemanticException {\n JointDataSetHandle handle = null;\n if (leftDataSetName == null || rightDataSetName == null)\n return false;\n if (propertyPageContainer instanceof DataSetEditor) {\n boolean selectionChanged = true;\n handle = (JointData... |
"public static void resizeAndCenter(final Component component) {\n final GraphicsDevice gd = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();\n final int screenWidth = gd.getDisplayMode().getWidth();\n final int screenHeight = gd.getDisplayMode().getHeight();\n component.setSize((... |
"public static TableDescriptor getTableDescriptor(HTableDescriptor descriptor) {\n Set<ColumnFamilyDescriptor> families = new HashSet<>();\n for (HColumnDescriptor family : descriptor.getColumnFamilies()) {\n families.add(getColumnFamilyDescriptor(family));\n }\n Set<CoprocessorDescriptor> coprocesso... |
"public String resolveDestination(String name) throws DestinationResolutionException {\n String queueName = name;\n if (this.resourceIdResolver != null) {\n queueName = this.resourceIdResolver.resolveToPhysicalResourceId(name);\n }\n if (isValidQueueUrl(queueName)) {\n return queueName;\n }... |
"public double[] getQuality(Random rand, double[] ids) {\n double[] res = new double[ids.length];\n double log2 = Math.log(2);\n double dist;\n int r;\n int max = ((RegionCoverageEmbedding) this.embedding).getMax();\n for (int i = 0; i < res.length; i++) {\n Vector<Integer> numb = new Vector<In... |
"public static CheckException chainCheckExceptions(List<CheckException> exs) {\n CheckException last = null;\n for (final CheckException ex : Lists.reverse(exs)) {\n if (last != null) {\n ex.addOtherException(ex);\n }\n last = ex;\n }\n return last;\n}\n"
|
"public static boolean isNPC(Player player) {\n Plugin plugin = server.getPluginManager().getPlugin(\"String_Node_Str\");\n if (plugin != null) {\n return com.citizens.npcs.NPCManager.isNPC(player);\n }\n return false;\n}\n"
|
"public boolean isOnLocalWCETPath(MethodInfo method, InstructionHandle ih) {\n ControlFlowGraph cfg = method.getCode().getControlFlowGraph(false);\n BasicBlockNode block = cfg.getHandleNode(ih, true);\n if (block == null) {\n return false;\n }\n for (ExecutionContext node : wcetTool.getCallGraph()... |
"public RenderProps createRenderProps() {\n MeshBase mesh = getMesh();\n if (mesh != null) {\n RenderProps props = mesh.createRenderProps(this);\n return props;\n } else {\n return RenderProps.createRenderProps(this);\n }\n}\n"
|
"public void offer(SagaEvent sagaEvent) {\n boolean success = false;\n do {\n try {\n persistentStore1.offer(sagaEvent);\n success = true;\n } catch (Exception e) {\n e.printStackTrace();\n try {\n sleep(retryDelay);\n } catch (In... |
"public int getDefaultWidth(int colNumber) {\n Dimension size = getPreferredSize().shrink(getFigure().getInsets().getWidth(), getFigure().getInsets().getHeight());\n ;\n if (getRowCount() == 0) {\n return size.width;\n }\n int allNumbers = getColumnCount();\n if (allNumbers <= 0) {\n ret... |
"public void test() {\n boolean[][] blocked = { { false, false, false, false, false, false, false, false, false, false, false, false }, { false, false, false, false, false, false, false, false, false, false, false, false }, { false, false, false, false, false, false, false, false, false, false, false, false }, { fal... |
"private SimpleHttpResponse requestHttpResponse(String url, Map<String, String> header, Map<String, Object> postMap, Map<String, String> getMap, int method) throws HttpConnectMatjiException {\n SimpleHttpResponse httpResponse = null;\n NetworkInfo netInfo_mobile = cm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE... |
"public void createCriteriaAndDefinition(ModelConfiguration config) {\n config.removeAllCriteria();\n for (String attr : config.getInput().getDefinition().getQuasiIdentifyingAttributes()) {\n Hierarchy hierarchy = config.getHierarchy(attr);\n Integer min = config.getMinimumGeneralization(attr);\n ... |
"public Object freeze(ColumnLoader.ValueSet valueSet, int[] sources) {\n final int chunksPerWord = 64 / bitCount;\n final List<Comparable> valueList = permuteList(valueSet.values, sources);\n final int valueCount = valueList.size();\n final int wordCount = (valueCount + (chunksPerWord - 1)) / chunksPerWord;... |
"public MapReactiveUserDetailsService userDetailsService() {\n UserDetails user = User.withDefaultPasswordEncoder().username(\"String_Node_Str\").password(\"String_Node_Str\").roles(\"String_Node_Str\").build();\n UserDetails admin = User.withDefaultPasswordEncoder().username(\"String_Node_Str\").password(\"Strin... |
"public static boolean startCompany(String playerName, String companyName, StockSpace startSpace) {\n Player player = Game.getPlayerManager().getPlayerByName(playerName);\n PublicCompany company = (PublicCompany) Game.getCompanyManager().getPublicCompany(companyName);\n Certificate cert = (Certificate) Bank.ge... |
"public SchemaTypeInfo addClass(JavaClass javaClass) {\n if (javaClass == null) {\n return null;\n } else if (helper.isAnnotationPresent(javaClass, XmlTransient.class)) {\n return null;\n }\n if (typeInfo == null) {\n this.typeInfoClasses = new ArrayList<JavaClass>();\n this.type... |
"public boolean apply(Game game, Ability source) {\n boolean conditionApplies = false;\n switch(this.type) {\n case FEWER_THAN:\n conditionApplies = game.getBattlefield().countControlled(filter, source.getSourceId(), source.getControllerId(), game) < this.count;\n break;\n case... |
"private byte[] bytes(Object b) {\n if (b == null)\n return null;\n final Wire wire = toWire();\n wire.getValueOut().object(b);\n wire.bytes().flip();\n return toWire().getValueIn().bytes();\n}\n"
|
"public void run() {\n try {\n Set<Sha256Hash> ignoredFalsePositives = Sets.newHashSet();\n informListenerForNewTransactions(block, newBlockType, filteredTxHashList, filteredTxn, newStoredBlock, notFirst, registration.listener, ignoredFalsePositives);\n if (newBlockType == NewBlockType.BEST_CHAI... |
"private void addLinkTemplatesAndCuries(final HttpServerExchange exchange, final RequestContext context, final Representation rep, final String requestPath) {\n if (context.isParentAccessible()) {\n rep.addLink(new Link(\"String_Node_Str\", URLUtils.getParentPath(requestPath)));\n }\n rep.addLink(new Li... |
"public void handleEvent(Event event) {\n EventContext context = event.getContext();\n CoreSession session = context.getCoreSession();\n DocumentModel doc = ((DocumentEventContext) context).getSourceDocument();\n try {\n DocumentService docService = Framework.getService(DocumentService.class);\n ... |
"private void selectAndShowFirstPost() {\n Post post = new Post(WordPress.currentBlog.getLocalTableBlogId(), Integer.valueOf(mPostIDs[0]), isPage);\n if (post.getId() >= 0) {\n WordPress.currentPost = post;\n mOnPostSelectedListener.onPostSelected(post);\n FragmentManager fm = getActivity().g... |
"public Account getAccount() throws AuthException {\n return NOBODY_ACCOUNT;\n}\n"
|
"public void beginLine(int iTextSize) {\n m_ticketcurrent.beginLine(iTextSize);\n}\n"
|
"public boolean removeParticipant(String id) {\n if (agents.remove(id) == null) {\n return (agentGroups.remove(id) != null);\n }\n return true;\n}\n"
|
"public void onTap(final PointOverlay pointOverlay) {\n if (pointOverlay.getPoint() == null)\n return;\n AlertDialog.Builder builder = new AlertDialog.Builder(MapsforgeActivity.this).setTitle(pointOverlay.getLabel()).setMessage(UtilsFormat.formatGeoPoint(pointOverlay.getGeoPoint()) + \"String_Node_Str\" + ... |
"private void performAction(String id, int type) {\n Api api = App.api;\n String where = BasicColumns.ID + \"String_Node_Str\";\n String[] whereArgs = new String[] { id };\n try {\n switch(type) {\n case Commons.ACTION_STATUS_SHOW:\n {\n Status s = api.sta... |
"public static void introVarOuter(final Statement taskContent, final Statement beliefContent, final int index, final DerivationContext nal) {\n if (!(taskContent instanceof Inheritance)) {\n return;\n }\n final Variable varInd1 = new Variable(\"String_Node_Str\");\n final Variable varInd2 = new Varia... |
"public void addPowerSaveTempWhitelistAppInternal(String packageName, long duration, int userId) {\n try {\n int uid = getContext().getPackageManager().getPackageUid(packageName, userId);\n int appId = UserHandle.getAppId(uid);\n addPowerSaveTempWhitelistAppDirectInternal(callingUid, appId, dura... |
"private ValidateResult checkTrainSetting(ModelConfig modelConfig, ModelTrainConf train) {\n ValidateResult result = new ValidateResult(true);\n if (train.getBaggingNum() == null || train.getBaggingNum() < 0) {\n ValidateResult tmpResult = new ValidateResult(true);\n tmpResult.setStatus(false);\n ... |
"public Future<?> disconnect(OfflineCause cause) {\n boolean online = isOnline();\n boolean terminateNow = false;\n if (isSlaveRemoved(cause)) {\n try {\n LOGGER.info(MessageFormat.format(\"String_Node_Str\", slave.getNodeName(), slave.getInstancePageUrl()));\n } catch (IOException ex)... |
"public void delWidget(int oldId) {\n List<Integer> ids = this.getIds();\n if (!ids.contains(oldId)) {\n return;\n }\n ids.remove((Integer) oldId);\n this.setIds(ids);\n}\n"
|
"public void start(BundleContext context) throws Exception {\n super.start(context);\n IExtensionPointLimiter extensionPointLimiter = new ExtensionPointLimiterImpl(\"String_Node_Str\", \"String_Node_Str\");\n runProcessContextManagerList = ExtensionImplementationProvider.getInstance(extensionPointLimiter);\n ... |
"public static void setSign(Player plr, Plot p) {\n World world = Bukkit.getWorld(p.world);\n PlotWorld plotworld = PlotMain.getWorldSettings(world);\n Location pl = new Location(world, getPlotBottomLoc(world, p.id).getBlockX(), plotworld.ROAD_HEIGHT + 1, getPlotBottomLoc(world, p.id).getBlockZ());\n Block ... |
"public org.hl7.fhir.dstu2.model.EnrollmentRequest convertEnrollmentRequest(org.hl7.fhir.dstu3.model.EnrollmentRequest src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.EnrollmentRequest tgt = new org.hl7.fhir.dstu2.model.EnrollmentRequest();\n cop... |
"public void onUpdate() {\n super.onUpdate();\n if (world.isRemote) {\n if (ConfigSound.soundEnabled) {\n if (this.horn == null) {\n this.horn = ImmersiveRailroading.proxy.newSound(this.getDefinition().horn, false, 100, gauge);\n this.idle = ImmersiveRailroading.pro... |
"public List<LoginModuleConfig> getClientLoginModuleConfigs() {\n return staticSecurityConfig.getClientLoginModuleConfigs();\n}\n"
|
"private void toggle(boolean enabled) {\n LocalAddressFactory.enabled = enabled;\n}\n"
|
"public void run() {\n try {\n if (log.isInfoEnabled()) {\n log.info(\"String_Node_Str\");\n }\n while (!terminated) {\n try {\n TextMessage message = messageQueue.take();\n String type = message.getStringProperty(Constants.EVENT_CLASS_NAME);\n... |
"public void prepare(Report report, Map appContext) {\n ReportDesignHandle rptHandle = report.getReportDesign();\n ModelDteApiAdapter adaptor = new ModelDteApiAdapter(context, context.getSharedScope());\n List dataSourceList = rptHandle.getAllDataSources();\n for (int i = 0; i < dataSourceList.size(); i++) ... |
"public void searchMetadata(HttpRequest request, HttpResponder responder, String namespaceId, String searchQuery, List<String> targets, String sort, int offset, int limit, int numCursors, String cursor) throws Exception {\n Set<MetadataSearchTargetType> types = Collections.emptySet();\n if (targets != null) {\n ... |
"private void fetchMDocsByFolder(String completePath) {\n desiredProfile = m_tableProfiles.getProfile(\"String_Node_Str\");\n elementTableDecPanel.removeStyleName(\"String_Node_Str\");\n pageManager.setPageManagerBackend(new MDocFolderBackend(completePath, m_login));\n}\n"
|
"public double branchLength() {\n return Posterior.branchLength(f1, n, lambda);\n}\n"
|
"public static <T extends HasOwningAccount> T doPrivileged(String identifier, Function<String, T> lookupFunction) throws AuthException, IllegalContextAccessException, NoSuchElementException, PersistenceException {\n Context ctx = Contexts.lookup();\n Class<? extends BaseMessage> msgType = ctx.getRequest().getClas... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.