content stringlengths 40 137k |
|---|
"public void run() throws IOException {\n Alphabet<String> lexAlphabet = new Alphabet<String>();\n Alphabet<String> ntAlphabet = new Alphabet<String>();\n log.info(\"String_Node_Str\");\n CnfGrammarBuilder builder = new CnfGrammarBuilder(lexAlphabet, ntAlphabet);\n builder.loadFromFile(grammar);\n Cnf... |
"protected String decorateText(String input, Object element) {\n if (input.endsWith(PluginConstant.PRV_SUFFIX)) {\n IFile fileElement = (IFile) element;\n TypedReturnCode<TdDataProvider> rc = PrvResourceFileHelper.getInstance().getTdProvider(fileElement);\n String decorateText = PluginConstant.E... |
"public BigDecimal getNotSoldTicketsPercent() {\n return MonetaryUtil.HUNDRED.subtract(soldTicketsPercent);\n}\n"
|
"private Sound transformSubsound(Sound[] subSound, int channelNum, int frequency, int length) {\n int percent = (int) (frequency * 100.0 / this.frequency);\n Sound result = subSound[channelNum];\n PitchSoundTransformation pitcher = new PitchSoundTransformation(percent);\n if (percent < 98 || percent > 102) ... |
"public void execute(CommandSender sender, String[] args) {\n MessagesConfig messages = Messages.getInstance();\n if (args.length < 1) {\n sender.sendMessage(messages.generalNoTagGiven);\n return;\n } else if (args.length < 2) {\n sender.sendMessage(messages.adminNoNewNameGiven);\n ... |
"double CalcRager(double amount, double size, double sg, double time, double AA) {\n double ibu, utilization, ga;\n double x = (time - 31.32) / 18.27;\n double tanhx = (Math.exp(x) - Math.exp(-x)) / (Math.exp(x) + Math.exp(-x));\n utilization = 18.11 + (13.86 * tanhx / 18.27);\n ga = sg < 1.050 ? 0.0 : (... |
"protected Control createDialogArea(Composite parent) {\n parent.getShell().setText(this.title);\n Composite composite = (Composite) super.createDialogArea(parent);\n GridLayout layout = (GridLayout) composite.getLayout();\n layout.makeColumnsEqualWidth = false;\n layout.numColumns = 2;\n Label datamo... |
"public int handleAppTransitionReadyLocked(WindowList windows) {\n int changes = 0;\n int i;\n int NN = mOpeningApps.size();\n boolean goodToGo = true;\n if (DEBUG_APP_TRANSITIONS)\n Slog.v(TAG, \"String_Node_Str\" + NN + \"String_Node_Str\" + mDisplayFrozen + \"String_Node_Str\" + mAppTransition.... |
"public static List<SecStrucState> fetch(String pdb, Structure structure, boolean assign) throws IOException, StructureException {\n URL url = new URL(\"String_Node_Str\" + pdb.toLowerCase().substring(1, 3) + \"String_Node_Str\" + pdb.toLowerCase() + \"String_Node_Str\" + pdb.toLowerCase() + \"String_Node_Str\");\n ... |
"private void calculateKind() {\n ObjectId remote = remoteCommit != null ? remoteCommit.getId() : zeroId();\n if (remote.equals(zeroId()))\n kind = kind | ADDITION;\n else if (remoteCommit.equals(zeroId()))\n kind = kind | DELETION;\n else\n kind = kind | CHANGE;\n}\n"
|
"public PacketBufferBC writeBoolean(boolean flag) {\n writePartialBitsBegin();\n int toWrite = (flag ? 1 : 0) << writePartialOffset;\n writePartialCache |= toWrite;\n writePartialOffset++;\n setByte(writePartialIndex, writePartialCache);\n return this;\n}\n"
|
"public PhysicalNetwork updatePhysicalNetwork(Long id, String networkSpeed, List<String> tags, String newVnetRangeString, String state) {\n PhysicalNetworkVO network = _physicalNetworkDao.findById(id);\n if (network == null) {\n throw new InvalidParameterValueException(\"String_Node_Str\" + id + \"String_N... |
"public void onDraw(Canvas canvas) {\n updateItemListeners();\n canvas.setPart(\"String_Node_Str\");\n boolean enabled = isEnabled();\n Border margin = canvas.getCurrentStyle().getMargin();\n int yOffset = 0;\n for (int i = 0; i < list.get().size(); ++i) {\n T item = list.get().get(i);\n ... |
"protected boolean executeAnalysis(final IProgressMonitor monitor) {\n IProgressMonitor mon = (monitor == null ? new NullProgressMonitor() : monitor);\n final ITmfStateProvider provider = createStateProvider();\n String id = getId();\n try {\n StateSystemBackendType backend = getBackendType();\n ... |
"private String tables() {\n DbContents contents = session.getContents();\n boolean isH2 = false;\n try {\n String url = (String) session.get(\"String_Node_Str\");\n Connection conn = session.getConnection();\n DatabaseMetaData meta = session.getMetaData();\n isH2 = contents.isH2();... |
"private void launch() {\n Location location = player.getLocation();\n for (Entity entity : TARGETED_ENTITIES.keySet()) {\n Location target = entity.getLocation().clone();\n Vector vector = new Vector(0, 0, 0);\n if (location.getWorld().equals(target.getWorld())) {\n vector = Gener... |
"void startSpecificActivityLocked(ActivityRecord r, boolean andResume, boolean checkConfig) {\n ProcessRecord app = mService.getProcessRecordLocked(r.processName, r.info.applicationInfo.uid, true);\n r.task.stack.setLaunchTime(r);\n if (app != null && app.thread != null) {\n try {\n if ((r.in... |
"protected void parse_reslist(List<Map<String, String>> medien, Document doc, int offset) throws ClientProtocolException, IOException {\n Elements copytrs = doc.select(\"String_Node_Str\").first().select(\"String_Node_Str\");\n doc.setBaseUri(opac_url);\n int trs = copytrs.size();\n if (trs < 2)\n re... |
"public void execute() {\n elem.setPropertyValue(updataComponentParamName, new Boolean(true));\n boolean allowAutoSwitch = true;\n IElementParameter elemParam = elem.getElementParameter(EParameterName.REPOSITORY_ALLOW_AUTO_SWITCH.getName());\n if (elemParam != null) {\n elemParam.setValue(Boolean.FAL... |
"private Map<String, Object> getReconQueryResults(List<Map<String, Object>> list, String reconId, String param, String paramValue, boolean formatted) {\n List<Map<String, Object>> rawEntryList = new ArrayList<Map<String, Object>>();\n for (Map<String, Object> entry : list) {\n if ((reconId == null || (entr... |
"public boolean hasNext() {\n return (this.curr != null) && (this.curr.other != null);\n}\n"
|
"public ExecutionResult execute(Item item) {\n ProcessType processType = getProcessType(item);\n if (processType == null) {\n return ExecutionResult.NOTHING_TO_DO;\n }\n String[] componentsName = new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"Stri... |
"public void testFitToPageTrue() throws EngineException {\n List pages = getPages(true, true);\n float[] scales = new float[] { 0.75f, 0.75f, 0.75f, 0.24f };\n assertTrue(pages.size() == scales.length);\n for (int i = 0; i < pages.size(); i++) {\n PageArea page = (PageArea) pages.get(i);\n flo... |
"protected Environment<OplObject> makeEnv(String str, Program<OplExp> init) {\n last_env = OplDriver.makeEnv(str, init, toUpdate, last_str, last_prog, last_env);\n last_prog = init;\n last_str = str;\n return last_env;\n}\n"
|
"public IRepositoryNode getProcessNode() {\n ERepositoryObjectType repositoryNodeType = ERepositoryObjectType.valueOf(ERepositoryObjectType.class, CamelRepositoryNodeType.ROUTES);\n IRepositoryNode repositoryNode = ProjectRepositoryNode.getInstance().getRootRepositoryNode(repositoryNodeType);\n return reposito... |
"public boolean isDirectory() {\n if (!exists())\n return false;\n if (getType() == Type.EXTERNAL)\n return Files.isDirectory(Paths.get(path));\n else {\n boolean isDirectory = false;\n try {\n File file = new File(FilePath.class.getProtectionDomain().getCodeSource().getL... |
"private Object manufactureAttributeValue(Object pojo, ManufacturingContext manufacturingCtx, Class<?> attributeType, Type genericAttributeType, List<Annotation> annotations, String attributeName, Map<String, Type> typeArgsMap, Type... genericTypeArgs) throws InstantiationException, IllegalAccessException, InvocationTa... |
"private void doRollback() {\n prepareRollback();\n if (!com.isForce() && !canRollback()) {\n deleteRecursively(TEMP_DIRECTORY);\n return;\n }\n server.continueRestart();\n}\n"
|
"public String toString() {\n StringBuffer buf = new StringBuffer(\"String_Node_Str\");\n buf.append(\"String_Node_Str\").append(getSource().getBytesSent()).append(\"String_Node_Str\");\n return buf.toString();\n}\n"
|
"public int pairwiseAnd_EWAH(BenchmarkState benchmarkState) {\n int total = 0;\n for (int k = 0; k + 1 < benchmarkState.ewah.size(); ++k) total += benchmarkState.ewah.get(k).and(benchmarkState.ewah.get(k + 1)).cardinality();\n if (total != benchmarkState.totaland)\n throw new RuntimeException(\"String_N... |
"private String getTrueDBType(String className) {\n return ExtractMetaDataUtils.getInstance().getDbTypeByClassName(className);\n}\n"
|
"public void drop(DropTargetEvent event) {\n if (fileTransfer.isSupportedType(event.currentDataType)) {\n String[] files = (String[]) event.data;\n for (int i = 0; i < files.length; i++) {\n ID target = (selectedUser == null) ? null : selectedUser.getUserID();\n File file = new Fi... |
"private SDOTypeHelperDelegate getSDOTypeHelperDelegate() {\n Object key = getDelegateMapKey();\n SDOTypeHelperDelegate sdoTypeHelperDelegate = (SDOTypeHelperDelegate) sdoTypeHelperDelegates.get(key);\n if (null == sdoTypeHelperDelegate) {\n sdoTypeHelperDelegate = new SDOTypeHelperDelegate(getHelperCon... |
"public OutputStream getOutStream(int streamType, int streamPos, int streamScope) throws DataException {\n StreamID streamID = getStreamID(streamType, streamPos, streamScope);\n if (!useTempStream(streamType)) {\n RAOutputStream outputStream = context.getOutputStream(streamID.getStartStream(), streamID.get... |
"public static FemModel3d read(FemModel3d model, Reader nodeReader, Reader elemReader, double density, Vector3d scale, int options) throws IOException {\n boolean tetrahedralize = (options & TETRAHEDRALIZE_HEXES) != 0;\n boolean useAnsysNum = (options & ONE_BASED_NUMBERING) != 0;\n if (model == null) {\n ... |
"private void filteValues() {\n valueList.removeAll();\n valueList.deselectAll();\n for (Iterator itor = resultList.iterator(); itor.hasNext(); ) {\n String value = (String) itor.next();\n try {\n if (selectedList.indexOf(value) == -1 && (value.startsWith(valueEditor.getText().trim()) ... |
"public String getRelativePath() {\n return getRoot() + \"String_Node_Str\" + getAssetPath();\n}\n"
|
"public void actionConceptSelectionChanged(AjaxConceptSelectionEvent event) {\n selectedPropertyHandle.setObject(null);\n selectedConceptHandle.setObject(event.getSelection());\n Component replacementPanel;\n if (selectedConceptHandle.getObject() == null) {\n replacementPanel = new EmptyPanel(DETAILS... |
"public void testHTableExistsMethodSingleRegionMultipleGets() throws Exception {\n Table table = TEST_UTIL.createTable(TableName.valueOf(name.getMethodName()), new byte[][] { FAMILY });\n Put put = new Put(ROW);\n put.addColumn(FAMILY, QUALIFIER, VALUE);\n table.put(put);\n List<Get> gets = new ArrayList... |
"void start(AudioMixerPushBufferStream outputStream) throws IOException {\n synchronized (inputDataSources) {\n if (this.outputStream != outputStream)\n return;\n if (started == 0) {\n for (InputDataSourceDesc inputDataSourceDesc : inputDataSources) inputDataSourceDesc.start();\n ... |
"public Resource getResource(String location) {\n if (location.startsWith(S3_PROTOCOL_PREFIX)) {\n Matcher matcher = S3_LOCATION_PATTERN.matcher(location);\n if (matcher.matches()) {\n return new SimpleStorageResource(getBucketNameFromUri(matcher), getObjectNameFromUri(matcher), this.getAmaz... |
"public JsonElement get(String dataPath, int childIndex) {\n return getElementFromData(dataPath, parserContext.getDataProvider(), childIndex);\n}\n"
|
"public void endVisit(JsWhile x, JsContext<JsStatement> ctx) {\n JsExpression expr = x.getCondition();\n if (expr instanceof CanBooleanEval) {\n CanBooleanEval cond = (CanBooleanEval) expr;\n if (cond.isBooleanFalse()) {\n JsBlock block = new JsBlock();\n block.getStatements().... |
"public void readHeader() {\n String str = null;\n while (true) {\n str = _br.readLine();\n System.out.println(str);\n if (str.indexOf(\"String_Node_Str\") != -1) {\n String sub = str.substring(15);\n sub.trim();\n System.out.println(\"String_Node_Str\" + str ... |
"public void actionPerformed(ActionEvent e) {\n if (e.getSource() == openHome) {\n try {\n logger.info(\"String_Node_Str\");\n JDUtilities.runCommand(\"String_Node_Str\", new String[] { new File(downloadLinks.elementAt(0).getFileOutput()).getParent() }, null, 0);\n } catch (Except... |
"private double enrichmentScore(Map<Integer, Float> correlation, Set<Integer> geneS) {\n final int N = correlation.size();\n final int N_h = geneS.size();\n if (N_h == 0)\n return Float.NaN;\n float N_R = 0;\n int intersection = 0;\n for (Integer g : geneS) if (correlation.containsKey(g)) {\n ... |
"private static String getSecondaryDatastoreUUID(String storeUrl) {\n String uuid = null;\n try {\n uuid = UUID.nameUUIDFromBytes(storeUrl.getBytes(\"String_Node_Str\")).toString();\n } catch (UnsupportedEncodingException e) {\n s_logger.warn(\"String_Node_Str\" + storeUrl + \"String_Node_Str\");... |
"public static void main(String[] args) throws IOException, GeneralSecurityException {\n Options options = PipelineOptionsFactory.fromArgs(args).withValidation().as(Options.class);\n GenomicsDatasetOptions.Methods.validateOptions(options);\n Preconditions.checkState(options.getHasNonVariantSegments(), \"String... |
"public <T> CLBuffer<?> createInputBufferFor(CLContext context, PList<T> list) {\n double[] ar = ((DoubleList) list).getArray();\n DoubleBuffer ibuffer = DoubleBuffer.wrap(ar, 0, list.size());\n return context.createDoubleBuffer(CLMem.Usage.Input, ibuffer, true);\n}\n"
|
"public void returnChannel(Channel channel) {\n if (!oneNetClientContextConfig.isLocalPool()) {\n channel.close();\n } else {\n log.debug(\"String_Node_Str\" + localPool.getNumActive() + \"String_Node_Str\" + localPool.getNumIdle());\n try {\n localPool.returnObject(channel);\n ... |
"protected TestSuite getLOBOCITestSuite() {\n TestSuite suite = new TestSuite();\n suite.setName(\"String_Node_Str\");\n Object obj = getSession().getPlatform();\n suite.addTests(TestVariation.get(obj, str, new LOBTestWrapper(new LOBInsertTest(ImageSimulator.generateImage(240000, 120000)), false)));\n re... |
"protected List<ScreenRegion> getUnordredMatches(ScreenRegion screenRegion) {\n List<TextMatch> matches = findMatches(screenRegion, text);\n return covertToScreenRegions(screenRegion, matches);\n}\n"
|
"public void appendPropertyComparisonAccessStatement(boolean isModelContainerAdapter, CodeBlock.Builder codeBuilder) {\n codeBuilder.add(\"String_Node_Str\", tableDefinition.getPropertyClassName(), columnName);\n if (columnAccess instanceof TypeConverterAccess) {\n TypeConverterAccess converterAccess = ((T... |
"private void writeDQVReport(Issue issue, RepositoryConnection repCon, ValueFactory f, String sdate) throws IOException, OpenRDFException {\n String ndqv = \"String_Node_Str\";\n String nex = \"String_Node_Str\";\n URI ptype = f.createURI(\"String_Node_Str\");\n URI pcomputedOn = f.createURI(ndqv + \"String... |
"private JTable createTable(final List<Track> tracks) {\n TrackTableModel model = new TrackTableModel(tracks);\n final JTable table = new JShadedTable(model);\n String[] labels = model.getColumnLabels();\n for (int i = 0; i < model.getColumnCount(); i++) {\n table.getColumnModel().getColumn(i).setIde... |
"private void changePrivacyValue(int newValue) {\n if (mPrivacyPreference != null && Integer.valueOf(mPrivacyPreference.getValue()) != newValue) {\n mPrivacyPreference.setValue(String.valueOf(newValue));\n mPrivacyPreference.setSummary(privacyStringForValue(newValue));\n }\n}\n"
|
"public void onViewCreated(View view, Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n ConnectionInfo connectionInfo = ((MainActivity) getActivity()).getConnectionInfo();\n mayContinue = true;\n if (!connectionInfo.isHostNameMatching()) {\n mayContinue = false;\n ... |
"private RAStreamBuffer getBuffer(long offset) throws IOException {\n Long offsetKey = new Long(offset);\n RAStreamBuffer buffer = (RAStreamBuffer) bufferMap.get(offsetKey);\n if (buffer != null)\n return buffer;\n if (totalBuffer < IOUtil.MAX_NUMBER_OF_STREAM_BUFFER) {\n buffer = new RAStream... |
"public void onEntityDamage(EntityDamageEvent event) {\n if (event.isCancelled())\n return;\n if (event.getEntity() instanceof Player) {\n Player player = (Player) event.getEntity();\n if (!plugin.hasPermission(player, plugin.PERM_DAMAGE_BOOTS))\n return;\n Region region = p... |
"public DataResultSet openExec(Object params) throws BasicException {\n closeExec();\n try {\n m_Stmt = m_s.getConnection().prepareStatement(m_sentence);\n if (m_SerWrite != null) {\n m_SerWrite.writeValues(new PreparedSentencePars(m_Stmt), params);\n }\n if (m_Stmt.execute(... |
"public void reset() {\n super.reset();\n mRowMinHeight = 0;\n final boolean wasExpanded = isExpanded();\n mRowMaxHeight = 0;\n mExpandable = false;\n mHasUserChangedExpansion = false;\n mUserLocked = false;\n mShowingPublic = false;\n mSensitive = false;\n mShowingPublicInitialized = fals... |
"public SiteModel getSelectedSite() {\n if (getActivity() instanceof WPMainActivity) {\n WPMainActivity mainActivity = (WPMainActivity) getActivity();\n return mainActivity.getSelectedSite();\n }\n return null;\n}\n"
|
"public void setDisplayListDirty() {\n if (!ensureValidRenderer())\n return;\n super.setDisplayListDirty(isDisplayListDiry);\n}\n"
|
"public JSONObject getPlainAnswer() {\n return obj;\n}\n"
|
"public void generateItemFiles(boolean withDependencies, IProgressMonitor monitor) throws Exception {\n if (!isOptionChoosed(ExportChoice.needJobItem)) {\n return;\n }\n IFolder baseFolder = talendProcessJavaProject.getItemsFolder();\n baseFolder = baseFolder.getFolder(JavaResourcesHelper.getJobFolde... |
"public String getViewDefinition(String schemaName, String viewName) throws JDBCException {\n if (schemaName != null) {\n schemaName = convertRequestedSchemaToSchema(schemaName);\n }\n String definition = (String) this.getJdbcTemplate().queryForObject(getViewDefinitionSql(schemaName, viewName), String.c... |
"void addChild(ObjectId repoId, ObjectId cacheId, IPath path) throws IOException {\n if (path.getFileExtension() == null) {\n GitModelCacheTree cacheEntry = (GitModelCacheTree) cacheTreeMap.get(path);\n if (cacheEntry == null) {\n cacheEntry = new GitModelCacheTree(this, baseCommit, repoId, ... |
"public static CharSequence boldNameList(Iterable<? extends CharSequence> names, Predicate<String> beBold) {\n final SpannableStringBuilder result = new SpannableStringBuilder();\n boolean first = true;\n for (CharSequence name : names) {\n if (first) {\n first = false;\n } else {\n ... |
"public void removeCheckpoints(final List<ExecutionVertexID> listOfVertexIDs) throws IOException {\n final Thread checkpointRemovalThread = new Thread(\"String_Node_Str\") {\n public void run() {\n final Iterator<ExecutionVertexID> it = listOfVertexIDs.iterator();\n while (it.hasNext()) ... |
"Class getReturnType() {\n return this.object.getClass();\n}\n"
|
"public static boolean canEncrypt(final IElement node, final String parameterName) {\n String value = getValue(node, parameterName);\n if (value != null && value.startsWith(\"String_Node_Str\") && value.endsWith(\"String_Node_Str\") && TalendQuoteUtils.filterQuote(value).length() == 0) {\n return true;\n ... |
"public boolean checkTrigger(GameEvent event, Game game) {\n if (event.getType() == GameEvent.EventType.SPELL_CAST) {\n Spell spell = game.getStack().getSpell(event.getTargetId());\n if (spell != null && spell.getControllerId().equals(controllerId)) {\n int damageAmount = 0;\n for... |
"public void finish() {\n drawControls.removeInfrequentDrawListener(this);\n}\n"
|
"protected Exception doInBackground(Void... params) {\n Wallet wallet = application.getWallet();\n if (wallet == null)\n return new NoSuchPocketException(\"String_Node_Str\");\n Exception error = null;\n try {\n if (wallet.isEncrypted()) {\n KeyCrypter crypter = checkNotNull(wallet.... |
"private Map getConfigVars() {\n HashMap configVars = new HashMap();\n String reportDesignName = this.getFileUri();\n String configFileName = reportDesignName.replaceFirst(SUFFIX_DESIGN_FILE, SUFFIX_DESIGN_CONFIG);\n try {\n SessionHandle sessionHandle = DesignEngine.newSession(ULocale.getDefault());... |
"public void tearDown() throws Exception {\n bw.close();\n aw.close();\n Assert.assertEquals(0, factoryContainer.getFactory().getBusyWriterCount());\n Assert.assertEquals(0, factoryContainer.getFactory().getBusyReaderCount());\n}\n"
|
"public final Multiplicative_expressionContext multiplicative_expression() throws RecognitionException {\n Multiplicative_expressionContext _localctx = new Multiplicative_expressionContext(_ctx, getState());\n enterRule(_localctx, 72, RULE_multiplicative_expression);\n int _la;\n try {\n enterOuterAl... |
"public boolean applies(Ability abilityToModify, Ability source, Game game) {\n if (abilityToModify instanceof SpellAbility || abilityToModify instanceof FlashbackAbility || abilityToModify instanceof RetraceAbility) {\n Ability spell = abilityToModify;\n if (spell.getControllerId().equals(source.getCo... |
"public void reset() {\n rsetCursor = -1;\n needPageBreak = false;\n super.reset();\n}\n"
|
"public DataInputBuffer getValue() throws IOException {\n throw new RuntimeException(\"String_Node_Str\");\n}\n"
|
"synchronized void load() {\n if (classpath == null)\n return;\n if (classpath.getEntries() == null)\n urls = new URL[0];\n else {\n urls = new URL[classpath.getEntries().size()];\n for (int i = 0; i < urls.length; i++) {\n try {\n urls[i] = new URL(classpa... |
"public void testForwardDifferenceHessianApproximation() {\n AbstractFunction function = new RosenbrockFunction();\n DerivativesApproximation derivativesApproximation = new DerivativesApproximation(function, DerivativesApproximationMethod.FORWARD_DIFFERENCE);\n RealVector point = new ArrayRealVector(new double... |
"public void handleMessage(Message msg) {\n switch(msg.what) {\n case HANDLE_UPDATE:\n {\n updateAppWidgetView(msg.arg1, (RemoteViews) msg.obj, msg.arg2);\n break;\n }\n case HANDLE_PROVIDER_CHANGED:\n {\n onProviderChanged(m... |
"public void apply(Hyperedge e) {\n int i = e.getHeadNode().getId();\n for (Hypernode j : e.getTailNodes()) {\n double prod = s.times(alphaAdj[j.getId()], w.getScore(e, s));\n for (Hypernode k : e.getTailNodes()) {\n if (k == j) {\n continue;\n }\n pro... |
"public boolean completeMigration(UserVmVO vm, HostVO host) throws AgentUnavailableException, OperationTimedoutException {\n CheckVirtualMachineCommand cvm = new CheckVirtualMachineCommand(vm.getInstanceName());\n CheckVirtualMachineAnswer answer = (CheckVirtualMachineAnswer) _agentMgr.send(host.getId(), cvm);\n ... |
"private void processAndConditions(QueryModel parent, ExprNode node) throws ParserException {\n exprNodeStack.clear();\n while (!exprNodeStack.isEmpty() || node != null) {\n if (node != null) {\n switch(node.token) {\n case \"String_Node_Str\":\n if (node.rhs !=... |
"static String getProcessQualifiedName(HiveMetaStoreBridge dgiBridge, HiveEventContext eventContext, final SortedSet<ReadEntity> sortedHiveInputs, final SortedSet<WriteEntity> sortedHiveOutputs, SortedMap<ReadEntity, Referenceable> hiveInputsMap, SortedMap<WriteEntity, Referenceable> hiveOutputsMap) throws HiveExceptio... |
"public void execute() throws MojoExecutionException, MojoFailureException {\n TaglibDocMojo.this.execute();\n}\n"
|
"public static ArrayList<Integer> selectTopLDAFeatures(int numSelFeatures, ParallelTopicModel lda, Alphabet alphabet) {\n ArrayList<Integer> features = new ArrayList<Integer>();\n Alphabet seqAlphabet = lda.getAlphabet();\n int numTopics = lda.getNumTopics();\n Object[][] sorted = lda.getTopWords(seqAlphabe... |
"private static void countReadsInFeatures(final DataFile samFile, final DataFile gffFile, final DataFile outFile, final StrandUsage stranded, final OverlapMode overlapMode, final boolean removeAmbiguousCases, final String featureType, final String attributeId, final boolean quiet, final int minAverageQual, final DataFi... |
"public Uri encryptFileWithSessionKey(ContentResolver contentResolver, Uri fileUri) throws CryptoHelperException {\n Log.i(TAG, \"String_Node_Str\");\n status = false;\n if (password == null) {\n String msg = \"String_Node_Str\";\n throw new CryptoHelperException(msg);\n }\n String outputPa... |
"public void testAggregatingExcludingBlankString() {\n group.addMember(entity);\n group.addMember(entity2);\n group.addEnricher(Enrichers.builder().aggregating(STR1).publishing(SET1).fromMembers().excludingBlank().computing((Function) new Function<Collection<?>, Set<Object>>() {\n\n public Set<Object> a... |
"public void onReceive(Context context, Intent intent) {\n context = mApp;\n final String packageName = intent.getData().getSchemeSpecificPart();\n ArrayList<ApplicationInfo> added = null;\n ArrayList<ApplicationInfo> removed = null;\n ArrayList<ApplicationInfo> modified = null;\n boolean update = fal... |
"private static void hookNavBar(ViewGroup rootView, ViewGroup navbarView) {\n rootNavbarView = rootView;\n Context context = rootView.getContext();\n ViewPager vpXpHook = new ViewPager(context);\n exNavbar = new LinearLayout(context);\n musicControllerPanel = new MusicControllerPanel(context);\n onHom... |
"public void doRun() {\n for (TreeParent serverRoot : view.getServers()) {\n try {\n String server = (String) serverRoot.getWsKey();\n XtentisServerObjectsRetriever retriever = new XtentisServerObjectsRetriever(server, serverRoot.getUsername(), serverRoot.getPassword(), serverRoot.getUse... |
"void onCommit(MessageTuple tuple, CommitProcessor commitProcessor) {\n Message msg = tuple.getMessage();\n if (!pendingPeers.isEmpty()) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"String_Node_Str\", TextFormat.shortDebugString(msg));\n }\n Zxid zxidCommit = this.lastCommittedZxi... |
"private void visitPrintCall(List<Operand> args, boolean newline) {\n Instruction lastInst = currentBasicBlock.back();\n StringLiteral formatStr = newline ? StringLiteral.stringlnFormat : StringLiteral.stringFormat;\n Operand outputReg;\n if (lastInst instanceof FunctionCallInst) {\n FunctionCallInst... |
"public void tick() {\n ThreadsHandler.worldExecutor().execute(() -> {\n redstoneTick = !redstoneTick;\n long currentTime = time.get();\n rainTime.getAndDecrement();\n thunderTime.getAndDecrement();\n if (rainTime.get() <= 0) {\n raining = !raining;\n if (rain... |
"public static void showMenu(final ContextMenuCreator menuCreator, final int retriesLeft) {\n if (retriesLeft == 0)\n return;\n final Display display = menuCreator.getParent().getDisplay();\n final Shell activeShell = menuCreator.getParent().getShell();\n popupShell = new Shell(activeShell, SWT.NO_TR... |
"public boolean isComplex() {\n return valueType == ValueType.COMPLEX || valueType == ValueType.COLLECTION_COMPLEX;\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.