content
stringlengths
2
6.21k
label
stringclasses
16 values
n; break; } case 's': sendstring(va_arg(args, const char *), p); nums++; break; } va_end(args); } int num = nums || numf ? 0 : numi, msgsize = server::msgsizelookup(type); if(msgsize && num!=msgsize) { fatal("inconsiste...
C++
rn (northWalls.length === 0) && (westWalls.length === 0); } return true; } public static canSee( walls: { horizontal: { start: number, end: number, y: number }[], vertical: { start: number, end: number, x: number }[] }, a: { x: number, y: number }, b: { x: number, y: number } ): boolean { const interse...
Typescript
><br></p> <p><br></p> <p><br></p> <p><br></p> <p><br></p> <p><br></p> <p><br></p> <p><br></p> <p><br></p> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.3/angular.js"></script> <script src="vendor/lodash.js"></script> <script src="vendor/shifty.js"></script> <script src="vendor/rekapi.js"></script> ...
HTML
: ExtensionBeanClass private var disposable: Disposable = Disposer.newDisposable() @BeforeEach override fun setUp(testInfo: TestInfo) { super.setUp(testInfo) configureByText("\n") extension = TestExtension.createBean() VimExtension.EP_NAME.point.registerExtension(extension, disposable) } @...
Kotlin
-12-31 19:56:58.272106") ``` 然后通过`__getitem__`访问时,将实时使用`datetime.strptime()`函数将上述字符串日期转换为`datetime`对象。通过新的架构,当返回元组时,`datetime()`对象已经存在于其中,`datetime.strptime()`函数只被调用了一次: ```py row = (1, datetime.datetime(2019, 12, 31, 19, 56, 58, 272106)) ``` SQLAlchemy 中的`RowProxy`和`Row`对象是大部分 SQLAlchemy C 扩展代码的位置。这段代码已经进行了高度重构,以有效...
Markdown
typed_data.Uint8List testEmptyMessageDescriptor = $convert.base64Decode('ChBUZXN0RW1wdHlNZXNzYWdl'); @$core.Deprecated('Use testEmptyMessageWithExtensionsDescriptor instead') const TestEmptyMessageWithExtensions$json = const { '1': 'TestEmptyMessageWithExtensions', '5': const [ const {'1': 1, '2': 536870912...
Dart
0) { handleError("connection failed", res); } } ATcpSocket::~ATcpSocket() { } size_t ATcpSocket::read(char* dst, size_t size) { int res = recv(getHandle(), dst, size, 0); if (res < 0) { handleError("socket read error", res); } return res; } void ATcpSocket::write(const char* buffer, size_t size) { int res ...
C++
head> <tr> <th>Field</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td style="white-space:nowrap"> <code>name</code> <br> <em> string </em> </td> <td> <p>Name of the HTTPProxy</p> </td> </tr> <tr> <td style="white-space:nowrap"> <code>namespace</code> <br> <em> string </em> </td> <td> <em>(Optional)</em> <p>Nam...
HTML
init_carry !== 0) { doCarryOver( tokenID, charCS, initMenu, senderId ); return; } args.unshift(initMenu); args[2] = -1; buildMenu( initMenu, charCS, MenuState.ENABLED, args, senderId ); return; }; /* * Make the menu for managing initiative each round, including * changing initiati...
JavaScript
background-color: #D9D9D9; outline: 0; } ul.wysihtml5-commands-disabled .dropdown-menu { display: none !important; } ul.wysihtml5-toolbar div.wysihtml5-colors { display:block; width: 50px; height: 20px; margin-top: 2px; margin-left: 5px; position: absolute; pointer-events: none; } ul.wysihtml5-toolba...
CSS
nomination-pools/runtime-api/src/lib.rs#L26-L41</div></div></a></li><li><a href="../variables/_dedot_runtime_specs.OffchainWorkerApi.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-32"></use></svg><div>Offchain<wbr/>Worker<wbr/>Api<div class="menu-item-desc">Ref: https://github....
HTML
NULL); (&V_7)->set_color_3(L_85); // int currentChar = startChar; int32_t L_86 = V_3; V_8 = L_86; goto IL_03ba; } IL_0222: { // if (currentChar == nextLineStartIdx || currentChar == endChar) int32_t L_87 = V_8; int32_t L_88 = V_6; if ((((int32_t)L_87) == ((int32_t)L_88))) { goto IL_0231; } ...
C++
"""This example showcase point queries by highlighting the shape under the mouse pointer. """ __version__ = "$Id:$" __docformat__ = "reStructuredText" import random import sys import pygame from pygame.locals import * from pygame.color import * import pymunk as pm from pymunk import Vec2d import pymunk.pygame_util...
Python
oto __err; } int start_err = audio_encoder_start(&demo_enc->encoder); // 用timer模拟填数,填入需要编码的源数据 /* demo_frame_test_tmr = sys_hi_timer_add(NULL, demo_frame_test_time_func, 40); */ /* printf("id:%d \n", demo_frame_test_tmr); */ //把mic采到的数据编码 #if MIC_USE_MIC_CHANNEL demo_enc->clk_before = clk_get("...
C
m the main thread as we may need to perform * I/O operations if the scheme isn't loaded yet. */ private var currentScheme: IDEColorScheme? = null get() { return field ?: getColorScheme(EditorPreferences.colorScheme).also { scheme -> field = scheme isCurrentSchemeLoaded = scheme != null...
Kotlin
from typing import List, Dict from app.repository.vendor_repository import VendorRepository from app.schemas.vendor_schema import VendorOutput, VendorUpdate from app.service import vendor_validation, vendor_validation_update class VendorService: def __init__(self): self.vendor_repo = VendorRepository() ...
Python
/* This file is a part of DSRC software distributed under GNU GPL 2 licence. The homepage of the DSRC project is http://sun.aei.polsl.pl/dsrc Authors: Lucas Roguski and Sebastian Deorowicz Version: 2.00 */ #ifndef H_DNAMODELERBASICB2 #define H_DNAMODELERBASICB2 #include "../include/dsrc/Globals.h" #inc...
C
ct { Repositories []string `json:"repositories"` }{ Repositories: testRepos, } if err := json.NewEncoder(w).Encode(result); err != nil { t.Errorf("failed to write response: %v", err) } return } if r.Method == http.MethodGet && r.URL.Path == fmt.Sprintf("/v2/%s/tags/list", testRepo) { r...
Go
/* * This file is part of Hootenanny. * * Hootenanny 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 the License, or * (at your option) any later version. * * This program is distri...
C
并且如果在高可用性(HA)模式下启用了特定配置的Secure PDF eXchange (SPX),则可能导致远程代码执行。 | [1]https://www.sophos.com/en-us/security-advisories/sophos-sa-20241219-sfos-rce | | 35 | CVE-2024-12728 | 9.8 | CRITICAL | 弱凭证漏洞可能允许通过SSH访问Sophos防火墙(版本低于20.0 MR3(20.0.3))的特权系统。 | [1]https://www.sophos.com/en-us/security-advisories/sophos-sa-20241219-sfos...
Markdown
["displayText"] = "", ["yOffset"] = 0, ["anchorPoint"] = "CENTER", ["customTextUpdate"] = "update", ["actions"] = { ["start"] = { }, ["finish"] = { }, ["init"] = { }, }, ["justify"] = "LEFT", ["selfPoint"] = "BOTTOM", ["trigger"] = { ...
Lua
local Timings = require("sea.chart.Timings") local Subtimings = require("sea.chart.Subtimings") local TimingValuesFactory = require("sea.chart.TimingValuesFactory") local test = {} ---@param t testing.T function test.timings(t) for i = -1, 3000 do t:eq(Timings.encode(Timings.decode(i)), i) end local unknown = T...
Lua
eturn query.ToListAsync(); }); } /// <summary> /// Inserts a sales employee /// </summary> /// <param name="salesEmployee">Sales Employee</param> public virtual async Task InsertSalesEmployee(SalesEmployee salesEmployee) { if (salesEmploye...
C#
164a3: 12 27 bneq 164cc <_citrus_utf8_ctype_wcrtomb+0x5a> 164a5: 92 3f 55 mcomb $0x3f,r5 164a8: d0 02 54 movl $0x2,r4 164ab: c3 01 54 51 subl3 $0x1,r4,r1 164af: 15 13 bleq 164c4 <_citrus_utf8_ctype_wcrtomb+0x52> 164b1: 8b 8f c0 52 bicb3 $0xc0,r2,r0 164b5: 50 164b6: 89 ...
Assembly
onUpdate: (latest) => (transform[key] = latest), }) } else { if (style[key] === undefined || style[key] === null) { // This styling property is undefined, set it without using transitions style[key] = value } // Push the transition to motion transitions ...
Typescript
ariableAuthentication2 struct { Time util.EFITime AuthInfo WinCertificateUEFIGUID } // Returns an EFIVariableAuthencation2 struct // no SignedData func NewEFIVariableAuthentication2() *EFIVariableAuthentication2 { return &EFIVariableAuthentication2{ Time: *util.NewEFITime(), AuthInfo: WinCertificateUEFIGUID...
Go
Provider; _certificatesManager = certificatesManager; } public async Task<string> GenerateAuthorizationAsync(HttpMethod method, string url, string body, [CanBeNull] string mchId = null) { var options = await _weChatPayOptionsProvider.GetAsync(mchId); var timeStamp = DateTimeHelper.G...
C#
"BUGC-JDIT/CompRecEquivServlet" ) for partner in self: country_code, _, vat_number = partner._parse_aeat_vat_info() if country_code != "ES": continue if "company_id" in partner._fields: public_crt, private_key = ( s...
Python
EV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IuugiOydtOyWtF8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiCgkgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMzAgMzAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDMwIDMwO...
CSS
.NewMockFacade(mockCtl) api.Facade = fApp api.Index = sIndex api.Node = sNode appView := &models.ApplicationView{ Namespace: "baetyl-cloud", Name: "nodeport", Type: specV1.AppTypeContainer, Services: []models.ServiceView{ { Service: specV1.Service{ Name: "agent", Image: "hub.bai...
Go
per:1, instId:10037 }, { type:ItemType.prop, cost:2200, icon:"10038.png", name:"兵粮寸断", tip:"敌方所有人攻击下降30%", forTar:Camp.anamy, atk:0.3, range:3, oper:0, instId:10038 }, { type:ItemType.prop, cost:2500, icon:"10039.png", name:"万箭齐发", tip:"给敌方所有人250%的伤害", forTar:C...
Typescript
0d314e0c8611a6a6',1,'glm::min(T const &amp;x, T const &amp;y, T const &amp;z)'],['../a00192.html#ga74d1a96e7cdbac40f6d35142d3bcbbd4',1,'glm::min(C&lt; T &gt; const &amp;x, typename C&lt; T &gt;::T const &amp;y, typename C&lt; T &gt;::T const &amp;z)'],['../a00192.html#ga42b5c3fc027fd3d9a50d2ccc9126d9f0',1,'glm::min(C&l...
JavaScript
= 1 }, nui.paragraph { lines = ui_utils.get_label_with_shortcut("press", "yank-issue-key", " to yank key"), is_focusable = false } ) ) end function M.IssuePanel:_build_right_column() local fields = {} local function add_field(f) fields...
Lua
(()) } } /// Build the final message to be sent to the servomotor through a serial connection. pub fn build(self) -> HerkulexMessage { let mut packet = Packet::default(); packet.pid = self.pid; packet.cmd = 5; for data in self.pos { let d = data.mode.asso...
Rust
(qq4+z*qq5)))); y = r/s; return x + x*y; } if (ix < 0x40c00000) /* |x| < 6 */ y = 1 - erfc2(ix,x); else y = 1 - 0x1p-120f; return sign ? -y : y; } float erfcf(float x) { float r,s,z,y; uint32_t ix; int sign; GET_FLOAT_WORD(ix, x); sign = ix>>31; ix &= 0x7fffffff; if (ix >= 0x7f800000) { /* erfc(...
C
(l, Has.Some.Property("Name").EqualTo("Name1"), testClass); Assert.That(l, Has.Some.Property("Name").EqualTo("Name2"), testClass); Assert.That(l, Has.All.Property("Id").Not.Null, testClass); } } private void AssertCardinalityAndSomething<T>(string queryString = "select s.Name as something from Simple s"...
C#
rsvr: None supported req.kmdf-ver: req.umdf-ver: req.ddi-compliance: req.unicode-ansi: req.idl: Mbnapi.idl req.max-support: req.namespace: req.assembly: req.type-library: req.lib: req.dll: req.irql: targetos: Windows req.typenames: req.redist: ms.custom: 19H1 f1_keywords: - IMbnSms::SmsRead - mbnapi/IMbn...
Markdown
package.cpath = "bin/?.dll" local iup = require "iuplua" local bgfx = require "bgfx" local util = require "util" local math3d = require "math3d" local ctx = { canvas = iup.canvas {}, } local dlg = iup.dialog { ctx.canvas, title = "04-mesh", size = "HALFxHALF", } local time = 0 local function mainloop() math3d....
Lua
rdi, %rax /* Source is return value. */ #endif retq END (BP_SYM (STRCPY)) #ifndef USE_AS_STPCPY libc_hidden_def(strcpy) #endif
Assembly
ft:26%;">stereo=&lt;value&gt;</p> <p style="margin-left:34%;">Select a method for stereo display. You may have to use &minus;aspect to fix the aspect value. Add 32 to swap left and right side. Experimental, do not expect too much from it.</p> <table width="100%" border="0" rules="none" frame="void" cellspacing...
HTML
essage( paramsJson = """invalid json""", method = SET_NAME_AT_INDEX_IN_CURRENT_USER_PROFILE, ) // When testee.process(jsMessage, mockJsMessaging, mockJsMessageCallback) // Then verify(mockPirWebProfileStateHolder, org.mockito.kotlin.never()).setNameAtInd...
Kotlin
min: 1, max: 100)(); TextColumn get terminalCode => text().withLength(min: 1, max: 100)(); TextColumn get type => text().withLength(min: 1, max: 100)(); TextColumn get pasWord => text().withLength(max: 100)(); TextColumn get resolution => text().withLength(min: 1, max: 100)(); TextColumn get sversion => ...
Dart
again to `0x2` byte(vm.PUSH1), 0x11, byte(vm.PUSH1), 0x02, byte(vm.SSTORE), // SSTORE( loc: 0x02, val: 0x11) // Read slot in access list (0x2) byte(vm.PUSH1), 0x02, byte(vm.SLOAD), // SLOAD( 0x2) // Read slot in access list (0x1) byte(vm.PUSH1), 0x01, byte(vm.SLOAD), // SLOAD( 0x1) } prettyPrint("Thi...
Go
mem) { int i; int num0, num1, num2, num3, num4; int mem0, mem1, mem2, mem3, mem4; num0 = num[0]; num1 = num[1]; num2 = num[2]; num3 = num[3]; num4 = num[4]; mem0 = mem[0]; mem1 = mem[1]; mem2 = mem[2]; mem3 = mem[3]; ...
Java
it); return; } m_BufferPos = off; } else { m_BufferPos -= gap; } _ASSERT(!OFFSET_OF(m_BufferPos) && m_BufferPos < m_BufferSize); // Always reset the put position there #if defined(_LIBCPP_VERSION) && _LIBCPP_VERSION <= 1101 m_FileStream->clear(); // This is...
C++
ned in language.dat or language.def to be available; if, in addition, it is: - not mentioned in language.dat.lua, then it is dumped in the format; - mentioned in language.dat.lua with a key special="disabled:<reason>", then it is not available at all; - mentioned in language.dat.lua with a normal entry, then ...
Lua
## 000004DA /* 17AF8 80849D08 04610004 */ bgez $v1, .L80849D1C /* 17AFC 80849D0C 00036823 */ subu $t5, $zero, $v1 /* 17B00 80849D10 46000306 */ mov.s $f12, $f0 /* 17B04 80849D14 A60D04DA */ sh $t5, 0x04DA($s0) ## 000004DA /* 17B08 80849D18 C6020028 */...
Assembly
} if (!this.IsUserAuthenticated()) { throw new UnauthorizedAccessException("Failed to get fromId from token."); } this.logger.LogInformation("Initiated call to on storage provider service."); var result = await this.on...
C#
1, torpedo_ammo = 0, expose = 0, angle = 360, charge_param = "", damage = 40, corrected = 100, min_range = 0, id = 95140, attack_attribute_ratio = 100, fire_fx_loop_type = 1, attack_attribute = 3, reload_max = 166, queue = 1, search_type = 1, effect_move = 1, suppress = 1, spawn_bound...
Lua
ng-mocks.sudo.eu/api/helpers/getSourceOfMock * * ```ts * getSourceOfMock(MockModule); // returns RealModule * getSourceOfMock(RealModule); // returns RealModule * ``` */ export function getSourceOfMock<T>(declaration: AnyType<MockedModule<T>>): Type<T>; /** * Returns the original class of a mock component class...
Typescript
> { vs.variables() .into_iter() .map(|(k, _)| k) .collect::<BTreeSet<_>>() } #[test] fn albert_encoder() { let config = albert_config(); let mut vs = VarStore::new(Device::Cpu); let root = vs.root_ext(|_| 0); let embeddings = Alb...
Rust
ror:', error); return { error: error.message || 'VARMAX 예측 상태 확인 중 오류가 발생했습니다.' }; } }; // VARMAX 전체 결과 조회 export const getVarmaxResults = async () => { try { console.log('🔍 [VARMAX API] Requesting VARMAX results...'); // 캐시 방지를 위한 타임스탬프 추가 const timestamp = new Date().getTime(); const re...
JavaScript
aces</strong>","c":[{"t":"heading","d":6,"v":"TenGigabitEthernet1/1/2"},{"t":"heading","d":6,"v":"TenGigabitEthernet2/1/2"}]},{"t":"heading","d":5,"v":"<strong>IP Address:</strong>192.168.1.10"},{"t":"heading","d":5,"v":"<em>Dist</em>"}]},{"t":"heading","d":4,"v":"SEPXXXXXXXX","c":[{"t":"heading","d":5,"v":"<strong>Pla...
HTML
0x00401821 '!.@.' - move $v1, $v0 <a name="0x0000352C"></a> 0x0000352C: 0x3C020000 '...&lt;' - lui $v0, 0x0 <a name="0x00003530"></a> 0x00003530: 0x00002821 '!(..' - move $a1, $zr <a name="0x00003534"></a> 0x00003534: 0x34069800 '...4' - li $a2, 0x9800 <a name="0x00003538"></a> 0x00003538: 0x...
HTML
/** * Tencent is pleased to support the open source community by making Tseer available. * * Copyright (C) 2018 THL A29 Limited, a Tencent company. All rights reserved. * * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except * in compliance with the License. You may obtain a...
C
_lsp; DartLanguageServerBenchmark(List<String> args, {required bool useLspProtocol}) : _lsp = useLspProtocol, executableToUse = extractDartParamOrDefault(args) { _checkCorrectDart(); } List<Uri> get additionalWorkspaceUris => const []; Uri? get cacheFolder => null; LaunchFrom get launchFrom ...
Dart
"><span><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/a/af/Kit_shorts.svg/100px-Kit_shorts.svg.png" decoding="async" width="100" height="36" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/a/af/Kit_shorts.svg/150px-Kit_shorts.svg.png 1.5x, //upload.wikimedia.org/wikipedi...
HTML
Display::fmt(&self.0, f) } } impl From<u64> for WebhookId { fn from(id: u64) -> Self { WebhookId(id) } } #[cfg(test)] mod tests { use super::GenericId; use serde_test::Token; #[test] fn test_id_deser() -> Result<(), Box<dyn std::error::Error>> { serde_test::assert_...
Rust
PjU1iboAAAAfSURBVHjaYvj//z8DDN+8eROVA6JROGABZA4IAwQYALYwMgX3eE7SAAAAAElFTkSuQmCC);border-top:1px solid #e0e0e0}.x-bindinspector-compdetail-grid .x-grid-cell-inner{line-height:31px;font-size:14px;padding:10px 16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.x-bindinspector-compdetail-grid .x-gr...
CSS
-1c270969] .el-dialog .el-dialog__body .el-form .el-form-item-main_user_name{padding-left:25px}.my-task-dialog[data-v-1c270969] .el-dialog .el-dialog__body .el-form .el-form-item-description,.my-task-dialog[data-v-1c270969] .el-dialog .el-dialog__body .el-form .el-form-item-priority,.my-task-dialog[data-v-1c270969] .el...
CSS
/**************************************************************************** * * Open Watcom Project * * Copyright (c) 2002-2021 The Open Watcom Contributors. All Rights Reserved. * Portions Copyright (c) 1983-2002 Sybase, Inc. All Rights Reserved. * * ===================================...
C
Bolder(message string) string { msg := fmt.Sprintf(`%s`, aurora.Bold(aurora.White(message))) return msg } func Loader(message string, level string) string { var leveler aurora.Value if level == "info" { leveler = aurora.Bold(aurora.Blue("INFO")) } else if level == "warn" { leveler = aurora.Bold(aurora.Red("W...
Go
.p-TabBar-tab.p-mod-dragging,\n/* </DEPRECATED> */\n/* <DEPRECATED> */\n.jupyter-widgets.jupyter-widget-tab\n> .p-TabBar.p-mod-dragging\n.p-TabBar-tab.p-mod-dragging,\n/* </DEPRECATED> */\n.jupyter-widgets.jupyter-widget-tab\n > .lm-TabBar.lm-mod-dragging\n .lm-TabBar-tab.lm-mod-dragging {\n transition: none;\n}\n...
JavaScript
କୁ ଯାଆନ୍ତି, ତେବେ ଆପଣ ଏକ “ତୁଳନା ଏବଂ ଟାଣ ଅନୁରୋଧ” ବଟନ୍ ଦେଖିବେ | ସେହି ବଟନ୍ ଉପରେ କ୍ଲିକ୍ କରନ୍ତୁ | <img style = "ଭାସମାନ: ଡାହାଣ;" src = "https://firstcontributions.github.io/assets/Readme/compare-and-pull.png" alt = "ଏକ ଟାଣ ଅନୁରୋଧ ସୃଷ୍ଟି କରନ୍ତୁ" /> ବର୍ତ୍ତମାନ ଟାଣ ଅନୁରୋଧ ଦାଖଲ କରନ୍ତୁ | <img style = "ଭାସମାନ: ଡାହାଣ;" src = "http...
Markdown
(resStr); } mc.getSoundHandler() .playSound(PositionedSoundRecord.create(new ResourceLocation("gui.button.press"), 1.0F)); return; } } this.updateCheckerOverlay.mouseClicked(par1, par2, par3); super.mouseClicked(par1, par2, par3); } }package net.minecraft.client.gui; import java.util.List; ...
Java
erObj.FONT_HEIGHT * 1.5F)); } protected void drawListHeader(int p_148129_1_, int p_148129_2_, Tessellator p_148129_3_) { String s = EnumChatFormatting.UNDERLINE + "" + EnumChatFormatting.BOLD + this.getListHeader(); this.mc.fontRendererObj.drawString(s, p_148129_1_ + this.width / 2 - this.m...
Java
console.log("offer", id, offer); this.opponent = id; await this.rtc.receiveOffer(offer); const answer = await this.rtc.createAnswer(); socket.emit("answer", id, answer); }); socket.on("answer", (id, answer) => { console.log("answer", id, answer); this.opponent = id; th...
Typescript
icensed 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 * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed * under the ...
Java
ne dso_local void @decode(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 { // %3 = icmp ne ptr %0, null // %4 = icmp sgt i32 %1, 0 // %5 = and i1 %3, %4 // br i1 %5, label %6, label %14 // 6: ; preds = %2, %6 // %7 = phi ptr [ %10, %6 ], [ %0,...
C++
String node_type_str; if ((node_type == CPP_NODE) | (node_type == CPP_LIFECYCLE_NODE)){ node_type_str = "C++"; }else if ((node_type == PYTHON_NODE) | (node_type == PYTHON_LIFECYCLE_NODE)){ node_type_str = "Python"; }else{ throw std::runtime_error("Invalid node type"); } QString expected_output = Q...
C++
.function_nesting += 1; self.syntax_nesting += 1; let parens = self.parens; self.parens = 0; let value = if coroutine {Value::Empty} else {Value::Null}; let body = self.statements(i,value)?; self.function_nesting -= 1; self.statement = statement; let p = i.next_token_optional(self)?; ...
Rust
[1] = 40432, [2] = 37111, [3] = 37657, [4] = 40258, [5] = 40382, [6] = 42988 } Bistooltip_wowtbc_bislists["Shaman"]["Restoration"]["T7"][13] = { ["slot_name"] = "Weapon", ["enhs"] = { [1] = { ["type"] = "spell", ["id"] = 60714 } }, [1] = 40395, [2] = 39763, [3] = 39423, [4] = 40488, [5] = 40244, [6] = 40300 } Bistoolt...
Lua
div.phpdebugbar-body { border-top: 1px solid #ccc; display: none; position: relative; height: 300px; } /* -------------------------------------- */ div.phpdebugbar-panel { display: none; height: 100%; overflow: auto; width: 100%; } div.phpdebugbar-panel.phpdebugbar-active { display: block; } /* --...
CSS
rator new has no such requirements. // Check that we can create an overaligned allocation that does // adhere to not have this constraint. test_allocations(1, 128); // Finally, test size > alignment, but with size not being // a multiple of alignment. test_allocations(65, 32); #ifndef TEST_HAS_NO_RTTI { ...
C++
// // Interpreter.h // sh // // Created by Dietmar Planitzer on 1/11/24. // Copyright © 2024 Dietmar Planitzer. All rights reserved. // #ifndef Interpreter_h #define Interpreter_h #include "Script.h" #include "ArgumentVector.h" #include "EnvironCache.h" #include "LineReader.h" #include "NameTable.h" #include "OpS...
C
BS": { "MD5": "61509fd4e01160eb7d8007dc182bee5b", "SHA1": "febd34ec96d90e498d9b6fa54d7fab80ce1464d3", "SHA256": "7d79e52d96bc7c571299d90c3bc4bff9d08e36eb74b7e8b0cd69114980737953" }, "ValidFrom": "2014-10-01 18:02:10", "ValidTo": "2016-01-01 18:02:10", "Version": 3 }, ...
Markdown
0 private var flacFlags = 0 private var matroskaFlags = 0 private var mp4Flags = 0 private var fragmentedMp4Flags = 0 private var mp3Flags = 0 @Synchronized fun setConstantBitrateSeekingEnabled(constantBitrateSeekingEnabled: Boolean): GramophoneExtractorsFactory { this.constantBitrateSeekingEnabled = constant...
Kotlin
; height: 0px; bottom: 0px; } </style> <style> .tdi_122 .tdb-menu ul .tdb-normal-menu.current-menu-item > a, .tdi_122 .tdb-menu ul .tdb-normal-menu.current-menu-ancestor > a, .tdi_122 .tdb-menu ul .tdb-normal-menu.current-category-ancestor > a, .tdi_122 .tdb-menu ul .tdb-normal-menu....
HTML
23 // CHECK: encoding: [0x62,0x33,0x25,0x08,0x0a,0x9c,0xf0,0x23,0x01,0x00,0x00,0x7b] vrndscaless xmm11, xmm11, dword ptr [rax + 8*r14 + 291], 123 // CHECK: vrndscaless xmm11, xmm11, dword ptr [rdx + 508], 123 // CHECK: encoding: [0x62,0x73,0x25,0x08,0x0a,0x5a,0x7f,0x7b] vrndscaless xmm11, xmm11, ...
Assembly
ms1scan_list = ms1scan_list_pre + ms1scan_list_cur ms2scan_list = ms2scan_list_pre + ms2scan_list_cur ms2premz_list = ms2premz_list_pre + ms2premz_list_cur ms2premz_array = np.array(ms2premz_list) pos1=np.nonzero((ms2premz_array>=pre_mz-0.0001) & (ms2premz_array<=pre_m...
Python
results = ping_ip(args.target, count=50) origin = best_result["routes"][0]["hops"][0] if best_result["routes"] and best_result["routes"][0]["hops"] else None destination = best_result["routes"][-1]["hops"][0] if best_result["routes"] and best_result["routes"][-1]["hops"] else None all_...
Python
ments.map( function (file) { return '[[ATTACHMENT|' + file + ']]'; } )); } if (systemOutLines.length > 0) { testcase.testcase.push({'system-out': this.removeInvalidCharacters(stripAnsi(systemOutLines.join('\n')))}); } if (this._options.outputs && (test.consoleErrors && test.consoleE...
JavaScript
return matrix after shifting up game = transpose(game) game, done = cover_up(game) game, done = merge(game, done) game = cover_up(game)[0] game = transpose(game) return game, done def down(game): print("down") # return matrix after shifting down game = reverse(transpose(game)) g...
Python
UInt() operator fun CPointer<UInt>.set(offset: Int, value: UInt): Unit = sw(this.ptr + offset * 4, (value).toInt()) var CPointer<UInt>.value: UInt get() = this[0]; set(value): Unit { this[0] = value } @kotlin.jvm.JvmName("plusUInt") operator fun CPointer<UInt>.plus(offset: Int): CPointer<UInt> = addPtr<UInt...
Kotlin
uest_id.h" #include "content/public/browser/resource_context.h" #include "content/public/browser/resource_dispatcher_host_delegate.h" #include "content/public/browser/resource_request_info.h" #include "content/public/browser/resource_throttle.h" #include "content/public/common/process_type.h" #include "content/public/c...
C++
") private Double DBL_SELLING_CUR_PAYBACK_AMOUNT; @JsonProperty("STR_PAYBACK_ACCOUNT_CODE") private String STR_PAYBACK_ACCOUNT_CODE; @JsonProperty("DBL_PURCHASE_CUR_CC_CHARGES") private Double DBL_PURCHASE_CUR_CC_CHARGES; @JsonProperty("DBL_BASE_CUR_CC_CHARGES") private Double DBL_BASE_CUR_CC_CHARGES; ...
Java
#ifndef CONFIG_NAND_SPL int set_last_law(phys_addr_t addr, enum law_size sz, enum law_trgt_if id) { u32 idx; /* we have no LAWs free */ if (gd->used_laws == -1) return -1; /* grab the last free law */ idx = __ilog2(~(gd->used_laws)); if (idx >= FSL_HW_NUM_LAWS) return -1; set_law(idx, addr, sz, id); re...
C
href="Properties.html#Symbols">$#!</a> &middot; 0-9 &middot; <a href="Properties.html#A">A</a> &middot; <a href="Properties.html#B">B</a> &middot; <a href="Properties2.html#C">C</a> &middot; <a href="Properties3.html#D">D</a> &middot; <a href="Properties4.html#E">E</a> &middot; <a href="Properties5.html#F">F</a> &midd...
HTML
= 1716.0, y = 201.3, z = 1003.3 }, rot = { x = 11.5, y = 180.0, z = 0.0 }, level = 1 }, { config_id = 30032, gadget_id = 40200001, pos = { x = 1706.8, y = 200.0, z = 1014.6 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 }, { config_id = 30034, gadget_id = 70300081, pos = { x = 1742.2, y = 207.6, z = 1017.6 }, rot ...
Lua
metaCom.Column{ {Name: "request_at", Type: metaCom.Uint32}, {Name: "id", Type: metaCom.Uint16}, }, }, } q := &queryCom.AQLQuery{ Table: "trips", Measures: []queryCom.Measure{ {Expr: "count()"}, }, Filters: []string{ "id <= 1000", "request_at >= 1540399020000", "request_a...
Go
ugin { private static final DecimalFormat DECIMAL_FORMAT = new DecimalFormat("#.###"); private static final String CONFIG_GROUP = "combatlevel"; private static final String ATTACK_RANGE_CONFIG_KEY = "wildernessAttackLevelRange"; private static final Pattern WILDERNESS_LEVEL_PATTERN = Pattern.compile("^Level: (\\d+)...
Java
red = EngBank_MANDATORY; EngBank_UpdateWindow(); end function EngBags_UserDropdown_Initialize() local selectedValue = UIDropDownMenu_GetSelectedValue(EngBags_UserDropdown); local info; for key, value in EngBagsItems do local thisRealmPlayers = EngBags_Split(key, "|")[2]; if ( thisRealmPlayers == EngBags_T...
Lua
null, "fill": false, "fillColor": "darkgrey", "fillOpacity": 0.2, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "noClip": false, "opacity": 1, "smoothFactor": 1.0, "stroke": true, "weight": 1} ).addTo(map_46e656f72fc04a1eae5714bf3d047bdf); var popup_cb95636db33a4792b...
HTML
been successfully changed to **${prefix}**, be sure to notify your guild members of this change!`)); }, } as Command; import * as Faker from 'faker'; import { Factory } from '../core'; import { TaskEntity, UpdateEntity } from '../../../src/database/entity'; import { UpdateType } from '../../../src/database/enum'; i...
Typescript
-------------------------- * CONFIG command entry point *----------------------------------------------------------------------------*/ void configCommand(prezClient *c, robj **argv, int argc) { if (!strcasecmp(c->argv[1]->ptr,"set")) { if (c->argc != 4) goto badarity; configSetCommand(c); } ...
C
t a21 = l.col[1].z; let a02 = l.col[2].x; let a12 = l.col[2].y; let a22 = l.col[2].z; let b00 = r.col[0].x; let b10 = r.col[0].y; let b20 = r.col[0].z; let b01 = r.col[1].x; let b11 = r.col[1].y; let b21 = r.col[1].z; let b02 = r.col[2]...
Rust
import 'package:flutter/material.dart'; class BotMessageWidget extends StatelessWidget { final String message; const BotMessageWidget({Key? key, required this.message}) : super(key: key); @override Widget build(BuildContext context) { return Align( alignment: Alignment.centerLeft, child: Cont...
Dart
MyRecognizer? = null override val recognizer: Recognizer get() = myRecognizer!! private var model: Model? = null override fun initialize(executor: Executor, onLoaded: Observer<RecognizerSource?>) { stateMLD.postValue(RecognizerState.LOADING) val handler = Handler(Looper.getMainLooper...
Kotlin
s Element curscope = new_scope; i += 1; } } new_scope->restoreXml(subel); } } /// This allows incremental building of the Database from multiple XML sources. /// An empty Scope must already be allocated. It is registered with \b this Database, /// and then populated with Symbol objects based as the ...
C++
LocalToWorld, cx: &mut Context) { for child in &self.ids { let child_id = id.child(child); let offset = cx.layout.entry(child_id).or_default().offset; let xf = xform.pre_translate(offset); ((self.func)(child)).dirty(child_id, xf, cx); } } fn hitte...
Rust