content stringlengths 40 137k |
|---|
"public String getRowSelectionScript() {\n if (currentData == null)\n return null;\n List<Integer> indexToUpdate;\n if (!hasOnRender && (bgColorScript != null || (getRowSelectedStyle() != null && getRowSelectedStyle().getAttributeCount() > 0)) && (indexToUpdate = getIndexToUpdate()) != null) {\n ... |
"public String submit(String openid, String name, Long stuId, String gender, String nationality, Long tel, String email, String introduce, String description) {\n Optional<ApplicationForm> optional = joinService.queryForm(openid);\n if (optional.isPresent() && optional.get().getName() == null) {\n Applicat... |
"public void run() {\n while (true) {\n try {\n Thread.sleep(10);\n } catch (Exception e) {\n }\n while (!packets.isEmpty()) {\n SendRequest r = packets.remove();\n for (EntityPlayerMP player : (List<EntityPlayerMP>) MinecraftServer.getServer().getConfigur... |
"protected void onPreExecute() {\n if (maxId == null) {\n mStatusAdapter.clear();\n }\n}\n"
|
"public void testUpdateSeatAllocation() {\n Assert.assertEquals(2, reservationManager.getBookingState().getReserved().size());\n Assert.assertEquals(1, reservationManager.getBookingState().getReserved().get(0).getStartSeat());\n Assert.assertEquals(10, reservationManager.getBookingState().getReserved().get(0).... |
"public void onMultiAdvertiseCallback(int status, boolean isStart, AdvertiseSettings settings) {\n synchronized (this) {\n if (isStart) {\n if (status == AdvertiseCallback.ADVERTISE_SUCCESS) {\n mAdvertiseCallback.onStartSuccess(settings);\n mIsAdvertising = true;\n ... |
"public String getXWikiEclipseId() {\n return String.format(\"String_Node_Str\", getDataManager().getName(), getId(), getAuthor());\n}\n"
|
"protected synchronized IStatus run(IProgressMonitor monitor) {\n if (tailing) {\n remove = stream.shouldCloseStream();\n if (!remove) {\n try {\n stream.write(monitor);\n } catch (CoreException e) {\n remove = true;\n CloudFoundryPlugi... |
"public Result execute(ShellContext context) throws Exception {\n Shell shell = context.getProvider();\n FileResource<?> currentResource = shell.getCurrentResource();\n Iterable<String> value = arguments.getValue();\n Iterator<String> it = value == null ? Collections.<String>emptyList().iterator() : value.i... |
"private void checkTaskExecution() {\n final Iterator<Task> it = this.runningTasks.values().iterator();\n while (it.hasNext()) {\n final Task task = it.next();\n if (task.isTerminated()) {\n task.markAsFailed();\n }\n }\n final Iterator<Task> it2 = failedTasks.iterator();\n ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.