content
stringlengths
40
137k
"public void onReceive(Context context, Intent intent) {\n Long downloadId = intent.getLongExtra(DownloadManager.EXTRA_DOWNLOAD_ID, 0L);\n DownloadInfo downloadInfo = DBUtils.getDbService().getDownloadInfo(downloadId);\n mDownloadListAdapter.updateItem(downloadInfo);\n}\n"
"private long getCurrentMillis() {\n int day = Integer.parseInt(txtDay.getText().toString());\n int month = monthArrayPointer + 1;\n int year = Integer.parseInt(txtYear.getText().toString());\n return toMillisFromJavaEpoch(year, month, day, millisOfDayOffset);\n}\n"
"private void onUserUnlocked(int userId) {\n AccountManagerService.getSingleton().validateAccounts(userId);\n mSyncAdapters.invalidateCache(userId);\n updateRunningAccounts(false);\n synchronized (mSyncQueue) {\n mSyncQueue.addPendingOperations(userId);\n }\n final Account[] accounts = AccountM...
"public double getCouplerPosition(CouplerType coupler, Gauge gauge) {\n switch(coupler) {\n case FRONT:\n return gauge.scale() * (this.frontBounds);\n case BACK:\n return gauge.scale() * (this.rearBounds + couplerOffsetRear);\n default:\n return 0;\n }\n}\n"
"public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {\n try {\n XMLDescriptor xmlDescriptor = null;\n String type = atts.getValue(XMLConstants.SCHEMA_INSTANCE_URL, XMLConstants.SCHEMA_TYPE_ATTRIBUTE);\n if (null != type) {\n ...
"public void resetTime() {\n this.setDirectTime(0, 0, 0);\n}\n"
"protected VmDataCommand generateVmDataCommand() {\n VmDataCommand cmd = new VmDataCommand(\"String_Node_Str\", \"String_Node_Str\", true);\n cmd.addVmData(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n cmd.addVmData(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n cmd.ad...
"public static String calculateRFC2104HMAC(String data, String key) throws SignatureException {\n String result;\n try {\n SecretKeySpec signingKey = new SecretKeySpec(stringToBytes(key), SIGNATURE_METHOD);\n Mac mac = Mac.getInstance(SIGNATURE_METHOD);\n mac.init(signingKey);\n byte[]...
"protected ResultInfo getResultInfo(String schema, String name, String method, String methodNo) throws SQLException {\n Iterator<ViewRow> iter = null;\n if (methodNo == null) {\n iter = m_viewCache.getRows(ALL_ARGUMENTS, new String[0], new String[] { OWNER, PACKAGE_NAME, PACKAGE_NAME, OBJECT_NAME, DATA_LEV...
"public void clearExceptionMessage() {\n this.setExceptionMessage(null);\n}\n"
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n MageObject sourceObject = game.getObject(source.getSourceId());\n if (controller != null) {\n Set<String> chosenTypes = new HashSet<>();\n for (UUID playerId : game.getState().getP...
"private void createSchemaTreeComp(Composite parent) {\n Composite schemaSash = new Composite(parent, SWT.NONE);\n schemaSash.setLayout(new GridLayout());\n schemaSash.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));\n schemaSash.setBackground(sash.getDisplay().getSystemColor(SWT.COLOR_WHITE));\...
"protected Thread getNewSharedObjectThread(ID sharedObjectID, Runnable runnable) {\n return new Thread(sharedObjectThreadGroup, runnable, sharedObjectID.getName() + \"String_Node_Str\");\n}\n"
"public String getDocumentName(ODocument doc, OProperty nameProp) {\n if (doc == null)\n return Application.get().getResourceSettings().getLocalizer().getString(\"String_Node_Str\", null);\n else {\n if (nameProp == null)\n nameProp = getNameProperty(doc.getSchemaClass());\n if (na...
"public String toString() {\n return Objects.toStringHelper(this).add(\"String_Node_Str\", belief).add(\"String_Node_Str\", edge).addValue(observation.getTimestamp()).add(\"String_Node_Str\", parentState).add(\"String_Node_Str\", movementFilter).toString();\n}\n"
"public double getStopWeight(Triple<Label, String, Boolean> triple) {\n Map<Boolean, Integer> map = stopCounts.get(triple);\n double numStop;\n double numNotStop;\n if (map != null) {\n numStop = Utilities.safeGet(map, Boolean.TRUE);\n numNotStop = Utilities.safeGet(map, Boolean.FALSE);\n }...
"protected Object getValueFromSubject() {\n ReadConnectionPoolAdapter pool = (ReadConnectionPoolAdapter) subject;\n return Boolean.valueOf(pool.usesNonTransactionalReadLogin());\n}\n"
"public Set<InvokeSite> getInvokeSites(MethodInfo invokee) {\n MethodNode node = getMethodNode(invokee);\n Set<InvokeSite> invokeSites = new HashSet<InvokeSite>();\n for (ExecutionContext ec : node.getInstances()) {\n if (ec.getCallString().isEmpty()) {\n AppInfo appInfo = AppInfo.getSingleto...
"public void actionMenuFileExportData() {\n if (model == null) {\n main.showInfoDialog(main.getShell(), Resources.getMessage(\"String_Node_Str\"), Resources.getMessage(\"String_Node_Str\"));\n return;\n } else if (model.getOutput() == null) {\n main.showInfoDialog(main.getShell(), Resources.g...
"public static boolean isBlank(final String str) {\n return CommonUtil.isBlank(str);\n}\n"
"protected Object retrieveNavigationProperty(final NavigationProperty property, final Method getter) {\n final Class<?> type = getter.getReturnType();\n final Class<?> collItemType;\n if (EntityCollection.class.isAssignableFrom(type)) {\n collItemType = ClassUtils.extractTypeArg(type, EntityCollection.c...
"public void setMyLongWrapperTest(java.lang.Long value) {\n set(START_PROPERTY_INDEX + 56, value);\n}\n"
"public Object executeTransform(final Object input) {\n if (input instanceof ODocument)\n return input;\n else if (input instanceof String)\n return new ODocument((String) input);\n else\n throw new OTransformException(getName() + \"String_Node_Str\" + input + \"String_Node_Str\" + input.g...
"private static void initBiomeItems(Configuration cfg, Map<DimletKey, Integer> idsInConfig) {\n BiomeGenBase[] biomeGenArray = BiomeGenBase.getBiomeGenArray();\n for (BiomeGenBase biome : biomeGenArray) {\n if (biome != null) {\n String name = biome.biomeName;\n int id = registerDimle...
"protected void onDestroy() {\n printLivecycleStatus(\"String_Node_Str\");\n super.onDestroy();\n}\n"
"public static Module getJarFileModule(String fileName) throws IOException {\n if (CorePlugin.getDefault() == null) {\n return getJarFileFromClassLoader(fileName);\n } else {\n try {\n IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot();\n IFile file = works...
"private static void fixupContinuationRec(Logger logger, Function function, ExecContext outerCx, Continuation continuation, HierarchicalSet<Var> visible, Set<Var> referencedGlobals, Set<Var> outerBlockVars, Set<Var> read, Set<Var> written, boolean updateLists) {\n List<Var> constructVars = continuation.constructDefi...
"private void addConfigData(List<TableData> tableData, String[][] sqlElements, String projectVersionId, String keyValue) {\n for (int i = 0; i <= sqlElements.length - 1; i++) {\n String[] entry = sqlElements[i];\n List<Row> rows = getConfigTableData(String.format(entry[SQL], tablePrefix, projectVersion...
"protected String[] walkTokens() throws IOException {\n List<String> wordList = new ArrayList<>();\n while (input.incrementToken()) {\n CharTermAttribute textAtt = input.getAttribute(CharTermAttribute.class);\n OffsetAttribute offsetAtt = input.getAttribute(OffsetAttribute.class);\n char[] bu...
"public void putAll(Map<? extends K, ? extends V> map, final boolean replaceExistingValues) {\n checkStatusStarted();\n long start = statisticsEnabled() ? System.nanoTime() : 0;\n long now = System.currentTimeMillis();\n if (map.containsKey(null)) {\n throw new NullPointerException(\"String_Node_Str\...
"public org.hl7.fhir.dstu2.model.Encounter.EncounterHospitalizationComponent convertEncounterHospitalizationComponent(org.hl7.fhir.dstu3.model.Encounter.EncounterHospitalizationComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Encounter.Enco...
"public int useExcessPaymentWithAmount(List<MoveLine> creditMoveLines, BigDecimal remainingPaidAmount, Move move, int moveLineNo, Partner partner, Company company, Account account) throws AxelorException {\n LOG.debug(\"String_Node_Str\");\n int moveLineNo2 = moveLineNo;\n BigDecimal remainingPaidAmount2 = rem...
"public void push(Object o) throws IOException {\n if (bufferPos < buffer.length) {\n buffer[bufferPos] = o;\n bufferPos++;\n } else if (useMemoryOnly) {\n Object[] tempBuffer = new Object[buffer.length * 2];\n System.arraycopy(buffer, 0, tempBuffer, 0, buffer.length);\n buffer ...
"public boolean process(PossibleAction action) {\n boolean result = false;\n doneAllowed = false;\n if (action instanceof PossibleORAction && !(action instanceof DiscardTrain)) {\n PublicCompany company = ((PossibleORAction) action).getCompany();\n if (company != operatingCompany.value()) {\n ...
"public void managerMode(InventoryClickEvent event) {\n boolean top = event.getView().convertSlot(event.getRawSlot()) == event.getRawSlot();\n Player p = (Player) event.getWhoClicked();\n DecimalFormat f = new DecimalFormat(\"String_Node_Str\");\n int clickedSlot = event.getSlot();\n if (top) {\n ...
"private Component getDownloadLinkCell(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {\n dLink = (DownloadLink) value;\n switch(column) {\n case DownloadTreeTableModel.COL_PART:\n co = super.getTableCellRendererComponent(table, value, isSelected, hasFocus...
"protected void init(Execution exec, Page page) {\n super.init(exec, page);\n Map compDefs = (Map) getJspContext().getAttribute(Const.CONTEXT_KEY);\n if (compDefs != null) {\n for (Iterator it = compDefs.values().iterator(); it.hasNext(); ) ((ComponentDefinitionTag) it.next()).registComponentDefinition(...
"public static String generateGroupId() {\n String user = System.getProperty(\"String_Node_Str\");\n String rand = Identifiers.makeRandomId((\"String_Node_Str\".equals(provider)) ? 2 : 6);\n String result = \"String_Node_Str\" + Strings.maxlen(user, 4) + \"String_Node_Str\" + rand;\n return result.toLowerCa...
"protected boolean logIn(final Project project) {\n final ProxyRepositoryFactory factory = ProxyRepositoryFactory.getInstance();\n ConnectionBean connBean = loginComposite.getConnection();\n final boolean needRestartForLocal = loginComposite.needRestartForLocal();\n if (connBean == null || project == null |...
"public boolean addAll(Collection<? extends V> collection) {\n boolean changed = false;\n boolean singleAdd = false;\n if (collection != null) {\n for (V e : collection) {\n singleAdd = add(e);\n changed = changed || singleAdd;\n }\n }\n return changed;\n}\n"
"public List<String> getPopulateStatements(String table) {\n List<String> statements = new ArrayList<>();\n if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n } else if (table.equals(\"String_Node_S...
"protected <K, V> CacheConfig<K, V> findConfig(String cacheName, String simpleCacheName, boolean createAlsoOnOthers, boolean syncCreate) {\n CacheConfig<K, V> config = configs.get(cacheName);\n if (config == null) {\n config = getCacheConfigFromPartition(cacheName, simpleCacheName);\n if (config != ...
"public Map<String, TypeInfo> preBuildTypeInfo(JavaClass[] javaClasses) {\n for (JavaClass javaClass : javaClasses) {\n if (javaClass == null || !shouldGenerateTypeInfo(javaClass) || isXmlRegistry(javaClass) || javaClass.isArray()) {\n continue;\n }\n String qualifiedName = javaClass....
"private Bundle getExtras(Notification notification) {\n if (Device.hasKitKatApi()) {\n return notification.extras;\n }\n try {\n Field field = notification.getClass().getDeclaredField(\"String_Node_Str\");\n field.setAccessible(true);\n return (Bundle) field.get(notification);\n ...
"public void actionPerformed(ActionEvent event) {\n final ProductSceneView sceneView = SnapApp.getDefault().getSelectedProductSceneView();\n if (sceneView != null && sceneView.getProduct().isMultiSize()) {\n MultiSizeIssue0.maybeResample(sceneView.getProduct());\n } else {\n exportTransectPixels(...
"public void read() throws IOException {\n int i = 0;\n while ((i + 4) < data.length) {\n String _8bim = new String(data, i, 4);\n i += 4;\n if (_8bim.equals(\"String_Node_Str\")) {\n short id = IOUtils.readShortMM(data, i);\n i += 2;\n int nameLen = data[i++]...
"private static void _copyModelRemoveGeneratorTableau(URL modelPathURL, File newModelFile) throws Exception {\n MoMLParser parser = new MoMLParser();\n List oldFilters = parser.getMoMLFilters();\n MoMLParser.setMoMLFilters(null);\n try {\n parser.addMoMLFilters(BackwardCompatibility.allFilters());\n ...
"public Response delete(final HttpServletRequest request, final String sourceParam, final String objectTypeParam, final String keyParam, final String reason, final List<String> passwords, final String crowdTokenKey) {\n checkForMainSource(request, sourceParam);\n final RpslObject primaryObject = lookupObjectByKey...
"public static void checkRoles(final User user, final Class<?> invokingMethodInnerClass, final Class<?> classToReturn) throws AuthorizationDeniedException {\n final Method method = invokingMethodInnerClass.getEnclosingMethod();\n final String classParam = (classToReturn == null) ? \"String_Node_Str\" : \"String_N...
"private void analyzeClassesDirectory(Repository repository, File directory, ClassVisitor classVisitor) {\n if (directory.isDirectory()) {\n final String[] entries = directory.list();\n for (String entry : entries) {\n analyzeClassesDirectory(repository, new File(directory, entry), classVisi...
"private void setFilters(Map<String, Object> configProps) {\n if (iLdapType == null)\n return;\n String key = null;\n if (iLdapType.equalsIgnoreCase(LdapConstants.AD_LDAP_SERVER)) {\n key = ConfigConstants.CONFIG_ACTIVE_DIRECTORY_FILTERS;\n } else if (iLdapType.equalsIgnoreCase(LdapConstants.C...
"public boolean askUserForConnection(String server) {\n boolean connected = false;\n while (!connected) {\n while (server == null || server.isEmpty()) {\n server = JOptionPane.showInputDialog(null, \"String_Node_Str\", \"String_Node_Str\", JOptionPane.PLAIN_MESSAGE);\n if (server == n...
"protected final DirectedGraph _constructDisconnectedDependencyGraph() {\n DirectedGraph dependencyGraph = new DirectedGraph();\n Iterator inputs = ((Actor) getContainer()).inputPortList().listIterator();\n while (inputs.hasNext()) {\n IOPort input = (IOPort) inputs.next();\n dependencyGraph.addN...
"public void paint(Graphics g) {\n Graphics2D g2 = (Graphics2D) g;\n if (getAntialias()) {\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n } else {\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_OFF);\n }\n ...
"private void snapToGear(View animView, float velocity) {\n final float snapBackThreshold = getSpaceForGear(animView);\n final float target = mCurrIconRow.isIconOnLeft() ? snapBackThreshold : -snapBackThreshold;\n mGearExposedView = mTranslatingParentView;\n if (animView instanceof ExpandableNotificationRow...
"public Integer finalizeChunk() {\n int v = sum;\n sum = 0;\n return Long.valueOf(v);\n}\n"
"public boolean pay(Ability ability, Game game, UUID sourceId, UUID controllerId, boolean noMana, Cost costToPay) {\n this.cards.clear();\n this.targets.clearChosen();\n Player player = game.getPlayer(controllerId);\n if (player == null) {\n return false;\n }\n int amount = this.getTargets().ge...
"private static List<SiteModel> getSelfHostedSitesFromDeprecatedDB(Context context) {\n List<SiteModel> siteList = new ArrayList<>();\n try {\n SQLiteDatabase db = context.getApplicationContext().openOrCreateDatabase(DEPRECATED_DATABASE_NAME, 0, null);\n String[] fields = new String[] { \"String_Nod...
"public void setEnvironment(Context subContext) throws UnresolvedWorldGeneratorException {\n context = subContext;\n environment = context.get(ModuleEnvironment.class);\n context.put(WorldGeneratorPluginLibrary.class, new TempWorldGeneratorPluginLibrary(environment, context));\n worldList = context.get(Univ...
"public static String generateNewQuery(final IMetadataTable repositoryMetadata, final String dbType, final String tableNameWithQuoteIfNeed, final String... realTableName) {\n if (repositoryMetadata == null) {\n return \"String_Node_Str\";\n }\n List<IMetadataColumn> metaDataColumnList = repositoryMetada...
"public Object get(Object entity, Object index) {\n List list = (List) entity;\n int id = -1;\n if (index instanceof Integer) {\n id = (Integer) index;\n } else {\n String s = S.string(index);\n if (S.notBlank(s)) {\n id = Integer.parseInt(s);\n }\n }\n Object va...
"public String toString() {\n return \"String_Node_Str\" + \"String_Node_Str\" + newReplica + '\\'' + \"String_Node_Str\" + oldReplica + '\\'' + '}';\n}\n"
"private boolean searchBrachesMap(final String id) {\n if (validBranches.containsKey(currentFileRelative.getPath())) {\n final List<String> branchIdList = validBranches.get(currentFileRelative.getPath());\n if (branchIdList.contains(id)) {\n return true;\n } else if (branchIdList.size...
"public NetGameUpdate getNetGameUpdateFor(int playerId) {\n Player player = this.players.getPlayer(playerId);\n if (player == null) {\n return null;\n }\n NetGameUpdate netUpdate = this.playerUpdates[playerId];\n netUpdate.clear();\n NetSound[] sounds = null;\n if (player.isPureSpectator()) ...
"private Flux<String> selectApplications(Target configTarget, Mono<String> orgIdMono, Mono<String> spaceIdMono) {\n Flux<String> applicationsInSelection = null;\n if (configTarget.getApplicationRegex() == null && configTarget.getApplicationName() != null) {\n throw new InternalError(\"String_Node_Str\");\n...
"public void listMaps(IMapListerCallable callable) {\n try {\n for (String s : manager.list(prefix)) {\n if (s.endsWith(MapLoader.MAP_EXTENSION)) {\n callable.foundMap(new AndroidAssetMap(manager, prefix + \"String_Node_Str\" + s));\n }\n }\n } catch (IOException...
"public void testConnectionFactoryImpl() {\n EqualsVerifier.forClass(ConnectionFactoryImpl.class).usingGetClass().withPrefabValues(ManagedConnectionFactoryImpl.class, new ManagedConnectionFactoryImpl(), new ManagedConnectionFactoryImpl()).withPrefabValues(Reference.class, mock(Reference.class), mock(Reference.class)...
"public void startPage(IPageContent page) {\n pageNo++;\n if (pageNo > 1 && outputMasterPageContent == false) {\n writer.openTag(\"String_Node_Str\");\n writer.closeTag(\"String_Node_Str\");\n }\n writer.openTag(HTMLTags.TAG_DIV);\n if (pageNo > 1) {\n writer.attribute(HTMLTags.ATTR_...
"public void setProgress(QuestProgress progress) {\n this.progress = progress;\n if (this.profile.pathExists(\"String_Node_Str\")) {\n this.profile.removeKey(\"String_Node_Str\");\n}\n"
"private void connectBlock(StoredBlock newStoredBlock, StoredBlock storedPrev, HashMap<Wallet, List<Transaction>> newTransactions) throws BlockStoreException, VerificationException {\n if (storedPrev.equals(chainHead)) {\n setChainHead(newStoredBlock);\n log.debug(\"String_Node_Str\", chainHead.getHeig...
"public void buildStore() throws URISyntaxException {\n URL url = this.getClass().getClassLoader().getResource(\"String_Node_Str\");\n this.keystoreFile = new File(url.toURI());\n this.keystore = new JSONKeystore(this.keystoreFile);\n}\n"
"final boolean resumeTopActivityLocked(ActivityRecord prev) {\n ActivityRecord next = topRunningActivityLocked(null);\n final boolean userLeaving = mUserLeaving;\n mUserLeaving = false;\n if (next == null) {\n if (mMainStack) {\n return mService.startHomeActivityLocked();\n }\n }...
"public void onViewCreated(View view, Bundle savedInstanceState) {\n mTickersContainer = (FixedGridView) getView().findViewById(R.id.tickersContainer);\n mTickersContainer.setExpanded(true);\n final int dashboardSpacing = getResources().getDimensionPixelSize(R.dimen.dashboard_spacing);\n final int dashboard...
"public List<PropertyDescriptor> getFieldDescriptors() {\n List<PropertyDescriptor> fields = new ArrayList<PropertyDescriptor>();\n PropertyDescriptor duration = new PropertyDescriptor(\"String_Node_Str\", new DurationPropertyEditor(this), VisualControlDescriptor.TextField);\n duration.setFieldMutable(true);\n...
"protected void selectCellByColValue(String row, String rowOperator, final String value, final String regex, final String extendSelection, final String searchType, ClickOptions co) {\n ITableComponent adapter = getTableAdapter();\n final int implRow = adapter.getRowFromString(row, rowOperator);\n Integer implC...
"protected int addRods(int count) {\n if (!frameCompleted) {\n int addition = Math.min(count, Math.max(MAX_ROD_COUNT - rodsContained, 0));\n if (addition > 0) {\n rodsContained += addition;\n frameLevel = rodsContained / ROD_PER_LEVEL_COUNT;\n if (frameLevel >= MAX_ROD_...
"public void run(int i) {\n for (int j = 0; j < iterationCount; j++) {\n int queryIndex = (i * 2 + j) % queries.length;\n try {\n runQueryCheckResult(queries[queryIndex]);\n if (flush && i == 0) {\n AggregationManager.instance().flushCachePool();\n }\n ...
"public SimpleBayesianParameter<ParameterType, ConditionalType, PriorType> clone() {\n SimpleBayesianParameter<ParameterType, ConditionalType, PriorType> clone = (SimpleBayesianParameter<ParameterType, ConditionalType, PriorType>) super.clone();\n clone.conditional = this.conditional;\n clone.prior = this.prio...
"public void onClick(DialogInterface dialog, int which) {\n switch(which) {\n case 0:\n Intent intent = new Intent();\n intent.setType(\"String_Node_Str\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startOneActivityForResult(intent, Consts.Code_Invoke_Image_S...
"public void segmentDir(String source, String target) {\n File[] file = new File(source).listFiles();\n if (file == null) {\n return;\n }\n for (int i = 0; i < file.length; ++i) {\n if (file[i].isFile()) {\n segmentFile(file[i].getAbsolutePath(), target + File.separator + file[i].ge...
"public boolean needRefreshed(NotificationEvent event) {\n if (event instanceof PropertyEvent) {\n String propertyName = ((PropertyEvent) event).getPropertyName();\n if (ReportItemHandle.BOUND_DATA_COLUMNS_PROP.equals(propertyName)) {\n getDataSetColumns(contentInput.get(0));\n }\n ...
"public void run() {\n if (SchematicCmd.this.counter >= SchematicCmd.this.plots.length) {\n PlotSquared.log(\"String_Node_Str\");\n SchematicCmd.this.running = false;\n PlotSquared.TASK.cancelTask(SchematicCmd.this.task);\n return;\n }\n final Plot plot = SchematicCmd.this.plots[Sch...
"private boolean isForbidNode(RepositoryNode node) {\n IRepositoryViewObject nodeObject = node.getObject();\n if (nodeObject == null || nodeObject.getProperty() == null || nodeObject.getProperty().getItem() == null) {\n return false;\n }\n boolean locked = false;\n if (!factory.getRepositoryContex...
"public List<O> subList(final int fromIndex, final int toIndex) {\n return new PoolObjectList<O, T>(this, (TIntArrayList) indices.subList(fromIndex, toIndex));\n}\n"
"public synchronized void run() {\n synchronized (retentionInbox) {\n retentionInbox.remove(sid);\n }\n}\n"
"public static GlimpseMouseEvent fromMouseEvent(MouseEvent event, GlimpseTargetStack stack, int x, int y) {\n System.out.println(Arrays.toString(event.getRotation()));\n int wheelIncrement = getWheelIncrement(event);\n int clickCount = event.getClickCount();\n EnumSet<MouseButton> buttons = getMouseButtons(...
"public int getSize() {\n if (isSaturated)\n return limit + 1;\n else\n return setImpl.size();\n}\n"
"public boolean onPreferenceChange(Preference preference, Object objValue) {\n if (preference == mButtonDTMF) {\n int index = mButtonDTMF.findIndexOfValue((String) objValue);\n Settings.System.putInt(mPhone.getContext().getContentResolver(), Settings.System.DTMF_TONE_TYPE_WHEN_DIALING, index);\n } e...
"public boolean moveToExile(UUID exileId, String name, UUID sourceId, Game game, ArrayList<UUID> appliedEffects) {\n Zone fromZone = game.getState().getZone(objectId);\n Player controller = game.getPlayer(controllerId);\n if (controller != null && controller.removeFromBattlefield(this, game)) {\n ZoneCh...
"protected Manifest getManifest(ExportFileResource libResource, List<ProcessItem> itemToBeExport, String bundleName) throws IOException {\n Manifest manifest = new Manifest();\n Attributes a = manifest.getMainAttributes();\n String symbolicName = bundleName;\n Project project = ProjectManager.getInstance()....
"private Expression createInstantiatedSqlExpression(Expression sqlGenericExpression, EList<Column> columnSetA, EList<Column> columnSetB, boolean useNulls) {\n String aliasA = \"String_Node_Str\";\n String aliasB = \"String_Node_Str\";\n boolean reversion = STATIC_COUNT % 2 == 0 ? true : false;\n STATIC_COUN...
"public void drawSeries(Canvas canvas, GraphViewDataInterface[] values, float graphwidth, float graphheight, float border, double minX, double minY, double diffX, double diffY, float horstart, GraphViewSeriesStyle style) {\n float colwidth = graphwidth / values.length;\n paint.setStrokeWidth(style.thickness);\n ...
"public String getCourseInstitute(String courseId) {\n CourseAttributes cd = new CoursesLogic().getCourse(courseId);\n List<InstructorAttributes> instructorList = InstructorsLogic.inst().getInstructorsForCourse(cd.id);\n Assumption.assertTrue(\"String_Node_Str\" + cd.id, !instructorList.isEmpty());\n String...
"private static String generateFileName(String logDirectory, String logPrefix) {\n File logDir = new File(logDirectory);\n if ((logDir.isDirectory() && !logDir.isAbsolute()) || logDirectory.startsWith(\"String_Node_Str\")) {\n try {\n URL url = OdaJdbcDriver.getInstallDirectory();\n i...
"public static Section buildChiefComplaintSection(Patient patient) {\n Section section = CDAFactory.eINSTANCE.createSection();\n ChiefComplaintSection ccs = new ChiefComplaintSection();\n section.getTemplateIds().add(CDAHelper.buildTemplateID(ccs.getTemplateid(), null, null));\n section.setCode(CDAHelper.bu...
"public BigDecimal getBalance(Partner partner, Company company) {\n LOG.debug(\"String_Node_Str\", partner.getName(), company.getName());\n Query query = JPA.em().createNativeQuery(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \...
"protected void initEntityAI() {\n super.initEntityAI();\n this.aiSit = new EntityAIMonkeySit(this);\n this.tasks.addTask(1, new EntityAISwimming(this));\n this.tasks.addTask(3, new EntityAIMonkeyFollowNearestWithCondition(this, 1.0D, 2.0F, 10.0F, followPredicate));\n this.tasks.addTask(3, new EntityAIMo...
"private Jenkins createJenkins(Document doc) {\n Element jenkinsElement = doc.getRootElement();\n if (!StringUtils.equals(JENKINS_ROOT_TAG, jenkinsElement.getName()) && !StringUtils.equals(HUDSON_ROOT_TAG, jenkinsElement.getName())) {\n throw new ConfigurationException(\"String_Node_Str\" + jenkinsElement....
"public final Stroke getCachedStroke(LineAttributes lia) {\n if (lia == null)\n return null;\n Stroke s = (Stroke) _htLineStyles.get(lia);\n if (s == null) {\n BasicStroke bs = null;\n if (lia.getStyle().getValue() == LineStyle.DASHED) {\n float[] faStyle = new float[] { 6.0f, 4...
"private soot.Value getAssignLocal(polyglot.ast.Assign assign) {\n if ((assign.left() instanceof polyglot.ast.Field) && (needsPrivateAccessor((polyglot.ast.Field) assign.left()) || needsProtectedAccessor((polyglot.ast.Field) assign.left()))) {\n return handlePrivateFieldAssignSet(assign);\n }\n if (assi...