content stringlengths 40 137k |
|---|
"public ConfigurationNode addChild(ConfigurationNode node) {\n ConfigurationNode ret = children.put(node.getPathElements()[node.getPathElements().length - 1], node);\n node.setAttached(true);\n node.setParent(this);\n return ret;\n}\n"
|
"private void pushFrameIP(ObjectReference code, int verbosity) {\n if (prevFp.isZero()) {\n if (verbosity >= 3) {\n Log.write(\"String_Node_Str\");\n Log.writeln(thread.getContextRegisters().ip);\n Log.write(\"String_Node_Str\");\n Log.writeln(thread.getContextRegis... |
"public void initGui() {\n xSize = 176;\n ySize = 227;\n super.initGui();\n recipeList = Lists.newArrayList(new ProjectTableRecipe(new ItemStack(ModBlock.blockSteel, 1), new ItemStack(ModItem.ingotSteel, 15)), new ProjectTableRecipe(new ItemStack(Items.diamond, 10), new ItemStack(Blocks.dirt, 64), new ItemS... |
"public void doWith(Field field) throws IllegalArgumentException, IllegalAccessException {\n ReflectionUtils.makeAccessible(field);\n if (!isTemporaryField(field)) {\n allFields.add(field);\n if (isIgoreSignField(field)) {\n ignoreSignFieldNames.add(field.getName());\n }\n }\n}\... |
"public void collectFields() throws ValidationException {\n switch(list.getSelectedIndex()) {\n case 0:\n this.theType = NeuralNetworkType.Automatic;\n break;\n case 1:\n this.type = NeuralNetworkType.ADALINE;\n break;\n case 2:\n this.type ... |
"public static TestSuite getConnectionCloseAfterTxnTestSuite() {\n TestSuite suite = new TestSuite();\n suite.setName(\"String_Node_Str\");\n suite.setDescription(\"String_Node_Str\");\n suite.addTest(new CloseConnAfterDatabaseSessionTxnTest());\n return suite;\n}\n"
|
"void createAnalysisColumnsSection(final ScrolledForm form, Composite anasisDataComp) {\n Section section = createSection(form, anasisDataComp, \"String_Node_Str\", false, null);\n Composite topComp = toolkit.createComposite(section);\n topComp.setLayout(new GridLayout());\n Hyperlink clmnBtn = toolkit.crea... |
"String getUsername() {\n String username = null;\n try {\n database = myDatabaseHelper.getReadableDatabase();\n String[] columns = new String[] { \"String_Node_Str\", \"String_Node_Str\" };\n cursor = database.query(\"String_Node_Str\", columns, null, null, null, null, null);\n int in... |
"private static JsonParser collectServerHoldingBinElementsRecursively(Project project, int depth, ProgressStatus progressStatus) throws ServerException, IOException, URISyntaxException {\n String holdingBinId = MDKConstants.HOLDING_BIN_ID_PREFIX + Converters.getIProjectToIdConverter().apply(project.getPrimaryProject... |
"public void testSystemServicesStatus() throws Exception {\n Type token = new TypeToken<Map<String, String>>() {\n }.getType();\n HttpURLConnection urlConn = openURL(\"String_Node_Str\", HttpMethod.GET);\n Assert.assertEquals(HttpResponseStatus.OK.getCode(), urlConn.getResponseCode());\n Map<String, Stri... |
"public void tick() {\n ARBITRARY_POOL.execute(() -> {\n this.inhabited.add(this.occupants.size());\n if (this.world.getTime() == 0) {\n this.checkValidForGc();\n }\n });\n}\n"
|
"public int getCpu() {\n return nodeGroup.getCpuNum() == null ? 0 : nodeGroup.getCpuNum();\n}\n"
|
"public void move(double deltaX, double deltaY, double deltaZ) {\n View view = getView();\n if (view != null) {\n Vec4 forward = view.getForwardVector();\n Vec4 up = view.getUpVector();\n Vec4 side = up.cross3(forward);\n Vec4 eyePoint = view.getCurrentEyePoint();\n Position eye... |
"public boolean onDeleteCluster(ClusterBlueprint clusterBlueprint, ClusterReportQueue reports) throws SoftwareManagementPluginException {\n try {\n String clusterName = clusterBlueprint.getName();\n AmClusterDef clusterDef = new AmClusterDef(clusterBlueprint, null);\n if (isProvisioned(clusterNa... |
"public static void main(String[] args) {\n hwm = new HWMethTest();\n hwm.Prepare_Noisy_Vector(hwm.max_test_size);\n m = mac_coprocessor.getInstance();\n measure();\n}\n"
|
"public void initialize(DataManager manager) {\n if (subset != null && this.manager == null) {\n this.manager = manager;\n return;\n }\n if (subset != null && this.manager == manager) {\n return;\n }\n Random random;\n if (deterministic) {\n random = new Random(0xDEADBEEF);... |
"public void before() throws Exception {\n fsMerger = new FSKeyedSortedMerger(1000, 100, \"String_Node_Str\", \"String_Node_Str\", MessageType.INTEGER, MessageType.OBJECT, new KeyComparator(), 0);\n random = new Random();\n serializer = new KryoSerializer();\n}\n"
|
"public static void map(final File readsFile, final File soapIndexDir, final File outputFile, final File unmapFile, final String soapArgs, final int nbSoapThreads) throws IOException {\n if (soapPath == null) {\n synchronized (SYNC) {\n soapPath = BinariesInstaller.install(\"String_Node_Str\");\n ... |
"private void migrateCategories(OldConfig oldConfig) {\n CategoriesConfig newCategories = configProvider.getBaseConfig().getCategoriesConfig();\n Categories oldCategories = oldConfig.getCategories();\n newCategories.setEnableCategorySizes(oldCategories.isEnableCategorySizes());\n for (Category newCategory :... |
"public void rotateLogAndPushToSlaves() throws IOException {\n if (slaveList.size() == 0) {\n return;\n }\n List<HandleSlaveConnection> newList = new CopyOnWriteArrayList<HandleSlaveConnection>();\n for (HandleSlaveConnection slave : slaveList) {\n XaDataSource xaDs = xaDsMgr.getXaDataSource(s... |
"private static SyncedIdentityImpl createSyncedIdentity(Authorizable auth) throws RepositoryException {\n ExternalIdentityRef ref = (auth == null) ? null : getIdentityRef(auth);\n if (ref == null) {\n return null;\n } else {\n Value[] lmValues = auth.getProperty(REP_LAST_SYNCED);\n long la... |
"public void send(int channelIndex, Token[] tokenArray, int vectorLength) throws IllegalActionException, NoRoomException {\n if (isOutput() && channelIndex == 0 && vectorLength == 1) {\n Token token = tokenArray[0];\n _checkType(token);\n ToplevelTransformer transformer = (ToplevelTransformer) g... |
"public static void moveFile(String sourceFile, String destFile) throws IOException {\n FileUtils.copy(sourceFile, destFile);\n FileUtils.deleteFile(new File(sourceFile));\n}\n"
|
"public void addData(double data) {\n if (Double.isInfinite(data) || Double.isNaN(data) || Math.abs(data) > threshold) {\n log.warn(\"String_Node_Str\" + data);\n return;\n }\n validElementCnt += frequency;\n max = Math.max(max, data);\n min = Math.min(min, data);\n sum += data;\n squ... |
"public boolean onItemClick(View view, int position) {\n Mention mention = new Mention();\n MentionAutocompleteItem mentionAutocompleteItem = (MentionAutocompleteItem) adapter.getItem(position);\n if (mentionAutocompleteItem != null) {\n mention.setId(mentionAutocompleteItem.getUserId());\n menti... |
"public CreateAccountResponseType createAccount(CreateAccountType request) throws EucalyptusCloudException {\n CreateAccountResponseType reply = request.getReply();\n reply.getResponseMetadata().setRequestId(reply.getCorrelationId());\n Context ctx = Contexts.lookup();\n User requestUser = ctx.getUser();\n ... |
"private void animateY2() {\n if (this.animate.getRepeatDur() <= (System.currentTimeMillis() - repeatDuration)) {\n stopAnimation();\n }\n if (from_xml >= to_xml) {\n if (this.animate.getRepeatCount() == count) {\n stopAnimation();\n } else {\n count++;\n f... |
"private ArrayList<Object> readList(final boolean tag, final ListOrArrayType constraint) throws IOException {\n if (tag)\n ensureTypeTag(null, TAG_LIST, readTypeTag());\n return readElements(false, constraint != null ? constraint.elementType() : null);\n}\n"
|
"public String getUnlocalizedName(ItemStack is) {\n CurseType type = CurseType.getFromDamage(is.getItemDamage());\n return \"String_Node_Str\" + (type == null ? \"String_Node_Str\" : type.name().toLowerCase(Locale.ENGLISH).replaceAll(\"String_Node_Str\", \"String_Node_Str\"));\n}\n"
|
"private ConfigBean getActualParent(final ConfigBean configBean) {\n ConfigBean parent = asConfigBean(configBean.parent());\n if (parent == null) {\n if (!configBean.getProxyType().getName().endsWith(\"String_Node_Str\")) {\n throw new IllegalStateException(\"String_Node_Str\" + configBean.getPr... |
"public static void main(String[] args) {\n ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext(\"String_Node_Str\");\n NetworkDiscoverer discoverer = applicationContext.getBean(NetworkDiscoverer.class);\n ConnectionDetails connectionDetails = new ConnectionDetails();\n co... |
"public void testGetNodeFromEntity() {\n Actor actor = new Actor();\n actor.setId(1);\n actor.setName(\"String_Node_Str\");\n Transaction tx = graphDb.beginTx();\n Node node = mapper.getNodeFromEntity(actor, 1, graphDb, KunderaMetadataManager.getEntityMetadata(Actor.class), false);\n Assert.assertNotN... |
"public Entity getPassenger() {\n return getHandle().getPassenger().isPresent() ? PoreEntity.of(getHandle().getPassenger().get()) : null;\n}\n"
|
"private void addMessageToCurrentMessagesAndVC(UserRequest ureq, Message m, VelocityContainer vcContainer, List<Map<String, Object>> allList, int msgCount, Map<String, Mark> marks, Map<String, MarkResourceStat> stats) {\n Map<String, Object> map = new HashMap<String, Object>();\n map.put(\"String_Node_Str\", m.ge... |
"public boolean addFieldDelete(DynamicComposite composite, Object instance) {\n Object original = ProxyUtils.getRemoved(instance);\n if (original != null) {\n getSerializationStrategy().addToComponent(composite, original);\n return true;\n }\n original = ProxyUtils.getChanged(instance);\n i... |
"private boolean onModifiedTouchEvent(MotionEvent me) {\n int touchX = (int) me.getX() - mPaddingLeft;\n int touchY = (int) me.getY() + mVerticalCorrection - mPaddingTop;\n int action = me.getAction();\n long eventTime = me.getEventTime();\n int keyIndex = getKeyIndices(touchX, touchY, null);\n if (mG... |
"public Result check(WebServiceEndpoint descriptor) {\n Result result = getInitializedResult();\n ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();\n boolean pass = true;\n if (descriptor.hasHandlers()) {\n Collection allPortNames = getAllPortNamesInService(descr... |
"private String request(String api, Map<String, Object> param) {\n String url = String.format(\"String_Node_Str\", rbacShiroUrl, api);\n try {\n Connection.Response response = Jsoup.connect(url).method(Connection.Method.POST).timeout(300).data(ImmutableMap.of(\"String_Node_Str\", URLEncoder.encode(RSAUtil.... |
"public void setResultSets(IBaseResultSet[] rsets) {\n if (this.rsets == rsets) {\n return;\n }\n if (rsets != null) {\n this.rsets = rsets;\n if (rsets[0] != null) {\n Scriptable scope = getScriptContext().getRootScope();\n DataAdapterUtil.registerJSObject(scope, new... |
"public static PathInfoImpl buildODataPathInfo(final SubLocatorParameter param) throws ODataException {\n final UriInfo uriInfo = param.getUriInfo();\n PathInfoImpl pathInfo = splitPath(param);\n pathInfo.setServiceRoot(buildBaseUri(param.getServletRequest(), pathInfo.getPrecedingSegments()));\n pathInfo.se... |
"public boolean startElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, Attributes atts) {\n try {\n unmarshalRecord.removeNullCapableValue(this);\n Descriptor xmlDescriptor = (Descriptor) xmlCompositeObjectMapping.getReferenceDescriptor();\n if (null == xmlDescriptor) {\n ... |
"public DownloadLink getDownloadLinkByFileOutput(File file, Integer Linkstatus) {\n ArrayList<DownloadLink> links = JDUtilities.getDownloadController().getAllDownloadLinks();\n try {\n Iterator<FilePackage> iterator = packages.iterator();\n FilePackage fp = null;\n DownloadLink nextDownloadLi... |
"private void commonQueryExistDomain(String queryDomainName, String expectedLdhName, String expectedUnicodeName) throws Exception {\n mockMvc.perform(get(URI_DOMAIN_Q + StringUtil.urlEncode(queryDomainName)).accept(MediaType.parseMediaType(rdapJson))).andExpect(status().isOk()).andExpect(content().contentType(rdapJs... |
"public static FoodMoverUser getCurrentUser() {\n User currRawUser = UserServiceFactory.getUserService().getCurrentUser();\n if (currRawUser == null) {\n return null;\n }\n Objectify objectify = ObjectifyUtil.get();\n FoodMoverUser foodMoverUser = objectify.query(FoodMoverUser.class).filter(USER_V... |
"public static void tearDown() throws Exception {\n if (searcher != null) {\n searcher.close();\n }\n}\n"
|
"public void fire(ArrayList<PostUpdateListener> listeners) {\n for (PostUpdateListener listener : listeners) listener.afterUpdate();\n}\n"
|
"public static void main(String[] args) throws IOException {\n if (args.length == 0) {\n System.err.println(\"String_Node_Str\");\n showUsage();\n System.exit(1);\n } else {\n String keyStoreFileName = args[0];\n File f = new File(keyStoreFileName);\n if (!f.exists()) {\n... |
"public MediaApiConfiguration mediaApiConfiguration() {\n MediaApiConfiguration config = new MediaApiConfiguration();\n config.setHandlerAddress(System.getProperty(\"String_Node_Str\", \"String_Node_Str\"));\n config.setHandlerPort(Integer.parseInt(PropertiesManager.getSystemProperty(\"String_Node_Str\", \"Str... |
"public <W extends AbstractSlider<T>> W setOrientation(Orientation orientation) {\n this.options.set(\"String_Node_Str\", orientation);\n return this;\n}\n"
|
"public void appendConditionToQuery(ConditionQueryBuilder conditionQueryBuilder) {\n conditionQueryBuilder.append(columnName()).append(operation());\n if (!Operation.IS_NOT_NULL.equals(operation()) && !Operation.IS_NULL.equals(operation())) {\n conditionQueryBuilder.append(conditionQueryBuilder.convertValu... |
"public Connection connect(String url, Properties info) throws SQLException {\n if (!acceptsURL(url)) {\n LOG.debug(\"String_Node_Str\", url);\n return null;\n }\n Connection connection = super.connect(url, info);\n if (connection == null) {\n LOG.error(\"String_Node_Str\", url, info);\... |
"public int doStartTag() throws JspException {\n evaluatePortletId();\n ServletContext servletContext = pageContext.getServletContext();\n DriverConfiguration driverConfig = (DriverConfiguration) servletContext.getAttribute(AttributeKeys.DRIVER_CONFIG);\n PortletWindowConfig windowConfig = driverConfig.getP... |
"private void _init_(String title, String s) {\n this.setBounds(100, 100, 400, 600);\n this.setTitle(title);\n JPanel contentPane = new JPanel();\n contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n contentPane.setLayout(new BorderLayout(5, 5));\n JPanel pageEnd = new JPanel();\n pageEnd.setLayo... |
"public void onKill(player attacker, player defender, Location l) {\n super.onKill(attacker, defender, l);\n attacker.addPoints(5);\n defender.addPoints(-2);\n int s = scores.containsKey(attacker) ? scores.get(attacker) + 1 : 1;\n scores.put(attacker, s);\n if (scores.get(attacker) >= 20) {\n o... |
"private void buildUI() {\n this.setSize(640, 480);\n final EventsTable table = new EventsTable(eventsTableModel);\n table.getSelectionModel().addListSelectionListener(new ListSelectionListener() {\n public void valueChanged(ListSelectionEvent e) {\n if (e.getFirstIndex() >= 0) {\n ... |
"public Graph getSummaryGraph() {\n Map<LocalDate, JacocoCoverageResultSummary> summaries;\n List<Job<?, ?>> jobs = (List) getDashboard().getJobs();\n summaries = JacocoLoadData.loadChartDataWithinRange(jobs, daysNumber);\n return createTrendChart(summaries, width, height);\n}\n"
|
"public Set<ActionSpec> getModuleActions() {\n Set<ActionSpec> actions = new HashSet<ActionSpec>();\n actions.add(new ActionSpec(\"String_Node_Str\", true));\n actions.add(new ActionSpec(\"String_Node_Str\", true));\n actions.add(new ActionSpec(\"String_Node_Str\", true));\n return actions;\n}\n"
|
"public void setDefaultFormat(String format) {\n if (TextUtils.isEmpty(format)) {\n mSettings.defaultPostFormat = STANDARD_POST_FORMAT_KEY;\n } else {\n mSettings.defaultPostFormat = format.toLowerCase(Locale.ROOT);\n }\n}\n"
|
"private void handleErrorResponse(XMPPError error, String packetID) {\n if (error != null && ((XMPPError.Type.CANCEL.equals(error.getType()) && (XMPPError.Condition.conflict.toString().equals(error.getCondition()) || XMPPError.Condition.forbidden.toString().equals(error.getCondition()))))) {\n if (XMPPError.C... |
"public void processEvent(EventRequest req, EventResponse resp) throws PortletException, IOException {\n ArrayList<String> msgs = (ArrayList<String>) req.getPortletSession().getAttribute(ATTRIB_MSGS);\n if (msgs == null) {\n msgs = new ArrayList<String>();\n }\n String[] msg;\n int numMsgs = 0;\n ... |
"private void setPlatfromTypeCombo(ILaunchConfigurationWorkingCopy configuration) throws CoreException {\n PlatformType selProjectPlatform = PlatformType.fromId(configuration.getAttribute(ConfigurationConstants.platforrmCfgAttribute, \"String_Node_Str\"));\n if (getLaunchConfigurationDialog().getMode().equals(ILa... |
"public void dispose() {\n disconnect();\n synchronized (remoteServiceListeners) {\n remoteServiceListeners.clear();\n }\n super.dispose();\n}\n"
|
"private void updateLayout(UIPortal uiPortal, PageNavigation formerNav, PageNavigation newNav, UIPortalApplication uiPortalApp) throws Exception {\n if (formerNav == null || newNav == null) {\n return;\n }\n String newOwnerType = newNav.getOwnerType();\n String newOwnerId = newNav.getOwnerId();\n ... |
"public boolean performFinish(TaskDataModel model, ScopeItem scope) {\n String reviewer = model.getTaskRepository().getUserName();\n try {\n Review review = ReviewFactory.eINSTANCE.createReview();\n review.getScope().add(scope);\n TaskRepository taskRepository = model.getTaskRepository();\n ... |
"public boolean onDoubleTap(MotionEvent e) {\n OnChartGestureListener l = mChart.getOnChartGestureListener();\n if (l != null) {\n l.onChartDoubleTapped(e);\n return super.onDoubleTap(e);\n }\n if (mChart.isDoubleTapToZoomEnabled()) {\n PointF trans = getTrans(e.getX(), e.getY());\n ... |
"private boolean occursOnFirstLevel(OWLClassExpression description, OWLClassExpression cls) {\n if (cls.isOWLThing()) {\n return false;\n }\n return (description instanceof OWLNaryBooleanClassExpression && ((OWLNaryBooleanClassExpression) description).getOperands().contains(cls));\n}\n"
|
"public void updated(Object key, Object value) {\n if (_updateType != null) {\n Notification notification = new Notification(_updateType, this, _sequenceNumber++, value.toString());\n for (NotificationDetails n : _notificationDetails) {\n n.getListener().handleNotification(notification, n.ge... |
"public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException {\n Collection collection = submission.getCollection();\n String actionURL = contextPath + \"String_Node_Str\" + collection.getHandle() + \"String_Node_Str\" + knot.getId() + \"String_Nod... |
"private static CategoryDataset createSummaryDataset(List<IndicatorUnit> indicatorUnitList, boolean isCreate) {\n DefaultBoxAndWhiskerCategoryDataset dataset = new DefaultBoxAndWhiskerCategoryDataset();\n if (isCreate) {\n Map<IndicatorEnum, Double> map = new HashMap<IndicatorEnum, Double>();\n for ... |
"public void testNoOpServiceStartStop() {\n RecordingListener listener = new RecordingListener();\n NoOpService service = new NoOpService();\n RecordingListener listener = RecordingListener.record(service);\n assertEquals(State.NEW, service.state());\n assertFalse(service.isRunning());\n assertFalse(s... |
"public void remove(Node node, LinkedList<String> ids) throws RepositoryException {\n for (NodeIterator i = node.getNodes(); i.hasNext(); ) {\n Node child = i.nextNode();\n remove(child, ids);\n }\n for (PropertyIterator i = node.getReferences(); i.hasNext(); ) {\n Property property = i.ne... |
"public Timestamp cast(String src, Class<?> toType, String... args) {\n if (Strings.isBlank(src))\n return null;\n try {\n Date d;\n if (src.length() > 10) {\n d = ((DateFormat) dateTimeFormat.clone()).parse(src);\n } else {\n d = ((DateFormat) dateFormat.clone())... |
"public Object run(ServiceProvisioningEngines serviceProvisioningEngines) throws PropertyVetoException, TransactionFailure {\n ServiceProvisioningEngine serviceProvisioningEngine = serviceProvisioningEngines.createChild(ServiceProvisioningEngine.class);\n serviceProvisioningEngine.setClassName(className);\n se... |
"public int getVisibility() {\n return mVisibility != null ? mVisibility : View.VISIBLE;\n}\n"
|
"public CommandResult execute(GetOrgUnitModels cmd, User user) throws CommandException {\n final ArrayList<OrgUnitModelDTO> orgUnitModelDTOList;\n final ProjectModelStatus[] status = cmd.getStatus();\n Query query;\n if (status == null) {\n query = em.createQuery(\"String_Node_Str\");\n query.... |
"public static HashMap<Action, IntMap> parseSign(Sign sign, Minecart cart, Direction direction) {\n log.info(\"String_Node_Str\");\n Bukkit.getServer().broadcastMessage(\"String_Node_Str\" + direction.toString());\n Action oldAction = Action.NULL;\n HashMap<Action, IntMap> returnData = new HashMap<Action, I... |
"protected void drawText(String text, float textX, float textY, float baseline, float width, float height, TextStyle textStyle) {\n writer.drawText(text, textX, textY, width + 1f, height, textStyle.getFontInfo(), textStyle.getColor(), textStyle.isRtl());\n}\n"
|
"public boolean keyguardIsShowingTq() {\n return mKeyguardMediator.isShowingAndNotHidden();\n}\n"
|
"public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {\n mainActivity.runOnUiThread(new Runnable() {\n public void run() {\n mainActivity.showWebview();\n }\n });\n if (!mainActivity.isConnected()) {\n ((LeanWebView) view).loadUrlDirec... |
"public Map<Integer, Float> toSignal2Noise(IIDTypeMapper<Integer, Integer> dim2primary) {\n LinkedHashMap<Integer, Float> r = new LinkedHashMap<>();\n List<Entry<Integer, Float>> entrySet = new ArrayList<>(correlation.entrySet());\n Collections.sort(entrySet, new Comparator<Entry<Integer, Float>>() {\n ... |
"public void scheduleEvents() throws IllegalActionException {\n ERGController controller = (ERGController) getContainer();\n ERGDirector director = controller.director;\n List<SchedulingRelation> schedules = new LinkedList<SchedulingRelation>(preemptiveTransitionList());\n schedules.addAll(nonpreemptiveTran... |
"public DroneAttribute getAttribute(String attributeType) {\n if (drone == null)\n return null;\n switch(attributeType) {\n case AttributeType.FOLLOW_STATE:\n return CommonApiUtils.getFollowState(followMe);\n case AttributeType.CAMERA:\n return CommonApiUtils.getCameraPr... |
"public void run() {\n try {\n updatePostObject(false);\n } catch (IllegalEditorStateException e) {\n AppLog.e(T.EDITOR, \"String_Node_Str\");\n return;\n }\n savePostToDb();\n if (listener != null) {\n listener.onPostSave();\n }\n}\n"
|
"private void initLocation(ViewGroup rootView) {\n if (!mPost.supportsLocation())\n return;\n View locationRootView = ((ViewStub) rootView.findViewById(R.id.stub_post_location_settings)).inflate();\n TextView locationLabel = ((TextView) locationRootView.findViewById(R.id.locationLabel));\n locationLa... |
"public void run() {\n CreatePatternWizard fileWizard = new CreatePatternWizard(folder, type) {\n\n public void dispose() {\n activeCount = 0;\n super.dispose();\n }\n };\n WizardDialog dialog = new WizardDialog(Display.getDefault().getActiveShell(), fileWizard) {\n p... |
"public void onBlogChanged() {\n super.onBlogChanged();\n stopStatsService();\n FragmentManager fm = getSupportFragmentManager();\n FragmentTransaction ft = fm.beginTransaction();\n StatsAbsViewFragment fragment;\n fragment = StatsAbsViewFragment.newInstance(StatsViewType.VISITORS_AND_VIEWS);\n ft.... |
"public static Range normalizeCaretPosition(Range oldCaretPosition) {\n Range newCaretPos = oldCaretPosition.cloneRange();\n if (oldCaretPosition.isCollapsed()) {\n newCaretPos = oldCaretPosition.cloneRange();\n if (isNonEmptyTextNode(oldCaretPosition.getStartContainer()) && oldCaretPosition.getStar... |
"public Metric<?> createInstance(MetricConfiguration config) {\n return createAmbiguityMetric();\n}\n"
|
"public CElement complexType(XSComplexType type) {\n CElement ci = allow(type, type.getName());\n if (ci != null)\n return ci;\n BindInfo bi = builder.getBindInfo(type);\n if (type.isGlobal()) {\n QName tagName = null;\n String className = deriveName(type);\n if (getGlobalBinding... |
"public void testZSS441() {\n Book workbook = Util.loadBook(this, \"String_Node_Str\");\n Sheet sheet = workbook.getSheet(\"String_Node_Str\");\n Range sumResult = Ranges.range(sheet, \"String_Node_Str\");\n assertEquals(11, sumResult.getCellData().getDoubleValue().intValue());\n sumResult = Ranges.range... |
"public boolean removeRole(String name) {\n return false;\n}\n"
|
"public String createURI(String iPattern) {\n String uri = iPattern;\n if (uri == null)\n uri = this.pattern;\n if (uri == null) {\n uri = IBirtConstants.VIEWER_FRAMESET;\n if (renderReportlet)\n uri = IBirtConstants.VIEWER_RUN;\n }\n }\n boolean usingFrameset = IBi... |
"public static String getHadoopConfigurationValue(Loader loader, String hadoopConfigurationFile, String configurationToGet) {\n String hadoopConfDir = RemotingUtil.getHadoopConfigurationDirPath(loader);\n String destinationReceiveDir = copyAndGetConfigurationFilePath(loader, hadoopConfDir, hadoopConfigurationFile... |
"public Location teleport(Entity entity, V10Location locTo, Vector vector) {\n if (entity == null || entity.isDead() || blockedEntities.contains(entity))\n return;\n Region regionTo = plugin.regionManager.getRegion(locTo);\n Portal portal = plugin.portalManager.insideBlocks.get(locTo);\n if (portal =... |
"public void afterComponentAttached(Component comp, Page page) {\n if (comp.getDesktop() != null) {\n final Binder selfBinder = BinderUtil.getBinder(comp);\n if (selfBinder == null) {\n final Binder binder = (Binder) comp.getAttribute(BinderImpl.BINDER, true);\n if (binder != null... |
"public List<Route> list() {\n List<Route> routeList = new LinkedList<Route>();\n Route route = new Route();\n route.setTitle(\"String_Node_Str\");\n User user = new User();\n user.setUserName(\"String_Node_Str\");\n route.setCreatedBy(user);\n route.setDescription(\"String_Node_Str\");\n Place ... |
"protected void removeRoomView(RoomWithAView roomView) {\n chatRooms.remove(roomView.getID());\n}\n"
|
"public void addOrUpdateItem(Item item, boolean fromMigration) {\n if (!loaded) {\n loadRelations();\n }\n ProcessType processType = null;\n if (item instanceof ProcessItem) {\n processType = ((ProcessItem) item).getProcess();\n }\n if (item instanceof JobletProcessItem) {\n proce... |
"public ArrayList<String[]> getSmbList() {\n SQLiteDatabase sqLiteDatabase = getReadableDatabase();\n Cursor cursor = sqLiteDatabase.query(getTableForOperation(Operation.SMB), null, null, null, null, null, null);\n boolean hasNext = cursor.moveToFirst();\n ArrayList<String[]> row = new ArrayList<>();\n t... |
"private void saveData() {\n for (final EditorPage<?> editor : pages) {\n editor.saveData();\n }\n updatePageState();\n model.setCloseable(false);\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.