content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
/*
* MIT License
* Copyright (c) 2019 _VIFEXTech
*
* 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, modify,... | C |
), corners:url(images/btn/btn-default-medium-corners.gif), sides:url(images/btn/btn-default-medium-sides.gif)"}.x4-btn-default-medium .x4-btn-inner{font-size:11px;font-weight:normal;font-family:tahoma,arial,verdana,sans-serif;color:#333;padding:0 3px}.x4-btn-default-medium .x4-btn-arrow{background-image:url(images/butt... | CSS |
| 名前 | 型 | 内容 |
| ----------- | ------------------------ | ---------------------------------------------- |
| pin | Pin, int, Bootsel_button | 割り当てる Pin オブジェクト、GPIO 番号、または Bootsel_button オブジェクトを指定します。 |
| name | str | ボ... | Markdown |
'', '', '', '', '', '100000', '', '1', '2', '1', '%s', '', '', '', '', '', '', '', '', '', '', '', '', '2021819', '', '', '', '1', '', '', '', '', '', '', '', '', '', '', '', ''},
{'2021819', '', '别这样,你可是我们的大英雄,不需要这么郑重地向我道谢。', '', '', '', '', '', '', '', '', '1003001', '', '', '2', '', '钨铬', 'Wolframite', '', '', '2', ... | Lua |
livemetadata() {
let tmp_dir = ::tempdir::TempDir::new_in(".", "rocks").unwrap();
let db = DB::open(
Options::default().map_db_options(|db| db.create_if_missing(true)),
&tmp_dir,
)
.unwrap();
assert!(db.disable_file_deletions().is_ok());
let meta = db.get_live_files_metadata();... | Rust |
t"
}
},
"26": {
"0": {
"GXT": "CLO_BUSM_U_3_0",
"Localized": "Navy Tucked"
},
"1": {
"GXT": "CLO_BUSM_U_3_1",
"Localized": "Green Tucked"
},
"2": {
"GXT": "CLO_BUSM_U_3_2",
"Localized": "Ash T... | Lua |
c(eq[i].lhs);
t2 = term_of_occ(eq[i].rhs);
explain_ite_congruence1(egraph, body[t1], body[t2], NULL);
break;
case EXPL_ITE_CONGRUENCE2:
t1 = term_of_occ(eq[i].lhs);
t2 = term_of_occ(eq[i].rhs);
explain_ite_congruence2(egraph, body[t1], body[t2], NULL);
break;
case EXP... | C |
nst val version_lifecycle = "2.4.0"
const val version_retrofit = "2.9.0"
const val version_adapter_rxjava2 = "2.7.1"
const val version_gson = "2.4.0"
const val version_converter_gson = "2.9.0"
const val version_rx_android = "2.1.1"
const val version_rxjava = "2.2.19"
const val version_rxkotl... | Kotlin |
s3d[n] # (8, 3)
if cls is not None:
if isinstance(cls, np.ndarray):
# mlab.text3d(b[6, 0], b[6, 1], b[6, 2], '%.2f' % cls[n], scale=(0.3, 0.3, 0.3), color=color, figure=fig)
ax.text(b[6, 0], b[6, 1], '%.2f' % cls[n])
else:
... | Python |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Pix
*
* Copyright (C) 2009 Free Software Foundation, Inc.
*
* 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 Foun... | C |
makeLive(/*needsSignature*/ ({var i}) {} is t3);
makeLive(/*needsSignature*/ ({A? v}) {} is t4);
makeLive(/*needsSignature*/ ({B? v}) {} is t4);
makeLive(/*needsSignature*/ ({C? v}) {} is t4);
makeLive(/*needsSignature*/ ({D? v}) {} is t4);
makeLive(/*needsSignature*/ ({Object? v}) {} is t4);
makeLive(/*... | Dart |
SurahDao
import com.wagyufari.dzikirqu.model.*
import com.wagyufari.dzikirqu.ui.adapters.KhatamIterationAdapter
import com.wagyufari.dzikirqu.ui.bsd.khatam.KhatamFooterBSD
import com.wagyufari.dzikirqu.ui.khatam.composer.KhatamComposerBSD
import com.wagyufari.dzikirqu.ui.khatam.fragments.KhatamDetailFragment
import com... | Kotlin |
ibur-dbcp-11.0:testing")
include(":instrumentation:wicket-8.0:common-testing")
include(":instrumentation:wicket-8.0:javaagent")
include(":instrumentation:wicket-8.0:wicket8-testing")
include(":instrumentation:wicket-8.0:wicket10-testing")
include(":instrumentation:xxl-job:xxl-job-1.9.2:javaagent")
include(":instrumenta... | Kotlin |
.574 7.01.32.287.106.62-.213.484-.287-.122-6.148-3.953-7.361-4.747v1.396c.21.27.35.558.444.828.676.2 1.188.536 1.558.943.511.562.724 1.229.743 1.765l.001.002v.154c0 .226-.018.437-.05.635l-.03.369-.045-.034a2.629 2.629 0 01-.885 1.37 2.944 2.944 0 01-1.708.628h-.028v1.806c0 .07.017.114.044.15.024.034.07.079.155.128 1.76... | Dart |
urn value ranges from 1 to 12.
fn month(&self) -> UInt32Chunked;
/// Extract weekday from underlying NaiveDate representation.
/// Returns the weekday number where monday = 0 and sunday = 6
fn weekday(&self) -> UInt32Chunked;
/// Returns the ISO week number starting from 1.
/// The return valu... | Rust |
use crate::testutil::parse_ip_packet_in_ethernet_frame;
#[bench]
fn bench_parse(b: &mut Bencher) {
use crate::wire::testdata::tls_client_hello::*;
let bytes = parse_ip_packet_in_ethernet_frame::<Ipv4>(ETHERNET_FRAME_BYTES).unwrap().0;
b.iter(|| {
let mut buf = bytes;
... | Rust |
';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform,
);
unawaited(
bootstrap((firebaseAuth, firestore) async {
final apiClient = SudokuDioClient(baseUrl: Env.apiBaseUrl);
final cacheClient = CacheC... | Dart |
ChBjaG9zZW5fc29y'
'dF90eXBlGAIgASgJUg5jaG9zZW5Tb3J0VHlwZQ==');
@$core.Deprecated('Use setDecisionReqDescriptor instead')
const SetDecisionReq$json = {
'1': 'SetDecisionReq',
'2': [
{'1': 'result', '3': 1, '4': 1, '5': 5, '10': 'result'},
{
'1': 'from_type',
'3': 2,
'4': 1,
'... | Dart |
/ # 数据服务模块
│ ├── __init__.py # 模块初始化
│ ├── config.py # 数据服务配置
│ ├── cache_manager.py # 缓存管理
│ ├── data_storage.py # 数据存储
│ ├── data_query.py # 数据查询
│ ├── logger.py # 数据服务日志
│ └── requirements.txt # 数据服务依赖
│
├── data/ ... | Markdown |
* @param bloomLocality the level of locality of bloom-filter probes.
* @return the reference to the current options.
*/
T setBloomLocality(int bloomLocality);
/**
* Control locality of bloom filter probes to improve cache miss rate.
* This option only applies to memtable prefix bloom and plaintable
... | Java |
eption> typedResult = resultBatch.map((result) => com_amap_api_maps_AMapException()..refId = result..tag = 'amap_map_fluttify').toList();
kNativeObjectPool.addAll(typedResult);
return typedResult;
}
static Future<List<com_amap_api_maps_AMapException>> create_batch__(int length) async {
if (false) {
... | Dart |
RCE_DWORD: D2D1_SVG_ASPECT_SCALING = 4294967295u32;
#[doc = "*Required features: 'Win32_Graphics_Direct2D'*"]
pub type D2D1_SVG_ATTRIBUTE_POD_TYPE = u32;
#[doc = "*Required features: 'Win32_Graphics_Direct2D'*"]
pub const D2D1_SVG_ATTRIBUTE_POD_TYPE_FLOAT: D2D1_SVG_ATTRIBUTE_POD_TYPE = 0u32;
#[doc = "*Required features... | Rust |
{308}\u{200d}\u{1f476}\u{1f3ff}",
&["\u{1f476}\u{1f3ff}\u{308}\u{200d}\u{1f476}\u{1f3ff}"]), ("\u{1f6d1}\u{200d}\u{1f6d1}",
&["\u{1f6d1}\u{200d}\u{1f6d1}"]), ("\u{61}\u{200d}\u{1f6d1}", &["\u{61}\u{200d}",
"\u{1f6d1}"]), ("\u{2701}\u{200d}\u{2701}", &["\u{2701}\u{200d}\u{2701}"]),
("\u{6... | Rust |
"""Litestar CLI integration for SQLSpec migrations."""
from contextlib import suppress
from typing import TYPE_CHECKING
import rich_click as click
from litestar.cli._utils import LitestarGroup
from sqlspec.cli import add_migration_commands
if TYPE_CHECKING:
from litestar import Litestar
from sqlspec.extens... | Python |
[r]]:i[n[r]].push(t.children[r]);for(const r of I(i))i[r].length>1&&(this.setModified(),this.mergeNodes(t,i[r]))}}class aue extends iE{constructor(t){super(),this.requiresSelectionId=t&&Yw(t)}run(t){t instanceof Is&&(this.requiresSelectionId&&(tE(t.parent)||t.parent instanceof mi||t.parent instanceof It)||(this.setModi... | JavaScript |
),
)
mustDo(t, c,
"ZUNIONSTORE", "set", "2", "k1", "k2", "AGGREGATE",
proto.Error(msgSyntaxError),
)
mustDo(t, c,
"ZUNIONSTORE", "set", "2", "k1", "k2", "AGGREGATE", "foo",
proto.Error(msgSyntaxError),
)
mustDo(t, c,
"ZUNIONSTORE", "set", "2", "k1", "k2", "AGGREGATE", "sum", "foo",
proto.... | Go |
let current = current.clone();
// TODO: and this one too
let mut c = c.clone();
async move { Ok(c.current_url().await? != current) }
})
.await
}
}
/// Raw access to the WebDriver instance.
impl Client {
/// Issue an HTTP request to the given `url` with all ... | Rust |
#!usr/bin/env python
# -*- coding:utf-8 -*-
"""
@author: longofo
@file: __init__.py
@time: 2019/03/23
"""
import os
import random
import socket
import ssl
import threading
import time
from http.server import SimpleHTTPRequestHandler, HTTPServer
from pocsuite3.lib.utils import gen_cert
from pocsuite3.lib.core.common imp... | Python |
local ffi = require("ffi");
local WinBase = require("WinBase");
local core_file = require("core_file_l1_2_0");
local Handle_ffi = require("Handle_ffi");
ffi.cdef[[
typedef struct {
HANDLE Handle;
} FsHandle;
]]
local FsHandle = ffi.typeof("FsHandle");
local FsHandle_mt = {
__gc = function(self)
if self:isValid()... | Lua |
,
returnType = "V",
literals = listOf(reelFeedbackLike, reelFeedbackPause, reelFeedbackPlay),
)
internal val shortsButtonFingerprint = legacyFingerprint(
name = "shortsButtonFingerprint",
returnType = "V",
literals = listOf(
reelDynRemix,
reelDynShare,
reelRightDislikeIcon,
... | Kotlin |
configurator.add_view(self.disable_content_share, route_name="delete_content_share")
# public download api
configurator.add_route(
"guest_download_info",
"/public/guest-download/{share_token}",
request_method="GET",
)
configurator.add_view(self... | Python |
-ui-tag-text: #333333;
--weilin-prompt-ui-header-bg: #f5f5f5;
--weilin-prompt-ui-primary-color-hover: #40a9ff;
/* 新增渐变色变量,适配日间主题 */
--weilin-prompt-ui-gradient-bg: linear-gradient(135deg, #f8fafc 0%, #e3eafc 100%);
--weilin-prompt-ui-gradient-primary: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
--we... | CSS |
" and this "
+ "feed://radio.example.org/archives.xml"
+ " two links")
forOneString(text, Audience.Companion.EMPTY) { TryUtils.SUCCESS }
val part0 = "A post to "
val part1 = "@AndStatus@pleroma.site"
val audience2 = Audience(DemoData.demoData.getAccountAc... | Kotlin |
e First Trial
.accept 9681 >>Accept A Study in Power
.target Knight-Lord Bloodvalor
step << Paladin
#xprate >1.4999
.goto Silvermoon City,91.74,35.35,12,0
.goto Silvermoon City,92.20,37.52
>>|Tinterface/worldmap/chatbubble_64grey.blp:20|tTalk to |cRXP_FRIENDLY_Bachi|r
.train 647 >>Train your... | Lua |
c;
import de.neemann.digital.draw.graphics.Polygon;
import de.neemann.digital.draw.graphics.Style;
import de.neemann.digital.draw.graphics.Vector;
import java.awt.*;
import static de.neemann.digital.draw.shapes.GenericShape.SIZE;
import static de.neemann.digital.draw.shapes.GenericShape.SIZE2;
/**
* The n-chan floa... | Java |
ounter: u32,
/// Indicates whether a horizontal blank signal is being generated.
hblank_on: bool,
/// Indicates whether a horizontal sync signal is being generated.
hsync_on: bool,
/// Holds CPU ticks until we reach the end of a scanline.
wait_for_sync: bool,
/// Temporarily latches playfiel... | Rust |
const Center(child: CircularProgressIndicator.adaptive());
}
}
}
class _BroadcastOverviewCard extends StatelessWidget {
const _BroadcastOverviewCard(this.iconData, this.text, [this.website]);
final IconData iconData;
final String text;
final Uri? website;
@override
Widget build(BuildContext contex... | Dart |
r)
# num_perms x nsrc_ref
sisdrs = torch.stack(sisdrs, 0)
best_sisdr, idx = torch.max(sisdrs.sum(dim=-1, keepdim=True), dim=0)
if return_perm:
return sisdrs[idx[0]], permutations[idx[0]]
else:
return sisdrs[idx[0]]
def sparsity_loss(y, eps=1e-8):
"""Source sparsity loss for M... | Python |
_views.remove(v);
handle_(view);
} else {
List<View> todos = [];
if (found)
todos.add(view);
for (final v in _views)
if (v.isDescendantOf(view))
todos.add(v);
for (final v in todos) {
_views.remove(v);
handle_(v);
... | Dart |
ciMat[1][0];
Cr[1][1] = crMat[1][1];
Ci[1][1] = ciMat[1][1];
}
/**
* Get covariance matrix C2 for a given pixel in the input C2 product.
*
* @param index X,Y coordinate of the given pixel
* @param dataBuffers Source tile data buffers for all 4 source bands
* @par... | Java |
ax: var(--pf-l-gallery--GridTemplateColumns--max-on-2xl, var(--pf-l-gallery--GridTemplateColumns--max-on-xl, var(--pf-l-gallery--GridTemplateColumns--max-on-lg, var(--pf-l-gallery--GridTemplateColumns--max-on-md, var(--pf-l-gallery--GridTemplateColumns--max-on-sm, var(--pf-l-gallery--GridTemplateColumns--max))))));
}... | CSS |
main(args: Array<String>) {
val config = Lwjgl3ApplicationConfiguration()
config.setWindowedMode(1280, 720)
config.setTitle("XGBC")
Lwjgl3Application(XGBC(), config)
}
package com.kotcrab.xgbc.io
import com.kotcrab.xgbc.Emulator
import com.kotcrab.xgbc.toInt
/** @author Kotcrab */
class Gpu(private v... | Kotlin |
import pandas as pd
from evidently.legacy.base_metric import GenericInputData
from evidently.legacy.base_metric import InputData
from evidently.legacy.base_metric import Metric
from evidently.legacy.calculation_engine.engine import metric_implementation
from evidently.legacy.calculation_engine.python_engine import Pyt... | Python |
// if (global_time >> 28) & 0x3 != pixel_bits as u64 {
// warn!("{} Checking bits should match!", output_prefix);
// }
// Subtract fast toa (ftoa count until the first clock edge, so less counts means later arrival of the hit)
l... | Rust |
on()
if weaponId then
local ProfessionSystemRow = Z.TableMgr.GetTable("ProfessionSystemTableMgr").GetRow(weaponId)
if ProfessionSystemRow then
self.uiBinder.node_weapon01.Ref:SetVisible(self.uiBinder.node_weapon01.img_talent_icon, true)
self.uiBinder.node_weapon01.img_talent_icon:SetImage(Professi... | Lua |
国总统选举",不过,俄罗斯希望特朗普上台,中国与伊朗则想要特朗普输。无论结果是谁当总统,外国间谍都算干涉成功了。

所以左手王同学画了一幅画,表达自己对美国这份报告的态度。

上周六15号,我们新推出的百科栏目《万物由来》更新了第二集螺蛳粉,从李子柒推销螺蛳粉的话题开始,结论是螺蛳粉的历史和未来都属于工业化,柳州市政府把螺蛳粉当作一个工业门类而不是土特产,才是螺蛳粉走向全国的核心原因。
<https://www.bilibili.com/video/BV... | Markdown |
f5f5f5;
font-size: 14px;
padding: 5px 10px;
}
th:first-of-type,
td:first-of-type{
width: 25%;
font-weight: bold;
}
#versiontest{
color: #27B34F;
}
a{
color: #33b3ca;
text-decoration: none;
}
.button{
background-color: #33b3ca;
border-radius: 15px;
color: #ffffff;
margin: 15px 10px 15px 10px;
padding: 5px 15... | CSS |
0522][])
* [#13397](https://github.com/rubocop/rubocop/pull/13397): Update `PercentLiteralCorrector` to be able to write pairs of delimiters without excessive escaping. ([@dvandersluis][])
* [#13336](https://github.com/rubocop/rubocop/issues/13336): Update `Style/SafeNavigation` to not autocorrect if the RHS of an `and... | Markdown |
Slug: "scissors",
Character: "✂️",
UnicodeName: "E0.6 scissors",
CodePoint: "2702 FE0F",
Group: "Objects",
SubGroup: "office",
},
"✅": {
Slug: "check-mark-button",
Character: "✅",
UnicodeName: "E0.6 check mark button",
CodePoint: "2705",
Group: ... | Go |
i precej majhni in z vprašljivo sposobnostjo ustrezne zaščite zasebnosti. Za druge primerjave si oglejte naš <a target=\"_blank\" href=\"/knowledge/why-monero-is-better\" class=\"next-link\">članek, ki primerja Monero z drugimi glavnimi kovanci za zasebnost </a>.</p>';
@override
String get knowledge250Sbmyths250Sb... | Dart |
from rest_framework import generics
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from api.models import TodoItem, Note, TodoList
from api.serializers import TodoItemSerializer, NoteSerializer, TodoListSerializer
# TodoList views
class TodoList... | Python |
serde_json::Value;
use std::path::PathBuf;
use taplo_common::{
schema::{associations::DEFAULT_CATALOGS, cache::DEFAULT_LRU_CACHE_EXPIRATION_TIME},
HashMap,
};
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct InitConfig {
pub cache_path: Option<PathBuf>,
#[s... | Rust |
//===- Hoisting.h - Linalg hoisting transformations -------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | C |
if not WeakAuras.IsLibsOK() then return end
---@type string
local AddonName = ...
---@class Private
local Private = select(2, ...)
local L = WeakAuras.L
--- @class AuraEnvironmentWrappedSystem
--- @field Get fun(systemName: string, id: auraId, cloneId: string?): any
--- @type AuraEnvironmentWrappedSystem
Private.Aura... | Lua |
class)
fun close()
}package net.osmand.shared.util
import co.touchlab.stately.collections.ConcurrentMutableMap
import net.osmand.shared.data.KLatLon
import net.osmand.shared.data.KQuadRect
import net.osmand.shared.extensions.toDegrees
import net.osmand.shared.extensions.toRadians
import kotlin.math.*
/**
* This uti... | Kotlin |
// (C)2008 S2 Games
// c_itemdefinition.h
//
//=============================================================================
#ifndef __C_ITEMDEFINITION_H__
#define __C_ITEMDEFINITION_H__
//=============================================================================
// Headers
//=======================================... | C |
sult = app.nodeQuery(projectType).sort(Traits.of(StructrTraits.NODE_INTERFACE).key(NodeInterfaceTraitDefinition.NAME_PROPERTY)).getAsList();
assertEquals("Invalid permission resolution result", true, result.get(0).isGranted(Permission.read, userContext));
assertEquals("Invalid permission resolution re... | Java |
x67 // CEILING
opROUND00 = 0x68 // ROUND value
opROUND01 = 0x69 // .
opROUND10 = 0x6a // .
opROUND11 = 0x6b // .
opNROUND00 = 0x6c // No ROUNDing of value
opNROUND01 = 0x6d // .
opNROUND10 = 0x6e // .
opNROUND11 = 0x6f // .
opWCVTF = 0x70 // Write Control Value Table in Funits
opDELTAP2 = 0x... | Go |
local function tv_dict_get_string_buf_chk(d, key, len, buf, def, emsg)
buf = buf or ffi.gc(lib.xmalloc(lib.NUMBUFLEN), lib.xfree)
def = def or ffi.gc(lib.xstrdup('DEFAULT'), lib.xfree)
len = len or #key
alloc_log:clear()
local ret = check_emsg(function() return lib.tv_d... | Lua |
e
println("a > b = ${a>b}")//mayor que
println("a <= b = ${a <= b}")//menor o igual
println("a >= b = ${a >=b}")//mayor o igual
//Operadores lógicos
var result : Boolean
val greater = b>0
val isEven = b%2 ==0
result= greater && isEven //Y
println("La variable b es par y mayor que 0 ... | Kotlin |
ESE to LanguageFiles(Pair("model.enja.intgemm.alphas.bin", 33052218), Pair("srcvocab.enja.spm", 404352), Pair("trgvocab.enja.spm", 431278), Pair("lex.50.50.enja.s2t.bin", 2341409), ModelType.BASE_MEMORY),
Language.KANNADA to LanguageFiles(Pair("model.enkn.intgemm.alphas.bin", 13009213), Pair("vocab.enkn.spm", 45004... | Kotlin |
# SPDX-License-Identifier: Apache-2.0
# Standard
from urllib.parse import parse_qs, urlparse
# First Party
from lmcache.logging import init_logger
from lmcache.v1.storage_backend.connector import (
ConnectorAdapter,
ConnectorContext,
)
from lmcache.v1.storage_backend.connector.base_connector import RemoteConne... | Python |
}
String importGroupId = groupVo.getGroupId();
if(AnalyzeClientRelatedDataStatus.A.name().equals(analyzeVo.getDataStatus())) {
String dbGroupId = getSeqStoreService().nextTsmpSequence(TsmpSequenceName.SEQ_TSMP_GROUP_PK).toString();
//TsmpGroup
groupVo = ServiceUtil.deepCopy(groupVo, TsmpGroup... | Java |
// return err
// }
// s.log = l
// s.reader = l
// s.writer = l
// return nil
// }
// Close closes the read/write access to the underlying file.
func (s *Segment) Close() error {
s.Lock()
defer s.Unlock()
return s.log.Close()
}
// FindOffsetPosition attempts to find the provided offset position in the
// S... | Go |
ameBytes();
/**
* <pre>
* (optional, disabled if not provided). Path of a live playlist
* </pre>
*
* <code>string live_playlist_name = 11;</code>
*
* @return The livePlaylistName.
*/
java.lang.String getLivePlaylistName();
/**
* <pre>
* (optional, disabled... | Java |
f:
existing = f.read()
for marker_tag in MARKER_TAGS:
if MARKER_IGNORE.format(tag=marker_tag) in existing:
msg.warn(
"Found ignore marker in existing file: skipping", output_file
)
return
... | Python |
how" && details.has("seasons")) {
val seasons = details.optJSONArray("seasons")
if (seasons != null) {
val seasonsEpisodes = StringBuilder()
var firstSeason = true
for (i in 0 until seasons.length()) {
... | Kotlin |
ontent': content,
'ModelCardName': modelCardName,
'ModelCardStatus': modelCardStatus.value,
if (securityConfig != null) 'SecurityConfig': securityConfig,
if (tags != null) 'Tags': tags,
},
);
return CreateModelCardResponse.fromJson(jsonResponse.body);
}
/// Creates an... | Dart |
//
// NSObject+FXAlertView.h
//
//
// Created by ShawnFoo on 10/9/15.
// Copyright © 2015 shawnfoo. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIAlertView.h>
@interface NSObject (FXAlertView) <UIAlertViewDelegate, UIActionSheetDelegate>
/**
* `简单`弹出系统自带 确认窗口(两个按钮:确定和取消)或消息通知窗口(一个按钮... | C |
= decoder.decodeJsonElement()
return element.toAny()
}
private fun JsonElement.toAny(): Any {
when (this) {
is JsonPrimitive -> {
return when {
this.isString -> this.content
this.intOrNull != null -> this.int
... | Kotlin |
ofirzaf
guest: true
- user: echarlaix
- user: imargulis
guest: true
- user: danielkorat
guest: true
- user: jmamou
guest: true
- user: guybd
guest: true
- user: orenpereg
guest: true
- user: moshew
guest: true
- user: Haihao
guest: true
- user: aayasin
guest: true
- user: FanZhao
guest: true
transl... | Markdown |
local Runner = require("tests.indent.common").Runner
local XFAIL = require("tests.indent.common").XFAIL
local run = Runner:new(it, "tests/indent/python", {
tabstop = 4,
shiftwidth = 4,
softtabstop = 0,
expandtab = true,
})
describe("indent Python:", function()
describe("whole file:", function()
run:whol... | Lua |
"""Plotting helpers for sensor modeling."""
from __future__ import annotations
from typing import Dict
import logging
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
logger = logging.getLogger(__name__)
def plot_quantile_intervals(
actual_counts: np.ndarray,
quantile_info: Dict,
... | Python |
t api.request("PROPFIND", endpoint);
}
final namespaces = {
"DAV:": "d",
if (hasOcNs) "http://owncloud.org/ns": "oc",
if (hasNcNs) "http://nextcloud.org/ns": "nc",
};
final builder = XmlBuilder();
builder
..processing("xml", "version=\"1.0\"")
..ele... | Dart |
, 0x35u, 0x39u, 0x5Au, 0x30u, 0x0Eu, 0x31u,
0x0Cu, 0x30u, 0x0Au, 0x06u, 0x03u, 0x55u, 0x04u, 0x03u, 0x13u, 0x03u, 0x55u, 0x32u, 0x46u,
0x30u, 0x59u, 0x30u, 0x13u, 0x06u, 0x07u, 0x2Au, 0x86u, 0x48u, 0xCEu, 0x3Du, 0x02u, 0x01u,
0x06u, 0x08u, 0x2Au, 0x86u, 0x48u, 0xCEu, 0x3Du, 0x03u, 0x01u, 0x07u, 0x03u, 0x42u... | Kotlin |
umColumns(); i++) {
final int fvi = (int) data[i];
if (logFacCache.contains(fvi))
{
sum += logFacCache.get(fvi);
}
else {
for (int j = 1; j < fvi + 1; j++) {
sum += Math.log(j);
}
}
}
return sum;
}
private DenseMatrix tokenize(String text) {
byte[] ords = null;
try {
ord... | Java |
) {
_va := make([]interface{}, len(_a2))
for _i := range _a2 {
_va[_i] = _a2[_i]
}
var _ca []interface{}
_ca = append(_ca, _a0, _a1)
_ca = append(_ca, _va...)
ret := _m.Called(_ca...)
var r0 *dynamodb.ListContributorInsightsOutput
if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ListContributorInsig... | Go |
/*
* mcp3002.c:
* Extend wiringPi with the MCP3002 SPI Analog to Digital convertor
* Copyright (c) 2012-2013 Gordon Henderson
***********************************************************************
* This file is part of wiringPi:
* https://github.com/WiringPi/WiringPi/
*
* wiringPi is free software: you can... | C |
era/som--xpgate
#sticky
#label xp10
.xp 10-3330 >> Grind until you are 3330 xp off level 10 (3170/6500)
>>|cRXP_WARN_Once you reach this xp breakpoint, skip the harpy/escort quest and go straight to Darnassus. You will have another opportunity to finish those quests later|r
step << Hunter
#era/som
... | Lua |
;
// Specifics...
// Local Variables
$call-box-shadow: rgba(26, 34, 77, 0.9);
$svg-size-content: 1rem;
$svg-size: 1.125rem;
// Callout Mass Production
@each $key, $value in callout-map.$pf2e-callouts {
.callout[data-callout='#{$key}'] {
--callout-border-opacity: 0.3;
--callout-color: #{$value};
// Mixi... | CSS |
ntries within a given vma.
*/
err = walk_hugetlb_range(vma, addr, next, walk);
if (err)
break;
pgd = pgd_offset(walk->mm, next);
continue;
}
#endif
if (pgd_none_or_clear_bad(pgd)) {
if (walk->pte_hole)
err = walk->pte_hole(addr, next, walk);
if (err)
break;
pgd++;
continue;
... | C |
SearchHashtagState {
data class Data(
val data: LazyPagingItems<Hashtag>
) : MastodonSearchHashtagState
object NoAccount : MastodonSearchHashtagState
}
/*
* Twidere X
*
* Copyright (C) TwidereProject and Contributors
*
* This file is part of Twidere X.
*
* Twidere X is free software: you can redist... | Kotlin |
(
"gingerbread lawyer:made up tracker:118:unhinged survivor:Monkey Point:119"));
try (cleanups) {
assertFalse(isTracked("gingerbread lawyer"));
assertTrue(isTracked("unhinged survivor"));
}
}
}
@Nested
class Recalculate {
@Test
void recalculate() {
... | Java |
"
}
}
withClue("Foo Fighters have 3 albums, its icon should be the artwork of \"Concrete and Gold\"") {
artists.forOne {
it.name shouldBe "Foo Fighters"
it.iconUri shouldBe "content://media/external/audio/albumart/102"
}
}
... | Kotlin |
to 0.45f,
0.7f to 1f
)
}
val abstractTrianglePath by lazy {
listOf(0f to 1f, 0f to 0.75f, 0.75f to 0f, 1f to 0f, 1f to 1f)
}
val housePath by lazy {
listOf(0f to 1f, 0f to 0.5f, 0.5f to 0f, 1f to 0.5f, 1f to 1f)
}
val diamondPath by lazy {
listOf(0f to 1f, 0f to 0.5f, 0.5f to 0f, 1f to 0f, 1... | Kotlin |
#!/usr/bin/env python
#####################################
# Installation module for FuzzBunch (on Wine)
#####################################
# AUTHOR OF MODULE NAME
AUTHOR="Mike Schladt (@mikeschladt). Tool by Miguel Diaz Lira (mdiazcl)"
# DESCRIPTION OF THE MODULE
DESCRIPTION="This module will install FuzzBunch o... | Python |
},
{
'_id': '48659',
'city': 'STERLING',
'loc': [-84.012567, 44.067837],
'pop': 2855,
'state': 'MI'
},
{
'_id': '48661',
'city': 'WEST BRANCH',
'loc': [-84.228623, 44.279032],
'pop': 7739,
'state': 'MI'
},
{
'_id': '48662',
'city': 'WHEELER',
'loc': [-84.4... | Dart |
'*"]
pub const DISPID_MX_ATTRIBUTES_REMOVEATTRIBUTE: u32 = 1375u32;
#[doc = "*Required features: 'Win32_Data_Xml_MsXml'*"]
pub const DISPID_MX_ATTRIBUTES_SETATTRIBUTE: u32 = 1376u32;
#[doc = "*Required features: 'Win32_Data_Xml_MsXml'*"]
pub const DISPID_MX_ATTRIBUTES_SETATTRIBUTES: u32 = 1377u32;
#[doc = "*Required fe... | Rust |
memo := make(map[string]int)
maxValueMemo := /* solve with memoization */
maxValueTab := /* solve with tabulation */
selectedItems := /* reconstruct solution */
fmt.Printf("Maximum value: %d (memo=%d)\n", maxValueTab, maxValueMemo)
fmt.Printf("Selected items: %v\n", selectedItems)
fmt.Println("\n=== Coin Cha... | Go |
= &slice[..list1.len()] {
return Comparison::Sublist;
}
slice = &slice[1..];
}
} else {
let mut slice = &list1[..];
while slice.len() >= list2.len() {
if list2 == &slice[..list2.len()] {
return Comparison::Superlist;
... | Rust |
-nav{margin:12px 24px 12px 0}.devsite-expand-section-nav::before{content:'menu'}.devsite-nav-index{color:#212121;cursor:pointer;font-weight:400;margin:16px 0;padding:0 0 0 16px}@media screen and (max-width:720px){.devsite-expand-section-nav{display:inline-block;margin:12px 16px 12px 0}}.devsite-page-nav,.devsite-page-n... | CSS |
(o) else 0
}
val inClassesAsByteBuffer : ByteBuffer get() = __vector_as_bytebuffer(10, 8)
fun inClassesInByteBuffer(_bb: ByteBuffer) : ByteBuffer = __vector_in_bytebuffer(_bb, 10, 8)
fun mutateInClasses(j: Int, inClasses: Long) : Boolean {
val o = __offset(10)
return if (o != 0) {
... | Kotlin |
Redirects(false)
.followSslRedirects(false)
.cookieJar(CookieJar.NO_COOKIES) // 设置禁用 Cookie
.connectTimeout(10, TimeUnit.SECONDS) // 设置连接超时为 10 秒
.readTimeout(10, TimeUnit.SECONDS) // 设置读取超时为 10 秒
.writeTimeout(10, TimeUnit.SECONDS) //... | Kotlin |
>,</kbd> (thousands separator). For locales where the thousands
/// separator is a "." (e.g., Brazil), this key may generate a <kbd>.</kbd>.
NumpadComma,
/// <kbd>. Del</kbd>. For locales where the decimal separator is "," (e.g.,
/// Brazil), this key may generate a <kbd>,</kbd>.
NumpadDecimal,
/// <kbd>/</kbd>
... | Rust |
烈的阴影和高光。
#### 💡 光照(Lighting)
- **类型:** 柔和、漫反射光照。
- **光源方向:** 上方稍偏右。
- **阴影风格:** 微妙且漫射,无锐利或高对比度的阴影。
#### 🧱 材质(Materials)
- **表面纹理:** 哑光、平滑的表面,带有微妙的明暗变化。
- **反射性:** 低或无,避免明显的光泽。
#### 🖼️ 构图(Composition)
- **对象呈现:** 单一、居中的物体,周围留出大量负空间。
- **视角:** 轻微倾斜视角,呈现适度的三维感,但无明显的景深效果。
- **背景:** 纯色、低饱和度,与主体协调且不干扰视线。
#### ✒️ 字体排版(... | Markdown |
_lastValues = new float[numberOfChannels];
channelCountChanged();
}
}
/**
* Returns the number of channels this UGen has been configured to generate.
*
* @return int: how many channels of audio this UGen will generate
*/
public int channelCount() { return m_lastValues.length; }
/**
* This method... | Java |
/*
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright © 2020 Keith Packard
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice... | C |
erFacetCombiner(setOf(FacetType.VIEW_NORMAL), "viewNormal", ColorFormat.RGB, ColorType.FLOAT16) {
override fun generateShader(): String = "o_$targetOutput.rgb = normalize( (u_viewNormalMatrix * vec4(f_worldNormal,0.0)).xyz );"
}
class ClipPositionFacet : ColorBufferFacetCombiner(setOf(FacetType.CLIP_POSITION), "po... | Kotlin |
ss960","short":"960"},"speed":"blitz","perf":"chess960","rated":false,"fen":"1k2rb1n/pp4pp/1n3p2/2Npr3/5N2/5PP1/1PPBP2P/q1KRR1Q1 w - - 1 15","turns":28,"source":"lobby","status":{"id":30,"name":"mate"},"createdAt":1686125895867,"initialFen":"nrbkrbqn/pppppppp/8/8/8/8/PPPPPPPP/NRBKRBQN w KQkq - 0 1","winner":"black","pg... | Dart |
range,
leftover,
);
}
int maximumLengthOfBytesUsingEncoding_(int enc) {
return _lib._objc_msgSend_86(
_id,
_lib._sel_maximumLengthOfBytesUsingEncoding_1,
enc,
);
}
int lengthOfBytesUsingEncoding_(int enc) {
return _lib._objc_msgSend_86(
_id,
_lib._sel_length... | Dart |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.