content stringlengths 40 137k |
|---|
"public Builder debug(Boolean debug) {\n if (debug != null)\n return debug((boolean) debug);\n flags &= ~FLAG_DEBUG_SET;\n return this;\n}\n"
|
"public static void initDefaultPool(int numThreads) {\n if (numThreads == 1) {\n Threads.defaultPool = MoreExecutors.newDirectExecutorService();\n Threads.numThreads = 1;\n } else {\n log.info(\"String_Node_Str\", numThreads);\n Threads.defaultPool = Executors.newFixedThreadPool(numThr... |
"public static boolean isPagebreakOnly(HttpServletRequest request) {\n String pagebreakOnly = getParameter(request, PARAM_PAGEBREAK_ONLY);\n if (\"String_Node_Str\".equalsIgnoreCase(pagebreakOnly))\n return false;\n return true;\n}\n"
|
"public void onNext(HashMap<String, Object> map) {\n BaseResponse<LoginData> loginResponse = CommonUtils.cast(map.get(Constants.LOGIN_DATA));\n if (loginResponse.getErrorCode() == BaseResponse.SUCCESS) {\n mView.showAutoLoginSuccess();\n }\n mView.showBannerData(CommonUtils.cast(map.get(Constants.BAN... |
"protected String encode(List<XMLEvent> theValue) {\n try {\n StringWriter w = new StringWriter();\n XMLEventWriter ew = XmlUtil.createXmlFragmentWriter(w);\n for (XMLEvent next : getValue()) {\n if (next.isCharacters()) {\n ew.add(next);\n } else {\n ... |
"public static boolean isAlias(String string) {\n if (!MmsConfig.isAliasEnabled()) {\n return false;\n}\n"
|
"private void generateSnapshot(FetchedFile f, FetchedResource r, StructureDefinition sd) throws Exception {\n boolean changed = false;\n dlog(\"String_Node_Str\" + sd.getUrl());\n ProfileUtilities utils = new ProfileUtilities(context, f.getErrors(), igpkp);\n StructureDefinition base = sd.hasBaseDefinition(... |
"protected FrequenciesState transformFrequencies(FrequenciesState fs, int offset, int powOf2NearestLength, int length, double maxfrequency) {\n int total = (int) (this.sound.getSamples().length * factor);\n if (total / 100 != 0 && (total / 100 - (total / 100) % this.threshold) != 0 && offset % ((total / 100 - (to... |
"public void render(Component comp, Writer out) throws IOException {\n final SmartWriter wh = new SmartWriter(out);\n final Menuitem self = (Menuitem) comp;\n final String uuid = self.getUuid();\n final Execution exec = Executions.getCurrent();\n if (self.isTopmost()) {\n wh.write(\"String_Node_St... |
"public String getHelp() {\n return \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n}\n"
|
"public void preSave() {\n if (currentHeldItem != EntityRef.NULL) {\n currentHeldItem.destroy();\n }\n}\n"
|
"public void onViewCreated(View view, Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n if (mListener != null)\n mListener.onWakelocksSetTitle(getResources().getString(R.string.title_wakelocks));\n mAdapter.sort(!mSortByTime);\n}\n"
|
"public Report executeOnRepresentation(IndexService index, ModelService model, StorageService storage, Report report, SimpleJobPluginInfo jobPluginInfo, List<Representation> list, Job job) throws PluginException {\n for (Representation representation : list) {\n List<LinkingIdentifier> sources = new ArrayList... |
"public int indexOfSimulated(Object object) {\n if (comparator != null)\n return sorted.indexOfSimulated(object);\n else\n return size();\n}\n"
|
"public CharSequence loadLabel(PackageManager pm) {\n if (nonLocalizedLabel != null) {\n return nonLocalizedLabel;\n }\n if (labelRes != 0) {\n CharSequence label = pm.getText(packageName, labelRes, null);\n if (label != null) {\n return label.toString().trim();\n }\n ... |
"private final void initDataPerspectiveChoosers(Composite parent) {\n if (dataDomain != null) {\n possibleRecordPerspectives = dataDomain.getRecordPerspectiveIDs().toArray(new String[0]);\n possibleDimensionPerspectives = dataDomain.getDimensionPerspectiveIDs().toArray(new String[0]);\n } else {\n ... |
"protected void initialJdbcInfo() {\n createMetaDataProvider();\n jdbcConnection = connectMetadataProvider(metaDataProvider, this.getDataSetDesign().getDataSourceDesign());\n if (jdbcConnection != null) {\n try {\n isSchemaSupported = metaDataProvider.isSchemaSupported();\n }\n } ca... |
"private void searchLand(Player player, Ability source, Game game, Cards cards, String subtype) {\n FilterLandCard filter = new FilterLandCard(subtype);\n filter.add(new SubtypePredicate(SubType.byDescription(subtype)));\n TargetCardInLibrary target = new TargetCardInLibrary(filter);\n if (player.searchLibr... |
"public BigDecimal getTotalOfaTicket(String place) {\n double total = 0;\n for (TicketLineInfo line : findTicket(place).getM_aLines()) {\n total += line.getMultiply() * line.getPrice();\n }\n return BigDecimal.valueOf(total);\n}\n"
|
"protected String doInBackground(Void... params) {\n String scope = \"String_Node_Str\" + Scopes.PLUS_LOGIN;\n String token;\n try {\n token = GoogleAuthUtil.getToken(params[0], Plus.AccountApi.getAccountName(googleApiClient), scope);\n } catch (Exception e) {\n e.printStackTrace();\n r... |
"private boolean isDefaultChoice(SelectionChoice choice) {\n String choiceValue = choice.getValue();\n String defaultValue = convertToStandardFormat(this.defaultValue);\n if (choice != dummyChoice) {\n if (canBeNull() && choiceValue == null && defaultValue == null) {\n return true;\n }... |
"public boolean apply(Game game, Ability source) {\n int amount = 0;\n for (Cost cost : source.getCosts()) {\n if (cost instanceof SacrificeTargetCost && ((SacrificeTargetCost) cost).getPermanents().size() > 0) {\n amount = ((SacrificeTargetCost) cost).getPermanents().get(0).getPower().getValue(... |
"protected void openConnection(Bundle connectionExtras) throws IOException {\n Log.d(BLUE, \"String_Node_Str\");\n resetConnection();\n BluetoothDevice device = null;\n try {\n device = mBluetoothAdapter.getRemoteDevice(bluetoothAddress);\n } catch (IllegalArgumentException ex) {\n }\n if (d... |
"public static String format(Date date) throws BirtException {\n return format(date, TimeZone.getDefault());\n}\n"
|
"private void doProcessing(Message message) {\n String messageType = null;\n try {\n messageType = message.getStringProperty(Constants.EVENT_CLASS_NAME);\n } catch (JMSException e) {\n log.error(\"String_Node_Str\" + message.getClass().toString(), e);\n return;\n }\n log.info(\"Strin... |
"public int getEmptyBottomMargin() {\n int emptyMargin = mMaxLayoutHeight - mContentHeight;\n if (needsHeightAdaption()) {\n emptyMargin = emptyMargin - mCollapsedSize - mBottomStackPeekSize;\n }\n return Math.max(emptyMargin, 0);\n}\n"
|
"public void testGracefulShutdown2() throws Exception {\n Config config = new Config();\n config.getMapConfig(MAP_NAME).setBackupCount(2);\n config.setProperty(GroupProperties.PROP_PARTITION_COUNT, \"String_Node_Str\");\n TestHazelcastInstanceFactory f = createHazelcastInstanceFactory(6);\n final Hazelca... |
"public void run() throws Exception {\n String payload = randomString();\n Object ret = map.executeOnKey(key, new LockEntryProcessor(payload));\n assertEquals(payload, ret);\n}\n"
|
"public String getQuery() {\n return queryString;\n}\n"
|
"private void checkCurrentLocaleChangedLocked() {\n resetAllInternalStateLocked(true, true);\n}\n"
|
"private void handleEnterInTag(IDocument doc, DocumentCommand docCommand) {\n try {\n int currLine = doc.getLineOfOffset(docCommand.offset);\n String lineDelim = doc.getLineDelimiter(currLine);\n if (lineDelim == null)\n lineDelim = \"String_Node_Str\";\n int posForIndent = fin... |
"private void buildLineMap(char[] src, int max) {\n int line = 0;\n int pos = 0;\n int[] lb = new int[max + 1];\n while (pos < max) {\n lb[line++] = pos;\n do {\n char ch = src.charAt(pos);\n if (ch == '\\r' || ch == '\\n') {\n if (ch == '\\r' && (pos + 1) ... |
"private void getRuns(HttpResponder responder, Id.Program programId, String status, long start, long end, int limit) {\n try {\n try {\n ProgramRunStatus runStatus = (status == null) ? ProgramRunStatus.ALL : ProgramRunStatus.valueOf(status.toUpperCase());\n List<RunRecord> records = List... |
"public ModificationIterator acquireModificationIterator(byte remoteIdentifier) throws IOException {\n if (!canReplicate)\n throw new UnsupportedOperationException();\n final ModificationIterator modificationIterator = modificationIterators.get(remoteIdentifier);\n if (modificationIterator != null)\n ... |
"public void registerCreatureReward(Player player, CreatureType tamedCreature, CreatureType killedCreature) {\n if (player == null || killedCreature == null) {\n return;\n }\n if (killedCreature == null) {\n return;\n }\n ecoReward reward = rewards.get(killedCreature);\n String weaponNam... |
"public Cursor getAllSongsSearchable(String selection) {\n String selectQuery = \"String_Node_Str\" + MUSIC_LIBRARY_TABLE + \"String_Node_Str\" + BLACKLIST_STATUS + \"String_Node_Str\" + \"String_Node_Str\" + selection;\n return getDatabase().rawQuery(selectQuery, null);\n}\n"
|
"public synchronized Object connect(ID remote, Object data, int timeout) throws IOException {\n trace(\"String_Node_Str\" + remote + \"String_Node_Str\" + data + \"String_Node_Str\" + timeout + \"String_Node_Str\");\n if (socket != null)\n throw new ConnectException(\"String_Node_Str\" + getAddressPort());... |
"private static List populateArgument(ComputedColumnHandle modelCmptdColumn) {\n Map argumentList = new HashMap();\n Iterator argumentIter = modelCmptdColumn.argumentsIterator();\n while (argumentIter.hasNext()) {\n AggregationArgumentHandle handle = (AggregationArgumentHandle) argumentIter.next();\n ... |
"protected void selectRowByValue(String col, String colOperator, final String value, final String regexOp, final String extendSelection, final String searchType, ClickOptions co) {\n ITableComponent adapter = getTableAdapter();\n final int implCol = adapter.getColumnFromString(col, colOperator);\n Integer impl... |
"protected Bitmap doInBackground(URLs... urls) {\n URL imgURL = urls[0];\n Bitmap bm = ImageCache.getImage(imgURL);\n if (bm == null) {\n try {\n URL imgURL = new URL(urls[0]);\n InputStream is = imgURL.openStream();\n bm = BitmapFactory.decodeStream(is);\n fl... |
"public void doSearch() {\n Filter filter = buildSearchFilter(searchInputBox.getText(), defaultFilter, allFilter, fieldsPanel, defaultFilterIncremental);\n list.setFilter(filter);\n}\n"
|
"public <T> CloseableIterator<T> query(final QueryOptions queryOptions, final Query query) {\n final List<CloseableIterator<Object>> results = new ArrayList<CloseableIterator<Object>>();\n final QueryOptions sanitizedQueryOptions = (queryOptions == null) ? new QueryOptions() : queryOptions;\n final Query sanit... |
"public void writeExternal(DataOutputStream out) throws IOException {\n ExtUtil.writeString(out, nodeset);\n}\n"
|
"protected AutodiscoverResponse internalExecute() throws ServiceLocalException, Exception {\n this.validate();\n HttpWebRequest request = null;\n try {\n request = this.service.prepareHttpWebRequestForUrl(this.url);\n this.service.traceHttpRequestHeaders(TraceFlags.AutodiscoverRequestHttpHeaders,... |
"public void setAttributes(Map attributes) {\n this.attributes.putAll(attributes);\n}\n"
|
"private void onTapUpEvent(int prevStart, int prevEnd) {\n final int start = getSelectionStart();\n final int end = getSelectionEnd();\n if (start == end) {\n if (start >= prevStart && start < prevEnd) {\n Selection.setSelection((Spannable) mText, prevStart, prevEnd);\n if (mSelect... |
"private void doFinish(IPath containerName, String fileName, final String sourceFileName, String cheatSheetId, boolean showCheatSheet, IProgressMonitor monitor) throws CoreException {\n monitor.beginTask(CREATING + fileName, 2);\n IResource resource = ResourcesPlugin.getWorkspace().getRoot().findMember(containerN... |
"public ApplicationDetail getAppDetail(ApplicationId appId) throws Exception {\n ApplicationSpecification appSpec = store.getApplication(appId);\n if (appSpec == null) {\n throw new ApplicationNotFoundException(appId);\n }\n ensureAccess(appId);\n String ownerPrincipal = ownerAdmin.getImpersonatio... |
"public void run() {\n newFile.createFile(new SftpClient.CompletionCallback() {\n\n public void onComplete() {\n runOnUiThread(new Runnable() {\n public void run() {\n reload();\n }\n });\n }\n public void onError(Exception e... |
"private void checkPotentialPortConflicts() {\n Multimap<Integer, String> services = HashMultimap.create();\n String sslKey = Constants.Security.SSL.EXTERNAL_ENABLED;\n boolean isSSL;\n try {\n isSSL = cConf.getBoolean(sslKey);\n } catch (Exception e) {\n logProblem(\"String_Node_Str\", ssl... |
"protected boolean isAccountLocked(String userid) {\n if (userid == null) {\n return false;\n }\n User admin = userLoginHistory.get(userid);\n return admin != null && admin.getLoginFailedCount() >= accountLockCount && (new Date().getTime() - admin.getLastLoginFailedTime().getTime() < accountLockTime)... |
"public String getRangeAsString() {\n StringBuilder msg = new StringBuilder();\n if (isOutOfRange(getNumMatch())) {\n msg.append(\"String_Node_Str\" + range);\n msg.append(\"String_Node_Str\");\n }\n if (isOutOfRange(getPerMatch()) || isOutOfRange(getPerNoMatch())) {\n msg.append(\"Stri... |
"protected ClassLoader getContextClassLoader() {\n ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n String classLoaderName = classLoader.getClass().getName();\n if (classLoaderName.startsWith(\"String_Node_Str\")) {\n if ((classLoader.getParent() != null) && ((classLoader.toSt... |
"ContactGroupIcqImpl createUnresolvedContactGroup(String groupName) {\n List<Buddy> emptyBuddies = new LinkedList<Buddy>();\n ContactGroupIcqImpl newUnresolvedGroup = new ContactGroupIcqImpl(new VolatileGroup(groupName), emptyBuddies, this, false, true);\n this.rootGroup.addSubGroup(newUnresolvedGroup);\n f... |
"public String checkRtJar(AjBuildConfig buildConfig) {\n if (Version.text.equals(Version.DEVELOPMENT)) {\n return null;\n }\n if (buildConfig == null || buildConfig.getFullClasspath() == null)\n return \"String_Node_Str\";\n for (Iterator it = buildConfig.getClasspath().iterator(); it.hasNext(... |
"public void registerDOI(Context context, DSpaceObject dso, String doi) throws DOIIdentifierException {\n if (this.isDOIRegistered(context, doi)) {\n if (!this.isDOIRegistered(context, dso, doi)) {\n log.warn(\"String_Node_Str\", doi);\n throw new DOIIdentifierException(DOIIdentifierExce... |
"public final void load() {\n if (getServer().getServerState() != IServer.STATE_STARTED) {\n setError(new TeiidErrorNode(this, null, DqpUiConstants.UTIL.getString(getClass().getSimpleName() + \"String_Node_Str\")));\n return;\n }\n try {\n children = new ArrayList<IContentNode<? extends IC... |
"public int scrollVerticallyBy(int dy, RecyclerView.Recycler recycler, RecyclerView.State state) {\n if (getItemCount() == 0 || dy == 0) {\n return 0;\n }\n int travel = dy;\n if (dy + scroll < 0) {\n travel = -scroll;\n } else if (dy + scroll > maxScroll) {\n travel = maxScroll - sc... |
"public String toString() {\n if (min instanceof Integer || min instanceof Long) {\n return String.format(\"String_Node_Str\", min, max, mean, stdev);\n } else {\n return String.format(\"String_Node_Str\", min, max, mean, stdev);\n }\n}\n"
|
"protected void createOrReplaceSequences(boolean create, boolean drop) throws EclipseLinkException {\n Sequencing sequencing = getSession().getSequencing();\n if ((sequencing == null) || (sequencing.whenShouldAcquireValueForAll() == Sequencing.AFTER_INSERT)) {\n return;\n }\n HashMap tableDefinitions... |
"private boolean isFlatened() {\n if (shouldBeFlatened()) {\n return grid.isAreaFlattenedAtHeight(pos, getFlattenTiles(), heightAvg);\n } else {\n return true;\n }\n}\n"
|
"private BitSet[] discoverMissingRecords(BitSet present, BitSet missing, BitSet toDelete, SolrQueryRequest req) throws IOException {\n SolrQueryResponse rsp = new SolrQueryResponse();\n HashMap<String, int[]> dictData = null;\n SolrParams params = req.getParams();\n String field = params.get(\"String_Node_S... |
"public void onSuccess(Object result) {\n clientWrapper.recordResponseReceived();\n if (clientWrapper.isFinishedReceivingResponses()) {\n clientWrapper.close();\n }\n requestsProcessed.incrementAndGet();\n if (requestsPending.decrementAndGet() < pendingOperationsLowWaterMark) {\n fillCurren... |
"public void onTextureStitchPre(TextureStitchEvent.Pre event) {\n ModelLoader loader;\n Map<ModelResourceLocation, IModel> secretSauce = null;\n BlockModelShapes blockModelShapes = null;\n try {\n Class c = Class.forName(\"String_Node_Str\");\n Field f = c.getDeclaredField(\"String_Node_Str\")... |
"public java.lang.String getId() {\n String i = this.fields.get(\"String_Node_Str\");\n if (i == null) {\n i = this.fields.get(\"String_Node_Str\");\n if (i == null)\n i = this.fields.get(\"String_Node_Str\");\n }\n return i;\n}\n"
|
"public void ask(final String question, final Map<String, Serializable> options) {\n if (!killed) {\n UserManager.instance.getUser(userId).ifPresent(user -> user.fireCallback(new ClientCallback(ClientCallbackMethod.GAME_ASK, game.getId(), new GameClientMessage(getGameView(), question, options))));\n }\n}\n... |
"public boolean canPlayerAccess(String name) {\n if (!(this instanceof ISecurable)) {\n return true;\n }\n AccessMode access = ((ISecurable) this).getAccess();\n if (access.isPublic() || (CoFHProps.enableOpSecureAccess && CoreUtils.isOp(name))) {\n return true;\n }\n GameProfile profile ... |
"private soot.Local getCastLocal(polyglot.ast.Cast castExpr) {\n if (castExpr.expr().type().equals(castExpr.type())) {\n return createExpr(castExpr.expr());\n }\n soot.Value val;\n if (castExpr.expr() instanceof polyglot.ast.Cast) {\n val = createExpr(((polyglot.ast.Cast) castExpr.expr()).expr... |
"private URI createURI(ID endpointContainerID) throws URISyntaxException {\n boolean done = false;\n URI uri = null;\n String str = endpointContainerID.getName();\n while (!done) {\n try {\n uri = new URI(str);\n if (!uri.isOpaque()) {\n done = true;\n ... |
"public void assignString(Var target, Arg src) {\n assert (src.isImmediateString());\n if (!Types.isString(target.type())) {\n throw new STCRuntimeError(\"String_Node_Str\" + \"String_Node_Str\" + target.type().toString());\n }\n pointStack.peek().add(Turbine.stringSet(varToExpr(target), opargToExpr(... |
"public void writePIX24(PIX24 value) throws IOException {\n writeUI8(value.reserved);\n writeUI8(value.red);\n writeUI8(value.green);\n writeUI8(value.blue);\n}\n"
|
"public void processServer(PacketSaveInvGenComponent message, MessageContext ctx, WorldServer server) {\n NetHandlerPlayServer playServer = ctx.getServerHandler();\n EntityPlayerMP player = playServer.playerEntity;\n if (RecurrentComplex.checkPerms(player))\n return;\n SaveDirectoryData.Result saveDi... |
"public int compare(Viewer iviewer, Object o1, Object o2) {\n DQRepositoryNode recursiveFind = RepositoryNodeHelper.recursiveFind(((ItemRecord) o1).getElement());\n DQRepositoryNode recursiveFind2 = RepositoryNodeHelper.recursiveFind(((ItemRecord) o2).getElement());\n return repositoryNodeComparator.compare(re... |
"public SortedMap<ArtifactDescriptor, PluginClass> call(DatasetContext context) throws Exception {\n Table metaTable = getMetaTable(context);\n ArtifactCell parentCell = new ArtifactCell(parentArtifactId);\n byte[] parentDataBytes = metaTable.get(parentCell.rowkey, parentCell.column);\n if (parentDataBytes ... |
"public PerspCam lookAt(Vector3 point) {\n Vector3 temp = Vector3.REUSABLE_STACK.pop();\n Vector3 forward = temp.set(point).subtractSelf(position).normalizeSelf();\n Vector3 up = Vector3.AXIS_Y;\n Vector3 negativeZ = tempVec.set(Vector3.AXIS_Z).negateSelf();\n float dot = negativeZ.dot(forward);\n if ... |
"private void initMocks() {\n Fields switchSchema = new Fields(OFEMessageUtils.FIELD_SWITCH_ID, OFEMessageUtils.FIELD_STATE);\n when(topologyContext.getComponentId(0)).thenReturn(topo_input_topic);\n when(topologyContext.getComponentOutputFields(topo_input_topic, topo_input_topic)).thenReturn(switchSchema);\n ... |
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n task = new Task(this.getApplicationContext());\n usernameFileEditText = (EditText) findViewById(R.id.username);\n if (Config.username.length() < 3)\n Config.username = this.getApplicationContext().getSharedP... |
"public void startChat(String remoteUser) {\n synchronized (textChatHUDRefMap) {\n WeakReference<HUDComponent> ref = textChatHUDRefMap.get(remoteUser);\n if (ref != null) {\n return;\n }\n });\n}\n"
|
"public void startRequest(MRCRequest rq) {\n try {\n final linkRequest rqArgs = (linkRequest) rq.getRequestArgs();\n final VolumeManager vMan = master.getVolumeManager();\n final FileAccessManager faMan = master.getFileAccessManager();\n validateContext(rq);\n final Path lp = new P... |
"public List<IPlayer> getPlayers(Collection<String> filter, ProxiedPlayer who, boolean includeSuspectors) {\n List<IPlayer> list = new ArrayList<>();\n Iterable<IPlayer> players = Iterables.concat(Collections2.transform(playerProviders, new Function<IPlayerProvider, Iterable<? extends IPlayer>>() {\n publi... |
"private void propagate(SyncopeUser user, TargetResource resource, Type type) throws NoSuchBeanDefinitionException, IllegalStateException {\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\" + user + \"String_Node_Str\" + user.getAttributes());\n }\n ConnectorInstance connectorInstance = reso... |
"public OutputResult writeOutput(Output output) {\n logger.debug(output.toString());\n ClientCredentialsResourceDetails resourceDetails = new ClientCredentialsResourceDetails();\n resourceDetails.setClientId(clientId);\n resourceDetails.setClientSecret(clientSecret);\n resourceDetails.setAccessTokenUri(a... |
"public void run() {\n InvTweaksConfig config = cfgManager.getConfig();\n try {\n InvTweaksContainerSectionManager containerMgr = new InvTweaksContainerSectionManager(mc, InvTweaksContainerSection.INVENTORY);\n int pickupSlot = -1;\n long tStart = System.currentTimeMillis();\n while (p... |
"private ExitCode executeDistBuild(CommandRunnerParams params, DistBuildConfig distBuildConfig, ActionAndTargetGraphs graphs, WeightedListeningExecutorService executorService, ProjectFilesystem filesystem, FileHashCache fileHashCache, ClientStatsTracker distBuildClientStats, RuleKeyCacheScope<RuleKey> ruleKeyCacheScope... |
"private void newMarker(IMarker marker) {\n try {\n Assert.isTrue(marker.getType().equals(ProverHelper.OBLIGATION_MARKER), \"String_Node_Str\");\n int id = marker.getAttribute(ProverHelper.OBLIGATION_ID, -1);\n if (id != -1) {\n ExpandItem item = (ExpandItem) items.get(new Integer(id)... |
"public boolean dispatchTouchEvent(MotionEvent m) {\n if (mPaused)\n return true;\n if (mZoomButtonsController.isVisible()) {\n scheduleDismissOnScreenControls();\n }\n if (!super.dispatchTouchEvent(m)) {\n return mGestureDetector.onTouchEvent(m);\n }\n return true;\n}\n"
|
"public int generateMoves(Board board, int[] moves, int mIndex) {\n this.moves = moves;\n bbAttacks = BitboardAttacks.getInstance();\n moveIndex = mIndex;\n all = board.getAll();\n mines = board.getMines();\n others = board.getOthers();\n byte index = 0;\n long square = 0x1L;\n while (square ... |
"public ChangeSet.RunStatus getRunStatus(ChangeSet changeSet) throws JDBCException, DatabaseHistoryException {\n if (!doesChangeLogTableExist()) {\n return ChangeSet.RunStatus.NOT_RAN;\n }\n RanChangeSet foundRan = getRanChangeSet(changeSet);\n if (foundRan == null) {\n return ChangeSet.RunSta... |
"public BuildServerBehaviour getBehaviour(IBuildServer server) throws CoreException {\n return new HudsonServerBehaviour(server, createLocation(server));\n}\n"
|
"public static void install() {\n if (!ENABLE_EXTENSION_INSTALL || !OS.isGnome()) {\n return;\n }\n boolean hasTopIcons;\n boolean hasSystemTray;\n String gnomeVersion = OS.getGnomeVersion();\n if (gnomeVersion == null) {\n return;\n }\n List<String> enabledExtensions = getEnabledE... |
"private static void changeWorkspaceLocation() {\n final Location instanceLoc = Platform.getInstanceLocation();\n File workspacePath = new File(GeneralManager.CALEYDO_HOME_PATH);\n try {\n URL workspaceURL = new URL(workspacePath);\n instanceLoc.set(workspaceURL, false);\n } catch (Exception e... |
"protected int getFetchSize() {\n return DEFAULT_FETCH_SIZE;\n}\n"
|
"public org.hl7.fhir.dstu2.model.AppointmentResponse convertAppointmentResponse(org.hl7.fhir.dstu3.model.AppointmentResponse src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.AppointmentResponse tgt = new org.hl7.fhir.dstu2.model.AppointmentResponse()... |
"public void updateViewedNpcs() {\n List<Npc> npcsInView = viewArea.getNpcsInView();\n for (Npc n : npcsInView) {\n if ((!watchedNpcs.contains(n) || watchedNpcs.isRemoving(n)) && withinRange(n)) {\n watchedNpcs.add(n);\n }\n }\n}\n"
|
"private void handleUnassignedTask(String path) {\n if (ZKSplitLog.isRescanNode(watcher, path)) {\n return;\n }\n Task task = findOrCreateOrphanTask(path);\n if (task.isOrphan() && (task.incarnation.get() == 0)) {\n LOG.info(\"String_Node_Str\" + path);\n resubmitTask(path, task, FORCE)... |
"public Result filter(final Logger logger, final Level level, final Marker marker, final String msg, final Object p0, final Object p1, final Object p2, final Object p3, final Object p4, final Object p5, final Object p6, final Object p7, final Object p8, final Object p9) {\n return filter(logger, level, marker, msg, ... |
"private Iterable<JSType> getTypeAlternatives(JSType type) {\n if (type.isUnionType()) {\n return type.toMaybeUnionType().getAlternatesWithoutStructuralTyping();\n } else {\n ObjectType objType = type.toObjectType();\n if (objType != null && objType.getConstructor() != null && objType.getCons... |
"public void partClosed(IWorkbenchPartReference partRef) {\n if (Constants.TC_BROWSER_ID.equals(partRef.getId())) {\n m_tcb.remove(partRef);\n setMainTCB(getOpenTCBs().size() > 0 ? getOpenTCBs().get(0) : null);\n fireStateChanged();\n }\n}\n"
|
"protected void storeMetaInfo(IBaseResultSet parentResultSet, IDataQueryDefinition query, IBaseResultSet resultSet) {\n String pRsetId = null;\n String rowId = \"String_Node_Str\";\n if (parentResultSet != null) {\n if (parentResultSet instanceof QueryResultSet) {\n pRsetId = ((QueryResultSet... |
"public synchronized void removeAccountInfo() {\n if (DEBUG) {\n Log.d(\"String_Node_Str\", \"String_Node_Str\");\n }\n setOAuthToken(null);\n userId = null;\n userScreenName = null;\n token = null;\n Editor editor = sp.edit();\n editor.remove(getString(R.string.option_userid));\n edit... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.