content stringlengths 40 137k |
|---|
"private static Widget getDevelopersContributorsPanel() {\n final Grid grid = new Grid(2, 2);\n grid.setCellPadding(0);\n grid.setCellSpacing(0);\n grid.addStyleName(\"String_Node_Str\");\n grid.setText(0, 0, I18N.CONSTANTS.sigmah_developers());\n grid.getCellFormatter().addStyleName(0, 0, \"String_No... |
"public void parse(ModelCriterion criterion, boolean _default) {\n if (!(criterion instanceof ModelLDiversityCriterion)) {\n return;\n }\n ModelLDiversityCriterion other = (ModelLDiversityCriterion) criterion;\n this.l = other.l;\n this.c = other.c;\n this.variant = other.variant;\n if (!_de... |
"private String makeNullParameters(int count) {\n if (count == 0) {\n return \"String_Node_Str\";\n }\n StringBuilder params = new StringBuilder();\n for (CtClass paramClass : paramClasses) {\n params.append(\"String_Node_Str\");\n }\n return params.substring(1).toString();\n}\n"
|
"protected List<SameTypePair<Integer>> doGenerateEdgesFaster() {\n int numberOfNodes = getConfiguration().getNumberOfNodes();\n int numberOfEdges = getConfiguration().getNumberOfEdges();\n long maxEdges = numberOfNodes * (numberOfNodes - 1) / 2;\n List<SameTypePair<Integer>> edges = new LinkedList<>();\n ... |
"private void setTreeNodeRow(FOXTreeNode root, String row) {\n if (root == null) {\n return;\n root.setRow(row);\n if (root instanceof Element) {\n Element element = (Element) root;\n List<FOXTreeNode> children = element.getElementChildren();\n for (FOXTreeNode child : children) {\n... |
"public void setup() throws ServerException, InvalidGrantException, NotFoundException {\n store = mock(ResourceSetStore.class);\n validator = mock(ResourceSetDescriptionValidator.class);\n OAuth2RequestFactory<Request> requestFactory = mock(OAuth2RequestFactory.class);\n Set<ResourceSetRegistrationListener>... |
"public void onSharedElementStart(List<String> sharedElementNames, List<View> sharedElements, List<View> sharedElementSnapshots) {\n LOG(\"String_Node_Str\", mIsReturning);\n if (!mIsReturning) {\n getWindow().setEnterTransition(makeEnterTransition(getSharedElement(sharedElements)));\n }\n}\n"
|
"public void setRepresentation(FilterVignetteRepresentation vignetteRep) {\n mVignetteRep = vignetteRep;\n Matrix toImg = getScreenToImageMatrix(false);\n Matrix toScr = new Matrix();\n toImg.invert(toScr);\n float[] c = new float[] { mVignetteRep.getCenterX(), mVignetteRep.getCenterY() };\n if (Float... |
"public void init(TreeViewer viewer, IStructuredSelection selection) {\n super.init(viewer, selection);\n boolean canWork = !selection.isEmpty() && selection.size() == 1;\n IProxyRepositoryFactory factory = ProxyRepositoryFactory.getInstance();\n if (factory.isUserReadOnlyOnCurrentProject()) {\n canW... |
"protected void handleTxFinally() throws OseeCoreException {\n if (success) {\n if (mergeBranch != null) {\n getDatabaseService().runPreparedUpdate(UPDATE_CONFLICT_STATUS, ConflictStatus.COMMITTED.getValue(), ConflictStatus.RESOLVED.getValue(), mergeBranch.getId());\n }\n }\n}\n"
|
"private List<Link> buildTree(SchemaDTO schema) {\n List<Link> list = new ArrayList<Link>();\n for (UserDatabaseDTO db : schema.getDatabases()) {\n if (db.getActivities().size() != 0) {\n Link dbLink = Link.folderLabelled(db.getName()).usingKey(databaseKey(db)).withIcon(IconImageBundle.ICONS.dat... |
"void addSubGroup(ContactGroupIcqImpl group) {\n addSubGroup(countContacts() + countSubgroups(), group);\n}\n"
|
"public void setJavaVersion(String version) {\n Globals.supportsJava(version);\n this.javaVersion = version;\n}\n"
|
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n requestPresenter(savedInstanceState == null ? null : savedInstanceState.getBundle(PRESENTER_STATE_KEY));\n}\n"
|
"public List addTabCompletionOptions(ICommandSender commandSender, String[] args) {\n switch(args.length) {\n case 1:\n {\n return getListOfStringsMatchingLastWord(args, new String[] { getLocalizedString(COMMAND_OVERLAY), getLocalizedString(COMMAND_PARTICLES), getLocalizedString(COMM... |
"private VmTypeInfo makeVmTypeInfo(final VmTypeInfo vmInfo, final int index, final VirtualBootRecord root) {\n VmTypeInfo childVmInfo = vmInfo;\n if (root.isBlockStorage()) {\n childVmInfo = vmInfo.child();\n final Volume vol = this.allocInfo.getPersistentVolumes().get(index);\n final Dispatc... |
"protected Tuple<InteractionResult, Double> interactWithOtherGroups() {\n double currentFoodReserve = getDataModel().getCurrentReservedFood();\n Tuple<InteractionResult, Double> interactionResult = new Tuple<InteractionResult, Double>();\n System.out.println(\"String_Node_Str\");\n System.out.println(this.g... |
"protected boolean act() {\n Dungeon.level.updateFieldOfView(this);\n if (state == HUNTING && enemy != null && Level.fieldOfView[enemy.pos] && Level.distance(pos, enemy.pos) < 5 && !Level.adjacent(pos, enemy.pos) && Random.Int(3) == 0 && chain(enemy.pos)) {\n return false;\n } else {\n return sup... |
"public void testQualityOfRelaxation() throws IOException {\n DmvModel goldModel = SimpleStaticDmvModel.getThreePosTagInstance();\n DmvDepTreeGenerator generator = new DmvDepTreeGenerator(goldModel, Prng.nextInt(1000000));\n DepTreebank goldTreebank = generator.getTreebank(100);\n System.out.println(goldTre... |
"static void generateJobs(Date timeToGenerateJobsFor) {\n final Iterable<Long> readyHarvestDefinitions = haDefinitionDAO.getReadyHarvestDefinitions(timeToGenerateJobsFor);\n for (final Long id : readyHarvestDefinitions) {\n if (harvestDefinitionsBeingScheduled.contains(id)) {\n String harvestNam... |
"protected void initEntityAI() {\n this.tasks.addTask(0, new EntityAISwimming(this));\n this.tasks.addTask(1, new EntityAIAvoidEntityOnLowHealth(this, EntityMob.class, 8.0F, 1D, 1D, 15F));\n this.tasks.addTask(1, new EntityAIAvoidEntityOnLowHealth(this, EntityAshen.class, 8.0F, 1D, 1D, 15F));\n this.tasks.a... |
"private void triggerBeforeHostChildAdded(Component child, Component insertBefore) {\n List<ShadowElement> shadowRoots = getShadowRoots();\n if (!shadowRoots.isEmpty()) {\n try {\n initIndexCacheMap();\n final int indexOfInsertBefore = insertBefore == null ? -1 : getChildren().indexOf... |
"public synchronized boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n final Fragment other = (Fragment) obj;\n if (this.getContainer() != other.getContainer() && (this.getContainer() == null || (this.getCont... |
"TemplateModel _getAsTemplateModel(Environment env) throws TemplateException {\n return new BIMethod(target.getCoercedStringValue(env, \"String_Node_Str\"));\n}\n"
|
"private void setName(String name, CommandSender sender) {\n Player p = (Player) sender;\n HumanNPC n = NPCManager.getNPC(NPCManager.NPCSelected.get(p.getName()));\n if (name.length() > 16) {\n sender.sendMessage(ChatColor.RED + \"String_Node_Str\");\n return;\n }\n plugin.handler.setName(n... |
"private void findJvmState(Collection<JvmState> result, File dataPath) {\n log.debug(\"String_Node_Str\", dataPath);\n File[] files = dataPath.listFiles();\n if (files != null) {\n for (File file : files) {\n if (file.isFile() && file.getName().equals(CollectorConfig.JVM_BASENAME)) {\n ... |
"public Ordered_hash Parse(byte[] raw) {\n Ordered_hash rv = Ordered_hash_.New_bry();\n Parse_flds(rv, Extract_flds(raw));\n return rv;\n}\n"
|
"protected void _initializeSchedule() throws IllegalActionException {\n _eventQueue.clear();\n _inputQueue.clear();\n ERGController controller = getController();\n if (_isInController()) {\n ERGModalModel modalModel = (ERGModalModel) getContainer().getContainer();\n _currentTime = modalModel.g... |
"public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n if (mMediaCapturePath != null && !mMediaCapturePath.equals(\"String_Node_Str\"))\n outState.putString(\"String_Node_Str\", mMediaCapturePath);\n}\n"
|
"private ParseTree parseMultiplicativeExpression() {\n SourcePosition start = getTreeStartLocation();\n ParseTree left = parseExponentiationExpression();\n while (peekMultiplicativeOperator()) {\n Token operator = nextToken();\n ParseTree right = parseExponentiationExpression();\n left = n... |
"public String toString() {\n return \"String_Node_Str\" + topN + \"String_Node_Str\" + this.acceptsDocsOutOfOrder() + (detail != null ? \"String_Node_Str\" + detail : \"String_Node_Str\") + \"String_Node_Str\";\n}\n"
|
"public Object convertObjectToImage(Object obj) {\n if (obj instanceof Image) {\n return obj;\n }\n if (obj instanceof DataHandler) {\n try {\n if (((DataHandler) obj).getContent() instanceof Image) {\n Image image = (Image) ((DataHandler) obj).getContent();\n ... |
"public static void compileCall(ArrayList<Command> ROM, CallStatement call) {\n ArrayList<Subroutine> oldsubs = new ArrayList<Subroutine>();\n oldsubs.addAll(subs);\n subs.clear();\n subs.addAll(call.cursubs);\n ArrayList<Command> tempROM = new ArrayList<Command>();\n ArrayList<Command> pointerROM = n... |
"public void unloadResource(String uriString) {\n List<Resource> resources = getResourceSet().getResources();\n synchronized (resources) {\n List<Resource> toRemove = new ArrayList<Resource>();\n for (Resource res : resources) {\n if (res != null && uriString.equals(res.getURI().toString(... |
"public void testLateRootAndChildTask() throws InterruptedException {\n final String rootTaskId = \"String_Node_Str\";\n final String[] childTaskIds = new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" };... |
"public static void testMultinomials1() throws IOException, ClassNotFoundException {\n Variables variables = new Variables();\n Variable varA = variables.newMultinomialVariable(\"String_Node_Str\", 2);\n DAG dag = new DAG(variables);\n BayesianNetwork bn = new BayesianNetwork(dag);\n bn.randomInitializat... |
"public boolean setPrice(String playerName, String companyName, int parPrice) {\n String errMsg = null;\n Player player = GameManager.getCurrentPlayer();\n StockSpaceI startSpace = null;\n while (true) {\n if (!playerName.equals(player.getName())) {\n errMsg = \"String_Node_Str\";\n ... |
"private void loadValues() {\n ConfigurationService configuration = NeomediaActivator.getConfigurationService();\n String format = configuration.getString(Recorder.FORMAT);\n formatsComboBox.setSelectedItem((format == null) ? SoundFileUtils.DEFAULT_CALL_RECORDING_FORMAT : format);\n savedCallsDir = configur... |
"public void handleSelection(String[] paths, String rootPath, boolean isRelative) {\n ClassPathElement[] elements = createClassPathElements(paths, rootPath, isRelative);\n helper.addClassPathElements(elements, true);\n if (folderPage != null) {\n folderPage.updateWizardPageStatus();\n if (folderP... |
"public void testSingleNode() {\n final int k = 1;\n final Config config = new Config();\n final HazelcastInstance[] instances = StaticNodeFactory.newInstances(config, k);\n ISemaphore semaphore = instances[0].getSemaphore(\"String_Node_Str\");\n int numberOfPermits = 20;\n Assert.assertTrue(semaphore... |
"private static Element createNodePropertiesAndTypes(Resource node, Resource nodeType, TNodeTemplate nodeTemplate, List<Object> types) throws NoPropertiesFoundException, RequiredResourceNotFoundException, MultiplePropertyValuesException, PropertiesTypesAlreadyExistsException {\n Element propertiesSeq = createTypes(n... |
"public static void experiment(boolean fullGraph) {\n long[] seeds = { 11, 21, 31, 41, 51, 61, 71, 81, 91, 101 };\n double[] cs = { 0.0001, 0.001, 0.01, 0.1, 1, 10, 100, 1000, 10000 };\n List<EvaluationFunction> evalFuncs = new ArrayList<EvaluationFunction>();\n evalFuncs.add(new Error());\n evalFuncs.ad... |
"public Object clone() throws CloneNotSupportedException {\n PreviewLabel label;\n label = (PreviewLabel) super.clone();\n label.addPropertyChangeListener(label);\n return label;\n}\n"
|
"public static Double toNumeric(Object o) {\n Double val = null;\n o = unpack(o);\n if (o instanceof Boolean) {\n val = new Double(((Boolean) o).booleanValue() ? 1 : 0);\n } else if (o instanceof Double) {\n val = (Double) o;\n } else if (o instanceof String) {\n String s = (String) ... |
"public boolean apply(Game game, Ability source) {\n Player player = game.getPlayer(source.getControllerId());\n ManaCostsImpl cost = new ManaCostsImpl(\"String_Node_Str\");\n if (player != null) {\n if (player.chooseUse(Outcome.Benefit, \"String_Node_Str\" + cost.getText() + \"String_Node_Str\", source... |
"public void controlEvent(ControlEvent event) {\n switch(event.getID()) {\n case ControlEvent.CONTROL_SINGLE_DOWNLOAD_FINISHED:\n lastDownloadFinished = (DownloadLink) event.getParameter();\n saveDownloadLinks(JDUtilities.getResourceFile(\"String_Node_Str\"));\n if (this.getMi... |
"public void handle(RoutingContext context) {\n String htmlName = \"String_Node_Str\";\n if (UserManager.isLogined(context)) {\n htmlName = \"String_Node_Str\";\n }\n DmsTemplate templates = new DmsTemplate(htmlName);\n try {\n context.response().setStatusCode(200);\n context.respons... |
"public final void occupyBuilding(IManageableWorker worker) {\n if (super.isNotDestroyed()) {\n this.worker = worker;\n super.placeFlag(true);\n }\n}\n"
|
"public void updateSlides(String chapterName, Chapter chapter) {\n index = 0;\n this.chapterName = chapterName;\n this.chapter = chapter;\n slidesPanel.clear();\n for (Presentable presentable : chapter) {\n Widget slideWidget = presentable.asWidget();\n slideWidget.setStyleName(\"String_Nod... |
"public void buildTableStyle(ITableContent table, StringBuffer styleBuffer) {\n addDefaultTableStyles(styleBuffer);\n IStyle style = table.getStyle();\n CSSValue display = style.getProperty(IStyle.STYLE_DISPLAY);\n if (IStyle.NONE_VALUE == display) {\n styleBuffer.append(\"String_Node_Str\");\n } ... |
"public void unsetIfLE(int index) {\n if (index / 8 >= bytes.length) {\n extend(index);\n }\n size = index + 1;\n}\n"
|
"private void propagate(SyncopeUser user, Resource resource, boolean merge) throws NoSuchBeanDefinitionException, IllegalStateException {\n ConnectorInstance connectorInstance = resource.getConnector();\n ConfigurableApplicationContext context = ApplicationContextManager.getApplicationContext();\n DefaultLista... |
"private QueryGuessCommand getGuessQueryCommand() {\n IMetadataTable newRepositoryMetadata = null;\n String realTableName = null;\n String realTableId = null;\n String schemaName = \"String_Node_Str\";\n if (elem.getPropertyValue(EParameterName.SCHEMA_TYPE.getName()).equals(EmfComponent.REPOSITORY)) {\n ... |
"public void testDestroyConnection() 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 CountDownLatch latch = new CountDownLatch(... |
"public static List<DiskImagingTask> getDiskImagingTasks(final AccountFullName owningAccount, final List<String> taskIdList) {\n synchronized (lock) {\n final List<DiskImagingTask> result = Lists.newArrayList();\n try (final TransactionResource db = Entities.transactionFor(DiskImagingTask.class)) {\n ... |
"public void testProcessMissingRequest() throws Exception {\n Settings.set(ArchiveSettings.DIR_ARCREPOSITORY_BITPRESERVATION, TestInfo.WORKING_DIR.getAbsolutePath());\n Settings.set(ArchiveSettings.DIRS_ARCREPOSITORY_ADMIN, TestInfo.WORKING_DIR.getAbsolutePath());\n AdminData.getUpdateableInstance();\n Mock... |
"private void updateFormatField() {\n String displayFormat;\n IChoiceSet choiceSet = getFormatChoiceSet(getSelectedDataType());\n if (choiceSet == null) {\n displayFormat = DEUtil.getMetaDataDictionary().getChoiceSet(DesignChoiceConstants.CHOICE_STRING_FORMAT_TYPE).findChoice(DesignChoiceConstants.STRIN... |
"public Response getConfigFile(String objectId) {\n InputSupplier<? extends InputStream> blob = gitConfigRepository.getBlob(objectId);\n if (blob == null) {\n return Response.status(Status.NOT_FOUND).build();\n }\n return Response.ok(new InputSupplierStreamingOutput(blob)).build();\n}\n"
|
"public MultivariateGaussian getGroundBelief() {\n if (!this.pathState.isOnRoad()) {\n return this.distribution;\n }\n if (this.groundBelief == null) {\n this.groundBelief = PathUtils.getGroundBeliefFromRoad(this.distribution, this.pathState.getEdge(), false, true);\n }\n return this.ground... |
"public void align(boolean lastLine, LayoutContext context) {\n assert (parent instanceof BlockContainerArea);\n CSSValue align = ((BlockContainerArea) parent).getTextAlign();\n boolean isRightAligned = BidiAlignmentResolver.isRightAligned(parent.content, align, lastLine);\n if ((isRightAligned || IStyle.CE... |
"public void run() {\n handle(new TeamException(e.getStatus()), UIText.BranchAction_errorSwitchingBranches, UIText.BranchAction_unableToSwitchBranches);\n}\n"
|
"private void startEnter() {\n if (mEnterTransitionCoordinator.isReturning()) {\n if (mExitingToView != null) {\n mEnterTransitionCoordinator.viewInstancesReady(mExitingFrom, mExitingTo, mExitingToView);\n } else {\n mEnterTransitionCoordinator.namedViewsReady(mExitingFrom, mExiti... |
"public void setName(String name) {\n this.name = name;\n synchronized (entries) {\n for (int i = 0; i < entries.size(); i++) {\n RosterPacket packet = new RosterPacket();\n packet.setType(IQ.Type.SET);\n RosterEntry entry = (RosterEntry) entries.get(i);\n Roster... |
"private List<String> populateObject(final GroovyObject obj, final Map<String, String> paramFieldMap, final Map<String, String> params) {\n final List<String> failedMappings = new ArrayList<String>();\n for (final Map.Entry<String, String> e : paramFieldMap.entrySet()) {\n try {\n if (getRecursi... |
"protected void setLabelInstanceId(ITextContent text) {\n if (text instanceof LabelContent) {\n Object genBy = text.getGenerateBy();\n if (genBy != null && genBy instanceof LabelItemDesign) {\n boolean isTempValue = ((LabelItemDesign) genBy).getHandle().isTemplateParameterValue();\n ... |
"public DescribeSecurityGroupsResponseType describe(final DescribeSecurityGroupsType request) throws EucalyptusCloudException, MetadataException {\n final DescribeSecurityGroupsResponseType reply = request.getReply();\n final Context ctx = Contexts.lookup();\n NetworkGroups.createDefault(ctx.getUserFullName())... |
"protected String createOptionnalFurtherInformationRecord(BankOrderLine bankOrderLine) throws AxelorException {\n try {\n BankDetails receiverBankDetails = bankOrderLine.getReceiverBankDetails();\n String totalRecord = cfonbToolService.createZone(\"String_Node_Str\", \"String_Node_Str\", cfonbToolServi... |
"public void exec() throws UnableToCompleteException {\n List<String> entryMethodNames = new ArrayList<String>();\n for (JMethod entryMethod : program.getEntryMethods()) {\n flowInto(entryMethod);\n entryMethodNames.add(entryMethod.getJsniSignature(true, true));\n }\n List<String> rootTypeBina... |
"public SparseArray<String> getUnreadItemCountForFolder(Context mContext) {\n String buildSQL = \"String_Node_Str\" + RSS_ITEM_RSSITEM_ID + \"String_Node_Str\" + \"String_Node_Str\" + RSS_ITEM_TABLE + \"String_Node_Str\" + \"String_Node_Str\" + SUBSCRIPTION_TABLE + \"String_Node_Str\" + RSS_ITEM_SUBSCRIPTION_ID + \"... |
"public final void configureDestruction(final int defaultTime, final DateField defaultTimeUnit, final int maxTime, final DateField maxTimeUnit, final boolean allowModif) {\n InputParamController controller = inputParamControllers.get(UWSJob.PARAM_DESTRUCTION_TIME);\n DestructionTimeController destructionControlle... |
"public ScenarioInstance run(ScenarioDefinition scenario) {\n ScenarioInstance scenarioInstance = PersistenceProviderFactory.createScenarioInstance(scenario, getConfiguration().getProperty(IConfiguration.CONF_MEASUREMENT_CONTROLLER_URI).toString());\n persistenceProvider.store(scenarioInstance);\n experimentCo... |
"private boolean processEnvelopeEnvelopeWithoutBuffer(final TransferEnvelope transferEnvelope, final TransferEnvelopeReceiverList receiverList) {\n final Iterator<ChannelID> localIt = receiverList.getLocalReceivers().iterator();\n while (localIt.hasNext()) {\n final ChannelID localReceiver = localIt.next()... |
"private void rebuildAll(byte[][] buffer) {\n CircleDrawer drawer = new CircleDrawer(buffer) {\n protected int convertY(int mapy) {\n if (mapy < map.getHeight()) {\n return mapy;\n } else {\n return -1;\n }\n }\n };\n for (int x = 0; ... |
"public void consumer() {\n var strings = List.of(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n final var result = new ArrayList<String>();\n var consumer = new Consumer<String>() {\n public void accept(String each) {\n result.add(each.toUpperCase());\n }\n };\n ... |
"protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {\n int ownMaxHeight = mMaxViewHeight;\n int heightMode = MeasureSpec.getMode(heightMeasureSpec);\n boolean hasFixedHeight = heightMode == MeasureSpec.EXACTLY;\n boolean isHeightLimited = heightMode == MeasureSpec.AT_MOST;\n if (hasFi... |
"public void checkCollectForumPost() throws IOException, URISyntaxException {\n CourseVO course = functionalVOUtil.importAllElementsCourse(deploymentUrl);\n Assert.assertTrue(functionalUtil.login(browser, user.getLogin(), user.getPassword(), true));\n Assert.assertTrue(functionalCourseUtil.postForumMessage(bro... |
"public void onCreatureSpawn(CreatureSpawnEvent event) {\n if (event.isCancelled()) {\n return;\n if (event.getSpawnReason() == SpawnReason.SPAWNER)\n ecoEntityUtil.setSpawnerMob(event.getEntity());\n}\n"
|
"public Map<String, Build> loadJenkinsRssLatestBuilds(JenkinsConfiguration configuration) throws Exception {\n URL url = urlBuilder.createRssLatestUrl(configuration.getServerUrl());\n String rssData = securityClient.execute(url);\n Document doc = getXMLBuilder().build(new CharSequenceReader(rssData));\n ret... |
"public final boolean differsFrom(JSType that) {\n return !checkEquivalenceHelper(that, EquivalenceMethod.DATA_FLOW, EqCache.create());\n}\n"
|
"public static IRepositoryViewObject getRoutineFromName(String name) {\n if (name == null)\n return null;\n IProxyRepositoryFactory factory = CorePlugin.getDefault().getProxyRepositoryFactory();\n try {\n List<IRepositoryViewObject> all = factory.getAll(tempProject, ERepositoryObjectType.ROUTINES... |
"public InputStream getInputStream() {\n if (filesize == 0) {\n return new ByteArrayInputStream(new byte[] {});\n }\n try {\n logOn();\n InputStream in = currentFTPClient.retrieveFileStream(ftpFileName);\n if (in == null) {\n throw new IOFailure(\"String_Node_Str\" + getF... |
"public String getConnects() {\n if (serviceContext.supportsConnects()) {\n Collection<String> connects = serviceContext.getConnects();\n return connects == null ? \"String_Node_Str\" : new JSONArray(connects).toString();\n } else {\n return null;\n }\n}\n"
|
"public String getDetailMessage(String messagePrefix, String message, boolean catastrophe, boolean forciblyRunRemotely) {\n TerminationStatus status = new TerminationStatus(exitCode(), status() == Status.TIMEOUT);\n String reason = \"String_Node_Str\" + status.toShortString() + \"String_Node_Str\";\n String ex... |
"public Resource getResource(URI uri, boolean loadOnDemand) {\n Resource demanded = uriCache.get(uri);\n if (demanded == null) {\n final EPackage ePackage = getPackageRegistry().getEPackage(uri.toString());\n if (ePackage != null) {\n demanded = ePackage.eResource();\n demanded... |
"public boolean needsToCache(IBaseDataSetDesign dataSetDesign, int cacheOption, int alwaysCacheRowCount) {\n return needsToDteCache(dataSetDesign) || needsToJVMCache(dataSetDesign, cacheOption, alwaysCacheRowCount);\n}\n"
|
"protected java.sql.Date convertObjectToSQLDate(Object sourceObject, QName schemaTypeQName) {\n if (sourceObject instanceof String) {\n Date date = convertStringToDate((String) sourceObject, schemaTypeQName);\n return new java.sql.Date((date.getTime() / 1000) * 1000);\n }\n return convertObjectTo... |
"public boolean apply(T arg0) {\n Context ctx = Contexts.lookup();\n if (ctx.hasAdministrativePrivileges()) {\n return true;\n } else {\n Class<? extends BaseMessage> msgType = ctx.getRequest().getClass();\n Class<?> rscType = arg0.getClass();\n Ats ats = Ats.inClassHierarchy(rscTyp... |
"public void removeApplicationPolicyInInformationModel(String applicationId) throws InvalidPolicyException {\n if (applicationPolicyListMap.containsKey(applicationId)) {\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\" + applicationPolicyId);\n }\n applicationPolicyListMa... |
"public void checkCrypto() {\n MXFileCryptoStore fileCryptoStore = new MXFileCryptoStore();\n fileCryptoStore.initWithCredentials(mAppContent, mCredentials);\n if ((fileCryptoStore.hasData() || mEnableCryptoWhenStartingMXSession) && (null == mCrypto)) {\n boolean isStoreLoaded = false;\n try {\n ... |
"public synchronized void saveRandomMap(MapFileHeader header, String definition) throws IOException {\n OutputStream out = getOutputStream(header, mapsDir);\n MapSaver.saveRandomMap(header, definition, out);\n loadFileList();\n}\n"
|
"public void testAuthorizationForSystemArtifacts() throws Exception {\n SecurityRequestContext.setUserId(Principal.SYSTEM.getName());\n artifactRepository.addSystemArtifacts();\n SecurityRequestContext.setUserId(ALICE.getName());\n try {\n artifactRepository.addSystemArtifacts();\n Assert.fail... |
"public void shouldEstablishMultipleConnections() throws Exception {\n final IoHandler handler1 = context.mock(IoHandler.class, \"String_Node_Str\");\n final IoHandler handler2 = context.mock(IoHandler.class, \"String_Node_Str\");\n context.checking(new Expectations() {\n {\n oneOf(handler1).... |
"public boolean runCollection(String colFilename, String envFilename, String folderName, boolean haltOnError) throws Exception {\n System.out.println(\"String_Node_Str\");\n PostmanRunResult runResult = new PostmanRunResult();\n PostmanReader reader = new PostmanReader();\n PostmanCollection c = reader.read... |
"public boolean getInheritanceCount(String modelName) {\n CompilerResult getInheritanceCountResult = null;\n String inheritanceCount = null;\n try {\n getInheritanceCountResult = sendCommand(\"String_Node_Str\" + modelName + \"String_Node_Str\");\n } catch (ConnectException e) {\n new ConnectE... |
"public Map<String, String> getColumns(TableUniqueName table) throws VerdictException {\n Map<String, String> col2type = new LinkedHashMap<String, String>();\n List<Row> rows = executeSparkQuery(\"String_Node_Str\" + table).collectAsList();\n for (Row row : rows) {\n String column = row.getString(0);\n ... |
"private void sendItem(PipeTransportItems transport, ItemStack itemStack, EnumFacing direction) {\n Vec3 pos = Utils.convert(transport.container.getPos());\n pos = pos.addVector(0.5, TransportUtils.getPipeFloorOf(itemStack), 0.5);\n TravelingItem newItem = TravelingItem.make(pos, itemStack);\n transport.inj... |
"private void toSql(SqlgGraph sqlgGraph, SchemaTableTree schemaTableTree, StringBuilder result, int depth) {\n if (!this.hasContainers.isEmpty()) {\n boolean first = true;\n for (HasContainer h : this.hasContainers) {\n if (!SqlgUtil.isBulkWithin(sqlgGraph, h)) {\n if (first) ... |
"public SWTBotMenu contextMenu(String label) throws WidgetNotFoundException {\n EventContextMenuFinder finder = new EventContextMenuFinder();\n try {\n finder.register();\n notify(SWT.MenuDetect);\n Matcher<MenuItem> withMnemonic = withMnemonic(label);\n List<MenuItem> menus = finder.f... |
"public List<T> getResult() {\n Analyzer<T> analyzer = pool.get();\n return analyzer.getResult();\n}\n"
|
"private IBaseOperationOutcome createOperationOutcome(Throwable theException, FhirContext ctx) throws ServletException {\n IBaseOperationOutcome oo = null;\n if (theException instanceof BaseServerResponseException) {\n oo = ((BaseServerResponseException) theException).getOperationOutcome();\n }\n if ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.