content stringlengths 40 137k |
|---|
"public String setExecutable(String fileName) {\n try {\n String[] cmd = new String[1];\n cmd[0] = \"String_Node_Str\" + fileName;\n Runtime rt = Runtime.getRuntime();\n Process proc = rt.exec(\"String_Node_Str\" + fileName);\n InputStream stderr = proc.getErrorStream();\n I... |
"public synchronized Map<Object, Object> start(GraphDatabaseService graphDb, KernelExtensionLoader kernelExtensionLoader) {\n if (started) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n Map<Object, Object> params = config.getParams();\n boolean useMemoryMapped = Boolean.parseBoolean(... |
"public T get(EDataKind dataKind, int index) {\n return (T) ((NominalStringCContainer) (hashCContainers.get(dataKind))).get(index);\n}\n"
|
"public void testSetAttributeById_ArtifactId() {\n Attribute<?> staticIdAttr = null;\n for (Attribute<?> attr : folderArt.getAttributes()) {\n if (attr.getAttributeType().getId().equals(CoreAttributeTypes.StaticId.getGuid())) {\n staticIdAttr = attr;\n break;\n }\n }\n IA... |
"private int runSelectedBuildConfiguration(IProject currProject) throws Exception {\n Map<String, Object> params = new HashMap<String, Object>();\n params.put(RunReleaseRhoconnectAppTask.workDir, currProject.getLocation().toOSString());\n Map results = RhoTaskHolder.getInstance().runTask(RunReleaseRhoconnectAp... |
"public void testRecursion_GR531_4() {\n runNegativeTest(new String[] { \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" }, \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"S... |
"public void run() {\n try {\n Util.copyStream(mIn, mOut);\n } catch (IOException e) {\n mLogger.warn(\"String_Node_Str\", e);\n } finally {\n if (mCloseOut)\n closeOut();\n }\n}\n"
|
"public void modelChanged() {\n if (parent.getChildViews() == null)\n this.colorMapMenu.setEnabled(!heatMapModel.isGlobalScaling());\n this.markSelection.setSelected(heatMapModel.doMarkSelection());\n this.overlayHider.setSelected(this.heatMapModel.doHideMostFreqOverlay());\n if ((heatMapModel != nul... |
"private static void merge(WFChoiceEnv parent, ConnectedMap foo, ConnectedMap child) {\n for (Role dest : child.getDestinations()) {\n for (Role src : child.getSources(dest)) {\n if (!parent.isEnabled(dest)) {\n foo.putMessages(dest, src, child.getMessages(dest, src));\n }... |
"public void simpleMode(InventoryClickEvent event) {\n Player p = (Player) event.getWhoClicked();\n DecimalFormat f = new DecimalFormat(\"String_Node_Str\");\n boolean top = event.getView().convertSlot(event.getRawSlot()) == event.getRawSlot();\n if (top) {\n if (isManagementSlot(event.getSlot(), 1))... |
"public void run() {\n try {\n String zookeeperId;\n try {\n zookeeperId = this.blurDatabase.getZookeeperId(this.zookeeper);\n } catch (ZookeeperNameMissingException e) {\n log.error(e.getMessage(), e);\n return;\n } catch (ZookeeperNameCollisionException ... |
"private void addHDFSRecipe(Stack stack, Set<HostGroup> hostGroups) {\n try {\n Cluster cluster = stack.getCluster();\n String blueprintText = cluster.getBlueprint().getBlueprintText();\n for (HostGroup hostGroup : hostGroups) {\n if (isComponentPresent(blueprintText, \"String_Node_St... |
"public void usherProcess(MoveLine moveLine) {\n Invoice invoice = moveLine.getMove().getInvoice();\n if (invoice != null) {\n if (moveLine.getUsherPassageOk()) {\n invoice.setUsherPassageOk(true);\n } else {\n invoice.setUsherPassageOk(false);\n }\n Beans.get(Inv... |
"public String decrypt(String name, String profiles, String data, MediaType type) {\n checkEncryptorInstalled(name, profiles);\n try {\n String input = stripFormData(data, type, true);\n Map<String, String> encryptorKeys = this.helper.getEncryptorKeys(name, profiles, input);\n TextEncryptor e... |
"private void maybeDispatch(Scope referencedFrom, TypeBinding binding) {\n if (binding instanceof SourceTypeBinding) {\n SourceTypeBinding type = (SourceTypeBinding) binding;\n CompilationUnitScope from = findUnitScope(referencedFrom);\n onTypeRef(type, from.referenceContext);\n } else if (bi... |
"public boolean reconfigVms(NetworkAdd networkAdd, List<BaseNode> vNodes, StatusUpdater statusUpdator, Set<String> occupiedIps) {\n if (vNodes.isEmpty()) {\n logger.info(\"String_Node_Str\");\n return true;\n }\n setNetworkSchema(vNodes);\n allocateStaticIp(networkAdd, vNodes, occupiedIps);\n ... |
"public void onProviderSessionExpired(String provider) {\n Log.d(TAG, \"String_Node_Str\" + provider);\n if (!QBProvider.FIREBASE_PHONE.equals(provider)) {\n return;\n }\n FirebaseAuthHelper.getIdTokenForCurrentUser(new FirebaseAuthHelper.RequestFirebaseIdTokenCallback() {\n public void onSucc... |
"private void validateReviewsCancelled(TransitionResults results, IAtsWorkItem workItem, IAtsStateDefinition toStateDef) throws OseeCoreException {\n if (workItem.isTeamWorkflow() && toStateDef.getStateType().isCancelledState()) {\n for (IAtsAbstractReview review : reviewService.getReviewsFromCurrentState((IA... |
"public void drawStringsAndGraph(Class cls, String name, Object o, boolean isstatic, int sec) {\n if (collapse_depth > 0)\n return;\n if (isstatic) {\n drawStrings(cls.getName(), name, o.toString(), isstatic);\n return;\n }\n Color oldColor = g.getColor();\n boolean isHovering = fals... |
"private void addToClassToSourceMap(String className, String sourceName) {\n if (classToSourceMap == null) {\n classToSourceMap = new HashMap();\n }\n}\n"
|
"public static ChatMessage toObject(Cursor cursor) {\n SimpleDateFormat formatter = new SimpleDateFormat(\"String_Node_Str\", Locale.ENGLISH);\n int id = cursor.getInt(COL_ID);\n String text = cursor.getString(COL_TEXT);\n String time = formatter.format(Utils.getDateTime(cursor.getString(COL_TIMESTAMP)));\n... |
"private Class createClass1() {\n Class result = thisClass;\n if (result == null) {\n ClassLoader cl = getClassLoader();\n synchronized (proxyCache) {\n if (factoryUseCache)\n createClass2(cl);\n else\n createClass3(cl);\n }\n }\n Clas... |
"public static void main(String[] anArgs) throws Exception {\n Args myArgs = CliFactory.parseArguments(Args.class, anArgs);\n LongTerm myLT = new LongTerm(myArgs.getSeed(), myArgs.getCycles(), myArgs.isCalibrate(), myArgs.getCkptCycle());\n long myStart = System.currentTimeMillis();\n myLT.run();\n doubl... |
"protected <T> void start(final Callable<T> task, int size) throws DhtException {\n final int permits = permitsForSize(size);\n final Callable<T> op = new Callable<T>() {\n public T call() throws Exception {\n try {\n return task.call();\n } finally {\n s... |
"public SerializerResult reference(final ServiceMetadata metadata, final EdmEntitySet edmEntitySet, final Entity entity, final ReferenceSerializerOptions options) throws SerializerException {\n OutputStream outputStream = null;\n SerializerException cachedException = null;\n try {\n final ContextURL con... |
"public boolean computeEdge(Polygon2D_F64 polygon, boolean ccw) {\n averageInside = 0;\n averageOutside = 0;\n double tangentSign = ccw ? 1 : -1;\n int totalSides = 0;\n for (int i = polygon.size() - 1, j = 0; j < polygon.size(); i = j, j++) {\n Point2D_F64 a = polygon.get(i);\n Point2D_F64... |
"void doShell(final AcceptUserInput event) throws Exception {\n String line;\n reader.setPrompt(getPrompt());\n while (!exitRequested) {\n try {\n line = readLine();\n try {\n bufferingMode();\n if (line != null) {\n if (!\"String_No... |
"public void finish() throws IOException {\n throw new UnsupportedOperationException();\n}\n"
|
"private double printTickLabels(List<String> tickLabels, List<TimeStamp> tickTimes, Axis1D axis, int width, int height) {\n int iTimeText = Integer.MAX_VALUE;\n textRenderer.beginRendering(width, height);\n try {\n for (int index = 0; index < tickLabels.size(); index++) {\n TimeStamp t = tick... |
"public void testSettersAndGetters() throws Exception {\n MyFileManager fileManager = (MyFileManager) injector.getInstance(FileManager.class);\n Iterator iter = null;\n Map TIME_MAP = null;\n Long old = new Long(1);\n Long middle = new Long(2);\n Long young = new Long(3);\n deleteCacheFile();\n ... |
"public ConfiguredTarget create(RuleContext ruleContext) throws InterruptedException, RuleErrorException, ActionConflictException {\n validateRuleContext(ruleContext);\n JavaSemantics javaSemantics = createJavaSemantics();\n AndroidSemantics androidSemantics = createAndroidSemantics();\n androidSemantics.va... |
"public Optional<ObjectId> getMetadataId(final int objectIdIndex) {\n Optional<ObjectId> mdId = Optional.absent();\n if (objectIdIndex > -1) {\n mdId = Optional.of(getObjectId(objectIdIndex));\n }\n return mdId;\n}\n"
|
"public void handleReceived(ClientConnection connection) {\n PlayerCloseWindowEvent event = new PlayerCloseWindowEvent(TridentServer.getInstance().windowBy(this.id));\n TridentServer.getInstance().eventHandler().call(event);\n if (event.isIgnored()) {\n }\n}\n"
|
"public View getView(int position, View convertView, ViewGroup parent) {\n BluetoothDevice bd = getItem(position);\n LinearLayout row = new LinearLayout(myContext);\n row.setOrientation(LinearLayout.VERTICAL);\n LinearLayout name_and_icon = new LinearLayout(myContext);\n name_and_icon.setOrientation(Line... |
"private ResponseEntity<Object> processStudyAsync(HttpServletRequest request, String validation_passed_message, Study study, UserAccountBean ownerUserAccount) throws Exception {\n ResponseEntity<Object> response;\n Locale locale = new Locale(\"String_Node_Str\");\n request.getSession().setAttribute(LocaleResol... |
"private void bumpPromoAnaylticsAndShowPromoDialogIfNecessary() {\n if (mIsUpdatingStats || mThereWasAnErrorLoadingStats) {\n return;\n }\n AppPrefs.bumpAnalyticsForStatsWidgetPromo();\n int counter = AppPrefs.getAnalyticsForStatsWidgetPromo();\n if (counter == 3 || counter == 1000 || counter == 1... |
"public void testBuildGraph() {\n ServiceDefinition sd1 = new ServiceDefinition();\n sd1.setInterface(INTERFACE1);\n OperationDefinition op1 = new OperationDefinition();\n op1.setName(OP1);\n sd1.getOperations().add(op1);\n OperationImplDefinition stod1 = new OperationImplDefinition();\n op1.getImp... |
"public void disconnect() {\n try {\n checkConnection();\n getContentAsString(Constants.REST_PATH_LOGOUT);\n } catch (CliRestException cliRestException) {\n if (cliRestException.getStatus() == HttpStatus.UNAUTHORIZED) {\n writeCookieInfo(\"String_Node_Str\");\n }\n } catc... |
"public Object get(String name, Scriptable start) {\n if (ScriptConstants.OUTER_RESULT_KEYWORD.equalsIgnoreCase(name)) {\n if (this.helper.getParent() != null)\n return helper.getParent().getScriptable();\n else\n throw Context.reportRuntimeError(DataResourceHandle.getInstance().g... |
"public Set getFilteredAttributeValues(String tag, String attribute, String start) {\n Set attribs = getElementAttributes(tag);\n if (attribs.size() == 0)\n return null;\n Object[] tempArray = attribs.toArray();\n for (int i = 0; i < tempArray.length; i++) {\n Parameter currParam = (Parameter)... |
"public int getItemCount() {\n return 7 * 6;\n}\n"
|
"public void onReceive(Context context, Intent intent) {\n String action = intent.getAction();\n if (BluetoothDevice.ACTION_FOUND.equals(action)) {\n BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);\n if (device.getBondState() != BluetoothDevice.BOND_BONDED) {\n ... |
"public boolean onMessage(int source, int path, int target, int flags, Object object) {\n boolean canAdd = true;\n if (count == 0) {\n start = System.nanoTime();\n }\n try {\n List<Object> m = messages.get(target).get(source);\n if (messages.get(target) == null) {\n throw new... |
"private static void expandFClear(OPT_Instruction s, OPT_IR ir) {\n int nSave = MIR_UnaryNoRes.getVal(s).asIntConstant().value;\n int fpStackHeight = ir.MIRInfo.fpStackHeight;\n OPT_PhysicalRegisterSet phys = ir.regpool.getPhysicalRegisterSet();\n for (int i = nSave; i < fpStackHeight; i++) {\n OPT_R... |
"protected void addColumBinding(IBaseQueryDefinition transfer, ComputedColumnHandle columnBinding) throws BirtException {\n String name = columnBinding.getName();\n String expr = columnBinding.getExpression();\n String type = columnBinding.getDataType();\n String displayName = columnBinding.getDisplayName()... |
"protected boolean checkDescendantsURIcompliance() {\n if (!isTopLevelURIformCompliant(this.getIdentity()))\n return false;\n }\n boolean allDescendantsCompliant = true;\n if (!this.getModules().isEmpty()) {\n for (Module module : this.getModules()) {\n allDescendantsCompliant = all... |
"public static void delete(final Configuration conf, String input, final Properties providerProperties) throws IOException {\n try {\n Path p = resolveNameToPath(conf, input, providerProperties, false, true);\n if (p != null) {\n HadoopFileUtils.delete(conf, p);\n }\n } catch (Ille... |
"public Connector createConnector(String address, int port, String protocol) {\n if (address != null) {\n int index = address.indexOf('/');\n if (index != -1) {\n address = address.substring(index + 1);\n }\n }\n if (logger.isLoggable(Level.FINE)) {\n logger.log(Level.FIN... |
"public void initializeDefaultPreferences() {\n IEclipsePreferences s = DefaultScope.INSTANCE.getNode(BUNDLE_ID);\n s.putInt(PREF_MIN_PREFIX_LENGTH_FOR_TYPES, 2);\n}\n"
|
"public PrestoTopic addFieldValues(PrestoContextRules rules, PrestoFieldUsage field, List<? extends Object> addableValues, Integer index) {\n validateAddableFieldValues(rules, field, addableValues);\n PrestoContext context = rules.getContext();\n PrestoTopic topic = context.getTopic();\n PrestoType type = c... |
"public void update(Brain brain, TimeStep timeStep) {\n this.updateEval.update(timeStep);\n if (this.updateEval.isTime()) {\n ActionEvaluator newEvaluator = evaluate(brain);\n if (this.currentActiveEvaluator == null || this.isFinished(brain) || ((newEvaluator.getKeepBias() > this.currentActiveEvalua... |
"public CronDefinition instance() {\n Set<CronConstraint> validations = new HashSet<CronConstraint>();\n validations.addAll(cronConstraints);\n return new CronDefinition(Lists.newArrayList(this.fields.values()), validations, lastFieldOptional, enforceStrictRanges);\n}\n"
|
"protected synchronized void setEnabled(int id, boolean enable) {\n if (DBG)\n Log.d(LOG_TAG, \"String_Node_Str\" + id + \"String_Node_Str\" + enable + ')');\n if (dataEnabled[id] != enable) {\n dataEnabled[id] = enable;\n if (enable) {\n enabledCount++;\n } else {\n ... |
"public void init(Iterable<SimpleAnnoSentence> cr) {\n Map<String, Set<String>> predSenseSetMap = new HashMap<String, Set<String>>();\n Set<String> knownRoles = new HashSet<String>();\n Set<String> knownLinks = new HashSet<String>();\n Map<String, MutableInt> words = new HashMap<String, MutableInt>();\n ... |
"Picasso providePicasso(Application app, OkHttpClient client) {\n return new Picasso.Builder(app).downloader(new OkHttp3Downloader(client)).listener(new Picasso.Listener() {\n\n public void onImageLoadFailed(Picasso picasso, Uri uri, Exception e) {\n Timber.e(e, \"String_Node_Str\", uri);\n ... |
"public void parseKeyPressed(String sKey) {\n if (expression.matches(regexInvalidChars))\n expression = \"String_Node_Str\";\n if (sKey.equals(\"String_Node_Str\")) {\n String prevExp = solve();\n if (prevExp.equals(\"String_Node_Str\"))\n return;\n roundAndCleanExpression()... |
"public org.hl7.fhir.dstu2.model.ImagingStudy.ImagingStudySeriesComponent convertImagingStudySeriesComponent(org.hl7.fhir.dstu3.model.ImagingStudy.ImagingStudySeriesComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.ImagingStudy.ImagingStudyS... |
"public void testReplaceMatrixParams() {\n UriBuilder ubu = UriBuilder.fromUri(\"String_Node_Str\").replaceMatrixParam(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n {\n URI bu = ubu.build();\n List<PathSegment> ps = UriComponent.decodePath(bu, true);\n MultivaluedMap<Strin... |
"private static boolean shouldShowPage1() {\n if (!InstallSettings.AUTO_SHARING_OPTION.getValue()) {\n return true;\n }\n if (!InstallSettings.ANONYMOUS_DATA_COLLECTION.getValue()) {\n return true;\n }\n if (!InstallSettings.CONTENT_FILTER_OPTION.getValue()) {\n return true;\n }\n... |
"public <T> void asyncUpdate(SerializableBiFunction<E, T, E> updateFunction, T argument) {\n sendEventAsync(update2, toParameters(update2, updateFunction, argument), true);\n}\n"
|
"private void doFinish(IProgressMonitor monitor) throws CoreException, ProjectNotFoundException {\n try {\n monitor.beginTask(\"String_Node_Str\", 1);\n if (m_pageLink.isNewProject()) {\n if (RhoHub.getInstance(m_setting).createRemoteAppFromLocalSources(m_selectedProject, new GitCredentialsP... |
"private void updatePlaybackRow(int index) {\n if (mPlaybackControlsRow.getItem() != null) {\n Movie item = (Movie) mPlaybackControlsRow.getItem();\n item.setTitle(mItems.get(mCurrentItem).getTitle());\n item.setStudio(mItems.get(mCurrentItem).getStudio());\n }\n if (SHOW_IMAGE) {\n ... |
"private void countDown() {\n if (reduceJobStatusContext != null) {\n if (shardsToProcess.decrementAndGet() == 0) {\n reduceJobStatusContext.remove(contextId);\n set(new SQLReduceJobResponse(terminate(), parsedStatement));\n }\n }\n}\n"
|
"public void propertyChange(PropertyChangeEvent evt) {\n if (evt.getOldValue() != null)\n eventListeners.unregister(evt.getOldValue());\n if (evt.getNewValue() != null)\n eventListeners.register(evt.getNewValue());\n}\n"
|
"private Language buy(Player player) {\n double price = getBuyPrice(sign.getLine(PRICE_LINE));\n if (price == NO_PRICE) {\n return NO_BUYING_HERE;\n }\n if (container == null) {\n return NO_CHEST_DETECTED;\n }\n if (!hasPermission(player, stock.getType(), true)) {\n return NO_PERM... |
"public int putLongAscii(final int index, final long value) {\n if (value == 0) {\n putByte(index, ZERO);\n return 1;\n }\n if (value == Long.MIN_VALUE) {\n putBytes(index, MIN_LONG_VALUE);\n return MIN_LONG_VALUE.length;\n }\n int start = index;\n long quotient = value;\n ... |
"public void runSplitNCigarReads(String input, String output, String ref, String region, int newMaxQualScore) throws InterruptedException {\n String[] command = { mem, \"String_Node_Str\", gatk, \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", ref, \"String_Node_Str\", input, \"String_Node_Str\", outpu... |
"public String generate(Object argument) {\n final StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(TEXT_1);\n stringBuffer.append(TEXT_2);\n stringBuffer.append(TEXT_3);\n stringBuffer.append(Licenser.getCommentedLicenseText(new File(\"String_Node_Str\")));\n stringBuffer.append(... |
"public void handleRead(ServerContext context, ReadRequest request, ResultHandler<Resource> handler) {\n try {\n if (request.getResourceNameObject().isEmpty()) {\n throw new BadRequestException(\"String_Node_Str\");\n }\n Scheduler scheduler = getScheduler(request.getResourceName());\... |
"public void sendGuidedPoint(LatLong point, boolean force) {\n ControlApi.getApi(this).goTo(point, force);\n}\n"
|
"private void callAction(String act, Entity ent) {\n Map<String, dObject> context = new HashMap<String, dObject>();\n context.put(\"String_Node_Str\", new dEntity(ent));\n dnpc.action(\"String_Node_Str\" + act + \"String_Node_Str\", null, context);\n dnpc.action(ent.getType().name() + \"String_Node_Str\" + ... |
"static boolean isGoogBind(Node n) {\n return n.isGetProp() && n.matchesQualifiedName(\"String_Node_Str\");\n}\n"
|
"public void testXmlAccessorTypePublicMemberOverride() {\n String contextPath = CONTEXT_PATH + \"String_Node_Str\";\n String path = PATH + \"String_Node_Str\";\n outputResolver = generateSchema(new Class[] { org.eclipse.persistence.testing.jaxb.externalizedmetadata.xmlaccessortype.publicmember.Employee.class }... |
"public void runImport(BankStatement bankStatement) throws IOException, AxelorException {\n if (bankStatement.getBankStatementFile() == null) {\n throw new AxelorException(I18n.get(IExceptionMessage.BANK_STATEMENT_MISSING_FILE), IException.MISSING_FIELD);\n }\n if (bankStatement.getBankStatementFileForm... |
"public void initializeFormatPreferences() {\n setEncodingPreference(\"String_Node_Str\", VideoMediaFormatImpl.DEFAULT_CLOCK_RATE, 1100);\n setEncodingPreference(\"String_Node_Str\", VideoMediaFormatImpl.DEFAULT_CLOCK_RATE, 1000);\n setEncodingPreference(\"String_Node_Str\", VideoMediaFormatImpl.DEFAULT_CLOCK_... |
"public Object[] getDataForColumns(String[] sExpressions, int iMaxRecords, boolean byRow) {\n byRow = false;\n Object[] array = new Object[sExpressions.length];\n for (int i = 0; i < sExpressions.length; i++) {\n Object[] innerArray = new Object[ROW_COUNT];\n for (int j = 0; j < ROW_COUNT; j++) {... |
"public void check_if_support_all_normal_types() throws FailToCastObjectException {\n String d = \"String_Node_Str\";\n String t = \"String_Node_Str\";\n String dt = d + \"String_Node_Str\" + t;\n Date date = Castors.me().castTo(d, Date.class);\n Time time = Castors.me().castTo(t, Time.class);\n Times... |
"private int drawFile(Map.Entry<String, List<String>> file, int fileOffset) {\n Renderer.rectangle(0x80000000, 20, infoHeight + fileOffset - scrolled, width, file.getValue().size() * 9 + 12).draw();\n Renderer.text(ChatFormatting.DARK_GRAY + file.getKey(), 22, infoHeight + fileOffset - scrolled + 2).setShadow(tru... |
"private Book createBook(SwordBookMetaData sbmd) throws BookException {\n BookType modtype = sbmd.getBookType();\n if (modtype == null || modtype.getBookCategory() == null) {\n throw new BookException(Msg.TYPE_UNSUPPORTED);\n }\n return modtype.createBook(sbmd);\n}\n"
|
"public void setIssue(RepoInfo repoInfo, final Issue issue) {\n if (this.issue == null) {\n this.issue = issue;\n title.setText(issue.title);\n if (issue.user != null) {\n profileName.setText(issue.user.login);\n profileEmail.setText(TimeUtils.getTimeAgoString(issue.created... |
"protected String getAnalyzedElementName(Indicator ind) {\n if (ind.getAnalyzedElement() != null) {\n return dbmsLanguage.quote(ind.getAnalyzedElement().getName());\n }\n StringBuffer name = new StringBuffer(PluginConstant.EMPTY_STRING);\n EObject object = ind.eContainer();\n EList<ModelElement> e... |
"public void match(PactRecord value1, PactRecord value2, Collector out) throws Exception {\n StringIntPair amountYearPair = value1.getField(1, this.amountYearPair);\n PactString nationName = value2.getField(1, this.nationName);\n PactInteger year = amountYearPair.getSecond();\n PactString amount = amountYea... |
"public EntityAccessor reloadEntity(EntityAccessor accessor, MetadataDescriptor descriptor) {\n XMLEntityMappings xmlEntityMappings = newXMLEntityMappingsObject();\n ArrayList list = new ArrayList();\n list.add(accessor);\n xmlEntityMappings.setEntities(list);\n xmlEntityMappings = reloadXMLEntityMapping... |
"private void updateMultipleAlignment() throws StructureException, RefinerFailedException {\n msa.clear();\n Block b = msa.getBlock(0);\n b.setAlignRes(block);\n subunitCore = b.getCoreLength();\n if (subunitCore < 1)\n throw new RefinerFailedException(\"String_Node_Str\");\n }\n updateTrans... |
"public List<IGenericDatasource> getAll() throws PentahoAccessControlException {\n helper.checkAdministratorAccess();\n List<IGenericDatasource> mondrianDatasourceList = new ArrayList<IGenericDatasource>();\n for (MondrianCatalog mondrianCatalog : mondrianCatalogService.listCatalogs(PentahoSessionHolder.getSes... |
"private void initMaps(Context cxt, ObaStopsForRouteResponse response) {\n if (response.getCode() == ObaApi.OBA_OK) {\n final List<ObaStop> stops = response.getStops();\n final Map<String, ObaStop> stopMap = getStopMap(stops);\n final ObaStopGrouping[] groupings = response.getStopGroupings();\n ... |
"public void computeTile(Band targetBand, Tile targetTile, ProgressMonitor pm) throws OperatorException {\n final Rectangle targetTileRectangle = targetTile.getRectangle();\n final int x0 = targetTileRectangle.x;\n final int y0 = targetTileRectangle.y;\n final int w = targetTileRectangle.width;\n final i... |
"public String[] getInstalledReadingsSets() {\n try {\n URL index = ResourceUtil.getResource(ReadingsBookDriver.class, \"String_Node_Str\");\n return NetUtil.listByIndexFile(NetUtil.toURI(index), new URIFilter() {\n\n public boolean accept(String name) {\n return true;\n ... |
"boolean sendBackup(boolean add, Address caller, Data data, int blockId, int addIndex) {\n if (zeroBackup)\n return true;\n if (addIndex == -1)\n throw new RuntimeException(\"String_Node_Str\");\n if (lsMembers.size() > 1) {\n MemberImpl memberBackup = getNextMemberAfter(thisAddress, true,... |
"private void loadCachedSettings() {\n Cursor localSettings = SiteSettingsTable.getSettings(mSite.getId());\n if (localSettings != null && localSettings.getCount() > 0) {\n mSettings.isInLocalTable = true;\n SparseArrayCompat<CategoryModel> cachedModels = SiteSettingsTable.getAllCategories();\n ... |
"public void go() {\n boolean doLoop = true;\n this.hashBegin = System.currentTimeMillis();\n this.parent.hasherCount.getAndIncrement();\n byte[] byteBase = null;\n MessageDigest sha512 = null;\n try {\n sha512 = MessageDigest.getInstance(\"String_Node_Str\");\n } catch (NoSuchAlgorithmExcep... |
"private void createDetailList(Composite composite) {\n Composite compoDetail = new Composite(composite, SWT.NONE);\n compoDetail.setLayout(new GridLayout(1, false));\n GridData data = new GridData(SWT.FILL, SWT.FILL, true, true);\n data.heightHint = 300;\n data.widthHint = 300;\n compoDetail.setLayou... |
"public void asyncMultipleLogContainer() throws Exception {\n String snippet = \"String_Node_Str\";\n CreateContainerResponse container = dockerClient.createContainerCmd(\"String_Node_Str\").withCmd(\"String_Node_Str\", snippet).exec();\n LOG.info(\"String_Node_Str\", container.toString());\n assertThat(con... |
"public final void doFilter(ServletRequest req, ServletResponse res, final FilterChain chain) throws IOException, ServletException {\n if (!(req instanceof HttpServletRequest)) {\n chain.doFilter(req, res);\n } else {\n if (req instanceof RequestWrapper) {\n LOGGER.finest(\"String_Node_St... |
"public List<PaymentInvoiceToPay> loadOneLine(PaymentVoucher paymentVoucher, MoveLine moveLine, int lineSeq) throws AxelorException {\n LOG.debug(\"String_Node_Str\");\n List<PaymentInvoiceToPay> paymentInvoiceToPayList = new ArrayList<PaymentInvoiceToPay>();\n PaymentInvoiceToPay paymentInvoiceToPay = new Pay... |
"protected Control createDialogArea(Composite parent) {\n Composite composite = (Composite) super.createDialogArea(parent);\n initializeDialogUnits(composite);\n GridData data = new GridData(GridData.FILL_BOTH);\n data.heightHint = 240;\n data.widthHint = 260;\n composite.setLayoutData(data);\n cre... |
"private TreeOperation handleBackspaceOrDeleteKeyOnEmptyTexts(boolean isBackspace, Node node, Node rightParagraph, Node leftParagraph) {\n org.xwiki.gwt.dom.client.Document document = getTextArea().getDocument();\n Range range = document.createRange();\n if (isBackspace) {\n range.setStartAfter(document... |
"public Entity spawnEntityIntoClientWorld(EntityRegistration er, EntitySpawnPacket packet) {\n WorldClient wc = client.field_71441_e;\n Class<? extends Entity> cls = er.getEntityClass();\n try {\n Entity entity;\n if (er.hasCustomSpawning()) {\n entity = er.doCustomSpawning(packet);\n ... |
"public char[] getMasterPassword() {\n return idm == null ? null : idm.getMasterPassword();\n}\n"
|
"private void setState(boolean enabled) {\n lblTitle.setEnabled(enabled);\n txtTitle.setEnabled(enabled && btnTitleVisible.getSelection());\n btnTitleVisible.setEnabled(enabled);\n if (isShowValueEnabled()) {\n lblShowValue.setEnabled(enabled);\n btnShowValue.setEnabled(enabled);\n }\n I... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.