content stringlengths 40 137k |
|---|
"public static Dialog injectWithHelp(WizardDialog dialog, Wizard wizard, String helpID) {\n return injectHelp(dialog, wizard, helpID, null);\n}\n"
|
"public void moduleConfigTest() throws IOException, XMLStreamException, SAXException, ParserConfigurationException {\n try (FileSystem fileSystem = Jimfs.newFileSystem(Configuration.unix())) {\n Path cfgDir = Files.createDirectory(fileSystem.getPath(\"String_Node_Str\"));\n Properties prop1 = new Prope... |
"void onConfigurationChanged() {\n int workspaceId = getStackId();\n if (mStackId != workspaceId) {\n mStackId = workspaceId;\n if (mDecorCaptionView == null && StackId.hasWindowDecor(mStackId)) {\n final LayoutInflater inflater = mWindow.getLayoutInflater();\n mDecorCaptionVie... |
"public static final int[] compileVSeam(int x, Aggregates<Integer> matchings) {\n final int[] seam = new int[matchings.highY() - matchings.lowY()];\n for (int y = matchings.lowY(); y < seam.length; y++) {\n seam[y] = x;\n x = x + matchings.get(x, y);\n }\n return seam;\n}\n"
|
"public boolean createEntity(Dao dao, Entity<?> en) {\n StringBuilder sb = new StringBuilder(\"String_Node_Str\" + en.getTableName() + \"String_Node_Str\");\n for (MappingField mf : en.getMappingFields()) {\n sb.append('\\n').append(mf.getColumnName());\n sb.append(' ').append(evalFieldType(mf));\n ... |
"public Object getM2() {\n return doubleToBytes(m2);\n}\n"
|
"public static void main(String[] args) throws ConfigurationException, DaoException {\n Env env = EnvBuilder.envFromArgs(args);\n PageViewDao viewDao = env.getConfigurator().get(PageViewDao.class);\n SpatialDataDao spatialDao = env.getConfigurator().get(SpatialDataDao.class);\n UniversalPageDao conceptDao =... |
"public static TextTemplateBuilder buildEmailForOwnerChange(String newEmailOwner, Event e, Ticket t, OrganizationRepository organizationRepository, TicketReservationManager ticketReservationManager, TemplateManager templateManager, HttpServletRequest request) {\n return () -> {\n String eventName = e.getShort... |
"private String getReportTemplateName(String mimetype) {\n String typePrefixName = reportType.getPrefixedQName(namespaceService).getPrefixString().replace(\"String_Node_Str\", \"String_Node_Str\");\n String extension = mimetypeService.getExtension(mimetype);\n StringBuilder sb = new StringBuilder(128).append(\... |
"protected Control createDialogArea(Composite parent) {\n parent.setBackground(ColorManager.getColor(219, 228, 238));\n Composite composite = (Composite) super.createDialogArea(parent);\n GridData gd = new GridData();\n gd.widthHint = 520;\n gd.heightHint = 395;\n composite.setLayoutData(gd);\n Gri... |
"void updateCompliantURI(String URIprefix, String grandparentDisplayId, String parentDisplayId, String version) {\n String thisObjDisplayId = extractDisplayId(this.getIdentity());\n URI newIdentity = URI.create(URIprefix + '/' + grandparentDisplayId + '/' + parentDisplayId + '/' + thisObjDisplayId + '/' + version... |
"public static boolean isWithinShield(Location loc) {\n for (Player player : instances.keySet()) {\n FireShield fshield = instances.get(player);\n Location playerLoc = fshield.player.getLocation();\n if (fshield.shield) {\n if (!playerLoc.getWorld().equals(loc.getWorld()))\n ... |
"private boolean hasChild(Object parent, Object child) {\n Set<?> children = childrenMap.get(parent);\n return children != null && children.contains(child);\n}\n"
|
"public Map<IPath, IPath> mapping(ItemRecord record) {\n Map<IPath, IPath> toExportMap = new HashMap<IPath, IPath>();\n IPath itemResPath = new Path(record.getFile().getAbsolutePath());\n Property property = record.getProperty();\n IPath itemDesPath = null;\n if (property != null) {\n itemDesPath ... |
"public Integer apply(Date a0) {\n return a0 == null ? null : (int) (a0.getTime() / DateTimeUtil.MILLIS_PER_DAY);\n}\n"
|
"public Object execute(ExecutionEvent event) {\n new WasIsCompareEditorChangeAction().run();\n return null;\n}\n"
|
"public void run() {\n ObjectInputStream incoming = null;\n ObjectOutputStream outgoing = null;\n try {\n boolean keepRunning = true;\n while (keepRunning) {\n logger.info(\"String_Node_Str\");\n s = server.accept();\n incoming = new ObjectInputStream(s.getInputSt... |
"public IStatus testJDBCPing(String host, String port, String username, String password) {\n try {\n boolean testCausesConnect = false;\n if (admin == null) {\n connect();\n testCausesConnect = true;\n }\n pingStatus = admin.ping(PingType.JDBC);\n if (testCaus... |
"public void paint(Graphics g) {\n Graphics2D g2 = (Graphics2D) g;\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n int width = getWidth(), height = getHeight();\n g.setColor(Color.white);\n g.fillRect(0, 0, width, height);\n g.setColor(Color.black);\n Fo... |
"private String createIndexesForTable(final IndexMetaData indexMetaData, int counter) {\n final TableMetaData tableMetaData = indexMetaData.getTableMetaData();\n final String schemaPrefix = \"String_Node_Str\".equals(_targetSchema) ? \"String_Node_Str\" : _targetSchema + \"String_Node_Str\";\n final String uni... |
"public void run() {\n if (methodName != null) {\n Class<?> c = this.getClass();\n Method method;\n try {\n method = c.getDeclaredMethod(methodName, parameterTypes);\n method.invoke(this, parameters);\n } catch (IllegalAccessException | NoSuchMethodException e) {\n ... |
"public static Timestamp valueOf(String s) {\n String[] components = s.split(\"String_Node_Str\");\n if (components.length != 2) {\n throw new IllegalArgumentException(\"String_Node_Str\" + s);\n }\n String[] timeComponents = components[1].split(\"String_Node_Str\");\n boolean hasNanos = true;\n ... |
"public IConnection<IRedstoneDevice> getConnectionOnSide(ForgeDirection side) {\n if (wrapper.device instanceof IInsulatedRedwire && ((IRedstoneDevice) wrapper.device).getRedstoneConnectionCache() != null) {\n IConnection<IRedstoneDevice> c = (IConnection<IRedstoneDevice>) ((IRedstoneDevice) wrapper.device).g... |
"public static boolean containsSuper(final Class<?>[] collection, final Class<?> cls) {\n for (final Class<?> c : collection) {\n if (ClassUtils.isAssignable(cls, c)) {\n return true;\n }\n }\n return false;\n}\n"
|
"public void onInsertCassandra() throws Exception {\n Object p1 = prepareData(\"String_Node_Str\", 10);\n Object p2 = prepareData(\"String_Node_Str\", 20);\n Object p3 = prepareData(\"String_Node_Str\", 15);\n Query findQuery = entityManager.createQuery(\"String_Node_Str\", PersonCassandra.class);\n List... |
"public String asUnescapedString() {\n if (unescapedCache != null) {\n return unescapedCache;\n }\n unescapedCache = super.asUnescapedString() + '/' + resource;\n return unescapedCache;\n}\n"
|
"public void testGetBlobBeforeAndAfterUpdate() throws Exception {\n String blobData = \"String_Node_Str\";\n PreparedStatement ps = prepareStatement(\"String_Node_Str\");\n for (int i = 0; i < 10; i++) {\n ps.setInt(1, i);\n ps.setBytes(2, (blobData + i).getBytes(\"String_Node_Str\"));\n p... |
"public int getMaterial(int x, int y, int z) {\n int idx = y * sliceSize + x * depth + z;\n short mat = (short) (0x3FFF & data[idx]);\n return mat;\n}\n"
|
"public String getNetworkRepresentation() {\n return getNetworkMasked() + \"String_Node_Str\" + mNetmask.countBits();\n}\n"
|
"public void onChildStatusEvent(MonitorStatusEvent statusEvent) {\n String childId = statusEvent.getId();\n String instanceId = statusEvent.getInstanceId();\n LifeCycleState status1 = statusEvent.getStatus();\n if (status1 == ClusterStatus.Active || status1 == GroupStatus.Active) {\n onChildActivated... |
"public IAggregationResultSet[] execute(AggregationDefinition[] aggregations, StopSign stopSign) throws IOException, BirtException {\n IAggregationResultSet[] resultSet = onePassExecute(aggregations, stopSign);\n applyAggrFilters(aggregations, resultSet, stopSign);\n applyAggrSort(resultSet);\n return resul... |
"private void runPacksForOneClassAtATime() {\n if (Options.v().src_prec() == Options.src_prec_class && Options.v().keep_line_number()) {\n LineNumberAdder lineNumAdder = LineNumberAdder.v();\n lineNumAdder.internalTransform(\"String_Node_Str\", null);\n }\n setupJAR();\n for (String path : (Co... |
"public void loadAll_NullValue() throws Exception {\n CacheLoader<Integer, Integer> loader = new MockCacheLoader<Integer, Integer>() {\n public Map<Integer, Integer> loadAll(Iterable<? extends Integer> keys) {\n Map<Integer, Integer> map = new HashMap<Integer, Integer>();\n for (Integer ... |
"private Map<String, AbstractPropertyValue> getInitialRequirementProperties(String requirementName, NodeTemplate nodeTemplate) {\n Map<String, AbstractPropertyValue> properties = Maps.newHashMap();\n if (nodeTemplate.getRequirements() != null && nodeTemplate.getRequirements().get(requirementName) != null && nodeT... |
"private void updateStateForChildTransitioningInBottom(StackScrollAlgorithmState algorithmState, float transitioningPositionStart, ExpandableView child, float currentYPosition, StackViewState childViewState, int childHeight) {\n algorithmState.partialInBottom = 1.0f - ((transitioningPositionStart - currentYPosition)... |
"public void testAddTo2() {\n long expected = TEST_TIME_NOW;\n expected = ISOChronology.getInstanceUTC().years().add(expected, -2);\n expected = ISOChronology.getInstanceUTC().months().add(expected, -4);\n expected = ISOChronology.getInstanceUTC().weeks().add(expected, -6);\n expected = ISOChronology.get... |
"protected Tuple<AgentType, Double> makePayments() {\n double currentFoodReserve;\n if (getDataModel().getReservedFoodHistory().isEmpty()) {\n currentFoodReserve = 0;\n } else {\n currentFoodReserve = getDataModel().getCurrentReservedFood();\n }\n AgentType strategy = getDataModel().getGrou... |
"public void postIteration(final MasterContext<DTMasterParams, DTWorkerParams> context) {\n final int tmpModelFactor = DTrainUtils.tmpModelFactor(context.getTotalIteration());\n if (context.getCurrentIteration() % tmpModelFactor == 0) {\n Thread tmpModelPersistThread = new Thread(new Runnable() {\n ... |
"public void publishResult(final PeriodType periodType, final Destination destination) throws ReportingException {\n final Measurement m = newMeasurement();\n DoublePercentileIterator pi;\n switch(correctionMode) {\n case AUTO:\n pi = new DoublePercentileIterator(localHistogram.copyCorrectedF... |
"public StringsResultEntity getDatabases(boolean currentUserAccessableOnly, String username, String password) throws ArangoException {\n HttpResponseEntity res = httpManager.doGet(createEndpointUrl(null, API_DATABASE, currentUserAccessableOnly ? \"String_Node_Str\" : null), null, null, username, password);\n retu... |
"public String getPerMatch() {\n Double match = Double.parseDouble(getNumMatch());\n return StringFormatUtil.format(match / getSum(), StringFormatUtil.PERCENT).toString();\n}\n"
|
"public MapDataSet evaluate(DataSetDefinition dataSetDefinition, EvaluationContext context) {\n CohortIndicatorDataSetDefinition dsd = (CohortIndicatorDataSetDefinition) dataSetDefinition;\n context = ObjectUtil.nvl(context, new EvaluationContext());\n if (context.getBaseCohort() == null) {\n context.se... |
"private void parseMessage(Bundle extras) {\n prefsHelper = PrefsHelper.getPrefsHelper();\n if (extras.getString(NotificationHelper.MESSAGE) != null) {\n message = extras.getString(NotificationHelper.MESSAGE);\n }\n if (extras.getString(NotificationHelper.USER_ID) != null) {\n userId = Integer... |
"private void updateInstances(final AutoScalingInstance fromExample, final Predicate<? super AutoScalingInstance> fromPredicate, final Predicate<? super AutoScalingInstance> updatePredicate, final Collection<String> instanceIds) throws AutoScalingMetadataException {\n final AbstractOwnedPersistents.WorkCallback<Void... |
"protected Control createDialogArea(Composite parent) {\n try {\n parent.getShell().setText(\"String_Node_Str\");\n Composite composite = new Composite(parent, SWT.NULL);\n GridLayout layout = new GridLayout();\n layout.marginHeight = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_... |
"public boolean setDefaultVersion() {\n if (versions.size() == 0) {\n return false;\n }\n String version = PreferenceManager.getDefaultSharedPreferences(mContext).getString(\"String_Node_Str\", null);\n if (version != null) {\n File file = getFile(version);\n if (file == null || !file.i... |
"private void renderPolys(IDeviceRenderer idr, Location[] prelo, Series se, SeriesDefinition sd) {\n int iThisSeriesIndex = sd.getRunTimeSeries().indexOf(se);\n if (iThisSeriesIndex == -1)\n iThisSeriesIndex = getSeriesIndex();\n final EList<Fill> elPalette = sd.getSeriesPalette().getEntries();\n Fil... |
"static boolean isNullOrComments(String script) {\n if (script == null)\n return true;\n try {\n String scriptWithoutComments = script.replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n if (scriptWithoutComments.trim().length() == 0)\n return true;\n else\n r... |
"public void testDateSerializationWithPattern() throws Exception {\n String pattern = \"String_Node_Str\";\n DateFormat formatter = new SimpleDateFormat(pattern);\n Gson gson = new GsonBuilder().setDateFormat(DateFormat.FULL).setDateFormat(pattern).create();\n Date now = new Date();\n String json = gson.... |
"public Set<DistributionModuleGroup> getModuleGroups() throws Exception {\n Set<DistributionModuleGroup> hs = new HashSet<>();\n DynamicPluginAdapter pluginAdapter = getPluginAdapter();\n String hiveRuntimeId = pluginAdapter.getRuntimeModuleGroupIdByTemplateId(DynamicModuleGroupConstant.HIVE_MODULE_GROUP.getMo... |
"protected void parse_reslist(String type, List<ReservedItem> reservations, Document doc, int offset) {\n Elements copytrs = doc.select(\"String_Node_Str\");\n doc.setBaseUri(data.optString(\"String_Node_Str\"));\n int trs = copytrs.size();\n if (trs == 1) {\n return;\n }\n assert (trs > 0);\n ... |
"public List<Dag> split() {\n List<Dag> dags = new ArrayList<>();\n Set<String> remainingNodes = new HashSet<>(nodes);\n Set<String> possibleNewSources = Sets.union(sources, connectors.keySet());\n Set<String> possibleNewSinks = Sets.union(sinks, connectors.keySet());\n for (String reduceNode : reduceNod... |
"protected void internalSwap(final int row1, final int row2) {\n int[] temp = outputGeneralized.getArray()[row1];\n outputGeneralized.getArray()[row1] = outputGeneralized.getArray()[row2];\n outputGeneralized.getArray()[row2] = temp;\n if (outputMicroaggregated.getArray().length != 0) {\n temp = outp... |
"public Object run(JmsAvailability param) throws PropertyVetoException, TransactionFailure {\n param.setAvailabilityEnabled(availabilityEnabled.toString());\n if (availabilityEnabled.booleanValue()) {\n param.setMessageStoreType(JDBC);\n } else {\n param.setConfigStoreType(configStoreType.toLower... |
"public void connectionCreated(final org.jivesoftware.smack.XMPPConnection connection) {\n if (XMPPConnectionImpl.this.connection != connection) {\n return;\n }\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"String_Node_Str\" + connection.toString());\n }\n connection.addConnectionListener(thi... |
"protected void publishConfigAndExportGroups(HeartBeat heartBeat, ComponentInstanceState componentStatus, String componentGroup) {\n List<ComponentStatus> statuses = heartBeat.getComponentStatus();\n if (statuses != null && !statuses.isEmpty()) {\n log.info(\"String_Node_Str\", statuses.size());\n f... |
"public void testAsyncDeliveryOrder() throws Exception {\n try (TestAmqpPeer testPeer = new TestAmqpPeer()) {\n Connection connection = testFixture.establishConnecton(testPeer);\n connection.start();\n testPeer.expectBegin();\n CoordinatorMatcher txCoordinatorMatcher = new CoordinatorMatc... |
"public boolean exceptionsForAllLinks(Word word) {\n ArrayList<Link> links = word.links;\n boolean allExceptions = true;\n for (Link next : links) {\n if (!exceptionExists(next.otherWord))\n allExceptions = false;\n }\n return allExceptions;\n}\n"
|
"public Schema getSchema(Source xsdSource, SchemaResolverWrapper schemaResolverWrapper) {\n try {\n xsdSource = schemaResolverWrapper.resolveSchema(xsdSource);\n XMLContext context = new XMLContext(getSchemaProject());\n XMLUnmarshaller unmarshaller = context.createUnmarshaller();\n unmar... |
"protected Dialog onCreateDialog(int id) {\n switch(id) {\n case DIALOG_ID_SAVE:\n dialog = new FilenameDialog(this);\n break;\n case DIALOG_ID_OPEN:\n return new FilenameDialog(this);\n case DIALOG_ID_NO_FILE_MANAGER_AVAILABLE:\n Log.i(TAG, \"String_N... |
"public void loadOldMessages() {\n if (adapter.getDatas().size() == 0) {\n refreshableView.finishRefreshing();\n return;\n } else {\n AVIMTypedMessage firstMsg = adapter.getDatas().get(0);\n String msgId = firstMsg.getMessageId();\n long time = firstMsg.getTimestamp();\n ... |
"public void run() {\n System.out.println(Utils.getTimeStamp() + \"String_Node_Str\" + idx);\n long t0 = System.currentTimeMillis();\n EnactmentEngine enacter = new EnactEngClient(ENACTMENT_ENGINE_HOST);\n String chorId = enacter.createChoreography(chorSpec);\n Choreography chor = null;\n try {\n ... |
"public PRQAComplianceStatus invoke(File f, VirtualChannel channel) throws IOException, InterruptedException {\n Map<String, String> expandedEnvironment = expandEnvironment(report.getEnvironment(), report.getAppSettings(), report.getSettings());\n report.setEnvironment(expandedEnvironment);\n report.setWorkspa... |
"public JavaClass[] processObjectFactory(JavaClass objectFactoryClass, ArrayList<JavaClass> classes) {\n Map<String, org.eclipse.persistence.jaxb.xmlmodel.XmlRegistry.XmlElementDecl> elemDecls = new HashMap<String, org.eclipse.persistence.jaxb.xmlmodel.XmlRegistry.XmlElementDecl>();\n org.eclipse.persistence.jaxb... |
"private void processToken(Context context, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException {\n String token = request.getParameter(\"String_Node_Str\");\n RequestItem requestItem = requestItemService.findByToken(context, token);\n ... |
"static void doMining(Graph g, ArrayList<ArrayList<Integer>> sets) {\n for (ArrayList<Integer> W : sets) {\n counter.clear();\n for (Integer v : W) {\n Node n = g.nodes.get(v);\n for (int i = 0; i < n.edgeIds.size(); i++) {\n Integer eid = n.edgeIds.get(i);\n ... |
"public static String getFriendlyName(Device d) {\n return d != null ? d.getDetails().getFriendlyName() : null;\n}\n"
|
"public void testMultipleItemsInArray() {\n StringBuilder sb = new StringBuilder();\n LastItemCaller lic = new LastItemCaller();\n ItemHandler<String> itemProcessor = getItemProcessor(sb, lic);\n ItemProcessor.process(itemProcessor, \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Nod... |
"private void runClassLearningAlgorithms(SparqlEndpointKS ks, NamedClass nc) throws ComponentInitException {\n for (Class<? extends LearningAlgorithm> algorithmClass : classAlgorithms) {\n if (algorithmClass == CELOE.class) {\n applyCELOE(ks, nc, false, false);\n applyCELOE(ks, nc, true,... |
"public boolean performFinish() {\n List<DemoProjectBean> checkedElements = getCheckedElements();\n final List<ResourcesManager> finalCheckManagers = getResourceManagers(checkedElements);\n if (populateExistItemRecords(finalCheckManagers)) {\n MessageDialog dialog = new MessageDialog(getShell(), Message... |
"public static void newPriceCategory(String priceCategoryStr) {\n try {\n int i = DBConnection.statement.executeUpdate(\"String_Node_Str\" + priceCategoryData + \"String_Node_Str\");\n System.out.println(\"String_Node_Str\" + i + \"String_Node_Str\");\n } catch (SQLException e) {\n e.printSta... |
"public void add(Session session, Row row) throws SQLException {\n if (trace.isDebugEnabled()) {\n trace.debug(\"String_Node_Str\" + row.getKey());\n }\n SearchRow newRow = getSearchRow(row);\n while (true) {\n PageBtree root = getPage(rootPageId);\n int splitPoint = root.addRowTry(newR... |
"private static void purge() {\n SQLiteDatabase db = getWritableDb();\n db.beginTransaction();\n try {\n int numPostsDeleted = ReaderPostTable.purge(db);\n if (numPostsDeleted > 0) {\n AppLog.i(T.READER, String.format(Locale.ENGLISH, \"String_Node_Str\", numPostsDeleted));\n ... |
"private void fillDefaultsWhenHiveModeChanged(boolean isEmbeddedMode) {\n if (isCreation && isNeedFillDefaults()) {\n IHDistribution hiveDistribution = getCurrentHiveDistribution(false);\n if (hiveDistribution == null) {\n return;\n }\n IHDistributionVersion hiveVersion = hiveD... |
"public void render(final StringBuilder sb, Entity<?> en) {\n if (null != en) {\n EntityField ef = en.getField(name);\n sb.append(null != ef ? ef.getColumnName() : name);\n } else\n sb.append(name);\n if (\"String_Node_Str\".equals(op) || \"String_Node_Str\".equals(op)) {\n sb.appen... |
"private void redrawCards() {\n if (cards == null) {\n cards = new CardsView();\n }\n currentView.loadCards(cards, sortSetting, bigCard, gameId);\n}\n"
|
"private void updateIRQ(int pos, int change) {\n int ifg = pos == 0 ? ifg1 : ifg2;\n int ie = pos == 0 ? ie1 : ie2;\n pos = pos * 8;\n for (int i = 0; i < 8; i++) {\n if ((change & 1) == 1) {\n if (sfrModule[pos] != null && !irqTriggered[irqVector[pos]]) {\n if (DEBUG)\n ... |
"public boolean apply(Game game, Ability source) {\n Permanent permanent = game.getPermanent(source.getFirstTarget());\n if (permanent == null) {\n return false;\n }\n permanent.moveToExile(null, null, source.getSourceId(), game);\n UUID controllerId = permanent.getControllerId();\n for (UUID o... |
"public CompletableFuture<Model> openRepository(String repoId) {\n if (repoStore.isRepoStored(repoId)) {\n return repoStore.loadRepository(repoId).thenCompose(this::updateModel).exceptionally(HTLog.withResult(new Model(RepositoryId.createFromId(repoId))));\n } else {\n return repoSource.downloadRepo... |
"public void testExtensionAllowedUnits() throws Exception {\n MetaDataDictionary dd = MetaDataDictionary.getInstance();\n ExtensionElementDefn extDefn = (ExtensionElementDefn) dd.getExtension(TESTING_TABLE);\n IPropertyDefn defn = extDefn.getProperty(\"String_Node_Str\");\n IChoiceSet set = defn.getAllowedU... |
"public LocatableInputSplit getNextInputSplit(String host, int taskId) {\n if (host == null) {\n synchronized (this.remoteSplitChooser) {\n synchronized (this.unassigned) {\n LocatableInputSplitWithCount split = this.remoteSplitChooser.getNextUnassignedMinLocalCountSplit(this.unassig... |
"public void testDeleteOperationIsDelegatedCorrectly() {\n RestRequest restRequest = new RestRequest().setFilter(new PodioFilter()).setOperation(RestOperation.DELETE);\n target.enqueue(restRequest);\n TestUtils.blockThread(40);\n assertEquals(false, result.isAuthorizeCalled);\n assertEquals(true, result.... |
"private void recursiveScopeSetup(Map<Node, List<Node>> aTree, Node aParent) {\n List<Node> children = aTree.get(aParent);\n if (children != null && children.size() > 0) {\n if (aParent instanceof Scope && !(aParent instanceof AstRoot)) {\n Scope scope = (Scope) aParent;\n scope.setPa... |
"private final void resetAffinityTaskIfNeededLocked(TaskRecord affinityTask, TaskRecord task, boolean topTaskIsHigher, boolean forceReset, ActivityRecord taskTop) {\n int replyChainEnd = -1;\n final int taskId = task.taskId;\n final String taskAffinity = task.affinity;\n final ArrayList<ActivityRecord> acti... |
"protected void onDraw(Canvas canvas) {\n super.onDraw(canvas);\n if (check) {\n if (step < 11)\n step++;\n } else {\n if (step >= 0)\n step--;\n if (step == -1)\n changeBackground();\n }\n Rect src = new Rect(40 * step, 0, (40 * step) + 40, 40);\n ... |
"public synchronized String getOutput() {\n while (_outputValues.size() < 1 && !_stopRequested) {\n try {\n workspace().wait(this);\n } catch (InterruptedException ex) {\n }\n }\n if (_stopRequested) {\n return (\"String_Node_Str\");\n } else {\n return ((String... |
"public void showOrHideErrorMessage() {\n Activity currentActivity = getActivity();\n if (currentActivity instanceof CommCareSetupActivity) {\n String msg = ((CommCareSetupActivity) currentActivity).getErrorMessageToDisplay();\n if (msg != null && !\"String_Node_Str\".equals(msg)) {\n mEr... |
"public static boolean isInProgress(Stream stream) throws CleartoolException {\n String cmd = \"String_Node_Str\" + stream;\n try {\n String result = Cleartool.run(cmd).stdoutBuffer.toString();\n logger.fine(result);\n if (result.contains(\"String_Node_Str\")) {\n logger.fine(Strin... |
"protected void __init(HttpServletRequest request) throws Exception {\n if (ParameterAccessor.isGetImageOperator(request)) {\n return;\n }\n this.category = \"String_Node_Str\";\n this.masterPageContent = ParameterAccessor.isMasterPageContent(request);\n this.isDesigner = ParameterAccessor.isDesig... |
"public void buildMaterial() {\n mat = new Material(am, \"String_Node_Str\");\n Texture2D alpha0 = new Texture2D(new Image(Image.Format.RGBA8, atlas.getWidth(), atlas.getHeight(), atlas.getBuffer(0)));\n mat.setTexture(\"String_Node_Str\", alpha0);\n Texture2D alpha1 = new Texture2D(new Image(Image.Format.R... |
"public int read(final byte[] b, final int off, int len) throws IOException {\n if (len == 0) {\n return 0;\n }\n final Queue<Pair<ByteBuffer, BufferReturn>> queue = this.queue;\n synchronized (this) {\n while (queue.isEmpty()) {\n if (eof) {\n return -1;\n ... |
"private void writeToFile(String content) throws FileNotFoundException {\n BufferedOutputStream stream = new BufferedOutputStream(new FileOutputStream(file.getAbsoluteFile()));\n try {\n stream.write(content.getBytes());\n } catch (IOException e) {\n Assert.fail(\"String_Node_Str\");\n } final... |
"protected void configure() {\n install(new FactoryModuleBuilder().build(SingletonFactory.class));\n}\n"
|
"private String normalizeAccess(FieldAccess fr) {\n String prefix = \"String_Node_Str\";\n if (fr.getFirstChild() instanceof FieldRead) {\n FieldRead fieldRead = (FieldRead) fr.getFirstChild();\n }\n if (fr.getType() == null && \"String_Node_Str\".equals(fr.getName()))\n prefix = \"String_Node... |
"public Body createBody(World world, PhysicsBodyComponent physicsComponent, Vector2[][] minPolygonData, Vector2 mulVec) {\n FixtureDef fixtureDef = new FixtureDef();\n if (physicsComponent != null) {\n fixtureDef.density = physicsComponent.density;\n fixtureDef.friction = physicsComponent.friction;\... |
"private void setAttributes() {\n if (mColor != 0) {\n mIcon.color(mColor);\n }\n if (mSize != -1) {\n mIcon.sizePx(mSize);\n }\n if (mPadding != -1) {\n mIcon.paddingPx(mPadding);\n }\n if (mContourColor != 0) {\n mIcon.contourColor(mContourColor);\n }\n if (mCont... |
"void replaceTextfieldText(int oldStart, int oldEnd, String replace, int newStart, int newEnd) {\n HashMap arg = new HashMap();\n arg.put(\"String_Node_Str\", new WebViewCore.FocusData(mFocusData));\n arg.put(\"String_Node_Str\", replace);\n arg.put(\"String_Node_Str\", Integer.valueOf(newStart));\n arg.... |
"private void _testPreStartedSlaveServer() {\n Connection conn = null;\n String db = slaveDatabasePath + FS + ReplicationRun.slaveDbSubPath + FS + replicatedDb;\n String connectionURL = \"String_Node_Str\" + \"String_Node_Str\" + slaveServerHost + \"String_Node_Str\" + slaveServerPort + \"String_Node_Str\" + d... |
"public void compareAndSwap(byte[] row, byte[] column, byte[] expectedValue, byte[] newValue, ReadPointer readPointer, long writeVersion) throws OperationException {\n byte[] expectedPrependedValue = null;\n KeyValue latestVisibleKV = null;\n try {\n Get get = new Get(row);\n get.addColumn(this.f... |
"public void testGetBibles() throws Exception {\n BookFilter filter = BookFilters.both(BookFilters.getFaster(Books.SPEED_SLOWEST), BookFilters.getBibles());\n List lbmds = Books.getBooks(filter);\n BibleMetaData[] names1 = (BibleMetaData[]) lbmds.toArray(new BibleMetaData[lbmds.size()]);\n RemoteMethod meth... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.