content stringlengths 40 137k |
|---|
"void resolveColumns(CubeQueryContext cubeql) throws LensException {\n ColumnResolver.getColsForTree(cubeql, finalAST, this, false);\n}\n"
|
"public void redraw(Writer out) throws IOException {\n final Execution exec = Executions.getCurrent();\n if (!HtmlPageRenders.isDirectContent(exec)) {\n super.redraw(out);\n return;\n }\n final boolean idRequired = isIdRequired();\n if (idRequired) {\n out.write(\"String_Node_Str\");... |
"public boolean createInstanceAndStartDependencyAtStartup(Group group, List<String> parentInstanceIds) throws TopologyInConsistentException {\n boolean initialStartup = true;\n List<String> instanceIdsToStart = new ArrayList<String>();\n for (String parentInstanceId : parentInstanceIds) {\n Instance par... |
"protected void reportConnected(boolean ready) {\n Util.runOnUI(new Runnable() {\n public void run() {\n if (listener != null)\n listener.onConnectionSuccess(DeviceService.this);\n }\n });\n }\n}\n"
|
"private boolean createFilterObject() {\n boolean loaded = true;\n filterObject = new BoardsFilter();\n Dtos.FilterDataDto filterDataDto = filterObject.loadFilterData();\n if (filterDataDto == null) {\n filterDataDto = DtoFactory.filterDataDto();\n filterDataDto.setFullTextFilter(DtoFactory.fu... |
"private void queryDistinct(UAVHttpMessage data) {\n try {\n String ipport = data.getRequest(\"String_Node_Str\");\n AggregationBuilder agg = AggregationBuilders.terms(\"String_Node_Str\").field(\"String_Node_Str\").size(1000).order(Terms.Order.term(false)).subAggregation(AggregationBuilders.terms(\"St... |
"public void binderDied() {\n if (localLOGV)\n Slog.d(TAG, \"String_Node_Str\");\n synchronized (mListeners) {\n mListeners.remove(this);\n mToken.unlinkToDeath(this, 0);\n for (int sensor = 0; sensor < 32 && mSensors != 0; sensor++) {\n if (hasSensor(sensor)) {\n ... |
"public void shouldExecuteReturnTheSameSolutionIfTheListContainsOneSolution() {\n NaryTournamentSelection<DoubleSolution> selection = new NaryTournamentSelection<DoubleSolution>(1, mock(Comparator.class));\n DoubleSolution solution = mock(DoubleSolution.class);\n List<DoubleSolution> population = new ArrayList... |
"public ObjectBuilder<T> createObjectBuilder(QueryBuilder<?, ?> queryBuilder, Map<String, Object> optionalParameters, boolean isSubview) {\n boolean hasOffset = tupleOffset != 0;\n ObjectBuilder<T> result;\n result = new ViewTypeObjectBuilder<T>(this);\n if (hasOffset || isSubview || hasIndexedCollections |... |
"public void handle(Message<JsonObject> res) {\n if (\"String_Node_Str\".equals(res.body().getString(\"String_Node_Str\"))) {\n JsonObject r = res.body().getObject(\"String_Node_Str\");\n List<String> recipients = new ArrayList<>();\n for (String attr : r.getFieldNames()) {\n String i... |
"public void simpleAggregateTest() throws VerdictDBException {\n String sql = \"String_Node_Str\";\n NonValidatingSQLParser sqlToRelation = new NonValidatingSQLParser();\n SelectQuery selectQuery = (SelectQuery) sqlToRelation.toRelation(sql);\n QueryExecutionPlan queryExecutionPlan = new QueryExecutionPlan(... |
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.profile);\n final TextView textViewMemberName = (TextView) findViewById(R.id.profile_textview_member_name);\n final ImageView imageViewPicture = (ImageView) findViewById(R.id.profile_imageview_... |
"private VMInstanceVO orchestrateReConfigureVm(String vmUuid, ServiceOffering oldServiceOffering, boolean reconfiguringOnExistingHost) throws ResourceUnavailableException, ConcurrentOperationException {\n VMInstanceVO vm = _vmDao.findByUuid(vmUuid);\n long newServiceofferingId = vm.getServiceOfferingId();\n Se... |
"protected String formatRule(String rule, String source) {\n String replace = rule;\n if (source != null && !source.isEmpty()) {\n replace = rule.replace(\"String_Node_Str\", source);\n replace = replace.replace(\"String_Node_Str\", source);\n }\n return replace;\n}\n"
|
"private void prepareLevels(QueryDefinition query, TabularHierarchyHandle hierHandle, List metaList, String dimName) throws AdapterException {\n try {\n List levels = hierHandle.getContents(TabularHierarchyHandle.LEVELS_PROP);\n for (int j = 0; j < levels.size(); j++) {\n TabularLevelHandle ... |
"public int locate() {\n alphabet();\n scoreTextLength = Math.max(text.length(), Bitap.minLength);\n scoreTextLength = Math.min(scoreTextLength, Bitap.maxLength);\n double scoreThreshold = Bitap.threshold;\n int bestLoc = text.indexOf(pattern, loc);\n if (bestLoc != -1) {\n scoreThreshold = Mat... |
"public void testDateDisplaySpecial3(Book book) {\n Sheet sheet = book.getSheetAt(0);\n Range r;\n Setup.setZssLocale(Locale.US);\n r = Ranges.range(sheet, \"String_Node_Str\");\n r.setCellEditText(\"String_Node_Str\");\n Assert.assertEquals(\"String_Node_Str\", r.getCellDataFormat());\n Assert.ass... |
"public BufferedImage getImage(TimelineModel model, int width, int height) {\n double newMin = model.getCustomMin();\n double newMax = model.getCustomMax();\n TickParameters.TickType timeFormat = model.getTimeFormat().equals(TimeFormat.DOUBLE) ? TickParameters.TickType.DOUBLE : TickParameters.TickType.DATE;\n ... |
"public void execute(JobExecutionContext context) throws JobExecutionException {\n SchedulerContext schedulerContext = null;\n try {\n schedulerContext = context.getScheduler().getContext();\n initProperties(schedulerContext);\n WebTarget target = client.target(properties.get(URL));\n ... |
"public Structure clone() {\n Structure n = new StructureImpl();\n n.setPDBCode(getPDBCode());\n n.setName(getName());\n n.setPDBHeader(pdbHeader);\n n.setDBRefs(this.getDBRefs());\n n.setConnections(getConnections());\n n.setSites(getSites());\n n.setCrystallographicInfo(getCrystallographicInfo... |
"public List<Row> doWithSearcher(org.apache.lucene.search.IndexSearcher searcher) throws Exception {\n Utils.SimpleTimer timer = Utils.getStartedTimer(logger);\n List<Row> results;\n if (search == null) {\n results = new ArrayList<>();\n } else {\n Utils.SimpleTimer timer2 = Utils.getStartedTi... |
"public void removePathParam(int index) {\n if (index > -1 && index < pathParts.size()) {\n pathParts.remove(index);\n }\n}\n"
|
"public void testXmlSeeAlsoSamePackage() {\n if (shouldGenerateSchema) {\n outputResolver = generateSchema(CONTEXT_PATH, PATH, 2);\n shouldGenerateSchema = false;\n }\n String messages = \"String_Node_Str\";\n String src = PATH + \"String_Node_Str\";\n String result = validateAgainstSchema(... |
"public void show() {\n Configuration config = parent.getConfiguration();\n int size_height_label = 24;\n int start_label_left = 109;\n int start_label_right = 265;\n int end_label_right = 490;\n int n = 10;\n int sep = 45;\n ImageIcon image = new ImageIcon(getClass().getResource(\"String_Node_S... |
"public static Set<GroupDTO> getGroupsForUser(String baseUrl, String userId, boolean members, CredentialManager cm) throws IOException, JAXBException {\n String urlStr = \"String_Node_Str\" + members;\n urlStr += \"String_Node_Str\" + URLEncoder.encode(userId, \"String_Node_Str\");\n return getGroups(baseUrl, ... |
"public void afterProcessing(CompilationUnitDeclaration unit, int unitIndex) {\n CompilationAndWeavingContext.leavingPhase(processingToken);\n eWorld.finishedCompilationUnit(unit);\n InterimCompilationResult intRes = new InterimCompilationResult(unit.compilationResult, outputFileNameProvider);\n if (unit.co... |
"public ARPanel withReduction(Aggregator<?, ?> r) {\n ARPanel p = new ARPanel(r, display.transfer(), dataset, renderer);\n p.viewTransformRef = this.viewTransformRef;\n p.inverseViewTransformRef = this.inverseViewTransformRef;\n return p;\n}\n"
|
"private void doDeclareParents(DeclareParents declareParents, SourceTypeBinding sourceType) {\n List newParents = declareParents.findMatchingNewParents(factory.fromEclipse(sourceType));\n if (!newParents.isEmpty()) {\n for (Iterator i = newParents.iterator(); i.hasNext(); ) {\n ResolvedTypeX par... |
"public static boolean validateDomainNameIsValidIdna(String domainName, boolean forSearch) {\n if (StringUtils.isBlank(domainName) || !domainName.contains(\"String_Node_Str\")) {\n return false;\n }\n if (domainName.contains(BLANK_IN_DOMAIN)) {\n return false;\n }\n if (StringUtils.contains... |
"public void createIndexTest() throws Exception {\n IndexSettings.Builder indexSettingsBuilder = IndexSettings.newBuilder();\n indexSettingsBuilder.setDefaultSearchField(\"String_Node_Str\");\n indexSettingsBuilder.setDefaultAnalyzer(LMAnalyzer.KEYWORD);\n indexSettingsBuilder.addFieldConfig(FieldConfig.new... |
"public void endElement(String namespaceURI, String localName, String qName) throws SAXException {\n XMLField xmlField = null;\n if (isCollection) {\n xmlField = (XMLField) ((XMLBinaryDataCollectionMapping) mapping).getField();\n } else {\n xmlField = (XMLField) ((XMLBinaryDataMapping) mapping).g... |
"private static void logInstanceClosing() {\n String durationString = instanceInformation.getDurationString();\n int commandCount = instanceInformation.getAcceptedCommandCount();\n DungeonLogger.info(\"String_Node_Str\" + durationString + \"String_Node_Str\" + commandCount + \"String_Node_Str\");\n}\n"
|
"public void doNormalTreeRefAnalysis(TreeReference treeRef) throws AnalysisInvalidException {\n addToResult(treeRef.removePredicates());\n}\n"
|
"public boolean removeMulti(Request req) {\n Record record = getRecord(req);\n if (record == null)\n return false;\n boolean removed = false;\n if (req.value == null) {\n removed = true;\n markAsRemoved(record);\n } else {\n if (record.containsValue(req.value)) {\n ... |
"public boolean hasUnder(double amount) {\n return amount > this.getBalance();\n}\n"
|
"public void printPacket(PrintStream out) {\n out.print(\"String_Node_Str\" + sourcePort + \"String_Node_Str\" + destinationPort + \"String_Node_Str\" + Utils.hex8(flags) + \"String_Node_Str\" + Integer.toString(seqNo, 16) + \"String_Node_Str\" + Integer.toString(ackNo, 16));\n if (payload != null) {\n for... |
"public byte[] transImage(BufferedImage image) {\n CenteredImage centeredimage = new CenteredImage(image, getImageWidth());\n int iWidth = (centeredimage.getWidth() + 7) / 8;\n int iHeight = centeredimage.getHeight();\n byte[] bData = new byte[getImageHeader().length + 4 + iWidth * iHeight];\n System.arr... |
"public void afterMarshal(Object source) {\n afterClasses.add(source.getClass());\n}\n"
|
"public SingleSelection addRadiosVertical(final String name, final String i18nLabel, FormItemContainer formLayout, final String[] theKeys, final String[] theValues) {\n SingleSelection ss = new SingleSelectionImpl(name, name, SingleSelectionImpl.createVerticalLayout(null, name)) {\n\n {\n this.keys... |
"private BasicDialog createDialog() {\n final BasicDialog newDialog = new BasicDialog((possibleParent != null) ? possibleParent : new Shell(SWT.SHELL_TRIM), true) {\n protected void handleShellCloseEvent() {\n hide();\n }\n };\n newDialog.getShell().setBackgroundMode(SWT.INHERIT_DEFAUL... |
"public synchronized Endpoint getAnEndpoint() throws InterruptedException {\n while (true) {\n if (getNumHosts() == 0) {\n gWebCache.fetchEndpointsAsync();\n try {\n return getAnEndpointInternal();\n } catch (NoSuchElementException e) {\n }\n wait();\n }\n}... |
"public void testSha384SignatureVerification() throws Exception {\n runTestSignatureVerification(factory.getInstance(true, new PssSignerParameters(privateKey, \"String_Node_Str\", -1)), factory.getInstance(false, new PssSignerParameters(publicKey, \"String_Node_Str\", -1)));\n}\n"
|
"private void setResultOkay() {\n if (_transactionLabel != null) {\n _mbwManager.getMetadataStorage().storeTransactionLabel(_transaction.getId(), _transactionLabel);\n }\n Intent result = new Intent().putExtra(Constants.TRANSACTION_FIAT_VALUE_KEY, _fiatValue).putExtra(Constants.TRANSACTION_HASH_INTENT_K... |
"public void forEach(Function function) {\n if (firstApplied == -1) {\n return;\n }\n this.forEach(function, firstApplied, lastApplied);\n}\n"
|
"public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String code = (String) mListView.getItemAtPosition(position);\n updateButtonAndUIs(code);\n}\n"
|
"public void microphoneData(String data) {\n if (count == VU_COUNT) {\n count = 0;\n volume = Math.round(Math.sqrt(volume) * 100) / 100D;\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n meter.setValue(volume);\n }\n });\n ... |
"public ResponseEntity queryHelp(HttpServletRequest request, HttpServletResponse response) throws DecodeException {\n return super.query(new HelpQueryParam(request));\n}\n"
|
"public static void crossProcessLockRelease() {\n if (fileLock != null) {\n try {\n fileLock.release();\n fileLock = null;\n } catch (final IOException e) {\n throw new TestUtilRuntimeException(e);\n }\n }\n}\n"
|
"private void reuseOrCreatePi(SSAInstruction piCause, int ref) {\n int n = getCurrentInstructionIndex();\n SSACFG.BasicBlock bb = cfg.getBlockForInstruction(n);\n BasicBlock path = getCurrentSuccessor();\n int outNum = shrikeCFG.getNumber(path);\n SSAPiInstruction pi = bb.getPiForRefAndPath(ref, path);\n... |
"public void wipingFileSuccess(String path) {\n successCount++;\n _lsCanvas.setLargeString(l10n.getString(L10nConstants.keys.WIPE_STATUS_WIPING_WORD) + \"String_Node_Str\" + path);\n}\n"
|
"public void implementStep(StepImpl stepImpl) throws Exception {\n List<String> paramTypes = new ArrayList<String>();\n StepValueExtractor stepValueExtractor = new StepValueExtractor();\n StepValueExtractor.StepValue stepValue = stepValueExtractor.getFor(stepImpl.getFirstStepText());\n ArrayList<String> ste... |
"public static void saveChatMessages(Context context, List<QBChatHistoryMessage> messagesList, String dialogId) {\n for (QBChatHistoryMessage historyMessage : messagesList) {\n String messageId = historyMessage.getId();\n String message = historyMessage.getBody();\n int senderId = historyMessage... |
"private void drawYLabels(float xPos, float[] positions) {\n for (int i = 0; i < mYLabels.mEntryCount; i++) {\n String text = Utils.formatNumber(mYLabels.mEntries[i], mYLabels.mDecimals, mSeparateTousands);\n if (!mYLabels.isDrawTopYLabelEntryEnabled() && i >= mYLabels.mEntryCount - 1)\n ret... |
"public void noFallback() throws IOException, GeoIp2Exception {\n WebServiceClient client = new WebServiceClient.Builder(42, \"String_Node_Str\").testTransport(this.transport).locales(Arrays.asList(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\")).build();\n CityIspOrgResponse cio = client.cityIspOr... |
"public void releaseComponents(Collection<String> compNames, boolean waitCompsTermination) {\n List<Future<Void>> compReleaseFutures = new ArrayList<Future<Void>>();\n for (String compName : compNames) {\n ComponentDeactivator deactivator = new ComponentDeactivator(compName);\n executor.submit(deact... |
"public void processBlock(BasicBlockStatement stat, PrimitiveExprsList data, ConstantPool pool) {\n BasicBlock block = stat.getBlock();\n ExprentStack stack = data.getStack();\n List<Exprent> exprlist = data.getLstExprents();\n InstructionSequence seq = block.getSeq();\n for (int i = 0; i < seq.length();... |
"protected void endContainerInPages(IContent content, boolean finished, IContentEmitter emitter, boolean visible) {\n if (currentTableIndex == nestCount && currentTableIndex > 0) {\n for (int i = 0; i < buffers.length - 1; i++) {\n buffers[i].endContainer(content, false, emitter, visible);\n ... |
"public void run() {\n metaContactMoved(evt);\n}\n"
|
"public String toString() {\n return String.format(\"String_Node_Str\", currentName, ((writer != null) ? writer.getContent() : null), lastName, ((lastElementWriter != null) ? lastElementWriter.getContent() : null));\n}\n"
|
"protected void applyStyle(int availWidth, int availHeight) {\n Object rootNode = this.modelNode;\n HTMLElementImpl rootElement;\n boolean isRootBlock;\n if (rootNode instanceof HTMLDocumentImpl) {\n isRootBlock = true;\n HTMLDocumentImpl doc = (HTMLDocumentImpl) rootNode;\n rootElement... |
"public synchronized CompletableFuture<ScribMessage> getFuture() {\n final int ticket = getTicket();\n CompletableFuture<ScribMessage> fut = CompletableFuture.supplyAsync(() -> {\n try {\n ScribMessage m = read(ticket);\n if (m instanceof ScribInterrupt) {\n throw new R... |
"private int[] collectStats(String statsFile, int parentPid, boolean first, int[] curPids, ArrayList<Stats> allProcs) {\n int[] pids = Process.getPids(statsFile, curPids);\n int NP = (pids == null) ? 0 : pids.length;\n int NS = allProcs.size();\n int curStatsIndex = 0;\n for (int i = 0; i < NP; i++) {\n ... |
"public void execute(Hero hero, String action) {\n if (action.equals(AC_STEALTH)) {\n if (!stealthed) {\n if (cooldown <= 0 && charge >= 2 && isEquipped(hero)) {\n stealthed = true;\n hero.spend(1f);\n Sample.INSTANCE.play(Assets.SND_MELD);\n ... |
"public Message copy() {\n return INSTANCE;\n}\n"
|
"final double getDouble(int column) throws SqlException {\n switch(jdbcTypes_[column - 1]) {\n case java.sql.Types.BOOLEAN:\n return agent_.crossConverters_.getDoubleFromBoolean(get_BOOLEAN(column));\n case java.sql.Types.REAL:\n double d = (double) get_FLOAT(column);\n ... |
"public static void init() {\n instantiateBlocks();\n registerBlocks();\n initModDependantBlocks();\n}\n"
|
"public void init() {\n super.init();\n ClientRegistry.bindTileEntitySpecialRenderer(TileEntityGunTurret.class, new RenderGunTurret());\n ClientRegistry.bindTileEntitySpecialRenderer(TileEntityAATurret.class, new RenderAATurret());\n ClientRegistry.bindTileEntitySpecialRenderer(TileEntityRailgun.class, new ... |
"public void gradientProcedureComputesSameWithPrecomputed() {\n int iter = 10;\n rdg = new RandomDataGenerator(new Well19937c(30051977));\n ErfGaussian2DFunction f1 = (ErfGaussian2DFunction) GaussianFunctionFactory.create2D(1, 10, 10, GaussianFunctionFactory.FIT_ERF_FREE_CIRCLE, null);\n ErfGaussian2DFuncti... |
"private MakeAction copy_and_variablize_result_list(Preference pref) {\n if (pref == null)\n return null;\n MakeAction a = new MakeAction();\n a.id = variablize_symbol(pref.id).toRhsValue();\n a.attr = variablize_symbol(pref.attr).toRhsValue();\n a.value = variablize_symbol(pref.value).toRhsValue(... |
"public boolean reset() {\n this.uniqueValueCount = 0L;\n this.distinctValueCount = 0L;\n this.distinctComputed = false;\n this.datePattern = null;\n if (isUsedMapDBMode()) {\n if (checkAllowDrillDown()) {\n clearDrillDownMaps();\n }\n valueToFreqForMapDB = initValueForDBM... |
"public Selection createFromParcel(Parcel in, ClassLoader loader) {\n return new Selection(in.readString(), in.readArrayList(loader));\n}\n"
|
"protected void load(final String group) {\n Boolean loaded = groups.get(group);\n if (loaded == null || !loaded) {\n Object lock = groupLocks.get(group);\n if (lock == null) {\n synchronized (groupLocks) {\n lock = groupLocks.get(group);\n if (lock == null) ... |
"private void createEcosComponent(IEcosComponent component) {\n newLabelAndText(gContainer, \"String_Node_Str\", component.getName());\n newLabelAndText(gContainer, \"String_Node_Str\", component.getAuthor());\n newLabelAndText(gContainer, \"String_Node_Str\", component.getDescription());\n ExpressionType e... |
"protected void readDynamicTextField(DataInputStream in, DynamicTextItemDesign design, short fieldType) throws IOException {\n switch(fieldType) {\n case FIELD_CONTENT_TYPE:\n Expression<String> contentType = readStringExpression(in);\n design.setContentType(contentType);\n br... |
"protected void testDefine(Source xsdSource, DefaultSchemaResolver schemaResolver) {\n schemaResolver.setBaseSchemaLocation(getSchemaLocation());\n List types = ((SDOXSDHelper) xsdHelper).define(xsdSource, schemaResolver);\n log(\"String_Node_Str\");\n List<Type> controlTypes = getControlTypes();\n log(c... |
"private final char[] findBuffer(int needed) {\n if (_allocator != null) {\n return _allocator.allocCharBuffer(BufferRecycler.CHAR_TEXT_BUFFER, needed);\n }\n return new char[Math.max(needed, MIN_SEGMENT_LEN)];\n}\n"
|
"protected String getJMXremoteFilesCommand() {\n String accessFilePath;\n String passwordFilePath;\n String[] options;\n options = settings.getLeafValues(Constants.SETTINGS_COMMON_JMX_ACCESSFILE);\n if (options.length == 0) {\n accessFilePath = Constants.JMX_ACCESS_FILE_PATH_DEFAULT;\n } else {... |
"public void performQuery() {\n try {\n int outputCount = ((MLOutput) method).getOutputCount();\n boolean[] grid = this.panel.getGrid();\n NeuralData input = new BasicNeuralData(grid.length);\n for (int i = 0; i < grid.length; i++) {\n input.setData(i, grid[i] ? 1 : -1);\n ... |
"public Image getImage(Object obj) {\n ModelElement modelElement = null;\n if (obj instanceof ModelElement) {\n modelElement = (ModelElement) obj;\n } else if (obj instanceof ImpactNode) {\n modelElement = ((ImpactNode) obj).getNodeElement();\n } else if (obj instanceof IFile) {\n model... |
"public static RPCRequest decodeRequest(String encodedRequest, Class type) {\n if (encodedRequest == null) {\n throw new NullPointerException(\"String_Node_Str\");\n }\n if (encodedRequest.length() == 0) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n try {\n Serve... |
"public void clearBlocked() {\n if (CommonUIPlugin.isFullyHeadless()) {\n return;\n }\n final Display disp = DisplayUtils.getDisplay();\n disp.syncExec(new Runnable() {\n public void run() {\n Dialog.getBlockedHandler().clearBlocked();\n }\n });\n}\n"
|
"public Response addServiceGroup(CartridgeGroupBean serviceGroupDefinition) throws RestAPIException {\n try {\n StratosApiV41Utils.addServiceGroup(serviceGroupDefinition);\n URI url = uriInfo.getAbsolutePathBuilder().path(serviceGroupDefinition.getName()).build();\n return Response.created(url).... |
"public boolean finish() {\n final TeiidXmlFileImportProcessor processor = new TeiidXmlFileImportProcessor(getFileInfo(), this.getShell());\n UiUtil.runInSwtThread(new Runnable() {\n public void run() {\n processor.execute();\n }\n }, false);\n if (getDesignerProperties() != null) {... |
"public boolean onLongClick(View v) {\n showAppDetails(mChooserListAdapter.resolveInfoForPosition(holder.itemIndices[column], true));\n return true;\n}\n"
|
"public void testSha512SignatureVerification() throws Exception {\n runTest(mockerSha512);\n}\n"
|
"private static void registerExosuitUpgrades() {\n if (Config.enableExosuit) {\n if (Config.enableJetpack) {\n jetpack = new ItemExosuitJetpack().setCreativeTab(Steamcraft.tab).setUnlocalizedName(\"String_Node_Str\").setTextureName(\"String_Node_Str\");\n GameRegistry.registerItem(jetpac... |
"private static PluginClassLoader createPluginClassLoader(final URL[] urls, final ClassLoader parent) {\n if (SECURITY_MANAGER != null) {\n return AccessController.doPrivileged(new PrivilegedAction<PluginLoaderClassLoader>() {\n\n public PluginClassLoader run() {\n return new PluginC... |
"private void performInitialUpdate() {\n if (!NetworkUtils.isNetworkAvailable(this)) {\n return;\n ReaderPostListFragment listFragment = getListFragment();\n final boolean animateRefresh = (listFragment != null && ReaderTagTable.isEmpty());\n if (animateRefresh) {\n listFragment.setIsUpdating(... |
"protected Void impl() throws DockerException {\n WebResource webResource = baseResource.path(String.format(\"String_Node_Str\", containerId));\n try {\n LOGGER.trace(\"String_Node_Str\", webResource);\n Builder builder = webResource.accept(MediaType.APPLICATION_JSON);\n if (startContainerCon... |
"public Identifier xmlToWme(File file) {\n Element root = getRootElement(file);\n xmlPath.pushTag(root.getNodeName());\n Identifier ret = super.fromXml(root);\n xmlPath.popTag();\n return ret;\n}\n"
|
"private void fixupSlop(Query query, DocNumMap docNumMap, Set stopSet) {\n boolean isText = (query instanceof SpanQuery) ? ((SpanQuery) query).getField().equals(\"String_Node_Str\") : false;\n if (query instanceof SpanNearQuery) {\n SpanNearQuery nq = (SpanNearQuery) query;\n int maxSlop = isText ? ... |
"public static CharSequence displayHtmlComment(TextView textView, String content, int maxImageSize) {\n if (textView == null)\n return null;\n if (content == null) {\n textView.setText(null);\n return;\n }\n if (!content.contains(\"String_Node_Str\") && !content.contains(\"String_Node_S... |
"protected void goForwardMonthCalendar(Proxy proxy) throws ParseException {\n panelGridCalendar.removeAll();\n panelGridCalendar.revalidate();\n panelGridCalendar.repaint();\n int i = 0;\n for (WeekDays wd : WeekDays.values()) {\n labelDay[i] = new JLabel(wd.toString(), SwingConstants.CENTER);\n ... |
"public boolean processRequest(RequestEvent requestEvent) {\n Response optionsOK = null;\n try {\n optionsOK = provider.getMessageFactory().createResponse(Response.OK, requestEvent.getRequest());\n Iterator<String> supportedMethods = provider.getSupportedMethods().iterator();\n while (support... |
"void handleRemoveActiveRoutingPath(int path) {\n assertRunOnServiceThread();\n if (isTailOfActivePath(path, getActivePath())) {\n removeAction(RoutingControlAction.class);\n int newPath = mService.portIdToPath(getActivePortId());\n mService.sendCecCommand(HdmiCecMessageBuilder.buildRoutingCh... |
"public void validate(QueryParam queryParam, ValidationResult validationResult) {\n String q = queryParam.getQ();\n String[] splits = StringUtils.split(q, \"String_Node_Str\");\n for (String split : splits) {\n if (2 != StringUtils.indexOf(split, \"String_Node_Str\")) {\n continue;\n }... |
"public Resource<?> apply(ReferencedProperty prop) {\n if (null == prop.propertyValue) {\n return null;\n }\n if (prop.property.isCollectionLike()) {\n throw new IllegalArgumentException(new HttpRequestMethodNotSupportedException(\"String_Node_Str\"));\n } else if (prop.property.isMap()) {\n ... |
"public Token subtract(Token a) throws IllegalActionException {\n if (a instanceof ScalarToken) {\n double tmp = _value - ((ScalarToken) a).doubleValue();\n return new DoubleToken(tmp);\n } else {\n String str = \"String_Node_Str\" + this.getClass().getName();\n str = str + \"String_No... |
"public void onHangingPlace(HangingPlaceEvent event) {\n Block b = event.getBlock().getRelative(event.getBlockFace());\n Location location = BukkitUtil.getLocation(b.getLocation());\n PlotArea area = location.getPlotArea();\n if (area == null) {\n return;\n }\n Player p = event.getPlayer();\n ... |
"public static Class<?> defineClass(ClassLoader classLoader, String className, byte[] classFile) {\n try {\n return (Class<?>) DEFINE_CLASS.invoke(classLoader, className, classFile, 0, classFile.length);\n } catch (Exception ex) {\n throw new RuntimeException(\"String_Node_Str\" + ex.getMessage(), e... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.