content
stringlengths
2
6.21k
label
stringclasses
16 values
ntCategory( // id: '3', // name: 'Éducation', // description: 'Cours, tutos et apprentissage 📚', // imageUrl: 'https://example.com/education.jpg', // ), // ContentCategory( // id: '4', // name: 'Divertissement', // description: 'Humour, films et distractions 😂🎬', // imageUrl: 'https://example.com...
Dart
setFontAntialiasing); m_actionShapeAntialiasing.reset(new QAction(qApp->icons()->fromTheme(QSL("draw-star")), tr("Shape antialiasing"), this)); m_actionShapeAntialiasing->setCheckable(true); m_actionShapeAntialiasing->set...
C++
U+86ee, U+8a60, U+8a6e, U+8c79, U+8e87, U+8e8a, U+8f5f, U+9010, U+918d, U+9190, U+965b, U+97fb, U+9ab8, U+9bad, U+9d3b, U+9d5c, U+9dfa, U+9e93; } /* [66] */ @font-face { font-family: 'Noto Sans JP'; font-style: normal; font-weight: 300; font-display: swap; src: url(https://fonts.gstatic.com/s/notosansjp/v40/...
CSS
${error.statusText || ''} ${err}`; } else { errMsg = error.message ? error.message : error.toString(); } console.error(errMsg); return Observable.throw(errMsg); } } import { launch, Page } from 'puppeteer'; import * as rp from 'request-promise-native'; import { argv } fr...
Typescript
u32*)&RDRAM[RSP.PC[RSP.PCi]], 24, 8 ); if ( RSP.cmd == 0xBE ) { // gSPSprite2DScaleFlip scaleX = _FIXED2FLOAT( _SHIFTR(w1, 16, 16), 10 ); scaleY = _FIXED2FLOAT( _SHIFTR(w1, 0, 16), 10 ); flipX = _SHIFTR(w0, 8, 8); flipY = _SHIFTR(w0, 0, 8); continue; } // gSPSprite2DDraw const f32 frameX = _F...
C++
= viper.BindEnv("database.max_data_per_write", "PERMIFY_DATABASE_MAX_DATA_PER_WRITE"); err != nil { panic(err) } if err = viper.BindPFlag("database.max_retries", flags.Lookup("database-max-retries")); err != nil { panic(err) } if err = viper.BindEnv("database.max_retries", "PERMIFY_DATABASE_MAX_RETRIES"); err ...
Go
V2OogZbv11teqzKKYmmTvUK7Lnvg3LPDRgD2tPVz7A/0?wx_fmt=jpeg) # 哥飞:SEO友好的AI原生CMS思考和实践 Part 1 原创 我是哥飞 [ 哥飞 ](javascript:void\(0\);) __ _ _ _ _ 大家好,我是哥飞。 关于哥飞介绍可以看这里: [ 哥飞是谁,哥飞在做什么事情,在哥飞公众号大家可以看到什么内容 ](http://mp.weixin.qq.com/s?__biz=MjM5OTIzMzYyMA==&mid=2650082843&idx=1&sn=50add036fed1ac78f2c71887bbedb990&chksm=bf3...
Markdown
21.8b uxtl v22.8h, v22.8b b 16b 9: add \dst, \dst, \d_strd add \ds2, \ds2, \d_strd add \src, \src, \s_strd add \sr2, \sr2, \s_strd subs \h, \h, #2 b.gt ...
Assembly
, .element:focus .element-hover-img { visibility: visible; opacity: 1 } .element:hover .element-img, .element:focus .element-img { opacity: 0 } .element:hover p, .element:focus p { color: #333 } .element p { margin-top: -1rem; padding-bottom: 1rem } .element-img, .element-hover-img { wid...
CSS
f12, -0x5760($at) /* 182D04 801D4CB4 3C01800F */ lui $at, 0x800f /* 182D08 801D4CB8 00220821 */ addu $at, $at, $v0 /* 182D0C 801D4CBC 00C23021 */ addu $a2, $a2, $v0 /* 182D10 801D4CC0 8CC6AC20 */ lw $a2, -0x53e0($a2) /* 182D14 801D4CC4 0C02CC8D */ jal func_800B3234 /* 182D18 801D4CC8 C42EAA60 */ lwc1 $f14, -0x55...
Assembly
_some(), }, ); let between = map( rule! { NOT? ~ BETWEEN ~ ^#subexpr(BETWEEN_PREC) ~ ^AND ~ ^#subexpr(BETWEEN_PREC) }, |(opt_not, _, low, _, high)| ExprElement::Between { low: Box::new(low), high: Box::new(high), not: opt_not.is_som...
Rust
} } [BurstCompile] internal struct LocalToWorldTransformAccessJob : IJobParallelForTransform { [WriteOnly] public NativeArray<float4x4> outMatrix; public void Execute(int index, TransformAccess transform) { outMatrix[index] = transform.localToWorldMatrix;...
C#
import sys input = sys.stdin.readline INF = int(1e9) from collections import deque def Bellman_ford(start): xx=0 global flag dist[start] = 0 for i in range(V): for j in range(E): ## a->b node_a = edge[j][0] node_b = edge[j][1] cost = edge[j][2] i...
Python
سران او مادران آن‌ها هستند، و در کتاب الله خویشاوندان برخی از آنان به برخی (دیگر) از (سایر) مؤمنان و مهاجران سزاوارترند [ یعنی باید مؤمنان پیامبر گرامی صلی الله علیه وسلم را از جان خود بیشتر دوست داشته باشند.]، مگر این‌که به دوستان‌تان نیکی کنید (و سهمی از اموال خود را به آنان بدهید) این (حکم) در کتاب (لوح محفوظ) نوشته...
Dart
viewBox="0 0 24 24"><path fill="currentColor" d="M23 9.32a1.06 1.06 0 00-.1-.76 4.93 4.93 0 00-6.75-1.8L14 8 9 5.65a1 1 0 00-.92 0l-3 1.73a1 1 0 00-.5.84 1 1 0 00.46.87l3.3 2.08-1.74 1-4.78.58a1 1 0 00-.53 1.75l3.54 3.06a3 3 0 003.55.44L22.5 9.93a1 1 0 00.5-.61Zm-15.53 7a1 1 0 01-1.2-.18l-1.9-1.63 2.73-.33a1 1 0 00.38...
Dart
## Q: 宿舍楼有洗衣机吗? - A26404: 有 - A27988: 有 - A28111: 有,每个宿舍都有 ## Q: 校园网怎么样? - A26404: 还行 - A27988: 正常10m - A28111: 一般(但能用),有限速5MB/s ## Q: 每天断电断网吗,几点开始断? - A26404: 不断 - A27988: 不断 - A28111: 不断电、网 ## Q: 食堂价格贵吗,会吃出异物吗? - A26404: 小贵 - A27988: 还行正常水平,无 - A28111: 价格较为合理,吃出异物实属罕见 ## Q: 洗澡热水供应时间? - A26404: 早中晚,十二...
Markdown
Sort(CompareListItems.CompareNames); _blnLoading = true; string strOldSelected = await lstComplexForms.DoThreadSafeFuncAsync(x => x.SelectedValue?.ToString(), token: token).ConfigureAwait(false); await lstComplexForms.PopulateWithListItemsAsync(lstComplexFormItems, token:...
C#
: 1rem; } .embed-watermark, .extract-watermark { padding: 1.5rem; margin: 0 0.5rem; border-radius: 15px; } .embed-watermark h2, .extract-watermark h2 { font-size: 1.8rem; margin-bottom: 1rem; } .embed-watermark p, .extract-watermark p { font-size: 1rem; margin-bottom: 1....
CSS
capitals = { "Afghanistan": ["Кабул", "AF"], "Åland Islands": ["Мариехамн", "AX"], "Albania": ["Тирана", "AL"], "Algeria": ["Алжир", "DZ"], "American Samoa": ["Паго-Паго", "AS"], "Andorra": ["Андорра-ла-Велья", "AD"], "Angola": ["Луанда", "AO"], "Anguilla": ["Валли", "AI"], "Antarcti...
Python
.22-.5.5-.5Z"})),hearthollow:import_react6.default.createElement(import_react6.default.Fragment,null,import_react6.default.createElement("path",{fillRule:"evenodd",d:"M12.81 1.85 13 2a2.97 2.97 0 0 1 .75 1.17 4.39 4.39 0 0 1 .12 2.51 6.26 6.26 0 0 1-1.65 2.55l-4.78 4.6A.59.59 0 0 1 7 13a.67.67 0 0 1-.44-.17L1.78 8.22a7...
JavaScript
)) { dependsOnValue = param[1]; } else { try { dependsOnValue = Convert.ChangeType(param[1], dependsOnField.FieldType); if (dependsOnValue == null) ...
C#
/*- * Copyright 2005,2007,2009 Colin Percival * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list o...
C
override fun onScrolled(recyclerView: RecyclerView, dx: Int, dy: Int) { EventBus.getDefault().post(BaseEvent(BaseEvent.EventCode.HOME_NAVIGATION_HIDE, dy > 0)) } }) } mBinding.statusView.loading() } override fun lazyLoad() { super.lazy...
Kotlin
uiNaquadahReactorHeat extends GuiNaquadahReactorInfo{ private static final double MAX_LEVEL = 500_000_000; public GuiNaquadahReactorHeat(EmptyTileContainer<TileEntityNaquadahReactorController> container, Inventory inv, Component title) { super(container, inv, title); } @Override protected v...
Java
file system. pathSegments.forEach((segmentName, index) => { // The last segment always refers to a file and we therefore can // store the size verbatim as property value. if (index === pathSegments.length - 1) { currentEntry[segmentName] = (<number>currentEntry[segment...
Typescript
string = `ws error msg:${err_str}`; Log.errorLog(msg); } private onOpen(): void { this.isAlive = true; this.try_agin = 0; commands.send(IProtocolType.register, this); } private onMessage(data: WebSocket.Data): void { var protocol:IProtocol |undefined; ...
Typescript
"Collection" }, [7] = { lights = { { lights = { { argument = 83, connector = "RED_BEACON", emitter_shift_x = -0.25, proto = <4>{ angle_max = 0.78539816339745, angle_min = 0.61086523819802, angular_velocity = 6.2831853071796, color = { 1...
Lua
(valueAnimator.animatedValue as Int) detailInfoView!!.requestLayout() } } }) ofInt2.addListener(object : Animator.AnimatorListener { // from class: fm.player.ui.fragme...
Kotlin
// The MIT License(MIT) // // Copyright(c) 2021 Alberto Rodriguez Orozco & LiveCharts Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including withou...
C#
eClosed = DataTableUtil.extractBooleanForColumnNameOrNull(row, "OPT." + I_S_EffortControl.COLUMNNAME_IsIssueClosed); if (isIssueClosed != null && isIssueClosed(effortControl) != isIssueClosed) { errorCollectors.add(MessageFormat.format("S_EffortControl={0}; Expecting IsIssueClosed={1} but actual is {2}", ...
Java
ap. Maybe ditch the schema.Claimer // type and just have the Uploader override the claimDate. claimTime, ok := filebb.ModTime() if !ok { return nil, fmt.Errorf("couldn't get modtime for file %v", n.fullPath) } err = up.uploadFilePermanode(ctx, wholeRef[0].String(), br, claimTime) if err != nil { retur...
Go
ait 语雀接口.reposService.getUserRepos(测试用户.id, { include_membered: false }); while (reposList.length > 0) { for (let i = 0; i < reposList.length; i++) { await 语雀接口.reposService.deleteRepos(reposList[i].id); } reposList = []; } }); test('测试用户信息相关接口', async () => { const ...
Typescript
e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),i.a.hasOwnProperty(e)?{space:i.a[e],local:t}:t}},function(t,e,n){"use strict";n.d(e,"b",function(){return i});var i="http://www.w3.org/1999/xhtml";e.a={svg:"http://www.w3.org/2000/svg",xhtml:i,xlink:"http://www.w3.org/1999/xlink",xml:"h...
JavaScript
= !m // TODO: check that the data does match between template and entry? } let size: usize = mask.count_ones() as usize * std::mem::size_of::<u32>(); let dest = &mut dest[..size]; let offset = &mut 0; if (mask & (1 << 0)) != 0 { dest.gwrite_with::<u32>(self.resource...
Rust
/* SPDX-License-Identifier: GPL-2.0-only */ #include <baseboard/gpio.h> #include <bootmode.h> #include <boot/coreboot_tables.h> #include <gpio.h> #include <types.h> void fill_lb_gpios(struct lb_gpios *gpios) { struct lb_gpio chromeos_gpios[] = { {-1, ACTIVE_HIGH, get_lid_switch(), "lid"}, {-1, ACTIVE_HIGH, 0, "p...
C
38786 INFO Loading data from h5: ../data/Frappe/frappe_x1_47e6e0df/valid.h5 2023-01-06 22:45:59,806 P38786 INFO Validation samples: total/57722, blocks/1 2023-01-06 22:45:59,806 P38786 INFO Loading train and validation data done. 2023-01-06 22:45:59,806 P38786 INFO Start training: 50 batches/epoch 2023-01-06 22:45:59,8...
Markdown
: this._terrahubConfig.format; const srcFile = path.join( this._parameters.templates.config, 'project', `.terrahub.all.${format}.twig` ); const outFile = path.join( dirPath, this._terrahubConfig.defaultFileName ); const srcData = fse.readFileSync(srcFile, 'utf8'...
JavaScript
1 40 */ lwz r3, lbl_8063F400-_SDA_BASE_(r13) /* 801FA688 001F62E8 38 9F 00 24 */ addi r4, r31, 0x24 /* 801FA68C 001F62EC 48 00 02 59 */ bl func_801FA8E4 /* 801FA690 001F62F0 38 00 00 00 */ li r0, 0 /* 801FA694 001F62F4 3C 60 00 01 */ lis r3, 0x0000FFFF@ha /* 801FA698 001F62F8 90 1F 00 00 */ stw r0, 0(r31) /* 801FA...
Assembly
c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8zm161 67.6c5.3 9.3 8.4 20.1 8.4 31.6c0 10.2-2.4 19.8-6.6 28.3c31.5 24.7 63 49.4 94.6 74.1c5.2-11.8 8-24.8 8-38.5c0-53-43-96-96-96c-2.8 0-5.6 .1-8.4 .4z"}),x.createElement("path",{className:"fa-primary",d:"M38.8 5.1C28.4-3.1 13.3-1.2 5....
JavaScript
�. 그러면 마지막 임무를 주도록 함세.", ["O"] = "고룡흉터 섬에 있는 선장 에드워드 헤인즈가 핏빛저주에 걸린 영혼 4명을 구원해 달라고 했습니다.", ["T"] = "핏빛저주의 영혼", }, [9683] = { ["D"] = "자, 이제 마지막 임무일세. 이곳에서 남쪽으로 가면 핏빛저주의 섬이 나올걸세. 섬 꼭대기로 가면 나가의 사랑을 받고 있는 여왕 아즈샤라에게 의식을 올리는 제단이 있을 거야. 그 제단에 있는 조각상을 불태워 파괴하게! 그렇게 하면 분명 핏빛저주의 지휘관인 아토프가 분노할 게야.$B$B아토프를 처치하고 이리로...
Lua
edet for at opdatere individuelle byggeklodser i den eksisterende RingCT-transaktionsprotokol introducerer den en anden protokol, der kan drage fordel af forskellige byggeklodser og tilbyde forbedret funktionalitet.</p>'; @override String get knowledge250Sbseraphis250Sb2250Sbtitle => 'Seraphis'; @override Str...
Dart
[inline(always)] pub fn bit(self, value: bool) -> &'a mut W { self.w.bits = (self.w.bits & !(0x01 << 5)) | (((value as u32) & 0x01) << 5); self.w } } impl R { #[doc = "Bit 0 - Shortcut between event FIELDDETECTED and task ACTIVATE"] #[inline(always)] pub fn fielddetected_activate(&se...
Rust
else: await helpers_ot3.move_to_arched_ot3( api, OT3Mount.LEFT, fixture_pos._replace(z=fixture_pos.z + 50) ) ui.get_user_ready("Ready for moving to sealed fixture") if USE_SEALED_FIXTURE: await calibrate_to_p...
Python
tched, lengths=lengths, memory_key_padding_mask=key_padding_masks_batched, pos=pos_batched, ref_points_unsigmoid=query) for i in range(intermediate_results.shape[0]): ouptut_i = intermediate_results[i] pred_labels, pred_scores, pred_bboxes...
Python
font-style: normal; font-weight: 500; src: local("IBM Plex Sans SC Medium"), local("IBMPlexSansSC-Medium"), url("https://cdn.jsdelivr.net/npm/@ibm/plex-sans-sc@1.1.0/fonts/split/woff2/hinted/IBMPlexSansSC-Medium-053.woff2") format("woff2"); unicode-range: U+5D26-5D27, U+5D2E-5D34, U+5D3C-5D3E, U+5D41-5D44, U+5D46...
CSS
> COMMAND0_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u16) -> &'a mut W { self.w.bits = (self.w.bits & !0x3fff) | (value as u32 & 0x3fff); self.w } } #[doc = "Field `COMMAND0_DONE` reader - When command 0 is done in I2C Master mode,...
Rust
t x = { someProp: 1, undefinedProp: undefined, nullProp: null }; "#; eprintln!("{}", forward(&mut engine, init)); assert_eq!(forward(&mut engine, "x.hasOwnProperty('someProp')"), "true"); assert_eq!( forward(&mut engine, "x.hasOwnProperty('undefinedProp')"), "true" ); assert_eq!...
Rust
RM: inputRow = 1; inputForm = GX_XF_TEX_FORM_ABC1; break; case GX_TG_BINRM: inputRow = 3; inputForm = GX_XF_TEX_FORM_ABC1; break; case GX_TG_TANGENT: inputRow = 4; inputForm = GX_XF_TEX_FORM_ABC1; break; case GX_TG_COLOR0: input...
C
"""Utilities for WOW action provider.""" from ...wallet_providers import EvmWalletProvider from .constants import WOW_ABI, WOW_FACTORY_CONTRACT_ADDRESSES from .uniswap.utils import get_has_graduated, get_uniswap_quote def get_factory_address(chain_id: str) -> str: """Get the Zora Wow ERC20 Factory contract addre...
Python
/* Copyright (C) 2019-present Hajin Jang MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use,...
C#
} &::before { content: ''; display: inline-block; border-left: 1px solid #a5afb7; color: #fff; margin-right: 10px; height: 20px; opacity: 0.3; [dir='rtl'] & { margin-right: 0; margin-left: 10px; } } } .dismissIcon { @include dismiss; } .photoInner { overflo...
CSS
').replace(/\.\d{3}Z/, '') let t = time() let finish = new Date().toISOString().replace(/.*T/, '').replace(/\.\d{3}Z/, '') expect(start.localeCompare(t)).to.be.at.most(0) expect(finish.localeCompare(t)).to.be.at.least(0) }) it('can get current datetime', () => { let star...
Typescript
Authenticode.Signer.DigestAlgorithm, s.PE.Authenticode.Signer.AuthenticatedAttributes.ContentType, s.PE.Authenticode.Signer.AuthenticatedAttributes.MessageDigest, s.PE.Authenticode.Signer.AuthenticatedAttributes.MessageDigestHex, s.PE.Authenticode.Signer.AuthenticatedAttributes.ProgramName, s.PE.Authenticode.Signer...
Go
-- chunkname: @scripts/managers/localization/localization_macros.lua local InputUtils = require("scripts/managers/input/input_utils") local localization_macros = {} localization_macros.EXAMPLE_MACRO = function (param) return string.format("I'm an example macro and my param is %s", param) end localization_macros.IN...
Lua
spacing-5); } .pt-1 { padding-top: var(--spacing-1); } .pt-2 { padding-top: var(--spacing-2); } .pt-3 { padding-top: var(--spacing-3); } .pt-4 { padding-top: var(--spacing-4); } .pt-5 { padding-top: var(--spacing-5); } /* Responsive utilities */ @media (width >=576px) { .sm-m-0 { margin: 0; } .sm-m-1 {...
CSS
(DetectAndroidPhone() == true) || (DetectWindowsPhone() == true) || (DetectBlackBerry10Phone() == true) || (DetectPalmWebOS() == true) || (DetectBada() == true) || (DetectTizen() == true) || (DetectFirefoxOSPhone() == true) || (DetectSailfishPhone() == true) || (DetectUbuntuPhone() == true) |...
C
0.3),did),VI),xsb(Whd))));zgd(a,oCe,kCe,Tyc);Egd(a,new Ahd(Qhd(Phd(Rhd(Khd(Ohd(Lhd(Mhd(new Shd,pCe),'nodePlacement.networkSimplex'),'Node Flexibility'),"Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined bef...
JavaScript
# WARNING: Please don't edit this file. It was generated by Python/WinRT v0.9.210202.1 import typing, winrt import enum _ns_module = winrt._import_ns_module("Windows.ApplicationModel.Store.Preview.InstallControl") try: import winrt.windows.foundation except: pass try: import winrt.windows.foundation.col...
Python
B : cons(A.force().head, concat(A.force().tail, B))).force()); export const take = <T>(n: number, S: Stream<T>): Stream<T> => $(() => (n === 0 ? EmptyStream : cons(S.force().head, take(n - 1, S))).force()); export const drop = <T>(n: number, S: Stream<T>): Stream<T> => $(() => (n === 0 ? S ...
Typescript
-- chunkname: @dialogues/generated/on_demand_vo_psyker_male_a.lua local on_demand_vo_psyker_male_a = { com_wheel_vo_enemy_over_here = { randomize_indexes_n = 0, sound_events_n = 6, sound_events = { "loc_psyker_male_a__com_wheel_vo_enemy_over_here_01", "loc_psyker_male_a__com_wheel_vo_enemy_over_here_02",...
Lua
").apply { initialize(3072) } CustomerMasterKeySpec.RSA_4096 -> KeyPairGenerator.getInstance("RSA").apply { initialize(4096) } CustomerMasterKeySpec.ECC_NIST_P256 -> KeyPairGenerator.getInstance("ECDSA", crypto).apply { initialize(256) } CustomerMasterKeySpec.ECC_NIST_P384 -> KeyPairGenerator.ge...
Kotlin
eFromMeta(BlockStoneSlab.EnumType.SMOOTHBRICK.getMetadata()), 3, 1, 5, structureBoundingBoxIn); this.setBlockState(worldIn, Blocks.stone_slab.getStateFromMeta(BlockStoneSlab.EnumType.SMOOTHBRICK.getMetadata()), 3, 2, 2, structureBoundingBoxIn); this.setBlockState(worldIn, Blocks.stone_sl...
Java
/ ignore_for_file: deprecated_member_use_from_same_package, library_prefixes // ignore_for_file: non_constant_identifier_names import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; /// Version information for the ...
Dart
t public void testUncountedFormatColumns() { assertEquals("`uncounted`²", PaginatorType.UNCOUNTED.format(PaginatorMode.COLUMNS, UNUSED_STRING, false, UNUSED_STRING)); } @Test public void testUncountedFormatColumnsFictious() { assertEquals("[`uncounted`²]", Pagina...
Java
role in UserRoles.Roles) { if (!context.Roles.Any(r => r.Name == role)) { context.Roles.Add(new RoleData() { Id = Guid.NewGuid(), Name = role }); } ...
C#
se::pollFd(int fd) { assert(!event); event = new TapEvent(this, fd, POLLIN|POLLERR); pollQueue.schedule(event); } void EtherTapBase::stopPolling() { assert(event); delete event; event = NULL; } Port & EtherTapBase::getPort(const std::string &if_name, PortID idx) { if (if_name == "tap") ...
C++
.25rem 2.25rem .25rem .5rem}.select2-container--bootstrap-5 .select2--small.select2-selection--multiple .select2-selection__rendered .select2-selection__choice{padding:.35em .65em;font-size:.875rem}.select2-container--bootstrap-5 .select2--small.select2-selection--multiple .select2-selection__rendered .select2-selectio...
CSS
(-3.0, 3.0, -5.0, 5.0); BoundingBox bbox_4326_2 = get_bbox(-2.0, 5.0, 0.0, 10.0); bbox_4326_1.Merge(bbox_4326_2, 4326); EXPECT_DOUBLE_EQ(bbox_4326_1.MinX, -3.0); EXPECT_DOUBLE_EQ(bbox_4326_1.MaxX, 5.0); } TEST(BboxTest, antimeridian_merge) { // Simple merge in geographic coordinates that does cr...
C++
public readonly ImmutableArray<Outputs.GetGroupMixedInstancesPolicyLaunchTemplateOverrideLaunchTemplateSpecificationResult> LaunchTemplateSpecifications; /// <summary> /// Number of capacity units, which gives the instance type a proportional weight to other instance types. /// </summary> ...
C#
uidOrGas(1_000), new FluidStack[] { Materials.Water.getFluid(400), GGMaterial.diethylamine.getFluidOrGas(800), Materials.HydrochloricAcid.getFluid(200) }, GTValues.NI, 30 * SECONDS, TierEU.RECIPE_MV); CrackRecipeAdder.addUniversalDistillationRecip...
Java
成一个预测字段),因此可以在不同的时间评估各条记录。 生存时间选择 POLICYHOLDER\_TENURE。 ##### 图 4\. 选择“使用预定义角色” ![alt](../ibm_articles_img/customer-life-cycle-value-calculation-model_images_image004.png) 运行模型得出下图中的 CHURN 模型 ##### 图 5\. CHURN 模型 ![alt](../ibm_articles_img/customer-life-cycle-value-calculation-model_images_image005.png) 以下对模型的相关...
Markdown
Coord<float>(position)); if (!intersectables.empty()) { auto it = mEncounters.find(intersectables.back()); if (it != mEncounters.end()) { const auto* encounter = it->second; mActiveEncounter = encounter; if (mActiveEncounter) DoEncounte...
C++
lane"), {{0, 0}, {0, 0}, {2, 0}, {4, 0}, {8, 0}}}, {S("warp"), {{0, 0}, {0, 0}, {16, 0}}}, {S("block"), {}}}, {S("dim0"), S("dim1")})); } TEST_F(LinearLayoutConversionsTest, BlockedDot3dOperandLhs) { auto parent = blocked(/*size*/ {2, 2, 4}, /*threads*...
C++
ak; case 'c': playSound("sounds/key18.mp3"); break; case 'v': playSound("sounds/key19.mp3"); break; case 'b': playSound("sounds/key20.mp3"); break; case 'n': playSound("sounds/key21.mp3"); bre...
JavaScript
.Assert(checkPPid(c, cname, "sleep", "1"), check.Equals, true) // pause and unpause command.PouchRun("pause", cname).Assert(c, icmd.Success) command.PouchRun("unpause", cname).Assert(c, icmd.Success) c.Assert(checkPidofProcess(c, cname, "systemd", "1"), check.Equals, true) c.Assert(checkPPid(c, cname, "sleep", "1...
Go
{ serialized += processStyleName(styleName) + ':'; serialized += dangerousStyleValue(styleName, styleValue, component, isCustomProperty) + ';'; } } return serialized || null; }, /** * Sets the value for multiple styles on a node. If a value is specified as * '' (empt...
JavaScript
处五十元以上五百元以下罚款; (五)违反本条例第三十六条规定的,责令限期改正,处五千元以上三万元以下罚款; (六)违反本条例第四十七条规定,未采取措施防治扬尘污染的,责令限期改正,处二万元以上二十万元以下罚款;逾期未改正的,责令停工整顿; (七)违反本条例第四十九条规定的,责令限期改正;逾期不改正的,处一万元以上五万元以下罚款; (八)违反本条例第五十条第二款规定的,责令改正,处一万元以上五万元以下罚款;经处罚后继续违法排放污染物情节严重的,依法报请市、县(市、区)人民政府责令其停产停业; (九)违反本条例第五十一条第一款规定的,责令改正,处二万元以上二十万元以下的罚款;拒不改正的,责令停产整治。 第五十七条 违反本条例...
Markdown
.include "macros/function.inc" .include "include/dwci_lobbycallb.inc" .extern Unk_ov66_02259130 .text arm_func_start ov66_0224640C ov66_0224640C: ; 0x0224640C stmfd sp!, {r3, r4, lr} sub sp, sp, #0x1c mov r4, r0 ldr lr, _02246498 ; =0x02259138 add r3, sp, #0x10 str r1, [sp, #0x14] mov ip, #0 add r0, sp,...
Assembly
from uds.uds_config_tool.UtilityFunctions import getSdgsDataItem, getParamWithSemantic, getServiceIdFromDiagService, \ getLongName, getShortName, getSdgsData, getPositiveResponse if __name__ == "__main__": import xml.etree.ElementTree as ET filename = "Bootloa...
Python
mplerCI.minLod = 0.0f; samplerCI.maxLod = FLT_MAX; samplerCI.maxAnisotropy = 1.0; samplerCI.anisotropyEnable = VK_FALSE; samplerCI.borderColor = VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE; ThrowIfFailedVK(vkCreateSampler(m_d...
C++
funny.", "Well, it was slightly used...", "(hurriedly leaves Rudy's) They had plans, They had plans!", "Well it's tough to get a good read but I think if I brought him a chair, he'd sit.", "You know, about the uh, two of us getting together.", "And I know that I said I was engaged, but (laughs) uh, you know,...
Rust
Field.new("Ord Type", "eurex.derivatives.eti.t7.v9.1.ordtype", ftypes.UINT8) omi_eurex_derivatives_eti_t7_v9_1.fields.order_attribute_liquidity_provision = ProtoField.new("Order Attribute Liquidity Provision", "eurex.derivatives.eti.t7.v9.1.orderattributeliquidityprovision", ftypes.UINT8) omi_eurex_derivatives_eti_t7_v...
Lua
; 1 sts AWEXC__OUTOVEN, Tmp ; 2 rjmp NO_TURNOFF ; 2 ; SUM: 82 until now NO_TURNOFF_COMPENSATION: ldi Tmp, 26 ...
Assembly
g.apache.xerces.internal.xs.XSNotationDeclaration; import jaxp.sun.org.apache.xerces.internal.xs.XSObjectList; import jaxp.sun.org.apache.xerces.internal.xs.XSParticle; import jaxp.sun.org.apache.xerces.internal.xs.XSTypeDefinition; import jaxp.sun.org.apache.xerces.internal.xs.XSWildcard; import jaxp.sun.org.apache.xe...
Java
} catch (const std::exception& e) { std::cerr << e.what() << std::endl; //302 error on large files: passing null and throwing exception obj.push_back(Pair("error", e.what())); } try { ipfs::Json add_result; ipfs::Clie...
C++
["延"] = "丿止廴", ["廷"] = "㇒士廴", ["廸"] = "由廴", ["廹"] = "白廴", ["建"] = "聿廴", ["廻"] = "囗口廴", ["廼"] = "西廴", ["廽"] = "囗廴", ["廾"] = "廾", ["廿"] = "廿", ["开"] = "一廾", ["弁"] = "厶廾", ["异"] = "巳廾", ["弃"] = "廾", ["弄"] = "王廾", ["弅"] = "八刀廾", ["弆"] = "土厶廾", ["弇"] = "亼...
Lua
3.1 技术文档生成 1. **API文档**: ``` Q: 为这个REST API生成OpenAPI规范文档 Q: 编写这个函数的JSDoc注释 Q: 生成这个模块的使用说明文档 ``` 2. **架构文档**: ``` Q: 编写这个系统的架构设计文档 Q: 生成数据库表结构说明 Q: 创建部署流程文档 ``` ### 3.2 代码生成与转换 1. **代码迁移**: ``` Q: 将这段Java代码转换为Python Q: 把这个类从JavaScript迁移到TypeScript Q: 将REST API转换为GraphQL接口 ``` 2. **测试用例生成**: ``` Q: 为这个类生成单元测试 Q: 创建...
Markdown
} extern "C" { pub fn fskmod_print(_q: fskmod); } extern "C" { pub fn fskmod_reset(_q: fskmod); } extern "C" { pub fn fskmod_modulate(_q: fskmod, _s: ::std::os::raw::c_uint, _y: *mut liquid_float_complex); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct fskdem_s { _unused: [u8; 0], } pub type fskd...
Rust
ov r1, r0, lsl #6 orr r1, r1, r2, lsr #26 mov r0, r2, lsl #6 mov r2, r6 mov r3, fp bl _ll_udiv cmp r1, r4 cmpeq r0, r7 blo _021E81D8 _021E8268: ldr r0, _021E82EC ; =ov00_0221A694 ldr r0, [r0, #8] add r0, r0, #0x1000 ldr r0, [r0, #0x314] bl ov00_021E9754 ldr r0, _021E82EC ; =ov00_0221A694 ldr r0, [r0, #8]...
Assembly
id = R.string.HC_QUICK_ACTIONS_SICK_ABROAD_TITLE), navigateUp = navigateUp, modifier = modifier, ) { Column( horizontalAlignment = Alignment.CenterHorizontally, ) { Spacer(Modifier.height(8.dp)) HedvigNotificationCard( message = stringResource(R.string.SUBMIT_CLAIM_EMERGENCY_...
Kotlin
DataType::Bytes => Ok(protos::schema_state::PropertyDefinition_DataType::BYTES), DataType::Boolean => Ok(protos::schema_state::PropertyDefinition_DataType::BOOLEAN), DataType::Number => Ok(protos::schema_state::PropertyDefinition_DataType::NUMBER), DataType::String => Ok(...
Rust
public override bool IsAchievementCompleted(string name) { bool flag = false; RailResult railResult = (RailResult) 1; IRailPlayerAchievement playerAchievement = this.GetMyPlayerAchievement(); if (playerAchievement != null) railResult = playerAchievement.HasAchieved(name, out flag)...
C#
--------------------------- /// Compute squared lengths of all edges and store it in C array struct ComputeSquaredEdgeLength { vtkPoints *_Points; const EdgeTable *_EdgeTable; double *_EdgeLength; void operator ()(const blocked_range<int> &re) const { int ptId1, ptId2, edgeId; doubl...
C++
using UnityEngine; namespace FairyGUI { /// <summary> /// /// </summary> public class StraightLineMesh : IMeshFactory { /// <summary> /// /// </summary> public Color color; /// <summary> /// /// </summary> public Vector3 origin; ...
C#
onsole_scroll jsr console_set_ppuaddr_ sty console_temp ; Copy line ldy #0 beq :++ : lda console_buf,y sta PPUDATA iny : cpy console_pos bne :-- ldy console_temp rts
Assembly
onPowers { small: &BASE17_SMALL_MANTISSA, large: &BASE17_LARGE_MANTISSA, small_int: &BASE17_SMALL_INT_POWERS, step: BASE17_STEP, bias: BASE17_BIAS, log2: BASE17_LOG2_MULT, log2_shift: BASE17_LOG2_SHIFT, }; pub const BASE18_POWERS: BellerophonPowers = BellerophonPowers { small: &BASE18_S...
Rust
zCXpRRAF_9nyybpngbeVF4_RRR6nffvtaVCF4_RRAF_9ranoyr_vsVKnnfe21__vf_sbejneq_vgrengbeVG_RR5inyhrfe16vf_pbafgehpgvoyrVF4_AF_15vgrengbe_genvgfVFO_R9ersreraprRRR5inyhrRiR4glcrRFO_FO_ .type b__MAFg3__16irpgbeVAF_4cnveVzCXpRRAF_9nyybpngbeVF4_RRR6nffvtaVCF4_RRAF_9ranoyr_vsVKnnfe21__vf_sbejneq_vgrengbeVG_RR5inyhrfe16vf_pbafgehpg...
Assembly
Log.i(TAG, "🔄 Handshake process started, waiting for device response...") } override fun rssiChange(p0: String?, p1: Int) { Log.d(TAG, "RSSI change: $p0, rssi: $p1") } override fun mtuChange(p0: String...
Kotlin
选择一个文件夹用于保存文件 Future<String?> chooseFolder(BuildContext context) async { return FilesystemPicker.open( title: '选择一个文件夹', pickText: '将文件保存到这里', context: context, fsType: FilesystemType.folder, rootDirectory: Directory(await currentChooserRoot()), ); } /// 复制对话框 void confirmCopy(BuildContext cont...
Dart
cedure>?, ) = this.copy(code = code, blockgraph = blockgraph, name = name, symbolTable = symbolTable, procedures = procedures ?: this.procedures) } /** * get a hash code of a canonical representation of [CoreTACProgram] * Based on the implementation of [CoreTACProgram.toFile] * Useful for caching [CoreTACProgr...
Kotlin