content
stringlengths
2
6.21k
label
stringclasses
16 values
化的主题则包括: - 翻译。 - 针对特定语言(如东亚语言)的特别支持。 - 符合当地习俗和观念的交互信息。 - 符号。 - 排序方法。同样写法的字母,在不同语言的字母表中可能拥有不同位置。在瑞典语中, ä 和 a 是单独的基本字母,排在 b 之前;而在普通的 Unicode 环境中,ä 的码点比 b 要高,因此排在 b 之后。 - 美学、文化价值和社会环境。 ### 国际化利器 Intl 国际化的意义在于本地化,本地化一般分两种情况考虑,即数据呈现格式和用户信息内容。传统的桌面应用程序根据运行环境的*区域设置*,决定使用何种方式来呈现数据,如小数点的类型、货币的单位等。 > *区域设置*(locale)是计算机中...
Markdown
(tdID) if err != nil { return nil, err } b, err := x509bundle.ParseRaw(td, b) if err != nil { return nil, err } bundles = append(bundles, b) } return x509bundle.NewSet(bundles...), nil } // parseJWTSVIDs parses one or all of the SVIDs in the response. If firstOnly // is true, then only the first ...
Go
MuFunctionAnalyzer: def __init__(self, fn, log=False): self.fn = fn self.name = fn.__name__ src = inspect.getsource(fn) self.ast = ast.parse(src) self.src = astor.to_source(self.ast) # normalize self.mutator = self.mutator_object() self.nmutations = self.get...
Markdown
_JADRO_SEARCH_L", 422, "Jadro-1I Lights", "PILOT Jadro-1I Search Lamp (yellow)") Mi_24P:defineIndicatorLight("PLT_JADRO_CTL_L", 424, "Jadro-1I Lights", "PILOT Jadro-1I Ctl Lamp (red)") Mi_24P:defineIndicatorLight("PLT_JADRO_BREAK_L", 425, "Jadro-1I Lights", "PILOT Jadro-1I Breakdown Lamp (yellow)") --Eucalypt_M24 (R82...
Lua
gs.h> #include <primitives/block.h> #include <primitives/transaction.h> #include <random.h> #include <reverse_iterator.h> #include <scheduler.h> #include <streams.h> #include <timedata.h> #include <tinyformat.h> #include <txmempool.h> #include <txorphanage.h> #include <util/check.h> // For NDEBUG compile time check #in...
C++
transition: $value !important; transition: $value !important; } @mixin transform( $value ) { @include prefix( transform, $value ); } @mixin transform-origin( $value ) { @include prefix( transform-origin, $value ); } @mixin buttonColor( $name, $color ) { &[data-color=#{$name}] { background: $color; &...
CSS
significant increase in errors/inconclusive bisections after ~8h. // Out of 4075 fix bisections: // - 4015 finished under 6h (98.5%) // - 4020 finished under 8h (98.7%) // - 4026 finished under 10h (98.8%) // - 4032 finished under 12h (98.9%) // Significant increase in errors starts after ~12h. // The ...
Go
555554; immval:0x332 TEST_IMM_OP( xori, x11, x10, 0x55555666, 0x55555554, 0x332, x3, 1084, x4) inst_294: // rs1_val==1431655764 and imm_val==1637, // opcode: xori ; op1:x10; dest:x11; op1val:0x55555554; immval:0x665 TEST_IMM_OP( xori, x11, x10, 0x55555331, 0x55555554, 0x665, x3, 1088, x4) inst_295: // rs1_val==143...
Assembly
E_BYTE_ORDER_MARK: ftFileType = FT_UNICODEBE; break; // UTF bom has 3 bytes. case BOM_UTF8_HALF: if (iSize > 2 && ((BYTE) *((lpFileContents)+2) == BOM_UTF8_2HALF) ) { ftFileType = FT_UTF8; } break; ...
C
ToList(); /// /// var pls = new Aws.Ec2.ManagedPrefixList("pls", new() /// { /// Entries = mycidrs.Select((v, k) =&gt; new { Key = k, Value = v }).Apply(entries =&gt; entries.Select(entry =&gt; /// { /// return /// ...
C#
opened while another is opened, it will close the * currently opened one and open the new one immediately. */ CodeMirror.defineExtension("openNotification", function(template, options) { closeNotification(this, close); var dialog = dialogDiv(this, template, options && options.bottom); var closed = ...
JavaScript
Map<string, List<int>>? schemes = SchemeBufferTable.getInstance().getPlayerSchemes(player.ObjectId); if (schemes != null) { if (schemes.Count == Config.SchemeBuffer.BUFFER_MAX_SCHEMES) { player.sendMessage("Maximum schemes a...
C#
# Copyright (C) 2022-2025 Intel Corporation # LIMITED EDGE SOFTWARE DISTRIBUTION LICENSE from datetime import datetime, timedelta, timezone from uuid import uuid4 import pytest from rest.schema.balance import BalanceResponse from rest.schema.credit_accounts import CreditAccount @pytest.fixture def account_id(): ...
Python
, 0, 0, 0, 0, 0, 0, 0, 1}, {0, 0, 0, 0, 0, 0, 0, 0, 1, 0}}; nn.train(inputs, outputs); std::vector<double> prediction = nn.predict({1, 2, 3, 4}); std::cout << "Prediction: "; for (double d : prediction) { std::cout << d << " "; } std::cout << std::endl; return 0; } // sidra_cybersecu...
C++
_cli(line, "./filename") self.assertRaises(StopIteration, next, checkres) def test_check_datetime_alias(self): lines = ["import datetime as date", "import datetime", "import datetime as dto", "from datetime import datetime as dtime"] for l...
Python
wsp100m_36_37'].attrs = {'units': 'ms-1', 'name': 'Wind speed at 100m interpolated from level 36 and 37 from COSMO-REA6'} ds['total_radiation'].attrs = {'units': 'Wm-2', 'name': 'total short-wave surface radiation from COSMO-REA6'} ds['wsp'].attrs = {'...
Python
. --- category: Components group: 数据录入 title: Switch subtitle: 开关 description: 使用开关切换两种状态之间。 cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*rtArRpBNDZcAAAAAAAAAAAAADrJ8AQ/original coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*al07RK8SGf4AAAAAAAAAAAAADrJ8AQ/original demo: cols: 2 ---...
Markdown
格证明;验收不合格的,应当出具书面整改意见。 项目竣工验收通过后,项目承担单位应当将工程建设及资金使用情况向社会公开。 第二十五条 对适宜整体开发的土地整治项目,经依法流转后,可以由社会组织投资经营。投资经营主体应当通过招标投标方式确定。 社会资金投资土地整治项目的,应当由县级人民政府与投资主体签订合同,明确双方权利、义务,并依照本条例规定进行耕地质量等级评定和竣工验收。 第二十六条 各级人民政府应当采取财政奖补、民办公助等方式,鼓励、引导、扶持农村集体经济组织、农民合作社、专业大户、农业企业等投资建设直接受益的土地整治工程。 ## 第四章 后期管护 第二十七条 土地整治项目竣工验收合格后,项目承担单位应当在三十日内,...
Markdown
H26 .Ltarget // CHECK: 8: 14000000 b 0x8 <main+0x8> // CHECK: 0000000000000008: IMAGE_REL_ARM64_BRANCH26 .Lother_target // CHECK: 000000000000000c <.Ltarget>: // CHECK: c: d65f03c0 ret // CHECK: 0000000000000000 <other>: // CHECK: 0: d503201f nop // CHE...
Assembly
turn}function f6(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=E5(a,0,0,0,8)|0;if(((e|0)!=0?(d=L5(a,-3,d,-1)|0,c[e+4>>2]=d,(d|0)!=0):0)?(f=E5(a,0,0,0,32)|0,c[e>>2]=f,(f|0)!=0):0){a=b+4|0;c[f+4>>2]=c[a>>2];c[f>>2]=c[b>>2];c[f+8>>2]=-1;c[f+12>>2]=-1;f=f+16|0;c[f>>2]=0;c[f+4>>2]=0;c[f+8>>2]=0;c[f+12>>2]=0;c[a>>2]=e;c[b>>2]=1;a=0...
JavaScript
(mv), s, &listener)) << listener.str(); } TEST_F(UnorderedElementsAreTest, WorksForStreamlike) { // Streamlike 'container' provides only minimal iterator support. // Its iterators are tagged with input_iterator_tag, and it has no // size() or empty() methods. const int a[5] = ...
C++
#!/usr/bin/python3 import unittest import sys sys.path.append('../util') from iwd import IWD from hostapd import HostapdCLI from config import ctx class Test(unittest.TestCase): def push_button_success(self, wd, client=False): self.hostapd.wps_push_button() devices = wd.list_devices(1) ...
Python
str2="Con la patente di categoria A si possono condurre anche i tricicli di potenza superiore a 15 kW, qualunque sia l'età del conducente" str1="Con lo potente ol cotegono A sl possono conourre onche l tnclcl ol potenzo supenore ol5 KW,quolunque sloleto oel conoucente" def remove_single_quotes(input_string): ...
Python
e submitted, winning solution can be transparently reproduced. --- **public** as selected on submission time through the Eval.AI platform: <img src="figs/public_submission_screenshot.png" width="500"> Note that you have a total of 3 submission in Apr 3-5, 2025 - whether private or **public**. We recommend you exclu...
Markdown
// SPDX-License-Identifier: Apache-2.0 // Copyright 2018 Eotvos Lorand University, Budapest, Hungary #include "test.h" fake_cmd_t t4p4s_testcase_test[][RTE_MAX_LCORE] = SINGLE_LCORE( FAST(0, SAME, "00", INOUT("12345678","12345679")), FAST(0, SAME, "01", INOUT("12345678","12345679")), FAST(0, SAME, "02", I...
C
assertEquals(-15, r.numerator) assertEquals(8, r.denominator) } @Test fun div() { var r = RationalNumber(5,7) r /= 3 assertEquals(5, r.numerator) assertEquals(21, r.denominator) r = RationalNumber(6,7) r /= 3 assertEquals(2, r.numerator) ...
Kotlin
_nodeBalancingStrategy = nodeBalancingStrategy; } public DateTimeOffset RefreshAt { get; private set; } public async ValueTask<ILavalinkNode> GetPreferredNodeAsync(CancellationToken cancellationToken = default) { cancellationToken.ThrowIfCancellationRequested(); if (_systemCl...
C#
cloud.talent.v4.JobResult.status:type_name -> google.rpc.Status 17, // 25: google.cloud.talent.v4.BatchCreateJobsResponse.job_results:type_name -> google.cloud.talent.v4.JobResult 17, // 26: google.cloud.talent.v4.BatchUpdateJobsResponse.job_results:type_name -> google.cloud.talent.v4.JobResult 17, // 27: google.clo...
Go
G["ChatFrame"..i]; chatTab = _G["ChatFrame"..i.."Tab"]; if ( (not shown and not chatFrame.isDocked) or (count == NUM_CHAT_WINDOWS) ) then if ( not name or name == "" ) then name = format(CHAT_NAME_TEMPLATE, i); end -- initialize the frame FCF_SetWindowName(chatFrame, name); FCF_SetWindowColor(ch...
Lua
"nhomBT": teacher_info_match.group(6).strip(), "giangVienBT": teacher_info_match.group(7).strip(), "sisoLT": teacher_info_match.group(8).strip(), "classInfo": [], } time_and_location_match = time_and_location_pattern.findall(line) if ...
Python
(tx.amountCollateral); list.add(DetailInfoItem( label: '', title: '${Fmt.priceFloorBigInt(tx.amountCollateral, decimals)} ${tx.currencyId}', )); } return TxDetail( success: true, action: '', eventId: 'tx.id', hash: tx.hash, networkName: store...
Dart
se containing xiaomi or samsung) and removing installOriginator attribute...") val editedPackagesXml = File(packagesXmlPath).exists() && processPackagesXml( packagesXmlPath, name = "packages.xml", observer = observer ) val editedWarning...
Kotlin
-webkit-background-size: cover; -moz-background-size: cover; background-size: cover; -o-background-size: cover; } header .intro-text { padding-top: 25vh; padding-bottom: 50px; } header .intro-text .intro-lead-in { margin-bottom: 25px; font-family: "Droid Serif", "Helvetica Neue", Helv...
CSS
qb, ai, unit) -- local SpawnerCount = GetZaalSpawners(tqb,ai,unit) -- --local r = math.random(0,SpawnerCount + 1) -- local ec, es, ep, ei, ee = Spring.GetTeamResources(ai.id, "energy") -- local su = Spring.GetTeamRulesParam(ai.id, "supplyUsed") or 0 -- local sm = Spring.GetTeamRulesParam(ai.id, "supplyMax") or 0 ...
Lua
dio.options, '/admin/gift-cards/${giftCardId}', queryParameters: queryParameters, data: _data, ) .copyWith( baseUrl: _combineBaseUrls( _dio.options.baseUrl, baseUrl, )))); final value = AdminGif...
Dart
Sql); } dropTableQueries.ForEach(query => { using var dropTableCommand = new SqliteCommand(query, physicalDbConnection); dropTableCommand.ExecuteNonQuery(); }); } physicalDbConnection.Close(); } private string Gener...
C#
var28 = var26; // L: 552 if (var12 == 1) { // L: 553 var26 += var10; } int var29 = var26; // L: 554 var26 += var10; // L: 555 int var30 = var26; // L: 556 if (var13 == 255) { // L: 557 var26 += var10; } int var31 = var26; // L: 558 if (var15 == 1) { // L: 559 var26 += var10; } int var3...
Java
CODE SEG "start" F452_xxxx_:/* global */ LINK A6,L$0 MOVEM.L A3/D7-D6,-(A7) MOVE G631_i_Gra(A4),D6 BEQ.S L2 MOVE #1,G631_i_Gra(A4) JSR F478_gzzz_(PC) L2: CLR -(A7) MOVE.L #1024,-(A7) JSR F468_ozzz_(PC) ADDQ.L #6,A7 MOVE.L D0,A3 JSR F450_xxxx_(PC) MOVE #2,-(A7) CLR -(A7) CLR -(A7) MOVE #1,-(A7) CLR -(A7...
Assembly
carOne.getModel()); console.log("El color del coche 1 es: "+carOne.getColor()); console.log("La velocodad del coche 1 es: "+carOne.getSpeed()); carOne.brake(); console.log("La velocodad despues de frenar del coche 1 es: "+carOne.getSpeed()); /* * instantiate object two */ var carTwo = new Car(); carTwo.setColor("blanco...
Typescript
branches = { -- cmd = "git branch --all --color=always --sort=-committerdate", cmd = "git branch --color=always --sort=-committerdate", preview = "git log --graph --pretty=oneline --abbrev-commit --color --stat {1}", }, }, previewers = { builtin =...
Lua
r(--bs-body-color-rgb), 0.8);display:flex;column-gap:1rem}@media (max-width: 575.98px){footer{flex-direction:column}}@media (min-width: 576px){footer .pkgdown-footer-right{text-align:right}}footer div{flex:1 1 auto}html,body{height:100%}body>.container{min-height:100%;display:flex;flex-direction:column}body>.container ...
CSS
nit.jupiter.toString() shouldBe "org.junit.jupiter:junit-jupiter:_" Testing.junit.jupiter.api.toString() shouldBe "org.junit.jupiter:junit-jupiter-api:_" } @Test fun `unrelated groups should not affect each other`() { runDependencyGroupTest(Testing.junit, Testing.junit.jupiter, KotlinX.coro...
Kotlin
#7,d1 add.l d1,d1 add.l #224,d1 ;pos move.w (a1,d1.l),512*2(a0) move.w (a1,d1.l),(a0)+ dbra d7,.sinloop ;------------- copy overscan code lea.l generic_code,a0 move.l #twist_code1_end,d0 ;top 227 lines sub.l #twist_code1_start,d0 lsr.l #1,d0 subq.l #1,d0 move.w #227-1,d7 .code1a: move.l d0,d6 ...
Assembly
(String key : map.keySet()) { this.set(key, map.get(key)); } } return this; } /** 将一个对象解析塞进SoMap */ public SoMap setModel(Object model) { if(model == null) { return this; } Field[] fields = model.getClass().getDeclaredFields(); for (Field field : fields) { try{ field....
Java
1028 - Channel Enable Set Register"] pub dma_enaset: DMA_ENASET, #[doc = "0x102c - Channel Enable Clear Register"] pub dma_enaclr: DMA_ENACLR, #[doc = "0x1030 - Channel Primary-Alternate Set Register"] pub dma_altset: DMA_ALTSET, #[doc = "0x1034 - Channel Primary-Alternate Clear Register"] p...
Rust
local api = vim.api local base64 = vim.base64 local bit = require "bit" local fn = vim.fn --- @class (exact) KittyGfx: Gfx --- @field screen Screen --- @field shm_name_base64 string --- @field image_id integer --- @field image_id_msb integer --- @field image_id_lsb integer --- @field has_image boolean? --- @field dete...
Lua
{ if (var10 < var6 / 16) { var7 += p_149853_2_.nextInt(3) - 1; var8 += (p_149853_2_.nextInt(3) - 1) * p_149853_2_.nextInt(3) / 2; var9 += p_149853_2_.nextInt(3) - 1; if (p_149853_1_.getBlock(var7, var8 - 1,...
Java
9D 41 */ bl func_802502F4 /* 801365B8 00132218 7C 64 1B 78 */ mr r4, r3 /* 801365BC 0013221C 38 60 00 0E */ li r3, 0xe /* 801365C0 00132220 48 02 5D 49 */ bl func_8015C308 /* 801365C4 00132224 57 C3 04 3E */ clrlwi r3, r30, 0x10 /* 801365C8 00132228 48 11 9D 2D */ bl func_802502F4 /* 801365CC 0013222C 7C 64 1B 78...
Assembly
"==typeof s.createImageBitmap),mt}var _t={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(_t);var wt=function(t){function e(e,r,n){401===r&&Z(n)&&(e+=": you may have provided an i...
JavaScript
if (obj.isEmpty()) format else String.format(format!!, *obj) if (log == null) { log = "" } log += " " + Log.getStackTraceString(tr) Log.e(tag, log.appendThreadName()) } } var impl: KLoggerImp = debugLog fun setKLoggerImp(imp: KLoggerI...
Kotlin
Evaluates to true/false based on if the expression is not truthy. Not { /// Approximate absolute position in the parsed expression. offset: usize, /// node to negate node: Box<Ast>, }, /// Evaluates LHS, and pushes each value through RHS. Projection { /// Approxi...
Rust
er(latch)); CommandStreamTest.Command cmd = CommandStreamTest.Command.from(groupKey, key, HystrixEventType.FAILURE, 20, HystrixEventType.FALLBACK_FAILURE); cmd.observe(); try { assertTrue(latch.await(10000, TimeUnit.MILLISECONDS)); } catch (InterruptedException ex) { ...
Java
* 1B3081C 8007C254 1E000224 */ addiu $v0, $zero, 0x1E .Llevel_21_8007C258: /* 1B30820 8007C258 CB89010C */ jal rand /* 1B30824 8007C25C 00000000 */ nop /* 1B30828 8007C260 6666033C */ lui $v1, (0x66666667 >> 16) /* 1B3082C 8007C264 67666334 */ ori $v1, $v1, (0x66666667 & 0xFFFF) /* 1B308...
Assembly
import korlibs.korge.scene.* import korlibs.korge.stat.* import korlibs.korge.view.* import korlibs.logger.* import korlibs.math.geom.* import korlibs.memory.* import korlibs.platform.* import korlibs.render.* import korlibs.time.* import kotlinx.coroutines.* import kotlin.coroutines.* import kotlin.reflect.* import k...
Kotlin
name check fail") status = 400 end if status == 200 then data.ok_responses = data.ok_responses + 1 else data.fail_responses = data.fail_responses + 1 end else
Lua
{ "annotator_kind": eval_row.get("annotator_kind", "unknown"), "result": { "label": eval_row.get("label"), "score": eval_row.get("score", 0.0), }, "metadata": ...
Python
іншими композитними типами? 14. Композитні типи: Наведіть практичні приклади використання типу enum у програмах на Rust. Як цей тип допомагає моделювати складні структури даних? 15. Композитні типи: Що таке перевірка повноти (exhaustiveness check) для enum у Rust, і чому це важливо? Як це допомагає уникнути п...
Markdown
.length;++f<g;)if(h=a.charCodeAt(f),h<CHAR_CODE_0||h>CHAR_CODE_9){k=(h===CHAR_CODE_DOT?this.localeInfo.decimal+a.slice(f+1):a.slice(f))+k,a=a.slice(0,f);break}switch(this.comma&&!this.zero&&(a=this.localeInfo.group(a,1/0)),d=j.length+a.length+k.length,e=d<this.width?Array(this.width-d+1).join(this.fill):'',this.comma&&...
JavaScript
], }, { test: /\.js$|\.jsx$/, exclude: /(node_modules)/, loader: 'babel-loader', options: BABEL_OPTIONS, }, { test: /\.scss$/, use: [ MiniCssExtractPlugin.loader, "css-loader", "sass-loader", ], }, { t...
JavaScript
y44: Y, y45: Y, y46: Y, y47: Y, y48: Y, y49: Y, y50: Y, y51: Y, y52: Y, y53: Y, y54: Y, y55: Y, y56: Y, y57: Y, y58: Y, y59: Y, y60: Y, y61: Y, y62: Y, y63: Y, y64: Y): MConst<X, D8, D8> = MConst(Vec(y1, y2, y3, y4, y5, y6, y7, y8), Vec(y9, y10, y11, y12, y13, y14, y15, y16), Vec(y17, y18, y19, y20, y21, y22, y23, y24...
Kotlin
in a copy of the License at the * <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache homepage</a> * <p> * Unless required by applicable law or agreed to in writing,<br> * software distributed under the License is distributed on an "AS IS" BASIS, <br> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either ...
Java
return Promise.reject(error.message || error); } }const sin = Math.sin; const cos = Math.cos; export function rad(degrees: number) { return degrees / 180 * Math.PI; } export function getRotationMatrix(axis: 'x' | 'y' | 'z', a: number): number[] { switch (axis) { case 'x': return [ 1, ...
Typescript
if (t != test.count-1) graphWriter << "|"; } /*if (regressPath != NULL) { printf("Regression Results:\n"); printf(" Diff: %.4f\n", totalDiff); printf(" %d/%d tests failed.\n", failedTests, fileCount); }*/ return EXIT_SUCCESS; } // Copyright (c) 2013, Razvan Petru...
C++
50px}.wp-pointer-left .wp-pointer-arrow,.wp-pointer-right .wp-pointer-arrow{top:50%;margin-top:-15px}.wp-pointer-top .wp-pointer-arrow,.wp-pointer-undefined .wp-pointer-arrow{top:0;border-width:0 13px 13px;border-bottom-color:#2271b1}.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer-undefined .wp-pointer-arrow-inner{...
CSS
def load_text_file(filepath): with open(filepath, "r", encoding="utf-8") as f: return f.read()
Python
cClassTribIBSCBS("810001", "Crédito presumido sobre o valor apurado nos fornecimentos a partir da Zona Franca de Manaus, observado o art. 450 da Lei Complementar nº 214, de 2025."); public static final cClassTribIBSCBS cct820001 = new cClassTribIBSCBS("820001", "Documento com informações de fornecimento de serviço...
Java
h2A.5.5 0 013 8zm10.657-5.657a.5.5 0 010 .707l-1.414 1.415a.5.5 0 11-.707-.708l1.414-1.414a.5.5 0 01.707 0zm-9.193 9.193a.5.5 0 010 .707L3.05 13.657a.5.5 0 01-.707-.707l1.414-1.414a.5.5 0 01.707 0zm9.193 2.121a.5.5 0 01-.707 0l-1.414-1.414a.5.5 0 01.707-.707l1.414 1.414a.5.5 0 010 .707zM4.464 4.465a.5.5 0 01-.707 0L2.3...
Dart
content: "-"; } } } &.selected { a { @apply text-adaptivePurple font-semibold; } } } ul { @apply border-l-2 border-borderColor6 pl-24; @apply mb-12; ...
CSS
="icon-light_music_stop"><path fill-rule="evenodd" clip-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10ZM9 8.4c0-.22.18-.4.4-.4h1.2c.22 0 .4.18.4.4v7.2a.4.4 0 0 1-.4.4H9.4a.4.4 0 0 1-.4-.4V8.4Zm4 0c0-.22.18-.4.4-.4h1.2c.22 0 .4.18.4.4v7.2a.4.4 0 0 1-.4.4h-1.2a.4.4 0 0 1-.4-.4V8...
JavaScript
/****************************************************************************/ /* Copyright (c) 2017 MBARI */ /* MBARI Proprietary Information. All rights reserved. */ /****************************************************************************/ /* S...
C
oudFunctions; * import com.pulumi.alicloud.inputs.GetZonesArgs; * import com.pulumi.alicloud.vpc.Network; * import com.pulumi.alicloud.vpc.NetworkArgs; * import com.pulumi.alicloud.vpc.Switch; * import com.pulumi.alicloud.vpc.SwitchArgs; * import com.pulumi.alicloud.vpc.NatGateway; * ...
Java
reading data as signed 32-bit PCM for consistency with dr_flac. v0.1a - 2016-05-07 - Fixed a bug in drwav_open_file() where the file handle would not be closed if the loader failed to initialize. v0.1 - 2016-05-04 - Initial versioned release. */ /* This software is available as a choice of the following license...
C
qlite"); // submit the changes tester.executeAjaxEvent("blobConfigContainer:blobStoreForm:save", "click"); // checking if the store was correctly updated assertThat(findStore(storeId), nullValue()); MbtilesInfo configuration = findStore(updatedStoreId); assertThat(config...
Java
/* * Copyright (c) 2010 Alexander Strange <astrange@ithinksw.com> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License,...
C
# cleanup.py - Game Cleanup System für SusWords import json import os import time from datetime import datetime, timedelta def get_file_last_modified(filepath): """Gibt das letzte Änderungsdatum einer Datei zurück""" try: return os.path.getmtime(filepath) except: return 0 def is_game_aban...
Python
/** @file ACPI high precision event timer table definition, at www.intel.com Specification name is IA-PC HPET (High Precision Event Timers) Specification. Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #ifndef _HIGH_PRECISION_EVENT_TIMER...
C
/* * Copyright (C) 2013 Apple Inc. 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 of conditions a...
C
; pub const ORB_KEY_P: u8 = 0x19; pub const ORB_KEY_Q: u8 = 0x10; pub const ORB_KEY_R: u8 = 0x13; pub const ORB_KEY_S: u8 = 0x1F; pub const ORB_KEY_T: u8 = 0x14; pub const ORB_KEY_U: u8 = 0x16; pub const ORB_KEY_V: u8 = 0x2F; pub const ORB_KEY_W: u8 = 0x11; pub const ORB_KEY_X: u8 = 0x2D; pub const ORB_KEY_Y: u8 = 0x15...
Rust
astructure"), ("tester", "mobile development"), ("designer", "user experience") ] for role, domain in test_cases: name = domain_strategy.generate_name(role, domain) print(f"{role} + {domain} = {name}") print("\n=== Real Naming Strategy ===") real_strategy = Real...
Python
ype).Inc() } } // isLocalFile checks if the URL is a local file func isLocalFile(url string) bool { return len(url) > 5 && url[:5] == "file:" } package main import ( "github.com/aws/aws-cdk-go/awscdk/v2" "github.com/aws/aws-cdk-go/awscdk/v2/awsiam" "github.com/aws/aws-cdk-go/awscdk/v2/awssagemaker" "github.com/...
Go
License` * * @example * cy.apiGetClientLicense().then(({license}) => { * // do something with license * }); */ apiGetClientLicense(): Chainable<ClientLicense>; /** * Verifies if server has license for a certain feature and fail te...
Typescript
pect(xy.equals3D(xy2, toleranceHoriz: e, toleranceVert: e), false); final xyz1 = Point.build([23.1, 34.3, 45.4]); final xyz2 = Point.build([23.1, 34.4, 45.5]); expect(xyz.equals2D(xyz1, toleranceHoriz: e), true); expect(xyz.equals2D(xyz2, toleranceHoriz: e), false); expect(xyz.equals3D(xy...
Dart
); } void SensorSimulator::setSensorDataToDefault() { _airspeed.setData(0.0f, 0.0f); _baro.setData(122.2f); _flow.setData(_flow.dataAtRest()); _gps.setData(_gps.getDefaultGpsData()); _imu.setData(Vector3f{0.0f, 0.0f, -CONSTANTS_ONE_G}, Vector3f{0.0f, 0.0f, 0.0f}); _mag.setData(Vector3f{0.218f, 0.f, 0.43f}); _rn...
C++
= 1, dependence = {["RAID_FRAMES"] = true, ["RAID_MAINTANK_FRAMES_ENABLED"] = true}}) tank:AddOptionSlider(L["Set Raid Unit Height"], L["Set the height of the raid units."], { getterSetter = "RAID_HEIGHT_TANK", callback = function() GW.UpdateGridSettings("TANK", false, true) end, min = 15, max = 100, decimalNumbers...
Lua
× 2024 × 002F ÷ # × [0.3] ONE DOT LEADER (IN) × [13.02] SOLIDUS (SY) ÷ [0.3] × 2024 × 0020 × 002F ÷ # × [0.3] ONE DOT LEADER (IN) × [7.01] SPACE (SP) × [13.02] SOLIDUS (SY) ÷ [0.3] × 2024 × 0308 × 002F ÷ # × [0.3] ONE DOT LEADER (IN) × [9.0] COMBINING DIAERESIS (CM1_CM) × [13.03] SOLIDUS (SY) ÷ [0.3] × 2024 × 0308 ...
Dart
8 * (3 - (i+2)%4)) & 0xFF); for(var j = 0; j < 4; j++) { if(i * 8 + j * 6 > binarray.length * 32) str += b64pad; else str += tab.charAt((triplet >> 6*(3-j)) & 0x3F); } } return str; } var plainText = "Two households, both alike in dignity,\n\ In fair Verona, where we lay our scene,\n\ Fro...
JavaScript
): File { BufferedReader(InputStreamReader(originXmlFile.inputStream(), "UTF-8")).use { reader -> val resultFile = File.createTempFile("rpm_", ".xmlStream") try { resultFile.outputStream().use { outputStream -> fixRpmXmlContent(reader, outputStream) ...
Kotlin
>, }; struct ReadResults { value: array<ReadResult> }; struct StressParamsMemory { do_barrier: u32, mem_stress: u32, mem_stress_iterations: u32, mem_stress_pattern: u32, pre_stress: u32, pre_stress_iterations: u32, pre_stress_pattern: u32, permute_first: u32, permute_se...
Typescript
using Dignite.Abp.TenantDomainManagement.Host.Data; using Serilog; using Serilog.Events; using Volo.Abp.Data; namespace Dignite.Abp.TenantDomainManagement.Host; public class Program { public async static Task<int> Main(string[] args) { var loggerConfiguration = new LoggerConfiguration() #if DEBUG ...
C#
// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %s \ // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST // RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \ // RUN: | FileCheck %s --check-prefix=CHECK-ERROR // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %...
Assembly
_history[best_epoch], train_top5_history[best_epoch], val_top1_history[best_epoch], val_top5_history[best_epoch], train_loss_history[best_epoch], val_loss_history[best_epoch])) return self.best_model, best_epoch, train_top1_history, val_top1_history, train_top5_history, val_top5_history...
Python
(123); send2usb(0); // send increment send2usb(124); send2usb(downsample); // downsample 3 send2usb(125); send2usb(1); // tickstowait 1 //100, 10 // get event (or just 10 if auto-rearming) waitalittle(); send2usb(136); send2usb(2); send2usb(32); send2usb(0); send2usb(0); send2usb(255);...
Java
idates.shape[1] - input_ids.shape[1], depth) def test_device_consistency(self): """Test handling of inputs on different devices""" input_ids = torch.tensor([[1, 2, 3]]).to(torch_device) self.generator.input_ids = input_ids candidates, _ = self.generator.get_candidates(input_ids) ...
Python
//initiate Resource loading library RES.addEventListener(RES.ResourceEvent.CONFIG_COMPLETE, this.onConfigComplete, this); RES.loadConfig("resource/default.res.json", "resource/"); }); } /** * 配置文件加载完成,开始预加载preload资源组。 * configuration file loading is comple...
Typescript
ng(); r1.add(name); } List<String> r2 = new ArrayList<>(); for (ClassID id : info.parentage().reversed()) { String name = id.getSymbolPath().toString(); r2.add(name); } return String.format(" %4d %s %s\t%s", info.finalOffset(), vxt, r1.toString(), r2.toString()); } /** * Creates the self-bas...
Java
import os from os import path def walk_up(bottom): """ mimic os.walk, but walk 'up' instead of down the directory tree """ bottom = path.realpath(bottom) # get files in current dir try: names = os.listdir(bottom) except Exception as e: print(e) return dirs...
Python
ue s.iterators = nil s.executableTracker = nil s.monitor.RemoveSlice(s) } func (s *SliceImpl) stateSanityCheck() { if s.destroyed { panic("Can not invoke method on destroyed queue slice") } } func (s *SliceImpl) newSlice( scope Scope, iterators []Iterator, tracker *executableTracker, ) *SliceImpl { slice :...
Go
48 00 00 08 */ b lbl_8043DC1C lbl_8043DC18: /* 8043DC18 00439158 7F E4 02 14 */ add r31, r4, r0 lbl_8043DC1C: /* 8043DC1C 0043915C 80 04 00 10 */ lwz r0, 0x10(r4) /* 8043DC20 00439160 2C 00 00 00 */ cmpwi r0, 0 /* 8043DC24 00439164 41 82 00 3C */ beq lbl_8043DC60 /* 8043DC28 00439168 38 60 00 10 */ li r3, 0x10 /* ...
Assembly
from matplotlib import animation from matplotlib import pyplot as plt circle = plt.Circle((0,0), 0.05) def update_radius(i, circle): circle.radius = i * 0.5 return circle fig = plt.gcf() ax = plt.axes(xlim=(-10,10), ylim=(-10,10)) ax.set_aspect('equal') ax.add_patch(circle) ani = animation.FuncAnimation(fi...
Python
/* SPDX-License-Identifier: GPL-2.0 * * Copyright (C) 2017, Intel Corporation. All rights reserved. */ #ifndef __LINUX_SND_SOC_ACPI_INTEL_MATCH_H #define __LINUX_SND_SOC_ACPI_INTEL_MATCH_H #include <linux/module.h> #include <linux/stddef.h> #include <linux/acpi.h> /* * these tables are not constants, some fields...
C