content stringlengths 40 137k |
|---|
"private Buffer requestBufferInternal(final int minimumSizeOfBuffer, final boolean block) throws InterruptedException {\n if (minimumSizeOfBuffer > this.maximumBufferSize) {\n throw new IllegalArgumentException(\"String_Node_Str\" + minimumSizeOfBuffer + \"String_Node_Str\" + this.maximumBufferSize);\n }\n... |
"protected Element getKeyboardSelectedElement() {\n int rowIndex = getKeyboardSelectedRow();\n NodeList<TableRowElement> rows = tbody.getRows();\n if (rowIndex >= 0 && rowIndex < rows.getLength() && columns.size() > 0) {\n TableRowElement tr = rows.getItem(rowIndex);\n TableCellElement td = tr.ge... |
"public String toString() {\n return String.format(\"String_Node_Str\", this.txUuid, this.startTime.getTime(), this.splitTime, Logs.EXTREME ? this.owner : \"String_Node_Str\");\n}\n"
|
"public static List<IContextParameter> createContextParameters(String prefixName, Connection connection, Set<IConnParamName> paramSet) {\n List<IContextParameter> varList = new ArrayList<>();\n if (connection instanceof GenericConnection) {\n GenericConnection conn = (GenericConnection) connection;\n ... |
"public QueryFilter<JsonPointer> visitOrFilter(Boolean isReverse, List<QueryFilter<JsonPointer>> subFilters) {\n return QueryFilter.or(visitQueryFilters(isReverse, subFilters));\n}\n"
|
"private boolean containsAnInnerRelation(Selector left, Selector right) throws ExecutionException {\n if (right.getType() == SelectorType.RELATION) {\n String column = (String) SelectorHelper.getRestrictedValue(left, SelectorType.COLUMN);\n RelationSelector rightSelector = (RelationSelector) right;\n ... |
"public Map<String, Long> getSampleCounters(final Sample sample) {\n return this.result.getSampleCounters(sample);\n}\n"
|
"public void setIncremental(boolean incremental) {\n cmd.addFlag(\"String_Node_Str\", incremental);\n inIncrementalMode = incremental;\n}\n"
|
"public static void subtract(String name, double amount) {\n if (name.isEmpty())\n return;\n }\n economy.subtract(uName.getName(name), roundUp(amount));\n}\n"
|
"public synchronized void close() throws IOException {\n if (xidIdentMap.size() > 0) {\n log.info(\"String_Node_Str\" + xidIdentMap.size());\n log.info(\"String_Node_Str\" + fileName);\n writeBuffer.force();\n fileChannel.close();\n return;\n }\n writeBuffer.force();\n lon... |
"public <T> T[] stopWithResults(final Class<T> resultClass) {\n final T[] results = (T[]) Array.newInstance(resultClass, this.parallelizedClients.length);\n int i = 0;\n for (final FluentClientCommon fcc : this.parallelizedClients) {\n if (resultClass == List.class) {\n results[i++] = (T) ((F... |
"public Collection<IFile> findRelatedResources(Relationship typeOfRelationship) {\n switch(typeOfRelationship) {\n case DEPENDENT:\n return findDependentResources();\n case DEPENDENCY:\n return findDependencyResources();\n case ALL:\n Set<IFile> files = new HashS... |
"public void vertexAdded(final V vertex) {\n writeLock.lock();\n try {\n final int tp = vertex.getTimepoint();\n SpatialIndexImp<V> index = timepointToSpatialIndex.get(tp);\n if (index == null) {\n index = new SpatialIndexImp<V>(CollectionUtils.createVertexSet(graph), vertexPool);\... |
"private List<Line> parseRules() {\n List<Line> lines = new ArrayList<Line>();\n String context = \"String_Node_Str\";\n String type = \"String_Node_Str\";\n String express = \"String_Node_Str\";\n String msg = \"String_Node_Str\";\n Element e = null;\n try {\n e = Util.parse(pattern).getDoc... |
"public boolean next(boolean force) {\n if (tokens == null)\n reseek(0);\n else if (tokNum == tokens.length - 1) {\n while (true) {\n if (chunk.chunkNum + 1 > chunkSource.lastChunk)\n return false;\n Chunk next = chunkSource.loadChunk(chunk.chunkNum + 1);\n ... |
"private Integer cluster(Integer iVAIdOriginal, Integer iVAIdStorage, EClustererType eClustererType) {\n ArrayList<Integer> indexes = new ArrayList<Integer>();\n StringBuffer buffer = new StringBuffer();\n buffer.append(\"String_Node_Str\");\n IVirtualArray contentVA = set.getVA(iVAIdOriginal);\n IVirtua... |
"public void getAllWorkers(HttpRequest request, HttpResponder responder) {\n programLifecycleHttpHandler.getAllWorkers(RESTMigrationUtils.rewriteV2RequestToV3(request), responder, Constants.DEFAULT_NAMESPACE);\n}\n"
|
"private void handleLiveEvent(Event event) {\n if (Event.EVENT_TYPE_PRESENCE.equals(event.type)) {\n User userPresence = JsonUtils.toUser(event.content);\n User user = mStore.getUser(userPresence.userId);\n if (user == null) {\n user = userPresence;\n user.lastActiveReceive... |
"public Set<MetaField> setFields(String model) throws IOException {\n LOG.debug(\"String_Node_Str\", model);\n Set<MetaField> fieldSet = new HashSet<MetaField>();\n List<String> fields = new ArrayList<String>();\n for (MetaField field : MetaField.all().filter(\"String_Node_Str\", model).fetch()) {\n ... |
"public int getInt() {\n return nextNull ? (valueType == ColumnType.SYMBOL ? SymbolTable.VALUE_IS_NULL : Numbers.INT_NaN) : Unsafe.getUnsafe().getInt(bufPtr);\n}\n"
|
"public boolean removeUser(int userHandle) {\n checkManageUsersPermission(\"String_Node_Str\");\n long ident = Binder.clearCallingIdentity();\n try {\n final UserInfo user;\n synchronized (mPackagesLock) {\n user = mUsers.get(userHandle);\n if (userHandle == 0 || user == nul... |
"private static StringBuilder generateAJAXCall(FacesContext context, IAJAXComponent component, String event) {\n String complete = component.getOncomplete();\n StringBuilder cJS = new StringBuilder(150);\n String update = component.getUpdate();\n if (null == update) {\n update = \"String_Node_Str\";\... |
"public Record createRecord(String name, Data dataKey, Object value, long ttl, boolean shouldSchedule) {\n MapContainer mapContainer = getMapContainer(name);\n Record record = mapContainer.getRecordFactory().newRecord(dataKey, value);\n if (shouldSchedule) {\n if (ttl < 0 && mapContainer.getMapConfig().... |
"public String toString() {\n return \"String_Node_Str\" + \"String_Node_Str\" + switchId + '\\'' + \"String_Node_Str\" + portId + '\\'' + \"String_Node_Str\" + attempts + \"String_Node_Str\" + consecutiveFailure + \"String_Node_Str\" + consecutiveSuccess + '}';\n}\n"
|
"public void test() {\n OOSpider.create(Site.me().setSleepTime(0), new PageModelPipeline<GithubRepo>() {\n\n public void process(GithubRepo o, Task task) {\n Assert.assertEquals(86, o.getStar());\n Assert.assertEquals(70, o.getFork());\n }\n }, GithubRepo.class).setDownloader(n... |
"public void onClick(DialogInterface dialog, int id) {\n if (what.contains(\"String_Node_Str\")) {\n if (alitems.containsKey(item) && alitems.get(item).intValue() > 1) {\n alitems.put(item, alitems.remove(item).intValue() - 1);\n } else {\n alitems.remove(item);\n }\n ... |
"public InterceptorScope getInterceptorScope(String name) {\n if (name == null) {\n throw new NullPointerException(\"String_Node_Str\");\n }\n return interceptorScopePool.add(name);\n}\n"
|
"public MultivariateGaussian getGroundBelief() {\n if (this.groundBelief == null) {\n this.groundBelief = PathUtils.getGroundBeliefFromRoad(this.globalStateBelief, this.getEdge(), isOnRoad());\n }\n}\n"
|
"public boolean canTheoreticallyCast(JReferenceType type, JReferenceType qType) {\n JClassType jlo = program.getTypeJavaLangObject();\n if (type == qType || type == jlo) {\n return true;\n }\n if (canTriviallyCast(type, qType)) {\n return true;\n }\n if (type instanceof JArrayType) {\n ... |
"public int canDrop(Object transfer, Object target, int operation, DNDLocation location) {\n int result = DNDService.LOGIC_UNKNOW;\n if (transfer.equals(DesignerPaletteFactory.TIMEPERIOD_TEMPLATE) && target instanceof TableCellEditPart) {\n CellHandle cellHandle = (CellHandle) ((TableCellEditPart) target).... |
"private Record getRecordInternal(Data dataKey) {\n Record record = null;\n if (mapContainer.getStore() != null) {\n final Object value = mapContainer.getStore().load(mapService.toObject(dataKey));\n if (value != null) {\n record = mapService.createRecord(name, dataKey, value, -1);\n ... |
"public void run() {\n Assert.that(sock != null && in != null && out != null, \"String_Node_Str\");\n Assert.that(manager != null && routeTable != null && pushRouteTable != null, \"String_Node_Str\");\n try {\n sock.setSoTimeout(SettingsManager.instance().getTimeout());\n } catch (SocketException e) ... |
"public void copyLog(String containerId, Map<String, Object> configurationParameters) throws IOException {\n String to = null;\n if (configurationParameters.containsKey(TO)) {\n to = (String) configurationParameters.get(TO);\n } else {\n throw new IllegalArgumentException(String.format(\"String_N... |
"private long checkAndGetTimeLocked() {\n final long actualSystemTime = System.currentTimeMillis();\n final long actualRealtime = SystemClock.elapsedRealtime();\n final long expectedSystemTime = (actualRealtime - mRealTimeSnapshot) + mSystemTimeSnapshot;\n boolean resetBeginIdleTime = false;\n if (Math.a... |
"public String getItemDescriptionForBrowser(Item item) {\n String itemDescription = \"String_Node_Str\";\n if (item != null) {\n String description = item.getDescription();\n if (description != null) {\n if (item.getFeed().isExternal()) {\n Filter xssFilter = FilterFactory.... |
"private void advance() {\n int mx;\n try {\n while (walker.hasNext()) {\n ColumnEvent ev = walker.next();\n switch(currentChangeType) {\n case ColumnEvent.ROW_EDGE_CHANGE:\n if (rowEdgeStarted) {\n nextExecutor = new CrosstabCe... |
"public boolean isSystemTable(String catalogName, String schemaName, String tableName) {\n return super.isSystemTable(catalogName, schemaName, tableName) || schemaName.equals(\"String_Node_Str\") || tableName.toLowerCase().startsWith(\"String_Node_Str\");\n}\n"
|
"public List<String> getWailaBody(ItemStack itemStack, List<String> toolTip, IWailaDataAccessor accessor, IWailaConfigHandler config) {\n if (config.getConfig(\"String_Node_Str\", false) && !accessor.getPlayer().isSneaking())\n return toolTip;\n if (config.getConfig(\"String_Node_Str\") && accessor.getBloc... |
"private void baseMapperSetup(Context context) {\n Logger.getLogger(MRFeatureSetCountPlugin.class.getName()).info(\"String_Node_Str\");\n Configuration conf = context.getConfiguration();\n String[] strings = conf.getStrings(AbstractMRHBaseBatchedPlugin.EXT_PARAMETERS);\n final String mapParameter = strings[... |
"private void updateScreenWithInstaScrollOption(boolean updatePrev, boolean instaScroll) {\n int selStart = mCalc.getSelectionStart();\n int selEnd = mCalc.getSelectionEnd();\n Log.d(\"String_Node_Str\", \"String_Node_Str\");\n mDisplay.setText(calc.toString());\n Log.d(\"String_Node_Str\", \"String_Node... |
"public static Map getDatabaseProperties() {\n if (propertiesMap == null) {\n String dbDriver = System.getProperty(DB_DRIVER_KEY);\n String dbUrl = System.getProperty(DB_URL_KEY);\n String dbUser = System.getProperty(DB_USER_KEY);\n String dbPwd = System.getProperty(DB_PWD_KEY);\n ... |
"public static void setFloor(final Player requester, final Plot plot, PlotBlock[] blocks) {\n if (runners.containsKey(plot)) {\n PlayerFunctions.sendMessage(requester, C.WAIT_FOR_TIMER);\n return;\n }\n PlayerFunctions.sendMessage(requester, C.GENERATING_FLOOR);\n World world = requester.getWo... |
"public void stop() {\n listener = null;\n items = new LinkedList<>();\n}\n"
|
"public TaskViewTransform getStackTransform(float taskProgress, float stackScroll, TaskViewTransform transformOut, TaskViewTransform frontTransform, boolean ignoreSingleTaskCase) {\n SystemServicesProxy ssp = Recents.getSystemServices();\n mUnfocusedRange.offset(stackScroll);\n float p = mUnfocusedRange.getNor... |
"private static IRenderer getBestRendererPrototype(PresentationType presentationType, Artifact artifact) throws OseeCoreException {\n if (presentationType == DEFAULT_OPEN && UserManager.getBooleanSetting(UserManager.DOUBLE_CLICK_SETTING_KEY_ART_EDIT)) {\n presentationType = GENERAL_REQUESTED;\n }\n IRen... |
"protected synchronized List<IRepositoryViewObject> getSerializableFromFolder(Project project, Object folder, String id, ERepositoryObjectType type, boolean allVersion, boolean searchInChildren, boolean withDeleted, boolean avoidSaveProject, boolean... recursiveCall) throws PersistenceException {\n List<IRepositoryV... |
"public Resource resolve(Address target) {\n Path path = target.getPath();\n Source source = loader.findSource(path.getPath());\n if (source != null) {\n return new EditableStaticResource(source, TheMimeTypes.get(source));\n }\n String[] segments = target.getPath().getSegments();\n String templ... |
"public ListResponse<UserVmResponse> getResponse() {\n List<UserVmVO> userVms = (List<UserVmVO>) getResponseObject();\n ListResponse<UserVmResponse> response = new ListResponse<UserVmResponse>();\n List<UserVmResponse> vmResponses = new ArrayList<UserVmResponse>();\n for (UserVmVO userVm : userVms) {\n ... |
"public IDocumentation resolveDocumentation(List<VirtualFile> virtualFile, PsiElement element) {\n if (!(element instanceof DotNetQualifiedElement)) {\n return null;\n }\n CSharpDocRoot docRoot = PsiTreeUtil.getChildOfType(element, CSharpDocRoot.class);\n if (docRoot != null) {\n return new CS... |
"private void refresh() {\n ProxyRepositoryFactory repositoryFactory = ProxyRepositoryFactory.getInstance();\n Project[] projects = null;\n try {\n projects = repositoryFactory.readProject();\n } catch (PersistenceException e1) {\n ExceptionHandler.process(e1);\n } catch (BusinessException ... |
"public FetchRequest fetchRequest(ImapRequestLineReader request) throws ProtocolException {\n FetchRequest fetch = new FetchRequest();\n nextNonSpaceChar(request);\n consumeChar(request, '(');\n char next = nextNonSpaceChar(request);\n boolean parenthesis = '(' == next;\n if (parenthesis) {\n c... |
"private List<String> execute(String... arguments) throws Exception {\n File temp = new File(testSelfrun.getParentFile(), \"String_Node_Str\" + testSelfrun.getName());\n try (BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(temp), Charset.defaultCharset()))) {\n writer... |
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n mDrawerListView = (ListView) inflater.inflate(R.layout.fragment_navigation_drawer, container, false);\n mDrawerListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n public void onItemC... |
"public Vector<DownloadLink> loadDownloadLinks(File file) {\n if (file.exists()) {\n Object obj = JDUtilities.loadObject(null, file, false);\n if (obj != null && obj instanceof Vector) {\n Vector<DownloadLink> links = (Vector<DownloadLink>) obj;\n Iterator<DownloadLink> iterator =... |
"private void setupPingingForNewPeer(final Peer peer) {\n if (peer.getPeerVersionMessage().clientVersion < Pong.MIN_PROTOCOL_VERSION)\n return;\n if (getPingIntervalMsec() <= 0)\n return;\n new Runnable() {\n private boolean firstRun = true;\n public void run() {\n if (fi... |
"static final CheckedListenableFuture<ServiceConfiguration> destroyTransitionChain(final ServiceConfiguration config) {\n if (!State.PRIMORDIAL.isIn(config)) {\n Callable<CheckedListenableFuture<ServiceConfiguration>> transition = Automata.sequenceTransitions(config, Component.State.ENABLED, Component.State.D... |
"private void marshal(Object object, Writer writer, ABSTRACT_SESSION session, DESCRIPTOR xmlDescriptor) throws XMLMarshalException {\n if ((object == null) || (writer == null)) {\n throw XMLMarshalException.nullArgumentException();\n }\n boolean isXMLRoot = false;\n String version = DEFAULT_XML_VERSI... |
"public boolean addXsiTypeAndClassIndicatorIfRequired(XMLRecord record, XMLDescriptor xmlDescriptor, XMLDescriptor referenceDescriptor, XMLField xmlField, boolean addToNamespaceResolver) {\n boolean xsiTypeIndicatorField = false;\n if (xmlDescriptor.hasInheritance()) {\n XMLField indicatorField = (XMLField... |
"int getValue(int min, int max, int v){\n\tif (v < min){\n\t\tv = min;\n\t}\n\tif (v > max){\n\t\tv = max;\n\t}\n\treturn v / 100;\n}\n"
|
"public DateTimeFormatterBuilder append(final DateTimePrinter printer, final DateTimeParser[] parsers) throws IllegalArgumentException {\n if (parsers == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n int length = parsers.length;\n if (length == 1) {\n if (parsers[0] ... |
"public void postRemoveService() {\n try {\n this.servicesManager.removeService(this.in(\"String_Node_Str\"));\n this.redirect(BASE_URL);\n } catch (DataDoesNotExistsException e) {\n this.notFound();\n }\n}\n"
|
"public void circularDistance() {\n SplitMergeLineFitLoop alg = new SplitMergeLineFitLoop(0.15, 5 * MINIMUM_SPLIT_FRACTION, 100);\n alg.N = 15;\n assertEquals(0, alg.circularDistance(0, 0));\n assertEquals(1, alg.circularDistance(0, 1));\n assertEquals(14, alg.circularDistance(0, 14));\n assertEquals(... |
"public Panel createWidget(List<PresentationAttr> presentationAttributes) {\n FacesContext fc = FacesContext.getCurrentInstance();\n Application application = fc.getApplication();\n parseAttributes(presentationAttributes);\n widget = (org.primefaces.component.gmap.GMap) application.createComponent(fc, \"Str... |
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n if (controller != null) {\n Spell targetSpell = game.getStack().getSpell(targetPointer.getFirst(game, source));\n if (targetSpell != null) {\n Set<CardType> cardTypes = new... |
"public void onResponse(int resultCode, String resultJson) {\n if (HttpStatus.SC_OK == resultCode) {\n GetJsApiTicketResponse response = JSONUtil.toBean(resultJson, GetJsApiTicketResponse.class);\n LOG.debug(\"String_Node_Str\", response.getTicket());\n if (StrUtil.isBlank(response.getTicket()))... |
"public void doTokenAlignments(String docText) {\n U.pl(\"String_Node_Str\");\n for (Sentence s : sentences) {\n U.pf(\"String_Node_Str\", s.ID(), StringUtils.join(s.tokens()));\n AlignedSub cleanText = AnalysisUtilities.moreCleanup(s.surfSent.rawText);\n int[] wordAlignsInSent = AnalysisUtil... |
"public ProtocolProviderService signin(final String userName, final String password) throws OperationFailedException {\n final AccountPanel accPanel = (AccountPanel) firstWizardPage.getSimpleForm();\n String accPanelUsername = accPanel.getUsername();\n boolean equals = false;\n final boolean rememberPasswor... |
"private static Flyway setupFlyway(DataSource datasource) {\n if (flywaydb == null) {\n try (Connection connection = datasource.getConnection()) {\n flywaydb = new Flyway();\n flywaydb.setDataSource(datasource);\n flywaydb.setEncoding(\"String_Node_Str\");\n String ... |
"private boolean allocationIdIsValid() {\n return textViewAllocationId.getError() == null && !isBlank(textViewAllocationId.getText().toString());\n}\n"
|
"public void valueChanged(Variable variable) {\n if (_parameters.containsValue(variable)) {\n List entryNameList = (List) _varToListOfEntries.get(variable);\n Iterator entryNames = entryNameList.iterator();\n while (entryNames.hasNext()) {\n String name = (String) entryNames.next();\n... |
"public String toString() {\n return documentFullName + \"String_Node_Str\" + documentShortName + \"String_Node_Str\" + documentDescription + \"String_Node_Str\" + templateid + \"String_Node_Str\" + formatCode + \"String_Node_Str\" + parentTemplateId;\n}\n"
|
"private long findLogContainingTxId(long txId) throws IOException {\n long version = logVersion;\n long committedTx = previousLogLastCommittedTx;\n while (version >= 0) {\n ReadableByteChannel log = getLogicalLogOrMyself(version);\n ByteBuffer buf = ByteBuffer.allocate(16);\n if (log.read(... |
"private void ensureCommentsVisible(final CommentDetail comments) {\n if (comments.getCommentsA().isEmpty() && comments.getCommentsB().isEmpty()) {\n return;\n }\n final List<Edit> empty = new ArrayList<Edit>();\n int lastLine;\n lastLine = -1;\n for (PatchLineComment plc : comments.getComments... |
"private Optional<DataHubKey> queryAndFindResult(String channelName, DataHubKey key, DataHubKey maxKey, boolean reversed) {\n QueryResult<OrderedRows<String, String, DataHubCompositeValue>> queryResult = queryRange(channelName, key, maxKey, reversed);\n return findFirstDifferentResult(key, queryResult, reversed);... |
"private static int getNodes(String srcFolder, String extension) {\n File d = new File(srcFolder);\n if (!d.exists()) {\n return 0;\n }\n File[] f = d.listFiles();\n if (f.length == 0) {\n return 0;\n }\n int index = 0;\n while (!f[index].getName().endsWith(extension)) {\n i... |
"protected void addInstallButtons() {\n final AtomicInteger enabledButtonCount = new AtomicInteger(0);\n tableViewerCreator.getTableViewer().getControl().setRedraw(false);\n final Table table = tableViewerCreator.getTable();\n manualInstallButtonMap = new HashMap<ModuleToInstall, Button>();\n ILibrariesS... |
"private void printFlowStatistics(StreamRTPManager rtpManager) {\n try {\n if (!logger.isInfoEnabled())\n return;\n GlobalTransmissionStats s = rtpManager.getGlobalTransmissionStats();\n String rtpstat = StatisticsEngine.RTP_STAT_PREFIX;\n StringBuilder buff = new StringBuilder... |
"public Iterator<NewsItem> getNews(Category cat, int startId, int numArts) {\n Object news = null;\n String cacheKey = \"String_Node_Str\" + cat.getKey() + \"String_Node_Str\" + startId + \"String_Node_Str\" + numArts;\n news = _cache.get(cacheKey, List.class);\n if (news == null) {\n news = GET_NEWS... |
"private void match() throws IOException {\n StringBuilder sQuery = new StringBuilder(\"String_Node_Str\" + \"String_Node_Str\");\n StringBuilder vivoOptionals = new StringBuilder();\n StringBuilder inputOptionals = new StringBuilder();\n List<String> filters = new ArrayList<String>();\n List<String> viv... |
"private Object readEntity(final Object uriParserResultView, final JPQLContextType contextType) throws ODataJPAModelException, ODataJPARuntimeException {\n Object selectedObject = null;\n if (uriParserResultView instanceof DeleteUriInfo || uriParserResultView instanceof GetEntityUriInfo || uriParserResultView ins... |
"public void loadTexture(IResourceManager resManager) throws IOException {\n this.deleteGlTexture();\n InputStream inputstream = null;\n InputStream inputstreamOverlay = null;\n try {\n BufferedImage image = null;\n IResource iresource = null;\n if (this.textureLocation.getResourcePath(... |
"public void updateAllEnabledOrNot() {\n String jobIdInOozie = getJobIdInOozie();\n String pathValue = executeJobComposite.getPathValue();\n Button runBtn = executeJobComposite.getRunBtn();\n Button scheduleBtn = executeJobComposite.getScheduleBtn();\n Button killBtn = executeJobComposite.getKillBtn();\n... |
"private void updateBuffer() {\n if (bIsPainting) {\n return;\n }\n Throwable paintError = null;\n if (chart == null) {\n return;\n }\n if (isDisposedPreviewCanvas()) {\n return;\n }\n Rectangle re = preview.getClientArea();\n final Rectangle adjustedRe = new Rectangle(0,... |
"public void registerOnline(Context context, DSpaceObject dso, String identifier) throws IdentifierException, IllegalArgumentException, SQLException {\n String doi = DOI.formatIdentifier(identifier);\n TableRow doiRow = loadOrCreateDOI(context, dso, doi);\n if (DELETED == doiRow.getIntColumn(\"String_Node_Str\... |
"public boolean hasFirstOrDoubleStrike(Game game) {\n for (CombatGroup group : groups) {\n if (group.hasFirstOrDoubleStrike(game)) {\n return true;\n }\n return false;\n}\n"
|
"public static boolean isValidName(String name) {\n return isValidString(name);\n}\n"
|
"public static void scan(final byte[] samples, final byte[] times, final int sampleCount, final SampleProcessor processor) throws IOException {\n final ByteArrayInputStream byteStream = new ByteArrayInputStream(samples);\n final DataInputStream inputStream = new DataInputStream(byteStream);\n final TimeCursor ... |
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);\n setContentView(R.layout.activity_barchart);\n tvX = (TextView) findViewById(R.id.tvXMax);\n tvY = (... |
"private void releaseListenersAndCloseContext(Throwable throwable) {\n synchronized (buckets) {\n for (PageResultListener resultListener : listenersByBucketIdx.values()) {\n resultListener.needMore(false);\n }\n listenersByBucketIdx.clear();\n }\n close(throwable);\n}\n"
|
"public boolean createFile(String fullName, byte[] data) throws FileException {\n OutputStream fos = null;\n FileConnection file = null;\n boolean isSaved = false;\n try {\n file = (FileConnection) Connector.open(fullName);\n if (!file.exists()) {\n file.create();\n }\n ... |
"protected void doSearch(String search, List<String> condQueries) {\n if (condQueries == null || condQueries.isEmpty()) {\n conditionalQueries = null;\n } else {\n conditionalQueries = new ArrayList<String>(condQueries);\n }\n if (dataSource != null) {\n resetInternComponents();\n ... |
"public void onResume() {\n Log.i(TAG, \"String_Node_Str\");\n super.onResume();\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, new Intent(this, getClass()).addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP), 0);\n if (NfcAdapter.getDefaultAdapter(this) != null)\n NfcAdapter.getDefaultAdap... |
"public String createFolder(String repositoryId, final Properties properties, String folderId, final List<String> policies, final Acl addAces, final Acl removeAces, ExtensionsData extension) {\n checkRepositoryId(repositoryId);\n final CMISNodeInfo parentInfo = getOrCreateFolderInfo(folderId, \"String_Node_Str\")... |
"public LinkedBindingBuilder<T> addBinding() {\n checkConfiguration(!isInitialized(), \"String_Node_Str\");\n return binder.bind(Key.get(elementType, new RealElement(setName, MULTIBINDER)));\n}\n"
|
"private void checkVisibilityEmptyLabel() {\n if (state == State.GLOBAL_LIST) {\n emptyListTextView.setVisibility(View.GONE);\n } else {\n int countFriends = UsersDatabaseManager.getAllFriendsCountWithPending(baseActivity);\n if ((countFriends + friendGroupAllUsers.getUserList().size()) > Con... |
"public boolean next() throws BirtException {\n checkStarted();\n boolean hasNext = false;\n if (state == BEFORE_FIRST_ROW) {\n state = ON_ROW;\n hasNext = odiResult.getCurrentResult() != null;\n } else {\n hasNext = hasNextRow();\n }\n if (useDetails == false && hasNext) {\n ... |
"public Map<String, String> entries() {\n return new ImmutableMap.Builder<String, String>().put(\"String_Node_Str\", Boolean.TRUE.toString()).put(\"String_Node_Str\", this.host).put(\"String_Node_Str\", Integer.toString(this.port)).put(\"String_Node_Str\", Boolean.TRUE.toString()).put(\"String_Node_Str\", SSLSocketF... |
"public boolean run(VerbRunner cb) {\n final Scene s = actor.getScene();\n final String actorId = actor.getActorId();\n if (actorId == null) {\n EngineLogger.error(getClass() + \"String_Node_Str\");\n return false;\n }\n InteractiveActor a = (InteractiveActor) s.getActor(actorId, false);\n ... |
"public boolean equals(Object o) {\n if (this == o)\n return true;\n if (o == null || getClass() != o.getClass())\n return false;\n SingleValueKey keys = (SingleValueKey) o;\n if (true) {\n return Objects.deepEquals(value, keys.value);\n }\n throw new IllegalArgumentException(\"St... |
"public void onHorizontalCollision(HorizontalVelocityChangeEvent e) {\n if (e.getEntity() instanceof LivingEntity) {\n Methods.damageEntity(e.getInstigator(), e.getEntity(), e.getDifference().length() * 2);\n }\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.