content stringlengths 40 137k |
|---|
"public void onClick(View view) {\n mLoginListener.track(AnalyticsTracker.Stat.LOGIN_SOCIAL_BUTTON_CLICK);\n ActivityUtils.hideKeyboard(getActivity().getCurrentFocus());\n if (NetworkUtils.checkConnection(getActivity())) {\n mOldSitesIDs = SiteUtils.getCurrentSiteIds(mSiteStore, false);\n mIsSoci... |
"protected void afterHookedMethod(final MethodHookParam param) throws Throwable {\n MenuItem item = (MenuItem) param.args[1];\n switch(item.getItemId()) {\n case id:\n Open(Ectx);\n start = Etextview.getSelectionStart();\n end = Etextview.getSelectionEnd();\n mCl... |
"public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {\n final Bookmark bmark = ((Bookmark) parent.getAdapter().getItem(position));\n final Bundle bundle = new Bundle();\n String bmarkJson = (new Gson()).toJson(bmark);\n bundle.putString(IntentConstants.EXTRAS_KEY_BMARK, ... |
"protected static ClassLoader createProtectiveClassLoader(ClassLoader cl, String v) throws ClassNotFoundException, MalformedURLException {\n if (noHack)\n return cl;\n boolean mustang = false;\n if (JAXBContext.class.getClassLoader() == null) {\n mustang = true;\n List mask = new ArrayList... |
"public Collection<ResultAnnotation> getBindedAnnotations(Collection<Binding> bindings) {\n Collection<ResultAnnotation> finalAnnotations = new ArrayList<>();\n for (ResultAnnotation externalAnnotation : annotations) {\n ResultAnnotation sanitizedAnnotation = externalAnnotation;\n if (externalAnnota... |
"public ServiceDescriptor getInternalService(Long uoid, String serviceIdentifier) {\n for (Entry<Long, Map<String, ServiceDescriptor>> entry : uoidToInternalServices.entrySet()) {\n if (entry.getValue().containsKey(serviceIdentifier)) {\n return entry.getValue().get(serviceIdentifier);\n }\n... |
"public static void removeSnapshotAPIDocs(File mkdocsConfigFile, String documentationBaseDirectory, Log logger) {\n File apiDocsDirectory = new File(documentationBaseDirectory + File.separator + Constants.API_SUB_DIRECTORY);\n String[] documentationFileNames = apiDocsDirectory.list((directory, fileName) -> fileNa... |
"private void addEmbeddedColumnNameToDocument(String superColumnName, Document currentDoc) {\n Field luceneField = getLuceneField(SUPERCOLUMN_INDEX, superColumnName);\n currentDoc.add(luceneField);\n}\n"
|
"public void onResume() {\n super.onResume();\n if (AppController.getStoredString(Constants.Authorization) != null) {\n mBookmarkTopLay.setVisibility(View.GONE);\n mBookmarkMainLay.setVisibility(View.VISIBLE);\n if (gifts.size() <= 0 && startIndex == 0) {\n getBookmarks();\n ... |
"public void compose(Element e, Turtle ttl, String base) throws Exception {\n ttl.prefix(\"String_Node_Str\", FHIR_URI_BASE);\n ttl.prefix(\"String_Node_Str\", \"String_Node_Str\");\n ttl.prefix(\"String_Node_Str\", \"String_Node_Str\");\n ttl.prefix(\"String_Node_Str\", \"String_Node_Str\");\n Section s... |
"protected ProgramStatus getProgramStatus(Id.Program id, String runId) throws NotFoundException {\n ProgramRuntimeService.RuntimeInfo runtimeInfo = findRuntimeInfo(id, runId);\n if (runtimeInfo == null) {\n if (id.getType() != ProgramType.WEBAPP) {\n ProgramSpecification spec = getProgramSpecifi... |
"public String toString(final Range range) {\n return GSON_OBJECT.toJson(this.toJsonElement(range));\n}\n"
|
"public static boolean validateCredentials(Project project, String ticket) throws ServerException, IOException, URISyntaxException {\n URIBuilder requestUri = MMSUtils.getServiceUri(project);\n if (requestUri == null) {\n return \"String_Node_Str\";\n }\n requestUri.setPath(requestUri.getPath() + \"S... |
"public void invalidate() {\n if (_page != null) {\n getAttachedUiEngine().addInvalidate(this);\n}\n"
|
"protected Class defineClass(String name, byte[] b, CodeSource cs) throws IOException {\n if (trace.isTraceEnabled())\n trace.enter(\"String_Node_Str\", this, new Object[] { name, b, cs });\n if (!initializingAdaptor) {\n if (adaptor == null && !initializingAdaptor) {\n createAdaptor();\n... |
"private void foreachArray(Context context, ForeachLoop loop) throws UserException, UndefinedTypeException {\n Var arrayVar = exprWalker.eval(context, loop.getArrayVarTree(), loop.findArrayType(context), true, null);\n ArrayList<Var> usedVariables = new ArrayList<Var>();\n ArrayList<Var> keepOpenVars = new Arr... |
"public String getContentType() {\n return Result.APPLICATION_JSON;\n}\n"
|
"public void handleMap(Node node) {\n BeanDefinitionBuilder mapConfigBuilder = createBeanBuilder(MapConfig.class);\n final AbstractBeanDefinition beanDefinition = mapConfigBuilder.getBeanDefinition();\n final Node attName = node.getAttributes().getNamedItem(\"String_Node_Str\");\n final String name = getVal... |
"public boolean commit() {\n if (closed)\n return false;\n if (segment(hash).putEntry(hashEntryAdr, hash, keyLen, bytes, false, oldImpl != null ? oldImpl.hashEntryAdr() : 0L, oldImpl != null ? oldImpl.valueOffset() : 0L, oldImpl != null ? oldImpl.valueLen() : 0L)) {\n closed = true;\n return ... |
"public void addIssue(final Issue i) throws Exception {\n if (_issues == null)\n initIssueMap();\n if (_issues.get(i.getName()) != null) {\n throw new Exception(\"String_Node_Str\" + i.getName());\n } else {\n _issues.put(i.getName(), i);\n }\n}\n"
|
"void setCourseInfo(String input) {\n Pattern pattern1 = Pattern.compile(\"String_Node_Str\");\n Matcher matcher1 = pattern1.matcher(input);\n Pattern pattern2 = Pattern.compile(\"String_Node_Str\");\n Matcher matcher2 = pattern2.matcher(input);\n coursesInfo = new ArrayList<CourseInfo>();\n if (match... |
"private void scheduleJobs() {\n synchronized (this) {\n if (running) {\n log.debug(\"String_Node_Str\" + \"String_Node_Str\");\n return;\n }\n running = true;\n }\n if (backupNow()) {\n File backupDir = new File(\"String_Node_Str\" + System.currentTimeMillis()... |
"public static void updateComponentList(IElement elem, IElementParameter param) {\n if (elem instanceof INode) {\n INode currentNode = (INode) elem;\n List<INode> nodeList = null;\n IJobletProviderService jobletService = getJobletProviderService(param);\n if (jobletService != null) {\n ... |
"protected void __execute() throws Exception {\n BaseAttributeBean attrBean = (BaseAttributeBean) context.getBean();\n boolean svgFlag = getSVGFlag(operation.getOprand());\n runReport();\n String bookmark = null;\n boolean useBookmark = false;\n String docName = attrBean.getReportDocumentName();\n ... |
"protected final SoyExpression visitPlusOpNode(PlusOpNode node) {\n SoyExpression left = visit(node.getChild(0));\n SoyExpression right = visit(node.getChild(1));\n if (left.assignableToNullableInt() && right.assignableToNullableInt()) {\n return applyBinaryIntOperator(Opcodes.LADD, left, right);\n }... |
"public Map<String, Object> queryUsersForAssign(int page, int pagesize, Long roleId, String userNameForSearch, String userAccountForSearch) {\n Map<String, Object> dataMap = new HashMap<String, Object>();\n RoleVO roleVO = new RoleVO();\n roleVO.setId(roleId);\n UserVO userVO = new UserVO();\n userVO.set... |
"private void minimizeMenuItemActionPerformed(java.awt.event.ActionEvent evt) {\n Iterator[] its = new Iterator[3];\n its[0] = schemaWindowMap.keySet().iterator();\n its[1] = mdxWindows.iterator();\n JInternalFrame sf;\n try {\n for (int i = 0; i < its.length; i++) {\n Iterator it = its... |
"public PushBufferStream[] getStreams() {\n if (outputStream == null) {\n AudioMixer.AudioMixerPushBufferStream audioMixerOutputStream = audioMixer.getOutputStream();\n if (audioMixerOutputStream != null) {\n outputStream = new AudioMixingPushBufferStream(audioMixerOutputStream, this);\n ... |
"public void onClick(AjaxRequestTarget target) {\n manager.executeCallback(target, \"String_Node_Str\");\n manager.closeModalWindow(target);\n}\n"
|
"public IDroneApi registerDroneApi(IApiListener listener, String appId) throws RemoteException {\n return serviceRef.registerDroneApi(listener, appId);\n}\n"
|
"public void reset() {\n if (getAbstractSession().isInTransaction()) {\n getAbstractSession().rollbackTransaction();\n }\n getSession().getIdentityMapAccessor().initializeAllIdentityMaps();\n}\n"
|
"public void setProperty(ElementPropertyDefn prop, Object value) throws SemanticException {\n checkAllowedOperation();\n if (prop.isElementType()) {\n setElementTypeProperty(prop, value);\n return;\n }\n String propName = prop.getName();\n if ((IReportItemModel.TOC_PROP.equals(propName) || ... |
"private void removeStemNode(StemNode stemNode) {\n final String surfaceForm = stemNode.surfaceForm;\n if (multiStems.containsKey(surfaceForm)) {\n multiStems.remove(surfaceForm, stemNode);\n } else if (singleStems.containsKey(surfaceForm) && singleStems.get(surfaceForm).getDictionaryItem().equals(stemN... |
"protected FileInfo excuteOperations(DataObject dataObject, MappedEditorConfig config) {\n LOG.log(Level.INFO, \"String_Node_Str\", filePath);\n LOG.log(Level.INFO, config.toString());\n FileInfo info = new FileInfo(dataObject);\n boolean fileChangeNeeded = false;\n boolean styleFlushNeeded = false;\n ... |
"protected Object formBackingObject(HttpServletRequest request) throws ServletException {\n ReportData report = (ReportData) request.getSession().getAttribute(ReportingConstants.OPENMRS_REPORT_DATA);\n if (null != report) {\n return report;\n } else {\n EvaluationContext context = new EvaluationC... |
"public static void populateNode(TreeElement node, TreeElement incoming, TreeReference ref, FormDef f) {\n if (node.isLeaf()) {\n IAnswerData value = incoming.getValue();\n if (value == null) {\n node.setValue(null);\n } else if (node.dataType == Constants.DATATYPE_TEXT || node.dataTy... |
"public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {\n FloorForm floorForm = (FloorForm) form;\n RestaurantManager manager = new RestaurantManager();\n String floorId = (String) floorForm.getFloorId();\n String pla... |
"public void onBucketEmpty(final PlayerBucketEmptyEvent e) {\n if (DEBUG) {\n plugin.getLogger().info(e.getEventName());\n }\n if (inWorld(e.getPlayer())) {\n Player p = e.getPlayer();\n if (e.getBlockClicked() != null) {\n Block dumpBlock = e.getBlockClicked().getRelative(e.get... |
"private void initComponents() throws ParseException {\n menuBar.add(menuFile);\n menuFile.add(menuItemLogout);\n menuFile.add(menuItemExit);\n menuAssignment.add(menuItemAddAssignment);\n menuAssignment.add(menuItemRemoveAssignment);\n menuAssignment.add(menuItemShowAssignments);\n menuBar.add(men... |
"private void doInvoke(InterpretContext ctx, TagInvoker invoker, Object[] arguments) throws InterpretException {\n boolean useLatest = (invoker != null);\n if (invoker == null) {\n Class<?>[] argumentTypes = ParameterUtils.getParameterTypes(arguments);\n invoker = ctx.getGlobalResolver().resolveTag(... |
"public Void run() {\n try {\n deleteDatasetInstance(NamespaceId.SYSTEM.dataset(\"String_Node_Str\"));\n Assert.fail();\n } catch (UnauthorizedException e) {\n } catch (Exception e) {\n Assert.fail(\"String_Node_Str\");\n }\n return null;\n}\n"
|
"public ServiceCommand promptForValues() {\n CommandOptions options = serviceCommand.getOptions();\n if (options != null) {\n List<String> variables = ServiceCommand.getOptionVariables(serviceCommand, options.getOptions());\n boolean shouldPromptForNonTunnel = false;\n if (variables != null &... |
"private static TemplateModelException newInvocationTemplateModelException(Object parentObject, Object member, boolean isStatic, boolean isConstructor, Throwable e) {\n while (e instanceof InvocationTargetException) {\n Throwable cause = ((InvocationTargetException) e).getTargetException();\n if (cause... |
"public void projectClosed(Project project) {\n closeLocalCommitListener(project);\n}\n"
|
"public void initFromPipe(Class<? extends Pipe> pipeClass) {\n capacity = 25 * Math.min(1000, BuildCraftTransport.pipeFluidsBaseFlowRate);\n flowRate = fluidCapacities.get(pipeClass);\n travelDelay = MathUtils.clamp(Math.round(16F / (flowRate / BuildCraftTransport.pipeFluidsBaseFlowRate)), 1, MAX_TRAVEL_DELAY)... |
"public static boolean removeAroundPoint(Player player, String ability, Location loc, double radius) {\n boolean removed = false;\n for (int i = 0; i < instances.size(); i++) {\n FireCombo combo = instances.get(i);\n if (combo.getPlayer().equals(player))\n continue;\n if (ability.e... |
"public void receivedByte(byte data) {\n log(\"String_Node_Str\" + Utils.hex8(data) + \"String_Node_Str\" + stateMachine + \"String_Node_Str\" + zeroSymbols + ((stateMachine == RadioState.RX_SFD_SEARCH || stateMachine == RadioState.RX_FRAME) ? \"String_Node_Str\" : \"String_Node_Str\"));\n if (stateMachine == Rad... |
"public static BufferedImage getRotatedResizedImage(BufferedImage image, int width, int height, double angle) {\n int imageWidth = image.getWidth();\n int imageHeight = image.getHeight();\n if (angle == 0.0 && (width < 0 || imageWidth == width) && (height < 0 || imageHeight == height)) {\n return image;... |
"public InputStream getInputStream() throws IOException {\n return new ByteBufInputStream(fileUpload.getByteBuf(), true);\n}\n"
|
"public String transform(TextNode node, String original) {\n StringBuilder build = new StringBuilder();\n char[] ca = original.toCharArray();\n for (int i = 0; i < ca.length; i++) {\n switch(ca[i]) {\n case '&':\n build.append(\"String_Node_Str\");\n offsets.add(... |
"protected void doRun() {\n if (repositoryNode == null) {\n repositoryNode = getCurrentRepositoryNode();\n }\n HDFSConnection connection = null;\n MetadataTable metadataTable = null;\n boolean creation = false;\n if (repositoryNode.getType() == ENodeType.REPOSITORY_ELEMENT) {\n EReposito... |
"public boolean isLoaded(Object entity) {\n if (Boolean.TRUE.equals(EntityManagerFactoryImpl.isLoaded(entity, session))) {\n return true;\n }\n return false;\n}\n"
|
"public String getDurationAllowedFormatted() {\n long allowedTime = mAllowedDuration;\n long days = TimeUnit.MILLISECONDS.toDays(allowedTime);\n allowedTime -= TimeUnit.DAYS.toMillis(days);\n long hours = TimeUnit.MILLISECONDS.toHours(allowedTime);\n allowedTime -= TimeUnit.HOURS.toMillis(hours);\n lo... |
"private void resolveParameters() {\n if (!this.genericsResolved) {\n this.resolveGenerics();\n }\n this.parametersResolved = true;\n for (int i = 0; i < this.parameterCount; i++) {\n this.parameters[i].resolveTypes(null, this);\n }\n}\n"
|
"public static boolean openApp(String appName, String packageName) throws UiObjectNotFoundException {\n UiDevice device = UiDevice.getInstance();\n try {\n device.wakeUp();\n } catch (RemoteException e1) {\n e1.printStackTrace();\n }\n device.pressHome();\n device.pressHome();\n devic... |
"public void afterCreateControl() {\n resetProjectOperationSelectionWithBusyCursor(false);\n alwaysAsk.setSelection(LoginHelper.isAlwaysAskAtStartup());\n previousButton.setVisible(false);\n}\n"
|
"public LabelledItem next() {\n index++;\n return new LabelledItem(trainingSet[_class][index - 1], _class);\n}\n"
|
"public void onResume() {\n super.onResume();\n if (isFriendsListLoaded && !isNeedToHideSearchView) {\n checkVisibilityEmptyLabel();\n }\n}\n"
|
"public SpanCustomizer currentSpanCustomizer() {\n TraceContext currentContext = currentTraceContext.get();\n return currentContext != null && Boolean.TRUE.equals(currentContext.sampled()) ? RealSpanCustomizer.create(currentContext, recorder) : NoopSpanCustomizer.INSTANCE;\n}\n"
|
"public void resolveLayoutDirection(int layoutDirection) {\n setLayoutDirection(layoutDirection);\n if (!isMarginRelative() || (mMarginFlags & NEED_RESOLUTION_MASK) != NEED_RESOLUTION_MASK)\n return;\n doResolveMargins();\n}\n"
|
"public static String getNewName() {\n int size = 5;\n int tries = 0;\n int index = Rand.getInt(stringChars.length);\n int length = stringChars[index].length;\n String result;\n char[] cNewName = new char[size];\n do {\n if (tries == size) {\n cNewName = new char[++size];\n ... |
"public PlanItem getBestPlanItem(Session session, int[] masks, TableFilter[] filters, int filter, SortOrder sortOrder) {\n PlanItem item = new PlanItem();\n item.setIndex(getScanIndex(session));\n item.cost = item.getIndex().getCost(session, null, filters, filter, null);\n Trace t = session.getTrace();\n ... |
"public List<ProductInfo> findProductsByCategory(String categoryId) {\n Connection con = null;\n PreparedStatement ps = null;\n ResultSet rs = null;\n List<ProductInfo> vos = null;\n String sqlStr = isPostgre() ? \"String_Node_Str\" + \"String_Node_Str\" : \"String_Node_Str\" + \"String_Node_Str\";\n ... |
"private void axs(final int addr) {\n X = ((A & X) - ram.read(addr)) & 0xff;\n setflags(X);\n carryFlag = (X >= 0);\n}\n"
|
"public Class<?> getWSObjectClass() {\n return WSDataModel.class;\n}\n"
|
"public void endElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord) {\n if (!xmlField.getLastXPathFragment().nameIsText()) {\n return;\n }\n Object value = unmarshalRecord.getStringBuffer().toString();\n unmarshalRecord.resetStringBuffer();\n XMLConversionManager xmlConversionMan... |
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.list_view_with_spinner, null);\n mListView = (ListView) view.findViewById(R.id.list);\n mListView.setFastScrollAlwaysVisible(true);\n mProgressBar = (ProgressBar) view... |
"private AbstractFilterHandleProvider getFilterProviderDelegate() {\n AbstractFilterHandleProvider provider = ChartFilterProviderDelegate.createFilterProvider(input, null);\n return provider;\n}\n"
|
"public Personalization getPersonalization() {\n if (persoCache == null) {\n persoCache = new Profile06();\n }\n return persoCache;\n}\n"
|
"public void EstablishSpectre(CarriagePackage Package) {\n int CarriageX = Package.AnchorRecord.X;\n int CarriageY = Package.AnchorRecord.Y;\n int CarriageZ = Package.AnchorRecord.Z;\n WorldUtil.SetBlock(worldObj, CarriageX, CarriageY, CarriageZ, RIMBlocks.Spectre, BlockSpectre.Types.Rotative.ordinal());\n ... |
"public void formatTo(Formatter formatter, int flags, int width, int precision) {\n final StringSymbol name = getName();\n if (\"String_Node_Str\".equals(name.getValue()) || \"String_Node_Str\".equals(name.getValue())) {\n formatter.format(\"String_Node_Str\", name.getValue());\n } else {\n forma... |
"protected Integer doInBackground(Void... params) {\n try {\n HttpJsonRequest.createNewInstance(getActivity()).setCredentials(username, password, oc_root_path);\n String _version = OwnCloudReaderMethods.GetVersionNumber(getActivity(), oc_root_path);\n if (_version != null) {\n _versio... |
"public void init() {\n if (!(this instanceof RecordsManagementAction)) {\n super.init();\n }\n if (auditable) {\n getAuditService().registerAuditEvent(this.getActionDefinition().getName(), this.getActionDefinition().getTitle());\n }\n}\n"
|
"public QueryResult query(final Query query, final TimeUnit timeUnit) {\n return execute(this.influxDBService.query(this.username, this.password, query.getDatabase(), TimeUtil.toTimePrecision(timeUnit), query.getCommandWithUrlEncoded()));\n}\n"
|
"public String registerAgent(String toolName, String agentVersion, String osversion, String configDetails) throws InsightsCustomException {\n try {\n String agentId = getAgentkey(toolName);\n Gson gson = new Gson();\n JsonElement jelement = gson.fromJson(configDetails.trim(), JsonElement.class);... |
"public void createRefund(ActionRequest request, ActionResponse response) {\n Invoice invoice = request.getContext().asType(Invoice.class);\n InvoiceService is = Beans.get(InvoiceService.class);\n try {\n invoice = is.find(invoice.getId());\n Invoice refund = is.createRefund(invoice);\n re... |
"protected Object getFromScope(String name) {\n final BSHInterpreter ip = getInterpreter(_scope);\n final Scope curr = ip != null ? ip.getCurrent() : null;\n if (curr == null)\n return getImplicit(name);\n if (_firstGet) {\n _firstGet = false;\n final Execution exec = Executions.getCurr... |
"public void run() throws Exception {\n synchronized (viewUpdateListeners) {\n for (ViewUpdateListenerContainer cont : viewUpdateListeners.values()) cont.notifyListenersLogout();\n }\n}\n"
|
"private boolean checkPlayServices() {\n final int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n try {\n GooglePlayServicesUtil.getErrorD... |
"private void createRefreshButton(Composite currentSectionClient) {\n Composite buttonsComposite = new Composite(currentSectionClient, SWT.NONE);\n buttonsComposite.setLayout(new GridLayout(10, true));\n GridData labelGd = new GridData();\n labelGd.horizontalAlignment = SWT.LEFT;\n labelGd.widthHint = 30... |
"public void onBlockIgnite(BlockIgniteEvent event) {\n if (j2.safemode && !(event.getCause().equals(IgniteCause.FLINT_AND_STEEL))) {\n event.setCancelled(true);\n }\n}\n"
|
"public static String streamToString(InputStream in) throws IOException {\n BufferedReader br = null;\n StringBuilder sb = new StringBuilder();\n String line;\n try {\n br = new BufferedReader(new InputStreamReader(in, UTF_8));\n while ((line = br.readLine()) != null) {\n sb.append(... |
"public boolean isCellEditable(int rowIndex, int columnIndex) {\n return !this.getTableHeaderColumnsDetails().getVisibleColumnsDefinitionList().get(columnIndex).isReadonly();\n}\n"
|
"public Set<UIComponent> getDefaultUIComponentToUpdateByAjax(WebuiRequestContext context) {\n Set<UIComponent> list = new LinkedHashSet<UIComponent>(3);\n list.add(context.getUIApplication());\n return list;\n}\n"
|
"public void doJoin(AtomicBoolean joined) {\n int tryCount = 0;\n long joinStartTime = Clock.currentTimeMillis();\n long maxJoinMillis = node.getGroupProperties().MAX_JOIN_SECONDS.getInteger() * 1000;\n while (node.isActive() && !joined.get() && (Clock.currentTimeMillis() - joinStartTime < maxJoinMillis)) {... |
"public void addViewBundle(OTViewBundle viewBundle) {\n Vector viewEntries = viewBundle.getViewEntries().getVector();\n Iterator it = viewEntries.iterator();\n Vector tempViewMap = new Vector();\n while (it.hasNext()) {\n InternalViewEntry internalViewEntry = createInternalViewEntry((OTViewEntry) it.... |
"public void onCreate(Bundle savedInstanceState) {\n if (isFullScreenSupported())\n ReaderFullScreenUtils.enableActionBarOverlay(this);\n super.onCreate(savedInstanceState);\n createMenuDrawer(R.layout.reader_activity_main);\n getSupportFragmentManager().addOnBackStackChangedListener(this);\n if (... |
"protected void resolveRelation(Relation<E> aRelation, Model<E, P, C, Q> aModel) throws Exception {\n super.resolveRelation(aRelation, aModel);\n if (aRelation instanceof ReferenceRelation<?>) {\n if (aRelation.getLeftField() != null && !aRelation.getLeftField().isFk()) {\n aRelation.setLeftFiel... |
"private TreeSet<String> updatePanel() {\n double groupSocialPosition;\n int population, panelSize;\n population = this.getDataModel().getMemberList().size();\n groupSocialPosition = this.getDataModel().getEstimatedSocialLocation();\n panelSize = (int) Math.ceil(population * groupSocialPosition - 0.5);\n... |
"public int getArmorDisplay(EntityPlayer player, ItemStack armor, int slot) {\n NBTTagCompound plateNBT = getPlateNBT(armor);\n if (plateNBT != null) {\n return UtilPlates.getPlate(plateNBT.getString(\"String_Node_Str\")).getDamageReductionAmount(armorType, DamageSource.GENERIC);\n }\n return ArmorMa... |
"protected void showLayoutTargetFeedback(Request request) {\n if (getHost().getChildren().size() == 0)\n return;\n boolean isCrossTabElement = false;\n if (request instanceof ChangeBoundsRequest) {\n List editParts = ((ChangeBoundsRequest) request).getEditParts();\n if (editParts.size() > ... |
"private SymbolImpl variablize_symbol(SymbolImpl sym) {\n IdentifierImpl id = sym.asIdentifier();\n if (id == null)\n return sym;\n if (!this.variablize_this_chunk)\n return sym;\n if (id.tc_number == this.variablization_tc) {\n return id.variablization;\n }\n id.tc_number = this.... |
"public org.hl7.fhir.dstu2.model.NutritionOrder.NutritionOrderEnteralFormulaAdministrationComponent convertNutritionOrderEnteralFormulaAdministrationComponent(org.hl7.fhir.dstu3.model.NutritionRequest.NutritionRequestEnteralFormulaAdministrationComponent src) throws FHIRException {\n if (src == null || src.isEmpty()... |
"public void execute(AdminCommandContext adminCommandContext) {\n if (targetUtil.getConfig(target) == null) {\n adminCommandContext.getActionReport().setMessage(\"String_Node_Str\" + targetUtil);\n adminCommandContext.getActionReport().setActionExitCode(ActionReport.ExitCode.FAILURE);\n return;\... |
"public void loadSelectedPath() {\n List<PageNode> nodes = Util.getUIPortal().getSelectedPaths();\n List<LocalPath> paths = new ArrayList<LocalPath>();\n for (PageNode node : nodes) {\n if (node.getPageReference() == null) {\n paths.add(new LocalPath(null, node.getResolvedLabel()));\n ... |
"public void update(UsageIPAddressVO usage) {\n TransactionLegacy txn = TransactionLegacy.open(TransactionLegacy.USAGE_DB);\n PreparedStatement pstmt = null;\n try {\n txn.start();\n if (usage.getReleased() != null) {\n try (PreparedStatement pstmt = txn.prepareStatement(UPDATE_RELEASE... |
"public String onMessageReceived(String data) {\n EventMessage eventMessage = XMLConverUtil.convertToObject(EventMessage.class, data);\n if (eventMessage.getEvent() != null && eventMessage.getEvent().equals(\"String_Node_Str\")) {\n return new XMLTextMessage(eventMessage.getFromUserName(), eventMessage.get... |
"public synchronized void releaseToken(ResourceToken token) {\n LOG.debug(EventType.TOKEN_RELEASED.name() + \"String_Node_Str\" + token.toString());\n this.pendingTokens.remove(token);\n this.submittedTokens.remove(token);\n this.redeemedTokens.remove(token);\n}\n"
|
"public void updateTime(int hourOfDay, int minutes) {\n this.mHourOfDay = hourOfDay;\n this.mMinutes = minutes;\n}\n"
|
"public ContextMap<CallString, Map<Location, ValueMapping>> transfer(InstructionHandle stmt, FlowEdge edge, ContextMap<CallString, Map<Location, ValueMapping>> input, Interpreter<CallString, Map<Location, ValueMapping>> interpreter, Map<InstructionHandle, ContextMap<CallString, Map<Location, ValueMapping>>> state) {\n ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.