content stringlengths 40 137k |
|---|
"public View getView(int position, View convertView, Context c) {\n ViewHolder holder = null;\n if (convertView == null) {\n holder = new ViewHolder();\n convertView = LayoutInflater.from(c).inflate(R.layout.list_item_piechart, null);\n holder.chart = (PieChart) convertView.findViewById(R.id.... |
"public static ModuleIdentifier forClosure(String name) {\n String normalizedName = name;\n if (normalizedName.startsWith(\"String_Node_Str\")) {\n normalizedName = normalizedName.substring(\"String_Node_Str\".length());\n }\n String namespace = normalizedName;\n String moduleName = normalizedName... |
"private boolean hasNext(int dimAxisIndex) {\n if (!this.dimAxis[dimAxisIndex].isMirrored()) {\n EdgeInfo currentEdgeInfo = findCurrentEdgeInfo(dimAxisIndex);\n if (currentEdgeInfo == null) {\n if (this.dimensionCursorPosition[dimAxisIndex] < 0 && this.relationMap.traverseLength > 0)\n ... |
"public int getNumOOBToRequest(ReplyNumberVendorMessage reply, ReplyHandler handler) {\n GUID qGUID = new GUID(reply.getGUID());\n int numResults = RouterService.getSearchResultHandler().getNumResultsForQuery(qGUID);\n if (numResults < 0)\n numResults = DYNAMIC_QUERIER.getLeafResultsForQuery(qGUID);\n ... |
"private void processPlatypusRequest(final HttpServletRequest aHttpRequest, final HttpServletResponse aHttpResponse, Session aPlatypusSession, HttpSession aHttpSession) throws Exception {\n Request platypusRequest = readPlatypusRequest(aHttpRequest, aHttpResponse, aPlatypusSession);\n try {\n RequestHandle... |
"public void onClick(View v) {\n Intent resultData = extras.getParcelable(EXTRA_DATA);\n resultData.putExtra(OpenPgpApi.EXTRA_KEY_IDS_SELECTED, mSelectFragment.getSelectedMasterKeyIds());\n RemoteSelectPubKeyActivity.this.setResult(RESULT_OK, resultData);\n RemoteSelectPubKeyActivity.this.finish();\n}\n"
|
"private void addApplicationToPage(Event<UIAddNewApplication> event) throws Exception {\n UIPortal uiPortal = Util.getUIPortal();\n UIPortalApplication uiPortalApp = uiPortal.getAncestorOfType(UIPortalApplication.class);\n UIPage uiPage = null;\n if (uiPortal.isRendered()) {\n uiPage = uiPortal.findF... |
"private void handleChildren() throws BirtException {\n String emptyValue = crosstab.getEmptyCellValue();\n handleCell(crosstab.getHeader(), null);\n if (crosstab.getDimensionCount(COLUMN_AXIS_TYPE) > 0) {\n for (int i = 0; i < crosstab.getDimensionCount(COLUMN_AXIS_TYPE); i++) {\n DimensionV... |
"public boolean isFullyConsumed() {\n return readValues > totalValueCount || (readValues == totalValueCount && consumed);\n}\n"
|
"public void updateEntity() {\n if (!this.worldObj.isRemote) {\n timer++;\n if (timer % 5 == 0) {\n timer = 0;\n int discreteLevel = getDiscreteFluidLevel();\n if (lastDiscreteLevel != discreteLevel) {\n lastDiscreteLevel = discreteLevel;\n ... |
"public Bitmap transformDrawable(Drawable d) {\n Bitmap b = ((BitmapDrawable) d).getBitmap();\n if ((iconBacks == null && iconMask == null && iconUpon == null && factor == 1.f) || !transformDrawable) {\n return b;\n }\n int w, h;\n Paint paint;\n if (iconBacks != null) {\n if (iconBacks.... |
"public static DimitWrapper init(Dimiter dimiter, String cid) throws IOException {\n DimitStoreSystem dss = dimiter.getStoreSystem();\n DimitPath pathConf = dss.getPath(StoreConst.PATH_CONF);\n DimitWrapper dimit = new DimitWrapper(dimiter);\n dimit.conf = pathConf.newPath(cid).<DimitConf>toStore(DimitConf.... |
"private ValidationResponse processed(final String css) throws IOException {\n final Request req = this.request(this.uri, this.entity(\"String_Node_Str\", DefaultCssValidator.filter(css), \"String_Node_Str\"));\n final Response response = this.withoutBadResponseStatus(req.fetch());\n return this.build(response... |
"public void setDescriptor(XMLDescriptor desc) {\n if (isIDSet()) {\n String pkFieldName;\n if (helper.isAnnotationPresent(getIDProperty().getElement(), XmlAttribute.class)) {\n pkFieldName = ATT + getIDProperty().getSchemaName();\n } else {\n pkFieldName = getIDProperty().... |
"public boolean hasDefaultCase() {\n return numChildren() > 0 && getChild(numChildren() - 1) instanceof SwitchDefaultNode;\n}\n"
|
"void prepareSurfaceLocked(final boolean recoveringMemory) {\n final WindowState w = mWin;\n if (mSurfaceController == null || !mSurfaceController.hasSurface()) {\n if (w.mOrientationChanging) {\n if (DEBUG_ORIENTATION) {\n Slog.v(TAG, \"String_Node_Str\" + w);\n }\n ... |
"protected String buildDrillAction(IAction action, IReportContext context) {\n if (action == null || context == null)\n return null;\n String baseURL = null;\n Object renderContext = getRenderContext(context);\n if (renderContext instanceof HTMLRenderContext) {\n baseURL = ((HTMLRenderContext)... |
"public void requestFocusInWriteArea() {\n getChatWritePanel().getEditorPane().requestFocusInWindow();\n}\n"
|
"public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object value, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) {\n value = xmlChoiceCollectionMapping.convertObjectValueToDataValue(value, session, marshalRecord... |
"public boolean isAlive() {\n return Dungeon.level.mobs.contains(this);\n}\n"
|
"public void assign() {\n if (materialParameters != null && getShader().getMaterialAssigned() != this) {\n Set<Map.Entry<String, Object>> s = materialParameters.entrySet();\n for (Map.Entry<String, Object> entry : s) {\n if (entry.getValue() instanceof Integer) {\n shader.setU... |
"public Entry<K, V> next() {\n if (hasNext()) {\n RIEntry<K, V> entry = nextEntry;\n RICacheEventEventDispatcher<K, V> dispatcher = new RICacheEventEventDispatcher<K, V>();\n dispatcher.addEvent(CacheEntryReadListener.class, new RICacheEntryEvent<K, V>(RICache.this, entry.getKey(), entry.getValu... |
"private void updateABDrawerOpened() {\n getActionBar().setTitle(mDrawerTitle);\n getActionBar().setSubtitle(mDrawerSubtitle);\n if (mDrawerIcon > 0) {\n getActionBar().setIcon(mDrawerIcon);\n } else {\n getActionBar().setDisplayShowHomeEnabled(false);\n }\n if (mDrawerBgColor != null) {... |
"protected void writeColumns(ITableContent table) {\n for (int i = 0; i < table.getColumnCount(); i++) {\n IColumn column = table.getColumn(i);\n writer.openTag(HTMLTags.TAG_COL);\n if (enableAgentStyleEngine) {\n String styleClass = column.getStyleClass();\n setStyleName(s... |
"public ARPanel withRenderer(Renderer r) {\n ARPanel p = new ARPanel(aggregator, display.transfer(), dataset, r);\n return p;\n}\n"
|
"public static void initBootstrappers() {\n for (Bootstrapper bootstrap : BootstrapperDiscovery.getBootstrappers()) {\n Class<ComponentId> compType;\n String bc = bootstrap.getClass().getCanonicalName();\n Bootstrap.Stage stage = bootstrap.getBootstrapStage();\n compType = bootstrap.getPr... |
"protected void agents() {\n addAgent(new TestPoliticalAgent(20, 2, AgentType.AC, 0.0, 0.0));\n addAgent(new TestPoliticalAgent(20, 2, AgentType.AC, 0.0, 0.0));\n addAgent(new TestPoliticalAgent(20, 2, AgentType.AC, 1.0, 1.0));\n addAgent(new TestPoliticalAgent(20, 2, AgentType.AC, 1.0, 1.0));\n addAgent... |
"public static String getReportDocument(HttpServletRequest request, String filePath, boolean isCreated) {\n if (filePath == null)\n filePath = DataUtil.trimString(getParameter(request, PARAM_REPORT_DOCUMENT));\n if (filePath.length() <= 0 && !isCreated)\n return null;\n String documentFile = gene... |
"void serviceTimeout(ProcessRecord proc) {\n String anrMessage = null;\n synchronized (mAm) {\n if (proc.executingServices.size() == 0 || proc.thread == null) {\n return;\n }\n long maxTime = SystemClock.uptimeMillis() - (proc.execServicesFg ? SERVICE_TIMEOUT : SERVICE_BACKGROUND_T... |
"private void reset() {\n mPreferences.edit().clear().apply();\n mState = State.STATE_NONE;\n cancelRetryRegistration();\n}\n"
|
"public String toString() {\n return \"String_Node_Str\";\n}\n"
|
"public void checkReuse() {\n openNewEditor();\n ICEResource resource;\n ICEResource firstResource;\n vizServiceFactory = new BasicVizServiceFactory();\n FakeCSVVizService csvVizService = new FakeCSVVizService() {\n public IPlot createPlot(URI file) throws Exception {\n FakePlot plot = ... |
"public void setReadOnly(boolean readOnly) throws SQLException {\n getDelegate().setReadOnly(readOnly);\n}\n"
|
"public void makeNextMove() {\n if (!gameBoard.isFilled()) {\n getNextMove();\n gameBoard.makeMove(next_move_xcor, next_move_ycor);\n }\n}\n"
|
"public void actionPerformed(ActionEvent e) {\n Object o = e.getSource();\n if (myRecipe != null) {\n if (o == comboPrime) {\n updatePrimeSugar((String) comboPrime.getSelectedItem(), myRecipe.getPrimeSugarU());\n displayCarb();\n } else if (o == textBottleTemp) {\n t... |
"protected void prepareHandlers(final Context context) {\n addHandler(Attributes.View.OnClick, new EventProcessor<V>(context) {\n public void setOnEventListener(final V view, final ParserContext parserContext, final JsonElement attributeValue) {\n view.setOnClickListener(new View.OnClickListener() ... |
"public void changeHeightTowards(short x, short y, byte targetHeight) {\n landscapeGrid.flattenAndChangeHeightTowards(x, y, targetHeight);\n}\n"
|
"public boolean hasNext() {\n return lastIdx < numElements;\n}\n"
|
"public void delete(byte[] key) {\n synchronized (lock) {\n overlay.insert(key, null);\n }\n}\n"
|
"private void makeRoom(SubLevel curr) {\n int maxWidth = curr.max.x - curr.min.x - 1 * minWallThickness;\n int maxHeight = curr.max.y - curr.min.y - 1 * minWallThickness;\n int minX = getRandom(minWallThickness, maxWidth - minRoomDim);\n int maxX = getRandom(minX + minRoomDim, maxWidth);\n int minY = get... |
"void order() {\n if (!dirtyOrder)\n return;\n dirtyOrder = false;\n order = null;\n int[] deltas = null;\n boolean anyDelta = false;\n orderBy = findFirstRankable();\n exaequoOffsets.clear();\n final List<IRow> data = getTable().getData();\n if (orderBy == null) {\n List<IRow> ... |
"public void run() {\n List<TmfTraceElement> tracesToAdd = new ArrayList<>();\n List<TmfTraceElement> tracesToRemove = new ArrayList<>();\n for (TmfTraceElement traceel : tl) {\n ITmfTrace expTrace = null;\n for (ITmfTrace t : experiment.getTraces()) {\n if (t.getResource().equals(trac... |
"public ResultSet execSelect() {\n Var idVar = Var.alloc(\"String_Node_Str\");\n Var executionTimeVar = Var.alloc(\"String_Node_Str\");\n Var timeOutVar = Var.alloc(\"String_Node_Str\");\n Var resultSetSizeVar = Var.alloc(\"String_Node_Str\");\n Var isErrorVar = Var.alloc(\"String_Node_Str\");\n Var e... |
"public void addMetaIndexField(DSLContext dsl, MetaDatabase database, MetaCollection collection, MetaIndex index, MetaIndexField field) {\n String statement = getAddMetaIndexFieldStatement(database.getName(), collection.getName(), index.getName(), field.getPosition(), field.getTableRef(), field.getFieldName(), field... |
"public long getTimePlayed() {\n if (getNBT() != null && getNBT().containsKey(\"String_Node_Str\")) {\n return getNBT().getLong(\"String_Node_Str\");\n }\n return 0;\n}\n"
|
"private static Map<ExecutionGroupVertex, ManagementGroupVertex> addGroupVertices(Map<ExecutionStage, ManagementStage> stageMap) {\n final Map<ExecutionGroupVertex, ManagementGroupVertex> groupMap = new HashMap<ExecutionGroupVertex, ManagementGroupVertex>();\n Iterator<Map.Entry<ExecutionStage, ManagementStage>> ... |
"public static void unZipFile(String zipfile, String unzipdir, int totalProgress, IProgressMonitor monitor) throws Exception {\n monitor.setTaskName(\"String_Node_Str\");\n File unzipF = new File(unzipdir);\n if (!unzipF.exists()) {\n unzipF.mkdirs();\n }\n ZipFile zfile = null;\n try {\n ... |
"private void setProxyToConnection(ConnectorConfig conn) {\n Proxy socketProxy = null;\n if (!useProxy) {\n proxyHost = System.getProperty(\"String_Node_Str\");\n if (proxyHost != null && System.getProperty(\"String_Node_Str\") != null) {\n proxyPort = Integer.parseInt(System.getProperty(... |
"public boolean apply(Game game, Ability source) {\n MageObject sourceObject = source.getSourceObject(game);\n if (sourceObject == null) {\n return false;\n }\n Map<UUID, Set<Card>> permanentsOwned = new HashMap<>();\n Collection<Permanent> permanents = game.getBattlefield().getAllActivePermanents... |
"protected void evalSearchRequest(UserRequest ureq) {\n if (searchFieldEl == null)\n return;\n searchFieldEl.evalFormRequest(ureq);\n String search = searchFieldEl.getValue();\n if (StringHelper.containsNonWhitespace(search)) {\n doSearch(search, null);\n } else {\n doResetSearch(ure... |
"public void drawData(Canvas canvas, Matrix originalRotateToScreen, int quality) {\n Paint paint = new Paint();\n if (quality == ImagePreset.QUALITY_FINAL) {\n paint.setAntiAlias(true);\n }\n paint.setStyle(Style.STROKE);\n paint.setColor(Color.RED);\n paint.setStrokeWidth(40);\n if (mParame... |
"private void fetchUsersList(String dotComBlogId, final int localTableBlogId, final int offset) {\n if (mUsersEndOfListReached || mUsersFetchRequestInProgress || !NetworkUtils.checkConnection(this)) {\n return false;\n }\n mUsersFetchRequestInProgress = true;\n PeopleUtils.fetchUsers(dotComBlogId, lo... |
"public void onClick(View v) {\n if (blog.getBlogUrl() != null) {\n try {\n Intent intent = new Intent();\n intent.setAction(Intent.ACTION_VIEW);\n intent.addCategory(Intent.CATEGORY_BROWSABLE);\n intent.setData(Uri.parse(blog.getBlogUrl()));\n itemView.g... |
"public void accept(Event<StackDeleteComplete> stackDeleteComplete) {\n StackDeleteComplete data = stackDeleteComplete.getData();\n LOGGER.info(\"String_Node_Str\", ReactorConfig.DELETE_COMPLETE_EVENT, data.getStackId());\n retryingStackUpdater.updateStackStatus(data.getStackId(), Status.DELETE_COMPLETED);\n ... |
"public Boolean create(final CreateResourceRequest createResourceRequest, final String region) throws Exception {\n AzureVirtualMachineCreateRequest aCSCR = (AzureVirtualMachineCreateRequest) createResourceRequest;\n try {\n HttpResponseDecorator virtualMachineResponse = (HttpResponseDecorator) aCSCR.getAz... |
"Bitmap resolveRequest(Request request) throws IOException {\n Bitmap bitmap = loadFromCache(request);\n if (bitmap == null) {\n stats.cacheMiss();\n try {\n bitmap = loadFromType(request);\n } catch (OutOfMemoryError e) {\n throw new IOException(\"String_Node_Str\" + re... |
"protected void onDetach() {\n if (!attached) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n attached = false;\n DOM.setEventListener(getElement(), null);\n}\n"
|
"private UpdateOp getUpdateOperationForNode(String path) {\n UpdateOp op = operations.get(path);\n if (op == null) {\n String id = Utils.getIdFromPath(path);\n op = new UpdateOp(path, id, false);\n operations.put(path, op);\n }\n return op;\n}\n"
|
"private void judegeMultiIsSimple() {\n isSimpleParse = isSimplePath(rootPath);\n for (String path : arrOrigLoopPath) {\n if (!isSimpleParse) {\n break;\n }\n }\n for (int i = 0; isSimpleParse && i < arrNodePaths.length; i++) {\n for (int j = 0; j < arrNodePaths[i].length; j+... |
"private Time _getHlaNextPointInTime() throws IllegalActionException {\n return _getHlaCurrentTime().add(_hlaTimeStep);\n}\n"
|
"public void unreconcile(ActionRequest request, ActionResponse response) {\n Reconcile reconcile = request.getContext().asType(Reconcile.class);\n reconcile = reconcileRepo.find(reconcile.getId());\n try {\n reconcileService.unreconcile(reconcileRepo.find(reconcile.getId()));\n response.setReload... |
"public void addPortSinks(IOPort port) {\n if (!relations.containsKey(port.getName())) {\n relations.put(port.getName(), new HashSet<IOPort>());\n }\n relations.get(port.getName()).addAll(port.sinkPortList());\n}\n"
|
"public void modifyText(ModifyEvent e) {\n ProjectSettingValidator validator = new ProjectSettingValidator(pluginId.getText(), pluginName.getText(), pluginVersion.getText(), getProjects(), NewPluginProjectWizardPage.this);\n validator.validate();\n}\n"
|
"public boolean evaluate(String v) {\n if (graph1.getIncidentEdges(v).isEmpty()) {\n return false;\n } else {\n if (filter == null)\n return true;\n List<IncludeType> includes = filter.getInclude();\n String filterType = filter.getType();\n if (filterType == null) {\n... |
"public String wfmQueryValue(final HKEY hKey, final String valueName) throws XfsException {\n final ZSTR data = new ZSTR(SIZE_LIMIT, true);\n final DWORD cchData = new DWORD(data.getSize());\n final int errorCode = wfmQueryValue0(hKey, new ZSTR(valueName), data, cchData);\n XfsException.throwFor(errorCode);... |
"public Instance next() {\n AgglomerativeNeighbor neighbor = null;\n if (positiveCount < positiveTarget && nonsingletonClusters.length > 0) {\n positiveCount++;\n int label = nonsingletonClusters[random.nextInt(nonsingletonClusters.length)];\n int[] instances = clustering.getIndicesWithLabel(... |
"public IOperation createOperation(VariableMap variableMap, OperationLogger logger) throws Exception {\n BranchId branch = variableMap.getBranch(SELECT_BRANCH_LABEL);\n boolean commitChangesBool = variableMap.getBoolean(COMMIT_CHANGES_LABEL);\n Display display = new FixAttributesUIReport();\n return new Fix... |
"public void addPropertyToApplication(String applicationId, Property property) throws RegistryException {\n Registry registry = getRegistry();\n String resourcePath = mainResource + applicationId;\n try {\n PrivilegedCarbonContext ctx = PrivilegedCarbonContext.getThreadLocalCarbonContext();\n ctx... |
"protected void updateAlgGUI(Planar<I> frame, BufferedImage imageGUI, double fps) {\n if (firstFrame) {\n panel.setPreferredSize(new Dimension(imageGUI.getWidth(), imageGUI.getHeight()));\n firstFrame = false;\n }\n int height = getHeight();\n Graphics2D g2 = imageCopy.createGraphics();\n g... |
"private void postProcessSetAttrStates(ModifiedAttributeHASession modAttrSession, ArrayList attrsList) {\n for (int i = 0; i < attrsList.size(); i++) {\n String nextStateName = attrsList.get(i);\n modAttrSession.setAttributeStatePersistent(nextStateName, true);\n modAttrSession.setAttributeState... |
"public void uploadResourceContent(String urlString, byte[] content) throws Exception {\n HttpURLConnection conn = getHTTPConnection(urlString, \"String_Node_Str\");\n OutputStream out = conn.getOutputStream();\n out.write(content);\n out.flush();\n BufferedReader in = new BufferedReader(new InputStreamR... |
"private DropInRequest getDropInRequest() {\n DropInRequest dropInRequest = new DropInRequest().clientToken(mAuthorization).collectDeviceData(Settings.shouldCollectDeviceData(this)).androidPayCart(getAndroidPayCart()).androidPayShippingAddressRequired(Settings.isAndroidPayShippingAddressRequired(this)).androidPayPho... |
"protected void validate() throws Exception {\n super.validate();\n if ((this.getService().getRequestedServerVersion() == ExchangeVersion.Exchange2007_SP1) && !(this.getService().getExchange2007CompatibilityMode())) {\n if (this.getPropertyBag().isPropertyUpdated(AppointmentSchema.Start) || this.getPropert... |
"public void allocate() throws IOException {\n if (!allocated) {\n dictionary = new HashMap<String, Object>();\n Timer loadTimer = TimerPool.getTimer(\"String_Node_Str\");\n fillerWords = new HashSet<String>();\n loadTimer.start();\n logger.info(\"String_Node_Str\" + wordDictionary... |
"public Model getInstance(SentenceCollection sentences) {\n DmvModel dmv = new DmvModel();\n Set<Label> vocab = sentences.getVocab();\n for (Label label : vocab) {\n for (String lr : leftRight) {\n for (boolean adj : adjacent) {\n Triple<Label, String, Boolean> triple = new Tri... |
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setLocale(\"String_Node_Str\");\n setContentView(R.layout.activity_main);\n mEnd = (Button) findViewById(R.id.endDate);\n mStart = (Button) findViewById(R.id.startDate);\n mDark = (CheckBox) findViewById(R.id... |
"public void setModel(CompositeActor model) {\n _model = model;\n if (_paramQuery != null) {\n _controlPanel.remove(_paramQuery);\n _paramQuery = null;\n }\n if (_directorQuery != null) {\n _controlPanel.remove(_directorQuery);\n _directorQuery = null;\n }\n if (_displays !... |
"public void preservationMetadataCreated(PreservationMetadata preservationMetadata) {\n try {\n if (preservationMetadata.getAipId() != null) {\n AIP aip = model.retrieveAIP(preservationMetadata.getAipId());\n indexAIP(aip);\n }\n LOGGER.debug(\"String_Node_Str\");\n ... |
"private Command getChangePropertyCommand(RepositoryNode selectedNode, Node node, ConnectionItem connectionItem) {\n ERepositoryObjectType selectedNodeType = selectedNode.getObjectType();\n IComponentName rcSetting = RepositoryComponentManager.getSetting(connectionItem, selectedNodeType);\n if (rcSetting == nu... |
"public void handleEvent(Event e) {\n TableItem item = (TableItem) e.item;\n int whiteIndex = requested.getWhiteIndex(table.getTopIndex(), false);\n int index = requested.getIndex(whiteIndex, Barcode.WHITE);\n requested.setBlack(index, 1);\n renderTableItem(item, swtThreadSource.get(index));\n}\n"
|
"public PathDataMaster addNewPathDataIteration(String workspaceId, String configurationItemId, String serialNumber, int pathDataId, String path, List<InstanceAttribute> attributes, String note, DocumentRevisionKey[] links, String[] documentLinkComments) throws UserNotFoundException, AccessRightException, WorkspaceNotFo... |
"public Map<Coverage, Boolean> getCoverageRatios() {\n CoverageReport result = getResult();\n Map<Coverage, Boolean> ratios = new LinkedHashMap<>();\n if (result != null) {\n Coverage instructionCoverage = result.getInstructionCoverage();\n Coverage classCoverage = result.getClassCoverage();\n ... |
"void containers(Context context, DeclarationList declList) throws ParserException {\n for (String containerName : InfoMap.containers) {\n LinkedList<Info> infoList = leafInfoMap.get(containerName);\n for (Info info : infoList) {\n Declaration decl = new Declaration();\n if (info ... |
"protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {\n Stopwatch sw = Stopwatch.createAndStart(\"String_Node_Str\");\n try {\n locale = LocaleResolver.getLocale(request);\n EventCRFBean ecb = (EventCRFBean) request.getAttribute(INPUT_EVENT_CRF);... |
"public void testSchema() throws InterruptedException {\n Response response = given().when().get(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\" + response.asString());\n ValidatableResponse vr = response.then().parser(\"String_Node_Str\", Parser.JSON).statusCode(200);\n vr.body(\"String_Node... |
"public UserDto getUser(String username) {\n UserResource userResource = adminRealmResource.users().get(username);\n try {\n return map(userResource.toRepresentation());\n } catch (javax.ws.rs.NotFoundException e) {\n return null;\n }\n}\n"
|
"private void updateHeaderKeyguard() {\n mHeader.setTranslationY(0f);\n float alpha;\n if (mStatusBar.getBarState() == StatusBarState.KEYGUARD) {\n alpha = getNotificationsTopY() / (mQsMinExpansionHeight + mNotificationsHeaderCollideDistance);\n } else {\n alpha = mNotificationStackScroller.ge... |
"private InputStream getBodyStream(final BatchQueryOperation operation, final HttpRequestStatusLine statusLine) throws BatchDeserializerException {\n if (statusLine.getMethod().equals(HttpMethod.GET)) {\n return new ByteArrayInputStream(new byte[0]);\n } else {\n int contentLength = BatchTransformat... |
"private void appendOperationDocumentation(StringBuffer html, WSDLDocInterface wsdlDoc, OperationHolder holder) {\n if (holder != null) {\n String documentation = null;\n if (holder.getAnnotations() != null) {\n documentation = holder.getAnnotations().getDocumentation();\n }\n ... |
"protected ConnectionStatus checkConnection(boolean displayDialog) {\n final HDFSConnectionBean connectionBean = getConnectionBean();\n AProgressMonitorDialogWithCancel<ConnectionStatus> checkingDialog = new AProgressMonitorDialogWithCancel<ConnectionStatus>(getShell()) {\n protected ConnectionStatus runWi... |
"private void registerFlower(Block block, int meta, double weight, String... flowerTypes) {\n if (block == null) {\n return;\n }\n if (weight <= 0.0) {\n weight = 0.0;\n }\n if (weight >= 1.0) {\n weight = 1.0;\n }\n Flower newFlower = new Flower(block, meta, weight);\n Inte... |
"private static Path executeFFMPEG(Path input, Path output) throws CommandException {\n String command = RodaCoreFactory.getRodaConfigurationAsString(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n command = command.replace(\"String_Node_Str\", input.toString());\n command = command.replace(\... |
"public void getBlockJson() throws ConnectorException, IOException {\n int blockHeight = ontSdk.getConnectMgr().getBlockHeight();\n Object obj = ontSdk.getConnectMgr().getBlockJson(blockHeight);\n Assert.assertNotNull(obj);\n}\n"
|
"protected void addTabbedChartDetail(int width, int height) {\n createChart(width, height);\n if (chartPanel != null) {\n tabs.addTab(\"String_Node_Str\", chartPanel);\n }\n JTable table = new JTable(defaultTableModel);\n table.setPreferredSize(new Dimension(480, 260));\n reloadTable();\n ta... |
"public Object run(ConfigBeanProxy writableParent) throws PropertyVetoException, TransactionFailure {\n ConfigBeanProxy childBean = writableParent.createChild(targetType);\n manager.inject(childBean, targetType, getInjectionResolver());\n String name = null;\n if (Named.class.isAssignableFrom(targetType)) {... |
"public void add(DocumentExtension ext) {\n ext.setParent(index);\n if (firstChild == -1) {\n updateFirstChild(ext);\n lastChild = firstChild;\n lastChildId = firstChildId;\n return;\n }\n if (head == null) {\n if (ext.contentId == lastChildId + 1) {\n ext.setPr... |
"public boolean hasBank(String bank) {\n return (!hasBanks()) ? false : this.iConomy.Banks.exists(bank);\n}\n"
|
"public List<FeedbackSessionAttributes> getFeedbackSessionsForUserInCourse(String courseId, String userEmail) throws EntityDoesNotExistException {\n if (coursesLogic.isCoursePresent(courseId) == false) {\n throw new EntityDoesNotExistException(\"String_Node_Str\");\n }\n List<FeedbackSessionAttributes> ... |
"public String generateReply(RPCElement request) {\n String pathFile = \"String_Node_Str\";\n String strResponse = \"String_Node_Str\";\n String messageId = \"String_Node_Str\";\n log.debug(\"String_Node_Str\");\n log.debug(request.toXML());\n if (request instanceof Hello) {\n log.debug(\"Strin... |
"public void testGetId() throws Exception {\n expect(mockConnection.getBlobStore()).andReturn(mockStore).times(3);\n expect(mockStore.getId()).andReturn(blobStoreUri).times(2);\n replay(mockConnection, mockFs, mockStore);\n HDFSBlob b = new HDFSBlob(blobUri, mockConnection);\n assertEquals(new URI(blobSt... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.