content
stringlengths
2
6.21k
label
stringclasses
16 values
cpp_codegen_object_new(InvalidOperationException_t0530E734D823F78310CAFAFA424CA5164D93A1F1_il2cpp_TypeInfo_var); InvalidOperationException__ctor_m72027D5F1D513C25C05137E203EEED8FD8297706(L_4, (String_t*)_stringLiteral4B7A2452FBAAF02487F5667BCA2E7D64B9707EDC, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(...
C++
// clang-format off // Auto-generated file. Do not edit! // Template: src/qs8-gemm/4x16-aarch64-neon-mlal-lane-cortex-a75.S.in // Generator: tools/xngen // // Copyright 2020 Google LLC // // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tr...
Assembly
0.1)) !important; box-shadow: 0 1px 0 hsla(0, 0%, 100%, 0.3) inset, 0 0 0 1px hsla(0, 0%, 100%, 0.3) inset, 0 0 0 1px hsla(210, 54%, 20%, 0.25), 0 1px 0 hsla(210, 54%, 20%, 0.35) !important; transition-property: background-color, box-shadow !important; transition-duration: 250ms !important; } :root[echelon-style...
CSS
4, access either all image channels (z ignored) or individual image channels (z=0..2). template<bool V4> struct MG_sample; template<> struct MG_sample<true> { using EType = Vector4; static constexpr int nz = 1; static EType get(const Pixel& pix, int z) { ASSERTX(z==0); return Vector4(pix); } static void...
C++
to="/README.md" active="">text</RouteLink> - <RouteLink to="/README.md" active>text</RouteLink> - <RouteLink to="/" active="">text</RouteLink> - <RouteLink to="/" active>text</RouteLink> - <RouteLink to="/README.md" :active="false">text</RouteLink> - <RouteLink to="/README.md">text</RouteLink> - <RouteLink to="/" :act...
Markdown
import modelx as mx from modelx.testing.testutil import ConfigureExecutor import pytest def test_change_attrref(): """ m---s---bar<-m.bar | +--bar[a]---x """ m = mx.new_model() s = m.new_space() @mx.defcells def foo(x): return bar.x @mx.defcells def qu...
Python
/* blas/source_axpy_c.h * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman * * This program 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 op...
C
using System.Collections.Generic; using System.Linq; namespace Pillager.Helper { public static class RC4Crypt { /// <summary> /// Decrypt data using key. /// </summary> /// <param name="key"></param> /// <param name="data"></param> /// <returns></returns> ...
C#
movl $$0x48+90*4, %eax movl $0, %gs:(%eax)" :: "r"(limit) : "eax" : "volatile") } #[cfg(target_arch = "x86", target_os = "linux")] #[cfg(target_arch = "x86", target_os = "freebsd")] #[inline(always)] unsafe fn target_record_sp_limit(limit: uint) { asm!("movl $0, %gs:48" :: "r"(limi...
Rust
mary> /// Set the lowerst starting address. /// </summary> public long LowestStartingAddress { get; set; } /// <summary> /// Set the highest ending address. /// </summary> public long HighestEndingAddress { get; set; } /// <summary> /// Set the alignment. /// </summary> pub...
C#
ts.clear(); } } import 'package:flutter_custom_cursor/cursor_manager.dart' as custom_cursor_manager; import 'package:flutter_custom_cursor/flutter_custom_cursor.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/services.dart'; import 'package:flutter_hbb/models/model.dart'; deleteCustomC...
Dart
ISH("finnish", "fi"), /** 弗里西语 */ FRISIAN("frisian", "fy"), /** 高棉语 */ KHMER("khmer", "km"), /** 格鲁吉亚语 */ GEORGIAN("georgian", "ka"), /** 古吉拉特语 */ GUJARATI("gujarati", "gu"), /** 哈萨克语 */ KAZAKH("kazakh", "kk"), /** 海地克里奥尔语 */ HAITIAN_CREOLE("haitianCreole", "ht"), /**...
Kotlin
l-dialog') dialogHeaderEl.style.cssText += ';cursor:move;' dragDom.style.cssText += ';top:0px;' // 获取原有属性 ie dom元素.currentStyle 火狐谷歌 window.getComputedStyle(dom元素, null); const getStyle = (function() { if (window.document.currentStyle) { return (dom, attr) => dom.currentStyle[attr] ...
JavaScript
ay 2018](https://web.archive.org/web/20180521090553/https://twitter.com/AndrewQuackson/status/998490026559397889): Wyoming: 53.8% of people own Firearms Gun Homicide rate: 1.7 per 100k DC: 25.9% of people own firearms Gun Homicide rate: 18.0 per 100k https://twitter.com/Mikel_Jollett/status/998245081025925120 * [21 Ma...
Markdown
z0=0;z0<d/2;z0++) for (int y0=0;y0<h/2;y0++) for (int x0=0;x0<w/2;x0++) { int x1=x0+w/2, y1=y0+h/2, z1=z0+d/2; float tmpA, tmpB; // 000 <> 111 tmpA = in.get(x0,y0,z0); tmpB = in.get(x1,y1,z1); in.set(x0,y0,z0,tmpB); in.set(x1,y1,z1,tmpA); // 010 <> 101 tmpA = in.get(x0,y1...
Java
21 00 10 */ lfs f1, 0x10(r1) /* 8013C530 00138190 FC 80 28 1E */ fctiwz f4, f5 /* 8013C534 00138194 C0 01 00 24 */ lfs f0, 0x24(r1) /* 8013C538 00138198 FC 40 18 1E */ fctiwz f2, f3 /* 8013C53C 0013819C EC 21 28 28 */ fsubs f1, f1, f5 /* 8013C540 001381A0 88 9F 00 11 */ lbz r4, 0x11(r31) /* 8013C544 001381A4 EC 0...
Assembly
(1.0 / 60.0 ); this.world.step(Math.min(Clock.instance.elapsedTime, 0.1)); } } }/** * Determines the minimum value * * @param {number} d0 First number * @param {number} d1 Second number * @param {number} d2 Third number * @param {number} bx Character * @param {number} ay Character * @ret...
Typescript
logger.lifecycle("${border}\n") } } }) } // =========================== // Code Quality checks // =========================== checkstyle { toolVersion = "7.4" } spotbugs { excludeFilter.set(project.file("config/spotbugs/exclude.xml")) showProgress.set(true) s...
Kotlin
rgba(0, 0, 0, 0.6); } .ui.secondary.inverted.segment { background: #4c4f52 -webkit-linear-gradient(rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.2) 100%); background: #4c4f52 linear-gradient(rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.2) 100%); color: rgba(255, 255, 255, 0.8); } /* Tertiary */ .ui...
CSS
Luma20NoRoundInt(tmp1, tmpW, tmp2, blkOff, blkStride, 2, 0, blkW, blkH); int off = 2; for (int j = 0; j < blkH; j++) { for (int i = 0; i < blkW; i++) { int rounded = clip((tmp2[blkOff + i] + 512) >> 10, -128, 127); int rounded2 = clip((tmp1[off + i + 1] + 16)...
Java
�的形式 $p(x)=\frac{1}{Z}\prod\limits_{i=1}^K\psi_i(x_{ci})=\frac{1}{Z}\exp(-\sum\limits_{i=1}^KE(x_{ci}))$,这也是一个指数族分布。 一个玻尔兹曼机存在一系列的问题,在其推断任务中,想要精确推断,是无法进行的,想要近似推断,计算量过大。为了解决这个问题,一种简化的玻尔兹曼机-受限玻尔兹曼机作出了假设,所有隐变量内部以及观测变量内部没有连接,只在隐变量和观测变量之间有连接,这样一来: $$ p(x)=p(h,v)=\frac{1}{Z}\exp(-E(v,h)) $$ 其中能量函数 $E(v,h)$ 可以写出三个部分,包括与节点集合相...
Markdown
e) }) }) public class Swarm extends AOptimizationAlgorithm { /** The Constant DEFAULT_INERTIA. */ public static final double DEFAULT_INERTIA = 0.729844; /** The Constant DEFAULT_COGNITIVE. */ public static final double DEFAULT_COGNITIVE = 1.496180; // Cognitive component. /** The Constant DEFAULT_SOCIAL. */ pu...
Java
nction(err, res) -- Check if we got an error if self:ReturnedErrors(err, res) then statCollection:print("Error on sendCustom " .. hiacLB) CustomNetTables:SetTableValue("gameinfo", "game_recorded", {value="failed"}) return end -- Tell the user ...
Lua
(array).join(''); content.innerText = currentWords; this.isFinished = false; this.reset(); } compare() { correctWordsCount = 0; let typedWords = typingPad.value; let arrayOrigin = currentWords.split(''); let arrayTyped = typedWords.split(''); let ...
Typescript
--[[ This file is part of luax. luax 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. luax is distributed in the hope that it will be useful...
Lua
.0 / (2.0 * PI * (1.0 - cos_thetamax)); it } fn pdf_wi(&self, i: &InteractionData, wi: &Vector3<f32>) -> f32 { let pcenter = self.object_to_world.transform_point(&Point3f::new(0.0, 0.0, 0.0)); // Return uniform PDF if point is inside sphere let porigin = offset_ray_origin(&i.p,...
Rust
U[;$)N_OPTIONAL_ONNX_DTYPE_STR) onnx_type_strs ris_optional_onnx_dtype_strr<* 4 44rset[str]c[U$)N,_TORCH_DTYPE_TO_COMPATIBLE_ONNX_TYPE_STRINGS)rs r"from_torch_dtype_to_onnx_dtype_strrB. ...
Python
IM_DELIMITER, includeHeader: Boolean = INCLUDE_HEADER, quote: Char? = QUOTE, quoteMode: QuoteMode = QUOTE_MODE, escapeChar: Char? = ESCAPE_CHAR, commentChar: Char? = COMMENT_CHAR, headerComments: List<String> = HEADER_COMMENTS, recordSeparator: String = RECORD_SEPARATOR, ): Unit = writeD...
Kotlin
0.3, ':: running hook [' .. self:getRandomArchWord() .. ']') self:addLine(delay + 0.3, ':: running hook [' .. self:getRandomArchWord() .. ']') self:addLine(delay + 0.3, ':: running hook [' .. self:getRandomArchWord() .. ']') self:addLine(delay + 0.5, ':: running hook [' .. self:getRandomArchWord() .. ']') ...
Lua
se. package entitlement import ( "context" "sync" "sync/atomic" "time" "github.com/uber/peloton/.gen/peloton/api/v0/peloton" pb_res "github.com/uber/peloton/.gen/peloton/api/v0/respool" "github.com/uber/peloton/pkg/common" "github.com/uber/peloton/pkg/common/api" "github.com/uber/peloton/pkg/common/util" ...
Go
depth we still allow manually opened nodes to be logged. if (g.LogEnabled && !(flags & ImGuiTreeNodeFlags_NoAutoOpenOnLog) && window->DC.TreeDepth < g.LogAutoExpandMaxDepth) is_open = true; return is_open; } bool ImGui::TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* label, const ch...
C++
<code>cv68 = 2</code></td></tr><tr><td>Cyrillic Lower En (<code>н</code>) with serifs at top left</td></tr><tr><td rowspan="2" width="60"><img src="../images/cv-cyrl-en-top-left-bottom-right-serifed.light.svg#gh-light-mode-only" width=32/><img src="../images/cv-cyrl-en-top-left-bottom-right-serifed.dark.svg#gh-dark-mo...
Markdown
re.validated||Q.key!=null)){Q._store.validated=!0;var Ne=Hn(Se);if(!bt[Ne]){bt[Ne]=!0;var Le="";Q&&Q._owner&&Q._owner!==ct.current&&(Le=" It was passed a child from "+zt(Q._owner.type)+"."),fe(Q),dt('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',Ne...
JavaScript
/* Copyright 2016 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "atomic.h" #include "extpower.h" #include "charge_manager.h" #include "common.h" #include "console.h" #include "driver/charger/bd9995x.h" ...
C
:0;left:0;height:36px;padding:7px 12px;opacity:0;filter:alpha(opacity=0)}.pika-label,.pika-table td,.pika-table th{position:relative}.pika-label{display:inline-block;z-index:1000;margin:0;padding-top:15px;padding-bottom:15px;font-size:15px;line-height:1}.pika-label+.pika-label{margin-left:10px;top:-1px;font-size:13px;c...
CSS
OROLA_821, 821 SHx_SH3, 103 SHx_SH4, 104 STRONGARM, 2577 ARM720, 1824 ARM820, 2080 ARM920, 2336 ARM_7TDMI, 70001 OPTIL, 0x494f } pub_struct_const! { PROCESSOR_ARCHITECTURE, u16, /// [`SYSTEM_INFO`](crate::SYSTEM_INFO) `wProcessorArchitecture` (`u16`). => INTEL, 0 MIPS, 1 ALPHA, 2 PPC, 3 ...
Rust
5658,-150.09967252,ASOS,TALKEETNA", "PATL,126.200,62.88874102,-155.97772147,CTAFUNICOM,TATALINA LRRS", "PATL,126.205,62.88874102,-155.97772147,CTAFUNICOM,TATALINA LRRS", "PATQ,119.925,70.46718295,-157.42980068,ASOS,ATQASUK EDWARD BURNELL SR MEM", "PATQ,119.930,70.46718295,-157.42980068,ASOS,ATQASUK EDWA...
C++
c->peak_bw); /* * Skip pre-initialization that is done by icc_node_add(), which sets * bandwidth to maximum for all clients before drivers are loaded. * * This doesn't make sense for us because we don't have drivers for all * clients and it's okay to keep configuration left from bootloader * during boot, ...
C
x0050($s1) ## 00000050 /* 00934 808B5564 240F00A0 */ addiu $t7, $zero, 0x00A0 ## $t7 = 000000A0 /* 00938 808B5568 2418FFFF */ addiu $t8, $zero, 0xFFFF ## $t8 = FFFFFFFF /* 0093C 808B556C 46069202 */ mul.s $f8, $f18, $f6 /* 00940 808B5570 24190163 */ addiu $t9, $zero, 0...
Assembly
::AutoUnmount) { // Auto unmount is only supported via fusermount return fuse_mount_fusermount(mountpoint, options); } let res = fuse_mount_sys(mountpoint, options)?; if let Some(fd) = res { Ok(fd) } else { // Retry fuse_mount_fusermount(mountpoint, options) ...
Rust
MPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS // > FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR // > COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER // > IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF O...
Rust
(); worldIn.notifyNeighborsOfStateChange(pos.offset(enumfacing.getOpposite()), this); return true; } } public void breakBlock(World worldIn, BlockPos pos, IBlockState state) { if (((Boolean)state.getValue(POWERED)).booleanValue()) { worldIn.notify...
Java
4 ◯─┴─╯ │ │ B ◯ ╭───╯ │`, }, { name: "with a path that has room to move to the left and continues", commitOpts: []models.NewCommitOpts{ {Hash: "1", Parents: []string{"2", "3"}}, {Hash: "3", Parents: []string{"2"}}, {Hash: "2", Parents: []string{"4", "5"}}, {Hash: "4", Parents: []string{"6",...
Go
name: 'Error Label' }, maxLength: { control: 'number', name: 'Max Length' }, customValidation: { control: 'boolean', name: 'Custom Validation?' }, helpText: { control: 'text', name: 'Help Text' }, }, } as Meta<typeof DateField>; const defaultExample: StoryFn<typeof DateField> = (args, { argTypes }) => ({...
Typescript
schemas::user))] mod find_unique { use query_engine_tests::assert_query; #[connector_test] async fn fetch_unique_by_id(runner: &Runner) -> TestResult<()> { test_user(runner).await?; assert_query!( runner, "query { findUniqueUser(where: { id: 1 }) { id } }", ...
Rust
) } hjSpec := &execinfrapb.HashJoinerSpec{ LeftEqColumns: lEqCols, RightEqColumns: rEqCols, OnExpr: onExpr, Type: testSpec.joinType, } pspec := &execinfrapb.ProcessorSpec{ Input: []execinfrapb.InputSyncSpec{ {ColumnTypes: ...
Go
/* * null-cipher.h * * header file for the null cipher * * * David A. McGrew * Cisco Systems, Inc. */ /* * * Copyright (c) 2001-2006, Cisco Systems, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the followi...
C
ontrol.ShowForm(textArea, e.LogicalPosition); } oldToolTipControl = toolTipControl; RemoveMarker(textArea.Document); oldMarker = marker; } } catch (System.Exception ex) { ...
C#
d, U+732a, U+73cd, U+7518, U+756a, U+75af, U+75be, U+75c7, U+76d2, U+76d7, U+7763, U+78e8, U+795d, U+79df, U+7c4d, U+7d2f, U+7ee9, U+7f13, U+7f8a, U+8000, U+8010, U+80af, U+80f6, U+80f8, U+8212, U+8273, U+82f9, U+83ab, U+83b1, U+83f2, U+8584, U+871c, U+8861, U+888b, U+88c1, U+88e4, U+8bd1, U+8bf1, U+8c31, U+8d5a, U+8d7...
CSS
rt anki.scheduler.RepositionDefaultsResponse import anki.scheduler.SchedTimingTodayResponse import anki.scheduler.SchedulingContext import anki.scheduler.SchedulingState import anki.scheduler.SchedulingStates import anki.scheduler.UnburyDeckRequest import anki.scheduler.cardAnswer import anki.scheduler.scheduleCardsAsN...
Kotlin
try { Constructor<? extends AbstractPredicateAbstractionLattice> latticeConstructor = latticeType.getConstructor(List.class); return latticeConstructor.newInstance(applicablePredicates); } catch (NoSuchMethodException | SecurityException | InstantiationException ...
Java
ZpQ2FsaWJyYXRpb25Nb2RlUmVxdWVzdA=='); @$core.Deprecated('Use starlink_router_hourly_metrics_v2Descriptor instead') const starlink_router_hourly_metrics_v2$json = { '1': 'starlink_router_hourly_metrics_v2', '2': [ {'1': 'id', '3': 1, '4': 1, '5': 11, '6': '.google.protobuf.StringValue', '10': 'id'}, {'1': '...
Dart
ype.Int elseif pinTpl.data_type == "float" then return PinType.Float elseif pinTpl.data_type == "string" then return PinType.String elseif pinTpl.data_type == "bool" then return PinType.Bool elseif pinTpl.data_type == "object" then return PinType.Object elseif pinTpl.data_type == "function" then return PinT...
Lua
guageExperiments}=$flag', '${Flags.readClosedWorld}=${toUri(module, closedWorldId)}', '${Flags.readData}=${toUri(module, globalDataId)}', '${Flags.readCodegen}=${toUri(module, codeId)}', '${Flags.codegenShards}=${codeId.shards}', '--out=${toUri(module, jsId)}', ]; var result = ...
Dart
. p .. "...") local c = assert(sock:accept()) c:settimeout(0) print "Connected" local eval = function(a) local ok, fn = pcall(maxi, a) if not ok then log.warn("syntax error: " .. fn) else print(fn) end end local l, e local listen = function() l, e...
Lua
he "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for th...
Java
e(Direction4.Left, rect.height).MouseInside()) { if (Input.MouseLeftButtonDown) FoldingColorField = true; Cursor.SetCursorAsHand(); } } else if (!FoldingColorField && Input.MouseLeftButtonDown) { FoldingColorField = true; } // Final RequireTooltip(rect, TIP_PAINTING_COLOR); rect.SlideRight(padd...
C#
ush(_stack!.get(idx)); } @override void pushBoolean(bool b) { _stack!.push(b); } @override void remove(int idx) { rotate(idx, -1); pop(1); } @override void replace(int idx) { _stack!.set(idx, _stack!.pop()); } @override void rotate(int idx, int n) { int t = _stack!.top() ...
Dart
ctor { HaltDetector(this.length, this.laengeHalt, this.schwelleHalt, this.schwelleQuiet) : _ringbuffer = List<double>.filled(length, 0.0) { reset(0.0); } final int length; final int laengeHalt; final double schwelleHalt; final double schwelleQuiet; final List<double> _ringbuffer; int _posRingb...
Dart
4, $a1, $t3 /* 06EB8 80903DF8 4600520D */ trunc.w.s $f8, $f10 /* 06EBC 80903DFC 44094000 */ mfc1 $t1, $f8 /* 06EC0 80903E00 00000000 */ nop /* 06EC4 80903E04 A5890000 */ sh $t1, 0x0000($t4) ## 00000000 /* 06EC8 80903E08 C484FFF8 */ lwc1 $f4, -...
Assembly
private readonly uniq_id: string, ) { const uuid = this.platform.api.hap.uuid.generate(accessory.context.device[this.uniq_id].uniq_id); this.service = this.accessory.getService(uuid) || this.accessory.addService(this.platform.Service.Switch, accessory.context.device[this.uniq_id].name, uuid); // set...
Typescript
ا يمكنني حظر هذا الشخص لأنه محظور بالفعل.', ['5'] = 'اجعلني مشرفا لكي احظر هذا المستخدم، حاول مجددا لاحقا.', ['6'] = '%s <code>[%s]</code> حظر %s <code>[%s]</code> من %s <code>[%s]</code>%s.\n%s %s', ['7'] = 'قام %s بحظر %s%s.' }, ['bash'] = { ['1'] = 'حدد أمراً لتنفيذه!', ...
Lua
me=_,c;var Je=it!==null,Bt=!1;if(a===null)c.memoizedProps.fallback!==void 0&&f1(c);else{var Mn=a.memoizedState;if(Bt=Mn!==null,!Je&&Mn!==null){var pn=a.child.sibling;if(pn!==null){var Pi=c.firstEffect;Pi!==null?(c.firstEffect=pn,pn.nextEffect=Pi):(c.firstEffect=c.lastEffect=pn,pn.nextEffect=null),pn.effectTag=W0}}}if(J...
JavaScript
) --- <div align="center"> <h2>เฉลยอย่างละเอียดจะตามมาทีหลัง</h2> </div> --- # Solution ```python # -------------------------------------------------- # File Name : 2565_1_Q3_01.py # Problem : Group Stage # Author : Worralop Srichainont # Date : 2025-07-11 # --------------------------------------------...
Markdown
GroupChangeInfoType.V2TIM_GROUP_INFO_CHANGE_TYPE_OWNER; _needUpdate!.ownerID = info.value; } } notifyListeners(); }, onReceiveJoinApplication: (String groupID, V2TimGroupMemberInfo member, String opReason) async { _onReceiveJoinApplication(groupID, member, opReason); chatV...
Dart
<MutableList<TimePeriodInDay>>> { val easToken = easPreferenceSource.getEasToken() if (easToken.isLogin()) { return easService.getScheduleStructure(term, isUndergraduate, easToken) } return LiveDataUtils.getMutableLiveData<DataState<MutableList<TimePeriodInDay>>>( ...
Kotlin
} func isZero(x interface{}) bool { return x == reflect.Zero(reflect.TypeOf(x)).Interface() } func createError(x reflect.Value, v constraint, message string) error { return pipeline.NewError(nil, fmt.Sprintf("validation failed: parameter=%s constraint=%s value=%#v details: %s", v.target, v.name, getInterfaceValue...
Go
ce.SetInstance(hijack.Instance()) surface.SetType(SurfaceType_SURFACE_TYPE_MACOS_MVK) hijack.Call(ctx, g, b) hijack.Extras().Observations().ApplyWrites(g.Memory.ApplicationPool()) handle := hijack.PSurface().MustRead(ctx, hijack, g, nil) hijack.PSurface().MustWrite(ctx, handle, hijack, g, b) surface.SetVulkanHa...
Go
ow the Depthmap in this window")); enableDepthAction->setCheckable(true); enableDepthAction->setChecked(depthEnabled); connect(enableDepthAction, SIGNAL(triggered(bool)), this, SLOT(enableDepth(bool))); connect(UASManager::instance(), SIGNAL(activeUASSet(UASInterface*)), this, SLOT(setActiveUAS(UASInte...
C++
110: 41fa 0830 lea %pc@(0x942),%a0 ; ScrGetColortable 114: 2348 0fe8 movel %a0,%a1@(4072) 118: 41fa 084c lea %pc@(0x966),%a0 ; ScrGetGrayPat 11c: 2348 0fec movel %a0,%a1@(4076) 120: 41fa 086...
Markdown
from aws_cdk import (Resource) import aws_cdk.aws_eks as eks class IngressNginx(Resource): def __init__(self, scope, id , **kwargs): super().__init__(scope, id) cluster = None if 'cluster' in kwargs: cluster = kwargs['cluster'] else: raise Exceptio...
Python
"Expected character not found: $stopChar", ) } } return list } private fun readString(): String = buildString { while (hasCharacters()) { val ch = getNextCharacter() if (ch.isLetter()) { append(ch) } else { unlookCharacter() break ...
Kotlin
// // RMStoreKeychainPersistence.h // RMStore // // Created by Hermes on 10/19/13. // Copyright (c) 2013 Robot Media. All rights reserved. // // Licensed 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 Lice...
C
ween secondary and tertiary side is equal to that between tertiary and primary side: " <<"Zjk = "<<zjk<<"pu, "<<"Zki = "<<zki<<"pu.\n"; } if(zki==zij) { error_count++; osstream<<"("<<error_count<<") Positive sequence leakage impedance between tertiary ...
C++
math.min(oneHalf, oneHalf); //* Animations final moveR1 = animation.moveR1.value; final moveL1 = animation.moveL1.value; final moveR2 = animation.moveR2.value; final moveU1 = animation.moveU1.value; final moveD1 = animation.moveD1.value; final moveU2 = animation.moveU2.value; final mov...
Dart
ynthable") GUI:SameLine(225) GUI:InputText("##devbag35",tostring(dev.isDesynthable)) GUI:BulletText("RepairClassJob") GUI:SameLine(225) GUI:InputText("##devbag36",tostring(item.repairclassjob)) GUI:BulletText("RepairItem") GUI:SameLine(225) GUI:InputText("##devbag37",tostring(item.repairitem)) ...
Lua
}, { '1': 'basic_scaling', '3': 4, '4': 1, '5': 11, '6': '.google.appengine.v1beta.BasicScaling', '9': 0, '10': 'basicScaling' }, { '1': 'manual_scaling', '3': 5, '4': 1, '5': 11, '6': '.google.appengine.v1beta.ManualScaling', '9'...
Dart
0,"maximum": 65536}""") @JsonSchemaDefault("22") val port: Int, @get:JsonProperty("tunnel_user", required = true) @param:JsonProperty("tunnel_user", required = true) @JsonSchemaTitle("SSH Login Username") @JsonPropertyDescription("OS-level username for logging into the jump server host") @J...
Kotlin
1f33;--vscode-peekViewEditorGutter-background: #001f33;--vscode-peekViewResult-matchHighlightBackground: rgba(234, 92, 0, .3);--vscode-peekViewEditor-matchHighlightBackground: rgba(255, 143, 0, .6);--vscode-editorMarkerNavigationError-background: #f14c4c;--vscode-editorMarkerNavigationError-headerBackground: rgba(241, ...
CSS
b.InsertWorkspaceBuildParameters(dbauthz.AsSystemRestricted(ctx), database.InsertWorkspaceBuildParametersParams{ WorkspaceBuildID: build.ID, Name: []string{provider.TaskPromptParameterName}, Value: []string{*aiTaskPrompt}, }) require.NoError(t, err) } return ws } // Crea...
Go
("tanteisha_joshu") popn_quest_lively = game_config.get_int("popn_quest_lively") popn_quest_lively_2 = game_config.get_int("popn_quest_lively_2") # Event phases return ( { # Default song phase availability (0-30) # The following songs are unlo...
Python
par8) { int var5; if (!par8) { int color = par5; par5 /= 1000000; // make alpha-only par5 *= 1000000; // pad back to alpha bitspace par5 = 0xff000000+(color-par5); //subtract original color alpha, then add FF } par2 += (par7-par6); par3 += par1; if (par1 < par3) { var5 = par1; par1 =...
Java
YDVQQGEwJVUzEaMBgGA1UECgwRSWRlbnRpdHkgUHJvdmlkZXIxDDAKBgNVBAsMA2lkcDENMAsGA1UEAwwEamNveDAeFw0xMDEwMTAxMzU0MDBaFw0yMDEwMDcxMzU0MDBaMGwxJDAiBgkqhkiG9w0BCQEWFWphbWVzLnMuY294QGdtYWlsLmNvbTELMAkGA1UEBhMCVVMxGjAYBgNVBAoMEUlkZW50aXR5IFByb3ZpZGVyMQwwCgYDVQQLDANpZHAxDTALBgNVBAMMBGpjb3gwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAIt33o...
Java
(filePath) val gzipIn = GzipCompressorInputStream(fileStream) val tarIn = TarArchiveInputStream(gzipIn) var entry = tarIn.nextTarEntry var stop = 0 while (entry != null) { if (entry.isDirectory) { val f = File("$directory/${entry.name}") ...
Kotlin
- Extract .tar file into images (under 1000 folders) (it took 4:04:59). ```python from Addon.ImageNet.imagenet import extract_train tar_name = 'data_download_folder/ImageNet/ILSVRC2012_img_train.tar' target_dir = 'data_download_folder/ImageNet/train_jpeg' extract_train(tar_name, target_dir) ``` - convert images to tfre...
Markdown
Mid < minPosToMid) { index = i; minPosToMid = posToMid; } } } if (maxSqDist > sqTolerance) { // save the point importance in squared pixels as a z coordinate points[index].z = maxSqDist; if (index - first > 1) simplify(poin...
C++
unused: false*/ axis = new Axis(this, merge(options, { index: this[key].length, isX: isX })); /*jslint unused: true*/ // Push the new axis options to the chart options chartOptions[key] = splat(chartOptions[key] || {}); chartOptions[key].push(options); if (pick(redraw, true)) { this.redraw(ani...
JavaScript
ement this endpoint, when we cover database // persistence later in the course. v := mux.Vars(r) if v["username"] == "EngineerKamesh" { mockPosts := make([]socialmedia.Post, 3) post1 := socialmedia.NewPost("EngineerKamesh", socialmedia.Moods["thrilled"], "Go is awesome!", "Check out the Go web site!", "https...
Go
local Tab = require("cmp_kitty.tab") local focused_tab_data = { is_active_tab = false, is_focused = true, title = "title", windows = {}, } local unfocused_tab_data = { is_active_tab = false, is_focused = false, title = "title", windows = {}, } describe("include_focused=true", function() local config = { o...
Lua
/* * Copyright (C) 2010 The Android Open Source Project * * Licensed 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 app...
C
= alloc<BooleanVar>() val _retPtr = _ret.ptr __method_bind.isRootHidden.call(self._handle, emptyList(), _retPtr) _ret.value } } fun setAllowReselect(allow: Boolean) { val self = this return Allocator.allocationScope { __method_bind.setAllowReselect.call(self._handle, listOf(all...
Kotlin
+ " array.push(height >= lastHeight);\n" + " lastHeight = height;\n" + " }\n" + " document.getElementById('myTextarea').value = array.join(', ');\n" + "</script>\n" + "</body></html>"; final WebDriver driver = loadPage2(html); final St...
Java
be16_to_cpu(stream + 5); nr_components = stream[7]; if(nr_components > COMPONENTS-1) error("Components exceed the value specified by the Jpeg spec\n"); priv->nf_components = nr_components; #if SANITY_CHECK if (stream[2] != 8) error("Precision other than 8 is not supported\n"); if (w...
C
admonition-icon--rust: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3C!--! Font Awesome Free 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2023 Fonticons, In...
CSS
用场景?是否存在技术瓶颈?| |深度学习|如何设计一个高效的深度神经网络模型?| |聊天机器人|如何让聊天机器人更加智能化,让用户体验更好?| |计算机视觉|目前计算机视觉技术在哪些领域得到了广泛应用?| |文本分类|如何对大规模文本进行分类和归类?有哪些常用的算法?| |智能家居|未来智能家居的发展方向是什么?怎么保证智能家居的安全性?| |OpenAI GPT-3.5 文本生成功能如何使用?|请提供一些步骤,以便我可以使用 OpenAI GPT-3.5 进行文本生成。| |自然语言处理技术在哪些领域有应用?|能否列举一些自然语言处理技术的应用场景?| |如何使用 Python 编程语言进行数据分析?|你能够介绍一下 Python...
Markdown
} actsHtml += '</div>'; } actsHtml += '</div>'; } const getImageUrl = (img) => { if (!img.url || typeof img.url !== 'string') return ''; return img.url.replace(/(thumb|med|original)/, 'max'); }; const imagesHTML = (() => { if (!activeScene) return '<div>No active scene.</div>'; const i...
JavaScript
} } private fun checkAndReloadIfModified() { if (!enableFileMonitoring) return try { val file = File(filePath) if (file.exists() && file.lastModified() > lastModified) { loadProperties() } } catch (e: Exception) { ...
Kotlin
os.path.join(data_dir, "EvaluatorData/layers_hull_data/layers_init_contour_{}.npy".format(i)) # saved_indicator_values_path = os.path.join(data_dir, "EvaluatorData/layers_hull_data/layers_indicator_values_{}.npy".format(i)) # layer_pair_points, layer_pair_hulls, layer_init_contour, layers_indicator_va...
Python
档的文件(file);解归档需要加上`-xvf`参数,其中`x`表示抽取(extract),其他两个参数跟创建归档相同。 12. 将标准输入转成命令行参数 - **xargs**。 下面的命令会将查找当前路径下的html文件,然后通过`xargs`将这些文件作为参数传给`rm`命令,实现查找并删除文件的操作。 ```Shell [root@iZwz97tbgo9lkabnat2lo8Z ~]# find . -type f -name "*.html" | xargs rm -f ``` 下面的命令将a.txt文件中的多行内容变成一行输出到b.txt文件中,其中`<`表示从a.txt中读取输入,...
Markdown
usterState title: GetNodeClusterState function (clusapi.h) description: Determines whether the Cluster service is installed and running on a node. helpviewer_keywords: ["ClusterStateNotConfigured","ClusterStateNotInstalled","ClusterStateNotRunning","ClusterStateRunning","GetNodeClusterState","GetNodeClusterState functi...
Markdown