content
stringlengths
2
6.21k
label
stringclasses
16 values
.707107f; // 45 degree angle if ( vForward.Dot( vDiff ) < flCosAngle ) return false; return true; } //----------------------------------------------------------------------------- // Purpose: //----------------------------------------------------------------------------- void CTFPlayer::SpeakWeaponFire( int iCus...
C++
0.493787, 0, 0.001241, 0.576328, -0.817218, 0, 0.0244, 0.009957, -0.590777, 1, }, { -0.831936, 0.433492, 0.346363, 0, 0.55248, 0.705042, 0.444614, 0, -0.051464, 0.561249, -0.826045, 0, -0.00324, 0.023643, -0.58902, 1, }, [1.11666666667] = { -0.85975, 0.421581...
Lua
f\xbd\xef\xbf\xbd\xef\xbf\xbd", "large rune slice") assert(string(gr1), gx1, "global ->[]rune") assert(string(gr2), gx2fix, "global invalid ->[]rune") assert(string(gb1), gx1, "->[]byte") assert(string(gb2), gx2, "global invalid ->[]byte") var ( r1 = []rune(gx1) r2 = []rune(gx2) b1 = []byte(gx1) b2 = []b...
Go
//# ExprNodeUtil.h: Utility functions for TableExprNodeRep objects //# Copyright (C) 2022 //# Associated Universities, Inc. Washington DC, USA. //# //# This library is free software; you can redistribute it and/or modify it //# under the terms of the GNU Library General Public License as published by //# the Free Softw...
C
""" Regular expression matching using Brzozowski derivatives. """ def match(re, s): for c in s: re = re(c) return re.nullable def mark(nullable, deriv): deriv.nullable = nullable return deriv fail = mark(False, lambda c: fail) empty = mark(True, lambda c: fail) def lit(literal): return m...
Python
LongApiKeyHere" ## api secret (example below is not a real key) secret <- "yourSecretKeyHere" ``` Finally, you can create a token that authenticates access to tweets! Note that the authentication process below will open a window in your browser. ```r # create token named "twitter_token" twitter_token <- create_to...
Markdown
**05****** **修复建议** 1、关闭互联网暴露面或接口设置访问权限 2、升级至安全版本 **06****** **内部圈子介绍** 【Nday漏洞实战圈】🛠️  专注公开1day/Nday漏洞复现  · 工具链适配支持  ✧━━━━━━━━━━━━━━━━✧  🔍 资源内容  ▫️ 整合全网公开 1day/Nday 漏洞POC详情  ▫️ 适配Xray/Afrog/Nuclei检测脚本  ▫️ 支持内置与自定义POC目录混合扫描  🔄 更新计划  ...
Markdown
#1 str r3, [r4, #80] b .L172 .L173: mov r2, #0 mov r3, #1 str r2, [r4, #80] str r3, [r4, #20] b .L172 .L199: .align 2 .L198: .word vfmw_Osal_Func_Ptr_S UNWIND(.fnend) .size Real8_CB_GetPictureHeader, .-Real8_CB_GetPictureHeader .align 2 .global Real8_SetImgFormat .type Real8_SetImgFormat, %function Real8...
Assembly
= data & 0x1F; var valueArgument = data >> 5; return (ValueFormats)valueFormat switch { ValueFormats.Byte => (sbyte)reader.ReadSignedPackedNumber(valueArgument + 1), ValueFormats.Short => (short)reader.ReadSignedPackedNumber(valueArgument + 1), ValueFormats.Char => (char)reader.ReadUnsignedPackedNumber(...
C#
0 add r4, #0xd8 str r0, [r4, #0x0] pop {r4,pc} @ 0x21d0f4a .align 2, 0 .thumb Function_21d0f4c: @ 21d0f4c :thumb push {r3,lr} mov r1, r0 add r1, #0xd4 ldr r1, [r1, #0x0] add r2, r1, #0x1 mov r1, r0 add r1, #0xd4 str r2, [r1, #0x0] mov r1, r0 add r1, #0...
Assembly
2] . DeeeeE . . . st2 { v1.4h, v2.4h }, [x27], #16 # CHECK-NEXT: [0,3] . . DE . . . add x0, x27, #1 # CHECK-NEXT: [0,4] . . DeeeeE . . st2 { v1.4s, v2.4s }, [x27], #32 # CHECK-NEXT: [0,5] . . . DE . . add x0, x27, #1 # CHECK-NEXT: [0,6] . ...
Assembly
rsOnfr12jrnxers_glcrRR7qb_pbclRCiCXiz DATA_WORD(b__MAX7naqebvq6IrpgbeVCAF_7ErsOnfr12jrnxers_glcrRR8qb_fcyngRCiCXiz) .weak b__MAX7naqebvq6IrpgbeVCAF_7ErsOnfr12jrnxers_glcrRR8qb_fcyngRCiCXiz DATA_WORD(b__MAX7naqebvq6IrpgbeVCAF_7ErsOnfr12jrnxers_glcrRR15qb_zbir_sbejneqRCiCXiz) .weak b__MAX7naqebvq6IrpgbeVCAF_7ErsOnfr12jrn...
Assembly
1), a3.DesiredState(1), }) conf, _ = config.DefaultConfig() store = storepackage.NewStore(conf, storeAdapter, fakelogger.NewFakeLogger()) fetcher = desiredstatefetcher.New(conf, store, fakemetricsaccountant.New(), httpclient.NewHttpClient(conf.SkipSSLVerification, conf.FetcherNetworkTimeout()), &timeprovi...
Go
1,0xff,0x03,0x00] v_cmpsx_lt_f32_e64 s[10:11], v1, s2 // CHECK: [0x0a,0x00,0xa2,0xd0,0x01,0x05,0x00,0x00] v_cmpsx_lt_f32_e64 s[10:11], v1, s103 // CHECK: [0x0a,0x00,0xa2,0xd0,0x01,0xcf,0x00,0x00] v_cmpsx_lt_f32_e64 s[10:11], v1, flat_scratch_lo // CHECK: [0x0a,0x00,0xa2,0xd0,0x01,0xd1,0x00,0x00] v_cmpsx_lt_f32_e64 ...
Assembly
// CHECK: vmovhpd xmm19, xmm28, qword ptr [rax + 8*r14 + 291] // CHECK: encoding: [0x62,0xa1,0x9d,0x00,0x16,0x9c,0xf0,0x23,0x01,0x00,0x00] vmovhpd xmm19, xmm28, qword ptr [rax + 8*r14 + 291] // CHECK: vmovhpd xmm19, xmm28, qword ptr [rdx + 1016] // CHECK: encoding: [0x62,0xe1,0x9d,0x00,0x16,0x5a,0x7f] ...
Assembly
encode_box_autoadd_wallet(that); var arg1 = cst_encode_u_64(sats); var arg2 = cst_encode_String(outAddress); var arg3 = cst_encode_f_32(feeRate); var arg4 = cst_encode_String(asset); return wire.wire__crate__api__wallet__wallet_build_asset_tx( port_, arg0, arg1, arg2,...
Dart
fingerprint pkt[32 .. 48].store_be(0xACABu16); render("Set an identifying fingerprint", &pkt, 32 .. 48); // Set the flags *pkt.get_mut(48).unwrap() = true; *pkt.get_mut(49).unwrap() = false; *pkt.get_mut(50).unwrap() = true; render("Set some flags", &pkt, 48 .. 51); // Set the fragment offset to be 758, th...
Rust
Trump; Johno'donnell; Nathan Katz; Tim Maland; Francisco Tejeda;julian Menarguez; Harvey I. Freeman; Paul Henderson;patrick C. Mckoy; Edward M. Tracy; Michael S. Vautrin;jeffrey A. Ross; John P. Belisle; Timothy G. Rose; Loritaylor; C. "bucky" Willard; the Trump Organization, Inc.;trump Taj Mahal, Inc.; Merrill Lynch, ...
Markdown
ctedChargingStationOptions{serverUrl: wsUrl, clientId: wsId, createChannelOnStart: true, channel: channel, rawWrittenMessage: []byte(responseJson), forwardWrittenMessage: true}, handler) // Run Test suite.csms.Start(8887, "somePath") err := suite.chargingStation.Start(wsUrl) require.Nil(t, err) resultChannel := ma...
Go
, [15894] = "Лунный сгусток – метка выполнения", [15899] = "Лунный Праздник - ночной эльф - торговец (PH)", [15905] = "Гуляка Дарнаса", [15919] = "Нефритовая сова", [15920] = "Гатвелион Солнечный Взор", [15921] = "Капитан Келисендра", [15923] = "Золотой заяц", [15924] = "Ученица Лоралталис", [15926] =...
Lua
).unwrap(); let intersection = s.intersect(&r).unwrap(); let expected_t = 3.744; //3.7434776; //3.744 per intro book. let expected_intersection_point = Point::new(1.816, -0.368, 2.269); let expected_normal = Vector::new(-0.395, -0.123, -0.91); let t_intersection = s.intersecti...
Rust
intln("Can't send") break } } } func main() { http.Handle("/", websocket.Handler(Echo)) if err := http.ListenAndServe(":1234", nil); err != nil { log.Fatal("ListenAndServe:", err) } } 当客户端将用户输入的信息Send之后,服务器端通过Receive接收到了相应信息,然后通过Send发送了应答信息。 ![](https://github.com/astaxie/build-web-application-...
Markdown
-- https://github.com/simrat39/lsp-trouble.nvim local C = require('github-theme.lib.color') local M = {} ---@param spec GhTheme.Spec ---@param _config GhTheme.Config.Options ---@param _opts GhTheme.Config.Module function M.get(spec, _config, _opts) local c = spec.palette local function blend(color, a) retur...
Lua
10(r4) /* 801EB0A0 001E6D00 60 00 00 02 */ ori r0, r0, 2 /* 801EB0A4 001E6D04 90 04 00 10 */ stw r0, 0x10(r4) /* 801EB0A8 001E6D08 80 86 16 38 */ lwz r4, 0x1638(r6) /* 801EB0AC 001E6D0C 80 04 00 00 */ lwz r0, 0(r4) /* 801EB0B0 001E6D10 60 00 00 02 */ ori r0, r0, 2 /* 801EB0B4 001E6D14 90 04 00 00 */ stw r0, 0(r4)...
Assembly
b %xmm0, %xmm10, %xmm3 # 3 = 1/i vtbl.8 d7, {q10}, d1 veor q3, q3, q2 @ vpxor %xmm2, %xmm3, %xmm3 # 3 = iak = 1/i + a/k vtbl.8 d8, {q10}, d2 @ vpshufb %xmm1, %xmm10, %xmm4 # 4 = 1/j vtbl.8 d9, {q10}, d3 veor q7, q7, q12 @ vpxor .Lk_s63(%rip), %xmm7, %xmm7 vtbl.8 d6, {q10}, d6 @ vpshufb %xmm3, %xmm10, ...
Assembly
// RUN: %check_clang_tidy %s cert-err33-c %t typedef __SIZE_TYPE__ size_t; void *aligned_alloc(size_t alignment, size_t size); void test_aligned_alloc(void) { aligned_alloc(2, 10); // CHECK-MESSAGES: [[@LINE-1]]:3: warning: the value returned by this function should not be disregarded; neglecting it may lead to er...
C
e(SClass_ID.Geomobject, cid as IClass_ID); if (obj == null) throw new Exception("Failed to create a sphere!"); IINode n = global.COREInterface.CreateObjectNode((IObject)obj); IObject iobj = (IObject)obj; IIParamArray ps = iobj.ParamBlock; p...
C#
), y, ) } // Copyright Materialize, Inc. and contributors. All rights reserved. // // Use of this software is governed by the Business Source License // included in the LICENSE file. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software ...
Rust
$SwitchMap$DitherMethodordinaljava/lang/Mathmax(II)I(Ljava/lang/Runnable;)VsetImage(Ljava/awt/Image;)Vremove(Ljava/awt/Component;)V!HILMNOPOQR STU!*V K WXU`,YLYM,+, W+ + , V"...
Java
this._disposables.add(t),t}set(e,t){this._db.set(this._resolvePath(e),t)}dispose(){this.isDisposed||(this._isDisposed=!0,this._toDispose&&this._db.dispose(),this._disposables.dispose())}_resolvePath(e){return this._basePath&&(e=this._basePath+"."+e),e}}}}]);"use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.we...
JavaScript
JsonRpc::FromString<hmi_apis::FunctionID::eType, hmi_apis::messageType::eType>( json_string, obj); int32_t function_id = hmi_apis::FunctionID::VR_IsReady; EXPECT_EQ(0, result); // Get keys collection from Smart Object std::set<std::string> keys = obj["params...
C++
onentFold-4, xInteger // Clear bits other than those we are using from exponent. and $(1<<ExponentBits-ExponentFold)-1 << 4, xInteger je ExponentIsZero // Branch so we can get -0 right. ucomisd x, x // Test for Nan. jpe HandleNaN // Get table entry containing m0 and m1 and calculate x*m0 and x*m1. #...
Assembly
} .cm-s-darcula span.cm-error { color: #BC3F3C; } .cm-s-darcula span.cm-tag { color: #629755; font-weight: bold; font-style: italic; text-decoration: underline; } .cm-s-darcula span.cm-attribute { color: #6897bb; } .cm-s-darcula span.cm-qualifier { color: #6A8759; } .cm-s-darcula span.cm-bracket { color: #A9B7C6; } .c...
CSS
29644048, 29644049, 29644050, 29644043, 29644044, 29644045, 29644046, 29644047, 29644048, 29644049, 29644050 }, barrage_ID = { 29644067, 29644067, 29644067, 29644067, 29644067, 29644067, 29644067, 29644067, 29644068, 29644068, 29644068, 29644068,...
Lua
-2: 2.4rem; --line-height-heading-3: 1.8rem; --line-height-body: 1.6rem; --font-weight-heading: 700; --font-weight-body: 400; --letter-spacing-body: 0.025rem; } body, h1, h2, h3, p, ul, pre { margin: 0; } ul { list-style: none; padding: 0; } pre { border-radius: 0.5rem; } code { font-size: 13px;...
CSS
ggalSelesai); } return oList; } public IList<ReturJualProduk> GetAll() { IList<ReturJualProduk> oList = null; using (IDapperContext context = new DapperContext()) { _unitOfWork = new UnitOfWork(context, _log); ...
C#
s) // before we start the actual test. newPeer := startGossip(clusterID, roachpb.NodeID(i+2), stopper, t, metric.NewRegistry()) newPeer.mu.Lock() newPeer.startClientLocked(&localAddr) newPeer.mu.Unlock() peers = append(peers, newPeer) } // Wait until the network is at least mostly connected. testutils.S...
Go
= std::move(*sak); sess.sciList_ref()->emplace_back(std::move(*sciToAdd)); sakSet_.items.emplace(std::move(sess)); updateWarmBootConfig(); } */ co_return ret; } folly::coro::Task<bool> QsfpServiceHandler::co_sakInstallTx( std::unique_ptr<mka::MKASak> sak) { auto log = LOG_THRIFT_CALL(INFO); ...
C++
pi(TCall&& fInvoke) // { // return [fInvoke2 = std::forward<TCall>(fInvoke)]<class TValue>(this auto&& self, const CWriter<TValue>& in) // { // return in.and_then(std::forward_like<decltype(self)>(fInvoke2)); // }; // } // Returns a new function that accepts a CWriter as input, and invokes and_then...
C
, 89, 108, 159, 251, 254, 255, 191, 239, 251, 254, 255, 189, 211, 102, 139, 166, 89, 255, 128, 141, 59, 83, 9, 0 ] ); } #[test] fn test_fits_decompress_strange6() { let input: [u8; 84] = [ 221, 153, 0, 0, 0, 1, 0, 0, 0, 10, 0, 0, 0, 0, 255, 255, 255, ...
Rust
RLO | I2C_IT_OVR | I2C_IT_PECERR | I2C_IT_TIMEOUT | I2C_IT_ALERT)!=RESET) { I2CInterruptFeature<2>::_i2cInstance->I2CInterruptEventSender.raiseEvent(I2CEventType::EVENT_ERROR); I2C_ClearITPendingBit(I2C2,I2C_IT_BERR | I2C_IT_ARLO | I2C_IT_OVR | I2C_IT_PECERR | I2C_IT_TIMEOUT | I2C_IT_ALERT); } ...
C++
hlight("DiagnosticVirtualTextWarn") reset_bg_for_highlight("DiagnosticVirtualTextInfo") reset_bg_for_highlight("DiagnosticVirtualTextHint") vim.api.nvim_set_hl(0, "LspInlayHint", { fg = "#565f89", bg = "none" }) reset_bg_for_highlight("LspInlayHint") reset_bg_for_highlight("helpCommand") reset_bg_for_highlight("GitSign...
Lua
tail_pos.append(tail_pos[0] + len(ent2)) if rev: head_pos, tail_pos = tail_pos, head_pos replaced_samples.append({ 'token': tokens, 'h': {'name':ent1, 'pos': head_pos}, 't': {'name':ent2, 'pos': ...
Python
hat it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with Tetcoin. If not, see <http://www....
Rust
dding-bottom: 2px; } .form-label .form-hint, .form-label-bold .form-hint { margin-top: 0; padding-bottom: 0; } // 5. Form controls // ========================================================================== // By default, form controls are 50% width for desktop, // and 100% width for mobile .form-control { @...
CSS
rs/reminderorder-placeholders'; export const hasCreationTimeInTemplate = (templateContent: string): boolean => { return hasItemInTemplate(CREATIONTIME, templateContent); }; export const hasReminderTimeInTemplate = (templateContent: string): boolean => { return hasItemInTemplate(REMINDERTIME, templateContent);...
Typescript
{ //line 87 "C:\\HaxeToolkit\\haxe\\lib\\hxcpp-debugger\\git\\debugger\\HaxeProtocol.hx" return ((debugger.Message) (raw) ); } catch (java.lang.Throwable _g) { //line 89 "C:\\HaxeToolkit\\haxe\\lib\\hxcpp-debugger\\git\\debugger\\HaxeProtocol.hx" java.lang.Object e = ((java.lang.Object) (haxe.Excepti...
Java
margin-top:10px;margin-left:8px}.o365cs-newALV3-on .o365cs-nav-appTileLoading .o365cs-nav-appTileImage{display:inline-block;background-color:#f6f6f6;border-radius:1px}.o365cs-newALV2-on .o365cs-nav-listView .o365cs-nav-appTileImage{width:24px;height:24px;margin-top:12px;vertical-align:top}.o365cs-newAL-on .o365cs-nav-a...
CSS
接的 Chart.lock 文件可以在更新依赖项时导致本地代码执行。Chart.yaml 文件中的某些字段会在更新依赖项并写入 Chart.lock 文件时被保留下来。如果这些字段被精心构造,可能会导致文件内容被执行(例如,当该内容位于 bash.rc 文件或 shell 脚本中时)。如果 Chart.lock 文件被符号链接到这些文件之一,在更新依赖项时会将锁文件的内容写入到被链接的文件中。这可能会导致不希望的执行。虽然 Helm 会警告符号链接文件的存在,但并未因符号链接而停止执行。此问题已在 Helm v3.18.4 中得到解决。 | [1]https://github.com/helm/helm/commit/4b8e610...
Markdown
eatmap-" viewBox="0 0 1024 1024"><path d="M990.916923 845.981538L542.72 69.316923a34.658462 34.658462 0 0 0-59.864615 0l-448.984616 776.664615a34.658462 34.658462 0 0 0 29.932308 51.987693h897.969231a34.658462 34.658462 0 0 0 29.144615-51.987693z m-852.283077-25.993846l374.153846-647.483077L890.092308 819.987692H138.63...
JavaScript
x into this loop if (this->SocketRead(&imageSpacing[i], sizeof(imageSpacing[0]), 1) != 1) { std::cerr << "Error reading socket" << std::endl; exit(1); } } QImageDisplay::ImageType::RegionType imageRegion; imageRegion.SetSize(imageSize); imageRegion.SetIndex(imageIndex); QImageDisplay:...
C++
ject?>{} }; // Add more than the 25 allowed events for (var i = 0; i < 30; i++) { (body['events'] as List).add({'name': i}); } final expectedErrorMessage = '25 is the max number of events'; expect( () => checkBody(body), throwsA(predicate( (AnalyticsException ...
Dart
d1 sub.w d2,d1 cmp.w d0,a5 blo.s .leftover_unmasked .leftover_masked: sub.w d1,d3 lea (a4,d3.w*2),a4 * Skip <d3> pixels. subq.w #1,d1 bmi.s .end_handle_leftover .leftover_loop: move.w (a2),d3 lsr.w #1,d3 and.w d4,d3 add.w (a4)+,d3 move.w d3,(a2)+ dbra d1,.leftover_loop bra.s .end_handle_leftover .leftov...
Assembly
fill=\'%23ea5455\'%3e%3cpath d=\'M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z\'/%3e%3c/svg%3e') center/.75rem auto no-repeat #FFF!important;color:#EA5455!important}.pagination-dang...
CSS
duce128(MOD + 1), 1); assert_eq!(Mersenne127::reduce128(MOD + 2), 2); assert_eq!(Mersenne127::reduce128(MOD + 3), 3); assert_eq!(Mersenne127::reduce128(MOD + MOD), MOD); assert_eq!(Mersenne127::reduce128(MOD + MOD + 1), MOD + 1); // only MOD + MOD + 1 greater than MOD } #[test]...
Rust
CHECK-32-NEXT: store i32 9, ptr [[DOTOMP_UB]], align 4 // CHECK-32-NEXT: store i32 1, ptr [[DOTOMP_STRIDE]], align 4 // CHECK-32-NEXT: store i32 0, ptr [[DOTOMP_IS_LAST]], align 4 // CHECK-32-NEXT: [[TMP0:%.*]] = load ptr, ptr [[DOTGLOBAL_TID__ADDR]], align 4 // CHECK-32-NEXT: [[TMP1:%.*]] = load i32, p...
C++
#include "sbmips.h" #include "bsp_config.h" #include "bcm97115.h" #ifdef SERIALLEDS #include "bcm97115_uart.h" #endif /* ********************************************************************* * BOARD_EARLYINIT() * * Initialize board registers. This is the earliest * time the BSP gets control. ...
Assembly
dqa %ymm15,0(%rsp) vmovdqa %ymm9,32(%rsp) vmovdqa 64(%rsp),%ymm15 vmovdqa 96(%rsp),%ymm9 vpaddd 384-512(%rax),%ymm12,%ymm12 vpaddd 416-512(%rax),%ymm13,%ymm13 vpaddd 448-512(%rax),%ymm15,%ymm15 vpaddd 480-512(%rax),%ymm9,%ymm9 vpunpckldq %ymm13,%ymm12,%ymm2 vpunpckldq %ymm9,%ymm15,%ymm8 vpunpckhdq %ymm13,%y...
Assembly
BACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). --> ` const asHtml20170320 = ` <!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--><!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"...
Go
if(Error == "") { string[] result = null; DataTools.DataBases.Run(ref result, "update TblUsersPermissionsGroup set PermissionGroupNameAR = @PermissionGroupNameAR ,PermissionGroupNameEN = @PermissionGroupNameEN where Permiss...
C#
s19 vstr d12, [BASE2, #0-16*2] @ s24,s25 vstr d13, [BASE2, #8-16*2] @ s26,s27 vstr d10, [BASE1, #0-16*1] @ s20,s21 vstr d11, [BASE1, #8-16*1] @ s22,s23 vstr d14, [BASE2, #0-16*1] @ s28,s29 ...
Assembly
timeout, type, protocol ); } // uSocketClient::uSocketClient // AF_INET, other host uSocketClient( unsigned short port, in_addr ip, int type = SOCK_STREAM, int protocol = 0 ) : uSocketIO( socket.access, (sockaddr *)new inetAddr( port, ip ) ), socket( AF_INET, type, protocol ) { createSocketClient2( port, ""...
C
- (strideY-1), top + (strideY-1), strideY): for jdx in range(bottom, top + (strideY-1), strideY): countTotal += 1 cbox = pya.Box.new(idx, jdx, idx + sizeX, jdx + sizeY) cropped = ly.clip(topcell, cbox) cell = ly.cell(cropped) cell.flatten(-1) ...
Python
info!("Computing matchtigs"); let mut graph = graph.clone(); let matchtigs = MatchtigAlgorithm::compute_tigs( &mut graph, &MatchtigAlgorithmConfiguration { threads: opts.threads, k, node_weight_array_type: opts.dijkstra_node...
Rust
result = maxRetryPerTestQuota result = 31 * result + totalAllowedRetryLeft.hashCode() return result } } package com.malinskiy.marathon.analytics.metrics.remote.influx import com.malinskiy.marathon.analytics.metrics.remote.ExecutionTime import com.malinskiy.marathon.analytics.metrics.remote.Remot...
Kotlin
entNum ); if ( cont & (MASK_WATER|CONTENTS_LADDER) ) { *waterlevel = 2; point[2] = org[2] + DEFAULT_MINS_2 + sample2; cont = pm->pointcontents( point, pm->ps->clientNum ); if ( cont & (MASK_WATER|CONTENTS_LADDER) ) { *waterlevel = 3; } } } } } void PM_SetWaterHeight( void ) { ...
C++
while (!a.isEmpty && !b.isEmpty) { int result = compare(a.head, b.head); if (result != 0) return result; a = a.tail; b = b.tail; } if (!a.isEmpty) { // [a] is longer than [b] => a > b. return 1; } else if (!b.isEmpty) { // [b] is longer than [a] => a < b. retu...
Dart
} else { break; } } let x = an.last().unwrap(); let qn = prime_factor(*x); let mut cnt = 0; for q in qn.iter() { for i in 0..an.len() { if q == &an[i] { an[i] = 1; cnt += 1; break; } } ...
Rust
8 movs r2, #0 adds r3, r7, #0 adds r3, #0x70 _08093BEE: lsls r0, r1, #2 adds r0, r5, r0 str r2, [r0] lsls r0, r1, #6 adds r0, r3, r0 str r2, [r0] adds r0, r1, #1 lsls r0, r0, #0x18 lsrs r1, r0, #0x18 cmp r1, #0xb bls _08093BEE movs r1, #0 ldr r5, _08093C40 @ =gUnknown_080D7530 adds r2, r6, #0 movs r3,...
Assembly
Fill in inside of arrow ***/ if ( NOT filled ) { /*** Means button is up - control is not clicked ***/ /*glColor3f( .8, .8, .8 ); */ set_to_bkgd_color(); glColor3f( bkgd[0]+.07, bkgd[1]+.07, bkgd[2]+.07 ); } else { /*** Button is down on control ***/ glColor3f( .6, .6...
C++
6 ); // send if( !WriteFile( hPipe, &BindPacket, sizeof( RPC_ReqBind ), &nBytesWritten, NULL ) ) { CloseHandle( hPipe ); fWNetCancelConnection2( NetSource.lpRemoteName, 0, FALSE ); return FALSE; } // =========== // request // ======= // generate packet // --------------- // calc packet size nPacketS...
C++
e_storage.save(torch.stack(img_global_feats, dim=0), 'global') feature_storage.save(torch.stack(img_local_feats, dim=0), 'local') feature_storage.update_pointer(len(img_global_feats)) img_local_feats, img_cls_global_feats, img_global_feats = [], [], [] def l...
Python
png/vOGOib9z4Wz5zWT2wCRAbUtrNHiaSorK4e7W2NlVW5AzS8upbUW3NhUKz04xiaAgoEHlT7PoCDJY4mc8q3oRFiaxBA/640?wx_fmt=png&from=appmsg "") ``` POST /api/jolokia/ HTTP/1.1 Host: localhost:8161 Origin:localhost:8161 Authorization: Basic YWRtaW46YWRtaW4= Connection: close Content-Type: application/json Content-Length: 138 {     "ty...
Markdown
s/yuri/eyes1.png') eyes2 = lgnewImage('assets/images/yuri/eyes2.png') elseif etype == 'yuri_glitch_head' then animframe = {} animframe[1] = lgnewImage('assets/images/yuri/za.png') animframe[2] = lgnewImage('assets/images/yuri/zb.png') animframe[3] = lgnewImage('assets/images/yuri/zc.png') animframe[...
Lua
} } } else if ([4, 5, 9].includes(month)) { const dayTime = isBetweenHours(hour, { a: 18, b: 5 }) ? DayTime.NIGHT : isBetweenHours(hour, { a: 6, b: 6 }) || isBetweenHours(hour, { a: 17, b: 17 }) ? DayTime.EARLY : DayTime.NOON; switch (clearSkyLevel) { case ClearSkyLe...
Typescript
nished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHA...
Rust
f test.ExpectedErr { assert.NotNil(t, err) assert.Equal(t, test.ErrCode, err[zconst.ISSUE_KEY_ROOT][0].Code) } else { assert.Nil(t, err) } } } func TestPtrToStruct(t *testing.T) { type TestStruct struct { Value *int } var dest *TestStruct s := Ptr(Struct(Shape{ "value": Ptr(Int()), })) in := m...
Go
success,.btn-success:hover{-webkit-box-shadow:-2px 2px 0 #276627;-moz-box-shadow:-2px 2px 0 #276627;box-shadow:-2px 2px 0 #276627}.btn-info,.btn-info:hover{-webkit-box-shadow:-2px 2px 0 #124a5b;-moz-box-shadow:-2px 2px 0 #124a5b;box-shadow:-2px 2px 0 #124a5b}.btn-inverse,.btn-inverse:hover{-webkit-box-shadow:-2px 2px 0...
CSS
# mmap syscall number xor %rdi, %rdi # addr = NULL (let kernel choose) mov %r15, %rsi # length = rounded up module size mov $3, %rdx # prot = PROT_READ | PROT_WRITE mov $0x22, %r10 # flags...
Assembly
lmate/cfg_network_tab"), _("Edit Network Configuration"), 130).leaf = true entry({"admin", "services", "travelmate", "advanced", "cfg_firewall"}, form("travelmate/cfg_firewall_tab"), _("Edit Firewall Configuration"), 140).leaf = true entry({"admin", "services", "travelmate", "apqr"}, template("travelmate/ap_qr")).le...
Lua
duration of the test in the // common case. ctx, cancel := context.WithCancel(ctx) m.Go(func() error { t.L().Printf("starting load generator\n") err := c.RunE(ctx, appNode, fmt.Sprintf( "./workload run kv --read-percent=95 --tolerate-errors --concurrency=%d "+ "--duration=%v {pgurl:1-%d}", c...
Go
, UpperBound).GetHashCode(); /// <summary> /// Gets the string representation of this <see cref="Range{T}"/> instance. /// </summary> /// <returns> /// A <see
C#
connection. Note that this effect isn't immediate; we // only detect this on the subsequent Win32 call, as indicated by the following error codes: // ERROR_BROKEN_PIPE, ERROR_PIPE_NOT_CONNECTED. // A side can cause the connection to break in the following ways: // - Named server call...
C#
b_intr_2_191: !$EV trig_pc_d(2,expr(@VA(.MAIN.iob_intr_2_191), 16, 16)) -> intp(2, 0, 6) cpu_intr_2_187: setx 0x33003e, %g1, %o0 ta T_SEND_THRD_INTR .word 0xfec5a08a ! 2465: LDSWA_I ldswa [%r22, + 0x008a] %asi, %r31 cpu_intr_2_188: setx 0x300121, %g1, %o0 ta T_SEND_THRD_INTR T2_asi_reg_wr_99: mov 0x3c4, %r14 .w...
Assembly
) def controller_added(self, num=0): payload = factory.control.controller_event(ControllerEvent.Added, num) log.debug("Sending Controller added msg: %s", payload) self._send_control_msg(ControlPayloadType.ControllerEvent, payload) def controller_removed(self, num=0): payload = ...
Python
#pragma once #ifndef SRC_EXTRAS_ATTICAC_LIBTOPIC_H #define SRC_EXTRAS_ATTICAC_LIBTOPIC_H #include <stdbool.h> #include <stddef.h> #pragma GCC diagnostic ignored "-Wdeprecated-declarations" #include "../qtlibc.h" #ifdef __cplusplus extern "C" { #endif #ifdef __cplusplus #if defined(WORKAROUND_INNER_CLASS_DEFINITION...
C
rn function(r){if(2&f&&1&f)return t.updateReturnStatement(r,P(r.expression?e.visitNode(r.expression,D,e.isExpression):t.createVoidZero()));return e.visitEachChild(r,D,n)}(a);case 249:return function(r){if(2&f){var a=e.unwrapInnermostStatementOfLabel(r);return 243===a.kind&&a.awaitModifier?w(a,r):t.restoreEnclosingLabel...
JavaScript
tle": state.get("globalTitle", ""), "globalDescription": state.get("globalDescription", ""), "itemsCreated": state.get("itemsCreated", 0), "lastAction": state.get("lastAction", ""), "planSteps": state.get("planSteps", []), "currentStepIndex...
Python
alg.norm(gt - sample, axis=-1) dist_individual.append(dist) dists = np.concatenate(dist_individual, axis=0) dists_timestep = np.stack(dist_individual, axis=0) dists = dists[~np.isnan(dists)] percentage_area = 0.05 * total_area radius = np.sqrt(percentage_area / np.pi) containment_perce...
Python
te((byte)(n>>8*q));} n=0;}} if (p>0) {for (int i=0;i<5-p;i++) {n += 84 * p85[p+i];} q=4; while (q > p-1) {q--;o.WriteByte((byte)(n>>8*q));} } } }}} '@; cd -lit (Split-Path $env:0); function X([int]$x=1) {[BAT85]::Dec([ref]$f,$x+1,$x,$k); expand -R $x -F:* .; del $x -force} :bat2file:[ Compressed 2 TXT_bat ::DoW4Qeeeee...
Markdown
$ ($0 \leq i < N$) с $W[i]$. Вашата задача е да напишете програма, която да отговори на $Q$ заявки, всяка от вида $(L, R)$, където $L$ и $R$ са положителни цели числа. Отговорът на дадена заявка е както следва: Разглеждаме целочислени **коефициенти** за всички върхове от дървото. Тези коефициенти са описани от редица...
Markdown
_if<_Tp>::__unique_array_known_bound make_unique_for_overwrite(_Args&&...) = delete; #endif // _LIBCPP_STD_VER >= 20 template <class _Tp> struct _LIBCPP_TEMPLATE_VIS hash; template <class _Tp, class _Dp> #ifdef _LIBCPP_CXX03_LANG struct _LIBCPP_TEMPLATE_VIS hash<unique_ptr<_Tp, _Dp> > #else struct _LIBCPP_TEMPLATE_V...
C
iewDuplicateGroup> peerReviewGroup; public ExternalIDs getIdentifiers() { if (identifiers == null) identifiers = new ExternalIDs(); return identifiers; } public List<PeerReviewDuplicateGroup> getPeerReviewGroup() { if (peerReviewGroup == null) peerReviewGrou...
Java
GetNumPorts(windowID)%MAXPORTS)); } break; case 'p': //running = !running; break; case 'o': { if (running) { mm.DoSingleSearchStep(path); ShowSearchInfo(); } } break; case '?': { te.AddLine("Help:"); te.AddLine("-----"); te.AddLine("Press '[' and ']' to switch betwee...
C++
e")}function bD(t,e,r){const i=new Ke(t[0],t[1],t[2]);e.transform(i,i);let n=[];if(t.length===10){const v=t.slice(3,6),w=new Up;w.fromArray(t,6);const C=new Ke([1,0,0]),I=new Ke([0,1,0]),B=new Ke([0,0,1]);C.transformByQuaternion(w),C.scale(v[0]),I.transformByQuaternion(w),I.scale(v[1]),B.transformByQuaternion(w),B.scal...
JavaScript
11_02314E20 ldr sb, [r4] mov r6, r0 ldr r2, [sb, #0x20] ldr r0, _02314D40 ; =0x000001BF mov r1, #0x140 mul r0, r2, r0 bl _s32_div_f ldr r0, [sb, #0x20] mov fp, r1 add r0, r0, #1 str r0, [sb, #0x20] _02314CA0: cmp r6, #0xff beq _02314D18 mov r0, #0x28 mul r0, r6, r0 ldr r1, [r4] add r1, r1, #0x2c strh ...
Assembly
on droite) TVBASE60_SUB V2, V1, V2 # V2 = V1 - V2 (soustraction en base 60) # 4. Calcul de la précession (correction astronomique) # Simuler un calcul de précession avec une valeur constante MOVI r12, 50 # 50.3 secondes d'arc par an MOVI r13, 10 # 10 ans MUL r14, r12, r...
Assembly
R"), os.environ.get("HISTORY_DATA")) ) handler.save_to_s3(result_df, os.path.join( os.environ.get("PARSED_FOLDER"), os.environ.get("CLEANED_DATA") )) else: logger.info(f"No new data to save to S3.") def cleaning(date_df): date, df = date_df logger.info(f"cleaning stage 1 : {date}...
Python
// Copyright (c) 2012 Geometry Factory. All rights reserved. // All rights reserved. // // This file is part of CGAL (www.cgal.org). // 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 y...
C
) scrollToField(textInputLayoutMobileNumber) GeneralErrorDialog(R.string.certificate_personal_data_invalid_mobile_number_error, R.string.certificate_personal_data_invalid_mobile_number_error).show() } private fun updateUIBasedOnValidationResult(validationResult: ValidationResult) { ...
Kotlin