content
stringlengths
2
6.21k
label
stringclasses
16 values
Object.values(events).forEach(domain => { Object.values(domain).forEach(eventName => { if (this[eventName]) this.eventEmitter.addListener(eventName, this[eventName]) }) }) } public dispatch(event: string, payload: any): void { this.eventEmitter.emit(even...
Typescript
4481A000 */ mtc1 $at, $f20 ## $f20 = 100.00 /* 00CE8 80B8DD38 4480F000 */ mtc1 $zero, $f30 ## $f30 = 0.00 /* 00CEC 80B8DD3C 00009025 */ or $s2, $zero, $zero ## $s2 = 00000000 /* 00CF0 80B8DD40 02208025 */ or $s0, $s1, $zero ## $s0 = 00000000 /* 00C...
Assembly
mestamp : "";') html.append(' summaryDiv.innerHTML = `<div style="color:#00ff41;"><b>摘要</b></div><div style="color:#00ff41;">事件數量: ${evts.length} | 總變更數: ${totalChanges}</div><div style="color:#006600;">時間範圍: ${earliestTime} 至 ${latestTime}</div>`;') html.append(' }') html.append(' ...
Python
�像仓库。 有关如何在 Rancher 安装期间设置私有镜像仓库的说明,请参阅[离线安装指南](../../../getting-started/installation-and-upgrade/other-installation-methods/air-gapped-helm-cli-install/air-gapped-helm-cli-install.md)。 ::: 私有镜像仓库是集群中私有、一致且集中的容器镜像源。你可以使用私有容器镜像仓库,在组织内共享自定义基础镜像。 在 Rancher 中设置私有镜像仓库主要有两种方式: * 通过全局视图中的 **Settings** 选项卡设置全局默认镜像仓库。 * 在集...
Markdown
33.3638359], [-70.7356079, -33.3638234], [-70.735734, -33.3637759], [-70.7358686, -33.3637132], [-70.7360285, -33.3636269], [-70.736245, -33.3634951], [-70.7365269, -33.3633261], [-70.7365653, -33.3633031], [-70.7367283, -33.3632603]], "type": "LineString"}, "id": "5842", "properties": {"SEV_Index": 2, "color": "#f9ffb...
HTML
> <p> 日期:1957-6-4 作者:《人民日报》社论 </p> <em> 《人民日报》社论 </em> <p> 国务院今天发表了“关于进一步开展增产节约运动的指示”,这是很适时的。一切国家机关、事业和企业单位以及全国人民应该按照这个指示,共同努力,开展一个普遍的、深入的增产节约运动。 </p> <p> 今年的增产节约运动已经有了初步的效果;但是,运动的发展还是不平衡的。为了保证本年度国民经济计划和国家预算的执行,现在进一步开展增产节约运动是十分必要的。 </p> <p> 国务院的指示中特别指出:“进一步开展增产节约运动的主要关键,是各级领导干部根据中共中央的指示...
HTML
r(3)) require.ErrorIs(t, err, ErrMaxDepthReached) require.Equal(t, "2", os.Getenv(parentShared)) require.Equal(t, "1", os.Getenv(parentOnly)) } func Test__searchAndLoadEnvSameLevel(t *testing.T) { registerCleanupEnv(t) cwd, err := os.Getwd() require.NoError(t, err) testdata := filepath.Join(cwd, "testdata") st...
Go
, _annotations = arg.partition(" ") if _annotations.startswith("(") and _annotations.endswith(")"): arg = arg_name arg_descriptions[arg] = desc.strip() elif arg: arg_descriptions[arg] += " " + line.strip() return description, arg_descri...
Python
rom(buf); unsafe { Pin::new_unchecked(&mut future) } .poll(cx) .map(|r| match r { Ok((r, _)) => Ok(r), Err(e) => Err(e), }) } } impl AsyncWrite for UtpStream where Self: Unpin, { fn poll_write( mut self: Pin<&mut Self>, ...
Rust
[ number ]] suggestedGroup = suggestedGroup; --[[ boolean ]] isHeader = isHeader; --[[ boolean ]] isCollapsed = isCollapsed; --[[ boolean ]] isComplete = isComplete; --[[ Enum.QuestFrequency ]] frequency = frequency; --[[ number ]] questID = questID; --[[...
Lua
.l #4,a5 nowh subq.l #1,a5 bsr.l get_value tst.l d5 blt err_op moveq #0,d0 tst.l d6 sne d0 move.l adont_asm(pc),a0 move.w dont_asm(pc),(a0)+ move.l a0,adont_asm move.w d0,dont_asm bra ins_end noifeq: ifle: move.l (a5),d0 or.l #$20202020,d0 cmp.l #'ifle',d0 bne noifle entire 4(a5),noifle addq.l #4,a5 ...
Assembly
_new__ of type object at 0x7569a0&gt;<dd><tt>T.<a href="#Query-__new__">__new__</a>(S,&nbsp;...)&nbsp;-&gt;&nbsp;a&nbsp;new&nbsp;object&nbsp;with&nbsp;type&nbsp;S,&nbsp;a&nbsp;subtype&nbsp;of&nbsp;T</tt></dl> <dl><dt><strong>fromkeys</strong> = &lt;built-in method fromkeys of type object at 0xcd0b80&gt;<dd><tt><a href...
HTML
= formatter(); o.validate = function(v) { var reg = /^[0-9]+$/; if (!reg.test(v)) throw xlate("%s must be a number.",this.label); if (v.asInt()<lo || v.asInt()>hi) throw xlate("%s must be between %s and %s.",this.label,lo,hi); return v; } return o; } ...
JavaScript
21l.19-1.32c.3-.13.59-.29.84-.49l1.25.5c.11.04.24 0 .31-.11l1-1.73c.06-.11.03-.24-.06-.32l-1.07-.83zm-3.71 1.01c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z" /></g> <g id="perm-device-information"><path d="M13 7h-2v2h2V7zm0 4h-2v6h2v-6zm4-9.99L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9...
HTML
" exep4: dc.b "instruction illgale" exep5: dc.b "division par zro " pasbon: dc.b "Ce n'est pas un mot utitlisateur",0 else w_titre: dc.b "My Good FORTH " VERSION dc.b 0,0 w_edit: dc.b "My Good Editor",0,0 bloc0: dc.b " No block selected",0 bloc1: dc.b " A block is selected",0 even avert: dc.b "[2][ Insery the ...
Assembly
e, v1: Double, t2: Double, v2: Double, t3: Double, v3: Double ): Double = TODO() /** * Простая (2 балла) * * Нa шахматной доске стоят черный король и две белые ладьи (ладья бьет по горизонтали и вертикали). * Определить, не находится ли король под боем, а если есть угроза, то от кого именно. * Вернуть 0, ...
Kotlin
scripts allow-same-origin' // fails if bad // 28) Test that a sandboxed iframe can't open a new window using the target.attribute for a // non-existing browsing context (BC341604). // This is done via file_iframe_sandbox_c_if4.html which is sandboxed with "allow-scripts" and "allow-same-origin" // the window...
HTML
hHand() } } } } /* * This file is part of LiquidBounce (https://github.com/CCBlueX/LiquidBounce) * * Copyright (c) 2015 - 2025 CCBlueX * * LiquidBounce is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Fre...
Kotlin
Mask(propConfig, DOMPropertyInjection.HAS_BOOLEAN_VALUE); DOMProperty.hasNumericValue[propName] = checkMask(propConfig, DOMPropertyInjection.HAS_NUMERIC_VALUE); DOMProperty.hasPositiveNumericValue[propName] = checkMask(propConfig, DOMPropertyInjection.HAS_POSITIVE_NUMERIC_VALUE); DOMPr...
JavaScript
al_md = additional_metadata selected_metadata = connections.select_catalog_and_fields_via_metadata(conn_id, stream_catalog, annotated_schema, ...
Python
[0] once. - Increase nums2[2] once. The minimum of the sum of square difference will be: (2 - 5)<sup>2</sup> \+ (4 - 8)<sup>2</sup> \+ (10 - 7)<sup>2</sup> \+ (12 - 9)<sup>2</sup> = 43. Note that, there are other ways to obtain the minimum of the sum of square difference, but there is no way to obtain a sum smaller ...
Markdown
\n return getBlockParser(e).getNodeStart(t, n);\n};\n", "3055617": "Object.defineProperty(exports, \"__esModule\", {\n value: !0,\n});\nexports.rebuildTree =\n exports.foldTree =\n exports.visitTreeConditionally =\n exports.visitTree =\n exports.resetLineNumbers =\n exports.mapLabels =\n exports.clearLabels...
JavaScript
CAPLOK, {'k', 'K', 0x0b, 0x0142} }, { 'L', CAPLOK, {'l', 'L', 0x0c, 0x0141} }, { 'M', CAPLOK, {'m', 'M', 0x0d, WCH_NONE} }, { 'N', CAPLOK, {'n', 'N', 0x0e, '}'} }, { 'O', CAPLOK, {'o', 'O', 0x0f, WCH_NONE} }, { 'P', CAPLOK, {'p', 'P', 0x10, '\''} }, { 'Q', CAPLOK, {'q', 'Q', 0x11, '\\'} }, ...
C++
() : artwork : await AudioTagger.extractThumbnail(filePath); if (image == null || image.isEmpty) { await writeDefaultThumbnail(filePath); return thumbnailFile(filePath); } if ((await thumbnailFile(filePath).exists())) { await thumbnailFile(filePath).delete(); await thum...
Dart
)); dest=$arg27$i+0|0; stop=dest+40|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0)); $669 = $$in$i$i; $670 = $669; $671 = HEAP32[$670>>2]|0; $672 = (($669) + 4)|0; $673 = $672; $674 = HEAP32[$673>>2]|0; $675 = $$in$i$i; $676 = $675...
JavaScript
cGFudHM= IHNwYXduaW5n RXhwZXJ0cw== IEludmVzdG9ycw== IEFuYXJjaHk= IHNocnVuaw== IFZpY3RpbQ== IDI4OQ== IGVjc3Rhc3k= IEJpbmRpbmc= NTg1 IE1lbG9keQ== NTc4 b3RhbGx5 IEV0c3k= bGlnYQ== IGFwcGxhdWRlZA== IHN3ZWF0aW5n IHJlZGlzdHJpYnV0ZWQ= IHBvcGNvcm4= IHNlbWluYWw= ZnVy IE5ldXJvc2NpZW5jZQ== UmFuZA== IE9zdA== IE1hZGRlbg== IEluY3JlY...
JavaScript
; width: 82.2916667%; padding: 1.5625% 1.041666667%; } .list article.drop div.drop-content { float: left; width: 75.9493671%; } .drop-discussion.list article.drop div.drop-content { width: 58.2278481%; } .list article.drop div.drop-details { float: left; clear: none; width: 21.5189873%; bo...
CSS
, } ) func (x CVSS_Impact) Enum() *CVSS_Impact { p := new(CVSS_Impact) *p = x return p } func (x CVSS_Impact) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (CVSS_Impact) Descriptor() protoreflect.EnumDescriptor { return file_grafeas_v1_cvss_proto_enumTypes...
Go
-------------------------------------------------------------------------------------------------------------------------- void PsxPatch::writeToWmdFile(OutputStream& out) const THROWS { WmdPsxPatch psxPatch = {}; psxPatch.numVoices = numVoices; psxPatch.firstVoiceIdx = firstVoiceIdx; psxPatch.endianCo...
C++
; } ttceBackend = value; Save(); } } [SerializeField] bool displayVRAMIcon = true; public bool DisplayVRAMIcon { get => displayVRAMIcon; set { if (displayVRAMIcon == value) { return; } ...
C#
ce(flags, integer_types): raise TypeError('an integer is required') if not isinstance(sockaddr, tuple): raise TypeError('getnameinfo() argument 1 must be a tuple') address = sockaddr[0] address = self._hostname_to_bytes(sockaddr[0]) if address in self._LOCAL_AND...
Python
/* -*- mode: c++; indent-tabs-mode: nil -*- */ /* Qore Programming Language Copyright (C) 2003 - 2023 David Nichols Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, ...
C
base16-decaf .hljs-doctag, .theme-base16-decaf .hljs-quote, .theme-base16-decaf .hljs-keyword.hljs-atrule, .theme-base16-decaf .hljs-regexp { color: #bed6ff; } .theme-base16-decaf .hljs-function .hljs-title, .theme-base16-decaf .hljs-attribute, .theme-base16-decaf .ruby .hljs-property, .theme-base16-decaf .hljs-title....
CSS
] | 0; do if (b | 0) if (b >>> 0 < d >>> 0) ia(); else { c[m + 16 >> 2] = b; c[b + 24 >> 2] = m; break; } while (0); a = c[a + 4 >> 2] | 0; if (a | 0) if (a >>> 0 < (c[19110] | 0) >>> 0) ia(); else { c[m + 20 >> 2] = a; c[a + 24 >> 2] = m; break; }...
JavaScript
folders": [ { "host_path": "C:\\projects", "read_only": false } ] } } ``` **Response:** ```json { "id": "sandbox-12345", "name": "test-sandbox", "status": "running", "ip_address": "172.16.0.2", "console_url": "ws://localhost:8000/ws/sandbox/sandbox-12345/console", "create...
Markdown
[MAX_PATH]; _splitpath(pShape->FileName().c_str(), nullptr, nullptr, szFName, nullptr); m_ListShape.InsertString(i, szFName); m_ListShape.SetItemDataPtr(i, pShape); } } } void CDlgShapeList::SelectObject(void* pItemData) { int nSC = m_ListShape.GetCount(); for(int i = 0; i < nSC; i++) { if(m_ListShape...
C++
Copy(archive, 0x20, data, 0, data.Length); return data; } public void DumpDistributionNestEntries(string path) { var speciesNames = rom.GetStrings(TextName.SpeciesNames); var itemNames = rom.GetStrings(TextName.ItemNames); var moveNames = rom.GetStrings(TextName.MoveNames); ...
C#
} /* Get the catalog */ Catalog = WsProcGetNsCatalog(Process); _SEH2_TRY { /* Setup the context */ Context.ProviderId = *lpProviderId; Context.ProviderDllPath = lpszProviderDllPath; Context.ProviderDllPathLen = *lpProviderDllPathLen; Context.FoundPathLen = 0; ...
C
ake Data Generator" /> <meta name="twitter:description" content="A robust data generator for Python, capable of rapidly producing large volumes of synthetic data for various use cases." /> <meta name="twitter:image" content="https://mimesis.name/en/master/_static/preview.png" /> {% endblock %} <!-- Makes logo ...
HTML
endarticle--> <HR> <P><UL> <!--threads--> <LI>Next message: <A HREF="002787.html">[cxx-abi-dev] N4198 and mangling for member pointer template arguments </A></li> <LI> <B>Messages sorted by:</B> <a href="date.html#2786">[ date ]</a> <a href="thread.html#2786">[ t...
HTML
Themes to count. func (ts *ThemeService) Count(opts ...Option) (int, error) { ct, err := ts.client.getCount(ts.end, opts...) if err != nil { return 0, errors.Wrap(err, "cannot count Themes") } return ct, nil } // Fields returns the up-to-date list of fields in an // IGDB Theme object. func (ts *ThemeService) F...
Go
e+1":"el pr\u00f3ximo martes","dayPeriods-format-wide-am":"a. m.","dateFormatItem-EHm":"E, H:mm","field-mon-relative+0":"este lunes","field-mon-relative+1":"el pr\u00f3ximo lunes","dateFormat-short":"d/M/yy","dateFormatItem-MMd":"d/M","dateFormatItem-EHms":"E, H:mm:ss","dateFormatItem-Ehms":"E, h:mm:ss a","field-second...
JavaScript
) local g=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON) return g:CheckSubGroupEach(c25833572.spchecks,aux.mzctcheckrel,tp,REASON_SPSUMMON) end function c25833572.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c) local g=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) local sg=g:SelectS...
Lua
Template.loginPasswordlessAskUsername.events({ 'submit #loginPasswordlessAskUsername': function (event) { var username = event.target.username.value; console.log('username', username); Meteor.setUsername(username, function (err, res) { console.log('setUsername answered', arguments); if(err) ...
JavaScript
%rsp /* p_new_ctx (RDI) is passed as the first argument (RDI) of f_thread. */ /* jump to a f_thread (RSI) */ jmpq *%rsi /* void switch_with_call_fcontext(void *cb_arg, void (*f_cb)(void *), fcontext_t *p_new_ctx, fcontext_t *p_old_ctx); */ .text .globl _switch_with_call_fcon...
Assembly
�手教你部署Solr-7.7.1](https://tycoding.cn/2019/03/05/solr-server/) 如果安装完成,启动Solr服务器,浏览器访问Solr-Admin主页,先吧数据库中的数据导入到Solr中,上面链接的文档中已经介绍了。如果你查询到了这些数据,证明Solr安装成功: ![](doc/1.png) ## 配置 按照 [手摸手教你部署Solr-7.7.1](https://tycoding.cn/2019/03/05/solr-server/) 这篇文章中部署好的服务器,我们可以着手创建springboot_solr项目了。 > 修改`application.yml` ```yaml ...
Markdown
if (!other.isValid) { throw InvalidValueOperationException(other, 'Comparison'); } if (other.width != width) { throw ValueWidthMismatchException(this, other); } if (width > INT_BITS || other.width > INT_BITS) { final a = toBigInt(); final b = other.toBigInt(); final v...
Dart
setsGeometry.lerp(b.insets, insets, t) ?? EdgeInsets.zero, ); } return super.lerpTo(b, t); } @override _UnderlinePainter createBoxPainter([ VoidCallback? onChanged ]) { return _UnderlinePainter(this,onChanged); } } class _UnderlinePainter extends BoxPainter { _UnderlinePainter(this.decorat...
Dart
intFormatItem_ID=trl.AD_PrintFormatItem_ID)" +" WHERE EXISTS (SELECT 1 " +" FROM AD_ELEMENT_TRL e, AD_COLUMN c, AD_PRINTFORMATITEM pfi, AD_PRINTFORMAT pf" +" WHERE e.AD_LANGUAGE=trl.AD_LANGUAGE" +" AND e.AD_Element_ID=c.AD_Element_ID" +" AND c.AD_Column_ID=pfi.AD_Column_ID" +" AND pfi.AD_PrintFo...
Java
import os import io import base64 import zipfile from zeep import Client from zeep.wsse.username import UsernameToken from zeep.exceptions import Fault import requests from requests.exceptions import HTTPError, ConnectionError, Timeout # Directorios base BASE_DIR = "files/facturacion_electronica" DIR_FIRMA = os.path.j...
Python
import pandas as pd import statsmodels.api as sm # type: ignore import matplotlib.pyplot as plt # Load and clean the CSV file file_path = 'bitcoin_data.csv' # Replace with your file path data = pd.read_csv(file_path) # Remove the first row if it contains non-numeric placeholders data = data.drop(0) # Convert column...
Python
local utils = require("yanky.utils") local picker = { actions = {}, } function picker.setup() vim.api.nvim_create_user_command("YankyRingHistory", picker.select_in_history, {}) end function picker.select_in_history() local history = {} for index, value in pairs(require("yanky.history").all()) do value.hi...
Lua
的组织,对别的民族的党员参加当地党组织和担任领导工作采取歧视反对态度,都是绝对错误的。 </p> <h3> 四 </h3> <p> 由於看到以上种种言论和活动的严重性和危险性,中央决定在全国整风运动正在深入开展的时候,在少数民族中也要分别不同情况,进行整风、社会主义教育和适当地反右派斗争,并且把反对地方民族主义作为整风和社会主义教育的一项重要内容。邓小平同志在八大三中全会报告中对此已有明确指示,这里我想谈几点具体意见: </p> <p> 第一、在少数民族中进行整风和反右派斗争,必须慎重地划清地方民族主义者和有某些地方民族主义思想或某种民族偏见的人,划分民旅主义和正当的民族情感等等。地方民族主...
HTML
private var mLastTouchX = 0F private var mAlphaProgress = 0F private lateinit var mAutoSlideAnimator: ValueAnimator private lateinit var mArrowAlphaAnimator: ValueAnimator private lateinit var mTextAnimator: ValueAnimator private lateinit var mLinearGradient: LinearGradient private lateinit var...
Kotlin
using Beef.Demo.Api; using Beef.Demo.Common.Agents; using Beef.Demo.Common.Entities; using NUnit.Framework; using NUnit.Framework.Internal; using System.Linq; using System.Net; using UnitTestEx; using UnitTestEx.Expectations; namespace Beef.Demo.Test { [TestFixture, NonParallelizable] public class GenderTest ...
C#
LIT_OPACITY_FADES_SPECULAR uniform material_alphaFade: f32; #endif #ifdef LIT_SSAO var ssaoTexture : texture_2d<f32>; var ssaoTextureSampler : sampler; uniform ssaoTextureSizeInv: vec2f; #endif // lighting and shadowing declarations #ifdef LIT_SHADOW_CATCHER // a variable to accumulate shadows f...
JavaScript
!=="object"&&H.push(new Ge(S+"[1]",x[1],"object expected, "+I+" found"))}return H}(a)}function st(a,c){var f=a.key,x=a.style,S=a.styleSpec,I=a.value,D=a.objectKey,H=S[c+"_"+a.layerType];if(!H)return[];var Y=D.match(/^(.*)-transition$/);if(c==="paint"&&Y&&H[Y[1]]&&H[Y[1]].transition)return vr({key:f,value:I,valueSpec:S....
JavaScript
print(r''' ******************************************************************************* ............ ........ .......... ........... ... . . ......... . . ........... ........... ........ ......... . . . . . ...
Python
= VerticalAlignment.Stretch }; //DataContext = this; } public static readonly DependencyProperty DemoModelProperty = DependencyProperty.Register( "DemoModel", typeof(PropertyGridDemoModel), typeof(PropertyGrid), new PropertyMetadata(default(PropertyGridDemoModel)));...
C#
V0.16b}, [IN] st1 {BLK0.16b, BLK1.16b, BLK2.16b, BLK3.16b}, [OUT], #64 st1 {BLK4.16b, BLK5.16b, BLK6.16b}, [OUT] .Lcbc_aesdec_finish: st1 {IV0.16b}, [P_IV] mov x0, #0 eor RDK0.16b, RDK0.16b, RDK0.16b eor RDK1.16b, RDK1.16b, RDK1.16b eor RDK2.16b, RDK2.16b, RDK2.16b AARCH64_AUTIASP ret ....
Assembly
. . . . . . . . . FEN: 5R1k/7p/p6B/2p5/4p3/7P/PPP1K1P1/8 b - - 4 25 Last move: f6f8 Checkmate! Player lost.</div></div><div><small>assistant:</small><div class="entry history-assistant">&lt;THOUGHT&gt; The game has concluded with a checkmate, resulting in a loss. Adhering to the primary rule of not losing the game has...
HTML
}); it(`'use strict'; let x, y, z; for (x of ${arg} = z = {});`, () => { t.doesNotThrow(() => { parseSource(`'use strict'; let x, y, z; for (x of ${arg} = z = {});`, undefined, Context.OptionsLexical); }); }); it(`'use strict'; let x, y, z; for (x of x = ${arg} = z = {});`, () => { ...
Typescript
在网络隔离情况下的接口对接工作。 - 基于 SkyWalking + Elasticsearch 搭建分布式链路追踪系统实现全链路监控。 **4、如果你觉得你的项目技术比较落后的话,可以自己私下进行改进。重要的是让项目比较有亮点,通过什么方式就无所谓了。** 项目经历这部分对于简历来说非常重要,[《Java 面试指北》](https://javaguide.cn/zhuanlan/java-mian-shi-zhi-bei.html)的面试准备篇有好几篇关于优化项目经历的文章,建议你仔细阅读一下,应该会对你有帮助。 ![](https://oss.javaguide.cn/zhishixingqiu/4e11dbc842054...
Markdown
msum(pdf, -1) # (N_rays, N_samples), cumulative distribution function return _sample_cdf(bins, cdf, fine_samples, det) def _sample_cdf(bins: torch.Tensor, cdf: torch.Tensor, fine_samples: int, det: bool) -> torch.Tensor: N_rays, N_samples_ = cdf.shape cdf = torch.cat([torch.zeros_like(cdf[:, :1]), cdf],...
Python
ist-style:none;}blockquote,q{quotes:none;}blockquote:before,blockquote:after{content:'';content:none;}q:before,q:after{content:'';content:none;}table{border-collapse:collapse;border-spacing:0;}*{box-sizing:border-box;}img{max-width:100%;}section:before,.main-nav:before,.sub-nav:before,.cb:before,.friends:before,section...
CSS
sphrase) { settings['passphrase'] = passphrase; } if (comment) { settings['comment'] = comment; } go.ws.send(JSON.stringify({'terminal:ssh_gen_new_keypair': settings})); closeDialog(); ssh.loadIDs(); } },...
JavaScript
ust.</font>, </i>cit-v., coc-c., <i><font COLOR="#0000ff">con.</font>, </i>eupho., hep., jatr., jug-r., lach., lact., lyc., mag-c., mang., merc., mez., nat-c., nat-m., nux-v., ox-ac., petr., phos., plan., plat., prun-s., puls., ran-b., <i><font COLOR="#0000ff">rhod.</font>, </i>rhus-v., sel., sil., stry., <i><font COLO...
HTML
attrName] if attrValue ~= nil then attrs['data-' .. attrName] = attrValue end end -- send any explicitly provided attributes for key,val in pairs(attr) do attrs['data-' .. key] = val end local vbDiv = pandoc.Div({}, pandoc.Attr("", {}, attrs)) -- The valuebox icon local showcaseA...
Lua
r<=g&&n>=f&&n<=v&&i>=d&&i<=m},x=10*n.distance(e[0],e[1])/i,b=x*x,_=1,w=0;n.create();r.length>=2&&(_=function(t){for(var e=[],r=[],n=[],i={},a={},o={},s=0;s<t.length;s++){var l=t[s],c=l[0],u=l[1],h=l[2];i[c]||(e.push(c),i[c]=!0),a[u]||(r.push(u),a[u]=!0),o[h]||(n.push(h),o[h]=!0)}var f=p(e),d=p(r),g=p(n),v=Math.min(f,d,...
JavaScript
iter) const { Standard_Integer nbElem1 = ent->NbControlPointsList(); for (Standard_Integer is1 = 1; is1 <= nbElem1; is1++) { iter.GetOneItem(ent->ControlPointsListValue(is1)); } } // Copyright (c) 1999-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // ...
C++
0, #160] str d15, [x0, #168] mov x0, 0 ret _scheme_mz_longjmp ldr x18, [x0, #0] ldr x19, [x0, #8] ldr x20, [x0, #16] ldr x21, [x0, #24] ldr x22, [x0, #32] ldr x23, [x0, #40] ldr x24, [x0, #48] ldr x25, [x0, #56] ldr x26, [x0, #64] ldr x27, [x0, #72] ldr x28, [x0, #80] ldr x29, [x0, #88] l...
Assembly
} } impl Request { pub fn query() -> LazyQuery { LazyQuery::new(requests::table.into_boxed()) } pub fn find(id: i64) -> Result<Self, Error> { Ok(requests::table.find(id).first::<Self>(&db_conn()?)?) } pub fn create(record: impl Into<DirtyRequest>) -> Result<Self, Error> { ...
Rust
["type"] = "npc"; }; }; ["faction"] = "Horde"; ["prequests"] = { [1] = 1506; }; ["level"] = 11; ["source"] = { [1] = { ["id"] = 5875; ["type"] = "npc"; }; }; ["req"] = 10; }; [7842] = { ["faction"] = "Horde"; ["type"] = "PvP"; ...
Lua
type=float, default=1.0, help='variance for gaussian distribution that places individual numbers') parser.add_argument('--enlarge', action='store_true', default=False, help='indicates that you want to enlarge the already existing dataset') args = parser.parse_args() with open(args.svhn_gt) as gt_file: ...
Python
ID_1, min_size: TEST_POLICY_MIN_SIZE_NULL, max_size: TEST_POLICY_MAX_SIZE_NULL, attr_cant_have: TEST_POLICY_ATTRIBUTES_NULL, attr_must_have: TEST_POLICY_ATTRIBUTES_NULL, lock_policy_type: LockPolicyType::NoLock, name: Some(String::from(TEST_VAR_NAME_1)), }); // Set a bad siz...
Rust
a href="#create_field_elems-315"><span class="linenos">315</span></a><span class="w"> </span><span class="sd">&quot;&quot;&quot;</span> </span><span id="create_field_elems-316"><a href="#create_field_elems-316"><span class="linenos">316</span></a><span class="sd"> Sample a scalar field at element centroids using a P...
HTML
gt;Foo&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; This is another regular paragraph. </code></pre> <p>Note that Markdown formatting syntax is not processed within block-level HTML tags. E.g., you can&#39;t use Markdown-style <code>*emphasis*</code> inside an HTML block.</p> <p>Span-level HTML tags -- e.g. <code>&lt;spa...
HTML
b r13,r13 /* ch_vol */ extu.b r0,r0 /* pan */ /* LINEAR_CROSSFADE */ mulu.w r7,r13 mov #0xFF,r1 extu.b r1,r1 sub r0,r1 /* 255 - pan */ sts macl,r7 /* ch_vol * scale */ mulu.w r0,r7 mov.l @(2...
Assembly
} mdMax(self) { display(DisplayStyle.Flex) flexDirection(FlexDirection.Column) alignItems(AlignItems.Center) gap(3.cssRem) } } val feature by style { backgroundColor(GlobalStyle.tertiaryBackgroundColor) borderRadius(GlobalStyle.roundingSection) padding(2.cssRem) display(DisplayStyle.Flex...
Kotlin
} code.doc-symbol { border-radius: .1rem; font-size: .85em; padding: 0 .3em; font-weight: bold; } code.doc-symbol-parameter { color: var(--doc-symbol-parameter-fg-color); background-color: var(--doc-symbol-parameter-bg-color); } code.doc-symbol-parameter::after { content: "param"; } code.doc-symbol-at...
CSS
using System.Linq; using eZet.EveLib.EveXmlModule; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace eZet.EveLib.Test { /// <summary> /// Summary description for MapTest /// </summary> [TestClass] public class Map_Tests { private readonly Map _api = new Map(); [Te...
C#
abled) { Waves.detectAndApply(uiObject); } } } @Override public WavesType getWaves() { return waves; } } /* * #%L * GwtMaterial * %% * Copyright (C) 2015 - 2017 GwtMaterialDesign * %% * Licensed under the Apache License, Version 2.0 (the "License"); * ...
Java
=/alimama.30;locaid=dec29ec81" p-id="1182"></div> </li> <li class="J_icon_id_2979124 icon-item " p-id="1183"> <svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1185" name="wechat" width="16" height="16"> <path d="M917.426 833.958c65.005-47.126 106...
HTML
{}, }, }, Properties: &armnetworkcloud.ClusterProperties{ AggregatorOrSingleRackDefinition: &armnetworkcloud.RackDefinition{ BareMetalMachineConfigurationData: []*armnetworkcloud.BareMetalMachineConfigurationData{ { BmcCredentials: &armnetworkcloud.AdministrativeCredentials{ Password: t...
Go
} } export interface IPermissions { read?: boolean, write?: boolean, moduleEdit?: boolean, security?: boolean, assignTo?: boolean, restrictToAssignedTo?: boolean }import { workspace } from 'vscode'; import * as path from 'path'; const jetpack = require('fs-jetpack'); // VS Code shows an error when having a ty...
Typescript
env" "io" "log" "os" "reflect" "strings" "testing" "time" "cmd/go/internal/cfg" "cmd/go/internal/modfetch/codehost" "golang.org/x/mod/sumdb/dirhash" ) func TestMain(m *testing.M) { os.Exit(testMain(m)) } func testMain(m *testing.M) int { cfg.GOPROXY = "direct" // The sum database is populated using a ...
Go
// Copyright (c) 2021-2023, Dynex Developers // // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are // permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, this list of ...
C
; } header section :first-child { order: 2; } header section :last-child { order: 1; } header nav ul, header nav li { margin: 0; padding: 0; display: block; text-align: right; white-space: nowrap; } header nav ul { margin: 1rem; margin-top: 0; } header nav a { display: block; } @media (min-width: 4...
CSS
of embedding in major advertisements, including ads run by Crest toothpaste, Vaseline, Johnnie Walker Scotch, Kent cigarettes, Calvert whiskey, Bacardi rum, Sprite, and Seagram's Gin. <P> </I><HR> <B><FONT FACE="Arial"><FONT SIZE=+4>Subliminal Advertising</FONT></FONT></B></CENTER> <CENTER><FONT FACE="Arial">...
HTML
를 2개 이상 갖게 되고 이럴 때 인터페이스를 두는 것이 바람직하다고 생각합니다. ```java public interface ChangePasswordService { public void change(MemberId id, PasswordDto.ChangeRequest dto); } public class ByAuthChangePasswordService implements ChangePasswordService { private MemberFindService memberFindService; @Override public vo...
Markdown
04_b.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Up]" SRC="../Graphics/Up.gif" ALIGN=Bottom></A><A REL=NEXT HREF="04_bc.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Next]" SRC="../Graphics/Next.gif" ALIGN=Bottom></A></H1> <HR> <H2> 4.2.2 Type Relationships</H2> <P> <P><DL><P> <DT>* The <A REL=DEFINITION HREF="26_glo_t.htm#type"><I>t...
HTML
], "ioh::suite::suite::problem_ids_ (c++ member)": [[189, "_CPPv4N3ioh5suite5Suite12problem_ids_E"]], "ioh::suite::suite::problems_ (c++ member)": [[189, "_CPPv4N3ioh5suite5Suite9problems_E"]], "ioh::suite::suite::reset (c++ function)": [[189, "_CPPv4N3ioh5suite5Suite5resetEv"]], "ioh::suite::suite::size (c++ function)...
JavaScript
namespace Mffm.Contracts; /// <summary> /// Enables loosely-coupled publication of and subscription to events. /// </summary> public interface IEventAggregator { /// <summary> /// Searches the subscribed handlers to check if we have a handler for /// the message type supplied. /// </summar...
C#
this.damage(target.baseMaxhp / 8, target, target); } }, name: "Solar Charge", }, eternalice: { shortDesc: "This Pokemon is immune to Fire and Fighting-type moves, but it always moves with -1 priority.", onTryHit(target, source, move) { if (move.target !== 'self' && ['Fighting', 'Fire'].includes(mov...
Typescript
.2 C33.5 2.0,31.8 1.8,31.2 2.6 M46.0 24.8 C45.9 25.9,45.7 26.8,45.7 26.9 C45.6 26.9,44.9 26.8,44.1 26.6 C42.9 26.3,42.2 26.3,40.2 26.8 C38.9 27.1,37.6 27.2,37.4 27.1 C37.0 26.8,37.0 23.9,37.5 23.6 C37.9 23.3,41.8 22.8,44.2 22.8 L46.3 22.8 46.0 24.8 M31.5 26.4 C31.5 27.5,31.4 28.4,31.2 28.5 C31.1 28.6,29.5 28.7,27.7 28....
HTML
.app-bar .app-bar-menu > li { padding: 0; } .app-bar .app-bar-menu > li .d-menu { top: 100%; border: 2px solid #005696; } .app-bar .app-bar-menu > li .d-menu li:not(.disabled):hover { background-color: #eee; } .app-bar .app-bar-menu > li .d-menu li:not(.disabled):hover > a { color: #1d1d1d; } .app-bar .app-ba...
CSS
@Suppress("UNUSED_PARAMETER") @Mod.EventHandler fun preInit(event: FMLPreInitializationEvent) { val directory = File(DIRECTORY) if (!directory.exists()) directory.mkdir() KamiGuiUpdateNotification.updateCheck() LoaderWrapper.preLoadAll() } @Suppress("UNUSED_PARAMETER...
Kotlin
)}\n To view source code please see https://github.com/watchfulli/XCloner-Wordpress/\n`; }, } } )], }, plugins: [ new webpack.BannerPlugin('You can review the source code here: https://github.com/watchfulli/XCloner-Wordpress/') ], mode: "production", devtoo...
JavaScript
pour clipping ; ; d0=adresse effacement du sprite ; a2=cran source ; a1=cran destination ; branche dc.w 0,lgsp16 dc.l plante dc.w 0,lgsp32 dc.l plante dc.w 0,lgsp48 dc.l plante dc.w 0,lgsp64 dc.l plante dc.w 0,lgsp80 dc.l plante dc.w 0,lgsp96 dc.l plante dc.w 0,lgsp112 dc.l plante dc.w 0,lgsp128 ...
Assembly
3locale;"date"===t.type&&(t._dateFormat=U?U.timeFormat:i,t._extraFormat=e._extraFormat),t._separators=e.separators,t._numFormat=U?U.numberFormat:o,delete t._minDtick,delete t._forceTick0}},59652:function(t){"use strict";t.exports=function(t){var e=["showexponent","showtickprefix","showticksuffix"].filter((function(e){r...
Markdown