content
stringlengths
40
137k
"public BankOrder save(BankOrder entity) {\n try {\n BankOrderService bankOrderService = Beans.get(BankOrderService.class);\n bankOrderService.generateSequence(entity);\n if (entity.getGeneratedMetaFile() == null && entity.getStatusSelect() == BankOrderRepository.STATUS_DRAFT) {\n ban...
"public AtsSearchData fromJson(String namespace, String jsonValue) {\n try {\n return AtsJsonFactory.getMapper().readValue(jsonValue, AtsSearchData.class);\n } catch (Exception ex) {\n throw new OseeArgumentException(ex, \"String_Node_Str\", jsonValue);\n }\n return null;\n}\n"
"public static String getRecordTmpPath() {\n return new File(getChatFileDir(), \"String_Node_Str\").getAbsolutePath();\n}\n"
"public Move doMove(Game game, Move move) throws InvalidMoveException {\n move = em.merge(move);\n game = em.find(game.getClass(), game.getId());\n game.setMessageSender(messageSender);\n game.move(move);\n em.flush();\n if (move.getStatus().equals(MoveStatus.INVALID))\n throw new InvalidMoveEx...
"public Project[] getProjects(ConnectionBean connBean, ErrorManager errorManager) {\n if (connBean == null) {\n return null;\n }\n Project[] projects = null;\n if (connBean != null) {\n String user2 = connBean.getUser();\n String repositoryId2 = connBean.getRepositoryId();\n Stri...
"public void function() {\n final String expression = \"String_Node_Str\";\n final String error = \"String_Node_Str\";\n final String result = \"String_Node_Str\";\n final AlwaysSameResultTheRExecutor executor = new AlwaysSameResultTheRExecutor(TheRDebugConstants.DEBUGGING_IN + \"String_Node_Str\" + express...
"public ProgramNode parseProgram() {\n if (debug) {\n System.err.println(\"String_Node_Str\");\n }\n StatementListNode first = null;\n StatementListNode second = null;\n StatementListNode configs = null;\n if (!parsing_include) {\n config_namespaces.push_back(new HashSet<String>());\n ...
"protected EntityReader getReader() {\n if (reader == null) {\n reader = new Neo4JEntityReader();\n }\n return reader;\n}\n"
"public void handle(DeleteCommand command) {\n String key;\n try {\n key = URLDecoder.decode(command.getKey(), \"String_Node_Str\");\n } catch (UnsupportedEncodingException e) {\n logger.log(Level.WARNING, e.getMessage(), e);\n }\n String mapName = \"String_Node_Str\";\n int index = key....
"public void openStartElement(XPathFragment xPathFragment, NamespaceResolver namespaceResolver) {\n super.openStartElement(xPathFragment, namespaceResolver);\n if (isStartElementOpen) {\n outputStreamWrite(CLOSE_ELEMENT);\n }\n isStartElementOpen = true;\n outputStreamWrite(OPEN_START_ELEMENT);\n ...
"public static CollectionPage getSearchPage(String query, int page) throws Exception {\n ArrayList<Game> gameList = new ArrayList<Game>();\n Pattern variantRegex = Pattern.compile(\"String_Node_Str\");\n URL url = new URL(\"String_Node_Str\" + query + \"String_Node_Str\" + getFirstResult(page));\n Document ...
"public void onEvent(Event event) {\n if (_rows != null && _model != null && inPagingMold()) {\n final Paginal pgi = getPaginal();\n int pgsz = pgi.getPageSize();\n final int ofs = pgi.getActivePage() * pgsz;\n if (_rod) {\n getDataLoader().syncModel(ofs, pgsz);\n }\n ...
"private String writeCenterTime() {\n double center = (srcProduct.getStartTime().getMJD() + (srcProduct.getEndTime().getMJD() - srcProduct.getStartTime().getMJD()) / 2.0);\n double seconds = (center - dateDay.getMJD()) * daysToSeconds;\n return seconds + tab + \"String_Node_Str\";\n}\n"
"public void start() {\n sillyObjects.add(\"String_Node_Str\");\n sillyObjects.add(\"String_Node_Str\");\n sillyObjects.add(\"String_Node_Str\");\n JEventListPanel<String> panel = new JEventListPanel<String>(sillyObjects, new SillyObjectFormat());\n panel.setBorder(BorderFactory.createMatteBorder(5, 5, 5...
"public StringDefinition lookupString(String name) {\n Definition def = lookupDefinition(name);\n return (StringDefinition) ((def instanceof StringDefinition) ? def : null);\n}\n"
"public boolean shouldDisplay() {\n return super.isSlotEnabled();\n}\n"
"public static PaymentMode getPaymentMode(Invoice invoice) throws AxelorException {\n Partner partner = invoice.getPartner();\n if (InvoiceToolService.isOutPayment(invoice)) {\n if (partner != null) {\n PaymentMode paymentMode = partner.getOutPaymentMode();\n if (paymentMode != null) ...
"protected void maybeStartStream() throws IOException {\n synchronized (streamSyncRoot) {\n if (stream == null)\n return;\n }\n StreamConnector connector = getStreamConnector();\n if (streamTarget == null) {\n logger.info(\"String_Node_Str\");\n return;\n else\n str...
"public String getLabel() {\n if (getObject() == null) {\n return this.getProperties(EProperties.LABEL).toString();\n }\n return this.getNodeName();\n}\n"
"DoubleValueSet<String> decode(String input) {\n Hypothesis hyp = new Hypothesis(null, root, 0, Operation.N_A);\n DoubleValueSet<String> hypotheses = new DoubleValueSet<>();\n Set<Hypothesis> next = expand(hyp, input, hypotheses);\n while (true) {\n HashSet<Hypothesis> newHyps = new HashSet<>();\n ...
"private void createTisRepositoryArea(Composite parent) {\n tisRepositoryComposite = toolkit.createComposite(parent);\n tisRepositoryComposite.setLayoutData(new GridData(GridData.FILL_BOTH));\n tisRepositoryComposite.setLayout(new FormLayout());\n tisRepositoryComposite.setBackground(GREY_COLOR);\n FormD...
"protected String getDefaultEncoding() {\n try {\n if (data.has(\"String_Node_Str\"))\n return data.getString(\"String_Node_Str\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return \"String_Node_Str\";\n}\n"
"public Object decode(Class targetClass, Object fromDBObject, MappedField mf) throws MappingException {\n if (mf == null || fromDBObject == null)\n return fromDBObject;\n if (fromDBObject == null)\n return null;\n Class subtypeDest = mf.getSubType();\n Collection vals = null;\n if (fromDBOb...
"void handle(final String path) {\n if (path.equals(watcher.getZNodePaths().masterAddressZNode) && !master.isStopped()) {\n handleMasterNodeChange();\n }\n}\n"
"public boolean createRoadEast(PlotArea plotArea, Plot plot) {\n ClassicPlotWorld dpw = (ClassicPlotWorld) plotArea;\n Location pos1 = getPlotBottomLocAbs(plotArea, plot.getId());\n Location pos2 = getPlotTopLocAbs(plotArea, plot.getId());\n int sx = pos2.getX() + 1;\n int ex = sx + dpw.ROAD_WIDTH - 1;\n...
"private int median(int[] arr) {\n int[] copy = Arrays.copyOf(arr, arr.length);\n Arrays.sort(copy);\n return copy[copy.length >> 1];\n}\n"
"public double randIndex(ShortProcessor cluster1, ShortProcessor cluster2) {\n final short[] pixels1 = (short[]) cluster1.getPixels();\n final short[] pixels2 = (short[]) cluster2.getPixels();\n double nPixels = pixels1.length;\n double n = 0;\n cluster1.resetMinAndMax();\n cluster2.resetMinAndMax();\...
"private void go() {\n String methodsPath = UTILITIES.getFullPath(new String[] { JDUtilities.getJDHomeDirectory().getAbsolutePath(), \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" });\n String hoster = \"String_Node_Str\";\n JAntiCaptcha jac = new JAntiCaptcha(methodsPath, hoster);\n jac.setS...
"public void testDeleteCourses() throws IOException, URISyntaxException {\n ICourse course = CoursesWebService.createEmptyCourse(admin, \"String_Node_Str\", \"String_Node_Str\", null);\n DBFactory.getInstance().intermediateCommit();\n assertTrue(conn.login(\"String_Node_Str\", \"String_Node_Str\"));\n URI r...
"private void registerNBTSubtypes(ISubtypeRegistry registry) {\n registry.useNbtForSubtypes(ModItems.armorOfSwiftness_boots, ModItems.armorOfSwiftness_chest, ModItems.armorOfSwiftness_helmet, ModItems.armorOfSwiftness_legs);\n registry.useNbtForSubtypes(ModItems.hunterAxe);\n registry.useNbtForSubtypes(ModItem...
"public Void run() {\n if (!m_slider.isEnabled()) {\n throw new StepExecutionException(\"String_Node_Str\", EventFactory.createActionError(\"String_Node_Str\"));\n }\n Integer value = null;\n Dictionary<Integer, ?> labelTable = m_slider.getLabelTable();\n String prefPos = getPreferredPosition(posi...
"public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) {\n Player player = null;\n String commandName = command.getName();\n if (sender instanceof Player) {\n player = (Player) sender;\n } else {\n log.info(\"String_Node_Str\");\n return fal...
"public static IRegion locationToRegion(IDocument document, Location location) throws BadLocationException {\n int offset = document.getLineOffset(location.beginLine() - 1) + location.beginColumn() - 1;\n int length = document.getLineOffset(location.endLine() - 1) + location.endColumn() - offset;\n return new ...
"public void populate() {\n for (int y = 0; y < Chunk.CHUNK_DIMENSIONS.y; y++) {\n for (int x = 0; x < Chunk.CHUNK_DIMENSIONS.x; x++) {\n for (int z = 0; z < Chunk.CHUNK_DIMENSIONS.z; z++) {\n float dens = calcForestDensity(getBlockWorldPosX(x), getBlockWorldPosY(y), getBlockWorldPos...
"public void update(InstanceUsageSnapshot snapshot) {\n if (firstSnapshot == null && (priorSnapshot.getTimestampMs() >= period.getBeginningMs() || snapshot.getTimestampMs() >= period.getBeginningMs())) {\n firstSnapshot = priorSnapshot;\n log.debug(\"String_Node_Str\" + firstSnapshot.getTimestampMs());...
"public void getStatuses(HttpRequest request, HttpResponder responder) {\n programLifecycleHttpHandler.getStatuses(RESTMigrationUtils.rewriteV2RequestToV3(request), responder, Constants.DEFAULT_NAMESPACE);\n}\n"
"public void initialize() {\n try {\n final ByteArrayOutputStream cloneBuffer = new ByteArrayOutputStream();\n final JsonNode cloner = this.initialAggregate;\n cloner.write(new DataOutputStream(cloneBuffer));\n cloner.read(new DataInputStream(new ByteArrayInputStream(cloneBuffer.toByteArr...
"protected void startLoadAttachFile(final File file) {\n final AlertDialog alertDialog = AlertDialog.newInstance(getResources().getString(R.string.dlg_confirm_sending_attach));\n alertDialog.setPositiveButton(new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {...
"protected void drawFrame() {\n super.drawFrame();\n try {\n if (mVideoEncoder != null) {\n mVideoEncoder.frameAvailableSoon();\n }\n }\n}\n"
"public static void main(String[] args) {\n try {\n String name1, name2;\n int[] cps = new int[] {};\n name1 = \"String_Node_Str\";\n name2 = \"String_Node_Str\";\n cp = 122;\n OptimalCECPMain ce = (OptimalCECPMain) StructureAlignmentFactory.getAlgorithm(OptimalCECPMain.algo...
"private void updateDigest(ByteBuffer bbf) {\n if (md == null) {\n try {\n md = MessageDigest.getInstance(\"String_Node_Str\");\n } catch (NoSuchAlgorithmException e) {\n throw new IOException(e);\n }\n }\n md.update(bbf.slice());\n}\n"
"private String generateNewQuery() {\n ExtractMetaDataUtils extractMeta = ExtractMetaDataUtils.getInstance();\n if (realDBType != null) {\n dbType = realDBType;\n }\n if (node != null && node instanceof INode) {\n process = ((INode) node).getProcess();\n }\n if (this.realTableId != null ...
"private FormStatus fillActionDataMap() {\n String filename = null, hostname = null;\n String installDir = \"String_Node_Str\";\n IResource fileResource = null;\n String os = \"String_Node_Str\", accountCode = \"String_Node_Str\";\n DataComponent fileData = null, parallelData = null;\n Entry fileEntry...
"public Properties getConnectionProperties() {\n DataStore ds = getDataStore();\n Properties properties = new Properties();\n if (ds != null) {\n if (ds.getConnection() != null) {\n properties = ds.getConnection().getProperties();\n return properties != null ? properties : new Prop...
"public BundleDescriptor getRelativeBundle(BundleDescriptor origin, String relativeTargetUri) {\n String targetBundleUri = getTargetUri(origin, relativeTargetUri);\n BundleDescriptor targetBundle = null;\n if (targetBundleUri != null) {\n targetBundle = getModuleByUri(targetBundleUri);\n }\n retur...
"public boolean onSingleTapUp(MotionEvent e) {\n if (!isEditable)\n return false;\n performHapticFeedback(HapticFeedbackConstants.KEYBOARD_TAP);\n int pointerId = e.getPointerId(0);\n float x = e.getX(pointerId);\n float y = e.getY(pointerId);\n final Long timestamp = positionToTimestamp(x, y);...
"protected void loadSettingsBlocking(boolean notifyOnClear) {\n super.loadSettingsBlocking(notifyOnClear);\n if (loadThreadInterrupted())\n return;\n synchronized (metaLocker) {\n if (!initialized) {\n fileToHash.clear();\n createFileToHashMaps();\n SchemaReplyCol...
"private void assertIdWithinCapacity(long id) {\n if (id > max || id < 0) {\n throw new UnderlyingStorageException(\"String_Node_Str\");\n }\n}\n"
"public String getText(List<Tag> tags) {\n String ret = \"String_Node_Str\";\n if (hasText) {\n ret = initialText;\n }\n if (html) {\n ret = stripTags(ret);\n ret = entitiesReplace(ret);\n }\n return ret;\n}\n"
"public <T extends Enum<T>> T readEnumValue(Class<T> enumClass) {\n boolean exists = readBoolean();\n if (!exists) {\n return null;\n }\n T[] enums = enumClass.getEnumConstants();\n int length = MathHelper.log2DeBruijn(enums.length);\n int index = readFixedBits(length);\n return enums[index]...
"protected void executeInternal() {\n final String method = \"String_Node_Str\";\n synchronized (this) {\n if (resetCommand != null) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n createResetCommand();\n WFSResult wfsResult = null;\n try {\n ...
"private static <T> T getProperty(CacheService cache, Object entity, String... propertyPath) {\n if (null == entity) {\n return null;\n }\n int len = propertyPath.length;\n E.illegalArgumentIf(len < 1);\n Object lastEntity = null;\n for (int i = 0; i < len; ++i) {\n String prop = propert...
"protected void listLinks(CommandContext ctx) throws CommandLineException {\n final ModelControllerClient client = ctx.getModelControllerClient();\n final ParsedCommandLine args = ctx.getParsedCommandLine();\n assertNotPresent(allRelevantServerGroups, args);\n assertNotPresent(content, args);\n assertNot...
"protected ElementParameterType getParameterType(NodeType node, String paramName) {\n ElementParameterType paramType = ParameterUtilTool.findParameterType(node, paramName);\n if (node != null && paramType != null) {\n Object value = ParameterUtilTool.convertParameterValue(paramType);\n if (\"String_...
"private static void initTestArguments(String testArguments) {\n if (testArguments == null || testArguments.isEmpty()) {\n return;\n }\n String[] changes = testArguments.split(Constants.REGEX_COMMA_CHARACTER);\n if (changes.length != Constants.TEST_ARGUMENTS_REQUIRED) {\n System.err.print(Cons...
"public String[] createCatalogSelectors(String path) {\n if (path == null || !path.startsWith(\"String_Node_Str\")) {\n return (null);\n }\n Matcher categoryMatcher = categoryPattern.matcher(path);\n ArrayList<String> selectors = new ArrayList<String>();\n while (categoryMatcher.find()) {\n ...
"public IDiskArray findAll() throws IOException {\n IDiskArray result = new BufferedPrimitiveDiskArray(Math.min(Constants.MAX_LIST_BUFFER_SIZE, length));\n int lastPos = length() - 1;\n for (int i = 0; i <= lastPos; i++) {\n result.add(new Integer(i));\n }\n return result;\n}\n"
"private void checkDocuments(Set hashSet, boolean mp3) {\n Iterator iter = null;\n if (hashSet != null)\n iter = hashSet.iterator();\n if (iter == null)\n return;\n while (iter.hasNext()) {\n File file = (File) iter.next();\n String hash = metaFileManager.readFromMap(file);\n ...
"public void render() {\n glClear(GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);\n RenderContext.colour(Theme.BASE);\n RenderContext.rect(0, 0, Display.getWidth(), Display.getHeight());\n renderChildren(children);\n RenderContext.colour(Colour.YELLOW);\n final String framerate = \"String_Node_Str\" ...
"protected void createFormContent(IManagedForm managedForm) {\n try {\n managedForm.getForm().setText(this.getTitle());\n FormToolkit toolkit = managedForm.getToolkit();\n Composite composite = managedForm.getForm().getBody();\n composite.setLayout(new GridLayout(1, false));\n Comp...
"public static void amqpPrintFullConfiguration(int brokerId) {\n BrokerConnectionState connectionState = new BrokerConnectionState();\n fillAllAdresses(connectionState, brokerId);\n if (connectionState.addresses != null) {\n Iterator<FullAddress> fullAddressesIter = connectionState.addresses.iterator();...
"public edu.umd.cs.findbugs.Project getFindbugsProject() throws IOException {\n edu.umd.cs.findbugs.Project findbugsProject = new edu.umd.cs.findbugs.Project();\n for (File file : getSourceFiles()) {\n findbugsProject.addFile(file.getCanonicalPath());\n }\n Collection<File> classFilesToAnalyze = java...
"private void newFile() throws Exception {\n String oldFilename = this.currentFilename;\n this.currentTE = this.toTE(getDate());\n this.currentFilename = this.toFilename(this.currentTE);\n this.current = FileHelper.createNewFile(this.currentFilename);\n if (this.writer != null) {\n this.writer.clo...
"protected void executeImpl(Action action, NodeRef actionedUponNodeRef) {\n if (nodeService.exists(actionedUponNodeRef) && !nodeService.hasAspect(actionedUponNodeRef, ContentModel.ASPECT_PENDING_DELETE) && recordService.isRecord(actionedUponNodeRef) && !recordService.isDeclared(actionedUponNodeRef)) {\n Strin...
"private boolean findFiles(String[] args, String option, Set<String> suffixes, Map<String, Source> found_files, Map<String, Module> found_modules, Module current_module, boolean inLinksrc) throws ProblemException, ProblemException {\n Set<File> roots = new HashSet<File>();\n List<String> includes = new LinkedList...
"public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {\n this.account = (Account) value;\n Icon accountIcon = account.getIcon();\n if (accountIcon != null)\n accountLabel.setIcon(accountIcon);\n accountLabel.setText(account.getN...
"private void updateOrClearHeader(int firstVisiblePosition) {\n final int adapterCount = mAdapter == null ? 0 : mAdapter.getCount();\n if (adapterCount == 0 || !mAreHeadersSticky) {\n return;\n }\n final int headerViewCount = mList.getHeaderViewsCount();\n final int realFirstVisibleItem = firstVis...
"public SpaceNode reload(Context context, int preloadCount) {\n RecentsConfiguration config = RecentsConfiguration.getInstance();\n Resources res = context.getResources();\n LinkedHashSet<Task> tasksToLoad = new LinkedHashSet<Task>();\n TaskStack stack = new TaskStack();\n SpaceNode root = new SpaceNode(...
"private static void editRule(String repositoryName, String path, String userName, String groupName, String newRepositoryName, String newPathString, String newUserName, String newGroupName, String newAccess) throws ApplicationException {\n if (path == null) {\n throw new ApplicationException(ResourceUtil.getS...
"public void genericTestCse() {\n Supplier<Boolean> result = () -> {\n PageFactory.initElements(new AppiumFieldDecorator(new MockWebDriver()), new TempGenericPage<>());\n return true;\n };\n assertTrue(result.get());\n}\n"
"private File _createTextFile(String name, String header) {\n if (_testsFolder != null) {\n name = _testsFolder + \"String_Node_Str\" + name;\n if (name == null || name.length() < 3) {\n System.out.println(\"String_Node_Str\");\n return null;\n } else {\n if (!(n...
"public long newId() {\n long millionNow = million.get();\n long idAddition = currentId.incrementAndGet();\n if (idAddition >= MILLION) {\n synchronized (this) {\n try {\n idAddition = currentId.get();\n if (idAddition >= MILLION) {\n Long idMi...
"private void populateResultSetCacheInResultSetPopulator(OdiResultSetWrapper odaResultSet) throws DataException {\n int max = 0;\n if (computedColumnHelper != null)\n computedColumnHelper.setModel(TransformationConstants.PRE_CALCULATE_MODEL);\n if (filterByRow != null) {\n filterByRow.setWorkingF...
"private boolean isShutdown() {\n boolean isDead = false;\n int numTimes = CHECK_ALIVE_NUMBER_OF_TIMES;\n while (!isDead && numTimes > 0) {\n try {\n numTimes--;\n nwServer.testNotRunning(dbId);\n isDead = true;\n } catch (Exception e) {\n isDead = fals...
"public void endElement(String namespaceURI, String localName, String qName) throws SAXException {\n try {\n if (null != selfRecords) {\n for (int x = 0, selfRecordsSize = selfRecords.size(); x < selfRecordsSize; x++) {\n UnmarshalRecord selfRecord = selfRecords.get(x);\n ...
"public QueryHandle enableDataset(Id.DatasetInstance datasetID, DatasetSpecification spec) throws IllegalArgumentException, ExploreException, SQLException, UnsupportedTypeException {\n String datasetName = datasetID.getId();\n Map<String, String> serdeProperties = ImmutableMap.of(Constants.Explore.DATASET_NAME, d...
"public static void showSnackMessage(Activity activity, String msg) {\n LogHelper.e(\"String_Node_Str\" + msg);\n activity.getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_IMMERSIVE);\n final Snackbar snackba...
"public void onSlotChanged() {\n if (inventory instanceof AppEngInternalInventory)\n ((AppEngInternalInventory) inventory).onInventoryChanged(getSlotIndex());\n else\n super.onSlotChanged();\n isValid = hasCalculatedValidness.NotAvailable;\n}\n"
"public void handle(DownloadLink downloadLink) throws Exception {\n try {\n while (waitForNextStartAllowed(downloadLink)) {\n }\n } catch (InterruptedException e) {\n return;\n }\n putLastTimeStarted(System.currentTimeMillis());\n if (!isAGBChecked()) {\n logger.severe(\"Strin...
"private void updateProperty() {\n Object updateObject = result.getUpdateObject();\n if (updateObject == null) {\n return;\n }\n if (updateObject instanceof Node) {\n Node node = (Node) updateObject;\n boolean update = false;\n boolean isXsdPath = false;\n Object parameter...
"public void run() {\n while (isRunning.get()) {\n for (DistributedObject distributedObject : client.getDistributedObjects()) {\n distributedObject.destroy();\n }\n }\n}\n"
"private void materializeCube(CubeHandle cubeHandle, Map appContext) throws BirtException {\n int mode = this.sessionContext.getDataEngineContext().getMode();\n try {\n CubeMaterializer cubeMaterializer = null;\n if (appContext == null)\n appContext = sessionContext.getAppContext();\n ...
"private void setupBlur(Properties props, JdbcTemplate jdbc, List<String> activeCollectors) {\n Map<String, String> blurInstances = loadBlurInstances(props);\n for (Map.Entry<String, String> blurEntry : blurInstances.entrySet()) {\n final String zookeeperName = blurEntry.getKey();\n final String con...
"public boolean isEntry(Statement n) {\n switch(n.getKind()) {\n case PARAM_CALLEE:\n case HEAP_PARAM_CALLEE:\n case METHOD_ENTRY:\n return true;\n case PHI:\n case PI:\n case NORMAL_RET_CALLER:\n case PARAM_CALLER:\n case HEAP_RET_CALLER:\n c...
"private URI updateHref(final URI href) {\n final URI tempDirUri = tempDir.toURI();\n final URI filePath = tempDirUri.resolve(toURI(inputFile));\n final URI keyValue = tempDirUri.resolve(href);\n return URLUtils.getRelativePath(filePath, keyValue);\n}\n"
"public boolean executeKeyEvent(KeyEvent event) {\n mTempRect.setEmpty();\n if (!canScroll()) {\n if (isFocused() && event.getKeyCode() != KeyEvent.KEYCODE_BACK) {\n View currentFocused = findFocus();\n if (currentFocused == this)\n currentFocused = null;\n V...
"public boolean deregisterDriver(String className) throws OdaException {\n if (className == null || className.length() == 0)\n return false;\n if (isDeregistered(className)) {\n return true;\n }\n Driver driver = findDriver(className, null);\n if (driver != null) {\n try {\n ...
"public static void clearDatabase(Context context) {\n ContentResolver cr = context.getContentResolver();\n cr.delete(StatusColumns.CONTENT_URI, null, null);\n cr.delete(UserColumns.CONTENT_URI, null, null);\n cr.delete(DirectMessageColumns.CONTENT_URI, null, null);\n cr.delete(StatusUpdateInfoColumns.CO...
"public boolean hasAbility(Ability ability) {\n if (mBattleAbility.getBattleAbility() == ability) {\n return true;\n } else {\n return false;\n }\n}\n"
"private BodyConsumer deployAppStream(final HttpRequest request, final HttpResponder responder, final String namespaceId, final String appId) throws IOException {\n if (!namespaceExists(namespaceId)) {\n LOG.warn(\"String_Node_Str\", namespaceId);\n responder.sendString(HttpResponseStatus.NOT_FOUND, St...
"private void unselect(final TreeItem item) {\n syncExec(new VoidResult() {\n\n public void run() {\n widget.deselect(item);\n lastSelectionItem = item;\n }\n });\n}\n"
"private String getIDEPath() throws IOException {\n URL url = Lwjgl3ResourceFilePath.class.getClassLoader().getResource(getPath());\n if (url == null)\n throw new IOException(\"String_Node_Str\");\n String urlString = url.toString();\n SilenceEngine.Platform platform = SilenceEngine.getPlatform();\n ...
"public OverlapInfo getOverlapInfo(Aligner<AlignElementSketch<T>> aligner, AlignElementSketch<T> b) {\n Alignment<AlignElementSketch<T>> alignment = localAlignOneSkip(aligner, b);\n int a1 = alignment.getA1();\n int a2 = alignment.getA2();\n int b1 = alignment.getB1();\n int b2 = alignment.getB2();\n ...
"private static ObjectName getObjectName(int index) throws MalformedObjectNameException {\n return new ObjectName(\"String_Node_Str\" + Settings.get(CommonSettings.THIS_PHYSICAL_LOCATION) + \"String_Node_Str\" + Constants.PRIORITY_KEY_MACHINE + \"String_Node_Str\" + SystemUtils.getLocalHostName() + \"String_Node_Str...
"public boolean allowExternalImages() {\n return allow(AppConfiguration.PERM_EXTERNAL_IMAGES);\n}\n"
"public void writeStatement(MethodWriter writer) {\n Variable var = this.variable;\n if (this.type == DEFAULT) {\n if (var != null) {\n writer.addLocal(var.index, var.type);\n var.value.writeExpression(writer);\n var.writeSet(writer);\n }\n writer.visitLabel(t...
"public NBTTagList getTileEntityList(Chunk chunk) {\n NBTTagList tileEntityList = new NBTTagList();\n if (!WDLPluginChannels.canSaveTileEntities(chunk)) {\n return tileEntityList;\n }\n Map<BlockPos, TileEntity> chunkTEMap = chunk.getTileEntityMap();\n Map<BlockPos, NBTTagCompound> oldTEMap = getO...
"private boolean isEnabled() {\n try {\n Class<?> c = Class.forName(\"String_Node_Str\");\n Object object = c.getMethod(\"String_Node_Str\").invoke(null);\n if (object != null && object instanceof Boolean) {\n return (Boolean) object;\n }\n } catch (Exception e) {\n e...
"public DataStreamsPipelineSpec generateSpec(DataStreamsConfig config) {\n long batchIntervalMillis;\n try {\n batchIntervalMillis = TimeParser.parseDuration(config.getBatchInterval());\n } catch (Exception e) {\n throw new IllegalArgumentException(String.format(\"String_Node_Str\", config.getBat...
"public void setDisplayName(ChatComponent displayName) {\n if (displayName != null && displayName.getText() == null)\n throw new IllegalArgumentException(\"String_Node_Str\");\n this.displayName = displayName != null ? displayName : ChatComponent.text(this.name);\n synchronized (this.featuredTabLists) {...