idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,338,474 | private static void createMultiTimeseries() throws IoTDBConnectionException, StatementExecutionException {<NEW_LINE>if (!session.checkTimeseriesExists("root.sg1.d2.s1") && !session.checkTimeseriesExists("root.sg1.d2.s2")) {<NEW_LINE>List<String> paths = new ArrayList<>();<NEW_LINE>paths.add("root.sg1.d2.s1");<NEW_LINE>... | attributes.put("maxValue", "100"); |
624,103 | public void delete(final FileLock lock, ProvidedExtensions.DeleteHandler deleteHandler) throws IOException {<NEW_LINE>final File f = getFileName().getFile();<NEW_LINE>final FolderObj existingParent = getExistingParent();<NEW_LINE>final ChildrenCache childrenCache = (existingParent != null) ? existingParent.getChildrenC... | .getNameExt(f), true); |
1,370,370 | public boolean visit(ClassInstanceCreation node) {<NEW_LINE>ASTNode expression = getChildNode(node, ClassInstanceCreation.EXPRESSION_PROPERTY);<NEW_LINE>if (expression != null) {<NEW_LINE>expression.accept(this);<NEW_LINE>this.result.append('.');<NEW_LINE>}<NEW_LINE>// $NON-NLS-1$<NEW_LINE>this.result.append("new ");<N... | this.result.append(')'); |
1,265,500 | public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>if (mBottomSheetDialog == null) {<NEW_LINE>mBottomSheetDialog = (BottomSheetDialog) super.onCreateDialog(savedInstanceState);<NEW_LINE>View inflate = View.inflate(getActivity(), R.layout.livepusher_fragment_setting, null);<NEW_LINE>initViews(inflate);<N... | .LayoutParams) parent.getLayoutParams(); |
1,209,347 | public Result doMerge() {<NEW_LINE>com.feth.play.module.pa.controllers.Authenticate.noCache(response());<NEW_LINE>// this is the currently logged in user<NEW_LINE>final AuthUser aUser = this.<MASK><NEW_LINE>// this is the user that was selected for a login<NEW_LINE>final AuthUser bUser = this.auth.getMergeUser(session(... | auth.getUser(session()); |
1,468,966 | private static JsonObject createJsonObject(Media media) {<NEW_LINE>JsonObject jsonObject = new JsonObject();<NEW_LINE>if (media.hasBitrate) {<NEW_LINE>jsonObject.addProperty("bitrate", media.bitrate);<NEW_LINE>}<NEW_LINE>jsonObject.addProperty("copyright", media.copyright);<NEW_LINE>jsonObject.addProperty("duration", m... | addProperty("uri", media.uri); |
89,541 | public void begin(InterpretationContext ec, String localName, Attributes attributes) throws ActionException {<NEW_LINE>// reset variables<NEW_LINE>scopeStr = null;<NEW_LINE>scope = null;<NEW_LINE>propertyName = null;<NEW_LINE>definer = null;<NEW_LINE>inError = false;<NEW_LINE>// read future property name<NEW_LINE>prope... | + "] line " + getLineNumber(ec)); |
1,109,382 | protected void actionPerformed(FrontEndProjectTreeContext context) {<NEW_LINE>DomainFolder domainFolder = context.getSelectedFolders().get(0);<NEW_LINE><MASK><NEW_LINE>RepositoryAdapter repository = projectData.getRepository();<NEW_LINE>if (repository != null && !repository.isConnected()) {<NEW_LINE>if (OptionDialog.OP... | ProjectData projectData = domainFolder.getProjectData(); |
1,263,372 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_fade_text_view);<NEW_LINE>textView = (FadeTextView) findViewById(R.id.textview);<NEW_LINE>textView.setOnClickListener(new ClickListener());<NEW_LINE>textView.setAnimationListener(n... | textView.setProgress(progress / 100f); |
1,715,821 | public OAuth1Parameters readRequest(OAuth1Request request) {<NEW_LINE>// read supported parameters from query string or request body (lowest preference)<NEW_LINE>for (String param : request.getParameterNames()) {<NEW_LINE>if (!param.startsWith("oauth_")) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>List<String> values = re... | param, i.next()); |
449,323 | public void run(ITextSelection currentSelection) {<NEW_LINE>if (currentSelection != null && editor != null) {<NEW_LINE>GroovyCompilationUnit unit = editor.getGroovyCompilationUnit();<NEW_LINE>if (unit != null) {<NEW_LINE>ModuleNode node = unit.getModuleNode();<NEW_LINE>if (node != null) {<NEW_LINE>FindSurroundingNode f... | ), result.getLength()); |
1,249,452 | private Object enhanceCompositeKey(Object key, PartialSearchMode partialSearchMode) {<NEW_LINE>if (!(key instanceof OCompositeKey))<NEW_LINE>return key;<NEW_LINE>final OCompositeKey compositeKey = (OCompositeKey) key;<NEW_LINE>final int keySize <MASK><NEW_LINE>if (!(keySize == 1 || compositeKey.getKeys().size() == keyS... | = getDefinition().getParamCount(); |
554,762 | private <T> T createForField(FieldInfo<T> info) throws IOException {<NEW_LINE>Optional<CustomFieldSerializationTag> serializerTag = CustomBehaviorUtils.get(CustomFieldSerializationTag.class, info.getCustomBehavior());<NEW_LINE>if (serializerTag.isPresent()) {<NEW_LINE>if (serializerTag.get() instanceof DefaultFieldSeri... | T>) serializerTag.get(); |
1,474,372 | final PostCommentForPullRequestResult executePostCommentForPullRequest(PostCommentForPullRequestRequest postCommentForPullRequestRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(postCommentForPullRequestRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
208,200 | public JSDynamicObject with(Object thisObj, Object temporalDateLike, Object optParam, @Cached("createKeys(getContext())") EnumerableOwnPropertyNamesNode nameNode, @Cached("create(getContext())") TemporalCalendarFieldsNode calendarFieldsNode) {<NEW_LINE>JSTemporalPlainDateObject temporalDate = requireTemporalDate(thisOb... | temporalDate, fieldNames, TemporalUtil.listEmpty); |
76,700 | // Driver function<NEW_LINE>public static void main(String[] args) {<NEW_LINE>int[] wt = { 6, 10, 3, 5, 1, 2 };<NEW_LINE>int[] val = { 12, 30, <MASK><NEW_LINE>// storing number of items<NEW_LINE>int nItems = wt.length;<NEW_LINE>Item[] arr = new Item[nItems];<NEW_LINE>for (int i = 0; i < nItems; i++) arr[i] = new Item(v... | 15, 20, 5, 12 }; |
1,766,354 | private void invoke_lambda(final JSONObject action, final JSONObject data, final JSONObject options, final Context context) {<NEW_LINE>try {<NEW_LINE>// construct lambda<NEW_LINE>JSONObject lambda = new JSONObject();<NEW_LINE>lambda.put("type", "$lambda");<NEW_LINE>JSONObject args = new JSONObject();<NEW_LINE>args.put(... | , action.getString("trigger")); |
67,903 | private void initPersistedHosts() {<NEW_LINE>if (HostsSupport.storageDirectoryExists()) {<NEW_LINE>File storageDir = HostsSupport.getStorageDirectory();<NEW_LINE>File[] files = storageDir.listFiles(new FilenameFilter() {<NEW_LINE><NEW_LINE>public boolean accept(File dir, String name) {<NEW_LINE>return name.endsWith(Sto... | getRepository().addDataSources(hosts); |
940,915 | public static DescribeInstanceSpecificationsResponse unmarshall(DescribeInstanceSpecificationsResponse describeInstanceSpecificationsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeInstanceSpecificationsResponse.setRequestId<MASK><NEW_LINE>describeInstanceSpecificationsResponse.setCode(_ctx.stringValue("Describe... | (_ctx.stringValue("DescribeInstanceSpecificationsResponse.RequestId")); |
639,789 | public ApiResponse handleApiAction(String name, JSONObject params) throws ApiException {<NEW_LINE>RuleConfig rc;<NEW_LINE>switch(name) {<NEW_LINE>case ACTION_SET_RULE_CONFIG_VALUE:<NEW_LINE>rc = extension.getRuleConfig(params.getString(PARAM_KEY));<NEW_LINE>if (rc != null) {<NEW_LINE>if (params.containsKey(PARAM_VALUE)... | resetRuleConfigValue(rc.getKey()); |
683,040 | protected void initChannel(NioSocketChannel ch) throws Exception {<NEW_LINE>if (_sslContext != null) {<NEW_LINE>ch.pipeline().addLast(SessionResumptionSslHandler.PIPELINE_SESSION_RESUMPTION_HANDLER, new SessionResumptionSslHandler(_sslContext, _sslParameters, _enableSSLSessionResumption, _sslSessionTimeout));<NEW_LINE>... | ("rapiCodec", new RAPClientCodec()); |
435,804 | static <T> Supplier<Future<T>> decorateFuture(CircuitBreaker circuitBreaker, Supplier<Future<T>> supplier) {<NEW_LINE>return () -> {<NEW_LINE>final Future<T> future = Future.future();<NEW_LINE>if (!circuitBreaker.tryAcquirePermission()) {<NEW_LINE>future.fail(createCallNotPermittedException(circuitBreaker));<NEW_LINE>}... | fail(result.cause()); |
1,333,034 | public void delete(@PathParam("envName") String envName, @PathParam("stageName") String stageName, @Context SecurityContext sc) throws Exception {<NEW_LINE>EnvironBean envBean = Utils.getEnvStage(environDAO, envName, stageName);<NEW_LINE>authorizer.authorize(sc, new Resource(envBean.getEnv_name(), Resource.Type.ENV), R... | String constraintId = envBean.getDeploy_constraint_id(); |
318,183 | protected void parse(final ProtocolFactory protocols, final Local file) throws AccessDeniedException {<NEW_LINE>NSDictionary serialized = NSDictionary.dictionaryWithContentsOfFile(file.getAbsolute());<NEW_LINE>if (null == serialized) {<NEW_LINE>throw new LocalAccessDeniedException(String.format("Invalid bookmark file %... | (remote).objectForKey("Location"); |
742,842 | public void run(WorkingCopy workingCopy) throws Exception {<NEW_LINE>workingCopy.toPhase(JavaSource.Phase.RESOLVED);<NEW_LINE>TypeElement clazz = classHandle.resolve(workingCopy);<NEW_LINE>if (clazz != null) {<NEW_LINE>GenerationUtils genUtils = GenerationUtils.newInstance(workingCopy);<NEW_LINE>AnnotationTree annTree ... | ((MethodTree) elemTree, annTree); |
826,454 | public void createWithByForField(AccessLevel level, EclipseNode fieldNode, EclipseNode sourceNode, boolean whineIfExists, List<Annotation> onMethod) {<NEW_LINE>ASTNode source = sourceNode.get();<NEW_LINE>if (fieldNode.getKind() != Kind.FIELD) {<NEW_LINE>sourceNode.addError("@WithBy is only supported on a class or a fie... | toWithByName(fieldNode, isBoolean, accessors); |
1,729,557 | private static byte[] readJ2EENameBytes(byte[] bytes) throws CSIException {<NEW_LINE>int j2eeNameLength = 0;<NEW_LINE>int j2eeNameIndex = HEADER_LEN + BEAN_TYPE_LEN;<NEW_LINE>// LIDB2775-23.0 Begins<NEW_LINE>if (EJSPlatformHelper.isZOS()) {<NEW_LINE>j2eeNameLength = ((bytes[j2eeNameIndex + 0] & 0xff) << 24) | ((bytes[j... | j2eeNameLengthReversed = Integer.reverseBytes(j2eeNameLength); |
855,069 | protected void initColumns(LinkedList idxs) {<NEW_LINE>List<String> <MASK><NEW_LINE>String name, info;<NEW_LINE>int start, end;<NEW_LINE>try {<NEW_LINE>for (int i = 0; i < idxs.size(); i++) {<NEW_LINE>info = idxs.get(i).toString();<NEW_LINE>start = info.indexOf('.');<NEW_LINE>end = info.lastIndexOf('.');<NEW_LINE>name ... | columnsList = new LinkedList<>(); |
556,159 | BulkData updateBulkData(int endBulk) throws IOException {<NEW_LINE>BulkData last = null;<NEW_LINE>for (int i = 1; i <= endBulk; i++) {<NEW_LINE>BulkData bulk = null;<NEW_LINE>long bulkOffset = -1;<NEW_LINE>int bulkLength = -1;<NEW_LINE>synchronized (fragments) {<NEW_LINE>if (i < fragments.size()) {<NEW_LINE>bulk = (<MA... | BulkData) fragments.get(i); |
321,749 | public void depose(NutConfig config) {<NEW_LINE>if (log.isInfoEnabled())<NEW_LINE>log.infof(<MASK><NEW_LINE>Stopwatch sw = Stopwatch.begin();<NEW_LINE>// Firstly, upload the user customized desctroy<NEW_LINE>try {<NEW_LINE>Setup setup = config.getAttributeAs(Setup.class, Setup.class.getName());<NEW_LINE>if (null != set... | "Nutz.Mvc[%s] is deposing ...", config.getAppName()); |
567,168 | public View onCreateView(LayoutInflater inflater, final ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>logDebug("onCreateView");<NEW_LINE>display = ((Activity) context).getWindowManager().getDefaultDisplay();<NEW_LINE>outMetrics = new DisplayMetrics();<NEW_LINE>display.getMetrics(outMetrics);<NEW_LINE>densi... | layout.notifications_fragment, container, false); |
1,260,375 | public XChartPanel<XYChart> buildPanel() throws IOException {<NEW_LINE>System.out.println("fetching data...");<NEW_LINE>updateData();<NEW_LINE>// create chart<NEW_LINE>chart = new XYChartBuilder().width(800).height(400).title("Real-time Bitcoinium Order Book - BITSTAMP_BTC_USD").xAxisTitle("BTC").yAxisTitle("USD").buil... | addSeries(BIDS_SERIES_NAME, xAxisBidData, yAxisBidData); |
1,274,604 | public CommonDialogLoading init(Context context, final Runnable onCancelListener) {<NEW_LINE>super.init(context, new DialogLayoutCallback() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int bindTheme() {<NEW_LINE>return R.style.CommonLoadingDialogStyle;<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int bindL... | setStatusBarColor(window, Color.TRANSPARENT); |
946,790 | protected void handleUrlLoad(Uri uri) {<NEW_LINE>if (!uri.getScheme().equals("comment")) {<NEW_LINE>super.handleUrlLoad(uri);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int line = Integer.parseInt(uri.getQueryParameter("position"));<NEW_LINE>int leftLine = Integer.parseInt(uri.getQueryParameter("l"));<NEW_LINE>int rightLine ... | (uri.getQueryParameter("isRightLine")); |
649,930 | public void generate(TypeElement e) throws IOException {<NEW_LINE>Map<String, HashSet<ExecutableElement>> methodsPerAttribute = methodsPerAttributeMapping(e);<NEW_LINE>String className = e.getQualifiedName().toString();<NEW_LINE>String packageName = null;<NEW_LINE>int lastDot = className.lastIndexOf('.');<NEW_LINE>if (... | className.substring(0, lastDot); |
126,328 | public void addInitState(ITool tool, TLCState state, long stateFP) {<NEW_LINE>for (int soln = 0; soln < solutions.length; soln++) {<NEW_LINE>OrderOfSolution os = solutions[soln];<NEW_LINE>BEGraph bgraph = bgraphs[soln];<NEW_LINE>int slen = os.getCheckState().length;<NEW_LINE>int alen = os.getCheckAction().length;<NEW_L... | bgraph.allNodes.putBTNode(destNode); |
60,426 | public ListDevicesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListDevicesResult listDevicesResult = new ListDevicesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurr... | String currentParentElement = context.getCurrentParentElement(); |
367,289 | private long parsePositiveLongAscii(final int index, final int length, final int startIndex, final int end) {<NEW_LINE>final byte[] src = byteArray;<NEW_LINE>int i = startIndex;<NEW_LINE>long tally = 0, octet;<NEW_LINE>while ((end - i) >= 8 && isEightDigitAsciiEncodedNumber(octet = UNSAFE.getLong(src, ARRAY_BASE_OFFSET... | octet = Long.reverseBytes(octet); |
444,140 | public void process(BufferedImage image) {<NEW_LINE>input.reshape(image.getWidth(), image.getHeight());<NEW_LINE>noisy.reshape(input.width, input.height);<NEW_LINE>output.reshape(input.width, input.height);<NEW_LINE>deriv.reshape(input.width, input.height);<NEW_LINE>ConvertBufferedImage.convertFromSingle(image, input, ... | (input, null, true)); |
172,602 | public com.squareup.okhttp.Call leaderboardGetNameCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVa... | = new ArrayList<Pair>(); |
1,831,588 | public static DescribeProjectAttachmentsResponse unmarshall(DescribeProjectAttachmentsResponse describeProjectAttachmentsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeProjectAttachmentsResponse.setRequestId<MASK><NEW_LINE>describeProjectAttachmentsResponse.setSuccess(_ctx.booleanValue("DescribeProjectAttachmen... | (_ctx.stringValue("DescribeProjectAttachmentsResponse.RequestId")); |
119,386 | public static Map<String, List<NetworkAcl>> fetchNetworkACL(BasicSessionCredentials temporaryCredentials, String skipRegions, String accountId, String accountName) {<NEW_LINE>Map<String, List<NetworkAcl>> networkAclMap = new LinkedHashMap<>();<NEW_LINE>AmazonEC2 ec2Client;<NEW_LINE>String expPrefix = InventoryConstants... | .describeNetworkAcls().getNetworkAcls(); |
126,880 | // Change visibility so others can see it<NEW_LINE>@Override<NEW_LINE>public void addURL(URL url) {<NEW_LINE>// if we have such embedded jar within a jar, we copy it to temp file and use the<NEW_LINE>// the temp file with the super URLClassLoader<NEW_LINE>if (url.toString().contains("!/") || !(url.getProtocol().equals(... | getName(), getTempDir()); |
589,712 | final SelectAggregateResourceConfigResult executeSelectAggregateResourceConfig(SelectAggregateResourceConfigRequest selectAggregateResourceConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(selectAggregateResourceConfigRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC... | endClientExecution(awsRequestMetrics, request, response); |
1,573,574 | private void readFromInput(HollowBlobInput in, boolean isDelta) throws IOException {<NEW_LINE>maxOrdinal = VarInt.readVInt(in);<NEW_LINE>if (isDelta) {<NEW_LINE>encodedRemovals = GapEncodedVariableLengthIntegerReader.readEncodedDeltaOrdinals(in, memoryRecycler);<NEW_LINE>encodedAdditions = GapEncodedVariableLengthInteg... | get(in, memoryMode, memoryRecycler); |
1,206,974 | private void addDeprecationHeaders(SparkSpringController controller) {<NEW_LINE>boolean isDeprecated = controller.getClass().isAnnotationPresent(DeprecatedAPI.class);<NEW_LINE>if (!isDeprecated) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>DeprecatedAPI deprecated = controller.getClass().getAnnotation(DeprecatedAPI.class);<N... | getSuperclass().getDeclaredField("mimeType"); |
1,133,860 | private String frequencyCounter(String[] words, int minLength) {<NEW_LINE>String title = "BST costs using put() in FrequencyCounter";<NEW_LINE>String xAxisLabel = "operations";<NEW_LINE>String yAxisLabel = "cost";<NEW_LINE>double maxNumberOfOperations = 18000;<NEW_LINE>double maxCost = 50;<NEW_LINE>int originValue = 0;... | binarySearchTree.putAndComputeCost(max, 0); |
1,563,636 | private I_SEPA_Export createExportHeader(@NonNull final I_C_PaySelection paySelectionHeader) {<NEW_LINE>final PaySelectionTrxType paySelectionTrxType = PaySelectionTrxType.ofNullableCode(paySelectionHeader.getPaySelectionTrxType());<NEW_LINE>if (paySelectionTrxType == null) {<NEW_LINE>throw new FillMandatoryException(f... | setPaymentDate(paySelectionHeader.getPayDate()); |
342,904 | public void replaceWith(DataType dataType) {<NEW_LINE>if (!(dataType instanceof Enum)) {<NEW_LINE>throw new IllegalArgumentException();<NEW_LINE>}<NEW_LINE>Enum enumm = (Enum) dataType;<NEW_LINE>lock.acquire();<NEW_LINE>try {<NEW_LINE>checkDeleted();<NEW_LINE>bitGroups = null;<NEW_LINE>nameMap = new HashMap<>();<NEW_LI... | addToCache(valueName, value, comment); |
450,960 | public boolean flushable() throws SIResourceException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "flushable");<NEW_LINE>// Short circuit if we've never created a stream<NEW_LINE>if (streamSet == null) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isE... | Iterator itr = streamSet.iterator(); |
67,462 | private void createBeanSymbol(DOMNode node, IJavaProject project, String docURI, long lastModified, TextDocument document, List<CachedSymbol> generatedSymbols) throws Exception {<NEW_LINE>String beanID = null;<NEW_LINE>int symbolStart = 0;<NEW_LINE>int symbolEnd = 0;<NEW_LINE>String beanClass = null;<NEW_LINE>List<DOMA... | new Position(lineEnd, endInLine)); |
978,114 | public static boolean containsTypeAnnotation(AnnotatedType type, Class<? extends Annotation> annotation) {<NEW_LINE>if (type.isAnnotationPresent(annotation)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (type instanceof AnnotatedParameterizedType) {<NEW_LINE>AnnotatedParameterizedType parameterizedType = ((AnnotatedP... | -> containsTypeAnnotation(param, annotation)); |
630,630 | public JsonArray uniqueDatasetDownloads(String yyyymm, Dataverse d) {<NEW_LINE>// select distinct count(distinct email),dataset_id, date_trunc('month', responsetime) from guestbookresponse group by dataset_id, date_trunc('month',responsetime) order by dataset_id,date_trunc('month',responsetime);<NEW_LINE>Query query =... | JsonArrayBuilder jab = Json.createArrayBuilder(); |
1,139,110 | protected void executeImpl() throws MojoExecutionException, MojoFailureException {<NEW_LINE>File commonDir = getCN1ProjectDir();<NEW_LINE>if (commonDir == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>File rootMavenProjectDir = commonDir.getParentFile();<NEW_LINE>File javaSEDir = new File(rootMavenProjectDir, "javase");... | ex.getMessage(), ex); |
1,831,436 | public static DescribeCasterConfigResponse unmarshall(DescribeCasterConfigResponse describeCasterConfigResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeCasterConfigResponse.setRequestId<MASK><NEW_LINE>describeCasterConfigResponse.setDelay(_ctx.floatValue("DescribeCasterConfigResponse.Delay"));<NEW_LINE>describeCa... | (_ctx.stringValue("DescribeCasterConfigResponse.RequestId")); |
577,998 | final ListStreamingSessionsResult executeListStreamingSessions(ListStreamingSessionsRequest listStreamingSessionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listStreamingSessionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | endClientExecution(awsRequestMetrics, request, response); |
1,718,873 | public static DescribeRenewalPriceResponse unmarshall(DescribeRenewalPriceResponse describeRenewalPriceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRenewalPriceResponse.setRequestId(_ctx.stringValue("DescribeRenewalPriceResponse.RequestId"));<NEW_LINE>Order order = new Order();<NEW_LINE>order.setOriginalAmoun... | ("DescribeRenewalPriceResponse.SubOrders[" + i + "].DiscountAmount")); |
1,443,904 | final CreateEventBusResult executeCreateEventBus(CreateEventBusRequest createEventBusRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createEventBusRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateEventBus"); |
831,096 | private Float convertToDegree(String stringDMS) {<NEW_LINE>Float result = null;<NEW_LINE>String[] DMS = stringDMS.split(",", 3);<NEW_LINE>String[] stringD = DMS[0].split("/", 2);<NEW_LINE>Double D0 = Double.valueOf(stringD[0]);<NEW_LINE>Double D1 = Double.valueOf(stringD[1]);<NEW_LINE>double FloatD = D0 / D1;<NEW_LINE>... | ].split("/", 2); |
1,095,067 | static void vp8_dequant_idct_add_core(final int imax, final int jmax, PositionableIntArrPointer eobs, FullAccessIntArrPointer q, ReadOnlyIntArrPointer dq, FullAccessIntArrPointer dst, int stride) {<NEW_LINE>final int dstinc = (stride - jmax) << 2;<NEW_LINE>for (int i = 0; i < imax; ++i) {<NEW_LINE>for (int j = 0; j < j... | dst, stride, dst, stride); |
947,623 | public void refreshToken(String refreshToken) throws LoginFailedException, InvalidCredentialsException {<NEW_LINE>HttpUrl url = HttpUrl.parse(OAUTH_TOKEN_ENDPOINT).newBuilder().addQueryParameter("client_id", CLIENT_ID).addQueryParameter("client_secret", SECRET).addQueryParameter("refresh_token", refreshToken).addQueryP... | .Builder().build(); |
1,592,953 | public int crypto_kem_dec(byte[] k, byte[] c, byte[] sk) {<NEW_LINE>int i, fail;<NEW_LINE>byte[] cmp = new byte[SABER_BYTES_CCA_DEC];<NEW_LINE>byte[] buf = new byte[64];<NEW_LINE>// Will contain key, coins<NEW_LINE>byte[] kr = new byte[64];<NEW_LINE>byte[] pk = Arrays.copyOfRange(sk, SABER_INDCPA_SECRETKEYBYTES, sk.len... | SHA3Digest digest_512 = new SHA3Digest(512); |
334,079 | public io.kubernetes.client.proto.V1beta1Extensions.FSGroupStrategyOptions buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1beta1Extensions.FSGroupStrategyOptions result = new io.kubernetes.client.proto.V1beta1Extensions.FSGroupStrategyOptions(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitF... | .ranges_ = rangesBuilder_.build(); |
232,899 | private static void applyAdditionalInfoImpl(final Project project, @javax.annotation.Nullable ThrowableComputable<Map<String, Map<String, CharSequence>>, PatchSyntaxException> additionalInfo, CommitContext commitContext, final Consumer<InfoGroup> worker) {<NEW_LINE>final PatchEP[] extensions = Extensions.getExtensions(... | get(extension.getName()); |
1,556,271 | public static ParticleEmitter newImplosionEmitter() {<NEW_LINE>ParticleEmitter emitter = new ParticleEmitter();<NEW_LINE>emitter.setNumParticles(100);<NEW_LINE>emitter.setEmissionRate(0.0166);<NEW_LINE>emitter.setSize(5, 20);<NEW_LINE>emitter.setSpawnPointFunction(i -> {<NEW_LINE>Point2D vector = new Point2D(Math.cos(i... | 255), 30, 20)); |
1,410,999 | @Produces(MediaType.APPLICATION_JSON)<NEW_LINE>@ApiOperation(value = "Adds a mapping", response = MappedOidcGroup.class)<NEW_LINE>@ApiResponses(value = { @ApiResponse(code = 401, message = "Unauthorized"), @ApiResponse(code = 404, message = "The UUID of the team or group could not be found"), @ApiResponse(code = 409, m... | " and team " + team.getName()); |
752,789 | protected PreDeConModel computeLocalModel(DBIDRef id, DoubleDBIDList neighbors, Relation<? extends NumberVector> relation) {<NEW_LINE>final int referenceSetSize = neighbors.size();<NEW_LINE>mvSize.put(referenceSetSize);<NEW_LINE>// Shouldn't happen:<NEW_LINE>if (referenceSetSize < 0) {<NEW_LINE>LOG.warning("Empty refer... | .put(s[d]); |
557,191 | public RenderingError unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RenderingError renderingError = new RenderingError();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<... | String currentParentElement = context.getCurrentParentElement(); |
881,260 | public CreateTrafficPolicyInstanceResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>CreateTrafficPolicyInstanceResult createTrafficPolicyInstanceResult = new CreateTrafficPolicyInstanceResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth... | XMLEvent xmlEvent = context.nextEvent(); |
1,520,559 | public static RedisURI sentinelConfigurationToRedisURI(RedisSentinelConfiguration sentinelConfiguration) {<NEW_LINE>Assert.notNull(sentinelConfiguration, "RedisSentinelConfiguration is required");<NEW_LINE>Set<RedisNode> sentinels = sentinelConfiguration.getSentinels();<NEW_LINE>RedisPassword sentinelPassword = sentine... | ).ifPresent(sentinelBuilder::withPassword); |
1,703,736 | private void completeTask(ExecutionTask task) {<NEW_LINE>switch(task.type()) {<NEW_LINE>case INTER_BROKER_REPLICA_ACTION:<NEW_LINE>_inProgressPartitionsForInterBrokerMovement.remove(task.<MASK><NEW_LINE>int oldLeader = task.proposal().oldLeader().brokerId();<NEW_LINE>_inProgressInterBrokerReplicaMovementsByBrokerId.put... | proposal().topicPartition()); |
1,078,817 | public static void vertical11(Kernel1D_F32 kernel, GrayF32 src, GrayF32 dst) {<NEW_LINE>final float[] dataSrc = src.data;<NEW_LINE>final float[] dataDst = dst.data;<NEW_LINE>final float k1 = kernel.data[0];<NEW_LINE>final float k2 = kernel.data[1];<NEW_LINE>final float k3 = kernel.data[2];<NEW_LINE>final float k4 = ker... | int imgHeight = dst.getHeight(); |
1,392,004 | public ServiceStatus update(String userId, String json) {<NEW_LINE>JSONObject jsonObject = JSONObject.parseObject(json);<NEW_LINE>DashboardJob job = new DashboardJob();<NEW_LINE>job.setId(jsonObject.getLong("id"));<NEW_LINE>job.setName(jsonObject.getString("name"));<NEW_LINE>job.setConfig(jsonObject.getString("config")... | (jsonObject.getString("cronExp")); |
1,236,598 | final RecognizeTextResult executeRecognizeText(RecognizeTextRequest recognizeTextRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(recognizeTextRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,249,773 | final DeleteConferenceProviderResult executeDeleteConferenceProvider(DeleteConferenceProviderRequest deleteConferenceProviderRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteConferenceProviderRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteConferenceProvider"); |
1,553,267 | private final BigDecimal toNumber(final Object value) {<NEW_LINE>Check.assumeNotNull(value, "value not null");<NEW_LINE>final BigDecimal valueBD;<NEW_LINE>if (value instanceof BigDecimal) {<NEW_LINE>valueBD = (BigDecimal) value;<NEW_LINE>} else if (value instanceof Integer) {<NEW_LINE>final int i = (Integer) value;<NEW... | valueBD = BigDecimal.valueOf(i); |
1,740,959 | final DescribeAnomalyDetectorsResult executeDescribeAnomalyDetectors(DescribeAnomalyDetectorsRequest describeAnomalyDetectorsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAnomalyDetectorsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
199,429 | private HttpPipeline createHttpPipeline() {<NEW_LINE>Configuration buildConfiguration = (configuration == null) ? Configuration.getGlobalConfiguration() : configuration;<NEW_LINE>if (httpLogOptions == null) {<NEW_LINE>httpLogOptions = new HttpLogOptions();<NEW_LINE>}<NEW_LINE>if (clientOptions == null) {<NEW_LINE>clien... | .add(new CookiePolicy()); |
1,665,245 | private List<CheckCapsResponse> checkCaps(CapsCheckRequest.CheckType checkType) {<NEW_LINE>Predicate<IndexerConfig> isToBeCheckedPredicate = x -> x.getState() == IndexerConfig.State.ENABLED && (x.getSearchModuleType() == SearchModuleType.NEWZNAB || x.getSearchModuleType() == SearchModuleType.TORZNAB) && x.isConfigCompl... | logger.error("Error while calling caps check for all indexers", e); |
1,413,992 | public static ManagedChannel newChannel(@Nullable Executor executor, String target, String proxy, AuthAndTLSOptions options, @Nullable List<ClientInterceptor> interceptors) throws IOException {<NEW_LINE>Preconditions.checkNotNull(target);<NEW_LINE>Preconditions.checkNotNull(options);<NEW_LINE>SslContext sslContext = is... | NegotiationType.TLS : NegotiationType.PLAINTEXT); |
510,502 | public void play() {<NEW_LINE>showIntro();<NEW_LINE>loadPlayers();<NEW_LINE>console.print("%s'S ADVANTAGE IS %d AND VULNERABILITY IS SECRET.\n", session.getOpponent().getName(), session.getOpponent().getBestPunch().getCode());<NEW_LINE>for (int roundNro = 1; roundNro <= 3; roundNro++) {<NEW_LINE>if (session.isOver())<N... | console.print("\nROUND %d BEGINS...%n", roundNro); |
656,114 | private void handleAttributeCompatibility(MutableModuleComponentResolveMetadata metaDataFromResource) {<NEW_LINE>// This code path will always be a no-op following the changes in DefaultImmutableAttributesFactory<NEW_LINE>// However this code will have to remain forever while the other one should be removed at some poi... | ImmutableAttributes attributes = variant.getAttributes(); |
145,252 | // for each pattern, it calculates positive, negative, and unlabeled words<NEW_LINE>private void calculateSufficientStats(Map<String, DataInstance> sents, PatternsForEachToken patternsForEachToken, String label, TwoDimensionalCounter<E, CandidatePhrase> patternsandWords4Label, TwoDimensionalCounter<E, CandidatePhrase> ... | > stats = future.get(); |
1,077,955 | public static // compare the ack set next bit index is bigger than another one.<NEW_LINE>int compareToWithAckSet(PositionImpl currentPosition, PositionImpl otherPosition) {<NEW_LINE>if (currentPosition == null || otherPosition == null) {<NEW_LINE>throw new IllegalArgumentException("Two positions can't be null! " + "cur... | ) - otherAckSet.nextSetBit(0); |
1,639,785 | public RsaSsaPkcs1PrivateKey createKey(RsaSsaPkcs1KeyFormat format) throws GeneralSecurityException {<NEW_LINE>RsaSsaPkcs1Params params = format.getParams();<NEW_LINE>KeyPairGenerator keyGen = EngineFactory.KEY_PAIR_GENERATOR.getInstance("RSA");<NEW_LINE>RSAKeyGenParameterSpec spec = new RSAKeyGenParameterSpec(format.g... | ())).build(); |
1,242,390 | final AttachVolumeResult executeAttachVolume(AttachVolumeRequest attachVolumeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(attachVolumeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "AttachVolume"); |
977,730 | public final void addAllInfluencers() {<NEW_LINE>// add all software systems with incoming or outgoing dependencies<NEW_LINE>getModel().getSoftwareSystems().stream().filter(softwareSystem -> softwareSystem.hasEfferentRelationshipWith(getSoftwareSystem()) || getSoftwareSystem().hasEfferentRelationshipWith(softwareSystem... | ).forEach(this::remove); |
1,386,714 | private void mapBestPartialMatches(List<String> names, Map<String, View> sharedElements) {<NEW_LINE>List<Pair<View, String>> allTransitionViews = new ArrayList<>();<NEW_LINE>ViewUtils.findTransitionViews(getDecorView(), allTransitionViews);<NEW_LINE>List<View> <MASK><NEW_LINE>for (String name : names) {<NEW_LINE>if (sh... | partialMatches = new ArrayList<>(); |
1,328,515 | private long pointCount(PointValues.PointTree pointTree, BiFunction<byte[], byte[], Relation> nodeComparator, Predicate<byte[]> leafComparator) throws IOException {<NEW_LINE>final <MASK><NEW_LINE>// create a custom IntersectVisitor that records the number of leafNodes that matched<NEW_LINE>final IntersectVisitor visito... | int[] matchingNodeCount = { 0 }; |
1,734,911 | public static GetCategoriesResponse unmarshall(GetCategoriesResponse getCategoriesResponse, UnmarshallerContext _ctx) {<NEW_LINE>getCategoriesResponse.setRequestId(_ctx.stringValue("GetCategoriesResponse.RequestId"));<NEW_LINE>getCategoriesResponse.setSubTotal(_ctx.longValue("GetCategoriesResponse.SubTotal"));<NEW_LINE... | (_ctx.longValue("GetCategoriesResponse.Category.Level")); |
339,456 | public void visitNewArray(ENewArray userNewArrayNode, SemanticScope semanticScope) {<NEW_LINE>if (semanticScope.getCondition(userNewArrayNode, Write.class)) {<NEW_LINE>throw userNewArrayNode.createError(new IllegalArgumentException("invalid assignment: cannot assign a value to new array"));<NEW_LINE>}<NEW_LINE>if (sema... | setCondition(userValueNode, Read.class); |
1,360,643 | public void RemoveDirectory(FileScope scope, String directoryName, final boolean recursive, final Continuation<Boolean> continuation) {<NEW_LINE>if (scope == FileScope.Asset) {<NEW_LINE>form.dispatchErrorOccurredEvent(this, "RemoveDirectory", ErrorMessages.ERROR_CANNOT_REMOVE_DIRECTORY, directoryName);<NEW_LINE>return;... | result = new Synchronizer<>(); |
378,438 | private void initialize(CompareConfiguration configuration) {<NEW_LINE>Control tree = getControl();<NEW_LINE>INavigatable nav = new INavigatable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean selectChange(int flag) {<NEW_LINE>if (flag == INavigatable.FIRST_CHANGE) {<NEW_LINE>setSelection(StructuredSelection.E... | Composite parent = tree.getParent(); |
1,751,758 | protected void handlePost(final HttpServletRequest req, final HttpServletResponse resp, final Session session) throws ServletException, IOException {<NEW_LINE>final User user = session.getUser();<NEW_LINE>if (!hasParam(req, "action")) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final HashMap<String, String> results = new Ha... | ) + "' cannot proxy as '" + newProxyname + "'"); |
1,835,248 | private Object[] obtainValues(EventBean[] eventsPerStream, InternalEventRouterEntry entry, ExprEvaluatorContext exprEvaluatorContext, InstrumentationCommon instrumentation) {<NEW_LINE>instrumentation.qUpdateIStreamApplyAssignments(entry);<NEW_LINE>Object[] values = new Object[<MASK><NEW_LINE>for (int i = 0; i < entry.g... | entry.getAssignments().length]; |
375,724 | public ResourceOptionsDto availableOperations(UriInfo context) {<NEW_LINE>final IdentityService identityService = getIdentityService();<NEW_LINE>UriBuilder baseUriBuilder = context.getBaseUriBuilder().path(relativeRootResourcePath).path(UserRestService.PATH);<NEW_LINE>ResourceOptionsDto resourceOptionsDto = new Resourc... | path("/create").build(); |
1,562,429 | final CreateBotVersionResult executeCreateBotVersion(CreateBotVersionRequest createBotVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createBotVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,165,725 | private void proxy(HttpServletRequest req, HttpServletResponse resp, String path) throws IOException {<NEW_LINE>AsyncContext async = req.startAsync();<NEW_LINE>String relPath = path.substring(proxyPath.length());<NEW_LINE>StringBuilder sb = new StringBuilder(proxyUrl);<NEW_LINE>if (!relPath.isEmpty() && !proxyUrl.endsW... | copyRequestHeaders(req, proxyReq::header); |
488,837 | private static boolean updateBuildProperties(EditableProperties ep) {<NEW_LINE>boolean changed = false;<NEW_LINE>// NOI18N<NEW_LINE>JavaPlatform[] installedPlatforms = JavaPlatformManager.getDefault().getPlatforms(null, new Specification("j2se", null));<NEW_LINE>for (int i = 0; i < installedPlatforms.length; i++) {<NEW... | [i], systemName, ep); |
693,062 | private final void createToolBar() {<NEW_LINE>// New, Save, Copy<NEW_LINE>{<NEW_LINE>toolBar.add(aNew.getButton());<NEW_LINE>toolBar.<MASK><NEW_LINE>toolBar.add(aCopy.getButton());<NEW_LINE>if (CopyRecordFactory.isEnabled()) {<NEW_LINE>// metas: c.ghita@metas.ro<NEW_LINE>toolBar.add(aCopyDetails.getButton());<NEW_LINE>... | add(aSave.getButton()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.