content stringlengths 40 137k |
|---|
"private boolean isSqliteFileFieldInvalidate() {\n String fileFullPath = null;\n String urlText = null;\n if (isGeneralJDBCSqlite()) {\n urlText = generalJdbcUrlText.getText();\n } else if (isSqlite()) {\n urlText = DBConnectionContextUtils.getUrlConnectionString(connectionItem, false);\n }... |
"public boolean exportTree(String fileName, DirectedGraph<ClusterNode, DefaultEdge> graph, ClusterNode root) throws JAXBException, IOException {\n Set<DefaultEdge> edgeSet = (Set<DefaultEdge>) graph.edgeSet();\n for (DefaultEdge edge : edgeSet) {\n edges.add(edge.toString());\n }\n nodeSet = tree.gra... |
"public static boolean canBeWrapped(Object object) {\n if (object instanceof WrappedStack) {\n return true;\n } else if (object instanceof Item || object instanceof Block) {\n return true;\n } else if (object instanceof ItemStack && ((ItemStack) object).getItem() != null && !((ItemStack) object).... |
"public void initialize(AbstractSession session) {\n super.initialize(session);\n if (!this.shouldUseClassNameAsIndicator()) {\n Iterator<Map.Entry> entries = new HashMap(getClassIndicatorMapping()).entrySet().iterator();\n while (entries.hasNext()) {\n Map.Entry entry = entries.next();\n... |
"protected static Location parseLocation(String locString, String moduleName) {\n try {\n String[] coordinates = locString.split(\"String_Node_Str\");\n Assert.isTrue(coordinates.length >= 4, \"String_Node_Str\" + locString);\n return new Location(UniqueString.uniqueStringOf(moduleName), Integer... |
"private void capturePreview() {\n try {\n final CameraFile cf = cameraGphoto.capturePreview();\n if (cf != null) {\n String imagePath = tempStorage + \"String_Node_Str\" + +camera.getId() + \"String_Node_Str\";\n cf.save(new File(imagePath).getAbsolutePath());\n imageP... |
"public void onPageFinished(WebView view, String url) {\n resetTitleAndIcon(view);\n if (!mDidStopLoad) {\n Message updateScreenshot = Message.obtain(mHandler, UPDATE_BOOKMARK_THUMBNAIL, view);\n mHandler.sendMessageDelayed(updateScreenshot, 500);\n }\n updateLockIconToLatest();\n if (false... |
"public String getXMLStringWithIdentifier() throws SchemaNotFoundException {\n String ret = getXMLString();\n int index = ret.indexOf(\"String_Node_Str\");\n if (index < 0)\n return ret;\n index = ret.indexOf(\"String_Node_Str\", ++index);\n index = ret.indexOf(\"String_Node_Str\", ++index);\n ... |
"public static final void checkConstantFieldModifiers(final int modifiers) {\n if ((modifiers & ~(PUBLIC_MOD | STATIC_MOD | FINAL_MOD)) != 0) {\n throw new RuntimeException(\"String_Node_Str\" + toString(modifiers));\n }\n}\n"
|
"public boolean performFinish() {\n File file = new File(page.getSourceFile());\n final List<String> information = ImportFactory.importToStucture(file, folder, type, page.getSkip(), page.getRename());\n Display.getDefault().asyncExec(new Runnable() {\n public void run() {\n ImportInfo... |
"private long _createMxArray(String name, Token t) throws IllegalActionException {\n long ma = 0;\n if (t instanceof ArrayToken) {\n Token[] ta = ((ArrayToken) t).arrayValue();\n if (!(ta[0] instanceof StringToken)) {\n ma = ptmatlabCreateCellMatrix(name, 1, ta.length);\n if (m... |
"public long toUserId(String userJid) {\n try {\n Connection connection = dataSource.getConnection();\n statement = connection.prepareStatement(\"String_Node_Str\");\n statement.setString(1, userJid);\n ResultSet resultSet = statement.executeQuery();\n resultSet.next();\n lo... |
"private void resize(int size) {\n Preconditions.checkArgument(size >= 0 && size <= this.maxSize, \"String_Node_Str\");\n if (size > usedSlots) {\n for (int i = usedSlots; i < size; i++) {\n createSlot(i);\n }\n } else if (size < usedSlots) {\n for (int i = size; i < usedSlots; ... |
"private Set<TrackerNode> getDependents(Set<TrackerNode> parentnodes, String prop) {\n final Set<TrackerNode> kidnodes = new LinkedHashSet<TrackerNode>();\n for (TrackerNode node : parentnodes) {\n for (TrackerNode kid : node.getDependents(prop)) {\n if (kid != null) {\n kidnodes.... |
"public void stop(BundleContext context) throws Exception {\n bundleContext = null;\n if (syncService != null) {\n syncService.unregister();\n syncService = null;\n }\n ignore.clear();\n if (cellLeftCursor != null) {\n cellLeftCursor.dispose();\n }\n if (cellRightCursor != null... |
"public DenseVector transMult(Matrix matrix) {\n if (matrix.getRowDimension() != size) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n DenseVector resultVector = new DenseVector(matrix.getColumnDimension());\n double[] resultVectorArray = resultVector.getArray();\n for (int i = ... |
"private IQueryResults executeQuery(DataRequestSession session, IQueryDefinition queryDefn) throws BirtException {\n IPreparedQuery preparedQuery = session.prepare(queryDefn);\n IQueryResults resultSet = (IQueryResults) session.execute(preparedQuery, null, new ScriptContext());\n return resultSet;\n}\n"
|
"private void visitNonModuleAttributeCall(final Call call) {\n if (org.elixir_lang.structure_view.element.CallDefinitionClause.is(call)) {\n visitCallDefinitionClause(call);\n } else {\n PsiReference reference = call.getReference();\n if (reference != null) {\n Collection<PsiElemen... |
"public void gotKey(String key, int elementCount, OperationStatus status) {\n TreeMap<Long, BTreeElement<Long, T>> tree = null;\n if (elementCount > 0) {\n tree = new TreeMap<Long, BTreeElement<Long, T>>((reverse) ? Collections.reverseOrder() : null);\n }\n result.put(key, new BTreeGetResult<Long, T>... |
"public boolean onCreateOptionsMenu(Menu menu) {\n super.onCreateOptionsMenu(menu);\n menu.add(0, MENU_ITEM_INSERT, 0, R.string.menu_insert).setShortcut('1', 'i').setIcon(android.R.drawable.ic_menu_add);\n menu.add(0, MENU_SEARCH, 0, R.string.menu_search).setShortcut('2', 's').setIcon(android.R.drawable.ic_men... |
"protected void outputReportTitle(IReportContent report) {\n String title = null;\n if (report != null) {\n title = report.getTitle();\n }\n if (title == null) {\n if (renderOption != null) {\n HTMLRenderOption htmlOption = new HTMLRenderOption(renderOption);\n title = ht... |
"public static int upsertDB(String dbName, DBObject content, ObjectId etag, boolean patching) {\n DB db = client.getDB(dbName);\n boolean existing = db.getCollectionNames().size() > 0;\n if (patching && !existing) {\n return HttpStatus.SC_NOT_FOUND;\n }\n DBCollection coll = db.getCollection(\"Str... |
"public static Result setupCoveragePackageForImport10(CoveragePackage coveragePackage, boolean testWithDb) {\n String errStr = null;\n CoverageItem item = getNavigateButton2getTextLine3CoverageItem(coveragePackage);\n if (item == null) {\n errStr = \"String_Node_Str\";\n } else {\n item.setCov... |
"public void EmitDrops(Block Block, int Meta) {\n EmitDrop(Block, CarriageItem.Stack(Meta, Tier, decorationId, DecorationMeta));\n}\n"
|
"private static ObjectNode convert(Element element, Project project, boolean nestedValueSpecification) {\n if (element == null) {\n return null;\n }\n ObjectNode objectNode = JacksonUtils.getObjectMapper().createObjectNode();\n for (PreProcessor preProcessor : PreProcessor.values()) {\n if (ne... |
"public boolean onTouch(View v, MotionEvent event) {\n action = event.getAction();\n if (event.getPointerCount() > 1) {\n actionCode = action & MotionEvent.ACTION_MASK;\n action = event.getAction();\n for (int i = 0; i < event.getPointerCount(); i++) {\n if (i == 0) {\n ... |
"public Map<String, Set<String>> getRackHostsMap(List<String> addedNodeNames) {\n if (this.rackTopology == null || !AmUtils.isAmbariServerGreaterOrEquals_2_1_0(ambariServerVersion)) {\n return null;\n }\n Map<String, Set<String>> rackHostsMap = new HashMap<String, Set<String>>();\n List<AmNodeDef> no... |
"private void setFileSubsCharacterSet() {\n if (type.isPicture()) {\n subsCharacterSet = null;\n } else {\n try {\n CharsetMatch match = FileUtil.getFileCharsetMatch(externalFile);\n if (match != null) {\n subsCharacterSet = match.getName().toUpperCase(PMS.getLoc... |
"public static void stage7(final String src, final String srchash, final String res, final String reshash, final String match) throws IOException {\n final File dirsrc = new File(src);\n final File dirres = new File(res);\n final File fsrchash = new File(srchash);\n final File freshash = new File(reshash);\... |
"public static String getFullNodeName(String cluster, String group, String node) {\n AuAssert.check(cluster != null && !cluster.isEmpty());\n AuAssert.check(group == null || !group.isEmpty());\n AuAssert.check(node == null || !node.isEmpty());\n AuAssert.check(!(node != null && group == null));\n StringB... |
"private void processIRAssign(RegValue dest, int addrOffset, ExprNode rhs, int size, boolean needMemOp) {\n if (rhs.getTrueBB() != null) {\n BasicBlock mergeBB = new BasicBlock(currentFunc, null);\n if (needMemOp) {\n rhs.getTrueBB().addInst(new IRStore(rhs.getTrueBB(), new IntImmediate(1), ... |
"public static void main(String[] args) throws IOException, JDOMException {\n Logger.outputEverything();\n CWProject.setHome(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n ChoiceFactory.getDataMap().put(\"String_Node_Str\", new String[] {});\n ChoiceFactory.getDataMap().put(\"String_Node_... |
"public void loadArmourItem(EntityPlayerMP player) {\n if (this.worldObj.isRemote) {\n return;\n }\n ItemStack stackInput = this.getStackInSlot(0);\n ItemStack stackOuput = this.getStackInSlot(1);\n if (stackInput == null) {\n return;\n }\n if (stackOuput != null) {\n return;\n... |
"public void feed(List<CandleEntry> entries) {\n int size = (int) Math.ceil((mTo - mFrom) * phaseX + mFrom);\n for (int i = mFrom; i < size; i++) {\n CandleEntry e = entries.get(i);\n addBody(e.getXIndex() - 0.5f + mBodySpace, e.getClose() * phaseY, e.getXIndex() + 0.5f - mBodySpace, e.getOpen() * p... |
"private void encryptNote() {\n String text = mText.getText().toString();\n String title = ExtractTitle.extractTitle(text);\n Intent i = new Intent(this, EncryptActivity.class);\n i.putExtra(NotePadIntents.EXTRA_ACTION, CryptoIntents.ACTION_ENCRYPT);\n i.putExtra(CryptoIntents.EXTRA_TEXT_ARRAY, EncryptAc... |
"public final void render(GLGraphics g) {\n if (dirtyLayout)\n layout();\n if (!needToRender()) {\n cache.invalidate(context);\n return;\n }\n float x = x_layout + padding.left;\n float y = y_layout + padding.top;\n float w = w_layout - padding.left - padding.right;\n float h =... |
"public void setDouble(Property property, double value) {\n convertValueAndSet(property, value);\n}\n"
|
"public void initGui() {\n List<GuiButton> controlList = new LinkedList<GuiButton>();\n Point p = new Point();\n int i = 0;\n moveToButtonCoords(1, p);\n controlList.add(new GuiButton(ID_EDITRULES, p.getX() + 55, height / 6 + 96, \"String_Node_Str\"));\n controlList.add(new GuiButton(ID_EDITTREE, p.ge... |
"public boolean onTouchEvent(final MotionEvent event) {\n if (event.getActionMasked() == MotionEvent.ACTION_UP) {\n mDownX = event.getX();\n mDownY = event.getY();\n int endRadius = Units.dpToPx(getContext(), 128);\n final ObjectAnimator fadeInAnimator = ObjectAnimator.ofInt(this, \"Strin... |
"public Table ProcessTableBody(Table table, Cell[][] cells, List<Node> rowsbody, int headrowscount, int num_of_columns) {\n int startj = headrowscount;\n for (int j = 0; j < rowsbody.size(); j++) {\n table.stat.AddBodyRow();\n List<Node> tds = getChildrenByTagName(rowsbody.get(j), \"String_Node_Str\... |
"public String showUserInputDialog(String string) {\n logger.info(\"String_Node_Str\");\n return JOptionPane.showInputDialog(frame, string, def);\n}\n"
|
"public AvailableStatus requestFileInformation(DownloadLink downloadLink) throws IOException, PluginException {\n this.setBrowserExclusive();\n br.setFollowRedirects(true);\n br.getPage(downloadLink.getDownloadURL());\n if (Regex.matches(downloadLink.getDownloadURL(), \"String_Node_Str\")) {\n this.i... |
"public void run() {\n while (true) {\n if (stopFlag) {\n return;\n }\n if (inputEndpoint == null) {\n continue;\n }\n int length = usbDeviceConnection.bulkTransfer(inputEndpoint, readBuffer, readBuffer.length, 0);\n if (length > 0) {\n byte[... |
"protected void createPart(Composite parent, String dbLiteral, final DBConnectionParameter connectionParam) {\n if (dbLiteral.trim().equals(\"String_Node_Str\")) {\n GridLayout layout = new GridLayout();\n layout.numColumns = 3;\n parent.setLayout(layout);\n Label labelJar = new Label(par... |
"public static ImageDescriptor createInvalidIcon(ImageDescriptor originalImg) {\n ImageDescriptor warnImg = getImageDescriptor(WARN_OVR);\n return originalImg != null ? createIcon(originalImg, warnImg) : null;\n}\n"
|
"static ArchiveHeader read(RandomAccessFile rf) throws IOException {\n ArchiveHeader header = new ArchiveHeader();\n byte[] b = new byte[HEADER_LENGTH];\n rf.seek(0);\n rf.read(b);\n DataInputStream in = new DataInputStream(new ByteArrayInputStream(b));\n long magicTag = in.readLong();\n if (magicT... |
"public void addView(ListView<T> view) {\n if (views.contains(view)) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n views.add(view);\n view.setDataProvider(dataProvider, false);\n if (lastDataSize >= 0) {\n view.setDataSize(lastDataSize, lastDataSizeExact);\n }\n data... |
"private void sendNotification(String message) {\n NotificationManager manager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n Notification notification = new Notification(R.drawable.dsploit_icon_48, message, java.lang.System.currentTimeMillis());\n Context context = getApplicationCon... |
"public void cancel() throws OdaException, UnsupportedOperationException {\n try {\n if (this.callStat != null)\n this.callStat.cancel();\n } catch (Exception e) {\n }\n try {\n if (this.conn != null) {\n this.conn.close();\n }\n } catch (Exception e) {\n }\n... |
"private void inflateActionMenu(View v) {\n View actionView = v.findViewById(R.id.action_view);\n View mainView = v.findViewById(R.id.main_view);\n int height = mainView.getHeight();\n actionView.setMinimumHeight(height);\n YoYo.with(Techniques.SlideOutRight).duration(DURATION).playOn(mainView);\n act... |
"private static BatchManager.BatchModeType flushAndSetTxToNone(SqlgGraph sqlgGraph) {\n BatchManager.BatchModeType batchModeType = sqlgGraph.tx().getBatchModeType();\n if (sqlgGraph.tx().isInBatchMode()) {\n batchModeType = sqlgGraph.tx().getBatchModeType();\n sqlgGraph.tx().flush();\n sqlgGr... |
"private void pdb_SSBOND_Handler(String line) {\n String chain1 = line.substring(15, 16);\n String seqNum1 = line.substring(17, 21).trim();\n String icode1 = line.substring(21, 22);\n String chain2 = line.substring(29, 30);\n String seqNum2 = line.substring(31, 35).trim();\n String icode2 = line.subst... |
"public void update(Effect nextEffect) {\n if (active) {\n executed = false;\n if (path == null || path.size() <= 0 && !executed_going) {\n for (int i = 0; i < 5; i++) {\n if (executed) {\n break;\n }\n }\n }\n if (nee... |
"public void testWriteNoRecPosNoLenient() {\n try {\n Configuration config = new Configuration();\n config.setString(RecordOutputFormat.FILE_PARAMETER_KEY, this.tempFile.toURI().toString());\n config.setString(RecordOutputFormat.FIELD_DELIMITER_PARAMETER, \"String_Node_Str\");\n config.se... |
"protected void addBugInstancesToFindBugsDescriptor(final Store store, final BugCollectionType bugCollectionType, final FindBugsDescriptor findBugsDescriptor) {\n for (BugInstanceType bugInstanceType : bugCollectionType.getBugInstance()) {\n BugInstanceDescriptor bugInstanceDescriptor = store.create(BugInstan... |
"public void run() {\n Map.Entry<Data, Object> mapEntry = recordStore.getMapEntryForBackup(dataKey);\n if (mapEntry.getValue() != null) {\n Map.Entry<Object, Object> entry = new AbstractMap.SimpleEntry<Object, Object>(mapService.toObject(dataKey), mapService.toObject(mapEntry.getValue()));\n entryPr... |
"public void testGetSubs() throws IOException {\n String rootPath = ResourceUtils.getAbsolutePath(ClassUtils.getClassesRootResource(ResourceUtils.class)) + \"String_Node_Str\";\n String path = \"String_Node_Str\";\n String[] subs = ResourceUtils.getSubs(rootPath, path, true);\n Assert.assertEquals(\"String_... |
"public void renderItem(ItemRenderType type, ItemStack item, Object... data) {\n String texture = ConstantValue.PROJECTOR_MODEL_OFF;\n GL11.glPushMatrix();\n GL11.glBindTexture(GL11.GL_TEXTURE_2D, FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));\n switch(type) {\n case EQUIP... |
"public void setMultivalue(boolean multivalue) {\n this.multivalue = getBooleanAsCharacter(multivalue);\n}\n"
|
"private void closeClient() {\n if (client != null) {\n log.debug(\"String_Node_Str\", label);\n try {\n client.stop();\n client.destroy();\n execService.shutdown();\n } catch (Exception e) {\n log.debug(\"String_Node_Str\", label, e.getMessage());\n ... |
"public static DeregisterComponentResponseType deregisterComponent(final DeregisterComponentType request) throws EucalyptusCloudException {\n ServiceBuilder<? extends ServiceConfiguration> builder = ServiceBuilders.handles(request.getClass());\n final ComponentId componentId = builder.getComponentId();\n final... |
"public void shutdown() {\n try {\n forge.getLockManager().performLocked(LockMode.READ, new Callable<Void>() {\n\n public Void call() throws Exception {\n logger.info(\"String_Node_Str\" + addon.getId() + \"String_Node_Str\");\n long start = System.currentTimeMillis();\n ... |
"public Tracker track(TrackMe trackMe) {\n boolean newSession;\n synchronized (mSessionLock) {\n newSession = tryNewSession();\n if (newSession)\n mSessionStartLatch = new CountDownLatch(1);\n }\n if (newSession) {\n injectInitialParams(trackMe);\n } else {\n try {\... |
"public Repository getRepository(String tableName) {\n if (isClosed) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n return balancingAndRetryingLilyConnection.getRepository(tenantId);\n}\n"
|
"protected void processConfiguration(IProgressMonitor monitor, Shell shell) throws CoreException {\n SimpleImportOverwriteQuery query = new SimpleImportOverwriteQuery();\n WebArtifactUtil.configureContextParam((Map) properties.get(EXT_CONTEXT_PARAM), project, query, monitor);\n WebArtifactUtil.configureListene... |
"private void createAggrListCell(final Composite parent, final int index) {\n Label label = ControlProvider.createLabel(parent, dialogLabels[index]);\n this.maxWidth = computeMaxWidth(label);\n cmbAggregation = ControlProvider.createCombo(parent, SWT.READ_ONLY);\n cmbAggregation.setLayoutData(ControlProvide... |
"public boolean mediate(MessageContext messageContext) {\n try {\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\");\n }\n String clusterId = (String) messageContext.getProperty(Constants.CLUSTER_ID);\n if (StringUtils.isBlank(clusterId)) {\n throw new Ru... |
"protected void agents() {\n Random randomGenerator = new Random(this.randomSeed);\n for (int i = 0; i < 50; i++) {\n addAgent(new TestPoliticalAgent(20, 2, AgentType.AC, randomGenerator.nextDouble(), randomGenerator.nextDouble()));\n addAgent(new TestPoliticalAgent(20, 2, AgentType.TFT, randomGener... |
"public String toString() {\n StringBuilder sbuf = new StringBuilder(\"String_Node_Str\");\n for (HashMap<String, Pair<String, State>> clusterVM : _clusterVms.values()) {\n for (Map.Entry<String, Pair<String, State>> entry : clusterVM.entrySet()) {\n String vmname = entry.getKey();\n ... |
"private void populateWidgets() {\n try {\n configTextArea.setText(contextAdmin.getConfigText());\n } catch (Exception ex) {\n StringWriter sw = new StringWriter(ERR_MSG_INITIAL_BUFFER_SIZE);\n ex.printStackTrace(new PrintWriter(sw));\n configTextArea.setText(sw.toString());\n }\n ... |
"public void addSystemVMTemplatesToSecondary(DataStore store) {\n long storeId = store.getId();\n List<VMTemplateVO> rtngTmplts = _templateDao.listAllSystemVMTemplates();\n for (VMTemplateVO tmplt : rtngTmplts) {\n TemplateDataStoreVO tmpltStore = _vmTemplateStoreDao.findByStoreTemplate(storeId, tmplt.g... |
"public void pageChanged(PageChangedEvent event) {\n WilcoxonRankSumTestWizard wizard = (WilcoxonRankSumTestWizard) getWizard();\n if (event.getSelectedPage() == this) {\n if (info != null) {\n if (!CellSelectionValidators.overlappingSamplesValidator(wizard.getSourceInfo()).apply(info)) {\n ... |
"private void processStep2(final xtreemfs_mkvolRequest rqArgs, final String volumeId, final MRCRequest rq, RPCResponse<ServiceSet> rpcResponse) {\n try {\n ServiceSet response = rpcResponse.get();\n for (Service reg : response) if (rqArgs.getVolume_name().equals(reg.getName())) {\n String uu... |
"public void testImmutability() throws Exception {\n Id.Artifact artifactId = Id.Artifact.from(Constants.DEFAULT_NAMESPACE_ID, \"String_Node_Str\", \"String_Node_Str\");\n ArtifactMeta artifactMeta = new ArtifactMeta(ImmutableList.<PluginClass>of());\n String artifactContents = \"String_Node_Str\";\n try {\... |
"public static BigDecimal one() {\n return instance.one;\n}\n"
|
"protected static String makeInsertStatementWideIndex(String tableName, String targetTableName, Long shardId, List<String> indexValues, long timestamp) {\n String indexValuesString = Joiner.on(\"String_Node_Str\").join(indexValues);\n return String.format(TEMPLATE_INSERT_WIDE_INDEX, tableName, targetTableName, in... |
"private static String formatMessage(String message, java.util.Collection<? extends Identified> objects) {\n final StringBuilder sb = new StringBuilder(message);\n if (message.startsWith(\"String_Node_Str\")) {\n if (validationRules == null) {\n validationRules = new LinkedHashMap<String, SBOLVa... |
"public Object run() throws StepExecutionException {\n for (int i = getStartingColIndex(searchType); i < m_table.getColumnCount(); ++i) {\n if (MatchUtil.getInstance().match(getCellText(implRow, i), value, regex)) {\n return new Integer(i);\n }\n }\n return null;\n}\n"
|
"private void waitForOutputChannelsToBeClosed() throws IOException {\n while (true) {\n boolean allClosed = true;\n for (int i = 0; i < getNumberOfOutputGates(); i++) {\n final OutputGate<? extends Record> eog = getOutputGate(i);\n if (!eog.isClosed()) {\n allClosed... |
"public void switchView() {\n if (_isTC) {\n Component[] components = _tcView.getComponents();\n _sequenceview = new SequenceViewGUI(this);\n _sequenceview.setContentPane((Container) components[1]);\n _sequenceview.setJMenuBar((JMenuBar) components[0]);\n _sequenceview.pack();\n ... |
"public static void main(String[] args) throws IOException {\n ArgParser parser = new ArgParser(SrlRunner.class);\n parser.addClass(SrlRunner.class);\n try {\n ArgParser parser = new ArgParser(SrlRunner.class);\n parser.addClass(SrlRunner.class);\n try {\n parser.parseArgs(args)... |
"protected void parseRenderOptions() throws Exception {\n assert (mode.equalsIgnoreCase(\"String_Node_Str\"));\n if (results.hasOption('f')) {\n format = results.getOptionValue('f');\n }\n if (results.hasOption('t')) {\n htmlType = results.getOptionValue('t');\n }\n if (results.hasOption... |
"public void run() {\n if (DEBUG)\n System.out.println(\"String_Node_Str\");\n while (socket != null) {\n int len;\n try {\n len = input.read();\n if (len > 0) {\n input.readFully(buffer, 0, len);\n if (DEBUG) {\n System.o... |
"private void fullBuildTemporaryHTMLFilesAndShowAfter() {\n String htmlInternalPreview = null;\n String htmlExternalBrowser = null;\n try {\n safeAsyncExec(() -> AsciiDoctorEditorUtil.removeScriptErrors(AsciiDoctorEditor.this));\n File editorFileOrNull = getEditorFileOrNull();\n String con... |
"public void handleMessage(Message msg) {\n super.handleMessage(msg);\n new Handler().postDelayed(new Runnable() {\n public void run() {\n setResult(RESULT_OK);\n finish();\n }\n }, 600);\n}\n"
|
"private static void _updateEntitiesAppearance(CompositeEntity container, GTIngredientsAttribute attribute) {\n try {\n container.workspace().getReadAccess();\n if (container instanceof GTEntity) {\n if (GTTools.getCorrespondingPatternObject(container) == attribute.getContainer()) {\n ... |
"private static boolean isNontrivialConditionException(ForStatementTree forStatement) {\n ExpressionTree condition = forStatement.condition();\n ExpressionTree update = forStatement.update();\n if (update != null && condition != null && condition.is(EQUAL_TO, NOT_EQUAL_TO, STRICT_EQUAL_TO, STRICT_NOT_EQUAL_TO)... |
"public String getType() {\n return amendableElement.getNodeName();\n}\n"
|
"private ModelElement update(ModelElement oldObject, ModelElement newObject) {\n newObject.setName(\"String_Node_Str\" + newObject.getName());\n String author = ReponsitoryContextBridge.getAuthor();\n if (!StringUtils.isEmpty(author)) {\n MetadataHelper.setAuthor(newObject, author);\n }\n if (Mode... |
"public void visitConditionalBranch(SSAConditionalBranchInstruction instruction) {\n Assertions.UNREACHABLE(\"String_Node_Str\");\n breakBasicBlock(index);\n}\n"
|
"public void expandLineItemsDiscount() throws Exception {\n final RelativeCartDiscountValue relativeCartDiscountValue = RelativeCartDiscountValue.of(15000);\n withCartHavingCartDiscountedLineItem(client(), relativeCartDiscountValue, (cart) -> {\n final CartQuery query = CartQuery.of().withPredicates(m -> m... |
"public Node writeDescriptor(Node parent, String nodeName, ServletFilterMappingDescriptor descriptor) {\n Node myNode = appendChild(parent, nodeName);\n appendTextChild(myNode, WebTagNames.FILTER_NAME, descriptor.getName());\n for (String servletName : descriptor.getServletNames()) {\n appendTextChild(m... |
"public void assignSystemAddress(final VmInstance vm) throws NotEnoughResourcesException {\n final Address addr = this.allocateSystemAddress(vm.getPartition());\n AsyncRequests.newRequest(addr.assign(vm).getCallback()).then(new Callback.Success<BaseMessage>() {\n public void fire(BaseMessage response) {\n ... |
"protected String buildDrillAction(IAction action, IReportContext context) {\n if (action == null || context == null)\n return null;\n String baseURL = null;\n Object renderContext = getRenderContext(context);\n if (renderContext instanceof HTMLRenderContext) {\n baseURL = ((HTMLRenderContext)... |
"public void processConnect(Channel channel, MqttConnectMessage msg) {\n MqttConnectPayload payload = msg.payload();\n String clientId = payload.clientIdentifier();\n LOG.info(\"String_Node_Str\", clientId, payload.userName());\n if (msg.variableHeader().version() != MqttVersion.MQTT_3_1.protocolLevel() && ... |
"protected void __initParameters(HttpServletRequest request) throws Exception {\n InputOptions options = new InputOptions();\n options.setOption(InputOptions.OPT_REQUEST, request);\n options.setOption(InputOptions.OPT_LOCALE, locale);\n options.setOption(InputOptions.OPT_RTL, new Boolean(rtl));\n this.pa... |
"public void testGetMatchingUnitInclPercentage() {\n for (final ECSSUnit eUnit : ECSSUnit.values()) {\n String sText = eUnit.format(5);\n assertSame(sText, eUnit, CSSNumberHelper.getMatchingUnitInclPercentage(sText));\n sText = eUnit.format(2.12345678);\n assertSame(sText, eUnit, CSSNumbe... |
"private Game makeGame(Auctioneer a, Game cardHolder) {\n Game result = new Game(a.getHighBid().getTrump());\n result.getPlayer(a.getDummyOffsetDirection(North.i())).init(cardHolder.getPlayer(North.i()).getHand());\n result.getPlayer(a.getDummyOffsetDirection(East.i())).init(cardHolder.getPlayer(East.i()).getH... |
"public Calc compileCall(ResolvedFunCall call, ExpCompiler compiler) {\n final ListCalc listCalc = compiler.compileList(call.getArg(0));\n final Calc calc = call.getArgCount() > 1 ? compiler.compileScalar(call.getArg(1), true) : new ValueCalc(call);\n return new AbstractCalc(call) {\n public Object eval... |
"public static final void sendMessageToRemote(String host, int port, Message message) {\n OutgoingTheaterConnection out = getSocket(host, port);\n StageService.sendMessage(new Message(Message.SIMPLE_MESSAGE, out, 3, new Object[] { message }));\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.