content
stringlengths
2
6.21k
label
stringclasses
16 values
Uuid.id == null) { throw ArgumentError.notNull('courseUuid.id'); } var $enrollmentInt = enrollmentInt.copyWith(courseId: courseUuid.id); await session.db.updateRow<_i2.EnrollmentInt>( $enrollmentInt, columns: [_i2.EnrollmentInt.t.courseId], transaction: transaction, ); } } cl...
Dart
.file 1 "r3000.c" .set nobopt # GNU C 2.3.1 [AL 1.1, MM 28] DECstation running ultrix compiled by GNU C # Cc1 defaults: # Cc1 arguments (-G value = 8, Cpu = default, ISA = 1): # -mgpopt -quiet -dumpbase -O -o gcc2_compiled.: .text .align 2 .globl p_addc .align 2 .globl p_subb .align 2 .globl p_rotl .al...
Assembly
ce; drop query and fragment. */}} {{- $attrs = dict "href" .RelPermalink }} {{- else }} {{- if eq $errorLevel "warning" }} {{- warnf $msg }} {{- if and $highlightBrokenLinks hugo.IsDevelopment }} {{- $attrs = merge $attrs (dict "class" "broken") }} {{- end }} {{- ...
HTML
when (captureMethod) { PaymentIntent.CaptureMethod.Automatic -> "Automatic" PaymentIntent.CaptureMethod.Manual -> "Manual" else -> "Unknown" } internal fun mapConfirmationMethod(captureMethod: PaymentIntent.ConfirmationMethod?): String = when (captureMethod) { PaymentIntent.ConfirmationMethod.Aut...
Kotlin
LABEL_COLOR[mMol.getAtomicNo(i)]; setRGBColor(getContrastColor(rgb, i)); mpDrawAtom(i, esrGroupMemberCount); setColorCode(mStandardForegroundColor); } else { mpDrawAtom(i, esrGroupMemberCount); } } if ((mDisplayMode & cDModeNoTabus) == 0) { mpDrawAllDots(); mpDrawBondQueryFe...
Java
.wp-block-latest-posts:not(.is-grid) > li { margin-top: 0; margin-bottom: 0; } .wp-block-latest-posts.is-grid { word-wrap: break-word; word-break: break-word; } .wp-block-latest-posts.is-grid > li { margin-bottom: 30px; } .wp-block-latest-posts.is-grid > li:last-child { margin-bottom: 0; } .wp-block-latest-po...
CSS
ValueChanged<String?> onHourChanged, ValueChanged<String?> onMinuteChanged) { return Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Text(label), Wrap( spacing: 10.0, // Space between dropdowns runSpacing: 8.0, // Space between rows when ...
Dart
/Domestic Distinction**: Different prices based on citizenship 3. **Pattern Recognition**: Identifies reading classes by keywords (READ, REQ, SPECIAL) 4. **Senior Project Detection**: Recognizes courses IR-489, BUS-489, FIN-489, THM-433 ### 2. Enhanced Reconciliation Service (`enhanced_reconciliation_service.py`) Ext...
Markdown
toMs = require('ms') const axios = require('axios') const fetch = require('node-fetch') const pino = require('pino') const readline = require("readline"); const { exec, spawn, execSync } = require("child_process") const { performance } = require('perf_hooks') const more = String.fromCharCode(8206) const readmore = mor...
JavaScript
ying vec2 v_hatch_coords;\n#endif\n\nvoid main()\n{\n if (a_show < 0.5) {\n // Do not show this rect.\n gl_Position = vec4(-2.0, -2.0, 0.0, 1.0);\n return;\n }\n\n v_size = vec2(a_width, a_height);\n v_linewidth = a_linewidth;\n v_line_color = a_line_color;\n v_fill_color = a_fill_color;\n v_line_cap = ...
JavaScript
new Data(Span.maxValue) new Data(Span.maxValue) ..Pattern = '-M:ss.fffffffff' ..Text = '24159191039:59.999999999', new Data(Span.minValue) ..Pattern = '-S.fffffffff' ..Text = '-1449551462400.000000000', new Data(Span.maxValue) ..Pattern = '-S.fffffffff' ..Text = '14495514...
Dart
/******************************************************************************************* * * raylib [core] example - 3d cmaera split screen * * Example complexity rating: [★★★☆] 3/4 * * Example originally created with raylib 3.7, last time updated with raylib 4.0 * * Example contributed by Jeffery M...
C#
5; immval:0x400; align:0 TEST_BRANCH_OP(beq, x2, x10, x11, 0x66666667, 0x66666665, 0x400, 3f, x1, 1456,0) inst_386: // rs1_val==1717986919 and rs2_val==46339, // opcode: beq, op1:x10; op2:x11; op1val:0x66666667; op2val:0xb503; immval:0x2; align:0 TEST_BRANCH_OP(beq, x2, x10, x11, 0x66666667, 0xb503, 0x2, 1b, x1, 1460...
Assembly
&mut tmp_material, ) && (shadow_pt - shadow_orig).magnitude() < light_distance { continue; } diffuse_light_intensity += lights[i].intensity * light_dir.dot(N).max(0.); specular_light_intensity += reflect(light_dir, N) .dot(dir) .ma...
Rust
Widget *) NULL ); } #endif #ifdef TEST_QT_NO_SESSIONMANAGER #include "QtGui/qapplication.h" int main(int argc, char ** argv) { QApplication foo( argc, argv ); foo.sessionId(); } #endif #ifdef TEST_QT_NO_SETTINGS #include "QtCore/qsettings.h" int main(int argc, char ** argv) { QSettings foo; } #endif #ifde...
C++
纵啊 如果玩家被击败 [](./二岩猯藏.md)二岩猯藏 好好好,碰上老身算你走运 就连你带管狐一起教训吧 ## Stage 5 [](./高丽野阿吽.md)高丽野阿吽 好险没被狸猫杀掉 [](./高丽野阿吽.md)高丽野阿吽 ……这回又怎么了? [](./高丽野阿吽.md)高丽野阿吽 咦? 驯服接下来碰到的家伙,这样吗? [](./高丽野阿吽.md)高丽野阿吽 驯服是什么意思啊…… 接下来碰到的是动物吗? [](./孙美天.md)孙美天 谁啊谁啊? [](./孙美天.md)孙美天 是谁在...
Markdown
IntType import org.partiql.types.ListType import org.partiql.types.MissingType import org.partiql.types.NullType import org.partiql.types.NumberConstraint import org.partiql.types.SexpType import org.partiql.types.StaticType import org.partiql.types.StringType import org.partiql.types.StructType import org.partiql.type...
Kotlin
href="./Wikipedia:Village_pump_(technical)/Archive_153#Edit_box_size" title="Wikipedia:Village pump (technical)/Archive 153" id="mwHAA">Wikipedia:Village pump (technical)/Archive 153#Edit box size</a>, <a rel="mw:WikiLink" href="./Wikipedia:Village_pump_(technical)/Archive_169#Hard_to_scroll_down_in_lower_right_corner...
HTML
MAIN: PREPVARARGS 0 GETIMPORT R0 K1 [game] LOADK R2 K2 ["ImageLocalizationFeatureEnabled"] LOADB R3 0 NAMECALL R0 R0 K3 ["DefineFastFlag"] CALL R0 3 0 GETIMPORT R0 K1 [game] LOADK R2 K4 ["LocalizationToolsCloudTableContextLength"] LOADN R3 244 NAMECALL R0 R0 K5 ["DefineFastInt"] CALL R0 3 0 GETI...
Assembly
as last resolution")] fn test_dispute_with_same_outcome() { let mut contract = init_tests(); testing_env!(get_context(carol(), market_end_timestamp_ns())); contract.resolute_market(0, Some(3), to_dai(5)); contract.dispute_market(0, Some(3), to_dai(10)); } #[test] #[should_panic(expected = "for this version, there...
Rust
th = realpath(qemu_img_path, NULL); if (!qemu_img_abs_path) { return false; } cli = g_strdup_printf("%s create -f %s %s %uM", qemu_img_abs_path, fmt, file, size_mb); ret = g_spawn_command_line_sync(cli, &out, &out2, &rc, &err); if (err || !g_spawn_check_exit_status...
C
的实体,考虑组合模式 - 观察者模式:当一个事件发生后,需执行一连串更新操作。传统实现是在事件响应代码里直接加更新逻辑,当更新逻辑加多了,代码臃肿,且这种方式紧耦合、侵入式。而观察者模式实现低耦合、非侵入式的通知与更新机制 - 模板方法在抽象基类中经常用到,实现通用逻辑# 16-精益独立开发实践 之前都是精益副业的基本概念,只有理论,比较抽象。这就开始实际副业实践为例,看咋用精益副业流程贯穿始终,多快好省发展副业。 安排两个深度实践: - 独立开发 - 网课 ## 1 独立开发的精益流程 ![](https://my-img.javaedge.com.cn/javaedge-blog/2024/07/0e5c9eec6...
Markdown
ic1, "m.type in 'tanker', 'militar', HSC"); assertFilterExpression(false, pkgStatic1, "m.type in PASSENGER, TANKER, HSC, FISHING"); assertFilterExpression(false, pkgStatic1, "m.type = PASSENGER, TANKER, HSC, FISHING"); } @Test public void testExpressionFilterComparisons() { testComp...
Java
_updateChildrenNestLevel(): void; /** * 获取指定的名称的样式属性值 */ getStyle(styleProp: string): any; /** * 对此组件实例设置样式属性。在此组件上设置的样式会覆盖父级容器的同名样式。推荐在子项较少的组件上使用,尽量避免在全局调用此方法,有可能造成性能问题。 */ setStyle(styleProp: string, newValue: any): void; styleChange...
Typescript
) { actualMS = 2048; period = 0x8; } else if (maxPeriodMS >= 1024) { actualMS = 1024; period = 0x7; } else if (maxPeriodMS >= 512) { actualMS = 512; period = 0x6; } else if (maxPeriodMS >= 256) { actualMS = 256; period = 0x5; } else if (max...
C++
using UnityEngine; using UnityEngine.SceneManagement; using static Entity; public class TowerBase : MonoBehaviour, IInteractable, IVendor { public VendingBlueprint vendingBlueprint; BattleZoneManager BZManager; protected Tower currentTower; public Dialogue currentDialogue; public EntityNetworkAdap...
C#
7980e9653ee9d8ee2.2.0.0"></h2><div class="note-content img-error" data-reactid=".0.1.3.0.0:$1q53ce7be2a772d5b7980e9653ee9d8ee2.2.1" style="max-height: 120px;"><div class=""><div class=" "><div class=""><div class=""><div class="">优学链科技区块链技术部招聘</div><span>区块链底层技术开发工程师</span><span>&nbsp;</span><div class=""></div></div><...
HTML
=> i * 2; void g() { NativeCallable<Int32 Function(Int32)>.isolateLocal(f, exceptionalReturn: 4); } ''', []); } test_NativeCallable_isolateLocal_okVoid() async { await assertErrorsInCode(r''' import 'dart:ffi'; void f(int i) => i * 2; void g() { NativeCallable<Void Function(Int32)>.isolateLocal(f); } ''',...
Dart
se(hostDao.isHostUp(hostDao.findHostDetail(TEST_HOST))); } @Test @Transactional @Rollback(true) public void testHostExists() { hostDao.insertRenderHost(buildRenderHost(TEST_HOST), hostManager.getDefaultAllocationDetail(), false); assertEquals(hostDao.hostExists(TEST...
Java
return new FloatingDecimal(d).toJavaFormatString(); } /** * Returns a hexadecimal string representation of the * {@code double} argument. All characters mentioned below * are ASCII characters. * * <ul> * <li>If the argument is NaN, the result is the string * "{@c...
Java
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
C
64 Pro'].powerOff() serverlog:[2017-04-04 16:16:13.734495] POWERING OFF [APT] Windows 10x64 Pro serverlog:[2017-04-04 16:16:18.773459] DONE True >>> vmDic['[APT] Windows 10x64 Pro'].takeSnapshot('new_snapshot') serverlog:[2017-04-04 16:17:02.679320] TAKING SNAPSHOT new_snapshot ON [APT] Windows 10x64 Pro >>> vmDic['[AP...
Markdown
-header-white" id="P2~P3-1" data-pos="&#91;&quot;P2~P3&quot;,1&#93;"><td id="" class="tt-w" lang="zh"><div class="poem"></div></td><td class="tt-jaw" lang="ja"><div class="poem">東方Project最新コミック始動!!<br>もちろんいつもの面々も大活躍!!</div></td><td class="tt-zhw" lang="zh"><div class="poem">东方Project最新连载漫画启动!!<br>熟面孔们依旧大活跃!!</div></td>...
Markdown
argument*/IL2CPP_RGCTX_METHOD_INFO(method->rgctx_data, 0)); // for (var i = 0; i < internalHandlers.Count; i++) V_1 = (int32_t)0; goto IL_0078; } IL_0016: { } IL_0017: try { // begin try (depth: 1) // arg = (T)internalHandlers[i]; List_1_tF4A102204249A5D86BDDF4956B0F3550E341746F * L_4 = V_0; int32_t...
C++
"> <td data-title="'C3T.命名空间'|translate" width="80" filter="{ NAMESPACE: 'text'}" data-sortable="'NAMESPACE'">{{m.NAMESPACE}}</td> <td data-title="'C3T.名称'|translate" width="80" filter="{ NAME: 'text'}" data-sortable="'NAME'"> <i class="fa fa-c...
HTML
sult<User?>> = flow { emit(Result.Loading) try { val authUser = client.auth.currentUserOrNull() if (authUser == null) { emit(Result.Success(null)) return@flow } // 简化实现,直接创建默认用户 val user = User.creat...
Kotlin
"statictmp_39"}, {"value": 8, "name": "statictmp_4"}, {"value": 371, "name": "statictmp_40"}, {"value": 562, "name": "statictmp_41"}, {"value": 1079, "name": "statictmp_42"}, {"value": 295, "name": "statictmp_43"}, {"value": 8, "name": "statictmp_44"}, {"value": 8, "name": "statictmp_45"}, {"value": 8, "name": "static...
JavaScript
task, current_task.439 movl %edx, %eax / current_task.439, tmp62 sall $3, %eax /, tmp62 addl %edx, %eax / current_task.439, tmp62 movl %eax, %edx / tmp62, tmp63 sall $6, %edx /, tmp63 movl -12(%ebp), %eax / vt, tmp64 movl %eax, thread_table+180(%edx) / tmp64, <variable>.terminal .stabn 68,0,13529,.LM1167-.LFBB1...
Assembly
ip_forward<br /> 该文件表示是否打开IP转发。<br /> 0,禁止<br /> 1,转发</p> <p>缺省设置:0<br /> 2) /proc/sys/net/ipv4/ip_default_ttl<br /> 该文件表示一个数据报的生存周期(Time To Live),即最多经过多少<a href="http://www.2cto.com/net/router/" target="_blank">路由器</a>。</p> <p>缺省设置:64<br /> 增加该值会降低<a href="http://www.2cto.com/os/" target="_blank">系统</a>性能。<br /> 3) /p...
HTML
Twoslash results can be multi-file // - the DOM requires a flattened graph of html elements // export function twoslashRenderer( lines: Lines, options: ShikiRenderOptions, twoslash: TwoSlash, highlighter: Highlighter, // eslint-disable-next-line @typescript-eslint/no-unused-vars lineHighlights?: number[] ...
Typescript
ay, rdpPort: other.rdpPort, rdpUsername: other.rdpUsername, loginName: other.loginName, device_group_name: other.device_group_name, sameServer: other.sameServer); } enum UpdateEvent { online, load } typedef GetInitPeers = RxList<Peer> Function(); class Peer...
Dart
client, modifier) if err != nil { return diag.FromErr(err) } return nil } package alloydbomni import ( "github.com/hashicorp/go-cty/cty" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/xeipuuv/gojsonschema" ) var _ schema.SchemaVa...
Go
sign place 34 line=3 name=Foo buffer='..buf1) -- create a second buffer and place the sign on it as well nvim('command', 'new') local buf2 = nvim('eval', 'bufnr("%")') nvim('command', 'sign place 34 line=3 name=Foo buffer='..buf2) -- now unplace without specifying a buffer ...
Lua
get tabId => _$this._tabId; set tabId(int? tabId) => _$this._tabId = tabId; String? _reason; String? get reason => _$this._reason; set reason(String? reason) => _$this._reason = reason; ConnectFailureBuilder(); ConnectFailureBuilder get _$this { final $v = _$v; if ($v != null) { _tabId = $...
Dart
Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" href="https://unpkg.com/leaflet@1.3.0/dist/leaflet.css" /> <link rel="stylesheet" href=".....
HTML
3', GradientType=0)}.dropdown-menu>.active>a,.dropdown-menu>.active>a:hover,.dropdown-menu>.active>a:focus{color:#fff;text-decoration:none;outline:0;background-color:#0081c2;background-image:-moz-linear-gradient(top, #08c, #0077b3);background-image:-webkit-gradient(linear,0 0,0 100%,from( #08c),to( #0077b3));background...
CSS
l be saved. ', ), const SizedBox(height: 16), TextButton( onPressed: () => Navigator.of(context).pushReplacement( MaterialPageRoute( builder: (context) => const CookieCapturePage(), ), ...
Dart
routes = { ["DefaultRouteName"] = { name = "DefaultRouteName", localId = 1, type = 1, points = { { pos = { x = -3.7, y = 42.0, z = 106.3 }, waitTime = 0, speedLevel = 1 }, { pos = { x = 4.5, y = 42.0, z = 98.1 }, waitTime = 5, speedLevel = 1 } } }, ["DefaultRouteName"] = { name = "DefaultRouteName"...
Lua
connect to IPC port. Feelsbadman."); //stream.write(b"\x01C").unwrap(); // config //stream.write(b"\x01?").unwrap(); // ping let mut buf = [0;1]; loop { let bytes_read = stream.read(&mut buf).unwrap(); if bytes_read == 0 { ...
Rust
/***************************************************************************** * ugBASIC - an isomorphic BASIC language compiler for retrocomputers * ***************************************************************************** * Copyright 2021-2025 Marco Spedaletti (asimov@mclink.it) * * Licensed under the...
C
00 }) end, desc = 'Neoscroll <C-y>', }, { '<C-e>', function() require('neoscroll').scroll(0.1, { move_cursor = false, duration = 100 }) end, desc = 'Neoscroll <C-e>', }, { 'zt', function() require('neoscroll').zt({ half_win_duration = 100 }) end, desc = 'Neoscroll zt' }, { '...
Lua
t_probs = self.activation_fct(logits).type(torch.float) probs = out_probs.repeat(1, 2, 1, 1) probs[:, 0, :, :] = 1 - probs[:, 1, :, :] losses = [] for name, func, w in zip(self.loss_names['probs'], self.loss_fct['probs'], self.loss_weights['probs']): _loss, kwargs = func(prob...
Python
ue])});if(ue instanceof tr.model.um.IdleExpectation){return;}else if(ue instanceof tr.model.um.StartupExpectation){return;}else if(ue instanceof tr.model.um.LoadExpectation){}else if(ue instanceof tr.model.um.ResponseExpectation){responseNumeric.addSample(ue.duration,sampleDiagnosticMap);}else if(ue instanceof tr.model...
HTML
ToRelative(113f, -47f) quadToRelative(66f, 0f, 113f, 47f) reflectiveQuadToRelative(47f, 113f) quadToRelative(0f, 66f, -47f, 113f) reflectiveQuadToRelative(-113f, 47f) close() moveTo(480f, 560f) quadToRelative(33f, 0f, 56.5f, -23.5f) reflectiveQuadTo(560f, ...
Kotlin
TX | (static_cast<uint8_t>(codePoint >> 6) & MASKX))); buffer->push_back( static_cast<char>(TX | (static_cast<uint8_t>(codePoint) & MASKX))); } else { buffer->push_back( static_cast<char>(T4 | static_cast<uint8_t>(codePoint >> 18))); buffer->push_back(static_cast<char...
C++
mm0,%xmm1,%xmm3,%xmm5,[\c+192],[\c+208] STEP %xmm6,%xmm4,%xmm2,%xmm7,%xmm0,%xmm1,%xmm3,%xmm5,[\c+224],[\c+240] // (xmm6,xmm4,xmm2,xmm7,xmm0,xmm1,xmm3,%esp+16) movaps [%esp], %xmm3 MIXTON384 %xmm6,%xmm4,%xmm2,%xmm7,%xmm0,%xmm1,%xmm3,%xmm5 // (xmm6,xmm0,xmm4,xmm1,%esp+32,xmm2,%esp+48,xmm5) mo...
Assembly
| defined(LT) movapd %xmm5, 0 * SIZE(B) movsd %xmm5, 0 * SIZE(BB) movsd %xmm5, 1 * SIZE(BB) movhpd %xmm5, 2 * SIZE(BB) movhpd %xmm5, 3 * SIZE(BB) #else movapd %xmm5, 0 * SIZE(AA) #endif #ifndef LN addl $2 * SIZE, CO1 #endif #if defined(LT) || defined(RN) movl K, %eax subl KK, %eax sall $ZBASE...
Assembly
ance_PolicyForwarding_Policy_Rule { r := oc.NetworkInstance_PolicyForwarding_Policy_Rule{} r.SequenceId = ygot.Uint32(index) r.Action = &oc.NetworkInstance_PolicyForwarding_Policy_Rule_Action{NetworkInstance: ygot.String(networkInstance)} if args.iptype == "ipv4" { r.Ipv4 = &oc.NetworkInstance_PolicyForwarding_Po...
Go
6%, доходность=13.6%, дюрация=16.53 мес.</li><li>Строка 1527 из 2229: НТЦ ЕВРОВЕНТ БО-П01 (RU000A104BX6): цена=100%, доходность=14.21%, дюрация=1.06 мес.</li><li>Строка 1528 из 2229: Бизнес-Недвижимость 001Р-02 (RU000A104BY4): цена=null%, доходность=0%, дюрация=0 мес.</li><li>Строка 1529 из 2229: Банк ВТБ (ПАО) Б-1-286...
HTML
or. localExpr is the // simplified tree expression (AffineExpr) corresponding to the quantifier. virtual void addLocalFloorDivId(ArrayRef<int64_t> dividend, int64_t divisor, AffineExpr localExpr); /// Add a local identifier (needed to flatten a mod, floordiv, ceildiv, mul /// ...
C
�條件為止,可以使用 `while`,但要注意避免無限迴圈狀況: ``` #!/bin/bash counter=0 while [ $counter -le 5 ]; do counter='expr $counter+1' echo $counter done ``` ## until 直到某個條件結束可以使用 `until` 來進行: ``` #!/bin/bash # 從 0 印出數字直到 10 counter=0 until [ $counter -gt 10 ]; do echo $counter counter=`expr $counter + 1` done ``` # 函式 ...
Markdown
} IPAddress ip = getIp(ipStr); if (getPlugin().getIpBanStorage().isBanned(ip)) { continue; } IpBanData ban = new IpBanData(ip, actor, reason, false, expires, created); try { getPlugin().getIpBanStorage().create(ban); } catch (SQLException e...
Java
5: ( ACCESS_SPEC )* { // smaliParser.g:479:5: ( ACCESS_SPEC )* loop2: while (true) { int alt2=2; int LA2_0 = input.LA(1); if ( (LA2_0==ACCESS_SPEC) ) { int LA2_2 = input.LA(2); if ( (LA2_2==ACCESS_SPEC||LA2_2==ANNOTATION_VISIBILITY||LA2_2==BOOL_LITERAL||LA2_2==CLASS_DESCRIPTOR||LA2_2==...
Java
write_indicator(emitter, []byte{'?'}, true, false, false) { return false } emitter.states = append(emitter.states, yaml_EMIT_FLOW_MAPPING_VALUE_STATE) return yaml_emitter_emit_node(emitter, event, false, false, true, false) } // Expect a flow value node. func yaml_emitter_emit_flow_mapping_value(emitter *yaml_emi...
Go
on a specific day of a week in month`() { val r1 = Recurrence(Period.MONTHLY) { setDayOfWeekInMonth(Recurrence.FRIDAY, 4) } testRRule(r1, "RRULE:FREQ=MONTHLY;BYDAY=4FR") val r2 = Recurrence(Period.MONTHLY) { setDayOfWeekInMonth(Recurrence.MONDAY, -1) } ...
Kotlin
(1.0f, 1.01) .addRow(1.01f, 1.0) .build(); final RowSet actual = new RowSetBuilder(allocator, schema) .addRow(1.009f, .9996) .addRow(1.0f, 1.004) .addRow(1.008f, 1.0) .addRow(.9994f, 1.004) .build(); try { new RowSetComparison(expected).unorderedVerify(actual); ...
Java
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright 2008 Michael Ellerman, IBM Corporation. */ #include <asm/feature-fixups.h> #include <asm/ppc_asm.h> #include <asm/synch.h> #include <asm/asm-compat.h> #include <asm/ppc-opcode.h> .text #define globl(x) \ .globl x; \ x: globl(ftr_fixup_test1) or 1,...
Assembly
local _, GW = ... local GW_UF = GW.oUF local headers = {} GW.GridGroupHeaders = headers local profiles = { PARTY = { name = "Party", visibility = "[@raid1,exists][@party1,noexists] hide;show", numGroups = 1 }, RAID_PET = { name = "RaidPet", visibility = "[@raid1,exi...
Lua
/* 32 bits */ #define PCI_CPU_COUNTER_LIMIT 0xb4 /* 32 bits */ #define PCI_SYS_LIMIT 0xb8 /* 32 bits */ #define PCI_SYS_COUNTER 0xbc /* 32 bits */ #define PCI_SYS_COUNTER_OVERFLOW (1<<31) /* Limit reached */ #define PCI_SYS_LIMIT_PSEUDO 0xc0 ...
C
!= null) return; if (testAppPath != null) { _appPath = testAppPath; return; } if (PlatformU.isWeb) { _persistentPath = _appPath = 'web'; LoggerUtils.initiateLoggerPath(''); return; } if (PlatformU.isAndroid) { // enhancement: startup check, if SD card not exists...
Dart
-bar-spacer { border-left: 0 none; margin-left: .5em; margin-right: .5em; } .tool-bar.tool-bar-vertical .tool-bar-spacer { border-bottom: 0 none; margin-top: .5em; margin-bottom: .5em; } .tool-bar button.tool-bar-btn { background-color: #23272f; background-image: none; border-color: #23272f; } .previe...
CSS
len()); data.push("DEL".into()); data.extend(self.keys.into_iter().map(Into::into)); RespValue::Array(data) } fn deserialize(resp: RespValue) -> Result<Self::Output, DeserializeError> { match resp { Integer(num) => Ok(num), resp => Err(DeserializeError::...
Rust
-.469v-4.688a.471.471 0 00-.469-.469h-.938a.471.471 0 00-.469.469v4.688c0 .257.211.469.469.469m3.75 7.5h.938a.471.471 0 00.469-.469v-4.688a.471.471 0 00-.469-.469h-.938a.471.471 0 00-.469.469v4.688c0 .257.211.469.469.469m0-7.5h.938a.471.471 0 00.469-.469v-4.688a.471.471 0 00-.469-.469h-.938a.471.471 0 00-.469.469v4.688...
Dart
dmins on every HTTP 500 error. # See http://docs.djangoproject.com/en/dev/topics/logging for # more details on how to customize your logging configuration. LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'handlers': { 'mail_admins': { 'level': 'ERROR', 'class': '...
Python
ubMatrix(ATL, 0, 0, A.Rows()-mb, A.Cols()-nb) if ATR != nil { A.SubMatrix(ATR, 0, A.Cols()-nb, A.Rows()-mb, nb) } if ABL != nil { A.SubMatrix(ABL, A.Rows()-mb, 0, mb, nb) } A.SubMatrix(ABR, A.Rows()-mb, A.Cols()-nb) } } /* Repartition 2 by 2 blocks to 3 by 3 blocks. A00 | A01 :...
Go
div class="col-md-12"><div class="row"> <div class="col-md-12 content-text"><h1>devopsdays Hartford - sponsor</h1> <p>We greatly value sponsors for this open event. If you are interested in sponsoring, please drop us an email at [<a href='mailto:organizers-hartford-2017@devopsdays.org?subject='>organ...
HTML
return "tlcp: alert(" + strconv.Itoa(int(e)) + ")" } func (e alert) Error() string { return e.String() } // CN 报警消息中文意义 func (e alert) CN() string { s, ok := alertTextCN[e] if ok { return s } return "TLCP: 报警(" + strconv.Itoa(int(e)) + ")" } // AlertCN 错误码意义 func AlertCN(code uint8) string { s, ok := alertTe...
Go
rue or false %}Passed{% else %}Failed{% endif %}`) assertCompileOutput(t, "Passed", `{% if false or false %}Fail{% else %}Passed{% endif %}`) assertCompileOutput(t, "Passed", `{% if false or false or true or false %}Passed{% else %}Failed{% endif %}`) // Shortcut test - the func isn't defined and so will ...
Go
MEDBASH5"><B>Unarmed Bashing V (UNARMEDBASH5)</B></a> <pre> <BR>Expertise: Unarmed Bashing V <BR>Requires : The following expertise: Unarmed Bashing IV. The following skill:<BR>Hand to hand combat. Only highest class levels greater than or equal to 52. A<BR>base strength of at least 20. <BR>The ability to do m...
HTML
, err: %v", err) } return rv, nil } // Copyright 2022-Present Couchbase, Inc. // // Use of this software is governed by the Business Source License included // in the file licenses/BSL-Couchbase.txt. As of the Change Date specified // in that file, in accordance with the Business Source License, use of this // ...
Go
IAEoCzIjLmJpbGliaWxpLnBhZ2luYXRpb24uRmVlZFBhZ2luYXRp' 'b25SCnBhZ2luYXRpb24SHQoKc2Vzc2lvbl9pZBgHIAEoCVIJc2Vzc2lvbklkEi8KFG1haW5fbG' 'lzdF9zZXNzaW9uX2lkGAggASgJUhFtYWluTGlzdFNlc3Npb25JZA=='); @$core.Deprecated('Use pictureListRespDescriptor instead') const PictureListResp$json = { '1': 'PictureListResp', '2'...
Dart
/* * MIT License * * Copyright (C) 2024, DragonDreams GmbH (info@dragondreams.ch) * * 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 th...
C
lear() } override fun onDisabled() { reported.clear() super.onDisabled() } } /* * This file is part of LiquidBounce (https://github.com/CCBlueX/LiquidBounce) * * Copyright (c) 2015 - 2025 CCBlueX * * LiquidBounce is free software: you can redistribute it and/or modify * it under the ...
Kotlin
nabled || HypixelData.skyBlockArea != "Carnival") return val message = event.message.removeColor() if (startPattern.matches(message)) { started = true } else if (endPattern.matches(message)) { started = false } } @HandleEvent fun onTick(event: SkyHa...
Kotlin
from .ethiopia import load_ethiopia from .sudan import load_sudan from .togo import load_togo, load_togo_eval from .brazil import load_lem_brazil, load_brazil_noncrop from .geowiki_landcover_2017 import load_geowiki_landcover_2017 from .central_asia import load_central_asia from .rwanda import load_rwanda_ceo from .ken...
Python
dex bne loop1 ; Clear the 64 entries of the attribute table ldx #64 loop2: sty PPUDATA dex bne loop2 rts .endproc ;; ; Moves all sprites starting at address X (e.g, $04, $08, ..., $FC) ; below the visible area. ; X is 0 at the end. .proc ppu_clear_oam ; First round the address down to a multiple of...
Assembly
55] = "Interface\\Icons\\INV_Boots_Plate_10", [1456] = "Interface\\Icons\\INV_Boots_Plate_11", [1457] = "Interface\\Icons\\INV_Boots_Wolf", [1458] = "Interface\\Icons\\INV_Bow_1H_Auchindoun_D_01", [1459] = "Interface\\Icons\\INV_Box_01", [1460] = "Interface\\Icons\\INV_Box_02", [1461] = "Interface\\Icons\\INV_Box_03", ...
Lua
'n_neighbors': total_k_neighbors,\\n 'method': 'custom_batch_aware_corrected_pca', # Update method name to reflect improvement\\n 'metric': 'euclidean',\\n 'n_pcs': actual_n_pca_components,\\n 'n_neighbors_per_batch': k_batch_neighbors,\\n 'pca_batch_correction': 'mean_s...
HTML
4 80086F2C 55000224 */ addiu $v0, $zero, 0x55 /* 3D854F8 80086F30 05006214 */ bne $v1, $v0, .Llevel_43_80086F48 /* 3D854FC 80086F34 56000224 */ addiu $v0, $zero, 0x56 /* 3D85500 80086F38 03000224 */ addiu $v0, $zero, 0x3 /* 3D85504 80086F3C 4F0062A2 */ sb $v0, 0x4F($s3) /* 3D85508 800...
Assembly
ackground { background-color: rgba(0, 0, 0, 0.3); bottom: 0; left: 0; right: 0; top: 0; position: fixed; } .ReactModalPortal .ReactModal__Overlay--after-open { opacity: 1; } .ReactModalPortal .ReactModal__Overlay--before-close { opacity: 0; } .modal { background: white; border-radius: 5px; colo...
CSS
A AIS_TYPE = common.AIS_TYPE_TANKER_HAZARDOUS_A AIS_TYPE_TANKER_HAZARDOUS_B AIS_TYPE = common.AIS_TYPE_TANKER_HAZARDOUS_B AIS_TYPE_TANKER_HAZARDOUS_C AIS_TYPE = common.AIS_TYPE_TANKER_HAZARDOUS_C AIS_TYPE_TANKER_HAZARDOUS_D AIS_TYPE = common.AIS_TYPE_TANKER_HAZARDOUS_D AIS_TYPE_TANKER_RESERVED_1 AIS...
Go
red }, DiffText = { bg = light_yellow }, diffAdded = { link = 'DiffAdd' }, diffChanged = { link = 'DiffChange' }, diffFile = { fg = black, bold = true }, diffLine = { fg = blue }, diffRemoved = { link = 'DiffDelete' }, -- Dot/Graphviz dotKeyChar = { link = 'Operator' }, -- diffview.nvim DiffviewCurs...
Lua
、Deletion/Inversion であれば欠失・逆位の開始点および終了点、Translocation であればその転座によって連結する 2 箇所の染色体の座標を 2 座標のペアとして扱い、この Overall View のレイヤーでナビゲーションする対象としています。</p> <section id="1-circos-plot" class="level4"> <h4>1. Circos Plot</h4> <p>Circos Plot では、染色体上の 2 座標間の対応関係を円状に配置された染色体の間の線で表現します。染色体をクリックすると、その染色体内の inter-chromosomal な対応関係が Chromoso...
HTML
使用代码覆盖率来找出这个缺陷。代码覆盖率指示我们已经在一个测试用例之后完成了此操作,但 CC 却会强迫我们编写额外的测试用例。不算太坏,是吧? 幸运的是,这里的测试中的方法有一个值为 2 的 CC。设想一下该缺陷被隐藏在 CC 为 102 的方法中的情况。祝您好运找到它! ## 图表上的 CC Java 开发人员可使用一些开放源码工具来报告圈复杂度。其中一个这样的工具是 JavaNCSS,它通过检查 Java 源文件来确定方法和类的长度。此外,此工具还收集代码库中每个方法的圈复杂度。通过利用 Ant 任务或 Maven 插件配置 JavaNCSS,可以生成一个列出以下内容的 XML 报告: - 每个包中的类、方法、非注释代...
Markdown
ion.version("7.0")) { throw GradleException( "Must be using Gradle Version 7.0 in order to use DoctorPlugin. Current Gradle Version is ${GradleVersion.current()}", ) } } private fun createDaemonChecker( operatingSystem: OperatingSystem, cliCommand...
Kotlin
VX2, VM0, 2 xvrepl128vei.w VX3, VM0, 3 XVFMAX VM1, VX0, VX1 XVFMAX VM2, VX2, VX3 XVFMAX VM0, VM1, VM2 #endif xvpermi.q VM1, VM0, 1 XVFMAX VM0, VM0, VM1 .align 3 .L23: //INCX!=1 and N<8 andi I, N, 7 bge $r0, I, .L999 .align 3 .L24: /* 0 < N < 8 */ LD $f1, X, 0...
Assembly
我们定义了执行训练周期的函数。 在开始训练过程之前,我们使用`.train()`将模型设置为训练模式,并将训练损失设置为`0`。 然后,我们遍历训练数据并将输入数据点及其对应的标签移到可用设备(CPU 或 GPU)上。 然后,我们清除梯度,进行模型预测,然后将其传递给准则以确定训练损失。 然后,我们对损失进行了反向传播,并更新了模型的权重。 由于模型是冻结的,因此它仅更新模型中分类器的权重。 最后,我们使用 TensorBoard 中`SummaryWriter`对象中的`SummaryWriter`对象中的`add_scalar()`方法在 TensorBoard 中记录了训练指标-我们在其中传递了一个标签,一个标量值和一个计...
Markdown
="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName"><h3>initialized</h3></td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td></tr></table><div class="detailBody"><code> public function initialized(document:<a href="../../../../Object.html">Object</a>, id:<a hre...
HTML
LFBB129 .LM1409: subl $4, %esp /, pushl $0 / pushl 12(%ebp) / i pushl 8(%ebp) / device call set_clear_imap_bit / addl $16, %esp /, leave ret .size clear_imap_bit, .-clear_imap_bit .Lscope129: .stabs "",36,0,0,.Lscope129-.LFBB129 .stabd 78,0,0 .stabs "set_zmap_bit:F(0,15)",36,0,16754,set_zmap_bit .stabs "de...
Assembly
, mut auth: auth::Auth, auth_rules: State<auth::CustomAuth>, mut cookies: Cookies ) -> Result<Json<serde_json::Value>, HecateError> { let conn = conn.get()?; auth_rules.allows_user_create_session(&mut auth, &*conn)?; let uid = auth.uid.unwrap(); let token = user::create_token(&*conn, &uid...
Rust