content stringlengths 40 137k |
|---|
"public void saveToSharedPreferences(SharedPreferences sharedPreferences) {\n String prefix = \"String_Node_Str\";\n SharedPreferences.Editor editor = sharedPreferences.edit();\n if (this.preferenceSpot >= 0) {\n prefix += this.preferenceSpot + \"String_Node_Str\";\n } else {\n int count = sha... |
"protected void loadStandardMappingFiles(String ormXMLFile) {\n PersistenceUnitInfo puInfo = m_project.getPersistenceUnitInfo();\n Collection<URL> rootUrls = new HashSet<URL>(puInfo.getJarFileUrls());\n rootUrls.add(puInfo.getPersistenceUnitRootUrl());\n for (URL rootURL : rootUrls) {\n getSessionLog... |
"public void testBasicProbeMechanicsFromLeaf() throws Exception {\n drainAll();\n QueryRequest request = QueryRequest.createQuery(\"String_Node_Str\");\n request.hop();\n request.setTTL((byte) 1);\n assertTrue((request.getHops() == 1));\n ULTRAPEER_2.send(request);\n ULTRAPEER_2.flush();\n Query... |
"public Calendar getEndTime() {\n Calendar ret = (Calendar) currentDay.clone();\n ret.set(Calendar.HOUR_OF_DAY, currentTimeEnd / 60);\n ret.set(Calendar.MINUTE, currentTimeEnd % 60);\n ret.set(Calendar.SECOND, 0);\n ret.set(Calendar.MILLISECOND, 0);\n return ret;\n}\n"
|
"public InputStream getInputStream(Object obj) throws IOException {\n if (obj instanceof ZipEntry) {\n return ((ZipFile) zipFiles.get(obj)).getInputStream((ZipEntry) obj);\n } else {\n return new BufferedInputStream(new FileInputStream((File) obj));\n }\n}\n"
|
"public static void readFully(FileChannel file, long pos, ByteBuffer dst) {\n try {\n do {\n int len = file.read(dst, pos);\n if (len < 0) {\n throw new EOFException();\n }\n pos += len;\n } while (dst.remaining() > 0);\n dst.rewind();\n... |
"final public MrGeoRaster reduce(final int xfactor, final int yfactor, Aggregator aggregator, double[] nodatas) throws MrGeoRasterException {\n MrGeoRaster child = createCompatibleRaster(width / xfactor, height / yfactor);\n final int subsize = xfactor * yfactor;\n final int[] intsamples = new int[subsize];\n ... |
"public boolean canBeAppliedToPoint(ModificationPoint point) {\n if (!(point.getCodeElement() instanceof CtStatement))\n return false;\n if (point.getCodeElement() instanceof CtLocalVariable) {\n return false;\n }\n return true;\n}\n"
|
"private RemoteIdentity remote(final Urn iname, final String secret) throws IOException {\n RemoteIdentity remote;\n URL entry;\n try {\n entry = this.resolver.authority(iname);\n } catch (com.netbout.spi.UnreachableUrnException ex) {\n throw new IOException(ex);\n }\n final URI uri = Ur... |
"private void advance() {\n try {\n while (walker.hasNext()) {\n ColumnEvent ev = walker.next();\n switch(currentChangeType) {\n case ColumnEvent.ROW_EDGE_CHANGE:\n case ColumnEvent.MEASURE_HEADER_CHANGE:\n if (blankStarted && ev.type != C... |
"public static TdCatalog getParentCatalog(ModelElement element) {\n Namespace namespace = element.getNamespace();\n if (element == null || namespace == null) {\n return null;\n }\n return SwitchHelpers.CATALOG_SWITCH.doSwitch(element.getNamespace());\n}\n"
|
"public String chipinfo() {\n return \"String_Node_Str\" + on + \"String_Node_Str\" + ((status & STATUS_XOSC16M_STABLE) > 0) + \"String_Node_Str\" + ((status & STATUS_RSSI_VALID) > 0) + \"String_Node_Str\" + cca + \"String_Node_Str\";\n}\n"
|
"private InputSplitAssigner loadInputSplitAssigner(final Class<? extends InputSplit> inputSplitType, JobID jid) {\n final String typeClassName = inputSplitType.getSimpleName();\n final String assignerKey = INPUT_SPLIT_CONFIG_KEY_PREFIX + typeClassName;\n LOG.info(\"String_Node_Str\" + typeClassName);\n Stri... |
"private boolean isHealthy(Service osd) {\n String smartTestResult = KeyValuePairs.getValue(osd.getData().getDataList(), \"String_Node_Str\");\n if (smartTestResult == null) {\n return true;\n }\n return Integer.valueOf(smartTestResult) != SmartTestResult.SMART_TEST_RESULT_FAILED_VALUE;\n}\n"
|
"public void transform(NodeType node) {\n ElementParameterType dbVersion = ComponentUtilities.getNodeProperty(node, \"String_Node_Str\");\n if (dbVersion != null) {\n String jarValue = dbVersion.getValue();\n if (\"String_Node_Str\".equalsIgnoreCase(jarValue)) {\n dbVersion.setValue(\"Str... |
"public void setExternal() {\n external = true;\n for (MethodWrapper method : getMethods()) {\n method.setLocked(true);\n }\n}\n"
|
"private void appendRequestBodyPart(final String method, final String uri, final String body, final Map<String, String> headers, final String contentId) {\n boolean isContentLengthPresent = false;\n writer.append(HttpHeaders.CONTENT_TYPE).append(COLON).append(SP).append(HttpContentType.APPLICATION_HTTP).append(CR... |
"View createUnlockScreenFor(UnlockMode unlockMode) {\n if (unlockMode == UnlockMode.Pattern) {\n UnlockScreen view = new UnlockScreen(mContext, mLockPatternUtils, mUpdateMonitor, mKeyguardScreenCallback, mUpdateMonitor.getFailedAttempts());\n view.setEnableFallback(mEnableFallback);\n return vie... |
"public void onActivityResult(final int requestCode, final int resultCode, final Intent intent) {\n ActivityCompat.invalidateOptionsMenu(getActivity());\n if (requestCode == ADD_RECORD_RESULT_CODE && resultCode == AddCoinapultAccountActivity.RESULT_COINAPULT) {\n UUID accountId = (UUID) intent.getSerializa... |
"private void switchToDynamic() {\n Composite composite = new Composite(valueArea, SWT.NONE);\n GridData gd = new GridData(GridData.FILL_HORIZONTAL);\n gd.horizontalSpan = 2;\n composite.setLayoutData(gd);\n composite.setLayout(UIUtil.createGridLayoutWithoutMargin(3, false));\n createLabel(composite, ... |
"public WorkflowModel updateACLForWorkflow(String pWorkspaceId, String workflowModelId, Map<String, String> userEntries, Map<String, String> groupEntries) throws WorkflowNotFoundException, UserNotFoundException, UserNotActiveException, WorkspaceNotFoundException, WorkflowModelNotFoundException, AccessRightException {\n... |
"public static void handleOnCreate(RowContent content, IRowData rowData, ExecutionContext context) {\n try {\n ReportItemDesign rowDesign = (ReportItemDesign) content.getGenerateBy();\n IRowInstance row = new RowInstance(content, context);\n if (handleJS(row, rowDesign.getOnCreate(), context).di... |
"IDataSetCacheObject getSavedCacheObject(DataSourceAndDataSet dsAndDs) {\n synchronized (cacheMap) {\n return tempDataSetCacheMap.get(dsAndDs);\n }\n}\n"
|
"public boolean isRedoable() {\n return oldTexts == null && isSheetAvailable() && !isRangeProtected();\n}\n"
|
"private Integer doSend() throws Exception {\n if (message == null) {\n return 0;\n }\n if (message.getClients() == null || message.getClients().size() == 0) {\n logger.error(\"String_Node_Str\", message);\n message.setStatusId(PayloadStatus.Failed);\n message.setTotalUsers(0);\n ... |
"private boolean isNonNegative(long[][] in) {\n for (int i = 0; i < in.length; i++) {\n for (int j = 0; j < in[i].length; j++) {\n if (in[i][j] < 0) {\n return false;\n }\n }\n }\n return true;\n}\n"
|
"private void save(Collection<SourceCode> squidSourceFiles) {\n for (SourceCode squidSourceFile : squidSourceFiles) {\n SourceFile squidFile = (SourceFile) squidSourceFile;\n File sonarFile = context.getResource(File.create(pathResolver.relativePath(fileSystem.baseDir(), new java.io.File(squidFile.getK... |
"private SearchResults searchByDefaultIndex(String namespaceId, String searchQuery, Set<MetadataSearchTargetType> types) {\n List<MetadataEntry> results = new ArrayList<>();\n for (String searchTerm : getSearchTerms(namespaceId, searchQuery)) {\n Scanner scanner;\n if (searchTerm.endsWith(\"String_N... |
"public static Integer waitFor(Process p, long maxWait) {\n long startTime = System.currentTimeMillis();\n Timer timer = new Timer(true);\n final Thread waitThread = Thread.currentThread();\n boolean wakeupScheduled = false;\n while (System.currentTimeMillis() < startTime + maxWait) {\n try {\n ... |
"public List<InvoiceLine> createInvoiceLine(Invoice invoice, ProjectTask projectTask) throws AxelorException {\n Product product = projectTask.getProduct();\n if (product == null) {\n throw new AxelorException(String.format(I18n.get(IExceptionMessage.INVOICING_FOLDER_PROJECT_TASK_PRODUCT), projectTask.getF... |
"public org.hl7.fhir.dstu2.model.DetectedIssue.DetectedIssueMitigationComponent convertDetectedIssueMitigationComponent(org.hl7.fhir.dstu3.model.DetectedIssue.DetectedIssueMitigationComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.DetectedI... |
"public void shouldFetch_withVariantItemAttributeQueryOnParentIndex() throws Exception {\n final AttributeQuery query = mock(AttributeQuery.class);\n final Condition mockCondition = mock(Condition.class);\n when(mockCondition.getComparisonOperator()).thenReturn(Operators.EQUALS);\n final String itemId = ran... |
"public long size() {\n return persistentStore1.size();\n}\n"
|
"public boolean isDone() {\n return responseAvailable(response);\n}\n"
|
"private boolean isProjectOwner(GitlabProject project, User user) {\n GitlabUser owner = project.getOwner();\n if (owner == null) {\n return false;\n }\n return owner.getId().toString().equals(user.getExternalId()) || owner.getName().equals(user.getUserName());\n}\n"
|
"public String gdReadValue(String variable) {\n return getComboBoxHelper().getText();\n}\n"
|
"public void stopListening() {\n try {\n mContext.unregisterReceiver(this);\n } catch (IllegalArgumentException e) {\n mRemoteLogger.w(\"String_Node_Str\");\n }\n}\n"
|
"public void overrideSettings(final String... keyvalues) {\n super.overrideSettings(keyvalues);\n if (((mPopup1 == null) && (mPopup2 == null)) || mPopupStatus != POPUP_FIRST_LEVEL) {\n mPopupStatus = POPUP_FIRST_LEVEL;\n initializePopup();\n }\n ((MoreSettingPopup) mPopup).overrideSettings(key... |
"public byte[] getStrong() {\n return (byte[]) strong.clone();\n}\n"
|
"public PoolInfo getPoolNameFromResourceJndiName(ResourceInfo resourceInfo) {\n PoolInfo poolInfo = null;\n JdbcResource jdbcResource = null;\n ResourceInfo actualResourceInfo = resourceInfo;\n String jndiName = resourceInfo.getName();\n ResourceInfo actualResourceInfo = new ResourceInfo(jndiName, resour... |
"private void buildHeader(StringBuffer html, String packageName) {\n logger.entering(\"String_Node_Str\", \"String_Node_Str\", html);\n String relPath = \"String_Node_Str\";\n if (currentPackageName != null) {\n String[] folders = currentPackageName.split(\"String_Node_Str\");\n for (String folde... |
"void close() {\n if (query != null) {\n try {\n this.resultset.close();\n } catch (SQLException e) {\n logger.log(Level.FINER, e.getMessage(), e);\n this.resultset = null;\n }\n }\n if (this.statement != null) {\n try {\n this.statement.c... |
"public static void cleanUpArray() {\n try {\n synchronized (detectableEntities) {\n Iterator<TileEntity> it = detectableTileEntities.iterator();\n while (it.hasNext()) {\n TileEntity tileEntity = it.next();\n if (tileEntity == null) {\n i... |
"private void fireProjectile(World world, EntityPlayer player, ItemStack stack, NBTTagCompound nbt, Vec3d look) {\n if (Rune.getRune(nbt) == Rune.FIREBALL) {\n EntityFireball fireball = new EntityFireball(world, look.x, look.y, look.z, 1F, 0F, player, stack, 2);\n fireball.setPosition(player.posX + loo... |
"public void testSlowSinkRoll() throws IOException, InterruptedException {\n final File f = FileUtil.mktempdir();\n RollSink snk = new RollSink(new Context(), \"String_Node_Str\", 2000, 250) {\n protected EventSink newSink(Context ctx) throws IOException {\n return new EscapedCustomDfsSink(ctx, ... |
"public void onPlayerInteract(PlayerInteractEvent event) {\n if (event.getAction() == Action.LEFT_CLICK_BLOCK) {\n Player p = event.getPlayer();\n ItemStack item = p.getItemInHand();\n if (item.getType() == Material.BOW) {\n Material id = event.getClickedBlock().getType();\n ... |
"public void listChanged(ListEvent<E> listChanges) {\n final Barcode toDoList = new Barcode();\n toDoList.addWhite(0, barcode.size());\n final LinkedList removedValues = new LinkedList();\n int lastFakedUniqueChangeIndex = -1;\n while (listChanges.next()) {\n final int changeIndex = listChanges.ge... |
"public int startOp(int op) {\n return startOp(op, Process.myUid(), mContext.getOpPackageName());\n}\n"
|
"public Set<ActionSpec> getModuleActions() {\n Set<ActionSpec> actions = new HashSet<ActionSpec>();\n actions.add(new ActionSpec(\"String_Node_Str\", true));\n actions.add(new ActionSpec(\"String_Node_Str\", true));\n actions.add(new ActionSpec(\"String_Node_Str\", true));\n actions.add(new ActionSpec(\"... |
"public String getCountSql() {\n return countSql + \"String_Node_Str\" + getFilterCriteria(countSql);\n}\n"
|
"public void endTransaction(String databaseName, boolean success) {\n if (success) {\n getWritableDatabase(databaseName).setTransactionSuccessful();\n }\n getWritableDatabase(databaseName).endTransaction();\n postEndTransactionEvent(success, getDatabaseName(), tableNameChanges);\n}\n"
|
"protected void onDestroy() {\n mCalled = true;\n if (mManagedDialogs != null) {\n final int numDialogs = mManagedDialogs.size();\n for (int i = 0; i < numDialogs; i++) {\n final ManagedDialog md = mManagedDialogs.valueAt(i);\n if (md.mDialog.isShowing()) {\n md.... |
"public ODataContentWriteErrorCallback getODataContentWriteErrorCallback() {\n return odataContentWriteErrorCallback;\n}\n"
|
"public void resume() {\n ScanResponse localResp;\n int localNumberOfCompleteRows;\n synchronized (this) {\n if (state == ScanResumerState.INITIALIZED) {\n state = ScanResumerState.RESUMED;\n return;\n }\n if (state == ScanResumerState.RESUMED) {\n return;\... |
"public List<Music> searchSimilarTitle(String title) {\n return entityManager.createQuery(\"String_Node_Str\", Music.class).setParameter(\"String_Node_Str\", \"String_Node_Str\" + title + \"String_Node_Str\").getResultList();\n}\n"
|
"protected void drawPrimaryLineAsPath(XYItemRendererState state, Graphics2D g2, XYPlot plot, XYDataset dataset, int pass, int series, int item, ValueAxis domainAxis, ValueAxis rangeAxis, Rectangle2D dataArea) {\n RectangleEdge xAxisLocation = plot.getDomainAxisEdge();\n RectangleEdge yAxisLocation = plot.getRange... |
"public boolean act() {\n if (Dungeon.level.map[target.pos] == Terrain.GRASS) {\n Dungeon.level.set(target.pos, Terrain.EMBERS);\n GameScene.updateMap(target.pos);\n }\n spend(TICK);\n left -= TICK;\n if (left <= 0) {\n detach();\n }\n return true;\n}\n"
|
"private double asRelativeValue(final InformationLoss infoLoss) {\n double min = result.getLattice().getBottom().getMinimumInformationLoss().getValue();\n double max = result.getLattice().getTop().getMaximumInformationLoss().getValue();\n return ((infoLoss.getValue() - min) / (max - min)) * 100d;\n}\n"
|
"public void onParserDone(List<Network> networkList) {\n for (Network network : networkList) {\n if (DBG) {\n Log.v(TAG, \"String_Node_Str\" + network.getSsid());\n Log.v(TAG, \"String_Node_Str\" + network.getPassword());\n }\n if (network.getSsid().equals(ssid)) {\n ... |
"private void notifyScreenshotError() {\n final ComponentName errorComponent = new ComponentName(SYSUI_PACKAGE, SYSUI_SCREENSHOT_ERROR_RECEIVER);\n Intent errorIntent = new Intent(Intent.ACTION_USER_PRESENT);\n errorIntent.setComponent(errorComponent);\n errorIntent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_... |
"protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model, final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException {\n final ServiceRegistry serviceRegistry = context.getServiceRegistr... |
"public void controllerUpdate(ControllerEvent event) {\n controllerUpdateForPreview(event, videoContainer, locator, listener);\n}\n"
|
"public Response removeCartridge(String cartridgeType) throws RestAPIException {\n try {\n StratosApiV41Utils.removeCartridge(cartridgeType);\n return Response.ok().entity(new ResponseMessageBean(ResponseMessageBean.SUCCESS, String.format(\"String_Node_Str\", cartridgeType))).build();\n } catch (Exc... |
"public void setDynamicProperty(String name, Object value) throws WrongValueException {\n if (name == null)\n throw new WrongValueException(\"String_Node_Str\");\n if (!hasDynamicProperty(name))\n throw new WrongValueException(\"String_Node_Str\" + name + \"String_Node_Str\");\n String sval = Obj... |
"public void onValueChange(ValueChangeEvent<IndexedAIP> event) {\n final IndexedAIP parentAIP = event.getValue();\n final String parentId = (parentAIP != null) ? parentAIP.getId() : null;\n Dialogs.showPromptDialog(messages.outcomeDetailTitle(), null, null, messages.outcomeDetailPlaceholder(), RegExp.compile(\... |
"public void doTask() {\n if (x == z) {\n if (x.allocationMode() == DataBuffer.AllocationMode.HEAP) {\n Nd4j.getBlasWrapper().level1().axpy(n, 1.0, y, offsetY, incrY, x, offsetX, incrX);\n } else {\n ByteBuf nbbx = x.asNetty();\n ByteBuf nbby = y.asNetty();\n ... |
"public void indexObject(String key, String type, JSONObject jo) throws Exception {\n Document doc = new Document();\n doc.add(new Field(TYPE_FIELD, type, Field.Store.YES, Field.Index.NOT_ANALYZED_NO_NORMS));\n doc.add(new Field(KEY_FIELD, key, Field.Store.YES, Field.Index.NOT_ANALYZED_NO_NORMS));\n if (nul... |
"public CompletableFuture<List<String>> redefineClasses() {\n return CompletableFuture.supplyAsync(() -> {\n List<String> classNames = new ArrayList<>();\n synchronized (this) {\n classNames.addAll(deltaClassNames);\n doHotCodeReplace(deltaResources, deltaClassNames);\n ... |
"private ClassWriter.Element[] makeMethodAttributes(int m, ClassWriter w, CodeReader oldCode, Compiler.Output output, MethodData md) throws InvalidClassFileException {\n CodeWriter code = makeNewCode(w, output);\n int codeAttrCount = 0;\n LineNumberTableWriter lines = null;\n LocalVariableTableWriter locals... |
"public String getSigningProfile() {\n if (model.getProfiles() != null && model.getProfiles().getProfile() != null) {\n for (Profile profile : model.getProfiles().getProfile()) {\n List<Plugin> plugin = profile.getBuild().getPlugins().getPlugin();\n for (Plugin plugin2 : plugin) {\n ... |
"protected void doPrepareQuery(Report report, Map appContext) {\n this.appContext = appContext;\n List queries = report.getQueries();\n int queriesSize = queries.size();\n IDataQueryDefinition[] queryArray = new IDataQueryDefinition[queriesSize];\n for (int index = 0; index < queriesSize; index++) {\n ... |
"public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null || this.getClass() != o.getClass()) {\n return false;\n }\n MapMessage that = (MapMessage) o;\n return this.data.equals(that.data);\n}\n"
|
"public void run() {\n _native.deleteShortcut();\n _native.setEnabled(false);\n if (callback != null) {\n _native.removeActionListener(callback);\n callback = null;\n }\n parent._native.remove(_native);\n _native.removeNotify();\n}\n"
|
"public void onPlayerQuit(PlayerEvent event) {\n Player player = event.getPlayer();\n Messages.SendMessage(\"String_Node_Str\", player, null);\n try {\n if (this.plugin.IdleTask(\"String_Node_Str\", player, \"String_Node_Str\")) {\n int TaskID = Integer.parseInt(this.plugin.IdleGetTaskID(play... |
"private void sendEclipseHelp(ID roomID, String target, String searchString) {\n searchString = searchString.replace(' ', '+');\n sendMessage(roomID, (target != null ? target + \"String_Node_Str\" : \"String_Node_Str\") + NLS.bind(CustomMessages.getString(CustomMessages.EclipseHelp), searchString));\n}\n"
|
"public void requestCallBack(int tag, ArrayList<MatjiData> data) {\n switch(tag) {\n case HttpRequestManager.AUTHORIZE:\n Me me = (Me) data.get(0);\n saveMe(me);\n if (mLoginableRef != null && mLoginableRef.get() != null) {\n mLoginableRef.get().loginCompleted()... |
"public void bulkInstall(ActionRequest request, ActionResponse response) {\n Context context = request.getContext();\n Set<Map<String, Object>> apps = new HashSet<Map<String, Object>>();\n Collection<Map<String, Object>> appsSet = (Collection<Map<String, Object>>) context.get(\"String_Node_Str\");\n if (app... |
"public IndexableGraph get(String path) {\n String fullPath = path(path);\n File f = new File(fullPath);\n return new TinkerGraph(f.getAbsolutePath());\n}\n"
|
"public boolean attackEntityFrom(DamageSource damagesource, int i) {\n if (null != damagesource) {\n Entity entity = damagesource.getEntity();\n if (entity != null && entity == this.riddenByEntity) {\n return false;\n } else {\n return super.attackEntityFrom(damagesource, i... |
"protected void okPressed() {\n try {\n if (handle == null) {\n MapRule rule = StructureFactory.createMapRule();\n rule.setProperty(HighlightRule.OPERATOR_MEMBER, DEUtil.resolveNull(getValueForOperator(operator.getText())));\n if (value1.isVisible()) {\n rule.se... |
"private boolean weaveAndDefineConceteAspects() {\n if (trace.isTraceEnabled())\n trace.enter(\"String_Node_Str\", this, concreteAspects);\n boolean success = true;\n for (Iterator iterator = concreteAspects.iterator(); iterator.hasNext(); ) {\n ConcreteAspectCodeGen gen = (ConcreteAspectCodeGen)... |
"private static <T extends EmpyreanMessage> T sendEmpyreanRequest(final ServiceConfiguration parent, final EmpyreanMessage msg) throws Throwable {\n ServiceConfiguration config = ServiceConfigurations.createEphemeral(Empyrean.INSTANCE, parent.getInetAddress());\n LOG.debug(\"String_Node_Str\" + msg.getClass().get... |
"private String createToolTipText(INodePO node) {\n StringBuilder toolTip = new StringBuilder();\n final WorkingLanguageBP workLangBP = WorkingLanguageBP.getInstance();\n Locale locale = workLangBP.getWorkingLanguage();\n ITestSuitePO testSuite = UINodeBP.getTestSuiteOfNode(node);\n if (node != null && i... |
"private void createCube(TabularCubeHandle cubeHandle, CubeMaterializer cubeMaterializer, Map appContext) throws IOException, BirtException, DataException {\n boolean doPerfTuning = this.needCachedDataSetToEnhancePerformance(cubeHandle) && (appContext == null || (appContext != null && appContext.get(DataEngine.DATA_... |
"public void dragOver(DropTargetEvent event) {\n super.dragOver(event);\n doDropValidation(event, commonViewer);\n}\n"
|
"public void run() {\n if (CloudFoundryPlugin.getCallback() != null) {\n CloudFoundryPlugin.getCallback().stopApplicationConsole(appModule, server);\n CloudFoundryPlugin.getCallback().startApplicationConsole(server, appModule, instanceIndex);\n } else {\n CloudFoundryPlugin.logError(\"String_... |
"private void registerEvents() {\n registerEvent(new com.Acrobot.ChestShop.Plugins.ChestShop());\n registerPreShopCreationEvents();\n registerPreTransactionEvents();\n registerPostShopCreationEvents();\n registerPostTransactionEvents();\n registerEvent(new SignBreak());\n registerEvent(new SignCrea... |
"private void getAvailableComputedList(List refernceNameList, List dataSetCCList, List result) throws DataException {\n try {\n for (int i = 0; i < dataSetCCList.size(); i++) {\n IComputedColumn column = (IComputedColumn) dataSetCCList.get(i);\n if (!refernceNameList.contains(column.getN... |
"private boolean collectProjectFilesFromProvider(Collection files, Object entry, int level) {\n List children = structureProvider.getChildren(entry);\n if (children == null) {\n children = new ArrayList(1);\n }\n boolean isContainsFile = false;\n Iterator childrenEnum = children.iterator();\n f... |
"public Page<JobSearchResult> findJobs(final String id, final String jobName, final String user, final Set<JobStatus> statuses, final Set<String> tags, final String clusterName, final String clusterId, final String commandName, final String commandId, final Date minStarted, final Date maxStarted, final Date minFinished... |
"public void stopServer() {\n if (server == null) {\n Digester digester = createStopDigester();\n digester.setClassLoader(Thread.currentThread().getContextClassLoader());\n File file = configFile();\n try {\n InputSource is = new InputSource(\"String_Node_Str\" + file.getAbsolu... |
"public SqlBackendConfig apply(String t) {\n SqlBackendConfig result = nameToConfig.get(t.toLowerCase());\n return result;\n}\n"
|
"private void calculatePriceSellTax() {\n if (!reportlock) {\n reportlock = true;\n Double dPriceSell = (Double) pricesell;\n if (dPriceSell == null) {\n m_jPriceSellTax.setText(null);\n } else {\n double dTaxRate = taxeslogic.getTaxRate((TaxCategoryInfo) taxcatmodel... |
"public org.hl7.fhir.dstu2.model.ElementDefinition.ElementDefinitionSlicingComponent convertElementDefinitionSlicingComponent(org.hl7.fhir.dstu3.model.ElementDefinition.ElementDefinitionSlicingComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.mode... |
"public void showError(Error error, String status) {\n replaceFragment(ErrorFragment.newInstance(error, status), true);\n}\n"
|
"protected MPerspectiveStack getMPerspectiveStack() {\n if (fPerspectiveStack != null) {\n return fPerspectiveStack;\n }\n MUIElement baseElement = fWindow;\n if (fWindow == null) {\n baseElement = fApp;\n }\n if (baseElement != null) {\n if (fPerspectiveStack == null) {\n ... |
"protected void setUp() throws Exception {\n super.setUp();\n resetCounters();\n ivy = Ivy.newInstance();\n ivy.configure(PublishEventsTest.class.getResource(\"String_Node_Str\"));\n ivy.pushContext();\n publishEngine = ivy.getPublishEngine();\n ivyFile = new File(\"String_Node_Str\");\n assertT... |
"private Field findField(final AdminCommand command, final String fieldName) throws NoSuchFieldException {\n Field result = null;\n for (Class c = command.getClass(); c != null && result == null; c = c.getSuperclass()) {\n try {\n result = c.getDeclaredField(fieldName);\n return resul... |
"public Series getSingleChoice(Item item) {\n List<StatisticChoiceOption> statisticResponses = qtiStatisticsManager.getNumOfAnswersPerSingleChoiceAnswerOption(item, resourceResult.getSearchParams());\n String mediaBaseURL = resourceResult.getMediaBaseURL();\n boolean survey = QTIType.survey.equals(resourceResu... |
"public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException {\n ObjectType objectType = null;\n String id = null;\n Item item = null;\n int qty = 1;\n LivingEntity entity = null;\n for (String arg : scriptEntry.getArguments()) {\n if (aH.matchesArg(\"String_Node_Str\", arg)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.