content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
if len(bytes) == 0 && !tt.expectError {
t.Error("expected non-empty bytes output")
}
})
}
}
func BenchmarkEncoderPerformance(b *testing.B) {
encoders := map[string]string{
"influx": config.MetricsFormatInflux,
"json": config.MetricsFormatJson,
"otel": config.MetricsFormatOTel,
}
for name, e... | Go |
rt(!(tllp->t_status & TLL_PEND));
tllp->t_status |= TLL_PEND;
worker_signal(tllp->t_owner);
}
return(OK);
}
void tll_upgrade(tll_t *tllp)
{
/* Upgrade three-level-lock tll from read-serialized to write-only */
assert(self != NULL);
assert(tllp != NULL);
assert(tllp->t_owner == self);
assert(tllp->t_cur... | C |
ispose();
}
late final _disposePtr =
_lookup<ffi.NativeFunction<ffi.Void Function()>>('dispose');
late final _dispose = _disposePtr.asFunction<void Function()>();
@override
bool isInited() {
return _isInited() == 1;
}
late final _isInitedPtr = _lookup<ffi.NativeFunction<ffi.Int Function()>>(
... | Dart |
,230,166,7,153,68,86,188,53,18,73,196,77,76,230,98,81,
39,40,249,28,66,224,86,1,0,128,108,10,146,248,108,47,109,210,125,142,
216,67,72,238,105,110,213,78,43,121,98,154,146,39,198,67,76,228,0,0,
0,240,234,226,39,222,130,160,72,228,20,182,232,216,102,252,67,143,206,78,
236,175,246,243,170,252,249,... | JavaScript |
},
{
"id": "1534",
"name": "Badagavettu",
"state_id": "17"
},
{
"id": "1535",
"name": "Badami",
"state_id": "17"
},
{
"id": "1536",
"name": "Bagalkot",
"state_id": "17"
},
{
"id": "1537",
"name": "Bagepalli",
"state_id": "17"
},
{
"id": "1538",
"name": "Bailhongal",
"state_id": ... | Dart |
ular(3),
),
);
}
import 'package:flutter_app/ui/shopping_cart/model/cartItemListItem.dart';
import 'package:json_annotation/json_annotation.dart';
part 'redeemModel.g.dart';
@JsonSerializable()
class RedeemModel {
List<CartGroupListItem>? cartGroupList;
num? totalPrice;
num? promotionPrice;
... | Dart |
ns2Obj.SetAnnotations(map[string]string{
metadata.ManagementModeAnnotationKey: metadata.ManagementEnabled.String(),
metadata.ResourceIDKey: "_namespace_test-ns2",
metadata.ResourceManagerKey: rootSync2Manager,
})
ns2Obj.SetLabels(map[string]string{
metadata.ApplySetPartOfLabel: rootSyn... | Go |
turn __return__;
}
}
Future<com_amap_api_maps_UiSettings> getUiSettings() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.maps.AMap@$refId::getUiSettings([])');
}
// invoke native method
final __result__ = await MethodChannel('me.yohom/am... | Dart |
expect(mockBackups.getBackupCount()).toBe(0)
expect(mockFn()).toBe('original')
})
it(`should throw when backUp()'s input isn't a mockFn`, () => {
const mockBackups = new MockBackups()
expect(() => mockBackups.backUp(() => '')).toThrow()
})
})
describe('asMockFnSafely', () => {
it(... | Typescript |
MenuItem(
B_TRANSLATE("Other folder" B_UTF8_ELLIPSIS),
new BMessage(kMsgOtherFolder)));
BMenuField* workspaceMenuField = new BMenuField("workspaceMenuField",
NULL, fWorkspaceMenu);
workspaceMenuField->ResizeToPreferred();
rightbox->SetLabel(workspaceMenuField);
fImageMenu = new BPopUpMenu(B_TRANSLATE("pick ... | C++ |
D(tid)]; ok {
return true
}
return false
}()
if !tidInUse {
ns.last = tid
return tid, nil
}
// Did we do a full cycle?
if tid == ns.last {
// No tid available.
return 0, linuxerr.EAGAIN
}
}
}
// Start starts the task goroutine. Start must be called exactly once for each
// task ret... | Go |
).css({left:a+"px",right:s+"px"})}function se(){var e=j(),n=ue.selectedIndex,o=ue.lastSelectedIndex,i=t.element(e.inkBar);t.isNumber(o)&&i.toggleClass("md-left",n<o).toggleClass("md-right",n>o)}function ce(e){var t=j();if(!t.tabs.length||!ue.shouldPaginate)return 0;var n=t.tabs[t.tabs.length-1],o=n.offsetLeft+n.offsetW... | JavaScript |
: 0x888888888,
Logs: make([]*Log, 0),
},
},
{
"receipt-full",
&Receipt{
Status: ReceiptStatusSuccessful,
CumulativeGasUsed: 0x888888888,
Logs: make([]*Log, 0),
},
},
{
"legacy-transaction",
MustSignNewTx(key, signer,
&LegacyTx{
Nonc... | Go |
extends Token {
markupType: TwinemarkupType,
link?: Token[],
title?: Token[],
setter?: TwinescriptToken,
imagePath?: Token[],
}
export enum VariableType {
LOCAL = "_",
GLOBAL = "$",
}
export type VariableNamePartToken = TwinescriptToken | ContentToken;
export interface VariableToken extends Token {
var... | Typescript |
name="tinycoder_1M",
block_size=2048,
vocab_size=49152,
padding_multiple=64,
n_layer=2,
n_head=8,
n_embd=256,
rotary_percentage=1.0,
parallel_residual=False,
bias=False,
_norm_class="FusedRMSNorm",
norm_eps=1e-5,
_mlp_class=... | Python |
w: u16,
h: u16,
}
/// CRT Controller attributes (signal format)
struct CrtcAttrs
{
frequency: u16,
h_front_porch: u16,
h_active: u16,
h_back_porch: u16,
h_sync_len: u16,
v_front_porch: u16,
v_active: u16,
v_back_porch: u16,
v_sync_len: u16,
}
static S_VGA_PCI_DRIVER: VgaPciDriver = VgaPciDriver;
static S... | Rust |
point. The search stops when it hits a leaf.
*
* @param point (Input) Point which is being searched for
* @param path (Output) All the nodes which contain point. Order will be from general to specific.
*/
public void findPathToPoint(P point, List<Octree> path) {
Octree node = this;
// see if it is ins... | Java |
l) as LinkWithMedia[];
// if there have values from fallback/default locales, we need to
// provide user a warning so we show him modal
if (otherLocales.length > 0) {
const fallbackAssets = linksWithMeta
// we don't want to warn about normally localized files
.filter(({ isLocalized }) => !isLocal... | Typescript |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright Huawei Technologies Co., Ltd. 2022-2022. All rights reserved.
from . import accelerate_api, math_api, numpy_api, sklearn_api, torchmetrics_ops, utils, thop_api
| Python |
font-size: 12px;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: normal;
}
div.sharedaddy a.sd-button:hover {
color: #000;
text-shadow: 0 1px 0 #fff;
border-color: #ccc;
background: #eee;
background: -moz-linear-gradient(top, #efefef 0%, #eee 100%);
background: -webkit-gradient(linea... | CSS |
<MyAbout>>,i32)>> = RefCell::new(None)
);
pub(crate) fn init(builder: GtkBuilder) {
let my_about = Rc::new(RefCell::new(MyAbout::new(builder)));
UI_AB_DLG_GLOBAL.with(move |global| {
*global.borrow_mut() = Some((my_about, 0));
});
}
pub(crate) struct MyAbout {
ab: gtk::AboutDialog,
}
impl MyAb... | Rust |
with com:
logger.info("getting growth rates for %s knockout." % sp)
[
r.knock_out()
for r in com.reactions.query(lambda ri: ri.community_id == sp)
]
sol = optimize_with_fraction(com, fraction)
... | Python |
get_current_type() == GLGizmosManager::EType::Cut ||
get_current_type() == GLGizmosManager::EType::MeshBoolean ||
get_current_type() == GLGizmosManager::EType::Text ||
is_paint_gizmo() ||
get_current_type() == GLGizmosManager::EType::Simplify
) {
return true;
}
re... | C++ |
/1,ss/1. When degrees and
* minutes are used and, for example, fractions of minutes are ven up to
* two decimal places, the format would be ddd/1,mmmm/100,0/1.
* <p>
* Type: Unsigned rational.
*/
int GPS_DEST_LONGITUDE = 0x0016;
/**
* Indicates whether the longitude of the de... | Java |
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "EditorStyleSet.h"
#include "Framework/Commands/Commands.h"
/**
* Foliage Mode Palette Actions
*/
class FFoliagePaletteCommands : public TCommands < FFoliagePaletteCommands >
{
public:
FFoliagePaletteCommand... | C |
9A%E5%A5%BD%E8%81%8C%E5%9C%BA%E4%B8%AD%E7%9A%84%E5%90%91%E4%B8%8A%E7%AE%A1%E7%90%86%23)
- 你们了解什么是向上管理吗?向上管理也就是向上管理你的领导,可以来讨论一下你们所知道的干活~
- 2897讨论 497.7万阅读
1. [#为何英国要否认俄军曾向英舰开火示警#](https://s.weibo.com/weibo?q=%23%E4%B8%BA%E4%BD%95%E8%8B%B1%E5%9B%BD%E8%A6%81%E5%90%A6%E8%AE%A4%E4%BF%84%E5%86%9B%E6%9B%BE%E5%90%91%E8... | Markdown |
get('.active');
if (currItem.length == 0) { // no item is active so return the last item
var allItems = $(that.overlay.container).get('li');
var lastItem = allItems[allItems.length-1];
activateItem(that, lastItem);
}
else {
var prevItem = currItem.prev();
if (prevItem && !prevItem.... | JavaScript |
야수를 소환해제해야 합니다.";
SPELL_FAILED_ALREADY_HAVE_SUMMON = "이미 소환된 생물을 부리고 있습니다.";
SPELL_FAILED_ALREADY_OPEN = "이미 열려 있습니다.";
SPELL_FAILED_APPRENTICE_RIDING_REQUIREMENT = "최소 요구 레벨: %d";
SPELL_FAILED_AP_ITEM_FROM_PREVIOUS_TIER = "유물이 너무 강력해서 해당 아이템을 사용할 수 없습니다.";
SPELL_FAILED_AREA_TRIGGER_CREATION = "Spell Failed to create a... | Lua |
arget namespace for the application's resources.
<a id="nestedblock--spec--namespace_resource_blacklist"></a>
### Nested Schema for `spec.namespace_resource_blacklist`
Optional:
- `group` (String) The Kubernetes resource Group to match for.
- `kind` (String) The Kubernetes resource Kind to match for.
<a id="neste... | Markdown |
="https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glScale.xml">glScale man page</a>
*/
fun scale(m: Mat4d, v: Vec3d, res: Mat4d): Mat4d =
scale(m, v.x, v.y, v.z, res)
/** Builds a scale 4 * 4 matrix created from 3 scalars.
*
* @param m Input matrix multiplied by this sc... | Kotlin |
--download {
height: 21px;
width: 18px;
}
span.icon--download {
background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTIiIGhlaWdodD0iMTQiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNNS4zODMgOS4xOFYuNDc1YzAtLjUwN... | CSS |
them same as .gitmodules
}
fun resolveSubmodule(repo:Repository, name: String):Submodule? {
return try {
Submodule.lookup(repo, name)
}catch (e:Exception) {
MyLog.e(TAG, "#resolveSubmodule err: name=$name, err=${e.localizedMessage}")
... | Kotlin |
_d, RoleD, 3 |
send_mpst_b_to_e, RoleE, 4 |
send_mpst_b_to_f, RoleF, 5 |
send_mpst_b_to_g, RoleG, 6 |
send_mpst_b_to_h, RoleH, 7 |
send_mpst_b_to_i, RoleI, 8 |
send_mpst_b_to_j, RoleJ, 9 |
send_mpst_b_to_k, RoleK, 10 |
send_mpst_b_to_l, RoleL, 11 |
send_mpst_b_to_m, RoleM, 12 |
s... | Rust |
ui: {
color: '#333',
tags: ['simple', 'clean'],
},
updatedAt: 1234567890,
},
ratio: 0.4,
retries: 1,
settings: {
firstName: 'John',
lastName: 'Doe',
age: 32,
achievements: ['free-gift'],
},
status: 'done',
version: '1.1',
};
describe('canHaveLength', () => {
it('... | Typescript |
c PTSF creation and signalling of destruction when the
// ScopedTaskSafety instance goes out of scope.
//
// Example usage:
//
// my_task_queue->PostTask(SafeTask(scoped_task_safety.flag(),
// [this] {
// // task goes here
// }
//
// This should be used by the class that wants tasks droppe... | C |
sResponse.databases:type_name -> mockgcp.cloud.alloydb.v1beta.Database
1, // 58: mockgcp.cloud.alloydb.v1beta.UpgradeClusterResponse.StageInfo.stage:type_name -> mockgcp.cloud.alloydb.v1beta.UpgradeClusterResponse.Stage
0, // 59: mockgcp.cloud.alloydb.v1beta.UpgradeClusterResponse.StageInfo.status:type_name -> mo... | Go |
ELOG](https://github.com/hashicorp/packer-plugin-docker/releases/tag/v1.0.5)
* googlecompute@v1.0.13 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-googlecompute/releases/tag/v1.0.13)
* hcloud@v1.0.4 - [CHANGELOG](https://github.com/hashicorp/packer-plugin-hcloud/releases/tag/v1.0.4)
* hyperone@v1.0.1 - [CHAN... | Markdown |
11.3 72-72L510.6 336z"],glass:[384,512,[129371],"f804","M74.2 128l-5-64 245.6 0-5 64L74.2 128zM40 512l304 0L379 64l5-64L319.8 0 64.2 0 0 0 5 64 40 512z"],loader:[512,512,[],"e1d4","M288 32l0-32L224 0l0 32 0 64 0 32 64 0 0-32 0-64zm0 384l0-32-64 0 0 32 0 64 0 32 64 0 0-32 0-64zM0 224l0 64 32 0 64 0 32 0 0-64-32 0-64 0L0... | JavaScript |
.Manifest
import android.annotation.SuppressLint
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.database.Cursor
import android.graphics.Typeface
import android.os.Build
import android.os.Bundle
import android.provi... | Kotlin |
2014, 12, 31).weekYear, 2015);
expect(DateTime(2017, 5, 25).weekNumber, 21);
for (var year = 1950; year <= 2050; year++) {
for (var day = 1; ; day++) {
final date = DateTime(year, 1, day);
if (date.year != year) break;
final weekYear = date.weekYear;
... | Dart |
ave(&self.memory);
self.allocator.deallocate(source_address);
lower
}
fn allocate_node(&mut self, node_type: NodeType) -> Node {
Node {
address: self.allocator.allocate(),
entries: vec![],
children: vec![],
node_type,
max_key_... | Rust |
73: aload_3
// 74: astore_1
// 75: aload_2
// 76: ifnull +7 -> 83
// 79: aload_2
// 80: invokevirtual 235 java/io/OutputStream:close ()V
// 83: aload_1
// 84: athrow
// 85: astore_1
// 86: return
// 87: astore_2
// 88: goto -5 -> 83
// 91: astor... | Java |
lau",
"en": "Tokelau",
"pt_BR": "Tokelau",
"sr-Cyrl": "Токелау",
"sr-Latn": "Tokelau",
"zh_TW": "托克勞",
"tr": "Tokelau",
"ro": "Tokelau",
"ar": "توكيلاو",
"fa": "توکلائو",
"yue": "托克劳",
"el": "Τοκελάου",
}
},
{
"n... | Dart |
(public payload: string) { }
}
export class ClearResult implements Action {
readonly type = ResultActionTypes.ClearResult;
}
export type ResultActions = UpdateResult | ClearResult;
interface IFilterByItem {
name: string;
subItems: Array<SubItem>;
}
export class SubItem {
public label: string;
publi... | Typescript |
import os, json, requests
def execute(question: str, parameter):
repo_name = run_git_workflow(parameter["email"])
return repo_name
def run_git_workflow(email):
# GitHub repository details
GITHUB_OWNER = "23f2004837" # Replace with your GitHub username/org
GITHUB_REPO = "daily-commit" ... | Python |
multiple_languages() {
let mut ctx = Context::new();
ctx.init(InitOptions::new().expand_address())
.unwrap();
let mut opts = ExpandAddressOptions::new();
opts.set_languages(vec!["es", "fr"].as_slice());
let expansions = ctx
.expand_address("Thirty W 26th St Fl... | Rust |
two_digit(i);
for (uint8_t j = 0; j <= *section_size; ++j)
{
progress(static_cast<uint64_t>(i - begin) * 99 + j);
auto file = *corpus + "_" + folder + two_digit(j) + ".pos";
auto filename = path + "/" + folder + "/" + file;
auto se... | C++ |
: brightness(90%);
}
}
.o-livechat-LivechatButton-notification {
transform-origin: 100% 100%;
bottom: 2.5em;
right: 4.5em;
}
.o-livechat-LivechatButton-animate {
animation: o-livechat-LivechatButton-notification-animation 0.6s ease-in-out forwards;
}
@keyframes o-livechat-LivechatButton-notificat... | CSS |
/win32/controls/bumper-rebar-control-reference-messages)
/// (`u32`), convertible to [`WM`](crate::co::WM).
->
DELETEBAND, WM::USER.0 + 2
GETBARINFO, WM::USER.0 + 3
SETBARINFO, WM::USER.0 + 4
SETPARENT, WM::USER.0 + 7
HITTEST, WM::USER.0 + 8
GETRECT, WM::USER.0 + 9
INSERTBAND, WM::USER.0 + 10
SETBAN... | Rust |
lk')).default;
const ora = (await inclusion('ora')).default;
const spinner = ora('Linting all styles...');
spinner.start();
const fix = process.argv.indexOf('--fix') !== -1;
const results = await stylelint.lint({
files: ['**/*.scss', '**/*.css'],
fix,
formatter: 'string'
});
spinner.stop();... | Typescript |
1);
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(121, 85, 72, 0.1); }
.switch label input[type=checkbox]:checked + .lever.switch-col-brown {
background-color: rgba(121, 85, 72, 0.5); }
.switch label input[type=checkbox]:checked + .lever.switch-col-brown:after {
background-color: #79... | CSS |
n()if c2.Visible then c2.Visible=false;return end;for c3,b in pairs(c0)do b.Visible=b==c2 end end)end;bY.MouseButton1Down:connect(function()bX.Visible=false;aa.Visible=true end)aK.MouseButton1Down:connect(function()aa.Visible=false;bX.Visible=true end)bZ.MouseButton1Down:connect(function()b_:destroy()end)local c4=setme... | Lua |
エラーがさらにもっと伝播するのを防ぐために、`false` を返すことができます。
<p class="tip">このフックでコンポーネントの状態を変更できます。ただし、エラーが捕捉されたときに他のコンテンツを手短に迂回させる、テンプレートにおける条件または描画関数を含めるのが重要です。それ以外の場合、コンポーネントは無限描画ループに投げられます。</p>
**エラー伝播ルール**
- 標準で、これらのエラーは 1 箇所で分析サービスにレポートすることができるため、全てのエラーはグローバルな `config.errorHandler` (それが定義されている場合)に送信されます。
- 複数の `errorCa... | Markdown |
Url("https://stripe.com")).isTrue()
}
@Test
fun `isStripeUrl supports subdomains`() {
assertThat(StripeUrlUtils.isStripeUrl("https://api.stripe.com")).isTrue()
}
@Test
fun `isStripeUrl supports paths`() {
assertThat(StripeUrlUtils.isStripeUrl("https://hooks.stripe.com/redirect/... | Kotlin |
gOC45ODM3Mzc1IDAgOC41ODU5Mzc1IDAgTCAzLjUgMCB6IE0gOSAxLjIwNzAzMTIgTCAxMi43OTI5NjkgNSBMIDkuNSA1IEMgOS4yMjM5IDUgOSA0Ljc3NjE0IDkgNC41IEwgOSAxLjIwNzAzMTIgeiBNIDQgNiBDIDEuNzkwODYgNiAwIDcuNzkwODYgMCAxMCBDIDAgMTIuMjA5MSAxLjc5MDg2IDE0IDQgMTQgQyA0LjkyNDMyIDE0IDUuNzc1Nzk1IDEzLjY4NjY1NiA2LjQ1MzEyNSAxMy4xNjAxNTYgTCA5LjE0NDUzMTIgMTU... | CSS |
Type: typ,
Required: false,
Length: length,
Unique: checkUnique,
},
)
resource.Types = []*model.ResourceSubType{
{
Name: "SampleResource",
Properties: []*model.ResourceProperty{
{
Name: "field-1",
Required: true,
Type: model.ResourceProperty_STRING,
... | Go |
n chunks[-1]+='-'\n \n for k in range(len(chunks)-1,0,-1):\n if chunks[k -1][-1]>chunks[k][0]:\n chunks[k -1]=chunks[k -1][:-1]+chunks[k][1:]\n del chunks[k]\n \n \n stuff='-'.join(s.replace('\\\\',r'\\\\').replace('-',r'\\-')\n for s in chunks)\n \n stuff=re.su... | JavaScript |
k as rate = 0
self.assertEqual(len(g2), 2)
def test_shrink3(self):
g1 = np.array([[1.0]])
g2 = genome.Genome.shrink_mutate(g1, rate=1.0)
# should not shrink if already len 1
self.assertEqual(len(g2), 1)
def test_grow1(self):
g1 = np.array([[1.0], [2.0]])
... | Python |
d(textField);
textField.focusWithoutScroll();
style = domWindow.getComputedStyle(
domManager.rootElement.querySelector('input.flt-text-editing')!,
'::placeholder');
expect(style, isNotNull);
expect(style.opacity, '0');
domManager.rootElement.remove();
// For so... | Dart |
tion) any later version.
*
* Non-free licenses may also be purchased from INFORION, LLC,
* for users who do not want their programs protected by the GPL.
* Contact us for details kopycat@inforion.ru
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the i... | Kotlin |
"6")]
FaqAnswer(super::FaqAnswer),
}
}
/// Represents feedback the customer has about the quality & correctness of a
/// certain answer in a conversation.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AnswerFeedback {
/// The correctness level of the specific answer.
#[prost(enumeration ... | Rust |
especially useful for strings).
// E.g. when code matches a read in identifier against a set of known identifiers.
// For the record, it looks as follows. However, it is tricky to distinguish
// from slice/array index and map assignments...
//. . . . . . . *ast.IndexExpr {
//. . . . . . . . X: *ast.... | Go |
, state) => write!(f, "[Addr {:04X}] --> ReportState [{:?}]", address, state)?,
Message::RequestOperation(address, op) => write!(f, "[Addr {:04X}] <-- RequestOperation [{:?}]", address, op)?,
Message::AckOperation(address, op) => write!(f, "[Addr {:04X}] --> AckOperation [{:?}]", address, op)?,... | Rust |
list_trending_videos)),
)
.service(
web::scope("/api/a/creator")
.route("/follow", web::get().to(u::is_following))
.route("/follow", web::post().to(u::follow))
.route("/unfollow", web::post().to(u::unfollow))
.route("/profile", web::post().to(u::update_pro... | Rust |
d(planet)
}
}
}
removeAllViews()
val inflater = context.getSystemService(Context.LAYOUT_INFLATER_SERVICE) as LayoutInflater
val myEmpire = EmpireManager.getMyEmpire()
val empires = HashSet<Long>()
for (fleet in fleets!!) {
val empireId = fleet.empire_id
if (empireId == ... | Kotlin |
elEnUs = EntityUtils.getValueProp(labels, LanguageCode.EN_US);
if (Object.prototype.hasOwnProperty.call(labels, languageCode) && labelLanguageCode) {
return labelLanguageCode;
} else if (Object.prototype.hasOwnProperty.call(labels, LanguageCode.JA_JP) && labelJaJp) {
return labelJaJp... | Typescript |
requestBody: false,
responseBody: true,
requestHeader: false,
responseHeader: false,
error: true,
logPrint: (obj) => _debugLog('[LIGHTNING_ADDRESS_SERVICE] $obj'),
));
}
/// Resolves a Lightning Address (user@domain.com) to LNURL-pay metadata
///
/// [lightningAddress] - Li... | Dart |
/******************************************************************************
* Copyright 2017 The Apollo Authors. All Rights Reserved.
*
* 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
... | C |
AGEM~1.%d-Q\\VISUA~1\\BIN\\convert.exe",k);
if ((file=std::fopen(st_path,"r"))!=0) { cimg::fclose(file); path_found = true; }
}
for (int k = 32; k>=0 && !path_found; --k) {
cimg_snprintf(st_path,sizeof(st_path),"D:\\IMAGEM~1.%d\\VISUA~1\\BIN\\convert.exe",k);
if ((file=std:... | C++ |
BITLOCKER_FIRST_LENGTH)
{
//16 int
h_pswSize[index]=1;
((h_pswI)+(index*BITLOCKER_PSW_INT_SIZE)+14)[0] = 0;
((h_pswI)+(index*BITLOCKER_PSW_INT_SIZE)+15)[0] = ((int)(((size*2) << 3) >> 8)) << 8 | ((int)((size*2) << 3));
}
else
{
//32 int
h_pswSize[index]=2;
((h_pswI)+(index*BITLOCKER_PSW_IN... | C |
rect triangle bezier bezierDetail bezierPoint bezierTangent curve curveDetail curvePoint curveTangent curveTightness shape shapeMode beginContour beginShape bezierVertex curveVertex endContour endShape quadraticVertex vertex ellipseMode noSmooth rectMode smooth strokeCap strokeJoin strokeWeight mouseClicked mouseDragg... | JavaScript |
weights_lut.iter()) {
(decode(weight))" "
}
</float_array>;
<technique_common>;
<accessor source=["#controller-weights-array"] count=[(weights_lut.len())]>;
<param name=["WEIGHT"] type=["float"]/>;
/accessor>;
... | Rust |
ack = isst_if_mbox_proc_cmd;
cb.owner = THIS_MODULE;
ret = isst_if_cdev_register(ISST_IF_DEV_MBOX, &cb);
if (ret)
return ret;
ret = register_pm_notifier(&isst_pm_nb);
if (ret)
isst_if_cdev_unregister(ISST_IF_DEV_MBOX);
return ret;
}
module_init(isst_if_mbox_init)
static void __exit isst_if_mbox_exit(void)
... | C |
area_life = 60,
area_name = "DMG-C-HULL-AW-AFT-MIDSHIPS-STBD"
}, {
area_arg = 85,
area_fire = {
pos = { -14.3, -6.45, 1.3 },
size = 1.5
},
area_life = 60,
area_name = "DMG-C-HULL-AW-AFT-MIDSHIPS-PORT"
}, {
area_arg = 86,
area_fire = {
pos = { -24.3, 0, 6.15 },
size = 1.5
... | Lua |
ng>): WebForm =
copy(fields = fields + (kv.first to fields.getOrDefault(kv.first, emptyList()).plus(kv.second)))
operator fun minus(name: String): WebForm = copy(fields = fields.filterKeys { it != name })
}
/**
* Convenience function to write the WebForm to the message body and set the content type.
*/
... | Kotlin |
&*right_val,
::core::option::Option::None,
);
}
}
}
};
{
match (
&<String as crate::FromSource>::from_source(&mut source),
&Some(String::from("try")),
) {
(left_val, rig... | Rust |
dot + self [i] * b [i]
end
return dot
end
function self:Length ()
return math.sqrt (self:LengthSquared ())
end
function self:LengthSquared ()
local lengthSquared = 0
for i = 1, self:GetElementCount () do
lengthSquared = lengthSquared + self [i] * self [i]
end
return lengthSquared
end
function self:Neg... | Lua |
Group.md)
---
external help file: TeamViewerPS-help.xml
Module Name: TeamViewerPS
online version: https://github.com/teamviewer/TeamViewerPS/blob/main/Docs/Help/Get-TeamViewerUserGroupByRole.md
schema: 2.0.0
---
# Get-TeamViewerUserGroupByRole
## SYNOPSIS
Lists all user group assignments of a user role.
## SYNTAX
... | Markdown |
me: '',
signingCertHashes: [validHash],
),
throwsA(isA<ConfigurationException>()),
);
});
test('Should encode TalsecConfig to String', () {
// Arrange
const expectedString =
'{"androidConfig":{"packageName":"com.aheaditec.freeraspExample","signingCertHashes... | Dart |
top: 0;
left: 0;
overflow: hidden;
}
#printContainer canvas {
display: block;
}
}
.visibleLargeView,
.visibleMediumView,
.visibleSmallView {
display: none;
}
@media all and (max-width: 960px) {
html[dir='ltr'] #outerContainer.sidebarMoving .outerCenter,
html[dir='ltr'] #outerContainer.side... | CSS |
var (
id = "Test"
testVar = "test"
specID = "22"
shards = 2
zone = "1"
timeStamp = time.Now()
)
tests := []struct {
name string
args *atlasClustersPinned.AdvancedClusterDescription
want *atlasClustersPinned.AdvancedClusterDescription
}{
{
name: "One AdvancedReplicationSpec"... | Go |
NSET {}
#[doc = "Enable event routing"]
pub mod evtenset;
#[doc = "Disable event routing\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::... | Rust |
onst]") {
auto c = chunked(Vec{}, 1);
const auto& cc = c;
(void)(std::begin(c) == std::end(cc));
}
TEST_CASE("chunked: len(iterable) % groupsize != 0", "[chunked]") {
Vec ns = {1, 2, 3, 4, 5, 6, 7};
ResVec results;
for (auto&& g : chunked(ns, 3)) {
results.emplace_back(std::begin(g), std::end(g));
}
... | C++ |
tDetailState(
val id: String = "",
val name: TextFieldValue = TextFieldValue(""),
val accountTypeItems: List<AccountTypeItem> = listOf(),
val totalAmount: TextFieldValue = TextFieldValue(text = ZERO_AMOUNT),
val currency: Currency = Currency.DEFAULT,
val shouldShowDuplicateNameError: Boolean = f... | Kotlin |
Error())
ssl->useStates().UseConnect() = FINISHED_DONE;
case FINISHED_DONE :
if (!ssl->getSecurity().get_resuming())
while (ssl->getStates().getClient() < serverFinishedComplete) {
if (ssl->GetError()) break;
processReply(*ssl);
}
... | C++ |
x_replace = x_rec.clone().detach()
elif self.fft_unmask_replace == 'mean':
x_replace = x.mean(dim=[2, 3], keepdim=True).expand(x.size())
elif self.fft_unmask_replace == 'mixed':
x_replace = 0.5 * x_rec.clone().detach() + 0.5 * x.c... | Python |
005FEC1F2A248F96A16E9553BF38D0AEE1648FFA036655CE29C2E229AE"
)
testKat(
{ digest() },
"The quick brown fox jumps over the lazy cog",
"EBDC1C8DCD54DEB47EEEFC33CA0809AD23CD9FFC0B5254BE0FDABB713477F2BD"
)
}
@Test
fun testRadioGatun32() {
test... | Kotlin |
_eq!(
blocker_mask_rook(7.into()),
bitboard!(1, 2, 3, 4, 5, 6, 15, 23, 31, 39, 47, 55)
);
assert_eq!(
blocker_mask_rook(9.into()),
bitboard!(10, 11, 12, 13, 14, 17, 25, 33, 41, 49)
);
assert_eq!(
blocker_mask_rook(16.into()),
... | Rust |
ormal infinite;
animation-duration: 5s;
animation-delay: 1s
}
@keyframes dash {
0% {
stroke-dashoffset: 1812
}
80% {
stroke-dashoffset: -250
}
100% {
stroke-dashoffset: -250
}
}
.msp-plugin .pdbemolstar-state-gallery-controls {
overflow-x: hidden;
word... | CSS |
turn _windowSlot;
}
protected abstract int inventorySlotToWindowSlot(int inventorySlot);
protected abstract int windowSlotToInventorySlot(int windowSlot);
protected abstract String getName();
@Override
public String toString() {
return getName() + (_isInventory ? "InventorySlot" : "S... | Java |
ress, 2016','Boris_Pasternak']);
db.run("INSERT INTO booksName VALUES (?,?)", ['Anna Pasternak, Lara: The Untold Love Story and the Inspiration for Doctor Zhivago, Ecco, 2017; ISBN 978-0062439345.','Boris_Pasternak']);
db.run("INSERT INTO booksName VALUES (?,?)", ['Doctor Zhivago (1965 film)','... | Typescript |
D%22shadowBlurOuter1%22%2F%3E%3CfeComposite%20in%3D%22shadowBlurOuter1%22%20in2%3D%22SourceAlpha%22%20operator%3D%22out%22%20result%3D%22shadowBlurOuter1%22%2F%3E%3CfeColorMatrix%20values%3D%220%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.5%200%22%20in%3D%22shadowBlurOuter1%22%20result%3D%22... | CSS |
from django.db import models
from django.contrib.auth import get_user_model
User = get_user_model()
class Medication(models.Model):
name = models.CharField(max_length=255)
times_per_day = (
models.PositiveIntegerField()
)
dose = models.CharField(max_length=255)
user = models.ForeignKey(Use... | Python |
Content();
/**
* Return true if this link is linkable and false if we can't link to the
* desired place.
*
* @return true if this link is linkable and false if we can't link to the
* desired place.
*/
public abstract boolean isLinkable();
/**
* Return the label for this ... | Java |
mujeres') {
if (window.innerWidth <= 830){
this.images.banner = 'assets/img/BannerMujeresMovil.png';
}else{
this.images.banner = 'assets/img/BannerMujeres.png';
}
this.menu[4] = 'Crop Tops';
this.images.image1 = 'assets/img/camisetasMujer.png';
this.im... | Typescript |
: 0px;
left : 0px;
overflow : visible;
margin-bottom : -1px;
width : 100%;
z-index: 2; /* so the bottom of the tab label will cover up the border of dojoTabPaneWrapper */
}
.dojoTabNoLayout.dojoTabLabels-top {
position : relative;
}
.dojoTabNoLayout.dojoTabLabels-top .dojoTab {
margin-bottom: -1px;
_margin-b... | CSS |
ect
individual line from the start script, or run the full start script.
6. Re-run the gateway query- it should be successful
Check the monitor for changes when killing and restarting processes.
### Load Balancing
New processes can be dynamically added and they will register with the
gateway which will start r... | Markdown |
ec3f c1(PRIVATE(this)->c);
SbPlane plane1(a1, b1, c1);
SbVec3f a2(PRIVATE(&t)->a);
SbVec3f b2(PRIVATE(&t)->b);
SbVec3f c2(PRIVATE(&t)->c);
SbPlane plane2(a2, b2, c2);
// FIXME: can ((n1 == -n2) && (d1 == -d2)) really happen?
if (SBTRI_DEBUG &&
(plane1.getNormal() == -plane2.getNormal()) &&
... | C++ |
erry), 0.8 (iPhone), 0.8 (iPad), 1.8 (Mobile Web), 3.1 (Tizen)
*/
setZIndex:function(zIndex) {
},
/**
* <p>Makes this view visible.</p>
* @since 0.8 (Android), 3.1.2 (BlackBerry), 0.8 (iPhone), 0.8 (iPad), 1.8 (Mobile Web), 3.1 (Tizen)
*/
show:function() {
},
/**
* <p>... | JavaScript |
g(paramBoolean);
}
@ReactProp(name = "overflow")
public void setOverflow(ReactViewGroup paramReactViewGroup, String paramString) {
paramReactViewGroup.setOverflow(paramString);
}
@ReactProp(name = "pointerEvents")
public void setPointerEvents(ReactViewGroup paramReactViewGroup, String paramString)... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.