text string | label_name string | labels int64 |
|---|---|---|
_collaterals, 999);
});
}
#[test]
fn should_not_lock_more_than_account_balance() {
new_test_ext().execute_with(|| {
Pdot::init(Origin::signed(2));
Pdot::mint(Origin::signed(2), 4, 9999);
assert_eq!(Pdot::balance_of(4), 9999);
Cdp::open(Origin::signed(4));
Cdp::lock(Origin::signed(4), 0, 999);... | Rust | 0 |
import statsmodels.regression.linear_model as lm_
import statsmodels.discrete.discrete_model as dm_
import statsmodels.discrete.conditional_models as dcm_
import statsmodels.regression.mixed_linear_model as mlm_
import statsmodels.genmod.generalized_linear_model as glm_
import statsmodels.robust.robust_linear_model as ... | Python | 1 |
"""add count column to order product association table
Revision ID: 08646b64afa8
Revises: 94baa87b9131
Create Date: 2025-08-13 12:30:00.906969
"""
from typing import Sequence, Union
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision: str = "08646b64afa8"
down_revision... | Python | 1 |
# This file is distributed under the same license as the Django package.
#
# The *_FORMAT strings use the Django date format syntax,
# see https://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = "d. F Y"
TIME_FORMAT = "H:i"
DATETIME_FORMAT = "j. F Y. H:i"
YEAR_MONTH_FORMAT = "F Y"
MONTH_DAY_FOR... | Python | 1 |
回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
:type RequestId: str
"""
self._RequestId = None
@property
def RequestId(self):
return self._RequestId
@RequestId.setter
def RequestId(self, RequestId):
self._RequestId = RequestId
def _deseri... | Python | 1 |
tware/libc/manual/html_node/TZ-Variable.html).
//!
//! # Usage
//!
//! ## Time zone
//!
//! ```rust
//! # fn main() -> Result<(), tz::TzError> {
//! use tz::TimeZone;
//!
//! // 2000-01-01T00:00:00Z
//! let unix_time = 946684800;
//!
//! // Get UTC time zone
//! let time_zone_utc = TimeZone::utc();
... | Rust | 0 |
virtio_gpu_set_scanout_blob),
ResourceFlush(virtio_gpu_resource_flush),
TransferToHost2d(virtio_gpu_transfer_to_host_2d),
ResourceAttachBacking(virtio_gpu_resource_attach_backing),
ResourceDetachBacking(virtio_gpu_resource_detach_backing),
GetCapsetInfo(virtio_gpu_get_capset_info),
GetCapset(vir... | Rust | 0 |
# Method Overriding: If the same method is defined in both base and derived classes, then the method of the derived class overrides the method of the base class.
# Video Game
class Character:
def __init__(self, x, y, num_lives):
self.x = x
self.y = y
self.num_lives = num_lives
def... | Python | 1 |
"text_1": ("STRING", {"default": ""}),
"compare_1": ("STRING", {"default": ""}),
"text_2": ("STRING", {"default": ""}),
"compare_2": ("STRING", {"default": ""}),
"text_3": ("STRING", {"default": ""}),
"compare_3": ("STRING", {"default... | Python | 1 |
(linear: nn.Linear):
hook_fn = WandaHookFn(linear)
return hook_fn
hooks = {}
handles: List[torch.utils.hooks.RemovableHandle] = []
for name, linear in linear_layers.items():
hook_fn = get_hook_fn(linear)
hooks[name] = h... | Python | 1 |
_9y'7lI|Xyyt}usCZK
rk5Jyܗ>u3y(T4;@k<m<ZϳξMHO&˼mlNzFŵXF&+2a專?#64șgܟ\QigW툀1ʧ51>35:~ICzoO;aZs'[Ec2Z@^V`ς'_W_~Wm˜-41s_yjssD}Pk\)g\܅a-m q;|/o>ꠌnL-.[?
"k3ZzJh;Ts}Q_s
d0NޙS'lq{Jp`O D}~ei^wP/(h{fh,7Ak6HLQ0` 0Leϼz=d[Ѳ.paߴkցK'ж4(Jgh9Nzw6ZǏ3&J>Wg>conƢp>Y1g.Cr-ߔڢڛyi3.5M/VL... | Python | 1 |
_mul(u12![0]), U12::min_value());
assert_eq!(u12![2].wrapping_mul(u12![255]), u12![510]);
assert_eq!(u12![255].wrapping_mul(u12![2]), u12![510]);
assert_eq!(u12![2].wrapping_mul(u12![2048]), U12::min_value());
assert_eq!(u12![2].wrapping_mul(u12![4095]), u12![0xFFE]);
}
#[test]
fn test_overflowing_mul() {
as... | Rust | 0 |
.expect("unable to parse");
match topo {
TopoJson::Topology(t) => {
let geojson = to_geojson(&t, &String::from(case.1))
.expect("Unable to convert TopoJSON to GeoJSON");
let geojson_string = GeoJson::FeatureCollection(geojson).to_string();
... | Rust | 0 |
let m1 = Matrix4::rotation_from_euler(&e1);
let m2 = Matrix4::rotation_from_euler(&e2);
let m3 = Matrix4::rotation_from_euler(&e3);
let m = m1.multiply(&m2).multiply(&m3);
let q_from_m = Quaternion::from_rotation_matrix(&m);
let quaternions: Vec<Quaternion> =
... | Rust | 0 |
lect();
for route in &routes {
handle.route().del(route.clone()).execute().await.unwrap();
}
routes.reverse();
for route in routes {
IPRoute {
action: Action::Add,
msg: route.clone(),
}
.execute(&mut handl... | Rust | 0 |
import json
import os
with open("data/pushup/train.json", "r") as fp:
train1 = json.load(fp)
for l in train1:
l["is_pushing_up"] = True
with open("data/lsp_lspet_7points/train.json", "r") as fp:
train2 = json.load(fp)
for l in train2:
l["is_pushing_up"] = False
with open("data/pushup/v... | Python | 1 |