content stringlengths 40 137k |
|---|
"private String embedFile(String filename) {\n if (filename == null || filename.equals(\"String_Node_Str\"))\n return null;\n if (filename.startsWith(VpnProfile.INLINE_TAG))\n return filename;\n File sdcard = Environment.getExternalStorageDirectory();\n File root = new File(\"String_Node_Str\"... |
"public void setStatusMessage(String message, boolean printTime, ImageIcon icon, boolean addToLog) {\n String messageEsc = Workarounds.escapeHtml(message);\n Date time = new Date();\n if (printTime) {\n String timestamp = shortTimeFormat.format(new Date());\n statusMessageLabel.setText(\"String_N... |
"public Object invoke(Object proxy, Method method, Object[] arguments) throws Throwable {\n invocation = new Invocation<T, S>(proxy, method, arguments);\n return null;\n}\n"
|
"public ITeiidServerVersion getTeiidVersion() {\n return this.teiidVersion;\n}\n"
|
"public void updateFirmware(DeviceFirmware deviceFirmware) {\n System.out.println(CLASS_NAME + \"String_Node_Str\" + deviceFirmware.getDeviceId());\n updateInProgress = true;\n ManagedGateway gateway = ((ManagedGateway) this.gwClient);\n Date timestamp = new Date();\n String message = \"String_Node_Str\"... |
"public Field applyState(CompilerState state) {\n if (this.value != null) {\n this.value = this.value.applyState(state);\n }\n return this;\n}\n"
|
"public void onCraftMatrixChanged(IInventory p_75130_1_) {\n if (craftingGrid != null)\n craftResult.setInventorySlotContents(0, CraftingManager.getInstance().findMatchingRecipe(craftingGrid, projectTable.getWorldObj()));\n}\n"
|
"protected synchronized void updateProgress(final LongActionState state) {\n try {\n boolean sendMessage = lastSent == -1L || (System.nanoTime() - lastSent > RATE_LIMIT_NANO_SECONDS && state.getProgress().intValue() != lastProgress.getProgress().intValue());\n sendMessage |= state.getProgress() == 100;... |
"void draw(SpriteBatch batch, BitmapFont font) {\n if (drawResource) {\n batch.draw(Assets.material, x, y, width, height);\n if (closeEnough() && Player.ableToMove) {\n if (Gdx.app.getType() == ApplicationType.Android) {\n font.draw(batch, \"String_Node_Str\", Android.size + 1... |
"protected long allocateNextPage(int page) {\n long address;\n long offset = pageOffset(page);\n final long pageSize = getMapPageSize();\n if (ff.length(fd) < offset + pageSize) {\n ff.truncate(fd, offset + pageSize);\n }\n address = ff.mmap(fd, pageSize, offset, Files.MAP_RW);\n if (address... |
"public org.hl7.fhir.dstu2.model.Schedule convertSchedule(org.hl7.fhir.dstu3.model.Schedule src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Schedule tgt = new org.hl7.fhir.dstu2.model.Schedule();\n copyDomainResource(src, tgt);\n for (org.hl7.... |
"protected void componentVisible(HUDComponent2D component) {\n logger.info(\"String_Node_Str\" + component);\n HUDComponentState state = (HUDComponentState) hudStateMap.get(component);\n if (state == null) {\n return;\n }\n HUDView2D view = state.getView();\n if (view == null) {\n if (hu... |
"private void checkLastKeys() {\n if (lastKeysEqual(KeyCode.B, KeyCode.U, KeyCode.G, KeyCode.G, KeyCode.Y)) {\n if (Main.game.isInNewWorld() && Main.game.isPrologueFinished()) {\n Main.game.setContent(new Response(\"String_Node_Str\", \"String_Node_Str\", DebugDialogue.DEBUG_MENU));\n } else... |
"public String getLibDescription(String jarName) {\n String desc = descMap.get(jarName);\n if (desc != null) {\n return desc;\n }\n String jarPath = tmpFolder + File.separator + jarName;\n try {\n boolean isOk = false;\n File jarFile = new File(jarPath);\n if (!jarFile.exists(... |
"public boolean needExclude(final Attributes atts, final String[][] extProps) {\n if (filterMap.isEmpty()) {\n return false;\n }\n for (final String attr : PROFILE_ATTRIBUTES) {\n final String value = atts.getValue(attr);\n if (value != null) {\n final Map<String, List<String>> ... |
"public static String getLocalizationKey() {\n HttpSession sess = getHttpSession(false);\n return null == sess ? null : (String) sess.getAttribute(LOCALE_KEY);\n}\n"
|
"public boolean first() {\n try {\n initCubeCursor();\n if (mainEdgeCursor.first()) {\n fMainPositionNodes.updatePosition();\n if (subEdgeCursor != null) {\n subEdgeCursor.first();\n fSubPositionNodes.updatePosition();\n } else {\n ... |
"Chunk removeChunk(int chunkId) {\n return this.chunkIdMap.remove(chunkId);\n}\n"
|
"private static int writeArgAt0(final String[] arguments, final int currentArgument, final char[] result, final int pos) {\n final String arg = String.valueOf(arguments[currentArgument]);\n int argLen = arg.length();\n arg.getChars(0, argLen, result, pos);\n return pos + argLen;\n}\n"
|
"protected Optional<ObjectId> _call() {\n checkState(treeishRefSpec != null || treeish != null, \"String_Node_Str\");\n Optional<ObjectId> resolved;\n if (treeishRefSpec != null) {\n resolved = command(RevParse.class).setSource(source).setRefSpec(treeishRefSpec).call();\n } else {\n resolved =... |
"public boolean onTouchEvent(MotionEvent event) {\n if (mSeekBar == null) {\n return super.onTouchEvent(event);\n } else {\n View containingView = (View) mSeekBar.getParent();\n final float offsetX = -(containingView.getLeft() + mSeekBar.getLeft());\n final float offsetY = -(containing... |
"public void populateDynamicChoices(ItemsetBinding itemset, TreeReference curQRef) {\n DataInstance formInstance;\n if (itemset.nodesetRef.getInstanceName() != null) {\n formInstance = getNonMainInstance(itemset.nodesetRef.getInstanceName());\n if (formInstance == null) {\n throw new XPat... |
"private String stringFromSQLDate(java.sql.Date sourceDate, QName schemaType) {\n if (XMLConstants.DATE_TIME_QNAME.equals(schemaType)) {\n XMLGregorianCalendar xgc = getDatatypeFactory().newXMLGregorianCalendar();\n GregorianCalendar cal = new GregorianCalendar(getTimeZone());\n cal.setGregorian... |
"public void copyFilesToFolder(Plugin plugin, String srcPath, boolean recurse, IFolder desFolder, String suffix) throws IOException, CoreException {\n if (plugin == null) {\n return;\n }\n Enumeration paths = null;\n paths = plugin.getBundle().getEntryPaths(srcPath);\n if (paths == null) {\n ... |
"public static void importGame(String name) {\n Game newGame = new Game();\n Main.game = newGame;\n File file = new File(\"String_Node_Str\" + name + \"String_Node_Str\");\n if (file.exists()) {\n try {\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n ... |
"public ItemStack stack(AEColor color, int stackSize) {\n ItemStackSrc is = colors[color.ordinal()];\n if (is == null)\n return null;\n return new ItemStack(is.getItem(), stackSize, is.getItemDamage());\n}\n"
|
"protected void compute(String className) {\n List<IClassCompilable> compilableList = DyvilREPL.context.compilableList;\n if (this.isConstant() && !compilableList.isEmpty()) {\n return;\n }\n try {\n this.className = className;\n Class c = this.generateClass(this.className, compilableLi... |
"public void dropLibrary(Library library) throws SemanticException {\n if (!module.getLibraries().contains(library)) {\n throw new LibraryException(library, new String[] { library.getNamespace() }, LibraryException.DESIGN_EXCEPTION_LIBRARY_NOT_FOUND);\n }\n dealAllElementDecendents(library, SIMPLE_ACTIO... |
"protected String getUserIdForAccessAttempt(Request request) {\n return null;\n}\n"
|
"static void insertDeclarationsDetails(StringBuffer fileBuffer, List decls, String kind, int index) {\n int insertIndex = findDetailsIndex(fileBuffer, index);\n String detailsHeading = \"String_Node_Str\" + \"String_Node_Str\" + kind.toUpperCase() + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" ... |
"public void widgetSelected(SelectionEvent e) {\n SelectImportedModulesDialog dlg = createSelectImportedModulesDialog();\n dlg.create();\n dlg.setBlockOnOpen(true);\n dlg.open();\n if (dlg.getReturnCode() == Window.OK) {\n doImportSchema(dlg.getImportedXSDList(), dlg.getToDelXSDList());\n }\n}\... |
"public HashMap<Integer, ItemStack> addItem(ItemStack... items) {\n HashMap<Integer, ItemStack> leftover = new HashMap<Integer, ItemStack>();\n for (int i = 0; i < items.length; i++) {\n ItemStack item = items[i];\n while (true) {\n int firstPartial = firstPartial(item.getTypeID());\n ... |
"public void mouseReleased(Canvas canvas, Graphics g, MouseEvent e) {\n Component added = null;\n if (state == SHOW_ADD) {\n Circuit circ = canvas.getCircuit();\n if (!canvas.getProject().getLogisimFile().contains(circ))\n return;\n if (shouldSnap)\n Canvas.snapToGrid(e)... |
"public void updateContact(Contacts contacts) {\n List<Contacts> contactList = new ArrayList<Contacts>();\n Map<String, Object> paramMap = new HashMap<String, Object>();\n paramMap.put(\"String_Node_Str\", contacts.getFirstName());\n paramMap.put(\"String_Node_Str\", contacts.getLastName());\n paramMap.p... |
"public int compare(Object o1, Object o2) {\n Storage s1 = (Storage) o1;\n Storage s2 = (Storage) o2;\n int cmp1 = prio(s1) - prio(s2);\n int cmp2 = s1.mountTime().compareTo(s2.mountTime());\n return (cmp1 != 0) ? -cmp1 : cmp2;\n}\n"
|
"public void startRequest(MRCRequest rq) {\n try {\n final utimeRequest rqArgs = (utimeRequest) rq.getRequestArgs();\n final VolumeManager vMan = master.getVolumeManager();\n final FileAccessManager faMan = master.getFileAccessManager();\n validateContext(rq);\n Path p = new Path(r... |
"public void testInvokingVarargs03_JtoG() {\n runConformTest(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\" + ... |
"public boolean mp3ToDisk(String mp3FileName) {\n boolean mp3 = LimeXMLUtils.isMP3File(mp3FileName);\n boolean wrote = false;\n int mp3WriteState = -1;\n toDisk(mp3FileName);\n if (this.editor != null) {\n wrote2 = this.editor.writeID3DataToDisk(mp3FileName);\n File file = new File(mp3FileN... |
"public synchronized Resource getFileResource(IFile file) {\n if (file.exists()) {\n URI uri = URI.createPlatformResourceURI(file.getFullPath().toString(), false);\n Resource res = EMFSharedResources.getInstance().getResource(uri, false);\n if (EMFSharedResources.getInstance().isNeedReload(res))... |
"private MethodReference getSliceRootReference(String className, String methodName, String methodDescriptor) {\n TypeName clsName = TypeName.string2TypeName(\"String_Node_Str\" + className.replace('.', '/'));\n TypeReference clsRef = TypeReference.findOrCreate(JavaSourceAnalysisScope.SOURCE, clsName);\n Atom n... |
"protected IResultIterator executeOdiQuery(IEventHandler eventHandler, StopSign stopSign) throws DataException {\n try {\n RDLoad rdLoad = RDUtil.newLoad(engine.getSession().getTempDir(), engine.getContext(), new QueryResultInfo(realBasedQueryID, null, -1));\n DataSetResultSet dataSetResult = rdLoad.lo... |
"protected final void connect() throws SQLException {\n Logger.getLogger(\"String_Node_Str\").info(\"String_Node_Str\" + this.uri + \"String_Node_Str\");\n db = DriverManager.getConnection(\"String_Node_Str\" + uri, user, password);\n}\n"
|
"public static BayesianNetwork newBayesianNetwork(DAG dag, List<ConditionalDistribution> dists) {\n return new BayesianNetwork(dag, dists);\n}\n"
|
"public V get(Object key) {\n if (key instanceof Range) {\n Range<?> range = (Range<?>) key;\n RangeMapEntry<K, V> rangeMapEntry = entriesByLowerBound.get(range.lowerBound);\n if (rangeMapEntry != null && rangeMapEntry.getKey().equals(range)) {\n return rangeMapEntry.getValue();\n ... |
"private void deleteCredentialsInSmartLock() {\n if (!isGooglePlayServicesAvailable() || mCredentialsClient == null || !mCredentialsClient.isConnected()) {\n return;\n }\n Credential credential = new Credential.Builder(mUsername).setPassword(mPassword).build();\n Auth.CredentialsApi.delete(mCredentia... |
"private void drawReplayStatus(Canvas canvas) {\n canvas.drawText(getContext().getString(R.string.replay_text, historyIndex_ + 1, historyMoves_.size()), startP_ + cellSize_ * 2.5f, startP_ + cellSize_ * 4.7f, noticePaint_);\n}\n"
|
"public static EventHandlerChain<NewLoadbalancerEvent> onNewLoadbalancer() {\n return (new EventHandlerChainNew()).build();\n}\n"
|
"private RETURN_CODE showOpen() {\n int retVal = fc.showOpenDialog(getParentComp());\n switch(retVal) {\n case JFileChooser.APPROVE_OPTION:\n if (this.selectionType == SEL_TYPE.SINGLE) {\n selectedFile = fc.getSelectedFile();\n } else {\n selectedFiles = ... |
"public void makePreviewFilter(String imgOriginalPath) {\n LOGGER.info(\"String_Node_Str\" + imgOriginalPath);\n try {\n String imgPath = imageService.resize(imgOriginalPath, 100, 150);\n int counter = 1;\n Map<String, String> allfilters = imageService.getAllFilteredImages(imgPath);\n ... |
"public void setWorldSeed(String seed) {\n if (seed == null) {\n return;\n logger.info(\"String_Node_Str\");\n Texture texture = Assets.getTexture(\"String_Node_Str\");\n ByteBuffer[] bb = texture.getData().getBuffers();\n IntBuffer intBuf = bb[0].asIntBuffer();\n int width = texture.getWidth()... |
"public List<Set<String>> getSetTags() {\n return getSetTags(dataSet.getPosTags(), dataSet.getNegTags());\n}\n"
|
"protected Bitmap onGetBitmap() {\n Drawable drawable = ContextCompat.getDrawable(mContext, mResId);\n int width = mWidth;\n int height = mHeight;\n if (width <= 0) {\n width = drawable.getIntrinsicWidth();\n }\n if (mHeight <= 0) {\n height = drawable.getIntrinsicHeight();\n }\n i... |
"protected List<EvaluatedDescription> doInBackground() throws Exception {\n la = model.getLearningAlgorithm();\n timer = new Timer();\n timer.schedule(new TimerTask() {\n public void run() {\n System.out.println(\"String_Node_Str\");\n if (la != null) {\n publish(la.... |
"protected void update(List<TableInfo> tableInfos) {\n for (TableInfo tableInfo : tableInfos) {\n if (tableInfo != null && tableInfo.getTableName() != null) {\n HTableDescriptor hTableDescriptor = getTableMetaData(tableInfo);\n try {\n HTableDescriptor descriptor = admin.g... |
"private void init(EnumMap<K, ? extends V> m) {\n allEnums = m.allEnums;\n keySet = m.keySet.clone();\n values = Array.clone(m.values);\n}\n"
|
"private ExecutableElement findOverriddenInterfaceMethod(ExecutableElement executableElement, TypeElement thisType) {\n ExecutableElement overridden = null;\n TypeElement supertype = thisType;\n while (supertype != null && !supertype.toString().equals(Object.class.getName())) {\n List<? extends TypeMirr... |
"private ArrayList<LayoutElementParcelable> listApks() {\n ArrayList<LayoutElementParcelable> apks = new ArrayList<>();\n final String[] projection = { MediaStore.Files.FileColumns.DATA };\n Cursor cursor = c.getContentResolver().query(MediaStore.Files.getContentUri(\"String_Node_Str\"), projection, null, null... |
"private synchronized void loadFullCatalog() {\n if (fullCatalog != null)\n return;\n BrooklynProperties props = BrooklynProperties.Factory.newEmpty();\n props.put(LocalManagementContext.BROOKLYN_CATALOG_URL.getName(), \"String_Node_Str\" + Urls.encode(\"String_Node_Str\"));\n fullCatalog = newManage... |
"public void delHop(final int i) {\n isDirty = true;\n if (!hops.isEmpty() && (i > -1) && (i < hops.size())) {\n hops.remove(i);\n calcHopsTotals();\n }\n}\n"
|
"private static boolean ruleIsValid(WorkflowEmailRule workflowEmailRule, Submission submission) {\n boolean ret = true;\n if (workflowEmailRule.getCondition() != null) {\n if (workflowEmailRule.getCondition().getConditionType() == null) {\n ret = false;\n }\n } else {\n ret = fa... |
"public void writeTo(OutputStream outstream) throws IOException {\n if (outstream == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(outstream, \"String_Node_Str\"));\n while (it.hasNext()) {\n Object va... |
"public void unlock(Object key) {\n checkInputObject(key);\n MLock mlock = ThreadContext.get().getMLock();\n mlock.unlock(name, key, 0);\n}\n"
|
"public StructuredStore getLazyStore(String indexConfigPath, String indexName, String sourcePath, Templates preFilter, boolean removeDoctypeDecl) throws IOException {\n TextConfig config = servlet.getConfig();\n if (config instanceof DynaXMLConfig && !((DynaXMLConfig) config).useLazyFiles)\n return null;\n... |
"public void readPortableData(EntityPlayer player, NBTTagCompound tag) {\n if (!canPlayerAccess(player.getCommandSenderName())) {\n return;\n }\n if (augmentRedstoneControl) {\n rsMode = RedstoneControlHelper.getControlFromNBT(tag);\n }\n}\n"
|
"public Report executeOnAIP(IndexService index, ModelService model, StorageService storage, Report report, SimpleJobPluginInfo jobPluginInfo, List<AIP> list, Job job) throws PluginException {\n try {\n for (AIP aip : list) {\n Report reportItem = PluginHelper.initPluginReportItem(this, aip.getId(),... |
"protected void updateHiveServerAndMakeSelection(int distributionIndex, int hiveVersionIndex) {\n boolean isSupportHiveServer2 = HiveConnUtils.isSupportHiveServer2(distributionIndex, hiveVersionIndex);\n if (isSupportHiveServer2) {\n DatabaseConnection conn = getConnection();\n String[] hiveServerDi... |
"public void setRecording(boolean recording) {\n this.recording = recording;\n time = 0;\n pos = 0;\n if (recording) {\n EngineLogger.debug(\"String_Node_Str\");\n World.getInstance().saveGameState(fileName + GAMESTATE_EXT);\n } else\n save();\n}\n"
|
"private void instantiateQuery(Indicator indicator) {\n if (ColumnsetPackage.eINSTANCE.getColumnSetMultiValueIndicator().isSuperTypeOf(indicator.eClass())) {\n ColumnSetMultiValueIndicator colSetMultValIndicator = (ColumnSetMultiValueIndicator) indicator;\n final EList<ModelElement> analyzedColumns = c... |
"private boolean assignPointer(int nextIndex, boolean allowOverlap) {\n final int lastNumPointers = mLastNumPointers;\n final int[] next2Last = mNext2Last;\n final long[] next2LastDistance = mNext2LastDistance;\n final int[] last2Next = mLast2Next;\n final int[] lastData = mLastData;\n final int[] nex... |
"Collection getModifiedBinaryFiles(long lastBuildTime) {\n List ret = new ArrayList();\n for (Iterator i = buildConfig.getBinaryFiles().iterator(); i.hasNext(); ) {\n AjBuildConfig.BinarySourceFile bsfile = (AjBuildConfig.BinarySourceFile) i.next();\n File file = bsfile.binSrc;\n if (!file.ex... |
"private void addJob(Job job, JobPo jobPo) throws DupEntryException {\n if (job.isSchedule()) {\n addCronJob(jobPo);\n LOGGER.info(\"String_Node_Str\", job);\n } else {\n boolean needAdd2ExecutableJobQueue = true;\n String ignoreAddOnExecuting = job.getParam(\"String_Node_Str\");\n ... |
"public void setParam(final String clusterName, final String elasticityMode, final Integer minComputeNodeNum, final Integer maxComputeNodeNum, final Integer targetComputeNodeNum, final String ioShares) {\n try {\n ClusterRead cluster = restClient.get(clusterName, false);\n if (cluster == null) {\n ... |
"public static ImmutableList<GLElementSupplier> getExtensions(GLElementFactoryContext context, String callerId, Predicate<? super String> filter) {\n ImmutableList.Builder<GLElementSupplier> builder = ImmutableList.builder();\n for (ElementExtension elem : extensions) {\n if ((filter != null && !filter.app... |
"public void should_ReturnExpectedRecordedResponse_OnSubsequentCallToValidUrl() throws Exception {\n ANSITerminal.muteConsole(false);\n final ByteArrayOutputStream consoleCaptor = new ByteArrayOutputStream();\n final boolean NO_AUTO_FLUSH = false;\n final PrintStream oldPrintStream = System.out;\n System... |
"public static TypedReturnCode<Connection> getRefreshedDataProvider(Connection prevDataProvider) {\n TypedReturnCode<Connection> returnProvider = new TypedReturnCode<Connection>();\n boolean mdm = ConnectionUtils.isMdmConnection(prevDataProvider);\n IMetadataConnection metadataConnection = ConvertionHelper.con... |
"public boolean hasNext() {\n if (onCheckedMatch) {\n return true;\n } else {\n if (sourceIterator.hasNext()) {\n if (!onCheckedMatch) {\n currentItem = sourceIterator.next();\n }\n if (predicate.check(currentItem, index++)) {\n onChecke... |
"public boolean isThisStepSuccessful() {\n if (!_first) {\n if (((_lastInput >= _upperBound) && (_thisInput <= _lowerBound)) || ((_lastInput <= _lowerBound) && (_thisInput >= _upperBound))) {\n _success = false;\n return false;\n }\n }\n return true;\n}\n"
|
"public CompletableFuture<Response> execute(final Request request) {\n connect();\n final CompletableFuture<Response> rfuture = new CompletableFuture<>();\n try {\n final long id = mId.incrementAndGet();\n final VPackSlice body = request.getBody().isPresent() ? request.getBody().get() : null;\n ... |
"public void removeAdditonalFile(TestStructure testStructure, String fileName) throws SystemException {\n logger.trace(\"String_Node_Str\" + testStructure.getFullName() + \"String_Node_Str\" + fileName);\n TestProject testProject = testStructure.getRootElement();\n SVNWCClient wcClient = getSVNClientManager(te... |
"public void serviceChanged(ServiceEvent event) {\n switch(event.getType()) {\n case ServiceEvent.REGISTERED:\n if (subscribers == null) {\n subscribers = new ArrayList<Object>();\n }\n subscribers.add(context.getService(event.getServiceReference()));\n ... |
"public void addStone(ShortPoint2D pos, int capacity) {\n if (capacity > 0) {\n addMapObject(pos, new Stone(capacity));\n } else {\n addSelfDeletingMapObject(pos, EMapObjectType.CUT_OFF_STONE, Stone.DECOMPOSE_DELAY, null);\n }\n}\n"
|
"public String getDetailText(Object element, int columnIndex) {\n if (columnIndex <= 0)\n return \"String_Node_Str\";\n }\n if (element instanceof Rule) {\n Rule rule = (Rule) element;\n return columnDescriptors[columnIndex].detailStringFor(rule);\n }\n if (element instanceof RuleGro... |
"private static int determineHierarchyDepthRec(Tree<ClusterNode> tree, ClusterNode node) {\n if (tree.hasChildren(node)) {\n int temp = node.getDepth();\n for (ClusterNode current : tree.getChildren(node)) {\n if (temp <= determineHierarchyDepthRec(tree, current))\n temp = det... |
"public Tab<C> getTargetTab() {\n int defaultTarget = Math.min(getNumber() + 1, getFlow().getTabCount() - 1);\n return getFlow().getTab(defaultTarget);\n}\n"
|
"public void tickStart(PlayerTickEvent evt) {\n if (evt.phase != Phase.START) {\n return;\n }\n if (MinecraftServer.getServer() != null && MinecraftServer.getServer().isServerRunning()) {\n if (!MinecraftServer.getServer().getConfigurationManager().func_152596_g(evt.player.getGameProfile())) {\n ... |
"public void onClosedToRight() {\n resetActionBarTitle();\n}\n"
|
"public void init() {\n cassandra = addChild(EntitySpec.create(CassandraCluster.class).configure(\"String_Node_Str\", getConfig(CASSANDRA_CLUSTER_SIZE)).configure(\"String_Node_Str\", \"String_Node_Str\").configure(\"String_Node_Str\", \"String_Node_Str\").configure(\"String_Node_Str\", \"String_Node_Str\").configur... |
"void onRequestSuccess(long startTimeNanos) {\n if (m_webservice != null) {\n m_webservice.notifyRequestSuccess(startTimeNanos);\n }\n}\n"
|
"private void drawText(String text, float textX, float textY, FontInfo fontInfo, float characterSpacing, float wordSpacing, Color color, CSSValue align) {\n PdfContentByte currentContentByte = isTotalPage ? pageDevice.getPDFTemplate() : contentByte;\n float containerHeight = isTotalPage ? pageDevice.getPDFTemplat... |
"public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) {\n if (source != null) {\n virtualFrequency = Math.min(Math.max(virtualFrequency + (long) (((virtualSampleRate / (float) width) * distanceX)), source.getMinFrequency() - source.getSampleRate() / 2), source.getMaxFreque... |
"public void deauthorize() {\n mToken = null;\n}\n"
|
"public byte getByte(DelayedCellSetter<T, ?>[] target) throws Exception {\n return ((ByteDelayedCellSetter<T>) target[index]).consumeByte();\n}\n"
|
"private List<BoundaryPart> getLowerSameRightPoint(int index, BoundaryPart orig) {\n Point point = orig.getConstraint().getPointRight();\n List<BoundaryPart> ret = new ArrayList<BoundaryPart>();\n BoundaryPart bp;\n for (int i = index - 1; i >= 0; i--) {\n bp = boundary.get(i);\n if (bp.getCon... |
"public Item upgrade() {\n chargeCap = (((level + 1) / 2) + 1);\n while (scrolls.size() > (levelCap - 1 - level)) scrolls.remove(0);\n return super.upgrade();\n}\n"
|
"public static TextRange getMotionRange(Editor editor, DataContext context, int count, int rawCount, Argument argument, boolean moveCursor) {\n Command cmd = argument.getMotion();\n int cnt = cmd.getCount() * count;\n int raw = rawCount == 0 && cmd.getRawCount() == 0 ? 0 : cnt;\n MotionEditorAction action =... |
"private static void loadLibraries(DynamicClassLoader classLoader, String[] driversArray) {\n List<String> jarPathList = new ArrayList<String>();\n if (driversArray == null || driversArray.length == 0) {\n return true;\n }\n ILibraryManagerService librairesManagerService = (ILibraryManagerService) Gl... |
"private int execute(ISqlTransaction transaction, DmlStatement dmlStatement, Object marker, Object[] data) {\n String sql = dmlStatement.getSql();\n if (!sql.equals(lastPreparedDml)) {\n transaction.flush();\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\", sql);\n }\n... |
"public void wrapup() {\n _allChords.clear();\n _currentBeatCursor = 0.0;\n _barProgress = 0.0;\n _durations.clear();\n _triggersSinceLastOutput = 0;\n}\n"
|
"public boolean matches(final Path path) {\n return matchers.stream().anyMatch(it -> it.matches(path));\n}\n"
|
"public Result rollbackAlias(AliasPo aliasPo) throws NulsException {\n try {\n AliasPo po = aliasStorageService.getAlias(aliasPo.getAlias()).getData();\n if (po != null && Base58.encode(po.getAddress()).equals(Base58.encode(aliasPo.getAddress()))) {\n aliasStorageService.removeAlias(aliasPo.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.