content
stringlengths
2
6.21k
label
stringclasses
16 values
} } func usesAsync(parsed) { func walk(vector) { if isEmpty(vector) { false } else { f := first(vector) if isVector(f) && usesAsync(f) { true } else { recur(rest(vector)) } } } if kAsyncRules isContains first(parsed) { true } else { walk(rest(parsed)) } } // Return the Clojur...
Go
onPressed: () => Navigator.of(context).pop(selectedInterval), child: const Text('确定'), ), ], ); }, ); }, ); if (result != null && result != folder.scanIntervalMinutes) { try { await musicProvider.setFolderSc...
Dart
used to populate the caches, to ensure the responses are fresh. // If a URL is already hashed by Webpack, then there is no concern // about it being stale, and the cache-busting can be skipped. dontCacheBustUrlsMatching: /\.\w{8}\./, filename: 'service-worker.js', logger(message) { ...
JavaScript
-page .openid_small_btn{width:24px;height:24px;border:2px solid #DDD;border-right:2px solid #ccc;border-bottom:2px solid #ccc;margin:3px;float:left;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;box-shadow:2px 2px 4px #ddd;-moz-box-shadow:2px 2px 4px #ddd;-webkit-box-shadow:2px 2px 4px #ddd;}.login-...
CSS
').removeClass('disabled'); } else { curCount_s--; $(".pass-notice span").html(curCount_s + "s"); } }; function resend_cancel_sms() { window.clearInterval(InterObj); $('.modal').remove(); $('.modal-overlay').remove(); $('.pass-notice').addClass('disabled'); ...
JavaScript
tion modifier_razor_eye_of_the_storm_lua_debuff:OnRefresh( kv ) if not IsServer() then return end self.armor = self.armor + kv.armor self:SetStackCount( self.armor ) end function modifier_razor_eye_of_the_storm_lua_debuff:OnRemoved() end function modifier_razor_eye_of_the_storm_lua_debuff:OnDestroy() end --------...
Lua
og.CLog.log("Loading.onDestroy"); } } class Gaming extends procedure.CProcedureBase { protected onInit(fsm:CFsm) : void { super.onInit(fsm); log.CLog.log("Gaming.onInit"); } protected onEnter(fsm:CFsm) : void { super.onEnter(fsm); log.CLog.log("Gaming.onEnter"); } protected onUpdate(fsm:CFsm, deltaTime:number) : ...
Typescript
introduced, portions of this visitor class may be deprecated, * including its constructors. * * @param <R> the return type of this visitor's methods. Use {@link * Void} for visitors that do not need to return results. * @param <P> the type of the additional parameter to this visitor's * me...
Java
import numpy as np from functools import reduce import matplotlib.pyplot as plt n_samples = 20 xTrainRaw = np.random.randn(n_samples, 1) Ntrain = len(xTrainRaw) xTrain = np.hstack((np.ones((Ntrain,1)), xTrainRaw)) wtrue = [1, 1] sigma = 1 yTrain = wtrue[0] + wtrue[1]*xTrainRaw + sigma*np.random.randn(Ntrain, 1) X = xT...
Python
p } q.tail = p q.nBytes += len(p.buf) return len(b), nil } func (pq *packetQueue) recvfrom(dt *deadlineTimer, b []byte, wholePacket bool, checkFrom func(sockaddr) error) (n int, from sockaddr, err error) { var q packetQueueState var empty chan packetQueueState if len(b) == 0 { // For consistency with the imp...
Go
{"channelId", UserId}, {"order","date"} }, cancellationToken).ConfigureAwait(false); // If there are no tracks if (!tracks.Response.Tracks.Any()) { return new SourceResponse(null, null, false, "No videos", "This user has not u...
C#
: 1; } to { -webkit-transform: translate3d(0, 700px, 0); transform: translate3d(0, 700px, 0); opacity: 0; } } .hinge { -webkit-animation-name: hinge; animation-name: hinge; } /* originally authored by Nick Pettit - https://github.com/nickpettit/glide */ @-webkit-keyframes rollIn { from { ...
CSS
-- license:MIT -- copyright-holders:Gavin Kistner local exports = {} exports.name = "SLAXML" exports.version = "0.8" exports.homepage = "http://github.com/Phrogz/SLAXML" exports.description = "Lua SLAX XML parser" exports.tags = {"xml"} exports.license = "MIT" exports.author = { name = "Gavin Kistner", } local SLAX...
Lua
om this point on the registers are restored and the stack * updated, so we don't need to worry about it if we're * preempted */ iret_restore_end: /* * Jump to hypervisor_callback after fixing up the stack. * Events are masked, so jumping out of the critical region is * OK. */ je xen_hypervisor_callback...
Assembly
dht::DhtConfig; use crate::discovery::mdns::MdnsConfig; #[derive(Debug, Default)] pub struct Config { pub mdns: Option<MdnsConfig>, pub dht: Option<DhtConfig>, pub local_addr: Option<SocketAddr>, } impl Config { pub fn new() -> Self { Self::default() } pub fn all() -> Self { S...
Rust
"""Functions for reading data.""" from polars.io.avro import read_avro from polars.io.clipboard import read_clipboard from polars.io.csv import read_csv, read_csv_batched, scan_csv from polars.io.database import read_database, read_database_uri from polars.io.delta import read_delta, scan_delta from polars.io.iceberg ...
Python
eMatrix(original); for (int row1 = 0; row1 < rowCount; row1++) { for (int row2 = row1; row2 < rowCount; row2++) { for (int col1 = 0; col1 < columnCount; col1++) { for (int col2 = col1; col2 < columnCount; col2++) { int sum = computeSum(matrix, row1, row2, col1, col2); if (sum > m...
Dart
CVAR_GAME | CVAR_INTEGER | PC_CVAR_ARCHIVE, "how low can health get taken in nightmare mode" ); idCVar g_showPVS( "g_showPVS", "0", CVAR_GAME | CVAR_INTEGER, "", 0, 2 ); idCVar g_showTargets( "g_showTargets", "0", CVAR_GAME | CVAR_BOOL, "draws entities and thier targets. hidden entities are drawn gr...
C++
#pragma once #include "Vertex.h" #include "BlockTextureMethods.h" #include "ChunkHandle.h" #include <Vorb/io/Keg.h> #include <Vorb/graphics/gtypes.h> enum class MeshType { NONE, BLOCK, LEAVES, TRIANGLE, CROSSFLORA, LIQUID, FLAT }; KEG_ENUM_DECL(MeshType); enum class MeshTaskType; cla...
C
10:00 AM și 1:00 PM, numai miercuri și vineri", CronExpressionDescriptor.getDescription("0 30 10-13 ? * WED,FRI", ROMANIAN)); } @Test public void testSecondsPastTheMinuteInterval() throws Exception { Assert.assertEquals("La secunda 10, la fiecare 5 minute", CronExpressionDescriptor...
Java
convertedDigits = convertDecimalTo(16, decimal); StringBuilder sb = new StringBuilder(); for(int i = convertedDigits.size() - 1; i >= 0; i--) { int digit = convertedDigits.get(i); sb.append(hexadecimal.get(digit)); } return sb.toString(); } private L...
Java
rgumentParser("X-LLM-X Chat Demo") group = parser.add_mutually_exclusive_group() group.add_argument( "--gpu_ids", type=int, nargs="+", help="A list of space-separated gpu ids to run the model on. " "The model will span across GPUs in tensor-parallel mode.", ) grou...
Python
ego kamienia","dalleStyle.stars":"Gwiazdy","dalleStyle.starsExpanded":"Z gwiazd","+Gkni2":"Nazwa Twojego modelu GPT","2SO0RJ":"Instrukcje","2a7xcC":"Pamięć","2exQT6":"Funkcjonalność, z kt\xf3rej może korzystać ten model GPT","2u/6Ja":"Podgląd","6rfYOX":"Rozpoczęcia konwersacji","7r7v+u":"Działania","D4IuIb":"Anuluj","E...
JavaScript
{ #[allow(unused_mut)] let mut builder = update_http_builder(input, http::request::Builder::new())?; builder = aws_smithy_http::header::set_header_if_absent( builder, http::header::HeaderName::from_static("content-type"), "appl...
Rust
element types // CHECK-NEXT: scvtf {z1.s-z2.s}, {z0.s-z1.s} // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: scvtf {z0.s-z3.s}, {z1.s-z5.s} // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid number of vectors // CHECK-NEXT: scvtf {z0.s-z3.s}, {z1.s-z5.s} // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: // -----------------------------------...
Assembly
using System.Numerics; using SoundFlow.Interfaces; namespace SoundFlow.Visualization; /// <summary> /// Visualizes audio data as a waveform. /// </summary> public class WaveformVisualizer : IVisualizer { /// <inheritdoc /> public string Name => "Waveform Visualizer"; /// <summary> /// Gets the wavef...
C#
/** * @project: orhi (OpenRHI) * @author: Adrien Givry * @licence: MIT */ #pragma once #include <orhi/data/DeviceInfo.h> #include <orhi/data/InstanceDesc.h> #include <orhi/data/SwapChainDesc.h> #include <orhi/impl/common/BackendObject.h> #include <orhi/types/EGraphicsBackend.h> #include <unordered_map> #include <vec...
C
USet(pinnedChecker) override fun accept(id: Id): MeterFilterReply { if (matchName(id)) { synchronized(lruSet) { lruSet.add(id) } } return MeterFilterReply.NEUTRAL } fun access(value: Id) { synchronized(lruSet) { lruSet[valu...
Kotlin
ocha'; import { evaluate } from '../../src/index'; describe('evaluate', function() { it('should evaluate some polynomials correctly', function() { let p1 = [0.1,0.2,0.3,2,3,5,11.11]; let p2 = [0.1,0.2,0.3,2,3,5,0]; expect(evaluate(p1,3)).to.equal(252.91000000000003); expect(evaluate(p2,2.2)).to.equal(75...
Typescript
using NUnit.Framework; using OpenTS2.Common; using OpenTS2.Content; using OpenTS2.Content.DBPF; using OpenTS2.Files.Formats.DBPF; using UnityEngine; public class EffectsCodecTest { private EffectsAsset _effectsAsset; [OneTimeSetUp] public void SetUp() { TestCore.Initialize(); ContentM...
C#
.unreq src2_3 .unreq src2asy_3 .unreq counter pop_all ret .align 2 .global PQCLEAN_MLKEM768_AARCH64__asm_asymmetric_mul_montgomery .global _PQCLEAN_MLKEM768_AARCH64__asm_asymmetric_mul_montgomery PQCLEAN_MLKEM768_AARCH64__asm_asymmetric_mul_montgomery: _PQCLEAN_MLKEM768_AARCH64__asm_asym...
Assembly
pub struct Config { pub http: HttpCfg, pub routers: Vec<RouterAddr>, pub github: GitHubCfg, pub ui: UiCfg, } impl ConfigFile for Config { type Error = Error; } impl GitHubOAuth for Config { fn github_url(&self) -> &str { &self.github.url } fn github_client_id(&self) -> &str { ...
Rust
ight,{fill:e,"font-style":"italic"},c))}})(t,e,D)}(h,s.db.getRels(),s.db.getC4Shape,s),d.data.stopx=v,d.data.stopy=T;const p=d.data;let y=p.stopy-p.starty+2*D.diagramMarginY;const f=p.stopx-p.startx+2*D.diagramMarginX;u&&h.append("text").text(u).attr("x",(p.stopx-p.startx)/2-4*D.diagramMarginX).attr("y",p.starty+D.diag...
JavaScript
nel gemm nt mov w8, w1 // kmax mov x9, x3 // A mov w10, w4 // sda lsl w10, w10, #5 // 32*sda mov x11, x5 // B #if MACRO_LEVEL>=2 INNER_KERNEL_GEMM_ADD_NT_8X4_LIB4 #else CALL(inner_kernel_gemm_add_nt_8x4_lib4) #endif #if 0 // prefetch // TODO vs ldr x8, [sp, #(STACKSIZE + 16)] // D ldr w9, [sp, #(S...
Assembly
/// </summary> ClipboardRead = 1 << 3, // 8 /// <summary> /// Allows reading and writing to the system clipboard. /// </summary> ClipboardAccess = ClipboardRead | 1 << 4, // 8 | 16 = 24 /// <summary> /// Allows reading from the local file system. /// </summary> FileRead = 1 << 5,...
C#
g)size); if (ts != NULL && dopreserve) fprintf(metafp, " time=%lld.%09ld", (long long)ts[1].tv_sec, ts[1].tv_nsec); if (digestresult && digest) fprintf(metafp, " %s=%s", digest, digestresult); if (fflags) fprintf(metafp, " flags=%s", fflags); if (tags) fprintf(metafp, " tags=%s", tags); fputc('\n', m...
C
:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] ...
JavaScript
GARRISON_FOLLOWER_MAX_LEVEL = 100; GARRISON_FOLLOWER_MAX_UPGRADE_QUALITY = 4; GARRISON_MISSION_NAME_FONT_COLOR = {r=0.78, g=0.75, b=0.73}; GARRISON_MISSION_TYPE_FONT_COLOR = {r=0.8, g=0.7, b=0.53}; --------------------------------------------------------------------------------- --- Main Frame ...
Lua
*Clique) Protocol() consensus.Protocol { return consensus.KaiaProtocol } // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // // The go-ethereum library is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as pu...
Go
favorPipelines = favorPipelines, authPipelines = authPipelines, viewId = viewId, pipelineFilterParamList = pipelineFilterParamList, permissionFlag = true, page = page, pageSize = pageSize,...
Kotlin
FLT(); decoder.set_dims(dims); rtn = decoder.use_bitstream(bitstream.data(), bitstream.size()); ASSERT_EQ(rtn, sperr::RTNType::Good); rtn = decoder.decompress(); ASSERT_EQ(rtn, sperr::RTNType::Good); auto output = decoder.release_decoded_data(); EXPECT_EQ(input, output); // Test specifying PSNR encod...
C++
/* Copyright 2021 Mike Tsao * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in ...
C
ly use the low-level bindings directly, although it's recommended to /// use the high-level Rust idiomatic API to ensure safety. The low-level bindings are /// quite unsafe to use because there are a lot of unsafe pointers, unsafe blocks, etc... #[test] fn should_create_a_pipeline() { spawn(pro...
Rust
next(error); }); } else { next({ statusCode: 400, message: CONSTANT.API_MESSAGE.ERROR.FIND }); } } /** * @api {put} /api/file/update/:id Update File/Folder * @apiDescription API File/Folder * @apiVersion 0.0.1 * @apiName update * @apiGroup ...
Typescript
final Map<String, _StrutStylePropertyPopulator> _populatorsB = <String, _StrutStylePropertyPopulator>{ 'fontFamily': (_TestStrutStyleBuilder builder) { builder.fontFamily = 'Noto'; }, // Intentionally do not use const List to make sure Object.hashAll is used to compute hashCode 'fon...
Dart
(); local server = f.server; local c = 1; local hasChildren; local btn, name; if (smctVars.profileOpenID) then for i=1, 10 do getglobal("SystemMessageControlToolProfileFrameButton"..smctVars.profileOpenID.."Name"..i):Hide(); end getglobal("SystemMessageControlToolProfileFrameButton"..smctVar...
Lua
); public static final Topic<PlanarRegionsList> TooSmallRegionData = topic("TooSmallRegionData"); public static final Topic<PlanarRegionsList> MaskedRegionsData = topic("MaskedRegionsData"); public static final Topic<List<StepConstraintRegion>> StepConstraintRegionData = topic("StepConstraintRegionData"); p...
Java
tream(streamName, ExpectedVersion.any).finally(() => { eventStore.appendToStream(streamName, ExpectedVersion.any, new messages.NewEvent(uuid.v4(), 'Test', { somedata: 1 }, { somemetadata: 2 })) .finally(done); }); }); it('should execute the callback with no error and the response message', (done) ...
Typescript
type. * @param nalUnitHeaderFirstByte The first byte of nal_unit(). * @return Whether the NAL unit with the specified header is an SEI NAL unit. */ public static boolean isNalUnitSei(String mimeType, byte nalUnitHeaderFirstByte) { return (MimeTypes.VIDEO_H264.equals(mimeType) && (nalUnitHeaderFi...
Java
源码编译安装** cd /usr/local/src/zlib-1.2.11 && ./configure --prefix=/usr/local/zlib && make && make test && make install echo $? ll /usr/local/zlib echo "/usr/local/zlib/lib" >> /etc/ld.so.conf.d/zlib.conf ldconfig -v **2.6、fips模块安装** export FIPSDIR=/usr/local/src/openssl-fips-2.0.16 ...
Markdown
// Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 using System.Text; namespace LibraryVersionsGenerator; internal abstract class CSharpFileBuilder { private bool _hasUsings = false; internal StringBuilder Builder { get; } = new(); public CSharpFileBuilder AddAutoGeneratedHea...
C#
ondary-color: #e5a000; --bb-rl-icon-danger-primary-color: #fdd3d0; --bb-rl-icon-danger-secondary-color: #ec221f; scrollbar-color: #666 transparent; color-scheme: dark; } /* SCSS Variables */ .bb-rl-profile-container { border-bottom: 1px solid var(--bb-rl-border-secondary-color); margin-bottom: var(--bb-rl-...
CSS
ProtoAdapter.STRUCT_LIST.encodedSize(wireMessage) fail() } catch (_: IllegalArgumentException) { } try { ProtoAdapter.STRUCT_LIST.redact(wireMessage) fail() } catch (_: IllegalArgumentException) { } } @Test fun listValueWithoutElements() { val googleMessage = ListValue.ne...
Kotlin
ets the cursor to the given unranked path. Uses contextToPath. */ const setCursorFirstMatch = (state: State, pathUnranked: string[] | null): State => setCursor(state, { path: pathUnranked ? contextToPath(state, pathUnranked) : null, }) /** A Thunk that sets the cursor to the given unranked path. */ export cons...
Typescript
5, #0x0 bl Script_GetTimeOfDay mov r1, #0x16 lsl r1, r1, #0x4 str r0, [r4, r1] sub r1, #0x58 ldr r0, [r4, r1] mov r1, #0x4 mov r2, #0x14 add r3, r6, #0x0 bl Bag_AddItem add r0, r6, #0x0 bl AllocMonZeroed add r6, r0, #0x0 ldr r0, [r5, #0xc] bl Save_VarsFlags_Get bl sub_0205F3C0 mov r2, #0x0 str r2, [sp...
Assembly
background-color: var(--ifm-color-success); opacity: 0.6; } .migration_details_filter_in_pr { background-color: var(--ifm-color-emphasis-400); } .migration_details_filter_in_pr_hidden { background-color: var(--ifm-color-emphasis-400); opacity: 0.6; } .migration_details_filter_awaiting_pr { background-co...
CSS
フォームコンテキストの取得 var formContext = executionContext.getFormContext(); // ”関連”のコントロールの取得 var regardingObjectControl = formContext.getControl(ACCOUNT_COL_KANREN); // プレーサーチメソッドの追加 regardingObjectControl.addPreSearch(FilterContact); // ドロップダウンリストのアイテムタイプが複数かをチェック if (re...
Typescript
le.log(k.values),console.log(k.values_map.get("K")),console.log(k.fetch("K").key))}).call(this,n(181),"/index.js")},545:function(e,t,n){"use strict";(function(e,o){n.d(t,"a",(function(){return d}));n(12),n(538);var r=n(179),c=n(180),_=n(539),l=n(540),f=n(537);function h(e){var t=function(){if("undefined"==typeof Reflec...
JavaScript
. */ autoHeight?: boolean; /** * Aspect ratio of the the SVG element. Default value is `1.618`. * This value doesn't have any effect unless `autoWidth` or `autoHeight` is set. */ aspectRatio?: number; /** Base CSS class to be applied to the element. Defaults to `svg`. */ baseClass?: string;...
Typescript
n} from 'express'; // Interfaces (represent the DB model and types of the columns associated with a specific DB table) import {Tweet} from '../../utils/interfaces/Tweet'; import {Status} from '../../utils/interfaces/Status'; import {Profile} from "../../utils/interfaces/Profile"; import {insertTweet} from "../../utils...
Typescript
material; mod mesh; mod mesh_part; mod mesh_pass; mod mesh_pipeline; pub use geometry::{MeshPartGeometry, Vertex}; pub use material::{Material, MaterialData, MaterialFactors, MaterialKind}; pub use mesh::Mesh; pub use mesh_part::{MeshPart, MeshPartData, mesh_parts_bbox}; pub use mesh_pass::MeshPass; <reponame>viktorch...
Rust
eneric map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ "name", } allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { return err } for _, requiredProperty := range requi...
Go
fully(GenerateShaderCode(body, extra).c_str()); ASSERT_EQ(SPV_SUCCESS, ValidateInstructions()); } TEST_F(ValidateImage, ReadWrongCoordinateType) { const std::string body = R"( %img = OpLoad %type_image_u32_2d_0002 %uniform_image_u32_2d_0002 %res1 = OpImageRead %u32vec4 %img %f32vec2_00 )"; const std::string ext...
C++
CALIB_CB_SYMMETRIC_GRID = 1, CALIB_CB_ASYMMETRIC_GRID = 2, CALIB_CB_CLUSTERING = 4, CALIB_FIX_ASPECT_RATIO = 0x00002, CALIB_FIX_PRINCIPAL_POINT = 0x00004, CALIB_ZERO_TANGENT_DIST = 0x00008, CALIB_FIX_FOCAL_LENGTH = 0x00010, ...
Java
_(optimizer) # grad_norm = torch.nn.utils.clip_grad_norm_(model.parameters(), config.optim.max_norm) # update scaler.step(optimizer) scale = scaler.get_scale() scaler.update() optimizer.zero_grad() step += 1 writer.add_sc...
Python
"); } protected CoverFlowAction(){}; protected CoverFlowAction(int pointer) { super(pointer); } private native void nativeInit(float duration, Cover targetCover); protected CoverFlowAction(float duration, Cover targetCover) { nativeInit(duration, targetCover); } /** * \if English * static constru...
Java
pending, set budgets, and monitor progress. Choose an app that fits your needs and integrates with your financial accounts.", "What should I include in a financial plan?": "A financial plan should include your financial goals, income, expenses, debt, savings, investments, insurance, and retirement planning." } # S...
Python
hacia {destination}"},left:{default:"Gire a la izquierda",name:"Gire a la izquierda en {way_name}",destination:"Gire a la izquierda hacia {destination}"},right:{default:"Gire a la derecha",name:"Gire a la derecha en {way_name}",destination:"Gire a la derecha hacia {destination}"},straight:{default:"Ve recto",name:"Ve ...
JavaScript
'Nanum Brush Script'; font-style: normal; font-weight: 400; font-display: swap; src: local('Nanum Brush Script'), local('NanumBrush'), url(https://fonts.gstatic.com/s/nanumbrushscript/v17/wXK2E2wfpokopxzthSqPbcR5_gVaxazyi8h91FzOgw1p2ltl6Y9TO0Bmgx_e.103.woff2) format('woff2'); unicode-range: U+b4, U...
CSS
either express or implied. See the License for the // specific language governing permissions and limitations // under the License. // using Google.Solutions.Apis.Diagnostics; using System; namespace Google.Solutions.Apis.Auth.Iam { internal class NotSupportedForWorkloadIdentityException : NotSupportedE...
C#
diffRsectordoneOnce = FALSE; static u16 numberOfSectors = 0; u16 *pcrist; u16 rsector1, rsector2, buf, diff1, diff2; if (diffRsectordoneOnce == FALSE) { if (pEncoHC->scannerTopology.numberOfRings > 1) { printf ("*** ERROR : oneList_cleanKit.c : diffRsector not implemented\n"); printf("yet for...
C
et_fmt = video_mux_set_format, }; static const struct v4l2_subdev_ops video_mux_subdev_ops = { .pad = &video_mux_pad_ops, .video = &video_mux_subdev_video_ops, }; static int video_mux_probe(struct platform_device *pdev) { struct device_node *np = pdev->dev.of_node; struct device *dev = &pdev->dev; struct device_...
C
return this; } @override void replace(GGetUpdateUserReq other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$GGetUpdateUserReq; } @override void update(void Function(GGetUpdateUserReqBuilder)? updates) { if (updates != null) updates(this); } @override GGetUpdateUserReq...
Dart
local W = unpack((select(2, ...))) ---@type WindTools W.Changelog[367] = { RELEASE_DATE = "2024/08/20", IMPORTANT = { ["zhCN"] = { "[鼠标提示] 优化鼠标提示的总体性能表现。", }, ["zhTW"] = { "[鼠標提示] 優化鼠標提示的總體性能表現。", }, ["enUS"] = { "[Tooltips] Optimized the overall performance of tooltips.", }, ["koKR"] = { "...
Lua
knziha.infinite.tv") // .setIcon(IconCompat.createWithResource(this, R.mipmap.infinite_history)) // .setShortLabel("无限历史") // .setIntent(intent) // .build(); // ShortcutManagerCompat.requestPinShortcut(this, shortcutInfo, null); // try { // new SettingsSearcherTest().buildIndex(this); // } catch (Exce...
Java
/react-crossword/issues/131) # [4.2.0](https://github.com/JaredReisinger/react-crossword/compare/v4.1.2...v4.2.0) (2022-02-25) ### Features * add props for across/down clue labels ([c41c64d](https://github.com/JaredReisinger/react-crossword/commit/c41c64d2b1dd124a78c63787133abc643edcad65)), closes [#132](https://gi...
Markdown
onScreenUpdated(screen) } } } /** * Type: Confirm Screen (9x3) * Pattern: * - 9x air * - 2x air / yes / air / player head / air / no / 2x air * - 9x air */ private object Hypixel : Mode("Hypixel") { private val emptyIndices = intAr...
Kotlin
import pytest import httpx BASE_URL = "/api/pros" EXPECTED_FIELDS = ["created_at", "created_by", "updated_at", "url", "id"] @pytest.mark.asyncio(scope="session") async def test_upload_download_storage( test_client, user_project, cookies_admin, ): key = "test/file_0.txt" file_content = "this is so...
Python
type={ACTION_BUTTON_TYPES.default} rest={{ onClick: handleSuccess, disabled: reorderLoading }} /> </DialogActions> </Dialog> ); } Component.displayName = NAME; Component.propTypes = { handleCancel: PropTypes.func, handleSuccess: PropTypes.f...
JavaScript
. If not, see http://www.gnu.org/licenses/. @Repository: https://github.com/edoardottt/scilla @Author: edoardottt, https://edoardottt.com @License: https://github.com/edoardottt/scilla/blob/main/LICENSE */ package enumeration import ( "fmt" "net/http" "os" "sync" httpUtils "github.com/edoardottt/s...
Go
S.value):l(S.value).then(m,b)}_((u=u.apply(o,s||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.ONTOWalletAdapter=e.ONTOWalletName=void 0;const n=Bn,r=Ts;e.ONTOWalletName="ONTO";class i extends r.BaseWalletAdapter{constructor({timeout:s=1e4}={}){var a;super(),this.name=e.ONTOWalletName,this.url="http...
JavaScript
'透視軟體'}, {'6673', '外 掛', '外 掛'}, {'6674', '外_掛', '外_掛'}, {'6675', '外-掛', '外-掛'}, {'6676', '外—掛', '外—掛'}, {'6677', '外匯局', '外匯局'}, {'6678', '外專局', '外專局'}, {'6679', '萬稅', '萬稅'}, {'6680', '王太華', '王太華'}, {'6681', '網管', '網管'}, {'6682', '威而鋼', '威而鋼'}, {'6683', '衛生部', '衛生部'}, {'6684', '溫加寶', '溫加寶'}, {'6685', '溫家保', '溫家保'}, {'6...
Lua
rs scaled to maintain a desired false- /// positive rate for an unbounded number of items. /// /// * Proper tests. /// /// For my current purposes I ended up just using the write log idea - 16 bytes /// per entry was sufficient and the implementation was dead simple. use std::convert::TryInto; use std::fs::OpenOption...
Rust
Int import androidx.annotation.StringRes import androidx.core.text.parseAsHtml import java.util.Locale import org.nekomanga.core.R import org.nekomanga.domain.network.ResultError import tachiyomi.core.util.system.getResourceColor /** * Replaces the given string to have at most [count] characters using [replacement] a...
Kotlin
体做法如下: 1. $ans$ 用来维护子数组最大平均数,初始值为负无穷,即 `float('-inf')`。$window\underline{\hspace{0.5em}}total$ 用来维护窗口中元素的和。 2. $left$ 、$right$ 都指向序列的第一个元素,即:`left = 0`,`right = 0`。 3. 向右移动 $right$,先将 $k$ 个元素填入窗口中。 4. 当窗口元素个数为 $k$ 时,即:$right - left + 1 >= k$ 时,计算窗口内的元素和平均值,并维护子数组最大平均数。 5. 然后向右移动 $left$,从而缩小窗口长度,即 `left += 1`,使得窗口大小始终保...
Markdown
ME = "debug_staging_comments"; #endif public PageCommentTemp(string comment, DateTime created, int userId, int spId, int urlId, int? parentSpId) { this.Comment = comment; this.Created = created; this.UserID = userId; this.SpID = spId; this.Url...
C#
ters for opening and saving files. ## Remarks Use **FileConverters** (Index), where Index is a class name or index number, to return a single **FileConverter** object. The following example displays the extensions associated with the Microsoft Excel worksheet converter. ```vb MsgBox FileConverters("MSBiff").Exten...
Markdown
d-template-rows:1fr 3fr 2fr 3fr auto}.Grid_grid__yF8JH.Grid_template-columns-1fr-3fr-2fr-3fr__A30MY{grid-template-columns:1fr 3fr 2fr 3fr}.Grid_grid__yF8JH.Grid_template-columns-auto-1fr-3fr-2fr-3fr__h1COp{grid-template-columns:auto 1fr 3fr 2fr 3fr}.Grid_grid__yF8JH.Grid_template-columns-1fr-3fr-2fr-3fr-auto__gO9Uh{gri...
CSS
Formationスタックを複数作成しても構いません。ただし、以下の点に留意してください。 [競技環境の確認](#競技環境の確認)に記載の通り、サーバー情報の更新はサーバー単位、かつサーバーインスタンスが起動(再起動を含む)するたびに実施されます。 そのため、複数のスタックで作成されたサーバーが同時に存在している時、選手の操作によっては、[ポータルのサーバーリスト](https://portal.isucon.net/contestant/contestant_instances)に複数のスタックのサーバー情報が混在してしまう可能性があります。 混在しているかの判断はポータルとスタックのリソースに表示されているIPアドレスを元に行...
Markdown
's automatically-formatted timestamp format. This will return a String that * you can include in your messages, which Discord should automatically format for users based on their locale. */ public fun Instant.toDiscord(format: TimestampType): String = format.format(epochSeconds) /** Retrieve the [DateTimeUnit] for t...
Kotlin
fake 10.88.0.136 <none> <unknown> <unknown> <unknown> fake-2 Ready agent 10s fake 10.88.0.136 <none> <unknown> <unknown> <unknown> fake-3 Ready agent 10s fake 10.88.0.136 <none> <unknown> <unknown> <unknown> fake-4 Read...
Markdown
cal haveSelection; if ( view == FRIENDS_FRIENDS_POTENTIAL or view == FRIENDS_FRIENDS_ALL ) then showPotential = true; numFriendsFriends = numFriendsFriends + numPotential; end if ( view == FRIENDS_FRIENDS_MUTUAL or view == FRIENDS_FRIENDS_ALL ) then showMutual = true; numFriendsFriends = numFriendsFriends + ...
Lua
translator; } public Address getAddress() { return address; } public AddressTranslator getTranslator() { return translator; } } /* ### * IP: GHIDRA * REVIEWED: YES * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License....
Java
toast 与 notice 弹窗的提示文字, 会覆盖 content 的设置</td> </tr> <tr> <td>position</td> <td>'center'</td> <td>notice 弹窗的位置, center: 居中; bottom: 底部</td> </tr> </tbody> </table> ## 回调函数 <table> <thead> <tr> <th>函数</th> <th>默...
Markdown
display:inline-block;vertical-align:middle;font-size:3rem}.ui.statistic>.text.value,.ui.statistics .statistic>.text.value{font-size:2rem}.ui.large.statistic>.value,.ui.large.statistics .statistic>.value{font-size:5rem}.ui.large.horizontal.statistic>.value,.ui.large.horizontal.statistics .statistic>.value{font-size:4rem...
CSS
Postgres queries // which is why this has to be so large. MaxLogLineSize = 10 * 1024 * 1024 InitialScannerBufferSize = 10 * 10 // PostgresTimestampFormat is the Go template format that we expect to find our errlog PostgresTimestampFormat = "2006-01-02 15:04:05.000 MST" ) // ParserFunc is the standard i...
Go
.png'); /// File path: assets/images/card_7_front.png AssetGenImage get card7Front => const AssetGenImage('assets/images/card_7_front.png'); /// File path: assets/images/card_8_front.png AssetGenImage get card8Front => const AssetGenImage('assets/images/card_8_front.png'); /// File path: assets...
Dart
13.181.3a3.654 3.654 0 01.671 5.517l.002-.003a9.813 9.813 0 01-.535 1.713l.024-.065a4.053 4.053 0 01-2.528 3.209l-.027.01a8.314 8.314 0 01-2.384 1.344l-.058.019a4.085 4.085 0 01-2.993 1.337h-.094a4.108 4.108 0 01-3.009-1.332l-.003-.003a8.442 8.442 0 01-2.463-1.378l.016.013a4.074 4.074 0 01-2.559-3.197l-.003-.022a9.46 9...
Dart
or backwards compatibility return vit_base_r50_s16_224_in21k(pretrained=pretrained, **kwargs) @register_model def vit_large_r50_s32_224_in21k(pretrained=False, **kwargs): """ R50+ViT-L/S32 hybrid. ImageNet-21k. """ backbone = _resnetv2((3, 4, 6, 3), **kwargs) model_kwargs = dict(embed_dim=1024, de...
Python
e, DateTimeOffset? lockoutEnd = default(DateTimeOffset?), bool useNamePrefixAsUserName = false) { return new PocoUser { UserName = useNamePrefixAsUserName ? namePrefix : string.Format(CultureInfo.InvariantCulture, "{0}{1}", namePrefix, Guid.NewGuid()), Email = email, ...
C#