content
stringlengths
2
6.21k
label
stringclasses
16 values
lData { CONFIG cfg; uint8_t Opened; Display *Disp; PADSTATE PadState[2]; volatile long KeyLeftOver; } GLOBALDATA; extern GLOBALDATA g; enum { CMD_READ_DATA_AND_VIBRATE = 0x42, CMD_CONFIG_MODE = 0x43, CMD_SET_MODE_AND_LOCK = 0x44, CMD_QUERY_MODEL_AND_MODE = 0x45, CMD_QUERY_ACT = 0x46, // ?? C...
C
P.toNearest, toStringBinary, naturalExponential, naturalLogarithm, * taylorSeries, atan2, parseOther * finalise P.absoluteValue, P.atan, P.atanh, P.ceil, P.cos, P.cosh, * P.cubeRoot, P.dividedToIntegerBy, P.floor, P.logarithm, P.minus, ...
JavaScript
from typing import List from crud.manager import ( create_task_manager, delete_task_manager, get_task_manager, list_task_managers, restore_task_manager, update_task_manager, ) from db.session import get_pg_db from fastapi import APIRouter, Depends from schemas.manager import TaskManagerCreate, ...
Python
set { Data._unknown0x1C8 = value; SignalPropertyChange(); } } [Category("Unknown")] public int Unknown0x1CC { get => Data._unknown0x1CC; set { Data._unknown0x1CC = value; ...
C#
ce Platform是德国思爱普(SAP)公司的一套商业智能软件和企业绩效解决方案套件。SAP S4 HANA是德国思爱普(SAP)公司的一个用于提高数据库效率的软件。SAP NetWeaver Server ABAP是德国SAP公司的一个应用服务器。SAP BusinessObjects Business Intelligence Platform是德国思爱普(SAP)公司的一款完备的商务分析平台。SAP Just In Time是德国思爱普(SAP)公司的一个应用程序,旨在实现整个供应链中高效的需求驱动生产和物流。SAP NetWeaver AS是德国思爱普(SAP)公司的一款SAP网络应用服务器‌‌。本周,上述产品被披露存在...
Markdown
lsl #1 strh r0, [sl, #2] b _022E9C98 _022E9C8C: strh r2, [sl] ldrsh r0, [r8, #0x5c] strh r0, [sl, #2] _022E9C98: add sp, sp, #0x18 ldmia sp!, {r3, r4, r5, r6, r7, r8, sb, sl, fp, pc} .align 2, 0 _022E9CA0: .word DIRECTIONS_XY _022E9CA4: .word DIRECTIONS_XY + 2 _022E9CA8: .word DUNGEON_PTR _022E9CAC: .word ov29_...
Assembly
ait simpleIf(true, 10, 20)).toBe(10); cb(); }); it("does not take the if branch if the condition is false", async (cb) => { expect(await simpleIf(false, 10, 20)).toBe(20); cb(); }); it("takes the else if branch if the if condition is false but the else if condition is true", as...
Typescript
`"\""`}, {"%q", "\a\b\f\r\n\t\v", `"\a\b\f\r\n\t\v"`}, {"%q", "abc\xffdef", `"abc\xffdef"`}, {"%q", "\u263a", `"☺"`}, {"%+q", "\u263a", `"\u263a"`}, {"%q", "\U0010ffff", `"\U0010ffff"`}, // escaped characters {"%q", 'x', `'x'`}, {"%q", 0, `'\x00'`}, {"%q", '\n', `'\n'`}, {"%q", '\u0e00', `'\u0e00'`}, ...
Go
- musl produces more compact executables - Faster downloads and less disk space 3. **Better Security** 🔒 - Fully static binaries reduce attack surface - No dynamic library hijacking risks - Self-contained security tool 4. **Easier Distribution** 🎁 - Ship one binary that "just works" - No need ...
Markdown
68D40 7C 64 1B 78 */ mr r4, r3 /* 8006D0E4 00068D44 38 60 00 15 */ li r3, 0x15 /* 8006D0E8 00068D48 48 0E F2 21 */ bl func_8015C308 /* 8006D0EC 00068D4C 7F C4 F3 78 */ mr r4, r30 /* 8006D0F0 00068D50 7F E5 FB 78 */ mr r5, r31 /* 8006D0F4 00068D54 7F A8 EB 78 */ mr r8, r29 /* 8006D0F8 00068D58 7F 66 07 34 */ exts...
Assembly
ll="currentColor"/><circle cx="19" cy="18" r="1" fill="currentColor"/></svg>'; static const String cluster_role = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24" height="24" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path fill="currentColor" d="M19 4h...
Dart
ari.HikariConfig import com.zaxxer.hikari.HikariDataSource import java.io.File import java.io.FileOutputStream import java.io.IOException import java.net.URL import java.net.URLClassLoader import java.sql.SQLException import kotlin.reflect.KClass private const val KEY_FILE = "{file}" public sealed class DatabaseType(...
Kotlin
M-DD HH:mm:ss");` (js: day.js) `xxx.strftime("%Y-%m-%d %H:%M:%S")` (python: datetime) go:`xxx.Format("2006-01-02 15:04:05")` (万恶之源)Rob Pike 说: > The choice was made by the output of the date command on my Unix machine. I should have realized the format varies with locale. Mea culpa. **But I can still claim it's easy...
Markdown
http.Header } // MarkClaimed: Marks the Recommendation State as Claimed. Users can use this // method to indicate to the Recommender API that they are starting to apply // the recommendation themselves. This stops the recommendation content from // being updated. Associ...
Go
/internal/weather_forecast_holder.dart'; import 'package:feather/src/data/model/remote/city.dart'; import 'package:feather/src/data/model/remote/main_weather_data.dart'; import 'package:feather/src/data/model/remote/overall_weather_data.dart'; import 'package:feather/src/data/model/remote/rain.dart'; import 'package:fe...
Dart
iptor instead') const ApplicationData_GetLocation$json = { '1': 'GetLocation', }; @$core.Deprecated('Use applicationDataDescriptor instead') const ApplicationData_GetVouchers$json = { '1': 'GetVouchers', }; @$core.Deprecated('Use applicationDataDescriptor instead') const ApplicationData_GetAvailablePlans$json = {...
Dart
movss nb214nf_qqHH(%esp),%xmm3 movhps nb214nf_qqMH(%esp),%xmm3 shufps $193,%xmm3,%xmm3 ## constant 11000001 mulps nb214nf_rsqH1H1(%esp),%xmm6 ## xmm6=krsq addps %xmm7,%xmm6 ## xmm6=rinv+ krsq subps nb214nf_crf(%esp),%xmm6 mulps %xmm3,%xmm6 ## xmm6=vou...
Assembly
rbxassetid://13350796199", ["vape/assets/VapeIcon.png"] = "rbxassetid://13350808582", ["vape/assets/RenderIcon.png"] = "rbxassetid://13350832775", ["vape/assets/VapeLogo1.png"] = "rbxassetid://18391256757", ["vape/assets/VapeLogo3.png"] = "rbxassetid://18391160743", ["vape/assets/VapeLogo2.png"] = "rbxassetid://13...
Lua
var showClose by mutableStateOf(playerData.showClose) var showCaptionList by mutableStateOf(false) var recentList = readRecentList() /** 播放列表状态 */ var playlist = mutableStateListOf<PlaylistItem>() var currentPlayingIndex by mutableStateOf(-1) /** 字幕列表/播放列表 Tab 的选中索引 */ var listSele...
Kotlin
_page.dart'; import 'package:flutter_nb/ui/page/video_player_page.dart'; import 'package:flutter_nb/ui/widget/chat_item_widgets.dart'; import 'package:flutter_nb/ui/widget/loading_widget.dart'; import 'package:flutter_nb/ui/widget/more_widgets.dart'; import 'package:flutter_nb/ui/widget/popupwindow_widget.dart'; import...
Dart
带虎鬼大杀持世伤世者,病也。 若临应上动来克世,或世动去生合应爻凶杀者,必舟中传染之病。 兄弟动克,同伴相欺。 福德动合,酒食丰美。 官鬼动,舟人咭唂。 水官克世,防风浪。 火官克世,防火灾。 土官克世,防湊浅。 金官克世,防石撞。 逢木世官,防舟撞。 坎宫木虎动,与巽宫木兄动,防舟覆。 卦阳包阴者安,阴包阳者危。 艮内外卦克者危。 白浪煞动者虚惊。 风波煞动者风浪。 覆舟煞动者覆船。 浴盆浮沉杀动者失水。 折伤煞动者跌扑也。 六 财利 子孙乃生财之神,若持世生合世者,得利。 旺财持世,主合世者,利多财旺,动装载多。 财临空死墓绝,或化空死墓绝,或被刑害克破,俱主失财。 财伏兄鬼下,或化兄...
Markdown
ew Tensor( "float16", new Uint16Array([int64ToFloat16(pos_factor_v + ids_len.data[0])]), [1] ) } else { pos_factor = new Tensor( "float16", new Uint16Array([int64ToFloat16(history_len.data[0] + BigInt(1))]), [1] ) } l...
JavaScript
= (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) ? "max(" + MediaStore.Images.Media.WIDTH + "," + MediaStore.Images.Media.HEIGHT +")" : "1024"; public static final String SQL_COL_EXT_MEDIA_TYPE = MediaStore.Fi...
Java
''' # Failed to push changes ## Error ${push.stderr} ## Output ${push.stdout} '''); createFailedRelease(packages, push); return; } } Future<void> commitChanges(List<Package> packages) async { final failedCommitFile = File(p.join(root, 'FAILED_COMMIT.md')); if (failedCommitFile.existsSync()) { fai...
Dart
ma_v14.dart' as v14; import 'schema_v15.dart' as v15; import 'schema_v16.dart' as v16; import 'schema_v17.dart' as v17; import 'schema_v18.dart' as v18; import 'schema_v19.dart' as v19; import 'schema_v20.dart' as v20; import 'schema_v21.dart' as v21; import 'schema_v22.dart' as v22; import 'schema_v23.dart' as v23; im...
Dart
alse, //isComposite 'dozen', //units 18 //quantityInStock ); items.push(solidShampoo, bodySoap, bodySoap2, handSoap, alcoholGelInti, eggs); //export default items;import { throws } from 'assert'; import { AngularFirestore, AngularFirestoreCollection } from '@angular/fire/firestore'; import { Observable, forkJoi...
Typescript
(pCtx->iErrorCode & dsRefLost)) { //set event if refpic is lost to prevent from infinite waiting. if (!pRefPic->pReadyEvent[0].isSignaled) { for (uint32_t ln = 0; ln < pCtx->sMb.iMbHeight; ++ln) { SET_EVENT (&pRefPic->pReadyEvent[ln]); } } } int32_t offset = (iFullMV...
C++
using System; using System.Reflection; using Avatars; using Xunit; namespace Samples { /// <summary> /// Showcases how an arbitrary method can be annotated as a "avatar generator" that /// will seamlessly extended default behaviors for new avatars. /// </summary> public class CustomGenerator ...
C#
return intIP2StringIP(context.getWifiManager().connectionInfo.ipAddress) } else if (isEtherNet(context)) return getHostIp() else return null } // endregion // region All network /** * Determine whether there is a WIFI connection within the specified time * limit...
Kotlin
'0' + e, ':'); SERIAL_DECIMAL(planner.extruder_advance_K[e]); } SERIAL_EOL(); #endif #endif } } void GcodeSuite::M900_report(const bool forReplay/*=true*/) { report_heading(forReplay, F(STR_LINEAR_ADVANCE)); #if DISTINCT_E < 2 report_echo_start(forReplay); SERIAL_EC...
C++
pLayer->Init(); m_pImGuiStaticLayers.emplace_back(std::move(pLayer)); } void ImGuiContextInstance::AddDynamicLayer(std::unique_ptr<ImGuiBaseLayer> pLayer) { pLayer->Init(); m_pImGuiDockableLayers.emplace_back(std::move(pLayer)); } void ImGuiContextInstance::ClearUILayers() { m_pImGuiStaticLayers.clear(); m_pIm...
C++
.armor_trenchmaster, "Chest"); this.leftArm = new ModelRendererObj(ResourceManager.armor_trenchmaster, "LeftArm").setRotationPoint(5.0F, 2.0F, 0.0F); this.rightArm = new ModelRendererObj(ResourceManager.armor_trenchmaster, "RightArm").setRotationPoint(-5.0F, 2.0F, 0.0F); this.leftLeg = new ModelRendererObj(Resour...
Java
# -*-coding:utf-8-*- # Implement regular expression matching with support for '.' and '*'. # '.' Matches any single character. # '*' Matches zero or more of the preceding element. # The matching should cover the entire input string (not partial). # The function prototype should be: # bool isMatch(const char *s, con...
Python
import pytest import numpy as np from athene.retrieval.sentences.deep_models.ESIM import ESIM as ESIMretrieval from athene.rte.deep_models.ESIM_for_ensemble_glove_only_no_attention import ESIM as ESIMrte from athene.rte.utils.text_processing import load_whole_glove from common.util.log_helper import LogHelper LogHelp...
Python
s; border-bottom: 1px solid $cEmbedTabs-Secondary; background: $cEmbedTabs-Primary; &.CDB-Embed-header--shadow { box-shadow: 0 2px 16px 0 $cEmbedTabs-Shadow; } h1 { max-width: 100%; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .CDB-Embed-descripti...
CSS
iles[idx]); draw_batch.set( pt - offset, ColorPair::new(colorpair.fg, colorpair.bg), glyph, ); } } } draw_batch.submit(0).expect("Batch error"); } // Mark this test as BPF-only due to curre...
Rust
/* * Copyright (c) 2011 Sveriges Television AB <info@casparcg.com> * * This file is part of CasparCG (www.casparcg.com). * * CasparCG is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of ...
C
- 计算机技术梗 "点击添加标题", "对编程有真·兴趣推荐Lua,安装无脑 语法简单 执行速度快 远离枯燥学校编程(雾", "绝大多数按钮上的图标是调用Unicode私用区里的自制字符实现的", "科技骨牌 你的创新式块堆栈业务技术管理器", "锟斤拷锟斤拷锟斤拷", "烫烫烫烫烫烫", "“Techmino.app”将对您的电脑造成伤害。您应该将它移到废纸篓。", "$include<studio.h>", "无法打开“Techmino.app”,因为无法验证开发者。", ...
Lua
rne r0, [sb] addne r0, r0, #0x400 strne r0, [sb] b _022E49FC _022E49F4: ldr r0, [r7] str r0, [sb] _022E49FC: ldr r0, [sb] tst r6, #4 add r0, r0, r4, lsl #3 str r0, [r8] bne _022E4A34 ldrh r0, [sl, #6] bl ScriptParamToFixedPoint16 mov r0, r0, lsl #3 str r0, [sb, #4] tst r6, #2 ldrne r0, [sb, #4] addne r...
Assembly
4VpBVqobAZU288n" + "QDzf1JkRKNny14UoqM2SiK2leihjcxnZcjmZmXN2gsp+4lBaiYr8fuq1iX+iYd+j" + "oQH7HdIsDFyzNctt91CXYkkxU47e/o7M3Ua6z+3H1gVeRCI2+8tHBX1kgI5RqWZF" + "qIff+GVIjogTz6Ym5wMu2IVffXg99MtJLX2Ti/Ug0/gpVntq8M9JG9yQs2CDlB2m" + "QO3GbYPq71ZHFfkLB0dd7dF22cWWoh14z1blCt2HCwHeN...
Java
-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the ...
Kotlin
ersion 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an...
Kotlin
弄成本地环境,也找不到相关环境。所以就直接用原文的内容。** **原文地址:[https://swarm.ptsecurity.com/jetty-features-for-hacking-web-apps/](https://swarm.ptsecurity.com/jetty-features-for-hacking-web-apps/)** ##### 0x01 绕过 waf 拦截目录 **了解了`Jetty`服务器如何解析`URL`地址,我们可以绕过代理服务器上的过滤器。想象一下,`Jetty`服务器部署在`NGINX`代理后面,其规则阻止对 `/adminURL/*`的请求。** ``` location ~ /a...
Markdown
navbar-form, .navbar-search { float: none; padding: 9px 15px; margin: 9px 0; border-top: 1px solid #222222; border-bottom: 1px solid #222222; -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1...
CSS
"target": "4ebb110e-0598-4e62-b205-d619a1a7aa7b", "type": "influences", "strength": 0.6703447187584683 }, { "_id": "74d332dd-9ded-4273-be7f-7b9b8c22269f", "source": "972907ed-4c0f-4ac0-adb5-8e365df23d35", "target": "4867ed2a-7c83-4655-9bd5-8a54654bfa25", "type": "influences", "streng...
JavaScript
content" id="Stage_5-29" data-pos="&#91;&quot;Stage 5&quot;,29&#93;"><td id="污忍" class="tt-char" lang="zh"><div class="poem">污忍</div></td><td class="tt-ja" lang="ja"><div class="poem">さっきからお前は何してるんだ?<br>俺が知らない人名までどっかの誰かに聞いたりして</div></td><td class="tt-zh" lang="zh"><div class="poem">从刚才起你就在干啥呀?<br>好像在向谁问些我不知道的人名</div></...
Markdown
Backoff { if base <= 0 { base = 500 * time.Millisecond } if max <= 0 { max = 60 * time.Second } return Backoff{base: base, max: max, factor: 2.0, jitter: true} } // Next returns the duration to wait for the current attempt and increments the // internal attempt counter. func (b *Ba...
Go
ords) jitter_min = -jitter_max jitter_hw = ( torch.empty(2, **dd).uniform_(jitter_min, jitter_max).exp() ) coords *= jitter_hw[None, :] # Rescale coords by multiplying the range [-1, 1] by a log-uniform value in [1/rescale, rescale] if sel...
Python
DECODE DS 1 GEN DS.B 485000 ADR_TAB DS.B 1000*25 DX DS 50 DY DS 50 VAR_3D DS 9 CLR DS.L 17 DS.L 2000 PILE DS.L 10 DS.B 4 XBIOS2: DS.B 768*242 DS.B 4 XBIOS3: DS.B 768*242 XMIN1 DS 300 XMAX1 DS 300 Y_TABLE DS.L 300 END
Assembly
setDividerColor(int dividerColor) { this.dividerColor = dividerColor; setDividerColor(); } /** * 设置分割线的类型 * * @param dividerType */ public void setDividerType(WheelView.DividerType dividerType) { this.dividerType = dividerType; setDividerType(); } ...
Java
前支持的硬件包括 **X86 CPU、NVIDIA GPU、ARM CPU、XPU、NPU、IPU**等10类云边端的硬件,通过一行代码切换不同推理后端和硬件。 使用 FastDeploy 3步即可搞定AI模型部署:(1)安装FastDeploy预编译包(2)调用FastDeploy的API实现部署代码 (3)推理部署。 **注** : 本文档下载 FastDeploy 示例来完成高性能部署体验;仅展示X86 CPU、NVIDIA GPU的推理,且默认已经准备好GPU环境(如 CUDA >= 11.2等),如需要部署其他硬件或者完整了解 FastDeploy 部署能力,请参考 [FastDeploy的GitHub仓库](http...
Markdown
;**************************************************************************************** ; Copyright (C) 2015 The 8-Bit Bunch. Licensed under the Apache License, Version 1.1 ; (the "License"); you may not use this file except in compliance with the License. ; You may obtain a copy of the License at <http://www.apache...
Assembly
Field">The subfield being hovered over</param> /// <param name="e">Forwarded from the OnMouseHover event</param> public virtual void OnSubFieldMouseHover(ShapeField field, ShapeSubField subField, DiagramPointEventArgs e) { } /// <summary> /// Translate OnSubFieldMouseMove events into OnSubFieldMouseEnter an...
C#
using Chats.BE.DB.Enums; using Chats.BE.Services.Models.Extensions; using OpenAI.Chat; namespace Chats.BE.DB; public partial class ChatSpan { public ChatCompletionOptions ToChatCompletionOptions(int userId, ChatSpan span, UserModel userModel) { ChatCompletionOptions cco = new() { ...
C#
dns/glesys", "godaddy": "github.com/libdns/godaddy", "googleclouddns": "github.com/libdns/googleclouddns", "he": "github.com/libdns/he", "hetzner": "github.com/libdns/hetzner", "hexonet": "github.com/libdns/hexonet", "hosttech": "github.com/libdns/hos...
Go
name: String, override val previewColor: Color, val patternType: AbstractPatternType ) : BackgroundOption() data class Live( override val name: String, override val previewColor: Color, val animationType: LiveAnimationType ) : BackgroundOption() data class Shade...
Kotlin
-- Abstract: Flashlight -- Version: 2.0 -- Sample code is MIT licensed; see https://solar2d.com/LICENSE.txt --------------------------------------------------------------------------------------- display.setStatusBar( display.HiddenStatusBar ) ------------------------------ -- RENDER THE SAMPLE CODE UI --------------...
Lua
--------------------------------------------------------------------------- -- SoarETX F3K switch setup, loadable component -- -- -- -- Author: Jesper Frickmann -- -- Improvements:...
Lua
owGetSchuko2|0 | 2000 | W | 1 | Power Outlet 2 | |busbarPowLimit|0 | 2300 | W | 1 | Busbar Power Limit | |maxInvInput|0 | 2000 | W | 1 | max Inv Input | |maxInvOutput|0 | 2000 | W | 1 | max Inv Output | |maxBpInput|0 | 2000 | W | 1 | max Bp Input | |maxBpOutput|0 | 2000 | W | 1 | max Bp Output | |feedGridModePowL...
Markdown
ame']}" return get_direct_image_url(search_term) def fetch_wikipedia_image_url(row): search_term = f"{row['full_name']} {row['name']}" return get_wikipedia_image_url(search_term) if __name__ == "__main__": # Example usage search_term = "bennecourt claude monet" image_url = get_wikipedia_image_...
Python
); } /// 根据参数生成 灰色调的按钮 /// 单个button 左右有圆角 /// 两个button 左button有左圆角&右直角 右button有右圆角&左直角 /// 多个button 最后一个左右圆角 其他均直角 Widget _generateGreyWidget(Widget widget, Color background, _ButtonType type, int index, BrnDialogConfig dialogConfig) { return Container( constraints: BoxConstraints.tigh...
Dart
device = deviceManager.get('device-id'); * deviceManager.remove(device); */ remove(device: string | Device, opts?: {}): any; /** * Return all devices * @returns {Array<[Device]>} * @example * const devices = deviceManager.getDevices(); * console.log(JSON.stringify(devices)); * // [{name: 'Desktop', w...
Typescript
TED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE...
CSS
library; see the file COPYING.LIB. If * not, write to the Free Software Foundation, 51 Franklin Street, Fifth Floor * Boston, MA 02110-1301 USA */ package jp.osscons.opensourcecobol.libcobj.common; import jp.osscons.opensourcecobol.libcobj.data.AbstractCobolField; import jp.osscons.opensourcecobol.libcobj.data.Cob...
Java
as an internet /// destination address. The absence of this field *must not* be used as an /// indication that the destination is part of the Google network. EdgeLocation? destinationEgressLocation; /// Router name in the format '{router}.{metroshard}'. /// /// For example: pf01.aaa01, pr02.aaa01. core.S...
Dart
Node loop) { _locals.startLoop(inferrer, loop); } void endLoop(InferrerEngine inferrer, ir.Node loop) { _locals.endLoop(inferrer, loop); } String toStructuredText(String indent) { StringBuffer sb = StringBuffer(); _toStructuredText(sb, indent); return sb.toString(); } void _toStructur...
Dart
count local snapshot_full_refresh_order_book_53_group_count = buffer(offset + index - 1, 1):le_uint() index = index + snapshot_full_refresh_order_book_53_group_count * 29 return index end -- Display: Snapshot Full Refresh Order Book 53 Groups cme_futures_mdp3_sbe_v1_9.snapshot_full_refresh_order_book_53_groups....
Lua
import gym import torch import numpy as np from dqn_agent import DQNAgent from collections import deque import matplotlib.pyplot as plt env = gym.make("CartPole-v1") state_size = env.observation_space.shape[0] action_size = env.action_space.n device = torch.device("cuda" if torch.cuda.is_available() else "cpu") agent...
Python
nd_options + chunk1_option + ' --sleep ' + str(sleep_time) + ' &' command_list.append(command) lat = lat + inps.lat_step sleep_time = sleep_time +inps.wait_time chunk1_option = '' commands_file = inps.work_dir + '/minsar_commands.txt' f = open(commands_file, "w") prin...
Python
struct,a0 moveq #num_baddies-1,d1 .prot_loop1 cmp.w #0,status(a0) beq.s .prot_skip1 cmp.w #30,spr_type(a0) bne.s .prot_skip1 move.w die_adjust_x(a0),d0 sub.w d0,x1(a0) move.w die_adjust_y(a0),d0 sub.w d0,y1(a0) move.l die_gfx(a0),spr_ptr1(a0) move.w #1,spr_type(a0) clr.w spr_num(a0) move.w #-1,spr_die_fl...
Assembly
())); } catch (NumberFormatException nfe) { this.addFieldError("numMonths",getText("resource.autodiscovery.ScheduleTab.error.numDays",new String [] {cForm.getNumMonths()})); validationFailed=true; } } LocalDate localDate = new LocalDate(cF...
Java
/// DialogNodeOutputOptionsElement. /// </summary> public class DialogNodeOutputOptionsElement { /// <summary> /// The user-facing label for the option. /// </summary> [JsonProperty("label", NullValueHandling = NullValueHandling.Ignore)] public string Label { get;...
C#
int PLAYER_SELECTED_WEAPON; int PLAYER_SELECTED_WEAPON_AMMO; int PLAYER_AMMO[VIZDOOM_GV_SLOTS_SIZE]; int PLAYER_WEAPON[VIZDOOM_GV_SLOTS_SIZE]; int PLAYERS_COUNT; char PLAYERS_NAME[VIZDOOM_MAX_PLAYERS][VIZDOOM_MAX_PLAYER_NAME_LEN]; int PLAYERS_FRAGCOUNT[VIZDOOM_MAX_PLAYERS]; }; #define VIZD...
C
ook", [105439] = "Sandalias chamuscadas por el sha", [105440] = "Togas del corazón enternecido", [105441] = "Hombreras de Dou Dou Chong", [105442] = "Brazales de amargura vital", [105443] = "Anillo de poleo petrificado", [105444] = "Jaula de grillos de corazón puro", [105445] = "Sobrehombros del averno turbado", [10544...
Lua
// REQUIRES: arm-target-arch || armv6m-target-arch // RUN: %clang_builtins %s %librt -o %t && %run %t #include "int_lib.h" #include <stdio.h> #if __arm__ // Based on udivmodsi4_test.c extern du_int __aeabi_uidivmod(su_int a, su_int b); int test__aeabi_uidivmod(su_int a, su_int b, su_int expected_result, su_in...
C
eye manuel olarak girilen veya eklenen 30&apos;a kadar olan sayısal değerlerdir. ORTANCA işlevini uygulamak i&ccedil;in Sonucu g&ouml;r&uuml;nt&uuml;lemek istediğiniz h&uuml;creyi se&ccedil;in, &Uuml;st ara&ccedil; &ccedil;ubuğunda bulunan İşlev ekle simgesine tıklayın veya se&ccedil;ilen bir h&uuml;crenin i&ccedil;ine...
JavaScript
ls/wasm-utils'; type Asset = { id: number; tokenSymbol: TokenSymbol; }; export type Events = 'generateNote' | 'setBulletProofGens' | 'preGenerateBulletproofGens'; export type WasmMessage = Record<Events, unknown>; export interface WasmWorkerMessageTX extends WasmMessage { setBulletProofGens: void; preGenerate...
Typescript
38 /* 80176810 00171D50 C0 01 00 34 */ lfs f0, 0x34(r1) /* 80176814 00171D54 EF E5 20 24 */ fdivs f31, f5, f4 /* 80176818 00171D58 D0 41 00 14 */ stfs f2, 0x14(r1) /* 8017681C 00171D5C D0 21 00 18 */ stfs f1, 0x18(r1) /* 80176820 00171D60 D0 01 00 1C */ stfs f0, 0x1c(r1) /* 80176824 00171D64 80 74 00 C4 */ lwz r3...
Assembly
children: <Widget>[ Align( alignment: Alignment.topLeft, child: Container( margin: EdgeInsets.only(left: 30, top: 16), child: Text( getSubTitle(), textAlign: TextAlign.le...
Dart
/* This file is part of OpenMalaria. * * Copyright (C) 2005-2025 Swiss Tropical and Public Health Institute * Copyright (C) 2005-2015 Liverpool School Of Tropical Medicine * Copyright (C) 2020-2025 University of Basel * Copyright (C) 2025 The Kids Research Institute Australia * * OpenMalaria is free software; y...
C
(key) => normalizeOpenApiPath(key) : (key: string, value) => String(key); const beforeValuesById: Map<string, [JSONValue, string]> = new Map( Object.entries(before.value).map(([k, v]) => [objectIdFn(k, v), [v, k]]) ); const afterValuesById: Map<string, [JSONValue, string]> = new Ma...
Typescript
nsigned i = 0; i < phaseLen; ++i) dkernel[ph * phaseLen + i] *= gain; absgain *= gain; if (absgain > maxabsgain) maxabsgain = absgain; } const SysDDec gain = (0x10000 - 0.5 * phaseLen) * maxAllowedGain / maxabsgain; for (long i = 0; i < M + 1; ++i) kernel[i] = std::floor(dkernel[i] ...
C++
wrestDIPList[]= { {0x07, 0xff, 0xff, 0x00, NULL }, {0x08, 0xff, 0xff, 0x00, NULL }, {0 , 0xfe, 0 , 16, "Coinage 1" }, {0x07, 0x01, 0x0f, 0x00, "0000" }, {0x07, 0x01, 0x0f, 0x01, "0001" }, {0x07, 0x01, 0x0f, 0x02, "0010" }, {0x07, 0x01, 0x0f, 0x03, "0011" }, {0x07, 0x01, 0x0f, 0x04, "0100" }, {0x...
C++
cfg(feature = "randr")] (Some(randr::X11_EXTENSION_NAME), 15) => Some("GetOutputProperty"), #[cfg(feature = "randr")] (Some(randr::X11_EXTENSION_NAME), 16) => Some("CreateMode"), #[cfg(feature = "randr")] (Some(randr::X11_EXTENSION_NAME), 17) => Some("DestroyMode"), #[cfg...
Rust
// Invoke the traced function auto out_stack = traced_fn(inputs); // Exit a trace, treating 'out_stack' as the outputs of the trace. These // are the variables whose values will be computed upon subsequent // invocations of the trace. size_t i = 0; for (auto& output : out_stack) { /...
C++
RJ6' 'CixleHBlcmltZW50YWxfZGlzdHJpYnV0ZWRfdmFyaWFibGVfY29tcG9uZW50cxgIIAMoCzIZLn' 'RlbnNvcmZsb3cuU2F2ZWRWYXJpYWJsZVIpZXhwZXJpbWVudGFsRGlzdHJpYnV0ZWRWYXJpYWJs' 'ZUNvbXBvbmVudHM='); @$core.Deprecated('Use functionSpecDescriptor instead') const FunctionSpec$json = { '1': 'FunctionSpec', '2': [ { ...
Dart
ltr-invert.svg); } .oo-ui-image-progressive.oo-ui-icon-functionArgument { background-image: /* @embed */ url(themes/wikimediaui/images/icons/functionArgument-ltr-progressive.svg); } .oo-ui-icon-instance { background-image: /* @embed */ url(themes/wikimediaui/images/icons/instance-ltr.svg); } .oo-ui-image-invert.oo-...
CSS
using System.Globalization; namespace Syncfusion.Maui.Toolkit { /// <summary> /// Used to convert a legend item color with DisableBrush or IconBrush when toggle. /// </summary> internal class ToggleColorConverter : IValueConverter { public object? Convert(object? value, Type? targetType, object? parameter, Cul...
C#
} /* */ else /* */ { /* */ /* */ /* 224 */ stz.setStartRule(0, 1, 0); /* 225 */ stz.setEndRule(11, 31, 86399999); /* */ } /* */ } /* */ /* 229 */ int[] fields = Grego.timeToFields(current, null); /* */ /*...
Java
= L1_1(L2_1) L1_1 = L1_1.Value L1_1 = L1_1.UintValue L0_1.ActivityRewardID = L1_1 L1_1 = {} L1_1.SS = "SpriteOutput/Quest/EvolveBuild/EvoLveBuildRank/EvoLveChallengeRankBg_SS.png" L1_1.S = "SpriteOutput/Quest/EvolveBuild/EvoLveBuildRank/EvoLveChallengeRankBg_S.png" L1_1.A = "SpriteOutput/Quest/EvolveBuild/EvoLveBuildRa...
Lua
.custom-control-label::before,.accent-danger .custom-file-input:focus~.custom-file-label,.accent-danger .custom-select:focus,.accent-danger .form-control:focus:not(.is-invalid):not(.is-warning):not(.is-valid){border-color:#efa2a9}.accent-danger .page-item .page-link{color:#dc3545}.accent-danger .page-item.active .page-...
CSS
ل ۳، دیدیم که چگونه اینترفیس‌های جنریک از پارامترهای نوع `covariant` و `contravariant` پشتیبانی می‌کنند. همین قابلیت برای دلیگیت‌ها نیز وجود دارد. اگر یک نوع دلیگیت جنریک تعریف می‌کنید، بهتر است: + یک پارامتر نوعی را که فقط در مقدار بازگشتی استفاده می‌شود، به عنوان covariant (`out`) علامت‌گذاری کنید. + هر پارامتر نو...
Markdown
odifier_item_ultimate_scepter_dummy" end function item_ultimate_scepter_consumable:OnSpellStart() self:ConsumeItem(self:GetCaster()) end function item_ultimate_scepter_consumable:CastFilterResultTarget(target) -- Check if its the caster thats targetted if self:GetCaster() ~= target then return UF_FAIL_CUS...
Lua
func NewDebugLogger(localLogger logging.Logger, level logging.Level) *DebugLogger { return &DebugLogger{ Local: localLogger, level: level, } } func (l *DebugLogger) Debug(fmt string, a ...any) { if l == nil { return } l.Local.Debug(fmt, a...) l.send(logging.Debug, fmt, a...) } func (l *DebugLogger) In...
Go
ripe_customer_id"], unique=False) batch_op.create_foreign_key("fk_users_tier_ids", "tiers", ["tier_id"], ["id"]) def downgrade() -> None: with op.batch_alter_table("users", schema=None) as batch_op: batch_op.drop_constraint("fk_users_tier_ids", type_="foreignkey") batch_op.drop_index("idx_...
Python
-- Bootstrap plugins manager local lazy_path = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" if not vim.uv.fs_stat(lazy_path) then vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", "https://github.com/folke/lazy.nvim.git", lazy_path, }) end vim.opt.rtp:prepend(lazy_path)...
Lua
R_BANK_NEXT sta A53_REG_VALUE .section .nmi.300,"ax",@progbits .globl restore_prg_bank_nmi restore_prg_bank_nmi: lda #$01 sta A53_REG_SELECT lda _PRG_BANK sta A53_REG_VALUE ; Restore the A53_REG_SELECT value before returning from NMI ; in case we interrupted a bank switch on the main thread lda _BANK_SHADOW s...
Assembly
em;margin-inline-end:.5rem}.book-menu{flex:0 0 16rem;font-size:.875rem}.book-menu .book-menu-content{width:16rem;padding:1rem;background:var(--body-background);position:fixed;top:0;bottom:0;overflow-x:hidden;overflow-y:auto}.book-menu a,.book-menu label{color:inherit;cursor:pointer;word-wrap:break-word}.book-menu a.act...
CSS
sDir = File(repoCloneDir, "icons/svg") val relocatedNames = mutableMapOf<String, String>() // renaming to match to svg-to-compose iconsDir.walkTopDown().filter { it.extension == "svg" } .forEach { val newFile = File(it.parentFile, it.name.replace("-", "_")) ...
Kotlin
38 0029D378 C0 84 02 E4 */ lfs f4, 0x2e4(r4) /* 802A043C 0029D37C 40 80 00 30 */ bge .L_802A046C /* 802A0440 0029D380 C0 02 DA 1C */ lfs f0, lbl_8051BD7C@sda21(r2) /* 802A0444 0029D384 3C 60 80 50 */ lis r3, sincosTable___5JMath@ha /* 802A0448 0029D388 38 63 71 A0 */ addi r3, r3, sincosTable___5JMath@l /* 802A044C...
Assembly