content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
PARAMETER VARS THAT MAY BE SET
void ResetParams(RDObject *ref,int mode)
{
int loop;
if (mode == FLOATDEFS)
{
for (loop=0;loop<ref->floatparammax;loop++)
{
ref->floatparams[loop].value.fval = ref->floatparams[loop].def.fval;
ref->Internalfloatparams[loop].value.fval = ref->floatparams[loop].def.fval;
... | C++ |
ament, TournyBracketGumpType.Match_Info, null, 0, level.Matches[index-1] ) );
}
break;
}
case 6:
{
if ( m_Type != TournyBracketGumpType.Match_Info )
break;
TournyMatch match = m_Object as TournyMatch;
if ( match != null && index >= 0 && index < match.Participants.Count )
... | C# |
}
}
AnyBalance.setResult(result);
}
/**
Провайдер AnyBalance (http://any-balance-providers.googlecode.com)
*/
var g_headers = {
'Accept':'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'Accept-Charset':'utf-8, iso-8859-1, utf-16, *;q=0.7',
'Accept-Language':'ru-RU, en-US',
'Connection':'k... | JavaScript |
from("9999999999999999999999999")).unwrap(),
u64::MAX,
Some(ERR_DATA_OUT_OF_RANGE),
),
(
Json::from_f64(2f64 * (u64::MAX as f64)).unwrap(),
u64::MAX,
Some(ERR_DATA_OUT_OF_RANGE),
),
];
fo... | Rust |
}
}
else
{
if(mIsConnected)
{
StartBuffer();
LoggerService.Service.Info("MarApi", "Login " + mData.ServerIp + " failed!");
mIsCo... | C# |
S) {
System.out.println("Authentication Failed");
} else {
System.out.println("Authentication is successful.");
SSOToken token = ac.getSSOToken();
String userDN = token.getPrincipal().getName();
System.out.println("User Name: " + userDN);
try {
AM... | Java |
bl FSP_SetRef
b .L1075
.L1095:
mov r1, r7
mov r0, r4
bl HEVC_SetFrmRepeatCount.part.3
b .L1082
.L1096:
ldr r2, .L1097
mov r0, #1
ldr r1, .L1097+8
bl dprint_vfmw
ldr r3, .L1097+12
ldr ip, [r3]
cmp ip, #0
beq .L1077
mov r3, r8
mov r2, r8
mov r1, #111
ldr r0, [r4, #244]
blx ip
.L1077:
ldr r2, [r7, #16... | Assembly |
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
namespace Trace... | C |
tch &cap[1] {
"hlf" => Op::Hlf(reg),
"tpl" => Op::Tpl(reg),
"inc" => Op::Inc(reg),
_ => panic!()
}
} else if let Some(cap) = jmp_re.captures(line) {
let offset = cap[1].parse().unwrap();
... | Rust |
ration decl;
if ( decl.parse( cvalue8, false, node->getDocument() ) ) {
decl.apply( style );
}
}
}
break;
case cr_apply_func_css_font_size_from_size_attribute:
if ( node && node->hasAttribute(attr_size) ) {
// As spe... | C++ |
(new Object[] {11.0,11.0, 6.0,7.0,7.0,3.0, 0.0,0.0,1.0,0.0}, "c1"));
trainingData.add(Datasets.<Object>newDataVector(new Object[] {12.0,12.0, 10.0,16.0,4.0,6.0, 0.0,0.0,0.0,2.0}, "c1"));
trainingData.add(Datasets.<Object>newDataVector(new Object[] {10.0,13.0, 5.0,6.0,5.0,4.0, 0.0,0.0,0.0,0.0}, "c1"));
... | Java |
Word, result[0]);
}
private void callMain(Class kl) {
try {
kl = ReflectionUtils.newInstanceOfClass(kl);
String[] t = null;
String x[] = new String[0];
Method m = ReflectionUtils.requireMethod(kl, "main", x.getClass());
ReflectionUtils.invokeM... | Java |
, ∞)}, {[95, ∞), (NULL, 72), [22, 22], [28, 28]}, {[95, ∞), (72, ∞), [22, 22], [28, 28]}]\n" +
" └─ columns: [pk v1 v2 v3 v4]\n" +
"",
},
{
Query: `SELECT * FROM comp_index_t2 WHERE ((v1=95 AND v2<1 AND v3 BETWEEN 49 AND 61 AND v4=51) OR (v1>29 AND v2>=9 AND v3>=63 AND v4<=88));`,
ExpectedPlan: "IndexedTabl... | Go |
nstages; l++) {
if (l == 0) { // first stage
stage_wghts[l].sbeta = 0.0;
} else if (l == nstages-1) { // last stage
stage_wghts[l].sbeta = 0.5;
stage_wghts[l-1].ebeta = stage_wghts[l].sbeta;
stage_wghts[l].ebeta = 1.0;
} else {
st... | C++ |
KE256XofUnitTest() {
private val digest = SHAKEDigest(256)
override val xof: Updatable = object : Updatable {
override fun update(input: Byte) { digest.update(input) }
override fun update(input: ByteArray) { digest.update(input, 0, input.size) }
override fun update(input: ByteArray, offs... | Kotlin |
{
display: block;
}
.preview-body .element-footer {
display: none;
}
.edit-mode .element-footer {
display: none;
}
.edit-mode .refresh-time-indicator {
display: none;
}
.dashboard-cell.hidden, .dashboard-row.hidden {
display: none;
}
.edit-mode .dashboard-cell.hidden, .edit-mode .dashboard-row.hidden {
... | CSS |
asResolverEntryPoint.Params>()
private val presenter = presenterFactory.create(
inputs.roomAlias
)
private fun onAliasResolved(data: ResolvedRoomAlias) {
plugins<RoomAliasResolverEntryPoint.Callback>().forEach { it.onAliasResolved(data) }
}
@Composable
override fun View(modifi... | Kotlin |
or your Elasticpool configuration: vCore-based or DTU-based.
Tier *string `json:"tier,omitempty" tf:"tier,omitempty"`
}
type SkuParameters struct {
// The scale up/out capacity, representing server's compute units. For more information see the documentation for your Elasticpool configuration: vCore-based or DTU-bas... | Go |
//out = std::string("drain_holes_format_version=") + std::to_string(drain_holes_format_version) + std::string("\n") + out;
if (!mz_zip_writer_add_mem(&archive, SLA_DRAIN_HOLES_FILE.c_str(), static_cast<const void*>(out.data()), out.length(), mz_uint(MZ_DEFAULT_COMPRESSION))) {
a... | C++ |
"; break;
case 2: x.fillStyle = "#"+c+c+"00ff"; break;
case 3: x.fillStyle = "#"+c+c+c+"ff"; break;
}
// var h = r[i] * canvas.height; // <- linear scaled bars
var h = Math.pow((channel[i] / maxValue), 0.3) * canvas.height;
x.fillRect(i*BAR_WIDTH, canvas.height - h,BAR_WIDTH,h);
}
retu... | Typescript |
.output);
});
}
});
describe('should recognize non-wff', function() {
const testCases = [
{ input: 'pp', output: false },
{ input: 'p a ', output: false },
{ input: 'p->', output: false },
{ input: 'p#q', output: false },
{ input: '~&p', output: false... | Typescript |
/*
* Copyright (c) 2006 - 2008 Kungliga Tekniska Högskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions o... | C |
-8 12.5v-9l6 4.5-6 4.5z");
}
/* Library Clicked */
[d="M4\,20h14v1H3V6h1V20z M21\,3v15H6V3H21z M17\,10.5L11\,7v7L17\,10.5z"] {
d: path("M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8 12.5v-9l6 4.5-6 4.5z");
}... | CSS |
0ba'),
DRY_NORMAL_HIGHT_HEAT("ps-dry-normal-hight-heat", '\ue0bb'),
DRY_NORMAL_LOW_HEAT("ps-dry-normal-low-heat", '\ue0bc'),
DRY_NORMAL_NO_HEAT("ps-dry-normal-no-heat", '\ue0be'),
DZONE("ps-dzone", 'C'),
EBAY("ps-ebay", 'D'),
EGG("ps-egg", '\ue04f'),
EJECT("ps-eject", '\ue0bf'),
EMBER("p... | Java |
Duplicate) {
if (!_.startsWith(keyValue, 'I18N.')) {
return;
}
const [, filename, ...restPath] = keyValue.split('.');
const fullKey = restPath.join('.');
const targetFilename = `${srcLangDir}/${filename}.${CONFIG.fileType}`;
if (!fs.existsSync(targetFilename)) {
fs.writeFileSync(targetFilename, ge... | Typescript |
string(b)); d != "" {
t.Fatal(d)
}
assert.Equal(t, want, string(b), "Wrong JSON produced")
}
// Test that the default date (January 1, year 1, 00:00:00 UTC) is
// not marshalled
func TestMetadataNoTime(t *testing.T) {
var md = BuildMetadata{
InvocationID: "123456-12-1",
}
var want = `{"invocationId":"123456-... | Go |
.ExptEvalItem{
{
ExptID: 1,
ItemID: 1,
State: entity.ItemRunState_Processing,
UpdatedAt: &zombieTime,
},
},
},
prepareMock: func(f *fields, ctrl *gomock.Controller, args args) {
f.configer.EXPECT().GetConsumerConf(gomock.Any()).Return(&entity.ExptConsumerConf{
... | Go |
should be used when
// seting the user's home directory
func homeEnvName() string {
switch goruntime.GOOS {
case "windows":
return "USERPROFILE"
case "plan9":
return "home"
default:
return "HOME"
}
}
// Copyright 2018 The CUE Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// y... | Go |
from typing import Any, Optional
from flet.core.control import Control
from flet.core.ref import Ref
class HapticFeedback(Control):
"""
Allows access to the haptic feedback interface on the device.
It is non-visual and should be added to `page.overlay` list.
Example:
```
import flet as ft
... | Python |
sTexture;\n" +
"void main() {\n" +
" gl_FragColor = texture2D(sTexture, vTextureCoord);\n" +
"}\n";
private val mMVPMatrix = FloatArray(16)
private val mSTMatrix = FloatArray(16)
private var mProgram = 0
private var mTextureID = -12345
private va... | Kotlin |
是一个人工智能研究和部署的公司,它的使命是确保人工通用智能(AGI)能够造福全人类。它的愿景是创造一个能够与人类合作和竞争的 AGI,同时遵循人类的价值观和道德。OpenAI 最初是一个非营利性的组织,由一些科技界的知名人士,如埃隆·马斯克、彼得·蒂尔、杨致远等创立于 2015 年1。它的目标是推进数字智能的发展,使其能够最大程度地惠及人类,而不受金钱利益的束缚。它的研究是开放和透明的,任何人都可以访问和使用 OpenAI 在人工智能领域有着开创性的研究,尤其是在生成模型和安全性方面。它开发了一些强大的大语言模型,如 GPT-3/3.5/4、ChatGPT、DALL·E、Whisper 等,它们可以理解和生成文本、图像、声音等多种... | Markdown |
mmary>
/// Level: 43 - 44
/// </summary>
HighvaleOutrunner = 2691,
/// <summary>
/// Level: 44 - 45
/// </summary>
HighvaleScout = 2692,
/// <summary>
/// Level: 45 - 46
/// </summary>
HighvaleMarksman = 2693,
/// <summary>
/// Level: 46 - 47
/// </summary>
HighvaleRanger = 2694,
/// <su... | C# |
en el repositorio de YOLOv4 en GitHub.
Lamentamos cualquier inconveniente que esto pueda causar y nos esforzaremos por actualizar este documento con ejemplos de uso para Ultralytics una vez que se implemente el soporte para YOLOv4.
## Conclusión
YOLOv4 es un modelo de detección de objetos potente y eficiente que lo... | Markdown |
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
t.Parallel()
s := assertNewSignerWithConfOK(t, tt.fields.Configuration)
got := s.Config()
if got.ID != tt.fields.Configuration.ID {
t.Fatalf("signer id %q does not match configuration %q", got.ID, tt.fields.Configuration.ID)
}
i... | Go |
clock 2 (ADC_ALTCLK2)"]
#[inline(always)]
pub fn _01(self) -> &'a mut W {
self.variant(ADICLK_A::_01)
}
#[doc = "Alternate clock 3 (ADC_ALTCLK3)"]
#[inline(always)]
pub fn _10(self) -> &'a mut W {
self.variant(ADICLK_A::_10)
}
#[doc = "Alternate clock 4 (ADC_ALTCLK4)"]
... | Rust |
hangeView()
end)
self:AddClick(self.bgBtn_, function()
self:closeItemInfoTips()
end)
self:AddClick(self.uiBinder.btn_ask, function()
self:onAskBtnClick()
end)
self:AddClick(self.traceBtn_.btn, function()
self.itemTraceVM_.TraceExchangeItem(self.exchangeItemData_.itemId, self.consumeList_)
if... | Lua |
", Some(b"bravo")),
];
assert_eq!(
verify_proof::<NoExtensionLayout, _, _, _>(&root, &proof, items.iter()),
Err(VerifyError::DuplicateKey(b"bravo".to_vec()))
);
}
#[test]
fn test_verify_extraneous_node() {
let (root, proof, _) = test_generate_proof::<NoExtensionLayout>(
test_entries(),
vec![b"br... | Rust |
local world = require('world')
local window_width = love.window.getMode()
local square = {}
square.category = tonumber('0001', 2)
square.mask = tonumber('1110', 2)
square.group = 0
square.body = love.physics.newBody(world, 80, 400, 'dynamic')
square.body:setFixedRotation(true)
square.body:setMass(20)
square.shape = lo... | Lua |
f8f9;
border-radius: 4px
}
@media screen and (max-width: 480px) {
.ivu-result-extra {
padding: 18px 20px
}
}
.ivu-result-actions {
margin-top: 32px
}
.ivu-result-actions .ivu-btn:not(:last-child) {
margin-right: 8px
}
.ivu-tag-select {
position: relative;
max-height: 32px;
ma... | CSS |
"
, "../external/_repos/physx/physx/source/simulationcontroller/include"
, "../external/_repos/physx/physx/source/physxcooking/src/"
, "../external/_repos/physx/physx/source/physxcooking/src/convex"
, "../external/_repos/physx/physx/source/physxcooking/src/mesh"
, "../external/_repos/physx/physx/... | Lua |
_TITLE).isDisplayed() || $(SELECTORS.ANDROID.PERMISSION_DIALOG).isDisplayed();
}
else {
return $(SELECTORS.IOS.ALERT).isDisplayed();
}
}
/**
* Press a button in a cross-platform way.
*
* IOS:
* iOS always has an accessibilityID so use the `~` in combinat... | Typescript |
ss="bg-background-900">
<div class="container px-6 py-4 space-x-4 flex justify-center text-primary-300">
<Link<Route> to={Route::Imprint}>{ "Imprint" }</Link<Route>>
<Link<Route> to={Route::Privacy}>{ "Privacy" }</Link<Route>>
</div>
</div>
}
}
<repona... | Rust |
from ccrawl.utils import struct_letters
from ccrawl.ext.ctypes_ import build
from ctypes import sizeof
__all__ = [
"cMacro_volatility",
"cFunc_volatility",
"cTypedef_volatility",
"cEnum_volatility",
"cStruct_volatility",
"cUnion_volatility",
]
# volatility VTypes formatters:
# ----------------... | Python |
2> {
// Rust 中的匹配是穷尽的(exhaustive):
// 必须穷举到最后的可能性来使代码有效
match x {
None => None,
Some(i) => Some(i + 1),
}
}
<gh_stars>0
use serde::{self, Serialize, Deserialize};
use crate::{
authorization::AcmeAuthorization,
directory::AcmeBoundDirectory,
error::Result,
identifier::Acme... | Rust |
ive.org":["","v0.0.1"],"github.com/lam000/go-common":["","v0.0.7"],"github.com/proactionhq/proaction":["","v0.4.5"],"github.com/Krajiyah/ble-sdk":["","v0.0.7"],"github.com/usualhuman/fyne":["Package fyne describes the objects and components available to any Fyne app","v1.0.0"],"github.com/SlothNinja/user":["","v1.0.0"]... | JavaScript |
;
else
queue->head->prev = task;
queue->head = task;
info |= PMR_queue_unlock(queue);
return info;
}
int PMR_insert_task_at_back(queue_t *queue, task_t *task)
{
int info = PMR_queue_lock(queue);
queue->num_tasks++;
task->prev = queue->back;
task->next = NULL;
if (queue->head == NULL)
queue-... | C |
ex += xStep) {
final double x = minX + xIndex * resolution;
final int width = Math.max(80, Math.min(imageWidth - xIndex, xStep));
final String url = getMapUrl(imagerySet, mapLayer, x, y, zoomLevel, width, height,
resolution);
final BufferedImage bufferedImage = Buffer... | Java |
e * THREADS_PER_BARRIER_SLOT) { tId ->
Fut {
repeat(TEST_ITERATIONS) { internalIteration ->
sleepMillis(Random.nextLong(MAX_RANDOM_WAIT_MILLIS))
bar.await()
sleepMillis(Random.nextLong(MAX_RANDOM_WAIT_MILLIS))
... | Kotlin |
布尔 | false |
| 字符串 | 空字符串 |
| 接口 | nil |
| 引用 | nil |
| slice/map/chan | nil |
| 数组/结构 | 每个元素或字段的零值 |
### 简短变量声明(自动推导类型)
简短变量声明被广泛用于大部分的局部变量的声明和初始化。
var形式的声明语句往往是用于需要显式指定变量类型地方,或者因为变量稍后会被重新赋值而初始值... | Markdown |
�",
[86884] = "구체화된 공포의 허리띠",
[86885] = "태양의 영혼",
[86886] = "로샨 - 공포의 현신",
[86887] = "불안정성의 쇠구두",
[86888] = "새까만 밤의 덧신",
[86889] = "타오런 - 영혼을 태우는 자",
[86890] = "안개 속의 공포",
[86891] = "살아난 수호병의 흉갑",
[86892] = "알 수 없는 공포의 로브",
[86893] = "진야 - 물예언자의 보주",
[86894] = "암흑안개 소용돌이",
[86895] = "치유사의 마지막 겨울 허리띠",
[86896] = "기원사의 마... | Lua |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Text;
using Avalonia.Collections;
using Avalonia.Diagnostics;
using Avalonia.UnitTests;
using Xunit;
namespace Avalonia.Controls.UnitTests
{
public class ItemsSourceViewTests : ScopedTestBa... | C# |
3, 3, 2),
// the function should return 3. Rome has the number 3 on the map.
// From cities 1, 2 and 4, there is a direct road to city 3. From
// cities 0 and 5, the roads to city 3 go through city 2.
//
// 5 4
// \ /
// > <
// ... | Rust |
n pos;*/
}
/**
* @language zh_CN
* 查询
* */
export function query(query) {
if(!document.querySelectorAll)
return null;
let q = document.querySelectorAll(query);
return q;
}
/**
* @language zh_CN
* 单个查询
* */
export function query... | Typescript |
<p> </p>
<p><strong>Example 1:</strong></p>
<pre>
<strong>Input:</strong> s = "aabcbc"
<strong>Output:</strong> true
<strong>Explanation:</strong>
"" -> "<u>abc</u>" -> "a<u>abc</u>bc"
Thus, "aabcbc" is valid.</pre>
<p><strong>Example 2:</strong></p>
<pre>... | Markdown |
if errGet == nil {
recommendationRuleCopy = updated
}
return err
})
if err != nil {
recorder.Event(recommendationRule, corev1.EventTypeWarning, "FailedUpdateStatus", err.Error())
klog.Errorf("Failed to update status, RecommendationRule %s error %v", klog.KObj(recommendationRule), err)
retur... | Go |
SWITCH_OCAML_TO_C
/* Make the exception handler alloc ptr available to the C code */
str ALLOC_PTR, Caml_state(young_ptr)
str TRAP_PTR, Caml_state(exn_handler)
/* Call the function */
blr ADDITIONAL_ARG
/* Reload alloc ptr */
ldr ALLOC_PTR, Caml_state(... | Assembly |
用,我使用了一个“状态错误(stateful error)”的方法:
```Go
type Query struct {
err error
}
func (q *Query) WhereEquals(field string, val interface{}) *Query {
if q.err != nil {
return q
}
// logic that might set q.err
return q
}
func (q *Query) GroupBy(field string) *Query {
if q.err != nil {
return q
}
// logic that m... | Markdown |
rture_smb2_durable_open_disconnect_init());
torture_suite_add_suite(suite, torture_smb2_durable_v2_open_init());
torture_suite_add_suite(suite, torture_smb2_dir_init());
torture_suite_add_suite(suite, torture_smb2_lease_init());
torture_suite_add_suite(suite, torture_smb2_compound_init());
torture_suite_add_suite(... | C |
) {
if (obj.aweme_list[i].video) {
if (obj.aweme_list[i].status.reviewed != 1) {
obj.aweme_list[i].status.reviewed = 1;
obj.aweme_list[i].video_control.allow_download = true;
}
if (obj.aweme_list[i].video.download_addr) {
let play = obj.aweme_list[i].video.pla... | JavaScript |
ed();
var h = m1.isub(m2).imul(qinv).umod(p);
h.imul(q);
m2.iadd(h);
return new Buffer(m2.imul(blinds.unblinder).umod(priv.modulus).toArray(false, len));
}
crt.getr = getr;
function getr(priv) {
var len = priv.modulus.byteLength();
var r = new bn(randomBytes(len));
while (r.cmp(priv.mo... | JavaScript |
from datetime import date
from op_analytics.coreutils.threads import run_concurrently
from op_analytics.coreutils.time import now_date
from op_analytics.coreutils.logger import structlog
from .database import find_tokens
from .chaintokens import ChainTokens
log = structlog.get_logger()
def execute_pull(process_... | Python |
.toHaveLength(2);
expect(schedule.getItems()[0].comment).toEqual("item 0");
expect(schedule.getItems()[1].comment).toEqual("item 2");
});
it("removes an item from the schedule items by by item", () => {
const recurrenceRule = new RRule({
freq: RRule.WEEKLY,
interval: 5,
byweekday: [RR... | Typescript |
target instance
pull_result = misps_site_admin[target_index - 1].server_pull(server=server_id, event=event.id)
time.sleep(2) # Allow time for the pull to complete
check_response(pull_result)
# Verify that the event exists and is locked on the target instance
results = target_i... | Python |
${j}c47"} = sprintf "T:-:D:S:00 %s LDS.64 j%dAy6, [readAs + 4x<%d*128 + 66>];\n", $rsPred, $nOdd, $rsOffset;
$insert{"j${j}c59"} = sprintf "T:-:D:S:00 %s LDS.64 j%dBx6, [readBs + 4x<%d*128 + 66>];\n", $rsPred, $nOdd, $rsOffset;
}
foreach my $c (0 .. 63)
{
my ($x,$y) = @{$cOrder[$c]};
... | CSS |
lit
v_sqrt_f32 v2, lit 123.0
// NOSICI: :[[@LINE+2]]:{{[0-9]+}}: error: expected closing parentheses
// NOGFX89: :[[@LINE+1]]:{{[0-9]+}}: error: expected closing parentheses
v_sqrt_f32 v2, lit(123.0
// NOSICI: :[[@LINE+2]]:{{[0-9]+}}: error: expected immediate with lit modifier
// NOGFX89: :[[@LINE+1]]:{{[0-9]+}}: e... | Assembly |
eateJobFromPresetBatchMode(
string projectId, string location, string inputUri, string outputUri, string preset)
{
// Create the client.
TranscoderServiceClient client = TranscoderServiceClient.Create();
// Build the parent location name.
LocationName parent = new LocationNa... | C# |
// https://github.com/concrete5/concrete5/issues/10275
}
}
}
}div.theme-atomik {
.ccm-block-testimonial-hero {
padding-bottom: 5rem;
padding-top: 7rem;
position: relative;
.ccm-block-testimonial-hero-cover {
background-color: rgba($dark, 0.5);
height: 100%;
z-index: 2;... | CSS |
"./DatabaseManager";
import {Router} from "./Router";
/**
*
* since this server is stateless for achieving scallability:
* You could use the cluster mode of pm2 a process manager for NodeJS see: http://pm2.keymetrics.io/docs/usage/cluster-mode/
* Or use the cluster library of NodeJS see: https://nodejs.org/api/... | Typescript |
eClient meshServiceClient) : base(httpClientFactory, webHostEnvironment,
environment, logger, metricsLogger, meshServiceClient) { }
public override Task<string> SpecializeMSISidecar(HostAssignmentContext context)
{
// Legion will take care of MSI Specialization
retur... | C# |
90 BE 05 C8 */ stw r5, 0x5c8(r30)
/* 80043D1C 0003F97C 90 9E 05 CC */ stw r4, 0x5cc(r30)
/* 80043D20 0003F980 90 7E 05 D0 */ stw r3, 0x5d0(r30)
/* 80043D24 0003F984 90 1E 05 D4 */ stw r0, 0x5d4(r30)
lbl_80043D28:
/* 80043D28 0003F988 88 01 00 C8 */ lbz r0, 0xc8(r1)
/* 80043D2C 0003F98C 3B E1 00 C8 */ addi r31, r1,... | Assembly |
sortByRFC6724withSrcs(addrs []IPAddr, srcs []IP) {
if len(addrs) != len(srcs) {
panic("internal error")
}
addrAttr := make([]ipAttr, len(addrs))
srcAttr := make([]ipAttr, len(srcs))
for i, v := range addrs {
addrAttr[i] = ipAttrOf(v.IP)
srcAttr[i] = ipAttrOf(srcs[i])
}
sort.Stable(&byRFC6724{
addrs: ... | Go |
de environment calls
* on _putenv(), which is bogus if we've passed a non-ascii
* string to _putenv(), since they use MultiByteToWideChar
* and breaking the implicit utf-8 assumption we've built.
*
* Reset _wenviron for good measure.
*/
if (_wenviron) {
... | C |
case 0x14: {
let mmss = 0;
let track = tracks[btoi(params[0])];
if (!track) {
statusCode |= 0x10;
pushResults(0x11, 0x80);
status = (status & ~0x80) | 0x20;
setIrq(5);
break;
}
if (params[0] === 0) {
mmss = floor((track.... | JavaScript |
art += 0x20)
mtpr(0, start);
mtpr(mfpr(PR_CCTL) | 0x10 | CCTL_ENABLE, PR_CCTL); /* enab. bcache */
start = 0x01800000;
slut = 0x01802000;
/* Clear primary cache */
for (; start < slut; start += 0x20)
mtpr(0, start);
/* Flush the pipes (via REI) */
asm("movpsl -(sp); movab 1f,-(sp); rei; 1:;");
/* Enab... | C |
5 00 54 */ lfs f0, 0x54(r5)
/* 80254180 0024FDE0 D0 07 00 1C */ stfs f0, 0x1c(r7)
/* 80254184 0024FDE4 4E 80 00 20 */ blr
.global lbl_80254188
lbl_80254188:
/* 80254188 0024FDE8 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 8025418C 0024FDEC 7C 08 02 A6 */ mflr r0
/* 80254190 0024FDF0 2C 06 00 02 */ cmpwi r6, 2
/* 8025419... | Assembly |
namedAttributeAccessor.attributeAccessor = attributeAccessor;
}
else {
this.namedAttributeAccessors.push( new NamedAttributeAccessor( name, attributeAccessor ) );
}
}
findAttribute( name: string ) : AttributeAccessor | null {
let namedAttributeAccessor = this.namedA... | Typescript |
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "NGAP-IEs"
* found in "NGAP-IEs.asn"
* `asn1c -pdu=all -fcompound-names -findirect-choice -fno-include-deps -no-gen-OER -gen-PER -no-gen-example -D ngap`
*/
#ifndef _ASN_NGAP_SourceRANNodeID_H_
#define _ASN_NGAP_SourceRANNodeID_H_
#... | C |
e DUT transmits test reference packets at a fixed interval.
*
* @param[in] tx_channel - channel to transmit packets.
N = (F-2402) / 2
Range: 0x00 to 0x27
Frequency Range: 2402 MHz to 2480 MHz.
* @param[in] test_data_length - length ... | C |
myInfo: {} as MyInfo,
};
export default function me(
state: MeStateType = initialState,
action: MeAction
) {
const { payload, type } = action;
switch (type) {
case MeType.SET_MYINFO:
return {
...state,
myInfo: payload!.myInfo!,
};
case MeType.CHANGE_USER_INFO:
retur... | Typescript |
+ line.extractPoint(0.9));
System.out.println("Extracting point at position 1.0: " + line.extractPoint(1.0));
System.out.println("Extracting point at position 1.5: " + line.extractPoint(1.5));
System.out.println("Extracting point at position 1.5 offset 0.5: " + line.extractPoint(1.5, 0.5));
System.out.println("... | Java |
xa193a000 ! 1443: WRPR_GL_I wrpr %r14, 0x0000, %-
.word 0xf45d2053 ! 1444: LDX_I ldx [%r20 + 0x0053], %r26
.word 0xf04c8000 ! 1449: LDSB_R ldsb [%r18 + %r0], %r24
.word 0xf81de12f ! 1451: LDD_I ldd [%r23 + 0x012f], %r28
.word 0x8794a001 ! 1453: WRPR_TT_I wrpr %r18, 0x0001, %tt
.word 0xb5500000 ! 1454: RDPR_T... | Assembly |
{
case "GET":
out := api.KVPairs{}
data, _ := json.Marshal(out)
w.WriteHeader(http.StatusOK)
w.Write(data)
case "PUT":
w.WriteHeader(http.StatusOK)
default:
w.WriteHeader(600)
}
})
}
func (f *FakeApi) AppendQanAPIInstances(protoInstances []*proto.Instance) {
instances := map[string]*proto.I... | Go |
n.getWorldId());
}
}
leagueData.add(info);
}
}
}
@Override
protected void writeImpl(AionConnection con) {
Player player = con.getActivePlayer();
writeH(alliance.groupSize());
writeD(groupid);
writeD(leaderid);
writeD(player == null || player.getPosition() == null ? 0 : player.getWorldId(... | Java |
NAME_PART) {
name = it.value
}
is PartData.FileItem -> image = it.toFile()
else -> Unit
}
it.dispose()
}
localSource.saveScreenshot(
appId,
name ?: throw BadRequestException("name part is ... | Kotlin |
parser.add_argument("--dp-size",
type=int,
default=2,
help="Data parallel size")
parser.add_argument("--tp-size",
type=int,
default=1,
help="Tensor parallel size")
par... | Python |
#region License
//
// Copyright (c) 2013, Kooboo team
//
// Licensed under the BSD License
// See the file LICENSE.txt for details.
//
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
namespace Kooboo... | C# |
EmptyList<E> =
NonEmptyList(listOf(head) + t)
@JvmName("nel")
@Suppress("NOTHING_TO_INLINE")
public inline fun <E> E.nel(): NonEmptyList<E> =
NonEmptyList(listOf(this))
public operator fun <E : Comparable<E>> NonEmptyList<E>.compareTo(other: NonEmptyList<E>): Int =
all.compareTo(other.all)
public fun <E> NonEm... | Kotlin |
* (NC should always be even since coordinates always appear in pairs
* representing an x,y pair)
* <li>followed by
* a byte indicating the winding rule
* ({@link #WIND_EVEN_ODD WIND_EVEN_ODD} or
* {@link #WIND_NON_ZERO WIND_NON_ZERO})
* <li>followed by
... | Java |
terminates the `Http2Session` and the associated `net.Socket` or `tls.TLSSocket`.
*
* Once destroyed, the `Http2Session` will emit the `'close'` event. If `error` is not undefined, an `'error'` event will be emitted immediately before the `'close'` event.
*
* If there are any remaining open `Http2S... | Kotlin |
,
> .form-select {
~ label {
opacity: $form-floating-label-opacity;
transform: $form-floating-label-transform;
}
}
// Duplicated because `:-webkit-autofill` invalidates other selectors when grouped
> .form-control:-webkit-autofill {
~ label {
opacity: $form-floating-label-opacity;
... | CSS |
remainLoads += r.combload
}
sort.Slice(sortedPeers, func(i, j int) bool {
return sortedPeers[i].combload < sortedPeers[j].combload
})
return &sortedPeerInfos{
sortedPeers: sortedPeers,
remainLoads: remainLoads,
//dimID: dimID,
}
}
func (s *sortedPeerInfos) pop() *peerInfo {
length := len(s.sorted... | Go |
nless required
by applicable law or agreed to in writing, software distributed under the
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
OF ANY KIND, either express or implied. See the License for the specific
language governing permissions and limitations under the License.
Covered i... | Java |
rr.Error()}
}
localUserID, err := h.DB.GetIDForRemoteUser(ctx, tokenInfo.UserID, provider, clientID)
if err != nil {
log.Error("Unable to GetIDForRemoteUser: %s", err)
return impart.HTTPError{http.StatusInternalServerError, err.Error()}
}
if localUserID != -1 && attachUserID > 0 {
if err = addSessionFlash(... | Go |
int*//
int crossover = PApplet.toInt(random(dna.length));
//*take "half" from one and "half" from the other*//
for (int i = 0; i < dna.length; i++) {
if (i > crossover) child[i] = getGene(i);
else child[i] = partner.getGene(i);
}
DNA newdna = new DNA(child);
return... | Java |
()?.let {
texts.any { t -> it.contains(t) }
} ?: false
override fun toString() = if (texts.size == 1)
"DESC contains ${texts.first()}"
else "DESC any contains ${texts.contentToString()}"
}
fun ConditionGroup.containsDesc(vararg desc: String) = link(ContainDescCondition(desc))
fun containsD... | Kotlin |
html-preview code,.editormd-preview-container code{border:1px solid #ddd;background:#f6f6f6;padding:3px;border-radius:3px;font-size:14px}.editormd-html-preview pre,.editormd-preview-container pre{border:1px solid #ddd;background:#f6f6f6;padding:10px;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px... | CSS |
OnRandomTraitorAliveAssigned(Entity<RandomTraitorAliveComponent> ent, ref ObjectiveAssignedEvent args)
{
// invalid prototype
if (!TryComp<TargetObjectiveComponent>(ent.Owner, out var target))
{
args.Cancelled = true;
return;
}
var traitors = _traitor... | C# |
e X 和 Samsung Galaxy S9+ 的螢幕大小、相機像素和電池容量各是多少? |
| 構思 | 請提供五個可以應用 GPT-3.5 的商業構想,包括但不限於推薦系統、客服機器人等。 |
| 情感分析 | 对这段电影评论进行情感分析:「这部电影太棒了,我已经看了三遍了!」|
| 文本生成 | 请根据以下关键词生成一段描述秋天的小故事:落叶、凉风、金黄色的稻田、南瓜灯|
| 文本编辑 | 将下面这句话改为更加通顺的表达方式:「你能不能帮我去拿一下那个正在桌子上的红色笔呢?」|
| 分类任务 | 请根据以下特征,将以下商品分类:黑色、连衣裙、丝绸、春季款式、$200-$300|
| 创意问题 | 如果可以发明一种新的运动,... | Markdown |
:", ((Δhex)morebufΔ2.lr), "}\n",
"\tsched={pc:", ((Δhex)(~gp).sched.pc), " sp:", ((Δhex)(~gp).sched.sp), " lr:", ((Δhex)(~gp).sched.lr), " ctxt:", (~gp).sched.ctxt, "}\n");
(~thisg).m.val.traceback = 2;
// Include runtime frames
traceback(morebufΔ2.pc, morebufΔ2.sp, morebufΔ2.lr, gp)... | C# |
ParamRanges::LFO_PHASE.start, ParamRanges::LFO_PHASE.end, 0.01);
mSliderPhase.setDoubleClickReturnValue(true, ParamDefaults::LFO_PHASE_DEFAULT);
// Default button settings
std::vector<std::reference_wrapper<juce::TextButton>> buttons = { mBtnSync, mBtnBipolar, mBtnRetrigger, mBtnMap };
for (auto& button : butt... | C++ |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.