content stringlengths 40 137k |
|---|
"private List<UpdateResult> checkNodeSchemaFromRepository(final Node node, boolean onlySimpleShow) {\n if (node == null) {\n return Collections.emptyList();\n }\n List<UpdateResult> schemaResults = new ArrayList<UpdateResult>();\n List<IProcess2> openedProcesses = UpdateManagerUtils.getOpenedProcess(... |
"public static void main(String[] args) throws Exception {\n Class clazz = Class.forName(\"String_Node_Str\");\n Method trivialJ = clazz.getDeclaredMethod(\"String_Node_Str\", new Class[] { clazz });\n Method alloc1J = clazz.getDeclaredMethod(\"String_Node_Str\", (Class[]) null);\n Method alloc2J = clazz.ge... |
"public static String path(String... args) {\n StringBuilder s = new StringBuilder();\n boolean d = false;\n for (String arg : args) {\n if (!d)\n d = !noString(arg);\n else if (!s.toString().endsWith(File.separator))\n s.append(File.separator);\n String a = arg;\n ... |
"private static Pair<List<ValLoc>, Boolean> unifyCVs(GlobalConstants consts, Function fn, boolean reorderingAllowed, Block parent, int parentStmtIndex, CongruenceType congType, List<Congruences> branchStates, List<Block> branchBlocks, List<ArgCV> allBranchCVs, Map<List<Arg>, Var> unifiedLocs) throws OptUnsafeError {\n ... |
"protected AttributeList buildAttributeList(Attributes attrs) throws SAXException {\n int attrsLength = attrs.getLength();\n AttributeList attributes = new AttributeList(attrsLength);\n for (int i = 0; i < attrsLength; i++) {\n String qName = attrs.getQName(i);\n String uri = attrs.getURI(i);\n ... |
"public List<Alert> readActiveAlertsByUserId(String userId) {\n String sql = \"String_Node_Str\";\n Map<String, String> params = ImmutableMap.of(\"String_Node_Str\", userId);\n List<Alert> alerts = this.namedJdbcTemplate.query(sql, params, new AlertRowMapper());\n LOG.debug(\"String_Node_Str\", alerts.size(... |
"public ItemStack load(ItemStack stack, NBTTagCompound compound) {\n ItemStack out = new ItemStack(Items.WRITTEN_BOOK);\n NBTTagCompound outNBT = new NBTTagCompound();\n outNBT.setString(\"String_Node_Str\", compound.getString(\"String_Node_Str\"));\n outNBT.setString(\"String_Node_Str\", compound.getString... |
"public Configuration getConfiguration(GraphContext context) {\n return ConfigurationBuilder.begin().addRule().when(Query.fromType(WindupConfigurationModel.class).piped(new QueryGremlinCriterion() {\n public void query(GraphRewrite event, GremlinPipeline<Vertex, Vertex> pipeline) {\n pipeline.out(W... |
"protected void doTask(final Task task) throws Exception {\n Transaction txn = Transaction.open(Transaction.CLOUD_DB);\n try {\n if (task.getType() != Task.Type.DATA) {\n super.doTask(task);\n return;\n }\n final byte[] data = task.getData();\n Version ver = Reque... |
"public FileVisitResult visitFile(Path file, BasicFileAttributes attributes) throws IOException {\n if (!paths.isEmpty() && !paths.contains(file)) {\n return FileVisitResult.CONTINUE;\n }\n Path relativePath = junkPaths ? file.getFileName() : baseDir.relativize(file);\n String entryName = MorePaths.p... |
"public List<TellerDetails3> call() throws XfsException {\n List<TellerDetails3> result;\n XfsInfoCommand<CimInfoCommand> command = new XfsInfoCommand<CimInfoCommand>(cimService, CimInfoCommand.TELLER_INFO, tellerInfo);\n WFSResult wfsResult = null;\n try {\n wfsResult = command.call();\n resu... |
"public void onClick(View v) {\n try {\n String uri = \"String_Node_Str\" + action.getLat() + \"String_Node_Str\" + action.getLon() + \"String_Node_Str\";\n Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(uri));\n getActivity().startActivity(intent);\n } catch (Except... |
"public void handleColumnMultiEdit(TreeColumn treeColumn, Collection<TreeItem> treeItems) {\n Set<AbstractWorkflowArtifact> awas = new LinkedHashSet<AbstractWorkflowArtifact>();\n for (TreeItem item : treeItems) {\n Artifact art = (Artifact) item.getData();\n try {\n if (art instanceof Ab... |
"public Object clone(Workspace workspace) throws CloneNotSupportedException {\n ERGDirector newObject = (ERGDirector) super.clone(workspace);\n newObject._controller = null;\n newObject._controllerVersion = -1;\n newObject._eventComparator = newObject.new EventComparator();\n newObject._eventQueue = new ... |
"public Set<RecipeExecutionFailure> collectErrors(CloudbreakOrchestratorException exception, Map<HostGroup, List<RecipeModel>> hostgroupToRecipeMap, Set<InstanceGroup> instanceGroups) {\n return exception.getNodesWithErrors().asMap().entrySet().stream().flatMap((Entry<String, Collection<String>> nodeWithErrors) -> {... |
"public InputStream getInputStream() throws IOException {\n InputStream is = null;\n try {\n URL newURL = new URL(url.toExternalForm());\n URLConnection conn = newURL.openConnection();\n conn.setUseCaches(false);\n is = conn.getInputStream();\n } catch (IOException e) {\n if ... |
"public void setDefaultScriptNames(String scriptNames) {\n if (!scriptNames.trim().isEmpty())\n service.setDefaultScripts(asList(scriptNames.split(\"String_Node_Str\")));\n}\n"
|
"synchronized public void disconnect() {\n System.out.println(\"String_Node_Str\");\n if (vc != null) {\n double sec = (System.currentTimeMillis() - vc.statStartTime) / 1000.0;\n double rate = Math.round(vc.statNumUpdates / sec * 100) / 100.0;\n long nRealRects = vc.statNumPixelRects;\n ... |
"public void addServiceDescriptionToDevice(ServiceDescription desc, ConnectableDevice device) {\n Class<? extends DeviceService> deviceServiceClass;\n if (isNetcast(desc)) {\n deviceServiceClass = NetcastTVService.class;\n Method m;\n Object result = null;\n try {\n m = devi... |
"private static void init() {\n if (globalLocalizer == null) {\n globalLocalizer = new Localizer(true, false);\n }\n}\n"
|
"public void testParameters() {\n final AIConfiguration config = new AIConfiguration(getAccessToken(), getSubscriptionKey(), AIConfiguration.SupportedLanguages.English, AIConfiguration.RecognitionEngine.System);\n updateConfig(config);\n try {\n final AIDataService aiDataService = new AIDataService(Robo... |
"synchronized public void setEngineContext(ServletContext servletContext, HttpServletRequest request) {\n if (engine == null) {\n IPlatformContext platformContext = new PlatformServletContext(servletContext);\n config.setPlatformContext(platformContext);\n try {\n Platform.startup(con... |
"public void paintComponent(Graphics g) {\n if (image != null) {\n int imageWidth = image.getWidth(this);\n int imageHeight = image.getHeight(this);\n if ((imageWidth != -1) && (imageHeight != -1))\n g.drawImage(image, width / 2 - imageWidth / 2, height / 2 - imageHeight / 2, null);\n... |
"public static void applyFormatSettings(Object formatter, String[] propertiesAndValues) {\n if (propertiesAndValues.length == 0) {\n return;\n }\n Map<String, String> values = new HashMap<String, String>();\n for (String setting : propertiesAndValues) {\n if (setting == null) {\n th... |
"public static String getStackTrace(Throwable e) {\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n e.printStackTrace(new PrintStream(bos));\n String retString = new String(bos.toByteArray());\n if (fullContext && e.getCause() != null) {\n retString += \"String_Node_Str\" + getStackTrace(... |
"public Cursor fetchNote(long rowId) throws SQLException {\n Cursor mCursor = mDb.query(true, DATABASE_TABLE, new String[] { KEY_ROWID, KEY_TITLE, KEY_BODY, KEY_DATA, KEY_TYPE }, KEY_ROWID + \"String_Node_Str\" + rowId, null, null, null, null, null);\n if (mCursor != null) {\n mCursor.moveToFirst();\n }... |
"public void actionPerformed(final ActionEvent e) {\n if (e.getSource() == btPreview) {\n dialogImage.setDistance((Integer) thresholdSpinner.getValue());\n dialogImage.setColorDistanceMode(colorMode);\n dialogImage.setColor(colorChooser.getColor().getRGB());\n bgim.add(dialogImage);\n ... |
"static IndexProviderStore newIndexStore(String dbStoreDir) {\n File file = new File(getStoreDir(dbStoreDir).first() + \"String_Node_Str\");\n return new IndexProviderStore(file);\n}\n"
|
"public Server provision(Base base) throws UnableToProvisionServerException {\n logger.debug(\"String_Node_Str\", base.getName());\n synchronized (this) {\n if (!dhcp_done) {\n DoRuntime.exec(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", this.hostonlyif_name, \"String_Node_Str\"... |
"public void configure(String fieldNameForThisInstance, Map<String, String> properties, Configuration configuration) {\n _ctx = SpatialContext.GEO;\n SpatialPrefixTree grid = getSpatialPrefixTree(properties);\n boolean docValue = false;\n if (properties.get(DOC_VALUE) != null) {\n docValue = true;\n ... |
"public List<ATreeNode> getAllRootNodes(XSDSchema xsdSchema) throws OdaException {\n List<ATreeNode> rootNodes = new ArrayList<ATreeNode>();\n List<String> rootNodesName = new ArrayList<String>();\n List all = new ArrayList(xsdSchema.getElementDeclarations());\n all.addAll(xsdSchema.getTypeDefinitions());\n... |
"private static int compare(Object obj1, Object obj2) throws BirtException {\n if (obj1 == null || obj2 == null) {\n if (obj1 == null && obj2 != null)\n return -1;\n else if (obj1 != null && obj2 == null)\n return 1;\n else\n return 0;\n }\n if (isSameType(... |
"public Boolean isDisable_optimization() {\n return getDisable_optimization();\n}\n"
|
"protected void display404Error(IStatus status) {\n setErrorInPage(status);\n}\n"
|
"private Return traverseWorldInheritance(PermissionEntity entity) {\n List<String> worldInheritance = entity.manager.getWorldInheritance(world);\n if (worldInheritance.size() > 0) {\n Deque<String> worlds = new LinkedList<>(worldInheritance);\n Set<String> visitedWorlds = new HashSet<>();\n R... |
"public String asString(UpdateOp update) {\n StringBuilder sb = new StringBuilder(\"String_Node_Str\");\n boolean needComma = false;\n for (Map.Entry<Key, Operation> change : update.getChanges().entrySet()) {\n Operation op = change.getValue();\n Key key = change.getKey();\n if (columnProp... |
"public byte[] next() {\n byte[] k = rowKeys.next();\n if (meta != null && log.isInfoEnabled()) {\n try {\n Object obj = meta.getIdColumnMeta().convertFromStorage2(k);\n String str = meta.getIdColumnMeta().convertTypeToString(obj);\n realKeys.add(str);\n } catch (Exc... |
"public void testErmaGradientOneVar() {\n FactorGraph fg = new FactorGraph();\n Var t0 = new Var(VarType.PREDICTED, 2, \"String_Node_Str\", null);\n ExplicitFactor emit0 = new ExplicitFactor(new VarSet(t0));\n fg.addFactor(emit0);\n VarConfig goldConfig = new VarConfig();\n goldConfig.put(t0, 1);\n ... |
"public ECPrivateKey getSAProvisioningCertificatePrivateKey() {\n KeyStore keyStore = SecurityUtils.getPKCS12KeyStore(\"String_Node_Str\", GlobalValues.PASSPHRASE_FOR_CERTIFICATES_AND_KEYS.toString());\n ECPrivateKey privateKey = SecurityUtils.getPrivateKey(keyStore);\n if (privateKey == null)\n getLogg... |
"private static boolean copyDoubles(double[] data, ByteBuffer targetBuffer, SerializeState state) {\n int totalBytes = state.getTotalBytes();\n int remainingCapacity = targetBuffer.remaining();\n int bytesCopied = state.getBytesCopied();\n int remainingToCopy = data.length * 8 - bytesCopied;\n int canCop... |
"protected MXSession getSession(Intent intent) {\n MXSession session = null;\n if (intent.hasExtra(EXTRA_ACCOUNT_ID)) {\n session = Matrix.getInstance(getApplicationContext()).getSession(intent.getStringExtra(EXTRA_ACCOUNT_ID));\n }\n if (null == session) {\n session = Matrix.getInstance(getAp... |
"public void handlePacket(byte[] bytes, int d) {\n if (last != null && d != last_demod && java.util.Arrays.equals(last, bytes)) {\n dup_count++;\n if (last_demod == 0)\n d0_count--;\n else\n d6_count--;\n both_count++;\n } else {\n packet_count++;\n ... |
"public void getChangeTypeStrAndImage() throws Exception {\n SevereLoggingMonitor loggingMonitor = TestUtil.severeLoggingStart();\n TeamWorkFlowArtifact codeArt = (TeamWorkFlowArtifact) DemoTestUtil.getUncommittedActionWorkflow(DemoWorkType.Code);\n Assert.assertEquals(ChangeType.Problem, ChangeTypeUtil.getCha... |
"private void openDocument() throws IOException {\n try {\n if (rf == null) {\n if (!isWritable && !useNativeLock) {\n rf = new RandomAccessFile(archiveName, \"String_Node_Str\");\n } else {\n rf = new RandomAccessFile(archiveName, \"String_Node_Str\");\n ... |
"public static void moveItems(Inventory iFrom, Inventory iTo, IntMap through) {\n ItemStack[] from = iFrom.getContents();\n ItemStack[] to = iTo.getContents();\n int i1, i2;\n for (i1 = 0; i1 < from.length; i1++) {\n if (from[i1] == null)\n continue;\n int mapAmount = through.getInt... |
"private void selectByFeatureImportance() throws Exception {\n List<BasicML> models = null;\n if (!super.modelConfig.getVarSelect().getFilterEnable()) {\n models = CommonUtils.loadBasicModels(this.modelConfig, this.columnConfigList, null);\n }\n if (models == null || models.size() < 1) {\n Tra... |
"public void render(final Treeitem item, final Object data) throws Exception {\n final Tree tree = item.getTree();\n final Component parent = item.getParent();\n final int index = item.getIndex();\n final Template tm = resoloveTemplate(tree, parent, data, index, \"String_Node_Str\");\n if (tm == null) {\... |
"protected void onPostExecute(Boolean result) {\n if (isCancelled() || !result) {\n mOnRefreshListener.onRefresh(false);\n if (getActivity() == null)\n return;\n if (errorMsg != \"String_Node_Str\" && !getActivity().isFinishing()) {\n FragmentTransaction ft = getFragmentMan... |
"public void testSharedStyle() {\n GridItemDesign grid = (GridItemDesign) report.getContent(0);\n IStyle style = grid.getStyle();\n assertEquals(style.getColor(), \"String_Node_Str\");\n assertEquals(style.getBorderBottomStyle(), \"String_Node_Str\");\n RowDesign row = grid.getRow(0);\n style = report... |
"public ObjectBuilder<?> createObjectBuilder(ViewType<?> viewType, MappingConstructor<?> mappingConstructor, String viewName, String entityViewRoot, FullQueryBuilder<?, ?> criteriaBuilder, EntityViewConfiguration configuration, int offset, boolean registerMacro) {\n Class<?> entityClazz;\n Map.Entry<From, String>... |
"final void doStartup() {\n Vec2i screenSize = getSize();\n if (isTTY)\n System.out.print(\"String_Node_Str\" + screenSize.y + \"String_Node_Str\" + screenSize.x + \"String_Node_Str\");\n Screen screen = TerminalFacade.createScreen();\n screen.startScreen();\n {\n TerminalSize size = screen... |
"public boolean onTouch(View v, MotionEvent event) {\n if (mTouchMode == NONE) {\n mGestureDetector.onTouchEvent(event);\n }\n if (!mChart.isDragEnabled() && !mChart.isScaleEnabled())\n return true;\n switch(event.getAction() & MotionEvent.ACTION_MASK) {\n case MotionEvent.ACTION_DOWN:\... |
"public String getDirectory(String str, File path) {\n clearPanel();\n logger.info(\"String_Node_Str\");\n lblMessage.setText(message);\n browseFile.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n browseFile.setCurrentPath(path);\n pack();\n setVisible(true);\n if (waitFor()) {\n r... |
"public void run() {\n device.clearCache();\n HashMap<String, Object> params = new HashMap<String, Object>();\n params.put(RCDevice.ParameterKeys.INTENT_INCOMING_CALL, new Intent(RCDevice.ACTION_INCOMING_CALL, null, InstrumentationRegistry.getTargetContext(), CallActivity.class));\n params.put(RCDevice.Para... |
"int executeThenAdd_multiThreaded(final int reps) throws InterruptedException {\n Runnable addTask = new Runnable() {\n public void run() {\n for (int i = 0; i < numListeners; i++) {\n list.add(listener, directExecutor());\n }\n }\n };\n int returnValue = 0;\n... |
"public void onEnable() {\n this.commandsManager.register(new UtilityCommands());\n this.commandsManager.register(new UserCommands());\n this.commandsManager.register(new GroupCommands());\n this.commandsManager.register(new PromotionCommands());\n this.commandsManager.register(new WorldCommands());\n ... |
"public void saveNode(Node node) {\n dbService.putModel(NetworkConstant.NODE_DB_AREA, bytes(node.getId()), node);\n}\n"
|
"public void test() throws IOException {\n RegularTimeSeriesIndex index = RegularTimeSeriesIndex.create(Interval.parse(\"String_Node_Str\"), Duration.ofMinutes(15));\n ImmutableMap<String, String> tags = ImmutableMap.of(\"String_Node_Str\", \"String_Node_Str\");\n TimeSeriesMetadata metadata = new TimeSeriesMe... |
"public void run(IProgressMonitor monitor) {\n monitorWrap = new EventLoopProgressMonitor(monitor);\n List<SchemaTarget> addedObjects = new ArrayList<SchemaTarget>(event.addedObjects);\n XmlToXPathLinker.this.createFieldsLinkWithProgressMonitor(monitorWrap, addedObjects.size(), addedObjects, event.index, added... |
"public void actionPerformed(ActionEvent e) {\n Stereotype documentStereotype = Utils.getDocumentStereotype(project);\n Stereotype viewStereotype = Utils.getViewStereotype(project);\n for (Element element : targetElements) {\n if (!StereotypesHelper.hasStereotypeOrDerived(element, viewStereotype) && !St... |
"public void setText(String text, Color foreground, Color background) {\n this.text = text;\n this.foreground = foreground;\n this.background = background;\n Quad oldQuad = quad;\n Quad updatedQuad = getQuad();\n if (updatedQuad != oldQuad) {\n Node tmpParent = oldQuad.getParent();\n old... |
"public void processTypeCheckCodeFragmentBranches() {\n ExpressionExtractor expressionExtractor = new ExpressionExtractor();\n List<ArrayList<Statement>> allTypeCheckStatements = typeCheckElimination.getTypeCheckStatements();\n if (!typeCheckElimination.getDefaultCaseStatements().isEmpty()) {\n allTypeC... |
"public void clear() {\n selectionChanges.clear();\n for (T value : selectedSet.values()) {\n selectionChanges.put(getKey(value), new SelectionChange<T>(value, false));\n }\n scheduleSelectionChangeEvent();\n}\n"
|
"public void testCapitalGainsWithPartialSellDuringReportPeriodWithFees() {\n Client client = new Client();\n Security security = new Security();\n security.addPrice(new SecurityPrice(Dates.date(2010, Calendar.JANUARY, 1), 10000));\n security.addPrice(new SecurityPrice(Dates.date(2011, Calendar.JUNE, 1), 110... |
"private void getupvalue(LuaState vm) {\n LFunction func = vm.checkfunction(2);\n int up = vm.checkint(3);\n vm.resettop();\n if (func instanceof LClosure) {\n LClosure c = (LClosure) func;\n LString name = findupvalue(c, up);\n if (name != null) {\n vm.pushlstring(name);\n ... |
"protected void exportMilestone(Milestone milestone, StringBuffer ret) {\n final boolean burndown = Boolean.parseBoolean(milestone.getProject().getConfigurationValue(StoredProject.CONFIGURATION_TIMETRACKING_BURNDOWN));\n ret.append(\"String_Node_Str\");\n ret.append(milestone.getName());\n ret.append(\"Stri... |
"public Recommendation[] awaitRecommendations(String accessToken, Location location, Integer radius) {\n Uri.Builder uriBuilder = Uri.parse(getString(R.string.gf_api_base_url)).buildUpon().appendEncodedPath(getString(R.string.gf_api_pois_path)).appendEncodedPath(getString(R.string.gf_api_pois_recommend_path));\n ... |
"public static Properties getProperties(OozieJobExecutorConfig config, VariableSpace variableSpace) throws KettleFileException, IOException {\n Properties jobProps = null;\n if (config.getModeAsEnum() == JobEntryMode.ADVANCED_LIST && config.getWorkflowProperties() != null) {\n jobProps = new Properties();\... |
"public static String getIOStateInterfaceName(Role self, EndpointState s) {\n String name = null;\n switch(s.getStateKind()) {\n case OUTPUT:\n name = \"String_Node_Str\";\n break;\n case UNARY_INPUT:\n name = \"String_Node_Str\";\n break;\n case PO... |
"private void coinBaseTx(List<Transaction> txList) {\n CoinTransferData data = new CoinTransferData();\n data.setFee(Na.ZERO);\n List<ConsensusReward> rewardList = calcReward(txList);\n Na total = Na.ZERO;\n for (ConsensusReward reward : rewardList) {\n Coin coin = new Coin();\n coin.setNa(... |
"public void write(JavaWriter javaWriter) throws IOException {\n javaWriter.emitPackage(packageName);\n javaWriter.emitImports(Classes.FLOW_MANAGER, Classes.CONDITION_QUERY_BUILDER, Classes.MODEL_CONTAINER, Classes.MODEL_CONTAINER_UTILS, Classes.CONTAINER_ADAPTER, Classes.MODEL, Classes.CONTENT_VALUES, Classes.CU... |
"public static List<PyFunction> getFunctions() {\n PyObject _locals = interp.getLocals();\n List<PyFunction> funcs = new ArrayList<PyFunction>(_locals.__len__());\n PyIterator it = null;\n if (_locals instanceof PyDictionary) {\n it = (PyIterator) ((PyDictionary) _locals).itervalues();\n } else {\... |
"private int renderModel(TileEntityMannequin te, ModelBiped targetBiped, MannequinFakePlayer fakePlayer) {\n int displayList = 0;\n if (hasRendered) {\n displayList = GLAllocation.generateDisplayLists(1);\n GL11.glNewList(displayList, GL11.GL_COMPILE);\n }\n if (!hasCustomHead(te)) {\n ... |
"public void update_delete_with_sso_auth_succeeds() {\n final RpslObject ssomnt = RpslObject.parse(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n RestTest.target(getPort(), \"String_Node_Str\").request().c... |
"public void testProcess() throws Exception {\n System.out.println(\"String_Node_Str\");\n InputStream inStream = this.getClass().getResourceAsStream(\"String_Node_Str\");\n assertNotNull(inStream);\n FastaReader<ProteinSequence, AminoAcidCompound> fastaReader = new FastaReader<ProteinSequence, AminoAcidCom... |
"public static String rotateImageIfNecessary(Context context, String path) {\n if (context == null || TextUtils.isEmpty(path)) {\n return null;\n }\n File file = new File(path);\n if (!file.exists()) {\n return null;\n }\n String mimeType = MediaUtils.getMediaFileMimeType(file);\n if ... |
"public void testGetHadoopDistributionsDisplay_Sorted() {\n String[] hadoopDistributionsDisplay = HadoopDistributionsHelper.HADOOP.getDistributionsDisplay(false);\n Assert.assertArrayEquals(new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"St... |
"private double asRelativeValue(final InformationLoss<?> infoLoss) {\n if (result == null)\n return 0;\n return infoLoss.relativeTo(result.getLattice().getMinimumInformationLoss(), result.getLattice().getMaximumInformationLoss()) * 100d;\n}\n"
|
"public void writeComponentModel() throws JSONException {\n TypedData<Map<String, Object>> modelProperties = feContext.getFormElement().propertiesForTemplateJSON();\n writer.object();\n JSONUtils.writeDataWithConversions(new FormElementToJSON(fe.getFlattendSolution()), writer, modelProperties.content, modelPro... |
"private boolean isNodeListEqual(NodeList control, NodeList test) {\n int numberOfControlNodes = control.getLength();\n if (numberOfControlNodes != test.getLength()) {\n return false;\n }\n if (ignoreOrder) {\n for (int x = 0; x < numberOfControlNodes; x++) {\n if (!isNodeInNodeList... |
"private static void connect(final Socket socket) {\n try (Socket socket_ = sf.createSocket(host, port);\n InputStream is = new BufferedInputStream(socket_.getInputStream());\n OutputStream os = socket_.getOutputStream()) {\n String header = null;\n if (AUTH == null) {\n header... |
"public void run() {\n try {\n Twitter twitter = null;\n Twitter secTwitter = null;\n if (type == TYPE_ACC_ONE) {\n twitter = Utils.getTwitter(context, settings);\n } else if (type == TYPE_ACC_TWO) {\n secTwitter = Utils.getSecondTwitter(context);\n } else {\n... |
"protected int run(CmdLineParser parser) {\n final List<String> args = parser.getRemainingArgs();\n if (args.isEmpty()) {\n System.err.println(\"String_Node_Str\");\n return 3;\n }\n if (args.size() == 1) {\n System.err.println(\"String_Node_Str\");\n return 3;\n }\n if (!c... |
"public void onEventMainThread(Message msg) {\n if (!isDetached() && !isRemoving()) {\n onResponse(msg);\n }\n}\n"
|
"public boolean canExecute() {\n if (source.equals(target)) {\n return false;\n }\n for (Iterator<?> iter = source.getSourceConnections().iterator(); iter.hasNext(); ) {\n Connection conn = (Connection) iter.next();\n if (conn != null && conn.getTarget().equals(target)) {\n retu... |
"private void updateCompleteTime() {\n View view = this.findViewById(android.R.id.content).getRootView();\n Calendar calendar = Calendar.getInstance();\n Minutes.updateViewWithTime(view, calendar);\n Hours.updateViewWithTime(view, calendar);\n if (!isDimmed()) {\n Seconds.updateViewWithTime(view, ... |
"public void invokeGetBindingBean(Object bean) throws Exception {\n super.invokeGetBindingBean(bean);\n TreeNode pageNode = (TreeNode) bean;\n String icon = pageNode.getIcon();\n if (icon == null || icon.length() < 0)\n icon = \"String_Node_Str\";\n getChild(UIFormInputIconSelector.class).setSelec... |
"protected static void processForeignData(IForeignContent foreign) {\n if (foreign.getChildren() != null && foreign.getChildren().size() > 0) {\n return;\n }\n HashMap styleMap = new HashMap();\n ReportDesignHandle reportDesign = foreign.getReportContent().getDesign().getReportDesign();\n HTMLStyl... |
"public int getStrLen() {\n return prevRowId == -1 ? -1 : valueColumn.getStrLen(getParentRecord());\n}\n"
|
"public double[] run(int times) {\n double[] runtimes = new double[times];\n final int offset = engine.getInputVariables().size();\n for (int t = 0; t < times; ++t) {\n obtained = new ArrayList<double[]>(expected.size());\n for (int i = 0; i < expected.size(); ++i) {\n obtained.add(new... |
"public static void addServiceGroup(CartridgeGroupBean serviceGroupDefinition) throws InvalidCartridgeGroupDefinitionException, RestAPIException {\n try {\n if (serviceGroupDefinition == null) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n List<String> cartridgeTypes = new... |
"protected void evaluateTextField() {\n IProxyRepositoryFactory proxyRepositoryFactory = CoreRuntimePlugin.getInstance().getProxyRepositoryFactory();\n if (nameText == null || nameText.isDisposed() || versionText == null || versionText.isDisposed() || purposeText == null || purposeText.isDisposed() || jobTypeCCom... |
"public ModelAndView getJksFile(User user, Long credentialId, HttpServletResponse response) throws Exception {\n File cerFile = azureCertificateService.getCertificateFile(credentialId, user);\n response.setContentType(\"String_Node_Str\");\n response.setHeader(\"String_Node_Str\", \"String_Node_Str\" + user.em... |
"public AuthenticateResponse refreshUser(Token userToken, URL authenticationUrl) {\n try {\n String requestBody = AuthenticateRequest.userRefresh(userToken).toJson();\n return authenticate(authenticationUrl, requestBody);\n } catch (Exception e) {\n return AuthenticateResponse.from(new Object... |
"public static void populateSeriesTypesList(Hashtable<String, Series> htSeriesNames, Combo cmbTypes, ChartWizardContext context, Collection<IChartType> allChartType, Series currentSeries) {\n IChartUIHelper helper = context.getUIFactory().createUIHelper();\n IChartType currentChartType = ChartUIUtil.getChartType(... |
"public void stopThread(boolean restarting) {\n if (isThreadRunning())\n thread.stop();\n if (!restarting) {\n new Utils(this).cancelAllNotifications();\n }\n headset.storeVolumeLevel(getActualHeadsetMode());\n if (headset.isBluetoothScoOn()) {\n headset.setBluetoothScoOn(false);\n ... |
"public void modifyText(ModifyEvent e) {\n String text = dataSourceNameText.getText();\n vdbDataSourceInfo.setJndiName(text);\n validate();\n}\n"
|
"public int getFocusedVertexId() {\n final V ref = graph.vertexRef();\n final V focused = focus.getFocusedVertex(ref);\n final int id = (focused == null) ? -1 : idmap.getVertexId(focused);\n graph.releaseRef(ref);\n return id;\n}\n"
|
"public synchronized void setJmxConnectionData(JMXServiceURL jmxUrl, String instanceId) {\n String path = rootPath + \"String_Node_Str\" + HA_SERVERS_CHILD + \"String_Node_Str\" + machineId + \"String_Node_Str\";\n String url = jmxUrl.toString();\n byte[] data = new byte[(url.length() + instanceId.length()) * ... |
"protected AgentAttache createAttache(long id, HostVO server, ServerResource resource) {\n if (resource instanceof DummySecondaryStorageResource) {\n return new DummyAttache(this, id, false);\n }\n s_logger.debug(\"String_Node_Str\" + id);\n final DirectAgentAttache attache = new ClusteredDirectAgent... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.