content
stringlengths
40
137k
"public void test_link_in_style() {\n ZBlock p = P(\"String_Node_Str\");\n assertEquals(\"String_Node_Str\", p.ele(0).getText());\n assertEquals(\"String_Node_Str\", p.ele(0).getHref().getValue());\n assertTrue(p.ele(0).getStyle().getFont().isBold());\n assertTrue(p.ele(0).getStyle().getFont().isItalic()...
"public alma.acs.alarmsystem.generated.Category[] loadCategories() throws Exception {\n if (conf == null) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n String xml;\n try {\n xml = conf.getConfiguration(CATEGORY_DEFINITION_PATH);\n } catch (Throwable t) {\n throw new...
"protected List<String> load() {\n return schemaRestClient.getVirtualSchemaNames(\"String_Node_Str\");\n}\n"
"private void addTableGenerator(ApplicationMetadata appMetadata, String persistenceUnit, List<TableInfo> tableInfos, EntityMetadata entityMetadata, Class idClassName, String idName, boolean isCompositeId) {\n Metamodel metamodel = appMetadata.getMetamodel(persistenceUnit);\n IdDiscriptor keyValue = ((MetamodelImp...
"public void run() {\n initHeader();\n initTree();\n add(new JScrollPane(tree), BorderLayout.CENTER);\n add(foundPanel, BorderLayout.SOUTH);\n setSize(750, 640);\n setLocationRelativeTo(null);\n}\n"
"public void disableWhenRoleIsSuperadmin(final ViewDefinitionState state) {\n FieldComponent role = (FieldComponent) state.getComponentByReference(\"String_Node_Str\");\n if ((form.getEntityId() != null) && QcadooUsersConstants.ROLE_SUPERADMIN.equals(role.getFieldValue())) {\n role.setEnabled(false);\n ...
"private IdEObject copy(EClass originalEClass, IdEObject original) throws IfcModelInterfaceException {\n if (!((IdEObjectImpl) original).isLoadedOrLoading()) {\n return null;\n }\n if (converted.containsKey(original)) {\n return converted.get(original);\n }\n IdEObject newObject = (IdEObjec...
"public void testEmptyDocument() {\n try {\n IDocArchiveWriter archive = new FileArchiveWriter(REPORT_DOCUMENT);\n ReportDocumentWriter document = new ReportDocumentWriter(engine, archive);\n TOCTree tree = new TOCTree();\n document.saveTOC(tree);\n HashMap bookmarks = new HashMap(...
"private int getLineStartPos(int line, int left, int right) {\n Alignment align = getParagraphAlignment(line);\n int dir = getParagraphDirection(line);\n if (align == Alignment.ALIGN_LEFT) {\n align = (dir == DIR_LEFT_TO_RIGHT) ? Alignment.ALIGN_NORMAL : Alignment.ALIGN_OPPOSITE;\n } else if (align =...
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n if (controller == null) {\n return false;\n }\n for (UUID playerId : controller.getInRange()) {\n Cards playerLibrary = new CardsImpl();\n Player player = game.getPlayer(...
"private void writeFtpRecords(WARCWriter w, final CrawlURI curi, final URI baseid, final String timestamp) throws IOException {\n ANVLRecord headers = new ANVLRecord(3);\n headers.addLabelValue(HEADER_KEY_IP, getHostAddress(curi));\n String controlConversation = curi.getString(A_FTP_CONTROL_CONVERSATION);\n ...
"public void testRAAggregation1() throws IOException, BirtException {\n CubeMaterializer materializer = new CubeMaterializer(null);\n IDocumentManager localDocManager = materializer.getDocumentManager();\n IDocumentManager oldManager = documentManager;\n documentManager = localDocManager;\n createCube1()...
"public void testAbstract() {\n IProgramElement node = model.getRoot();\n assertNotNull(node);\n IProgramElement aspect = AsmManager.getDefault().getHierarchy().findElementForType(null, \"String_Node_Str\");\n assertNotNull(aspect);\n String abst = \"String_Node_Str\";\n IProgramElement abstNode = mod...
"public static boolean removeAroundPoint(Player player, String ability, Location loc, double radius) {\n boolean removed = false;\n for (int i = 0; i < instances.size(); i++) {\n FireCombo combo = instances.get(i);\n if (combo.getPlayer().equals(player))\n continue;\n if (ability.e...
"public static boolean addPathToServiceFunctionStateExecutor(String pathName) {\n boolean ret = false;\n printTraceStart(LOG);\n Object[] servicePathObj = { pathName };\n Class[] servicePathClass = { String.class };\n SfcProviderServiceFunctionAPI sfcProviderServiceFunctionAPI = SfcProviderServiceFunctio...
"public Set<Blueprint> loadBlueprints(CbUser user) {\n Set<Blueprint> blueprints = new HashSet<>();\n Set<String> blueprintNames = getDefaultBlueprintNames(user);\n for (String blueprintStrings : blueprintArray) {\n String[] split = blueprintStrings.split(\"String_Node_Str\");\n if (!blueprintStr...
"protected void updateBackgroundImage() {\n BackgroundImageInfo bgi = boxStyle.getBackgroundImage();\n Image img = null;\n if (bgi != null) {\n String imageUrl = bgi.getUrl();\n try {\n img = Image.getInstance(new URL(bgi.getUrl()));\n } catch (Exception e) {\n if (Sv...
"public void newIndex(Comparable newValue, QueryableEntry record) {\n takeWriteLock();\n try {\n if (newValue instanceof IndexImpl.NullObject) {\n recordsWithNullValue.put(record.getIndexKey(), record);\n } else {\n ConcurrentMap<Data, QueryableEntry> records = recordMap.get(ne...
"public String create(String clinicVisitId, ClinicVisitUIModel clinicVisitUIModel, TreatmentAdvice treatmentAdvice, LabResultsUIModel labResultsUiModel, VitalStatistics vitalStatistics, OpportunisticInfectionsUIModel opportunisticInfections, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequ...
"public void tstEmptyConfigLocationsInMetaInf() {\n System.out.println(\"String_Node_Str\");\n Dictionary headers = new Hashtable();\n headers.put(\"String_Node_Str\", \"String_Node_Str\");\n EntryLookupControllingMockBundle aBundle = new EntryLookupControllingMockBundle(headers);\n aBundle.setResultsToR...
"public ITypedRegion[] computePartitioning(int offset, int length, boolean includeZeroLengthPartitions) {\n checkInitialization();\n List list = new ArrayList();\n try {\n int endOffset = offset + length;\n Position[] category = getPositions();\n TypedPosition previous = null, current = nu...
"public void testParseInvalid() {\n List<String> invalidRanges = Lists.newArrayList(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n for (String invalidRange : invalidRanges) {\n try {\...
"public final void makeSureAllSubtypesAreModified(Class<?> baseType, boolean registerCapturedClasses) {\n if (baseType == TypeVariable.class) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n String baseTypeDesc = Type.getInternalName(baseType);\n CapturedType captureMetadata = new C...
"public String doGet(String resourcePath, String userName, String passWord) {\n try {\n DefaultHttpClient httpClient = new DefaultHttpClient();\n HttpGet getRequest = new HttpGet(resourcePath);\n getRequest.addHeader(\"String_Node_Str\", \"String_Node_Str\");\n String userPass = userName ...
"public Set<TestCase> generateTestCases() {\n ImmutableSet.Builder<TestCase> testCaseBuilder = ImmutableSet.builder();\n allTargets.entrySet().forEach(entry -> {\n testCaseBuilder.addAll(ConstraintTestCaseFactory.createFromSparqlContraintInShape(entry.getKey(), entry.getValue()));\n shapesGraph.getC...
"protected void beforeTest() throws Exception {\n final ArezConfig.DynamicProvider provider = getConfigProvider();\n provider.setEnableNames(true);\n provider.setVerboseErrorMessages(true);\n provider.setCheckInvariants(true);\n provider.setPurgeReactionsWhenRunawayDetected(false);\n provider.setEnfor...
"public ObaReportProblemWithTripResponse call() {\n return callPostHack(ObaReportProblemWithTripResponse.class);\n}\n"
"private void summariseResults(HashMap<Integer, FilterCandidates> filterCandidates) {\n createTable();\n StoredDataStatistics distanceStats = new StoredDataStatistics();\n StoredDataStatistics depthStats = new StoredDataStatistics();\n createFilterCriteria();\n StoredDataStatistics[][] stats = new Stored...
"public void run() {\n boolean proceed = false;\n byte[] key = _file.getClientGUID();\n synchronized (UDP_FAILOVER) {\n Set files = (Set) UDP_FAILOVER.get(key);\n if (files != null && files.contains(_file.getFileName())) {\n proceed = true;\n files.remove(_file.getFileName()...
"public boolean apply(Game game, Ability source) {\n Player player = game.getPlayer(source.getControllerId());\n Player targetPlayer = game.getPlayer(source.getFirstTarget());\n if (player != null && targetPlayer != null) {\n List<Permanent> creatures = game.getBattlefield().getAllActivePermanents(new F...
"private void executeFilter(Filter filterStep, JavaRDD<Cells> rdd) throws ExecutionException, UnsupportedException {\n Relation relation = filterStep.getRelation();\n if (relation.getOperator().isInGroup(Operator.Group.COMPARATOR)) {\n SelectTerms selectTerms = filterFromWhereRelation(relation);\n Q...
"public ServerSocketFactory getServerSocketFactory() {\n if (Boolean.valueOf(System.getProperty(PROP_GLASSFISH_SOCKETFACTORY, \"String_Node_Str\"))) {\n return new GlassfishServerSocketFactory();\n } else {\n return new JSSE14SocketFactory();\n }\n}\n"
"public void clusterReset(boolean hard) {\n if (nodeIsSlave(server.myself)) {\n managers.nodes.clusterSetNodeAsMaster(server.myself);\n managers.replications.replicationUnsetMaster();\n }\n managers.slots.clusterCloseAllSlots();\n for (int i = 0; i < CLUSTER_SLOTS; i++) managers.slots.clusterD...
"private Variable appendBPELAssignOperationShScript(TemplatePlanContext templateContext, AbstractOperation operation, AbstractArtifactReference reference, AbstractImplementationArtifact ia) {\n Map<String, Variable> inputMappings = new HashMap<String, Variable>();\n String runShScriptString = \"String_Node_Str\" ...
"public void Lot(String[] args, User user) {\n if (args.length == 0) {\n user.sendMessage(ChatColor.YELLOW + \"String_Node_Str\");\n return;\n }\n if (args[0].equalsIgnoreCase(\"String_Node_Str\") || args[0].equalsIgnoreCase(\"String_Node_Str\") || args[0].equalsIgnoreCase(\"String_Node_Str\")) {...
"public int compare(Object e1, Object e2) {\n if (!(e1 instanceof Concept) || !(e2 instanceof Concept)) {\n throw new IllegalArgumentException(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + e1 + \"String_Node_Str\" + e2);\n }\n if ((e1 instanceof FiniteConcept) && (e2 instanceof Finit...
"protected void serializeLog(LogEntry log) throws IOException {\n o.startTag(ns, \"String_Node_Str\");\n try {\n o.attribute(null, \"String_Node_Str\", DateUtils.formatDateTime(log.getTime(), DateUtils.FORMAT_ISO8601));\n o.startTag(ns, \"String_Node_Str\");\n try {\n o.text(log.ge...
"private void outputCachedImage(String imageId, Image image, float x, float y, float width, float height) throws IOException {\n String imageName = getImageName(imageId, image);\n out.print(imageName + \"String_Node_Str\");\n out.print(x + \"String_Node_Str\" + y + \"String_Node_Str\");\n out.println(width ...
"public EObject getEObject(String uriFragment) {\n if (dataSource == null) {\n dataSource = getByRegistryOrCreateDataSource(null);\n }\n if (uriFragment != null) {\n final String key = getProxyKey(uriFragment);\n if (key != null) {\n return load(dataSource, key, getGraph());\n ...
"private boolean doInvalidate(long writePointer) {\n Set<ChangeId> previousChangeSet = committingChangeSets.remove(writePointer);\n InProgressTx previous = inProgress.remove(writePointer);\n if (previous != null || previousChangeSet != null) {\n invalidTxList.add(writePointer);\n if (previous == ...
"public void fieldSet(String fieldName) {\n setFields.add(fieldName.toLowerCase(Locale.US));\n}\n"
"public static Document parse(String fileName) throws DocumentException {\n InputStream is = null;\n try {\n is = XmlUtil.class.getResourceAsStream(\"String_Node_Str\" + fileName);\n Document document = parse(is);\n return document;\n } finally {\n if (is != null)\n try {...
"private static int compare(BranchAndSide branchAndSide1, BranchAndSide branchAndSide2) {\n Branch.Overload overload1 = branchAndSide1.getBranch().checkTemporaryLimits(branchAndSide1.getSide());\n Branch.Overload overload2 = branchAndSide2.getBranch().checkTemporaryLimits(branchAndSide2.getSide());\n float i1 ...
"public void updateFirmware(DeviceFirmware deviceFirmware) {\n System.out.println(CLASS_NAME + \"String_Node_Str\" + deviceFirmware.getDeviceId());\n final String INSTALL_LOG_FILE = \"String_Node_Str\";\n ProcessBuilder pkgInstaller = null;\n Process p = null;\n Properties prop = new Properties();\n t...
"public List validateForRenamingStyle(ThemeHandle theme, StyleHandle style, String styleName) {\n if (style.getName() == styleName || (styleName != null && styleName.equals(style.getName())))\n return Collections.EMPTY_LIST;\n List list = new ArrayList();\n StyleHandle tmpStyle = theme.findStyle(styleNa...
"public void addChangeListener(EventTarget component) {\n if (component instanceof Node) {\n ((Node) component).visibleProperty().addListener(VisibleChangeHandler.INSTACE);\n ((Node) component).idProperty().addListener(m_iDChangeListener);\n }\n Object children = ChildrenGetter.getAsRealType(comp...
"public TreeReference contextualize(TreeReference contextRef) {\n if (!contextRef.isAbsolute()) {\n return null;\n }\n TreeReference newRef = anchor(contextRef);\n newRef.setContext(contextRef.getContext());\n for (int i = 0; i < contextRef.size() && i < newRef.size(); i++) {\n if (TreeRefe...
"public void postFinish() throws IOException {\n for (IPath path : this.allDeletedItems) {\n IFile desIFile = ResourceService.file2IFile(path.toFile());\n if (desIFile != null && desIFile.getFileExtension().equals(FactoriesUtil.PROPERTIES_EXTENSION)) {\n Property property = PropertyHelper.ge...
"public void setGrowthStage(int stage) {\n if (this.hasPlant() || this.hasWeed()) {\n stage = MathHelper.inRange(stage, 0, Constants.MATURE);\n IBlockState state = worldObj.getBlockState(pos);\n state.withProperty(AgriCraftProperties.GROWTHSTAGE, stage);\n this.worldObj.setBlockState(pos,...
"public boolean isLeaf(ItemStack item) {\n if (item == null)\n return false;\n if (item.getItem() == null)\n return false;\n return (item.getItem().getUnlocalizedName().contains(\"String_Node_Str\"));\n}\n"
"public void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == GodotAndroidRequest.GODOT_SHARE_REQUEST) {\n GodotLib.calldeferred(instance_id, \"String_Node_Str\", new Object[] {});\n }\n}\n"
"public ResponseEntity queryIpWithMask(String ipAddr, String mask) {\n return queryIpAddress(ipAddr, mask, ipAddr + \"String_Node_Str\" + mask);\n}\n"
"protected IPropertySource<?> doCreatePropSource(XSDSimpleTypeDefinition simpleType, Composite cellEditorParent, Object sourceFacetValue) {\n if (Util.isDouble(simpleType) || Util.isDecimal(simpleType) || Util.isFloat(simpleType)) {\n return new SimpleTypeFacetDoublePropertySource(cellEditorParent, IConstants...
"protected double computeValue(Vector point) {\n return subProblemObjectiveFunction.getValue(point) + penaltyParameter * Math.pow(point.sub(consensusVariables).add(lagrangeMultipliers.div(penaltyParameter)).norm(VectorNorm.L2_FAST), 2) / 2;\n}\n"
"public void godot_initialize(final int instance_id) {\n activity.runOnUiThread(new Runnable() {\n public void run() {\n godotAndroidShare.init(instance_id);\n godotAndroidNetwork.init(instance_id);\n }\n };\n task.execute();\n}\n"
"private void sendOndemandCostAlert() {\n if (ondemandThreshold == null || StringUtils.isEmpty(fromEmail) || StringUtils.isEmpty(alertEmails) || endMilli < lastAlertMillis() + AwsUtils.hourMillis * 24)\n return;\n Map<Long, Map<Ec2InstanceReservationPrice.Key, Double>> ondemandCosts = getOndemandCosts(last...
"private void setup(GLElement child) {\n IGLElementParent ex = child.getParent();\n boolean doInit = ex == null;\n if (ex == this) {\n children.remove(child);\n } else if (ex != null) {\n doInit = !ex.moved(child);\n }\n GLElementAccessor.setParent(child, this);\n if (doInit && contex...
"public boolean checkTrigger(GameEvent event, Game game) {\n if (event.getType() == EventType.ZONE_CHANGE) {\n ZoneChangeEvent zEvent = (ZoneChangeEvent) event;\n if ((fromZone == null || zEvent.getFromZone() == fromZone) && (toZone == null || zEvent.getToZone() == toZone)) {\n Permanent per...
"public Object getValue(Object item, String property, int rowcount) {\n String value = \"String_Node_Str\";\n StudySubjectBean studySubjectBean = (StudySubjectBean) ((HashMap<Object, Object>) item).get(\"String_Node_Str\");\n Boolean isSignable = (Boolean) ((HashMap<Object, Object>) item).get(\"String_Node_Str...
"private static void convert(final InputStream in, final PrintStream out) throws IOException {\n out.print(\"String_Node_Str\");\n boolean dollar = false;\n for (int d; (d = in.read()) != -1; ) if (d == '$') {\n dollar ^= true;\n out.write(d);\n } else if (dollar)\n out.write(d);\n e...
"public static Scheduler blockingScheduler(Vertx vertx) {\n return new ContextScheduler(vertx.getDelegate().getOrCreateContext(), true);\n}\n"
"private int findMatchingDefEnd(List<SnippetPart> parts, int startAt) {\n int allTheRest = parts.size();\n for (int i = startAt; i < allTheRest; i++) {\n SnippetPart part = parts.get(i);\n if (part.isTag()) {\n String tagText = ((SnippetTag) part).getTag();\n int eqPos = tagTex...
"private void processNodes(Element ele, boolean needEscape, HashMap cssStyles, IContent content) {\n int level = 0;\n for (Node node = ele.getFirstChild(); node != null; node = node.getNextSibling()) {\n if (node.getNodeName().equals(\"String_Node_Str\")) {\n if (node.getFirstChild() instanceof ...
"private void interpColor4ub(byte[] c0, double t, byte[] c1, byte[] out, boolean hsv) {\n if (hsv) {\n byte[] tmp = new byte[4];\n RGBtoHSV(c0, tmp);\n tmp[3] = c0[3];\n RGBtoHSV(c1, out);\n out[3] = c1[3];\n for (int i = 0; i < 4; ++i) {\n out[i] = (byte) ((1 - t...
"boolean save() {\n String title = mTitle.getText().toString().trim();\n String unfilteredUrl = BrowserActivity.fixUrl(mAddress.getText().toString());\n boolean emptyTitle = title.length() == 0;\n boolean emptyUrl = unfilteredUrl.trim().length() == 0;\n Resources r = getResources();\n if (emptyTitle |...
"static void saveBaseQueryDefn(OutputStream outputStream, IBaseQueryDefinition queryDefn, int version) throws DataException {\n try {\n saveBinding(outputStream, queryDefn.getBindings(), version);\n FilterDefnUtil.saveFilterDefn(outputStream, queryDefn.getFilters(), version);\n GroupDefnUtil.sav...
"void refreshPoolsForMasterPool(Pool pool, boolean updateStackDerived, boolean lazy, Map<String, Product> changedProducts) {\n List<Pool> subscriptionPools;\n if (pool.getSubscriptionId() != null) {\n subscriptionPools = this.poolCurator.getPoolsBySubscriptionId(pool.getSubscriptionId()).list();\n } els...
"public void mergesSameFunderData() {\n List<Fund> funds = Arrays.asList(FundMother.fndFundFunderNotKnown().amountInWei(new BigDecimal(\"String_Node_Str\")).build(), FundMother.zrxFundFunderNotKnown().amountInWei(new BigDecimal(\"String_Node_Str\")).build(), FundMother.zrxFundFunderNotKnown().amountInWei(new BigDeci...
"public void testShouldExecuteOnDisconnect() throws Exception {\n HazelcastClient client = mock(HazelcastClient.class);\n InetSocketAddress inetSocketAddress = new InetSocketAddress(\"String_Node_Str\", 5701);\n final Connection connection = mock(Connection.class);\n final List<LifecycleState> lifecycleEven...
"public static boolean isOwnerEconomicallyActive(Inventory inventory) {\n return !ChestShopSign.isAdminShop(inventory) || NameManager.getServerEconomyAccount() != null;\n}\n"
"public void checkFlowRefLink(final INode graphicalNode) {\n if (checkRefList.contains(graphicalNode)) {\n return;\n }\n checkRefList.add(graphicalNode);\n for (IConnection connection : graphicalNode.getOutgoingConnections()) {\n if (connection.getTarget().getJobletNode() != null && connection...
"public static void readAndWriteExit(AnyType... args) {\n long current = System.nanoTime();\n elapse.addAndGet(current - vars.remove(args[0]));\n}\n"
"private void removeFile(final String f) {\n if (_files == null)\n loadUserFilesFromDB();\n for (UserFile uf : _files) {\n if (uf.getName().equals(f)) {\n _files.remove(uf);\n _db.deleteFile(uf);\n }\n }\n}\n"
"public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {\n BranchId branch = variableMap.getBranch(\"String_Node_Str\");\n IArtifactType artifactType = variableMap.getArtifactType(\"String_Node_Str\");\n List<Artifact> artifacts = ArtifactQuery.getArtifactListFromType(art...
"public CharSequence getStr() {\n throw new UnsupportedOperationException();\n}\n"
"protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception {\n if (logger.isDebugEnabled()) {\n logger.debug(\"String_Node_Str\", ByteUtil.createString(in));\n }\n ByteBuf data;\n if (previousBuf != null) {\n CompositeByteBuf cbuf = Unpooled.compositeBuffe...
"public void persist(Object e) {\n if (!validator.isValidEntityObject(e)) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n EntityMetadata metadata = getMetadata(e.getClass());\n getEventDispatcher().fireEventListeners(metadata, e, PrePersist.class);\n ObjectGraph graph = graphBui...
"private GProtocolDecl visitOverrideForGProtocolDecl(Module parent, GProtocolDecl child) throws ScribbleException {\n Job job = getJob();\n GProtocolDecl gpd = (GProtocolDecl) child;\n GProtocolName fullname = gpd.getFullMemberName(parent);\n Map<Role, EndpointState> fsms = new HashMap<>();\n for (Role s...
"protected boolean isYGroupingEnabled() {\n return ChartUtil.isSpecifiedYOptionalExpression(wizardContext.getModel());\n}\n"
"public void clean(ExtendedDeploymentContext context) throws Exception {\n super.clean(context);\n for (ModuleInfo info : reversedModules) {\n info.clean(getSubContext(info, context));\n info = null;\n }\n if (appClassLoader != null) {\n try {\n appServiceLocator.preDestroy(a...
"public void init() {\n log(LogService.LOG_DEBUG, \"String_Node_Str\");\n discoTrackerCustomizer = new DSTTracker(context);\n discoTracker = new ServiceTracker(context, DiscoveredServiceTracker.class.getName(), discoTrackerCustomizer);\n discoTracker.open();\n spTracker = new ServiceTracker(context, Serv...
"public boolean checkSatisfied(Id.Program programId, Schedule schedule) {\n Integer programThreshold = schedule.getRunRequirements().getConcurrentProgramRunsThreshold();\n if (programThreshold != null) {\n try {\n int max = programThreshold == Integer.MAX_VALUE ? Integer.MAX_VALUE : programThres...
"public void onPreExecute(View rootView) {\n this.rootView = rootView;\n mArticleTextView = (TextView) rootView.findViewById(R.id.article_body);\n mArticlePubDateView = (TextView) rootView.findViewById(R.id.pubDateView);\n mSubtitleLayout = (RelativeLayout) rootView.findViewById(R.id.subtitleLayout);\n m...
"public void actionPerformed(ActionEvent e) {\n super.actionPerformed(e);\n Query query = new Query();\n List refinements = _case.entityList(Refinement.class);\n if (refinements.size() < 2) {\n MessageHandler.error(\"String_Node_Str\");\n } else {\n String[] caseNames = new String[refinemen...
"public Connector render(Object edge, Site tailSite, Site headSite) {\n AbstractConnector c = new ArcConnector(tailSite, headSite);\n c.setHeadEnd(new Arrowhead());\n c.setLineWidth((float) 2.0);\n c.setUserObject(edge);\n Arc arc = (Arc) edge;\n Transition transition = (Transition) arc.getRelation();...
"protected MessageConsumer getMessageConsumer(MetaqTopic topic) throws MetaClientException {\n MessageConsumer consumer = this.getMessageConsumer0(topic);\n if (this.rejectConsumptionHandler != null) {\n consumer.setRejectConsumptionHandler(this.rejectConsumptionHandler);\n }\n}\n"
"public InlineResult doInline(CheckResult check) throws ActionException {\n changeToPublic(check.getChangePublic());\n InlineResult result;\n try {\n result = inliner.doInline(check);\n } catch (GraphException e) {\n throw new ActionException(\"String_Node_Str\" + check.getInvokedMethod().getF...
"private static void initMACProperties() {\n System.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n if (LookAndFeelController.getPlaf().getName().equals(\"String_Node_Str\")) {\n System.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n System.setProperty(\"String_Node_Str\", \"String...
"public BAMFileSpan getSpanOverlapping(final Bin bin) {\n if (bin == null)\n return null;\n final int referenceSequence = bin.getReferenceSequence();\n BAMIndexContent indexQuery = getQueryResults(referenceSequence);\n if (indexQuery == null)\n return null;\n final int binLevel = getLevelFo...
"private String getApiScope() {\n List<String> scopes = new ArrayList<>();\n if (configuration.readStation) {\n scopes.add(\"String_Node_Str\");\n }\n if (configuration.readThermostat) {\n scopes.add(\"String_Node_Str\");\n scopes.add(\"String_Node_Str\");\n }\n if (configuration....
"private void provisionWithBlueprint(final AmClusterDef clusterDef, final ClusterReportQueue reportQueue) throws SoftwareManagementPluginException {\n try {\n logger.info(\"String_Node_Str\" + clusterDef.getName() + \"String_Node_Str\" + clusterDef.getName());\n clusterDef.getCurrentReport().setAction(...
"public void launch() throws GenieException {\n LOG.info(\"String_Node_Str\");\n if (!this.isInitCalled()) {\n throw new GeniePreconditionException(\"String_Node_Str\");\n }\n final String prestoProtocol = ConfigurationManager.getConfigInstance().getString(PRESTO_PROTOCOL_KEY, null);\n if (prestoP...
"public void onDroneEvent(DroneInterfaces.DroneEventsType event, Drone drone) {\n final IDroidPlannerApiCallback callback = getCallback();\n Bundle extrasBundle;\n try {\n switch(event) {\n case DISCONNECTED:\n callback.onDroneEvent(Event.EVENT_DISCONNECTED, emptyBundle);\n ...
"public boolean isClosed() throws IOException {\n if (this.uncompressedDataBuffer != null) {\n return false;\n }\n synchronized (this.synchronisationObject) {\n if (this.ioException != null) {\n throw this.ioException;\n }\n if (!this.brokerAggreedToCloseChannel) {\n ...
"public Review getReview(int code) {\n DBConnector dbConnector = new DBConnector();\n ResultSet rs = null;\n Review review = null;\n try {\n rs = dbConnector.askDB(\"String_Node_Str\" + code + \"String_Node_Str\");\n while (rs.next()) {\n Date date = rs.getTimestamp(\"String_Node_St...
"public void widgetSelected(final SelectionEvent e) {\n count = 0;\n countSuccess = 0;\n countPending = 0;\n for (TreeItem catalogItem : tree.getItems()) {\n int type = ((TableNode) catalogItem.getData()).getType();\n if (type == TableNode.CATALOG) {\n for (TreeItem schemaItem : cat...
"private Coding buildCoding(String uri, String code) throws FHIRException {\n String system = null;\n ValueSet vs = worker.fetchResource(ValueSet.class, uri);\n if (vs != null) {\n ValueSetExpansionOutcome vse = worker.expandVS(vs, true, false);\n if (vse.getError() != null)\n throw ne...
"public void onSignInSucceeded() {\n authCallbackContext.success(\"String_Node_Str\");\n}\n"
"private void startUploadService() {\n uploadService = UploadWorker.getInstance(mContext, this);\n uploadService.start(mPublishJob);\n}\n"
"protected void fabClick() {\n super.fabClick();\n if (repoInfo.permissions != null) {\n openNewIssueActivity();\n }\n}\n"