content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
#ESCREVA UM PROGRAMA QUE LEIA A VELOCIDADE DE UM CARRO , SE FOR MAIOR QUE 80 VAI TER UMA MULTA POR CADA KM A RODADO
limite = 50
valor_multa_por_km = 7
for i in range(2):
velocidade = float(input(f"Digite a velocidade do veículo {i + 1}: "))
if velocidade > limite:
excesso = velocidade - limite
... | Python |
into a greedy child
if ( parentInstance && c === "isover" ) {
parentInstance.isover = false;
parentInstance.isout = true;
parentInstance._out.call( parentInstance, event );
}
this[ c ] = true;
this[ c === "isout" ? "isover" : "isout" ] = false;
this[ c === "isover" ? "_over" : "_out" ].call... | JavaScript |
est scheduler")
}
var work = createStartWorkload(2, 256, 10000)
resources, err := sched.getWorkloadResources(work)
if err != nil ||
resources.instanceUUID != "c73322e8-d5fe-4d57-874c-dcee4fd368cd" ||
resources.requirements.MemMB != 256 {
t.Fatalf("bad workload resources %s, %d", resources.instanceUUID, resou... | Go |
nValidatorSuite>
_ValidatorSuiteNameToValidatorSuiteMap _validatorSuites;
// ValidatorName to ValidatorMetadata map
_ValidatorNameToMetadataMap _validatorNameToMetadata;
// Following 3 are helper data structures to easy lookup for Validators,
// when queried for keywords, schemaType or pluginName.... | C |
ion)
copy(dAtA[i:], m.Region)
i = encodeVarintMessage(dAtA, i, uint64(len(m.Region)))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0x8a
}
if len(m.Name) > 0 {
i -= len(m.Name)
copy(dAtA[i:], m.Name)
i = encodeVarintMessage(dAtA, i, uint64(len(m.Name)))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0x82
}
if m.GiftLa... | Go |
local api = require "luci.model.cbi.passwall.api.api"
local appname = api.appname
local sys = api.sys
local net = require "luci.model.network".init()
local datatypes = api.datatypes
local nodes_table = {}
for k, e in ipairs(api.get_valid_nodes()) do
if e.node_type == "normal" then
nodes_table[#nodes_table ... | Lua |
element is the last.
*/
public get isLast(): boolean {
return (this.cursor % this.sequence.length) == this.sequence.length - 1;
}
/**
* Disposes the object.
*/
public dispose() {
this.sequence = null;
}
/**
* We build the sequence at construction time, so that we can iterate it
*... | Typescript |
break;
#endif
#if (RTL8822B_SUPPORT == 1)
case ODM_RTL8822B:
phy_lc_calibrate_8822b(dm);
break;
#endif
#if (RTL8821C_SUPPORT == 1)
case ODM_RTL8821C:
phy_lc_calibrate_8821c(dm);
break;
#endif
#if (RTL8814B_SUPPORT == 1)
case ODM_RTL8814B:
break;
#endif
default:
break;
}
dm->rf_calibrate_i... | C |
* do not exit directly when detect ctrl+c, just send SIGINT event ([a272158](https://github.com/offline-ai/ai/commit/a272158b00c28cffd984f943c0d6f298aca51511))
* do not output result if interactive ([7f761d3](https://github.com/offline-ai/ai/commit/7f761d361c67147bbbfa38d5fea4a9b0198b614f))
* do not save inputs histor... | Markdown |
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using LiveChartsCore.Drawing;
namespace LiveChartsCore.Motion;
/// <summary>
/// Defines the color motion property class.
/// </summary>
/// <remarks>
/// Initializes a new instance of the <see cref="ColorMotionProperty"/> class.
/// <... | C# |
lor for same name
final hash = name.hashCode;
return colors[hash.abs() % colors.length];
}
}
import 'package:flutter/material.dart';
import 'dart:ui' as ui;
/// Premium Animated Logo with Glow Effects
///
/// Features:
/// - High-quality logo rendering with smooth scaling
/// - Dynamic glow effects that res... | Dart |
) {
resolutions.push(layerInfo.tileInfo.lods[i].resolution);
}
map = new OpenLayers.Map('map', {
maxExtent: maxExtent,
StartBounds: layerMaxExtent,
units: (layerInfo.units == "esriFeet") ? 'ft' : 'm',
re... | HTML |
# Copyright 2015 Canonical, Ltd.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distribute... | Python |
1 21,15A3,3 0 0,1 18,18A3,3 0 0,1 15,15A3,3 0 0,1 18,12Z","chart-timeline-variant-shimmer":"M21 8C19.5 8 18.7 9.4 19.1 10.5L15.5 14.1C15.2 14 14.8 14 14.5 14.1L11.9 11.5C12.3 10.4 11.5 9 10 9C8.6 9 7.7 10.4 8.1 11.5L3.5 16C2.4 15.7 1 16.5 1 18C1 19.1 1.9 20 3 20C4.4 20 5.3 18.6 4.9 17.5L9.4 12.9C9.7 13 10.1 13 10.4 12.... | JavaScript |
ned:hover, .badgeos-list-item.user-has-earned .badgeos-extras-window li:hover {
text-decoration: none;
}
.show-hide-open:after, .show-hide-close:after {
content: '';
display: block;
overflow: hidden;
background: url('../images/arrows.png') top no-repeat;
width: 22px;
height: 7px;
float:right;
margin: .7em 0 0 ... | CSS |
-->`|`# startcode name`|`-- startcode name`|`startcode name`|`# startcode name`
|Content | | | | |
|**Close** |`<!-- endcode -->` |`# endcode` |`-- endcode` |`endcode` |`# endcode`
##### Using regions... | Markdown |
se.ui.graphics.StrokeJoin.Companion.Miter
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.ImageVector.Builder
import androidx.compose.ui.graphics.vector.path
import androidx.compose.ui.unit.dp
@Suppress("UnusedReceiverParameter")
val IconPack.Cos: ImageVector
get() {... | Kotlin |
y: faux,
// For Ext.grid.ColumnLayout
columnWidthsDone: faux,
left: px,
top: px,
right: px,
bottom: px,
width: px,
height: ... | HTML |
import glob
import json
import re
from typing import Dict, List
import joblib
from tqdm import tqdm
FLOATS = r"\b\d+\.\d+\b"
N_DIGITS = 2
DATA_DIR = "/fsx/proj-chemnlp/data/OrbNet_Denali_Training_Data/xyz_files"
OUT_DIR = "/fsx/proj-chemnlp/data/cleaned_orbnet_xyz"
def round_to_n(match: str) -> str:
"""Rounds a... | Python |
linkGraphics.addCube(BODY_X, BODY_Y, BODY_Z, bodyAppearance);
linkGraphics.rotate(7.333 * Math.PI / 180.0, Axis3D.Y);
linkGraphics.addCube(BODY_X, BODY_Y, BODY_Z, bodyAppearance);
linkGraphics.rotate(7.333 * Math.PI / 180.0, Axis3D.Y);
linkGraphics.addCube(BODY_X, BODY_Y, BO... | Java |
},h=function(e,t){return e.substr(e.length-t.length,t.length)===t},b=function(e){return"auto"===e.toString()||h(e.toString(),"px")||h(e.toString(),"%")||h(e.toString(),"vh")||h(e.toString(),"vw")||h(e.toString(),"vmax")||h(e.toString(),"vmin")?e.toString():e+"px"},f=["style","className","grid","snap","bounds","size","d... | JavaScript |
ListCopy.toList.2`.
final length = this.length;
if (growable) {
if (length > 0) {
final data = _List(_adjustedCapacity(length));
for (int i = 0; i < length; i++) {
data[i] = this[i];
}
final result = _GrowableList<T>._withData(data);
result._setLength(len... | Dart |
=Math.pow(t,0.0)*1.0* 0.01131199811*Math.cos( 6.21874197797 + 26087.9031415742*t)-Math.pow(t,1.0)* 0.01131199811* 26087.9031415742*Math.sin( 6.21874197797 + 26087.9031415742 * t);
mercury_l_1+=Math.pow(t,0.0)*1.0* 26087.90313685529*Math.cos( 0.0 + 0.0*t)-Math.pow(t,... | Kotlin |
/2.0\r\n"
+ "Via: SIP/2.0/UDP 65.243.118.100:5050\r\n"
+ "From: M. Ranganathan <sip:M.Ranganathan@sipbakeoff.com>;tag=1234\r\n"
+ "To: \"littleguy@there.com\" <sip:littleguy@there.com:5060> \r\n"
+ "Call-ID: Q2AboBsaGn9!?x6... | Java |
): number[] {
const codePoints = [];
let i = 0;
const length = str.length;
while (i < length) {
const code = str.charCodeAt(i++);
if (code >= 0xd800 && code <= 0xdbff && i < length) {
const next = str.charCodeAt(i++)
if ((next & 0xfc00) === 0xdc00) {
codePoints.push(((code & 0x3ff) ... | Typescript |
{
st.nextToken();
String letter = st.nextToken();
int from = 0;
try
{
from = Integer.parseInt(st.nextToken());
}
catch (NoSuchElementException nsee)
{
if (Config.ENABLE_ALL_EXCEPTIONS)
{
nsee.printStackTrace();
}
}
showNpcs(activeChar,... | Java |
("No registered channel with identifier " + identifier);
}
// we can't throw runtime exceptions before support of i18n channel names
return null;
}
private static void addGroupChannel(String channelName) {
addChannel(new LfgChannel(Race.ELYOS, "@\u0001" + channelName + "\u0001" ... | Java |
150px;
padding: 3px ($o-dropdown-hpadding - $o-kanban-inner-hmargin) 3px $o-dropdown-hpadding;
> li {
display: inline-block;
margin: $o-kanban-inner-hmargin $o-kanban-inner-hmargin 0 0;
border: 1px solid white;
box-shadow: 0 0 0 1px map-get($grays, '300');
> a {
... | CSS |
# -*- coding: utf-8 -*- #
# Copyright 2020 Google LLC. 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | Python |
.HostIP object.
func (l StateList) UsesNodeResources() bool {
for _, s := range l {
for _, kv := range s.DatastoreState {
if resourceKey, ok := kv.Key.(ResourceKey); ok && resourceKey.Kind == apiv3.KindNode {
return true
}
}
}
return false
}
// RouteSource returns the route source to use for the test,... | Go |
function modifier_item_martyrs_mail_death_buff:DeclareFunctions()
return {
MODIFIER_PROPERTY_PREATTACK_BONUS_DAMAGE,
MODIFIER_PROPERTY_PHYSICAL_ARMOR_BONUS,
MODIFIER_PROPERTY_ATTACKSPEED_BONUS_CONSTANT,
}
end
function modifier_item_martyrs_mail_death_buff:GetModifierPreAttack_BonusDamage()
return sel... | Lua |
;
//ofstream levelF;
//levelF.open("Level",ios::app);
//for(j=0;j<SpeciesNUM;j++)
// levelF<<j+1<<" "<<levelDAG[j]<<endl;
// for(i=0;i<tree.leafNum;i++)
// myfile<<"taxon id: "<<taxaTree[i]->id<<" | taxon name: "<<taxaTree[i]->name<<endl;
// myfile<<"root id: "<<root->id<<" | root name: "<<root->name<<end... | C++ |
ides_summary_effective_date SET payment_method_dav=?
WHERE effective_date=? AND rider_id=? AND vehicle_id=? AND start_time=?`,
params: [
paymentIsDav,
effectiveDate,
riderId,
vehicleId,
startTime,
],
};
return Client.batch([updateRideSummaryQuery, update... | Typescript |
步骤参见[TPU-MLIR文档](https://github.com/sophgo/tpu-mlir/blob/master/README.md)。
## 4. 详细部署的部署示例
- [Python部署](python)
- [C++部署](cpp)
# TipJar
**TipJar** is a decentralized tipping platform built on the Solana blockchain using the Anchor framework. It allows users to create personalized tip jars, receive SOL with optiona... | Markdown |
idx) == LUA_TNONE as i32) as i32
}
/// <https://www.lua.org/manual/5.1/manual.html#lua_isnoneornil>
#[inline]
pub unsafe fn lua_isnoneornil(L: *mut lua_State, idx: libc::c_int) -> libc::c_int {
(lua_type(L, idx) <= 0) as i32
}
/// <https://www.lua.org/manual/5.1/manual.html#lua_pushliteral>
#[inline]
pub unsafe f... | Rust |
) : intoDir.parent().path())
let destPath = tmp ? tmp.path() : intoDir.parent().path();
try {
try {
await x(`git clone --single-branch -b "${branch}" "${gitURL}" "${name}"`, { cwd: destPath });
} catch (err) {
// specific shas can't be cloned, so do it manually:
await x(`git clone "${gitU... | JavaScript |
|
| 新闻事件分类 | 能否介绍一下最近发生的具有重要意义的新闻事件? |
| 健身计划推荐 | 我想规划一份针对全身训练的健身计划,你能给我提供一些建议吗? ... | Markdown |
self.data_panel, label="这里找不到数据 /_ \\ \n你可以试试先在左边分析下"),
wx.EXPAND)
self.data_panel.SetFont(ft(12))
self.data_panel.SetSizer(self.data_sizer)
def on_filter_update(self, event: wx.Event):
if event.GetEventObject() == self.reset_btn:
self.active_filter =... | Python |
/*
* Math library
*
* Copyright (C) 2016 Intel Corporation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, thi... | Assembly |
ArrayList(sharedContext.sure(UserDB::class.java).authenticators)
if (allowAnonymous) authenticators.add(0, AnonymousAuthenticator.get())
context.writer
.listBegin()
.word("success")
.listBegin()
.listBegin()
.word(authenticators.stream().map {... | Kotlin |
::Io(inner) => inner.source(),
ErrKind::Var(inner) => inner.source(),
_ => None,
}
}
}
impl fmt::Display for ErrKind {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{}", self.description())?;
match self {
ErrKind::Io(inner) => ... | Rust |
State
import net.neoforged.api.distmarker.Dist
import net.neoforged.api.distmarker.OnlyIn
import net.neoforged.bus.api.IEventBus
import net.neoforged.fml.ModContainer
import net.neoforged.fml.common.Mod
import net.neoforged.fml.event.lifecycle.FMLClientSetupEvent
import net.neoforged.neoforge.client.event.EntityRendere... | Kotlin |
上,得到了新的同伴——<br>要是这个暑假,能永远这么下去就好了。<br>那时,少年不禁这样想到。</p><h2 id="图片"><a class="markdownIt-Anchor" href="#图片"></a> 图片</h2><p><img data-src="https://static.30hb.cn/vndb/img/summer-rb_p1.webp" alt="summer-rb_p1"></p><p><img data-src="https://static.30hb.cn/vndb/img/summer-rb_p2.webp" alt="summer-rb_p2"></p><p><img data-src="h... | HTML |
length-1;
getWidgetsSize(widget.itemBins[index]);
isRemoveItem=true;
_future=controller.forward();
},
),
... | Dart |
art)
info->path_uart = muic_pdata->path_uart;
else
info->path_uart = CONTROL1_SW_UART;
if (muic_pdata->path_usb)
info->path_usb = muic_pdata->path_usb;
else
info->path_usb = CONTROL1_SW_USB;
/*
* Default delay time for detecting cable state
* after certain time.
*/
if (muic_pdata->detca... | C |
#!/usr/bin/env python
###############################################################################
# Copyright Kitware Inc. and Contributors
# Distributed under the Apache License, 2.0 (apache.org/licenses/LICENSE-2.0)
# See accompanying Copyright.txt and LICENSE files for details
##################################... | Python |
asmMsgCategory, "distribution")
switch {
case msg.Distribution.SetWithdrawAddress != nil:
span.SetTag(tagWasmMsgType, fmt.Sprintf("%T", msg.Distribution.SetWithdrawAddress))
case msg.Distribution.WithdrawDelegatorReward != nil:
span.SetTag(tagWasmMsgType, fmt.Sprintf("%T", msg.Distribution.WithdrawDelegator... | Go |
end
local btns = {}
for partName in pairs(partSet) do
Insert(btns, {
Text = partName,
Callback = function()
local toolPart = Tool:FindFirstChild(partName)
if not toolPart then return end
if not toolPart:FindFirstChild("OGSize3") then
local val = InstanceNew("Vector3Value", toolPart)
va... | Lua |
.readEndDocument()
return map
}
override fun getEncoderClass(): Class<Map<K, T>> {
return mapEncoderClass
}
}
class IdMapCodec<T>(mapEncoderClass: Class<Map<Id<*>, T>>,
codec: Codec<T>) : KeyObjectMapCodec<Id<*>, T>(mapEncoderClass, codec... | Kotlin |
value = rows.get(0).getBytes("c_value");
ByteBuffer tags = rows.get(0).getBytes("tags");
assertNotNull(c_value);
assertNull(tags);
}
private <T> void testCompressResults(MetricType<T> type, Metric<T> metric, DateTime start) throws
Exception {
if (metric.getDataPoint... | Java |
rget web --release -- --features parallel
```
3. **Include in Web Project**
```html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Quantum Math Demo</title>
</head>
<body>
<script type="module">
import init, { QuantumMath } from './pkg/rsq.js';
async function run() {
... | Markdown |
"부러진창 철퇴",
[55385] = "마르덴홀드 철퇴",
[55386] = "칼날주먹 철퇴",
[55387] = "강철나무 철퇴",
[55388] = "녹슨망치 철퇴",
[55389] = "칼끝바람 망치",
[55390] = "강철불꽃 망치",
[55391] = "성난송곳니 망치",
[55392] = "네더가드 망치",
[55393] = "부러진창 망치",
[55394] = "마르덴홀드 망치",
[55395] = "칼날주먹 망치",
[55396] = "강철나무 망치",
[55397] = "녹슨망치 망치",
[55398] = "달빛시내 아뮬렛",
[55399] = ... | Lua |
stats.NumMsg += 1
}
}
}
}
}
}
// setLogName sets the output destination for the logger. It is analogous to
// the log.SetOutput function, except it accepts a file name instead of a
// writer.
func setLogName(name string) error {
switch {
case name == "":
log.SetOutput(ioutil.Discard)
case strings.E... | Go |
CipherTestUtils cipherTest, String host, int port,
String protocols, String ciphersuite) throws Exception {
super(cipherTest, ciphersuite);
this.host = host;
this.port = port;
this.protocol = protocols;
this.keyManager = new MyX509KeyManager(
... | Java |
[451] = {"죽음의 비법", {"베랄드의 일지에 따르면 호수덤불괴물과 호수늪지괴물의 이끼가 새로운 역병 제조에 유용할지도 모르겠군. 이 짐승들은 동쪽의 로다미어 호수에 있는 섬에 살고 있지.","또한 그는 일지에 썩은지느러미멀록에게서 발견되는 매우 희귀한 굳어진 종양에 대해서도 언급하고 있네. 그 종양은 너무 희귀해서 베랄드도 하나밖에 입수하지 못한 듯해.","이끼 표본과 함께 그 희귀하고 단단한 종양을 수집해서 언더시티에 있는 수석 연금술사 파라넬님께 가져가도록 하게."}, {"호수늪지이끼 6개, 호수덤불이끼 6개, 그리고 굳어진 종양 1개를 언더시티에 있는 ... | Lua |
_FDFE}/purchaseHistory"
const val DELIVERY_URL = "$URL_FDFE/delivery"
const val URL_CHECK_IN = "$URL_BASE/checkin"
const val URL_UPLOAD_DEVICE_CONFIG = "$URL_FDFE/uploadDeviceConfig"
const val wishlistBackendId = 0
const val searchBackendId = 3
}
}package host.stjin.anonaddy_... | Kotlin |
tEvent event) {
Boolean auto=presenter.getJobModel().getAuto();
RPCS.getJobService().switchAuto(presenter.getJobModel().getId(), !auto, new AbstractAsyncCallback<Void>() {
@Override
public void onSuccess(Void result) {
final ProgressMessageBox box=new ProgressMessageBox("开关 自动调度", "正在配置自动调度");
b... | Java |
const {'1': 'user_id_two', '3': 11, '4': 1, '5': 9, '10': 'userIdTwo'},
],
};
/// Descriptor for `ChannelMessageAck`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List channelMessageAckDescriptor = $convert.base64Decode(
'ChFDaGFubmVsTWVzc2FnZUFjaxIdCgpjaGFubmVsX2lkGAEgASgJUgljaGFubm... | Dart |
rectory to the end of the playlist
mp.commandv('playlist-move', i - 1, #playlist)
end
end
cursor = mp.get_property_number('playlist-pos', 0)
if startover then
mp.set_property('playlist-pos', 0)
end
if playlist_visible then
showplaylist()
end
if settings.display_osd_feedback then
--为排序提... | Lua |
0000001
/* 023F8 8098B278 46802220 */ cvt.s.w $f8, $f4
/* 023FC 8098B27C 46104302 */ mul.s $f12, $f8, $f16
/* 02400 8098B280 0C0343B5 */ jal Matrix_RotateZ
/* 02404 8098B284 00000000 */ nop
/* 02408 8098B288 8E6202D0 */ lw $v0, 0x02D0($s3) ## 000002... | Assembly |
, TRI, /*IncludeSelf*/ true); AR.isValid();
++AR)
if (MBB->isLiveIn(*AR))
return true;
return false;
}
/// Analyze MBB to check if its terminating branch can be turned into an
/// implicit null check. If yes, append a description of the said null check to
/// NullCheckList and return true, else ret... | C++ |
{
let v: Fixed<i16> = Fixed {
values: (10..20).collect(),
};
assert_eq!(v.last::<i64>(&[3, 5, 6, 7]), 17);
}
#[test]
fn min() {
let v: Fixed<i16> = Fixed {
values: vec![100, 110, 20, 1, 110],
};
assert_eq!(v.min::<i64>(&[0, 1, 2, 3, ... | Rust |
GIT
"go" -> FileType.GO
"hs" -> FileType.HASKELL
"htm", "html", "xhtml", "html_vm", "asp" -> FileType.HTML
"http", "rest" -> FileType.HTTP
"png", "jpeg", "jpg", "gif", "ico", "tif", "tiff", "psb", "ami", "apx", "avif", "bmp", "bpg", "brk", "cur", "dds", "dng",... | Kotlin |
<td>leftwards hand: medium-light skin tone</td>
<td></td>
<td></td>
<td>Pia Stockhaus</td>
<td><a download href="src/people-body/hand-fingers-open/1FAF2-1F3FC.svg">⬇</a></td>
</tr>
<tr>
<td>208</td>
<td><img class="lazy" data-s... | HTML |
r>
<tr>
<td class="normalLabel"><span fckLang="DlgSpellChangeTo">Change to:</span></td>
</tr>
<tr valign="top">
<td>
<table border="0" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="normalLabel">
<input class="textDefault" type="text" name="txtsugg" />
... | HTML |
vm.VM;
import org.jikesrvm.objectmodel.RuntimeTable;
import org.vmmagic.Intrinsic;
import org.vmmagic.pragma.*;
import org.vmmagic.unboxed.AddressArray;
/**
* This class holds a triplet for each entry of the JNI function table.
*/
@NonMoving
public final class LinkageTripletTable implements RuntimeTable<AddressArray... | Java |
métier',
hasSkinTone: true),
Emoji('👨🔬',
'biologiste | chimiste | homme | ingénieur | mathématicien | métier | physicien | scientifique',
hasSkinTone: true),
Emoji('👩🔬',
'biologiste | chimiste | femme | ingénieure | mathématicienne | métier | physicienne | scientifique',
... | Dart |
f7, 0x6f, 0x98, 0x9b, 0x60,
0x3e, 0x69, 0x46, 0x5b, 0x17, 0x17, 0x25, 0xa6, 0xfb, 0x16, 0x07, 0x38, 0xea, 0xfa, 0xae, 0xa4,
0xa6, 0x2e, 0x7e, 0x7e, 0x68, 0xd6, 0x5b, 0x70, 0xa3, 0x3f, 0x87, 0xa1, 0x78, 0x8a, 0xf2, 0xe8,
0x5f, 0x14, 0xb9, 0x13, 0xb1, 0xa7, 0xc5, 0xda, 0xfb, 0x11, 0x8c, 0xec, 0xd7, 0x31, 0xf6, 0x1b,
... | Go |
pe, id, true)
if err != nil {
return err
}
asset.Owner = newOwner
assetJSON, err := json.Marshal(asset)
if err != nil {
return err
}
// If the asset is locked, only the lock recipient can update the Owner field
if isBondAssetLocked(s, ctx, asset) {
return fmt.Errorf("Illegal update: cannot change owners... | Go |
/* 12CFC8 80185B58 00002025 */ move $a0, $zero
/* 12CFCC 80185B5C 13C20007 */ beq $fp, $v0, .L80185B7C_ovl5
/* 12CFD0 80185B60 2401000C */ li $at, 12
/* 12CFD4 80185B64 10410005 */ beq $v0, $at, .L80185B7C_ovl5
/* 12CFD8 80185B68 2401000D */ li $at, 13
/* 12CFDC 80185B6C 10410003 */ beq $v0, $at, ... | Assembly |
x58,0x26,0x52,0x80,0x7b]
vgetmantpd zmm2, qword ptr [rdx - 1024]{1to8}, 123
// CHECK: vgetmantpd zmm2, qword ptr [rdx - 1032]{1to8}, 123
// CHECK: encoding: [0x62,0xf3,0xfd,0x58,0x26,0x92,0xf8,0xfb,0xff,0xff,0x7b]
vgetmantpd zmm2, qword ptr [rdx - 1032]{1to8}, 123
// CHECK: vgetmantps zmm22, zmm2... | Assembly |
tm.rotationX = tm.rotationY = tm.z = 0;
tm.perspective = defaultTransformPerspective;
tm.scaleZ = 1;
}
if (tm.svg) {
tm.x -= tm.xOrigin - (tm.xOrigin * a + tm.yOrigin * c);
tm.y -= tm.yOrigin - (tm.xOrigin * b + tm.yOrigin * d);
}
}
if (Math.abs(tm.skewX) > 90 &... | JavaScript |
try {
mockHTTPClient.post.mockResolvedValueOnce({
data: mockChain,
status: 200,
headers: {}
})
const res = await chainRegistry.registerChain(chain)
expect(res).toEqual(mockChain)
} catch (e) {
fail(e)
}
expect(mockHTTPClient.post).... | Typescript |
1;
gridbag.setConstraints(farLeft,gbc);
consolePanel.add(farLeft);
}
if (left!=null)
{
gbc.gridx = 1;
gbc.weightx = 0;
gbc.anchor=GridBagConstraints.EAST;
gbc.fill=GridBagConstraints.NONE;
g... | Java |
] SYNTACTIC_ERROR.INVALID_CONSTANT_PATTERN_BINARY
// [cfe] The binary operator <= is not supported as a constant pattern.
}
switch (o) {
case 1 > 2: // Error
// ^
// [analyzer] SYNTACTIC_ERROR.INVALID_CONSTANT_PATTERN_BINARY
// [cfe] The binary operator > is not supported as a constant patt... | Dart |
settingInfo.getMember("default") as Number).toInt()
val min = (settingInfo.getMember("min") as Number).toInt()
val max = (settingInfo.getMember("max") as Number).toInt()
return IntegerValue(name, default, min, max)
}
/**
* Creates a float value.
* @param settingInfo JavaScrip... | Kotlin |
cb: () => {
multiUserContact.setRoomConfiguration(MultiUserContact.INSTANT_ROOMCONFIG);
let instantRoomPromise = multiUserContact.createInstantRoom();
resolve(instantRoomPromise);
}
},
option: {
label: Translation.t('C... | Typescript |
/* EQEMu: Everquest Server Emulator
Copyright (C) 2001-2016 EQEMu Development Team (http://eqemu.org)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is d... | C |
00\u6b21\uff0c\u7136\u540e\u597d\u56de\u53bb\u95f9\u9769\u547d\u3002", "type": "paragraph"}, {"text": "\u00a0\uff08\u6839\u636e\u7535\u8bdd\u5f55\u97f3\u6574\u7406\uff0c\u4ec5\u4f9b\u53c2\u8003\u3002\uff09", "type": "paragraph"}, {"text": "\u6765\u6e90\uff1a", "type": "source"}, {"text": "\u300a\u6bdb\u4e3b\u5e2d\u65e0... | HTML |
}
return interpolateColor(startColor, endColor, ratio)
}
return Color{R: 0, G: 0, B: 0}
}
func getColorRandom(typ string) Color {
var color Color
if typ == "hot" {
color.R = uint8(205 + rand.Intn(50))
color.G = uint8(rand.Intn(230))
color.B = uint8(rand.Intn(55))
return color
}
return color
}
// Flow ... | Go |
82078, 45.400217],
'pop': 348,
'state': 'MT'
},
{
'_id': '59029',
'city': 'FROMBERG',
'loc': [-108.905658, 45.40269],
'pop': 627,
'state': 'MT'
},
{
'_id': '59030',
'city': 'GARDINER',
'loc': [-110.196258, 45.0493],
'pop': 168,
'state': 'MT'
},
{
'_id': '5... | Dart |
02
.byte FINE
@********************** Track 2 **********************@
.global song519_2
song519_2: @ 0x082B09C6
.byte KEYSH , 0
.byte VOICE , 24
.byte VOL , v120
.byte BENDR , 127
.byte LFOS , 127
.byte LFODL , 0
.byte MOD , 69
.byte PAN , c_v
.byte BEND , c_v
.byte N84 , As2, v127
.byte W08
.byte BE... | Assembly |
">Dimensions</a></li>
<li><a href="#blocks">Blocks</a></li>
<li><a href="#sleeper-volumes">SleeperVolumes</a></li>
</ul>
</nav>
<section id="xml">
<h2>XML</h2>
<table><tr><th>AllowTopSoilDecorations</th><td>False</td></tr>
<tr><th>CopyAirBlocks</th><td>True</td></tr>
<tr><th>DifficultyTier<... | HTML |
.size)
assertFalse("不應該完成所有音頻", responses.any { response -> response.isLastChunk == true })
}
// ========== CT-02: 網路降級和故障測試 ==========
@Test
fun `CT-02a - 高延遲網路條件下串流應該正確處理`() = testScope.runTest {
// Given: 高延遲的串流(>2000ms)
val highLatencyFlow = flow {
emit(mockk<Ch... | Kotlin |
2[1] // -> t18a
vrshr.s32 d24, d8, #12 // t17a
vrshr.s32 d23, d4, #12 // t30a
vmul_vmla d8, d20, d27, d2[1], d2[0] // -> t29a
vmul_vmls d4, d28, d19, d3[0], d3[1] // -> t19a
vrshr.s32 d20, d6, #12 // t18... | Assembly |
/ajax/libs/slick-carousel/1.6.0/slick-theme.css' rel='stylesheet' type='text/css'/>
<script>//<![CDATA[
$(document).ready(function(){
$('.related-posts').slick({
autoplay:true,
autoplaySpeed:2000,
fade:false,
dots:true,
arrows:false,
centerMode:false,
slidesToShow:4,
slidesToScroll:1,
prevArrow: '<button type="button" ... | HTML |
w(messgaeBuilder.ToString(), "哎呦被玩坏了",
MessageBoxButton.YesNo, MessageBoxImage.Error, MessageBoxResult.No);
if (result == MessageBoxResult.Yes)
{
MessageBox.Show("已复制错误信息到剪切板,即将跳转至Github", "谢谢");
Thread t = new Thread(() =>
{
... | C# |
/*********************************************************************/
/* */
/* Optimized BLAS libraries */
/* By Kazushige Goto <kgoto@tacc.utexas.edu> */
/* ... | Assembly |
));\n vals.insert(\"y\".to_string(), Q(4, 1));\n\n let result = poly.eval(\u0026vals).unwrap();\n assert_eq!(result, Q(11, 1));\n}\n\n#[test]\nfn test_monomial_mul_correctness() {\n // x * y multiplied by x * y should give x^2 * y^2\n let m1 = Monomial::var(\"x\").mul(\u0026Monomial::var(\"y\"));\n le... | HTML |
fv( v, 2, vecP2.Base() ); \
meshBuilder.TexCoord4fv( v, 3, vecP3.Base() ); \
meshBuilder.Color4ub( v + 1, nRed, nGreen, nBlue, nAlpha ); \
meshBuilder.Position3f( v + 1, (t), u, 1 ); \
meshBuilder.TexCoord4fv( v + 1, 0, vecP0.Base() ); \
meshBuilder.TexCoord4fv( v + 1, 1, vecP1.Base() ); \
meshBuild... | C++ |
aximum Improvement>')
lines.append('')
lines.append(' #<Lower Rarities Receive Less Improvement>')
lines.append('')
for (gun_name,
start_preadd, target_preadd,
bodies,
(old_max_worst, old_max_best),
(old_min_worst, old_min_best),
materials,
) in weapon_info:
li... | Python |
50; ++y) {
for (x = 0; x < 50; ++x) {
cost = costMatrix.get(x, y);
if (cost > 0) {
vis.circle(x, y, {radius: costMatrix.get(x, y) / max / 2, fill: color});
}
}
}
} else {
for (y = 0; y < 50; ++y) {
for (x = 0; x < 50; ++x) {
vis.text(costMatrix.get(x, y).toString(), x, y, {... | Typescript |
KiZ56Pk{flex-direction:row;font-size:15px;margin:auto;width:50%}.LH5jpLM9Pcre3KiZ56Pk,.gaZ0t1mS3ZuvJhZACYt6{color:#fff;display:flex;justify-content:center;text-align:center}.gaZ0t1mS3ZuvJhZACYt6{align-items:center;cursor:pointer;font-size:13px;height:55px;padding:0 30px;text-decoration:none}.gaZ0t1mS3ZuvJhZACYt6:hover{... | CSS |
+)
patches[i] = GetType().GetMethod("Patch" + (i + 1), AccessTools.all);
var patchInstances = new[]
{
new Patch(patches[0], 0, "owner A", Priority.Normal, [], [], false),
new Patch(patches[1], 1, "owner B", Priority.Normal, ["owner A"], ["owner C"], false),
new Patch(patches[2], 2, "owner C", Pri... | C# |
cov::Identity();
cov F_x2 = cov::Identity();
cov L_ = cov::Identity();
processModel *f;
processMatrix1 *f_x;
processMatrix2 *f_w;
measurementModel *h;
measurementMatrix1 *h_x;
measurementMatrix2 *h_v;
measurementModel_dyn *h_dyn;
measurementMatrix1_dyn *h_x_dyn;
measurementMatrix2_dyn *h_v_dyn;
measure... | C++ |
vst1.16 {q2, q3}, [r0, :128]!
vaddw.u16 q8, q8, d4
vaddw.u16 q9, q9, d5
vaddw.u16 q10, q10, d6
vaddw.u16 q11, q11, d7
bgt 1b
cmp r4, #0
vmov q0, q2
vmov q1, q3
... | Assembly |
let mut security_property: sgx_ps_sec_prop_desc_ex_t = Default::default();
let ret = unsafe { sgx_get_ps_sec_prop_ex(&mut security_property as * mut sgx_ps_sec_prop_desc_ex_t) };
match ret {
sgx_status_t::SGX_SUCCESS => Ok(security_property),
_ => Err(ret),
}
}
// NSFetchedResultsControl... | Rust |
len2)
local ghost = {Model = net.ReadString(), PhysicsObjects = {}}
for k = 0, net.ReadInt(8) do
ghost.PhysicsObjects[k] = {Angle = net.ReadAngle(), Pos = net.ReadVector()}
end
AdvDupe2.GhostEntities[AdvDupe2.CurrentGhost] = MakeGhostsFromTable(ghost)
AdvDupe2.CurrentGhost = AdvDupe2.CurrentGhost + 1
end)
fun... | Lua |
bool SimpleReduction = ReductionKind == OMPD_simd;
// Emit nowait reduction if nowait clause is present or directive is a
// parallel directive (it always has implicit barrier).
CGM.getOpenMPRuntime().emitReduction(
*this, D.getEndLoc(), Privates, LHSExprs, RHSExprs, ReductionOps,
{WithN... | C++ |
ivate key format, (b) the entire input key file is
* encrypted, or (c) we're outputting TEXT, in which case we
* want all of the input file including private material if it
* exists.
*/
bool intype_entirely_encrypted =
intype == SSH_KEYTYPE_OPENSSH_PEM ||
intype == SSH_KEYTYPE_OP... | C |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.