content
stringlengths
2
6.21k
label
stringclasses
16 values
ground": "#3498db", "highlight": { "border": "#2c3e50", "background": "#e74c3c" }, "hover": { "border": "#2c3e50", "background": "#e74c3c" } ...
Python
testString += termenv.CSI + termenv.ShowCursorSeq testString += fmt.Sprintf(termenv.CSI+termenv.CursorPositionSeq, 1, 2) testString += fmt.Sprintf(termenv.CSI+termenv.CursorBackSeq, 5) var sequences []any for i := 0; i < len(testString); i++ { csi, ok := extractCSI(testString[i:]) if ok { i += len(csi) - ...
Go
esDuringResolve = expandedItems .asSequence() .filter { it is RsNamedElement && it is RsItemElement || it is RsMacro || it is RsMacroCall || it is RsMetaItem } .map { val name = when (it) { is RsItemElement -> "${it.item...
Kotlin
FG { DWORD dwSize;//ṹС BYTE byEnable; //Ƿã 0-ã1- BYTE byRuleID; //ĹID BYTE byColorBlockNo; //ɫţ1ʼ BYTE byRes1; // NET_DVR_PIC_INFO struPicInfo; //ͼƬɫϢ BYTE byRes[64]; }NET_DVR_VCA_RULE_COLOR_CFG,*LPNET_DVR_VCA_RULE_COLOR_CFG; typedef str...
C
: Throwable) { throwables.add(e) null }?.let { val nameCopy = name futureTunnels.add(async(SupervisorJob()) { Application.getTunnelManager().create(nameCopy, it) }) ...
Kotlin
mentation used in rustc pub type HashMap<K, V> = rustc_hash::FxHashMap<K, V>; /// Faster hashSet implementation used in rustc pub type HashSet<K> = rustc_hash::FxHashSet<K>; /// IndexMap data implementation used in rustc pub type IndexMap<K, V> = indexmap::IndexMap<K, V, BuildHasherDefault<rustc_hash::FxHasher>>; pu...
Rust
from queue import Queue import confuse from trakt_scrobbler import config, logger from trakt_scrobbler.backlog_cleaner import BacklogCleaner from trakt_scrobbler.log_config import LOG_PATH from trakt_scrobbler.notifier import notify from trakt_scrobbler.player_monitors import collect_monitors from trakt_scrobbler.scrob...
Python
from generator import generator as gen from generator import make_z_normal import tensorflow as tf from absl import app, flags import cv2 import numpy as np import matplotlib.pyplot as plt import os from categories import indx2category from scipy.stats import truncnorm # Random states: 4, 99, 3, 900, 412, 109 flags.DE...
Python
there is a boundary transition for a region. It calls this method in addition to calling the `<beaconManager:didEnterRegion:>` and `<beaconManager:didExitRegion:>` methods. The beacon manager also calls this method in response to a call to its `<[ESTBeaconManager requestStateForRegion:]>` method, which runs asynchronou...
C
pre> * * <code>.google.cloud.vision.v1p3beta1.ImageAnnotationContext context = 21;</code> * * @return Whether the context field is set. */ @java.lang.Override public boolean hasContext() { return ((bitField0_ & 0x00000080) != 0); } /** * * * <pre> * If present, contextual informa...
Java
BIT", "CHADT": "CHADT", "NZDT": "NZDT", "AEDT": "AEDT", "ACDT": "ACDT", "AZST": "AZST", "IRDT": "IRDT", "EEST": "EEST", "CEST": "CEST", "BST": "BST", "PMDT": "PMDT", "ADT": "ADT", "NDT": "NDT", "EDT": "EDT", ...
JavaScript
- 2], SCHOOL_STRINGS[i]) end self:RegisterElement(SCHOOL_STRINGS[7], 'resistance', { order = 1, name = resName(7), descr = '..', func = function() return res(6) end }) -- 1 = holy for k = 2, NUM_RESISTANCE_TYPES do self:RegisterElement(SCH...
Lua
ers/models/blenderbot_small/modeling_tf_blenderbot_small.py#L1376) ```py ( input_ids: tf.Tensor | None = None attention_mask: tf.Tensor | None = None decoder_input_ids: tf.Tensor | None = None decoder_attention_mask: tf.Tensor | None = None decoder_position_ids: tf.Tensor | None = None head_mask: tf.Tensor | None = No...
Markdown
""" Dataclasses para dados públicos da API do Mercado Bitcoin. Estes dados não requerem autenticação para serem acessados. """ from dataclasses import dataclass from datetime import datetime from decimal import Decimal from typing import Any, Dict @dataclass class TickerData: """Representa os dados de um ticker ...
Python
//--------------------------------------------------------------------------- @override void renderTriangleMesh(RenderState renderState, Int16List ixList, Float32List vxList, int color) { final context = _renderingContext; final matrix = renderState.globalMatrix; final alpha = renderState.globalA...
Dart
system"); expect(dateEntries[1].start, DateTime(2021, 03, 04, 00, 00)); expect(dateEntries[2].description, "Abgabe Bachelorarbeit"); expect(dateEntries[2].year, "2019"); expect(dateEntries[2].comment, "Gebunden"); expect(dateEntries[2].start, DateTime(2021, 08, 09, 15, 45)); expect(dateEntries...
Dart
Domain::kPlatform; } if (LocationIsOnSystemExtFramework(dex_location.c_str())) { return Domain::kPlatform; } if (class_loader.IsNull()) { LOG(WARNING) << "DexFile " << dex_location << " is in boot class path but is not in a known location"; return Domain::kPlatform; ...
Markdown
umbras' staff (failed) itemid = 22765, type = "equip", slot = "hand", level = 65, vocation = { {"Sorcerer", true}, {"Master Sorcerer"} } }, { -- ferumbras' staff (failed) itemid = 22765, type = "deequip", slot = "hand", level = 65 }, { -- Ferumbras' staff itemid = 22764, type = "eq...
Lua
index_mut(&mut self, index: u16) -> &mut Self::Output { &mut self.memory[index as usize] } } impl Memory for SimpleMemory { fn read_byte(&mut self, _regs: &mut Registers, addr: u16) -> u8 { self.memory[addr as usize] } fn write_byte(&mut self, _regs: &mut Registers, addr: u16, value: u...
Rust
""" This file is part of Criadex. Criadex is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Criadex is distributed in the hope that it will b...
Python
a `HSV.D` /// instruction which is effectively an unreference to any memory address. #[inline] pub unsafe fn hsv_d(dst: *mut i64, src: i64) { asm!(".insn r 0x73, 0x4, 0x37, x0, {}, {}", in(reg) dst, in(reg) src, options(nostack)); } //! # Market //! //! Contains functions for retrieving market order data from the...
Rust
table .card-header{height:90px;background:#fff}.pricing-table .card-footer{background:#fff}@media (min-width:576px){.pricing-table .card-offset-y{position:relative;z-index:1;margin-top:-10px}.pricing-table .card-offset-y .card-header{height:100px}.pricing-table .card-offset-y .card-footer{padding-top:22px}.pricing-tabl...
CSS
__.sayHello(); // "Hello from parent" ``` ## 19.12 정적 프로퍼티/ 메서드 : 생성자 함수로 인스턴스를 생성하지 않아도 참조/호출 할 수 있는 프로퍼티/메서드 ```jsx // 정적 메서드 Foo.x = function() { console.log('x'); }; // 정적 메서드 호출 Foo.x(); // 출력: x ``` ## 19.13 프로퍼티 존재 확인 ### 19.13.1 in 연산자 : 객체 내 특정 프로퍼티가 존재하는지 여부 확인 ```jsx const person = { name: 'Le...
Markdown
/* * SPDX-FileCopyrightText: 2023-2025 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ #pragma once #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <inttypes.h> #include <stdatomic.h> #include "sdkconfig.h" #if CONFIG_ANA_CMPR_ENABLE_DEBUG_LOG // The local log ...
C
t := s.GenesisTimeFetcher.CurrentSlot() if currSlot > headState.Slot() { headRoot, err := s.HeadFetcher.HeadRoot(ctx) if err != nil { return nil, &RpcError{Err: errors.Wrap(err, "could not get head root"), Reason: Internal} } headState, err = transition.ProcessSlotsUsingNextSlotCache(ctx, headState, headRoo...
Go
9.80 (X11; Linux x86_64; U; bg) Presto/2.8.131 Version/11.10", "Opera/9.80 (Windows NT 6.0; U; en) Presto/2.8.99 Version/11.10", "Opera/9.80 (Windows NT 5.1; U; zh-tw) Presto/2.8.131 Version/11.10", "Opera/9.80 (Windows NT 6.1; Opera Tablet/15165; U; en) Presto/2.8.149 Version/11.1", "Opera/9.80 (X11; L...
Java
別を元に合法手を列挙して返す /// /// # Arguments /// * `t` - 手を列挙したい手番 /// * `state` - 盤面の状態 /// * `dst` - 移動元の位置 /// /// 移動元の位置からさらに移動できる位置を取得するときに使う。 /// 渡した引数の状態が不正な場合の動作は未定義 pub fn legal_moves_with_dst_put(t:Teban,state:&State,dst:KomaDstPutPosition) -> Vec<LegalMove> { match dst { KomaDstPutPosition(...
Rust
.RGBA{uint8(x * alpha / 15), 0, 0, uint8(alpha)}) } } return m } func gradYellow(alpha int) Image { m := image.NewRGBA(image.Rect(0, 0, 16, 16)) for y := 0; y < 16; y++ { for x := 0; x < 16; x++ { m.Set(x, y, color.RGBA{uint8(x * alpha / 15), uint8(y * alpha / 15), 0, uint8(alpha)}) } } return m } type...
Go
_proto_goTypes = nil file_google_showcase_v1beta1_rest_error_proto_depIdxs = nil } // Copyright 2021 Google LLC // // 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 // // https://www.apac...
Go
두루마리 - 민첩성", [38881] = "손목보호구 마법부여 두루마리 - 마나 회복", [38882] = "손목보호구 마법부여 두루마리 - 치유 강화", [38883] = "무기 마법부여 두루마리 - 강한 정신력", [38884] = "무기 마법부여 두루마리 - 뛰어난 지능", [38885] = "장갑 마법부여 두루마리 - 위협", [38886] = "장갑 마법부여 두루마리 - 암흑 마법 강화", [38887] = "장갑 마법부여 두루마리- 냉기 마법 강화", [38888] = "장갑 마법부여 두루마리 - 화염 마법 강화", [38889] = "장갑 마법부여 두루마...
Lua
){ return createPolyhedron(vtx); } /** alias of createPolyhedron with maximum threshold for edge length */ public static IMeshGeo polyhedron(IVertex[] vtx, double threshold){ return createPolyhedron(vtx,threshold); } /** connect closest vertex */ public static IMeshGeo connectVertex(...
Java
import matplotlib.pyplot as plt def plot_data_quality_scores(scores, title='Data Quality Scores'): """Plot bar chart of data quality scores.""" categories = list(scores.keys()) values = list(scores.values()) plt.figure(figsize=(10, 5)) plt.bar(categories, values, color='skyblue') plt.xlabel('Da...
Python
/*************************************************************************** * Copyright (C) 2007 Ryan Schultz, PCSX-df Team, PCSX team * * * * This program is free software; you can redistribute it and/or modify * * it unde...
C
{ ID: i, Age: i % 2, Name: fmt.Sprintf("John%d", i), } err := db.Save(&u) require.NoError(t, err) } db.Bolt.View(func(tx *bolt.Tx) error { bucket := tx.Bucket([]byte("User")) require.NotNil(t, bucket) require.NotNil(t, bucket.Bucket([]byte(indexPrefix+"Name"))) require.NotNil(t, bucket.Buc...
Go
.1.3/css/bootstrap-reboot.css ./gui/lib/bootstrap-4.1.3/css/bootstrap.css ./gui/lib/bootstrap-4.1.3/css/bootstrap-reboot.min.css.map ./gui/lib/jquery-3.3.1.min.js ./gui/lib/jquery-ui-1.14.1/jquery-ui.structure.min.css ./gui/lib/jquery-ui-1.14.1/external ./gui/lib/jquery-ui-1.14.1/external/jquery ./gui/lib/jquery-ui-1.1...
Markdown
timeline.getComponent(nextSub).setLocation(text.getX() + text.getWidth(), text.getY()); if (text.getCursor() == Cursor.getPredefinedCursor(Cursor.MOVE_CURSOR)) { timeline.getComponent(nextSub).setLocation(text.getX() + text.getWidth(), text.getY()); timeline.getComponent(nextSub).setSi...
Java
ilename(const char *src_name); /// \brief Start progress info handling /// /// message_filename() must be called before this function to set /// the filename. /// /// This must be paired with a call to message_progress_end() before the /// given *strm becomes invalid. /// /// \param strm Pointer to lzm...
C
n = int(input("Число, факторіал якого будем розраховувать ")) factorial = 1 for i in range(1, n + 1): factorial *= i print(f"Факторіал числа {n} дорівнює: {factorial}")
Python
//BleskOS /* * MIT License * Copyright (c) 2023-2025 BleskOS developers * 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
Names, host) template.IsCA = true template.KeyUsage |= x509.KeyUsageCertSign derBytes, err := x509.CreateCertificate( rand.Reader, &template, &template, publicKey(priv), priv) if err != nil { panic(fmt.Sprintf("Failed to create certificate: %s", err)) } var certOut bytes.Buffer pem.Encode(&certOut, &pem.Bl...
Go
_pw_w) = pw.generate_curve_data(pc_pw_d[l], 0.0, sl_pw_d[l], npoint)?; // curve let mut curve_bc_d = Curve::new(); let mut curve_vg_d = Curve::new(); let mut curve_pw_d = Curve::new(); let mut curve_bc_w = Curve::new(); let mut curve_vg_w = Curve::new(); let mut curve_pw_w = Curve::new(); ...
Rust
> width) right = width; if (top < 0) top = 0; if (bottom > height) bottom = height; for (int yy = top; yy < bottom; ++yy) { for (int xx = left; xx < right; ++xx) { int xy = xx + yy * width; if (checkDistance(radius, xx, yy, newRect.centerX(), newRect.centerY())) { m...
Java
, v.Error) return }, "snowflake.user.createdAt": func(r plugin.Resource, v *llx.RawData) (ok bool) { r.(*mqlSnowflakeUser).CreatedAt, ok = plugin.RawToTValue[*time.Time](v.Value, v.Error) return }, "snowflake.user.expiresAt": func(r plugin.Resource, v *llx.RawData) (ok bool) { r.(*mqlSnowflakeUser).ExpiresA...
Go
ar& pNei, const scalar& cOwn, const scalar& cNei, const vector& Sf, scalar& phi, scalarList& alphaPhis, scalarList& alphaRhoPhis, vector& alphaRhoUPhi, scalar& alphaRhoEPhi, const label facei, const label patchi ) { scalar magSf = mag(Sf); scalar EOwn = eOwn + 0.5*magSqr(UOwn); ...
C
import logging from aiogram import Bot, Dispatcher, executor, types from aiogram.types import InlineKeyboardMarkup, InlineKeyboardButton import re from environs import Env from instagram import instagram_download from tik_tok import tik_tok_download from yt import get_video_data logging.basicConfig(level=logging.INFO)...
Python
口市", 411602: "川汇区", 411621: "扶沟县", 411622: "西华县", 411623: "商水县", 411624: "沈丘县", 411625: "郸城县", 411626: "淮阳县", 411627: "太康县", 411628: "鹿邑县", 411681: "项城市", 411682: "其它区", 411700...
JavaScript
`shentud query gov proposal [proposal-id] [flags]`: Query details for a proposal. You can find the proposal-id by running "`shentud query gov proposal` ". ```{engine = 'sh'} $ shentud query gov proposal 1 proposal: content: '@type': /shentu.shield.v1alpha1.ShieldClaimProposal description: Details of the attack ev...
Markdown
S3 redirect response = await client.get(polar_download_url, follow_redirects=False) assert response.status_code == 302 s3_download_url = response.headers.get("location", None) assert s3_download_url # S3 Download works & matches our expectations async with AsyncClient()...
Python
��용되는 템플릿에 (역시) 적절한 한글 폰트가 지정되지 않아서이다. 근본적인 해결책이 OSX + R Studio + xelatex + Pandoc 팀으로부터 제공되기 전까지 임시 방편으로 한글을 컴파일하는 방법을 알아보자. ## 준비작업 (한번만 해주면 된다) 일단 LaTex / xeLaTex를 설치하자. <http://wiki.ktug.org/wiki/wiki.php/설치하기MacOSX/MacTeX> 의 설명을 따르면 된다. 특히 nanum 폰트를 다운받도록 한다. sudo tlmgr repository add http://ftp.ktug.org...
Markdown
s = msg.data:match('([^,]+),([^,]+)') f = tonumber(f) or 0 s = tonumber(s) or 0 car:emit_event('set_input', f, s) end end end function update(engine, self, input, dt) server:poll() while true do local msg = server:recv() if not msg then break...
Lua
amcommunity.com/sharedfiles/filedetails/?id=1530394137 If you're feeling OCD about a perfect layout for your base then look no further. Press Shift-F to begin, press Shift-F again to update buildable area. Press Ctrl-Shift-1 to remove large rocks, Ctrl-Shift-2 for small ones (shows a confirmation before). Ctrl-Shift-...
Lua
{ byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOExc...
Java
foo(param) { Contravariant<num> c = Contravariant<num>(); (c as Contravariant<int>).method(); // absent: '._as(' } """; const String INV_CAST1 = r""" class Invariant<inout T> { void method() {} } foo(param) { Invariant<num> i = Invariant<num>(); (i as Invariant<Object>).method(); // present: '._as(' /...
Dart
s that can be converted to numbers val strings = columnOf("5", "2", "8", "1", "9") strings.medianOf { it.toInt() } shouldBe 5 } @Test fun `medianOf with transformer function with nulls`() { val stringsWithNull = columnOf("5", "2", null, "1", "9") stringsWithNull.medianOf { i...
Kotlin
//FormAI DATASET v1.0 Category: Matrix operations ; Style: funny #include<stdio.h> #include<stdlib.h> #include<time.h> void party() { printf("You have entered the party zone! Let's do some matrix operations\n"); } void matrix_addition(int row, int col, int matrix1[row][col], int matrix2[row][col]) { int i,j; ...
C
uentIcons.maximize_16_regular; return Icon(maximizeIcon, size: 16, color: buttonContext.iconColor); }, onPressed: () => appWindow.maximizeOrRestore()), WindowButton( colors: isDark ? darkCloseButtonColors : closeButtonColors, paddin...
Dart
#include <stdio.h> #include <stdlib.h> //ṩmallocreallocfreeexitԭ #include "../../../α㷨ʵ/01 /Status.h" //**01 **// #include "../../../α㷨ʵ/01 /Scanf.c" //**01 **// /* Ͷ */ typedef char TElemType; //ԪؾΪַ typedef struct BiTNode //洢ʾ { TElemType data; //Ԫ struct BiTNode* lchild; //ָ s...
C
end (*PartyPresenceEvent)(nil), // 41: nakama.realtime.PartyPresenceEvent (*Ping)(nil), // 42: nakama.realtime.Ping (*Pong)(nil), // 43: nakama.realtime.Pong (*Status)(nil), // 44: nakama.realtime.Status (*StatusFollow)...
Go
mport androidx.sqlite.db.SupportSQLiteDatabase import com.example.room.databinding.ActivityMainBinding class MainActivity : AppCompatActivity() { val binding by lazy { ActivityMainBinding.inflate(layoutInflater) } var helper: RoomHelper? = null override fun onCreate(savedInstanceState: Bundle?) { ...
Kotlin
16](https://github.com/elastic/elasticsearch/pull/20916) Cluster * 缓存成功的分片删除检查 [#21438](https://github.com/elastic/elasticsearch/pull/21438) Core * 发送大量查询时减少内存压力 [#21776](https://github.com/elastic/elasticsearch/pull/21776) * 启动时安装安全管理器 [#21716](https://github.com/elastic/elasticsearch/pull/21716) * 启动时记录节点...
Markdown
"The Melancholy of Haruhi Suzumiya Dj" to "3823", "The Mighty Thor Dj" to "2082", "The Outsiders Dj" to "576", "The Silence of the Lambs Dj" to "5982", "The Unlimited – Hyoubu Kyousuke Dj" to "834", "The World God Only Knows Dj" to "3667", ...
Kotlin
you should assume not. On Windows 10+ you /// must use the [`enable_ansi_support()`] function to turn on support. #[inline(always)] pub fn fmt_supported_stdout() -> bool { atty::is(atty::Stream::Stdout) } /// Are ANSI format sequences supported on stderr? /// /// - On Unix this is reliable, returning `true` onl...
Rust
ble" and arg then argCheck(arg, 4, "string") end if not self.registry[event] then self.registry[event] = compost and compost:Acquire() or {} end if arg == nil then arg = event end self.registry[event][func] = arg end function lib:Unregister(event, func) argCheck(event, 2, "string") argCheck(func, 3, "fun...
Lua
isEqualTo(text) assertThat(resultSet(1)(0)).isEqualTo(2) assertThat(resultSet(1)("id")).isEqualTo(2) assertThat(resultSet(1)(1)).isEqualTo(otherText) assertThat(resultSet(1)("name")).isEqualTo(otherText) } @Test fun `result set should return the same order as the one given...
Kotlin
ntract1 : SmartContract { //TODO: Replace it with your own address. [InitialValue("NiNmXL8FjEUEs1nfX9uHFBNaenxDHJtmuB", ContractParameterType.Hash160)] static readonly UInt160 Owner = default; private static bool IsOwner() => Runtime.CheckWitness(Owner); // When this contra...
Markdown
edges = [...widget.edges ?? []]; // 存储所有的连线 bool isDragging = false; Offset canvasPosition = Offset(-2000, -2000); Offset componentBaseOffset = Offset(2000, 2000); double _scale = 1.0; double minScale = 0.5; double maxScale = 3.0; SystemMouseCursor _cursor = SystemMouseCursors.allScroll; UniqueKey ...
Dart
bool _attemptLock = false; late Duration _timeout; static const maxAttemptsBeforeThrottling = 3; Timer? _timer; Future<bool> _loadWallets(String? loadIntoWalletId) async { await ref .read(pWallets) .load( ref.read(prefsChangeNotifierProvider), ref.read(mainDBProvider), ...
Dart
[1]="spell_minimum_added_chaos_damage_while_wielding_two_handed_weapon",[2]="spell_maximum_added_chaos_damage_while_wielding_two_handed_weapon"}},[1414]={lang={English={[1]={limit={[1]={[1]="#",[2]="#"},[2]={[1]="#",[2]="#"}},text="Adds %1% to %2% Cold Damage to Spells while Dual Wielding"}}},stats={[1]="spell_minimum_...
Lua
lass.java) fun restore(terminal: Terminal) { val terminalModel = terminal.getTerminalModel() val cursorStore = if (terminalModel.hasData(DataKey.SaveCursor)) { terminalModel.getData(DataKey.SaveCursor) } else { CursorStore( position = Position(1, 1), ...
Kotlin
#!/usr/bin/env python """ Copyright (c) 2006-2013 sqlmap developers (http://sqlmap.org/) See the file 'doc/COPYING' for copying permission """ import os import re from lib.core.common import singleTimeWarnMessage from lib.core.enums import DBMS from lib.core.enums import PRIORITY __priority__ = PRIORITY.HIGHEST de...
Python
f1bbcdc, 15), d); b = rotl32(b, 10); d = sum32(crotl32(d + _f4(e, a, b) + buffer[0] + 0x8f1bbcdc, 14), c); a = rotl32(a, 10); c = sum32(crotl32(c + _f4(d, e, a) + buffer[8] + 0x8f1bbcdc, 15), b); e = rotl32(e, 10); b = sum32(crotl32(b + _f4(c, d, e) + buffer[12] + 0x8f1bbcdc, 9), a); d = rot...
Dart
/** ****************************************************************************** * * @file GCSControlplugin.h * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010. * @addtogroup GCSPlugins GCS Plugins * @{ * @addtogroup GCSControlGadgetPlugin GCSControl Gadget Plugin * @{ * @br...
C
764456961, "to": 764457983 }]}, { "name": "ru.arkada17", "info": "Arkada LLC", "data": [{ "from": 764659713, "to": 764660735 }]}, { "name": "ru.arkada18", "info": "Arkada LLC", "data": [{ "from": 1541901825, "to": 1541902335 }, { "from": 1541913089, "to": 1541913599 }]}, { "name": "ru.a...
JavaScript
輕環頭盔", [17777] = "無情鍊甲", [17778] = "山艾束腰", [17779] = "巨石肩鎧", [17780] = "無盡黑暗之刃", [17781] = "賤民的指引", [17782] = "縛靈裂片咒符", [17822] = "霜狼地圖", [17823] = "雷矛作戰計畫", [17849] = "雷矛旌旗", [17850] = "霜狼旌旗", [17900] = "2級雷矛徽記", [17901] = "3級雷矛徽記", [17902] = "4級雷矛徽記", [17903] = "5級雷矛徽記", [17904] = "6級雷矛徽記", [17905] = "2級霜狼徽記", [17906...
Lua
IT state reset, instruction set and endianness set to SCTLR-configured values. sregs.spsr.value = new_spsr_value regs.lr.value = new_lr_value status.i = true status.ITSTATE = 0uL status.j = false; status.t = vmsa.sctlr.te s...
Kotlin
/div></td><td style="padding-left: 1em;"><b><a href="/%E6%A1%9C%E9%A2%A8%E3%81%AE%E8%AA%93%E3%81%84#3" title="桜風の誓い">No grave</a></b> &#91;04:00&#93;<dl><dd><a href="./桜風の誓い.md" title="桜風の誓い">桜風の誓い</a> (2017-05-07)<br></dd></dl></td></tr><tr class="mw-collapsible mw-collapsed" id="mw-customcollapsible-othervers-2"><td ...
Markdown
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2013, The Linux Foundation. All rights reserved. */ #include <linux/bitops.h> #include <linux/export.h> #include <linux/regmap.h> #include <linux/reset-controller.h> #include <linux/delay.h> #include "reset.h" static int qcom_reset(struct reset_controller...
C
paginados, página: $page, tamaño: $size" } val myPage = if (page < 1) 0 else page - 1 // Cuidado con la paginación y los índices para test val mySize = if (size < 1) 10 else size return dao.findAll(mySize, myPage * mySize).map { it.toModel() } } override fun findByNombre(n...
Kotlin
info("Checking if the address page has been rendered"); let addressForm = content.document.querySelector( "#billing-address-page" ); let addressSaveButton = addressForm.querySelector(".save-button"); ok( content.isVisible(addressSaveButton), ...
JavaScript
'package:bonfire/base/bonfire_game.dart'; import 'package:bonfire/collision/quad_tree/custom_has_quadtree_collision_detection.dart'; import 'package:flame/collisions.dart'; import 'package:flame/extensions.dart'; import 'package:flame/geometry.dart'; class BonfireQuadTreeCollision extends BonfireGame with CustomH...
Dart
ksaanNeuro.setName("PemeriksaanNeuro"); // NOI18N PemeriksaanNeuro.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { PemeriksaanNeuroKeyPressed(evt); } }); scrollPane5.setViewportView(PemeriksaanNeuro); ...
Java
ing.const.p("glyph_name") ) FT_Error( "Get_Glyph_Name", FT_Face("face"), FT_UInt("glyph_index"), FT_Pointer("buffer"), AutoSize("buffer")..FT_UInt("buffer_max") ) charASCII.const.p( "Get_Postscript_Name", FT_Face("face") ) EnumConstant...
Kotlin
// Auto-generated file. Do not edit! // Template: src/f32-spmm/scalar-pipelined.c.in // Generator: tools/xngen // // Copyright 2019 Google LLC // // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. #include <assert.h> #include <xnnpac...
C
/* * This file is part of the Yices SMT Solver. * Copyright (C) 2017 SRI International. * * Yices is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) a...
C
} @Retention(RUNTIME) @Target({TYPE_USE}) @interface CF { } @Retention(RUNTIME) @Target({TYPE_USE}) @interface CG { } @Retention(RUNTIME) @Target({TYPE_USE}) @interface CH { } @Retention(RUNTIME) @Target({TYPE_USE}) @interface CI { } @Retention(RUNTIME) @Target({TYPE_USE}) @interface CJ { } @Retention(RUNTIME) @Target...
Java
###################################################################################### class Solution: def mergeAlternately(self, word1: str, word2: str) -> str: i = 0 j = 0 result = [] # 동시에 만족하는 경우까지만 append while i < len(word1) and j < len(word2): result.append...
Python
[str] | None = None, ) -> dict[str, float]: """Return body longitudes for the Davison chart at the time midpoint.""" mid_dt, _, _ = davison_midpoints(dt_a, loc_a, dt_b, loc_b) positions = provider(mid_dt) if bodies is None: return dict(positions) return {key: positions[key] for key in bodie...
Python
modifier = Modifier.width((screenWidth * 0.32f).dp) ) Spacer(modifier = Modifier.height(4.dp)) GroupTimeDescription( description = homeOnceGroupFormatSchedule( weekRecommendGroupInfo.weekDay, weekRecommendGroupInfo.startTime, weekRe...
Kotlin
assertEquals("2 days 1 hour 12 minutes 0 seconds", text); for (int i = 2; i < 31; i++) { text = DurationFormatUtils.formatDurationWords(i * 24 * 60 * 60 * 1000L, false, false); assertEquals(i + " days 0 hours 0 minutes 0 seconds", text); } } @Test public void...
Java
.dart'; @freezed class DogRandomImageDto with _$DogRandomImageDto { const factory DogRandomImageDto({ required String message, required String status, }) = _DogRandomImageDto; factory DogRandomImageDto.fromJson(Map<String, dynamic> json) => _$DogRandomImageDtoFromJson(json); }import 'package:dog_i...
Dart
5% tax tax_amount = subtotal * tax_rate total_amount = subtotal + tax_amount totals_data = [ ['Subtotal:', f"${subtotal:.2f}"], ['Tax (5%):', f"${tax_amount:.2f}"], ['Total:', f"${total_amount:.2f}"] ] totals_table = Table(totals_data, colWidths=[1*inch, 1*inch]) ...
Python
#if !defined(AFX_MYFILEDOWNVIEW_H__79A49660_8750_4EF0_A248_E27E887B2C0C__INCLUDED_) #define AFX_MYFILEDOWNVIEW_H__79A49660_8750_4EF0_A248_E27E887B2C0C__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // MyFileDownView.h : header file // ////////////////////////////////////////////////////////////...
C
2_weeks['MA50'].iloc[-2] #today_ma200 = df_52_weeks['MA200'].iloc[-1] #yesterday_ma200 = df_52_weeks['MA200'].iloc[-2] #today = df_52_weeks['timestamp'].iloc[-1] #today_close = df_52_weeks['adjusted_close'].iloc[-1] # Check for crossover (above or below) #if (today_ma50 > today_ma200 and yesterday_ma50 < yesterday_ma...
Python
class Solution: def subarraySum(self, arr, target): # code here l=0 res=0 for r in range(len(arr)): res+=arr[r] if res==target: return [l+1,r+1] elif res>target: while l<=r and res>target: res-=ar...
Python
TimePeriodManager { override fun splitByTimeRanges(period: TimePeriod): List<TimeRange> { val timeRanges = mutableListOf<TimeRange>() val currentDate = dateManager.fetchEndCurrentInstant() val daysInChildPeriod = period.quantityDaysInChildPeriod() r...
Kotlin
coef * (d1.protein - d2.protein).round(); case 'sodium': return (Dessert d1, Dessert d2) => coef * (d1.sodium - d2.sodium); case 'calcium': return (Dessert d1, Dessert d2) => coef * (d1.calcium - d2.calcium); case 'iron': return (Dessert d1, Dessert d2) => coef * (...
Dart
-- base_ctf4.lua ----------------------------------------------------------------------------- -- includes ----------------------------------------------------------------------------- IncludeScript("base_ctf") ----------------------------------------------------------------------------- -- map level handlers -------...
Lua
--- -- Specialization Patcher -- -- This table will be used to install the new sepcializations via the g_placeableSpecializationManager -- and apply them to the placeables with specialization `PlaceableBeehive`. -- -- Copyright (c) Peppie84, 2024 -- https://github.com/Peppie84/FS25_BeesRevamp -- SpecializationPatcher =...
Lua
keep the current media [Uri] in the savedStateHandle to re-render it if there is a * configuration change and we expose it as a [LiveData] to the UI */ val addedFile: LiveData<FileResource?> = savedStateHandle.getLiveData<FileResource?>(ADDED_FILE_KEY) sealed class FileType(val extension: St...
Kotlin
withSafeVariable("name", name) + "0 - [25 Hz] - ${((profile.band0 + 0.25f) * 500).roundToInt()}" + "1 - [40 Hz] - ${((profile.band1 + 0.25f) * 500).roundToInt()}" + "2 - [63 Hz] - ${((profile.band2 + 0.25f) * 500).roundToInt()}" + "3 - [100 Hz] - ${((profi...
Kotlin