content stringlengths 40 137k |
|---|
"public void drawScreen(int mouseX, int mouseY, float partialTicks) {\n super.drawScreen(mouseX, mouseY, partialTicks);\n drawBackground(0);\n drawScroll();\n Renderer.rectangle(0x80000000, 20, 10 - scrolled, width, infoHeight).draw();\n Renderer.text(name, 22, 12 - scrolled).setShadow(true).draw();\n ... |
"public String getOrganizationNames() {\n return StringUtils.join(rootACL.getOrganizationNameList().iterator(), \"String_Node_Str\");\n}\n"
|
"public static List<BroadcastReceiver> findBroadcastReceiver(Context context) {\n List<BroadcastReceiver> result = new ArrayList<>();\n Intent actionIntent = new Intent();\n actionIntent.setPackage(context.getPackageName());\n actionIntent.setAction(actionString);\n List<ResolveInfo> infos = context.getP... |
"public void testInvokingVarargsCtors01_GtoJ() {\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... |
"synchronized boolean isAllocatedOrSubmittedOrRunning() {\n return this.state == EvaluatorState.ALLOCATED || this.state == EvaluatorState.SUBMITTED || this.state == EvaluatorState.RUNNING;\n}\n"
|
"public void setCalibration(CameraPinholeRadial paramVisual, Point2Transform2_F32 visToDepth) {\n CameraPinhole desired = new CameraPinhole(paramVisual);\n desired.skew = 0;\n adjustImage = LensDistortionOps.changeCameraModel(AdjustmentType.EXPAND, BorderType.ZERO, paramVisual, desired, paramAdjusted, visType)... |
"public int getIndex(int compressedIndex) {\n if (root == null)\n throw new IndexOutOfBoundsException(\"String_Node_Str\" + compressedIndex);\n return root.getIndexByCompressedIndex(compressedIndex);\n}\n"
|
"public void writeUTF(String str) throws IOException {\n new DataOutputStream(outputStream).writeUTF(str);\n}\n"
|
"public Object calculate(Object value) {\n if (value == null) {\n return new Double(-1);\n }\n if (intervalStart == null) {\n return new Double(Math.floor(DateTimeUtil.diffSecond(defaultStart, target) / getDateIntervalRange()));\n } else {\n if (DateTimeUtil.diffSecond((Date) intervalSt... |
"protected boolean skip(final Object input) {\n if (ifFilter != null && input instanceof OIdentifiable) {\n final ODocument doc = ((OIdentifiable) input).getRecord();\n final Object result = ifFilter.evaluate(doc, null, context);\n if (!(result instanceof Boolean))\n throw new OConfig... |
"public void writePortableData(EntityPlayer player, NBTTagCompound tag) {\n if (!canPlayerAccess(player)) {\n return;\n }\n super.writePortableData(player, tag);\n tag.setBoolean(\"String_Node_Str\", lockPrimary);\n}\n"
|
"private SuggestedWordInfo transformWordInfo(final String info, final int trailingSingleQuotesCount) {\n final SuggestedWordInfo suggestedWordInfo = createWordInfo(info);\n final SuggestedWordInfo returnedWordInfo = Suggest.getTransformedSuggestedWordInfo(suggestedWordInfo, Locale.ENGLISH, false, false, trailingS... |
"private boolean isMember(BundleRevision bundleRevision) {\n Bundle bundle = bundleRevision.getBundle();\n if (bundle != null) {\n return isUserRegionBundle(bundle);\n }\n Long bundleId = getBundleId(bundleRevision);\n return isUserRegionBundle(bundleId);\n}\n"
|
"public boolean hasPrevious() {\n return cursor != null && cursor != l.head;\n}\n"
|
"public boolean hasInflightRequests() {\n return !isFlushed;\n}\n"
|
"public void onSuccess(Object result) {\n onConsumed();\n}\n"
|
"protected void addItemReference(Component modelOwner, final Component comp, int index, String varnm) {\n if (comp.getDefinition().isNative()) {\n for (Component child : comp.getChildren()) {\n addItemReference(modelOwner, child, index, varnm);\n }\n } else {\n final Binder binder ... |
"public int add(FormIndex index) {\n int i = indexOf(index, false);\n if (i != -1 && get(i).equals(index)) {\n return -1;\n } else {\n v.insertElementAt(index, i + 1);\n return i + 1;\n }\n}\n"
|
"public void testFilter1() throws Exception {\n ICubeQueryDefinition cqd = new CubeQueryDefinition(cubeName);\n IEdgeDefinition columnEdge = cqd.createEdge(ICubeQueryDefinition.COLUMN_EDGE);\n IEdgeDefinition rowEdge = cqd.createEdge(ICubeQueryDefinition.ROW_EDGE);\n IDimensionDefinition dim1 = columnEdge.c... |
"public boolean isOwningNode(XPathFragment xPathFragment) {\n return xPathFragment.getNextFragment() == null || xPathFragment.isAttribute();\n}\n"
|
"public UpdateIssueParams resolution(Issue.ResolutionType resolutionType) {\n if (resolutionType == null) {\n parameters.add(new NameValuePair(\"String_Node_Str\", \"String_Node_Str\"));\n } else {\n parameters.add(new NameValuePair(\"String_Node_Str\", String.valueOf(resolutionType.getIntValue())))... |
"public static int calcTextWidth(Paint paint, String demoText) {\n return (int) paint.measureText(demoText);\n}\n"
|
"private static String dumpMem(int pc, int size, int[] memory) {\n String output = \"String_Node_Str\";\n for (int i = 0, n = size; i < n; i++) {\n if (size > i) {\n output += Utils.hex8(memory[pc + i]) + \"String_Node_Str\";\n } else {\n output += \"String_Node_Str\";\n ... |
"public void handleSubjectChange(ID from, final String newSubject) {\n chatRoomTab.getInputText().getDisplay().asyncExec(new Runnable() {\n public void run() {\n chatRoomTab.setSubject(newSubject);\n }\n });\n }\n}\n"
|
"public String cast(Timestamp src, Class<?> toType, String... args) {\n return ((DateFormat) dateTimeFormat.clone()).format(new java.util.Date(src.getTime()));\n}\n"
|
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_searchresult_detail, container, false);\n view = rootView;\n findViews();\n toolbar.setVisibility(View.VISIBLE);\n setHasOptionsMenu(false);\n if (g... |
"protected int getNoDataText() {\n return R.string.no_issues_found;\n}\n"
|
"public void generate() {\n apply();\n}\n"
|
"public void go(SearchParameters searchParameters) {\n synchronized (startSearchLock) {\n if (!initialized || searching) {\n return;\n }\n searching = true;\n setSearchParameters(searchParameters);\n run();\n }\n}\n"
|
"public CustomerData registerAgentDataPublication(CustomerData customerData, Instant publishedAt) {\n final CustomerData result;\n if (customerData.getPricePlan().getMaxCollectionPeriodDays() > 0 && customerData.getTrialPeriodEndsAt() == null) {\n result = customerData.toBuilder().collectionStartedAt(publi... |
"public void start(IReportContent report) {\n logger.log(Level.FINE, \"String_Node_Str\");\n this.report = report;\n writer.open(out, \"String_Node_Str\");\n ReportDesignHandle designHandle = null;\n Report reportDesign = null;\n if (report != null) {\n reportDesign = report.getDesign();\n ... |
"public static boolean deletePathsUsedByServiceForwarderExecutor(ServiceFunctionForwarder serviceFunctionForwarder) {\n printTraceStart(LOG);\n boolean ret = true;\n Object[] serviceForwarderObj = { serviceFunctionForwarder };\n Class[] serviceForwarderClass = { ServiceFunctionForwarder.class };\n SfcPro... |
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n mHeaderHeight = getResources().getDimensionPixelSize(R.dimen.header_height);\n mMinHeaderTranslation = -(mHeaderHeight * 2) + QuickReturnUtils.getActionBarHeight(getActivity());\n}\n"
|
"private static void setParam(Map<String, Object> params, String name, Object value, float coef) {\n if (value != null) {\n Object[] array = new Object[2];\n String finalLifeCycleState = value.getFinalLifeCycleState();\n finalLifeCycleState = (finalLifeCycleState != null && !finalLifeCycleState.... |
"protected ReturnCode executeSqlQuery(String sqlStatement) throws SQLException {\n ReturnCode ok = new ReturnCode(true);\n Set<String> columns = getAnalyzedElements();\n List<String> columnlist = sortColumnName(columns, sqlStatement);\n if (columnlist.isEmpty()) {\n ok.setReturnCode(Messages.getStrin... |
"public static DatabaseConnection fillDbConnectionInformation(DatabaseConnection dbConn) {\n boolean noStructureExists = ConnectionHelper.getAllCatalogs(dbConn).isEmpty() && ConnectionHelper.getAllSchemas(dbConn).isEmpty();\n java.sql.Connection sqlConn = null;\n try {\n if (noStructureExists) {\n ... |
"public ModelAndView list() {\n List<SyncopeUser> users = syncopeUserDAO.findAll();\n List<UserTO> userTOs = new ArrayList<UserTO>(users.size());\n for (SyncopeUser user : users) {\n userTOs.add(userDataBinder.getUserTO(user, userWorkflow));\n }\n return userTOs;\n}\n"
|
"protected String clearFromRepetitions(String text) {\n StringBuilder res = new StringBuilder();\n int previousPosition = -1;\n for (Character ch : text.toCharArray()) {\n int position = makeMeSpecial.indexOf(ch);\n if (position > -1 && position != previousPosition) {\n previousPositio... |
"public void add(String idTile, Texture texture) {\n if (count > max) {\n map.remove(paths[index]);\n count--;\n index--;\n }\n map.put(path, texture);\n paths[index++] = path;\n if (index >= max) {\n index = 0;\n }\n count++;\n}\n"
|
"public boolean applies(UUID objectId, Ability source, UUID affectedControllerId, Game game) {\n Card card = game.getCard(objectId);\n if (card != null && affectedControllerId.equals(card.getOwnerId()) && game.getState().getZone(card.getId()) == Zone.EXILED) {\n HashSet<MageObjectReference> exiledCardsByPl... |
"private void generateDataSummary(GraphRewrite event) {\n ReportService reportService = new ReportService(event.getGraphContext());\n try {\n Path dataDirectory = reportService.getReportDataDirectory();\n Path issueSummaryJSPath = dataDirectory.resolve(ISSUE_SUMMARIES_JS);\n try (FileWriter i... |
"public void testGoOfflinePusher() throws Exception {\n int previous = RemoteRequestRetry.RETRY_DELAY_MS;\n RemoteRequestRetry.RETRY_DELAY_MS = 5;\n try {\n Map<String, Object> properties = new HashMap<String, Object>();\n properties.put(\"String_Node_Str\", \"String_Node_Str\");\n Documen... |
"public static final <T extends ChannelHandler> void startUpstream(Integer correlationId, T handler) {\n if (!StackConfiguration.STATISTICS) {\n return;\n } else if (requestStatistics.containsKey(correlationId)) {\n RequestRecord record = requestStatistics.get(correlationId);\n HandlerRecord ... |
"public boolean cancel(boolean mayInterruptIfRunning) {\n Object localValue = value;\n boolean rValue = false;\n if (localValue == null | localValue instanceof SetFuture) {\n Object valueToSet = GENERATE_CANCELLATION_CAUSES ? new Cancellation(mayInterruptIfRunning, new CancellationException(\"String_Nod... |
"public void onRefreshStart() {\n Log.i(Constants.REFRESH_LOG, \"String_Node_Str\" + mEventKey + \"String_Node_Str\");\n mTask = new PopulateEventStats(this, true, statSortCategory);\n mTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, mEventKey);\n}\n"
|
"private void initSoldierRequests() {\n final OccupierPlace[] occupierPlaces = super.getBuildingType().getOccupierPlaces();\n if (occupierPlaces.length > 0) {\n emptyPlaces.addAll(Arrays.asList(occupierPlaces));\n requestSoldier(ESoldierClass.INFANTRY);\n }\n}\n"
|
"private Tag generateETag(ResourceSetDescription resourceSetDescription) {\n int hashCode = resourceSetDescription.hashCode();\n JsonValue description = resourceSetDescription.getDescription();\n if (!description.isDefined(OAuth2Constants.ResourceSets.LABELS)) {\n description.put(OAuth2Constants.Resourc... |
"private void writeWrappedValue(int pid, int rid, Object value, ByteBuffer buffer) throws BimserverDatabaseException {\n IdEObject wrappedValue = (IdEObject) value;\n EStructuralFeature eStructuralFeature = wrappedValue.eClass().getEStructuralFeature(\"String_Node_Str\");\n Short cid = database.getCidOfEClass(... |
"public void setSmallHeader(boolean isCompact) {\n if (this.isSmallHeader == isCompact)\n return;\n this.isSmallHeader = isCompact;\n relayout();\n setHasThick(max(this, 0));\n relayoutParent();\n}\n"
|
"private void loadMixes() {\n RandomAccessFile randomAccessFile = null;\n try {\n List<Path> mixFiles = listDirectoryMixes(Paths.get(RESOURCE_FOLDER));\n for (Path f : mixFiles) {\n randomAccessFile = new RandomAccessFile(f.toString(), \"String_Node_Str\");\n FileChannel inChan... |
"public void afterPropertiesSet() throws Exception {\n List<ClusterEntity> clusters = lockedEntityManager.getClusterEntityMgr().findAllClusters();\n for (ClusterEntity cluster : clusters) {\n requestQueue.add(cluster.getName());\n logger.info(\"String_Node_Str\" + cluster.getName());\n }\n syn... |
"static ImmutableMap<File, ClassLoader> getClassPathEntries(ClassLoader classloader) {\n LinkedHashMap<File, ClassLoader> entries = Maps.newLinkedHashMap();\n ClassLoader parent = classloader.getParent();\n if (parent != null) {\n entries.putAll(getClassPathEntries(parent));\n }\n if (classloader ... |
"public void doUpload() {\n writeHeader();\n int c = -1;\n int available = 0;\n while (true) {\n try {\n c = _fis.read();\n } catch (IOException e) {\n uploadError(\"String_Node_Str\");\n e.printStackTrace();\n }\n if (c == -1)\n break;... |
"public CommandResult execute(CommandSource source, CommandContext context) throws CommandException {\n String factionName = context.<String>getOne(\"String_Node_Str\").get();\n if (FactionLogic.getFactions().contains(factionName)) {\n Faction faction = FactionLogic.getFaction(factionName);\n List<T... |
"public void updateObjectives() {\n int inexactRange = getMatch().getInexactRange();\n objloop: for (BlockData bd : getObjectives()) {\n for (Map.Entry<Location, BlockData> e : winConditions.entrySet()) if (bd.equals(e.getValue())) {\n if (getMatch().blockInRange(bd, e.getKey(), inexactRange) !=... |
"public void restoreState(Object[] state) {\n currentEventChunk.clear();\n currentEventChunk.add((StreamEvent) state[0]);\n if (state[1] != null) {\n expiredEventChunk.clear();\n expiredEventChunk.add((StreamEvent) state[6]);\n }\n}\n"
|
"public void testExecuteOnKeys() throws InterruptedException, ExecutionException {\n TestHazelcastInstanceFactory nodeFactory = createHazelcastInstanceFactory(2);\n HazelcastInstance instance1 = nodeFactory.newHazelcastInstance();\n HazelcastInstance instance2 = nodeFactory.newHazelcastInstance();\n IMap<In... |
"public void doImport(Database database) {\n try {\n DatabaseType type = getDatabaseType(database);\n if (type == null) {\n throw new ImportException(NbBundle.getMessage(getClass(), \"String_Node_Str\"));\n }\n final DatabaseImporter importer = getMatchingImporter(type);\n ... |
"public void importCSVToEdgesTable(File file, Character separator, Charset charset, String[] columnNames, AttributeType[] columnTypes, boolean createNewNodes) {\n if (columnNames == null || columnNames.length == 0) {\n return;\n }\n if (columnTypes == null || columnNames.length != columnTypes.length) {\... |
"public void run() {\n if (DBG)\n log(\"String_Node_Str\");\n}\n"
|
"public boolean hasPropertyLoadBinding(Component comp, String attr) {\n checkInit();\n Map<String, List<Binding>> map = _bindings.get(comp);\n if (map == null)\n return false;\n List<Binding> list = map.get(attr);\n if (list == null)\n return false;\n for (Binding binding : list) {\n ... |
"public void init() {\n GameRegistry.registerTileEntity(TileEntityGunTurret.class, \"String_Node_Str\");\n GameRegistry.registerTileEntity(TileEntityAATurret.class, \"String_Node_Str\");\n GameRegistry.registerTileEntity(TCiGuiPao.class, \"String_Node_Str\");\n GameRegistry.registerTileEntity(TPaoDaiZhan.cl... |
"public synchronized int getProgress() {\n return mySeekBar.getProgress() + min;\n}\n"
|
"public void check(MarkerList markers, IContext context) {\n if (this.instance != null) {\n this.instance.check(markers, context);\n }\n if (this.method != null) {\n IType type1 = this.instance.getType();\n IType type2 = super.getType();\n if (!type1.isSuperTypeOf(type2)) {\n ... |
"public void testCreate() throws Exception {\n String title = \"String_Node_Str\";\n String contact = \"String_Node_Str\";\n String doc = \"String_Node_Str\";\n byte priority = 3;\n Problem problem = new Problem();\n problem.setTitle(title);\n problem.setContact(contact);\n problem.setDoc(doc);\... |
"public void run() {\n callback.onStartSuccess(settings);\n}\n"
|
"public static boolean performFollowAction(final long blogId, final String blogUrl, final boolean isAskingToFollow) {\n final boolean hasBlogId = (blogId != 0);\n final boolean hasBlogUrl = !TextUtils.isEmpty(blogUrl);\n if (!hasBlogId && !hasBlogUrl) {\n return false;\n }\n final boolean isCurren... |
"public void deserialize(ReusableBuffer buf) {\n write_xcap = new XCap();\n write_xcap.deserialize(buf);\n}\n"
|
"public boolean mayBuyCompanyShare(PublicCompanyI company, int number) {\n if (portfolio.ownsShare(company) + number * company.getShareUnit() > 60)\n return false;\n return true;\n}\n"
|
"public String toString() {\n return genotypes.isLazyWithData() ? toStringUnparsedGenotypes() : toStringDecodeGenotypes();\n}\n"
|
"private void findResourcesForConcepts(Collection<Resource> concepts) throws OpenRDFException {\n Iterator<Resource> conceptIt = new MonitoredIterator<>(concepts, progressMonitor, \"String_Node_Str\");\n while (conceptIt.hasNext()) {\n Resource concept = conceptIt.next();\n extResourcesForConcept.pu... |
"public void widgetSelected(SelectionEvent se) {\n PreferenceDialog pref = PreferencesUtil.createPreferenceDialogOn(getShell(), \"String_Node_Str\", new String[] {}, null);\n if (pref != null) {\n pref.open();\n }\n}\n"
|
"protected Set<? extends Component> getAvailableAtClient(int offset, int limit) {\n if (!isCropper())\n return null;\n final Set<Component> avail = new LinkedHashSet<Component>(32);\n avail.addAll(_listbox.getHeads());\n final Listfoot listfoot = _listbox.getListfoot();\n if (listfoot != null)\n ... |
"public void receive(int target, Iterator<Object> it) {\n int itercount = 0;\n Object temp;\n while (it.hasNext()) {\n itercount++;\n temp = it.next();\n if (temp instanceof ImmutablePair) {\n ImmutablePair<Object, Object> data = (ImmutablePair<Object, Object>) temp;\n ... |
"public Set<String> getPlayers(Player player) {\n Set<String> party = new HashSet<String>();\n if (DependencyUtils.hasMcMMO() && PartyAPI.inParty(player)) {\n List<Player> members = PartyAPI.getOnlineMembers(player);\n if (members != null) {\n for (Player member : members) {\n ... |
"public <K, V> NearCache<K, V> getOrCreateNearCache(String name, NearCacheConfig nearCacheConfig, NearCacheContext nearCacheContext) {\n NearCache<K, V> nearCache = nearCacheMap.get(name);\n if (nearCache == null) {\n synchronized (mutex) {\n nearCache = nearCacheMap.get(name);\n if (... |
"private static DocumentModel findFirstDocument(CoreSession session, String type, String field, String value) throws ClientException {\n DocumentModelList apis = session.query(\"String_Node_Str\" + type + \"String_Node_Str\" + field + \"String_Node_Str\" + value + \"String_Node_Str\");\n return (apis != null && a... |
"public void process() {\n if (RecordAndReplayStatus.getCurrentStatus() == RecordAndReplayStatus.REPLAYING && !this.areRecordedEventsLoaded) {\n fillRecordedEvents();\n this.areRecordedEventsLoaded = true;\n logger.info(\"String_Node_Str\");\n replayEventsLoadTime = System.currentTimeMill... |
"public void showHighBaskNotice() {\n mViewHolder.getTvBaskNotice().setText(R.string.weather_high_bask);\n}\n"
|
"public void putGlobal(String whereSql, String clusterName, String tableName, List data) {\n if (StringUtil.isBlank(whereSql) || data == null || data.isEmpty()) {\n return;\n }\n try {\n String versionKey = _buildGlobalVersion(clusterName, tableName);\n int version = r.nextInt(10000);\n ... |
"private void writeKeyValueHead(String key) {\n write(INDENTS[sectionLevel]);\n write(key);\n write('=');\n}\n"
|
"protected void handleSmartcard(Transport transport) throws IOException {\n if (!(mSecurityTokenHelper.isPersistentConnectionAllowed() && mSecurityTokenHelper.isConnected() && mSecurityTokenHelper.getTransport().equals(transport))) {\n mSecurityTokenHelper.setTransport(transport);\n mSecurityTokenHelpe... |
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.dashboard);\n this.baseDirectory = getFilesDir();\n this.flipper = (ViewFlipper) findViewById(R.id.subject_views);\n Button subjectCreateButton = (Button) findViewById(R.id.subject_create_bu... |
"public void execute() throws BuildException {\n try {\n this.sardine = SardineFactory.begin(this.username, this.password, this.port);\n for (Command command : this.commands) {\n command.executeCommand();\n }\n } catch (Exception e) {\n throw new BuildException(e);\n }\n}... |
"public static boolean isAbsoluteUrl(String ref) {\n return ref != null && (ref.startsWith(\"String_Node_Str\") || ref.startsWith(\"String_Node_Str\") || ref.startsWith(\"String_Node_Str\") || ref.startsWith(\"String_Node_Str\"));\n}\n"
|
"private void generateElementDefinition(ElementDefinition ed, ElementDefinition parent) {\n String id = ed.getPath().replace(\"String_Node_Str\", \"String_Node_Str\");\n if (id.length() > 64)\n id = id.substring(0, 64);\n DataElement de;\n if (des.containsKey(id)) {\n de = des.get(id);\n ... |
"public void execute(IfcModelInterface model, Project project, ConcreteRevision concreteRevision, DatabaseSession databaseSession, Map<Long, IdEObject> created, Map<Long, IdEObject> deleted) throws UserException, BimserverLockConflictException, BimserverDatabaseException {\n EClass eClass = databaseSession.getEClass... |
"public void should_execute_if_js_files() {\n DefaultFileSystem localFS = new DefaultFileSystem();\n JavaScriptSquidSensor sensor = new JavaScriptSquidSensor(mock(RulesProfile.class), fileLinesContextFactory, mock(ResourcePerspectives.class), localFS, new NoSonarFilter(mock(SensorContext.class)), new PathResolver... |
"public void run() {\n try {\n updateProgressListener(EProgressState.LOADING, 0.1f);\n DataOutputStream replayFileStream = createReplayFileStream();\n IGameClock gameClock = MatchConstants.clock = taskScheduler.getGameClock();\n gameClock.setReplayLogStream(replayFileStream);\n Ran... |
"private TabularRowSet executeColumnQuery(XmlaRequest request) throws XmlaException {\n checkFormat(request);\n DataSourcesConfig.DataSource ds = getDataSource(request);\n DataSourcesConfig.Catalog dsCatalog = getCatalog(request, ds);\n String roleName = request.getRoleName();\n Role role = request.getRo... |
"public void onDestroyDraggable(Draggable sender) {\n if (mDraggables.size() > 1) {\n BubbleLegacyView bubbleView = sender.getBubbleLegacyView();\n int bubbleIndex = bubbleView.getBubbleIndex();\n destroyBubble(sender, Config.BubbleAction.Destroy);\n int nextBubbleIndex = Util.clamp(0, bu... |
"private CharSequence adjustLabelToShiftState(AnyKey key) {\n CharSequence label = key.label;\n if (mKeyboard.isShifted()) {\n if (!TextUtils.isEmpty(key.shiftedKeyLabel)) {\n return key.shiftedKeyLabel;\n } else if (label != null && label.length() == 1) {\n label = Character.t... |
"public boolean payForWolf(Player p, double cost, int type) {\n if (cost <= 0 || (isUsing(Bank.None) && type == -1))\n return true;\n else if (type != -1) {\n ItemStack item = p.getItemInHand();\n int finalamount = item.getAmount() - (int) cost;\n if (finalamount > 0) {\n p.... |
"public boolean isReady() {\n return (connected && ipv4Address != null && !Constants.NULL_IPV4_ADDRESS.equals(ipv4Address));\n}\n"
|
"public void setSystemUiVisibility(int vis, int mask) {\n final int oldVal = mSystemUiVisibility;\n final int newVal = (oldVal & ~mask) | (vis & mask);\n final int diff = newVal ^ oldVal;\n if (DEBUG)\n Log.d(TAG, String.format(\"String_Node_Str\", Integer.toHexString(vis), Integer.toHexString(mask),... |
"protected void start(TypedProperties properties) {\n streamable = new HttpStreamable(properties.get(URL), properties.get(HTTP_METHOD, HTTP_METHOD_GET), properties.get(CONTENT_TYPE), properties.getInt(HTTP_TIMEOUT), properties.get(SECURITY), properties.get(SECURITY_USERNAME), properties.get(SECURITY_PASSWORD));\n}\n... |
"public void writePortableData(EntityPlayer player, NBTTagCompound tag) {\n if (!canPlayerAccess(player)) {\n return;\n }\n tag.setInteger(\"String_Node_Str\", intensity);\n tag.setInteger(\"String_Node_Str\", angle);\n}\n"
|
"public void addPathway(PathwayGraph pathway) {\n PathwayDataDomain pathwayDataDomain = (PathwayDataDomain) DataDomainManager.get().getDataDomainByType(PathwayDataDomain.DATA_DOMAIN_TYPE);\n List<TablePerspective> tablePerspectives = new ArrayList<>(experimentalDataMappingElement.getDmState().getTablePerspectives... |
"public void updatePoint() {\n currentPoint = previousPoint.add(currentDirection.mult(currentStepSize));\n if (lowerBound != null)\n if (lowerBound.size() > 1)\n currentPoint.maxElementwiseInPlace(lowerBound);\n else\n currentPoint.maxElementwise(lowerBound.get(0));\n if (up... |
"private void handle(HttpServletRequest req, HttpServletResponse res) throws Exception {\n try {\n String error = req.getParameter(\"String_Node_Str\");\n if (error != null && error.equals(\"String_Node_Str\")) {\n res.sendRedirect(controller.buildAuthorizeUrl(req, false));\n } else {... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.