content stringlengths 40 137k |
|---|
"public void testCursorOnCountry() throws OLAPException, BirtException {\n ICubeQueryDefinition cqd = new CubeQueryDefinition(CubeCreator.cubeName);\n cqd.createMeasure(\"String_Node_Str\");\n IEdgeDefinition columnEdge = cqd.createEdge(ICubeQueryDefinition.ROW_EDGE);\n IDimensionDefinition timeDim = column... |
"public boolean onItemUseFirst(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ) {\n Block block = world.getBlock(x, y, z);\n if (player.isSneaking()) {\n ITilePartHolder itph = MultipartCompatibility.getPartHolder(world, new Vec3i(x, y, z... |
"public DataSource buildAppDataSource(AppDBInfo dbInfo) throws LoadConfigException {\n DruidDataSource ds = new DruidDataSource();\n ds.setDriverClassName(dbInfo.getDbCatalog().getDriverClass());\n ds.setUsername(dbInfo.getUsername());\n ds.setPassword(dbInfo.getPassword());\n ds.setUrl(dbInfo.getUrl());... |
"private void renderChunk(Chunk chunk, ChunkMesh.RENDER_PHASE phase) {\n if (chunk.getChunkState() == Chunk.State.COMPLETE && chunk.getMesh() != null) {\n ShaderProgram shader = ShaderManager.getInstance().getShaderProgram(\"String_Node_Str\");\n shader.setFloat3(\"String_Node_Str\", (float) (chunk.get... |
"public List<NotifConfig> findEmailsAndNotificationTypesForGroupById(final int id) throws UniformInterfaceException {\n final List<NotifConfig> notifConfigs = new ArrayList<NotifConfig>();\n final List<NotifMapping> notifMappings = fetchObject(NOTIF_MAPPING_PATH + \"String_Node_Str\" + id, new GenericType<List<No... |
"protected ActionHandle getDefaultAction(ExtendedItemHandle handle, String expression) {\n ExpressionCodec exprCodec = ChartModelHelper.instance().createExpressionCodec();\n String bindingname = exprCodec.getBindingName(expression);\n if (bindingname == null) {\n return null;\n }\n CubeHandle cube... |
"public T getInstance() throws InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {\n final int modifiers = c.getModifiers();\n if (!Modifier.isPublic(modifiers)) {\n Errors.nonPublicClass(c);\n }\n if (Modifier.isAbstract(modifiers)) {\n if (Mo... |
"protected void prepare() throws DataException {\n this.rdGroupUtil = RDLoadUtil.loadGroupUtil(tempDir, streamManager, StreamManager.ROOT_STREAM, StreamManager.SELF_SCOPE);\n if (version >= VersionManager.VERSION_2_5_1_0) {\n aggrStreams = streamManager.getInStreams(DataEngineContext.AGGR_VALUE_STREAM, Str... |
"private void setData(int count, float range) {\n ArrayList<String> xVals = new ArrayList<String>();\n for (int i = 0; i < count; i++) {\n xVals.add(mMonths[i % 12]);\n }\n ArrayList<BarEntry> yVals1 = new ArrayList<BarEntry>();\n for (int i = 0; i < count; i++) {\n float mult = (range + 1)... |
"public void onFailure(Call<ServerRoute> call, Throwable t) {\n BusProvider.getBus().post(new ServerRouteLoadFailedEvent(t.getMessage()));\n}\n"
|
"public void freq2Cent(StringBuilder a, double f, String sFill) {\n a.setLength(0);\n if (f <= 0 || Double.isNaN(f) || Double.isInfinite(f)) {\n a.append(\"String_Node_Str\");\n return;\n }\n double p = 69 + 12 * Math.log(f / 440.0) / Math.log(2);\n int pi = (int) Math.round(p);\n int po... |
"private ChartWithAxes createDefaultChart(String exprMeasure, String[] exprDimensions) {\n ChartWithAxes cm = ChartWithAxesImpl.create();\n cm.setType(\"String_Node_Str\");\n cm.setSubType(\"String_Node_Str\");\n cm.setUnits(\"String_Node_Str\");\n cm.setUnitSpacing(50);\n cm.getLegend().setVisible(fa... |
"public Set<java.util.Map.Entry<K, V>> entrySet() {\n Map m;\n if (size > maxListFill) {\n m = innerMap;\n } else {\n m = makeMap();\n }\n return m.entrySet();\n}\n"
|
"public Resource fhir_datatype_restriction(Resource dataType, List<Resource> facets) {\n return fhir_datatype(dataType).addObjectProperty(OWL2.withRestrictions, new FHIRResource(model, facets)).resource;\n}\n"
|
"public static List<ResourcePolicy> getPoliciesActionFilter(Context c, DSpaceObject o, int actionID) throws SQLException {\n TableRowIterator tri = DatabaseManager.queryTable(c, \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\", o.getType(), o.getID(), actionID);\n List<ResourcePolicy> policies = new... |
"public void handleClient(Session session, EntityPositionMessage message) {\n if (!session.hasPlayer()) {\n return;\n }\n Entity entity;\n if (message.getEntityId() == session.getDataMap().get(SpoutProtocol.PLAYER_ENTITY_ID)) {\n entity = session.getPlayer();\n } else {\n entity = se... |
"public void setChildrenAssociationPolicy(ChildrenAssociationPolicy policy) {\n addField(ConfigureNodeFields.children_association_policy, FormField.TYPE_LIST_SINGLE);\n List<String> values = new ArrayList<String>(1);\n values.add(policy.toString());\n setAnswer(ConfigureNodeFields.children_association_polic... |
"public void preWindowOpen() {\n IWorkbenchWindowConfigurer configurer = getWindowConfigurer();\n configurer.setInitialSize(new Point(1024, 768));\n configurer.setShowCoolBar(true);\n configurer.setShowStatusLine(false);\n String buildId = CorePlugin.getDefault().getBundle().getHeaders().get(org.osgi.fra... |
"public static boolean itemsEqualWithMetadata(ItemStack stackA, ItemStack stackB, boolean checkNBT) {\n return itemsEqualWithMetadata(stackA, stackB) && (!checkNBT || doNBTsMatch(stackA.stackTagCompound, stackB.stackTagCompound));\n}\n"
|
"private GenderAppearance calculateGenderAppearance() {\n boolean visibleVagina = isCoverableAreaExposed(CoverableArea.VAGINA) && hasVagina();\n boolean visiblePenis = isCoverableAreaExposed(CoverableArea.PENIS) && hasPenis();\n boolean bulgeFromCock = hasPenis() && (hasPenisModifier(PenisModifier.SHEATHED) ? ... |
"private String wrapExecCmd(JobInstance job, String cmd, String suffix) {\n if (StringUtils.isBlank(cmd))\n return cmd;\n KylinConfig config = KylinConfig.getInstanceFromEnv();\n try {\n FileUtils.forceMkdir(new File(config.getKylinJobLogDir()));\n } catch (IOException e) {\n throw new ... |
"public List<SemanticException> validateForAddingGroup(ListingHandle element, String groupName) {\n List<GroupElement> groupList = Collections.emptyList();\n ListingElement targetElement = (ListingElement) element.getElement();\n if (targetElement == null) {\n targetElement = (ListingElement) element.ge... |
"public void setConnectionInfo(ModelResource modelResource, IConnectionProfile connectionProfile) throws ModelWorkspaceException {\n Properties connectionProps = getCommonProfileProperties(connectionProfile);\n Properties props = connectionProfile.getBaseProperties();\n String url = readEndPointProperty(props)... |
"public static final Parser<?> decl() {\n return null;\n}\n"
|
"public static void initialize(IModRegistry registry) {\n IJeiHelpers jeiHelpers = registry.getJeiHelpers();\n IGuiHelper guiHelper = jeiHelpers.getGuiHelper();\n registry.addRecipeHandlers(new DynamoFuelHandler());\n initSteam(registry, guiHelper);\n initMagmatic(registry, guiHelper);\n initCompressi... |
"public JSONWriter toTemplateJSONValue(final JSONWriter writer, String key, ComponentTypeFormElementValue formElementValue, PropertyDescription pd, DataConversion conversionMarkers, FlattenedSolution fs, FormElement formElement) throws JSONException {\n if (conversionMarkers != null)\n conversionMarkers.conve... |
"protected void initData(Composite dataComposite) {\n grpValues = new Group(dataComposite, SWT.NONE);\n grpValues.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 4, 1));\n grpValues.setText(RedisClient.i18nFile.getText(I18nFile.VALUES));\n grpValues.setLayout(new GridLayout(4, false));\n table... |
"public void doPreview() {\n final Chart chart = getPreviewChartModel();\n if (chart instanceof ChartWithAxes) {\n ChartAdapter.beginIgnoreNotifications();\n checkDataTypeForChartWithAxes();\n ChartAdapter.endIgnoreNotifications();\n } else {\n ChartWizard.removeAllExceptions(ChartW... |
"public void didSelectItem(UICollectionView collectionView, NSIndexPath indexPath) {\n UIImage image = UIImage.getImage(String.format(\"String_Node_Str\", indexPath.getRow()));\n detailViewController.setImage(image);\n getNavigationController().pushViewController(detailViewController, true);\n}\n"
|
"private void testDeriveAndSaveSortedNeighborPairs(final int zNeighborDistance, final int expectedNumberOfFiles) throws Exception {\n final String toJson = baseFileName + \"String_Node_Str\";\n final MockTilePairClient client = new MockTilePairClient(getTestParameters(zNeighborDistance, 3, toJson), 1.0, 2.0, 3.0,... |
"protected List<String> getComponentContext(Object component) {\n JavaFXHierarchyContainer parent;\n JavaFXHierarchyContainer comp;\n List<String> context = new ArrayList<String>();\n if (component instanceof JavaFXHierarchyContainer) {\n comp = (JavaFXHierarchyContainer) component;\n } else {\n ... |
"protected void initView() {\n mList = (List<LevideoData>) WeakDataHolder.getInstance().getData(\"String_Node_Str\");\n int position = getIntent().getIntExtra(\"String_Node_Str\", -1);\n mFragmentManager = getSupportFragmentManager();\n mCurrentItem = position;\n}\n"
|
"private void setContentTypeHeader(HttpServletResponse res, ReportFormat format, String filename) {\n switch(format) {\n case CSV:\n res.setContentType(\"String_Node_Str\");\n res.setHeader(\"String_Node_Str\", \"String_Node_Str\" + filename + \"String_Node_Str\");\n break;\n ... |
"public void replace_2arg() {\n SimpleCacheLoader<Integer> loader = new SimpleCacheLoader<Integer>();\n Cache<Integer, Integer> cache = getCacheManager().configureCache(getTestCacheName(), new MutableConfiguration<Integer, Integer>().setCacheLoaderFactory(Factories.of(loader)));\n Integer key = 1;\n Integer... |
"private void setupButton() {\n float pos = mHSVO[3] * (mWidth - mBorder * 2);\n mDotX = pos + mBorder;\n int[] colors3 = new int[] { mSliderColor, mSliderColor, 0x66000000, 0 };\n RadialGradient g = new RadialGradient(mDotX, mDotY, mDotRadius, colors3, new float[] { 0, .3f, .31f, 1 }, Shader.TileMode.CLAMP... |
"public org.hl7.fhir.dstu2.model.Composition.CompositionEventComponent convertCompositionEventComponent(org.hl7.fhir.dstu3.model.Composition.CompositionEventComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Composition.CompositionEventCompon... |
"private void ctorAddKnownGlobalSymbols() {\n String[] commonBuiltins = new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\",... |
"private void gendoc(IAction action) {\n System.clearProperty(IPreviewConstants.MAX_DATASET_ROWS);\n System.clearProperty(IPreviewConstants.MAX_CUBE_ROW_LEVELS);\n System.clearProperty(IPreviewConstants.MAX_CUBE_COLUMN_LEVELS);\n FormEditor editor = UIUtil.getActiveReportEditor(false);\n ModuleHandle mod... |
"public void mouseMoved(IMouseEvent mouseEvent) {\n Vec2f mousePosition = mouseEvent.getDIPPoint();\n if (pathwayRow.getVisibility() != EVisibility.NONE) {\n for (PathwayMultiFormInfo info : pathwayInfos) {\n if (setWindowActive(mousePosition, info.window))\n return;\n }\n ... |
"public BatchResult addBatch(String tableName, DBObjectBatch dbObjBatch) {\n Utils.require(!Utils.isEmpty(tableName), \"String_Node_Str\");\n Utils.require(dbObjBatch != null && dbObjBatch.getObjectCount() > 0, \"String_Node_Str\");\n try {\n byte[] body = Utils.toBytes(dbObjBatch.toDoc().toJSON());\n ... |
"private String _buildShardingCacheKey(String whereSql, ShardingDBResource shardingDBResource) {\n StringBuilder cacheKey = new StringBuilder(\"String_Node_Str\");\n cacheKey.append(shardingDBResource.getClusterName());\n cacheKey.append(\"String_Node_Str\");\n cacheKey.append(shardingDBResource.getDbName()... |
"public void startProposing() {\n final Set<ClientBatchID> decided = new HashSet<ClientBatchID>();\n final Set<ClientBatchID> known = new HashSet<ClientBatchID>();\n Storage storage = paxos.getStorage();\n if (logger.isLoggable(Level.FINE)) {\n logger.fine(\"String_Node_Str\" + storage.getFirstUncomm... |
"private boolean schedulePostponeEntry(long delayMillis, K key, V value) {\n final int delaySeconds = ceilToSecond(delayMillis);\n final Integer newSecond = findRelativeSecond(delayMillis);\n final Integer existingSecond = secondsOfKeys.put(key, newSecond);\n if (existingSecond != null) {\n if (exist... |
"public void testImportWizard() throws Exception {\n deleteAllProjects();\n assertProjectExistence(PROJ1, false);\n SWTBotTree tree = getOrOpenView().bot().tree();\n SWTBotTreeItem item = myRepoViewUtil.getRootItem(tree, repositoryFile);\n String wizardTitle = NLS.bind(UIText.GitCreateProjectViaWizardWiz... |
"public static EnvironmentVariable[] prepareEnvironmentVariables(ClusterContext clusterContext, MemberContext memberContext) {\n String kubernetesClusterId = clusterContext.getKubernetesClusterId();\n List<EnvironmentVariable> environmentVariables = new ArrayList<EnvironmentVariable>();\n NameValuePair[] paylo... |
"private int resolveResourceValue(String value, int defaultValue) {\n IResourceValue resource = mContext.resolveResValue(mContext.findResValue(value, mPlatformFile));\n if (resource != null) {\n Integer id = null;\n if (mPlatformFile || resource.isFramework()) {\n id = Bridge.getResourceV... |
"public static XStream createXStreamInstance() {\n return new EnhancedXStream();\n}\n"
|
"public void testHandleErrorsReturnedAsJson() {\n JobExportArgs exportArgs = new JobExportArgs();\n exportArgs.setOutputMode(JobExportArgs.OutputMode.JSON);\n exportArgs.setSearchMode(JobExportArgs.SearchMode.REALTIME);\n exportArgs.setEarliestTime(\"String_Node_Str\");\n exportArgs.setLatestTime(\"Strin... |
"protected OrientSource getSource() {\n OrientSource orientSource = accessor.getSource();\n if (orientSource != null) {\n return orientSource;\n }\n Source source = findAnnotation(Source.class);\n if (source != null) {\n return new DefaultSource(source.type(), source.value());\n }\n C... |
"private void performRPROP(ProjectEGFile file, MLDataSet trainingData) {\n InputResilient dialog = new InputResilient();\n if (dialog.process()) {\n final double initialUpdate = dialog.getInitialUpdate().getValue();\n final double maxStep = dialog.getMaxStep().getValue();\n int kFold = dialog... |
"private List<Field> extractFields() {\n this.fields.clear();\n for (java.lang.reflect.Field f : this.clazz.getDeclaredFields()) {\n modifiers = f.getModifiers();\n if (!Modifier.isTransient(modifiers) && !Modifier.isVolatile(modifiers)) {\n Class<?> fieldType = f.getType();\n ... |
"public void answerCallPeer(CallPeer peer) throws OperationFailedException {\n CallPeerGibberishImpl callPeer = (CallPeerGibberishImpl) peer;\n if (peer.getState().equals(CallPeerState.CONNECTED)) {\n if (logger.isInfoEnabled())\n logger.info(\"String_Node_Str\" + \"String_Node_Str\" + peer);\n ... |
"public static <T extends IObjectHolder<?>> KnowledgeObject<T> fromObject(ItemStack is) {\n if (!KnowledgeUtils.isItemStackViable(is))\n return null;\n return (KnowledgeObject<T>) getAllObjects().stream().filter(knowledgeObj -> knowledgeObj.holder.checkEquality(is)).findFirst().orElse(null);\n}\n"
|
"public void putAll(Map<? extends K, ? extends V> map, final boolean replaceExistingValues) {\n ensureOpen();\n long start = statisticsEnabled() ? System.nanoTime() : 0;\n long now = System.currentTimeMillis();\n if (map.containsKey(null)) {\n throw new NullPointerException(\"String_Node_Str\");\n ... |
"public void prepare(Report report, Map appContext) {\n new ReportQueryBuilder(report, context, dteSession).build();\n doPrepareQuery(report, appContext);\n}\n"
|
"public boolean isAlphabetManualShiftedKeyboard() {\n return mElementId == ELEMENT_ALPHABET_MANUAL_SHIFTED;\n}\n"
|
"private EntityManagerFactoryImpl getEntityManagerFactory() {\n Map<String, Object> props = new HashMap<String, Object>();\n String persistenceUnit = \"String_Node_Str\";\n props.put(Constants.PERSISTENCE_UNIT_NAME, persistenceUnit);\n props.put(PersistenceProperties.KUNDERA_CLIENT_FACTORY, \"String_Node_St... |
"public PropertiesConfiguration build() {\n builder.setStatusLevel(Level.toLevel(rootProperties.getProperty(STATUS_KEY), Level.ERROR)).setShutdownHook(rootProperties.getProperty(SHUTDOWN_HOOK)).setVerbosity(rootProperties.getProperty(VERBOSE)).setPackages(rootProperties.getProperty(PACKAGES)).setConfigurationName(ro... |
"protected boolean isItemAccepted(ItemStack item) {\n boolean everythingNull = true;\n for (ItemStack invStack : inventory) {\n if (invStack != null) {\n if (ItemStackHelper.areStacksEqual(invStack, item, fuzzySetting)) {\n return true;\n }\n everythingNull =... |
"public ClusteredWarpingMismatches call() {\n WarpingResults wr = simplePointWarp2d(source, target, mask, binaryThreshold);\n int[] mismatchesLabels = classifyMismatches2d(wr.warpedSource, wr.mismatches, radius);\n if (clusterByError)\n cwm = clusterMismatchesByError(wr.warpedSource, wr.mismatches, mism... |
"public Collection<IndicatorDefinition> getAllUDIs(IFolder patternFodler) {\n if (resourcesNumberChanged) {\n try {\n searchAllUDIs(patternFodler);\n } catch (CoreException e) {\n log.error(e, e);\n }\n resourcesNumberChanged = false;\n }\n return idsMap.values... |
"protected boolean handlePageBreakBefore() {\n if (content != null) {\n return super.handlePageBreakBefore();\n }\n return false;\n}\n"
|
"public static Notification findByReferenceIdAndRecipientId(Long referenceId, Long recipientId) throws NoResultException {\n return JPA.withTransaction(() -> {\n return JPA.em().createQuery(\"String_Node_Str\", Notification.class).setParameter(\"String_Node_Str\", referenceId).setParameter(\"String_Node_Str\"... |
"public float getLat() {\n return ((Float) entity.getProperty(LAT_KEY)).floatValue();\n}\n"
|
"public void testNumInstanceJobs() throws GenieException {\n final String hostName = NetUtil.getHostName();\n final List<Job> jobs = this.jobRepo.findAll();\n for (final Job job : jobs) {\n job.setHostName(hostName);\n }\n this.jobRepo.flush();\n Assert.assertEquals(2, this.manager.getNumInstan... |
"public void stateChanged(ChangeEvent evt) {\n if (evt.getSource().equals(tabPane)) {\n int index = tabPane.getSelectedIndex();\n if (index != 0 && config.tabNeedsInit(index - 1)) {\n for (int i = 0; i < index; i++) {\n if (config.tabNeedsInit(i)) {\n compon... |
"public void upgrade(ISkillInfo upgrade, boolean quiet) {\n if (upgrade instanceof RangedInfo) {\n boolean isPassive = damage <= 0;\n if (upgrade.getProperties().getValue().containsKey(\"String_Node_Str\")) {\n int damage = ((IntTag) upgrade.getProperties().getValue().get(\"String_Node_Str\"... |
"public void indexSubmission(IndexWriter writer, Submission sub) throws CorruptIndexException, IOException {\n StringBuilder searchText = new StringBuilder();\n long subId = sub.getId();\n String state = sub.getState().getDisplayName();\n searchText.append(state).append(\"String_Node_Str\");\n long searc... |
"private void indexItem(ItemMetadataProxy item) throws BrowseException {\n Map<String, String> itemMDMap = new HashMap<String, String>();\n try {\n boolean reqCommunityMappings = false;\n Map<Integer, String> sortMap = getSortValues(item, itemMDMap);\n if (item.isArchived() && !item.isWithdra... |
"protected static Object getConvertedRealValue(Object firstValue, Object value) {\n if (firstValue == null)\n return value;\n if (firstValue.getClass() == value.getClass()) {\n return value;\n } else {\n return getRealObject(firstValue, value);\n }\n}\n"
|
"public List<RemoteFileInfo> readDir(String fullPath) {\n final String relativePath = mounter.getMountRelativePath(fullPath, mountPoint);\n String s3path = getS3path(relativePath);\n final List<RemoteFileInfo> results = new ArrayList<RemoteFileInfo>(100);\n ObjectListing listing;\n listing = getListing(s... |
"private int regenerate(File inputFolder, File outputFolder) throws IOException {\n FSDirectory inputDir = FSDirectory.open(inputFolder);\n CheckIndex check = new CheckIndex(inputDir);\n Status status = check.checkIndex();\n if (status.missingSegments) {\n for (File f : inputFolder.listFiles()) {\n ... |
"public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(TAG, \"String_Node_Str\");\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n notificationMenuItem_ = menu.findItem(R.id.action_notifications);\n BadgeDrawable.setBadgeCount(this, notificationMenuItem_, MessageManager.getInstance().get... |
"public void run() {\n notification.priority = clamp(notification.priority, Notification.PRIORITY_MIN, Notification.PRIORITY_MAX);\n if (0 != (notification.flags & Notification.FLAG_HIGH_PRIORITY)) {\n if (notification.priority < Notification.PRIORITY_MAX) {\n notification.priority = Notificatio... |
"private void sendString(String s) throws IOException {\n byte[] bytes = s.getBytes();\n _out.write(bytes);\n _out.flush();\n}\n"
|
"protected void fillDocument(Document doc, PageMetadata pageMetadata) {\n super.fillDocument(doc, pageMetadata);\n if (!(pageMetadata instanceof SeoPageMetadata)) {\n return;\n }\n SeoPageMetadata seoPageMetadata = (SeoPageMetadata) pageMetadata;\n Element useExtraDescriptionsElement = new Element... |
"public void connectionClosed(CTPConnection source, Exception reason) {\n if (!tasks.isEmpty())\n throw new IllegalStateException(\"String_Node_Str\" + this + \"String_Node_Str\" + tasks.size() + \"String_Node_Str\" + tasks);\n}\n"
|
"protected IStatus runImpl(IProgressMonitor monitor) throws Exception {\n IStatus error = null;\n Vdb pvdb = new Vdb(this.pvdbFile, true, monitor);\n if (this.previewServer != null) {\n try {\n getContext().ensureConnectionInfoIsValid(pvdb, this.previewServer);\n } catch (Exception e) ... |
"public List<N> path() {\n LinkedList<N> path = new LinkedList<N>();\n N currentNode = (N) this;\n while (currentNode != null) {\n path.add(currentNode);\n currentNode = currentNode.previousNode;\n }\n return path;\n}\n"
|
"public void updateForSpecialConnections() {\n updateForCenterConnection();\n updateForAutoConnections(isAcceptOp);\n}\n"
|
"protected Schedule _getSchedule() {\n DirectedAcyclicGraph dag = new DirectedAcyclicGraph();\n GRODirector director = (GRODirector) getContainer();\n if (director == null) {\n return null;\n }\n CompositeActor container = (CompositeActor) (director.getContainer());\n if (container == null) {\n... |
"public static void form(Long id) {\n Album album = Album.findById(id);\n Artist artist = album.artist;\n render(\"String_Node_Str\", album, artist);\n}\n"
|
"private static Config loadConfig() {\n CustomSkinLoader.logger.info(\"String_Node_Str\" + CustomSkinLoader.CONFIG_FILE.getAbsolutePath());\n if (!CustomSkinLoader.CONFIG_FILE.exists()) {\n CustomSkinLoader.logger.info(\"String_Node_Str\");\n return initConfig();\n }\n try {\n CustomSki... |
"public String getAddress() {\n try {\n return InetAddress.getLocalHost().getHostAddress();\n } catch (UnknownHostException e) {\n Cons.println(\"String_Node_Str\" + e);\n return \"String_Node_Str\";\n }\n}\n"
|
"public void setupKey(String node, String pubKeyFile, boolean generateKey, String passwd) throws IOException, InterruptedException {\n boolean connected = false;\n File key = new File(keyFile);\n if (logger.isLoggable(Level.FINER))\n logger.finer(\"String_Node_Str\" + keyFile);\n if (key.exists()) {\... |
"public String getCrashLog() {\n String crashLog = \"String_Node_Str\";\n if (isCrash) {\n List<String> results = CmdUtil.get().getCrashLog(deviceUdid);\n for (String s : results) {\n crashLog = crashLog + s.replace(\"String_Node_Str\", \"String_Node_Str\") + \"String_Node_Str\";\n ... |
"private void unblockScreenOn() {\n if (mScreenOnWasBlocked) {\n mScreenOnWasBlocked = false;\n long delay = SystemClock.elapsedRealtime() - mScreenOnBlockStartRealTime;\n if (delay > 1000 || DEBUG) {\n Slog.d(TAG, \"String_Node_Str\" + delay + \"String_Node_Str\");\n }\n }\... |
"public float getHeight() {\n return maxY - minY;\n}\n"
|
"public MaxEnt train(InstanceList trainingSet, int numIterations) {\n logger.fine(\"String_Node_Str\" + trainingSet.size());\n boolean converged;\n getOptimizer(trainingSet);\n for (int i = 0; i < numIterations; i++) {\n try {\n converged = opt.optimize(1);\n } catch (IllegalArgumen... |
"public void initStorage(int numSamples) {\n super.initStorage(numSamples);\n if (distinctIndelsWithCount == null) {\n distinctIndelsWithCount = new int[numSamples];\n } else {\n Arrays.fill(distinctIndelsWithCount, 0);\n }\n}\n"
|
"protected int scan(final ReadSet readIndexFilter, final IndexedIdentifier targetIds, final AlignmentWriter writer, final AlignmentTooManyHitsWriter tmhWriter) throws IOException {\n int numAligns = 0;\n final ProgressLogger progress = new ProgressLogger(LOG);\n SAMFileReader.setDefaultValidationStringency(SAM... |
"public void testMarkRelationshipsFromVariableLength() throws Exception {\n final Node n1 = gdb.createNode();\n final Node n0 = aNode;\n final Relationship relationship = n0.createRelationshipTo(n1, DynamicRelationshipType.withName(\"String_Node_Str\"));\n final SubGraph graph = SubGraph.from(gdb);\n fin... |
"private SshPacket handleBytes(byte[] buff, int offset, int count) throws IOException {\n if (debug > 1)\n System.out.println(\"String_Node_Str\" + buff + \"String_Node_Str\" + count + \"String_Node_Str\");\n byte b;\n int boffset = offset;\n while (boffset < count) {\n b = buff[boffset++];\n ... |
"void addModule(Module module) throws SBOLValidationException {\n module.setSBOLDocument(this.sbolDocument);\n module.setModuleDefinition(this);\n if (sbolDocument != null && sbolDocument.isComplete()) {\n if (module.getDefinition() == null) {\n throw new SBOLValidationException(\"String_Node... |
"public static String relativizeSourceURIs(LessSource from, LessSource to) {\n if (to == null)\n return null;\n URI toURI = to.getURI();\n if (toURI == null)\n return to.getName() == null ? \"String_Node_Str\" : to.getName();\n String toURIAsString = toURI.toString();\n if (from == null)\n ... |
"public static void fill(int xMin, int yMin, int zMin, int xMax, int yMax, int zMax, Template template) {\n for (int y = yMin; y <= yMax; ++y) {\n for (int x = xMin; x <= xMax; ++x) {\n for (int z = zMin; z <= zMax; ++z) {\n if (isValid(x, y, z, template)) {\n temp... |
"public QueryResponse getQueryResponse() throws Exception {\n boolean sorting = (sortRequest != null && !sortRequest.getFieldSortList().isEmpty());\n long totalHits = 0;\n long returnedHits = 0;\n for (SegmentResponse sr : segmentResponses) {\n totalHits += sr.getTotalHits();\n returnedHits +=... |
"private String getParam(boolean isParam, String value, Long filterId, String type) {\n if (isParam) {\n String sqlType = getSqlType(type);\n if (!sqlType.equals(type)) {\n value = \"String_Node_Str\" + filterId + \"String_Node_Str\" + getSqlType(type) + \"String_Node_Str\";\n } else ... |
"public List<IProcessConvertService> extractAllConvertServices() {\n if (processConvertServices.size() > 0) {\n return processConvertServices;\n }\n IExtensionRegistry extensionRegistry = Platform.getExtensionRegistry();\n IExtensionPoint extensionPoint = extensionRegistry.getExtensionPoint(EXTENSION... |
"private void acceptUser(final int userId) {\n if (isNetworkAvailable()) {\n if (!isChatInitializedAndUserLoggedIn()) {\n ToastUtils.longToast(R.string.call_chat_service_is_initializing);\n return;\n }\n showProgress();\n QBAcceptFriendCommand.start(this, userId);\n ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.