content
stringlengths
2
6.21k
label
stringclasses
16 values
type = "none"; } const packageConfig = { pjsonPath: path, exists: true, main, name, type, exports, imports }; packageJSONCache.set(path, packageConfig); return packageConfig; } function getPackageScopeConfig(resolved, readFileSyncFn) { let packageJSONUrl = new URL("./package....
JavaScript
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* vim:set ts=4 sw=4 sts=4 ci et: */ /* 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
goto fail; } ret = av_new_packet(opkt, out_size); if (ret < 0) goto fail; out = opkt->data; } } #undef LOG_ONCE av_assert1(out_size == opkt->size); s->new_idr = new_idr; s->idr_sps_seen = sps_seen; s->idr_pps_seen = pps_...
C
v2h-13z" fill-opacity=".3"/%3E%3Cpath d="m9.5 47h13v2h-13z" fill-opacity=".3"/%3E%3Cpath d="m22.5 52h-13v2h13z" fill-opacity=".3"/%3E%3C/g%3E%3Cpath d="m9.5 74h13v2h-13z" fill="%2318a0fb"/%3E%3Cpath d="m9.5 79h13v2h-13z" fill="%2318a0fb"/%3E%3Cpath d="m22.5 84h-13v2h13z" fill="%2318a0fb"/%3E%3Cpath d="m9.5 106h13v2h-13...
CSS
c_mp_badlatro = "Badlatro", c_mp_tournament = "Turnier", c_mp_weekly = "Wöchentlich", c_mp_vanilla = "Vanilla", }, dictionary = { b_singleplayer = "Einzelspieler", b_join_lobby = "Lobby Beitreten", b_return_lobby = "Zurück zur Lobby", b_reconnect = "Wiederverbinden", b_create_lobby = "Lobby ...
Lua
_ref3 = _i2.value; } const otherRequest = _ref3; ref.addOptional(otherRequest.optional); } })(); } /** * TODO description */ static validateVersionInfo(info, reporter) { // human readable name to use in errors const human = `${info.name}@${info.version}`; i...
JavaScript
#-- Copyright (C) 2018 dz <dingzhong110@gmail.com> local fwm = require "luci.model.firewall".init() local def = fwm:get_defaults() local zn = fwm:get_zone("wan") local m, s, o, fw3_buildin, has_module, status, des local function testcmd (cmd) return luci.sys.call(cmd) == 0 end has_module = testcmd("modprobe -q xt_...
Lua
777;text-align:center;border-top:1px solid #e5e5e5}.bs-docs-footer-links{padding-left:0;margin-top:20px;color:#999}.bs-docs-footer-links li{display:inline;padding:0 2px}.bs-docs-footer-links li:first-child{padding-left:0}@media (min-width:768px){.bs-docs-footer p{margin-bottom:0}}.bs-docs-social{margin-bottom:20px;text...
CSS
0 */ lwz r0, 0x840(r31) /* 802AF558 002AB1B8 2C 00 00 00 */ cmpwi r0, 0 /* 802AF55C 002AB1BC 41 82 05 B8 */ beq lbl_802AFB14 /* 802AF560 002AB1C0 88 1F 08 C1 */ lbz r0, 0x8c1(r31) /* 802AF564 002AB1C4 28 00 00 01 */ cmplwi r0, 1 /* 802AF568 002AB1C8 40 82 01 80 */ bne lbl_802AF6E8 /* 802AF56C 002AB1CC 88 7F 08 C8...
Assembly
c_or_32) ATOMIC_OP_ALIAS(atomic_or_ulong,_atomic_or_32) STRONG_ALIAS(_atomic_or_ulong,_atomic_or_32) ATOMIC_OP_ALIAS(atomic_or_ptr,_atomic_or_32) STRONG_ALIAS(_atomic_or_ptr,_atomic_or_32) ENTRY(_atomic_or_32_nv) movl 4(%sp), %a0 1: movl (%a0), %d0 movl %d0, %d1 orl 8(%sp), %d0 casl %d1, %d0, (%a0) bne 1b movl %...
Assembly
Control.sceneY = y compositeControl.sceneZ = z compositeControl.sceneScale = 1 compositeControl.sceneHidden = false compositeControl.sceneAnchorPoint = CENTER self:SetDirty(true) end function ZO_SceneGraphNode:RemoveTextureComposite(compositeControl) ZO_RemoveFirstElementFromNumericallyIndexedT...
Lua
from typing import List, TypeVar, Generic, Type, Any from fastapi import Depends, FastAPI, HTTPException from fastapi.middleware.cors import CORSMiddleware from pydantic import BaseModel, TypeAdapter from starlette.requests import Request from xml.etree.ElementTree import fromstring import xml.etree.cElementTree as ET ...
Python
ent(address: IpAddr, netmask: u8) -> Result<IpAddr, Error> { assert_eq!(netmask % 8, 0); // same algorithm for either path, couldn't converge the codepaths // without having to play with slices for oct match address { IpAddr::V4(address) => { // the number of bytes we can cover using...
Rust
dempotencyLevel\18\23\10\19IDEMPOTENCY_UNKNOWN".. "\16\0\18\19\10\15NO_SIDE_EFFECTS\16\1\18\14\10\10IDEMPOTENT\16\2*\9\8".. "\232\7\16\128\128\128\128\2\"\154\3\10\19UninterpretedOption\18A\10\4na".. "me\24\2 \3(\0112-.google.protobuf.UninterpretedOption.NamePartR\4name".. "\18)\10\16identifier_value\24\3 \...
Lua
# Dependencias del proyecto ``` ## 🔍 Stack Tecnológico 100% Local ### **🧠 Procesamiento de IA Local** - **LLM**: Mistral 7B ejecutándose en Ollama - **Embeddings**: nomic-embed-text (768 dimensiones) - **Optimizado**: Para RAG y búsqueda semántica multilingüe - **Sin dependencias externas**: Todo funciona off...
Markdown
Key: []byte("bad-pub-key"), KeyId: "session-id", KeyType: wrapping.KeyType_Ed25519, KeyEncoding: wrapping.KeyEncoding_Bytes, }, PubKeySelfSignature: testPubKeySelfSignature, }, wantErr: true, wantErrMatch: kms.ErrInvalidParameter, wantErrContains: "e...
Go
MaskOutput) } // SetParams sets the Params field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. func (f *FlowActionFlowErrorMessage) SetParams(params *FlowActionFlowErrorMessageParams) { f.Params = params f.require(flowActionFlowErrorMess...
Go
//! v1: %res5 = v_cvt_f32_u32 %a dst_sel:dword src0_sel:uword1 //! p_unit_test 5, %res5 writeout(5, bld.vop1(aco_opcode::v_cvt_f32_u32, bld.def(v1), ext_ushort(a, 1))); //! v1: %res6_tmp = p_extract %b, 2, 8, 0 //! v1: %res6 = v_cvt_f32_u32 %res6_tmp dst_sel:dword src0_sel:sword1 //! p_unit_test 6, %res...
C++
, 0x74, 0x65, 0x72, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_proto_EnterIrodoriChessDungeonRsp_proto_rawDescOnce sync.Once file_proto_EnterIrodoriChessDungeonRsp_proto_rawDescData = file_proto_EnterIrodoriChessDungeon...
Go
oration( border: Border.all( color: itemBorder, width: 0.5, ), borderRadius: BorderRadius.all(Radius.circular(4)), color: itemBg), child: Center( child: Text( item.time, style: textStyle.copyWith(color:...
Dart
stroy: acctest.VerifyDeleted(t, fqrn, "", checkAccessToken), Steps: []resource.TestStep{ { Config: accessTokenConfig, Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr(fqrn, "username", username), resource.TestCheckResourceAttr(fqrn, "project_key", projectKey), resource.Te...
Go
.section .init .global _start .type _start, @function _start: CRT_START: # Initialize global pointer .option push .option norelax 1:auipc gp, %pcrel_hi(__global_pointer$) addi gp, gp, %pcrel_lo(1b) /* set stack pointer */ la sp, __stack_top # Clear the bss segment la a0, __ldm_bss_start la ...
Assembly
: return@also val lifecycleEventObserver = object :LifecycleEventObserver { override fun onStateChanged(source: LifecycleOwner, event: Lifecycle.Event) { if (event == Lifecycle.Event.ON_DESTROY) { it.cancel() activityLifecyc...
Kotlin
IDR import me.leon.misc.net.cdn.LOCAL_CIDR /** * @author Leon * @since 2023-02-27 14:05 * @email deadogone@gmail.com */ fun String.ip2Uint() = split(".").fold(0U) { acc, s -> acc * 256U + s.toUInt() } fun UInt.toIp() = "${shr(24)}.${shr(16) and 0xFFU}.${shr(8) and 0xFFU}.${this and 0xFFU}" fun String.ip2Binary()...
Kotlin
local app = require 'app' local prompt = require 'prompt' local save = require 'save' local Savepoint = {} Savepoint.__index = Savepoint -- Nodes with 'isInteractive' are nodes which the player can interact with, but not pick up in any way Savepoint.isInteractive = true function Savepoint.new(node, collider, level) ...
Lua
2ZvkfFWpiBbL44ak1q" + "fHjB1sQNyoUGvBSODaOecZM5A5JgWw+z58v07ImedIwwp1csaqF9eCG68p8VXSR/" + "1RJwOaVcY1aOpk3IyYk4yd1Z5J5rRAS5YUR82V4lZWRhmuDvwjkLkZAQBgJ6ZkCp" + "DilNOsBvGyMXc0hRaUEkQBzH0VFtlB9sD2Ddc0R0/npelsyDHLbA2OfngpPyH+MV" + "W7qse6iSnDycskp4ZdJLEf4IqsQQJGSFc6qvUNbroZ...
Java
['Fuego justo']={[0]=8.0,}, ['Fuego lunar']={[1]=9.0,[2]=12.0,[3]=12.0,[4]=12.0,[5]=12.0,[6]=12.0,[7]=12.0,[8]=12.0,[9]=12.0,[10]=12.0,[0]=12.0,}, ['Fuerza corrupta']={[0]=4.0,}, ['Fuerza deteriorada']={[0]=300.0,}, ['Fundir armadura']={[0]=60.0,}, ['Fundir huesos']={[0]=20.0,}, ['Fundir mineral']={[0]=20.0...
Lua
import { AxiosResponse } from 'axios'; import { message } from 'antd'; // interface IReq { // ([a: string]: any): Promise<AxiosResponse> // } // const BASE:string = ''; // 登录 export const reqLogin = (username: string, password: string): Promise<AxiosResponse> => ajax('/login', { username, password }, 'POST'); // 添...
Typescript
(); } return HAILO_SUCCESS; } hailo_status InferRequestAccumulator::shutdown(std::chrono::milliseconds timeout) { std::unique_lock<std::mutex> lock(m_mutex); assert(!m_shutdown); m_shutdown = true; // Wait until m_ongoing_infer_requests==0 auto done = m_cv.wait_for(lock, timeout, [this](...
C++
(value3); } __name(number, "number"); const NUMBER_FORMAT_OPTIONS_KEYS = [ "localeMatcher", "style", "currency", "currencyDisplay", "currencySign", "useGrouping", "minimumIntegerDigits", "minimumFractionDigits", "maximumFractionDigits", "minimumSignificantDigits", "maximumSignificantDigits", "co...
JavaScript
Lgkmcnt(ISA, Imm); for (unsigned i = 0; i < 3; ++i) { if (Counts.Array[i] <= LastIssued.Array[i]) WaitOn.Array[i] = LastIssued.Array[i] - Counts.Array[i]; else WaitOn.Array[i] = 0; } increaseCounters(DelayedWaitOn, WaitOn); } Counters SIInsertWaits::handleOperands(MachineInstr &MI) { Coun...
C++
uper(GuiScreenCustomizePresets.this.mc, GuiScreenCustomizePresets.this.width, GuiScreenCustomizePresets.this.height, 80, GuiScreenCustomizePresets.this.height - 32, 38); } protected int getSize() { return GuiScreenCustomizePresets.field_175310_f.size(); } protected void ele...
Java
box/tb-blue.gif'); } /* line 223, ../themes/stylesheets/ext4/default/core/_core.scss */ .x4-box-blue .x4-box-mc { background-color: #c3daf9; } /* line 227, ../themes/stylesheets/ext4/default/core/_core.scss */ .x4-box-blue .x4-box-mc h3 { color: #17385b; } /* line 231, ../themes/stylesheets/ext4/default/core/_co...
CSS
value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.cloud.datacatalog.v1beta1.SystemTimestamps gcsTimestamps_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.datacatalog.v1beta1.SystemTimestamps, com.google.cloud.dat...
Java
OS << "No calls\n"; // to be consistent with gcov } } // printFuncCoverage - Print per-function coverage info. void FileInfo::printFuncCoverage(raw_ostream &OS) const { for (const auto &FC : FuncCoverages) { const GCOVCoverage &Coverage = FC.second; OS << "Function '" << Coverage.Name << "'\n"; pr...
C++
&& e.refuelComp.Fuel > 0 && (!targetMapIsSpace || e.Props.takeOff)); foreach (CompEngineTrail engine in engines) { if (targetMapIsSpace && !sourceMapIsSpace) { if (engine.parent.Rotation.AsByte == 0) fireExplosions.Add(engine.parent.Position + new IntVec3(0, 0, -3)); else if (engine.paren...
C#
ber], .wpcf7 input[readonly][type=range], .wpcf7 input[readonly][type=date], .wpcf7 input[readonly][type=month], .wpcf7 input[readonly][type=week], .wpcf7 input[readonly][type=time], .wpcf7 input[readonly][type=datetime], .wpcf7 input[readonly][type=datetime-local], .wpcf7 input[readonly][type=color], .wpcf7 input[read...
CSS
HER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. package benchmark import ( "bufio" "io" "os" "os/exec" ) var _bm = newBuildManager() // externalCmd handles communication with an external benchmark client...
Go
number"; const social_lbl_change_phone_number_instead = "Change phone number instead!"; const social_lbl_delete4 = "Delete your google drive backup"; const social_lbl_delete3 = "Delete you from all of your inMood group"; const social_lbl_delete2 = "Erase your message history"; const social_lbl_delete1 = "Delete your a...
Dart
uint8_t color_sensitivity[2]; uint8_t sb_is_skin; uint8_t skip_low_source_sad; uint8_t lowvar_highsumdiff; uint8_t last_sb_high_content; int sb_use_mv_part; int sb_mvcol_part; int sb_mvrow_part; int sb_pickmode_part; int zero_temp_sad_source; // For each superblock: saves the content valu...
C
afaf",37]],[Ue.REFERENCE,["#87afff",111]],[Ue.NUMBER,["#ffd700",220]],[Ue.PATH,["#d75fd7",170]],[Ue.URL,["#d75fd7",170]],[Ue.ADDED,["#5faf00",70]],[Ue.REMOVED,["#d70000",160]],[Ue.CODE,["#87afff",111]],[Ue.SIZE,["#ffd700",220]]]),ms=r=>r,Wy={[Ue.NUMBER]:ms({pretty:(r,e)=>Qn(r,`${e}`,Ue.NUMBER),json:r=>r}),[Ue.IDENT]:ms...
JavaScript
. */ package main import ( "github.com/openziti/fablab/kernel/lib/actions" "github.com/openziti/fablab/kernel/lib/actions/component" "github.com/openziti/fablab/kernel/lib/actions/semaphore" "github.com/openziti/fablab/kernel/model" "github.com/openziti/ziti/zititest/zitilab/models" "time" ) func NewStartActio...
Go
stamp; ev.emit('creds.update', { lastAccountSyncTimestamp }); } break; default: logger.info({ node }, 'received unknown sync'); break; } }); ev.on('connection.update', ({ connection, receivedPendingNotificati...
JavaScript
); assert_eq( vi .clone() .chain(v2) .size_hint(), [13, Some(13)] ); assert_eq( vi .clone() .zip(v2.iter()) .size_hint(), [3, Some(3)] ); assert_eq( vi .clone() .scan(0, () => Some(0)) .size_hi...
Typescript
fg = 9238775 }, SpecialChar = { link = "Special" }, SpecialComment = { link = "Special" }, SpecialKey = { fg = 5198424 }, SpellBad = { cterm = { undercurl = true }, sp = 16761017, undercurl = true }, SpellCap = { cterm = { undercurl = true }, sp = ...
Lua
801DA9E0 001D6640 80 1F 68 34 */ lwz r0, 0x6834(r31) /* 801DA9E4 001D6644 54 00 07 FF */ clrlwi. r0, r0, 0x1f /* 801DA9E8 001D6648 40 82 FF F8 */ bne lbl_801DA9E0 /* 801DA9EC 001D664C 3B 9C FF FC */ addi r28, r28, -4 lbl_801DA9F0: /* 801DA9F0 001D6650 2C 1C 00 00 */ cmpwi r28, 0 /* 801DA9F4 001D6654 41 81 FF C4 ...
Assembly
using System.Windows.Input; namespace DitExplorer { /// <summary> /// Represents an action that may be performed on one or more objects. /// </summary> /// <remarks> /// If the action only applies to a single item at a time, derive from <see cref="SingleItemAction{T}"/>. /// </remarks> public abstract class It...
C#
Accessor.ReentrancyContext != null) { if (state.Actor.StateManager is IActorContextualState contextualStateManager) { await contextualStateManager.SetStateContext(Guid.NewGuid().ToString()); } } // invoke the functi...
C#
from CMaskOpt import * from CFaceDetection import * class CMaskDetection(): def __init__(self): """ 口罩识别检测 """ self.mask_opt = CMaskOpt() self.face_detection = CFaceDetection() def MaskDetect(self, img): """ 口罩检测 :param img: 图片 :return: ...
Python
_VENDOR_COUNT; if (VENDOR_COUNT_MAX == BUILT_IN_VENDOR_COUNT) return; char temp[PATH_MAX]; if (get_adb_usb_ini(temp, sizeof(temp)) == 0) { FILE * f = fopen(temp, "rt"); if (f != NULL) { /* The vendor id file is pretty basic. 1 vendor id per line. Lines s...
C
/*********************************************************************** Copyright (c) 2006-2011, Skype Limited. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retai...
C
.loading = status }, // 获取最新博客 getNewBlog (state, { data }) { sortAndFormat(data) data.map(item => { if (item.tags) { item.tags = item.tags.split(',') } }) // 取出最新的 5 条博客 state.articles = data.slice(0, 5) }, // 获取分类列表 getCategory (state, { ...
Typescript
even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License, version 2.0, for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St...
C++
/* Generated by RuntimeBrowser. Image: /System/Library/PrivateFrameworks/CoreDAV.framework/CoreDAV */ @class <CoreDAVContainerInfoTaskGroupDelegate>, NSMutableSet, NSString, NSSet; @interface CoreDAVContainerInfoTaskGroup : CoreDAVTaskGroup <CoreDAVPropFindTaskDelegate> { int _phase; NSMutableSet *_contai...
C
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.250303.1 #pragma once #ifndef WINRT_Windows_Phone_Media_Devices_1_H #define WINRT_Windows_Phone_Media_Devices_1_H #include "winrt/impl/Windows.Phone.Media.Devices.0.h" WINRT_EXPORT namespace winrt::Windows::Phone::Media::Devices { struct W...
C
/* 00498 80A7E8F8 C6100028 */ lwc1 $f16, 0x0028($s0) ## 00000028 /* 0049C 80A7E8FC 3C0140A0 */ lui $at, 0x40A0 ## $at = 40A00000 /* 004A0 80A7E900 44812000 */ mtc1 $at, $f4 ## $f4 = 5.00 /* 004A4 80A7E904 00112400 */ sll $a0, $s1, 16 /* 004A8 80...
Assembly
(2)); checkGeneratedAssetPackSlice(o[0]); checkGeneratedAssetPackSlice(o[1]); } core.List<api.GeneratedRecoveryApk> buildUnnamed58() => [ buildGeneratedRecoveryApk(), buildGeneratedRecoveryApk(), ]; void checkUnnamed58(core.List<api.GeneratedRecoveryApk> o) { unittest.expect(o, unittest.hasLength(2)); che...
Dart
0x2f, 0xb5, 0x48, 0x48, 0x5e, 0x0f, 0xa2, 0x58, 0x0f, 0xa6, 0x58, 0xcf, 0x37, 0xb5, 0xb8, 0x38, 0x31, 0x3d, 0xd5, 0xbf, 0xa0, 0x24, 0x33, 0x3f, 0xaf, 0x58, 0xe2, 0x43, 0xcf, 0x32, 0x56, 0x05, 0x66, 0x0d, 0xce, 0x20, 0xa8, 0x0e, 0x27, 0xf7, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x7...
Go
52931; display: flex; flex-flow: column wrap; justify-content: space-between; } .upper-nav { display: flex; flex-flow: row wrap; justify-content: center; padding-top: 15px; } .lower-nav { display: flex; flex-flow: column wrap; align-content: center; margin-bottom: 10px; } .tables { width: 600p...
CSS
<Vec<u8>, tonic::Status>>; impl ServerStreamingService<Vec<u8>> for GrpcInvocationHandler { type Response = Vec<u8>; type ResponseStream = SerializedResponseStream; type Future = BoxFuture<tonic::Response<SerializedResponseStream>, tonic::Status>; fn call(&mut self, request: tonic::Request<Vec<u8>>) -...
Rust
nses/>. */ #include <bctoolbox/defs.h> #include "carddav-context.h" #include "carddav-query.h" #include "carddav-response.h" #include "friend/friend-list.h" #include "vcard.h" // ============================================================================= using namespace std; LINPHONE_BEGIN_NAMESPACE string Car...
C++
80083418 0780093C */ lui $t1, %hi(D_80076378) /* 3D819E4 8008341C 78632925 */ addiu $t1, $t1, %lo(D_80076378) /* 3D819E8 80083420 80100200 */ sll $v0, $v0, 2 /* 3D819EC 80083424 21104900 */ addu $v0, $v0, $t1 /* 3D819F0 80083428 0000428C */ lw $v0, 0x0($v0) /* 3D819F4 8008342C 0000...
Assembly
ize_repo_format(repo, &env)?, remote) } (None, remote) => { let (url, remote) = if let Some(remote) = remote { (git.remote_url(&remote)?, remote) } else { git.tracking_remote_url(&branch)? }; ...
Rust
////////////////////////////////////////////////////////////////////////////////// // MIT License // // Copyright (c) 2017 Vicon Motion Systems Ltd // // 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 t...
C
els:expr, $batch_size:expr, $min:expr, $max:expr) => { test_internal!( $test_func, Int32Type, get_test_int32_type, $func, $def_level, $rep_level, $num_pages, $num_levels, ...
Rust
/// /// Parameter [minUnits] : /// The minimum pipeline capacity, in Ingestion Compute Units (ICUs). /// /// Parameter [pipelineConfigurationBody] : /// The pipeline configuration in YAML format. The command accepts the /// pipeline configuration as a string or within a .yaml file. If you provide /// th...
Dart
[3] = Some(stack_mem_address(6 * WORD_SIZE)); vm_states[3].r[4] = Some(0xFF); run_test!(arrays = (vms, vm_states), op_ids = ops_to_test); } pub fn solution(s: &str) -> String { s.chars().map(|v| { match v >= 'A' && v <= 'Z' { true => format!(" {}", v), false => format!("{}",...
Rust
16.12c9.51 0 17.08-8.57 16-18.35-4.34-39.11-22.4-74.53-50.13-97.16-17.37-14.17-28.82-36.75-31.98-62.15C270.96 6.14 264.22 0 256.23 0h-16.12c-9.51 0-17.09 8.57-16 18.35 4.34 39.11 22.4 74.53 50.13 97.16 17.36 14.17 28.82 36.75 31.97 62.14zM480 256H256l-110.93-83.2a63.99 63.99 0 0 0-38.4-12.8H64c-35.35 0-64 28.65-64 64v2...
Go
enses this file * to you 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 applicable law or agreed to in writing, * software...
C++
OTB6Ii8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K'); width: 100%; height: 100%; background-size: 100% 100%; } /* Austria */ .at { background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGlkPSJmbGFnLWljb25zLWF0IiB2aWV3Qm94PSIwIDAgNjQwIDQ4MCI+CiAgPGcgZmlsbC1ydWxlPSJldmVub2R...
CSS
assertTrue(robot.writeCmd(String.format("spfopen %s tcp %s %s", service, Robot.ROBOTHOST, (++shadowPort)))); String[] args = robot.readAck(); assertTrue(args != null && args.length == 2); assertEquals("spfopen", args[0]); assertEquals("success", args[1]); assertTrue(robot.writeCmd(String.format("s...
Java
model/auth.dart'; import '../repository/auth_repository.dart'; import '../../user/controller/user_controller.dart'; import '../../../utils/dio/dio_client.dart'; import '../../../common/constants/enums.dart' show LoginStep; part 'auth_controller.g.dart'; // Set keepAlive to true to maintain login state. @Riverpod(keep...
Dart
[{ "from": 3109399553, "to": 3109400575 }, { "from": 1535405057, "to": 1535406079 }]}, { "name": "fr.stet", "info": "STET SA", "data": [{ "from": 755855361, "to": 755856383 }]}, { "name": "fr.storapp", "info": "StorApp SAS", "data": [{ "from": 2960645633, "to": 2960645887 }]}, { "nam...
JavaScript
P), B0 VMOVDQU (8*16 + 1*16)(SP), B1 VMOVDQU (8*16 + 2*16)(SP), B2 VMOVDQU (8*16 + 3*16)(SP), B3 AVX_SM4_4BLOCKS_WO_BS(rk, B4, B5, B6, B7, B0, B1, B2, B3) VPXOR (16*0)(ptx), B0, B0 VPXOR (16*1)(ptx), B1, B1 VPXOR (16*2)(ptx), B2, B2 VPXOR (16*3)(ptx), B3, B3 VMOVDQU B0, (16*0)(ctx) VMOVDQU B1, (16*1)(ctx)...
Assembly
mapValueOfType<String>(json, r'newTag'), ); } return null; } static List< IoFluxcdToolkitHelmV2HelmReleaseSpecPostRenderersInnerKustomizeImagesInner> listFromJson( dynamic json, { bool growable = false, }) { final result = <IoFluxcdToolkitHelmV2HelmReleaseSpecPo...
Dart
gonal(&xs, &ys, &pre_dp, &post_dp, &centers, radius); for pos in 0..xs.len() as isize + 1 { xs_mut.insert(pos as usize, b'A'); for base in b"ACGT".iter().map(crate::padseq::convert_to_twobit) { let dist = edit_dist_banded_with_inser...
Rust
GetSubCategories(categoryID)) > 0; info.keepShownOnClick = true; info.value = categoryID; UIDropDownMenu_AddButton(info, level); end elseif UIDROPDOWNMENU_MENU_VALUE == 3 then info.hasArrow = false; info.isNotRadio = true; info.notCheckable = true; info.keepShownOnClick = true; info...
Lua
br>- 1 right angle OBD-C cable (1.5 ft)<br><a href="https://comma.ai/shop/comma-3x.html?make=Ford&model=Explorer Hybrid 2020-23">Buy Here</a></sub></details>|| |Ford|Focus 2018[<sup>3</sup>](#footnotes)|Adaptive Cruise Control with Lane Centering|openpilot available[<sup>1</sup>](#footnotes)|0 mph|0 mph|[![star](assets...
Markdown
this.palabraConGuiones = new Array<string>(); for (let i = 0; i < this.palabraBuscada.length; i++) { this.palabraMostrada[i] = {letra: this.palabraBuscada[i], visible: i === 0}; if (this.palabraBuscada[i].toUpperCase() === '') { // Muestro la primera this.palabraMost...
Typescript
e(() { // 重新加载歌曲列表 _loadSongs(); }); }, onSongPlay: (song, playlist, index) { playerProvider.playSong(song, playlist: playlist, index: index); }, onCheckboxChanged:...
Dart
double(i) / NUMBER_OF_POINTS * 90.0); transform->Translate(errorOffset[0] - expectedToolTipPosition_Marker[0], errorOffset[1] - expectedToolTipPosition_Marker[1], errorOffset[2] - expectedToolTipPosition_Marker[2]); markerToReferenceTransform->SetAndObserveTransformToParent(transform); } logic->SetRecording...
C++
e.player)) } } DebounceFunction.allDebounceFunctions.forEach { when (it.keyType) { Player::class.java -> it.removeKey(e.player) ProxyPlayer::class.java -> it.removeKey(adaptPlayer(e.player)) } } } }package taboolib.platform ...
Kotlin
figurationHelper.class, TasklistPropertiesOverride.class, OperatePropertiesOverride.class, BrokerBasedPropertiesOverride.class, SearchEngineConnectPropertiesOverride.class, }) public class SecondaryStorageRdbmsTest { public static final String FLUSH_INTERVAL = "PT0.5S"; public static final int QUEUE_SIZE = ...
Java
local srcgs = IconDragger.srcicon.group:GetSettings() local srcics = IconDragger.srcicon:GetSettings() TMW:PrepareIconSettingsForCopying(srcics, srcgs) IconDragger.desticon.group:GetSettings().Icons[IconDragger.desticon:GetID()] = TMW:CopyWithMetatable(srcics) -- Erase the GUID from the new icon. IconDrag...
Lua
시 업데이트 개선 완료! ## 📋 개선 작업 요약 **작업 일시**: 2025-08-06 **개선 범위**: Task 선택 시 HWK 이벤트 슬라이더 즉시 표시 **적용 상태**: **100% 완료** ✅ --- ## 🔍 **문제점 분석** ### **🚨 기존 문제점** ``` ❌ Task 선택 후 HWK 이벤트가 슬라이더에 표시되지 않음 ❌ 시간 범위 슬라이더를 움직여야만 HWK 이벤트 표시됨 ❌ 사용자가 HWK 이벤트 위치를 즉시 파악할 수 없음 ❌ 직관적이지 않은 사용자 경험 ``` ### **🎯 개선 목표** - **즉시 표시**: T...
Markdown
_ia32_sse.nb333_updateouterdata _nb_kernel333_ia32_sse.nb333_odd_loop: movl nb333_innerjjnr(%esp),%edx ## pointer to jjnr[k] movl (%edx),%eax addl $4,nb333_innerjjnr(%esp) xorps %xmm4,%xmm4 ## clear reg. movss nb333_iqM(%esp),%xmm4 movl nb333_charge(%ebp...
Assembly
Directory storing downloaded AEM Quickstart source files (JAR & license). */ val downloadDir = aem.obj.dir { convention(aem.project.layout.buildDirectory.dir("localInstance/quickstart")) aem.prop.file("localInstance.quickstart.downloadDir")?.let { set(it) } } val distJar: File? get() ...
Kotlin
(target, pname, params) { if (!params) { // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense // if p == null, issue a GL error to notify user about it. GL.recordError(0x501 /* GL_INVALID_VALUE */); retur...
JavaScript
matic AltiVec Idle Count */ rlwimi r3, r11, PWRMGTCR0_AV_IDLE_CNT_SHIFT, PWRMGTCR0_AV_IDLE_CNT mtspr SPRN_PWRMGTCR0, r3 blr #ifdef CONFIG_PPC_E500MC _GLOBAL(__setup_cpu_e6500) mflr r6 #ifdef CONFIG_PPC64 bl setup_altivec_ivors /* Touch IVOR42 only if the CPU supports E.HV category */ mfspr r10,SPRN_MMUCFG rl...
Assembly
atmap.SingerInfo = createSingerInfo(); createTest(new ScoreInfo(), karaokeBeatmap); } private void createTest(ScoreInfo score, IBeatmap beatmap) => AddStep("create test", () => { Children = new Drawable[] { new Box { RelativeSizeAxes = Axes.Bo...
C#
f689", "envelope-check-fill": "\f68b", "envelope-check": "\f68c", "envelope-dash-fill": "\f68e", "envelope-dash": "\f68f", "envelope-exclamation-fill": "\f691", "envelope-exclamation": "\f692", "envelope-plus-fill": "\f693", "envelope-plus": "\f694", "envelope-slash-fill": "\f696", "envelope-slash":...
CSS
a) } "register" => { self.register_task(data) } "resize" => { self.resize_task(data) } "running" => { if self.running() { Ok(()) } else { Err(anyhow!("not running")) } } _ => { info!("Unsupported command: {}", command); Ok(()) }...
Rust
# Pinned memory for faster GPU transfers tensor = genesis.empty((1000, 1000), device=device, pin_memory=True) print(f"Is pinned: {tensor.is_pinned()}") # Memory mapping for large datasets mapped_tensor = genesis.from_file("large_dataset.dat", device="cpu", mmap=True) ``` ## 🔧 Device Configuration ### Default Device...
Markdown
} final first = await runAndGetFinalWorld(seed); final second = await runAndGetFinalWorld(seed); expect(first, second); }, tags: ["long-running"]); Directory tempDir = await Directory.systemTemp.createTemp("edgehead_fuzzy_test"); group("logged", () { testWithStopWords(["[SEVERE]", "[SH...
Dart
#ifndef BABYLON_MATERIALS_TEXTURES_RENDER_TARGET_CREATION_OPTIONS_H #define BABYLON_MATERIALS_TEXTURES_RENDER_TARGET_CREATION_OPTIONS_H #include <optional> #include <babylon/babylon_api.h> namespace BABYLON { /** * @brief Define options used to create a render target texture. */ struct BABYLON_SHARED_EXPORT Rende...
C
local BezierCurveNormalized = require('BezierCurveNormalized') ---@class TurnBaseTrajectory local TurnBaseTrajectory = class('TurnBaseTrajectory', class.Pool) function TurnBaseTrajectory:initialize(from, fromDir, to, toDir, params) local bezier = BezierCurveNormalized(from, fromDir, to, toDir, params.cb or 0.5, para...
Lua
*mpool; // iterate over settings map for k in pkits_data_map.keys() { let pd = pkits_data_map.get(k).unwrap(); for i in 0..pd.len() { let case = pd.get(i).unwrap(); let case_name = if let Some(alt_test_name) = case.alt_test_name { alt_test_name.to_strin...
Rust
.example.android.ASR_RESULT"), Context.RECEIVER_NOT_EXPORTED ) } } override fun onResume() { super.onResume() if (showSettingsButton.value) { showSettingsButton.value = false checkAndRequestPermissions() } } private f...
Kotlin
Id_AMAZON_LINUX_2, Owner: cloud9.Owner_AccountRoot(jsii.String("111111111")), }) ``` To specify a specific IAM User as the environment owner, use `Owner.user()`. The user should have the `AWSCloud9Administrator` managed policy The user should have the `AWSCloud9User` (preferred) or `AWSCloud9Administrator` managed p...
Markdown
identical to * `appendContent()`, except it empties the element first. * * @param {Element} el * Element to insert normalized content into. * * @param {module:dom~ContentDescriptor} content * A content descriptor value. * * @return {Element} * The element with insert...
JavaScript