idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
914,979 | protected PathConfig resolvePathConfig(PathConfig originalConfig, String path) {<NEW_LINE>if (originalConfig.hasPattern()) {<NEW_LINE>ProtectedResource resource = authzClient.protection().resource();<NEW_LINE>// search by an exact match<NEW_LINE>List<ResourceRepresentation> <MASK><NEW_LINE>// if exact match not found, ... | search = resource.findByUri(path); |
1,468,525 | public void start(LambdaContainerHandler handler) throws ContainerInitializationException {<NEW_LINE>initializationLatch = new CountDownLatch(1);<NEW_LINE>AsyncInitializer initializer = new AsyncInitializer(initializationLatch, handler);<NEW_LINE><MASK><NEW_LINE>initThread.start();<NEW_LINE>try {<NEW_LINE>long curTime ... | Thread initThread = new Thread(initializer); |
1,049,448 | public DescribeLogStreamsResult describeLogStreams(DescribeLogStreamsRequest describeLogStreamsRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeLogStreamsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
441,108 | private IntObjectMap<List<EdgeIteratorState>> buildVirtualEdgesAtRealNodes(final EdgeExplorer mainExplorer) {<NEW_LINE>final IntObjectMap<List<EdgeIteratorState>> virtualEdgesAtRealNodes = new GHIntObjectHashMap<>(queryOverlay.getEdgeChangesAtRealNodes().size());<NEW_LINE>queryOverlay.getEdgeChangesAtRealNodes().forEac... | >(edgeChanges.getAdditionalEdges()); |
1,376,958 | public void exportHTMLData(ExportDataDumper eDD, int depth) {<NEW_LINE>// NOI18N<NEW_LINE>StringBuffer result = new StringBuffer("<tr><td class=\"method\"><pre class=\"method\">.");<NEW_LINE>for (int i = 0; i < depth; i++) {<NEW_LINE>// NOI18N<NEW_LINE>result.append(".");<NEW_LINE>}<NEW_LINE>// NOI18N<NEW_LINE>result.a... | ).append(getTotalTime1()); |
965,683 | private RexNode createCaseExpression(RexInputRef nullInputRef, RexLiteral lit, RexNode rexNode) {<NEW_LINE>RexNode[] caseOperands = new RexNode[3];<NEW_LINE>// Construct a CASE expression to handle the null indicator.<NEW_LINE>//<NEW_LINE>// This also covers the case where a left correlated sub-query<NEW_LINE>// projec... | rexNode.getType(), lit); |
456,265 | public boolean isCousins(TreeNode root, int x, int y) {<NEW_LINE>Queue<TreeNode> queue = new LinkedList<>();<NEW_LINE>queue.offer(root);<NEW_LINE>while (!queue.isEmpty()) {<NEW_LINE>int size = queue.size();<NEW_LINE>for (int i = 0; i < size; i++) {<NEW_LINE><MASK><NEW_LINE>if (current.left != null) {<NEW_LINE>queue.off... | TreeNode current = queue.poll(); |
511,526 | public void onResourceReady(@NonNull Bitmap imageBitmap, @Nullable Transition<? super Bitmap> transition) {<NEW_LINE>try {<NEW_LINE>String title = file.getName() + "." + (page + 1) + ".jpg";<NEW_LINE>File oFile = new File(CacheZipUtils.ATTACHMENTS_CACHE_DIR, title);<NEW_LINE>oFile.getParentFile().mkdirs();<NEW_LINE>Str... | .get().fileToDelete = pathofBmp; |
355,917 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* com.sitewhere.grpc.service.DeviceManagementGrpc.DeviceManagementImplBase#<NEW_LINE>* createDeviceElementMapping(com.sitewhere.grpc.service.<NEW_LINE>* GCreateDeviceElementMappingRequest, io.grpc.stub.StreamObserver)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LIN... | this, DeviceManagementGrpc.getCreateDeviceElementMappingMethod()); |
1,240,969 | public com.amazonaws.services.dynamodbv2.model.ExportConflictException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.dynamodbv2.model.ExportConflictException exportConflictException = new com.amazonaws.services.dynamodbv2.model.ExportConflictException(null);<N... | JsonToken token = context.getCurrentToken(); |
335,024 | private void addNewInvestmentPlanButton(ToolBarManager toolBar) {<NEW_LINE>toolBar.add(new DropDown(Messages.InvestmentPlanMenuCreate, Images.PLUS, SWT.NONE, manager -> {<NEW_LINE>//<NEW_LINE>manager.//<NEW_LINE>add(//<NEW_LINE>new OpenDialogAction(this, Messages.InvestmentPlanTypeBuyDelivery).//<NEW_LINE>type(Investme... | (InvestmentPlan.Type.REMOVAL)); |
1,014,067 | public RegexPatternSetSummary unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RegexPatternSetSummary regexPatternSetSummary = new RegexPatternSetSummary();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i... | JsonToken token = context.getCurrentToken(); |
1,357,205 | static List<PipelineStageBase<?>> unpackPipelineStages(BatchOperator<?> batchOp, String meta) {<NEW_LINE>String[] clazzNames = JsonConverter.fromJson(JsonPath.read(meta, "$.clazz").toString(), String[].class);<NEW_LINE>String[] params0 = JsonConverter.fromJson(JsonPath.read(meta, "$.param").toString(), String[].class);... | ), String[].class); |
29,033 | public EvaluationMetricResult evaluate(Aggregations aggs) {<NEW_LINE>long[] tp = new long[thresholds.length];<NEW_LINE>long[] fp = new long[thresholds.length];<NEW_LINE>long[] tn = new long[thresholds.length];<NEW_LINE>long[] fn = new long[thresholds.length];<NEW_LINE>for (int i = 0; i < thresholds.length; i++) {<NEW_L... | i], Condition.TP)); |
1,567,213 | protected Discriminator resolveDiscriminator(JavaType type, ModelConverterContext context) {<NEW_LINE>io.swagger.v3.oas.annotations.media.Schema declaredSchemaAnnotation = AnnotationsUtils.<MASK><NEW_LINE>String disc = (declaredSchemaAnnotation == null) ? "" : declaredSchemaAnnotation.discriminatorProperty();<NEW_LINE>... | getSchemaDeclaredAnnotation(type.getRawClass()); |
937,221 | public Optional<String> toImageBlock(Image image) {<NEW_LINE>Path currentPath = directoryService.currentParentOrWorkdir();<NEW_LINE>IOHelper.createDirectories(currentPath.resolve("images"));<NEW_LINE>List<String> buffer = new LinkedList<>();<NEW_LINE>DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(asc... | .join("\n", buffer)); |
1,478,083 | private static Index indexJar(JarFile file, Set<String> removed) throws IOException {<NEW_LINE>Indexer indexer = new Indexer();<NEW_LINE>Enumeration<JarEntry> e = file.entries();<NEW_LINE>boolean <MASK><NEW_LINE>while (e.hasMoreElements()) {<NEW_LINE>JarEntry entry = e.nextElement();<NEW_LINE>if (removed != null && rem... | multiRelease = JarFiles.isMultiRelease(file); |
327,350 | public void draw(int textureId, float[] mvpMatrix, boolean rightEye) {<NEW_LINE>MeshData meshData = rightEye ? rightMeshData : leftMeshData;<NEW_LINE>if (meshData == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Configure shader.<NEW_LINE>float[] texMatrix;<NEW_LINE>if (stereoMode == C.STEREO_MODE_TOP_BOTTOM) {<NEW_L... | GLES20.glUniform1i(textureHandle, 0); |
683,541 | private void addGetTemplateResourceAsStream() {<NEW_LINE>if (_currClass.isFragment()) {<NEW_LINE>_sb.newLine(" @" + <MASK><NEW_LINE>_sb.newLine(" protected java.io.InputStream getTemplateResourceAsStream() {").newLine(" return new java.io.ByteArrayInputStream(\"" + ManEscapeUtil.escapeForJavaStringLiteral(... | DisableStringLiteralTemplates.class.getTypeName()); |
52,130 | public void revokeMessage(MethodCall methodCall, final MethodChannel.Result result) {<NEW_LINE>final String msgID = CommonUtil.getParam(methodCall, result, "msgID");<NEW_LINE>LinkedList<String> list = new LinkedList<>();<NEW_LINE>list.add(msgID);<NEW_LINE>V2TIMManager.getMessageManager().findMessages(list, new V2TIMVal... | (result, -1, "messages not found"); |
987,880 | private void updateports(Instance instance) {<NEW_LINE>byte inputbitwidth = instance.getAttributeValue(ATTR_INPUTS).byteValue();<NEW_LINE>byte outputbitwidth = instance.getAttributeValue(ATTR_OUTPUTS).byteValue();<NEW_LINE>Port[] ps = new Port[3];<NEW_LINE>ps[0] = new Port(0, 0, Port.INPUT, inputbitwidth);<NEW_LINE>ps[... | (S.getter("demultiplexerInTip")); |
1,093,150 | private String discoverAssociatedConnectionString() {<NEW_LINE>if (docDisplay_.getFileType().isSql()) {<NEW_LINE>String firstLine = docDisplay_.getLine(0);<NEW_LINE>Match match = RE_SQL_PREVIEW.match(firstLine, 0);<NEW_LINE>if (match == null)<NEW_LINE>return null;<NEW_LINE>return match.getGroup(1);<NEW_LINE>} else {<NE... | chunkHeader = docDisplay_.getLine(row); |
1,538,725 | private void dispatch() throws IOException {<NEW_LINE>int code = packetBuf.get();<NEW_LINE>MysqlCommand command = MysqlCommand.fromCode(code);<NEW_LINE>if (command == null) {<NEW_LINE>ErrorReport.report(ErrorCode.ERR_UNKNOWN_COM_ERROR);<NEW_LINE>ctx.getState().setError(ErrorCode.ERR_UNKNOWN_COM_ERROR, "Unknown command(... | warn("Unsupported command(" + command + ")"); |
890,092 | protected List<?> provideData() {<NEW_LINE>ArrayList<ConstellationEntity> data = new ArrayList<>();<NEW_LINE>try {<NEW_LINE>JSONArray jsonArray = new JSONArray(JSON);<NEW_LINE>for (int i = 0, n = jsonArray.length(); i < n; i++) {<NEW_LINE>JSONObject <MASK><NEW_LINE>ConstellationEntity entity = new ConstellationEntity()... | jsonObject = jsonArray.getJSONObject(i); |
492,277 | public void notifyOfExternallyReceivedMessage(Message message) throws IOException {<NEW_LINE>// copy-on-write<NEW_LINE>ArrayList listeners_ref = listeners;<NEW_LINE>boolean handled = false;<NEW_LINE>DirectByteBuffer[<MASK><NEW_LINE>int size = 0;<NEW_LINE>for (int i = 0; i < dbbs.length; i++) {<NEW_LINE>size += dbbs[i].... | ] dbbs = message.getData(); |
1,186,701 | public static void actionZoom(Lookup lookup, Object value) {<NEW_LINE>if (lookup == null)<NEW_LINE>return;<NEW_LINE>//<NEW_LINE>MQuery zoomQuery = lookup.getZoomQuery();<NEW_LINE>// If not already exist or exact value<NEW_LINE>if (zoomQuery == null || value != null) {<NEW_LINE>// ColumnName might be changed in MTab.val... | column.substring(0, p); |
1,204,102 | public DelegatedAdminAccount unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DelegatedAdminAccount delegatedAdminAccount = new DelegatedAdminAccount();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token =... | String currentParentElement = context.getCurrentParentElement(); |
525,969 | public static GetRegisterHistoryListResponse unmarshall(GetRegisterHistoryListResponse getRegisterHistoryListResponse, UnmarshallerContext context) {<NEW_LINE>getRegisterHistoryListResponse.setRequestId(context.stringValue("GetRegisterHistoryListResponse.RequestId"));<NEW_LINE>getRegisterHistoryListResponse.setErrorCod... | ("GetRegisterHistoryListResponse.Data[" + i + "].DrMac")); |
849,522 | public com.amazonaws.services.dataexchange.model.ValidationException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.dataexchange.model.ValidationException validationException = new com.amazonaws.services.dataexchange.model.ValidationException(null);<NEW_LINE>in... | JsonToken token = context.getCurrentToken(); |
366,627 | public void initialize() throws InvokerException {<NEW_LINE>ClassLoadContext emptyContext = new ClassLoadContext(contextId, importsManager.getUsedImports(List.of()));<NEW_LINE>Project project = getProject(emptyContext, DECLARATION_TEMPLATE_FILE);<NEW_LINE>PackageCompilation compilation = compile(project);<NEW_LINE>// R... | assert symbol.getTypeSymbol() instanceof FunctionTypeSymbol; |
822,107 | public void draw(PolygonRegion region, float x, float y) {<NEW_LINE>if (!drawing)<NEW_LINE>throw new IllegalStateException("PolygonSpriteBatch.begin must be called before draw.");<NEW_LINE>final short[] triangles = this.triangles;<NEW_LINE>final short[] regionTriangles = region.triangles;<NEW_LINE>final int regionTrian... | vertexIndex++] = textureCoords[i]; |
986,961 | private void updateFunctionDef(long sourceFunctionDefDtID, FunctionDefinition sourceFunctionDefDt, FunctionDefinition destDt, Map<Long, DataType> resolvedDataTypes) {<NEW_LINE>// NOTE: it is possible for the same function def to be updated more than once;<NEW_LINE>// therefor we must cleanup any previous obsolete fixup... | sourceVars[i].getDataType(); |
478,982 | private static boolean checkIsMapType(MapValue sourceVal, BRecordType sourceType, List<TypePair> unresolvedTypes, Type targetConstrainedType) {<NEW_LINE>for (Field field : sourceType.getFields().values()) {<NEW_LINE>if (!SymbolFlags.isFlagOn(field.getFlags(), SymbolFlags.READONLY)) {<NEW_LINE>if (!checkIsType(field.get... | sourceType.restFieldType, targetConstrainedType, unresolvedTypes); |
1,017,974 | protected void response(YamlContract yamlContract, Contract contract) {<NEW_LINE>if (contract.getResponse() != null) {<NEW_LINE>Response contractResponse = contract.getResponse();<NEW_LINE>ContentType contentType = evaluateClientSideContentType(contractResponse.getHeaders(), contractResponse.getBody());<NEW_LINE>YamlCo... | yamlContract.response.matchers.body); |
1,027,388 | final UpdateApplicationResult executeUpdateApplication(UpdateApplicationRequest updateApplicationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateApplicationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Requ... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
203,448 | private void notifyEvictionListener(Set<HashEntry<K, V>> evicted) {<NEW_LINE>// piggyback listener invocation on callers thread outside lock<NEW_LINE>if (evicted != null) {<NEW_LINE>Map<K, V> evictedCopy;<NEW_LINE>if (evicted.size() == 1) {<NEW_LINE>HashEntry<K, V> evictedEntry = evicted.iterator().next();<NEW_LINE>evi... | evictedEntry.key, evictedEntry.value); |
1,182,344 | private long dfs(int node, long flow) {<NEW_LINE>// At sink node, return augmented path flow.<NEW_LINE>if (node == t)<NEW_LINE>return flow;<NEW_LINE>// Mark the current node as visited.<NEW_LINE>visited[node] = visitedToken;<NEW_LINE>List<Edge> edges = graph[node];<NEW_LINE>for (Edge edge : edges) {<NEW_LINE>if (edge.r... | , edge.remainingCapacity())); |
803,448 | public void registerMetrics(MetricsCollector metricsCollector) {<NEW_LINE>SystemConfig systemConfig = (SystemConfig) SingletonRegistry.INSTANCE.getSingleton(SystemConfig.HERON_SYSTEM_CONFIG);<NEW_LINE>int interval = (int) systemConfig.getHeronMetricsExportInterval().getSeconds();<NEW_LINE>metricsCollector.registerMetri... | registerMetric("__gateway-sent-packets-size", sentPacketsSize, interval); |
1,704,752 | private void replacePrototypeMemberDeclaration(PrototypeMemberDeclaration declar, String alias) {<NEW_LINE>// x.prototype.y = ... -> t.y = ...<NEW_LINE>Node assignment = declar.node.getFirstChild();<NEW_LINE>Node lhs = assignment.getFirstChild();<NEW_LINE>Node name = NodeUtil.newQName(compiler, alias + "." + declar.m... | = declar.lhs.getFirstFirstChild(); |
1,220,807 | private void speciateAndCalculateSpawnLevels(final List<Genome> genomes) {<NEW_LINE>double maxScore = 0;<NEW_LINE>if (genomes.size() == 0) {<NEW_LINE>throw new EncogError("Can't speciate, the population is empty.");<NEW_LINE>}<NEW_LINE>final List<Species> speciesCollection = this.population.getSpecies();<NEW_LINE>if (s... | ).shouldMinimize(), maxScore); |
1,338,437 | private boolean buildVerticalHeader(COSDictionary cidFont) throws IOException {<NEW_LINE>VerticalHeaderTable vhea = ttf.getVerticalHeader();<NEW_LINE>if (vhea == null) {<NEW_LINE>Log.w("PdfBox-Android", "Font to be subset is set to vertical, but has no 'vhea' table");<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>float sc... | (COSInteger.get(v)); |
21,579 | public J visitAnnotation(AnnotationTree node, Space fmt) {<NEW_LINE>skip("@");<NEW_LINE>NameTree name = convert(node.getAnnotationType());<NEW_LINE>JContainer<Expression> args = null;<NEW_LINE>if (node.getArguments().size() > 0) {<NEW_LINE>Space argsPrefix = sourceBefore("(");<NEW_LINE>List<JRightPadded<Expression>> ex... | , t -> sourceBefore(")")); |
1,795,556 | private void printPlanarToInterleaved(AutoTypeImage imageIn, AutoTypeImage imageOut) {<NEW_LINE><MASK><NEW_LINE>String bandName = imageIn.getSingleBandName();<NEW_LINE>String type = imageIn.getAbbreviatedType() + "" + imageOut.getAbbreviatedType();<NEW_LINE>out.print("\t/**\n" + "\t * Converts a {@link Planar} into the... | String outputName = imageOut.getInterleavedName(); |
969,311 | public int[] cluster(DataSet dataSet, boolean parallel, int[] designations) {<NEW_LINE>try {<NEW_LINE>if (designations == null || designations.length < dataSet.size())<NEW_LINE>designations = new int[dataSet.size()];<NEW_LINE>boolean[] converged = new boolean[dataSet.size()];<NEW_LINE>Arrays.fill(converged, false);<NEW... | mkde.setUsingData(dataSet, parallel); |
1,250,944 | public void updateAllToRejected(SendDispatcher sendDispatcher) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "updateAllToRejected");<NEW_LINE>long start = _targetStream.getCompletedPrefix() + 1;<NEW_LINE>long end = _latestTick;<NEW_LINE>_targetStream.setCursor(star... | ) && (tr1 != tr2)); |
1,058,457 | public static ListMappCenterWorkspacesResponse unmarshall(ListMappCenterWorkspacesResponse listMappCenterWorkspacesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listMappCenterWorkspacesResponse.setRequestId(_ctx.stringValue("ListMappCenterWorkspacesResponse.RequestId"));<NEW_LINE>listMappCenterWorkspacesResponse.setRe... | ("ListMappCenterWorkspacesResponse.ListMappCenterWorkspaceResult.MappCenterWorkspaceList[" + i + "].UpdateTime")); |
589,561 | protected void handleVersionUpgrades(ConnectionPool pool) throws SQLException, InvalidSchemaError {<NEW_LINE>if (this.schemaVersion < 3) {<NEW_LINE>final Schema recaptured;<NEW_LINE>try (Connection conn = pool.getConnection();<NEW_LINE>SchemaCapturer sc = new SchemaCapturer(conn, sensitivity)) {<NEW_LINE>recaptured = s... | capture().findDatabase("mysql"); |
806,805 | // ---------------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public boolean isManaged() {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "isManaged");<NEW_LINE>boolean isManaged;<NEW_LINE>String imP = priv.getPropert... | this, tc, "isManaged", isManaged); |
628,313 | public static APIGetCandidateZonesClustersHostsForCreatingVmReply __example__() {<NEW_LINE>APIGetCandidateZonesClustersHostsForCreatingVmReply reply = new APIGetCandidateZonesClustersHostsForCreatingVmReply();<NEW_LINE>String zoneUuid = uuid();<NEW_LINE>String clusterUuid = uuid();<NEW_LINE>HostInventory hi = new HostI... | .setClusters(asList(cl)); |
143,680 | public void runSupport() {<NEW_LINE>List<Object[]> to_process;<NEW_LINE>synchronized (share_requests) {<NEW_LINE>to_process = new ArrayList<>(share_requests);<NEW_LINE>}<NEW_LINE>for (Object[] entry : to_process) {<NEW_LINE>try {<NEW_LINE>String key = (String) entry[0];<NEW_LINE>File file = (File) entry[1];<NEW_LINE>St... | = (Tag) entry[3]; |
83,661 | public DoubleArray presentValueSensitivityModelParamsHullWhite(ResolvedSwaption swaption, RatesProvider ratesProvider, HullWhiteOneFactorPiecewiseConstantParametersProvider hwProvider) {<NEW_LINE>validate(swaption, ratesProvider, hwProvider);<NEW_LINE>ResolvedSwap swap = swaption.getUnderlying();<NEW_LINE>LocalDate exp... | CashFlowEquivalentCalculator.cashFlowEquivalentSwap(swap, ratesProvider); |
969,263 | protected CompiledST load(String name) {<NEW_LINE>if (verbose)<NEW_LINE>System.out.println("STGroupDir.load(" + name + ")");<NEW_LINE>// must have parent; it's fully-qualified<NEW_LINE>String parent = Misc.getParent(name);<NEW_LINE>String prefix = Misc.getPrefix(name);<NEW_LINE>// if (parent.isEmpty()) {<NEW_LINE>// //... | loadTemplateFile(prefix, unqualifiedName + TEMPLATE_FILE_EXTENSION); |
1,067,402 | private <T> DataStreamSink<T> chainIcebergOperators() {<NEW_LINE>Preconditions.checkArgument(inputCreator != null, "Please use forRowData() or forMapperOutputType() to initialize the input DataStream.");<NEW_LINE>Preconditions.checkNotNull(tableLoader, "Table loader shouldn't be null");<NEW_LINE>DataStream<RowData> row... | UncheckedIOException("Failed to load iceberg table from table loader: " + tableLoader, e); |
1,820,808 | private static Map<String, Type> collectTypeVariableLookup(Type type) {<NEW_LINE>HashMap<String, Type> vars = new <MASK><NEW_LINE>if (null == type) {<NEW_LINE>return vars;<NEW_LINE>}<NEW_LINE>if (type instanceof ParameterizedType) {<NEW_LINE>ParameterizedType pType = (ParameterizedType) type;<NEW_LINE>Type[] actualType... | HashMap<String, Type>(); |
460,706 | public void performAPI(Node[] nodes) {<NEW_LINE>if (systemActionClass == null) {<NEW_LINE>throw new UnsupportedOperationException(getClass().toString() + " does not define SystemAction");<NEW_LINE>}<NEW_LINE>testNodes(nodes);<NEW_LINE>nodes[0].select();<NEW_LINE>for (int i = 1; i < nodes.length; i++) {<NEW_LINE>nodes[i... | nodes[0].select(); |
1,317,108 | private static void generateEnumDecoder(final StringBuilder sb, final int level, final Token fieldToken, final Token typeToken, final String name) throws IOException {<NEW_LINE>final String referencedName = typeToken.referencedName();<NEW_LINE>final String enumType = formatStructName(referencedName == null ? typeToken.... | indent(sb, level, "#[inline]\n"); |
1,378,770 | public ViewHolderMultipleBucket onCreateViewHolder(ViewGroup parent, int viewType) {<NEW_LINE>logDebug("onCreateViewHolder");<NEW_LINE>View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_multiple_bucket, parent, false);<NEW_LINE>ViewHolderMultipleBucket holder = new ViewHolderMultipleBucket(v);<NEW_... | findViewById(R.id.img_label); |
1,257,934 | protected static Map<OptionsKey, List<TransportAddress>> extractTransportAddresses(List<Map<String, Object>> listOfAddrProps) {<NEW_LINE>Map<OptionsKey, List<TransportAddress>> mapOfAddr = new HashMap<OptionsKey, List<TransportAddress>>();<NEW_LINE>for (Map<String, Object> addrProps : listOfAddrProps) {<NEW_LINE>short ... | ) addrProps.get(SUPPORTS)); |
875,964 | public ServiceResponse serviceImpl(Query call, HttpServletResponse response, Authorization rights, final JsonObjectWithDefault permissions) throws APIException {<NEW_LINE>SkillQuery skillQuery = SkillQuery.getParser().parse(call).requireOrThrow();<NEW_LINE><MASK><NEW_LINE>String group_name = skillQuery.getGroup();<NEW_... | String model_name = skillQuery.getModel(); |
595,719 | public static void main(String[] args) {<NEW_LINE>RSocketServer.create(SocketAcceptor.forRequestResponse(payload -> {<NEW_LINE>final String route = decodeRoute(payload.sliceMetadata());<NEW_LINE>logger.info("Received RequestResponse[route={}]", route);<NEW_LINE>payload.release();<NEW_LINE>if ("my.test.route".equals(rou... | , 7000)).block(); |
1,248,168 | private List<Path> calcPaths(int from, int to, EdgeRestrictions edgeRestrictions, BidirRoutingAlgorithm algo) {<NEW_LINE>StopWatch sw = new StopWatch().start();<NEW_LINE>List<Path> paths;<NEW_LINE>if (edgeRestrictions.getSourceOutEdge() != ANY_EDGE || edgeRestrictions.getTargetInEdge() != ANY_EDGE) {<NEW_LINE>paths = C... | ().getMillis() + " ms"; |
853,523 | public void visit(BLangSimpleVariable varNode, AnalyzerData data) {<NEW_LINE>analyzeTypeNode(varNode.typeNode, data);<NEW_LINE>analyzeExpr(varNode.expr, data);<NEW_LINE>if (Objects.isNull(varNode.symbol)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!Symbols.isPublic(varNode.symbol)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LIN... | tsymbol, false, varNode.pos); |
474,617 | public EvaluationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>EvaluationResult evaluationResult = new EvaluationResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina... | class).unmarshall(context)); |
170,724 | public ByteBuf encodeResponse(Request request, Response response) throws Exception {<NEW_LINE>BaiduRpcEncodePacket responsePacket = new BaiduRpcEncodePacket();<NEW_LINE>BaiduRpcProto.RpcMeta.Builder metaBuilder = BaiduRpcProto.RpcMeta.newBuilder();<NEW_LINE>metaBuilder.setCorrelationId(response.getCorrelationId());<NEW... | setRpcMeta(metaBuilder.build()); |
86,950 | private String convertLessThanOneThousand(int number) {<NEW_LINE>String soFar;<NEW_LINE>if (number % 100 < 20) {<NEW_LINE>// 19 et moins<NEW_LINE>soFar = numNames[number % 100];<NEW_LINE>number /= 100;<NEW_LINE>} else if ((number % 100 < 80) && (number % 100 > 70)) {<NEW_LINE>// 71 ->79 (soixante et onze )<NEW_LINE>soF... | - 1) % 10] + soFar; |
1,353,207 | public void end(String successMessage, String failureMessage, String language) throws SAXException {<NEW_LINE>ResultHandler resultHandler = emitter.startResult();<NEW_LINE>if (resultHandler != null) {<NEW_LINE>if (isIndeterminate()) {<NEW_LINE>resultHandler.startResult(Result.INDETERMINATE);<NEW_LINE>resultHandler.char... | 0, failureMessage.length()); |
365,047 | public void visit(BLangLocalVarRef astVarRefExpr) {<NEW_LINE>boolean variableStore = this.varAssignment;<NEW_LINE>this.varAssignment = false;<NEW_LINE>BSymbol varSymbol = astVarRefExpr.symbol;<NEW_LINE>if (variableStore) {<NEW_LINE>if (astVarRefExpr.symbol.name != Names.IGNORE) {<NEW_LINE>BIROperand varRef = new BIROpe... | env.symbolVarMap.get(varSymbol); |
1,012,852 | public com.squareup.okhttp.Call userGetDepositAddressAsync(String currency, final ApiCallback<String> callback) throws ApiException {<NEW_LINE>ProgressResponseBody.ProgressListener progressListener = null;<NEW_LINE>ProgressRequestBody.ProgressRequestListener progressRequestListener = null;<NEW_LINE>if (callback != null... | onUploadProgress(bytesWritten, contentLength, done); |
1,724,062 | private WorkspaceInfoFromDiff handleDiffs(ExtendedEventHandler eventHandler, boolean checkOutputFiles, boolean checkExternalRepositoryFiles, OptionsProvider options) throws InterruptedException, AbruptExitException {<NEW_LINE>TimestampGranularityMonitor tsgm = this.tsgm.get();<NEW_LINE>modifiedFiles.set(0);<NEW_LINE>nu... | modifiedFilesByPathEntry.put(pathEntry, modifiedFileSet); |
1,075,928 | public String changeSessionId() {<NEW_LINE>String oldId = delegate.getId();<NEW_LINE>String id = delegate.changeSessionId();<NEW_LINE>RBatch batch = redisson.createBatch(BatchOptions.defaults());<NEW_LINE>batch.getBucket(getExpiredKey(oldId)).remainTimeToLiveAsync();<NEW_LINE>batch.getBucket(getExpiredKey(oldId)).delet... | ()).putAllAsync(oldState); |
1,671,849 | public Pane createRootPane() {<NEW_LINE>routeCalculator = createRouteCalculator();<NEW_LINE>BorderPane root = new BorderPane();<NEW_LINE>ToolBar toolBar = new ToolBar();<NEW_LINE>Button clearBtn = new Button("Clear");<NEW_LINE>clearBtn.setOnAction(ev -> initialize());<NEW_LINE>taskCombo = new ComboBox<>();<NEW_LINE>tas... | statusLabel.setAlignment(Pos.CENTER); |
1,483,312 | public void updateErrorView(View dialogView) {<NEW_LINE>// Allow or disallow touches with other visible windows<NEW_LINE>LinearLayout manageSpace = dialogView.findViewById(R.id.root);<NEW_LINE>manageSpace.setFilterTouchesWhenObscured(PreferenceUtils.shouldDisallowTouchesWithOtherVisibleWindows(dialogView.getContext()))... | ).setVisibility(View.VISIBLE); |
786,156 | private void handle(APIRecoverDataVolumeMsg msg) {<NEW_LINE>thdf.chainSubmit(new ChainTask(msg) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String getSyncSignature() {<NEW_LINE>return syncThreadId;<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run(SyncTaskChain chain) {<NEW_LINE>refreshVO();<NEW_LINE>... | APIRecoverDataVolumeEvent(msg.getId()); |
512,733 | private void handleFileUploadValidationAndData(VaadinSession session, InputStream inputStream, StreamVariable streamVariable, String filename, String mimeType, long contentLength, ClientConnector connector, String variableName) throws UploadException {<NEW_LINE>session.lock();<NEW_LINE>try {<NEW_LINE>if (connector == n... | session, ui, connector, variableName); |
1,643,625 | public static BufferedImage toBufferedImage(Picture src, DemuxerTrackMeta.Orientation orientation) {<NEW_LINE>if (src.getColor() != ColorSpace.BGR) {<NEW_LINE>Picture bgr = Picture.createCropped(src.getWidth(), src.getHeight(), ColorSpace.BGR, src.getCrop());<NEW_LINE>if (src.getColor() == ColorSpace.RGB) {<NEW_LINE>ne... | transform.transform(src, bgr); |
355,170 | public Publisher<O> apply(Publisher<I> publisher) {<NEW_LINE>if (filter != null && !filter.test(publisher)) {<NEW_LINE>return (Publisher<O>) publisher;<NEW_LINE>}<NEW_LINE>if (publisher instanceof Fuseable) {<NEW_LINE>if (publisher instanceof Mono) {<NEW_LINE>return new MonoLiftFuseable<>(publisher, this);<NEW_LINE>}<N... | FluxLift<>(publisher, this); |
275,779 | public <W, R> Func1<HostUpdate<W, R>, Single<List<HostHolder<W, R>>>> newCollector() {<NEW_LINE>return new Func1<HostUpdate<W, R>, Single<List<HostHolder<W, R>>>>() {<NEW_LINE><NEW_LINE>private volatile List<HostHolder<W, R>> currentList = Collections.emptyList();<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Single<Lis... | remove(update.getHostHolder()); |
1,395,581 | void updateFromBuffer(BufferedImage bimg, Buffer buffer, PixelFormat format, int dstx, int dsty, int srcx, int srcy, int srcw, int srch, int srcscan) {<NEW_LINE>PixelGetter getter = getGetter(format);<NEW_LINE>PixelConverter converter = PixelUtils.getConverter(getter, setter);<NEW_LINE>if (PrismSettings.debug) {<NEW_LI... | dstx + ", " + dsty + "]"); |
487,347 | public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable final Bundle savedInstanceState) {<NEW_LINE>if (isNewInstance()) {<NEW_LINE>mFragmentView = inflater.inflate(R.layout.fragment_item, container, false);<NEW_LINE>mEmptyView = mFragmentView.findViewById(R.id.empty);<NEW_LINE>mRecyc... | findViewById(R.id.recycler_view); |
1,218,145 | public com.amazonaws.services.augmentedairuntime.model.ThrottlingException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.augmentedairuntime.model.ThrottlingException throttlingException = new com.amazonaws.services.augmentedairuntime.model.ThrottlingException(... | int originalDepth = context.getCurrentDepth(); |
1,842,298 | final GetConfigurationSetEventDestinationsResult executeGetConfigurationSetEventDestinations(GetConfigurationSetEventDestinationsRequest getConfigurationSetEventDestinationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getConfigurationSetEventDestinationsRequest);<NEW_LINE>AWSRequestMet... | (super.beforeMarshalling(getConfigurationSetEventDestinationsRequest)); |
687,196 | public void visitEnd() {<NEW_LINE>super.visitEnd();<NEW_LINE>// Ensure that a catch clause exists for each FFDCIgnore'd type.<NEW_LINE>Set<Type> expected = getIgnoredExceptionTypes();<NEW_LINE>if (expected != null) {<NEW_LINE>Set<Type> actual = this.visitedIgnoredExceptionTypes;<NEW_LINE>if (actual == null) {<NEW_LINE>... | "[Eclipse] " + unresolvedCompilationErrors + "If you haven't changed this class, consider cleaning and rebuilding.\n" + "If that doesn't help, investigate why Eclipse fails to compile the class."); |
1,067,745 | public void read(org.apache.thrift.protocol.TProtocol iprot, hasSystemPermission_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 (schemeField.... | .success = iprot.readBool(); |
911,437 | public void readConfigData(NBTTagCompound nbt) {<NEW_LINE>short <MASK><NEW_LINE>for (int i = 0; i < connections.length; i++) {<NEW_LINE>connections[i] = ((c >>> i) & 1) == 1;<NEW_LINE>}<NEW_LINE>for (int i = 0; i < statements.length; i++) {<NEW_LINE>String tName = "trigger[" + i + "]";<NEW_LINE>String aName = "action["... | c = nbt.getShort("connections"); |
1,497,548 | private void checkReactionsInMessage(int positionInAdapter, ViewHolderMessageChat holder, long chatId, AndroidMegaChatMessage megaMessage) {<NEW_LINE>if (holder == null) {<NEW_LINE>holder = (ViewHolderMessageChat) listFragment.findViewHolderForAdapterPosition(positionInAdapter);<NEW_LINE>if (holder == null) {<NEW_LINE>... | holder.contactMessageReactionsRecycler.columnWidth(maxSize); |
1,466,144 | private URL buildUrl(ProtocolConfig protocolConfig, Map<String, String> params) {<NEW_LINE><MASK><NEW_LINE>if (StringUtils.isEmpty(name)) {<NEW_LINE>name = DUBBO;<NEW_LINE>}<NEW_LINE>// export service<NEW_LINE>String host = findConfiguredHosts(protocolConfig, provider, params);<NEW_LINE>Integer port = findConfiguredPor... | String name = protocolConfig.getName(); |
1,524,180 | private void dumpMEtoMEConversations(final IncidentStream is) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "dumpMEtoMEConversations", is);<NEW_LINE>final ServerConnectionManager scm = ServerConnectionManager.getRef();<NEW_LINE>final <MASK><NEW_LINE>is.writeL... | List obc = scm.getActiveOutboundMEtoMEConversations(); |
1,762,726 | final DetectFacesResult executeDetectFaces(DetectFacesRequest detectFacesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(detectFacesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,833,940 | public static GetCompanyLegalCaseThreeResponse unmarshall(GetCompanyLegalCaseThreeResponse getCompanyLegalCaseThreeResponse, UnmarshallerContext _ctx) {<NEW_LINE>getCompanyLegalCaseThreeResponse.setRequestId(_ctx.stringValue("GetCompanyLegalCaseThreeResponse.RequestId"));<NEW_LINE>getCompanyLegalCaseThreeResponse.setCo... | (_ctx.integerValue("GetCompanyLegalCaseThreeResponse.Total")); |
489,482 | // ----- private methods -----<NEW_LINE>private void modifyEndNodes(final Principal user, final NodeInterface startNode, final NodeInterface endNode, final RelationshipInterface rel, final boolean isDeletion) {<NEW_LINE>// only modify if nodes are accessible<NEW_LINE>if (startNode != null && endNode != null) {<NEW_LINE... | ).remove(target, endNode); |
1,081,852 | public DeleteSmsChannelResult deleteSmsChannel(DeleteSmsChannelRequest deleteSmsChannelRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteSmsChannelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsReque... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
185,829 | public void marshall(DeploymentInfo deploymentInfo, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (deploymentInfo == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(deploymentInfo.getApplicationName(), APPLI... | deploymentInfo.getComputePlatform(), COMPUTEPLATFORM_BINDING); |
1,169,880 | /*<NEW_LINE>* put - insert and/or updates a session as appropriate<NEW_LINE>*/<NEW_LINE>public Object put(Object key, Object value) {<NEW_LINE>if (com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) {<NEW_LINE>LoggingUtil.SESSION_LOGGER_WAS.entering(metho... | BackedSession) superPut(id, backedSess); |
122,075 | void initialize(DemoFrame frame, JTabbedPane tabbedPane) {<NEW_LINE>this.frame = frame;<NEW_LINE>this.tabbedPane = tabbedPane;<NEW_LINE>// register F1, F2, ... keys to switch to Light, Dark or other LaFs<NEW_LINE>registerSwitchToLookAndFeel(KeyEvent.VK_F1, FlatLightLaf.class.getName());<NEW_LINE>registerSwitchToLookAnd... | FlatIntelliJLaf.class.getName()); |
267,077 | public void fillExecutableFromMapObject(final TypedMapWrapper<String, Object> wrappedMap) {<NEW_LINE>this.id = wrappedMap.getString(ID_PARAM);<NEW_LINE>this.type = wrappedMap.getString(TYPE_PARAM);<NEW_LINE>this.condition = wrappedMap.getString(CONDITION_PARAM);<NEW_LINE>this.conditionOnJobStatus = ConditionOnJobStatus... | attempt = ExecutionAttempt.fromObject(attemptObj); |
1,696,720 | public void upgradeTo(OsVersionTarget target) {<NEW_LINE>NodeList activeNodes = nodeRepository.nodes().list(Node.State.active).nodeType(target.nodeType());<NEW_LINE>int numberToUpgrade = Math.max(0, maxActiveUpgrades - activeNodes.changingOsVersionTo(target.version()).size());<NEW_LINE>NodeList nodesToUpgrade = activeN... | version().toFullString()); |
1,228,137 | private SessionFactory buildSessionFactory(HibernateBundle<?> bundle, PooledDataSourceFactory dbConfig, ConnectionProvider connectionProvider, Map<String, String> properties, List<Class<?>> entities) {<NEW_LINE>final BootstrapServiceRegistry bootstrapServiceRegistry = configureBootstrapServiceRegistryBuilder(new Bootst... | configuration.setProperty("jadira.usertype.autoRegisterUserTypes", "true"); |
1,836,967 | public File postFilesId(String fileId, FilesFileIdBody1 body, List<String> fields) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'fileId' is set<NEW_LINE>if (fileId == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'fileId' when ca... | = new ArrayList<Pair>(); |
1,222,984 | public Dimension preferredLayoutSize(Container parent) {<NEW_LINE>Insets insets = parent.getInsets();<NEW_LINE>int n = parent.getComponentCount();<NEW_LINE>computeComponentSize(parent);<NEW_LINE>int numRows = 1;<NEW_LINE>int numCols = 1;<NEW_LINE>if (orientation == ROW) {<NEW_LINE>int width = Math.max(maxSize - insets.... | top + insets.bottom + 2); |
111,163 | private void invokeInstantRename(final Lookup lookup, final EditorCookie ec) {<NEW_LINE>try {<NEW_LINE>JEditorPane target = ec.getOpenedPanes()[0];<NEW_LINE>final int caret = target.getCaretPosition();<NEW_LINE>String ident = Utilities.getIdentifier(Utilities.getDocument(target), caret);<NEW_LINE>if (ident == null) {<N... | setStatusBoldText(target, WARN_CannotPerformHere()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.