text string | label_name string | labels int64 |
|---|---|---|
#[inline]
pub fn ch5ens(&mut self) -> _CH5ENSW {
_CH5ENSW { w: self }
}
}
// Copyright (c) 2021 - 2022 GreenYun Organization
// SPDX-License-Identifier: MIT
macro_rules! enum_lang_matches {
($case:expr, $lang:expr,
$($val:path => $en:expr, $tc:expr, $sc:expr),+ $(,)?) => {
matc... | Rust | 0 |
from __future__ import unicode_literals, print_function, absolute_import, division
from threading import Lock
try:
from queue import Queue
except ImportError:
from Queue import Queue
class ResourceLock(object):
def __init__(self):
self._resources = {i: _ResourceLock() for i in range(0, 256)}
... | Python | 1 |
AquariaLocationNames.BEATING_FALLEN_GOD,
AquariaLocationNames.BEATING_MITHALAN_GOD,
AquariaLocationNames.BEATING_DRUNIAN_GOD,
AquariaLocationNames.BEATING_LUMEREAN_GOD,
AquariaLocationNames.BEATING_THE_GOLEM,
AquariaLocationNames.BEATING_NAUTILUS_PRIME,
AquariaLocationNames.BEATING_BLASTER_PEG_P... | Python | 1 |
c_log, 'r', encoding='utf-8') as f:
source_code = f.read()
suspicious_code_alert_details = detect_suspicious_code(source_code)
obalerts, techniques = detectob(source_code)
suspicious_code_alert_details.extend(obalerts)
obfuscation_status = bool(techniques)
... | Python | 1 |
spirate(10, magMulti.top())
m300.flow_rate.aspirate = 30
for _ in range(5):
m300.aspirate(160, magMulti.bottom().move(types.Point(x=-1, y=0, z=1)))
m300.dispense(170, waste)
m300.aspirate(10, waste)
m300.drop_tip()
flow_rate('reset', m300)
# Transfer 200uL of WB1 and mix wel... | Python | 1 |
if data.get('novel') and data['novel'].get(novel_id):
content = data['novel'][novel_id].get('content', '')
except:
pass
# 如果预加载数据中没有内容,尝试从页面元素中获取
if not content:
content_div = soup.find('div',... | Python | 1 |
from typing import List
class Solution:
def uniquePathsWithObstacles(self, obstacleGrid: List[List[int]]) -> int:
m = len(obstacleGrid)
n = len(obstacleGrid[0])
# If the start or end is blocked, there is no path
if obstacleGrid[0][0] == 1 or obstacleGrid[m - 1][n - 1] == 1:
... | Python | 1 |
<filename>b2c2-compiler/src/assign_stmt.rs
// b2c2-compiler crate::assign_stmt
// author: Leonardone @ NEETSDKASU
use super::*;
impl Compiler {
// Assign Integer Array
// int_arr = some_int_arr
pub(super) fn compile_assign_integer_array(&mut self, var_name: &str, value: &parser::Expr) {
let copyst... | Rust | 0 |
import streamlit as st
import matplotlib.pyplot as plt
# Title
st.title("📊 Classroom Power Consumption Estimator")
# User input for custom fan wattage
st.sidebar.header("⚙ Customize Your Fan")
custom_fan_wattage = st.sidebar.number_input("Enter your fan's wattage (W)", min_value=1, value=25)
# Appliance data
applia... | Python | 1 |
!['X', 'O', 'X', 'O', 'X'],
vec!['O', 'X', 'O', 'O', 'O'],
vec!['X', 'X', 'O', 'X', 'O'],
];
let expected = vec![
['O', 'X', 'X', 'O', 'X'],
['X', 'X', 'X', 'X', 'O'],
['X', 'X', 'X', 'O', 'X'],
['O', 'X', 'O', 'O', 'O'],
... | Rust | 0 |
// No influence
SurfletComponents::zeros()
}
}
/* Calculate the contribution from the five corners */
let corner0 = surflet(gi0, distance);
let corner1 = surflet(gi1, offset1);
let corner2 = surflet(gi2, offset2);
let corner3 = surflet(gi3, offset3);
let corner4 = surfle... | Rust | 0 |
import glob
import os
import shutil
from tests import get_device_id, get_tests_output_path, run_cli
from TTS.tts.configs.vits_config import VitsConfig
config_path = os.path.join(get_tests_output_path(), "test_model_config.json")
output_path = os.path.join(get_tests_output_path(), "train_outputs")
config = VitsConfi... | Python | 1 |
_id: Option<Secret>,
/// Message hash.
message_hash: Option<H256>,
}
/// Signing job partial request.
pub struct SchnorrPartialSigningRequest {
/// Request id.
pub id: Secret,
/// Message hash.
pub message_hash: H256,
/// Id of other nodes, participating in signing.
pub other_nodes_ids: BTreeSet<NodeId>,
}
//... | Rust | 0 |
import os
from tools.log_tools import log_cmd
def post_install(do_reboot, do_ly_dm):
home = os.getenv("HOME")
waybar_css = f"{home}/.config/waybar/style.css"
wallpapers_conf = f"{home}/.config/hypr/wallpapers.conf"
multilib_conf = "/etc/pacman.conf"
# Waybar config
if not os.access(waybar_c... | Python | 1 |