content stringlengths 40 137k |
|---|
"public void prestartAllCoreThreads() {\n synchronized (workersLock) {\n boolean startedThreads = false;\n while (currentPoolSize < corePoolSize) {\n availableWorkers.addFirst(makeNewWorker());\n startedThreads = true;\n }\n if (startedThreads) {\n workers... |
"private String readString(InputStream is) throws IOException {\n int len = is.read();\n if (len == -1) {\n throw new EOFException();\n }\n byte[] buf = new byte[len];\n is.read(buf);\n return new String(buf, \"String_Node_Str\");\n}\n"
|
"public int getFuelProgressScaled(int i) {\n if (inventory[0] == null || !FuelMapper.isStackFuel(inventory[0])) {\n return 0;\n }\n int reqEmc = 0;\n if (inventory[lockSlot] != null) {\n reqEmc = EMCHelper.getEmcValue(inventory[lockSlot]) - EMCHelper.getEmcValue(inventory[0]);\n if (req... |
"public void pruneAsDuplicatePosition() {\n setPruned(false, Node.PRUNE_DUPLICATE_POSITION);\n}\n"
|
"public void test_FilteWithTopN() throws Exception {\n String testSQL = \"String_Node_Str\" + getTestTableName();\n ((OdaDataSetDesign) this.dataSet).setQueryText(testSQL);\n ScriptExpression[] expressions = new ScriptExpression[2];\n expressions[0] = new ScriptExpression(\"String_Node_Str\");\n expressi... |
"public long timestamp(int year, int month, int day) {\n GregorianCalendar cal = DateUtils.getStartOfTodayCalendar();\n cal.set(year, month, day, hourOfDay, minute, second);\n return cal.getTimeInMillis();\n}\n"
|
"public void reconcileBeanConfig(AnnotatedMethodStore ams) {\n if (jcp == null) {\n jcp = new JSR362ConfigurationProcessor(pad);\n }\n jcp.reconcileBeanConfig(methodStore);\n}\n"
|
"public void shouldMatchExpectedToStringOutput_WhenActualRequestHasNullHeaderValue() throws Exception {\n final StubRequest actualRequest = BUILDER.withUrl(\"String_Node_Str\").withMethodGet().withMethodPost().withMethodPut().withPost(null).withQuery(\"String_Node_Str\", \"String_Node_Str\").withQuery(\"String_Node_... |
"public void onResponse(JSONObject response) {\n logger.d(response.toString());\n try {\n String sessionToken = response.getString(SESSION_ID_KEY);\n Boolean isAuthenticated = Boolean.parseBoolean(response.getString(AUTHENTICATION_KEY));\n if (isAuthenticated) {\n if (isDBCleaningR... |
"public void testGetTableNamesFromQuery() throws SQLException {\n assertTrue(ExtractMetaDataFromDataBase.tableCommentsMap instanceof HashMap<?, ?>);\n assertTrue(ExtractMetaDataFromDataBase.tableCommentsMap.isEmpty());\n ResultSet mockResultSet = mock(ResultSet.class);\n when(mockResultSet.getString(1)).the... |
"public void writeStatement(MethodWriter writer) {\n this.variable.writeSet(writer, null, this.variable.value);\n}\n"
|
"protected boolean namespaceEquals(BaseID o) {\n if (!(o instanceof XMPPRoomID)) {\n return false;\n }\n XMPPRoomID other = (XMPPRoomID) o;\n return fieldEquals(other);\n}\n"
|
"public void setFontSize(int fontSize) {\n int normalTextSize;\n int smallTextSize;\n switch(fontSize) {\n case FONT_SIZE_SMALL:\n normalTextSize = (int) (getGridSize() * 0.3);\n smallTextSize = (int) (getGridSize() * 0.2);\n break;\n case FONT_SIZE_MEDIUM:\n ... |
"private void extractTextureContainer(int i, int total, WadFile wad, String destination) {\n for (final String entry : wad.getWadFileEntries()) {\n updateStatus(i, total, ConvertProcess.TEXTURES);\n i++;\n if (entry.endsWith(\"String_Node_Str\")) {\n LoadingScreenFile lsf = new Loadin... |
"public boolean startsWith(RandomDataInput input) {\n long inputRemaining = input.remaining();\n if ((limitAddr - positionAddr) < inputRemaining)\n return false;\n long pos = position(), inputPos = input.position();\n UNSAFE.getLong(startAddr + pos);\n int i = 0;\n for (; i < inputRemaining - 7... |
"public String getClassName(String obf) {\n String r = classes.get(obf);\n if (r != null)\n return r;\n if (!obf.contains(\"String_Node_Str\") || obf.startsWith(\"String_Node_Str\"))\n return \"String_Node_Str\" + obf;\n return obf;\n}\n"
|
"private void goToEnemy(IAttackable enemy) {\n if (inSaveGotoMode) {\n goToSavely(enemy);\n } else {\n ShortPoint2D pos = super.getPos();\n EDirection dir = EDirection.getApproxDirection(pos, enemy.getPos());\n if (super.goInDirection(dir, false)) {\n return;\n } else... |
"public void onInventoryChanged() {\n PacketDispatcher.sendPacketToAllAround(this.xCoord, this.yCoord, this.zCoord, 128D, this.worldObj.provider.dimensionId, getDescriptionPacket());\n worldObj.updateAllLightTypes(xCoord, yCoord, zCoord);\n if (hasGlassBell) {\n worldObj.updateAllLightTypes(xCoord, yCoo... |
"public static void gdp_datum_print(PointerByReference datum) {\n Pointer d = null;\n NativeSizeT length = new NativeSizeT();\n length.setValue(-1);\n if (datum == null) {\n System.out.print(\"String_Node_Str\");\n }\n System.out.print(\"String_Node_Str\" + Gdp10Library.INSTANCE.gdp_datum_getre... |
"public boolean quitRope() {\n if (editFrame.sourcePath != null && editFrame.sourceChanged) {\n int result = JOptionPane.showConfirmDialog(null, \"String_Node_Str\", \"String_Node_Str\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE);\n if (result == JOptionPane.CANCEL_OPTION) {\n ... |
"private boolean hasArgumentMark(String string, char mark) {\n int quoteIndex = -1;\n int lastEndQuoteIndex = -1;\n do {\n int markIndex = string.indexOf(mark, lastEndQuoteIndex + 1);\n if (markIndex == -1) {\n return false;\n }\n quoteIndex = string.lastIndexOf(quote, ma... |
"private void estimateMax() {\n initializeTopDown(lattice.getTop());\n setMaximum(lattice.getTop());\n this.globalMaximum = lattice.getTop().getMaximumInformationLoss();\n ARXNode[][] levels = lattice.getLevels();\n for (int i = levels.length - 2; i >= 0; i--) {\n final ARXNode[] level = levels[i]... |
"private Html renderCartPage(final Cart cart, final UserContext userContext) {\n final CartDetailPageContent content = new CartDetailPageContent(cart, userContext, productDataConfig, i18nResolver(), reverseRouter());\n final SunrisePageData pageData = pageData(userContext, content, ctx(), session());\n return ... |
"public void testSettingsNoPassword() throws Exception {\n ReflectionTestUtils.setField(sut, \"String_Node_Str\", SERVER_ID);\n final Server server = mockServer();\n server.setPassword(null);\n when(settings.getServer(SERVER_ID)).thenReturn(server);\n Throwable cause = null;\n try {\n sut.execu... |
"public DetailledItem getResult(int position) throws IOException {\n String html = httpGet(opac_url + \"String_Node_Str\" + db + \"String_Node_Str\" + searchSet + \"String_Node_Str\" + (position + 1), getDefaultEncoding(), false, cookieStore);\n return parse_result(html);\n}\n"
|
"protected void configure() {\n setName(NAME);\n setDescription(DESCRIPTION);\n Map<String, String> properties = new HashMap<>();\n properties.put(Constants.PIPELINE_SPEC_KEY, GSON.toJson(spec));\n setProperties(properties);\n stageSpecs = new HashMap<>();\n useSpark = engine == Engine.SPARK;\n ... |
"public Set<MetaFile> getMetaFiles(Template template) throws AxelorException, IOException {\n List<MetaAttachment> metaAttachments = Query.of(MetaAttachment.class).filter(\"String_Node_Str\", template.getId(), Template.class.getName()).fetch();\n Set<MetaFile> metaFiles = Sets.newHashSet();\n for (MetaAttachme... |
"private boolean changeSize() {\n recycleBitmaps();\n int width = this.mapView.getWidth();\n int height = this.mapView.getHeight();\n if (width > 0 && height > 0) {\n this.bitmap1 = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n this.bitmap2 = Bitmap.createBitmap(width, height,... |
"private void newBrowseItemView(String browseItem) throws RemoteException {\n for (XSDElementDeclaration decl : declList) {\n String fullName = BROWSE_ITEMS + decl.getName();\n if (fullName.equals(browseItem)) {\n XtentisPort port = getXtentisPort();\n WSView view = new WSView();\... |
"public void load() {\n this.configFolder = new File(this.plugin.getDataFolder(), this.playerName);\n this.configFolder.mkdirs();\n this.generalConfig = new Configuration(new File(this.configFolder, GENERAL_CONFIG_FILENAME));\n this.warpConfig = new Configuration(new File(this.configFolder, WARP_CONFIG_FILE... |
"public ArrayList<Player> getManagedPlayers() {\n ArrayList<Player> players = new ArrayList<Player>();\n for (net.minecraft.server.EntityPlayerMP player : pm.getManagedPlayers()) {\n players.add(player.getPlayer());\n }\n return players;\n}\n"
|
"protected Void execute(StopContainerCmd command) {\n WebTarget webResource = getBaseResource().path(\"String_Node_Str\").resolveTemplate(\"String_Node_Str\", command.getContainerId()).queryParam(\"String_Node_Str\", String.valueOf(command.getTimeout()));\n LOGGER.trace(\"String_Node_Str\", webResource);\n web... |
"public boolean isEmpty() {\n return buffer.get() == null || buffer.get().limit() <= 0;\n}\n"
|
"void setEndPoints(double dStart, double dEnd) {\n this.dStart = dStart;\n this.dEnd = dEnd;\n if (isTickBetweenCategory) {\n this.dStep = (dEnd - dStart) / size;\n } else {\n this.dStep = (dEnd - dStart) / (size - 1);\n }\n}\n"
|
"private Quad getQuad() {\n Vector2f scales = new Vector2f();\n BufferedImage img = getImage(scales);\n float w = img.getWidth();\n float h = img.getHeight();\n float factor = height / h;\n Quad ret;\n if (imgWidth == w && imgHeight == h) {\n ret = quad;\n TextureState texState = (Tex... |
"public Response toResponse(UnsupportedMediaTypeException ex) {\n return Response.status(Response.Status.UNSUPPORTED_MEDIA_TYPE).build();\n}\n"
|
"private int stopAll(String callingApp) {\n int result = TextToSpeech.TTS_ERROR;\n boolean speechQueueAvailable = false;\n try {\n speechQueueAvailable = speechQueueLock.tryLock(SPEECHQUEUELOCK_TIMEOUT, TimeUnit.MILLISECONDS);\n if (speechQueueAvailable) {\n for (int i = mSpeechQueue.s... |
"public boolean equals(Object obj) {\n if (this == obj)\n return true;\n if (obj == null)\n return false;\n if (getClass() != obj.getClass())\n return false;\n DeploymentArtifactImpl other = (DeploymentArtifactImpl) obj;\n if (artifact == null) {\n if (other.artifact != null)\... |
"public void addOtherAbility(Card attachedTo, Ability ability) {\n Ability newAbility;\n if (ability instanceof MageSingleton) {\n newAbility = ability;\n } else {\n newAbility = ability.copy();\n }\n newAbility.setSourceId(attachedTo.getId());\n newAbility.setControllerId(attachedTo.get... |
"public void onActionMove(MotionEvent event) {\n final int pointerIndex = event.findPointerIndex(mEditorView.getActivePointerId());\n final int x = (int) event.getX(pointerIndex);\n final int y = (int) event.getY(pointerIndex);\n if (!isRunning) {\n int xGrid = rasterGridHelper.getTouchOnGrid(mEditor... |
"public void testExtensibility() throws Exception {\n String baseXml = TestHelper.getResourceAsString(\"String_Node_Str\", \"String_Node_Str\");\n JSONJAXBContext jsonContext = new JSONJAXBContext(JSONConfiguration.natural().build(), \"String_Node_Str\");\n Unmarshaller jaxbUnmarshaller = jsonContext.createUnm... |
"public long nextPos() {\n long pos = searchPos;\n while (true) {\n long entry = bytes.readInt48(pos);\n if (entry == UNSET_ENTRY) {\n searchState.searchPos = pos;\n return -1L;\n }\n pos = step(pos);\n if (key(entry) == searchHash) {\n searchPos... |
"private void commutative(OPT_Instruction s, OPT_Operator opCode, OPT_IR ir) {\n OPT_RegisterOperand result = Binary.getClearResult(s);\n OPT_Operand op1 = Binary.getClearVal1(s);\n OPT_Operand op2 = Binary.getClearVal2(s);\n if (result.similar(op1)) {\n OPT_DefUse.removeUse(op1.asRegister());\n ... |
"public void startWave() {\n if (currentWave == AMOUNT_OF_WAVES) {\n currentWave = 0;\n int rankTemp;\n for (int index = enemies.size() - 1; index >= 0; --index) {\n if (enemies.get(index).rank <= 4) {\n rankTemp = enemies.get(index).rank;\n enemies.get(i... |
"public void setCondensedKeys(CondenseType condenseType) {\n if (mKeyboardCondenser.setCondensedKeys(condenseType)) {\n computeNearestNeighbors();\n}\n"
|
"public <T> CursorEntity<T> graphGetEdgesByExampleMap(String graphName, Class<T> clazz, Map<String, Object> vertexExample) throws ArangoException {\n validateCollectionName(graphName);\n String query = \"String_Node_Str\";\n Map<String, Object> bindVars = new MapBuilder().put(GRAPH_NAME, graphName).put(VERTEX_... |
"protected Config loadConfig() throws IOException {\n if (getGitDir() != null) {\n File path = safeFS().resolve(getGitDir(), \"String_Node_Str\");\n FileBasedConfig cfg = new FileBasedConfig(path, safeFS());\n try {\n cfg.load();\n } catch (ConfigInvalidException err) {\n ... |
"private NodeRef recursiveCopy(NodeRef sourceNodeRef, NodeRef destinationParent, QName destinationAssocTypeQName, QName destinationQName, boolean copyChildren, Map<NodeRef, NodeRef> copiedChildren) {\n QName sourceTypeRef = this.nodeService.getType(sourceNodeRef);\n TypeDefinition typeDef = dictionaryService.getT... |
"public BufferedImage expensiveRecolorOperations(boolean forMain, BTProgressMonitor monitor) throws IOException, AsynchExitRequestException {\n Dimension screenSize = (forMain) ? Toolkit.getDefaultToolkit().getScreenSize() : new Dimension(800, 400);\n screenSize.setSize((int) (screenSize.getWidth() * 0.8), (int) ... |
"void showInputMethodMenu() {\n if (DEBUG)\n Slog.v(TAG, \"String_Node_Str\");\n hideInputMethodMenu();\n final Context context = mContext;\n final PackageManager pm = context.getPackageManager();\n String lastInputMethodId = Settings.Secure.getString(context.getContentResolver(), Settings.Secure.... |
"public static final boolean alarmExists(ContentResolver cr, long eventId, long begin, long alarmTime) {\n String[] projection = new String[] { ALARM_TIME };\n Cursor cursor = query(cr, projection, WHERE_ALARM_EXISTS, new String[] { Long.toString(eventId), Long.toString(begin), Long.toString(alarmTime) }, null);\... |
"public Publisher<T> apply(Flowable<T> upstream) {\n HideAtStartShowAtError<T> delegate = new HideAtStartShowAtError<>(view.hideErrorState(), view.showErrorState(), error -> !(error instanceof ContentNotFoundError), uiScheduler);\n return upstream.compose(delegate);\n}\n"
|
"private void outputIndexEntryEclipseIndexsee(final IndexTerm term, final XMLStreamWriter serializer) throws XMLStreamException {\n final List<IndexTermTarget> targets = term.getTargetList();\n final int targetNum = targets.size();\n if (targets != null && !targets.isEmpty()) {\n for (final IndexTermTar... |
"protected ModelNode buildOperationRequest(CommandContext ctx, final String operation) throws CommandFormatException {\n ParsedCommandLine args = ctx.getParsedCommandLine();\n DefaultOperationRequestBuilder builder = new DefaultOperationRequestBuilder();\n if (ctx.isDomainMode()) {\n final String profil... |
"Option<MatchResult> unapplyToken(Token token) {\n if (token instanceof Token.FloatToken) {\n return Option.Some(new MatchResult(token));\n } else {\n return Option.None();\n }\n return Option.None();\n}\n"
|
"public void doSave(IProgressMonitor monitor) {\n if (masterPage.isDirty()) {\n masterPage.doSave(monitor);\n setPartName(masterPage.getIntactElemenetName());\n ConnectionItem item = (ConnectionItem) ((ConnectionItemEditorInput) this.getEditorInput()).getItem();\n if (item instanceof Data... |
"public void testNumSamplesMultipleFiles() {\n try {\n final String tempFile = TestFileUtils.createTempFileDir(TEST_DATA1, TEST_DATA1, TEST_DATA1, TEST_DATA1);\n final Configuration conf = new Configuration();\n conf.setString(FileInputFormat.FILE_PARAMETER_KEY, tempFile.replace(\"String_Node_St... |
"public void write() throws IOException {\n OutputStream outStream = null;\n XMLStreamWriter out = null;\n try {\n outStream = new FileOutputStream(new File(tempDir, JOB_FILE));\n out = XMLOutputFactory.newInstance().createXMLStreamWriter(outStream, \"String_Node_Str\");\n out.writeStartDo... |
"protected void refreshVisuals() {\n ConnectionPart connectionPart;\n connectionPart = (ConnectionPart) getParent();\n Connection conn = (Connection) connectionPart.getModel();\n IElementParameter element = conn.getElementParameter(EParameterName.TRACES_CONNECTION_ENABLE.getName());\n Boolean flag = fals... |
"public void onUpdateProperties(NodeRef commentsRollupNode, Map<QName, Serializable> before, Map<QName, Serializable> after) {\n Serializable newCommentCount = after.get(ForumModel.PROP_COMMENT_COUNT);\n if (newCommentCount != null) {\n Integer newCommentCountInt = (Integer) newCommentCount;\n if (n... |
"public void sendEvents(final int eventType, final String name, final Data key, final Data value, final Map<Address, Boolean> mapListeners) {\n if (mapListeners != null) {\n final PacketQueue sq = PacketQueue.get();\n final Set<Map.Entry<Address, Boolean>> listeners = mapListeners.entrySet();\n ... |
"public Integer checkin(final Long poid, final String comment, String deserializerName, Long fileSize, DataHandler dataHandler, Boolean merge, Boolean sync) throws ServerException, UserException {\n requireAuthenticationAndRunningServer();\n final BimDatabaseSession session = bimServer.getDatabase().createSession... |
"private void emptyLibs() {\n File libsDir = org.eclipse.core.runtime.Platform.getLocation().append(JavaUtils.JAVA_PROJECT_NAME).append(File.separator).append(JavaUtils.JAVA_LIB_DIRECTORY).toFile();\n if (libsDir.exists() && libsDir.isDirectory()) {\n FilesUtils.emptyFolder(libsDir);\n }\n}\n"
|
"public Object unmarshalEntity(Class type, MediaType acceptedMedia, InputStream in) throws JAXBException {\n Unmarshaller unmarshaller = getJAXBContext().createUnmarshaller();\n unmarshaller.setProperty(UnmarshallerProperties.JSON_INCLUDE_ROOT, Boolean.FALSE);\n unmarshaller.setProperty(UnmarshallerProperties.... |
"public void writeStatement(MethodWriter writer) throws BytecodeException {\n FieldAccess access = (FieldAccess) this.instance;\n IDataMember f = access.field;\n if (this.writeIINC(writer, f)) {\n return;\n }\n f.writeSet(writer, access.instance, new MethodCall(this.position, access, this.method, ... |
"public void entrySetShouldContainEntries() {\n addTwoElements();\n final Set<Entry<Integer, Integer>> entrySet = map.entrySet();\n assertEquals(2, entrySet.size());\n assertFalse(entrySet.isEmpty());\n final Iterator<Entry<Integer, Integer>> it = entrySet.iterator();\n assertTrue(it.hasNext());\n ... |
"public java.lang.Long getMyLongWrapperTest() {\n return getLong(START_PROPERTY_INDEX + 56);\n}\n"
|
"public void begin() throws CompassException {\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\" + Thread.currentThread().getName() + \"String_Node_Str\" + System.identityHashCode(compass) + \"String_Node_Str\" + System.identityHashCode(session) + \"String_Node_Str\");\n }\n session.getSearc... |
"protected void onSubmit(final AjaxRequestTarget target, final Form<?> form) {\n String value = getAddress();\n if (StringUtils.isBlank(value)) {\n resultListModel.setObject(Collections.<GeocodingResult>emptyList());\n } else {\n List<GeocodingResult> results = null;\n try {\n r... |
"public void testNull() {\n gffl.parse(gffl.EMPTY_STRING, false, new RandomWrapper(42));\n gffl.setKeepNull(true);\n assertEquals(0, gffl.generateMaskedRow(0L).longValue());\n assertEquals(null, gffl.generateMaskedRow(null));\n}\n"
|
"public void createOneUnit(final TreeItem treeItem, IndicatorUnit indicatorUnit) {\n final TreeItem indicatorItem = new TreeItem(treeItem, SWT.NONE);\n final IndicatorUnit unit = indicatorUnit;\n IndicatorEnum indicatorType = indicatorUnit.getType();\n indicatorItem.setData(MODELELEMENT_INDICATOR_KEY, treeI... |
"protected void _resolveProperties(NamedObj analyzer) throws KernelException {\n NamedObj toplevel = _toplevel();\n PropertyConstraintHelper toplevelHelper = (PropertyConstraintHelper) getHelper(toplevel);\n toplevelHelper.reinitialize();\n toplevelHelper._addDefaultConstraints(_getConstraintType(actorConst... |
"public void drawCylinder(RenderProps props, float[] coords0, float[] coords1, double r, boolean capped) {\n pushModelMatrix();\n RigidTransform3d lineRot = getLineTransform(coords0, coords1);\n mulModelMatrix(lineRot);\n double dx = coords1[0] - coords0[0];\n double dy = coords1[1] - coords0[1];\n do... |
"protected void removeTempDemoProject() throws PersistenceException, CoreException {\n if (tempDemoProject != null) {\n ProjectManager.getInstance().getFolders(tempDemoProject.getEmfProject()).clear();\n final IProject project = ResourceModelUtils.getProject(tempDemoProject);\n project.delete(tr... |
"private static void append0(CharSink sink, int val) {\n if (Math.abs(val) < 10) {\n sink.put('0');\n }\n Numbers.append(sink, val);\n}\n"
|
"public String _s(int res_id) {\n return OResource.string(mContext, res_id);\n}\n"
|
"public Prediction computeWeightedVote() {\n int n = votes.size();\n if (n > 0) {\n int numOutputs = outputAttributesCount.length;\n weights = new double[n][numOutputs];\n weightedVote = new MultiLabelPrediction(numOutputs);\n double[] sumError = new double[numOutputs];\n for (i... |
"private static void read(SBOLDocument doc, BufferedInputStream in) throws IOException, SBOLValidationException {\n so = new SequenceOntology();\n nextLine = null;\n featureMode = false;\n originMode = false;\n doc.addNamespace(URI.create(gbNamespace), gbPrefix);\n BufferedReader br = new BufferedRead... |
"public boolean onCommand(CommandSender slapper, Command command, String label, String[] split) {\n if (plugin.usePermissions) {\n if (!(plugin.permissionHandler.has((Player) slapper, \"String_Node_Str\"))) {\n slapper.sendMessage(ChatColor.RED + \"String_Node_Str\");\n return true;\n ... |
"public Object getNewObject() {\n OPMConsumptionEventLink link = OPMFactory.eINSTANCE.createOPMConsumptionEventLink();\n link.setId(OPMIdManager.getNextId());\n return link;\n}\n"
|
"public void startElement(String uri, String localname, String qname, Attributes attrs) throws SAXException {\n Element ele = null;\n if (stack.size() > 0) {\n ele = (Element) stack.getFirst();\n if (ele == null) {\n return;\n }\n }\n Tag t = getTag(localname, qname);\n st... |
"public Set<String> getIdentifiers() throws GuacamoleException {\n return permissionCheckService.retrieveConnectionNames(user_id, MySQLConstants.CONNECTION_READ);\n}\n"
|
"private void shareTorrentFile(BTData btData, File torrentFile) {\n if (SharingSettings.SHARE_DOWNLOADED_FILES_IN_NON_SHARED_DIRECTORIES.getValue() && !btData.isPrivate()) {\n final File tFile = getSharedTorrentMetaDataFile(btData);\n fileManager.getGnutellaFileList().remove(tFile);\n File backu... |
"public void addServerAndSync(ServerSessionManager session) throws InterruptedException {\n synchronized (this) {\n logger.warning(\"String_Node_Str\" + session.getServerURL());\n synchronized (avatarConfigServers) {\n if (avatarConfigServers.containsKey(session) == true) {\n ... |
"public void onTimeSet(TimePicker view, int hour, int minute) {\n Log.v(TAG, \"String_Node_Str\" + (hour < 10 ? \"String_Node_Str\" + hour : hour) + \"String_Node_Str\" + (minute < 10 ? \"String_Node_Str\" + minute : minute));\n mInputEditText.setText(\"String_Node_Str\" + (hour < 10 ? \"String_Node_Str\" + hour ... |
"public void optimize() {\n boolean firstPassDFA = useDFA() && !config.doOptimizeFastOnly();\n if (firstPassDFA) {\n executor.dataflowAnalysis(false);\n }\n executor.buildCallGraph(firstPassDFA);\n executor.dumpCallgraph(\"String_Node_Str\");\n executor.removeDebugAttributes();\n executor.cl... |
"public void fire() throws IllegalActionException {\n super.fire();\n if (input.getWidth() > 0 && input.hasToken(0)) {\n if (_tableau != null) {\n _tableau.close();\n _tableau = null;\n }\n Entity model = ((ActorToken) input.get(0)).getEntity();\n Configuration co... |
"public void onSuccess(List<ErrorTimeSlotData> dataRanges) {\n String serviceOpName = selectionContext.getSelection(ObjectType.ServiceName);\n if (selectionContext.getSelection(ObjectType.OperationName) != null) {\n serviceOpName += \"String_Node_Str\" + selectionContext.getSelection(ObjectType.OperationNa... |
"public boolean execute(final PlotPlayer player, String... args) {\n Plot plot;\n String world;\n if (player != null) {\n final Location loc = player.getLocation();\n world = loc.getWorld();\n if (!PlotSquared.isPlotWorld(world)) {\n MainUtil.sendMessage(player, C.NOT_IN_PLOT_WO... |
"protected void onResume() {\n super.onResume();\n if (CommCareApplication._().getCurrentApp() != null) {\n platform = CommCareApplication._().getCommCarePlatform();\n }\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\n refreshActionBar();\n }\n dispatchHomeScreen();\n}\n... |
"public void addItemModel(Item item, int meta, ModelResourceLocation location) {\n ModelLoader.setCustomModelResourceLocation(item, meta, location);\n}\n"
|
"public void setTokenPublisher(TokenPublisher tokenPublisher) {\n _tokenPublisher = tokenPublisher;\n}\n"
|
"public void listOfStrings() {\n ListSchema listSchema = deserialize(\"String_Node_Str\", ListSchema.class);\n List<String> stringList = listSchema.strings();\n assertEquals(\"String_Node_Str\", stringList.get(0));\n assertEquals(\"String_Node_Str\", stringList.get(1));\n assertEquals(\"String_Node_Str\"... |
"protected void saveStates() {\n RunTimeContext rtc = context.line.getRunTimeContext();\n if (context.line.isLastRuntimeSeriesInAxis()) {\n rtc.putState(STACKED_SERIES_LOCATION_KEY, null);\n rtc.putState(AREA_ENVELOPS, null);\n } else {\n List<double[]> list = new ArrayList<double[]>();\n ... |
"public void formSaveCallback() {\n if (!hasSaved) {\n savingFormOnKeySessionExpiration = true;\n saveDataToDisk(EXIT, false, null, true);\n }\n}\n"
|
"public List<CssDeclaration> getCssDeclarations(IElement element, MediaDeviceDescription deviceDescription) {\n List<CssRuleSet> ruleSets = getCssRuleSets(element, deviceDescription);\n Map<String, CssDeclaration> declarations = new LinkedHashMap<>();\n Collections.sort(ruleSets, new CssRuleSetComparator());\n... |
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_filter);\n receivedFilters = getIntent().getStringArrayExtra(INPUT_FILTER_ARRAY);\n currentDistance = getIntent().getIntExtra(INPUT_DISTANCE, DEFAULT_DISTANCE_IN_KILOMETERS);\n setL... |
"public void run() {\n String prefix = \"String_Node_Str\";\n int index = 1;\n while (true) {\n RpcObject rpc = createRpc(prefix + index);\n logger.info(\"String_Node_Str\" + rpc);\n connector.sendRpcObject(rpc, 10000);\n index++;\n try {\n Thread.currentThread().s... |
"public void exceptionOnSchedule() throws JobExecutionException {\n JobDetail detail = job.scheduleWithForceUpdate(consumer);\n assertNotNull(detail);\n when(ctx.getMergedJobDataMap()).thenReturn(detail.getJobDataMap());\n when(curator.lockAndLoadByUuid(consumerUuid)).thenReturn(consumer);\n when(rules.g... |
"private RunOverview[] createModel(File file) {\n Gson gson = new Gson();\n RunOverview[] fromJson;\n try (Reader r = Files.newReader(file, Charset.defaultCharset())) {\n fromJson = gson.fromJson(r, RunOverview[].class);\n Arrays.sort(fromJson, Collections.reverseOrder());\n return fromJso... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.