content stringlengths 40 137k |
|---|
"protected void updateBanner() {\n final Plus1Banner banner = getBanner();\n view.post(new Runnable() {\n public void run() {\n view.setBanner(banner);\n }\n } catch (Exception e) {\n Log.e(getClass().getName(), \"String_Node_Str\" + e.getMessage());\n }\n}\n"
|
"protected boolean shouldAcceptContainer(Atom atom) {\n return QtMetadataDirectory._tagIntegerMap.containsKey(atom.type) || atom.type.equals(QtContainerTypes.ATOM_METADATA_LIST);\n}\n"
|
"public ResourceSet estimateResourceConsumption(Executor executor) {\n if (getContext(executor).isRemotable(getMnemonic(), true)) {\n return ResourceSet.ZERO;\n }\n return LOCAL_RESOURCES;\n}\n"
|
"public void addJwtSsoCookiesToResponse(Subject subject, HttpServletRequest req, HttpServletResponse resp) {\n String cookieByteString = JwtSSOTokenHelper.getJwtSSOToken(subject);\n if (cookieByteString != null) {\n String testString = getJwtSsoTokenFromCookies(req, getJwtCookieName());\n boolean co... |
"public void processComplexElement() throws SAXException {\n getEvents().remove(0);\n workingUnmarshalRecord = new XMLBinaryAttachmentHandler(this.getParent(), nodeValue, mapping, converter, isCollection);\n executeEvents(workingUnmarshalRecord);\n}\n"
|
"private void createInputLoopTable(TreeNode sourceNode, OutputTreeNode targetOutputNode) {\n EditPartViewer viewer = targetEditPart.getViewer();\n if (viewer instanceof XmlMapGraphicViewer) {\n InputLoopTableUtil.addSourceLoopToInputLoopTable(sourceNode, targetOutputNode, ((XmlMapGraphicViewer) viewer).get... |
"private void onUpdatePreview(UpdatePreviewEvent event) {\n if (templateColumn == null)\n return;\n List<Pair<Integer, BrickColumn>> added;\n if (preview == null) {\n int index = destroyTemplate();\n BrickColumnManager bcm = stratomex.getBrickColumnManager();\n BrickColumn left = in... |
"protected void updateLine() {\n if (root == null) {\n return;\n }\n Iterator iter = root.getChildren();\n int height = root.getHeight();\n int lineHeight = ((PDFBlockStackingLM) parent).getLineHeight();\n while (iter.hasNext()) {\n AbstractArea child = (AbstractArea) iter.next();\n ... |
"public void encodeEnd(FacesContext context, UIComponent component) throws IOException {\n if (!component.isRendered()) {\n return;\n }\n DataTable dataTable = (DataTable) component;\n Map<DataTablePropertyType, Object> dataTableProperties = dataTable.getDataTableProperties();\n Integer page = 0;\... |
"private static String constructRequestURL(OAuthRequest request) throws OAuthSignatureException {\n URL url;\n try {\n URL url = request.getRequestURL();\n if (url == null)\n throw new OAuthSignatureException();\n StringBuffer buf = new StringBuffer(url.getProtocol()).append(\"Stri... |
"public void testRootForSourceFile() throws IOException {\n File testFile = openFile(\"String_Node_Str\" + File.separator + \"String_Node_Str\");\n IProgramElement node = manager.getHierarchy().findElementForSourceFile(testFile.getAbsolutePath());\n assertTrue(\"String_Node_Str\", node != null);\n String ch... |
"public EObject getContainer(Node node) {\n short type = node.getNodeType();\n switch(type) {\n case Node.ELEMENT_NODE:\n {\n Object o = nodeToObject.get(node);\n if (o != null && o instanceof EObject) {\n return ((EObject) o).eContainer();\n ... |
"public List<Member> getRegisteredMembers(String topic) {\n List<Member> ret = new ArrayList<>();\n for (Member member : map.keySet()) {\n Map<String, List<Registration>> allRegs = map.get(member);\n if (allRegs != null) {\n for (String key : allRegs.keySet()) {\n if (key.e... |
"public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, AbstractSession session, NamespaceResolver namespaceResolver) {\n if (xmlCompositeDirectCollectionMapping.isReadOnly()) {\n return false;\n }\n ContainerPolicy cp = getContainerPolicy();\n Object collecti... |
"public Object toMongoObject(MappedField mf, MappedClass mc, Object value) {\n Object mappedValue = value;\n if ((mf != null && (mf.hasAnnotation(Reference.class) || mf.getType().isAssignableFrom(Key.class) || mf.getType().isAssignableFrom(DBRef.class) || (value instanceof Iterable && mf.isMultipleValues() && (mf... |
"protected void map(LongWritable key, SAMRecordWritable value, Context context) throws IOException, InterruptedException {\n SAMRecord sam = value.get();\n try {\n value.get().getSAMString();\n } catch (StringIndexOutOfBoundsException e) {\n Logger.DEBUG(\"String_Node_Str\");\n Logger.DEBU... |
"public static AgentStat merge(AgentStat s1, AgentStat s2) {\n AgentStat latest = s1.getTimestamp() > s2.getTimestamp() ? s1 : s2;\n AgentStat stat = new AgentStat(s1.getAgentId(), latest.getTimestamp());\n stat.setCollectInterval(interval);\n stat.setGcType(latest.getGcType());\n stat.setGcOldCount(late... |
"private List<SAMRecord> createRecords(int count) throws Exception {\n List<SAMRecord> list = new ArrayList<SAMRecord>(count);\n final SAMRecordSetBuilder builder = new SAMRecordSetBuilder();\n if (builder.getHeader().getReadGroups().isEmpty()) {\n throw new Exception(\"String_Node_Str\");\n }\n i... |
"public void initialize(IEmitterServices services) {\n this.services = services;\n this.out = EmitterUtil.getOuputStream(services, REPORT_FILE);\n Object emitterConfig = services.getEmitterConfig().get(\"String_Node_Str\");\n if (emitterConfig != null && emitterConfig instanceof HTMLEmitterConfig) {\n ... |
"public String containerAdd() {\n Container containerEntity = transformContainerToEntityBean(container);\n try {\n containerService.addContainer(containerEntity);\n } catch (Exception e) {\n return INPUT;\n }\n addActionMessage(\"String_Node_Str\");\n return SUCCESS;\n}\n"
|
"public void rollBackToCommittedState() {\n Iterator actors = _actorsFired.iterator();\n while (actors.hasNext()) {\n Actor actor = (Actor) actors.next();\n if (actor instanceof ContinuousStatefulComponent) {\n ((ContinuousStatefulComponent) actor).rollBackToCommittedState();\n } e... |
"public CAstNode visitLabeledStatement(LabeledStatement node, WalkContext arg) {\n CAstNode result = visit(node.getStatement(), arg);\n for (Label label : node.getLabels()) {\n result = Ast.makeNode(CAstNode.LABEL_STMT, visit(label, arg), result);\n arg.cfg().map(prev, result);\n prev = label... |
"public String getAccess() {\n try {\n if (functionTag.getAttributeValue(\"String_Node_Str\") != null) {\n return functionTag.getAttributeValue(\"String_Node_Str\");\n }\n } catch (Exception e) {\n return \"String_Node_Str\";\n }\n}\n"
|
"public String toString() {\n return \"String_Node_Str\" + \"String_Node_Str\" + ip + '\\'' + \"String_Node_Str\" + privatePort + '\\'' + \"String_Node_Str\" + publicPort + '\\'' + \"String_Node_Str\" + type + '\\'' + '}';\n}\n"
|
"public static BinaryAcknowledge fromEncodedMessage(EncodedAISMessage encodedMessage) {\n if (!encodedMessage.isValid())\n throw new InvalidEncodedMessage(encodedMessage);\n if (!encodedMessage.getMessageType().equals(AISMessageType.BinaryAcknowledge))\n throw new UnsupportedMessageType(encodedMessa... |
"public Statement prepareStatement(DatabaseCall call, AbstractSession session, boolean unwrapConnection) throws SQLException {\n Statement statement = null;\n if (call.usesBinding(session) && call.shouldCacheStatement(session)) {\n Map statementCache = getStatementCache();\n synchronized (statementC... |
"public void testNeedExcludeDefaultInclude() {\n final Map<FilterKey, Action> fm = new HashMap<FilterKey, Action>(filterMap);\n fm.put(new FilterKey(\"String_Node_Str\", null), Action.INCLUDE);\n final FilterUtils f = new FilterUtils(false, fm);\n f.setLogger(new TestUtils.TestLogger());\n assertFalse(f.... |
"private DavResource processRepositoryGroup(final DavServletRequest request, ArchivaDavResourceLocator archivaLocator, List<String> repositories, String activePrincipal, List<String> resourcesInAbsolutePath, RepositoryGroupConfiguration repoGroupConfig) throws DavException {\n DavResource resource = null;\n List<... |
"private void startElementInDependency(Attributes attributes) {\n ExtendedBuffer buffer = new ExtendedBuffer(getContext());\n buffers.push(buffer);\n confAttributeBuffers.push(buffer);\n buffer.setDefaultPrint(attributes.getValue(\"String_Node_Str\") == null || attributes.getValue(\"String_Node_Str\").trim(... |
"public boolean onOptionsItemSelected(MenuItem item) {\n switch(item.getItemId()) {\n case R.id.refresh:\n mMultiView.setViewState(MultiStateView.VIEW_STATE_LOADING);\n fetchNotifications();\n break;\n }\n return super.onOptionsItemSelected(item);\n}\n"
|
"synchronized void setConnectionInfo(String connInfo) {\n if (connectionInfo != null) {\n return;\n }\n if (slaveStarted)\n return;\n connectionInfo = connInfo;\n startSlaveIfReady();\n}\n"
|
"private String getSwagger2docUsingSwagger12RegistryResources(Tenant tenant, String swagger12location, API api) throws MalformedURLException, ParseException, RegistryException, UserStoreException {\n log.debug(\"String_Node_Str\");\n JSONParser parser = new JSONParser();\n Object rawResource = registryService.... |
"public void runCommand(CommandSender sender, List<String> args) {\n if (args.size() == 1) {\n if (args.get(0).equalsIgnoreCase(\"String_Node_Str\")) {\n String[] allProps = PortalConfigProperty.getAllValues().split(\"String_Node_Str\");\n String currentvals = \"String_Node_Str\";\n ... |
"public V getAndReplace(K key, V value) {\n ensureOpen();\n if (value == null) {\n throw new NullPointerException(\"String_Node_Str\" + key);\n }\n long now = System.currentTimeMillis();\n V result;\n lockManager.lock(key);\n try {\n Object internalKey = keyConverter.toInternal(key);\... |
"public synchronized void checkClipboard() {\n SecurityManager sm = System.getSecurityManager();\n try {\n if (sm != null)\n sm.checkSystemClipboardAccess();\n Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard();\n if (cb != null) {\n Transferable t = cb.getC... |
"public boolean checkTrigger(GameEvent event, Game game) {\n if (((ZoneChangeEvent) event).isDiesEvent()) {\n ZoneChangeEvent zEvent = (ZoneChangeEvent) event;\n boolean triggered = false;\n if (zEvent.getTarget().getAttachments() != null && zEvent.getTarget().getAttachments().contains(this.getS... |
"public void testValidateMafiaFamily007() {\n EntityManager em = createEntityManager(MULTI_TENANT_PU);\n em.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n em.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n try {\n clearCache(MULTI_TENANT_PU);\n em.clear();\n MafiaFami... |
"public Schema getInputSchema() {\n return inputSchemas.isEmpty() ? null : inputSchemas.entrySet().iterator().next().getValue();\n}\n"
|
"private boolean isInfoForThisAccessPoint(WifiInfo info) {\n if (isPasspoint() == false && networkId != WifiConfiguration.INVALID_NETWORK_ID) {\n return networkId == info.getNetworkId();\n } else {\n return ssid.equals(removeDoubleQuotes(info.getSSID()));\n }\n}\n"
|
"public boolean act() {\n turnsToCost--;\n if (turnsToCost <= 0) {\n charge--;\n if (charge < 0) {\n charge = 0;\n detach();\n GLog.w(Messages.get(this, \"String_Node_Str\"));\n ((Hero) target).interrupt();\n } else {\n int lvlDiffFromTar... |
"public synchronized void initGLCanvasUser() {\n if (this.refGLCanvas != null) {\n refGeneralManager.getSingelton().logMsg(\"String_Node_Str\" + iUniqueId + \"String_Node_Str\" + this.getClass().toString(), LoggerType.STATUS);\n if (vecGLCanvasUser.isEmpty()) {\n refGeneralManager.getSingelt... |
"public String createEntity(EntityReference ref, Object entity, Map<String, Object> params) {\n System.out.println(\"String_Node_Str\");\n String result = \"String_Node_Str\";\n Map<String, Object> inputVar = (HashMap) entity;\n String action = \"String_Node_Str\";\n String function = \"String_Node_Str\"... |
"public static void main(String[] args) throws IOException {\n LogKinectDataApp app = new LogKinectDataApp(30, true);\n app.process();\n}\n"
|
"public void performAction() {\n FileSet selectedFiles;\n selectedFiles = mainFrame.getActiveTable().getSelectedFiles();\n if (selectedFiles.size() == 0)\n return;\n if (selectedFiles.getBaseFolder().getURL().getScheme().equals(FileProtocols.FILE) && (selectedFiles.getBaseFolder().getTopAncestor() in... |
"public void log(LogRecord logRecord) {\n logRecord.setMessage(\"String_Node_Str\" + name + \"String_Node_Str\" + TextFormat.consoleFormat(logRecord.getMessage()));\n super.log(logRecord);\n}\n"
|
"public boolean matches(ItemStack stack) {\n if (stacks.size() == 0 || !hasFilter()) {\n return true;\n }\n for (ItemStack s : stacks) {\n if (StackUtil.isCraftingEquivalent(s, stack, true)) {\n return true;\n }\n }\n return false;\n}\n"
|
"public void waitTillFinished(AllocationPoint point) {\n if (point.getLastWriteEvent() != null) {\n point.getLastWriteEvent().synchronize();\n }\n}\n"
|
"public void basicTest() throws Exception {\n String htmlSource = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n HTMLDocumentImpl doc = loadPage(htmlSource);\n}\n"
|
"public int read(ByteBuffer outBuf) throws IOException {\n int len = outBuf.remaining();\n if (len == 0) {\n return 0;\n }\n if (len % 8 != 0) {\n throw new Error(\"String_Node_Str\");\n }\n int outPtr = outBuf.position();\n int outEnd = outPtr + len;\n ByteBuffer inBuf = this.inne... |
"public UnitOfWork rollback() {\n active(session, trx -> {\n log.debug(\"String_Node_Str\", oid(session), oid(trx));\n trx.rollback();\n }, trx -> log.warn(\"String_Node_Str\", oid(session), oid(trx)));\n return this;\n}\n"
|
"protected double[] _evaluateLoopFunction(double[] x) throws IllegalActionException {\n int iRec = 0;\n for (IOPort port : _breakVariables) {\n Receiver[][] receivers = port.getReceivers();\n for (Receiver[] receivers2 : receivers) {\n for (Receiver receiver : receivers2) {\n ... |
"private DataSource constructDataSource(DbConnectionSettings aSettings) throws Exception {\n try {\n Context initContext = new InitialContext();\n DataSource ds;\n try {\n ds = (DataSource) initContext.lookup(aSettings.getUrl());\n } catch (javax.naming.NamingException ex) {\n ... |
"final public String printCurrentState(long now) {\n buildWorkingProcs();\n StringWriter sw = new StringWriter();\n PrintWriter pw = new FastPrintWriter(sw, false, 1024);\n pw.print(\"String_Node_Str\");\n if (now > mLastSampleTime) {\n pw.print(now - mLastSampleTime);\n pw.print(\"String_N... |
"public IDBResource getMasterGlobalDBResource(String clusterName, String tableName) throws DBClusterException {\n DBClusterInfo dbClusterInfo = this.dbClusterInfoC.find(clusterName);\n if (dbClusterInfo == null) {\n throw new DBClusterException(\"String_Node_Str\" + clusterName);\n }\n DBInfo masterD... |
"protected void onDraw(final Canvas canvas) {\n mPaint.setColor(Color.TRANSPARENT);\n canvas.drawRect(0, 0, getMeasuredWidth(), getMeasuredHeight(), mPaint);\n mPaint.setStyle(Paint.Style.FILL);\n mPaint.setColor(mCircleBackgroundColor);\n canvas.drawCircle(getMeasuredWidth() / 2, getMeasuredHeight() / 2... |
"private static int getSizeFromGenetics(int baseSize, boolean inheritsFromMother, int motherSize, boolean inheritsFromFather, int fatherSize) {\n int variation = 0;\n if (inheritsFromMother && inheritsFromFather) {\n variation = (motherSize + fatherSize) / 2;\n } else if (inheritsFromMother) {\n ... |
"public void onErrorResponse(VolleyError error) {\n AppLog.e(T.STATS, \"String_Node_Str\");\n updateRefreshMap(StatsViewType.CLICKS, -1);\n}\n"
|
"public static synchronized Offset allocateNumericSlot(int size, boolean field) {\n int slot;\n if (size == 16) {\n nextNumericSlot -= 3;\n if ((nextNumericSlot & 1) != 0) {\n nextNumericSlot--;\n numericSlotHole = nextNumericSlot + 4;\n }\n if ((nextNumericSlot &... |
"private void showNotification() {\n Intent phoneIntent = new Intent(this, HfpTestActivity.class);\n PendingIntent phonePIntent = PendingIntent.getActivity(this, 1, phoneIntent, 0);\n Intent acceptIntent = new Intent(this, HFPNotificationService.class);\n acceptIntent.setAction(\"String_Node_Str\");\n Pe... |
"private Application buildCompositeAppStructure(ApplicationContext appCtxt, Map<String, GroupContext> definedGroupCtxts, Map<String, SubscribableInfoContext> subscribableInfoCtxts) throws ApplicationDefinitionException {\n Application application = new Application(appCtxt.getApplicationId());\n application.setTen... |
"public Message doc(String doc, String... type) {\n if (type.length > 0 && !type[0].contains(\"String_Node_Str\") && !type[0].contains(\"String_Node_Str\") && !type[0].contains(\"String_Node_Str\")) {\n LOG.error(\"String_Node_Str\", type[0]);\n if (type.length > 1)\n LOG.error(\"String_Node... |
"private void updateTitle() {\n IEditorInput input = this.getEditorInput();\n TreeObject xobject = (TreeObject) ((XObjectEditorInput) this.getEditorInput()).getModel();\n TreeParent parent = xobject.findServerFolder(xobject.getType());\n String revision = \"String_Node_Str\";\n if (parent != null) {\n ... |
"public void map(PactRecord record, Collector out) throws Exception {\n Tuple inputTuple = record.getField(1, this.inputTuple);\n int year = Integer.parseInt(inputTuple.getStringValueAt(4).substring(0, 4));\n record.setField(1, new PactInteger(year));\n out.collect(record);\n}\n"
|
"public void loadGateways() throws IOException, IntrospectionException, SAXException {\n logger.fine(\"String_Node_Str\");\n ArrayList<Gateway> globalGateways = new ArrayList<Gateway>();\n TreeSet<Gateway> localGateways = new TreeSet<Gateway>();\n HashSet<DeprecatedGateway> deprecatedGateways = new HashSet<... |
"public static String calculateMD5(String data, String key, long timestamp, String secret) {\n String signature = data + key + timestamp + secret;\n String result = DigestUtils.md5Hex(signature);\n return result;\n}\n"
|
"public int injectItem(ItemStack stack, boolean doAdd, EnumFacing from, EnumColor color) {\n if (doAdd) {\n Vec3 vec = Utils.convertMiddle(getPos()).add(Utils.convert(side, 0.2));\n TravelingItem item = TravelingItem.make(vec, stack);\n ((PipeTransportItems) ((Pipe<?>) getPipe().getPipe()).trans... |
"public JadeNode extractDraftSubtreeForTipNodes(Iterable<Node> tips) {\n Map<Node, ArrayList<Node>> treeTipRootPathMap = getTreeTipRootPathMap(tips);\n HashMap<Node, JadeNode> graphNodeTreeNodeMap = new HashMap<Node, JadeNode>();\n HashMap<JadeNode, Node> treeNodeGraphNodeMap = new HashMap<JadeNode, Node>();\n... |
"public void test() {\n SourceFile file = PHPAstScanner.scanSingleFile(TestUtils.getCheckFile(\"String_Node_Str\"), new NonEmptyCaseWithoutBreakCheck());\n checkMessagesVerifier.verify(file.getCheckMessages()).next().atLine(5).withMessage(\"String_Node_Str\").next().atLine(7).next().atLine(17).noMore();\n}\n"
|
"private static Domain setDataFilterPattern(final Collection<Domain> dataFilters, String type, String tablePattern) {\n RegularExpression tableFilter = BooleanExpressionHelper.createRegularExpression(null, tablePattern);\n for (Domain domain : dataFilters) {\n if (!ANALYSIS_DATA_FILTER.equals(domain.getNam... |
"public Object execute(ExecutionEvent event) {\n ISelection sel = HandlerUtil.getCurrentSelection(event);\n if (sel instanceof IStructuredSelection) {\n ISpecTestCasePO specTc = UINodeBP.getSpecTC((IStructuredSelection) sel);\n if (specTc != null) {\n showSpecGUINode(specTc, Constants.TC_... |
"public void filter(Filter filter) {\n filteredList.setPredicate(filter::isSatisfiedBy);\n refreshItems();\n}\n"
|
"protected void onLayout(boolean changed, int left, int top, int right, int bottom) {\n super.onLayout(changed, left, top, right, bottom);\n if (changed && canLoadImage() && mPicassoHandler != null && !mPicassoHandler.isStarted()) {\n loadUrlImmediate();\n }\n}\n"
|
"public boolean equals(IType type) {\n if (this.upperBound != null) {\n if (!this.upperBound.isSuperTypeOf(type)) {\n return false;\n }\n }\n if (this.lowerBound != null) {\n if (!type.isSuperTypeOf(this.lowerBound)) {\n return false;\n }\n }\n return !ty... |
"public void testChunkedEncode() throws Exception {\n final EmbeddedChannel channel = new EmbeddedChannel(new GelfMessageChunkEncoder());\n final String largeMessage = largeMessage(1500);\n channel.writeOutbound(Unpooled.wrappedBuffer(largeMessage.getBytes(StandardCharsets.US_ASCII)));\n final ByteBuf chunk... |
"public boolean isRequestValid(UriInfo uri, Map<String, Object> additionalParams) {\n Query query = null;\n ReadQuery dbQuery = null;\n if ((additionalParams != null) && (!additionalParams.isEmpty())) {\n dbQuery = (ReadQuery) additionalParams.get(DB_QUERY);\n query = (Query) additionalParams.get... |
"private synchronized void writeKeyStoreSafe(final char[] masterPassword) throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnrecoverableKeyException {\n final boolean keystoreExists = _keyFile.exists();\n if (keystoreExists) {\n final KeyStore oldStore = _pwdStore;\n ... |
"public int compareTo(L other) {\n int comp = 0;\n if (getXconnector() != null)\n comp = getXconnector().compareTo(other.getXconnector());\n else\n comp = 1;\n if (comp == 0)\n comp = linkParams.size() - ((Set) other.getLinkParams()).size();\n if (comp == 0)\n comp = binds.siz... |
"void computeJavaArrayReturnVarTypes(TypeCast cast, Class<?> methodRetType) throws InternalException {\n if (getReturns().size() == 1) {\n methodRetType = doTypeCast(cast, methodRetType);\n Variable v = getReturns().get(0);\n v.setType(methodRetType);\n } else {\n Class<?>[] types = ge... |
"public void onBackPressed() {\n if (getSupportFragmentManager().getBackStackEntryCount() > 0) {\n int index = getSupportFragmentManager().getBackStackEntryCount() - 1;\n FragmentManager.BackStackEntry backEntry = getSupportFragmentManager().getBackStackEntryAt(index);\n String tag = backEntry.g... |
"public Boolean convertToInternal(String varName, String in) throws PEException {\n String lc = in.trim().toLowerCase();\n if (trueMap.contains(lc))\n return true;\n if (falseMap.contains(lc))\n return false;\n throw new SchemaException(new ErrorInfo(DVEErrors.WRONG_VALUE_FOR_VARIABLE, varName... |
"public void onNext(WriteRequest request) {\n numErrors--;\n if (numErrors >= 0) {\n responseObserver.onError(Status.UNAVAILABLE.asRuntimeException());\n return;\n }\n assertThat(request.getFinishWrite()).isTrue();\n String resourceName = request.getResourceName();\n String dataStr = req... |
"public void ServerStopping(FMLServerStoppingEvent Event) {\n TileEntityCarriageTranslocator.ActiveTranslocatorSets.clear();\n TileEntityCarriageTransduplicator.ActiveTranslocatorSets.clear();\n}\n"
|
"public CalculationResultMap evaluate(Collection<Integer> cohort, Map<String, Object> parameterValues, PatientCalculationContext context) {\n Program mchcsProgram = MetadataUtils.existing(Program.class, MchMetadata._Program.MCHCS);\n Set<Integer> alive = Filters.alive(cohort, context);\n Set<Integer> inMchcsPr... |
"private boolean requestAppList() {\n URL urlToTry = getURLToTry();\n if (urlToTry != null) {\n final View processingRequestView = findViewById(R.id.processing_request_view);\n String username = getUsernameForAuth();\n String password = ((EditText) findViewById(R.id.edit_password)).getText().... |
"public static boolean isValidEmail(String email) {\n return (isValidString(email) && hasNoSpace(email) && email.contains(\"String_Node_Str\"));\n}\n"
|
"public void initialise() {\n renderingConfig = config.getRendering();\n ssaoShader = worldRenderer.getMaterial(\"String_Node_Str\");\n ssaoBlurredShader = worldRenderer.getMaterial(\"String_Node_Str\");\n requireFBO(DefaultDynamicFBOs.READ_ONLY_GBUFFER.getConfig(), dynamicFBOsManager);\n requireFBO(new ... |
"public boolean performFinish() {\n Pattern pattern = PatternFactory.eINSTANCE.createPattern();\n String name = AbstractWizardPage.getConnectionParams().getName();\n pattern.setName(name);\n RegularExpression regularExpr = PatternFactory.eINSTANCE.createRegularExpression();\n Expression expression = Core... |
"public int getSize() {\n if (key == null || columns == null) {\n return 0;\n int size = key.length;\n for (int i = 0; i < columns.length; i++) {\n size += columns[i].length + 8;\n }\n return size;\n}\n"
|
"private void updateResources(ContactJabberImpl contact, boolean removeUnavailable) {\n if (!contact.isResolved() || (contact instanceof VolatileContactJabberImpl && ((VolatileContactJabberImpl) contact).isPrivateMessagingContact()))\n return;\n Map<String, ContactResourceJabberImpl> resources = contact.ge... |
"public JavaRDD<U> call(JavaRDD<T> data, Time batchTime) throws Exception {\n SparkExecutionPluginContext sparkPluginContext = new SparkStreamingExecutionContext(sec, sparkContext, stageName, batchTime.milliseconds());\n data = data.map(new CountingFunction<T>(stageName, sec.getMetrics(), \"String_Node_Str\"));\n... |
"public ArrayList<DownloadLink> decryptIt(CryptedLink param, ProgressController progress) throws Exception {\n ArrayList<DownloadLink> decryptedLinks = new ArrayList<DownloadLink>();\n for (int retry = 0; retry < 5; retry++) {\n LoadImage li = LoadImage.loadFile(\"String_Node_Str\");\n li.baseUrl = ... |
"public CoordinateTransformMesh getCoordinateTransformMesh() throws IllegalStateException {\n if (!hasWidthAndHeightDefined()) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n final CoordinateTransformList<CoordinateTransform> ctList = getTransformList();\n return new CoordinateTransfo... |
"public void layout(IRowSetter setter, float x, float w, int selectedIndex) {\n float y = 0;\n for (int r = 0; r < offset; ++r) setter.set(order[r], x, 0, w, 0, false);\n for (int i = unused.nextSetBit(0); i >= 0; i = unused.nextSetBit(i + 1)) {\n setter.set(i, x, h, w, 0, i == selectedIndex);\n }\n ... |
"public void singleInfo(final Info2 iInfo) {\n if (iInfo.getUrl().equals(iLocation)) {\n return;\n }\n tChildren.put(iInfo.getPath(), iInfo.getLastChangedRev());\n}\n"
|
"protected boolean visit(IResourceDelta delta, Collection<ResourceNode> pathToRefresh) {\n IResource resource = delta.getResource();\n if (resource.getType() == IResource.ROOT) {\n return true;\n }\n try {\n if (resource.getType() == IResource.PROJECT) {\n if (resource.getProject().... |
"public static long getLong2(Bundle b) {\n return b.getLong(LONG_ARG2);\n}\n"
|
"static Handler tryPage(final Handler handler, final Logger log) {\n return (req, rsp, ex) -> Try.run(() -> handler.handle(req, rsp, ex)).onFailure(cause -> log.debug(\"String_Node_Str\", cause));\n}\n"
|
"private void checkAllSubtypesOfObject(TreeLogger logger, TypePath parent, ProblemReport problems) {\n if (alreadyCheckedObject) {\n return;\n }\n alreadyCheckedObject = true;\n TreeLogger localLogger = logger.branch(TreeLogger.WARN, \"String_Node_Str\", null);\n JClassType[] allTypes = typeOracle... |
"private void init(final Context context) {\n setCanceledOnTouchOutside(cancelOnTouchOutside);\n final ClosableSlidingLayout mDialogView = (ClosableSlidingLayout) View.inflate(context, R.layout.bottom_sheet_dialog, null);\n setContentView(mDialogView);\n if (!cancelOnSwipeDown)\n mDialogView.swipeabl... |
"private ReadWriteListener.ReadWriteEvent disableNotify_private(UUID serviceUuid, UUID characteristicUuid, Double forceReadTimeout, DescriptorFilter descriptorFilter, ReadWriteListener listener) {\n final ReadWriteEvent earlyOutResult = serviceMngr_device().getEarlyOutEvent(serviceUuid, characteristicUuid, Uuids.INV... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.