content
stringlengths
2
6.21k
label
stringclasses
16 values
*http.Request) string { for _, h := range []string{"X-Forwarded-For", "X-Real-Ip"} { for _, ip := range strings.Split(r.Header.Get(h), ",") { if len(ip) == 0 { continue } realIP := net.ParseIP(strings.Replace(ip, " ", "", -1)) return realIP.String() } } // not found in header host, _, err := ne...
Go
ackground-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3e%3cpath fill='none' stroke-width='1.5' d='M1 1l6 6 6-6' stroke='%23003ecc'/%3e%3c/svg%3e"); } .form-element--type-select[disabled] { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/s...
CSS
if (order.OrderString != "EnterTunnel" || order.Target.Type != TargetType.Actor) return; var tunnel = order.Target.Actor.TraitOrDefault<TunnelEntrance>(); if (tunnel == null || !tunnel.Exit.HasValue) return; self.QueueActivity(order.Queued, move.MoveTo(tunnel.Entrance, tunnel.NearEnough, targetLin...
C#
diffB = -diffB; if ( diffR + diffG + diffB > threshold ) { *dst = (byte) 255; whitePixelsCount++; } else
C#
"""Functions for downloading demo data.""" import os from pathlib import Path import gdown TARGET_DIR = "clarity_data/demo" PACKAGE_NAME = "data.tgz" def get_demo_data(metadata_url: str, target_dir: str) -> None: """Download demo data. Args: metadata_url (str): URL to download data from (should be...
Python
,66,66); $palette-grey-900: rgb(33,33,33); // Blue Grey $palette-blue-grey-50: rgb(236,239,241); $palette-blue-grey-100: rgb(207,216,220); $palette-blue-grey-200: rgb(176,190,197); $palette-blue-grey-300: rgb(144,164,174); $palette-blue-grey-400: rgb(120,144,156); $palette-blue-grey-500: rgb(96,125,139); $palette-blue...
CSS
/* $NetBSD: apple_smcvar.h,v 1.4 2014/04/01 17:49:05 riastradh Exp $ */ /* * Apple System Management Controller State */ /*- * Copyright (c) 2013 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Taylor R. Campbell. * * Redistr...
C
IR_MAX_DURATION0 0xFD04 #define IR_MAX_DURATION1 0xFD05 #define IR_IDLE_LEN0 0xFD06 #define IR_IDLE_LEN1 0xFD07 #define IR_GLITCH_LEN 0xFD08 #define IR_RX_BUFFER_CTRL 0xFD09 #define IR_RX_BUFFER_DATA 0xFD0A #define IR_RX_BC 0xFD0B #define IR_RX_CLK 0xFD0C #define IR_RX_C_COUNT_L 0xFD0D #define IR_RX_C_...
C
dir") .join("input/2021"); let mut data = Data::default(); data.load(&base_dir, String::from(DAY) + "_test.txt"); let mut state = State { regs: [8, 0, 0, 0] }; for op in &data.input[0] { state.process(op); } assert_eq!(state.regs, [1, 0, 0, 0]); ...
Rust
* @param strBundleName Bundle 名称 * @param strResURI 资源 URI * @param strKind 种类 * @param bAutoPlay 是否自动播放 * @param bLoop 是否循环, true = 循环播放, false = 不循环 */ function __loadAudioAndPlay( strBundleName: string, strResURI: string, strKind: "Sound" | "BGMusic" | "Voice", bAutoPlay = true, bLoop: boolean = false): ...
Typescript
P1S2 = column.Shift(P1, 2) build.UnivariateEval(EVAL, P1, P1S2, P2, P3, P4) } comp := wizard.Compile( definer, Naturalize, dummy.Compile, ) require.Equal(t, len(comp.QueriesParams.AllKeysAt(0)), 3) hLProver := func(assi *wizard.ProverRuntime) { p1 := smartvectors.ForTest(1, 2, 3, 4) p2 := smartvect...
Go
하라는 상부의 허가를 받았습니다.","현재 착용하고 있는 어깨 방어구에 구입하신 장막을 사용하면 각 장막에 담긴 잠재적인 마법 저항력을 강화할 수 있습니다. 은빛 여명회를 위해 지속적으로 힘써 주신 데 대한 감사의 표시로, 명예 휘장을 10개 가지고 오시면 이 장막을 구입할 수 있도록 해 드리겠습니다."}, {"동부 역병지대의 희망의 빛 예배당에 있는 병참장교 미란다 브리치락에게 은빛 여명회 명예 휘장 10개를 가져가야 합니다."}}, [5514] = {"거푸집과 뼈조각", {"자네가 만나 봐야 하는 고블린의 이름은 크린클 굿스틸이라고 하네. 타나리스 사막의 가젯잔에...
Lua
556.478764zM385.482625 61.281853q-12.849421 0-21.745174 8.895753t-8.895753 21.745174q0 13.837838 8.895753 22.733591t21.745174 8.895753l251.057915 0q12.849421 0 21.745174-8.895753t8.895753-22.733591q0-12.849421-8.895753-21.745174t-21.745174-8.895753l-251.057915 0zM292.571429 689.915058q18.779923 0 32.123552-13.343629t13...
JavaScript
ing/src/common/slash_validator.rs#L41-L46)” 和“ [延迟](https://github.com/sigp/lighthouse/blob/0d90135047519f4c2ee586d50e560f7bb2ff9b10/consensus/state_processing/src/per_epoch_processing/slashings.rs#L35-L44)” 的削减罚金对高额质押的验证者来说更大。 - 与有高额质押的被削减验证者一起的“延迟”削减罚金也更大,因为总质押中的“被削减”部分变得 [更大](https://github.com/sigp/lighthouse/blob/...
Markdown
ap_blocks(); private static final String ZZ_CMAP_BLOCKS_PACKED_0 = "\11\0\1\1\1\2\1\3\1\4\1\5\16\0\4\6" + "\1\1\1\7\1\10\1\11\1\12\1\7\1\13\1\14" + "\2\15\1\16\1\17\1\20\1\21\1\22\1\23\1\24" + "\1\25\2\26\4\27\2\30\1\31\1\20\1\32\1\33" + "\1\34\1\35\1\36\1\37...
Java
j69-iVkC2yUtohVw", "1f37e58d-d8b0-476a-a4f2-f8611e0d85d9", ), arrayOf( "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiRnJhIn0.ENQGHEsAL3WjVhd_qTiJa_9ojGKi2ftJ8xlocT8SVX4", "Fra", ), arrayOf( "eyJ0eXAiO...
Kotlin
s = this.func175330B(guitextfield.getId(), f1.floatValue()); guitextfield.setText(s); this.func_175319_a(i, s); } } } /** * Called when the mouse is clicked. Args : mouseX, mouseY, clickedButton */ protected void mouseClicked(int mouseX, int mo...
Java
px;min-width:240px}#wpadminbar *{font-size:14px;font-weight:400;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;line-height:2.28571428}#wpadminbar .quicklinks .ab-empty-item,#wpadminbar .quicklinks>ul>li>a{padding:0;height:46px;line-height:3.285714...
CSS
äfthammar 60.18333 18.2 Boda 59.56906 13.05399 Frykerud 59.56667 13.15 Eda 59.83333 12.31667 Järnskog 59.68333 12.13333 Köla 59.79972 12.23306 Skillingmark 59.81667 12 Dalby 60.65 12.98333 Fryksände 60.13752 13.01398 Lekvattnet 60.2 12.66667 Norra Finnskoga 60.9 12.58333 Vitsand 60.33333 12.96667 Lungsund 59.51667 14.1...
C#
@link-red: @red; @link-red-visited: @red-dark; @link-ext: #37a; @link-ext-visited: darken( @link-ext, 10% ); // Flair // Fonts are chosen for consistent metrics, not necessarily overall prettiness. @fonts-sans: 'Segoe UI', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lato', 'Liberation Sans', 'Noto Sans', 'Helvetica Neue'...
CSS
!= "" { return m.Spec.AuthSecret.Name } return meta_util.NameWithSuffix(m.OffshootName(), "auth") } type mysqlApp struct { *MySQL } func (r mysqlApp) Name() string { return r.MySQL.Name } func (r mysqlApp) Type() appcat.AppType { return appcat.AppType(fmt.Sprintf("%s/%s", kubedb.GroupName, ResourceSingularMy...
Go
That(widgetItem.hasGeneratedPreview(WIDGET_CATEGORY_HOME_SCREEN)).isFalse() assertThat(widgetItem.hasGeneratedPreview(WIDGET_CATEGORY_KEYGUARD)).isFalse() assertThat(widgetItem.hasGeneratedPreview(WIDGET_CATEGORY_SEARCHBOX)).isFalse() } @Test @RequiresFlagsEnabled(FLAG_ENABLE_GENERATED_PREV...
Kotlin
Tag(false); } } else if (event.getScriptId() == ScriptID.BANKMAIN_FINISHBUILDING && enabled) { if (tagTabActive) { hideBank(); } repositionButtons(); rebuildTabs(); int tagTabHeight = rebuildTagTabTab(); // Apply our own title if (tagTabActive) { // Tag tab tab has its own ...
Java
(39-39) cp[2201] = 0x6CE2; // 波 (39-40) cp[2202] = 0x6D3E; // 派 (39-41) cp[2203] = 0x7436; // 琶 (39-42) cp[2204] = 0x7834; // 破 (39-43) cp[2205] = 0x5A46; // 婆 (39-44) cp[2206] = 0x7F75; // 罵 (39-45) cp[2207] = 0x82AD; // 芭 (39-46) cp[2208] = 0x99AC; // 馬...
Java
; } ul { list-style: none; } li { position: relative; margin-bottom: 5px; } li::before { content: ''; display: inline-block; width: 4px; height: 4px; border: solid $gray-7; border-width: 0 2px 2px 0; transform: rotate(-45deg); margin-left: 12px; margin-righ...
CSS
: 6, message: '请输入至少 6 个字符' }, { max: 20, message: '最多只能 20 个字符' }, { pattern: '^[A-Za-z0-9]+$', message: '只能输入英文字母和数字' }, ], }, auto_login: { title: '自动登录', titleDescription: '开启后两周内自动再次登录', renderType: 'Switch', }, }, } const Demo = () => { const [value, setVal...
Markdown
yaml_path = "./StreamingAvatarSDK.yaml" sdk_path = "./sdk" StreamingAvatarApi_remote_path = "https://api.github.com/repos/HeyGen-Official/StreamingAvatarSDK/contents/apis/StreamingAvatarApi.ts" StreamingAvatarApi_local_path = "./sdk/apis/StreamingAvatarApi.ts" runtime_remote_path = "https://api.github.com/repos/HeyGen-...
Python
-ring: oklch(0.556 0 0); } @layer base { * { @apply border-border outline-ring/50; } body { @apply bg-background text-foreground; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; } } @charset...
CSS
-size:1.125rem}.m-modeXL-4 .m-object__description{font-size:.875rem;margin-top:.5rem}.m-modeXL-4 .m-object__img{position:relative}.m-modeXL-4 .m-object__body{width:100%}}@media screen and (max-width:47.99875em){.m-modeS-4{margin:1rem 0}}@media screen and (min-width:48em) and (max-width:63.99875em){.m-modeM-4{margin:1.5...
CSS
public void Z_Global_Settings_Parse_Fails() { GlobalSettings.Default_Parsable_Formats = Allowed_Parse_Format.MGRS; Assert.ThrowsException<FormatException>(() => Coordinate.Parse("24 56")); Assert.ThrowsException<FormatException>(() => Coordinate.Parse("24 56", new DateTime(2...
C#
NavPoint np1 = new NavPoint(s1,t1); NavPoint np2 = new NavPoint(s2,t2); Velocity calcVel = np1.initialVelocity(np2); v_list[j] = calcVel; } System.out.println("AircraftHistory for "+id+"REPAIRED"); return chk; } public boolean velocitiesAboutEqual(Velocity v1, Ve...
Java
BOOL, ScissorEnable: BOOL, MultisampleEnable: BOOL, AntialiasedLineEnable: BOOL, }} RIDL!{#[uuid(0x9bb4ab81, 0xab1a, 0x4d8f, 0xb5, 0x06, 0xfc, 0x04, 0x20, 0x0b, 0x6e, 0xe7)] interface ID3D11RasterizerState(ID3D11RasterizerStateVtbl): ID3D11DeviceChild(ID3D11DeviceChildVtbl) { fn GetDesc( pD...
Rust
sn1Encodable parameters) { if (capabilityID == null) throw new ArgumentNullException("capabilityID"); this.capabilityID = capabilityID; if (parameters != null) { this.parameters = parameters.ToAsn1Object(); } } public static SmimeCapability GetInstance( object ob...
C#
MessagesItemCreateForwardPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBack...
Go
271FA7D6A23AB9BEA1DBB5506F550545E91E8ADCBF384AD5188960E5458B3BD25ADFF0424568A4FCA8AD6338A8FB83E25B2FBE9AEBE24BBD173A8602433` SSDEEP | `1536:/jZ2b9OW92/cO+32wMxYL9HD4w7bkjoCj9dGeNTZnK1ccO1dA3+OpnPmqOjHX8:/jZGOjtufMm9DNkj3/btnTtA3DnPmqN` IMP | `1680C1B4BBAD2319A5D1D4C0D0C56233` PESHA1 | `A44DFB16207E746DD96CE71368EB0E936...
Markdown
MouseMove(testPoint) } } // We should be able to handle hover events sent as generic events. @Test fun mouseHover2() { setupWithPref(mousePassthrough = true) sendGenericEvent(Factory.obtainHoverEvent(testPoint, InputDevice.SOURCE_MOUSE)) verify { mockDispatcher.onMouseMove(testP...
Kotlin
from tkinter import * from tkinter import messagebox from model.celular import Celular from services.controladorTienda import ControladorTienda from services.Observable import Observable class FormularioCelular: def __init__(self, root, servicio): self.servicio = servicio self.nueva_ventana = Tople...
Python
: ChatMessageMenuRoute.page), ]; } /// ダイアログ class AutoDialogRoute<ReturnT extends Object> extends CustomRoute { AutoDialogRoute({required super.page}) : super( transitionsBuilder: TransitionsBuilders.fadeIn, duration: const Duration(milliseconds: 200), fullscreenDialog: false, ...
Dart
模型进行交流, 关键词:私有语言模型,, 本地语言模型,, 聊天,, 交流 **票数**: 🔺306 **是否精选**:是 **发布时间**:2025年01月14日 PM04:01 (北京时间) --- ## [4. BlurData](https://www.producthunt.com/posts/blurdata?utm_campaign=producthunt-api&utm_medium=api-v2&utm_source=Application%3A+nextauth+%28ID%3A+151633%29) **标语**:自动保护屏幕截图和PDF中的敏感数据 **介绍**:自动保护您的截图和PDF中的敏感信息。B...
Markdown
// Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include "go_asm.h" #include "textflag.h" #define REGCTXT R29 // memequal(a, b unsafe.Pointer, size uintptr) bool TEXT runtime·memequal<ABIInternal>(SB),NOSPL...
Assembly
null_aware_operators, invalid_use_of_visible_for_overriding_member part of 'list_group.dart'; // ************************************************************************** // OverReactBuilder (package:over_react/src/builder.dart) // ************************************************************************** // React c...
Dart
Assets.images.enemy.imp.impRunRight.keyName, // 'enemy/imp/imp_run_right.png' SpriteAnimationData.sequenced( amount: 4, stepTime: 0.1, textureSize: Vector2(16, 16), ), ), ); static Future<SpriteAnimation> miniBossIdleRight() => SpriteAnima...
Dart
")); n.param("color/r", color_r, 1.0); n.param("color/g", color_g, 0.0); n.param("color/b", color_b, 0.0); n.param("color/a", color_a, 1.0); n.param("origin", origin, false); n.param("robot_scale", scale, 2.0); n.param("frame_id", _frame_id, string("world") ); n.param("cross_config", cross_co...
C++
oteTable, Config.Languages[lang]['rfavorite']) table.insert(FavEmoteTable, Config.Languages[lang]['rfavorite']) table.insert(EmoteTable, Config.Languages[lang]['favoriteemotes']) else table.insert(EmoteTable, "keybinds") keyinfo = NativeUI.CreateItem(Config.Languages[lang]['keybinds'], Conf...
Lua
from http.server import ThreadingHTTPServer, BaseHTTPRequestHandler from threading import Thread from queue import Queue addr = "127.0.0.1" port = 8037 viewQueue = Queue() class CADViewerHandler(BaseHTTPRequestHandler): def do_POST(self): len = int(self.headers["Content-Length"]) print("Content-...
Python
算法的改进, 发现新的问题,还可以构建全新的虚拟场景进行测试。每天有 25000辆虚拟Waymo无人车在模拟器中行驶八百万英里以上的里程,来巩固已有的自动驾驶技能和测试新的技能。模拟仿真测试最大的优势是可以快速重复测试一些现实中不常发生但却很重要的场景,比如五岔路口和并入环岛。模拟器能够让自动驾驶系统有很多次机会练习这种单一场景来精通对应的技能。 另外在模拟器中,可以对某个具体测试场景中的某个参与者,或者是交通信号进行一些改变, 添加额外的行人等,通过这种方式可以构建大量的衍生场景,从而对无人驾驶算法进行更充分的测试。 ![image-20220113203710447](https://gitee.com/er-huomeng...
Markdown
/dbus" "github.com/godbus/dbus/v5" ) var errNotEnoughArguments = errors.New("not enough arguments") func exec(network, node string, args []string) error { if len(flag.Args()) <= 1 { return errNotEnoughArguments } if network == "" { return errNoSuchNetwork } if err := os.Setenv("GONT_NETWORK", network); er...
Go
1]=vf->dmpi->stride[1]; mpi->stride[2]=vf->dmpi->stride[2]; } mpi->flags|=MP_IMGFLAG_DIRECT; } static int put_image(struct vf_instance *vf, mp_image_t *mpi, double pts){ mp_image_t *dmpi; if(!(mpi->flags&MP_IMGFLAG_DIRECT)){ // no DR, so get a new image! hope we'll get DR buffer: ...
C
stioninfo = suggestioninfo local desc = vgui.Create("DPanel") desc:SetSize(300,900) desc.Text = {} desc.Paint = function(pnl) surface.SetFont(self.CurrentFont) surface.SetTextColor( 255,255,255,255 ) local y = 0 for i=1, #pnl.Text do surface.SetTextPos( 0, y ) surface.DrawText(pnl.Text[i]) local _...
Lua
r; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.support.v2beta.CaseProto .internal_static_google_cloud_support_v2beta_Product_fieldAccessorTable .ensureFieldAccessorsInitialized( ...
Java
. @Override public SessionFactory getSessionFactory() { throwNotImplemented(); return null; } @Override public boolean containsEntity( Class entityClass, Object identifier ) { throwNotImplemented(); return false; } @Override public boolean containsEntity( String entityName, Object identifier...
Java
.train 8198 >> Train your class spells .target Grezz Ragefist .xp <18,1 step << Hunter .goto Orgrimmar,66.05,18.52 >>|Tinterface/worldmap/chatbubble_64grey.blp:20|tTalk to |cRXP_FRIENDLY_Ormak|r .train 13795 >> Train your class spells .target Ormak Grimshot .xp <16,1 .xp >18,1 step ...
Lua
(n >> 5)] ^= (1 << (n & 31)); // Flip bit //mag[mag.Length - 1 - (n / 32)] ^= (1 << (n % 32)); return new BigInteger(this.sign, mag, false); } } }
C#
te; ConstraintPart constraint; XmManagerPart manager; XmBulletinBoardPart bulletin_board; XmSelectionBoxPart selection_box; } XmSelectionBoxRec; /* Access Macros */ #define SB_ListLabel(w) \ (((XmSelectionBoxWidget) (w))->selection_box.list_label) #define SB_List(w) \ (((XmSelectionBoxWidget) (w))->se...
C
d(nativeInst, enabled); } public int getPeerCapabilities() { ensureNativeInstance(); return nativeGetPeerCapabilities(nativeInst); } public void requestCallUpgrade() { ensureNativeInstance(); nativeRequestCallUpgrade(nativeInst); } public void setEchoCancellationStrength(int strength) { ensureNativeI...
Java
statics local LayoutProvider_private = LayoutProvider :: LayoutProvider_private & LayoutProvider_statics; (LayoutProvider :: any).__index = LayoutProvider function LayoutProvider_private.new( getLayoutTypeForIndex: (index: number) -> string | number, setLayoutForType: (type_: any, dim: Dimension, index: number) -> ...
Lua
Condition; // 0x0000(0x0001)(BlueprintVisible, BlueprintReadOnly, Parm, ZeroConstructor, IsPlainOldData, NoDestructor) }; static_assert(alignof(Valet_BasicCar_Vehicle_C_BrakingSkid) == 0x000001, "Wrong alignment on Valet_BasicCar_Vehicle_C_BrakingSkid"); static_...
C++
BdiUtils.addBelief(scope, tempState); } /** * Prim add belief emotion. * * @param scope the scope * @return the boolean * @throws GamaRuntimeException the gama runtime exception */ // va déclencher les émotions happy_for, sorry_for, resentment et gloating @action ( name = "add_belief_emotion", ...
Java
month: Int, day: Int ) { val isoDate = "$year-${(month + 1).toString().padStart(2, '0')}-${ day.toString().padStart(2, '0') }" activity.lifecycleScope.launch { val dn = DateNotes.getDayNote(isoDate)!! navigateTo(activity, dn) } } } dpd.show(activity.supportFragme...
Kotlin
lretl .globl DPMI_VXD_VDD DPMI_VXD_VDD: hlt lretl .globl DPMI_VXD_VMD DPMI_VXD_VMD: hlt lretl .globl DPMI_VXD_VXDLDR DPMI_VXD_VXDLDR: hlt lretl .globl DPMI_VXD_SHELL DPMI_VXD_SHELL: hlt lretl .globl DPMI_VXD_VCD DPMI_VXD_VCD: hlt lretl .globl DPMI_VXD_VTD DPMI_VXD_VTD: hlt lretl .globl DPMI_VXD_CONFI...
Assembly
"Cordão da Meditação do Gladiador Tirano", [91114] = "Cordão da Meditação do Gladiador Tirano", [91115] = "Botinas da Crueldade do Gladiador Tirano", [91116] = "Botinas da Crueldade do Gladiador Tirano", [91117] = "Botinas da Vivacidade do Gladiador Tirano", [91118] = "Botinas da Vivacidade do Gladiador Tirano", [91119...
Lua
.cdef "struct ptest {int a, b;};" local tp = ffi.metatype("struct ptest", {__index = function(s, k) return k end, __len = function(s) return 3 end}) local a = tp(1, 2) assert(a.banana == "banana") assert(#a == 3) local b = ffi.new("int[2]") local c = ffi.cast("struct ptest *", b) assert(c.banana == "banana") -- should...
Lua
adeMir2LibListView.LargeImageList = WemadeMir2ImageList; WemadeMir2LibListView.Location = new System.Drawing.Point(188, 5); WemadeMir2LibListView.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); WemadeMir2LibListView.Name = "WemadeMir2LibListView"; WemadeMir2LibList...
C#
//===----------------------------------------------------------------------===// // // BusTub // // topn_executor.h // // Identification: src/include/execution/executors/topn_executor.h // // Copyright (c) 2015-2022, Carnegie Mellon University Database Group // //===-----------------------------...
C
%s", self:GetLibraryVersion(), message) elseif type(rawget(self, 'class')) == "table" and type(self.class.GetLibraryVersion) == "function" and AceLibrary:HasInstance(self.class:GetLibraryVersion()) then message = string.format("%s: %s", self.class:GetLibraryVersion(), message) end local first = string.gsub(stack...
Lua
function concat(a, b) for _, v in ipairs(b) do table.insert(a, v) end return a end add_rules("mode.debug", "mode.release") includes("3rd") set_languages("c++17") add_requires("mycutlass", "eigen", {system = false}) add_links('cublas') add_cugencodes("sm_75") for _, file in
Lua
serialize() headers = request.headers body = self.call("ModifyAddressTemplateAttribute", params, headers=headers) response = json.loads(body) model = models.ModifyAddressTemplateAttributeResponse() model._deserialize(response["Response"]) return mo...
Python
fall lda FRAME cmp #41 bcs same_baby lda #8 sta h1414_smc_len+1 same_baby: jsr restore_bg_14x14 ldx BABY_COUNT lda baby_progress+2,X sta CURSOR_X lda baby_progress+3,X sta CURSOR_Y ; save background so we can restore when move jsr save_bg_14x14 ldx BABY_COUNT lda baby_progress+1,X bmi no_draw_ba...
Assembly
/bufSize; TInt bytesToRecord = remainingRecordCount*bufSize; TInt bytesRecorded = 0; // Issue a pair of record requests. RxSoundDevice.SetVolume(KSoundMaxVolume); RxSoundDevice.RecordData(stat[0],length[0]); RxSoundDevice.RecordData(stat[1],length[1]); TInt currentReq=0; TInt retOffset; do { // Adjust th...
C++
eError] if the [index] is out of range for this list. * * Throws an [UnsupportedError], and doesn't remove the object, * if this is a fixed-length list. */ E removeAt(int index); /** * Pops and returns the last object in this list. * * Throws an [UnsupportedError] if this is a fixed-length list. ...
Dart
ercent_sign_start, percent_sign_end>(text, instr_info); } #else res = match_with_instr_mode<percent_sign_start, percent_sign_end>(text, instr_info); #endif return res; } template <bool percent_sign_start, bool percent_sign_end> OB_INLINE int64_t ObExprLike::match_with_instr_mode(const ObString &text, ...
C++
; } /* 列表项内容的副内容 */ .mdui-list-item-text { font-size: 14px; color: rgba(0, 0, 0, .54); } .mdui-list-item-title ~ .mdui-list-item-text { margin-top: 4px; } /* 激活状态的列表项 */ .mdui-list-item-active { font-weight: 700; background-color: rgba(0, 0, 0, .08); } .mdui-list-item-active .mdui-list-item-content { font-w...
CSS
sername, const char * password, int port, EncodingFormat encoding, const char * config_url_root, const char * state_url_root); void RestconfSessionFree(Session); DataNode SessionExecuteRpc(YDKStatePtr state, Session session, Rpc rpc); void CapabilitiesArrayFree(...
C
.153.77-.25 1.188-.25.44 0 .839.082 1.219.219.38.136.718.34 1 .624.279.28.501.618.656 1.032.156.415.219.915.219 1.469 0 .313-.029.602-.094.906a3.94 3.94 0 01-.25.812h-.781V9.062H19.28v.313a1.668 1.668 0 00-.406-.281 1.295 1.295 0 00-.594-.125 1.85 1.85 0 00-.812.187 2.176 2.176 0 00-.688.5c-.2.233-.348.525-.468.844-.12...
Dart
'Network timeout' }, SDK_INTERNAL_ERROR: { code: -2, msg: 'SDK internal error' }, PARAMETER_ERROR: { code: -3, msg: 'Please check the parameters, the {param} expected a value of {expect} but received {current}' }, REJECTED_BY_BLACKLIST: { code: 405, msg: 'Blac...
JavaScript
e root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). // // Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors...
C++
5-3.3 8-3.3s5.9 1.2 8 3.3l63.1 62.8c20.8-17.1 32.2-37.9 32.2-59.3 0-23.9-14.1-47-39.7-65.1-2.5-1.7-4.1-4.3-4.6-7.3-.5-2.9.1-6 1.9-8.4 1.7-2.5 4.3-4.1 7.3-4.6 2.9-.5 6 .1 8.4 1.9 31.8 22.4 49.3 52.1 49.3 83.5zm-136.4 85.4c-3 .5-6-.2-8.5-1.9-31.7-22.4-50.1-52.1-50.1-83.5s18.4-61.1 50.1-83.5c2.2-1.6 4.9-2.3 7.5-2.1 2.7.3...
Dart
- `a` (数组名) 转换为指向 `a[0]` 的指针。 - `p - a` 是指针相减。两个指向同一数组中元素的指针相减,结果是它们之间元素的个数。这里 `p` 和 `a` 都指向 `a[0]`,所以 `p - a` 的结果是 `0` (类型通常是 `std::ptrdiff_t`)。 - 所以 `a[ p-a ]` 等价于 `a[0]`,其值为 `0`。这是数组 `a` 中的一个元素。**可以表示。** 因此,不能表示数组 `a` 中元素值的是 `C. a`,因为它表示的是数组的首地址。 - **知识点:** - **数组名与指针:** 数组名在多数情况下隐式转换成指向其首元素的指针。 - **...
Markdown
اليمن", EnglishName = "Yemen", Iban = new PatternDescriptor(new IbanWikipediaPattern("YE", "4a,4n,18c")), Bban = new PatternDescriptor(new WikipediaPattern("4a,4n,18c"), 4) }; // ReSharper restore StringLiteralTypo // ReSharper restore CommentTypo } }
C#
huge = { inode_ratio = 65536 } news = { inode_ratio = 4096 } largefile = { inode_ratio = 1048576 blocksize = -1 } largefile4 = { inode_ratio = 4194304 blocksize = -1 } hurd = { blocksize = 4096 inode_size = 128 } ``` # FAQ - ordered - 默认模式 - 元数据写入日志,而数据在写入磁盘之前先写入主文件系统。提供了较好的性能和一致性折衷。 - ...
Markdown
ld)>.btn:hover{z-index:3}.custom-control{position:relative;display:-ms-inline-flexbox;display:inline-flex;min-height:1.5rem;padding-left:1.5rem;margin-right:1rem}.custom-control-input{position:absolute;z-index:-1;opacity:0}.custom-control-input:checked~.custom-control-indicator{color:#fff;background-color:#007bff}.cust...
CSS
_cgal() print_stats_3d(a1, q1, "cgal", t1, nv, nc) elif args.method == "sm": a1, q1, t1, nv, nc = run_SeismicMesh() print_stats_3d(a1, q1, "SeismicMesh", t1, nv, nc) elif args.method == "gmsh": a1, q1, t1, nv, nc = run_gmsh() print_stats_3d(a1, q1, "gmsh", t1, nv, nc) ...
Python
{ name, ptype } => { if ptype { return new_lib_project(&name); } return new_bin_project(&name); } PygoCommand::Init { name, ptype } => { if ptype { return init_lib_project(&name); } return init_bin_p...
Rust
open=false; // String? errorMessage; // final _auth = FirebaseAuth.instance; // signIn(String email, String password) async { // // if (_formKey.currentState!.validate()) { // SharedPreferences prefs = await SharedPreferences.getInstance(); // try { // await _auth // .signInWi...
Dart
bel_29 ldnt1h { z20.h }, p2/Z, [x11] ldnt1h { z21.h }, p2/Z, [x11, #1, MUL VL] ldnt1h { z22.h }, p2/Z, [x23] ldnt1h { z23.h }, p2/Z, [x23, #1, MUL VL] KAI_ASM_INST(0x64b84298) // fmlalb z24.s, z20.h, z0.h[6] ldnt1h { z1.h }, p2/Z, [x22] KAI_ASM_INST(0x64b842b9) // fmlalb z25.s, z21.h, z0.h...
Assembly
root { panic(fmt.Sprintf("l.root.next = %p, l.root.prev = %p; both should both be nil or %p", l.root.next, l.root.prev, root)) } return } // len(es) > 0 // check internal and external prev/next connections for i, e := range es { prev := root Prev := (*_Element[T])(nil) if i > 0 { prev = es[i-1] ...
Go
ize), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. @attr name com.ios7jbpro.miuili...
Java
::ZERO)); assert!(i8080.cpu.condition_flags.contains(ConditionFlags::SIGN)); // Intel 8080 Assembly Language Programming, p. 28. i8080.cpu.a = 0x00; i8080.cpu.condition_flags.insert(ConditionFlags::CARRY); i8080.cpu.execute_instruction([0xDE, 0x01, 0], &mut i8080.memory); // SBI 1 assert_eq!(i8...
Rust
e dectectors (PS,ECAL,HCAL) std::vector<CaloPoint> intersections_; // segments obtained from the intersections std::vector<CaloSegment> segments_; // should the pads be reorganized (most of the time YES! ) bool doreorg_; // the geometrical objects std::vector<CrystalPad> padsatdepth_; std::vector<Cryst...
C
)return r q=A.axC(b) if(q!=null)return q}return o}} A.a63.prototype={ $1(a){var s=this.a,r=s.a s.a=null r.$0()}, $S:35} A.a62.prototype={ $1(a){var s,r this.a.a=a s=this.b r=this.c s.firstChild?s.removeChild(r):s.appendChild(r)}, $S:297} A.a64.prototype={ $0(){this.a.$0()}, $S:49} A.a65.prototype={ $0(){this.a.$0()}, $...
JavaScript
allowedFileType: ['txt'], }; customFileUploader = new CustomFileUploader(uploadOptions); // SUT const filterResults = customFileUploader._fileTypeFilter(createFile('hello.txt').file); // Verify expect(filterResults).toBeTruthy(); }); it('should fail on incorrect fi...
Typescript
diff = fg + (255 - fg) * (grey - 127) / 128 - grey; } else { diff = fg * grey / 127 - grey; } hg = grey + diff * csat / 100; } else if(mdIsB) { if(grey >= 127) { diff = fb + (255 - fb) * (grey - 127) / 128 - grey; } else { diff = fb * grey / 127 - grey; } hb = grey + diff * cs...
Java
e_type, value(600, 0.5, 1)) local start_oil = b.translate(b.rectangle(1, 1), -44, 74) start_oil = b.resource(start_oil, ores[6].resource_type, value(100000, 0, 1)) local worms_area = b.rectangle(150, 72) worms_area = b.translate(worms_area, 0, -210) local function worms_top(x, y, world) if worms_area(x, y) then ...
Lua
inGame(); end end function OnXblMultiplayerEventType_JoinabilityStateChanged() if MultiDeviceIsHost() then XGameUiShowSendGameInviteAsyncToMPMLobby(); end end function OnXblMultiplayerEventType_JoinGameCompleted() MultiDeviceSyncAndWait("OnXblMultiplayerEventType_JoinGameCompleted"); t...
Lua
_set_default_icon_name (APPLICATION_ID); } maximize_fd_limit (); _ephy_shell_create_instance (mode); if (search_term) { int current_len = arguments ? g_strv_length (arguments) : 0; arguments = g_realloc (arguments, current_len + 1 * sizeof (char *)); arguments[current_len] = ephy_embed_utils_auto...
C
_file 1 "file1.cpp" "EDA15C78BB573E49E685D8549286F33C" 1 .cv_file 2 "file2.cpp" "EDA15C78BB573E49E685D8549286F33D" 1 .section .text,"xr",one_only,main .globl main main: .cv_func_id 0 .cv_loc 0 1 1 0 is_stmt 0 call "?foo@@YAHXZ" .cv_loc 0 1 2 0 call "?foo@@YAHXZ" .cv_loc 0 2 3 0 call "?bar@@YAHXZ...
Assembly
Return(null) tested.invoke(project, editor, psiFile) verify(psiLiteralExpression, never()) .textRange } it("should replace string correctly if all data in place") { tested.invoke(project, editor, psiFile) verify(document) .replaceString(10, 20, "com.test.Class.nam...
Kotlin
; var cornerOffset = new THREE.Vector3(edgeHalfWidth, edgeHalfHeight, edgeHalfDepth); for (var y = 0; y <= radiusSegments; y++) { var v = y / radiusSegments; var va = v * PIhalf; //arrange in 90 deg var cosVa = Math.cos(va); //scale of vertical angle var sinVa = Math.sin(va); ...
JavaScript
4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"; static final Lock lock = Lock(); static final Scheduler _scheduler = Scheduler(20, Duration(minutes: 1)); @override Future<Novel> getNovel(String url) async { String id = _getId(url); WenkuNovel novel = WenkuNovel(); url =...
Dart
public static void SaveProgress(string saveFilePath, string currentSegment, Dictionary<string, object> globalState, Dictionary<string, object> persistentState) { SaveData saveData; if (File.Exists(saveFilePath)) { // Load existing save data saveData = JsonConvert.Des...
C#