content stringlengths 40 137k |
|---|
"private void setSuggestionStripShownInternal(final boolean shown, final boolean needsInputViewShown) {\n if (onEvaluateInputViewShown() && mSuggestionStripView != null) {\n final boolean inputViewShown = mKeyboardSwitcher.isShowingMainKeyboardOrEmojiPalettes();\n final boolean shouldShowSuggestions = ... |
"public static MapFileHeader readFromStream(InputStream stream) throws IOException {\n try {\n DataInputStream in = new DataInputStream(stream);\n for (byte b : START_BYTES) {\n if (in.readByte() != b) {\n throw new IOException(\"String_Node_Str\");\n }\n }\n... |
"public NewAccount createAccount() {\n String userID = userIDField.getText();\n char[] password = passField.getPassword();\n char[] password2 = pass2Field.getPassword();\n String server = serverField.getText();\n int port = 5222;\n try {\n port = Integer.parseInt(portField.getText());\n } ca... |
"public void onSubscriptionsChanged(final Collection<String> subscriptions) {\n RedditSubredditManager.getInstance(context, user).getSubreddits(subscriptions, TimestampBound.ANY, new RequestResponseHandler<HashMap<String, RedditSubreddit>, SubredditRequestFailure>() {\n\n public void onRequestFailed(Subreddit... |
"public static void addLockAndWriteColumnToScan(Column column, Scan scan) {\n if (!(scan.getFamilyMap().containsKey(ColumnUtil.LOCK_FAMILY_NAME) && scan.getFamilyMap().get(ColumnUtil.LOCK_FAMILY_NAME) == null)) {\n Column lockColumn = ColumnUtil.getLockColumn(column);\n scan.addColumn(lockColumn.getFam... |
"protected ViewModel onValidSubmit(HttpServletRequest request, HttpServletResponse response, Form form) throws Exception {\n String password = form.getFieldValue(\"String_Node_Str\");\n Application application = (Application) request.getAttribute(Application.class.getName());\n String sptoken = form.getFieldVa... |
"public void addSourceConnection(ConnectionFigure sourceConnection) {\n if (!sourceDummyMap.keySet().contains(sourceConnection)) {\n if (connection != null) {\n connection.disposeColors();\n connection = new ConnectionFigure(sourceConnection.getConnection(), sourceConnection.getConnectionPro... |
"public String toString() {\n return \"String_Node_Str\" + packetQueue.size() + \"String_Node_Str\" + processableQueue.size() + \"String_Node_Str\" + node.master() + \"String_Node_Str\" + node.getMasterAddress();\n}\n"
|
"public void tearDown() {\n hazelcastFactory.shutdownAll();\n}\n"
|
"private SortedSet<ContentKey> handleNext(DirectionQuery query) {\n SortedSet<ContentKey> keys = new TreeSet<>();\n Traces traces = ActiveTraces.getLocal();\n DateTime endTime = TimeUtil.time(query.isStable());\n DateTime markerTime = query.getContentKey().getTime().minusMinutes(1);\n int queryItems = Ma... |
"public void accept(String line) {\n if (line.startsWith(\"String_Node_Str\"))\n return;\n double ppm = 40;\n String[] vals = line.split(\"String_Node_Str\");\n try {\n windows.add(new Window(30 - Double.parseDouble(vals[0]) / FacadeTool.pixelsPerMeter, Double.parseDouble(vals[1]) / FacadeTool... |
"public void decryptAndVerify(Bundle params) {\n params.putBoolean(OpenPgpConstants.PARAMS_REQUEST_ASCII_ARMOR, true);\n InputStream is = getInputstream(true);\n final ByteArrayOutputStream os = new ByteArrayOutputStream();\n OpenPgpApi api = new OpenPgpApi(this, mCryptoServiceConnection.getService());\n ... |
"private Composite createParamSection(ScalarParameter param, Composite parent) {\n boolean isRequired = param.getHandle().isRequired();\n boolean isStringType = param.getHandle().getDataType().equals(DesignChoiceConstants.PARAM_TYPE_STRING);\n if (isRequired) {\n isRequiredParameters.add(param.getHandle... |
"void addViewUpdateListener(CellID cellID, ViewUpdateListener listener) {\n synchronized (viewUpdateListeners) {\n viewUpdateListeners.put(cellID, new ViewUpdateListenerContainer(cellID, listener));\n }\n}\n"
|
"public void listChanged(ListEvent<E> listChanges) {\n while (listChanges.nextBlock()) {\n int startIndex = listChanges.getBlockStartIndex();\n int endIndex = listChanges.getBlockEndIndex();\n int changeType = listChanges.getType();\n tableModelEvent.setValues(startIndex, endIndex, change... |
"public int compare(Location t1, Location t2) {\n if (t1.getTime() > t2.getTime()) {\n return -1;\n }\n if (t2.getTime() > t1.getTime()) {\n return -1;\n }\n return 0;\n}\n"
|
"private void pushExpressionDefinition(String identifier) {\n if (expressionDefinitions.contains(identifier)) {\n throw new IllegalArgumentException(String.format(\"String_Node_Str\", identifier));\n }\n expressionDefinitions.push(new ExpressionDefinitionContext(identifier));\n}\n"
|
"public Symbol readIdentifierOrContextVariable(String t) {\n ContextVariableInfo info = ContextVariableInfo.get(predefinedSyms, decider.top_goal, decider.bottom_goal, t);\n if (info.getValue() != null) {\n return info.getValue();\n }\n if (t.charAt(0) == '@') {\n t = t.substring(1);\n }\n ... |
"private void createSetField(final CtClass ctClass, final XMLStreamReader reader) throws ModelXmlCompilingException {\n createField(ctClass, getStringAttribute(reader, NAME), \"String_Node_Str\");\n}\n"
|
"public boolean support(QueryParam queryParam) {\n return queryParam instanceof DomainSearchByNsLdhNameParam;\n}\n"
|
"public void setRelativeFocusedTask(boolean forward, boolean stackTasksOnly, boolean animated, boolean cancelWindowAnimations, int timerIndicatorDuration) {\n Task focusedTask = getFocusedTask();\n int newIndex = mStack.indexOfStackTask(focusedTask);\n if (focusedTask != null) {\n if (stackTasksOnly) {\... |
"private IValue withElementType(IType type, IType elementType) {\n if (!this.value1.isType(elementType)) {\n return null;\n }\n IValue value2 = this.value2.withType(elementType);\n if (value2 == null) {\n return null;\n }\n this.value1 = value1;\n this.value2 = value2;\n this.type ... |
"public void testImportInnerClass() {\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\" + \"String... |
"public void changed(File changedFile) {\n synchronized (gfHandlers) {\n try {\n Map<String, String> props = getLoggingProperties();\n if (props == null)\n return;\n Set<String> keys = props.keySet();\n for (String a : keys) {\n if (a.e... |
"public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attr) throws IOException {\n if (dir.getFileName().toString().charAt(0) == '_' || !isResource(dir)) {\n return FileVisitResult.SKIP_SUBTREE;\n }\n return FileVisitResult.CONTINUE;\n}\n"
|
"public void updateLimits(CacheLimits cacheLimits) {\n if (cacheLimits == null)\n return;\n maxFullGeocacheLimit = cacheLimits.getMaxGeocacheCount();\n Editor editor = mPreferences.edit();\n if (currentFullGeocacheLimit > cacheLimits.getCurrentCacheCount() || (currentFullGeocacheLimit == 0 && cacheLi... |
"public void setDefaultGroup(PermissionGroup group, String worldName) {\n ConfigurationSection groups = this.permissions.getConfigurationSection(\"String_Node_Str\");\n String defaultGroupProperty = \"String_Node_Str\";\n if (worldName != null) {\n defaultGroupProperty = buildPath(\"String_Node_Str\", w... |
"public static <ModelClass extends Model> void loadFromCursor(ModelClass model, Cursor cursor) {\n TableStructure<ModelClass> tableStructure = FlowManager.getManagerForTable(model.getClass()).getTableStructureForClass((Class<ModelClass>) model.getClass());\n Set<Field> fields = tableStructure.getColumns();\n f... |
"public XDR send(XDR out, int xid) {\n super.send(out, xid);\n out.writeBoolean(true);\n if (postOpDirAttr == null) {\n postOpDirAttr = new Nfs3FileAttributes();\n }\n postOpDirAttr.serialize(out);\n if (getStatus() == Nfs3Status.NFS3_OK) {\n out.writeLongAsHyper(cookieVerf);\n fo... |
"public static Object getOuter(Object object) {\n Class clazz = object.getClass();\n if (!isInner(clazz)) {\n return null;\n }\n if (object instanceof Inner) {\n return ((Inner) object).getOuter();\n }\n Field field = _outers.get(clazz);\n if (field == null) {\n Class dclazz = ... |
"public ClassDefinition readClassDumpRecord(Map<Integer, ClassDefinition> loadedClasses) throws IOException {\n int objectId = readInt(in);\n ClassDefinition cls = loadedClasses.get(objectId);\n if (cls == null) {\n throw new IllegalStateException(\"String_Node_Str\" + objectId);\n }\n cls.setObje... |
"private static void processQueryMode(LearningProblem lp, ReasoningService rs) {\n logger.info(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n String queryStr = \"String_Node_Str\";\n do {\n System.out.print(\"String_Node_Str\");\n BufferedReader input = new BufferedReader(new... |
"private void addProximityListener(boolean live) {\n ProximityComponentMO component = cellRef.get().getComponent(ProximityComponentMO.class);\n if (component == null) {\n logger.warning(\"String_Node_Str\" + \"String_Node_Str\" + cellID);\n return;\n }\n if (proximityListenerRef != null) {\n ... |
"private Object getConnection() {\n if (isBoundTransaction() && this.connection != null) {\n return this.connection;\n }\n Jedis conn = factory.getConnection();\n if (settings != null) {\n for (String key : settings.keySet()) {\n conn.configSet(key, settings.get(key).toString());\n ... |
"public synchronized void onSettingsChanged(Uri uri) {\n if (uri == null || uri.equals(DISPLAY_CABC)) {\n updateCABCMode();\n }\n if (uri == null || uri.equals(DISPLAY_AUTO_CONTRAST)) {\n updateAutoContrast();\n }\n if (uri == null || uri.equals(DISPLAY_COLOR_ENHANCE)) {\n updateColo... |
"boolean isNextToRightBound() {\n return (dragView.getLeft() - getDragViewMarginRight()) > getWidth() * QUARTER;\n}\n"
|
"public static void merge(ViewInstanceJoin conjunction) {\n ListMultimap<String, ViewInstance> nameToInstance = conjunction.getInstancesGroupedByParent();\n for (Entry<String, Collection<ViewInstance>> entry : nameToInstance.asMap().entrySet()) {\n List<ViewInstance> list = (List<ViewInstance>) entry.getVa... |
"public Object runSave() {\n thresholdSpinner = new JSpinner(new SpinnerNumberModel(threshold, 0, 360, 1));\n thresholdSpinner.setToolTipText(\"String_Node_Str\");\n btLoadBackgroundImage = new JButton(JDL.L(\"String_Node_Str\", \"String_Node_Str\"));\n btCreateBackgroundFilter = new JButton(JDL.L(\"String_... |
"public void testListValue() throws IOException {\n if (typeOfMap == TypeOfMap.STATELESS)\n return;\n ChronicleMapBuilder<String, List<String>> builder = ChronicleMapBuilder.of(String.class, (Class<List<String>>) (Class) List.class).valueMarshaller(ListMarshaller.of(new StringMarshaller(8)));\n try (Chr... |
"public void applySettings() {\n InstallSettings.SCAN_FILES.setValue(true);\n Collection<File> manage;\n Collection<File> exclude = new HashSet<File>();\n if (manualButton.isSelected()) {\n LibraryManagerModel model = treeTable.getLibraryModel();\n manage = model.getRootChildrenAsFiles();\n ... |
"protected void buildLogicContainerProperties(IContent content, LayoutContext context) {\n IStyle style = content.getStyle();\n if (style != null && !style.isEmpty()) {\n boxStyle = new BoxStyle();\n IStyle cs = content.getComputedStyle();\n Color color = PropertyUtil.getColor(cs.getProperty(... |
"public void buildStyleSheet(StyleSheet styleSheet) {\n int baseSize = editorPane.getFont().getSize();\n String rule = String.format(\"String_Node_Str\", Math.round((double) baseSize * 7 / 6), Math.round((double) baseSize * 5 / 6));\n styleSheet.addRule(rule);\n rule = String.format(\"String_Node_Str\", bas... |
"private static SqlParameterSource prepareUserParameterSource(User user) {\n return new MapSqlParameterSource(\"String_Node_Str\", trimToNull(user.getProvider())).addValue(\"String_Node_Str\", trimToNull(user.getUsername())).addValue(\"String_Node_Str\", trimToNull(user.getEmail())).addValue(\"String_Node_Str\", tri... |
"public void incrementalUpdate(OutputStream outputStream, OutputStream rowLensStream, int originalRowCount, Map<String, StringTable> stringTable, Map<String, IIndexSerializer> map, List<IBinding> cacheRequestMap) throws DataException {\n Set resultSetNameSet = ResultSetUtil.getRsColumnRequestMap(cacheRequestMap);\n ... |
"private void refreshJobEditorTitle(Item item) {\n String label = item.getProperty().getLabel();\n label = label.replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n IWorkbenchPage activePage = getActivePage();\n IEditorReference[] editorReferences = activePage.getEditorReferences();\n if (editorRefer... |
"public static void main(String[] args) {\n new RobobuggyLogicNotification(\"String_Node_Str\", RobobuggyMessageLevel.NOTE);\n try {\n JNISetup.setupJNI();\n } catch (NoSuchFieldException | SecurityException | IllegalAccessException | IllegalArgumentException e1) {\n e1.printStackTrace();\n }\... |
"private boolean canResolveTextDirection() {\n switch(getRawTextDirection()) {\n case TEXT_DIRECTION_INHERIT:\n return (mParent != null) && mParent.canResolveTextDirection();\n default:\n return true;\n }\n}\n"
|
"public void onRefreshStarted() {\n if (!isAdded()) {\n return;\n }\n if (!NetworkUtils.checkConnection(getActivity())) {\n setRefreshing(false);\n updateEmptyView(EmptyViewMessageType.NETWORK_ERROR);\n return;\n }\n if (hasLocalChanges()) {\n confirmRequestPosts();\n ... |
"public void tearDown() throws Exception {\n for (Object val : col.values()) {\n em.remove(val);\n }\n em.close();\n emf.close();\n if (cli != null) {\n cli.dropTable(\"String_Node_Str\");\n cli.stopCluster(\"String_Node_Str\");\n }\n LuceneCleanupUtilities.cleanLuceneDirectory... |
"public static CustomTimeFormat createIfSupported(final String[] options) {\n if (options == null || options.length == 0 || options.length > 1) {\n return null;\n }\n final FixedFormat type = FixedFormat.lookup(options[0]);\n return type == null ? null : new CustomTimeFormat(type);\n}\n"
|
"public void render() throws Exception {\n setupRenderOption();\n IContentEmitter emitter = createContentEmitter();\n String format = executionContext.getOutputFormat();\n IReportExecutor executor = new ReportletExecutor(executionContext, offset);\n executor = createRenderExtensionExecutor(executor);\n ... |
"public Response getBuildPlanInstance(final String plan, final String instance, final UriInfo uriInfo) {\n return this.planService.getPlanInstance(plan, instance, uriInfo, csarId, serviceTemplate, null, PLAN_TYPE);\n}\n"
|
"protected Hashtable buildFieldTypes() {\n Hashtable fieldTypeMapping;\n fieldTypeMapping = new Hashtable();\n fieldTypeMapping.put(Boolean.class, new FieldTypeDefinition(\"String_Node_Str\", false));\n fieldTypeMapping.put(Integer.class, new FieldTypeDefinition(\"String_Node_Str\", false));\n fieldTypeM... |
"private void parseNewChangeCommand(final ReceiveCommand cmd) {\n if (newChange != null) {\n reject(cmd, \"String_Node_Str\");\n return;\n }\n newChange = cmd;\n String destBranchName = cmd.getRefName().substring(NEW_CHANGE.length());\n if (!destBranchName.startsWith(Constants.R_REFS)) {\n ... |
"public boolean canTriviallyCast(JReferenceType type, JReferenceType qType) {\n JClassType jlo = program.getTypeJavaLangObject();\n if (type == qType || qType == jlo) {\n return true;\n }\n if (type instanceof JArrayType) {\n JArrayType aType = (JArrayType) type;\n if (qType instanceof ... |
"private void scrollChanged(int firstVisibleItem) {\n if (adapter == null || adapter.getCount() == 0 || !areHeadersSticky)\n return;\n firstVisibleItem = getFixedFirstVisibleItem(firstVisibleItem);\n long newHeaderId = adapter.delegate.getHeaderId(firstVisibleItem);\n if (currentHeaderId == null || c... |
"public void onStreamReceived(Session session, Stream stream) {\n if (contains(jsEvents, sessionPreface + \"String_Node_Str\") || contains(componentEvents, sessionPreface + \"String_Node_Str\")) {\n ConcurrentHashMap<String, Stream> mSubscriberStreams = sharedState.getSubscriberStreams();\n mSubscriber... |
"public void enterTelephoneNumber() {\n AppController.storeString(Constants.TELEPHONE, null);\n phoneConfirimationCodeEt.setHint(getString(R.string.hint_telephone_field));\n phoneConfirimationCodeEt.setText(\"String_Node_Str\");\n login_get_verification_tv.setText(getString(R.string.sign_up));\n secondBt... |
"public int update(Uri uri, ContentValues values, String where, String[] whereArgs) {\n SQLiteDatabase db = mOpenDbHelper.getWritableDatabase();\n int affected;\n switch(sUriMatcher.match(uri)) {\n case VIDEOS:\n affected = getDb().update(VIDEO_TABLE_NAME, values, where, whereArgs);\n ... |
"private void start(int udpPort, LinkListener listener) {\n if (this.linkConn == null || udpPort != this.linkPort) {\n if (isStarted.get()) {\n stop();\n }\n this.linkConn = new UdpConnection(handler, udpPort, UDP_BUFFER_SIZE, true, 42);\n this.linkConn.setIpConnectionListener(... |
"public void customize() {\n OsDetails osDetails = getMachine().getMachineDetails().getOsDetails();\n List<String> commands = Lists.newLinkedList();\n String vmArgsTemplate = processTemplate(entity.getConfig(RiakNode.RIAK_VM_ARGS_TEMPLATE_URL));\n DynamicTasks.queueIfPossible(newScript(CUSTOMIZING).body.app... |
"private static void setDatabaseValueForjavadb(DatabaseConnection connection, INode node, String repositoryValue) {\n if (\"String_Node_Str\".equals(repositoryValue)) {\n String value = getParameterValue(connection, node, \"String_Node_Str\");\n if (value != null) {\n connection.setSID(value... |
"public Set<QueryableEntry> getSubRecordsBetween(Comparable from, Comparable to) {\n beforeRead();\n try {\n MultiResultSet results = new MultiResultSet();\n if (attributeType != null) {\n indexStore.getSubRecordsBetween(results, convert(from), convert(to));\n }\n return res... |
"public static ColumnChunkProperties get(ColumnPath path, PrimitiveTypeName type, CompressionCodecName codec, Set<Encoding> encodings) {\n return properties.canonicalize(new ColumnChunkProperties(codec, path, type, encodings));\n}\n"
|
"public void init(TreeViewer viewer, IStructuredSelection selection) {\n boolean canWork = !selection.isEmpty() && selection.size() == 1;\n IProxyRepositoryFactory factory = ProxyRepositoryFactory.getInstance();\n if (factory.isUserReadOnlyOnCurrentProject()) {\n canWork = false;\n }\n if (canWork... |
"public void widgetSelected(SelectionEvent e) {\n int buttonId = ((Integer) e.widget.getData()).intValue();\n if (IDialogConstants.OK_ID != buttonId)\n return;\n String server = dialog.getServer();\n String username = dialog.getUsernameText();\n String password = dialog.getPasswordText();\n Str... |
"private void generateElementDefinition(StructureDefinition source, ElementDefinition ed, ElementDefinition parent) throws Exception {\n String id = ed.getPath().replace(\"String_Node_Str\", \"String_Node_Str\");\n if (id.length() > 64)\n id = id.substring(0, 64);\n if (!id.contains(\"String_Node_Str\")... |
"public void returnResource(final T resource) {\n try {\n internalPool.returnObject(resource);\n } catch (Exception e) {\n throw new RuntimeException(\"String_Node_Str\", e);\n }\n}\n"
|
"private void hideNotificationContent() {\n if (!mContentShowing) {\n return;\n }\n mContentShowing = false;\n final View contentView = mPeekView.findViewById(R.id.notification_content);\n LinearLayout contentTextLayout = (LinearLayout) contentView.findViewById(R.id.content_layout);\n contentTe... |
"public static BakedQuad replaceShade(BakedQuad quad, int shade) {\n int[] data = quad.getVertexData();\n int step = data.length / 4;\n data = Arrays.copyOf(data, data.length);\n boolean colour = quad instanceof IColoredBakedQuad;\n for (int i = 0; i < 4; i++) {\n data[i * ARRAY_SIZE + SHADE] = sh... |
"public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object value, AbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) {\n if (xmlCollectionReferenceMapping.usesSingleNode()) {\n XPathFragment groupingFragment = ma... |
"public void ifClientSendsCookieRetrieveAndResetIt() {\n Http.Cookie mockCookie = mock(Http.Cookie.class);\n doReturn(\"String_Node_Str\").when(mockCookie).value();\n Http.Request mockRequest = mock(Http.Request.class);\n doReturn(mockCookie).when(mockRequest).cookie(BridgeConstants.SESSION_TOKEN_HEADER);\n... |
"public Object coerceToBean(Object val, Component comp, BindContext ctx) {\n if (val != null) {\n final Tree tree = (Tree) comp;\n final TreeModel<?> model = tree.getModel();\n if (model != null) {\n final String varnm = (String) ((Treeitem) val).getAttribute(BinderImpl.VAR);\n ... |
"public void saveWorldInfoWithPlayer(WorldInfo worldInformation, NBTTagCompound tagCompound) {\n NBTTagCompound nbttagcompound1 = worldInformation.cloneNBTCompound(tagCompound);\n NBTTagCompound nbttagcompound2 = new NBTTagCompound();\n nbttagcompound2.setTag(\"String_Node_Str\", nbttagcompound1);\n if (thi... |
"private void checkPlanScoping(TestPlanArtifactInfo parent, Model model) {\n if (parent.isScoped()) {\n Artifact parentPlan = getPlan(parent);\n Set<Artifact> children = parentPlan.getDependents();\n for (Artifact child : children) {\n if (PLAN_TYPE.equals(child.getType())) {\n ... |
"public void testWrongLocationType() {\n given().param(\"String_Node_Str\", getParameter(\"String_Node_Str\")).param(\"String_Node_Str\", getParameter(\"String_Node_Str\")).param(\"String_Node_Str\", \"String_Node_Str\").param(\"String_Node_Str\", \"String_Node_Str\").param(\"String_Node_Str\", \"String_Node_Str\").... |
"protected IPath getItemFullPath(TDQSourceFileItem item) {\n String statePathStr = null;\n if (item.getState() != null) {\n statePathStr = item.getState().getPath();\n if (!statePathStr.equals(\"String_Node_Str\")) {\n statePathStr = \"String_Node_Str\" + statePathStr;\n }\n }\n... |
"public void onAttach(Activity host) {\n super.onAttach(host);\n router = MediaRouter.getInstance(host);\n provider = new DemoRouteProvider(getActivity());\n router.addProvider(provider);\n}\n"
|
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n if (controller != null) {\n Player damagedPlayer = game.getPlayer(targetPointer.getFirst(game, source));\n if (damagedPlayer == null) {\n return false;\n }\n ... |
"private void fillChildren(Node<TYPE> topNode, int currentDepth, int maxDepth) {\n int arity = topNode.getArity();\n if (currentDepth < maxDepth - 1) {\n for (int i = 0; i < arity; i++) {\n int randomIndex = (int) Math.floor(Math.random() * model.getFunctions().size());\n Node<TYPE> c... |
"public void removeAll(Set<Data> keys, int completionId) {\n final long now = Clock.currentTimeMillis();\n final Set<Data> localKeys = new HashSet<Data>(keys.isEmpty() ? records.keySet() : keys);\n try {\n deleteAllCacheEntry(localKeys);\n } finally {\n final Set<Data> keysToClean = new HashSe... |
"private static List<PFile> extractUsingRegExp(PFile pFile) {\n List<PFile> result = new ArrayList<PFile>();\n PArchive pArchive = pFile.getPArchive();\n Map<String, File> files = extractFilesForRegExp(pArchive.getFile(), pArchive.getType(), pFile.getRelativePath());\n for (String relativePath : files.keySe... |
"public void updatePatientVisitsData(boolean errorOccurred) {\n final List<Fragment> fragments = getSupportFragmentManager().getFragments();\n for (final Fragment fragment : fragments) {\n this.runOnUiThread(new Runnable() {\n public void run() {\n recreateFragmentView(fra... |
"public boolean performDrop(Object transfer, Object target, int operation, DNDLocation location) {\n if (transfer instanceof Object[]) {\n if (((Object[]) transfer).length == 1) {\n return performDrop(((Object[]) transfer)[0], target, operation, location);\n }\n return result;\n }\... |
"public void testPublishWithDiffMerge() throws OseeCoreException {\n modifyOption(\"String_Node_Str\", true);\n modifyOption(\"String_Node_Str\", rootBranch);\n modifyOption(\"String_Node_Str\", LinkType.INTERNAL_DOC_REFERENCE_USE_PARAGRAPH_NUMBER);\n List<Artifact> artifacts = new ArrayList<Artifact>();\n ... |
"public double getMin() {\n if (lowMap.isEmpty()) {\n return Double.NEGATIVE_INFINITY;\n } else if (lowMap.isEmpty()) {\n return highMap.firstKey();\n } else {\n return lowMap.firstKey();\n }\n}\n"
|
"public EditPart createEditPart(EditPart context, Object model) {\n EditPart editPart = new DummyEditpart(model);\n if (model instanceof ReportItemHandle && !((ReportItemHandle) model).isValidLayoutForCompoundElement()) {\n return new DestroyEditPart(model);\n } else if (model instanceof ReportDesignHan... |
"private static boolean configureVimParentKeymap(final String path, final Document document, final boolean showNotification) throws IOException {\n final Element rootElement = document.getRootElement();\n final String parentKeymapName = rootElement.getAttributeValue(\"String_Node_Str\");\n final VimKeymapDialo... |
"private void copyAttachments() throws GenieException {\n if (this.attachments != null) {\n for (final FileAttachment attachment : this.job.getAttachments()) {\n if (attachment.getName() == null || attachment.getName().isEmpty()) {\n final String msg = \"String_Node_Str\";\n ... |
"public void triggerShot(KeyEvent keyEvent) {\n String keystoke = keyEvent.getText();\n int index = -1;\n String messageString = \"String_Node_Str\";\n switch(keystoke) {\n case \"String_Node_Str\":\n index = 0;\n break;\n case \"String_Node_Str\":\n index = 1;... |
"public IResource getResource() {\n return (IResource) folder;\n}\n"
|
"public static INodeProvider createProvider(Object object) {\n if (object instanceof ReportDesignHandle) {\n return new ReportDesignNodeProvider();\n }\n if (object instanceof LibraryHandle) {\n return new LibraryNodeProvider();\n } else if (object instanceof ReportElementModel) {\n Rep... |
"public void setUp() throws Exception {\n this.createTestMetadata();\n MetadataManager.removeInstance(this.getTestConfig());\n CubeManager.removeInstance(this.getTestConfig());\n CubeRealizationManager.removeInstance(this.getTestConfig());\n cubeMgr = CubeManager.getInstance(this.getTestConfig());\n}\n"
|
"private CacheConnection newConnection() throws DataException {\n CacheConnection conn = new CacheConnection();\n conn.odaConn = ConnectionManager.getInstance().openConnection(driverName, connectionProps, appContext);\n int max = conn.odaConn.getMaxQueries();\n if (max != 0)\n conn.maxStatements = ma... |
"private boolean computeDP(String id, String id2) {\n if (this.doDP == false) {\n return false;\n }\n Logger logger = Logger.getLogger(SmithWatermanGotoh.class.getName());\n logger.setLevel(Level.OFF);\n logger = Logger.getLogger(MatrixLoader.class.getName());\n logger.setLevel(Level.OFF);\n ... |
"private long byteBufferToLong(final ByteBuffer byteBuffer) throws IOException {\n long l = 0;\n if (SIZEOFLONG > byteBuffer.limit()) {\n throw new IOException(\"String_Node_Str\" + byteBuffer.limit() + \"String_Node_Str\");\n }\n for (int i = 0; i < SIZEOFLONG; ++i) {\n l |= (byteBuffer.get((... |
"public void processString(String template, Object model, Writer out) {\n if (template == null || template.length() == 0) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n if (model == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n if (out == null)... |
"public void close(Player player) {\n sessionMap.remove(player);\n}\n"
|
"private static void initCache(Context context) throws SQLException {\n if (id2schema != null && name2schema != null)\n return;\n synchronized (MetadataSchema.class) {\n if (id2schema == null && name2schema == null) {\n log.info(\"String_Node_Str\");\n HashMap new_id2schema = n... |
"public void deleteMediaFilesForPost(Post post) {\n db.delete(MEDIA_TABLE, \"String_Node_Str\" + post.getLocalTableBlogId() + \"String_Node_Str\" + post.getLocalTablePostId(), null);\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.