content
stringlengths
40
137k
"private void setErrorIcon(Drawable icon) {\n Drawables dr = mTextView.mDrawables;\n if (dr == null) {\n mTextView.mDrawables = dr = new Drawables(mTextView.getContext());\n }\n dr.setErrorDrawable(icon, mTextView);\n mTextView.resetResolvedDrawables();\n mTextView.invalidate();\n mTextView....
"public void createCell(CellMO cellMO) {\n final Class cellClazz = cellMO.getClass();\n final Identity identity = proxy.getCurrentOwner();\n scheduleChange(new Change(cellMO.getCellID(), cellMO.getLocalBounds(), cellMO.getLocalTransform(null)) {\n public void run() {\n SpatialCell sc = univer...
"public String executeRequest(String clientId, ConcurrentHashMap<String, String> clientState, String request) throws Exception {\n StringBuffer rsb = new StringBuffer();\n String cmd;\n String[] args;\n if (request.indexOf(SPACE) != -1) {\n cmd = request.substring(0, request.indexOf(SPACE)).trim().to...
"private Referenceable registerDatabase(String databaseName) throws Exception {\n Referenceable dbRef = getDatabaseReference(clusterName, databaseName);\n Database db = hiveClient.getDatabase(databaseName);\n if (db != null) {\n if (dbRef == null) {\n dbRef = createDBInstance(db);\n ...
"public void actionSubsetFile() {\n ImportDataWizard wizard = new ImportDataWizard(this, model);\n new WizardDialog(main.getShell(), wizard).open();\n DataSourceConfiguration config = wizard.getResultingConfiguration();\n if (config == null) {\n return;\n }\n final WorkerImport worker = new Wor...
"private IDataEngine getDataEngine(Report report, String archivePath, String archiveMetaName, int mode) throws Exception {\n ExecutionContext context = new ExecutionContext();\n if (mode == MODE_GENERATION) {\n archWriter = new FileArchiveWriter(archivePath);\n archWriter.initialize();\n Data...
"public void testRenderTask() throws Exception {\n removeFile(TEMP_RESULT);\n removeFile(REPORT_DOCUMENT);\n createReportDocument();\n IReportDocument reportDoc = engine.openReportDocument(REPORT_DOCUMENT);\n IRenderTask task = engine.createRenderTask(reportDoc);\n task.setTimeZone(TimeZone.getTimeZon...
"private void onUpdateVersionResponse(AppInfoOutput appInfoOutput) {\n AppController.storeString(Constants.SMS_CENTER, appInfoOutput.smsCenter);\n boolean isForcedUpdate;\n if (appInfoOutput.updateInfo.force_update != null && appInfoOutput.updateInfo.force_update.equalsIgnoreCase(\"String_Node_Str\")) {\n ...
"public void setIcon(int id) {\n Drawable drawable = DrawableCompat.wrap(VectorDrawableCompat.create(context.getResources(), id, context.getTheme()));\n DrawableCompat.setTint(drawable, Color.argb(138, 0, 0, 0));\n icon.setImageDrawable(drawable);\n}\n"
"protected void executeSequentially() {\n try {\n begin();\n if (source != null) {\n final Reader reader = source.read();\n if (reader != null)\n extractor.extract(reader);\n }\n final OETLPipeline pipeline = new OETLPipeline(this, transformers, loader...
"public void onDownloadProgress(final long finished, final long length) {\n final int percent = (int) (finished * 100 / length);\n if (percent != tempPercent) {\n mPlatform.execute(new Runnable() {\n\n public void run() {\n mCallback.onDownloadProgress(finished, length, percent);\n ...
"public View getView(int position, View convertView, ViewGroup parent) {\n View row = convertView;\n if (row == null) {\n LayoutInflater inflater = getLayoutInflater();\n row = inflater.inflate(R.layout.parish_search_row, parent, false);\n }\n if (getItem(position) != null) {\n parish =...
"private static VM_Address pushVarArgToSpillArea(int methodID, boolean skip4Args) throws Exception, VM_PragmaNoInline {\n VM_Address currentfp = VM_Magic.getFramePointer();\n VM_Address gluefp = VM_Magic.getMemoryAddress(VM_Magic.getFramePointer().add(VM_Constants.STACKFRAME_FRAME_POINTER_OFFSET));\n gluefp = ...
"protected ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object obj, BindException errors) throws Exception {\n HttpSession httpSession = request.getSession();\n log.debug(\"String_Node_Str\");\n if (Context.isAuthenticated()) {\n PatientService ps = Context.getPatientS...
"public static IFile getRelativeFile(IFile originalFile, String pathRelativeToOriginalFile) {\n IPath originalFolderPath = originalFile.getParent().getLocation();\n IPath newPath = originalFolderPath.append(pathRelativeToOriginalFile);\n return originalFile.getWorkspace().getRoot().getFile(newPath);\n}\n"
"private static InnerStateRuntime parse(StateElement stateElement, Map<String, AbstractDefinition> streamDefinitionMap, Map<String, AbstractDefinition> tableDefinitionMap, Map<String, AbstractDefinition> windowDefinitionMap, Map<String, Table> tableMap, MetaStateEvent metaStateEvent, SiddhiAppContext siddhiAppContext, ...
"public List<IRepositoryNode> getChildren() {\n if (!children.isEmpty()) {\n return children;\n }\n IRepositoryViewObject object = this.getParent().getObject();\n createRepositoryNodeTableFolderNode(repsNodes, object);\n return repsNodes;\n}\n"
"protected Object getValueFromSubject() {\n return Boolean.valueOf(true);\n}\n"
"public Job refreshTemplates() {\n Element oldComponent = null;\n IComponentSettingsView viewer = null;\n if (!CommonUIPlugin.isFullyHeadless()) {\n viewer = (IComponentSettingsView) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().findView(IComponentSettingsView.ID);\n if (vi...
"public Node<Item> removeAfter(Node node, Node first) {\n if (first == null) {\n return null;\n }\n Node current = first;\n while (current != null) {\n if (current.equals(node)) {\n if (current.next != null) {\n current.next = current.next.next;\n retur...
"public void testGetArtifact() throws OseeCoreException {\n try {\n ArtifactQuery.getArtifactFromId(parentGuid, CoverageTestUtil.getTestBranch());\n Assert.fail(\"String_Node_Str\");\n } catch (ArtifactDoesNotExist ex) {\n }\n Artifact artifact = new OseeCoverageUnitStore(parentCu, CoverageTes...
"public void widgetSelected(SelectionEvent e) {\n String filename = null;\n if (!isIDE || getProjectFolder() == null) {\n FileDialog dialog = new FileDialog(UIUtil.getDefaultShell());\n if (needFilter) {\n dialog.setFilterExtensions(fileExt);\n }\n filename = dialog.open();\...
"private OperationThread[] initGenericThreads(GroupProperties groupProperties) {\n int threadCount = groupProperties.GENERIC_OPERATION_THREAD_COUNT.getInteger();\n if (threadCount <= 0) {\n int coreSize = Runtime.getRuntime().availableProcessors();\n threadCount = Math.max(2, coreSize / 2);\n }\n...
"private void unpackAspectAttributes() {\n isUnpacked = true;\n List pointcuts = new ArrayList();\n typeMungers = new ArrayList();\n declares = new ArrayList();\n List l = BcelAttributes.readAjAttributes(javaClass.getClassName(), javaClass.getAttributes(), getResolvedTypeX().getSourceContext(), getResolv...
"public boolean updateNeeded() {\n SVersion localVersion = getLocalVersion();\n SVersion onlineVersion = getOnlineVersion();\n if (localVersion.getMajor().compareTo(onlineVersion.getMajor()) < 0) {\n return true;\n } else if (localVersion.getMajor() == onlineVersion.getMajor()) {\n if (localVe...
"public Graph transform(Graph g) {\n initIDSpace(g);\n if (graphPlotter != null)\n graphPlotter.plotStartGraph(g, idSpace);\n EdgeCrossings ec = new EdgeCrossings();\n int countCrossings = -1;\n System.out.println(\"String_Node_Str\" + countCrossings);\n this.g = g;\n edges = new Edge[g.getN...
"public boolean match(Shadow shadow, World world) {\n if (super.match(shadow, world)) {\n IMessage message = new Message(msg, shadow.toString(), isError ? IMessage.ERROR : IMessage.WARNING, shadow.getSourceLocation(), null, new ISourceLocation[] { this.getSourceLocation() }, true, 0);\n world.getMessag...
"private String buildCriteria(String criteria, String property, Object value) {\n value = StringEscapeUtils.escapeSql(value.toString());\n if (value != null) {\n if (property.equals(\"String_Node_Str\") || property.equals(\"String_Node_Str\") || property.equals(\"String_Node_Str\") || property.equals(\"Str...
"public void writeCall(MethodWriter writer, IValue instance, IArguments arguments, IType type) {\n if ((this.modifiers & Modifiers.STATIC) != 0) {\n if (instance != null && instance.getValueType() == IValue.CLASS_ACCESS) {\n instance = null;\n }\n if (this.intrinsicOpcodes != null) {\...
"public void resumeAll() {\n commonBaseList.getReadWriteLock().readLock().lock();\n try {\n for (DownloadItem item : commonBaseList) {\n if (item.getState().isResumable()) {\n item.resume();\n }\n }\n }\n}\n"
"public final Object getDefault() {\n if (service.getOutputLimit() != null && service.getOutputLimit().length >= 2 && service.getOutputLimitType() != null && service.getOutputLimitType().length == service.getOutputLimit().length) {\n if (service.getOutputLimit()[0] > 0 && service.getOutputLimitType()[0] == Li...
"public void testDateDisplayNormal2(Book book) {\n Sheet sheet = book.getSheetAt(0);\n Range r;\n Setup.setZssLocale(Locale.TAIWAN);\n r = Ranges.range(sheet, \"String_Node_Str\");\n r.setCellEditText(\"String_Node_Str\");\n Assert.assertEquals(\"String_Node_Str\", r.getCellDataFormat());\n Assert....
"public void setMyBooleanWrapperTest(java.lang.Boolean value) {\n set(START_PROPERTY_INDEX + 50, value);\n}\n"
"public Range<Long> getShardKeyRange(long timestampStart, long timestampEnd) throws ShardStrategyException {\n if (timestampStart == 0) {\n if (timestampEnd == 0) {\n throw new ShardStrategyException(\"String_Node_Str\");\n } else {\n return Range.closed(1L, getShardKey(Long.value...
"protected InvoiceLine createInvoiceLine() throws AxelorException {\n InvoiceLine invoiceLine = new InvoiceLine();\n invoiceLine.setInvoice(invoice);\n invoiceLine.setProduct(product);\n invoiceLine.setProductName(productName);\n invoiceLine.setDescription(description);\n invoiceLine.setPrice(price);\...
"public boolean equals(Object obj) {\n if (obj == this) {\n return true;\n }\n if (obj == null) {\n return false;\n }\n if (!(obj instanceof TransactionalCache<?, ?>)) {\n return false;\n }\n TransactionalCache that = (TransactionalCache) obj;\n return EqualsHelper.nullSafeE...
"protected Void doInBackground(Integer... integers) {\n Log.d(TAG, \"String_Node_Str\");\n SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(Constants.applicationContext);\n String authToken = pref.getString(User.AUTHENTICATION_KEY, \"String_Node_Str\");\n String mInstanceUrl = pref.get...
"public void testGetId() throws IOException {\n File file = new File(\"String_Node_Str\");\n URL fileURL = file.getCanonicalFile().toURL();\n URLClassLoader loader = new URLClassLoader(new URL[] { fileURL }, null);\n IWeavingContext context = new TestWeavingContext(loader) {\n public String getId() {...
"public void testSequenceObjectDefinition() {\n EntityManager em = createEntityManager(\"String_Node_Str\");\n ServerSession ss = getServerSession(\"String_Node_Str\");\n if (!ss.getLogin().getPlatform().supportsSequenceObjects() || isOnServer()) {\n closeEntityManager(em);\n return;\n }\n ...
"boolean canBatch(Batch other) {\n return hasOverlappingBitKeys(other) && constraintsMatch(other) && hasSameMeasureList(other) && haveSameStarAndAggregation(other);\n}\n"
"public static QueryDefinition cloneQuery(QueryDefinition query) {\n if (query == null) {\n return null;\n }\n IBaseQueryDefinition parent = query.getParentQuery();\n QueryDefinition newQuery = null;\n if (parent instanceof BaseQueryDefinition) {\n newQuery = new QueryDefinition((BaseQueryD...
"private void addSensorInstance(ISensor sensor, Path path) {\n try {\n ISensor sensorInstance = sensor.create(path);\n if (sensorInstance != null) {\n ISensor oldSensor = sensorInstances.forcePut(path, sensorInstance);\n if (oldSensor != null) {\n removeSensorInstan...
"protected DhcpEntryCommand generateDhcpEntryCommand2() {\n DhcpEntryCommand cmd = new DhcpEntryCommand(\"String_Node_Str\", null, \"String_Node_Str\", \"String_Node_Str\", true);\n cmd.setAccessDetail(NetworkElementCommand.ROUTER_NAME, ROUTERNAME);\n cmd.setDuid(NetUtils.getDuidLL(cmd.getVmMac()));\n retur...
"public void onPlayerInteract(PlayerInteractEvent event) {\n if (event.hasBlock() && event.getClickedBlock().getType().equals(Material.STEP)) {\n ShowcaseItem showItem = Showcase.instance.getItemByBlock(event.getClickedBlock());\n ShowcasePlayer player = ShowcasePlayer.getPlayer(event.getPlayer());\n ...
"public static void enforcePartitionTableWarmup(MapReduceService mapReduceService) throws TimeoutException {\n InternalPartitionService partitionService = mapReduceService.getNodeEngine().getPartitionService();\n InternalPartition[] partitions = partitionService.getPartitions();\n long startTime = Clock.curren...
"protected final boolean isCurrentlyMatchingAll() {\n return currentMatcher == Matchers.trueMatcher();\n}\n"
"public boolean onCreateOptionsMenu(Menu menu) {\n this.menu = menu;\n getMenuInflater().inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n}\n"
"protected void readLine(String line, DeckCardLists deckList) {\n if (line.length() == 0 || line.startsWith(\"String_Node_Str\")) {\n return;\n }\n boolean sideboard = false;\n if (line.startsWith(\"String_Node_Str\")) {\n line = line.substring(3).trim();\n sideboard = true;\n }\n ...
"public void onRunAllButton() {\n final FormStylePopup pop = new FormStylePopup();\n final TextBox sessionNameTextBox = new TextBox();\n pop.addAttribute(\"String_Node_Str\" + \"String_Node_Str\", sessionNameTextBox);\n Button ok = new Button(\"String_Node_Str\");\n ok.addClickHandler(new ClickHandler() ...
"public static String addTypeForMavenUri(String uri, String moduleName) {\n MavenArtifact parseMvnUrl = MavenUrlHelper.parseMvnUrl(uri, false);\n if (parseMvnUrl != null && parseMvnUrl.getType() == null) {\n if (moduleName != null && moduleName.lastIndexOf(\"String_Node_Str\") != -1) {\n parseMv...
"public void setSelectionInterval(int index0, int index1) {\n if (!enabled)\n return;\n swingThreadSource.getReadWriteLock().writeLock().lock();\n try {\n listSelection.setSelection(index0, index1);\n } finally {\n swingThreadSource.getReadWriteLock().writeLock().unlock();\n }\n}\n"
"public void testClosureStyleFunctionBind() {\n typeCheck(LINE_JOINER.join(CLOSURE_BASE, \"String_Node_Str\"), NewTypeInference.GOOG_BIND_EXPECTS_FUNCTION);\n typeCheck(LINE_JOINER.join(CLOSURE_BASE, \"String_Node_Str\", \"String_Node_Str\"), NewTypeInference.WRONG_ARGUMENT_COUNT);\n typeCheck(LINE_JOINER.join...
"public void testDGM44() {\n String contents = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n int offset = contents.lastIndexOf(\"String_Node_Str\");\n assertType(contents, offset, offset + 2, \"String_Node_Str\");\n}\n"
"public boolean onTouchEvent(MotionEvent event) {\n if (event.getAction() == MotionEvent.ACTION_DOWN || event.getAction() == MotionEvent.ACTION_POINTER_DOWN) {\n Log.i(\"String_Node_Str\", String.format(\"String_Node_Str\", event.getPointerCount()));\n if (mGame.getState() == Game.State.IN_PROGRESS) {\...
"public void startData(IDataContent data) {\n HyperlinkDef url = parseHyperLink(data);\n addData(data.getGenerateBy(), data.getComputedStyle(), url, data.getText());\n}\n"
"public void initialize(Class<K> keyClass, Class<T> persistentClass, Properties properties) {\n super.initialize(keyClass, persistentClass, properties);\n CachingProvider cachingProvider = Caching.getCachingProvider(properties.getProperty(GORA_DEFAULT_JCACHE_PROVIDER_KEY));\n if (properties.getProperty(JCACHE_...
"public void postInit(FMLPostInitializationEvent event) {\n SteamcraftRecipes.registerCasting();\n if (Config.enablePipe) {\n MinecraftForge.EVENT_BUS.register(SteamcraftBlocks.pipe);\n }\n ItemSmashedOre iso = (ItemSmashedOre) SteamcraftItems.smashedOre;\n iso.registerDusts();\n iso.addSmeltin...
"public long append(byte[] messageContent) {\n boolean isNeedNewSegmentFile = false;\n int segmentSize = startOffsetSegmentMap.size();\n try {\n if (segmentSize == 0) {\n isNeedNewSegmentFile = true;\n } else {\n Segment lastSegment = startOffsetSegmentMap.lastEntry().getVal...
"public boolean isScheduleAllowed(String id) {\n Boolean canSchedule = isScheduleAllowed();\n if (canSchedule) {\n Map<String, Serializable> metadata = getRepository().getFileMetadata(id);\n if (metadata.containsKey(\"String_Node_Str\")) {\n canSchedule = Boolean.parseBoolean((String) met...
"public boolean shouldExecute() {\n return this.entity.selfHoldingDrink(Drink.pinaColada);\n}\n"
"public void executeQuery(String queryParam, String resultFormatParam, OutputStream output, boolean datasetMode) throws IOException {\n OutputStream out = (output != null) ? output : System.out;\n QueryExecution qe = null;\n try {\n Query query = QueryFactory.create(queryParam, Syntax.syntaxARQ);\n ...
"public void run() {\n try {\n final Connection lookForAliveConnection = client.getConnectionManager().lookForLiveConnection();\n if (lookForAliveConnection == null) {\n logger.log(Level.WARNING, \"String_Node_Str\");\n if (reconnection.get()) {\n interruptWaitingCa...
"String formatCaseArgument(Word word) {\n return HtmlEscapers.htmlEscaper().escape(word.value);\n}\n"
"public boolean onTouchEvent(MotionEvent nativeMotionEvent) {\n if (mKeyboard == null)\n return false;\n final int action = MotionEventCompat.getActionMasked(nativeMotionEvent);\n final int pointerCount = MotionEventCompat.getPointerCount(nativeMotionEvent);\n final int oldPointerCount = mOldPointerC...
"public void fillActionBars(IActionBars actionBars) {\n super.fillActionBars(actionBars);\n CopyAction copyActionInstance = CopyAction.getInstance();\n actionBars.setGlobalActionHandler(ActionFactory.COPY.getId(), copyActionInstance);\n actionBars.setGlobalActionHandler(ActionFactory.PASTE.getId(), PasteAct...
"public BuildConfigModel buildModel(String configFilePath) {\n File configFile = new File(configFilePath);\n String rootPath = configFile.getParent();\n String configFileName = configFile.getName();\n BuildConfigModel model = new BuildConfigModel(configFilePath);\n List configFiles = new ArrayList();\n ...
"public void fromDBObject(final DBObject dbObject, final MappedField mf, final Object entity, EntityCache cache, Mapper mapr) {\n try {\n if (mf.isMap()) {\n readMap(dbObject, mf, entity, cache, mapr);\n } else if (mf.isMultipleValues()) {\n readCollection(dbObject, mf, entity, ca...
"public static List<IRepositoryViewObject> findViewObjects(ERepositoryObjectType type, Item parentItem, IFolder folder, boolean useRepositoryViewObject, boolean withDeleted) {\n List<IRepositoryViewObject> viewObjects = new LinkedList<IRepositoryViewObject>();\n try {\n for (IResource res : folder.members(...
"private void initalizeChildren() throws BirtException {\n while (executor.hasNextChild()) {\n IReportItemExecutor childExecutor = (IReportItemExecutor) executor.getNextChild();\n childContent = childExecutor.execute();\n if (childContent == null) {\n childrenLayouts.add(null);\n ...
"public void onReceive(Context context, Intent intent) {\n if (NetUtils.isConnected(getApplicationContext())) {\n restartActivity();\n }\n}\n"
"public static final ZonedDateTime tomorrowZonedDateTime() {\n return now().plus(1, ChronoUnit.DAYS);\n}\n"
"private void readProperties() {\n File f = new File(this.PROPERTIES_FILE);\n if (!f.exists() && !noRecurse) {\n System.out.println(\"String_Node_Str\");\n writeProperties();\n return;\n }\n Properties props = new java.util.Properties();\n try {\n FileInputStream fis = new Fil...
"public void check(MarkerList markers, IContext context, ElementType target) {\n if (this.type == null || !this.type.isResolved()) {\n return;\n }\n final IClass theClass = this.type.getTheClass();\n if (!theClass.hasModifier(Modifiers.ANNOTATION)) {\n markers.add(Markers.semantic(this.positio...
"private PackedMap<Spec, Bounds> createGroupBounds() {\n Assoc<Spec, Bounds> assoc = Assoc.of(Spec.class, Bounds.class);\n for (int i = 0, N = getChildCount(); i < N; i++) {\n View c = getChildAt(i);\n LayoutParams lp = getLayoutParams(c);\n Spec spec = horizontal ? lp.columnSpec : lp.rowSpec...
"JMethod createConstructor(SourceInfo info, MethodBinding b) {\n JDeclaredType enclosingType = (JDeclaredType) get(b.declaringClass);\n JMethod method = new JConstructor(info, (JClassType) enclosingType, AccessModifier.fromMethodBinding(b));\n enclosingType.addMethod(method);\n int argPosition = 0;\n Ref...
"public void putAll(Map<? extends K, ? extends V> map, ExpiryPolicy expiryPolicy) {\n final long start = System.nanoTime();\n ensureOpen();\n validateNotNull(map);\n ClientPartitionService partitionService = clientContext.getPartitionService();\n int partitionCount = partitionService.getPartitionCount();...
"private void readValueUntilNewLine() {\n if (ignoreTrailingWhitespace) {\n while (length-- > 0 && ch != newLine) {\n output.appender.appendIgnoringWhitespaceAndPadding(ch);\n ch = input.nextChar();\n }\n } else {\n while (length-- > 0 && ch != newLine && ch != '\\0') {\...
"public synchronized void deleteDatasets(Id.Namespace namespaceId) throws Exception {\n if (!exists(namespaceId)) {\n throw new NamespaceNotFoundException(namespaceId);\n }\n if (checkProgramsRunning(namespaceId.toEntityId())) {\n throw new NamespaceCannotBeDeletedException(namespaceId, String.fo...
"public static String toJsonString(Object obj) {\n if (obj == null) {\n return null;\n }\n BasicDBObject bdbo;\n if (obj instanceof DBObject) {\n bdbo = (BasicDBObject) obj;\n } else {\n DBObject dbo = MapperUtil.toDBObject(obj, true);\n bdbo = (BasicDBObject) dbo;\n }\n ...
"public ExecutionResult execute(Item item) {\n ILibraryManagerService libService = null;\n if (GlobalServiceRegister.getDefault().isServiceRegistered(ILibraryManagerService.class)) {\n libService = (ILibraryManagerService) GlobalServiceRegister.getDefault().getService(ILibraryManagerService.class);\n }\...
"public synchronized List<HashMap<Long, Slicer>> getSlices() {\n List<HashMap<Long, Slicer>> slices = Collections.synchronizedList(this.slices);\n logger.error(\"String_Node_Str\" + slices.size());\n return slices;\n}\n"
"public void addHistoryToList(ArrayList<SearchStationData> items) {\n Cursor cursor = db.query(table, COLUMNS, null, null, null, null, KEY_USED + \"String_Node_Str\");\n while (cursor.moveToNext()) {\n SearchStationData station = new SearchStationData(cursor.getString(0), cursor.getString(1), cursor.getInt...
"public void afterRun() {\n mapService.interceptAfterPut(name, dataValue);\n int eventType = dataOldValue == null ? EntryEvent.TYPE_ADDED : EntryEvent.TYPE_UPDATED;\n mapService.publishEvent(getCallerAddress(), name, eventType, dataKey, dataOldValue, dataValue);\n invalidateNearCaches();\n if (mapContain...
"public RecordSource compileSource(JournalReaderFactory factory, CharSequence query) throws ParserException, JournalException {\n return resetAndCompile(factory, query);\n}\n"
"public void onAnimationEnd(Animator animation) {\n super.onAnimationEnd(animation);\n resetViews();\n if (listener != null)\n listener.onComplete();\n}\n"
"public void post() throws Exception {\n ClientDispatcher myClient = new ClientDispatcher();\n TransportImpl myTransport = new TransportImpl(null);\n myClient.init(myTransport);\n FDUtil.ensureFD(_tport1.getFD());\n FDUtil.ensureFD(_tport2.getFD());\n System.err.println(\"String_Node_Str\");\n for ...
"public List<String> syncSetParam(String clusterName, Integer activeComputeNodeNum, Integer minComputeNodeNum, Integer maxComputeNodeNum, Boolean enableAuto, Priority ioPriority) throws Exception {\n ClusterEntity cluster = clusterEntityMgr.findByName(clusterName);\n ClusterRead clusterRead = getClusterByName(clu...
"public void visitLocalVariable(final String name, final String desc, final String signature, final Label start, final Label end, final int index) {\n if (((start.status & labels.RESOLVED) != 0) && ((end.status & labels.RESOLVED) != 0)) {\n if (signature != null) {\n if (localVarType == null) {\n ...
"public void onCreateNode(ChildAssociationRef childAssocRef) {\n recordsManagementAuditService.auditEvent(childAssocRef.getChildRef(), getName());\n}\n"
"public void run() {\n String accountName = AccountUtils.getActiveAccountName(BaseActivity.this);\n if (TextUtils.isEmpty(accountName)) {\n onRefreshingStateChanged(false);\n mManualSyncRequest = false;\n return;\n }\n Account account = new Account(accountName, GoogleAuthUtil.GOOGLE_ACC...
"public List<Line> buildLine(String criteria) {\n List<Line> lines = new ArrayList<Line>();\n if (criteria != null) {\n String[] criterias = criteria.split(\"String_Node_Str\");\n for (String cria : criterias) {\n String[] values = cria.split(\"String_Node_Str\");\n List<String...
"public boolean countFlattenedDown(short x, short y) {\n int i = getIdx(x, y);\n temporaryFlatened[i]--;\n if (temporaryFlatened[i] <= -30) {\n temporaryFlatened[i] = 0;\n setLandscapeTypeAt(x, y, ELandscapeType.GRASS);\n return true;\n } else {\n return false;\n }\n}\n"
"public byte[] isIdentify(Tx tx) {\n HashSet<String> result = new HashSet<String>();\n for (In in : tx.getIns()) {\n String queryPrevTxHashSql = \"String_Node_Str\";\n final HashSet<String> each = new HashSet<String>();\n this.execQueryOneRecord(this.getReadDb(), queryPrevTxHashSql, new Strin...
"private void fixStructuredPostalComponents(ContentValues augmented, ContentValues update) {\n final String unstruct = update.getAsString(StructuredPostal.FORMATTED_ADDRESS);\n final boolean touchedUnstruct = !TextUtils.isEmpty(unstruct);\n final boolean touchedStruct = !areAllEmpty(update, STRUCTURED_FIELDS);...
"public void perform() {\n vme.shriek();\n}\n"
"public static String print(JSDocInfo info) {\n boolean multiline = false;\n List<String> parts = new ArrayList<>();\n parts.add(\"String_Node_Str\");\n if (info.isExport()) {\n parts.add(\"String_Node_Str\");\n } else if (info.getVisibility() != null && info.getVisibility() != Visibility.INHERITE...
"private void setRemoteReceivePreset(QualityPreset preset) throws OperationFailedException {\n if (preset.compareTo(getPreferredSendPreset()) > 0)\n this.preset = getPreferredSendPreset();\n else {\n this.preset = preset;\n}\n"
"private void buildPaths(final HE_Selection cutEdges) {\n paths = new FastTable<HE_Path>();\n if (cutEdges.getNumberOfEdges() == 0) {\n return;\n }\n final List<HE_Halfedge> edges = new FastTable<HE_Halfedge>();\n for (final HE_Halfedge he : cutEdges.getEdgesAsList()) {\n final HE_Face f = ...
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n setContentView(R.layout.activity_enterpin);\n mTextAttempts = (TextView) findViewById(R.id.attempts);\n mTextTitle = (TextView) findViewById(R.id.title);\n mIn...
"private void processTypeCheckCodeFragment() {\n List<ArrayList<Statement>> typeCheckStatements = typeCheckElimination.getTypeCheckStatements();\n ArrayList<Statement> firstBlockOfStatements = typeCheckStatements.get(0);\n Statement firstStatementOfBlock = firstBlockOfStatements.get(0);\n if (firstStatement...