content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
</param>
protected override int GetLastVisibleIndex(bool strict=false)
{
return (base.GetLastVisibleIndex(strict) + 1) * ItemsPerBlock() - 1;
}
/// <summary>
/// Scrolls the update.
/// </summary>
protected override void ScrollUpdate()
{
var oldTopHiddenItems = topHiddenItems;
topHiddenIte... | C# |
FN_SIZE FLOAT_SYMBOL(InPlace)
.endm
//------------------------------------------------------------------------------
// Use the macros above to create each vertex for each type of non linearity.
//
// Each specifies an instruction. In the case of RELU that instruction has a
// third operand which must be passed in a... | Assembly |
恰好落在直线 $y=\xi x$ 上。后者意味着向量 $\vec\xi$ 与 $\vec\xi_n$ 共线,即 $\xi=\dfrac{p_n}{q_n}$ 为有理点。这个过程就可以得到前面示意图中的图形。Boris Delaunay 将这个过程形象地称为鼻子拉伸算法(nose-streching algorithm)[^nose-streching]。
- 如果需要快速计算每一步将 $\vec\xi_{k-1}$ 添加到 $\vec\xi_{k-2}$ 需要的次数,可以借助叉积。因为 $\vec\xi\times\vec\xi_{k-1}$ 与 $\vec\xi\times\vec\xi_{k-2}$ 符号相反,所以如... | Markdown |
= buffer.int
val offsetFrames = buffer.int
val offsetGlCommands = buffer.int
val offsetEnd = buffer.int
companion object {
val size = Int.BYTES * 17
}
/** Validate the header of the file */
fun validate(fileSize: Int, configFrameID: Int) {
... | Kotlin |
import 'peer_card.dart';
typedef PeerFilter = bool Function(Peer peer);
typedef PeerCardBuilder = Widget Function(Peer peer);
class PeerSortType {
static const String remoteId = 'Remote ID';
static const String remoteHost = 'Remote Host';
static const String username = 'Username';
static const String status ... | Dart |
assertThat(RendererCapabilities.getDecoderSupport(capabilitiesDvheDtr))
.isEqualTo(RendererCapabilities.DECODER_SUPPORT_PRIMARY);
}
@Test
public void getDecoderInfo_withNonPerformantHardwareDecoder_returnsHardwareDecoderFirst()
throws Exception {
// AVC Format, Profile: 8, Level: 8192
F... | Java |
(!strcmp(arg, "-gdrf"))
{
argp++;
CHECK_OPTION_VALUE(argp);
ctx->GDR_Param_file_path = strdup(*argp);
}
else if (!strcmp(arg, "-gdrof"))
{
argp++;
CHECK_OPTION_VALUE(argp);
ctx->GDR_out_file_path = strdup(*argp);
... | C++ |
activated editable
* @return void
*/
applyButtonConfig: function (obj) {
var config = this.getEditableConfig(obj),
button, i, len;
if ( typeof config === 'object' ) {
var config_old = [];
jQuery.each(config, function(j, button) {
if ( !(typeof j === 'number' && typeof button === 'str... | JavaScript |
bug = true; }
else if((!nds9_debug) && (core_cpu_nds7.arm_mode == NTR_ARM7::ARM)) { arm_debug = true; }
u32 debug_code = (nds9_debug) ? core_cpu_nds9.debug_code : core_cpu_nds7.debug_code;
//When running until next VBlank, stop when done
if((db_unit.vb_count) || (db_unit.last_command == "vb"))
{
if((db_unit.vb... | C++ |
_50_dex"]=7920,
["minion_attacks_chance_to_blind_on_hit_%"]=7921,
["minion_attacks_chance_to_taunt_on_hit_%"]=3077,
["minion_base_physical_damage_%_to_convert_to_chaos"]=1670,
["minion_base_physical_damage_%_to_convert_to_cold"]=1665,
["minion_base_physical_damage_%_to_convert_to_fire"]=1663,
["minion_base_physic... | Lua |
#!/usr/bin/env python3
import tensorflow as tf
import numpy as np
import os
flags = tf.app.flags
flags.DEFINE_string("input", "", "The model checkpoint")
flags.DEFINE_string("output", "", "The output numpy file")
FLAGS = flags.FLAGS
def main(_):
if FLAGS.input == '':
print('You must specify --input valu... | Python |
/* grabbag - Convenience lib for various routines common to several tools
* Copyright (C) 2013-2016 Xiph.org Foundation
*
* 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... | C |
(Foo::<Runtime>::hashed_key().to_vec(), true, true);
b.whitelist(Value::<Runtime>::hashed_key().to_vec(), true, true);
b.bench(|| {
let _ = Test::set_foo();
});
}
benches!(whitelist, set_value, set_foo, remove_all_bar);
<reponame>mxpv/hypervisor-framework
// Apple Silicon example.
// Adapted from https://github.c... | Rust |
")
assertLinkGoesTo("/", By.id("backForwardPath"), "/bob/link")
assertLinkGoesTo("/", By.id("backPath"), "/")
assertLinkGoesTo("/", By.id("dotPath"), "/bob/link")
assertLinkGoesTo("/", By.id("dotBackPath"), "/bob/link")
assertLinkGoesTo("/", By.id("rootBackPath"), "/bob/link")
... | Kotlin |
l-2 3.46c-.14.22-.08.5.1.64l2.12 1.65c-.04.32-.07.65-.07.98s.02.66.06.98l-2.1 1.65c-.2.15-.25.42-.13.64l2 3.46c.12.22.4.3.6.22l2.5-1c.52.4 1.08.73 1.7.98l.37 2.65c.04.24.25.42.5.42h4c.25 0 .46-.18.5-.42l.37-2.65c.6-.25 1.17-.6 1.7-.98l2.48 1c.23.1.5 0 .6-.22l2-3.46c.13-.22.08-.5-.1-.64l-2.12-1.65zM12 15.5c-1.93 0-3.5-1... | CSS |
return _student!;
}
_i3.CourseUuidTable get course {
if (_course != null) return _course!;
_course = _i1.createRelationTable(
relationFieldName: 'course',
field: EnrollmentInt.t.courseId,
foreignField: _i3.CourseUuid.t.id,
tableRelation: tableRelation,
createTable: (foreignTa... | Dart |
.isTagNode( document.getElementById("test"), "div" ) );
*
* </script>
* ```
*/
isTagNode:function (node, tagNames) {
return node.nodeType == 1 && new RegExp('\\b' + node.tagName + '\\b','i').test(tagNames)
},
/**
* 给定一个节点数组,在通过指定的过滤器过滤后, 获取其中满足过滤条件的第一个节点
* @method filt... | JavaScript |
r_yuanshu"] = "测试袁术",
["&super_yuanshu"] = "袁术",
["illustrator:super_yuanshu"] = "吴昊",
["super_yongsi"] = "庸肆",
[":super_yongsi"] = "锁定技。摸牌阶段,你额外摸X张牌。弃牌阶段开始时,你须弃置X张牌。",
["super_caoren"] = "测试曹仁",
["&super_caoren"] = "曹仁",
["super_jushou"] = "据守",
[":super_jushou"] = "结束阶段开始时,你可以摸X张牌,然后将武将牌翻面。",
["super_max_c... | Lua |
[3]) << ' ' << std::endl;
os << util::tab("A4 - A7");
os << util::hex(reg.a[4]) << ' ' << util::hex(reg.a[5]) << ' ';
os << util::hex(reg.a[6]) << ' ' << util::hex(reg.a[7]) << ' ' << std::endl;
os << std::endl;
os << util::tab("Flags");
os << (reg.sr.t1 ? 'T' : ... | C++ |
from collections import deque
from typing import List, Tuple
from collections import deque
def find_minimum_cost(n, cost, k, m):
"""
This function finds the minimum cost and path for a given set of costs and constraints.
Args:
- n (int): The number of elements in the cost list.
- cost (List[int]... | Python |
[]string{})
}
func writeParsedFile(parsedFile *hclwrite.File, toFile string) error {
return ioutil.WriteFile(toFile, parsedFile.Bytes(), 0644)
}
func moveLocals(parsedInFile, parsedOutFile *hclwrite.File) {
for _, block := range parsedInFile.Body().Blocks() {
if block.Type() == "locals" {
fmt.Printf("## Foun... | Go |
WEAK(save_boot_params)
#if (IS_ENABLED(CONFIG_BLOBLIST))
/* Calculate the PC-relative address of saved_args */
adr x9, saved_args_offset
ldr w10, saved_args_offset
add x9, x9, w10, sxtw
stp x0, x1, [x9]
stp x2, x3, [x9, #16]
#endif
b save_boot_params_ret /* back | Assembly |
alizer.serialize_bool(x),
Self::Int8(x) => serializer.serialize_i8(x),
Self::Int16(x) => serializer.serialize_i16(x),
Self::Int32(x) => serializer.serialize_i32(x),
Self::Int64(x) => serializer.serialize_i64(x),
Self::UInt8(x) => serializer.serialize_u8(x),
Self::UInt16(x) => seriali... | Rust |
seats.forEach((x, i) => {
x.forEach((y, j) => {
if (y === 'L' && viewable(seats, i, j) === 0) {
copy[i][j] = '#';
changes = true;
} else if (y === '#' && viewable(seats, i, j) >= 5) {
copy[i][j] = 'L';
changes = true;
}
});
});
if (ch... | Typescript |
}
writer := func(toggle bool) {
defer wg.Done()
cm := ipv4.ControlMessage{
Src: net.IPv4(127, 0, 0, 1),
}
if ifi != nil {
cm.IfIndex = ifi.Index
}
if err := p.SetControlMessage(cf, toggle); err != nil {
t.Error(err)
return
}
n, err := p.WriteTo(data, &cm, dst)
if err != nil {
t.Error(... | Go |
eaderThrowsWithBigEndian() throws Exception {
ByteArrayProvider provider =
new ByteArrayProvider(CartV1TestConstants.TEST_CART_GOOD_STD_KEY);
CartV1File cartFileBinaryReader = new CartV1File(new BinaryReader(provider, false));
// assertNull here is equivalent to fail() but creates a used reference to the obj... | Java |
Type(XmlAccessType.FIELD)
@XmlType(name = "")
@XmlRootElement(name = "NodeRef")
public class NodeRef {
@XmlAttribute(name = "id", required = true)
protected String id;
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
... | Java |
#include <stdint.h>
#include "util/macros.h"
#include "fec.h"
// Encoding table. Map each 4-bit value to 8 bits. Values
// have been chosen to produce a mostly DC-Free encoding.
static const uint8_t symbols[16] = {
0x0f, 0x18, 0x24, 0x33, 0x42, 0x55, 0x69, 0x7e,
0x81, 0x96, 0xaa, 0xbd, 0xcc, 0xdb, 0xe7, 0xf0... | C |
#include "stm32f4xx.h"
#include "ucos_ii.h"
#include "GUI.h"
#include "Panel.h"
#include "Gpio.h"
#include "progbar.h"
/********************************************************************************************
*ƣvoid Panel(void)
*
*ڲ
*
*ڲ
*
*˵ʾ
***********************************************************************... | C |
= 72000 * VedaKaalaGhataka.samvatsara,
dvaaparaYugaSandhyaamsa = 72000 * VedaKaalaGhataka.samvatsara,
dvaaparaYuga = 10 * VedaKaalaGhataka.dvaaparaYugaSandhya,
totalDvaaparaYuga = 864000 * VedaKaalaGhataka.samvatsara,
kaliYugaSandhya = 36000 * VedaKaalaGhataka.samvatsara,
kaliYugaSandhyaamsa = 36000... | Typescript |
ion.method(
#unlink,
[providerId],
),
returnValue: _i5.Future<_i4.User>.value(_FakeUser_7(
this,
Invocation.method(
#unlink,
[providerId],
),
)),
) as _i5.Future<_i4.User>);
@override
_i5.Future<void> updateEmail... | Dart |
V2ButtonsEvent(
buttons,
);
_buttonsHandler!(event);
}
break;
case 1:
if (_ringHandler != null) {
var offset = 0;
final ring = innerContext.getProxy(ByteData.view(data.buffer).getUint32(offset, Endian.little)).objectId;
offset += 4;
var event = ZwpTabletPadGroupV2RingEvent(
r... | Dart |
s } }, pane)
else
wezterm.background_child_process({ 'bash', '-ilc', -- For macOS users, use zsh instead
'multiplexer resize_pane ' .. direction
})
end
end)
return opts
end
config.set_environment_variables = {
MULTIPLEXER_LIST = 'wezterm,i3'
}
config.keys = {
activate_pane({ key = '... | Markdown |
effectively "subtracting" that object. Multiple selections
* may also be passed as an array or directly as enumerated arguments. reject is
* available as an instance method on extended objects.
* @param find The property (string), properties (object) or RegExp to remove from `obj`.
* @return Modified `obj` with `fi... | Typescript |
transition:all .2s ease 180ms ease-in-out 0s}.UploadDialogContents .drop_zone input[name=url]{width:168px;display:block;float:left;margin-left:165px}.UploadDialogContents .drop_zone .choices{margin-top:32px}.UploadDialogContents .drop_zone .upload_spinner,.UploadDialogContents .drop_zone .__contentfor_loading_spinner{m... | CSS |
>> tracker.defaultLength_;
}
/* End OBJTRACK.CPP *************************************************/
/*
* C O L O D A T A . H P P
* (c) Charybdis Limited, 1998. All Rights Reserved
*/
/*
W4dColourData
*/
#ifndef _WORLD4D_COLODATA_HPP
#define _WORLD4D_COLODATA_HPP
#include "base/base.hpp"
#include "base/pers... | C++ |
CTSETPIECESDEF INTEGER");
}
//store FirstName, Nickname into Playertable
if (!columnExistsInTable("FirstName", SpielerTable.TABLENAME)) {
connectionManager.executeUpdate("ALTER TABLE SPIELER ADD COLUMN FirstName VARCHAR (100)");
connectionManager.executeUpdate("ALTER TABLE SPIELER ADD COLUMN NickName VARC... | Java |
80610BD0@ha
/* 8033B400 00337060 7C 7F 1B 78 */ mr r31, r3
/* 8033B404 00337064 3B BD 0B D0 */ addi r29, r29, lbl_80610BD0@l
/* 8033B408 00337068 7C 9C 23 78 */ mr r28, r4
/* 8033B40C 0033706C 80 1D 00 8C */ lwz r0, 0x8c(r29)
/* 8033B410 00337070 7C BB 2B 78 */ mr r27, r5
/* 8033B414 00337074 7C DE 33 78 */ mr r3... | Assembly |
.heap.GeneralPurposeAllocator(.{
.safety = true,
}){};
const allocator = gpa.allocator();
defer _ = gpa.deinit();
var cat = try Cat.InstanceType.create("Garfield", 7).interface.new(allocator);
defer cat.interface.delete();
var dog = try Dog.InstanceType.create("Lassie", 12, "Rough Coll... | Markdown |
func (x *Plugin_Structured) GetTtl() *Plugin_Ttl {
if x, ok := x.GetAction().(*Plugin_Structured_Ttl); ok {
return x.Ttl
}
return nil
}
type isPlugin_Structured_Action interface {
isPlugin_Structured_Action()
}
type Plugin_Structured_Get struct {
Get *Plugin_Get `protobuf:"bytes,6,opt,name=get,proto3,oneof"`
... | Go |
/*
Copyright (C) 2021 CodeStrikers.org
This file is part of AgileDotNetSlayer.
AgileDotNetSlayer is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at you... | C# |
ITY);
}
/**
* Check if it's the security enabled mode.
*
* @return true if security is enabled.
*/
public boolean isSecurityEnabled() {
return !isDevMode() && getControllerProperties().getPropertyBoolean(PROP_CONTROLLER_SECURITY);
}
/**
* Get system security level from system properties.
*
* @ret... | Java |
0, 0x2b0($t2)
/* B00984 800897E4 3C0FF560 */ lui $t7, (0xF5600400 >> 16) # lui $t7, 0xf560
/* B00988 800897E8 35EF0400 */ ori $t7, (0xF5600400 & 0xFFFF) # ori $t7, $t7, 0x400
/* B0098C 800897EC 24980008 */ addiu $t8, $a0, 8
/* B00990 800897F0 AD5802B0 */ sw $t8, 0x2b0($t2)
/* B00994 800897F4 AC800004 */ sw ... | Assembly |
#!/usr/bin/env python3
import rospy
import threading
from std_msgs.msg import Bool, Int32, String
from geometry_msgs.msg import Point, PoseStamped
from sensor_msgs.msg import JointState
from moveit_ctrl.srv import JointMoveitCtrl, JointMoveitCtrlRequest
import math
class FruitPicker:
def __init__(self):
r... | Python |
navtag-text-color: #CAD3E0;--navtag-active-bg-color: #5DADE2;--navtag-active-text-color: #162A3A;--menu-prompt-text-color: #162A3A;--menu-prompt-bg-color: #5DADE2;--menu-prompt-selected-color: linear-gradient(298deg, #3498DB, #48C9B0);--btn-prompt-text-color: #CAD3E0;--btn-prompt-tactive-text-color: #162A3A;--btn-promp... | CSS |
var academicSystem by mutableStateOf<AcademicSystem?>(null)
private set
/** 是否正在登录 */
var isLoggingIn by mutableStateOf(false)
private set
/** 周次 */
val weekFlow = Stores.prefs.data.map { prefs ->
val now = LocalDate.now()
val date = prefs[PrefsKeys.TERM_START_DATE]?.le... | Kotlin |
namespace TraktNET
{
/// <summary>Determines the audio channel type in a collection item's metadata.</summary>
[TraktEnum]
public enum TraktMediaAudioChannel
{
/// <summary>An invalid audio channel type.</summary>
Unspecified,
/// <summary>The collection item has 1.0 audio chan... | C# |
{
return compareUploadingNow
}
val compareUpdateTime = compareUpdateTime(upload1, upload2)
if (compareUpdateTime != 0) {
return compareUpdateTime
}
val compareUploadId = compareUploadId(upload1, upload2)
if (compareUploadId != 0) {
r... | Kotlin |
@Author:admin
* @Description:Spu业务层接口实现类
* @Date 2019/6/14 0:16
*****/
@Service
public class SpuServiceImpl implements SpuService {
@Autowired
private SpuMapper spuMapper;
@Autowired
private IdWorker idWorker;
@Autowired
private SkuMapper skuMapper;
@Autowired
private CategoryMap... | Java |
= (device_name ? device_name : ""),
.device_confidence = device_confidence,
.trait_value = (trait_value ? trait_value : ""),
.trait_confidence = trait_confidence};
}
return Intent{};
}
WitAiChunkedUploader::~WitAiChunkedUploader()
{
delete m_wifi_client;
}
/* Copyright ... | C++ |
const tickCurrent = Number(pool.tick);
const tickLower = Number(position.tickLower.tickIdx);
const tickUpper = Number(position.tickUpper.tickIdx);
const liquidity = new bn(position.liquidity);
// Check out the relevant formulas below which are from Uniswap Whitepaper Section 6.3 and 6.4
// 𝑓𝑟 =𝑓𝑔−𝑓𝑏(𝑖... | JavaScript |
&'a [Piece<'a>]),
}
pub struct PluralArm<'a> {
selector: Either<parse::PluralKeyword, uint>,
result: &'a [Piece<'a>],
}
pub struct SelectArm<'a> {
selector: &'a str,
result: &'a [Piece<'a>],
}
<gh_stars>0
// Licensed under the Apache License, Version 2.0
// <LICENSE-APACHE or http://www.apache.org/li... | Rust |
bufReader *bufio.Reader // 有缓存的读取 (接收端)
bufWriter *bufio.Writer // 有缓存的写入 (传送端)
connRead net.Conn // pipe 的读取连线 (接收端)
connWrite net.Conn // pipe 的写入连线 (传送端)
wg *sync.WaitGroup // 在测试流程的操作边界等待
replyFunc ReplyFuncType // 设定相对应的回应函数
err error // 错误
}
```
### 类 DcMocker 函... | Markdown |
(key, spaceOwner[:]...)
}
func appCallTransfer(native *native.NativeService, contract common.Address, from common.Address, to common.Address, amount uint64) error {
var sts []ont.TransferState
sts = append(sts, ont.TransferState{
From: from,
To: to,
Value: amount,
})
transfers := ont.TransferStates{
St... | Go |
isable loopback.
);
//Set gain.
self.cs4265.reg.PGAA.write(cs4265::PGAA::GAIN.val(params.adcgaina as u8));
self.cs4265.reg.PGAB.write(cs4265::PGAB::GAIN.val(params.adcgainb as u8));
//Set soft ramp, zero crossing detection and line level.
self.cs4265.reg.AICTL.modify (
cs42... | Rust |
3), c.Get (5));
//Define Node link properties
PointToPointHelper regLink;
regLink.SetDeviceAttribute ("DataRate", DataRateValue (regLinkBandwidth));
regLink.SetChannelAttribute ("Delay", TimeValue (regLinkDelay));
NetDeviceContainer d0d2 = regLink.Install (n0n2);
NetDeviceContainer d1d2 = regLink.Install ... | C++ |
var sampleInfos = new List<SampleInfo>();
result = dataReader.Take(samples, sampleInfos);
if (result == ReturnCode.Ok)
{
receivedData.AddRange(samples);
}
}
var sample = new AthleteResult();
var samp... | C# |
----------
SECTION DATA
; ------------------------------------------------------
bspline_base_matrix:
dc.w -1,+3,-3,+1
dc.w +3,-6,+3,+0
dc.w -3,+0,+3,+0
dc.w +1,+4,+1,+0
; ------------------------------------------------------
SECTION BSS
; ------------------------------------------------------
bspline_p... | Assembly |
auge{MetricValueType: MetricValueType{pmetric.NumberDataPointValueTypeInt}, Async: true}, "Gauge", false, false, "Int64ObservableGauge", true},
{&Gauge{MetricValueType: MetricValueType{pmetric.NumberDataPointValueTypeDouble}, Async: true}, "Gauge", false, false, "Float64ObservableGauge", true},
{&Sum{}, "Sum", true... | Go |
output_tensor = self._build_tensor(
src + 1, value=-1, device=device
)
dist.recv(output_tensor, src)
self.assertEqual(output_tensor, expected_tensor)
def test_send_recv_crosscard(self):
self._test_send_recv_crosscard()
def ... | Python |
'9': 0,
'10': 'sponsor'
},
{
'1': 'activity_entrance_module',
'3': 20,
'4': 1,
'5': 11,
'6': '.bilibili.app.viewunite.common.ActivityEntranceModule',
'9': 0,
'10': 'activityEntranceModule'
},
{
'1': 'serial_season',
'3': 21,
'4': 1,... | Dart |
yVenues.invoke(clearOutdatedVisits = false)
val alert2 = userInbox.fetchInbox() as UserInboxItem
assertEquals(ShowVenueAlert(venue3.id, INFORM), alert2)
testAppContext.getRiskyVenueAlertProvider().riskyVenueAlert = null
testAppContext.riskyVenuesApi.riskyVenuesResponse ... | Kotlin |
double get fontSize {
return Global.setting.fontSize;
}
set fontSize(double size) {
Global.setting.fontSize = size;
Global.saveProfile();
notifyListeners();
}
}
///吧状态Model
class ForumState with ChangeNotifier {
final List<LikeFormWidgetModel> _forums = [];
List<LikeFormWidgetModel> get for... | Dart |
this.packet({type: 'disconnect'});
this.manager.onLeave(this.id, this.namespace.name);
this.$emit('disconnect', 'booted');
}
}
return this;
};
/**
* Send a message.
*
* @api public
*/
Socket.prototype.send = function (data, fn) {
var packet = {
type: this.flags.json ? 'json' :... | JavaScript |
oXml('ApplyServerSideEncryptionByDefault'),
if (bucketKeyEnabled != null)
_s.encodeXmlBoolValue('BucketKeyEnabled', bucketKeyEnabled),
];
final $attributes = <_s.XmlAttribute>[
...?attributes,
];
return _s.XmlElement(
_s.XmlName(elemName),
$attributes,
$children,
... | Dart |
eds)
Y_pred = KMeans(nb_classes, random_state=42).fit(embeds)#.predict(embeds)
Y_pred = Y_pred.labels_
# 可视化
label_to_color = {0: '#FF9671', 1: '#008E9B', 2: '#B39CD0', 3: 'red', 4:'blue'} # 标签到颜色的映射关系
colors = [label_to_color[l] for l in label] # 根据标签获取颜色
plt.scatter(reduced_features[:, 0], ... | Python |
2",
"IdConcepto": "ar_pros_Supplement",
"IdContextoPlantilla": "ctx",
"Hechos": [],
"IdUnidadPlantilla": null,
"ValorNumerador": null,
"ValorDenominador": null,
"Precision": null,
"Decimales": null,
"Valor": "#valorDefaultSupplement"
},
"ar_pros_SupplementLegend_3e8b26a3-5cba-4c9... | Typescript |
x,
totalChapter: mBookShelf.totalChapter,
chapterLink:
mBookShelf.chapters[mBookShelf.chapterIndex].link);
mBookShelf.insertOrReplaceToDB(context, _book);
}
}),
IconButton(
icon... | Dart |
from collections import OrderedDict
import torch
import numpy as np
import matplotlib.pyplot as plt
from scipy.spatial import cKDTree
from torch.nn.utils.rnn import pad_sequence
import time
# 定义子网络列表
def NN_list(layers):
depth = len(layers) - 1
activation = torch.nn.Tanh
layer_list = list()
for i in ra... | Python |
Create(savedInstanceState)
setContentView(ActivityStatsBinding.inflate(layoutInflater))
setDisplayHomeAsUp(isEnabled = true, showUpAsClose = false)
val adapter = BaseListAdapter<StatsRecord>()
.addDelegate(ListItemType.FEED, statsAD(this))
.addListListener(this)
viewBinding.recyclerView.adapter = adapter
... | Kotlin |
reply.
DateTime? editedTime;
DriveReply({
this.operate,
this.creator,
this.description,
this.createdTime,
this.deleted,
this.htmlDescription,
this.id,
this.resourceType,
this.editedTime,
});
factory DriveReply.fromMap(Map<String, dynamic> map) {
return DriveReply(
... | Dart |
tk.MustQuery("select timediff('2014-1-2 12:00:00', '12:00:00');")
result.Check(testkit.Rows("<nil>"))
result = tk.MustQuery("select timediff('12:00:00', '2014-1-2 12:00:00');")
result.Check(testkit.Rows("<nil>"))
result = tk.MustQuery("select timediff('2014-1-2 12:00:00', '2014-1-1 12:00:00');")
result.Check(test... | Go |
#include "game/ui/scrollable.h"
#include "config.h"
#include "utils.h"
static void M_Clamp(UI_SCROLLABLE *const s, const bool include_selected_item)
{
if (include_selected_item && s->sel_item != -1) {
CLAMP(s->first_item, s->sel_item - s->vis_items + 1, s->sel_item);
}
CLAMPG(s->first_item, s->max... | C |
メソッドに重複チェック追加
- ✅ 新しいエラーケースの検出
### 変更なし
- ✅ 基本的な変数定義・参照は同じ
- ✅ 未定義変数エラーも同じ
- ✅ プログラム解析の流れも同じ
## 🎉 完了後の効果
lesson_3_2が完了すると:
- より堅牢な変数管理システム
- 実用的なエラー検出機能
- **lesson_3_3**でブロックスコープに進む準備完了
**シンプルな改良**なので、リラックスして取り組んでください!# Lesson 3-5: シャドウイング
lesson_3_4でネストしたスコープができるようになりましたね。今度は、**シャドウイング(変数の隠蔽)**の詳細な動作を学びます。
## �... | Markdown |
de la cerca',
'selected' : 'Elements seleccionats',
'about' : 'Quant a',
'shortcuts' : 'Dreceres',
'help' : 'Ajuda',
'webfm' : 'Gestor de fitxers web',
'ver' : 'Versió',
'protocolver' : 'versió de protocol',
'homepage' : 'Pàgi... | JavaScript |
if (contents.any()) {
switch.button({ it.add(Core.bundle["dialog.mods.contents"], 0.85f) }, switchBut) { setupContent(2) }
.margin(12f).checked { current == 2 }.disabled { t -> t.isChecked }
}
}.grow().padBottom(0f)
details.row()
... | Kotlin |
l) && (std::abs(t2 - t3) < tol) &&
(std::abs(t3 - t4) < tol) && (std::abs(t4 - t5) < tol) &&
(std::abs(t5 - t6) < tol) && (std::abs(t6 - t7) < tol) &&
(std::abs(t7 - t8) < tol) && (std::abs(t8 - t9) < tol));
}
for (MatrixIndexT i = 0; i < 5; i++) {
MatrixIndex... | C++ |
x24e4, 0x24f0, 0x24fc, 0x250c, 0x2514, 0x2524, 0x2528, 0x2538,
// Entry 240 - 27F
0x254a, 0x2552, 0x2558, 0x2564, 0x2572, 0x257c, 0x258a, 0x259c,
0x25ae, 0x25c4, 0x25d6, 0x25e2, 0x2620, 0x2628, 0x2658, 0x2660,
0x2685, 0x2685, 0x26aa, 0x26de, 0x2705, 0x2726, 0x2749, 0x2770,
0x27a1, 0x27c3, 0x27e8, 0x27e8, 0x280b, 0... | Go |
name="teja"
#print("Hello"+name)
print(name.capitalize()) #--only first letter is capitalized
print(name.find("a"))
print(name.upper()) #--ALL CAPITALS
print(name.lower()) #--All lower
print(name.isdigit()) #--checks is it a number or not
print(name.isalpha()) #Checks it consists of only string letters then the out... | Python |
M209.4 39.5c-9.1-9.6-24.3-10-33.9-.9L33.8 173.2c-19.9 18.9-19.9 50.7 0 69.6L175.5 377.4c9.6 9.1 24.8 8.7 33.9-.9s8.7-24.8-.9-33.9L66.8 208 208.5 73.4c9.6-9.1 10-24.3 .9-33.9zM352 64c0-12.6-7.4-24.1-19-29.2s-25-3-34.4 5.4l-160 144c-6.7 6.1-10.6 14.7-10.6 23.8s3.9 17.7 10.6 23.8l160 144c9.4 8.5 22.9 10.6 34.4 5.4s19-16.6... | JavaScript |
7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
m.created_at = value
}
// SetDismissedAt sets the dismissed_at property value. The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.
func (m *CodeScanningAlert) SetDismissedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744... | Go |
xt("Tallan’ghanni köchürüwalidu");
toolOchur.ToolTipText = gLang.GetText("Tallan’ghanni öchürüwétidu");
toolYeniwal.ToolTipText = gLang.GetText("Qilghan meshghulattin yéniwalidu");
toolYPushayman.ToolTipText = gLang.GetText("Yéniwalghangha pushayman qilidu");
toolDawam.ToolTipText = gLang.GetText("Nur belg... | C# |
r_description != vendor_descriptions.end()) {
//save the description to disk
std::string changelog_file = (cache_path / (vendor_name + ".changelog")).string();
boost::nowide::ofstream c;
c.open(changelog_file, std::ios::out | std::ios::trunc);
... | C++ |
596+4
mvn r6, #0
mov r0, #0
bl dprint_vfmw
mov r0, r6
ldmfd sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
.L1597:
.align 2
.L1596:
.word vfmw_Osal_Func_Ptr_S
.word .LC139
UNWIND(.fnend)
.size VCTRL_StopChanWithCheck, .-VCTRL_StopChanWithCheck
.align 2
.global VCTRL_ResetChan
.type VCTRL_ResetChan, %function
VCT... | Assembly |
view: View) {
allowManualInput = (view as CheckBox).isChecked
}
fun onEnableAutoZoomCheckboxClicked(view: View) {
enableAutoZoom = (view as CheckBox).isChecked
}
fun onScanButtonClicked(view: View) {
val optionsBuilder = GmsBarcodeScannerOptions.Builder()
if (allowManualInput) {
optionsB... | Kotlin |
Script._DiffuseMap == null && HFDS.useAdjustedDiffuse) {
HFDS.useAdjustedDiffuse = false;
HFDS.useOriginalDiffuse = true;
HFDS.useNormal = false;
}
if (MainGuiScript._NormalMap == null && HFDS.useNormal) {
HFDS.useAdjustedDiffuse = true;
HFDS.useOriginalDiffuse = false;
HFDS.useNormal = false;
... | C# |
F1_'],
['10011110010111100110100000', '9E5E682_'],
['00100111110001100111001110', '27C673A_'],
['01010111011100000000001110000', '57700384_'],
['010000001011111111111000', '40BFF8'],
['0011110001111000110101100001', '3C78D61'],
['101001011011000010', 'A5B0A_'],
['1111', 'F'],
... | Dart |
.name === this._temporaryBuffer.toLowerCase());
var data = buffer.char();
if (isWhitespace(data) && appropriate) {
tokenizer._currentToken = {type: 'EndTag', name: 'script', data: [], selfClosing: false};
tokenizer.setState(before_attribute_name_state);
} else if (data === '/' && appropriate) {
tokenizer... | JavaScript |
let (_, result) = parse_p(CompleteByteSlice(
b"#complex-assign-command !prompt 'Test this function' [0:'Ok', 1:'No'] >> ${0} == 0 ? $foo = !roll 1d20 : $foo = ${0} | !roll 1d8"
)).unwrap();
assert_eq!(result, program);
}
#[test]
fn test_function_parser() {
let (_, result) = parse_p(CompleteByte... | Rust |
# Variables are used to store data values. A variable is a name given to a memory location where the data is stored. It is the basic unit of storage in a program. The value stored in a variable can be changed during program execution. A variable is created the moment you first assign a value to it. Variables do not nee... | Python |
.0.0(2021-11-19)
- 优化 组件 UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-easyinput](https://uniapp.dcloud.io/component/uniui/uni-easyinput)
## 0.1.4(2021-08-20)
- 修复 在 uni-forms 的动态表单中默认值校验不通过... | Markdown |
// -*- C++ -*-
// Error handling utils for the C++ library testsuite.
//
// Copyright (C) 2007-2025 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as publi... | C |
iagnostics['spell-check'] =
'字串拼寫檢查'
config.diagnostics['name-style-check'] =
'變數命名風格檢查'
config.diagnostics['unbalanced-assignments']=
'多重賦值時沒有賦值所有變數(如 `local x,y = 1` )'
config.diagnostics['undefined-doc-class'] =
'在 `@class` 標註中引用未定義的類別。'
config.diagnostics['undefined-doc-name'] =
'在 `@type` 標註中引用... | Lua |
/*
* Copyright 1993-2010 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and related... | C |
'
dc.w \1-*
ENDM
Disable MACRO
dc.b 'Disa'
dc.w \1-*
ENDM
Fin MACRO
dc.b 'Fin '
ENDM
Defobjet MACRO
dc.l \1-debut
ENDM
; #] Quelques MACROs:
IFNE FALSE
; #[ Save file:
pea name
move.w #$41,-(a7)
trap #1
addq.l #6,a7
move.w #0,-(a7)
pea name
move.w #$3c,-(a7)
trap #1
addq.l #8,a7
move.w d0... | Assembly |
anywhere, but typically comes from
// something like decoding JSON, generated by a weakly typed language
// such as PHP.
input := map[string]interface{}{
"name": 123, // number => string
"age": "42", // string => number
"emails": map[string]interface{}{}, // empty... | Go |
C20196 */ sb $v0, 0x0196($a2) ## 00000196
/* 00078 80A96E28 80CB0196 */ lb $t3, 0x0196($a2) ## 00000196
/* 0007C 80A96E2C 93AC001E */ lbu $t4, 0x001E($sp)
/* 00080 80A96E30 8FA40018 */ lw $a0, 0x0018($sp)
/* 00084 80A96E34 05610003 */ bgez $t3, .L80A9... | Assembly |
,
lista: any,
email: string,
reject: (reason?: any) => void
) {
let found: boolean;
lista.forEach(amigo => {
if (amigo.includes(email)) {
found = true;
reject(mensaje);
}
});
return found;
}
public comprobarListaAmigos(email: string, usuarioActivo: Usuario)... | Typescript |
}
// write every 8 columns of display array (visible area) to each MAX7219s
let matrixCountdown = _matrixNum - 1
let actualMatrixIndex = 0
for (let i = 8; i < _displayArray.length - 8; i += 8) {
if (matrixCountdown < 0) break
if (!_reversed) actualMatrixIndex = ma... | Typescript |
ori r3, r3, 0x0084 /* SMEMADD2 */
stwbrx r3, 0, r1
addis r3, r0, 0xFFFF
ori r3, r3, 0xFFFF
eieio
stwbrx r3, 0, r2
addis r3, r0, 0x8000 /* ADDR_88 */
ori r3, r3, 0x0088 /* EXTSMEM1 */
stwbrx r3, 0, r1
addis r3, r0, 0x0303
ori r3, r3, 0x0000... | Assembly |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.