content
stringlengths
2
6.21k
label
stringclasses
16 values
PORT = 3748; const ProxyPool = class { private pool: Proxy[] = []; constructor() { remote.getCurrentWindow().on('close', () => { console.log('Closing all proxies'); this.closeAllProxies(); }); } public acquireProxy(port?: number): Proxy { port = port || PROXY_STARTING_PORT; while ...
Typescript
datePickerDialog.show() } private fun timePickerDialog() { val calendar = Calendar.getInstance() val hour = calendar.get(Calendar.HOUR_OF_DAY) val minute = calendar.get(Calendar.MINUTE) val timePickerDialog = TimePickerDialog(this, { _: TimePicker, selecte...
Kotlin
lass based on discriminator value /// </summary> /// <returns>A <see cref="global::Microsoft.Graph.Beta.Me.FindRoomsWithRoomList.FindRoomsWithRoomListResponse"/></returns> /// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param> publ...
C#
shader program, you have to provide code to declare its *uniform semantics*. //! //! The *uniform semantics* represent a mapping between the variables declared in your shader //! sources and variables you have access in your host code in Rust. Typically, you declare your //! variable – `Uniform` – in Rust as `const` a...
Rust
calling xa_close. (It's just testing ** the connection information so that it won't be surprised ** when it's in the middle of recovery later.) ** 5) Generate a RM GUID for the connection. ** 6) Write a record to the DTCXATM.LOG file indicating that a new ** resource manager is being es...
C#
import dev.reformator.stacktracedecoroutinator.common.internal.nextSpecMethodName import dev.reformator.stacktracedecoroutinator.common.internal.resumeNextMethodName import dev.reformator.stacktracedecoroutinator.common.internal.specLineNumberMethodName import dev.reformator.stacktracedecoroutinator.provider.Decoroutin...
Kotlin
_instance.MenuButton.gameObject.SetActive(show); /*__instance.hotkeyGlyph.SetActive(show);*/ return false; } } [HarmonyPatch(typeof(InnerNetClient), nameof(InnerNetClient.CanBan))] class InnerNetClientCanBanPatch { public static bool Prefix(InnerNetClient __instance, ref bool __result) { ...
C#
{ return $EcfRelatorioGerencialsTable(attachedDatabase, alias); } } class EcfRelatorioGerencial extends DataClass implements Insertable<EcfRelatorioGerencial> { final int? id; final int? idPdvConfiguracao; final int? x; final int? meiosPagamento; final int? davEmitidos; final int? identificacaoPa...
Dart
{left:50%}.uikit-grid .col-lg-push-7{left:58.33333%}.uikit-grid .col-lg-push-8{left:66.66667%}.uikit-grid .col-lg-push-9{left:75%}.uikit-grid .col-lg-push-10{left:83.33333%}.uikit-grid .col-lg-push-11{left:91.66667%}.uikit-grid .col-lg-push-12{left:100%}.uikit-grid .col-lg-offset-0{margin-left:0%}.uikit-grid .col-lg-of...
CSS
(1 == sect) ? 1 : 2; List<Solar> l = []; // 月地支距寅月的偏移值 int m = LunarUtil.find(monthGanZhi.substring(1), LunarUtil.ZHI, -1) - 2; if (m < 0) { m += 12; } // 月天干要一致 if (((LunarUtil.find(yearGanZhi.substring(0, 1), LunarUtil.GAN, -1) + 1) * 2 + m) % 10 != LunarUtil.find(monthGanZhi.substr...
Dart
class Gretter{ constructor(public name:string){ } sayHello():void{ console.log('Hello', this.name); } } const gtr = new Gretter('Said'); gtr.sayHello(); //Method Decorator function logTrade(target: Object, key:string | Symbol, descriptor: PropertyDescriptor){ /* console.log(target)...
Typescript
item .h-c-social__link, [dir='rtl'] .h-c-social--static .h-c-social__item .h-c-social__link { margin-left: 0; margin-right: -10px } .h-c-social__item .h-c-social__link:focus { background: #f1f3f4; outline: none } .h-c-footer .h-c-social__item .h-c-social__link:focus { background: #e8eaed } .h-c-s...
CSS
// @param soundOnVolumeP: OUT: Volume of the sound. /// @return Library error code. Err TonesLibGetSoundOnVolume (UInt16 refNum, SoundPrefType soundType, ToneVolume* soundOnVolumeP) SYS_TRAP (tonesLibTrapGetSoundOnVolume); /// Set the sound-on volume of a sound type. /// /// @param refNum: IN: Library...
C
final minutes = (duration / 60).floor(); final seconds = duration % 60; return '${minutes.toString().padLeft(2, '0')}:${seconds.toString().padLeft(2, '0')}'; } String _formatFileSize(int fileSize) { return '${(fileSize / (1024 * 1024)).toStringAsFixed(2)} MB'; } import 'package:audio_player/src/lee/common/Pla...
Dart
} .module-docheader .module-docheader-bar label { margin-top: 0; margin-bottom: 0; } .module-docheader .module-docheader-bar .form-group { vertical-align: top; margin: 0; } .module-docheader .module-docheader-bar .form-group .form-control { vertical-align: top; } .module-docheader .module-docheader-bar-column...
CSS
his.position.Y > Main.worldSurface * 16.0 ? 1 : 0; } public void UpdateBiomes() { Point tileCoordinates1 = this.Center.ToTileCoordinates(); this.ZoneDungeon = false; if (Main.SceneMetrics.DungeonTileCount >= 250 && (double) this.Center.Y > Main.worldSurface * 16.0) { int ind...
C#
ED = Color3.fromRGB(65, 200, 120), } local OWNERSHIP_CACHE = getgenv().__BadgeOwnershipCache or {} getgenv().__BadgeOwnershipCache = OWNERSHIP_CACHE local CACHE_TTL_SECS = 600 local function cacheGet(userId, badgeId) local u = OWNERSHIP_CACHE[userId] if not u then return nil end local e = u[badgeId] if n...
Lua
import hashlib import time from typing import Optional, Union from nonebot import on_message from nonebot.adapters.minecraft import Bot, Event from nonebot.adapters.minecraft.event.base import ( BaseChatEvent, BaseDeathEvent, BasePlayerCommandEvent, ) from nonebot.matcher import Matcher from nekro_agent.a...
Python
d: string): IFinish[]|null { const re = /\s+(\d+):\s+(.+?)\s+\(([^\)]+)\),(?:\s+([^\d\s])([\d\.]+)\s+\(([\d\.]+)%\)|\s+(still playing))?/gi; const result: IFinish[] = []; const unknowns: any[] = []; let match: RegExpExecArray|null; while ((match = re.exec(hand)) !== null) { const player = findPlayer(match...
Typescript
35D000C */ jal VecSub /* 2CB3BA8 80081DE0 0C006626 */ addiu $a2, $s3, 0xC /* 2CB3BAC 80081DE4 21200002 */ addu $a0, $s0, $zero /* 2CB3BB0 80081DE8 7F5C000C */ jal VecMagnitude /* 2CB3BB4 80081DEC 01000524 */ addiu $a1, $zero, 0x1 /* 2CB3BB8 80081DF0 31002016 */ bnez $s1, .Lleve...
Assembly
Flink 的方法是执行如下命令: ```bash mvn clean install -DskipTests ``` 上面的 [Maven](http://maven.apache.org) 指令(`mvn`)首先删除(`clean`)所有存在的构建,然后构建一个新的 Flink 运行包(`install`)。 为了加速构建,可以: - 使用 ' -DskipTests' 跳过测试 - 使用 `fast` Maven profile 跳过 QA 的插件和 JavaDocs 的生成 - 使用 `skip-webui-build` Maven profile 跳过 WebUI 编译 - 使用 Maven 并行构建功能,比如 '...
Markdown
uth) val username = api.getCurrentUser() saveCredentials(username, oauth.access_token) true } catch (e: Exception) { TimberKt.e(e) { "Error logging into MAL" } logout() false } } override fun logout() { super.logout...
Kotlin
module(..., package.seeall) local util = require "tundra.util" local native = require "tundra.native" local function mk_defvariant(name) return { Name = name; Options = {} } end local default_variants = { mk_defvariant "debug", mk_defvariant "production", mk_defvariant "release" } local default_subvariant...
Lua
xtFloat(); } Triangle( float x0, float y0, float z0, float x1, float y1, float z1, float x2, float y2, float z2) { this.x0 = x0; this.y0 = y0; this.z0 = z0; this.x1 = x1; this.y1 = y1; this.z1 = z1; this.x2 = x2; this.y2 = y2; this.z2 = z2; } public void get...
Java
.0 of the Smithy IDL. ([#1317](https://github.com/awslabs/smithy/pull/1317), [#1312](https://github.com/awslabs/smithy/pull/1312), [#1318](https://github.com/awslabs/smithy/pull/1318)) - Added mixins for all shape types. ([#889](https://github.com/awslabs/smithy/pull/889), [#1025](https://github.com/awslabs/s...
Markdown
been renamed to \'soft_str\'. The old name will be removed in MarkupSafe 2.1.\n/opt/miniconda3/envs/testbed/lib/python3.9/site-packages/alabaster/layout.html:215: DeprecationWarning: \'soft_unicode\' has been renamed to \'soft_str\'. The old name will be removed in MarkupSafe 2.1.\n/opt/miniconda3/envs/testbed/lib/pyt...
Markdown
: [[386, "unittest.mock.Mock.mock_add_spec"]], "mock_calls (unittest.mock.mock attribute)": [[386, "unittest.mock.Mock.mock_calls"]], "mock_open() (in module unittest.mock)": [[386, "unittest.mock.mock_open"]], "patch() (in module unittest.mock)": [[386, "unittest.mock.patch"]], "patch.dict() (in module unittest.mock)"...
JavaScript
ce(fakeUsersRepository); }); it('should activate a given user', async () => { const user = new User(); Object.assign(user, { fullname: 'John Doe', email: 'johndoe@example.com', phone: 'user-phone', cpf: '34268438033', password: '123456', role: Math.floor(Math.random() * ...
Typescript
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright 2016-2024 Broadcom Inc. All rights reserved. */ #ifndef MPI30_TOOL_H #define MPI30_TOOL_H 1 #define MPI3_DIAG_BUFFER_TYPE_TRACE (0x01) #define MPI3_DIAG_BUFFER_TYPE_FW (0x02) #define MPI3_DIAG_BUFFER_ACTION_RELEASE (0x01) struct mpi3_diag_buffer_po...
C
444-3499', address: '107 Newkirk Avenue, Laurelton, Wyoming, 2765', about: 'Amet et duis anim excepteur. Occaecat veniam labore mollit Lorem dolor culpa adipisicing excepteur consequat in Lorem magna sit cillum. Magna ut amet et exercitation laborum nisi magna Lorem. Consectetur ut duis adipisicing molli...
Typescript
mmary> private void ToggleStateChanged(object sender, HassClient.Models.StateChangedEvent e) { if (e?.NewState?.State?.Equals("on", StringComparison.CurrentCultureIgnoreCase) ?? false) { // Turn cameras on _logger.LogInformation("Toggle entity enab...
C#
teMetaFileW( ffi.Pointer<ffi.Uint16> pszFile, ) { return (_CreateMetaFileW ??= _dylib.lookupFunction<_c_CreateMetaFileW, _dart_CreateMetaFileW>( 'CreateMetaFileW'))( pszFile, ); } _dart_CreateMetaFileW? _CreateMetaFileW; ffi.Pointer<HPALETTE__> CreatePalette( ffi.Poin...
Dart
); #else /* when select isn't winsocket, we also expect socket, connect, accept etc. * to work on fds */ filedes [0] = sock [0]; filedes [1] = sock [1]; #endif return 0; fail: closesocket (listener); if (sock [0] != INVALID_SOCKET) closesocket (sock [0]); if (sock [1] != INVALID_SOCKET) closesocket ...
C
_menu_shell_cancel (GtkMenuShell *menu_shell); void _gtk_menu_shell_add_mnemonic (GtkMenuShell *menu_shell, guint keyval, GtkWidget *target); void _gtk_menu_shell_remove_mnemonic (GtkMenuShell *menu_shell, ...
C
import unittest from ..strategy import calculate_rsi, execute_trade, should_buy, should_sell class TestStrategyFunctions(unittest.TestCase): def test_calculate_rsi_valid_input(self): data = [100, 105, 102, 108, 110] period = 14 result = calculate_rsi(data, period) self.assertIsNo...
Python
ListByResourceGroupPager := p.newListByResourceGroupPager.get(req) if newListByResourceGroupPager == nil { const regexStr = `/subscriptions/(?P<subscriptionId>[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P<resourceGroupName>[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Network/p2svpnGateways` regex := reg...
Go
ding. final Material material = Material("torus-mat") ..SetUniform(uModelMatrix, VM.Matrix4.identity()); // Make a torus and add it to the first program providing the // aPosition attribute. final MeshData torus = ShapeTorusKnot(prog, radius: 1.0, tubeRadius: 0.4); // Create the second shader program and...
Dart
options = this.get_tree_options(option); if(options.includes(frappe.defaults.get_default(option))) { return frappe.defaults.get_default(option); } else { return options[0]; } }, overrides_parent_value_in_all_rows: function(doc, dt, dn, table_fieldname, fieldname, parent_fieldname) { if (doc[parent_fiel...
JavaScript
details.friendlyName}", Toast.LENGTH_SHORT).show() } override fun onDisconnected(device: Device<*, *, *>) { (requireActivity() as MainActivity).onBackPressed() Toast.makeText(requireContext(), "无法连接: ${device.details.friendlyName}", Toast.LENGTH_SHORT).show() ...
Kotlin
x600f370 .word 0x6018610 @ 0x600f374 .word 0x60186c8 @ 0x600f378 .arm Function_600f37c: @ 0x600f37c :arm mov r0, #0x3 bx lr @ 0x600f384 .arm Function_600f384: @ 0x600f384 :arm stmfd sp!, {r3-r5,lr} ldr r2, [pc, #0x78] @ [0x600f408] (=0x380fff4) mov r5, r0 ldr r3, [r2] mov r4, r1 ...
Assembly
_icon_pet_battleskill_500173.png"] = -2617, ["UI/Icon/PetPixelIcon/tex_icon_pet_500173_1.png"] = -2618, ["UI/Texture/PetBoxIcon/tex_pet_kibo_card_backeffect_500173.png"] = -2619, ["UI/Texture/PetBoxIcon/tex_pet_kibo_card_foreeffect_500173.png"] = -2620, ["UI/Texture/PetBoxIcon/tex_pet_kibo_card_background_50017...
Lua
-500)/.8)}.disabled\:text-primary-500\/85:disabled{color:rgb(var(--color-primary-500)/.85)}.disabled\:text-primary-500\/90:disabled{color:rgb(var(--color-primary-500)/.9)}.disabled\:text-primary-500\/95:disabled{color:rgb(var(--color-primary-500)/.95)}.disabled\:text-red-500:disabled{--tw-text-opacity:1;color:#ef4444;c...
CSS
#name Eternal Life (Thornvine Creeper)_48a #displayname Eternal Life (Thornvine Creeper) step #sticky .waypoint Howling Fjord,50,50 .zone Howling Fjord >> Head to Howling Fjord step #hidewindow +test .loop @20,Howling Fjord,55.8,17.1,55.7,19.6,52.1,20.2,51.6,16.6,52.4,14.0,55.3,15.3,55.8,17.1 ...
Lua
on, Group end local function UnRestrictWeapons(ply, cmd, args) if not FAdmin.Access.PlayerHasPrivilege(ply, "Restrict") then FAdmin.Messages.SendMessage(ply, 5, "No access!") return false end local Weapon = args[1] sql.Query("DELETE FROM FADMIN_RESTRICTEDENTS WHERE ENTITY = " .. sql.SQLStr(Weapon) .. " AN...
Lua
FIER_WANTED_PULSE_3 = 0X1EC09125, BLIP_MODIFIER_WANTED_PULSE_4 = 0X3483BCAB, BLIP_MODIFIER_WANTED_PULSE_5 = 0X266D86E, BLIP_MODIFIER_WILDERNESS_CHEST_LONG = 0X271C13F9, BLIP_MODIFIER_WITNESS_IDENTIFIED = 0X190F3B7C, BLIP_MODIFIER_WITNESS_INVESTIGATING = 0X5E176D3A, BLIP_MODIFIER_WITNESS_UNIDENTI...
Lua
3 ]) expect( splitCommonDiff([ 1, 6, 7, 1 ], [ 1, 6, 1, 2 ]) ).toEqual([ '16', 71, 12 ]) }) }) describe('...
Typescript
Power`]), /// if any (otherwise empty vector). /// /// [`StarPower`]: ./struct.StarPower.html #[serde(default)] pub star_powers: Vec<StarPower>, /// The brawler's id (an arbitrary number). #[serde(default)] // zero pub id: usize, /// The brawler's rank. #[serde(default = "one_...
Rust
ShiftRow1 .word $2660, rsShiftRow2 .word $2680, rsShiftRow3 .word $26a0, rsRow4 rwaStringPositionEnd: rbaCursorIndexX: .byte $00, $01, $02, $03, $04, $05, $06, $07, $08, $09, $0a, $0b, $0c, $0d .byte $00, $01, $02, $03, $04, $05, $06, $07, $08, $09, $0a, $0b, $0c, $0d .byte $00, $01, $02, $03, $04, $05, $06, $07, $08,...
Assembly
=\"SecureAuth0\"") assert.Contains(t, actual, "UserHostAddress=\"192.168.2.132\"") assert.Contains(t, actual, "UserID=\"Tester2\"") assert.Contains(t, actual, "PEN=\"27389\"") // Test structured data (more than one field) expectedRegex = "\\<165\\>1 2003-08-24T12:14:15.000003Z 192\\.0\\.2\\.1 myproc 8710 - " + ...
Go
AfterAudioPath // this->fcgBTBatAfterAudioPath->Location = System::Drawing::Point(491, 360); this->fcgBTBatAfterAudioPath->Margin = System::Windows::Forms::Padding(5); this->fcgBTBatAfterAudioPath->Name = L"fcgBTBatAfterAudioPath"; this->fcgBTBatAfterAudioPat...
C
/* * Copyright (c) 2019 Sippy Software, Inc., http://www.sippysoft.com * Copyright (c) 2016-2018, Maksym Sobolyev <sobomax@sippysoft.com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * ...
C
default_initial_settings = { "name": "Weedo X40", "manufacturer": "Weedo", "start_gcode": "; x40-community.org configuration Rev. 08\n;(**** start.gcode for WEEDO X40 DUAL****)\nT{data['extruder_number']} S ; Selected start extruder\nM140 S{data['bed_temp']} ; Preheat bed\nM109 S{data['nozzle_temp']}; Prehe...
Python
or (int i = 1; i < list.length; i++) { final metadatum = list[i]; final equals = metadatum.indexOf('='); if (equals < 0) { // take the whole thing as a usable label type = metadatum; break; } if ('TYPE' == metadatum.substring(0, equal...
Dart
ja razlivena u srcima našim po Duhu Svetom koji nam je dan!</verse> <verse number="6">Doista, dok mi još bijasmo nemoćni, Krist je, već u to vrijeme, za nas bezbožnike umro.</verse> <verse number="7">Zbilja, jedva bi tko za pravedna umro; možda bi se za dobra tko i odvažio umrijeti.</verse> <verse number="8...
JavaScript
kedEpoch"` RewardAddress []byte `protobuf:"bytes,6,opt,name=RewardAddress,proto3" json:"RewardAddress"` StakeValue *math_big.Int `protobuf:"bytes,7,opt,name=StakeValue,proto3,casttypewith=math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster" json:"StakeValue"` JailedRound uint64 `...
Go
32()..", "..get_reg32() end end function jump_forward_random(opcode) listing[#listing + 1] = opcode.." Label"..labelcount distance = math.random(1, 5) for i = 1, distance do listing[#listing + 1] = "nop" end listing[#listing + 1] = "Label"..labelcount..":" labelcount = labelcount + 1 end l...
Lua
backio/loopback-next/commit/3348ab4ea8bc1fc41a3a2f71756c978123ed4001)) ### Features - **docs:** add docs for Angular ([5c571f5](https://github.com/loopbackio/loopback-next/commit/5c571f595990948ae73cdb57a212dbc53aadb87c)) - **docs:** add Q4 roadmap ([b05c2a7](https://github.com/loopbackio/loopback-next/commit/b05...
Markdown
namespace VKProxy.Middlewares.Http.Transforms; public static class ForwardedTransformExtensions { /// <summary> /// Adds the transform which will add X-Forwarded-* request headers. /// </summary> /// <remarks> /// Also optionally removes the <c>Forwarded</c> header when enabled. /// </remarks>...
C#
) { case 'int': formatter = function (d) { return d3.format('d')(d); }; break; case 'float': formatter = function (d) { return d3.format('.02f')(d); }; break; case 'time': formatter = function (d) { return d3.time.fo...
Typescript
--- @ignore local hudSwicherSettings = { ["color"] = function(parent, currentHUD, key, data) parent:MakeColorMixer({ label = data.desc or key, initial = currentHUD[key], showAlphaBar = true, showPalette = true, OnChange = function(_, color) ...
Lua
return LHS.Ptr == RHS.Ptr; } friend bool operator!=(CanonicalDeclPtr LHS, CanonicalDeclPtr RHS) { return LHS.Ptr != RHS.Ptr; } private: friend struct llvm::DenseMapInfo<CanonicalDeclPtr<decl_type>>; decl_type *Ptr = nullptr; }; } // namespace clang namespace llvm { template <typename decl_type> str...
C
IntPtr; using PFND3D12DDI_DESTROYVIDEOPROCESSOR_0021 = System.IntPtr; using PFND3D12DDI_VIDEO_GETCAPS = System.IntPtr; namespace DirectN { [StructLayout(LayoutKind.Sequential)] public partial struct D3D12DDI_DEVICE_FUNCS_VIDEO_0063 { public IntPtr pfnGetCaps; public IntPtr pfnCalcPrivateVid...
C#
replace_callback) PHP_FE(preg_filter, arginfo_preg_replace) PHP_FE(preg_split, arginfo_preg_split) PHP_FE(preg_quote, arginfo_preg_quote) PHP_FE(preg_grep, arginfo_preg_grep) PHP_FE(preg_last_error, arginfo_preg_last_error) PHP_FE_END }; zend_module_entry pcre_module_entry = { STANDARD_MODULE_HEAD...
C
#8] mov r1, #0 add r0, r5, #0 add r2, r6, #0 sub r3, r4, r3 str r1, [sp, #0xc] bl AddTextPrinterParameterized2 add sp, #0x10 pop {r4, r5, r6, pc} nop _021EA8B8: .word 0x00010200 thumb_func_end ov75_021EA880 thumb_func_start ov75_021EA8BC ov75_021EA8BC: ; 0x021EA8BC push {r3, r4, r5, r6, r7, lr} add r4, r0...
Assembly
rinv (new lu) mulsd xmm4, xmm0 ;# xmm4=r mulsd xmm4, [rsp + nb300_tsc] cvttsd2si r8d, xmm4 ;# mm6 = lu idx cvtsi2sd xmm5, r8d subsd xmm4, xmm5 movapd xmm1, xmm4 ;# xmm1=eps movapd xmm2, xmm1 mulsd xmm2, xmm2 ;# xmm2=eps2 shl r8d, 2 ;# idx *= 4 mov rsi, [rbp + nb300_VFtab] movsd xmm4, [rs...
Assembly
g1igg1w.33.woff2) format('woff2'); unicode-range: U+8e2d-8e31, U+8e34-8e35, U+8e39-8e3a, U+8e3d, U+8e40-8e42, U+8e47, U+8e49-8e4b, U+8e50-8e53, U+8e59-8e5a, U+8e5f-8e60, U+8e64, U+8e69, U+8e6c, U+8e70, U+8e74, U+8e76, U+8e7a-8e7c, U+8e7f, U+8e84-8e85, U+8e87, U+8e89, U+8e8b, U+8e8d, U+8e8f-8e90, U+8e94, U+8e99, U+8...
CSS
} /** * addLast */ public addLast(data: T): void { this.add(this.size, data); } /** * isEmpty */ public isEmpty(): boolean { return this.size === 0; } /** * getStatus */ public getStatus(): string { let str = ""; let curr = this.dummyHead.next; while (curr) { ...
Typescript
r, _ = http.NewRequest(http.MethodPost, "/decode-query?id=13", strings.NewReader(form.Encode())) r.Header.Set(ContentType, ApplicationForm) w = httptest.NewRecorder() mux.ServeHTTP(w, r) Equal(t, w.Code, http.StatusOK) Equal(t, test.ID, 13) Equal(t, test.Posted, "values") Equal(t, test.MultiPartPosted, "") te...
Go
In-game events [ "ビンゴカード", "きげんぎれのビンゴカード", "タイムカプセル", "かりものリスト" ], //Unusued furniture (only inside) [], //HRA exhibition (only inside) [ "あかいポスト", "きんぞくのポスト", "あおいポスト", "きいろいポスト", "オレンジのポスト", "みどりのポスト", "おうごんのポスト", "きのポスト", "しろいポスト", "ピンクのポスト", "わふうなポスト", "しょぼいポスト", "ステンレスなポスト", "しかくいポスト", "みずいろのポスト", "わかばいろのポスト", "...
JavaScript
workspace "d3d9-wrapper" configurations { "Release", "Debug" } platforms { "Win32", "Win64" } location "build" objdir ("build/obj") buildlog ("build/log/%{prj.name}.log") buildoptions {"-std:c++latest"} kind "SharedLib" language "C++" targetname "d3d9" targetextension ".dll" charact...
Lua
0v-1H8a1 1 0 010-2h1zm7-10V1a1 1 0 012 0v1h1a1 1 0 010 2h-1v11a1 1 0 01-2 0V4h-1a1 1 0 010-2h1zM4 5h1a1 1 0 110 2H4v8a1 1 0 01-2 0V7H1a1 1 0 110-2h1V1a1 1 0 112 0v4z"/></svg>'; static const String share = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24" height="24"...
Dart
teBuff:clear() self.bindComponents.rect_BtnActivate.rotation = C_Quaternion.Euler(C_Vector3(0, 0, 180)) end end function this:OnRefreshOverviewBuff() if not self.isBind then return end if self._isShowOverview then local listPoint = self:OnGetAllWildBuffBuildPoint() local listData = {} for w...
Lua
} return "%" + strconv.Itoa(len(s)) + "s" } type printUnit struct { value string example string leftAlign bool } func (p *printUnit) String() string { return fmt.Sprintf("%s", p.value) } func calcBlockDiff(e *eth.Ethereum, lastLoggedBlockN uint64, localHead *types.Block) (blks, txs, mgas int) { // Calcu...
Go
) logger.info("Successfully migrated barrel and configuration data to TheBrewingProject") logger.info("You can now remove both BreweryX and " + this.name + " from your plugins folder") pluginManager.disablePlugin(pluginManager.getPlugin("BreweryX")!!) pluginManager.disabl...
Kotlin
/ Format using display_graphviz /// let graphviz_string = format!("{}", plan.display_graphviz()); /// ``` /// /// If graphviz string is saved to a file such as `/tmp/example.dot`, the following /// commands can be used to render it as a pdf: /// /// ```bash /// dot -Tpdf < /tmp/example...
Rust
d_resp); edpPkt = PacketCmdResp(cmdid, cmdid_len, cmd_resp, cmd_resp_len); #ifdef _ENCRYPT if (g_is_encrypt) { ...
C
ul Compatibility Jamo // Range: U+3130 to U+318F // Kanbun // Range: U+3190 to U+319F // Enclosed CJK Letters and Months // Range: U+3200 to U+32FF // CJK Compatibility // Range: U+3300 to U+33FF // Hangul Syllables // Range: U+AC00 to U+D7A3 // High Surrogates // Range: U+D800 to U+DB7F ...
JavaScript
il.executeInterpreterForLazyPipol('@main:{arr = [a:2,"b":3,4,l:[5,4]];result2=arr["a"];result3=arr["b"];result4=arr["l"];}@'); let result2=state.get('result2'); let result3=state.get('result3'); let result4=state.get('result4'); expect(result2).toBe(2); expect(result3).toBe(3); ...
Typescript
return { audio: new AudioContext() }; }; let signal0 = sample::signal::rate(SAMPLE_HZ).const_hz(300.0).square().scale_amp(0.05); let signal1 = sample::signal::rate(SAMPLE_HZ).const_hz(400.0).square().scale_amp(0.05); let signal2 = sample::signal::rate(SAMPLE...
Rust
# -*- coding:utf-8 -*- ''' Reference Paper ---------- Luxburg U V. A tutorial on spectral clustering[J]. Statistics and Computing, 2007, 17(4): 395-416 Blog ---------- https://blog.csdn.net/waleking/article/details/7584084 Example ---------- > filepath = r'.\LoadData.gml' > G = nx.read_gml(filepath) > k = 9 > a ...
Python
cense. */ package org.wso2.ballerinalang.compiler.bir.codegen.model; import io.ballerina.tools.diagnostics.Location; import org.wso2.ballerinalang.compiler.bir.model.BIROperand; import org.wso2.ballerinalang.compiler.bir.model.BIRVisitor; import org.wso2.ballerinalang.compiler.semantics.model.types.BType; /** * Ne...
Java
n height: 2.4em;\n background: white;\n margin: 0 0.5em 0 0;\n border-left: 1px solid #e2e3e3;\n}\n.vakata-context .vakata-contextmenu-shortcut {\n font-size: 0.8em;\n color: silver;\n opacity: 0.5;\n display: none;\n}\n.vakata-context-rtl ul {\n left: auto;\n right: 100%;\n margin-left: auto;\n margin-righ...
JavaScript
50($t2) /* ACFF44 80058DA4 2401FFFB */ li $at, -5 .L80058DA8: /* ACFF48 80058DA8 00415827 */ nor $t3, $v0, $at /* ACFF4C 80058DAC 1560000A */ bnez $t3, .L80058DD8 /* ACFF50 80058DB0 3C048014 */ lui $a0, %hi(D_801399E8) # $a0, 0x8014 /* ACFF54 80058DB4 248499E8 */ addiu $a0, %lo(D_801399E8) # addiu $a0, $a...
Assembly
![GitHub Repo stars](https://img.shields.io/github/stars/liliu-avril/Awesome-Segment-Anything?style=social)) * 5.14 - How to run Llama 13B with a 6GB graphics card ([Gist](https://gist.github.com/rain-1/8cc12b4b334052a21af8029aa9c4fafc)) * 05/13 - **AI Research Highlights April-May 2023: Transformers for Long Input...
Markdown
(JmpIt != UseMBB.instr_end() && X86::getCondFromBranch(*JmpIt) != X86::COND_INVALID); break; } // Otherwise we can just rewrite in-place. if (X86::getCondFromCMov(MI) != X86::COND_INVALID) { rewriteCMov(*TestMBB, TestPos, TestLoc, M...
C++
'number' || typeof arg === 'string' || typeof arg === 'symbol' || // ES6 symbol typeof arg === 'undefined'; } exports.isPrimitive = isPrimitive; exports.isBuffer = Buffer.isBuffer; function objectToString(o) { return Object.prototype.toString.call(o); } }).call(this,{"isBuffer":require...
JavaScript
/* * PlayerViewer * Copyright (C) Andrew Howard 2002 * * 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 2 * of the License, or (at your option) any later version. * ...
C
} @SuperBuilder @Getter static final class MetadataResolverCacheQueryResult { private final CachedMetadataResolverResult result; @Builder.Default private final Optional<EntityDescriptor> entityDescriptor = Optional.empty(); public boolean isValid() { return res...
Java
import tensorflow as tf from tensorflow.contrib import slim from scipy import misc import os, random import numpy as np # https://people.eecs.berkeley.edu/~taesung_park/CycleGAN/datasets/ # https://people.eecs.berkeley.edu/~tinghuiz/projects/pix2pix/datasets/ class ImageData: def __init__(self, load_size, channe...
Python
x.datetime.Clock import kotlinx.serialization.json.Json import kotlinx.serialization.json.intOrNull import kotlinx.serialization.json.jsonObject import kotlinx.serialization.json.jsonPrimitive import java.util.* import kotlin.collections.set /** * @author hua0512 * @date : 2024/3/22 14:01 */ // MD5 JS Encryption v...
Kotlin
canRelock bool vulnCount vulnCount vulnList components.ViewModel inPlaceInfo components.ViewModel relockFixVulns components.ViewModel errorsView components.ViewModel depthInput textinput.Model severityInput textinput.Model focusedInfo components.ViewModel // the infoview that is currently f...
Go
24-12-22 SUNDAY 1734942601L, // 2024-12-23 MONDAY 1735029001L, // 2024-12-24 TUESDAY 1735115401L, // 2024-12-25 WEDNESDAY 1735201801L, // 2024-12-26 THURSDAY 1735288201L, // 2024-12-27 FRIDAY 1735374601L, // 2024-12-28 SATURDAY 1735461001L, // 2024-12-29 SUNDAY ...
Kotlin
SDL_X11_SYM(XRRScreenConfiguration *,XRRGetScreenInfo,(Display *dpy,Drawable draw),(dpy,draw),return) SDL_X11_SYM(SizeID,XRRConfigCurrentConfiguration,(XRRScreenConfiguration *config,Rotation *rotation),(config,rotation),return) SDL_X11_SYM(short,XRRConfigCurrentRate,(XRRScreenConfiguration *config),(config),return) S...
C
using System.IO; using Rainbow.Storage.Yaml; using Sitecore.Update.Interfaces; namespace Sitecore.Courier.Rainbow { public class RainbowIterator : IDataIterator { private const string ItemPrefix = "ID:"; private const string UserPrefix = "Username"; private const string RolePrefix = "R...
C#
rsations.put(Integer.parseInt(c.getId()), c); } SkypeMessage sm = null; if (!rs.wasNull()) { int messageType = rs.getInt("type"); //$NON-NLS-1$ sm = new SkypeMessage(); sm.setId(Long.toString(rs.getLong("messa...
Java
dev-1096") implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.0") // EJML implementation("org.ejml:ejml-simple:0.41") implementation("org.ejml:ejml-kotlin:0.41") // Multik implementation("org.jetbrains.kotlinx:multik-core:0.2.0") implementation("org.jetbrains.kotlinx:mult...
Kotlin
9, r"""თ""": 450, r"""ი""": 451, r"""კ""": 452, r"""ლ""": 453, r"""მ""": 454, r"""ნ""": 455, r"""ო""": 456, r"""რ""": 457, r"""ს""": 458, r"""ტ""": 459, r"""უ""": 460, r"""ᄀ""": 461, r"""ᄂ""": 462, r"""ᄃ""": 463, r"""ᄅ""": 464, r"""ᄆ""": 465, r"""ᄇ""": 466, r"""ᄉ""": 467, r"""ᄊ""":...
Dart
_.jsx("div",{className:c,...o,children:n}),t[10]=n,t[11]=o,t[12]=c,t[13]=d):d=t[13];const u=d;if(i){let e;return t[14]!==u||t[15]!==i?(e=_.jsx(ht,{content:i,side:"top",delayDuration:200,children:u}),t[14]=u,t[15]=i,t[16]=e):e=t[16],e}return u},wD=()=>{var e;const t=N.c(14),n=de(Xi),r=de(fe),o=(null==(e=null==n?void 0:n...
JavaScript
;// 本文件由洪旭耀设计,而使用权分发权自由属于你! ;// 可以通过QQ联系本人:26750452【24小时在线守候】 ;/////////////////////////////////////////////////////////////////////////////// AREA |.text|, CODE, READONLY ARM EXPORT util_fastloop ; void util_fastloop(ubase_t n); util_fastloop SUBS R0, R0, #1 ...
Assembly
sor) processMethodDeclaration(node *sitter.Node, source []byte, file *ir.DistilledFile, parent ir.DistilledNode) { method := &ir.DistilledFunction{ BaseNode: ir.BaseNode{ Location: p.nodeLocation(node), }, Parameters: []ir.Parameter{}, Modifiers: []ir.Modifier{}, } // Extract modifiers, attributes, retu...
Go