idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,488,618 | // init<NEW_LINE>void zkInit() throws Exception {<NEW_LINE>form.appendChild(mainPanel);<NEW_LINE>mainPanel.setStyle("width: 99%; height: 100%; border: none; padding: 0; margin: 0");<NEW_LINE>mainPanel.appendChild(mainLayout);<NEW_LINE>mainLayout.setWidth("100%");<NEW_LINE>mainLayout.setHeight("100%");<NEW_LINE>paramete... | .getCtx(), "Product")); |
1,315,993 | public MediaList forAlbumList(AlbumListType albumListType, int offset, int count, String username, HttpServletRequest request) {<NEW_LINE>if (albumListType == AlbumListType.DECADE) {<NEW_LINE>return forDecades(offset, count);<NEW_LINE>}<NEW_LINE>if (albumListType == AlbumListType.GENRE) {<NEW_LINE>return forGenres(offs... | shuffle.setItemType(ItemType.PROGRAM); |
1,298,732 | private synchronized static void initGlobalSecuritySettings() {<NEW_LINE>globalSensitiveInformationExposureTokens = new SettingsTestPropertyHolder(SoapUI.getSettings(), null, GlobalPropertySettings.SECURITY_CHECKS_PROPERTIES);<NEW_LINE>String propFile = System.getProperty("soapui.security.exposure.tokens");<NEW_LINE>if... | .class.getResourceAsStream("/com/eviware/soapui/resources/security/SensitiveInfo.xml")); |
1,643,308 | final DescribeCustomerMetadataResult executeDescribeCustomerMetadata(DescribeCustomerMetadataRequest describeCustomerMetadataRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeCustomerMetadataRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NE... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,372,765 | private static ImageFrame[] loadAll(ImageLoader loader, double width, double height, boolean preserveAspectRatio, float pixelScale, boolean smooth) throws ImageStorageException {<NEW_LINE>ImageFrame[] images = null;<NEW_LINE>ArrayList<ImageFrame> list <MASK><NEW_LINE>int imageIndex = 0;<NEW_LINE>ImageFrame image = null... | = new ArrayList<ImageFrame>(); |
974,240 | private static void initializeMetrics(boolean enabled, boolean jvmMetricsEnabled, String factoryClass, String appName, HostAndPort address) throws Exception {<NEW_LINE>LOG.info("initializing metrics, enabled:{}, class:{}", enabled, factoryClass);<NEW_LINE>if (enabled && factoryClass != null && !factoryClass.isEmpty()) ... | config().meterFilter(replicationFilter); |
1,714,608 | public ListImagePipelinesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListImagePipelinesResult listImagePipelinesResult = new ListImagePipelinesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonT... | String currentParentElement = context.getCurrentParentElement(); |
1,560,496 | static byte[] decode(String s) {<NEW_LINE>int delta = s.endsWith("==") ? 2 : s.endsWith("=") ? 1 : 0;<NEW_LINE>byte[] buffer = new byte[s.length() * 3 / 4 - delta];<NEW_LINE>int mask = 0xFF;<NEW_LINE>int index = 0;<NEW_LINE>for (int i = 0; i < s.length(); i += 4) {<NEW_LINE>int c0 = toInt[s.charAt(i)];<NEW_LINE>int c1 ... | .charAt(i + 1)]; |
536,304 | /*<NEW_LINE>* Find javadoc parameter names.<NEW_LINE>*/<NEW_LINE>private void findJavadocParamNames(char[] token, char[][] missingParams, boolean isTypeParam) {<NEW_LINE>if (missingParams == null)<NEW_LINE>return;<NEW_LINE>// Get relevance<NEW_LINE>int relevance = computeBaseRelevance();<NEW_LINE>relevance += computeRe... | this.tokenEnd - this.offset); |
274,772 | public boolean visit(ArrayCreation node) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE><MASK><NEW_LINE>ArrayType arrayType = (ArrayType) getChildNode(node, ArrayCreation.TYPE_PROPERTY);<NEW_LINE>// get the element type and count dimensions<NEW_LINE>Type elementType;<NEW_LINE>int dimensions;<NEW_LINE>boolean astLevelGTE8 = node.ge... | this.result.append("new "); |
1,511,113 | public void openSearch(boolean open) {<NEW_LINE>if (showingThread != null && searchOpen != open) {<NEW_LINE>searchOpen = open;<NEW_LINE>searchStatus.measure(MeasureSpec.makeMeasureSpec(getWidth(), MeasureSpec.EXACTLY), MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED));<NEW_LINE>int height = searchStatus.getMeasu... | (!(open || replyOpen)); |
1,618,850 | public final DecltypeContext decltype() throws RecognitionException {<NEW_LINE>DecltypeContext _localctx = new DecltypeContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 24, RULE_decltype);<NEW_LINE>try {<NEW_LINE>int _alt;<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(233);<NEW_LINE>type();<... | _errHandler.reportError(this, re); |
689,484 | protected void writeMetricMapAsPrometheus(StringBuilder builder, String registryName, Map<String, Metric> metricMap, Map<String, Metadata> metricMetadataMap) {<NEW_LINE>for (Entry<String, Metadata> metadataEntry : metricMetadataMap.entrySet()) {<NEW_LINE>String metricName = metadataEntry.getKey();<NEW_LINE>String metri... | Double> conversionAppendEntry = resolveConversionFactorXappendUnitEntry(unit); |
1,613,102 | @Produces({ MediaType.APPLICATION_JSON })<NEW_LINE>@Operation(operationId = "deleteServiceConfig", summary = "Deletes a service configuration for given service ID and returns the old configuration.", responses = { @ApiResponse(responseCode = "200", description = "OK", content = @Content(schema = @Schema(implementation ... | ex.getMessage(), ex); |
1,271,721 | protected JFreeChart createBar3DChart() throws JRException {<NEW_LINE>ChartFactory.setChartTheme(StandardChartTheme.createLegacyTheme());<NEW_LINE>JFreeChart jfreeChart = ChartFactory.createBarChart3D(evaluateTextExpression(getChart().getTitleExpression()), evaluateTextExpression(((JRBar3DPlot) getPlot()).getCategoryAx... | configureChart(jfreeChart, getPlot()); |
850,044 | public Boolean isValidID(String id, boolean force) {<NEW_LINE>if (force || helpSetsReady()) {<NEW_LINE>Iterator it = getHelpSets().iterator();<NEW_LINE>if (MASTER_ID.equals(id)) {<NEW_LINE>if (it.hasNext()) {<NEW_LINE>Installer.log.fine("master id, and >=1 help set");<NEW_LINE>return Boolean.TRUE;<NEW_LINE>} else {<NEW... | Installer.log.fine("master id, and 0 help sets"); |
1,058,530 | private void postToPinterest(final String boardID) {<NEW_LINE>SnackBarHandler.create(parent, getString(R.string.pinterest_image_uploading)).show();<NEW_LINE>NotificationHandler.make(R.string.pinterest, R.string.<MASK><NEW_LINE>Bitmap image = getBitmapFromPath(saveFilePath);<NEW_LINE>PDKClient.getInstance().createPin(ca... | upload_progress, R.drawable.ic_cloud_upload_black_24dp); |
570,766 | public GetRestApisResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetRestApisResult getRestApisResult = new GetRestApisResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori... | )).unmarshall(context)); |
250,819 | private ImageResourceInfo generateImageBundle() {<NEW_LINE>String className = bundleType_.getSimpleSourceName() + "__AutoGenResources";<NEW_LINE>String pathToInstance = packageName_ + "." + className + ".INSTANCE";<NEW_LINE><MASK><NEW_LINE>PrintWriter printWriter = context_.tryCreate(logger_, packageName_, className);<... | ImageResourceInfo iri = new ImageResourceInfo(pathToInstance); |
1,555,618 | public JavaScriptNode apply(JavaScriptNode delegateNode, WrapAccess access) {<NEW_LINE>JSTargetableNode scopeAccessNode;<NEW_LINE>if (access == WrapAccess.Delete) {<NEW_LINE>scopeAccessNode = factory.createDeleteProperty(null, factory.createConstantString(name<MASK><NEW_LINE>} else if (access == WrapAccess.Write) {<NEW... | ), isStrictMode(), context); |
989,755 | public void generateCode(ClassFile classFile) {<NEW_LINE>classFile.generateMethodInfoHeader(this.binding);<NEW_LINE>int methodAttributeOffset = classFile.contentsOffset;<NEW_LINE>int attributeNumber = classFile.generateMethodInfoAttributes(this.binding);<NEW_LINE>int codeAttributeOffset = classFile.contentsOffset;<NEW_... | generateCode(this.scope, codeStream); |
859,728 | protected static AttributeList convertToAttributeList(Object curvalue) {<NEW_LINE>AttributeList multi;<NEW_LINE>if (curvalue == null) {<NEW_LINE>// make list to hold multiple values<NEW_LINE>multi = new AttributeList();<NEW_LINE>// add previous single-valued attribute<NEW_LINE>multi.add(curvalue);<NEW_LINE>} else if (c... | a = (Object[]) curvalue; |
543,242 | private void doGraph(MutableGraph graph, boolean useDir, Scope scope) {<NEW_LINE>str.append("{\n");<NEW_LINE>if (useDir && graph.graphAttrs.get("dir") == null) {<NEW_LINE>attributes("edge", Attributes.attr("dir", graph.directed ? "forward" : "none"), Scope.EDGE, new Location(Location.Type.LINK, graph));<NEW_LINE>}<NEW_... | final MutableNode node = (MutableNode) linkSource; |
1,534,641 | public PNode visit(ImportFromSSTNode node) {<NEW_LINE>scopeEnvironment.setCurrentScope(node.scope);<NEW_LINE>String from = node.from;<NEW_LINE>int level = 0;<NEW_LINE>while (from.length() > level && from.charAt(level) == '.') {<NEW_LINE>level++;<NEW_LINE>}<NEW_LINE>if (level > 0) {<NEW_LINE>from = from.substring(level)... | .startOffset, node.endOffset)); |
122,852 | public static ValueUpdate createMapUpdate(TokenBuffer buffer, DataType currentLevel, FieldValue keyParent, FieldValue topLevelKey) {<NEW_LINE>TokenBuffer.Token element = buffer.prefetchScalar(UPDATE_ELEMENT);<NEW_LINE>if (UPDATE_ELEMENT.equals(buffer.currentName())) {<NEW_LINE>buffer.next();<NEW_LINE>}<NEW_LINE>FieldVa... | ) keyParent).add(key); |
395,566 | // for Java 7, the type of elements of JComboBox needs to be specified to avoid the warning and it's not supported in Java 6<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>private void buildGUI(Frame parent) {<NEW_LINE>JPanel selectionPanel = new JPanel();<NEW_LINE>fontList = new JList(fonts);<NEW_LINE>fontList.getSe... | (Box.createVerticalStrut(15)); |
1,548,998 | protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {<NEW_LINE>JsonObject input = InputParser.parseJsonObjectOrThrowError(req);<NEW_LINE>String email = InputParser.parseStringOrThrowError(input, "email", false);<NEW_LINE>String password = InputParser.<MASK><NEW_L... | parseStringOrThrowError(input, "password", false); |
1,841,899 | public final void run() {<NEW_LINE>// This will typically be null, especially if executing in a background thread.<NEW_LINE>final BroadleafRequestContext originalCtx = BroadleafRequestContext.getBroadleafRequestContext(false);<NEW_LINE>try {<NEW_LINE>BroadleafRequestContext.setBroadleafRequestContext(new BroadleafReque... | EntityManagerHolder emHolder = new EntityManagerHolder(em); |
285,679 | public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>builder.startObject(Fields.SCRIPT_CACHE_STATS);<NEW_LINE>builder.startObject(Fields.SUM);<NEW_LINE>if (general != null) {<NEW_LINE>builder.field(ScriptStats.Fields.COMPILATIONS, general.getCompilations());<NEW_LINE>b... | CACHE_EVICTIONS, stats.getCacheEvictions()); |
1,118,328 | public void addPluginOverlay(final IPluginView pluginOverlay) {<NEW_LINE>if (pluginOverlay.getDivId() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!HTMLNodes.containsKey(pluginOverlay.getDivId())) {<NEW_LINE>Log.e(TAG, "----> 200x200");<NEW_LINE>Bundle dummyInfo = new Bundle();<NEW_LINE>dummyInfo.putDouble("offs... | getView().addView(wrapper); |
78,814 | @NbBundle.Messages("MSG_AnonymousConvertibleToLambda=This anonymous inner class creation can be turned into a lambda expression.")<NEW_LINE>public static ErrorDescription computeAnnonymousToLambda(HintContext ctx) {<NEW_LINE>ClassTree clazz = ((NewClassTree) ctx.getPath().<MASK><NEW_LINE>ConvertToLambdaPreconditionChec... | getLeaf()).getClassBody(); |
1,378,754 | public void importDeploymentData(final Path source, final Gson gson) throws FrameworkException {<NEW_LINE>final Path virtualTypesConf = source.resolve("virtual-types.json");<NEW_LINE>if (Files.exists(virtualTypesConf)) {<NEW_LINE>logger.info("Reading {}..", virtualTypesConf);<NEW_LINE>try (final Reader reader = Files.n... | logger.warn("", ioex); |
1,192,371 | public void reportingPeriodUpdated() {<NEW_LINE>Interval period = getReportingPeriod().toInterval(LocalDate.now());<NEW_LINE>CurrencyConverter converter = new CurrencyConverterImpl(factory, getClient().getBaseCurrency());<NEW_LINE>Client filteredClient = clientFilter.getSelectedFilter().filter(getClient());<NEW_LINE>if... | getTree().setRedraw(false); |
1,352,157 | public boolean execute() {<NEW_LINE>GraphController graphController = Lookup.getDefault().lookup(GraphController.class);<NEW_LINE>GraphModel graphModel = graphController.getGraphModel(workspace);<NEW_LINE>Graph graph = exportVisible ? graphModel.getGraphVisible() : graphModel.getGraph();<NEW_LINE>Progress.start(progres... | xmlWriter.writeAttribute(GEXF_VERSION, "1.3"); |
547,122 | private File translateNodeName(File importFile, String sourceLanguage, String targetLanguage) throws Exception {<NEW_LINE>DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();<NEW_LINE>DocumentBuilder db = dbf.newDocumentBuilder();<NEW_LINE>Document doc = db.parse(importFile);<NEW_LINE>doc.getDocumentEleme... | substringsBetween(diagramXml, "name=\"", "\""); |
1,339,518 | public static DescribeDBClusterSSLResponse unmarshall(DescribeDBClusterSSLResponse describeDBClusterSSLResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDBClusterSSLResponse.setRequestId<MASK><NEW_LINE>describeDBClusterSSLResponse.setSSLAutoRotate(_ctx.stringValue("DescribeDBClusterSSLResponse.SSLAutoRotate"));<NE... | (_ctx.stringValue("DescribeDBClusterSSLResponse.RequestId")); |
558,202 | private void parseArguments(Element element, String argumentsElementName, ParserContext parserContext, BeanDefinitionBuilder builder, String propertyName) {<NEW_LINE>Element argumentsElement = <MASK><NEW_LINE>if (argumentsElement != null) {<NEW_LINE>String ref = argumentsElement.getAttribute(REF_ATTRIBUTE);<NEW_LINE>Ma... | DomUtils.getChildElementByTagName(element, argumentsElementName); |
1,489,792 | private I_MSV3_VerfuegbarkeitsanfrageEinzelne_Artikel createVerfuegbarkeitsanfrageEinzelne_Artikel(@NonNull final StockAvailabilityQueryItem singleArticle, @NonNull final ImmutableMap<StockAvailabilityQueryItem, MSV3ArtikelContextInfo> immutableMap) {<NEW_LINE>final I_MSV3_VerfuegbarkeitsanfrageEinzelne_Artikel article... | setC_OrderLineSO_ID(availabilityRequestItem.getSalesOrderLineId()); |
342,026 | public void eventOccured(String message) {<NEW_LINE>// normally there comes only one line to the baseStation<NEW_LINE>// except when station is restarted<NEW_LINE>// Filter out the lines that contain garbage data<NEW_LINE>if (message.contains("(CRC wrong after decryption)")) {<NEW_LINE>logger.debug("BaseStation eventOc... | = new StringTokenizer(message, "\n"); |
1,624,176 | static EnvoyServerProtoData.Listener parseServerSideListener(Listener proto, Set<String> rdsResources, TlsContextManager tlsContextManager, FilterRegistry filterRegistry, Set<String> certProviderInstances, boolean parseHttpFilter) throws ResourceInvalidException {<NEW_LINE>if (!proto.getTrafficDirection().equals(Traffi... | proto.getName() + " cannot have listener_filters"); |
19,319 | protected void addCheckableItem(int titleId, boolean isSelected, OnClickListener listener) {<NEW_LINE>View itemView = UiUtilities.getInflater(getContext(), nightMode).inflate(R.layout.bottom_sheet_item_with_descr_and_radio_btn, null);<NEW_LINE>itemView.findViewById(R.id.icon).setVisibility(View.GONE);<NEW_LINE>itemView... | title)).setText(spannable); |
822,650 | public String product(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) {<NEW_LINE>if (isCalloutActive() || value == null)<NEW_LINE>return "";<NEW_LINE>// get value<NEW_LINE>int S_ResourceAssignment_ID = ((Integer) value).intValue();<NEW_LINE>if (S_ResourceAssignment_ID == 0)<NEW_LINE>return "... | "S_ResourceAssignment_ID=" + S_ResourceAssignment_ID + " - M_Product_ID=" + M_Product_ID); |
1,598,571 | private void processBatch() throws Exception {<NEW_LINE>List<HostBean> hosts = hostDAO.getTerminatingHosts();<NEW_LINE>Collections.shuffle(hosts);<NEW_LINE>for (HostBean host : hosts) {<NEW_LINE>String lockName = String.format("HOSTTERMINATOR-%s", host.getHost_id());<NEW_LINE>Connection connection = utilDAO.getLock(loc... | .format("DB lock operation is successful: get lock %s", lockName)); |
520,816 | public Integer doCall() throws IOException {<NEW_LINE>if (scriptOrFile == null && ((!interactive && !literalScript.isPresent()) || (literalScript.isPresent() && literalScript.get().isEmpty()))) {<NEW_LINE>throw new IllegalArgumentException("Missing required parameter: '<scriptOrFile>'");<NEW_LINE>}<NEW_LINE>if (insecur... | code = prepareArtifacts(code, ctx); |
1,558,949 | public Message newMessage(int type, Thread thread) {<NEW_LINE>Message message = ChatSDK.db().createEntity(Message.class);<NEW_LINE>message.setSender(ChatSDK.currentUser());<NEW_LINE>message.setDate(new Date());<NEW_LINE>message.setEntityID(UUID.<MASK><NEW_LINE>message.setType(type);<NEW_LINE>message.setMessageStatus(Me... | randomUUID().toString()); |
1,332,474 | private List<HgLogMessageChangedPath> loadCachedChangePaths(File repository, String revision) {<NEW_LINE>Storage storage = StorageManager.getInstance().getStorage(repository.getAbsolutePath());<NEW_LINE>byte[] buff = storage.getRevisionInfo(revision);<NEW_LINE>if (buff == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LI... | ? null : copyPath, action)); |
851,349 | final UpdateFunctionResult executeUpdateFunction(UpdateFunctionRequest updateFunctionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateFunctionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
501,265 | public <U> InternalCompletableFuture<U> applyToEitherAsync(@Nonnull CompletionStage<? extends V> other, @Nonnull Function<? super V, U> fn, @Nonnull Executor executor) {<NEW_LINE>requireNonNull(other);<NEW_LINE>requireNonNull(fn);<NEW_LINE>requireNonNull(executor);<NEW_LINE>final InternalCompletableFuture<U> future = n... | unblockApplyToEither(fn, executor, future); |
1,621,303 | private PgpSignatory createSignatory(String name, String keyId, String secretKey, String password) {<NEW_LINE>try (InputStream in = PGPUtil.getDecoderStream(new ByteArrayInputStream(secretKey.getBytes(UTF_8)))) {<NEW_LINE>if (keyId == null) {<NEW_LINE>PGPSecretKey key = new <MASK><NEW_LINE>return factory.createSignator... | JcaPGPSecretKeyRing(in).getSecretKey(); |
723,634 | private static Set<ProxyClassLoader> coalesceAppend(ClassLoader root, Set<ProxyClassLoader> existing, ClassLoader[] appended, ClassLoader[] systemCL) throws IllegalArgumentException {<NEW_LINE>int likelySize = existing<MASK><NEW_LINE>LinkedHashSet<ClassLoader> uniq = new LinkedHashSet<ClassLoader>(likelySize);<NEW_LINE... | .size() + appended.length; |
1,088,423 | public void actionPerformed(final ActionEvent evt, final JTextComponent target) {<NEW_LINE>if (target != null) {<NEW_LINE>if (!target.isEditable() || !target.isEnabled()) {<NEW_LINE>target.getToolkit().beep();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Caret caret = target.getCaret();<NEW_LINE>final BaseDocument doc = ... | caret.getDot(), right); |
825,255 | void syncByMaster(TextSync textSync) {<NEW_LINE>beforeDocumentModification();<NEW_LINE>ignoreDocModifications++;<NEW_LINE>boolean oldTM = DocumentUtilities.isTypingModification(doc);<NEW_LINE>DocumentUtilities.setTypingModification(doc, false);<NEW_LINE>try {<NEW_LINE>TextRegion<?> masterRegion = textSync.validMasterRe... | Level.WARNING, "Invalid offset", e); |
799,047 | public Boolean checkProcessAccess(int AD_Process_ID) {<NEW_LINE>if (m_processAccess == null) {<NEW_LINE>m_processAccess = new HashMap<Integer, Boolean>(50);<NEW_LINE>MClient client = MClient.get(<MASK><NEW_LINE>String ASPFilter = "";<NEW_LINE>if (client.isUseASP())<NEW_LINE>ASPFilter = // Just ASP subscribed processes ... | getCtx(), getAD_Client_ID()); |
281,774 | private static HashSet<IElementType> initKeyWordsSet() {<NEW_LINE>HashSet<IElementType> keyWords = new HashSet<>();<NEW_LINE>keyWords.add(SdTypes.SEARCH);<NEW_LINE>keyWords.add(SdTypes.SCHEMA);<NEW_LINE>keyWords.add(SdTypes.FIELD);<NEW_LINE>keyWords.add(SdTypes.TYPE);<NEW_LINE>keyWords.add(SdTypes.INDEXING);<NEW_LINE>k... | keyWords.add(SdTypes.ANNOTATION); |
17,188 | public <ReqT, RespT> ServerCall.Listener<ReqT> interceptCall(final ServerCall<ReqT, RespT> serverCall, Metadata headers, ServerCallHandler<ReqT, RespT> serverCallHandler) {<NEW_LINE>final Attributes attributes = serverCall.getAttributes();<NEW_LINE>final TransportMetadata transportMetadata = attributes.get(MetadataServ... | ServerContext.getTransportMetadataKey(), transportMetadata); |
75,899 | protected void copyManifest() throws MojoExecutionException {<NEW_LINE>getLog().debug("copyManifest: " + androidManifestFile + " -> " + destinationManifestFile);<NEW_LINE>if (androidManifestFile == null) {<NEW_LINE>getLog().debug("Manifest copying disabled. Using default manifest only");<NEW_LINE>return;<NEW_LINE>}<NEW... | ), doc.getXmlEncoding()); |
1,257,383 | public void run() throws Exception {<NEW_LINE>logger.info(String.format("Starting %s", getClass().getSimpleName()));<NEW_LINE>// hadoop conf should be on the classpath<NEW_LINE>JobConf jobconf = getJobConf();<NEW_LINE>jobconf.setJarByClass(WordCount.class);<NEW_LINE>jobconf.setOutputKeyClass(Text.class);<NEW_LINE>jobco... | jobconf.setOutputFormat(TextOutputFormat.class); |
1,321,996 | public EigrpInternalRoute build() {<NEW_LINE>checkArgument(getNetwork() != null, "EIGRP route: missing %s", PROP_NETWORK);<NEW_LINE>checkArgument(_eigrpMetric != null, "EIGRP route: missing %s", PROP_EIGRP_METRIC);<NEW_LINE>checkArgument(_eigrpMetricVersion != null, "EIGRP route: missing %s", PROP_EIGRP_METRIC_VERSION)... | _processAsn != null, "EIGRP route: missing %s", PROP_PROCESS_ASN); |
1,121,885 | public boolean looseFocus() {<NEW_LINE>hadFocusOnIncSearchTextField = false;<NEW_LINE>if (!isVisible()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>EditorFindSupport.getInstance().setBlockSearchHighlight(0, 0);<NEW_LINE>EditorFindSupport.getInstance().incSearchReset();<NEW_LINE>EditorFindSupport.<MASK><NEW_LINE>if (ge... | getInstance().setFocusedTextComponent(null); |
889,382 | private String idFragment() {<NEW_LINE>StringBuilder fragment = new StringBuilder();<NEW_LINE>Token idFragment;<NEW_LINE>while ((idFragment = anyOf(Token.Kind.IDENT, Kind.PLUGIN, Kind.PROJECT, Kind.DEPS, Kind.SCM, Kind.SRCS, Kind.MODULES, Kind.ID, Kind.PACKAGING, Kind.PARENT, Kind.OVERRIDES, Kind.REPOSITORIES, Kind.PRO... | fragment.append(idFragment.value); |
735,975 | public Response generateInstallation(KeycloakSession session, RealmModel realm, ClientModel client, URI baseUri) {<NEW_LINE>StringBuffer buffer = new StringBuffer();<NEW_LINE>buffer.append("<secure-deployment name=\"WAR MODULE NAME.war\">\n");<NEW_LINE>buffer.append(" <realm>").append(realm.getName()).append("</real... | MediaType.TEXT_PLAIN_TYPE).build(); |
1,134,624 | Object POINTER(VirtualFrame frame, Object cls, @CachedLibrary(limit = "1") HashingStorageLibrary hlib, @Cached IsTypeNode isTypeNode, @Cached CallNode callNode, @Cached GetNameNode getNameNode, @Cached CastToJavaStringNode toJavaStringNode) {<NEW_LINE>CtypesThreadState ctypes = CtypesThreadState.get(getContext(), getLa... | , getNameNode.execute(cls)); |
1,209,342 | public boolean convert(final String importFile, final String outputDir) {<NEW_LINE>try {<NEW_LINE>final Path pathTo = Paths.get(importFile);<NEW_LINE>if (!Files.exists(pathTo)) {<NEW_LINE>System.err.println("File at '" + importFile + "' does not exist; cannot import");<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final S... | items = PostmanUtils.readPostmanJson(content); |
54,739 | public DataContext createDataContext(final JavaTypeFactory typeFactory, List<TypedValue> parameters) {<NEW_LINE>class DruidDataContext implements DataContext {<NEW_LINE><NEW_LINE>private final Map<String, Object> base_context = ImmutableMap.of(DataContext.Variable.UTC_TIMESTAMP.camelName, localNow.getMillis(), DataCont... | > builder = ImmutableMap.builder(); |
195,151 | final DescribeDBClustersResult executeDescribeDBClusters(DescribeDBClustersRequest describeDBClustersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDBClustersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,092,894 | public void before(Object target, Object[] args) {<NEW_LINE>if (isDebug) {<NEW_LINE>logger.beforeInterceptor(target, args);<NEW_LINE>}<NEW_LINE>// Ignore monitor service<NEW_LINE>if (isMonitorService(target)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final <MASK><NEW_LINE>if (trace == null) {<NEW_LINE>return;<NEW_LINE>}<N... | Trace trace = traceContext.currentRawTraceObject(); |
444,847 | public static QuerySecCheckLatestSummaryResponse unmarshall(QuerySecCheckLatestSummaryResponse querySecCheckLatestSummaryResponse, UnmarshallerContext _ctx) {<NEW_LINE>querySecCheckLatestSummaryResponse.setRequestId(_ctx.stringValue("QuerySecCheckLatestSummaryResponse.RequestId"));<NEW_LINE>querySecCheckLatestSummaryRe... | ("QuerySecCheckLatestSummaryResponse.Data.List[" + i + "].CheckTime")); |
1,001,208 | public void marshall(CreateQualificationTypeRequest createQualificationTypeRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createQualificationTypeRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.mar... | createQualificationTypeRequest.getTest(), TEST_BINDING); |
1,686,321 | private void updateStreamDefinitionFromReleaseManifest(String streamName, String releaseManifest) {<NEW_LINE>List<SpringCloudDeployerApplicationManifest> appManifests = new SpringCloudDeployerApplicationManifestReader().read(releaseManifest);<NEW_LINE>Map<String, SpringCloudDeployerApplicationManifest> appManifestMap =... | StreamAppDefinition.Builder.from(appDefinition); |
1,475,788 | private Path updateBuildFile() throws IOException {<NEW_LINE>Path buildFilePath = getBuildFile().getAsFile().get().toPath();<NEW_LINE>String contents = new String(Files.readAllBytes(buildFilePath), StandardCharsets.UTF_8);<NEW_LINE>Matcher version = getVersionPattern().get().matcher(contents);<NEW_LINE>if (!version.fin... | clearData = clearDataPattern.matcher(contents); |
1,667,367 | private void generateModuleInits(ClassWriter cw) {<NEW_LINE>MethodVisitor mv = null;<NEW_LINE>int moduleCount = 0;<NEW_LINE>int methodCount = 0;<NEW_LINE>for (Map.Entry<PackageID, String> entry : moduleVarMap.entrySet()) {<NEW_LINE>if (moduleCount % MAX_MODULES_PER_METHOD == 0) {<NEW_LINE>mv = cw.visitMethod(ACC_STATIC... | (packageID.name.value)); |
1,348,562 | static BigIntPolynomial generateRandomSmall(int N, int numOnes, int numNegOnes) {<NEW_LINE>List coeffs = new ArrayList();<NEW_LINE>for (int i = 0; i < numOnes; i++) {<NEW_LINE>coeffs.add(Constants.BIGINT_ONE);<NEW_LINE>}<NEW_LINE>for (int i = 0; i < numNegOnes; i++) {<NEW_LINE>coeffs.add(BigInteger.valueOf(-1));<NEW_LI... | BigIntPolynomial poly = new BigIntPolynomial(N); |
596,792 | public static int calculateLuhnChecksum(long num) {<NEW_LINE>if (num < 0) {<NEW_LINE>throw new IllegalArgumentException("Non-negative numbers only.");<NEW_LINE>}<NEW_LINE>final var <MASK><NEW_LINE>var sum = 0;<NEW_LINE>var isOddPosition = true;<NEW_LINE>// Loop on digits of numStr from right to left.<NEW_LINE>for (var ... | numStr = String.valueOf(num); |
1,045,375 | // called each hour<NEW_LINE>public void sendReminderForOfflinePaymentsToEventManagers() {<NEW_LINE>eventRepository.findAllActives(ZonedDateTime.now(clockProvider.getClock())).stream().filter(event -> {<NEW_LINE>ZonedDateTime <MASK><NEW_LINE>// only for the events at 5:00 local time<NEW_LINE>return dateTimeForEvent.tru... | dateTimeForEvent = event.now(clockProvider); |
103,898 | public static Dataset<Row> alignDupes(Dataset<Row> dupesActual, Arguments args) {<NEW_LINE>dupesActual = dupesActual.cache();<NEW_LINE>List<Column> cols = new ArrayList<Column>();<NEW_LINE>cols.add(dupesActual.col(ColName.CLUSTER_COLUMN));<NEW_LINE>cols.add(dupesActual.col(ColName.ID_COL));<NEW_LINE>cols.add(dupesActua... | .col(ColName.SCORE_COL)); |
1,049,064 | private void select(final int index) {<NEW_LINE>unhighlightSelected();<NEW_LINE>final String message;<NEW_LINE>if (index >= 0) {<NEW_LINE>JLabel <MASK><NEW_LINE>this.selected = newSelected;<NEW_LINE>highlightSelected();<NEW_LINE>final IconDescription iconInformation = icons.get(index);<NEW_LINE>KeyStroke accelerator = ... | newSelected = iconLabels.get(index); |
1,596,757 | public void process(ComplexEventChunk complexEventChunk) {<NEW_LINE>List<ComplexEventChunk> outputEventChunks = new LinkedList<>();<NEW_LINE>complexEventChunk.reset();<NEW_LINE>RateLimiterState state = stateHolder.getState();<NEW_LINE>try {<NEW_LINE>synchronized (state) {<NEW_LINE>while (complexEventChunk.hasNext()) {<... | ComplexEvent event = complexEventChunk.next(); |
1,243,433 | /* Sample generated code:<NEW_LINE>*<NEW_LINE>* @com.ibm.j9ddr.GeneratedFieldAccessor(offsetFieldName="_fieldAddressOffset_", declaredType="const fj9object_t*")<NEW_LINE>* public ObjectReferencePointer fieldAddress() throws CorruptDataException {<NEW_LINE>* return ObjectReferencePointer.cast<MASK><NEW_LINE>* }<NEW_... | (getPointerAtOffset(J9MM_IterateObjectRefDescriptor._fieldAddressOffset_)); |
1,663,660 | public Consumer<byte[], byte[]> apply(Map<String, Object> config) {<NEW_LINE>String bucket = sslConfig.get("bucket");<NEW_LINE>String trustStorePath = sslConfig.get(SslConfigs.SSL_TRUSTSTORE_LOCATION_CONFIG);<NEW_LINE>String keyStorePath = sslConfig.get(SslConfigs.SSL_KEYSTORE_LOCATION_CONFIG);<NEW_LINE>String trustSto... | put(SslConfigs.SSL_KEY_PASSWORD_CONFIG, keyPassword); |
386,254 | public String putRecordingTextTrack(String recordId, String kind, String lang, File file, String label, String origFilename, String trackId, String contentType, String tempFilename) {<NEW_LINE>Map<String, Object> logData = new HashMap<>();<NEW_LINE>logData.put("recordId", recordId);<NEW_LINE>logData.put("kind", kind);<... | logData.put("label", label); |
1,569,706 | public static DescribeCameraStatisticsResponse unmarshall(DescribeCameraStatisticsResponse describeCameraStatisticsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeCameraStatisticsResponse.setRequestId(_ctx.stringValue("DescribeCameraStatisticsResponse.RequestId"));<NEW_LINE>describeCameraStatisticsResponse.setEr... | + "].PvRects[" + j + "].Top")); |
689,484 | protected void writeMetricMapAsPrometheus(StringBuilder builder, String registryName, Map<String, Metric> metricMap, Map<String, Metadata> metricMetadataMap) {<NEW_LINE>for (Entry<String, Metadata> metadataEntry : metricMetadataMap.entrySet()) {<NEW_LINE>String metricName = metadataEntry.getKey();<NEW_LINE><MASK><NEW_L... | String metricNamePrometheus = registryName + ":" + metricName; |
1,844,524 | public void reduce(Iterable<Tuple2<Object, Integer>> values, Collector<Tuple2<Object, Integer>> out) throws Exception {<NEW_LINE>LOG.info("{} reduce start.", getRuntimeContext().getTaskName());<NEW_LINE>ArrayList<Tuple2<Object, Integer>> all = new ArrayList<>();<NEW_LINE>int instanceCount = -1;<NEW_LINE>for (Tuple2<Obj... | .f0, value.f1)); |
1,162,514 | void refreshServers(MasterClientOuterClass.TabletLocationsPB tabletLocations) throws NonRecoverableException {<NEW_LINE>synchronized (tabletServers) {<NEW_LINE>// TODO not a fat lock with IP resolving in it<NEW_LINE>tabletServers.clear();<NEW_LINE>leaderIndex = NO_LEADER_INDEX;<NEW_LINE>List<UnknownHostException> looku... | .getTsInfo().getBroadcastAddressesList(); |
456,900 | private static void tryAssertionBindWildcardIRStream(RegressionEnvironment env, SupportSubscriberMultirowUnderlyingBase subscriber) {<NEW_LINE>EPStatement stmt = env.compileDeploy("@name('s0') select irstream * from SupportBean#length_batch(2)").statement("s0");<NEW_LINE>stmt.setSubscriber(subscriber);<NEW_LINE>Support... | = new SupportBean("E1", 100); |
1,565,906 | protected void baseLiquibaseInitialization(KeycloakSession session) {<NEW_LINE>resourceAccessor = new ClassLoaderResourceAccessor(getClass().getClassLoader());<NEW_LINE>// initialize Liquibase using a custom scope<NEW_LINE>final Map<String, Object> scopeValues = new HashMap<>();<NEW_LINE>scopeValues.put(Scope.Attr.ui.n... | XMLChangeLogSAXParser.class.getDeclaredMethod("getSaxParserFactory"); |
1,300,613 | public void addGetter(Class<?> getterClass, String fieldName) throws InstrumentException {<NEW_LINE>Objects.requireNonNull(getterClass, "getterClass");<NEW_LINE>Objects.requireNonNull(fieldName, "fieldName");<NEW_LINE>try {<NEW_LINE>final GetterAnalyzer.GetterDetails getterDetails = new GetterAnalyzer().analyze(getterC... | ).getName(), fieldNode); |
724,152 | public void onLocationChanged(Location location) {<NEW_LINE>if (mMapView == null)<NEW_LINE>return;<NEW_LINE>gpsbearing = location.getBearing();<NEW_LINE>gpsspeed = location.getSpeed();<NEW_LINE>lat = (float) location.getLatitude();<NEW_LINE>lon = (float) location.getLongitude();<NEW_LINE>// meters<NEW_LINE>alt = (float... | location.getBearing(), true); |
629,640 | private void updateSysUiFlags(float windowProgress) {<NEW_LINE>if (mRecentsAnimationController != null && mRecentsView != null) {<NEW_LINE>TaskView runningTask = mRecentsView.getRunningTaskView();<NEW_LINE>TaskView centermostTask = mRecentsView.getTaskViewNearestToCenterOfScreen();<NEW_LINE>int centermostTaskFlags = ce... | boolean swipeUpThresholdPassed = windowProgress > 1 - UPDATE_SYSUI_FLAGS_THRESHOLD; |
1,469,058 | public void flattenChannel(Movie movie, SeekableByteChannel out) throws IOException {<NEW_LINE>MovieBox moov = movie.getMoov();<NEW_LINE>if (!moov.isPureRefMovie())<NEW_LINE>throw new IllegalArgumentException("movie should be reference");<NEW_LINE>out.setPosition(0);<NEW_LINE>MP4Util.writeFullMovie(out, movie);<NEW_LIN... | [] inputFiles = getInputs(moov); |
687,589 | public static // [module_ref ':'] spec_fun '::'? type_sigs_list<NEW_LINE>boolean fun_type_sigs(PsiBuilder b, int l) {<NEW_LINE>if (!recursion_guard_(b, l, "fun_type_sigs"))<NEW_LINE>return false;<NEW_LINE>boolean r, p;<NEW_LINE>Marker m = enter_section_(b, l, _NONE_, ERL_FUN_TYPE_SIGS, "<fun type sigs>");<NEW_LINE>r = ... | spec_fun(b, l + 1); |
1,656,304 | private static void writeChildren(ZipOutputStream str, FileObject projectDirectory, FileObject siteRoot, Children children) throws IOException {<NEW_LINE>for (Node node : children.getNodes(true)) {<NEW_LINE>FileObject fo = node.getLookup().lookup(FileObject.class);<NEW_LINE>InputStream is = null;<NEW_LINE>if (!fo.isFol... | siteRoot, node.getChildren()); |
678,193 | protected void addListenersToWallet() {<NEW_LINE>super.addListenersToWallet();<NEW_LINE>wallet.addCoinsReceivedEventListener((wallet, tx, prevBalance, newBalance) -> updateBsqWalletTransactions());<NEW_LINE>wallet.addCoinsSentEventListener((wallet, tx, prevBalance, newBalance) -> updateBsqWalletTransactions());<NEW_LIN... | addKeyChainEventListener(keys -> updateBsqWalletTransactions()); |
435,058 | public void read(org.apache.thrift.protocol.TProtocol prot, getDiskUsage_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(2);<NEW_LINE>if (incoming.get(0))... | >(2 * _set29.size); |
1,502,224 | public static InscriberRecipe findRecipe(Level level, ItemStack input, ItemStack plateA, ItemStack plateB, boolean supportNamePress) {<NEW_LINE>if (supportNamePress) {<NEW_LINE>boolean isNameA = AEItems.NAME_PRESS.isSameAs(plateA);<NEW_LINE>boolean isNameB = AEItems.NAME_PRESS.isSameAs(plateB);<NEW_LINE>if (isNameA && ... | getBottomOptional().test(plateA); |
1,809,110 | private void resolve(EngineDiscoveryRequest request, CucumberEngineDescriptor engineDescriptor, Predicate<String> packageFilter) {<NEW_LINE><MASK><NEW_LINE>FeatureResolver featureResolver = create(configuration, engineDescriptor, packageFilter);<NEW_LINE>CucumberEngineOptions options = new CucumberEngineOptions(configu... | ConfigurationParameters configuration = request.getConfigurationParameters(); |
703,492 | public DeleteHostAnswer deleteHost(HostVO host, boolean isForced, boolean isForceDeleteStorage) throws UnableDeleteHostException {<NEW_LINE>if (host.getType() != Host.Type.Routing || (host.getHypervisorType() != HypervisorType.KVM && host.getHypervisorType() != HypervisorType.LXC)) {<NEW_LINE>return null;<NEW_LINE>}<NE... | deleteRoutingHost(host, isForced, isForceDeleteStorage); |
683,248 | public int headOfSpan(Span tokenSpan) {<NEW_LINE>// Error checks<NEW_LINE>if (tokenSpan.size() == 0) {<NEW_LINE>throw new IllegalArgumentException("Cannot find head word of empty span!");<NEW_LINE>}<NEW_LINE>List<Optional<Integer>> governors = sentence.governors();<NEW_LINE>if (tokenSpan.start() >= governors.size()) {<... | return tokenSpan.end() - 1; |
648,772 | public boolean closeCurrentProject() {<NEW_LINE>if (controller.getCurrentProject() != null) {<NEW_LINE>// Save ?<NEW_LINE>String messageBundle = NbBundle.getMessage(ProjectControllerUIImpl.class, "CloseProject_confirm_message");<NEW_LINE>String titleBundle = NbBundle.getMessage(ProjectControllerUIImpl.class, "CloseProj... | String title = frame.getTitle(); |
1,669,318 | private static <T> int[] compileMapping(List<T> domain, List<T> range) {<NEW_LINE>if (domain.size() != range.size())<NEW_LINE>throw new AtlasException("Bad mapping: lengths not the same: " + domain + " -> " + range);<NEW_LINE>int[] cols = new int[domain.size()];<NEW_LINE>boolean[] mapped = new <MASK><NEW_LINE>// Arrays... | boolean[domain.size()]; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.