content stringlengths 40 137k |
|---|
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n Log.e(tag, \"String_Node_Str\");\n mSoundEffects = new SoundEffectPlayer();\n mSoundEffects.setup(this);\n loadExtras(getIntent());\n Log.e(tag, \"String_Node_Str\");\n loadUI();\n Log.e(tag, \"String_Node... |
"private void init() {\n JedisPoolConfig config = new JedisPoolConfig();\n config.setMaxIdle(100);\n config.setMaxTotal(100);\n config.setMaxWaitMillis(10000);\n config.setTestOnBorrow(true);\n config.setTestOnReturn(true);\n RedisClusterConfiguration redisClusterConfiguration = new RedisClusterCon... |
"public void userThreadStarted(final Thread userThread) {\n if (this.encapsulatedRuntimeTask != null) {\n this.encapsulatedRuntimeTask.userThreadStarted(userThread);\n } else {\n LOG.error(\"String_Node_Str\");\n }\n}\n"
|
"protected Type _methodCall(String methodName, Type[] argTypes) throws IllegalActionException {\n CachedMethod cachedMethod = CachedMethod.findMethod(methodName, argTypes, CachedMethod.METHOD);\n if (cachedMethod.isValid()) {\n Type type = cachedMethod.getReturnType();\n return type;\n }\n if ... |
"public void startAutoText(IAutoTextContent autoText) {\n HyperlinkDef link = parseHyperLink(autoText);\n BookmarkDef bookmark = getBookmark(autoText);\n engine.addData(autoText.getText(), autoText.getComputedStyle(), link, bookmark);\n}\n"
|
"private void createOpenMenuItem(Menu parentMenu) {\n openMenuItem = new MenuItem(parentMenu, SWT.PUSH);\n openMenuItem.setText(\"String_Node_Str\");\n needSelectedArtifactListener.addArtifactEnabled(openMenuItem);\n openMenuItem.addSelectionListener(new SelectionAdapter() {\n public void widgetSelec... |
"public void load(GuaguaWritableAdapter<LongWritable> currentKey, GuaguaWritableAdapter<Text> currentValue, WorkerContext<DTMasterParams, DTWorkerParams> context) {\n this.count += 1;\n if ((this.count) % 100000 == 0) {\n LOG.info(\"String_Node_Str\", this.count);\n }\n float[] numericInputs = new fl... |
"protected Object check(HadoopServiceProperties serviceProperties, ClassLoader classLoader) throws Exception {\n Object configuration = Class.forName(\"String_Node_Str\", true, classLoader).newInstance();\n Object conf = ReflectionUtils.newInstance(\"String_Node_Str\", classLoader, new Object[] { configuration })... |
"public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event) {\n String[] split = event.getMessage().split(\"String_Node_Str\");\n if (split.length == 0)\n return;\n String cmdName = split[0].substring(1).toLowerCase();\n ACCommands cmd = CommandManager.getInstance().getCommand(cmdName)... |
"public void update() {\n try {\n URL url = new URL(\"String_Node_Str\");\n BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));\n String str;\n while ((str = in.readLine()) != null) {\n int version = Integer.parseInt(str);\n if (version >... |
"private static void runDigitalSignatureStripOOXML(Path input, Path output) throws IOException, AlreadyExistsException, GenericException, InvalidFormatException {\n FSUtils.copy(input, output, true);\n OPCPackage pkg = OPCPackage.open(output.toString(), PackageAccess.READ_WRITE);\n ArrayList<PackagePart> pps =... |
"public Future<Result<Thread>> start() throws IOException {\n final FutureImpl<Result<Thread>> future = UnsafeFutureImpl.<Result<Thread>>create();\n final long t1 = System.currentTimeMillis();\n grizzlyListener.start();\n if (logger.isLoggable(Level.INFO)) {\n logger.log(Level.INFO, KernelLoggerInfo.... |
"public static ReaderTag getTag(String tagName) {\n if (TextUtils.isEmpty(tagName)) {\n return null;\n Cursor c = ReaderDatabase.getReadableDb().rawQuery(\"String_Node_Str\", new String[] { tagName });\n try {\n if (!c.moveToFirst())\n return null;\n return getTagFromCursor(c);\... |
"public Map<Integer, List<Integer>> getResourcesOfTestUsers(int trainSize) {\n Map<Integer, List<Integer>> resourcesMap = new HashMap<Integer, List<Integer>>();\n if (trainSize == -1) {\n trainSize = 0;\n }\n for (int i = trainSize; i < getBookmarks().size(); i++) {\n Bookmark data = getBookma... |
"private Key createRightKey(ExpressionNode node, DboColumnMeta info) {\n byte[] data = retrieveValue(info, node.getRightChild());\n if (node.getType() == NoSqlLexer.LT)\n return new Key(data, false);\n else if (node.getType() == NoSqlLexer.GE)\n return new Key(data, true);\n else\n thro... |
"public void testEOLWithHighlightSearch() {\n setHighlightSearch();\n final int pos = search(\"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\");\n assertEquals(3, pos);\n}\n"
|
"public void deletePlot(Object id) {\n this.lock.lock();\n try {\n PlotInfo info = stackedPlots.remove(id);\n if (info == null)\n return;\n this.removeLayout(info.getLayout());\n stackedPlots.remove(id);\n if (isAutoValidate())\n validate();\n } finally ... |
"private void save() {\n final String ERROR_HEADER = \"String_Node_Str\";\n final String ERROR_TEXT = \"String_Node_Str\";\n String file = controller.actionShowSaveFileDialog(getShell(), \"String_Node_Str\");\n if (file == null)\n return;\n try {\n HierarchyBuilder<T> builder = null;\n ... |
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n if (controller != null) {\n for (UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)) {\n final int count = game.getBattlefield().getAllActivePermanents(ne... |
"protected Object getFromNamespace(String name) {\n Object v = _ns.getVariable(name, true);\n return v != null || _ns.containsVariable(name, true) ? v : getImplicit(name);\n}\n"
|
"public void testMoreThanOneAuthMechDoesNotRegisterProvider() throws Exception {\n final Bean<HttpAuthenticationMechanism> httpAuthenticationMechanismBean1 = mockery.mock(Bean.class, \"String_Node_Str\");\n final Bean<HttpAuthenticationMechanism> httpAuthenticationMechanismBean2 = mockery.mock(Bean.class, \"Strin... |
"public void run() {\n synchronized (ImageIcon.this) {\n Toolkit tk = Toolkit.getDefaultToolkit();\n int width = _image.getWidth(ImageIcon.this);\n int height = _image.getHeight(ImageIcon.this);\n if (width < 0 || height < 0) {\n return;\n }\n int newWidth = (int)... |
"private void extractArguments(Node callNode, ScriptOrFnNode tree, List columnExprList) throws BirtException {\n Node arg = callNode.getFirstChild().getNext();\n while (arg != null) {\n Node nextArg = arg.getNext();\n processChild(arg, tree, columnExprList);\n arg = nextArg;\n }\n}\n"
|
"private MultiRateLimiter newRateLimiter(final List<Long> epochsInSeconds, final List<Integer> limits, final long windowLowerBound, final long windowUpperBound) {\n final Map<String, AbstractRateLimiter> limiters = new HashMap<>();\n for (int i = 0; i < epochsInSeconds.size(); i++) {\n try {\n f... |
"protected void createTableViewer(Composite parent) {\n viewer = new PropertyHandleTableViewer(parent, true, true, true) {\n protected void doRemove() {\n int index = viewer.getTable().getSelectionIndex();\n PropertyHandle handle = (PropertyHandle) viewer.getInput();\n int cou... |
"private Map<Date, BigDecimal> overhead(Connection connection) throws SQLException {\n PreparedStatement s = connection.prepareStatement(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n try {\n s.setInt(1, days);\n s.setInt(2, sarariman.... |
"public Packet decode(ByteBuf byteBuf) {\n String locale;\n try {\n locale = ByteBufUtils.readUTF8(byteBuf);\n } catch (IOException e) {\n logger.error(e.getMessage());\n locale = \"String_Node_Str\";\n }\n final byte viewDistance = byteBuf.readByte();\n ChatMode chatMode;\n tr... |
"public long getKeepAliveDuration(HttpResponse response, HttpContext context) {\n return HttpManager.this.getKeepAliveDuration(response);\n}\n"
|
"public Set<Element> getConstrainingElements() {\n if (constrainingElements == null) {\n constrainingElements = new LinkedHashSet<Element>();\n }\n if (type == Type.ANY)\n return constrainingElements;\n Set<Element> filtered = new LinkedHashSet<Element>();\n for (Element c : constrainingEle... |
"private void append(ID fromID, String body) {\n if (!isFirstMessage) {\n chatText.append(Text.DELIMITER);\n }\n int length = chatText.getCharCount();\n String name = getUserName(fromID);\n if (fromID.equals(remoteID)) {\n if (showTimestamps) {\n chatText.append(FORMATTER.format(... |
"public void readValues(DataRead dr) throws BasicException {\n m_sTicket = dr.getString(1);\n m_iLine = dr.getInt(2).intValue();\n productid = dr.getString(3);\n attsetinstid = dr.getString(4);\n multiply = dr.getDouble(5);\n price = dr.getDouble(6);\n tax = new TaxInfo(dr.getString(7), dr.getStrin... |
"public static IOReadableWritable createCopy(IOReadableWritable original) throws IOException {\n final ByteArrayOutputStream baos = new ByteArrayOutputStream();\n final DataOutputStream dos = new DataOutputStream(baos);\n original.write(dos);\n final String className = original.getClass().getName();\n if... |
"private Schema keySchema(ExhibitDescriptor descriptor) {\n List<Schema.Field> keyFields = Lists.newArrayList();\n ObsDescriptor od = descriptor.attributes();\n for (String attr : config.attrs) {\n ObsDescriptor.Field f = od.get(od.indexOf(attr));\n keyFields.add(AvroExhibit.getSchemaField(f));\n... |
"public boolean equalsAsOption(PossibleAction pa) {\n if (pa == this)\n return true;\n if (!super.equalsAsOption(pa))\n return false;\n BuyCertificate action = (BuyCertificate) pa;\n return Objects.equal(this.company, action.company) && Objects.equal(this.from, action.from) && Objects.equal(th... |
"public static boolean checkCC(String cardNumber) {\n int sum = 0;\n if (!StringUtils.isNumber(cardNumber)) {\n return false;\n }\n for (int i = cardNumber.length() - 1; i >= 0; i--) {\n int k = Character.digit(cardNumber.charAt(i), 10);\n flip++;\n if (flip % 2 == 0) {\n ... |
"protected void visitCallParamContentNode(CallParamContentNode node) {\n visitRenderUnitNode(node);\n}\n"
|
"public boolean isOnIsland(final Player owner, final Player target) {\n if (target.getWorld().equals(ASkyBlock.getIslandWorld()) || (Settings.newNether && Settings.createNether && target.getWorld().equals(ASkyBlock.getNetherWorld()))) {\n Location islandTestLocation = null;\n if (plugin.getPlayers().in... |
"public void addFileToScan(final String fileName) {\n if (!fParentFiles.containsKey(fileName)) {\n fParentFiles.put(fileName, new HashSet<String>());\n startUpdateTask(Messages.BatchImportTraceWizard_add + ' ' + fileName, fileName);\n }\n}\n"
|
"protected ContextComposite addContextFields(Composite parentComposite) {\n contextHandler = new GenericContextHandler();\n contextHandler.setParameters(getContextParameters());\n ContextComposite contextComp = new ContextComposite(parentComposite, connectionItem, !isRepositoryObjectEditable, contextHandler);\... |
"public static void main(String[] args) throws Exception {\n NAR n = new DefaultNARBuilder().setConceptBagSize(8192).setTermLinkBagLevels(8).setTaskLinkBagLevels(8).build();\n n.start(0);\n new XMLInput(n, \"String_Node_Str\", \"String_Node_Str\");\n}\n"
|
"public Value next() throws IOException, InterruptedException {\n if (bufferIdx < VALUE_BUFFER_SIZE) {\n return valBuffer[bufferIdx++];\n } else {\n Value nextVal = values.next();\n copyKey = keySerialization.newInstance();\n keyCopier.getCopy(copyKey);\n copyVal = valSerializat... |
"public void map(final NullWritable key, final FaunusVertex value, final Mapper<NullWritable, FaunusVertex, Text, LongWritable>.Context context) throws IOException, InterruptedException {\n long counter = 0;\n for (final Edge edge : value.getEdges(this.direction)) {\n counter++;\n final String label... |
"public void printBanner(Environment environment, Class<?> sourceClass, PrintStream out) {\n for (String line : BANNER) {\n out.println(line);\n }\n String version = this.getClass().getPackage().getImplementationVersion();\n version = environment.getProperty(\"String_Node_Str\");\n if (version == ... |
"public static SqlStorage<FormDefRecord> getFormDefStorage() {\n if (sFormDefStorage == null) {\n sFormDefStorage = CommCareApplication.instance().getAppStorage(FormDefRecord.class);\n }\n return sFormDefStorage;\n}\n"
|
"protected Roster getRoster() throws IOException {\n final ECFConnection connection = getECFConnection();\n if (connection != null) {\n return connection.getRoster();\n } else\n return null;\n}\n"
|
"public Calendar getModelValue(Long data) {\n if (data != null) {\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(data);\n return calendar;\n } else {\n return null;\n }\n}\n"
|
"public AtlasGlossaryCategory createCategory(AtlasGlossaryCategory glossaryCategory) throws AtlasBaseException {\n if (DEBUG_ENABLED) {\n LOG.debug(\"String_Node_Str\", glossaryCategory);\n }\n if (Objects.isNull(glossaryCategory)) {\n throw new AtlasBaseException(AtlasErrorCode.BAD_REQUEST, \"St... |
"protected void doOpen() {\n JmsDestination destination = info.getDestination();\n String destnationName = session.getQualifiedName(destination);\n String sourceAddress = getProducerId().toString();\n Source source = new Source();\n source.setAddress(sourceAddress);\n Target target = new Target();\n ... |
"public static Map<String, Set<String>> getJMSChanges(Project project) {\n Map<String, Set<String>> changes = new HashMap<String, Set<String>>();\n Set<String> changedIds = new HashSet<String>();\n Set<String> deletedIds = new HashSet<String>();\n Set<String> addedIds = new HashSet<String>();\n changes.p... |
"public Object resolve(URI baseUri, URI uri) {\n URI relativeUri = baseUri.relativize(uri);\n Stack<URI> uris = UriUtils.explode(baseUri, relativeUri);\n if (uris.size() < 1) {\n return null;\n }\n String repoName = UriUtils.path(uris.get(0));\n String sId = UriUtils.path(uris.get(1));\n Rep... |
"public static void main(String[] args) {\n try {\n Workbench w = new Workbench();\n w.parseArgs(args);\n w.setSize(800, 600);\n if (w.openFile != null) {\n File f = new File(w.openFile);\n if (f.canRead()) {\n w.openSchemaFrame(f.getAbsoluteFile(), fa... |
"public void removeLocalTempTableIndex(Index index) throws SQLException {\n if (localTempTableIndexes != null) {\n localTempTableIndexes.remove(index.getName());\n synchronized (database) {\n index.removeChildrenAndResources(this);\n }\n }\n}\n"
|
"public void run() {\n try {\n barrier.await();\n try (JournalWriter w = wf.writer(m)) {\n if (w != null) {\n writerCount.incrementAndGet();\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n errors.incrementAndGet();\n } finally {... |
"public Map<String, Object> getAttributes() {\n if (attributes == null)\n attributes = new AttributeMapWrapper(this, super.getAttributes());\n return attributes;\n}\n"
|
"protected int getMaximumValueForSet(long instant, int value) {\n int maxLessOne = iChronology.getDaysInYearMax() - 1;\n return (value > maxLessOne || value < 1) ? getMaximumValue(instant) : maxLessOne;\n}\n"
|
"final void moveTaskToFrontLocked(TaskRecord tr, boolean noAnimation, Bundle options, String reason) {\n if (DEBUG_SWITCH)\n Slog.v(TAG_SWITCH, \"String_Node_Str\" + tr);\n final int numTasks = mTaskHistory.size();\n final int index = mTaskHistory.indexOf(tr);\n if (numTasks == 0 || index < 0) {\n ... |
"public HashMap<Profile, HashMap<ProjectVersionRef, Dependency>> getResolvedProfileManagedDependencies(MavenSessionHandler session) throws ManipulationException {\n if (resolvedProfileManagedDependencies == null) {\n resolvedProfileManagedDependencies = new HashMap<>();\n for (final Profile profile : P... |
"private static void writeFeature(Writer w, SequenceAnnotation sa, String role, int offset, boolean inline) throws IOException, SBOLConversionException {\n if (sa.getPreciseLocations().size() == 0) {\n throw new SBOLConversionException(\"String_Node_Str\" + sa.getIdentity() + \"String_Node_Str\");\n } else... |
"public GameProfile getProfile(String name) {\n String playername = name.toLowerCase(Locale.ROOT);\n UserCacheEntry entry = stringToProfile.get(playername);\n if (entry != null && entry.isExpired()) {\n stringToProfile.remove(playername);\n uuidToProfile.remove(entry.getProfile().getId());\n ... |
"private BitmapIndexReader createBitmapIndexReaderAt(int globalIndex, int columnBase, int columnIndex, int direction) {\n BitmapIndexReader reader;\n if (!metadata.isColumnIndexed(columnIndex)) {\n throw CairoException.instance(0).put(\"String_Node_Str\").put(metadata.getColumnName(columnIndex));\n }\n ... |
"private void updateScreen() {\n if (VDBG)\n log(\"String_Node_Str\");\n if (!mIsForegroundActivity) {\n if (VDBG)\n log(\"String_Node_Str\");\n return;\n }\n if (mInCallMenu != null) {\n if (VDBG)\n log(\"String_Node_Str\");\n boolean okToShowMenu = ... |
"public void testXMLToObjectFromURL() throws Exception {\n if (isUnmarshalTest()) {\n java.net.URL url = ClassLoader.getSystemResource(resourceName);\n jaxbUnmarshaller.setProperty(UnmarshallerProperties.MEDIA_TYPE, \"String_Node_Str\");\n Object testObject = null;\n if (getUnmarshalClass... |
"public void navigate(boolean requestFocus) {\n element.navigate(requestFocus);\n}\n"
|
"public void pickBlockerOrder(UUID playerId, Game game) {\n if (blockers.isEmpty()) {\n return;\n }\n Player player = game.getPlayer(playerId);\n List<UUID> blockerList = new ArrayList<>(blockers);\n blockerOrder.clear();\n while (true && player.isInGame()) {\n if (blockerList.size() == ... |
"public static void setup() throws Exception {\n SConfiguration sConf = SConfiguration.create();\n sConf.set(Constants.Security.Store.FILE_PASSWORD, \"String_Node_Str\");\n final Injector injector = AppFabricTestHelper.getInjector(createCConf(), sConf, new AbstractModule() {\n protected void configure()... |
"public boolean hasChildren(Object element) {\n if (element instanceof TdView || element instanceof TdTable) {\n return false;\n }\n return !super.hasChildren(element);\n}\n"
|
"private void createTosProjectArea(final Composite parent) {\n tosProjectComposite = toolkit.createComposite(parent);\n tosProjectComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n tosProjectComposite.setLayout(new FormLayout());\n tosProjectComposite.setBackgroundMode(SWT.INHERIT_DEFAULT);\... |
"public int getWidth() {\n DimensionHandle handle = getColumnHandle().getWidth();\n if (DesignChoiceConstants.UNITS_PERCENTAGE.equals(handle.getUnits())) {\n Object obj = getTableParent();\n if (obj instanceof GridHandle) {\n obj = HandleAdapterFactory.getInstance().getGridHandleAdapter(o... |
"private static BookmarkedConference getConferenceStorage(XmlPullParser parser) throws Exception {\n BookmarkedConference conf = new BookmarkedConference();\n String name = parser.getAttributeValue(\"String_Node_Str\", \"String_Node_Str\");\n String autojoin = parser.getAttributeValue(\"String_Node_Str\", \"St... |
"public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException {\n Item item = submission.getItem();\n Collection collection = submission.getCollection();\n String actionURL = contextPath + \"String_Node_Str\" + collection.getHandle() + \"String_N... |
"public void verify_A$String$OAuthConsumer$HttpMethod$SignatureMethod_POST() throws Exception {\n String authorizationHeader = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n OAuthConsumer consumer = new OAuthConsumer(\"String_No... |
"public void setDataElement(DataElement data) {\n if (!(data == null || data instanceof DateTimeDataElement)) {\n return;\n }\n btnCheck.setSelection(data != null);\n Calendar calendar = null;\n if (data == null) {\n calendar = Calendar.getInstance();\n calendar.set(Calendar.HOUR, 0)... |
"public Map<String, List<EventEnvelope>> findPendingSagaEvents() {\n return persistentStore1.findPendingSagaEvents();\n}\n"
|
"public AmendableWidgetReference getInjectionPoint(final OverlayWidget parent, final OverlayWidget reference, final OverlayWidget overlayWidget) {\n AmendableWidgetReference injectionPoint;\n final String xPath = findXPathExpressionToOverlayWidget(reference);\n if (overlayWidget.isIntroducedByAnAmendment()) {\... |
"public void updateJobOutput(String jobId, ExecutableState newStatus, Map<String, String> info, String output) {\n try {\n final JobOutputPO jobOutput = jobDao.getJobOutput(jobId);\n ExecutableState oldStatus = ExecutableState.valueOf(jobOutput.getStatus());\n if (newStatus != null && oldStatus ... |
"private T _getInstance() throws InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {\n ConstructorInjectablePair<T> cip = getConstructor();\n if (cip == null || cip.is.isEmpty()) {\n return c.newInstance();\n } else {\n if (cip.is.contains(null)) ... |
"private CardType guessCardType(CharSequence cardType) {\n for (CardType type : CardType.values()) {\n if (type.guess(cardType)) {\n return type;\n }\n }\n return CardType.UNKNOWN;\n}\n"
|
"public void store(File file) throws IOFailure, ArgumentNotValid {\n ArgumentNotValid.checkNotNull(file, \"String_Node_Str\");\n ArgumentNotValid.checkTrue(file.isFile(), \"String_Node_Str\" + file.getPath() + \"String_Node_Str\" + \"String_Node_Str\");\n StringBuilder messages = new StringBuilder();\n for ... |
"public Object findTemplateSource(String name) throws IOException {\n String fullPath = subdirPath + name;\n if (attemptFileAccess) {\n try {\n String realPath = servletContext.getRealPath(fullPath);\n if (realPath != null) {\n File file = new File(realPath);\n ... |
"public int getFieldIndex(String fieldName) {\n Integer i = (Integer) m_nameToIdMapping.get(fieldName);\n return (i == null) ? -1 : i.intValue();\n}\n"
|
"public Properties getProperties() {\n return GuardProperties.INSTANCE;\n}\n"
|
"private void testRecoverLobInDatabase() throws SQLException {\n deleteDb(\"String_Node_Str\");\n String url = getURL(\"String_Node_Str\", true);\n Connection conn;\n Statement stat;\n conn = getConnection(url, getUser(), getPassword());\n stat = conn.createStatement();\n stat.execute(\"String_Node... |
"public String getAttribute(Attribute attribute) {\n if (attribute == null)\n return null;\n if (attribute.startsWith(\"String_Node_Str\") && attribute.hasContext(1) && (attribute.startsWith(\"String_Node_Str\", 2) || attribute.startsWith(\"String_Node_Str\", 2)) && attribute.hasContext(2)) {\n Comp... |
"public RestResult delete(Uri uri) throws SQLiteException {\n int count = -1;\n if (Utils.notEmpty(uri)) {\n SQLiteDatabase database = sqliteHelper.getWritableDatabase();\n String key = \"String_Node_Str\";\n String[] value = { uri.toString() };\n count = database.delete(\"String_Node_... |
"private void calcNextRun() {\n if (nextRun == 0)\n nextRun = now;\n nextRun += ((now - nextRun) / intervallMs + 1) * intervallMs;\n}\n"
|
"public int compare(CardView a, CardView b) {\n Comparable aCom = null;\n Comparable bCom = null;\n if (column == 0) {\n aCom = 1;\n bCom = 1;\n } else if (column == 1) {\n aCom = a.getName();\n bCom = b.getName();\n if (aCom.equals(bCom) && a.getExpansionSetCode().equals(... |
"protected void setAttr(int row, String attrName, String value) {\n Element elem = ensureElement(row);\n DOM.setElementAttribute(elem, attrName, value);\n}\n"
|
"public boolean deletePool(DeletePoolCmd command) throws InvalidParameterValueException {\n Long id = command.getId();\n boolean deleteFlag = false;\n StoragePoolVO sPool = _storagePoolDao.findById(id);\n if (sPool == null) {\n s_logger.warn(\"String_Node_Str\" + id);\n throw new InvalidParame... |
"public synchronized void initProducts() {\n productListModel.removeAllElements();\n for (Product product : appContext.getProductManager().getProducts()) {\n addProduct(product);\n }\n Product selectedProduct = appContext.getSelectedProduct();\n final ProductNode productNode = Utilities.actionsGlo... |
"private boolean updateAppList(List<ApplicationInfo> newList) {\n if ((newList == null) || mCache.isEmpty()) {\n return false;\n }\n Set<String> existingList = new HashSet<String>();\n boolean ret = false;\n int N = newList.size();\n for (int i = (N - 1); i >= 0; i--) {\n ApplicationInfo... |
"public void mouseDoubleClick(MouseEvent e) {\n TreeItem[] treeItems = tree.getSelection();\n Point point = new Point(e.x, e.y);\n TableItem selectedItem = table.getItem(point);\n if (selectedItem != null) {\n NodeType type = (NodeType) selectedItem.getData(NODE_TYPE);\n if (type == NodeType.C... |
"public AvailableStatus requestFileInformation(DownloadLink link) throws IOException, PluginException {\n this.setBrowserExclusive();\n br.setFollowRedirects(true);\n br.setCustomCharset(\"String_Node_Str\");\n br.getPage(link.getDownloadURL());\n if (br.containsHTML(\"String_Node_Str\"))\n throw ... |
"public CharSequence getPageTitle(int position) {\n String name = fragments.get(position).getClass().getName();\n if (name.contains(\"String_Node_Str\")) {\n Main ma = ((Main) fragments.get(position));\n if (ma.results) {\n return utils.getString(getActivity(), R.string.searchresults);\n ... |
"public void onClose(WebSocket websocket) {\n fireDisconnected();\n}\n"
|
"private void setGrailsVersion(IProject project, GrailsVersion version) throws Exception {\n version.setOn(project, false);\n}\n"
|
"protected Set<Component> findClassesWithAnnotation(Class<? extends Annotation> type, String technology, boolean includePublicTypesOnly) {\n Set<Component> components = new HashSet<>();\n Set<Class<?>> componentTypes = findTypesAnnotatedWith(type);\n for (Class<?> componentType : componentTypes) {\n if ... |
"public String formInfoMessage(boolean formLink, String addition, int hearts, PpMessageBuilder ppMessageBuilder) throws UserException {\n if (beatmap.getMaxCombo() <= 0) {\n throw new UserException(format(\"String_Node_Str\", beatmap.getBeatmapId()));\n }\n String beatmapName = String.format(\"String_No... |
"public boolean isInternal(String ip) {\n try {\n byte[] gateway = mGateway.toByteArray();\n byte[] address = InetAddress.getByName(ip).getAddress();\n byte[] mask = getNetmaskAddress().getAddress();\n for (int i = 0; i < gateway.length; i++) if ((gateway[i] & mask[i]) != (address[i] & ma... |
"private IType resolveTopLevelWith(MarkerList markers, IContext context) {\n final IClass theClass = context.resolveClass(this.name);\n if (theClass != null) {\n return new ResolvedClassType(theClass, this.position);\n }\n final ITypeParameter typeParameter = context.resolveTypeParameter(this.name);\... |
"public boolean selectFont(char character) {\n assert (fontManager != null);\n BaseFont candidateFont = getMappedFont(character);\n assert (candidateFont != null);\n checkFontStatus(candidateFont);\n return candidateFont.charExists(character);\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.