idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,673,583 | final SearchDashboardsResult executeSearchDashboards(SearchDashboardsRequest searchDashboardsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(searchDashboardsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | invoke(request, responseHandler, executionContext); |
1,151,214 | private void refreshASTNode() {<NEW_LINE>astNode = parserManager.getAST();<NEW_LINE>if (astNode == null) {<NEW_LINE>root = new NavigatorNode("", "", null, true);<NEW_LINE>fire();<NEW_LINE>} else {<NEW_LINE>List<ASTItem> path = new ArrayList<ASTItem>();<NEW_LINE>path.add(astNode);<NEW_LINE>List rootNodes = root.getNodes... | "Root", "", null, false); |
603,865 | public static void main(String[] args) throws Exception {<NEW_LINE>File out_dir = new File("target/compiled");<NEW_LINE>out_dir.mkdirs();<NEW_LINE>BeamLoader beamParser = new ErjangBeamDisLoader();<NEW_LINE>for (int i = 0; i < args.length; i++) {<NEW_LINE>if (args[i].endsWith(".beam")) {<NEW_LINE>File in = new File(arg... | substring(idx0 + 1, idx); |
545,937 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>MageObject <MASK><NEW_LINE>if (controller == null || sourceObject == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Card card = controller.getLibrary().getFromTop(game);<NEW_LINE>if (car... | sourceObject = source.getSourceObject(game); |
1,418,654 | public LogicalTable unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>LogicalTable logicalTable = new LogicalTable();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE... | String currentParentElement = context.getCurrentParentElement(); |
308,072 | private ListenableFuture<?> rollupOneFromRows(int rollupLevel, String agentRollupId, String syntheticMonitorId, long to, int adjustedTTL, Iterable<Row> rows) throws Exception {<NEW_LINE>double totalDurationNanos = 0;<NEW_LINE>long executionCount = 0;<NEW_LINE>ErrorIntervalCollector errorIntervalCollector = new ErrorInt... | .setInt(i++, adjustedTTL); |
185,078 | private void interpolateSegments(Vector<Double> f0) {<NEW_LINE>int i, n, interval;<NEW_LINE>double slope;<NEW_LINE>// check where there are zeros and interpolate<NEW_LINE>int[] index = new int[2];<NEW_LINE>double[] value = new double[2];<NEW_LINE>index[0] = 0;<NEW_LINE>value[0] = 0.0;<NEW_LINE>for (i = 0; i < f0.size()... | ] = f0.get(i); |
1,332,907 | final GetCanaryRunsResult executeGetCanaryRuns(GetCanaryRunsRequest getCanaryRunsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getCanaryRunsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | endClientExecution(awsRequestMetrics, request, response); |
752,651 | public GetIdentityVerificationAttributesResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>GetIdentityVerificationAttributesResult getIdentityVerificationAttributesResult = new GetIdentityVerificationAttributesResult();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>i... | int originalDepth = context.getCurrentDepth(); |
1,382,024 | public boolean copyFile(java.io.File sourceFile, java.io.File destinationFile) {<NEW_LINE>java.io.InputStream inputStream = null;<NEW_LINE>java.io.FileOutputStream outputStream = null;<NEW_LINE>boolean hasSucceeded = false;<NEW_LINE>// Validate arguments.<NEW_LINE>if ((sourceFile == null) || (destinationFile == null)) ... | read(byteBuffer, 0, bytesToCopy); |
29,140 | public static LevelZeroKernel compileSPIRVKernel(LevelZeroDevice device, LevelZeroContext context, String kernelName, String pathToBinary) {<NEW_LINE>ZeModuleHandle module = new ZeModuleHandle();<NEW_LINE>ZeModuleDesc moduleDesc = new ZeModuleDesc();<NEW_LINE>ZeBuildLogHandle buildLog = new ZeBuildLogHandle();<NEW_LINE... | result = levelZeroModule.zeModuleBuildLogDestroy(buildLog); |
575,049 | public void serialize(ClientTelemetryInfo telemetry, JsonGenerator generator, SerializerProvider serializerProvider) throws IOException {<NEW_LINE>generator.writeStartObject();<NEW_LINE>generator.writeStringField("timeStamp", telemetry.getTimeStamp());<NEW_LINE>generator.writeStringField("machineId", telemetry.getMachi... | getConnectionMode().toString()); |
98,221 | static Set<String> requires(Dictionary<?, ?> headers) {<NEW_LINE>Set<String> deps <MASK><NEW_LINE>String v = (String) headers.get(Constants.REQUIRE_BUNDLE);<NEW_LINE>if (v != null) {<NEW_LINE>// PackageAdmin.getRequiredBundles is not suitable for this - it is backwards.<NEW_LINE>// XXX try to follow the spec more close... | = new TreeSet<String>(); |
799,383 | public boolean onCreateOptionsMenu(Menu menu) {<NEW_LINE>// Inflate the menu; this adds items to the action bar if it is present.<NEW_LINE>getMenuInflater().inflate(R.menu.download, menu);<NEW_LINE>getMenuInflater().inflate(<MASK><NEW_LINE>this.optionMenu = menu;<NEW_LINE>setMenuVisibility(menu);<NEW_LINE>searchView = ... | R.menu.local_multichoice, menu); |
1,245,377 | private static VisualVMThreadsDataManager loadDataManager(InputStream is) throws IOException {<NEW_LINE>try (DataInputStream dis = new DataInputStream(is)) {<NEW_LINE>if (!THREADS_SNAPSHOT_HEADER.equals(dis.readUTF()))<NEW_LINE>// NOI18N<NEW_LINE>throw new IOException("Unknown snapshot format");<NEW_LINE>if (THREADS_SN... | long etime = dis.readLong(); |
177,415 | public synchronized void refresh(ApplicationMonitorConfig config) {<NEW_LINE>if (config != null && config.isDropinsMonitored()) {<NEW_LINE>// ApplicationMonitorConfig prevConfig = _config.getAndSet(config);<NEW_LINE>_config.set(config);<NEW_LINE>// keep track of the old monitored directory to see if we need to uninstal... | boolean createdPreviousDirectory = createdMonitoredDir.get(); |
1,082,598 | protected void initModel() {<NEW_LINE>title = currentPage.getTitle();<NEW_LINE>description = currentPage.getDescription();<NEW_LINE>if (StringUtils.isBlank(title)) {<NEW_LINE>title = currentPage.getName();<NEW_LINE>}<NEW_LINE>Tag[] tags = currentPage.getTags();<NEW_LINE>keywords = new String[tags.length];<NEW_LINE>int ... | String designPath = currentDesign.getPath(); |
1,031,567 | public World[] updates(@QueryParam("queries") String queriesParam) throws InterruptedException, ExecutionException {<NEW_LINE>final int queries = getQueries(queriesParam);<NEW_LINE>final World[] worlds = new World[queries];<NEW_LINE>Callable<World[]> callable = () -> {<NEW_LINE>Session session = emf.createEntityManager... | .class).load(randomValue); |
653,853 | private void createDispatcherCallingInitCtors() {<NEW_LINE>MethodMember[] ctors = typeDescriptor.getConstructors();<NEW_LINE>for (MethodMember ctor : ctors) {<NEW_LINE>String desc = ctor.getDescriptor();<NEW_LINE>MethodVisitor mv = cw.visitMethod(ACC_PUBLIC, "___init___", desc, null, null);<NEW_LINE>mv.visitFieldInsn(G... | INVOKEVIRTUAL, tReloadableType, "getLatestDispatcherInstance", "(Z)Ljava/lang/Object;"); |
1,741,752 | private void jaxrpc(String[] args, WsCompile wsCompile, Descriptor desc, ArrayList<String> files) throws Exception {<NEW_LINE>try {<NEW_LINE>if (logger.isLoggable(Level.FINE)) {<NEW_LINE>debug("---> ARGS = ");<NEW_LINE>for (int i = 0; i < args.length; i++) {<NEW_LINE>logger.fine(args[i] + "; ");<NEW_LINE>}<NEW_LINE>}<N... | String origPath = file.getPath(); |
1,622,913 | protected void configureForSourceSet(final SourceSet sourceSet, final Pmd task) {<NEW_LINE>task.setDescription("Run PMD analysis for " + sourceSet.getName() + " classes");<NEW_LINE>task.setSource(sourceSet.getAllJava());<NEW_LINE>ConventionMapping taskMapping = task.getConventionMapping();<NEW_LINE>ConfigurationContain... | getCompileClasspath().minus(compileClasspath); |
284,254 | Optional<Candidate> fromCandidateRecord(final I_MD_Candidate candidateRecordOrNull) {<NEW_LINE>if (candidateRecordOrNull == null || isNew(candidateRecordOrNull) || candidateRecordOrNull.getMD_Candidate_ID() <= 0) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>final CandidateBuilder builder = createAndInitializ... | = purchaseDetailOrNull == null ? 0 : 1; |
1,695,768 | public Optional<PlaceholderExpansion> register(@NotNull final Class<? extends PlaceholderExpansion> clazz) {<NEW_LINE>try {<NEW_LINE>final PlaceholderExpansion expansion = createExpansionInstance(clazz);<NEW_LINE>if (expansion == null) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>Objects.requireNonNull(<MASK... | expansion.getAuthor(), "The expansion author is null!"); |
121,470 | public <T extends JpaObject> List<T> listEqualAndEqualAndSequenceAfter(Class<T> clz, String oneEqualAttribute, Object oneEqualValue, String twoEqualAttribute, Object twoEqualValue, Integer count, String sequence) throws Exception {<NEW_LINE>EntityManager em = this.get(clz);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaB... | count : 100).getResultList(); |
601,523 | public ParameterGroupStatus unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ParameterGroupStatus parameterGroupStatus = new ParameterGroupStatus();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>Jso... | int originalDepth = context.getCurrentDepth(); |
64,395 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>this.getDialog().setCanceledOnTouchOutside(false);<NEW_LINE>View rootView = inflater.inflate(R.layout.dialog_fragment_release_note, container);<NEW_LINE>RL_release_note = (RelativeLayout) rootView.findViewById(R... | .getThemeMainColor(getActivity())); |
82,431 | public boolean signalBackgroundJobServerAlive(BackgroundJobServerStatus serverStatus) {<NEW_LINE>try (final Jedis jedis = getJedis()) {<NEW_LINE>final Map<String, String> valueMap = jedis.hgetAll(backgroundJobServerKey(keyPrefix, serverStatus));<NEW_LINE>if (valueMap.isEmpty()) {<NEW_LINE>throw new ServerTimedOutExcept... | (serverStatus.getProcessAllocatedMemory())); |
104,819 | public void execute() {<NEW_LINE>// remove entity if it is a composition<NEW_LINE>Object value = pickerField.getValue();<NEW_LINE>ValueSource valueSource = pickerField.getValueSource();<NEW_LINE>if (value != null && !value.equals(pickerField.getEmptyValue()) && valueSource instanceof EntityValueSource) {<NEW_LINE>Entit... | .getFrame().getFrameOwner(); |
713,393 | private Position decodeLocation2(DeviceSession deviceSession, ByteBuf buf, int type) {<NEW_LINE>Position position = new Position(getProtocolName());<NEW_LINE>position.setDeviceId(deviceSession.getDeviceId());<NEW_LINE>Jt600ProtocolDecoder.decodeBinaryLocation(buf, position);<NEW_LINE><MASK><NEW_LINE>position.set(Positi... | position.setValid(type != MSG_LOCATION_REPORT_BLIND); |
1,787,159 | public void generateCode() {<NEW_LINE>printPreamble();<NEW_LINE>printAllOps(AutoTypeImage.F32, AutoTypeImage.F32, false);<NEW_LINE>// printAllOps(AutoTypeImage.F32, AutoTypeImage.F32, false, true);<NEW_LINE>printAllOps(AutoTypeImage.F64, AutoTypeImage.F64, false);<NEW_LINE>printAllOps(AutoTypeImage.U8, AutoTypeImage.I1... | S32, AutoTypeImage.S32, false); |
1,280,459 | public int compareTo(HealthState o) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "compareTo", new Object<MASK><NEW_LINE>int equal = 0;<NEW_LINE>// A greater state value means a healthier state, so a<NEW_LINE>if (state > ((HealthStateTree) o).state)<NEW_LINE>// Thi... | [] { this, o }); |
1,328,367 | public GraphQLInterfaceType onInterface(GraphQLInterfaceType interfaceType, Parameters params) {<NEW_LINE>List<GraphQLFieldDefinition> startingFields = interfaceType.getFieldDefinitions();<NEW_LINE>List<GraphQLFieldDefinition> newFields = wireFields(interfaceType, interfaceType.getDefinition(), params);<NEW_LINE>GraphQ... | buildAstTree(newInterfaceType.getDefinition()); |
1,808,003 | public static PollTaskResultResponse unmarshall(PollTaskResultResponse pollTaskResultResponse, UnmarshallerContext context) {<NEW_LINE>pollTaskResultResponse.setRequestId(context.stringValue("PollTaskResultResponse.RequestId"));<NEW_LINE>pollTaskResultResponse.setTotalItemNum(context.integerValue("PollTaskResultRespons... | ("PollTaskResultResponse.Data[" + i + "].TaskNo")); |
614,448 | public void select(int mode) {<NEW_LINE>if (searchPoint == null) {<NEW_LINE>Toast.makeText(getActivity(), R.string.please_select_address, Toast.LENGTH_SHORT).show();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>AddressInformation ai = new AddressInformation();<NEW_LINE>PointDescription pointDescription = ai.getHistoryName();<N... | putExtra(SELECT_ADDRESS_POINT_INTENT_KEY, ai.objectName); |
623,105 | private String convertURItoURL(String uri) {<NEW_LINE>int indexScheme = uri.indexOf("://");<NEW_LINE>if (-1 != indexScheme) {<NEW_LINE>int indexQuery = uri.indexOf('?');<NEW_LINE>if (-1 == indexQuery || indexScheme < indexQuery) {<NEW_LINE>// already a full url<NEW_LINE>return uri;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>String... | = this.request.getScheme(); |
646,132 | private static void runBenchmarks(String clazz) {<NEW_LINE>try {<NEW_LINE>Class<?> task = Class.forName(clazz);<NEW_LINE>Constructor<?> ctor = task.getConstructor();<NEW_LINE>System.out.println("Benchmarking " + task.getClass());<NEW_LINE>Object o = ctor.newInstance();<NEW_LINE>LinkedList<Object> foo = new LinkedList<O... | BenchmarkHarness(foo).start(); |
1,019,687 | private static boolean hasJavaRuntime(ImageReference imageReference) {<NEW_LINE>if (null == imageReference || null == imageReference.image) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Iterator<?> spaces = imageReference.image.getAddressSpaces();<NEW_LINE>while ((null != spaces) && spaces.hasNext()) {<NEW_LINE>// searc... | > procs = space.getProcesses(); |
1,334,492 | public void validateOptionalJoin(Join join) {<NEW_LINE>for (ValidationCapability c : getCapabilities()) {<NEW_LINE>validateFeature(c, Feature.join);<NEW_LINE>validateFeature(c, join.isSimple() && join.isOuter(), Feature.joinOuterSimple);<NEW_LINE>validateFeature(c, join.isSimple(), Feature.joinSimple);<NEW_LINE>validat... | isLeft(), Feature.joinLeft); |
470,167 | public void updateRowId(String columnLabel, RowId x) throws SQLException {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>} catch (SQLException sqlX) {<NEW_LINE>FFDCFilter.processException(sqlX, getClass().getName() + ".updateRowId", "5107", this);<NEW_LINE>throw WSJdbcUtil.mapException(this, sqlX);<NEW_LINE>} catch (NullPoin... | rsetImpl.updateRowId(columnLabel, x); |
365,786 | public java.awt.Dimension query_imagesize(String cid, String tid) {<NEW_LINE>java.awt.Dimension dim = null;<NEW_LINE>try {<NEW_LINE>Socket imgdecSocket = new Socket(hostname, portNo);<NEW_LINE>DataOutputStream os = new DataOutputStream(imgdecSocket.getOutputStream());<NEW_LINE>DataInputStream is = new DataInputStream(i... | os.writeBytes(tid + "\n"); |
1,271,133 | private Map<String, double[]> prepareCustomBaseLines(Date start, Date end, String currentDomain, Map<String, CustomConfig> customConfigs) {<NEW_LINE>Map<String, double[]> baseLineCache = new HashMap<<MASK><NEW_LINE>Map<String, double[]> customBaseLines = new LinkedHashMap<String, double[]>();<NEW_LINE>int totalSize = (... | String, double[]>(); |
851,351 | public IBaseResource loadPackageAssetByUrl(FhirVersionEnum theFhirVersion, String theCanonicalUrl) {<NEW_LINE>String canonicalUrl = theCanonicalUrl;<NEW_LINE>int versionSeparator = canonicalUrl.lastIndexOf('|');<NEW_LINE>Slice<NpmPackageVersionResourceEntity> slice;<NEW_LINE>if (versionSeparator != -1) {<NEW_LINE>Strin... | ), theFhirVersion, canonicalUrl, canonicalVersion); |
579,105 | public com.amazonaws.services.lambda.model.InvalidSubnetIDException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.lambda.model.InvalidSubnetIDException invalidSubnetIDException = new com.amazonaws.services.lambda.model.InvalidSubnetIDException(null);<NEW_LINE>... | String currentParentElement = context.getCurrentParentElement(); |
1,756,406 | public Message<?> toMessage(MethodArgsHolder holder, @Nullable Map<String, Object> headersToMap) {<NEW_LINE>Object messageOrPayload = null;<NEW_LINE>boolean foundPayloadAnnotation = false;<NEW_LINE>Object[] arguments = holder.getArgs();<NEW_LINE>EvaluationContext methodInvocationEvaluationContext = createMethodInvocati... | payloadExpression.getValue(methodInvocationEvaluationContext, holder); |
161,186 | public static List<ReassignTopicStatusVO> convert2ReassignTopicStatusVOList(List<ReassignStatus> dtoList) {<NEW_LINE>if (ValidateUtils.isNull(dtoList)) {<NEW_LINE>return new ArrayList<>();<NEW_LINE>}<NEW_LINE>List<ReassignTopicStatusVO> voList = new ArrayList<>();<NEW_LINE>for (ReassignStatus elem : dtoList) {<NEW_LINE... | setMaxThrottle(elem.getMaxThrottle()); |
1,228,393 | public Authenticator authenticate(Vertx vertx, Map<String, String> config, MultiMap headerMap, Handler<AsyncResult<Void>> resultHandler) {<NEW_LINE>OAuth2FlowType flowType = getFlowType(config.get("flowType"));<NEW_LINE>JsonObject params = new JsonObject();<NEW_LINE>if (config.get("username") != null) {<NEW_LINE>params... | , config.get("username")); |
894,980 | public void buildModel() {<NEW_LINE>model = new Model("CostasArrays");<NEW_LINE>vars = model.intVarArray("v", n, <MASK><NEW_LINE>vectors = new IntVar[(n * (n - 1)) / 2];<NEW_LINE>for (int i = 0, k = 0; i < n; i++) {<NEW_LINE>for (int j = i + 1; j < n; j++, k++) {<NEW_LINE>IntVar d = model.intVar(model.generateName(), -... | 0, n - 1, false); |
1,260,276 | public void drawBackground(@Nonnull PoseStack matrix, int mouseX, int mouseY, float partialTicks) {<NEW_LINE>super.drawBackground(matrix, mouseX, mouseY, partialTicks);<NEW_LINE>backgroundType.render(this, matrix);<NEW_LINE>if (textScale == 1F) {<NEW_LINE>renderTextField(<MASK><NEW_LINE>} else {<NEW_LINE>// hacky. we s... | matrix, mouseX, mouseY, partialTicks); |
1,432,175 | public boolean addAttackingCreature(UUID creatureId, Game game, UUID playerToAttack) {<NEW_LINE>Set<UUID> possibleDefenders;<NEW_LINE>if (playerToAttack != null) {<NEW_LINE>possibleDefenders = new HashSet<>();<NEW_LINE>for (UUID objectId : defenders) {<NEW_LINE>Permanent <MASK><NEW_LINE>if (planeswalker != null && plan... | planeswalker = game.getPermanent(objectId); |
1,457,655 | public void doCallback(int code, Object obj) {<NEW_LINE>if (TextUtils.equals(CALL_ID_NO_CALLBACK, mCallId)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (obj instanceof JSValue) {<NEW_LINE>JSObject jsObject = new JSObject();<NEW_LINE>jsObject.set("result", code);<NEW_LINE>jsObject.set("moduleName", mModuleName);<NEW_LINE>... | hippyMap.pushInt("result", code); |
1,692,583 | final AttachThingPrincipalResult executeAttachThingPrincipal(AttachThingPrincipalRequest attachThingPrincipalRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(attachThingPrincipalRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
572,331 | private void traverseSubSelectedFields(ExecutableNormalizedField currentNormalisedField, ImmutableList.Builder<SelectedField> immediateFieldsBuilder, String qualifiedFieldPrefix, String simpleFieldPrefix, boolean firstLevel) {<NEW_LINE>List<ExecutableNormalizedField<MASK><NEW_LINE>for (ExecutableNormalizedField normali... | > children = currentNormalisedField.getChildren(); |
1,530,748 | public CreateAutoMLJobResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateAutoMLJobResult createAutoMLJobResult = new CreateAutoMLJobResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE... | int originalDepth = context.getCurrentDepth(); |
314,023 | public BufferedImage filter(final BufferedImage src, BufferedImage dst) {<NEW_LINE>final int width = src.getWidth();<NEW_LINE>final int height = src.getHeight();<NEW_LINE>final int type = src.getType();<NEW_LINE>final WritableRaster srcRaster = src.getRaster();<NEW_LINE>if (dst == null) {<NEW_LINE>dst = createCompatibl... | WritableRaster dstRaster = dst.getRaster(); |
849,364 | public void buildSearchJs(List<RpcApiDoc> apiDocList, ApiConfig config, JavaProjectBuilder javaProjectBuilder, String template, String outPutFileName) {<NEW_LINE>List<ApiErrorCode> errorCodeList = DocUtil.errorCodeDictToList(config);<NEW_LINE>Template tpl = BeetlTemplateUtil.getByName(template);<NEW_LINE>// directory t... | DocUtil.buildDictionary(config, javaProjectBuilder); |
1,663,387 | final DescribeLifecycleHookTypesResult executeDescribeLifecycleHookTypes(DescribeLifecycleHookTypesRequest describeLifecycleHookTypesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeLifecycleHookTypesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | invoke(request, responseHandler, executionContext); |
137,745 | private Multimap<TopicRepository, String> deleteEventTypeWithSubscriptions(final String eventType) {<NEW_LINE>try {<NEW_LINE>return transactionTemplate.execute(action -> {<NEW_LINE>eventTypeRepository.listEventTypesWithRowLock(Set.of(eventType), EventTypeRepository.RowLockMode.UPDATE);<NEW_LINE>final List<Subscription>... | deleteSubscription(s.getId()); |
1,659,372 | public int distance() {<NEW_LINE>// [row][col]<NEW_LINE>matrix = new int[searchTerm.length() + 1][searchText.length() + 1];<NEW_LINE>// first column: start-gap penalties for searchTerm<NEW_LINE>for (int i = 0; i <= searchTerm.length(); i++) matrix[i][0] = i * costIndel;<NEW_LINE>// first row: start-gap penalties for se... | ][j] = j * costIndel; |
415,074 | public void applyTo(CompilationUnit compilationUnit) {<NEW_LINE>compilationUnit.accept(new AbstractRewriter() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Expression rewriteBinaryExpression(BinaryExpression binaryExpression) {<NEW_LINE>Expression leftOperand = binaryExpression.getLeftOperand();<NEW_LINE>Expression ri... | Expression operand = prefixExpression.getOperand(); |
1,701,746 | final BatchDeleteImageResult executeBatchDeleteImage(BatchDeleteImageRequest batchDeleteImageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchDeleteImageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,790,765 | public static AnnotatedTypeMirror leastUpperBound(final AnnotatedTypeFactory typeFactory, final Iterable<AnnotatedTypeMirror> types) {<NEW_LINE>final Iterator<AnnotatedTypeMirror> typesIter = types.iterator();<NEW_LINE>if (!typesIter.hasNext()) {<NEW_LINE>throw new BugInCF("Calling LUB on empty list");<NEW_LINE>}<NEW_L... | .getBoxedType((AnnotatedPrimitiveType) nextType); |
319,446 | public static Bigram[] of(Corpus corpus, double p, int minFrequency) {<NEW_LINE>if (p <= 0.0 || p >= 1.0) {<NEW_LINE>throw new IllegalArgumentException("Invalid p = " + p);<NEW_LINE>}<NEW_LINE>double cutoff = chisq.quantile(p);<NEW_LINE>ArrayList<Bigram> <MASK><NEW_LINE>Iterator<smile.nlp.Bigram> iterator = corpus.bigr... | bigrams = new ArrayList<>(); |
119,445 | private OrientDBConfig buildConfig(final Map<OGlobalConfiguration, Object> iProperties) {<NEW_LINE>Map<String, Object> pars = new HashMap<>(preopenProperties);<NEW_LINE>if (iProperties != null) {<NEW_LINE>for (Map.Entry<OGlobalConfiguration, Object> par : iProperties.entrySet()) {<NEW_LINE>pars.put(par.getKey().getKey(... | CLIENT_CONNECTION_STRATEGY.getKey()) : null; |
175,236 | private ResponseSpec logoutUserRequestCreation() throws WebClientResponseException {<NEW_LINE>Object postBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>final Map<String, Object> pathParams = new HashMap<String, Object>();<NEW_LINE>final MultiValueMap<String, String> queryParams = new LinkedMultiValueMa... | final String[] localVarAccepts = {}; |
1,430,988 | public void deletePet(Long petId, String apiKey) throws TimeoutException, ExecutionException, InterruptedException, ApiException {<NEW_LINE>Object postBody = null;<NEW_LINE>// verify the required parameter 'petId' is set<NEW_LINE>if (petId == null) {<NEW_LINE>VolleyError error = new VolleyError("Missing the required pa... | HttpEntity httpEntity = localVarBuilder.build(); |
1,316,696 | private static void populateDetails(FhirContext theCtx, IBase theIssue, String theSeverity, String theDetails, String theLocation, String theCode) {<NEW_LINE>BaseRuntimeElementCompositeDefinition<?> issueElement = (BaseRuntimeElementCompositeDefinition<?>) theCtx.<MASK><NEW_LINE>BaseRuntimeChildDefinition detailsChild;... | getElementDefinition(theIssue.getClass()); |
192,267 | public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>contentView = View.inflate(getContext(), <MASK><NEW_LINE>itemsLayout = contentView.findViewById(R.id.items_layout);<NEW_LINE>if (savedInstanceState != null) {<NEW_LINE>chatId = saved... | R.layout.bottom_sheet_contact_attachment_item, null); |
752,491 | public void register(long uoid, SInternalServicePluginConfiguration internalService, final PluginConfiguration pluginConfiguration) {<NEW_LINE>name = internalService.getName();<NEW_LINE>ServiceDescriptor serviceDescriptor = StoreFactory.eINSTANCE.createServiceDescriptor();<NEW_LINE>serviceDescriptor.setProviderName("BI... | setName(internalService.getName()); |
621,325 | public List<ConfigObjectProperty> createProperties(Object instance, String prefix, Map<String, Object> parameters) {<NEW_LINE>List<ConfigObjectProperty> properties = new ArrayList<>();<NEW_LINE>JavaType javaType = TypeFactory.defaultInstance().constructType(instance.getClass());<NEW_LINE>BeanDescription beanDescription... | getAnnotated(), prefix, parameters); |
193,317 | public void fullRedraw() {<NEW_LINE>makeLayerElement();<NEW_LINE>// addCSSClasses();<NEW_LINE>SilhouettePlot silhouettesplot = silhouette.getSilhouettePlot(context);<NEW_LINE>String ploturi = silhouettesplot.getSVGPlotURI();<NEW_LINE>Element itag = svgp.svgElement(SVGConstants.SVG_IMAGE_TAG);<NEW_LINE>SVGUtil.setAtt(it... | )) / silhouettesplot.getHeight(); |
73,170 | public void processPayload(FrameReadProcessor frp) throws FrameSizeException {<NEW_LINE>// +---------------+<NEW_LINE>// |Pad Length? (8)| (only present if third flag bit is set)<NEW_LINE>// +---------------+-----------------------------------------------+<NEW_LINE>// |R| Promised Stream ID (31) ... | ) (nextPayloadByte & Constants.MASK_7F); |
1,835,126 | public void doCap(InvokeChainContext context) {<NEW_LINE>String storeKey = (String) context.get(InvokeChainConstants.CLIENT_SPAN_THREADLOCAL_STOREKEY);<NEW_LINE>// in the same thread<NEW_LINE>Span span = this.spanFactory.getRemoveSpanFromContext(storeKey);<NEW_LINE>if (span == null) {<NEW_LINE>// in async thread<NEW_LI... | ).toString(), responseState); |
511,490 | public List<String> batchSendMail(final List<Email> emailList) {<NEW_LINE>List<String> rtnList = new ArrayList<String>();<NEW_LINE>ExecutorService executor = Executors.newFixedThreadPool(DEFAULT_POOL_SIZE);<NEW_LINE>final CountDownLatch countDownLatch = new CountDownLatch(emailList.size());<NEW_LINE>List<Future<String>... | System.err.println("cancel non-finished tasks"); |
726,202 | // Starts bitcoind and bisq apps (seednode, arbnode, etc...)<NEW_LINE>private void startBackgroundProcesses(ExecutorService executor, CountDownLatch countdownLatch) throws InterruptedException, IOException {<NEW_LINE>log.info("Starting supporting apps {}", config.supportingApps.toString());<NEW_LINE>if (config.hasSuppo... | bitcoindTaskFuture = executor.submit(bitcoindTask); |
1,251,015 | public static DBTTaskRunStatus makeStatisticsStatus(DBCStatistics statistics) {<NEW_LINE>DBTTaskRunStatus taskResultStatus = new DBTTaskRunStatus();<NEW_LINE>if (statistics.getRowsFetched() > 0 || statistics.getRowsUpdated() > 0 || statistics.getStatementsCount() > 0) {<NEW_LINE>StringJoiner joiner = new StringJoiner("... | , statistics.getRowsFetched())); |
406,636 | public static String doHttpPut(final String url, final String requestBody) throws Exception {<NEW_LINE>try {<NEW_LINE>HttpClient client = HttpClientBuilder.create().build();<NEW_LINE>HttpPut httpPut = new HttpPut(url);<NEW_LINE>httpPut.setHeader(CONTENT_TYPE, APPLICATION_JSON);<NEW_LINE>StringEntity jsonEntity = null;<... | httpresponse = client.execute(httpPut); |
382,239 | public static Application read(final int marker, final String identifier, final DataInput data, final int length) throws IOException {<NEW_LINE>switch(marker) {<NEW_LINE>case JPEG.APP0:<NEW_LINE>// JFIF<NEW_LINE>if ("JFIF".equals(identifier)) {<NEW_LINE>return JFIF.read(data, length);<NEW_LINE>}<NEW_LINE>case JPEG.APP1... | AdobeDCT.read(data, length); |
1,380,451 | public void onClick(View v) {<NEW_LINE>Activity activity = getActivity();<NEW_LINE>if (activity != null) {<NEW_LINE>Context themedContext = UiUtilities.getThemedContext(activity, nightMode);<NEW_LINE>AlertDialog.Builder b <MASK><NEW_LINE>b.setTitle(R.string.favorite_category_name);<NEW_LINE>final EditText nameEditText ... | = new AlertDialog.Builder(themedContext); |
1,561,799 | public ClusterDescriptor createClusterDescriptor(String yarnConfDir, Configuration flinkConfig) {<NEW_LINE>if (StringUtils.isNotBlank(yarnConfDir)) {<NEW_LINE>try {<NEW_LINE>flinkConfig.setString(ConfigConstants.PATH_HADOOP_CONFIG, yarnConfDir);<NEW_LINE>FileSystem.initialize(flinkConfig, null);<NEW_LINE>SecurityUtils.... | YarnClient yarnClient = YarnClient.createYarnClient(); |
1,343,676 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see<NEW_LINE>* com.amazonaws.services.s3.AmazonS3#deleteObjects(com.amazonaws.services<NEW_LINE>* .s3.model.DeleteObjectsRequest)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public DeleteObjectsResult deleteObjects(DeleteObjectsRequest deleteObjectsRequest) {<NEW_LINE>final Request<D... | new S3RequesterChargedHeaderHandler<DeleteObjectsResponse>()); |
860,440 | private synchronized void showcasemenu(int option) {<NEW_LINE>if ((myShowcase != null) && (myShowcase.isShowing()))<NEW_LINE>return;<NEW_LINE>if (ShotStateStore.hasShot(option))<NEW_LINE>return;<NEW_LINE>try {<NEW_LINE>ProfileViewTarget target = null;<NEW_LINE>String title = "";<NEW_LINE>String message = "";<NEW_LINE>s... | myShowcase.setBackgroundColor(Color.TRANSPARENT); |
1,226,832 | public void onResponse(IndexMetadata indexMetaDataToImport) {<NEW_LINE>// This flag is checked at this point so that we always check that the supplied index UUID<NEW_LINE>// does correspond to a dangling index.<NEW_LINE>if (importRequest.isAcceptDataLoss() == false) {<NEW_LINE>importListener.onFailure(new IllegalArgume... | importListener.onResponse(AcknowledgedResponse.TRUE); |
1,704,828 | public static ChunkMetadata deserializeFrom(ByteBuffer buffer, TimeseriesMetadata timeseriesMetadata) {<NEW_LINE>ChunkMetadata chunkMetaData = new ChunkMetadata();<NEW_LINE>chunkMetaData.measurementUid = timeseriesMetadata.getMeasurementId();<NEW_LINE>chunkMetaData.tsDataType = timeseriesMetadata.getTSDataType();<NEW_L... | deserialize(buffer, chunkMetaData.tsDataType); |
538,923 | private boolean bodyMatches(BodyMatcher bodyMatcher, MatchDifference context, HttpRequest request) {<NEW_LINE>boolean bodyMatches;<NEW_LINE>if (httpRequest.getBody().getOptional() != null && httpRequest.getBody().getOptional() && request.getBody() == null) {<NEW_LINE>bodyMatches = true;<NEW_LINE>} else if (bodyMatcher ... | bodyMatcher, request.getBodyAsString()); |
593,891 | protected void configurePegasusSchemaSnapshotGeneration(Project project, SourceSet sourceSet, boolean isExtensionSchema) {<NEW_LINE>File schemaDir = isExtensionSchema ? project.file(getExtensionSchemaPath(project, sourceSet)) : project.file<MASK><NEW_LINE>if ((isExtensionSchema && SharedFileUtils.getSuffixedFiles(proje... | (getDataSchemaPath(project, sourceSet)); |
1,010,373 | private JToggleButton createDspButton(String dspType) {<NEW_LINE>JToggleButton dspButton = new JToggleButton();<NEW_LINE>dspButton.setMaximumSize(new java.awt<MASK><NEW_LINE>dspButton.setMinimumSize(new java.awt.Dimension(48, 48));<NEW_LINE>dspButton.setPreferredSize(new java.awt.Dimension(48, 48));<NEW_LINE>dspButton.... | .Dimension(48, 48)); |
1,406,521 | void read(WizardDescriptor settings) {<NEW_LINE>this.wizardDescriptor = settings;<NEW_LINE>// NOI18N<NEW_LINE>File projectLocation = (File) settings.getProperty("projdir");<NEW_LINE>((FolderList) this.sourcePanel).setProjectFolder(projectLocation);<NEW_LINE>((FolderList) this.testsPanel).setProjectFolder(projectLocatio... | ]) settings.getProperty("sourceRoot"); |
1,685,618 | public void actionPerformed(ActionEvent e) {<NEW_LINE>final var source = e.getSource();<NEW_LINE>if (source == editLayout) {<NEW_LINE>proj.setCurrentCircuit(circuit);<NEW_LINE>proj.getFrame().setEditorView(Frame.EDIT_LAYOUT);<NEW_LINE>} else if (source == editAppearance) {<NEW_LINE>proj.setCurrentCircuit(circuit);<NEW_... | ProjectCircuitActions.doSetAsMainCircuit(proj, circuit); |
752,091 | public void register(StepListener listener) {<NEW_LINE>if (listener instanceof StepExecutionListener) {<NEW_LINE>this.stepListener.register((StepExecutionListener) listener);<NEW_LINE>}<NEW_LINE>if (listener instanceof ChunkListener) {<NEW_LINE>this.chunkListener.register((ChunkListener) listener);<NEW_LINE>}<NEW_LINE>... | this.itemWriteListener.register(itemWriteListener); |
1,755,379 | public static RestoreModelResponse unmarshall(RestoreModelResponse restoreModelResponse, UnmarshallerContext _ctx) {<NEW_LINE>restoreModelResponse.setRequestId(_ctx.stringValue("RestoreModelResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>data.setAppId(_ctx.stringValue("RestoreModelResponse.Data.AppId")... | (_ctx.stringValue("RestoreModelResponse.Data.ModelType")); |
1,093,411 | public boolean checkTrigger(GameEvent event, Game game) {<NEW_LINE>int damage = event.getAmount();<NEW_LINE>Player player1 = (Player) game.getState().getValue(this.getSourceId() + "_player1");<NEW_LINE>Player player2 = (Player) game.getState().getValue(this.getSourceId() + "_player2");<NEW_LINE>if (player1 == null || p... | Effect effect = new LoseLifeTargetEffect(damage); |
1,623,646 | private void criar_usuario_servidor(String url, String username, InetAddress ip) throws Exception {<NEW_LINE><MASK><NEW_LINE>HttpPost httppost = new HttpPost(url + "/api/users");<NEW_LINE>DateFormat df = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss");<NEW_LINE>Date today = Calendar.getInstance().getTime();<NEW_LINE>String... | HttpClient httpclient = HttpClients.createDefault(); |
1,707,091 | final ListAvailableResourceMetricsResult executeListAvailableResourceMetrics(ListAvailableResourceMetricsRequest listAvailableResourceMetricsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listAvailableResourceMetricsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
317,892 | public static DescribeDataCountsResponse unmarshall(DescribeDataCountsResponse describeDataCountsResponse, UnmarshallerContext context) {<NEW_LINE>describeDataCountsResponse.setRequestId(context.stringValue("DescribeDataCountsResponse.RequestId"));<NEW_LINE>List<DataCount> dataCountList = new ArrayList<DataCount>();<NE... | ("DescribeDataCountsResponse.DataCountList[" + i + "].Column.Count")); |
982,873 | private void callothersubr(int num) {<NEW_LINE>if (num == 0) {<NEW_LINE>// end flex<NEW_LINE>isFlex = false;<NEW_LINE>if (flexPoints.size() < 7) {<NEW_LINE>Log.w("PdfBox-Android", "flex without moveTo in font " + fontName + <MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// reference point is relative to start point<NEW_LI... | ", glyph " + glyphName + ", command " + commandCount); |
1,193,058 | private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, String serviceName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<N... | ), serviceName, accept, context); |
228,428 | public static void read(InputStream inputStream, FeedClient feedClient, AtomicInteger numSent) throws Exception {<NEW_LINE>SAXParserFactory parserFactory = SAXParserFactory.newInstance();<NEW_LINE>// XXE prevention:<NEW_LINE>parserFactory.setFeature("http://xml.org/sax/features/external-general-entities", false);<NEW_L... | SAXParser parser = parserFactory.newSAXParser(); |
1,775,395 | public void untagLogGroup(UntagLogGroupRequest untagLogGroupRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagLogGroupRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<UntagLog... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
537,034 | public static String amount(Currency currency, double value) {<NEW_LINE>BigDecimal dec = BigDecimal.valueOf(value).stripTrailingZeros();<NEW_LINE>String symbol <MASK><NEW_LINE>if (dec.scale() <= -3) {<NEW_LINE>if (Math.abs(dec.longValue()) >= 1_000_000L) {<NEW_LINE>dec = dec.movePointLeft(6);<NEW_LINE>return symbol + d... | = currency.getCode() + " "; |
1,514,364 | Map<List<TableId>, Long> calculateUsage() {<NEW_LINE>// Bitset of tables that contain a file and total usage by all files that share that usage<NEW_LINE>Map<List<Integer>, Long> usage = new HashMap<>();<NEW_LINE>if (log.isTraceEnabled()) {<NEW_LINE>log.trace("fileSizes {}", fileSizes);<NEW_LINE>}<NEW_LINE>// For each f... | externalKey = new ArrayList<>(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.