content
stringlengths
2
6.21k
label
stringclasses
16 values
roll', onScroll); }, []); return scroll; }; /** * You can customize the initial state of the module from the editor initialization, by passing the following [Configuration Object](https://github.com/GrapesJS/grapesjs/blob/master/src/canvas/config/config.ts) * ```js * const editor = grapesjs.init({ * canvas: {...
Typescript
一规则校验,才忽略唯一规则报错 if (!ciEntityTransactionVo.getAction().equals(TransactionActionType.UPDATE.getValue()) || !ciEntityTransactionVo.getSkipUniqueCheck()) { throw new CiUniqueRuleException(ciVo, String.join(",", valueList)); } }...
Java
4.79.22-.76.07-8.74.73c-2.82.03-5.78-.26-8.41-1.78zm-31.94 1.49-2.67-.28-6.73-.45 2.83-5.71 1.23-2.86c1.87-4.1 4.03-8.41 7.81-10.6 7.56-4.35 14.64-2.96 17.55 2.13 2.92 5.08.64 11.87-6.96 16.25-3.77 2.2-8.64 1.94-13.08 1.49zm11.91-36.15c0-4.35 2.67-8.41 5.26-12.06l1.59-2.16 3.72-5.56 5.43 7.75c2.6 3.62 5.26 7.68 5.26 12...
CSS
o4}, %xmm20 // CHECK: encoding: [0x62,0xe1,0xfd,0x38,0x5a,0xa2,0xf8,0xfb,0xff,0xff] vcvtpd2ps -1032(%rdx){1to4}, %xmm20 // CHECK: vcvtpd2ps -1032(%rdx){1to4}, %xmm20 // CHECK: encoding: [0x62,0xe1,0xfd,0x38,0x5a,0xa2,0xf8,0xfb,0xff,0xff] vcvtpd2psy -1032(%rdx){1to4}, %xmm20 // CHECK: vcvtpd2ps -...
Assembly
, other) || other is LibraryResponseDto && other.assetCount == assetCount && other.createdAt == createdAt && _deepEquality.equals(other.exclusionPatterns, exclusionPatterns) && other.id == id && _deepEquality.equals(other.importPaths, importPaths) && other.name == name && other.ownerId == ow...
Dart
10}}, // MinBatchSize. {4, &batcher.Options{MinBatchSize: 5}, nil}, {8, &batcher.Options{MinBatchSize: 5, MaxBatchSize: 7}, []int{7}}, // <= MaxBatchSize. {5, &batcher.Options{MaxBatchSize: 5}, []int{5}}, {9, &batcher.Options{MaxBatchSize: 10}, []int{9}}, // > MaxBatchSize with MaxHandlers = 1. {5, &bat...
Go
, x, mask) mask = gene_mask(y) y = self.decoder_layer4(y, y, y, x, x, mask) return y # Calculate the Mask through the cosine similarity between patches def gene_mask(x): x = x.reshape([-1, 28 * 28, 512]) x = F.normalize(x, dim=-1) mask = torch.matmul(x, x.transpose(-1, -2).contig...
Python
U+86c6, U+86c9-86ca, U+86cd-86d1, U+86d4, U+86d8, U+86de-86df } /* LXGW WenKai Mono [40] */ @font-face { font-family: 'LXGW WenKai Mono'; font-style: normal; font-weight: 300; font-display: swap; src: url('./files/lxgwwenkaimono-light-subset-40.woff2') format('woff2'); unicode-range: U+83b4, U+83b6, U+83b8...
CSS
//BOOST_ASSERT( false ); // not implemented typedef typename Coefficients::value_type value_type; algebra.for_each9( out , in , steps[0].m_v , steps[1].m_v , steps[2].m_v , steps[3].m_v , steps[4].m_v , steps[5].m_v , steps[6].m_v , typename Operations::template scal...
C++
import streamlit as st import time # Title 작성 st.title("Color Picker 구현") # 코드 표시 st.subheader("코드") code = ''' import streamlit as st import time text = """ #### 1절 동해물과 백두산이 마르고 닳도록 하느님이 보우하사 우리나라 만세 무궁화 삼천리 화려 강산 대한 사람 대한으로 길이 보전하세 #### 2절 남산 위에 저 소나무 철갑을 두른 듯 바람 서리 불변함은 우리 기상일세 무궁화 삼천리 화려 강산 대한 사람 대한으로...
Python
); // break; // default: // break; // } // } // } // // CellwiseData<2>::Destroy(); // } }; #endif /*TESTCELLWISEDATAGRADIENT_HPP_*/ /* Copyright (c) 2005-2025, University of Oxford. All rights reserved. Unive...
C++
-(?P<plat>.+) )? )? )? cB@seZdZd d ddZdZdZedZdZ dddZ e j dZ eddZed Zedd Zedd ZRS(s3Object representing an advertised importable objectcC@...
Python
content: " - "; /* seperate with a dash, wrapped in nbsp's */ } .fc-time-grid-event.fc-short .fc-title { font-size: 0.85em; /* make the title text the same size as the time */ padding: 0; /* undo padding from above */ } /* resizer (cursor device) */ .fc-time-grid-event.fc-allow-mouse-resize .fc-resizer { ...
CSS
.byte W01 .byte VOL , 50*seq_718_mvl/mxv .byte BEND , c_v+0 .byte W01 .byte VOL , 45*seq_718_mvl/mxv .byte W01 .byte 40*seq_718_mvl/mxv .byte W01 .byte 35*seq_718_mvl/mxv .byte W01 .byte 27*seq_718_mvl/mxv .byte W01 .byte 23*seq_718_mvl/mxv .byte W01 .byte ...
Assembly
| | | ➕ | ❌ 1/2020 | | | | Huawei Honor 10 lite | Kirin 710 | 9 | | | ✅ 1/2020 | | [Link](receiver_proofs/Huawei_Honor_10_Lite) | | | Huawei Honor View 10 | Kirin 970 | 9 |...
Markdown
orcePrimaryVersion = -1; primaryTCPPort = Integer.parseInt(System.getProperty("tests.nrtreplication.primaryTCPPort")); } else { primaryTCPPort = -1; forcePrimaryVersion = Long.parseLong(System.getProperty("tests.nrtreplication.forcePrimaryVersion")); } long primaryGen = Long.pars...
Java
edClass) { /// case Subclass(:final field): /// return ...; /// case Subclass2(:final field2): /// return ...; /// } /// ``` @optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( ChatId id, List<ChatParticipant> participants, String? title, MessageId? lastMessageId, DateTime? lastTi...
Dart
import re with open('abc.java', 'r') as file: java_code = file.read() pattern = r'public\s+static\s+void\s+main\s*\(\s*String\s*\[\s*\]\s*[a-zA-Z0-9]*\s*\)\s*{' matches = re.findall(pattern, java_code) class_name = None if matches: main_method_match = matches[0] class_name_pattern = r'class\s+([a-zA-Z][a-zA...
Python
me : $"{Namespace}.{ClassName}"; } } protected override bool IgnoreScriptTypeForHash(FormatVersion formatVersion, UnityVersion unityVersion) { return false; } protected override void ReadTypeDependencies(SerializedReader reader) { ClassName = reader.ReadStringZeroTerm(); Namespace = reader.ReadStrin...
C#
= 0 + (if(this.headerView == null) 0 else 1) + (if(this.footerView == null) 0 else 1) return this.dataList.size + footOrHeadCount } override fun onCreateViewHolder(parent: ViewGroup?, viewType: Int): RecyclerView.ViewHolder { return when(viewType) { CustomAdapter.ITEM_TY...
Kotlin
marks an arena. // Holding any pointer to the arena will keep anything here alive, too. keep []unsafe.Pointer } // Align is the alignment of all objects on the arena. const Align = int(unsafe.Sizeof(uintptr(0))) // New allocates a new value of type T on an arena. func New[T any](a *Arena, value T) *T { layout := ...
Go
]); } core.int buildCounterPscConfig = 0; api.PscConfig buildPscConfig() { final o = api.PscConfig(); buildCounterPscConfig++; if (buildCounterPscConfig < 3) { o.allowedConsumerProjects = buildUnnamed44(); o.networkAttachmentUri = 'foo'; o.pscAutoConnections = buildUnnamed45(); o.pscEnabled = tru...
Dart
"].(bool) merge := false if nil != arg["merge"] { merge = arg["merge"].(bool) } fullPath, err := model.ExportDocx(id, savePath, removeAssets, merge) if err != nil { ret.Code = -1 ret.Msg = err.Error() ret.Data = map[string]interface{}{"closeTimeout": 7000} return } ret.Data = map[string]interface{}{ ...
Go
*ci << "return this->ptr_;\n"; ci->decr_indent (); *ci << "}\n\n"; ci->indent (); *ci << "ACE_INLINE " << "::" << this->name () << " *" << be_nl; *ci << fname << "::operator-> (void)" << be_nl; *ci << "{\n"; ci->incr_indent (); *ci << "return this->ptr_;\n"; ci->decr_indent (); *ci << "}\n\n"; ...
C++
em;padding-right:2em}.ui.celled.ordered.list .item:before{left:.5em}.ui.celled.ordered.list .item .list{margin-left:-2em;margin-right:-2em}.ui.horizontal.celled.list{margin-left:0}.ui.horizontal.celled.list .item{border-top:0;border-left:1px solid rgba(0,0,0,.1);margin:0;padding-left:.75em;padding-right:.75em;line-heig...
CSS
__all__ = ['AnyCallable', 'MISSING', 'Possibly', 'Decorator', 'F'] from enum import Enum from typing import Any, Callable, TypeVar, Union # PEP-blessed solution for defining a Singleton type: # https://peps.python.org/pep-0614/#motivation class _Missing(Enum): flag = 'Missing' MISSING = _Missing.flag """Singl...
Python
色连衣裙搭配得更加出彩? | | 电影推荐 | 你有没有推荐值得观看的科幻电影? | | 学术论文写作 | 我正在写一篇关于人工智能的学术论文,你能提供一些相关的参考资料吗? | | 健康咨询 | 最近总是感到疲惫不堪,有哪些方法可以缓解身体疲劳? | | 网站建设 | 我想要搭建一个电商网站,需要哪些技术支持? | | 新闻分类 | 能否将最新的国内新闻按照不同的分类整理出来? | |电影推荐|能否给我推荐一款根据真实故事改编的感人电影?| |历史事件分类|把以下历史事件分为政治、文化或经济类别:美国独立战争、法国大革命、工业革命。| |编辑建议|请帮我修改以下这段话,使其更简洁流畅:“在最近的一项研究中,研究者发现,在不使用手机...
Markdown
, repoid string) *Provider { return &Provider{URL: url, Token: token, RepoID: repoid} } package problem_test import ( "encoding/json" "encoding/xml" "errors" "io/ioutil" "net/http" "net/http/httptest" "os" "strings" "testing" "schneider.vip/problem" ) func TestProblem(t *testing.T) { p := problem.New(pro...
Go
bleFlags, PhysFrame, Size4KiB}, PhysAddr, VirtAddr, }; mod config { include!(concat!(env!("XTASK_OUT_DIR"), "/cfg_uefi_stub.rs")); } const KERNEL_SIZE: usize = include_bytes!(env!("KERNEL_PATH")).len(); const KERNEL_BYTES: [u8; KERNEL_SIZE] = *include_bytes!(env!("KERNEL_PATH")); /// Put kernel ELF in memory...
Rust
ibe((changes: ChangeMap) => { changes.moves.should.have.deep.members([{ oldIndex: '0', newIndex: '1', item: {id: 'john', age: 23} }]); done(); }); s.value = [{id: 'jack', age: 24}].concat(s.value); }); it('should be possible to first subscribe ...
Typescript
_EnumConfigType_values { __typename: 'EnumConfigValue'; value: string; description: string | null; } export interface ConfigSchema_allConfigTypes_EnumConfigType { __typename: 'EnumConfigType'; key: string; description: string | null; isSelector: boolean; typeParamKeys: string[]; givenName: string; ...
Typescript
gy", SqlServerValueGenerationStrategy.IdentityColumn); modelBuilder.Entity("OnTime.TaskManagement.QueryStack.Model.Task", b => { b.Property<Guid>("Id") .ValueGeneratedOnAdd(); b.Property<DateTime?>("DateOfCancellation"); ...
C#
值", "supercharged":"a. 超动力的\\nv. 对…增压( supercharge的过去式和过去分词 )", "supercharger":"n. 增压器\\n[化] 增压器", "superchargers":"(supercharger 的复数) n. 增压器\\n[化] 增压器", "supercharges":"v. 对…增压( supercharge的第三人称单数 )", "supercharging":"增压(作用)", "supercharging device":"[化] 增压装置", "superchip":"[计] 高密度芯片, 超级芯片", "superchlorination":"过氯化作用...
Typescript
div7): div1 r5,r4 LOCAL(div6): div1 r5,r4; div1 r5,r4; div1 r5,r4 div1 r5,r4; div1 r5,r4; rts; div1 r5,r4 LOCAL(divx3): rotcl r0 div1 r5,r4 rotcl r0 div1 r5,r4 rotcl r0 rts div1 r5,r4 LOCAL(large_divisor): mov.l r5,@-r15 LOCAL(sdiv_large_divisor): xor r4,r0 .rept 4 rotcl r0 bsr LOCAL...
Assembly
e 1e-55 which are under of float-precision if ( !( iss >> x >> y >> z ) ) break; point = Vector3f{ Vector3d{ x, y, z } }; VertId& id = hmap[point]; if ( !id.valid() ) { id = VertId( points.size() ); points.push_...
C++
t( ha_alter_info->alter_info->create_list); ulint i = 0; ulint num_v = 0; bool is_v; for (Field** fp = table->field; *fp; fp++, i++) { ulint idx; if ((*fp)->is_virtual_gcol()) { is_v = true; idx = num_v; num_v++; } else { idx = i - num_v; is_v = false; } cf_it.rewind(); while (Create...
C++
get() = audioElement.loop set(value) { audioElement.loop = value} var clipState = ClipState.STOPPED private set var startTime = 0.0 init { volume = this@AudioClipImpl.volume * this@AudioClipImpl.masterVolume audioElement.onended = { ...
Kotlin
SizeOf(structure); IntPtr memory = Marshal.AllocHGlobal(size); try { Assert.Throws<ArgumentException>(() => Marshal.StructureToPtr(structure, memory, false)); Assert.Throws<ArgumentException>(() => Marshal.StructureToPtr(structure, memory, true)); ...
C#
using System; using Perpetuum.EntityFramework; using Perpetuum.ExportedTypes; using Perpetuum.Items; using Perpetuum.Zones.Effects; namespace Perpetuum.Modules.EffectModules { public class ShieldGeneratorModule : EffectModule { private readonly ItemProperty _shieldRadius; private readonly Modu...
C#
mber) { in 1..4 -> 1 in 5..8 -> 2 else -> 3 } }.groupBy("month4").aggregate { maxBy("s") into "max" } .flatten()["month4", "dti", "month41"] shouldBe expected } @Test fun `create column consisting of the third Thursday in each ...
Kotlin
}, { '_id': '62449', 'city': 'OBLONG', 'loc': [-87.895016, 39.001043], 'pop': 3508, 'state': 'IL' }, { '_id': '62450', 'city': 'OLNEY', 'loc': [-88.08093599999999, 38.733389], 'pop': 11163, 'state': 'IL' }, { '_id': '62451', 'city': 'PALESTINE', 'loc': [-...
Dart
, gui = "italic", guisp = nil } if M.config.telescope then if hex_re:match_str(M.colors.base00) and hex_re:match_str(M.colors.base01) and hex_re:match_str(M.colors.base02) then local darkerbg = darken(M.colors.base00, 0.1) local darkercursorline = darken(M.colors.base01, 0.1) ...
Lua
stimated bounds so we can spot the bug in Gold. engineCanvas ..save() ..drawRect( rc.pictureBounds!, SurfacePaintData() ..color = const Color.fromRGBO(0, 0, 255, 1.0).value ..style = PaintingStyle.stroke ..strokeWidth = 1.0, ) ..restore(); r...
Dart
�史,推荐一款商品或服务。| |名词解释|请解释以下术语的含义:"区块链"| |图像识别|请对以下图片进行识别,并输出结果:[图片链接]| |文章摘要|请根据以下文章内容生成一段摘要:"2022年北京冬奥会火炬传递计划于近日正式公布,本次火炬传递将覆盖全球五大洲、50多个城市。"| | 分类 | 给我介绍一下目前市面上主流的智能手机品牌。 | | 编辑 | 能否帮我修改这篇文章,使其更具有学术性?文章链接:xxxxxx | | 开放生成 | 请为以下图片写一段描述:https://xxxxx | | 比较 | 请比较并解释深度学习和机器学习之间的区别。 | | 建议 | 我想购买一台笔记本电脑,可以给我几个推荐吗? | | 解释 |...
Markdown
(this.nonceLen); asmCrypto.getRandomValues(nonce); const encrypted = asmCrypto.AES_GCM.encrypt(JSON.stringify(value), this.aesKey, nonce); return this.joinNonceAndData(nonce, new Uint8Array(encrypted)); } public decrypt(value: Uint8Array): any{ const parts = this.separateNonceFromData(value); ...
Typescript
__PROBABILITY); createEReference(abstractParameterSetEClass, ABSTRACT_PARAMETER_SET__PARAMETERS); abstractInformationFlowEClass = createEClass(ABSTRACT_INFORMATION_FLOW); createEReference(abstractInformationFlowEClass, ABSTRACT_INFORMATION_FLOW__REALIZATIONS); createEReference(abstractInformationFlowEC...
Java
// // ClassDump By HuangBai Private // Copyright (C) 1997-2019 Steve Nygard. Updated HuangBai-2024 // #import <UIKit/UICollectionViewCell.h> @class CAGradientLayer, CAShapeLayer, MMBadgeView, MMLiveMakeupDetailDataItem, NSString, UIButton, UILabel, UIView; @interface MMLiveMakeupDetailItemCollectionCell : UICollec...
C
Map({ token, options }: { token: string; options?: WebMapTileServiceImageryProvider.ConstructorOptions }): WebMapTileServiceImageryProvider { return new WebMapTileServiceImageryProvider({ url: `http://t${(Math.random() * (7 - 0 + 1) + 0) | 0}.tianditu.gov.cn/vec_w/wmts?tk=${token}`, format: 'tiles', layer: 'vec'...
Typescript
)); // when List<SearchRank> newSearchRanks = oldSearchRanks.makeNewSearchRanks(newRankKeywords); // then assertThat(newSearchRanks).extracting(SearchRank::getKeyword) .containsExactly("react", "java", "redis"); assertThat(newSearchRanks).extracting(SearchRank::...
Java
// Formula for line function when working with // homogeneous projective coordinates, as described in https://eprint.iacr.org/2013/722.pdf. let a = r.x * &r.y; let b = r.y.square(); let b4 = b.double().double(); let c = r.z.square(); let e = B::G2Parameters::COEFF_B * &(c.double() + &c); ...
Rust
ject->id())->activeChanged = old != static_cast<bool>(assignment.intValue); } }; registerProperty(_activeProperty = std::make_shared<ActiveProperty>()); struct SrcXProperty : drm_core::Property { SrcXProperty() : drm_core::Property{srcX, RangeProperty{}, "SRC_X", DRM_MODE_PROP_ATOMIC, 0, UINT32_MAX} { } bo...
C++
erialize_struct("SpaceUsage", SPACE_USAGE_FIELDS, StructVisitor) } } impl ::serde::ser::Serialize for SpaceUsage { fn serialize<S: ::serde::ser::Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error> { // struct serializer use serde::ser::SerializeStruct; let mut s = serializer.se...
Rust
{ get { return _test; } } public void Dispose() { } #endregion } [TestFixture] public class ScreenFactoryTester { #region Setup/Teardown [SetUp] public void SetUp() { var container = new Container(x => { x.For<IScreen<Test>>...
C#
0.08; this.setTargetFlower(); } setTargetFlower(): void { let targetflower: number = Math.round(Math.random() * (flowers.length - 1)); this.xTarget = flowers[targetflower].x; this.yTarget = flowers[targetflower].y; } move(): vo...
Typescript
构建x86平台镜像 ARCHITECTURE_PLATFORM_IMAGE: DOCS_URL_PREFIX + '/topics/paas/deploy_flow#%E4%BD%BF%E7%94%A8-arm-%E6%9E%B6%E6%9E%84%E7%9A%84%E6%9C%BA%E5%99%A8%E5%A6%82%E4%BD%95%E6%9E%84%E5%BB%BA-x86-%E5%B9%B3%E5%8F%B0%E9%95%9C%E5%83%8F', // 服务发现配置 SERVE_DISCOVERY: DOCS_URL_PREFIX + '/topics/pa...
JavaScript
contacts. * ********************************************************************************************************/ package msi.gama.kernel.batch.optimization.genetic; import java.util.*; import msi.gama.runtime.IScope; /** * The Class SelectionRoulette. */ public class SelectionRoulette implements Selectio...
Java
: enclosingConstructor, ); } /// Resolve the names in the given [combinators] in the scope of the given /// [library]. void _resolveCombinators( LibraryElementImpl? library, NodeList<Combinator> combinators, ) { if (library == null) { // // The library will be null if the directiv...
Dart
} from 'src/structures/weather.structure'; @Component({ selector: 'app-weather-main-card', templateUrl: './weather-main-card.component.html', styleUrls: ['./weather-main-card.component.scss'] }) export class WeatherMainCardComponent implements OnInit { @Input() weather : Weather; constructor() { } ngOn...
Typescript
circle = 0x24d5; t.fdotaccent = 0x1e1f; t.feharabic = 0x0641; t.feharmenian = 0x0586; t.fehfinalarabic = 0xfed2; t.fehinitialarabic = 0xfed3; t.fehmedialarabic = 0xfed4; t.feicoptic = 0x03e5; t.female = 0x2640; t.ff = 0xfb00; t.f_f = 0xfb00; t.ffi = 0xfb03; t.f_f_i = 0xfb03; t.ffl = 0xfb04; ...
JavaScript
uGAEgASgNUgd2ZXJzaW9uEkoKEGxvY2FsRmluZ2VycHJpbnQYAiABKAsyHi50ZXh0c2VjdXJlLkxvZ2ljYWxGaW5nZXJwcmludFIQbG9jYWxGaW5nZXJwcmludBJMChFyZW1vdGVGaW5nZXJwcmludBgDIAEoCzIeLnRleHRzZWN1cmUuTG9naWNhbEZpbmdlcnByaW50UhFyZW1vdGVGaW5nZXJwcmludA=='); import 'dart:typed_data'; import 'package:adaptive_number/adaptive_number.dart'; impor...
Dart
@override Token? processSpaceCharacters(SpaceCharactersToken token) { return parser._inBodyPhase.processSpaceCharacters(token); } @override Token? processCharacters(CharactersToken token) { parser.parseError(token.span, 'expected-eof-but-got-char'); return null; } @override Token? startT...
Dart
fn.reltimefloat(vim.fn.reltime()) -- return cmd -- end -- end -- return M local M = {} function M.setup(opts) opts = opts or {} vim.api.nvim_exec( [[ nnoremap <expr> ; AlphaGotoNext(';') nnoremap <expr> , AlphaGotoNext(',', 1) xnoremap <expr> ; AlphaGotoNext(';') xnoremap <expr> , AlphaGotoNext(',', 1) nno...
Lua
s.iter() { node_labels.entry(s1.as_ref()).or_insert_with(|| { counter += 1; counter }); node_labels.entry(s2.as_ref()).or_insert_with(|| { counter += 1; counter }); } let mut tgf = String::new(); let mut node_label_pairs: Vec<...
Rust
glabel EnJs_Draw /* 00824 80A89634 27BDFFD8 */ addiu $sp, $sp, 0xFFD8 ## $sp = FFFFFFD8 /* 00828 80A89638 AFBF0024 */ sw $ra, 0x0024($sp) /* 0082C 80A8963C AFA40028 */ sw $a0, 0x0028($sp) /* 00830 80A89640 AFA5002C */ sw $a1, 0x002C($sp) /* 00834 80A89644 ...
Assembly
zeof(t_limctl)); freebytes(x->cmp , sizeof(t_cmpctl)); while (i < x->number_of_inlets) freebytes(x->in[i++].ringbuf, x->buf_size * sizeof(t_sample)); freebytes(x->in, x->number_of_inlets * sizeof(t_inbuf)); } /* ------------------------------------------------------------------------------------ */ /* ------...
C
ttr(dim, "size"): init_code += f"{{ {dim.size} }}" else: raise ValueError("Error: Missing size value") # Close initialization code init_code += ";" # Append to changes made list self.changes_made.append...
Python
|| c.y == self.y_min() || c.x == self.x_max() || c.y == self.y_max() } fn nei_coord_iter(&self, coord: Coord) -> NeiCoordIter { NeiCoordIter::new(coord) } fn nei_iter<'a>(&'a self, coord: Coord) -> NeiIter<'a, Self> where Self: Sized { NeiIter::new(self, coord) } f...
Rust
more file I/O needed val moovHeader = seekWithinLevel( sbc, Mp4AtomIdentifier.MOOV.fieldName ) ?: throw CannotReadException( ErrorMessage.MP4_FILE_NOT_CONTAINER.msg ) val moovBuffer = ByteBuffer.allocate(moovHeader.length - Mp4BoxHeader.HEADER_LENGTH) sbc.read(moovBuffer) moovBuffer.rewind...
Kotlin
ontinue down the road to the southern border.|R|BloodElf|C|Hunter| C Taming the Beast|QID|9485|M|48.82,14.02|Z|1942; Ghostlands|N|Tame a Mistbat.|T|Mistbat|U|23703|R|BloodElf|C|Hunter|NC| R Tranquillien|ACTIVE|9485|M|45.12,28.25|Z|1942; Ghostlands|N|Follow the road south into Tranquillien.|R|BloodElf|C|Hunter| f Tranqu...
Lua
point NaN and infinities are not accepted", }, { example: hex("fb7ff0000000000000"), reject: "floating-point NaN and infinities are not accepted", }, { example: hex("fb7ff8000000000000"), reject: "floating-point NaN and infinities are not accepted", }, { example: hex("fbfff0000000000000"), ...
Go
signed with the requested new account key (i.e., the key * matching the "newKey" value). This JWS then becomes the payload for the * "outer" JWS that is the body of the ACME request. * * The inner JWS MUST meet the normal requirements, with the following * differences: * * o T...
Typescript
1) fakeClient := NewFakeHTTPClient() fakeClient.responder = func(req *http.Request) (*http.Response, error) { buffer := bytes.NewBufferString(<-hibpResp) return &http.Response{ StatusCode: http.StatusOK, Body: io.NopCloser(buffer), ContentLength: int64(buffer.Len()), Request: ...
Go
.ModZm.Companion.onesZerosMask import vc.data.* import vc.data.tacexprutil.asConst import vc.data.tacexprutil.isConst import java.math.BigInteger /** * A version of [v] that is unique, because the value of a variable at two different places must be equal if its * def-sites at these places are the same (this assumes ...
Kotlin
erColors[1]:<</b><1x> <</td><<td><<b>BorderColors[2]:<</b><2x> <</td><<td><<b>BorderColors[3]:<</b><3x><</td><</tr>\r\n"), pFF->_ccvBorderColors[0], pFF->_ccvBorderColors[1], pFF->_ccvBorderColors[2], pFF->_ccvBorderColors[3]); WriteHelp(hfile, _T("<<tr><<td><<b>BorderWidths[0]:<</b...
C++
`` - ``knowagejasperreportengine/target/knowagejasperreportengine.war`` - ``knowagekpiengine/target/knowagekpiengine.war`` - ``knowagemeta/target/knowagemeta.war`` - ``knowageqbeengine/target/knowageqbeengine.war`` - ``knowagesdk/target/knowagesdk.war`` - ``knowagesvgviewerengine/target/knowagesvgviewerengine.war...
Markdown
", 0x511C: "níng", 0x511D: "qióng", 0x511E: "nǐ", 0x511F: "cháng", 0x5120: "liè,là", 0x5121: "lěi,léi,lèi", 0x5122: "lǚ", 0x5123: "kuǎng", 0x5124: "bào", 0x5125: "yù,dí,dú", 0x5126: "biāo", 0x5127: "zǎn", 0x5128: "zhì", 0x5129: "sì", 0x512A: "yōu", 0x512B: "háo", 0x512C: "qìng", 0x512D: "chèn,qìn,qīn"...
Go
* @param p2 The exponent of the power-of-two factor. * @return <code>5<sup>p5</sup> * 2<sup>p2</sup></code> */ /*@ @ requires p5 >= 0 && p2 >= 0; @ assignable \nothing; @ ensures \result.value() == \old(pow52(p5, p2)); @*/ public static FDBigInteger valueOfPow52(int p5, int p2...
Java
https://github.com/simen/grbl/tree) It has preliminary support for Matthew Roberts advance algorithm http://reprap.org/pipermail/reprap-dev/2011-May/003323.html */ #include "Marlin.h" #ifdef ENABLE_AUTO_BED_LEVELING #include "vector_3.h" #ifdef AUTO_BED_LEVELING_GRID #include "qr_solve.h" #endif #endif...
C++
else if (!vis[e.dest]) { if (isCyclicUtil(graph, vis, e.dest, curr)) { return true; } } } return false; } // O(V + E) public static boolean isCyclic(ArrayList<Edge>[] graph) { boolean vis[] = new boolean[graph.length]; ...
Java
0 val expected = tensorOf( 1F, 2F, 3F, 4F, 21F, 22F, 23F, 24F, 25F, 26F, 27F, 28F).reshape(3, 4) testWithChange(a, b, index, axis, expected) } @Test fun withChange08() { val a = tensorOf(1F, 2F, 3F).withChange(1, 0, FloatScalar(4F)) ...
Kotlin
1, r7 mov r2, #64 ; 0x40 bl sub_0600055C ldrh r6, [r5, #6] cmp r6, #12 bls _06017834 cmp sl, #0 bne _06017590 mov r0, #0 add r1, sp, #8 mov r2, #44 ; 0x2c bl sub_0600AEC4 add r0, r4, #12 str r0, [sp, #8] sub r0, r6, #12 strh r0, [sp, #16] mov r0, #3 strh r0, [sp, #18] mov r0, #56 ; 0x38 strh r0, [sp,...
Assembly
ToSendThingAdd.Remove(thing); var fi = thing as Fire; if (fi != null) FireList.Remove(fi); } else if (newSpawn) { ToSendThingAdd.Add(thing); ToSendDeleteId.Remove(tId); var...
C#
/* * Copyright © 2014 Red Hat, Inc * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is ...
C
0xa1,0xc0] @ CHECK: umlals r2, r9, r2, r3 @ encoding: [0x92,0x23,0xb9,0xe0] @ CHECK: umlalseq r3, r5, r1, r2 @ encoding: [0x91,0x32,0xb5,0x00] @------------------------------------------------------------------------------ @ UMULL @----------------------------------------------------------------------------...
Assembly
_ABGR8888, DRM_FORMAT_XRGB8888, DRM_FORMAT_XBGR8888, DRM_FORMAT_RGB888, DRM_FORMAT_BGR888, DRM_FORMAT_ARGB4444, DRM_FORMAT_ABGR4444, DRM_FORMAT_XRGB4444, DRM_FORMAT_XBGR4444, /* These are actually IRGB1555 so intensity bit is lost */ DRM_FORMAT_XRGB1555, DRM_FORMAT_XBGR1555, DRM_FORMAT_RGB565, ...
C
archable': isSearchable!, if (logSettings != null) 'logSettings': logSettings!, if (masked != null) 'masked': masked!, if (readOnly != null) 'readOnly': readOnly!, if (searchable != null) 'searchable': searchable!, if (taskVisibility != null) 'taskVisibility': taskVisibility!, }; } /// List of er...
Dart
b1 * x[n-1] */ /*acc = (q31_t) ((((q63_t) acc << 32) + ((q63_t) b1 * (Xn1))) >> 32);*/ multAcc_32x32_keep32_R(acc, b1, Xn1); /* acc += b[2] * x[n-2] */ /*acc = (q31_t) ((((q63_t) acc << 32) + ((q63_t) b2 * (Xn2))) >> 32);*/ multAcc_32x32_keep32_R(acc, b2, Xn2); /* acc += a1 * y[n-1] */ /*acc = ...
C
场 | Libor美元 | 8月 | | 伦敦银行同业拆借市场 | Libor欧元 | 隔夜 | | 伦敦银行同业拆借市场 | Libor欧元 | 1周 | | 伦敦银行同业拆借市场 | Libor欧元 | 1月 | | 伦敦银行同业拆借市场 | Libor欧元 | 2月 | | 伦敦银行同业拆借市场 | Libor欧元 | 3月 | | 伦敦银行同业拆借市场 | Libor欧元 | 8月 | | 伦敦银行同业拆借市场 | Libor日元 | 隔夜 | | 伦敦银行同业拆借市...
Markdown
glabel func_809E858C /* 02DBC 809E858C 27BDFFB8 */ addiu $sp, $sp, 0xFFB8 ## $sp = FFFFFFB8 /* 02DC0 809E8590 AFBF001C */ sw $ra, 0x001C($sp) /* 02DC4 809E8594 AFB10018 */ sw $s1, 0x0018($sp) /* 02DC8 809E8598 AFB00014 */ sw $s0, 0x0014($sp) /* 02DCC 809E8...
Assembly
ssage_setter(self): err = ContractLogicError(revert_message="test message 1") err.revert_message = "test message 2" assert str(err) == "test message 2" assert err.message == "test message 2" assert err.revert_message == "test message 2" class TestUnknownSnapshotError: def t...
Python
t(childChar); } public void addChildren(char childChar) { TrieNode tmpNode = childredMap.get(childChar); if (tmpNode == null) { tmpNode = new TrieNode(childChar); childredMap.put(childChar, tmpNode); } } } } package com.liujun.search.algorithm.manager; import com.liuju...
Java
; } .row.no-gutter .tablet-66 { width: 66.66666666666666%; margin: 0; } .row .tablet-60 { width: 58%; margin-left: 2%; } .row.no-gutter .tablet-60 { width: 60%; margin: 0; } .row .tablet-50 { width: 48%; margin-left: 2%; } .row.no-gutter .tablet-50 { width: 50%; ...
CSS
kType.Credit], ["512316", "中国银行", "中银万事达信用卡个人普卡", "16", BankType.Credit], ["512411", "中国银行", "中银万事达信用卡员工金卡", "16", BankType.Credit], ["512412", "中国银行", "中银万事达信用卡个人金卡", "16", BankType.Credit], ["512425", "招商银行", "招商银行银行国际卡", "16", BankType.Debit], ["512431", "宁波市商业银行", "汇通国际卡", "16", BankType.Credit], ["5124...
Typescript
process.stdout, process.stderr) } private printToBuf(buffer: 'stdout' | 'stderr', ...args: unknown[]): void { const fmt = args.shift() let buf = '' if (typeof fmt === 'string') { buf += format(fmt, ...args) } else { buf += `${fmt}` } if (buffer === 'stdout') { this._std...
Typescript
.MRI"] = 0, ["E.PIMU"] = 0, ["E.SILR"] = 0, ["E.SKL"] = 0, ["E.STR"] = 58.2, ["GS"] = 412.1, ["HEAL"] = 0, ["HIT"] = 0, ["HP"] = 0, ["HPS"] = 90, ["ID"] = 48, ["INT"] = 55, ["LFS"] = 65, ["MCRIT"] = 0, ["MIMU"] = 0, ["MP"] = 0, ...
Lua
private fun generateRandomLargeTradeFor(priceBar: PriceBar): LargeTrade { val price = Random.nextDouble(priceBar.low, priceBar.high) val volume = Random.nextDouble(minLargeTradeVolume, maxLargeTradeVolume) return LargeTrade(price, volume) } } //**********************************************...
Kotlin
am: print(chunk.content, end="", flush=True) last_response = response assert last_response is not None chat.append(last_response) print() async def main(argv: Sequence[str]) -> None: if len(argv) > 1: raise app.UsageError("Unexpected comman...
Python
a" ) type FormData struct { FirstName string `url:"first_name"` LastName string `url:"last_name"` } var _ = Describe("When I run Hoverfly", func() { var ( hoverfly *functional_tests.Hoverfly ) BeforeEach(func() { hoverfly = functional_tests.NewHoverfly() hoverfly.Start() }) AfterEach(func() { hover...
Go
s_list_queries_count_user": 2, "queries": 6748, "questions": 6746, "select_full_join": 0, "select_full_range_join": 0, "select_range": 0, "select_r...
Go
efault, true); assert_eq!( tokens, vec![ Token { word: "我们", start: 0, end: 2 }, Token { word: "中出", start: 2, end: 4 }, Token { word: "了", start: 4, end: 5 }, Token { word: "一个", start: 5, end: 7 }, Token { ...
Rust