content stringlengths 40 137k |
|---|
"public boolean dogSitterSignUp(String email, String name, String surname, String password, String phoneNumber, Date dateOfBirth, Address address, PaymentMethod paymentMethod, Area area, HashSet<DogSize> listDogSize, int dogsNumber, String biography, Availability dateTimeAvailability, boolean acceptCash) {\n if (!(c... |
"private Uri endFile(FileCacheEntry entry, boolean ringtones, boolean notifications, boolean alarms, boolean music, boolean podcasts) throws RemoteException {\n Uri tableUri;\n boolean isAudio = MediaFile.isAudioFileType(mFileType);\n boolean isVideo = MediaFile.isVideoFileType(mFileType);\n boolean isImage... |
"public void actionPerformed(ActionEvent e) {\n Collection<Element> selectedElements = MDUtils.getSelection(e);\n setContext(selectedElements);\n OclEvaluator.resetEnvironment();\n constraintRule.init(Utils.getProject(), null);\n Set<Annotation> annotations = constraintRule.run(Utils.getProject(), null, ... |
"public List<CardType> getNotCardType() {\n return this.notCardType;\n}\n"
|
"private IResultClass mergeResultHint(List modelResultHints, IResultClass meta) {\n if (modelResultHints == null || modelResultHints.isEmpty())\n return meta;\n IResultClass newResultClass;\n try {\n newResultClass = copyResultClass(meta);\n } catch (Exception ex) {\n return meta;\n ... |
"public AbstractIndicatorForm[] createForm(Composite parent, ICheckListener listener, FormEnum[] formTypes) {\n IndicatorParameters parameters = indicatorUnit.getIndicator().getParameters();\n if (parameters == null) {\n parameters = IndicatorsFactory.eINSTANCE.createIndicatorParameters();\n indicat... |
"protected void _connectedSubGraph(Node node, DirectedGraph graph, Collection remainingNodes) {\n if (!graph.containsNode(node)) {\n graph.addNode(node);\n remainingNodes.remove(node);\n }\n Iterator inputEdges = inputEdges(node).iterator();\n while (inputEdges.hasNext()) {\n Edge input... |
"public void run() {\n rosterView.handleRosterEntryUpdate(PresenceContainerUI.this.groupID, entry);\n}\n"
|
"public void display(GL2 gl) {\n templateRenderer.render(gl);\n if (updateVisualUncertainty) {\n for (ClusterRenderer clusterRenderer : overviewHeatMap.getClusterRendererList()) {\n clusterRenderer.updateVisualUncertainty(gl, pixelGLConverter);\n }\n updateVisualUncertainty = false... |
"private void checkCompNamesPairs() {\n IProjectPO project = GeneralStorage.getInstance().getProject();\n if (project == null) {\n return;\n }\n final ITreeNodeOperation<INodePO> op = new CheckProblemsOperation();\n TreeTraverser traverser = new TreeTraverser(project, op, false, true);\n CheckF... |
"private Notification buildNotification() {\n boolean empty = true;\n StringBuilder builder = new StringBuilder();\n String divider = getString(R.string.settings_multi_list_divider);\n for (ChildService child : mMap.values()) {\n if (!empty) {\n builder.append(divider);\n }\n ... |
"protected void highlightPattern(TextView textView, Spannable text, String htmlFormattedText, String pattern) {\n if (null == textView) {\n return;\n }\n if (!TextUtils.isEmpty(pattern) && !TextUtils.isEmpty(text) && (text.length() >= pattern.length())) {\n String lowerText = text.toString().toLo... |
"public void removeEvent(Event event) {\n super.remove(event);\n Set<?> s = displayedEvents.entrySet();\n Iterator<?> it = s.iterator();\n int key = -1;\n while (it.hasNext()) {\n Map.Entry m = (Map.Entry) it.next();\n key = (Integer) m.getKey();\n System.out.println(event.getId());\... |
"public String getCurrentVersion() {\n Connection conn = null;\n try {\n s_logger.debug(\"String_Node_Str\");\n conn = Transaction.getStandaloneConnection();\n PreparedStatement pstmt = conn.prepareStatement(\"String_Node_Str\");\n ResultSet rs = pstmt.executeQuery();\n if (!rs.... |
"public void testFullyMaskedData() {\n MultiDataSetIterator iter = new TestMultiDataSetIterator(1, new MultiDataSet(new INDArray[] { Nd4j.create(new float[] { 1 }).reshape(1, 1, 1) }, new INDArray[] { Nd4j.create(new float[] { 2 }).reshape(1, 1, 1) }), new MultiDataSet(new INDArray[] { Nd4j.create(new float[] { 2 })... |
"public static JsonEntityField eval(Mirror<?> mirror, Field fld) {\n if (fld == null) {\n return null;\n }\n if (fld.getName().startsWith(\"String_Node_Str\") && fld.getAnnotation(JsonField.class) == null)\n return null;\n JsonField jf = fld.getAnnotation(JsonField.class);\n JsonEntityField... |
"private void addEntry() {\n LineData data = mChart.getData();\n if (data != null) {\n LineDataSet set = data.getDataSetByIndex(0);\n if (set == null) {\n set = createSet();\n data.addDataSet(set);\n }\n data.addXValue(mMonths[data.getXValCount() % 12] + \"String_... |
"protected final GLElementDecorator createRoot() {\n GLElementDecorator g = new GLElementDecorator();\n g.setContent(createContent());\n return g;\n}\n"
|
"public void run() {\n setRunnable(true);\n if (!killBtn.isDisposed() && killBtn != null) {\n killBtn.setEnabled(false);\n}\n"
|
"private void handleRequiredElement(final FlexibleElementDTO elementDTO, final IterableGroupPanel tabPanel, final IterableGroupItem tabItem, final ValueResult valueResult, final LayoutConstraintDTO constraintDTO, final Integer iterationId, final LayoutGroupDTO groupLayout) {\n elementDTO.addRequiredValueHandler(new ... |
"public Path getFileName() {\n Path name = path.getFileName();\n if (name != null && !name.toString().equals(\"String_Node_Str\")) {\n return name;\n }\n return Paths.get(getVirtualDir().getBasePath()).getFileName();\n}\n"
|
"public void work() {\n if (INFO)\n Slog.i(TAG, \"String_Node_Str\" + record.getKey());\n for (final String handle : pendingLookups) {\n LookupResult lookupResult = null;\n final Uri uri = Uri.parse(handle);\n if (\"String_Node_Str\".equals(uri.getScheme())) {\n if (DEBUG)\n... |
"private void forgeBuddyLink(BuddyGroup group, Buddy buddy) {\n String linkId = \"String_Node_Str\" + group.getGroupKey() + \"String_Node_Str\" + buddy.getIdentityKey();\n if (buddiesListContent.getComponent(linkId) == null) {\n Link buddyLink = LinkFactory.createCustomLink(linkId, \"String_Node_Str\", \"S... |
"private static ResourceBundle getResourceBundle() {\n if (resourceBundle == null) {\n synchronized (DataException.class) {\n if (resourceBundle != null)\n return resourceBundle;\n if (currentLocale != null)\n resourceBundle = DataResourceHandle.getInstance(... |
"private void createAttributeArea(Composite parent) {\n grpAttributes = new Group(parent, SWT.NONE);\n {\n grpAttributes.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n grpAttributes.setLayout(new GridLayout(2, false));\n grpAttributes.setText(Messages.getString(\"String_Node_Str\"))... |
"public boolean setPossibleActions() {\n possibleActions.clear();\n selectedAction = null;\n boolean forced = false;\n doneAllowed = false;\n if (getStep() == GameDef.OrStep.INITIAL) {\n initTurn();\n if (noMapMode) {\n nextStep(GameDef.OrStep.LAY_TOKEN);\n } else {\n ... |
"public void run() {\n if (!handsFree) {\n lastResult = decoder.decode(liveFrame.getReference());\n updateLiveFrame(decoder.getNISTAlign());\n liveFrame.setButtonsEnabled(true);\n liveFrame.setDecoderComboBoxEnabled(true);\n } else {\n liveFrame.setNextButtonEnabled(true);\n ... |
"protected void breakAndRemember(World world, int x, int y, int z) {\n if (!world.isRemote) {\n harvestBlock(world, player, x, y, z, world.getBlockMetadata(x, y, z));\n }\n}\n"
|
"public static long getRandomLong(long val, Random rand) {\n if (val == 0) {\n return 0;\n }\n int low = (int) (val & Integer.MAX_VALUE);\n int mid = (int) ((val >>> 31) & Integer.MAX_VALUE);\n int high = (int) ((val >>> 62) & Integer.MAX_VALUE);\n boolean mh = (mid | high) > 0;\n long r = m... |
"private boolean suppressAbilityPicker(ActivatedAbility ability) {\n if (this.getUserData().isShowAbilityPickerForced()) {\n if (ability instanceof PlayLandAbility) {\n return true;\n }\n if (!ability.getSourceId().equals(getCastSourceIdWithAlternateMana()) && ability.getManaCostsToPa... |
"CommonHFSCatalogLeafRecord getRecord(CommonHFSCatalogFolderRecord rootRecord, String... path) {\n String prefix = globalPrefix;\n globalPrefix += \"String_Node_Str\";\n System.err.println(prefix + \"String_Node_Str\" + (rootRecord != null ? rootRecord.getKey().getParentID().toLong() + \"String_Node_Str\" + ge... |
"public void onPerformSync(Account account, Bundle extras, String authority, ContentProviderClient provider, SyncResult syncResult) {\n Log.d(TAG, \"String_Node_Str\" + account + \"String_Node_Str\" + authority + \"String_Node_Str\" + extras + \"String_Node_Str\");\n String inputId = extras.getString(SyncAdapter.... |
"void bind(CalendarMonth month) {\n if (title != null) {\n title.setText(month.getReadableMonthName());\n }\n for (int i = 0; i <= weeks.length - 1; i++) {\n weeks[i].display(i, month, filterWeekDays(i, month));\n }\n}\n"
|
"public void run() {\n if (!checkInitialized()) {\n LOGGER.error(\"String_Node_Str\");\n shouldStop = true;\n }\n while (!shouldStop) {\n if (takeImage) {\n if (countdown != 0) {\n shotFrameController.showCountdown(countdown);\n while (!shotFrameCon... |
"private CrestRouter createResourceRouter(final Set<String> invalidRealmNames) {\n FluentRouter rootRealmRouterDelegate = InjectorHolder.getInstance(LoggingFluentRouter.class);\n FluentRouter rootRealmRouter = new RealmBlackListingFluentRouter(rootRealmRouterDelegate, invalidRealmNames);\n FluentRealmRouter dy... |
"public Map<String, Object> createOrUpdate(Collection collection, UpdateOp updateOp) {\n log(\"String_Node_Str\", updateOp);\n DBCollection dbCollection = getDBCollection(collection);\n BasicDBObject setUpdates = new BasicDBObject();\n BasicDBObject incUpdates = new BasicDBObject();\n for (Entry<String, ... |
"public RepeatStatus executeStep(ChunkContext chunkContext, JobExecutionStatusHolder jobExecutionStatusHolder) throws Exception {\n String clusterName = getJobParameters(chunkContext).getString(JobConstants.CLUSTER_NAME_JOB_PARAM);\n List<BaseNode> addedNodes = getFromJobExecutionContext(chunkContext, JobConstant... |
"public void setFlowletInstances(HttpRequest request, HttpResponder responder, final String appId, final String flowId, final String flowletId, final String instanceCount) {\n short instances = 0;\n try {\n Short count = Short.parseShort(instanceCount);\n instances = count.shortValue();\n if ... |
"View createUnlockScreenFor(UnlockMode unlockMode) {\n mIsPortrait = getResources().getBoolean(R.bool.lockscreen_isPortrait);\n View unlockView = null;\n if (unlockMode == UnlockMode.Pattern) {\n PatternUnlockScreen view = new PatternUnlockScreen(mContext, mConfiguration, mLockPatternUtils, mUpdateMonit... |
"public String perform(HttpServletRequest request) {\n List<String> errors = new ArrayList<String>();\n request.setAttribute(\"String_Node_Str\", errors);\n HttpSession session = request.getSession();\n User curUser = (User) session.getAttribute(\"String_Node_Str\");\n if (curUser == null) {\n ret... |
"public void setup() {\n serverSocketList = new ArrayList<ServerSocket>();\n executorList = new HashMap<String, Executor>();\n String agentHome = setupJavaAgent();\n ExecutorService executorService = StratosThreadPool.getExecutorService(\"String_Node_Str\", 5);\n TopologyEventReceiver topologyEventReceiv... |
"public static MultivariateGaussian checkAndConvertBelief(MultivariateGaussian belief, InferredPath path) {\n final MultivariateGaussian adjBelief;\n if (path.isNullPath() && belief.getInputDimensionality() != 4) {\n final double dist = AbstractRoadTrackingFilter.getOr().times(belief.getMean()).getElement(... |
"public static void setupOnce() throws Exception {\n System.out.println(\"String_Node_Str\");\n makeConfigFile();\n Config conf = new Config();\n conf.setNumWorkers(1);\n completeTopologyParam = new CompleteTopologyParam();\n completeTopologyParam.setStormConf(conf);\n}\n"
|
"public boolean deleteJob(JobKey jobKey) throws SchedulerException {\n return ((Boolean) invoke(\"String_Node_Str\", new Object[] { jobKey }, new String[] { JobKey.class.getName() })).booleanValue();\n}\n"
|
"public void requestStartEvent(HttpServletRequest request, Host host, Context context) {\n if (requestProbeProvider != null) {\n String appName = null;\n if (context instanceof WebModule) {\n appName = ((WebModule) context).getMonitoringNodeName();\n }\n String hostName = null;... |
"public static Object getElementSymbolType(IExpression symbol) {\n Object datatype = null;\n if (symbol instanceof IAliasSymbol) {\n symbol = ((IAliasSymbol) symbol).getSymbol();\n }\n if (symbol instanceof IElementSymbol) {\n IElementSymbol eSymbol = (IElementSymbol) symbol;\n Object i... |
"private void appendChatMessage(ChatMessage chatMessage) {\n String processedMessage = this.conversationPanel.processMessage(chatMessage);\n if (chatSession instanceof ConferenceChatSession) {\n if (chatMessage.getMessageType().equals(Chat.INCOMING_MESSAGE)) {\n String keyWord = ((ChatRoomWrappe... |
"public void connect(ID remote, IConnectContext joinContext) throws ContainerConnectException {\n fireContainerEvent(new ContainerConnectingEvent(this.getID(), remote, joinContext));\n try {\n if (isClosing)\n throw new IllegalStateException(\"String_Node_Str\");\n debug(\"String_Node_Str... |
"public void testExecuteProjectItem() {\n ContextItem jobDocExtItem = PropertiesFactory.eINSTANCE.createContextItem();\n jobDocExtItem.setProperty(PropertiesFactory.eINSTANCE.createProperty());\n JobDocItemMigrationTask jobDocItemMigrationTaskSpy = spy(new JobDocItemMigrationTask());\n jobDocItemMigrationTa... |
"public VivaldiStage getVivaldiStage() {\n return this.vStage;\n}\n"
|
"public Query visit(Stack<String> links, Query query) {\n if (query instanceof BinaryQuery) {\n BinaryQuery bq = (BinaryQuery) query;\n if (bq.field != null) {\n if (bq.field.equals(\"String_Node_Str\")) {\n if (bq.operation.equals(BinaryQuery.CONTAINS)) {\n ... |
"public MeasurementUnit newMeasurementUnit() {\n if (runInfo.isRunning()) {\n if (log.isTraceEnabled()) {\n log.trace(\"String_Node_Str\");\n }\n return new MeasurementUnit(runInfo.getNextIteration());\n }\n if (log.isTraceEnabled()) {\n log.trace(\"String_Node_Str\");\n ... |
"public void actionPerform(Database database, IdeFacade ideFacade) throws LiquibaseException {\n String changeLogFile = ideFacade.selectChangeLogFile();\n if (changeLogFile == null) {\n return;\n }\n ideFacade.getMigrator(changeLogFile, database).migrate();\n}\n"
|
"public void shutdown() {\n try {\n resultsLatch.await();\n } catch (InterruptedException e) {\n throw new RuntimeException(e);\n }\n if (socket != null) {\n try {\n socket.close();\n }\n if (client != null) {\n client.close();\n }\n if ... |
"public void onChanged() {\n if (mResolverDrawerLayout == null) {\n return;\n }\n final int chooserTargetRows = mChooserRowAdapter.getServiceTargetRowCount();\n int offset = 0;\n for (int i = 0; i < chooserTargetRows; i++) {\n final int pos = mChooserRowAdapter.getCallerTargetRowCount() + i... |
"public boolean match(ConnectionDetails details) {\n String host = details.getParam(\"String_Node_Str\");\n for (String notMatch : notMatches) {\n String propertyName = notMatch.substring(0, notMatch.indexOf(\"String_Node_Str\"));\n String propVal = host;\n String notMatchVal = notMatch.subst... |
"protected void processBOM() throws IOException {\n byte[] bom = new byte[BOM_SIZE];\n int read = pushbackReader.read(bom, 0, BOM_SIZE);\n int unread = 0;\n if (read > 0) {\n Set<String> encodings = BOMS.keySet();\n Iterator<String> itr = encodings.iterator();\n while (itr.hasNext()) {\... |
"public void testNoClusterAfterStartIssue328() throws Exception {\n HazelcastInstance h1 = Hazelcast.newHazelcastInstance(new Config());\n final ClientProperties clientProperties = ClientProperties.createBaseClientProperties(GroupConfig.DEFAULT_GROUP_NAME, GroupConfig.DEFAULT_GROUP_PASSWORD);\n clientPropertie... |
"public SAFA<P, S, E> normalize(BooleanAlgebra<P, S> ba, BooleanExpressionFactory<E> boolexpr) {\n Collection<SAFAInputMove<P, S, E>> transitions = new ArrayList<SAFAInputMove<P, S, E>>();\n boolean addedSink = false;\n int sink = maxStateId + 1;\n for (int state : states) {\n ArrayList<SAFAInputMove... |
"public ItemStack transferStackInSlot(EntityPlayer player, int clickedSlot) {\n ItemStack originalStackInSlot = null;\n Slot slot = (Slot) this.inventorySlots.get(clickedSlot);\n if (slot != null && slot.getHasStack()) {\n ItemStack itemstack1 = slot.getStack();\n itemstack = itemstack1.copy();\n... |
"protected void drawGuiContainerBackgroundLayer(float var1, int mouseX, int mouseY) {\n super.drawGuiContainerBackgroundLayer(var1, mouseX, mouseY);\n String str = StatCollector.translateToLocal(\"String_Node_Str\").toUpperCase();\n fontRendererObj.drawString(str, startX + 8 + textLayout.getCenteredOffset(str,... |
"public int doProcessing(Context context, HttpServletRequest request, HttpServletResponse response, SubmissionInfo subInfo) throws ServletException, IOException, SQLException, AuthorizeException {\n String buttonPressed = Util.getSubmitButton(request, NEXT_BUTTON);\n Item item = subInfo.getSubmissionItem().getIte... |
"public void updateScreen(boolean updateResult) {\n updateScreenWithInstaScrollOption(updateResult, false);\n if (!mCalc.isUnitSelected())\n clearConvKeyForFragPos(mConvKeysViewPager.getCurrentItem());\n}\n"
|
"public static Strategy getQueryExecutionStrategy(IQueryDefinition query, IBaseDataSetDesign dataSet) throws DataException {\n if (query.getGroups() != null && query.getGroups().size() > 0)\n return Strategy.Complex;\n if (query.getFilters() != null && query.getFilters().size() > 0) {\n return Strat... |
"public Class<? extends Annotation> annotationType() {\n return null;\n}\n"
|
"public void bearerRequestFailed() {\n super.grid.requestSoldierable(this);\n}\n"
|
"public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) throws Exception {\n String s;\n PeerAddress addr = address.get();\n s = addr == null ? \"String_Node_Str\" : addr.toString();\n if (e.getCause() instanceof ConnectException || e.getCause() instanceof IOException) {\n log.info(... |
"public void testReadingWritingWhenCycleIsSkipped() throws Exception {\n final Path dir = Files.createTempDirectory(\"String_Node_Str\");\n final RollCycles rollCycle = RollCycles.TEST_SECONDLY;\n try (ChronicleQueue queue = ChronicleQueueBuilder.single(dir.toString()).rollCycle(rollCycle).build()) {\n ... |
"static NodeFlags parse(DataInput in, int numNodes) throws IOException {\n if (numNodes == 0) {\n return EMPTY;\n }\n final int length = (int) Math.ceil(numNodes / 2D);\n byte[] bitsetData = new byte[length];\n in.readFully(bitsetData, 0, logicalSize);\n BitSet bitset = BitSet.valueOf(bitsetDat... |
"private synchronized void buildContentData() {\n try {\n MultiValueMap<String, Object> builder = new LinkedMultiValueMap<String, Object>();\n Set<String> queryParams = findQueryParams();\n for (Entry<String, String[]> entry : this.request.getParameterMap().entrySet()) {\n if (!queryP... |
"public PreparedStatement createPreparedStatement(Connection connection) throws SQLException {\n PreparedStatement ps = connection.prepareStatement(sql);\n ps.setString(1, punyNameLikeClause);\n ps.setString(2, punyNameLikeClause);\n ps.setLong(3, startRow);\n ps.setLong(4, page.getMaxRecords());\n re... |
"void callListeners(DataAwareEntryEvent dataAwareEntryEvent) {\n List<ListenerItem> listeners = getOrCreateListenerList(dataAwareEntryEvent.getLongName());\n for (ListenerItem listenerItem : listeners) {\n if (listenerItem.listens(dataAwareEntryEvent)) {\n try {\n callListener(lis... |
"public static void main(String[] args) throws Throwable {\n String v = \"String_Node_Str\";\n for (int i = 0; i < args.length; i++) {\n if (args[i].equals(\"String_Node_Str\")) {\n if (i + 1 < args.length) {\n v = parseVersion(args[i + 1]);\n }\n }\n }\n t... |
"public WritableArchive createSubArchive(String name) throws IOException {\n String subEntryName = getFileSubArchivePath(name);\n File subEntry = new File(subEntryName);\n if (!subEntry.exists()) {\n if (!subEntry.exists() && !subEntry.mkdirs()) {\n throw new IOException(\"String_Node_Str\" +... |
"protected void doUpdate(final AnalysisContextClassification context) {\n final StatisticsBuilderInterruptible builder = context.handle.getStatistics().getInterruptibleInstance();\n final DataHandle sourceHandle;\n if (context.handle instanceof DataHandleSubset) {\n sourceHandle = context.model.getInput... |
"public void initLMAlgoFactoryDecorator() {\n if (lmFactoryDecorator.hasWeightings())\n return;\n for (FlagEncoder encoder : encodingManager.fetchEdgeEncoders()) {\n for (String lmWeightingStr : lmFactoryDecorator.getWeightingsAsStrings()) {\n Weighting weighting = createWeighting(new Hin... |
"public void initialize() throws IllegalActionException {\n super.initialize();\n synchronized (this) {\n if (_tableaus != null) {\n for (Tableau tableau : _tableaus) {\n if (tableau != null) {\n tableau.close();\n }\n }\n }\n ... |
"private int build(final Collection<O> objects) {\n final KDTreeNode<O, T> n1 = createRef();\n final KDTreeNode<O, T> n2 = createRef();\n final KDTreeNode<O, T> n3 = createRef();\n for (final O obj : objects) create(n1).init(obj);\n final int max = objects.size() - 1;\n final int r = makeNode(0, max, ... |
"protected int getSampleSize() {\n return dataSet.size();\n}\n"
|
"public String convertToDegreeForm(Uri imageUri) throws IOException {\n ExifInterface exifInterface = new ExifInterface(imageUri.getPath());\n return getDegree(exifInterface.getAttribute(ExifInterface.TAG_GPS_LATITUDE), exifInterface.getAttribute(ExifInterface.TAG_GPS_LATITUDE_REF)) + \"String_Node_Str\" + getDeg... |
"public Map<String, Map<String, String>> load(String refer) {\n Map<String, Map<String, String>> re = new HashMap<String, Map<String, String>>();\n List<NutResource> allnrs = Scans.me().scan(refer, \"String_Node_Str\");\n for (NutResource nutResource : allnrs) {\n if (nutResource.getName().indexOf(refer... |
"public static ImmutableRangeSet<Integer> computeQuotedRegions(String s) {\n checkNotNull(s);\n final ImmutableRangeSet.Builder<Integer> ret = ImmutableRangeSet.builder();\n int curPos = 0;\n int regionStart = StringUtils.earliestIndexOfAny(s, BANNED_REGION_STARTS, curPos);\n while (regionStart != -1) {\... |
"private boolean isFriend(User user) {\n boolean isFriend;\n isFriend = isMe(user) ? true : UsersDatabaseManager.isFriendInBaseWithPending(baseActivity, user.getUserId());\n return isFriend;\n}\n"
|
"private void updateDisplay() {\n if (this.mDayOfWeekView != null) {\n this.mCalendar.setFirstDayOfWeek(mWeekStart);\n this.mDayOfWeekView.setText(dateformartsymbols.getWeekdays()[this.mCalendar.get(Calendar.DAY_OF_WEEK)].toUpperCase(Locale.getDefault()));\n }\n this.mSelectedMonthTextView.setTex... |
"public void perform(Arguments arguments, PrintStream output) throws Exception {\n EntityId entity = EntityId.fromString(arguments.get(ArgumentName.ENTITY.toString()));\n Map<String, String> properties = parseMap(arguments.get(\"String_Node_Str\"), \"String_Node_Str\");\n client.addProperties(entity.toId(), pr... |
"void updateContact(ArrayList<Map<String, String>> list, String username, String sipuri) {\n if (!prefsContacts.getString(sipuri, \"String_Node_Str\").equals(\"String_Node_Str\")) {\n SharedPreferences.Editor prefEdit = prefsContacts.edit();\n prefEdit.putString(sipuri, username);\n prefEdit.com... |
"public void advanceStart(String vmUuid, Map<VirtualMachineProfile.Param, Object> params, DeploymentPlan planToDeploy) throws InsufficientCapacityException, ConcurrentOperationException, ResourceUnavailableException {\n CallContext cctxt = CallContext.current();\n Account account = cctxt.getCallingAccount();\n ... |
"private static int getMaxVertProd(int[][] grid) {\n int product = 1;\n int maxProduct = 0;\n for (int c = 0; c < grid[0].length; c++) {\n for (int r = 0; r < grid.length - 3; r++) {\n for (int i = r; i < r + 4; i++) {\n product *= grid[i][c];\n }\n maxPro... |
"public int getColumnIndexByCoordinate(int value) {\n int index = columnCoordinates.indexOf(value);\n return (index == -1) ? -1 : index;\n}\n"
|
"private synchronized void gotResult(boolean success, String message) {\n initWithSuccess = success;\n failureFound = message;\n notify();\n}\n"
|
"private void startListFragments(Bundle savedInstanceState, Uri dataUri, Intent data) {\n if (savedInstanceState != null) {\n return;\n }\n SelectSignKeyIdListFragment listFragment = SelectSignKeyIdListFragment.newInstance(dataUri, data);\n getSupportFragmentManager().beginTransaction().replace(R.id.... |
"private void testEval(String expr, FormInstance model, EvaluationContext ec, Object expected) {\n XPathExpression xpe = null;\n boolean exceptionExpected = (expected instanceof XPathException);\n if (ec == null) {\n ec = new EvaluationContext(model);\n }\n try {\n xpe = XPathParseTool.pars... |
"private void replaceVariableDeclarations(Map<Var, Arg> renames) {\n ListIterator<Var> it = variables.listIterator();\n while (it.hasNext()) {\n Var v = it.next();\n if (renames.containsKey(v)) {\n Arg replacement = renames.get(v);\n if (replacement.isVar()) {\n ... |
"public File downloadGivenInstanceLogFile(ServiceLocator habitat, Server targetServer, Domain domain, Logger logger, String instanceName, String domainRoot, String logFileName, String instanceLogFileName) throws IOException {\n File instanceLogFile = null;\n SSHLauncher sshL = getSSHL(habitat);\n String sNode ... |
"private String readSerialNumber(ChannelBuffer buf) {\n int b1 = buf.readUnsignedByte();\n int b2 = buf.readUnsignedByte();\n if (b2 > 0x80) {\n b2 -= 0x80;\n int b3 = buf.readUnsignedByte();\n if (b3 > 0x80)\n b3 -= 0x80;\n int b4 = buf.readUnsignedByte();\n String serialNumber = Str... |
"protected IPropertySource<?> doCreatePropSource(XSDSimpleTypeDefinition simpleType, Composite cellEditorParent, Object sourceFacetValue) {\n if (Util.isDouble(simpleType) || Util.isDecimal(simpleType) || Util.isFloat(simpleType)) {\n return new SimpleTypeFacetDoublePropertySource(cellEditorParent, IConstants... |
"protected Time _schedule(Actor actor, Time currentPlatformTime, Time deadline, Time executionTime) throws IllegalActionException {\n _lastActorFinished = false;\n getDirector().setModelTime(getExecutiveDirector().localClock.getLocalTime());\n if (!_currentlyExecuting.contains(actor)) {\n event((NamedOb... |
"public SparseVector multElementwiseInPlace(Vector vector) {\n checkVectorSize(vector);\n if (vector.type() != VectorType.SPARSE) {\n for (int key : hashMap.keys().elements()) {\n this.set(key, hashMap.get(key) * vector.get(key));\n }\n } else {\n if (this.cardinality() <= vecto... |
"public OEntityRef<Void> deleteEntity(String entitySetName, Object... key) {\n FeedCustomizationMapping mapping = getFeedCustomizationMapping(entitySetName);\n return new OEntityRefImpl<Void, Feed<Entry>, Entry>(true, client, null, serviceRootUri, getMetadata(), entitySetName, key, mapping);\n}\n"
|
"public OAuthParameters readRequest(OAuthRequest request) {\n for (String param : request.getParameterNames()) {\n if (!param.startsWith(\"String_Node_Str\")) {\n continue;\n }\n List values = request.getParameterValues(param);\n if (values == null) {\n continue;\n ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.