content
stringlengths
2
6.21k
label
stringclasses
16 values
[sp, 16] ldp x29, x30, [sp], 32 ret .L91: ret .size hynix_reconfig_rr_para, .-hynix_reconfig_rr_para .section .text.nand_flash_print_info,"ax",@progbits .align 2 .global nand_flash_print_info .type nand_flash_print_info, %function nand_flash_print_info: stp x29, x30, [sp, -32]! add x29, sp, 0 str x19, [sp, 1...
Assembly
], p1: number[]) => { // Vector from p0 to p1 return [p1[0] - p0[0], p1[1] - p0[1]]; } /** * 生成有圆角的多边形 * */ export function roundedHull(polyPoints: number[][], padding: number) { // The rounded hull path around a single point const roundedHull1 = (polyPoints: number[][]) => { let p1 = [poly...
Typescript
e, out var encrypted); var loadStatus = sut.Decrypt(encrypted, out var decrypted, out _); var original = new MemoryStream(message); decrypted.Seek(0, SeekOrigin.Begin); original.Seek(0, SeekOrigin.Begin); while (original.Position < original.Length) { Assert.AreEqual(original.ReadByte(), decrypte...
C#
]pbehavior.Type{ "test-inactive": { ID: "test-active", Name: "active", Type: pbehavior.TypeInactive, Priority: 1, }, "test-active": { ID: "test-active", Name: "active", Type: pbehavior.TypeActive, Priority: 1, }, "test-pause": { ID: "test-pause", ...
Go
), ); } Future<Widget> buildAppBase( Widget child, { Map<String, Object> preferences = const {}, List<Override>? providerOverrides, }) async { WidgetsApp.debugAllowBannerOverride = false; HttpOverrides.global = MockHttpOverrides(); VisibilityDetectorController.instance.updateInterval = Duration.zero; ...
Dart
d by a * BSD-style license that can be found in the LICENSE file. */ // @dart=2.19 // Slightly modified copy of // `co19/src/Language/Statements/Switch/execution_case_t02.dart`. /** * @assertion Execution of a case clause case ek: sk of a switch statement * switch (e) {label11 ..label1j1 case e1: s1 … labeln1 .....
Dart
(status) } OutputFormat::Json => { let table = json!({ "last_oui": txn.oui, "update": update, "hash": status_json(status), "txn": envelope.to_b64()?, }); print_json(&table) } } } pub fn revers...
Rust
wports();\n }\n }\n },\n\n addShadowMap: function(shadowMap) {\n if (this._shadowMaps.length > 0) {\n if (this._shadowMaps.indexOf(shadowMap) !== -1) return;\n }\n\n this._shadowMaps.push(shadowMap);\n\n var light = shado...
JavaScript
em.target.G6Item.getAnchorPoints()[anchor], center: [number, number] = [targetBound.x + targetBound.width / 2, targetBound.y + targetBound.height / 2], pointerPosition: [number, number], pointerEndPosition: [number, number]; anchorPosition = [anchorPosition.x...
Typescript
a: Parcelable?) { (supportActivity as? SupportActivity)?.start(ARouter.getInstance().build(path) .withParcelable(FOUR, data) .withString(THIRDATG, tag3) .withString(SECENDTAG, tag2) .withString(FIRSTTAG, tag) .navigation() as? Suppo...
Kotlin
rep; String found; int count; boolean result = true; String[] reply; reply = jdb.receiveReplyFor(JdbCommand.where); grep = new Paragrep(reply); count = grep.find(DEBUGGEE_THREAD + "." + checkedMethods[2]); if (count > 0) { log.complain("Debug...
Java
*/ public final inline var animOffsetCurve: Curve? @JvmName("animOffsetCurveProperty") get() = getParamCurve(CPUParticles3D.Parameter.ANIM_OFFSET) @JvmName("animOffsetCurveProperty") set(`value`) { setParamCurve(CPUParticles3D.Parameter.ANIM_OFFSET, value) } public override fun new(sc...
Kotlin
onChipGroupStyle"); [ResourceKeyDefinition(typeof(Style), "ElevatedFilterChipGroupStyle", TargetType = typeof(global::Uno.Toolkit.UI.ChipGroup))] public static StaticResourceKey<Style> ElevatedFilter => new("ElevatedFilterChipGroupStyle"); [ResourceKeyDefinition(typeof(Style), "FilterChipGroupStyle", TargetT...
C#
s ease; -moz-transition: opacity 0.3s ease; -ms-transition: opacity 0.3s ease; -o-transition: opacity 0.3s ease; transition: all 0.3s ease; } .language_selection li a:hover { color: #b5aec4; } .language_selection li:last-child a { border-bottom: none; } /********************************* 3.3 Account ************...
CSS
can be found in the LICENSE file. import 'dart:html'; import 'package:expect/legacy/minitest.dart'; // ignore: deprecated_member_use_from_same_package main() { final div = new DivElement(); final canvas = new CanvasElement(width: 200, height: 200); canvas.id = 'testcanvas'; final element = new Element.html(...
Dart
{ ret->add_child(child->accept(*this)); }); } return std::move(ret); } } } } /** * @file feature-summary.cpp * @author Sean Massung * * All files in META are dual-licensed under the MIT and NCSA licenses. For more * details, consult the f...
C++
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0...
C
-> eb_(intTensorOf(0, 1, 3), intTensorOf(0, 2)) }, extractDerivative = { input: EmbeddingBag, output: DTensor, extractor: (tensorInput: DTensor, tensorOutput: DTensor)->DTensor -> input.trainableWeights.extr...
Kotlin
", }, event: { timepoint: 1350909, published_at: "2021-08-20T14:35:01", type: "changed", }, }, { resource_kind: "company-psc-individual", resource_uri: "/company/12186390/persons-with-significant-control/individual/fx_2LD1HK42xQfpChcZT_l938HA", resource_id: "fx_2LD1HK...
Typescript
ype,"shadowAngle",null);Z("BABYLON.PointLight",g);const m="KHR_lights_punctual";class N{constructor(t){this.name=m,this._loader=t,this.enabled=this._loader.isExtensionUsed(m)}dispose(){this._loader=null,delete this._lights}onLoading(){const t=this._loader.gltf.extensions;if(t&&t[this.name]){const e=t[this.name];this._l...
JavaScript
.status(401).send({ message: "payload inválido" }); } try { const [result] = await db.query("SELECT * FROM usuarios WHERE email=?", [ email, ]); const usuario = result[0]; if (!usuario) { return res.status(401).send({ message: "usuário ou senha inválida" }); } const senhaCert...
JavaScript
xes for(int i = 0; i < marker.text.size(); i++) { textX = marker.glColors.get(i) == null ? xBoxLeft + (boxWidth - OpenGL.smallTextWidth(gl, marker.text.get(i))) / 2 : xBoxLeft + padding + textHeight + Theme.tooltipTextPadding; textY = yBoxTop - ((i + 1) * (pad...
Java
$f4 /* AB45B4 8003D414 00000000 */ nop /* AB45B8 8003D418 46020202 */ mul.s $f8, $f0, $f2 /* AB45BC 8003D41C 460A4180 */ add.s $f6, $f8, $f10 /* AB45C0 8003D420 460C0482 */ mul.s $f18, $f0, $f12 /* AB45C4 8003D424 E6060000 */ swc1 $f6, ($s0) /* AB45C8 8003D428 C7A40064 */ lwc1 $f4, 0x64($sp) /* AB45CC 8003D4...
Assembly
sformComponent transform) { this.accumulator = (this.accumulator + elapsed) % this.Duration; var progress = this.accumulator / this.Duration; var traveled = this.Distance * progress; var distance = 0.0f; for (var i = 1; i < this.Waypoints.Count; i++) ...
C#
r object func (obj *patternFlowSnmpv2CVersionCounter) SetStep(value uint32) PatternFlowSnmpv2CVersionCounter { obj.obj.Step = &value return obj } // description is TBD // Count returns a uint32 func (obj *patternFlowSnmpv2CVersionCounter) Count() uint32 { return *obj.obj.Count } // description is TBD // Count r...
Go
have their own type arguments, will run recursively. /// /// `<x1, x2, x...>` void _appendTypeArgumentParts( List<InlayHintLabelPart> parts, List<DartType> types, ) { parts.add(InlayHintLabelPart(value: '<')); for (int i = 0; i < types.length; i++) { _appendTypePart(parts, types[i]); ...
Dart
): if state == END_0: return -1 if state == END_1: return 1 # other states return 0 def reset(self): self.state = START self.end = False self.states = [] def play(self, valueFunc, rounds=100): for _ in range(rounds): ...
Python
CVE-2020-11993.json security/vulnerabilities_24.html) / https://lists.apache.org/thread.html/r2c6083f6a2027914a0f5b54e2a1f4fa98c03f8693b58460911818255%40%3Ccvs.httpd.apache.org%3E ([httpd-cvs] 20210330 svn commit: r1888228 - in /httpd/site/trunk/content/security/json: CVE-2020-11984.json CVE-2020-11993.json) / https://...
Markdown
message: any; submitted: boolean; submitting: boolean; } const initialIdentityState: IdentityState = { currentUser: null, error: null, isAuthenticated: false, message: null, submitted: false, submitting: false }; export function identityReducer(state: IdentityState = initialIdentitySta...
Typescript
473-4cc8-834b-3770328a0c8d", "opponent_id": "$MOCK_ME_USER_ID", "asset_id": "c6d0c728-2624-429b-8e0d-d9d19b6592fa", "amount": "1", "opening_balance": "10", "closing_balance": "10", "trace_id": "052eebf6-9a25-42cb-b434-20d29d269928", "memo": "memo for test", "created_at": ...
Kotlin
.sql("SELECT book.*,magazine.*," + magazineAuthorAlias + ".*," + bookAuthorAlias + ".* FROM complex_object_with_same_leafs " + "LEFT JOIN magazine ON complex_object_with_same_leafs.magazine=magazine._id " + "LEFT JOIN author AS " + magazineAuthorAlias + " ON magazine.author=" + magazineA...
Java
s.replace("[", "\\[") .replace("*", "\\*") .replace("_", "\\_") .replace("`", "\\`") } #[tokio::main] async fn main() -> anyhow::Result<()> { env_logger::init(); let token = std::env::args() .nth(1) .ok_or(anyhow!("Need a Telegram bot token as argument"))?; let ...
Rust
t(fork,vals[ii]); } Task.fork(fork).joinb(); // openjdk can't handle typed object graphs during deserialization System.out.println("\n\nthis instance fails due to an openjdk limitation (bug ?)"); cycle(demo.body3); } } /* Copyright (c) 2006, Sriram Srinivasan * * Y...
Java
.next_token = new_token.cloned(); is_empty } Err(_) => true, }; if tx.send(resp).await.is_err() { // receiving end was dropped return; }...
Rust
N = int(input()) arr = list(map(int, input().split())) # 정렬된 상태 left = 0 right = N-1 res = arr[left] + arr[right] # int(2e8) while left < right: temp = arr[left] + arr[right] if temp == 0: res = temp break if abs(temp) < abs(res): res = temp if temp < 0: left += 1 ...
Python
{:?}, newdirfd={:?}, newpath={:?}, flags={:?}", olddirfd, oldpath, newdirfd, newpath, flags ); let proc = self.linux_process(); let (new_dir_path, new_file_name) = split_path(&newpath); let inode = proc.lookup_inode_at(olddirfd, &oldpath, true)?; let new_dir_inode = ...
Rust
let ret = { constant: 0, minus: false, plus: false, }; if (result && result.length === 3) { ret = { constant: parseInt(result[2], 10), minus: result[1].trim() === '-', plus: result[1].trim() === '+', }; } return ret; } private static actio...
Typescript
clean${variant.name.cap()}ButterflyModule", CleanModuleMapTask::class.java) {} val cleanTask = project.tasks.named("clean") cleanTask.dependsOn(task) variant.instrumentation.transformClassesWith(ModuleClassVisitorFactory::class.java, InstrumentationScope.ALL) { ...
Kotlin
: SafeArea( child: SingleChildScrollView( child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ const SizedBox(height: defaultPadding), Padding( padding: const EdgeInsets.symmetric(horizontal: defaultPadding), ...
Dart
import os import torch from torchvision.utils import save_image from models import VisionTransformer from utils.data_utils import load_data from skimage.metrics import peak_signal_noise_ratio as psnr from skimage.metrics import structural_similarity as ssim from sklearn.metrics import mean_squared_error import numpy as...
Python
clickUI = { path = "OverlayCamera/Overlay/UIMain/top/adapt/top_stage/resources/WorldResPanel(Clone)/res/stamina", sizeDeltaPlus = { 45, 20 } } } }, { style = { text = "All Operation Supply Coins and Special Item Tokens you earn during the operation can be spent on items ...
Lua
import "../../../../bower_components/bootstrap/less/input-groups.less"; @import "../../../../bower_components/bootstrap/less/navs.less"; @import "../../../../bower_components/bootstrap/less/navbar.less"; @import "../../../../bower_components/bootstrap/less/breadcrumbs.less"; @import "../../../../bower_components/bootst...
CSS
else { *pInfo->m_szLang = '\0'; } pInfo->CommitChanges( CPropInfo::eTabs ); } SetWindowLong( hWndDlg, DWL_MSGRESULT, PSNRET_NOERROR ); break; } } } } return FALSE; } #define UM_UPDATEDESCRIPTION WM_USER + 100 #define UM_UPDATEBUTTONS WM_USER + 101 #define UM_CLEAR...
C++
child: TextButton( style: TextButton.styleFrom( padding: EdgeInsets.all(4), visualDensity: VisualDensity(horizontal: -4, vertical: -4)), child: Row( children: [ Icon(Icons.open_in_browser, size: 16), SizedBox(width: 4)...
Dart
return errors.New("test not implemented") }, resource.TestCheckResourceAttr(name, "some_string_attribute", "string_value"), ), }, }, }) } func testAcc{{.PascalCase}}DataSourceConfig(rnd string) string { return acctest.LoadTestCase("datasource_basic.tf", rnd) } ` } package customvalidator_test im...
Go
/* SPDX-FileCopyrightText: 2007 Pino Toscano <pino@kde.org> SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef UNRARFLAVOURS_H #define UNRARFLAVOURS_H #include <QString> #include <QStringList> struct ProcessArgs { ProcessArgs(); ProcessArgs(const QStringList &appArgs, bool useLsar); QStringLi...
C
nil { dAtA[i] = 0x22 i++ i = encodeVarintAgent(dAtA, i, uint64(m.Container.Size())) n38, err := m.Container.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n38 } if len(m.Limits) > 0 { for k, _ := range m.Limits { dAtA[i] = 0x2a i++ v := m.Limits[k] msgSize := 0 if (&v) != n...
Go
ort java.util.Collections; import java.util.List; import java.util.Optional; import java.util.Set; import javax.ws.rs.core.Response; /** * JUnit/Mockito based unit tests for the {@link BookResource} class. * * @author Igor Baiborodine */ @RunWith(MockitoJUnitRunner.class) public class BookResourceTest { privat...
Java
// We need a new reaperSpawner for each test case to avoid reusing // an existing reaper instance. spawner := &reaperSpawner{} reaper, err := spawner.reaper(ctx, testSessionID, provider) cleanupReaper(t, reaper, spawner) // We should have errored out see mockReaperProvider.RunContainer. require.ErrorIs(t, err, e...
Go
失,日本领海会成为公海吗,你怎么看? - 意大利都灵一对新婚老人枪杀自己妻子后自杀 - 伊朗公开声明 已经没有退路,放手一搏! - 为什么美国人喜欢写感谢信? - 美国退出伊核,中东搅屎棍-以色列给地区带来动荡不安定因素 - 美英德澳等45国发表联合声明施压柬埔寨,柬埔寨大选能否顺利进行? - 印尼火山喷发 5公里高火山灰冲天际 - 以色列是一个怎么样的国家? - 世界旅游组织秘书长:中东地区旅游业呈现复苏势头 - 投票事件过后,联想今后的日子该怎样走? - 数不清这是第几次,被一只狗狗治愈…… - 为什么以色列随时都可以打击周边国家? - 2018年美国中期选举,你认为特朗普会下台吗? - 母亲节必读:特斯拉老板妈妈70岁遭打击,...
Markdown
values, index=index) tm.assert_series_equal(result, expected) def test_groupby_resample_interpolate(): # GH 35325 d = {"price": [10, 11, 9], "volume": [50, 60, 50]} df = DataFrame(d) df["week_starting"] = date_range("01/01/2018", periods=3, freq="W") result = ( df.set_index("week_st...
Python
margin-left: 50%; } } @media (min-width:768px) { .offset-md-7 { margin-left: 58.33333333%; } } @media (min-width:768px) { .offset-md-8 { margin-left: 66.66666667%; } } @media (min-width:768px) { .offset-md-9 { margin-left: 75%; } } @media (min-width:768px) { .offset-md-10 { margin-le...
CSS
// 0xf1 "[?]", // 0xf2 "[?]", // 0xf3 "[?]", // 0xf4 "[?]", // 0xf5 "[?]", // 0xf6 "[?]", // 0xf7 "[?]", // 0xf8 "[?]", // 0xf9 "[?]", // 0xfa "[?]", // 0xfb "[?]", // 0xfc "[?]", // 0xfd "[?]", // 0xfe "[?]...
Java
e an array /* let count: number = 4; let emptyList: any[] = []; let zero: number= 0; let one: number= 1; for (let i = 0; i < count; i++){ for(let j = 0; count < i; j++){ emptyList.push([0]); } emptyList.push([0]); } console.log(emptyList); */ function createMatrix(size: number): void { co...
Typescript
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #define DEFAULT_TAB_LENGTH 8 int is_str_uint(char *str); int is_arg_list_valid(int argc, char *argv[]); int main(int argc, char *argv[]) { if (!is_arg_list_valid(argc, argv)) { puts("Error: invalid arguments.\n"); return EXIT_F...
C
/***************************************************************************** * vlc_vout_osd.h: vout OSD ***************************************************************************** * Copyright (C) 1999-2010 VLC authors and VideoLAN * Copyright (C) 2004-2005 M2X * $Id: 74d79379258cf0af1cdafcd45946c7b4cf23b01f $ ...
C
/* * Copyright (c) 2012-2015 The nessDB Project Developers. All rights reserved. * Code is licensed with BSD. * */ #include "u.h" #include "t.h" int buftree_fetch_node(int fd, void *hdr, NID nid, void **n) { int r; struct hdr *h = (struct hdr*)hdr; r = deserialize_node_from_disk(fd, h, nid, (struct node**)n);...
C
using System; using System.Collections.Generic; using System.Text; namespace LumiSoft.Net.ABNF { /// <summary> /// This class represent ABNF "option". Defined in RFC 5234 4. /// </summary> public class ABNF_Option : ABNF_Element { private ABNF_Alternation m_pAlternation = null; //...
C#
CoordTx uint64 `validate:"required" env:"HEZNODE_FORGEBATCHGASCOST_L1COORDTX"` L2Tx uint64 `validate:"required" env:"HEZNODE_FORGEBATCHGASCOST_L2TX"` } // CoordinatorAPI specifies the configuration parameters of the API in mode // coordinator type CoordinatorAPI struct { // Coordinator enables the coordinator A...
Go
nvalid uvarint length of %d", length) } else if len(b) < length { return nil, 0, errors.Errorf("insufficient bytes to decode uvarint value: %q", b) } var v uint64 // It is faster to range over the elements in a slice than to index // into the slice on each loop iteration. for _, t := range b[:length] { v = (v...
Go
describe('hex()', () => { test('should pass: upper', async () => { const hasError = await alt.internet().hex().validate('123456789AbCdEf'); expect(hasError).toBe(false); }); test('should pass: lower', async () => { const hasError = await alt.internet().hex().validate('123456789abcdef')...
Typescript
_dv); gbdt.get_feature_importances(); } <reponame>MFEK/glifrenderer.rlib<filename>src/guidelines.rs use crate::string::{self, UiString}; use crate::viewport::Viewport; use super::constants::*; use MFEKmath::rect::FlipIfRequired as _; use flo_curves as flo; use glifparser::{Guideline, GuidelinePoint, IntegerOrFlo...
Rust
coffeescript .hljs-title, .cpp .hljs-title, .c .hljs-title, .cs .hljs-title, .css .hljs-id, .css .hljs-class, .css .hljs-pseudo, .ini .hljs-title, .haskell .hljs-title, .haskell .hljs-pragma, .java .hljs-title, .javascript .hljs-title, .makefile .hljs-title, .objectivec .hljs-title, .perl .hljs-sub, .php .hljs-title, ....
CSS
removeSpan(spans[i]); } } } @DSComment("Private Method") @DSBan(DSCat.PRIVATE_METHOD) @DSGenerator(tool_name = "Doppelganger", tool_version = "2.0", generated_on = "2013-12-30 12:31:19.505 -0500", hash_original_method = "FD0036F1377269974D72D9C2BC2EFAA3", has...
Java
first=Y.prototype.head,Pu&&(Y.prototype[Pu]=dm),Y},eo=$0();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ji._=eo,define(function(){return eo})):z?((z.exports=eo)._=eo,B._=eo):ji._=eo}).call(zv)});var QE=tt((lH,XE)=>{"use strict";var Pi=XE.exports;XE.exports.default=Pi;var Du="[",Ly="]",Hv="\x07"...
JavaScript
mplesQueue.RawValue = queueSize; } } internal void ReportObservationExampleQueue(int queueSize) { if (this.initialized) { this.ObservationExamplesQueue.RawValue = queueSize; } } } }
C#
function AchievementFrameSummary_LocalizeButton (button) end function AchievementButton_LocalizeMiniAchievement (frame) end function AchievementButton_LocalizeProgressBar (frame) end function AchievementButton_LocalizeMetaAchievement (frame) end function AchievementFrame_LocalizeCriteria (frame) end function ...
Lua
释 伏吟:八门落入原宫位。 反吟:八门落入与原宫对冲宫位。 门迫:八门五行克落宫五行。 门制:落宫五行克八门五行。 门和:八门五行生落宫五行。 门义:落宫五行生八门五行。 比和:八门五行和落宫五行相同。 入墓:休门、生门、死门落[巽四宫]为入墓。伤门、杜门落[坤二宫]为入墓。惊门开落[八宫]为入墓。景门落[乾六宫]为入墓。 */ // 例如:休门...
Java
64, u64::MAX as f64), TypeInfo::Sint8 => (i8::MIN as f64, i8::MAX as f64), TypeInfo::Sint16 => (i16::MIN as f64, i16::MAX as f64), TypeInfo::Sint32 => (i32::MIN as f64, i32::MAX as f64), TypeInfo::Sint64 => (i64::MIN as f64, i64::MAX as f64), TypeInfo::Enum {enumerators, ..} => {...
Rust
string to the write buffer and, if necessary, flush. */ void writeString(const std::string& s) { assert(!closed_); size_t slen = s.length(); if(cur_ + slen > BUF_SZ) { if(cur_ > 0) flush(); if(slen >= BUF_SZ) { fwrite(s.c_str(), slen, 1, out_); } else { memcpy(&buf_[cur_], s.data(), slen); ...
C
акидка ветруха", [25597] = "Кушак воздаятеля", [25598] = "Наручи болотного долгонога", [25599] = "Поручи исследователя", [25600] = "Поручи болотоходца", [25601] = "Мрачные наручи", [25602] = "Пояс болотоходца", [25603] = "Боевой клинок Лантрезора", [25604] = "Ключ от тюрьмы Боевого Молота", [25605] = "Кушак почитателя ...
Lua
.1644, 25: 1.1839, 20: 1.2041, airTemperatureDefault: airDensityDefault, 10: 1.2466, 5: 1.2690, 0: 1.2922, -5: 1.3163, -10: 1.3413, -15: 1.3673, -20: 1.3943, -25: 1.4224, }; final Map<int, double> velocityForPowerDict = <int, double>{}; Future<void> initPower2SpeedCons...
Dart
er Ion Mass, and "Current peptide filters:" Components * * Those components will display different options and text based on the contents of this object * * Create by class ModificationMass_ReporterIon__UserSelections__Coordinator_Class */ export class ModificationMass_ReporterIon__UserSelections__Coordinated_Reac...
Typescript
-input:focus~.custom-file-label,.dark-mode .accent-fuchsia .custom-select:focus,.dark-mode .accent-fuchsia .form-control:focus:not(.is-invalid):not(.is-warning):not(.is-valid){border-color:#feeaf9}.dark-mode .accent-fuchsia .page-item .page-link{color:#f672d8}.dark-mode .accent-fuchsia .page-item.active .page-link,.dar...
CSS
nt.kuikly-open:core:KUIKLY_VERSION-2.0.21-KBA-010") implementation("com.tencent.kuikly-open:core-annotations:KUIKLY_VERSION-2.0.21-KBA-010") } } ... } } ... dependencies { // KUIKLY_VERSION 用实际使用的Kuikly版本号替换 compileOnly("com.tencent.kuikly-open:core-ksp:KUIKLY_VER...
Markdown
gisterAdapterDataObserver(observer); } super.setAdapter(adapter); if (adapter != null) { adapter.registerAdapterDataObserver(observer); } } public void setEmptyView(@Nullable View mEmptyView) { this.mEmptyView = mEmptyView; checkIfEmpty(); } } pac...
Java
xpectedHash != hashFunc { t.Errorf("test[%d]: expected hash function %#x, got %#x", testNo, test.expectedHash, hashFunc) } } brokenCert := &Certificate{ Certificate: [][]byte{testRSACertificate}, PrivateKey: testRSAPrivateKey, SupportedSignatureAlgorithms: []SignatureSch...
Go
地址为localhost ### 验证方法 1. 刷新Web界面 2. 查看MQTT连接状态是否变为"已连接" 3. 检查系统日志中的MQTT状态信息 ### 预防措施 1. 确保系统启动顺序正确 2. 定期检查MQTT连接状态 3. 监控系统日志中的错误信息 """ # 写入修复说明 with open("MQTT状态修复说明.md", "w", encoding="utf-8") as f: f.write(fix_instructions) print("[SUCCESS] MQTT状态修复说明已创建: MQTT状态修复说明.md") def main(): ...
Python
in siyasi değerleri değil de... Siyasete bakış tarzı, siyaset kültürü anlamında, toplumsal mühendislik anlamında evet dinci Kemalizm bu. Toplumu sorun olarak görmek ve en ufak bir eylemde insanları şiddetle bastırmak, onlara şekil vermeye çalışmak bu! Modernizmde insanları şekillendirme cüreti vardır. Dinî hareketler b...
Markdown
--task text_classification ``` A `deployment` folder is created in your local directory, which has all of the files needed for deployment with DeepSparse including the `model.onnx`, `config.json`, and `tokenizer.json` files. ## Sparse Transfer Learning with a GLUE Dataset (Multi-Input Binary-Class - QQP) ### QQP D...
Markdown
} public override async Task<int> UseAsyncChannelImpl(IService1 channel) { await channel.GetDataAsync(44); return 1; } } public class HelloWorldAPMTest<TestParams> : HelloWorldTest<TestParams> where TestParams : IExceptionHandlingPolicyParameter, I...
C#
ration.ContextSize, //Seed = (uint)configuration.Seed, Embeddings = configuration.EmbeddingMode }; _model = LLamaWeights.LoadFromFile(parameters); _configuration = configuration; _embedder = new LLamaEmbedder(_model, parameters); } /// <inheritdoc /> ...
C#
ocations.into_iter().rev() { owned.replace_range(loc..(loc + 1), "∯"); } text = Cow::Owned(owned); } } text } } /// Rust implementation of Python's [`str.splitlines(keepends=True)`][ref]. /// /// [ref]: https://docs.python.org/3/libra...
Rust
er}. * * @see VanillaContainerWrapper * @see WorldlyContainerWrapper */ // TODO: do we want to "animate" client-side inserted items with setPopTime(POP_TIME_DURATION)? public final class PlayerInventoryWrapper extends VanillaContainerWrapper { /** * Gets the inventory wrapper for a {@link Player}. */ ...
Java
/***************************************************************************** * * Copyright (C) 2001 Uppsala University and Ericsson AB. * * 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; ...
C
#define AV_LIGHT_0 afLightDir[0]\n" "#endif\n" "float fHalfLambert = L1*L1;\n" "#ifdef AV_DIFFUSE_TEXTURE\n" "OUT.rgb += afLightColor[0].rgb * DIFFUSE_COLOR.rgb * tex2D(DIFFUSE_SAMPLER,IN.TexCoord0).rgb * fHalfLambert * IN.Color.rgb +\n" "#else\n" ...
C++
query_user.id_place = req.query.id_place; return query_user; } /** GET /users => {name, fname, id_place} */ router.route("/users").get(VerifyToken, (req: Request, res: Response) => { User.find({}, null, (err, users: Array<UserSchema>) => { if (err) res.status(400).send(err); const usersDecr...
Typescript
group-\[\.errors\]\:focus\:ring-red-200:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(254 202 202/var(--tw-ring-opacity))}.has-\[ol\]\:block:has(ol){display:block}.has-\[li\]\:block:has(li){display:block}.has-\[ol\]\:has-\[li\]\:block:has(li):has(ol){display:block}.has-\[not\(ol\)\]\:hidden:has(not(ol)){display:none}.h...
CSS
alpha.1" %} Use the _HTML Relative Passthrough Copy Mode_ to copy files referenced in any template syntax that outputs to `.html`. [Issue #3573](https://github.com/11ty/eleventy/pull/3573) {% set codeContent %} export default function(eleventyConfig) { // Relative to the project root directory eleventyConfig.addPas...
Markdown
-- Copyright (c) 2018 Phil Leblanc -- see LICENSE file ------------------------------------------------------------------------ -- SHA2-256 and SHA2-512 -- see RFC 6234 -- sha2-256 initially based on code written by Roberto Ierusalimschy -- for an early Lua 5.3rc with (un)packint() functions. -- published b...
Lua
FUNCTION_BEGIN __hexagon_sqrtf { r3,p0 = sfinvsqrta(r0) r5 = sffixupr(r0) r4 = ##0x3f000000 r1:0 = combine(#0,#0) } { r0 += sfmpy(r3,r5):lib r1 += sfmpy(r3,r4):lib r2 = r4 r3 = r5 } { r2 -= sfmpy(r0,r1):lib p1 = sfclass(r5,#1) } { r0 += sfmpy(r0,r2):lib r1 ...
Assembly
on is in the InstInputs list, remove it. SmallVectorImpl<Instruction *>::iterator Entry = find(InstInputs, I); if (Entry != InstInputs.end()) { InstInputs.erase(Entry); return; } assert(!isa<PHINode>(I) && "Error, removing something that isn't an input"); // Otherwise, it must have instruction input...
C++
sage.reply("Command does not exist or you do not have permission to use it"); } else { await message.reply(result.help); } }, }; import { Calendario } from "../models/calendario"; export class CalendarioSerializer { fromJson(json: any): Calendario { let calendario = new Calendario(); ...
Typescript
ormal = "正常", creative_mode_flight_speed_normal_description = "默认:200", creative_mode_flight_speed_faster = "加速", creative_mode_flight_speed_faster_description = "默认:450", creative_mode_flight_speed_no_clip = "穿墙", creative_mode_flight_speed_no_clip_description = "默认:300", all_seeing_eye = "全视之眼效果", ...
Lua
= "<leader>f", -- TODO: -- lsp_signature -- outline outline = "<space>3", }, bufferline = { BufferLineCyclePrev = "<Leader>j", BufferLineCycleNext = "<Leader>k", BufferLineMovePrev = "<Leader>h", BufferLineMoveNext = "<Leader>l", }, telescope = { fuzzy_find = "<C-f>", fuzzy_find_insertmode = "<...
Lua
mp(ldr_entry->BaseDllName.Buffer, L"hal.dll") == 0)) { continue; } // check for callback support flag if (ldr_entry->Flags & 0x20) { log("INFO", "found driver with callback support: %ws", ldr_entry->BaseDllName.Buffer ? ldr_entry->BaseDllName.Buffer : L"<unknow...
C++
added shapes, add them to the new value and mark them for sorting for (const record of Object.values(changes.added)) { if (!isShape(record)) continue ensureNewArray(record.parentId) newValue![record.parentId].push(record.id) toSort.add(newValue![record.parentId]) } // Iterate through th...
Typescript
订阅 var _eventChannel = const EventChannel("flatEvent"); StreamSubscription? _eventChannelListen; Map<void Function(String args), String> _eventMap = {}; void registerEvent(void Function(String args) eventHandler, String eventName) { if (_eventMap.containsKey(eventHandler)) { throw 'once register'; } _event...
Dart
; jest.advanceTimersByTime(1000); pressKey("d"); jest.advanceTimersByTime(1000); expect(getHTML()).toBe("<p>Correct. The faces had different expressions.</p>"); }); test("correct text displays when when key_answer is pressed", async () => { const { getHTML } = await startTimeline([ { ...
Typescript
} }; } pub(crate) use pdc_rxtx; <reponame>hbina/imagecli<gh_stars>100-1000 use imagecli::{documentation::generate_guide, process}; use structopt::StructOpt; #[derive(StructOpt, Debug)] struct Opt { /// Enable verbose logging. #[structopt(short, long)] verbose: bool, /// Input files or glo...
Rust