text string | label_name string | labels int64 |
|---|---|---|
import tkinter as tk
import re
# Create the main function to handle the password testing
def check_password_strength(password):
if len(password) < 8:
return "Weak: Password should be at least 8 characters long."
if not re.search(r'[A-Z]', password):
return "Weak: Password should contain at leas... | Python | 1 |
rged labelmap of all visible segments, as the filter expects a single labelmap with all the labels.
mergedLabelmapNode = slicer.vtkMRMLLabelMapVolumeNode()
slicer.mrmlScene.AddNode(mergedLabelmapNode)
slicer.vtkSlicerSegmentationsModuleLogic.ExportSegmentsToLabelmapNode(segmentationNode, visibleSegmentIds, ... | Python | 1 |
ctNV", [(HANDLE, "hDevice"), (OpaquePointer(Void), "dxObject"), (GLuint, "name"), (GLenum, "type"), (GLenum, "access")]),
StdFunction(BOOL, "wglDXUnregisterObjectNV", [(HANDLE, "hDevice"), (HANDLE, "hObject")]),
StdFunction(BOOL, "wglDXObjectAccessNV", [(HANDLE, "hObject"), (GLenum, "access")]),
StdFunction... | Python | 1 |
#!/usr/bin/env python
# Copyright (C) 2014-2015 Thomas Huang
#
# 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 distributed in the hope that it will ... | Python | 1 |
self.download_file(url, file_path)
except (urllib.error.URLError, IOError) as e:
if url.startswith("https"):
url = url.replace("https", "http")
try:
self.download_file(url, file_path)
except (urllib.error.URLError, IOEr... | Python | 1 |
EvalCoord2d(u: f64, v: f64) {
unsafe { glu_sys::glEvalCoord2d(u, v) }
}
pub fn EvalCoord2f(u: f32, v: f32) {
unsafe { glu_sys::glEvalCoord2f(u, v) }
}
pub fn EvalCoord2dv(u: &[f64]) {
unsafe { glu_sys::glEvalCoord2dv(u.as_ptr()) }
}
pub fn EvalCoord2fv(u: &[f32]) {
unsafe { glu_sys::glEvalCoord2fv(u... | Rust | 0 |
n = rmp::decode::read_bin_len(&mut reader).map_err(|_| CowRpcError::CowRpcFailure(CowRpcErrorCode::Payload))?;
#ident = msgpack_decode_binary(&mut reader, len as usize)?;
}
});
wr... | Rust | 0 |
.resolve_type(type_id)
.ok_or(MetadataError::TypeNotFound(type_id))?;
let mut decode_compact_primitive = |primitive: &TypeDefPrimitive| match primitive {
TypeDefPrimitive::U8 => decode_raw::<Compact<u8>>(input, output),
TypeDefPrimitive::U16 =>... | Rust | 0 |
# Copyright (c) Alibaba, Inc. and its affiliates.
import os
import subprocess
import sys
import time
from typing import Dict, List, Tuple, Type
import gradio as gr
import psutil
from packaging import version
from swift.ui.base import BaseUI
from swift.ui.llm_infer.runtime import Runtime
from swift.utils import get_lo... | Python | 1 |
naive;
#[cfg(all(target_arch = "x86_64", memchr_runtime_simd, feature = "use_std"))]
mod x86;
#[cfg(test)]
mod tests;
/// An iterator over all occurrences of the needle in a haystack.
#[inline]
pub fn memchr_iter(needle: u8, haystack: &[u8]) -> Memchr {
Memchr::new(needle, haystack)
}
/// An iterator over all oc... | Rust | 0 |
>,
#[prost(string, optional, tag="4")]
pub trailing_comments: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, repeated, tag="6")]
pub leading_detached_comments: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
}
/// Describes the relationship betwee... | Rust | 0 |
import streamlit as st
import matplotlib.pyplot as plt
from streamlit_option_menu import option_menu
import apartment as apartment
import multigen
import solo
import office
# 좌측 메인메뉴
with st.sidebar:
selected = option_menu(
menu_title = "Main Menu",
options = ["Home", "아파트", "연립/다세대", "단독/다가구", "오피스텔", ],
... | Python | 1 |