content stringlengths 40 137k |
|---|
"public void testLockUnlock() throws Exception {\n Sardine sardine = SardineFactory.begin();\n String url = String.format(\"String_Node_Str\", UUID.randomUUID().toString());\n sardine.put(url, new byte[0]);\n try {\n String token = sardine.lock(url);\n try {\n sardine.delete(url);\n... |
"public void addEdgeDefinition(EdgeDefinitionEntity edgeDefinition) {\n if (!this.edgeCollections.contains(edgeDefinition.getCollection())) {\n this.edgeDefinitions.add(edgeDefinition);\n this.edgeCollections.add(edgeDefinition.getCollection());\n }\n}\n"
|
"public CommandResult execute(IssuedCommand issuedCommand) {\n if (issuedCommand.getTokenCount() >= 3) {\n boolean gaveItem = give(issuedCommand.getArguments()[1]);\n if (gaveItem) {\n return new DebugCommandResult(0, true);\n } else {\n return null;\n }\n } else ... |
"public HilightedTextWriter newLine() {\n appendToSb(NEW_LINE);\n newLine = true;\n newLineCount++;\n return this;\n}\n"
|
"protected void configure() {\n bindListener(Matchers.any(), counter);\n bindListener(Matchers.any(), counter);\n}\n"
|
"public static AtomSite convertAtomToAtomSite(Atom a, int model, String chainId, String internalChainId, int atomId) {\n Group g = a.getGroup();\n String record;\n if (g.getType().equals(GroupType.HETATM)) {\n record = \"String_Node_Str\";\n } else {\n record = \"String_Node_Str\";\n }\n ... |
"protected boolean runAnalysis(Analysis analysis, String sqlStatement) {\n boolean ok = true;\n TypedReturnCode<Connection> trc = this.getConnection(analysis);\n if (!trc.isOk()) {\n return traceError(\"String_Node_Str\" + analysis.getName() + \"String_Node_Str\" + trc.getMessage());\n }\n Connect... |
"public void onSingleInstalledModuleReloaded(ModuleUtil moduleUtil, String packageName, InstalledModule module) {\n new ReloadModules().execute();\n}\n"
|
"private Object instantiateOrGetIndexServiceObject(Session session, Output out) throws Exception {\n try {\n Class.forName(\"String_Node_Str\");\n } catch (Exception e) {\n throw new ShellException(\"String_Node_Str\");\n }\n String className = (String) safeGet(session, KEY_INDEX_CLASS_NAME);\... |
"public void testKafkaConsumerSimple() throws Exception {\n final String topic = \"String_Node_Str\";\n initializeKafkaSource(topic, PARTITIONS, false);\n int msgCount = 5;\n Map<String, String> messages = Maps.newHashMap();\n for (int i = 0; i < msgCount; i++) {\n messages.put(Integer.toString(i)... |
"public void UnifiedFileAttributes(Path path, BasicFileAttributes attrs, boolean followLinks) {\n mPath = path;\n setBasic(attrs);\n setPosix(FileUtils.getPosixFileAttributes(path, followLinks));\n setDos(FileUtils.getDosFileAttributes(path, followLinks));\n if (getPosix() != null) {\n if (getBasi... |
"protected Control createDialogArea(Composite parent) {\n Composite content = new Composite(parent, SWT.NONE);\n GridDataFactory.fillDefaults().grab(true, true).applyTo(content);\n GridLayoutFactory.fillDefaults().numColumns(1).applyTo(content);\n super.createDialogArea(content);\n createPrefixArea(conte... |
"private void receive(InputStream in, OriginatorFinder origFinder) throws IOException {\n ContextBootstrap.debug(MessageID.PROPAGATION_STARTED, \"String_Node_Str\");\n ContextAccessController accessController = ContextBootstrap.getContextAccessController();\n wireAdapter.prepareToReadFrom(in);\n SimpleMap m... |
"public <E extends ConditionalDistribution> E newConditionalDistribution(List<Variable> parents) {\n if (!this.areParentsCompatible(parents))\n throw new IllegalArgumentException(\"String_Node_Str\");\n if (parents.isEmpty())\n return (E) new Multinomial(this.variable);\n else\n return (E)... |
"public ItemStack getCraftingResult(InventoryCrafting inv) {\n int cntRep = 0;\n ItemStack theItem = null;\n for (int i = 0; i < inv.getSizeInventory(); i++) {\n ItemStack s = inv.getStackInSlot(i);\n if (s != null) {\n if (s.getItem() == itemToRepair) {\n if (theItem !=... |
"public Session getSession(String keyspace) {\n String cqlKeyspace = storeToCQLName(keyspace);\n return getOrCreateKeyspaceSession(cqlKeyspace);\n}\n"
|
"public com.stratio.crossdata.common.data.ResultSet transformToMetaResultSet(com.datastax.driver.core.ResultSet resultSet, Map<ColumnName, String> alias) {\n ResultSet crs = new ResultSet();\n CassandraMetadataHelper helper = new CassandraMetadataHelper();\n List<ColumnDefinitions.Definition> definitions = res... |
"private void buildSparkSubTrees(ETypeGen typeGen) {\n subTrees = new ArrayList<NodesSubTree>();\n for (INode node : nodes) {\n if (node instanceof BigDataNode) {\n BigDataNode bigDataNode = (BigDataNode) node;\n if (((bigDataNode == bigDataNode.getSubProcessStartNode(false)) && (bigD... |
"private final void processConfigProps(String name, ExprNode pred, Context c, List subs) {\n if (pred instanceof SubstInNode) {\n SubstInNode pred1 = (SubstInNode) pred;\n this.processConfigProps(name, pred1.getBody(), c, subs.cons(pred1));\n return;\n }\n if (pred instanceof OpApplNode) {... |
"private HashMap<String, String> getWriteDate(OModel model, List<Integer> ids) {\n HashMap<String, String> map = new HashMap<>();\n try {\n List<OdooRecord> result;\n if (model.getColumn(\"String_Node_Str\") != null) {\n OdooFields fields = new OdooFields(new String[] { \"String_Node_Str\... |
"public void onCreate(Bundle savedInstanceState) {\n SharedPreferences themePrefs = getSharedPreferences(\"String_Node_Str\", 0);\n Boolean isDark = themePrefs.getBoolean(\"String_Node_Str\", false);\n if (isDark)\n setTheme(R.style.Sherlock___Theme);\n else\n setTheme(R.style.AppTheme);\n ... |
"private void setStartAddressForIp6(byte[] sections) {\n byte[] byteStart = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };\n System.arraycopy(sections, 0, byteStart, 0, sections.length);\n byte[] highSecs = new byte[LENGTH_OF_V6_SECTIONS / 2];\n byte[] lo... |
"public void write(int flagToClient, double curTim, double[] dblVal) throws IOException {\n simTimWri = curTim;\n final int nDbl = (dblVal != null) ? dblVal.length : 0;\n StringBuffer strBuf = new StringBuffer(Integer.toString(verNo));\n strBuf.append(\"String_Node_Str\" + Integer.toString(flagToClient));\n... |
"public void widgetSelected(SelectionEvent e) {\n Object source = e.getSource();\n if (source == fCmbAggregate) {\n String aggFunc = ((String[]) fCmbAggregate.getData())[fCmbAggregate.getSelectionIndex()];\n showAggregateParameters(aggFunc);\n if (AGG_FUNC_NONE.equals(aggFunc)) {\n ... |
"public int hashCode() {\n return new HashCodeBuilder(17, 37).append(this.getCategory()).append(this.getType()).append(this.getController()).append(this.getDspaceName()).append(this.getDspaceURL()).append(this.getDspaceRest()).toHashCode();\n}\n"
|
"public String[] GetAffiliations(Document parse) {\n NodeList affis = parse.getElementsByTagName(\"String_Node_Str\");\n String[] affilis = new String[affis.getLength()];\n for (int j = 0; j < affis.getLength(); j++) {\n String affiliation = Utilities.getString(affis.item(j));\n affilis[j] = affi... |
"public Optional<VertexLabel> getVertexLabel(String vertexLabelName) {\n Preconditions.checkArgument(!vertexLabelName.startsWith(VERTEX_PREFIX), \"String_Node_Str\", Topology.VERTEX_PREFIX);\n if (this.topology.isSqlWriteLockHeldByCurrentThread() && this.uncommittedRemovedVertexLabels.contains(this.name + \"Strin... |
"public void run() {\n Timber.d(\"String_Node_Str\", mode);\n try {\n final boolean supportControllerMode = doesSupportControllerMode();\n final String command = supportControllerMode ? SOLOLINK_SSID_CONFIG_PATH + \"String_Node_Str\" : \"String_Node_Str\";\n final String response;\n sw... |
"public boolean clearPlot(final PlotWorld plotworld, final Plot plot, final boolean isDelete, final Runnable whenDone) {\n final String world = plotworld.worldname;\n final HybridPlotWorld dpw = ((HybridPlotWorld) plotworld);\n final Location pos1 = MainUtil.getPlotBottomLocAbs(world, plot.id).add(1, 0, 1);\n ... |
"public void testMeasureFilter() throws Exception {\n ICubeQueryDefinition cqd = new CubeQueryDefinition(cubeName);\n IEdgeDefinition columnEdge = cqd.createEdge(ICubeQueryDefinition.COLUMN_EDGE);\n IEdgeDefinition rowEdge = cqd.createEdge(ICubeQueryDefinition.ROW_EDGE);\n IDimensionDefinition dim1 = column... |
"private void pushPath(CratePersistentProperty property) {\n if (getVisitedPath(property) != null) {\n throw new CyclicReferenceException(property.getFieldName(), property.getOwner().getType(), dotPath);\n }\n String propertyTypeKey = createKey(property);\n List<VisitedPath> paths = visitedPaths.get(... |
"public void addOffence(Player player) {\n if (User.getUser(plugin, player).isJailed() != null) {\n return;\n }\n if (offenders.containsKey(player.getName())) {\n offenders.put(player.getName(), getOffences(player) + 1);\n } else {\n offenders.put(player.getName(), 1);\n }\n}\n"
|
"public void bindView(View view, Context context, Cursor cursor) {\n final GroceryItem item = new GroceryItem(cursor);\n CheckedTextView cv = (CheckedTextView) view;\n cv.setText(item.text);\n cv.setChecked(item.checked);\n}\n"
|
"public void copyElements() {\n ArrayList<XSDParticle> particles = WorkbenchClipboard.getWorkbenchClipboard().getParticles();\n IStructuredSelection selection = (IStructuredSelection) page.getTreeViewer().getSelection();\n XSDElementDeclaration element = (XSDElementDeclaration) selection.getFirstElement();\n ... |
"public Map<String, Object> getDiscount(Invoice invoice, InvoiceLine invoiceLine, BigDecimal price) {\n PriceList priceList = invoice.getPriceList();\n if (priceList == null) {\n return null;\n }\n return discounts;\n}\n"
|
"public List<TriggerFiredResult> triggersFired(List<OperableTrigger> triggers, Jedis jedis) throws JobPersistenceException, ClassNotFoundException {\n List<TriggerFiredResult> results = new ArrayList<>();\n for (OperableTrigger trigger : triggers) {\n final String triggerHashKey = redisSchema.triggerHashKe... |
"private void chunk(int len) throws IOException {\n chunkHeader.clear();\n chunkSink.clear(EOL.length());\n Numbers.appendHex(chunkSink, len);\n chunkSink.put(EOL);\n chunkHeader.limit(chunkSink.length());\n MultipartParser.dump(chunkHeader);\n channel.write(chunkHeader);\n}\n"
|
"private void writeTextDataFile(File dataFile, byte[] textData) throws IOException {\n BufferedOutputStream bos = null;\n try {\n bos = new BufferedOutputStream(new FileOutputStream(dataFile, false));\n bos.write(textData);\n } finally {\n if (bos != null) {\n bos.close();\n ... |
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(getResource(), container, false);\n final MissionProxy missionProxy = ((DroidPlannerApp) getActivity().getApplication()).missionProxy;\n final List<MissionItemProxy> selections = ... |
"private static void processOtherUser(long id, FastIDSet relevantItemIDs, FastByIDMap<PreferenceArray> trainingUsers, long userID2, DataModel dataModel) throws TasteException {\n PreferenceArray prefs2Array = dataModel.getPreferencesFromUser(userID2);\n if (id == userID2) {\n List<Preference> prefs2 = new ... |
"public static String[] getDistributionVersionsDisplay(String hiveDistribution, boolean byDisplay) {\n List<String> versionsItems = new ArrayList<String>();\n IHDistribution distribution = getDistribution(hiveDistribution, byDisplay);\n if (distribution != null) {\n IHDistributionVersion[] hdVersions = ... |
"public void actionPerformed(final ActionEvent e) {\n startSendWorklogThread();\n}\n"
|
"private void validateSignatures(List<Signature> signatures) {\n List<Future<SignatureValidationData>> validationData = startSignatureValidationInParallel(signatures);\n extractValidatedSignatureErrors(validationData);\n}\n"
|
"public Node parse(final String source) throws MalformedProgramException {\n if (source == null) {\n return null;\n }\n final int openingBracket = source.indexOf('(');\n String identifier = null;\n List<String> args = null;\n if (openingBracket == -1) {\n identifier = source;\n ar... |
"public int powerRequest(ForgeDirection from) {\n return getPowerProvider().getMaxEnergyReceived();\n}\n"
|
"public void onButtonPressedListener(TextView textView) {\n Toast.makeText(mContext, \"String_Node_Str\", Toast.LENGTH_SHORT).show();\n mListView.getCard(0).setTitle(\"String_Node_Str\");\n mListView.notifyDataSetChanged();\n}\n"
|
"public void performAppSwitch_appSwitchesWithVenmoLaunchIntent() {\n ArgumentCaptor<Intent> launchIntentCaptor = ArgumentCaptor.forClass(Intent.class);\n Configuration configuration = getConfiguration();\n when(configuration.getVenmoState()).thenReturn(\"String_Node_Str\");\n BraintreeFragment fragment = ge... |
"private IScriptExpression adapterExpression(Expression expr) {\n if (expr instanceof Expression.Script && \"String_Node_Str\".equals(((Expression.Script) expr).getLanguage())) {\n ScriptExpression scriptExpr = null;\n try {\n scriptExpr = getModelAdapter().adaptJSExpression(expr.getScriptTe... |
"private Class<?> injectToPlainClassLoader(ClassPool pool, ClassLoader classLoader, String className) throws NotFoundException, IOException, CannotCompileException, IllegalArgumentException, IllegalAccessException, InvocationTargetException {\n Class<?> c = null;\n try {\n c = classLoader.loadClass(classNa... |
"private void parseItems(final PageDefinition pgdef, final NodeInfo parent, Collection items, AnnotationHelper annHelper, boolean bNativeContent) throws Exception {\n LanguageDefinition parentlang = getLanguageDefinition(parent);\n if (parentlang == null)\n parentlang = pgdef.getLanguageDefinition();\n ... |
"public void computeFromStartDateTime(ActionRequest request, ActionResponse response) {\n Event event = request.getContext().asType(Event.class);\n LOG.debug(\"String_Node_Str\", event);\n if (event.getStartDateTime() != null) {\n if (event.getDuration() != null && event.getDuration() != 0) {\n ... |
"private void updatePostUploadProgressBar(ProgressBar view, PostModel post) {\n if (!mUploadStore.isFailedPost(post) && (UploadService.isPostUploadingOrQueued(post) || UploadService.hasInProgressMediaUploadsForPost(post))) {\n view.setVisibility(View.VISIBLE);\n int overallProgress = Math.round(UploadS... |
"public void handle0(DownloadLink downloadLink) throws Exception {\n LinkStatus linkStatus = downloadLink.getLinkStatus();\n String link = (String) downloadLink.getProperty(\"String_Node_Str\");\n String[] mirrors = (String[]) downloadLink.getProperty(\"String_Node_Str\");\n int c = 0;\n while (active) {... |
"public void testDelTemplate() {\n String testFileContent = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n ParseResult parseResult = SoyFileSetParserBuilder.forFileContents(testFileContent).parse();\n St... |
"private static int firstWhitespace(char[] title, int startAt) {\n int first = 0;\n for (int j = startAt; j < title.length; j++) {\n if (!Character.isLetterOrDigit(title[j])) {\n first = j + 1;\n continue;\n }\n break;\n }\n return first;\n}\n"
|
"public boolean performFinish() {\n if (wizPage.isPageComplete()) {\n IWizardPage[] pages = getPages();\n for (IWizardPage page : pages) {\n if (page instanceof GenericConnWizardPage) {\n GenericConnWizardPage gPage = (GenericConnWizardPage) page;\n parameters.a... |
"private void update(File desFile, boolean isCovered) throws IOException, CoreException {\n String curProjectLabel = ResourceManager.getRootProjectName();\n if (desFile.exists()) {\n boolean needReloadResource = false;\n IFile desIFile = ResourceService.file2IFile(desFile);\n String fileExt =... |
"private List<Variables> processSource(String ruleId, TransformContext context, Variables vars, StructureMapGroupRuleSourceComponent src, String pathForErrors) throws FHIRException {\n List<Base> items;\n if (src.getContext().equals(\"String_Node_Str\")) {\n ExpressionNode expr = (ExpressionNode) src.getUs... |
"private void doCategoricalBinning() {\n Map<String, Integer> categoryHistNeg = new HashMap<String, Integer>();\n Map<String, Integer> categoryHistPos = new HashMap<String, Integer>();\n Map<String, Double> categoryWeightedNeg = new HashMap<String, Double>();\n Map<String, Double> categoryWeightedPos = new ... |
"public void pullImage(String imageName) {\n final Image image = Image.valueOf(imageName);\n PullImageCmd pullImageCmd = this.dockerClient.pullImageCmd(image.getName());\n if (this.cubeConfiguration.getDockerRegistry() != null) {\n pullImageCmd.withRegistry(this.cubeConfiguration.getDockerRegistry());\n... |
"public boolean applies(GameEvent event, Ability source, Game game) {\n Permanent sourceObject = game.getPermanent(source.getSourceId());\n Permanent targetPermanent = game.getPermanent(event.getTargetId());\n Permanent guardianBeast = game.getPermanent(guardianBeastId);\n if (guardianBeast == null || guard... |
"private EnvTypePair analyzeFunctionBindFwd(Node call, TypeEnv inEnv) {\n Preconditions.checkArgument(call.isCall());\n Bind bindComponents = this.convention.describeFunctionBind(call, true, false);\n Node boundFunNode = bindComponents.target;\n EnvTypePair pair = analyzeExprFwd(boundFunNode, inEnv);\n T... |
"protected void populateTableList() {\n if (rootNode != null) {\n availableDbObjectsTree.removeAll();\n setRootElement();\n }\n String namePattern = null;\n String[] tableType = null;\n if (searchTxt.getText().length() > 0) {\n namePattern = searchTxt.getText();\n if (namePatt... |
"public static File ConvertSrtToAss(String SrtFile, PmsConfiguration configuration) throws IOException {\n String dir = configuration.getDataFile(SUB_DIR);\n File path = new File(dir);\n if (!path.exists()) {\n path.mkdirs();\n }\n File outputSubs = new File(path.getAbsolutePath() + File.separator... |
"public String getSourceList() {\n StringBuffer sb = new StringBuffer();\n IndexHits<Node> hits = sourceMetaIndex.query(\"String_Node_Str\", \"String_Node_Str\");\n while (hits.hasNext()) {\n Node n = hits.next();\n sb.append(n.getProperty(\"String_Node_Str\") + \"String_Node_Str\");\n }\n ... |
"protected void setupRecurrence(Recurrence recurrence) throws Exception {\n super.setupRecurrence(recurrence);\n recurrence.setEndDate(this.endDate);\n}\n"
|
"public int processIncomingMessages() {\n int newMessagesReceived = 0;\n PayloadProvider payProv = PayloadProvider.get(App.getContext());\n String[] columnNames = new String[] { PayloadsTable.COLUMN_TYPE, PayloadsTable.COLUMN_BELONGS_TO_ME, PayloadsTable.COLUMN_PROCESSING_COMPLETE };\n String[] searchTerms ... |
"public static org.hl7.fhir.dstu2016may.model.Conformance.SystemInteractionComponent convertSystemInteractionComponent(org.hl7.fhir.dstu3.model.Conformance.SystemInteractionComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2016may.model.Conformance.... |
"void startMonitoring() {\n if (this.cardTerminal == null)\n return;\n Card card = null;\n boolean validCard = true;\n while (true) {\n try {\n this.cardTerminal.waitForCardPresent(0);\n if (SimpleAfirma.DEBUG) {\n System.out.println(\"String_Node_Str\" + t... |
"private void scrollToPageRequiresSetup() {\n if (isInTabletUi)\n return;\n int positionToStartAt = 0;\n if (SetupSupport.isThisKeyboardEnabled(getActivity())) {\n positionToStartAt = 1;\n if (SetupSupport.isThisKeyboardSetAsDefaultIME(getActivity())) {\n positionToStartAt = 2;\... |
"public Map<Material, Mesh> createTextMesh(List<String> lines) {\n Map<Material, MeshBuilder> meshBuilders = Maps.newLinkedHashMap();\n addLinesToMesh(lines, meshBuilders);\n Map<Material, Mesh> result = Maps.newLinkedHashMap();\n for (Map.Entry<Material, MeshBuilder> entry : meshBuilders.entrySet()) {\n ... |
"public String configShortName(String config) {\n if (!config.startsWith(\"String_Node_Str\")) {\n return null;\n }\n config = config.substring(1);\n MavenCoordinates coordinates = MavenCoordinates.fromConfigGAV(config);\n if (coordinates == null) {\n return config.substring(0).replaceAll(\... |
"public void testAtomicLongSpawnNodeInParallel() {\n int total = 6;\n int parallel = 2;\n final TestHazelcastInstanceFactory nodeFactory = createHazelcastInstanceFactory(total + 1);\n final Config config = new Config();\n HazelcastInstance instance = nodeFactory.newHazelcastInstance(config);\n final S... |
"private void setCurrentTag(final String tagName) {\n if (TextUtils.isEmpty(tagName))\n return;\n if (isCurrentTag(tagName) && hasPostAdapter() && tagName.equals(getPostAdapter().getCurrentTag()))\n return;\n mCurrentTag = tagName;\n UserPrefs.setReaderTag(tagName);\n hideLoadingProgress();... |
"protected void processHttpResponse(final Element httpResponse, final Map<SerializationProperty, String> serializationProperties, final HttpResponse response) throws RestXqServiceException {\n final String strStatus = httpResponse.getAttribute(STATUS_ATTR_NAME);\n HttpStatus httpStatus = null;\n if (strStatus ... |
"public double readDouble(int byteIndex) {\n return view.getFloat64(byteIndex, littleEndian);\n}\n"
|
"public static XMLEntityMappings generateXmlEntityMappings(Project orProject, List<CompositeDatabaseType> complexTypes) {\n List<ClassDescriptor> descriptors = orProject.getOrderedDescriptors();\n List<DatabaseQuery> queries = orProject.getQueries();\n XMLEntityMappings xmlEntityMappings = new XMLEntityMapping... |
"private String sizeStr(int memSize) {\n String sizeStr;\n switch(memSize) {\n case 1:\n sizeStr = \"String_Node_Str\";\n break;\n case 2:\n sizeStr = \"String_Node_Str\";\n break;\n case 4:\n sizeStr = \"String_Node_Str\";\n b... |
"public VmwareHypervisorHostNetworkSummary getHyperHostNetworkSummary(String esxServiceConsolePort) throws Exception {\n if (s_logger.isTraceEnabled())\n s_logger.trace(\"String_Node_Str\" + _mor.getValue() + \"String_Node_Str\" + esxServiceConsolePort);\n List<ManagedObjectReference> hosts = (List<Managed... |
"public void testDelegatesToValue() {\n String contents = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n String toFind = \"String_Node_Str\";\n int offset = contents.lastIndexOf(toFind);\n assertType(contents, offset, offset + toFind.length(), \"String_Node_Str\");\n}\n"
|
"public void setMethod(Method method) {\n if (method == null) {\n typeText.setType(null);\n return;\n }\n Class<?> cls = method.getDeclaringClass();\n typeText.setType(cls);\n reviseMethodListFor(cls);\n methodList.select(indexOf(method));\n}\n"
|
"private boolean collectDirectNetworkUsage(final HostVO host) {\n s_logger.debug(\"String_Node_Str\");\n final long zoneId = host.getDataCenterId();\n final DetailVO lastCollectDetail = _detailsDao.findDetail(host.getId(), \"String_Node_Str\");\n if (lastCollectDetail == null) {\n s_logger.warn(\"Str... |
"public static void fillTreeList(IProgressMonitor monitor) {\n allFilteredNodeList.clear();\n DQRepositoryNode.setIsReturnAllNodesWhenFiltering(false);\n List<IRepositoryNode> list = new ArrayList<IRepositoryNode>();\n list.add(getRootNode(ERepositoryObjectType.TDQ_DATA_PROFILING, true));\n list.add(getR... |
"private static boolean isEquality(ExpressionTree condition) {\n return condition.is(EQUAL_TO, NOT_EQUAL_TO);\n}\n"
|
"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.setStart(document.getB... |
"public static void init() {\n GameRegistry.registerBlock(remnantRuinChest, RemnantRuinChestBlock.NAME);\n GameRegistry.registerBlock(craftingStation, CraftingStationBlock.NAME);\n GameRegistry.registerBlock(cupola, CupolaBlock.NAME);\n GameRegistry.registerBlock(structureShape, SteamNSteelStructureShapeBlo... |
"public int drainTo(Collection<? super T> c, int maxElements) {\n if (maxElements <= 0) {\n return 0;\n }\n int addedElements = 0;\n synchronized (queueLock) {\n while (addedElements < maxElements && peek() != null) {\n c.add(poll());\n addedElements++;\n }\n }\... |
"public Tuple exec(Tuple input) throws IOException {\n Map<String, String> rawDataMap = CommonUtils.convertDataIntoMap(input, this.headers);\n Tuple tuple = TupleFactory.getInstance().newTuple(this.outputNames.size() + 1);\n for (int i = 0; i < this.outputNames.size(); i++) {\n String name = this.output... |
"public Calc accept(ExpCompiler compiler) {\n final Calc defaultCalc = defaultExp.accept(compiler);\n return new GenericCalc(new DummyExp(type)) {\n public Calc[] getCalcs() {\n return new Calc[] { defaultCalc };\n }\n public Object evaluate(Evaluator evaluator) {\n if (... |
"public Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException {\n if (!shouldInstrument(name)) {\n return KernelBundleClassLoader.this.loadClass(name, resolve);\n }\n Class<?> cls = KernelBundleClassLoader.this.findLoadedClass(name);\n if (cls == null) {\n cls = this.l... |
"protected final void validateCoverageRange() {\n if (coverageRange == null) {\n CoverageRange defaultCoverageRange = new CoverageRange();\n log.info(\"String_Node_Str\" + this.name + \"String_Node_Str\" + defaultCoverageRange.toString());\n } else if (organism == null || !organism.isGenomeSizeAvail... |
"public boolean start() {\n try {\n List<SyncQueueItemVO> l = _queueMgr.getActiveQueueItems(getMsid(), false);\n cleanupPendingJobs(l);\n _queueMgr.resetQueueProcess(getMsid());\n _jobDao.resetJobProcess(getMsid(), BaseCmd.INTERNAL_ERROR, getSerializedErrorMessage(\"String_Node_Str\"));\n... |
"public Project create(ProjectDTO projectDTO) {\n logger.debug(\"String_Node_Str\" + projectDTO);\n Project project = new Project();\n project.setName(projectDTO.getName());\n project.setDescription(projectDTO.getDescription());\n BaseNode projectRef = new BaseNode();\n projectRef.setName(projectDTO.g... |
"public boolean isInOctreeLeaf(Octant leaf) {\n NodeData nodeFrom = obj.getSource();\n NodeData nodeTo = obj.getTarget();\n if (octants[0] == leaf) {\n if (octants[0] != ((ModelImpl) nodeFrom.getModel()).getOctants()[0]) {\n res = false;\n }\n } else {\n if (octants[1] != ((M... |
"private com.sun.syndication.feed.rss.Item itemFromDSpaceItem(Context context, Item dspaceItem) throws SQLException {\n com.sun.syndication.feed.rss.Item rssItem = new com.sun.syndication.feed.rss.Item();\n String titleField = ConfigurationManager.getProperty(\"String_Node_Str\");\n if (titleField == null) {\n... |
"public void computeScroll() {\n if (mScroller.computeScrollOffset()) {\n int oldX = mScrollX;\n int oldY = mScrollY;\n int x = mScroller.getCurrX();\n int y = mScroller.getCurrY();\n if (oldX != x || oldY != y) {\n overscrollBy(x - oldX, y - oldY, oldX, oldY, getScrollR... |
"public static Filter buildFilter(String field, String lethal, String not, String min, String minType, String max, String maxType, String exact, String exactType, String wildChar) throws Exception {\n Filter f = null;\n if (field != null) {\n field = field.trim();\n }\n if (lethal != null) {\n ... |
"static PropertyIndex createPropertyIndex(String key) {\n int id = IdGenerator.getGenerator().nextId(PropertyIndex.class);\n PropertyIndex index = new PropertyIndex(key, id);\n EventManager em = EventManager.getManager();\n EventData eventData = new EventData(new PropIndexOpData(index));\n if (!em.genera... |
"public void printST(int indentLevel) {\n String operator = \"String_Node_Str\";\n TreeNode[] heirs = this.heirs();\n if (image != null && image.toString().equals(\"String_Node_Str\")) {\n if (((SyntaxTreeNode) (heirs()[0])).image.toString().equals(\"String_Node_Str\")) {\n operator = \"Strin... |
"public void init() throws JSchException, SftpException, IOException, InterruptedException {\n remoteCache = new RemoteFileCache();\n remoteCache.setAgentHome(agentHome);\n remoteCache.setSession(getSession());\n remoteCache.init();\n initRemoteClassPath();\n ExecCommand halloWorldCmd = new ExecComman... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.