idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
761,365 | default Map<String, FilterMeta> initFilterBy(FacesContext context) {<NEW_LINE>Map<String, FilterMeta> <MASK><NEW_LINE>AtomicBoolean filtered = new AtomicBoolean();<NEW_LINE>// build columns filterBy<NEW_LINE>forEachColumn(c -> {<NEW_LINE>FilterMeta meta = FilterMeta.of(context, getVar(), c);<NEW_LINE>if (meta != null) ... | filterBy = new LinkedHashMap<>(); |
1,148,260 | public void toWML(String in, javax.xml.transform.Result result, String author, java.util.Calendar date, RelationshipsPart docPartRelsNewer, RelationshipsPart docPartRelsOlder) {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("in: " + in);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>XMLInputFactory inputFactory = XMLInp... | " xmlns:w14=\"http://schemas.microsoft.com/office/word/2010/wordml\"" + in.substring(closeTag); |
1,251,328 | public PluggableSCMMaterialConfig fromJSON(JsonReader jsonReader, ConfigHelperOptions options) {<NEW_LINE>PluggableSCMMaterialConfig pluggableSCMMaterialConfig = new PluggableSCMMaterialConfig();<NEW_LINE>CruiseConfig cruiseConfig = options.getCruiseConfig();<NEW_LINE>if (cruiseConfig != null) {<NEW_LINE>String ref = j... | ).ifPresent(pluggableSCMMaterialConfig::setInvertFilter); |
261,789 | private static void fixFieldUsage(MethodNode mth, IndexInsnNode insn) {<NEW_LINE>InsnArg instanceArg = insn.getArg(insn.getType() == InsnType.IGET ? 0 : 1);<NEW_LINE>if (instanceArg.contains(AFlag.SUPER)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (instanceArg.isInsnWrap() && ((InsnWrapArg) instanceArg).getWrapInsn().ge... | castInsn.add(AFlag.EXPLICIT_CAST); |
13,442 | static <K, V> CacheConfig<K, V> createCacheConfig(HazelcastClientInstanceImpl client, CacheConfig<K, V> newCacheConfig, boolean urgent) {<NEW_LINE>try {<NEW_LINE>String nameWithPrefix = newCacheConfig.getNameWithPrefix();<NEW_LINE>int partitionId = client.getClientPartitionService().getPartitionId(nameWithPrefix);<NEW_... | ClientMessage response = future.get(); |
336,558 | ByteBuffer[] force(FileChannel.MapMode MAP_MODE, ByteBuffer[] dumpBuffer, long bufferSize, long bufferExt, long entrySize) throws IOException {<NEW_LINE>if (MAP_MODE == FileChannel.MapMode.PRIVATE) {<NEW_LINE>// NOI18N<NEW_LINE>java.io.File newBufferFile = new java.io.File(getAbsolutePath() + ".new");<NEW_LINE>long len... | (offset_end - i * bufferSize)); |
618,277 | public void read(org.apache.thrift.protocol.TProtocol iprot, drainReplicationTable_result struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeFiel... | .clientImpl.thrift.ThriftNotActiveServiceException(); |
136,950 | // Implementations for KotlinPropertyVisitor.<NEW_LINE>@Override<NEW_LINE>public void visitAnyProperty(Clazz clazz, KotlinDeclarationContainerMetadata kotlinDeclarationContainerMetadata, KotlinPropertyMetadata kotlinPropertyMetadata) {<NEW_LINE>kotlinPropertyMetadata.versionRequirementAccept(clazz, kotlinDeclarationCon... | receiverTypeAccept(clazz, kotlinDeclarationContainerMetadata, this); |
834,942 | public List<String> suggestionList(final String query) throws IOException, ExtractionException {<NEW_LINE>final List<String> suggestions = new ArrayList<>();<NEW_LINE>final Downloader dl = NewPipe.getDownloader();<NEW_LINE>final String url = SOUNDCLOUD_API_V2_URL + "search/queries" + "?q=" + URLEncoder.encode(query, UT... | getExtractorLocalization()).responseBody(); |
886,631 | public static int add(int[] x, int[] y, int[] z) {<NEW_LINE>long c = 0;<NEW_LINE>c += (x[0] & M) + (y[0] & M);<NEW_LINE>z[0] = (int) c;<NEW_LINE>c >>>= 32;<NEW_LINE>c += (x[1] & M) + (y[1] & M);<NEW_LINE>z[1] = (int) c;<NEW_LINE>c >>>= 32;<NEW_LINE>c += (x[2] & M) + (y[2] & M);<NEW_LINE>z<MASK><NEW_LINE>c >>>= 32;<NEW_... | [2] = (int) c; |
1,082,555 | public CloseableIterable<FileScanTask> planFiles(TableOperations ops, Snapshot snapshot, Expression rowFilter, boolean ignoreResiduals, boolean caseSensitive, boolean colStats) {<NEW_LINE>ManifestGroup manifestGroup = new ManifestGroup(ops.io(), snapshot.dataManifests(), snapshot.deleteManifests()).caseSensitive(caseSe... | context().planExecutor()); |
1,333,379 | final DeleteRuleResult executeDeleteRule(DeleteRuleRequest deleteRuleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteRuleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<DeleteRuleRequest> request = nu... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
867,222 | public DataType toDataType() throws DuplicateNameException, IOException {<NEW_LINE>Structure struct = new StructureDataType(FBPT_Entry.class.getSimpleName(), 0);<NEW_LINE>struct.add(STRING, <MASK><NEW_LINE>struct.add(STRING, FBPK_Constants.NAME_MAX_LENGTH + 1, "guid1", null);<NEW_LINE>struct.add(STRING, FBPK_Constants.... | FBPK_Constants.NAME_MAX_LENGTH, "name", null); |
59,989 | private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {<NEW_LINE>// We have to call defaultReadObject first.<NEW_LINE>in.defaultReadObject();<NEW_LINE>Object[] args;<NEW_LINE>String resourceBundleName = (String) in.readObject();<NEW_LINE>String key = <MASK><NEW_LINE>int len = in.readI... | (String) in.readObject(); |
297,057 | private static void onMathJaxTypesetCompleted(final Object mathjaxElObject, final String text, final boolean error, final Object commandObject, final int attempt) {<NEW_LINE>final Element mathjaxEl = (Element) mathjaxElObject;<NEW_LINE>if (attempt < MAX_RENDER_ATTEMPTS) {<NEW_LINE>// if mathjax displayed an error, try ... | callback = (MathJaxTypeset.Callback) commandObject; |
1,065,261 | public View onCreateView(@NonNull LayoutInflater inflater, @NonNull ViewGroup parent) {<NEW_LINE>final View view = inflater.inflate(R.layout.dd_debug_drawer_module_device, parent, false);<NEW_LINE>view.setClickable(false);<NEW_LINE>view.setEnabled(false);<NEW_LINE>final TextView deviceMakeLabel = view.findViewById(R.id... | findViewById(R.id.dd_debug_device_resolution); |
924,450 | final CancelSpotInstanceRequestsResult executeCancelSpotInstanceRequests(CancelSpotInstanceRequestsRequest cancelSpotInstanceRequestsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(cancelSpotInstanceRequestsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "CancelSpotInstanceRequests"); |
1,605,022 | protected void execute(final Event e) {<NEW_LINE>if (potionEffect) {<NEW_LINE>for (LivingEntity livingEntity : entities.getArray(e)) {<NEW_LINE>PotionEffect[] potionEffects = this.potionEffects.getArray(e);<NEW_LINE>PotionEffectUtils.addEffects(livingEntity, potionEffects);<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>final P... | ts) en.removePotionEffect(t); |
1,146,624 | private static void showTree(StringBuilder builder, MetaPackage mp, boolean onlyCompiled) {<NEW_LINE>List<MetaPackage> childPackages = mp.getChildPackages();<NEW_LINE>for (MetaPackage childPackage : childPackages) {<NEW_LINE>showTree(builder, childPackage, onlyCompiled);<NEW_LINE>}<NEW_LINE>List<MetaClass> packageClass... | ()).append(HEADLESS_SEPARATOR); |
1,153,619 | public ProtectionGroupLimits unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ProtectionGroupLimits protectionGroupLimits = new ProtectionGroupLimits();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t... | class).unmarshall(context)); |
1,013,681 | private void processEntity(BeforeAnalysisContext context) {<NEW_LINE>final Class<? extends Annotation> entityAnnotation = (Class<? extends Annotation>) context.access().findClassByName(AT_ENTITY);<NEW_LINE>final Class<? extends Annotation> superclassAnnotation = (Class<? extends Annotation>) context.access().findClassB... | getClassLoader().getResourceAsStream(resourceName); |
479,915 | public void parse(final ReadableByteChannel dataSource, ByteBuffer header, long contentSize, BoxParser boxParser) throws IOException {<NEW_LINE>ByteBuffer content = ByteBuffer.allocate(78);<NEW_LINE>dataSource.read(content);<NEW_LINE>((Buffer) content).position(6);<NEW_LINE>dataReferenceIndex = IsoTypeReader.readUInt16... | ] = IsoTypeReader.readUInt32(content); |
582,894 | public static ListCorpMetricsResponse unmarshall(ListCorpMetricsResponse listCorpMetricsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listCorpMetricsResponse.setRequestId(_ctx.stringValue("ListCorpMetricsResponse.RequestId"));<NEW_LINE>listCorpMetricsResponse.setTotalCount(_ctx.integerValue("ListCorpMetricsResponse.To... | (_ctx.stringValue("ListCorpMetricsResponse.Code")); |
1,693,075 | private static HRDParameters readHRDParameters(BitReader _in) {<NEW_LINE>HRDParameters hrd = new HRDParameters();<NEW_LINE>hrd.cpbCntMinus1 = readUEtrace(_in, "SPS: cpb_cnt_minus1");<NEW_LINE>hrd.bitRateScale = (int) readNBit(_in, 4, "HRD: bit_rate_scale");<NEW_LINE>hrd.cpbSizeScale = (int) <MASK><NEW_LINE>hrd.bitRateV... | readNBit(_in, 4, "HRD: cpb_size_scale"); |
65,300 | public Node visitQueryNoWith(SqlBaseParser.QueryNoWithContext context) {<NEW_LINE>QueryBody term = (QueryBody) visit(context.queryTerm());<NEW_LINE>Optional<OrderBy<MASK><NEW_LINE>if (context.ORDER() != null) {<NEW_LINE>orderBy = Optional.of(new OrderBy(getLocation(context.ORDER()), visit(context.sortItem(), SortItem.c... | > orderBy = Optional.empty(); |
430,665 | public void controlResized(ControlEvent e) {<NEW_LINE>Rectangle area;<NEW_LINE>if (e.widget instanceof Composite) {<NEW_LINE>area = ((Composite) e.widget).getClientArea();<NEW_LINE>} else if (e.widget instanceof Table) {<NEW_LINE>area = ((Table) <MASK><NEW_LINE>} else {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>org.eclipse.... | e.widget).getClientArea(); |
1,560,136 | public SyncStatus attachDatabase(JournalContext journalContext, String udbType, String udbConnectionUri, String udbDbName, String dbName, Map<String, String> map, boolean ignoreSyncErrors) throws IOException {<NEW_LINE>try (LockResource l = getDbLock(dbName)) {<NEW_LINE>if (mDBs.containsKey(dbName)) {<NEW_LINE>throw ne... | = status.getTablesErrorsCount() > 0; |
384,805 | public void initialize(final ModelValidationEngine engine, final MClient client) {<NEW_LINE>if (client != null)<NEW_LINE>m_AD_Client_ID = client.getAD_Client_ID();<NEW_LINE>Services.registerService(ITextTemplateBL.class, TextTemplateBL.get());<NEW_LINE>engine.addModelChange(I_C_DunningRunEntry.Table_Name, this);<NEW_LI... | list = s_cacheVars.get(key); |
1,002,004 | private void loadNode53() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ServerConfigurationType_SupportedPrivateKeyFormats, new QualifiedName(0, "SupportedPrivateKeyFormats"), new LocalizedText("en", "SupportedPrivateKeyFormats"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteg... | this.nodeManager.addNode(node); |
536,229 | final ListResourceRecordSetsResult executeListResourceRecordSets(ListResourceRecordSetsRequest listResourceRecordSetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listResourceRecordSetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListResourceRecordSets"); |
641,490 | private static List<Pair<TregexPattern, TsurgeonPattern>> parseOperations(List<CoreNLPProtos.TsurgeonRequest.Operation> protoOperations) {<NEW_LINE>List<Pair<TregexPattern, TsurgeonPattern>> operations = new ArrayList<>();<NEW_LINE>// TODO: could add headfinder and basic category options<NEW_LINE>TregexPatternCompiler ... | tsurgeon = Tsurgeon.collectOperations(surgeries); |
1,089,891 | private void initComponents() {<NEW_LINE>jtfUserNotice = new JTextField(20);<NEW_LINE>jtfUserNotice.setEditable(false);<NEW_LINE>GridBagConstraints gbc_jtfUserNotice = new GridBagConstraints();<NEW_LINE>gbc_jtfUserNotice.gridwidth = 1;<NEW_LINE>gbc_jtfUserNotice.gridheight = 1;<NEW_LINE>gbc_jtfUserNotice.gridx = 0;<NEW... | 0, 0, 0, 5); |
956,705 | public ListStreamKeysResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListStreamKeysResult listStreamKeysResult = new ListStreamKeysResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe... | class).unmarshall(context)); |
181,322 | public void translate(GeyserSession session, PlayerInputPacket packet) {<NEW_LINE>ServerboundPlayerInputPacket playerInputPacket = new ServerboundPlayerInputPacket(packet.getInputMotion().getX(), packet.getInputMotion().getY(), packet.isJumping(), packet.isSneaking());<NEW_LINE>session.sendDownstreamPacket(playerInputP... | () - session.getLastVehicleMoveTimestamp(); |
1,121,642 | protected void configure() {<NEW_LINE>bind(Scheduler.class).to(MesosSchedulerImpl.class);<NEW_LINE>bind(org.apache.mesos.v1.scheduler.Scheduler.class).to(VersionedMesosSchedulerImpl.class);<NEW_LINE>bind(MesosSchedulerImpl.class).in(Singleton.class);<NEW_LINE>bind(MesosCallbackHandler.class).to(MesosCallbackHandlerImpl... | ).in(Singleton.class); |
428,016 | final DeleteLoginProfileResult executeDeleteLoginProfile(DeleteLoginProfileRequest deleteLoginProfileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteLoginProfileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
637,318 | public void characterDataChanged(final CharacterDataChangeEvent event) {<NEW_LINE>final ScriptableObject target = event.getCharacterData().getScriptableObject();<NEW_LINE>if (subtree_ || target == node_) {<NEW_LINE>final MutationRecord mutationRecord = new MutationRecord();<NEW_LINE>final Scriptable scope = getParentSc... | .getDocument().getPage(); |
231,229 | // end utilities<NEW_LINE>static void test_i386(byte[] code) {<NEW_LINE>fd_chains.clean();<NEW_LINE>System.out.printf("Emulate i386 code\n");<NEW_LINE>try {<NEW_LINE>// Initialize emulator in X86-32bit mode<NEW_LINE>Unicorn mu = new Unicorn(Unicorn.UC_ARCH_X86, Unicorn.UC_MODE_32);<NEW_LINE>// map 2MB memory for this e... | code.length, 0, 0); |
692,445 | public Document[] parse(final DigestURL location, final String mimeType, final String charset, final VocabularyScraper scraper, final int timezoneOffset, final InputStream source) throws Parser.Failure, InterruptedException {<NEW_LINE>Document[] docs = null;<NEW_LINE>File tempFile = null;<NEW_LINE>FileOutputStream out ... | System.currentTimeMillis(), "jar"); |
521,904 | private static boolean match(@Nonnull SingleChildDescriptor childDescriptor1, @Nonnull SingleChildDescriptor childDescriptor2, @Nonnull AbstractMatchingVisitor g, @Nonnull Set<PsiElementRole> skippedRoles, @Nullable DuplicatesProfile duplicatesProfile) {<NEW_LINE>if (childDescriptor1.getType() != childDescriptor2.getTy... | g.matchSonsOptionally(element1, element2); |
646,636 | public Object visit(ASTVariableDeclaration node, Object data) {<NEW_LINE>String variableName = node.getImage();<NEW_LINE>ASTBlockStatement variableContext = node.getFirstParentOfType(ASTBlockStatement.class);<NEW_LINE>if (variableContext == null) {<NEW_LINE>// if there is no parent BlockStatement, e.g. in triggers<NEW_... | potentialUsages = new ArrayList<>(); |
357,255 | public static List<PageInfo> findLayerPages(CssContext c, Layer layer, List<PageBox> pages) {<NEW_LINE>PageFinder finder = new PageFinder(pages);<NEW_LINE>Rectangle bounds = findLayerRect(c, layer);<NEW_LINE>Box container = layer.getMaster();<NEW_LINE>AffineTransform transform = container.getContainingLayer().getCurren... | int) bounds.getMaxY()); |
900,210 | private void imageAspectCalc(Image img) {<NEW_LINE>if (img == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int iW = img.getWidth();<NEW_LINE>int iH = img.getHeight();<NEW_LINE>Style s = getStyle();<NEW_LINE>int width = getWidth() - s.getHorizontalPadding();<NEW_LINE>int height = getHeight<MASK><NEW_LINE>float r2;<NEW_L... | () - s.getVerticalPadding(); |
1,698,408 | static HttpData convertRequest(ServiceRequestContext ctx, AggregatedHttpRequest request) {<NEW_LINE>ZipkinHttpCollector.metrics.incrementMessages();<NEW_LINE>String encoding = request.headers().get(HttpHeaderNames.CONTENT_ENCODING);<NEW_LINE>HttpData content = request.content();<NEW_LINE>if (!content.isEmpty() && encod... | ()).decode(content); |
1,238,220 | public static BufferedImage convertPalettetoRGB(BufferedImage src, BufferedImage dst) {<NEW_LINE>ColorModel pcm = src.getColorModel();<NEW_LINE>if (!(pcm instanceof PaletteColorModel || pcm instanceof IndexColorModel)) {<NEW_LINE>throw new UnsupportedOperationException("Cannot convert " + pcm.getClass().getName() + " t... | cmodel.createCompatibleSampleModel(width, height); |
254,476 | public void run(ApplicationArguments args) throws Exception {<NEW_LINE>String collectType = properties.getCollectType();<NEW_LINE>if (!properties.getCollect() || StringUtil.isBlank(collectType)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>log.info("Start monitoring the running status of dynamic thread pool.");<NEW_LINE>thre... | getCollectInterval(), TimeUnit.MILLISECONDS); |
1,477,164 | public String generateReadName(final ClusterData cluster, final Integer pairNumber) {<NEW_LINE>final StringBuilder builder = new StringBuilder(bufferSize);<NEW_LINE>builder.append(this.nameBase);<NEW_LINE>builder.append(encodeInt<MASK><NEW_LINE>builder.append(SEPARATOR);<NEW_LINE>builder.append(encodeInt(cluster.getTil... | (cluster.getLane())); |
1,288,381 | protected void configure() {<NEW_LINE>bind(Config.class).toInstance(config);<NEW_LINE>bind(BridgeAddressProvider.class).to(Preferences.class);<NEW_LINE>bind(SeedNodeRepository.class).to(DefaultSeedNodeRepository.class);<NEW_LINE>bind(NetworkFilter.class).to(CoreNetworkFilter.class).in(Singleton.class);<NEW_LINE>bind(Fi... | ).to(config.useDevMode); |
802,853 | public static BlockEncodingBuffer createBlockEncodingBuffers(DecodedBlockNode decodedBlockNode, ArrayAllocator bufferAllocator, boolean isNested) {<NEW_LINE>requireNonNull(decodedBlockNode, "decodedBlockNode is null");<NEW_LINE>requireNonNull(bufferAllocator, "bufferAllocator is null");<NEW_LINE>// decodedBlock could b... | return new LongArrayBlockEncodingBuffer(bufferAllocator, isNested); |
1,791,341 | static Map<TargetExpression, List<TargetExpression>> expandPackageTargets(BuildSystemProvider provider, BlazeContext context, WorkspacePathResolver pathResolver, Collection<WildcardTargetPattern> wildcardPatterns) {<NEW_LINE>List<ListenableFuture<Entry<TargetExpression, List<TargetExpression>>>> futures = Lists.newArra... | immutableEntry(pattern.originalPattern, expandedTargets); |
1,059,968 | protected void initAttrs(float density) {<NEW_LINE>super.initAttrs(density);<NEW_LINE>attrsPT = new RenderingLineAttributes("publicTransportLine");<NEW_LINE>attrsPT.defaultWidth = (int) (12 * density);<NEW_LINE>attrsPT.defaultWidth3 = (int) (7 * density);<NEW_LINE>attrsPT.defaultColor = ContextCompat.getColor(view.getC... | paint3.setColor(Color.WHITE); |
14,166 | private void checkAdd(Var var, Node node, boolean parentOnly) {<NEW_LINE>if (!CHECKING)<NEW_LINE>return;<NEW_LINE>if (var == null)<NEW_LINE>throw new NullPointerException("check(" + var + ", " + node + "): null var");<NEW_LINE>if (node == null)<NEW_LINE>throw new NullPointerException("check(" + var + ", " + node + "): ... | .stringForNode(node) + "'"); |
797,304 | void update_route(Business business, List<WrapRoute> wraps, Process process) throws Exception {<NEW_LINE>List<String> ids = business.route().listWithProcess(process.getId());<NEW_LINE>List<Route> os = business.entityManagerContainer().list(Route.class, ids);<NEW_LINE>for (Route o : os) {<NEW_LINE>if (null == jpaInWrapL... | setProcess(process.getId()); |
161,649 | protected void initModel() {<NEW_LINE>PageManager pageManager = resource.getResourceResolver().adaptTo(PageManager.class);<NEW_LINE>if (pageManager == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Page page = pageManager.getContainingPage(resource);<NEW_LINE>while (page != null) {<NEW_LINE><MASK><NEW_LINE>if (contentRes... | Resource contentResource = page.getContentResource(); |
1,017,544 | default void dispatchResized(Rect frame) {<NEW_LINE>Rect emptyRect = new Rect(0, 0, 0, 0);<NEW_LINE>int apiLevel = RuntimeEnvironment.getApiLevel();<NEW_LINE>if (apiLevel <= Build.VERSION_CODES.JELLY_BEAN) {<NEW_LINE>dispatchResized(frame.width(), frame.height(), emptyRect, emptyRect, true, null);<NEW_LINE>} else if (a... | view.DisplayCutout.ParcelableWrapper()); |
1,742,497 | public void displayRequest(RequestContainer request) {<NEW_LINE>if (!(request instanceof RestRequestContainer))<NEW_LINE>throw new IllegalArgumentException("Other request types not yet supported");<NEW_LINE>RestRequestContainer restRequest = (RestRequestContainer) request;<NEW_LINE>urlBinding.bindTo(requestUrl.textProp... | parseQueryParams(requestUrl.getText()); |
1,774,385 | public int send(final MarsTaskWrapper taskWrapper, Bundle taskProperties) throws RemoteException {<NEW_LINE>final StnLogic.Task _task = new StnLogic.Task(StnLogic.Task.EShort, 0, "", null);<NEW_LINE>// Set host & cgi path<NEW_LINE>final String host = taskProperties.getString(MarsTaskProperty.OPTIONS_HOST);<NEW_LINE>fin... | getBoolean(MarsTaskProperty.OPTIONS_CHANNEL_SHORT_SUPPORT, true); |
380,558 | synchronized void keepAlive() {<NEW_LINE>if (!ftpClient.isConnected()) {<NEW_LINE>LOGGER.log(Level.FINE, "Ending keep-alive (NOOP) for {0}, not connected", configuration.getHost());<NEW_LINE>keepAliveTask.cancel();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>LOGGER.log(Level.FINE, "Keep-alive (NOOP) for {0}", c... | getErr().println(message); |
380,653 | public ClusterState execute(ClusterState currentState) {<NEW_LINE>final SnapshotDeletionsInProgress deletionsInProgress = currentState.custom(SnapshotDeletionsInProgress.TYPE, SnapshotDeletionsInProgress.EMPTY);<NEW_LINE>boolean changed = false;<NEW_LINE>final List<SnapshotDeletionsInProgress.Entry> remainingEntries = ... | >(remainingEntries.size()); |
907,740 | public static QueryMetrics createFromDelimitedStringAndClientSideMetrics(String delimitedString, ClientSideMetrics clientSideMetrics, String activityId, String indexUtilizationInfoJSONString) {<NEW_LINE>HashMap<String, Double> metrics = QueryMetricsUtils.parseDelimitedString(delimitedString);<NEW_LINE>double indexHitRa... | activities = new ArrayList<>(); |
283,653 | // delete.<NEW_LINE>@PUT<NEW_LINE>@Path("/delete")<NEW_LINE>@Produces("application/json")<NEW_LINE>public Response delete(@Context HttpServletRequest httpServletRequest, @Context final HttpServletResponse httpServletResponse, final DeleteForm deleteForm) {<NEW_LINE>final InitDataObject initData = new WebResource.InitBu... | )))).build(); |
166,056 | private JavacNode generateBuilderAbstractClass(SuperBuilderJob job, JCExpression superclassBuilderClass, List<JCExpression> superclassTypeParams, String classGenericName, String builderGenericName) {<NEW_LINE>JavacTreeMaker maker = job.parentType.getTreeMaker();<NEW_LINE>JCModifiers mods = maker.Modifiers(Flags.STATIC ... | job.toName(classGenericName))); |
1,199,884 | private static JWSHeader convert(JwsHeader headers) {<NEW_LINE>JWSHeader.Builder builder = new JWSHeader.Builder(JWSAlgorithm.parse(headers.getAlgorithm().getName()));<NEW_LINE>if (headers.getJwkSetUrl() != null) {<NEW_LINE>builder.jwkURL(convertAsURI(JoseHeaderNames.JKU, headers.getJwkSetUrl()));<NEW_LINE>}<NEW_LINE>M... | String x509SHA256Thumbprint = headers.getX509SHA256Thumbprint(); |
635,336 | static List<CommentAnnotation> parse(String comment) {<NEW_LINE>// TODO(b/139159612): This is reinventing a large part of JSDocInfoParser. We should<NEW_LINE>// try to consolidate as much as possible. This requires several steps:<NEW_LINE>// 1. Make all the annotations we look for first-class in JSDocInfo<NEW_LINE>//... | name = matcher.group(ANNOTATION_NAME_GROUP); |
1,322,606 | public void testCreateAndCancelBeforeExpiration() {<NEW_LINE>try {<NEW_LINE>svExpiredTimerInfos.clear();<NEW_LINE>// start user tran so that the create and cancel are in the same tx<NEW_LINE>UserTransaction ut = null;<NEW_LINE>try {<NEW_LINE>ut = (UserTransaction) new InitialContext().lookup("java:comp/UserTransaction"... | AnnotationTxLocal.DURATION + AnnotationTxLocal.BUFFER); |
467,795 | public static ClientMessage encodeRequest(java.lang.String name, java.util.UUID txnId, long threadId, com.hazelcast.internal.serialization.Data key) {<NEW_LINE>ClientMessage clientMessage = ClientMessage.createForEncode();<NEW_LINE>clientMessage.setRetryable(false);<NEW_LINE>clientMessage.setOperationName("Transactiona... | initialFrame.content, REQUEST_TXN_ID_FIELD_OFFSET, txnId); |
519,030 | // Reads the prstatus structure.<NEW_LINE>private IOSThread readThread(DataEntry entry) throws IOException {<NEW_LINE>_reader.seek(entry.offset);<NEW_LINE>// signalNumber<NEW_LINE>_signalNumber = _reader.readInt();<NEW_LINE>// Ignore code<NEW_LINE>_reader.readInt();<NEW_LINE>// Ignore errno<NEW_LINE>_reader.readInt();<... | , Long.toString(stimeSec)); |
1,031,910 | public boolean onMapClick(@NonNull LatLng point) {<NEW_LINE>// Reset the lists once enough LatLngQuad points have been tapped<NEW_LINE>if (boundsFeatureList.size() == 4) {<NEW_LINE>boundsFeatureList = new ArrayList<>();<NEW_LINE>boundsCirclePointList = new ArrayList<>();<NEW_LINE>}<NEW_LINE>boundsFeatureList.add(Featur... | latLng1, latLng2, latLng3, latLng4); |
442,120 | private static List<PropertyShape> findPropertyShapes(Set<Node> traversed, Map<Node, Shape> parsed, Graph shapesGraph, Node shapeNode) {<NEW_LINE>List<Triple> propertyTriples = G.find(shapesGraph, shapeNode, SHACL.property, null).toList();<NEW_LINE>List<PropertyShape> propertyShapes = new ArrayList<>();<NEW_LINE>for (T... | + " sh:property " + displayStr(propertyShape)); |
1,542,526 | public Source unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Source source = new Source();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = c... | class).unmarshall(context)); |
707,372 | private EventHandler<ActionEvent> loadDmbsFromFileAction() {<NEW_LINE>return ev -> {<NEW_LINE>final FileChooser fileChooser = new FileChooser();<NEW_LINE>fileChooser.setTitle("Open Database File");<NEW_LINE>if (!"".equals(fieldFile.getText().trim())) {<NEW_LINE>final Path path = Paths.get(fieldFile.getText().trim());<N... | showOpenDialog(ui.getStage()); |
1,469,562 | static final <E extends EnumType> E[] enums(Class<? extends E> type) {<NEW_LINE>// Java implementation<NEW_LINE>if (Enum.class.isAssignableFrom(type)) {<NEW_LINE>return type.getEnumConstants();<NEW_LINE>} else // [#4427] Scala implementation<NEW_LINE>{<NEW_LINE>try {<NEW_LINE>// There's probably a better way to do this... | ("values").invoke(companion); |
1,297,826 | protected WebRtcServiceState handleGroupJoinedMembershipChanged(@NonNull WebRtcServiceState currentState) {<NEW_LINE>Log.i(tag, "handleGroupJoinedMembershipChanged():");<NEW_LINE>GroupCall groupCall = currentState.getCallInfoState().requireGroupCall();<NEW_LINE>PeekInfo peekInfo = groupCall.getPeekInfo();<NEW_LINE>if (... | , WebRtcUtil.isCallFull(peekInfo)); |
1,579,342 | protected JComponent createCenterPanel() {<NEW_LINE>final JPanel panel = new JPanel(new GridBagLayout());<NEW_LINE>GridBagConstraints gbc = new GridBagConstraints();<NEW_LINE>gbc.fill = GridBagConstraints.HORIZONTAL;<NEW_LINE>gbc.weightx = 1.0;<NEW_LINE>gbc.gridwidth = 2;<NEW_LINE>panel.add(super.createCenterPanel(), g... | panel.add(myCbSearchTextOccurences, gbc); |
372,906 | public void initSDK(MethodCall methodCall, MethodChannel.Result result) {<NEW_LINE>int sdkAppID = methodCall.argument("sdkAppID");<NEW_LINE>int logLevel = methodCall.argument("logLevel");<NEW_LINE>String <MASK><NEW_LINE>final String listenerUuid = methodCall.argument("listenerUuid");<NEW_LINE>// Global configuration<NE... | uiPlatform = methodCall.argument("uiPlatform"); |
1,770,705 | public void mouseClicked(MouseEvent e) {<NEW_LINE>int mods = e.getModifiersEx();<NEW_LINE>boolean shift = (mods & MouseEvent.SHIFT_DOWN_MASK) > 0;<NEW_LINE>boolean ctrl = (mods & MouseEvent.CTRL_DOWN_MASK) > 0;<NEW_LINE>boolean alt = shift & ctrl;<NEW_LINE>ctrl = ctrl & (!alt);<NEW_LINE>shift = shift & (!alt);<NEW_LINE... | e.getY()) - position; |
1,084,711 | public void showConfirmationSetNickname(final String alias) {<NEW_LINE>LinearLayout layout = new LinearLayout(this);<NEW_LINE>layout.setOrientation(LinearLayout.VERTICAL);<NEW_LINE>LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CON... | this, R.color.teal_300_teal_200); |
267,479 | final GetCustomRulePolicyResult executeGetCustomRulePolicy(GetCustomRulePolicyRequest getCustomRulePolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getCustomRulePolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | false), new GetCustomRulePolicyResultJsonUnmarshaller()); |
944,497 | final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | endClientExecution(awsRequestMetrics, request, response); |
1,055,048 | public static String qualifyStaticImport(String qualifiedName, SuggestedFix.Builder fix, VisitorState state) {<NEW_LINE>String name = qualifiedName.substring(qualifiedName.lastIndexOf(".") + 1);<NEW_LINE>AtomicBoolean foundConflict = new AtomicBoolean(false);<NEW_LINE>new TreeScanner<Void, Void>() {<NEW_LINE><NEW_LINE>... | fix, className) + "." + name; |
46,329 | public void paintMarginAreas(RenderingContext c, int additionalClearance, short mode) {<NEW_LINE>for (int i = 0; i < MARGIN_AREA_DEFS.length; i++) {<NEW_LINE>MarginAreaContainer container = _marginAreas[i];<NEW_LINE>if (container != null) {<NEW_LINE>currentMarginAreaContainer = container;<NEW_LINE>TableBox table = _mar... | startStructure(StructureType.RUNNING, table); |
1,503,664 | public static String streamAttachment(HttpServletResponse response, MAttachment attachment, int attachmentIndex) {<NEW_LINE>if (attachment == null)<NEW_LINE>return "No Attachment";<NEW_LINE>int realIndex = -1;<NEW_LINE>MAttachmentEntry[] entries = attachment.getEntries();<NEW_LINE>for (int i = 0; i < entries.length; i+... | " kB/sec - " + entry.getContentType()); |
807,408 | public int computeValue(PuzzleState state) {<NEW_LINE>int value = 0;<NEW_LINE><MASK><NEW_LINE>if (parent == null) {<NEW_LINE>for (int x = 0; x < DIMENSION; x++) {<NEW_LINE>for (int y = 0; y < DIMENSION; y++) {<NEW_LINE>int piece = state.getPiece(x, y);<NEW_LINE>if (piece == BLANK_TILE_VALUE) {<NEW_LINE>continue;<NEW_LI... | PuzzleState parent = state.getParent(); |
439,225 | private static void validateExtendedKeyUsage(X509Certificate[] certs, List<String> expectedEKU) throws GeneralSecurityException {<NEW_LINE>if (expectedEKU == null || expectedEKU.size() == 0) {<NEW_LINE>logger.debug("Extended Key Usage validation is not enabled.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<String> exten... | (s.toLowerCase())); |
1,183,575 | public void push(CollectorRegistry registry) throws IOException {<NEW_LINE>Socket s = new Socket(host, port);<NEW_LINE>BufferedWriter writer = new BufferedWriter(new PrintWriter(new OutputStreamWriter(s.getOutputStream(), Charset.forName("UTF-8"))));<NEW_LINE>Matcher m = INVALID_GRAPHITE_CHARS.matcher("");<NEW_LINE>lon... | .labelValues.get(i)); |
176,776 | final CreateImageBuilderResult executeCreateImageBuilder(CreateImageBuilderRequest createImageBuilderRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createImageBuilderRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | endClientExecution(awsRequestMetrics, request, response); |
1,819,288 | public static int runShellCommand(String cmd, Boolean useRoot) {<NEW_LINE>// Assume "failure" exit code if an error is caught.<NEW_LINE>int exitCode = 255;<NEW_LINE>Process shellProc = null;<NEW_LINE>DataOutputStream shellOut = null;<NEW_LINE>try {<NEW_LINE>shellProc = Runtime.getRuntime().exec(<MASK><NEW_LINE>shellOut... | (useRoot) ? "su" : "sh"); |
1,214,201 | private void handleResult(Protocol.Digest digest, BatchReadBlobsResponse.Response batchResponse, ImmutableCollection<Callable<WritableByteChannel>> writableByteChannels) throws IOException {<NEW_LINE>if (!Status.fromCodeValue(batchResponse.getStatus().getCode()).isOk()) {<NEW_LINE>throw new BuckUncheckedExecutionExcept... | digest()).toString(); |
12,476 | public List<IndexableField> createFields(ParseContext context, String name, RangeFieldMapper.Range range, boolean indexed, boolean docValued, boolean stored) {<NEW_LINE>assert range != null : "range cannot be null when creating fields";<NEW_LINE>List<IndexableField> fields = new ArrayList<>();<NEW_LINE>if (indexed) {<N... | , range.toString())); |
75,737 | private void loadingFinished(Runnable continuation) {<NEW_LINE>if (!myLoadingFinished.compareAndSet(false, true))<NEW_LINE>return;<NEW_LINE>myEditor.putUserData(ASYNC_LOADER, null);<NEW_LINE>if (myEditorComponent.isDisposed())<NEW_LINE>return;<NEW_LINE>if (continuation != null) {<NEW_LINE>continuation.run();<NEW_LINE>}... | ).updateNotifications(myTextEditor.myFile); |
107,368 | public void marshall(ASN1Subject aSN1Subject, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (aSN1Subject == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(aSN1Subject.getCountry(), COUNTRY_BINDING);<NEW_LIN... | aSN1Subject.getSerialNumber(), SERIALNUMBER_BINDING); |
1,836,377 | public int compareTo(TExternalCompaction other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetQueueName(), other.isSetQueueName());<NE... | ), other.isSetUpdates()); |
1,332,444 | protected synchronized SSLSocketFactory createSocketFactory(URL providerURL) throws IOException {<NEW_LINE>final String methodName = "createSocketFactory(URL)";<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {<NEW_LINE>Tr.entry(tc, methodName, providerURL);<NEW_LINE>}<NEW_LINE>final Map<Strin... | HashMap<String, Object>(); |
1,278,125 | public void mouseClicked(CellMouseEvent cellEvent) {<NEW_LINE>if (cellEvent.getCellValue() instanceof GuiCellModel && cellEvent.getMouseEvent().getButton() != MouseEvent.BUTTON1) {<NEW_LINE>cellEvent.getTable().setRowSelectionInterval(cellEvent.getRow(), cellEvent.getRow());<NEW_LINE>GuiCellModel cellModel = (GuiCellMo... | getAction().run()); |
981,422 | private LayoutFeeder createFeeder(LayoutComponent[] components, LayoutComponent targetContainer) {<NEW_LINE>assert components.length == 1 || (components.length > 1 && components[0].getParent() == null);<NEW_LINE>LayoutFeeder feeder = new LayoutFeeder(components, targetContainer, operations, dragger);<NEW_LINE>unresized... | compInt = comp.getLayoutInterval(dim); |
598,593 | final DeleteClientCertificateResult executeDeleteClientCertificate(DeleteClientCertificateRequest deleteClientCertificateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteClientCertificateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,426,702 | private void addEnumerations() {<NEW_LINE>Iterator<DefinedType> typeIter = schema.getTypes().iterator();<NEW_LINE>while (typeIter.hasNext()) {<NEW_LINE>DefinedType type = typeIter.next();<NEW_LINE>if (type instanceof EnumerationType) {<NEW_LINE>EEnum enumeration = eFactory.createEEnum();<NEW_LINE>enumeration.setName(ty... | String stringVal = values.next(); |
420,358 | /*<NEW_LINE>public static int tokenize(String text, String posModelPath, boolean lowercase, boolean useTargetNERRestriction, String sentIDPrefix,<NEW_LINE>boolean useTargetParserParentRestriction, String numThreads, boolean batchProcessSents, int numMaxSentencesPerBatchFile,<NEW_LINE>File saveSentencesSerDirFile, Map<S... | File(saveSentencesSerDirFile + "/sents_" + numFilesTillNow); |
1,186,798 | private void addKeyWord(String keyWord, int cursorPosition, boolean preBlankEnable) {<NEW_LINE>int cursorIndex = markdownEdit.getSelectionStart();<NEW_LINE>String curContent = markdownEdit.getText().toString();<NEW_LINE>String preStr = curContent.substring(0, cursorIndex);<NEW_LINE>String sufStr = curContent.substring(... | length() - 1) != '\n'; |
349,660 | public boolean update(DataObject data, Event event) throws NoTransitionException, ConcurrentOperationException {<NEW_LINE>DataObjectInStore obj = this.findObject(data, data.getDataStore());<NEW_LINE>if (obj == null) {<NEW_LINE>throw new CloudRuntimeException("can't find mapping in ObjectInDataStore table for: " + data)... | getDataStore().getRole()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.