content
stringlengths
2
6.21k
label
stringclasses
16 values
); treeView = new TreeView(root, "#treecontainer"); treeView.changeOption("leaf_icon", '<i class="fas fa-file"></i>'); treeView.changeOption("parent_icon", '<i class="fas fa-folder"></i>'); treeView.changeOption("show_root", false); TreeConfig.open_icon = '<i class="fas fa-angle-down"></i>'; Tre...
JavaScript
ictionSize = &batchDeletions addKubeVirt(kv) evictionCount := 0 shouldExpectMultiplePodEvictions(&evictionCount) sanityExecute() testutils.ExpectEvents(recorder, reasons...) Expect(evictionCount).To(Equal(batchDeletions)) }) It("should respect custom batch interval", func() { batchDeletions ...
Go
( weather: current.condition.text, image: current.condition.icon, temp: current.tempC.toInt(), updatedAt: current.lastUpdated, wind: current.windKph, perceivedTemp: current.feelslikeC, humidity: current.humidity, ); } } extension CurrentWeatherDbMapper on CurrentWeatherD...
Dart
NG; p_state->peer = from; p_state->tid = m->get_tid(); } else { // am i retrying after ancient path_traverse results? if (it == import_state.end() || it->second.peer != from || it->second.tid != m->get_tid()) { dout(7) << " dropping obsolete message" << dendl; return; } ceph_asse...
C++
## $a3 = 00000000 /* 00640 809EB380 AFA00014 */ sw $zero, 0x0014($sp) /* 00644 809EB384 E7AA0010 */ swc1 $f10, 0x0010($sp) /* 00648 809EB388 0C029468 */ jal SkelAnime_ChangeAnimation /* 0064C 809EB38C E7B00018 */ swc1 $f16, 0x0018($sp) /* 00650 809EB39...
Assembly
0); } register(e3) { return this._disposables.push(e3), e3; } } t2.Marker = n, n._nextId = 1; }, 7116: (e2, t2) => { Object.defineProperty(t2, "__esModule", { value: true }), t2.DEFAULT_CHARSET = t2.CHARSETS = void 0, t2.CHARSETS = {}, t2.DEFAULT_...
JavaScript
Tecnológica:** Complexidade no desenvolvimento de uma plataforma multifuncional pode causar atrasos. **Mitigação:** Utilizar desenvolvimento ágil para ajustes rápidos e entregas incrementais. - **Manutenção da Licença SCFI:** Limitações em serviços bancários completos devido à manutenção da licença SCFI. **Mitigação:**...
Markdown
break; } } shift(276); // '{' lookahead1W(166); // StringLiteral | S^WS | '(' | '(#' | '(:' | 'ftnot' | '{' | '}' if (l1 != 282) // '}' { whitespace(); parse_FTSelection(); } shift(282); // '}' e...
JavaScript
#!/usr/bin/env python # encoding: utf-8 import numpy as np import tensorflow as tf import sys sys.path.append('..') from models.run_net import SenseClsNet from config import cfg import cv2 import os from tqdm import tqdm import zipfile os.environ["CUDA_VISIBLE_DEVICES"] = "0" def submit(img_path, submit_file, epoch):...
Python
t_pose, left_gripper=left_grip, right_pose=right_pose, right_gripper=right_grip ) # ====== 原生 MuJoCo viewer 同步(如果打开了)====== if viewer is not None: try: viewer.sync() # 将当前 mjData 渲染到窗口 except Exception: ...
Python
when (body) { Body.Moon -> { derivRa = +4.5 derivDec = +8.2 } Body.Sun -> { derivRa = +0.8 derivDec = +0.5 } Body.Mercury -> { derivRa = -1.6 derivDec = +1.0 } Body.Venus -> { ...
Kotlin
RegisterNetEvent("kick:ilv-scripts:KickKidnapScene", function() local playerPed = PlayerPedId() local coords = GetEntityCoords(playerPed) local guardModel = joaat("s_m_m_armoured_02") RequestModel(guardModel) while not HasModelLoaded(guardModel) do Wait(0) end local guardPed = CreatePed(0, gua...
Lua
addOns...) addOnInformerFactory := addoninformers.NewSharedInformerFactory(addOnClient, time.Minute*10) addOnStroe := addOnInformerFactory.Addon().V1alpha1().ManagedClusterAddOns().Informer().GetStore() for _, addOn := range c.addOns { if err := addOnStroe.Add(addOn); err != nil { t.Fatal(err) } ...
Go
lint/consistent-type-imports" /> 🛠|🚨|👻|👻|👻|👻| |[`@typescript-eslint/default-param-last`](https://typescript-eslint.io/rules/default-param-last)<a id="rule-canonical-@typescript-eslint/default-param-last" />|🚨|👻|👻|👻|👻| |[`@typescript-eslint/dot-notation`](https://typescript-eslint.io/rules/dot-notation)<a id=...
Markdown
} } } import { Buffer } from 'buffer'; import base32 from 'hi-base32'; import * as nacl from '../nacl/naclWrappers'; import * as utils from '../utils/utils'; import { encodeUint64 } from './uint64'; import { Address } from '../types/address'; import { MultisigMetadata } from '../types/multisig'; const ALGORAND_ADDR...
Typescript
sizeof( Successors ) ) ; }; task* execute() { // set the tbb reference count for this TaskSetTbb to // one plus the task set count set_ref_count( muSize + 1 ); ProfileBeginTask("Taskset Spawn Tasks"); // Iterate for each task in the set and spawn a GenericTask ...
C++
from fastapi import FastAPI from fastapi.middleware import Middleware from fastapi.middleware.cors import CORSMiddleware from app.chat.router import router as chat_router from app.container import AppContainer def init_routers(app_: FastAPI) -> None: app_.include_router(chat_router) def make_middleware() -> li...
Python
uAGut7vjdFZQjLKZ7P28V9EPWb4BIoeniuM0mY=", ChecksumAlgorithm.SHA256 ) } @ParameterizedTest @MethodSource("algorithms") fun `test decoding aws inputstream with calculated checksum`( algorithm: AwsChecksumAlgorithm, testInfo: TestInfo ) { val checksumAlgorithm = ChecksumAlgorithm.fromStrin...
Kotlin
80 { break } } wireType := int(wire & 0x7) switch wireType { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowQuery } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } iNdEx++ if dAtA[iNdEx-1] < 0x80 { break } } case 1:...
Go
/* * Copyright 2021 Jamie Mansfield <jmansfield@cadixdev.org> * * 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 b...
C
barButton( 'TableDeleteCells' , FCKLang.DeleteCells, null, null, null, true, 59 ) ) ; FCKToolbarItems.RegisterItem( 'TableMergeCells' , new FCKToolbarButton( 'TableMergeCells' , FCKLang.MergeCells, null, null, null, true, 60 ) ) ; FCKToolbarItems.RegisterItem( 'TableHorizontalSplitCell' , new FCKToolbarButton( 'Table...
JavaScript
&NtPath, L"multi(0)disk(0)rdisk(1)partition(3)"); wprintf(L"NtPath = '%wZ'\n", &NtPath); ArcPathToNtPath(&NtPath, L"multi(0)disk(0)rdisk(1)partition(1)"); wprintf(L"NtPath = '%wZ'\n", &NtPath); ArcPathToNtPath(&NtPath, L"multi(0)disk(0)rdisk(0)partition(3)"); wprintf(L"NtPath = '%wZ'\n", &NtPath); ...
C
fahrplan.database.contract.FahrplanContract.AlarmsTable.Columns.SESSION_TITLE import info.metadude.android.eventfahrplan.database.contract.FahrplanContract.AlarmsTable.Columns.TIME import info.metadude.android.eventfahrplan.database.models.Alarm import org.junit.jupiter.api.Test class AlarmExtensionsTest { @Test ...
Kotlin
RL_ATTRIBUTES_)if(c instanceof k.html.TrustedResourceUrl)c=k.html.TrustedResourceUrl.unwrap(c);else if(c instanceof k.html.SafeUrl)c=k.html.SafeUrl.unwrap(c);else if("string"===typeof c)c=k.html.SafeUrl.sanitize(c).getTypedStringValue();else throw Error(k.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Attribute "'+b+'" on tag "'...
JavaScript
er2, Size = UDim2.new(1, 0, 0.5, 0), Text = testText, }, }) local instance = Roact.mount(element) Roact.unmount(instance) end) it("should create and destroy without errors with icon", function() local element = createInformativeToast({ iconProps = { Image = "rbxassetid://4126499279", S...
Lua
meanings = null; } }); xmlStream.on("text", (text) => { if (!tag) { return; } if (tag.name === "literal") { literal = text; } else if (tag.name === "grade") { grade = text; } else if (tag.name === "freq") { freq = Number.parseInt(text); } else if (tag.name ...
JavaScript
255f88 :thumb .hword 0x1c5b @ add r3, r3, #0x1 add r5, #0xc0 cmp r3, r0 blt branch_2255f7e .thumb branch_2255f90: @ 2255f90 :thumb mov r0, r6 pop {r4-r6,pc} @ 0x2255f94 .thumb Function_2255f94: @ 2255f94 :thumb ldr r2, [pc, #0x1c] @ 0x2255fb4, (=BattleData_216c) mov r0, #0x0 str ...
Assembly
,eg,ep,ev,re,r,rp) end if s.fustg(e,tp,eg,ep,ev,re,r,rp,0) then Duel.BreakEffect() s.fusop(e,tp,eg,ep,ev,re,r,rp) end if s.syntg(e,tp,eg,ep,ev,re,r,rp,0) the
Lua
4", OtherDenom: "ibc/9BCB27203424535B6230D594553F1659C77EC173E36D9CF4759E7186EE747E84", }, SpotPriceRequest: queryproto.SpotPriceRequest{ BaseAssetDenom: "ibc/498A0751C798A0D9A389AA3691123DADA57DAA4FE165D5C75894505B876BA6E4", QuoteAssetDenom: "ibc/9BCB27203424535B6230D594553F1659C77EC173E36D9CF4759E7...
Go
같이 질문하거나 요청해 주세요: * "**[첨부된 법률 문서.pdf]** 내용을 바탕으로, **'지적재산권'의 핵심**을 **일반 시민**에게 **쉽게 요약**해줘. **500자 내외**로." * "**[첨부된 과학 보고서.txt]**의 **'기후 변화가 생태계에 미치는 영향'** 부분을 **고등학생**이 이해할 수 있도록 **일상생활 비유**를 들어 설명해줘." * "**'최근 시행된 개인정보보호법 개정안'**에 대해 **Q&A 형식**으로 **비전문가**가 궁금해할 만한 내용을 정리해줘." * "**[첨부된 논문 초록.txt]**에 있는 **'나노 기술'의 원...
Markdown
Exception { clearAllRolesOnUsers(); // 1: grant role as default implicitly adminConn.execute(format(grantRoleToUserAsDefault, ROLE1, PUBLIC)); adminConn.execute(format(grantRoleToUserAsDefault, ROLE2, USER1)); // grant ROLE3 as default explicitly adminConn.execute(forma...
Java
: _foo = foo; /// Finish building, and store into the [fbBuilder]. @override int finish( fb.Builder fbBuilder) { assert(fbBuilder != null); fbBuilder.startTable(); fbBuilder.addInt32(0, _foo); return fbBuilder.endTable(); } /// Convenience method to serialize to byte list. @overrid...
Dart
namespace MiniExcelLib.Core.OpenXml.Utils; internal static class GeneralHelper { public static int GetCellColumnIndex(string cell) { const string keys = " ABCDEFGHIJKLMNOPQRSTUVWXYZ"; const int mode = 26; var x = 0; var cellLetter = GetCellColumnLetter(cell); //AA=27,Z...
C#
许的请求方式 // res.header("Access-Control-Allow-Methods","DELETE,PUT,POST,GET,OPTIONS"); // if (req.method.toLowerCase() == 'options') // res.send(200); //让options尝试请求快速结束 // else // next(); // }); app.all('*', function(req, res, next) { res.header("Access-Control-Allow-Origin", "*"); res.header("Access-...
Typescript
import pandas as pd from faker import Faker from random import choice, randint, uniform from datetime import datetime fake = Faker() # Constants TOTAL_RECORDS = 200_000 HALF = TOTAL_RECORDS // 2 TODAY = datetime(2025, 4, 23).date() TOMORROW = datetime(2025, 4, 24).date() OWNER_GUID = 'cf1fdd7f-1b0c-f011-998b-7c1e528...
Python
/* $XFree86: xc/programs/Xserver/hw/xfree86/accel/agx/Att490.h,v 3.2 1996/12/23 06:32:17 dawes Exp $ */ /* * */ /* $XConsortium: Att490.h /main/3 1996/02/21 17:15:20 kaleb $ */ #ifndef XF86_ATT490_H #define XF86_ATT490_H #include "compiler.h" #include <X11/Xfuncproto.h> /* directly addressed registers */ #define...
C
kRelu1, 1}, "1.5.0"}, {{OperatorType::kPRelu, 1}, "1.8.0"}, {{OperatorType::kExp, 1}, "1.7.0"}, {{OperatorType::kCos, 1}, "1.14.0"}, {{OperatorType::kNeg, 1}, "1.9.0"}, {{OperatorType::kPow, 1}, "1.10.0"}, {{OperatorType::kLogicalOr, 1}, "1.11.0"}, {...
C++
); }); it("creates an encoded JSON string buffer from JSON object", async () => { const root = await loadTestProto(); const encoder = new ProtoJsonMessageEncoder(pbjsStaticModuleRegistry(root)); const encodedBuffer = encoder.fromJsonEmbedding(PAYLOAD); expect(JSON.parse(encodedB...
Typescript
State extends State<EpisodeCommentsSheet> { final VideoPageController videoPageController = Modular.get<VideoPageController>(); bool commentsQueryTimeout = false; final GlobalKey<RefreshIndicatorState> _refreshIndicatorKey = GlobalKey<RefreshIndicatorState>(); /// episode input by [showEpisodeSelec...
Dart
// MIT License // // Copyright (c) 2009-2017 Luca Piccioni // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy...
C#
, 10, BlockState.AIR, BlockState.AIR, false); generateBox(level, boundingBox, 1, 2, 1, 8, 2, 6, false, random, SMOOTH_STONE_SELECTOR); generateBox(level, boundingBox, 4, 1, 5, 4, 4, 9, false, random, SMOOTH_STONE_SELECTOR); generateBox(level, boundingBox, 8, 1, 5, 8, 4, 9, false, random, SMOOTH_STONE_SELECTOR...
Java
set points to a section which is /// selected. /// </remarks> public bool IsSelected(int offset) { return GetSelectionAt(offset) != null; } /// <remarks> /// Returns a <see cref="ISelection"/> object giving the selection in which /// the offset points to. /// </remarks> /// <returns> /// <code...
C#
import { useState, useCallback } from 'react' type SetStateOption<S, T> = [(current: S) => Partial<T>] | [Partial<T>] type ReturnStateType<S, T> = [ state: S, setState: (...args: SetStateOption<S, T>) => void, resetState: (newState: S) => void ] // type DeepPartial<T> = { // [P in keyof T]?: DeepPartial<T[P]...
Typescript
-webkit-outer-spin-button{height:auto}[type="search"]{outline-offset:-2px;-webkit-appearance:none}[type="search"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item;cursor:pointer}template{display:n...
CSS
name) ; MRISrestoreVertexPositions(mris, TMP_VERTICES) ; } } msec = then.milliseconds() ; fprintf(stderr,"positioning took %2.1f minutes\n", (float)msec/(60*1000.0f)); exit(0) ; return(0) ; /* for ansi */ } /*---------------------------------------------------------------------- Parameters: D...
C++
val indexName = pop() val arrayName = pop() val arrayAccess = indexName?.let { ArrayElementByNameAccessLocation(it) } if (arrayAccess != null && arrayName != null) { push(arrayName + arrayAccess) } else { ...
Kotlin
86VGA16 SUB_L (CONTENT(GLNAME(vgaBase)),EAX) #endif AND_L (CONTENT(GLNAME(vgaSegmentMask)),EAX) ADD_L (CONTENT(GLNAME(vgaWriteBottom)),EAX) RET /* *----------------------------------------------------------------------- * vgaWriteNext --- * switch to next memory bank of the VGA board for write access * Re...
Assembly
createStringError(errc::illegal_byte_sequence, "no end of list marker detected at end of %s table " "starting at offset 0x%" PRIx64, SectionName.data(), HeaderOffset); } template <typename DWARFListType> void DWARFListTableBase<DWARFListType>::dump( ra...
C
_DATA() { assert_eq!( ::std::mem::size_of::<TPM2B_SENSITIVE_DATA>(), 258usize, concat!("Size of: ", stringify!(TPM2B_SENSITIVE_DATA)) ); assert_eq!( ::std::mem::align_of::<TPM2B_SENSITIVE_DATA>(), 2usize, concat!("Alignment of ", stringify!(TPM2B_SENSITIVE_DAT...
Rust
=========================== suites = { { -- suite_id = 1, -- description = suite_1, monsters = { }, gadgets = { 283001, 283002, 283003, 283010 }, regions = { }, triggers = { "PLATFORM_REACH_POINT_283005", "AVATAR_NEAR_PLATFORM_283006", "ANY_GADGET_DIE_283007", "GADGET_STATE_CHANGE_283008" }, rand_weight...
Lua
tents() { RandomId = TLLong.Random(); } public override byte[] ToBytes() { return TLUtils.Combine( TLUtils.SignatureToBytes(Signature), Id.ToBytes()); } public override void ToStream(Stream output) { ...
C#
crate::debug::init(); utils::init::init().await; dominator::append_dom(&dominator::get_id("root"), Community::new().render()); } <filename>sui_types/src/unit_tests/messages_tests.rs // Copyright (c) 2021, Facebook, Inc. and its affiliates // Copyright (c) 2022, Mysten Labs, Inc. // SPDX-License-Identifier: A...
Rust
key) { return ContextLog4Net.Properties[key]; } /// <summary> /// Checks if a variable is set within the global context /// </summary> /// <param name="key">The key of the variable to check for</param> /// <returns>True if the variable is set</returns> ...
C#
_PRESERVE_PLACEHOLDER)) { Log(LogLevel::Debug, "UnmapViewOfFileEx failed %x\n", GetLastError()); return false; } uintptr_t uintptrDst = reinterpret_cast<uintptr_t>(dst); uintptr_t coalesceStart = uintptrDst; size_t coalesceSize = size; for (auto it = VirtmemPlaceholders.begin()...
C++
.search.function.school.sport.lepao.LePaoYun import com.hfut.schedule.ui.screen.home.search.function.school.student.ToadyCampus import com.hfut.schedule.ui.screen.home.search.function.school.teacherSearch.TeacherSearch import com.hfut.schedule.ui.screen.home.search.function.school.webvpn.WebVpn import com.hfut.schedule...
Kotlin
v7.8h, v7.8h, v22.8h sub v10.8h, v9.8h, v23.8h add v9.8h, v9.8h, v23.8h sub v12.8h, v11.8h, v24.8h add v11.8h, v11.8h, v24.8h sub v14.8h, v13.8h, v25.8h add v13.8h, v13.8h, v25.8h sub v16.8h, v15.8h, v26.8h add v15.8h, v15.8h, v26.8h sub v18.8h, v17.8h, v27.8h add v17.8h, v17.8h, v27.8h sub v20.8h, v19.8h, ...
Assembly
fontSizeBase, ).merge(_keyTextStyle), ); _valueTextStyle = pairRichInfoGridConfig.valueTextStyle.merge( BrnTextStyle( color: commonConfig.colorTextBase, fontSize: commonConfig.fontSizeBase, ).merge(_valueTextStyle), ); _linkTextStyle = pairRichInfoGridConfig.linkTextSty...
Dart
key): if key == "m_next": self.focus_position = (self.focus_position + 1) % len(self.widget_list) self.widget_list[1].set_active(self.focus_position == 1) key = None # This is essentially a copypasta from urwid.Pile's keypress handler. # So much for "closed f...
Python
rm-data; name=\"{0}\"; filename=\"" + file + "\"\r\nContent-Type: {2}\r\n\r\n"; string header = string.Format(headerTemplate, "media_data[]", file, contentType); byte[] headerbytes = System.Text.Encoding.UTF8.GetBytes(header); rs.Write(headerbytes, 0, headerby...
C#
true, ty_ptr(mt{ty, ..}) | ty_rptr(_, mt{ty, ..}) | ty_uniq(ty) => match ty.sty { ty_vec(_, None) => true, _ => false }, _ => false } } pub fn type_is_structural(ty: Ty) -> bool { match ty.sty { ty_struct(..) | ty_tup(_) | ty_enum(..) | ty_ve...
Rust
//Original:/testcases/core/c_cc2stat_cc_ac/c_cc2stat_cc_ac.dsp // Spec Reference: cc2stat cc ac # mach: bfin #include "test.h" .include "testutils.inc" start imm32 r0, _UNSET; imm32 r1, _UNSET; imm32 r2, _UNSET; imm32 r3, _UNSET; imm32 r4, _UNSET; imm32 r5, _UNSET; imm32 r6, _UNSET; imm32 r7, _UNSET; // tes...
Assembly
.61539 4.50004 8.61539C5.3273 8.61539 6.00006 7.89088 6.00006 7C6.00006 6.10912 5.3273 5.38462 4.50004 5.38462Z' fill='%234F4E55'/%3E%3C/svg%3E "); } .window_field.current_password:hover:after { background-image: url("data:image/svg+xml,%3Csvg width='24' height='14' viewBox='0 0 24 14' fill='none' xmlns='http://ww...
CSS
--[[ Font demo. Copyright (C) 2008 Werner Smekal This file is part of PLplot. PLplot is free software you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation either version 2 of the License, or (at your option) any ...
Lua
ldFJlc291cmNlcw== fTp7 T3BlcmF0aW5n IEZvZw== CXRhYg== IFJlc2VhcmNoZXJz IGZhYnJpY2F0aW9u LmRhdGFzZXRz IENhbXBv IEthdWY= IGRsbA== bGlndA== XSkpOwoK c3RlbGxlbg== QUNLRVQ= bHZs IEdsb3J5 LmRhdGVUaW1l IGNvbW11dGU= IG9uQ3JlYXRlVmlld0hvbGRlcg== IFhFbGVtZW50 IFRva2Vucw== PHRoZWFk X3BpY2s= 7KQ= dm9u ZGVwYXJ0dXJl KHJlbmRlcmVy cGh...
JavaScript
View(useCurrentLayer); setUseCurrentAttributesToActionAndView(useCurrentAttributes); setKeepOriginalsToActionAndView(keepOriginals); } void LC_MoveOptions::languageChange() { ui->retranslateUi(this); } void LC_MoveOptions::setCopiesNumberToActionAndView(int number) { number = std::max(number, 1); ...
C++
file", "", libname); } catch (MalformedURLException _) { url = null; } helper = SharedLibHelper.findHelper(this, libname, new CodeSource(url, null)); } /** Load a shared library, and asociate a ClassLoader with it. * @param libname named of shared library (passed to dlopen) */...
Java
let limbs = [ 0xbccddeef, 0x89900aab, 0x45566778, 0x01122334, 0xddeeff00, 0x99aabbcc, ]; // One fewer limb. #[cfg(target_pointer_width = "64")] let limbs = [ 0x89900aab_bccddeef, 0x01122334_45566778, 0x99aabbcc_ddeeff00, ]; ...
Rust
sn=e85f9ffecb8fa68f9544dbae2722aad0 | 106| | 透明魔方 | None | 如何根据风险评估结果调整安全措施 | https://mp.weixin.qq.com/s?__biz=MzI4NzA1Nzg5OA==&mid=2247485639&idx=1&sn=cdd0dceb3a7e263272f3072d005c0597 | 53| | 银天信息 | None | 大规模病毒攻击!微信紧急公告 | https://mp.weixin.qq.com/s?__biz=MzA4MDk4NTIwMg==&mid=2454063746&idx=1&sn=33e6c22f7563230c6732...
Markdown
urceforge.jclec.RunExperiment.main(new String [] {"configure.txt"}); } } /*********************************************************************** This file is part of KEEL-software, the Data Mining tool for regression, classification, clustering, pattern mining and so on. Copyright (C) 2004-2010 F. Herrera (h...
Java
Q23efx5TBase@l /* 803B0554 003AD494 3C C0 80 4A */ lis r6, __vt__18JPAEmitterCallBack@ha /* 803B0558 003AD498 90 03 00 00 */ stw r0, 0(r3) /* 803B055C 003AD49C 38 06 E2 7C */ addi r0, r6, __vt__18JPAEmitterCallBack@l /* 803B0560 003AD4A0 39 05 69 8C */ addi r8, r5, __vt__Q23efx5TSync@l /* 803B0564 003AD4A4 3C 80 8...
Assembly
, BonusUpgrade::ShurikenEfficiency => 4, BonusUpgrade::SentryEfficiency => 5, BonusUpgrade::BowEfficiency => 6, BonusUpgrade::RegenerationEfficiency => 7, BonusUpgrade::FlashEfficiency => 8, BonusUpgrade::GrenadeEfficiency => 9, } } } #...
Rust
{ public name = 'PromotionCreationFailed' constructor ( public message: string = 'Could not create promotion', properties?: Record<string, unknown> ) { super(message, properties) Object.setPrototypeOf(this, PromotionCreationFailed.prototype) } } export class PromotionDeleteFailed extends BaseE...
Typescript
mport ( "strings" "gitee.com/kwbasedb/kwbase/pkg/sql/opt" "gitee.com/kwbasedb/kwbase/pkg/sql/opt/memo" "gitee.com/kwbasedb/kwbase/pkg/sql/pgwire/pgcode" "gitee.com/kwbasedb/kwbase/pkg/sql/pgwire/pgerror" "gitee.com/kwbasedb/kwbase/pkg/sql/sem/tree" ) const ( // Interpolate symbol Interpolate = "interpolate" ...
Go
Q_EMIT updateClipProperties(m_id, m_originalProperties, properties); m_originalProperties = properties; }); if (!propertyValue.isEmpty()) { spin->setValue(propertyValue.toDouble()); } else if (defaultValue > 0) { spin->setValue(defaultValue); } #if QT_VERSION >= QT_VERSION_CHECK...
C++
h" #include "third_party/googletest/src/include/gtest/gtest.h" extern "C" { #include "./vpx_config.h" #include "./vp8_rtcd.h" #include "vpx/vpx_integer.h" #include "vpx_mem/vpx_mem.h" } namespace { typedef void (*sixtap_predict_fn_t)(uint8_t *src_ptr, int src_pixels_per_line, ...
C++
� Prerequisites Assessment](#-prerequisites-assessment) - [🗺️ Week-by-Week Curriculum](#-week-by-week-curriculum) - [Week 1-2: Developer Experience Fundamentals 🏗️](#week-1-2-developer-experience-fundamentals-) - [Week 3-4: Internal Platform Design ⚙️](#week-3-4-internal-platform-design-) - [Week 5-6: Self-Serv...
Markdown
using System.Globalization; using TUnit.Assertions.Assertions.Strings; namespace TUnit.Assertions.Tests; public class ParseAssertionTests { [Test] public async Task IsParsableInto_Int_ValidString() { await Assert.That("123").IsParsableInto<int>(); } [Test] public async Task IsNotParsa...
C#
block with blockRoot is a canonical block, and the distance between the two blocks. func (cache *blockCache) getCanonicalDistance(blockRoot phase0.Root, head phase0.Root, maxDistance uint64) (bool, uint64) { block := cache.getBlockByRoot(blockRoot) if block == nil { return false, 0 } canonicalBlock := cache.getB...
Go
joystickValue.setText(decoded + "\n" + "Action = " + action + "\n"); if (x > 1023f / 1.5f) { accelerationForce = accelerationPower * (x / 1023f); vehicle.accelerate(accelerationForce); action = "Accelerate"; } else if (x < 1023f / 2.5f && x > 0) { acceler...
Java
const FieldDescriptor* field, Message* message); // Interface that TextFormat::Parser can use to find extensions. // This class may be extended in the future to find more information // like fields, etc. class LIBPROTOBUF_EXPORT Finder { public: virtual ~Finder()...
C
import hashlib from io import BytesIO import aioboto3 from botocore.config import Config from fastapi import APIRouter, HTTPException, UploadFile from fastapi.responses import JSONResponse, StreamingResponse from app.config import settings router = APIRouter(prefix="/yandex/s3", tags=["yandex-s3"]) @router.post("/...
Python
-------------- */ func platform_mem_init bx lr endfunc platform_mem_init func plat_get_my_entrypoint mov r0, #0 bx lr endfunc plat_get_my_entrypoint func plat_crash_console_init mov_imm r0, PLAT_IMX7_BOOT_UART_BASE mov_imm r1, PLAT_IMX7_BOOT_UART_CLK_IN_HZ mov_imm r2, PLAT_IMX7_CONSOLE_BAUDRATE b imx_crash_u...
Assembly
mGroup.LogicalVmGroup.Name, }) } return logicalVmGroupReferences, nil } // getVmPlacementPolicy reads the corresponding VM Placement Policy from the resource. func getVmPlacementPolicy(d *schema.ResourceData, meta interface{}, policyId string) ([]*schema.ResourceData, error) { vcdClient := meta.(*VCDClient) var...
Go
#ifndef __JAVA_IO_OBJECTSTREAMEXCEPTION__ #define __JAVA_IO_OBJECTSTREAMEXCEPTION__ #include "xmlvm.h" // Preprocessor constants for interfaces: #define XMLVM_ITABLE_SIZE_java_io_ObjectStreamException 0 // Implemented interfaces: // Super Class: #include "java_io_IOException.h" // Circular references: #ifndef XMLVM_...
C
text, size=resize, mode='nearest') x_masked_context = masks_context * x if return_msk_context: return x_masked_context masks_objects = (1 - masks_context) x_masked_objects = masks_objects * x return x_masked_objects class ContextMaskingDecoder(nn.Module): def __init__(self, upscale, ...
Python
2048. pub fn tick(&mut self, channel_enable: &mut bool, channel_frequency: &mut u16) { self.sweep_timer = self.sweep_timer.saturating_sub(1); if self.sweep_timer == 0 { if self.sweep_enabled && self.sweep_period != 0 { let temp_freq = self.sweep_calculations(channel_enab...
Rust
ow(unused_braces)] pub(crate) mod output_area; // When the `wee_alloc` feature is enabled, use `wee_alloc` as the global // allocator. #[cfg(feature = "wee_alloc")] #[global_allocator] static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT; #[wasm_bindgen(start)] pub fn main() -> Result<(), JsValue> { pani...
Rust
/* * Adium is the legal property of its developers, whose names are listed in the copyright file included * with this source distribution. * * 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
piledSolanaRule( val code: CoreTACProgram, val rule: EcosystemAgnosticRule ) // Any rule name with these suffixes will be considered a vacuity/sanity rule const val devVacuitySuffix = "\$sanity" const val vacuitySuffix = "rule_not_vacuous_cvlr" /** SBF type factory used by `WholeProgramMemoryAnalysis` **/ pri...
Kotlin
e164_sc": 0, "geographic": true, "level": 1, "name": "Belgium", "example": "470123456", "display_name": "Belgium (BE) [+32]", "full_example_with_plus_sign": "+32470123456", "display_name_no_e164_cc": "Belgium (BE)", "e164_key": "32-BE-0", }, { "e164_cc": "501", "iso2_cc": "BZ...
Dart
truncateZeros() } public companion object : MavMessage.MavCompanion<PositionTargetLocalNed> { private const val SIZE_V1: Int = 51 private const val SIZE_V2: Int = 51 override val id: UInt = 85u override val crcExtra: Byte = -116 override fun deserialize(bytes: ByteArray): PositionTargetLoca...
Kotlin
p,sp,__debugstack@l lis r0,0 stwu r0,-16(sp) nested: addi r6,r6,1 stw r6,__debug_nestlevel@l(r15) addi r3,r14,0x08 bl _cpu_context_save_fp bl c_debug_handler lwz r6,__debug_nestlevel@l(r15) addi r6,r6,-1 stw r6,__debug_nestlevel@l(r15) addi sp,r14,0 exit: lwz r4,CR_OFFSET(sp) mtcr r4 lwz r4,L...
Assembly
.macro VECTOR handler sub sp, sp, #(0x110) stp x0, x1, [sp, #(0 * 16)] stp x2, x3, [sp, #(1 * 16)] stp x4, x5, [sp, #(2 * 16)] stp x6, x7, [sp, #(3 * 16)] stp x8, x9, [sp, #(4 * 16)] stp x10,x11, [sp, #(5 * 16)] stp x12,x13, [sp, #(6 * 16)] stp x14,x15, [sp, #(7 * 16)] stp x...
Assembly
3233, FwdCduRow1Sel = 3234, FwdCduRow2Sel = 3235, FwdCduRow3Sel = 3236, FwdCduRow4Sel = 3237, FwdCduMark = 3238, FwdCduSet = 3239, FwdCduBrt = 3240, FwdCduDec = 3241, FwdCduInc = 3242, FwdCduN1 = 3243, FwdCduN2 = 3244, FwdCduN3 = 3245, FwdCduN4 = 3246, FwdCduN5 = 3247, FwdCduN6 = 3248, FwdCduN7 = 3249, ...
Lua
fieldNumber, _fieldValue -> when (_fieldNumber) { 1 -> ctype = _fieldValue as pbandk.wkt.FieldOptions.CType 2 -> packed = _fieldValue as Boolean 3 -> deprecated = _fieldValue as Boolean 5 -> lazy = _fieldValue as Boolean 6 -> jstype = _fieldValue as pb...
Kotlin
) { log.Debug("read idx: %d, name: %s, tags %s is false", i, fieldType.Name, tagValue) continue } } tagInitValue, ok := fieldType.Tag.Lookup("ins_init") if ok { count := engine.Execute(tagInitValue, v).(int64) m := fieldValue.FieldByName("FlagCount") m.SetInt(count) } log.Debug(...
Go
EF,$13,$7E !byte $72,$F1,$11,$7E !byte $72,$F2,$0F,$7E !byte $72,$F4,$0D,$7E !byte $72,$F6,$0B,$7E !byte $72,$F8,$09,$7E !byte $72,$FA,$07,$7E !byte $72,$FB,$05,$7E !byte $72,$FD,$03,$7E !byte $72,$FF,$01,$7E !byte $72,$01,$01,$7F !byte $72,$03,$03,$7E !byte $72,$05,$04,$65 !byte $72,$06,$07,$7E !byte $72...
Assembly
( context: ICommandContext, index: Int ): String? { val username = retrieveDiscordUserForOsuByArgsN(context, index)?.let { user -> context.daoManager.osuWrapper.getUserName(user.idLong) } return username ?: getStringFromArgsNMessage(context, index, 1, 50) } ...
Kotlin
color: $base-color; font-weight: $headings-font-weight; font-family: $headings-font-family; line-height: $headings-line-height; small { font-weight: normal; line-height: 1; } } h1, .h1, h2, .h2, h3, .h3 { margin-top: $line-height-computed; margin-bottom: ($line-height-computed / 2); &:first...
CSS
uint32_t pinNumber) { uint32_t regVal = HW_RD_REG32(baseAddr + CSL_GPIO_IRQWAKEN(smartWakeupLine)); regVal &= ~(1U << pinNumber); HW_WR_REG32((baseAddr + CSL_GPIO_IRQWAKEN(smartWakeupLine)), regVal); } void GPIOGlobalWakeupEnable(uint32_t baseAddr) { HW_WR_FIELD32((...
C