text
stringlengths
3
1.05M
/* * cam_VFW.h * PHD Guiding * * Created by Craig Stark. * Copyright (c) 2006-2010 Craig Stark. * All rights reserved. * * This source code is distributed under the following "BSD" license * Redistribution and use in source and binary forms, with or without * modification, are permitted prov...
const _R = require('../') describe('intersection', function() { it('should return array with intersection elements when two arrays are passed', function() { const array1 = [ 1, 2 ]; const array2 = [ 2, 4 ]; const response = _R.intersection(array1, array2); expect(response).toEqual([ 2 ]); }) it(...
import React from 'react' import Title from './title' import Subtitle from './subtitle' import SmallTitle from './small-title' import Paragraph from './paragraph' import List from './list' import Code from './code' import {preToCodeBlock} from 'mdx-utils' export default { h1: props => <Title {...props} />, h2: pr...
# generate random integer values from random import seed from random import randint import sys def gen_random_array(input_size_r,seed_val): """ The function helps generate an array of randomly generated integers. :param input_size_r: The size of input array. :return: An array of integers of ...
!function(e,t){"use strict";var n=1,i=3,o=9,r=11,a=1,s="​",d=e.defaultView,l=navigator.userAgent,c=/Android/.test(l),h=/iP(?:ad|hone|od)/.test(l),f=/Mac OS X/.test(l),u=/Windows NT/.test(l),p=/Gecko\//.test(l),g=/Trident\/[456]\./.test(l),m=!!d.opera,v=/Edge\//.test(l),_=!v&&/WebKit\//.test(l),C=/Trident\/[4567]\./.tes...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import pyrotein as pr # Give a name to the analysis... job_name = "xfam" drc_i = f"{job_name}.psa.i" drc_o = f"{job_name}.psa.o" fl_dat = f"{job_name}.req_refine.dat" lines = pr.utils.read_file(fl_dat) def fli_for_needle(pdb, chain): return [ f"tm...
import os NAME='alarm_speech' uwsgi_os = os.uname()[0] LDFLAGS = [] if uwsgi_os == "Darwin": CFLAGS = [] LIBS = ['-framework appkit'] else: CFLAGS = ['-I /usr/include/GNUstep'] LIBS = [] GCC_LIST = ['alarm_speech.m']
from io import BytesIO, StringIO import multiprocessing import os from pathlib import Path import shutil import subprocess import sys import warnings import numpy as np import pytest from matplotlib.font_manager import ( findfont, findSystemFonts, FontProperties, fontManager, json_dump, json_loa...
############################################################################### # # The MIT License (MIT) # # Copyright (c) Crossbar.io Technologies GmbH # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in ...
symbols = [] exports = [{'type': 'function', 'name': 'generateMessageBusUniqueId', 'address': '0x7ffb2227fc60'}, {'type': 'function', 'name': 'getMessageBusInterface', 'address': '0x7ffb2227fd40'}, {'type': 'function', 'name': 'getMessageBusInterfaceWithConfig', 'address': '0x7ffb2227fd50'}, {'type': 'function', 'name'...
/* global angular:false */ "use strict"; const app = angular.module("TodoApp", []);
// @ts-check 'use strict'; const CircularDependencyPlugin = require('circular-dependency-plugin'); const path = require('path'); const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin'); /** @type {import('webpack').Configuration} */ const config = { target: 'node', // vscode extensions run in a Node...
export const getStyles = (rule, ownRules, matchedRules) => [...ownRules, ...matchedRules] .map(r => r.style[rule]) .filter(style => style !== undefined && style !== '') export const getGapValue = (unit, size) => { if (size.endsWith(unit)) { return Number(size.slice(0, -1 * unit.length))...
# Copyright 2017 The TensorFlow Authors. 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 required by appl...
/*numPass=5, numTotal=5 Verdict:ACCEPTED, Visibility:1, Input:"3 23", ExpOutput:"3 5 7 11 13 17 19 23 ", Output:"3 5 7 11 13 17 19 23 " Verdict:ACCEPTED, Visibility:1, Input:"5 31", ExpOutput:"5 7 11 13 17 19 23 29 31 ", Output:"5 7 11 13 17 19 23 29 31 " Verdict:ACCEPTED, Visibility:1, Input:"1 20", ExpOutput:"2 3 5 ...
""" peewee-async tests ================== Create tests.ini file to configure tests. """ import os import sys import json import logging import asyncio import contextlib import unittest import uuid import peewee import peewee_async import peewee_asyncext ########## # Config # ########## # logging.basicConfig(level=l...
import pytest @pytest.fixture(scope='function') def disable_automatic_scheduling(settings): settings.AUTOMATIC_HARVESTING_ENABLED = False @pytest.fixture(scope='function') def enable_automatic_scheduling(settings): settings.AUTOMATIC_HARVESTING_ENABLED = True
function initialState() { return { all: [], loading: false, } } const getters = { data: state => { let rows = state.all return rows }, loading: state => state.loading } const actions = { fetchData({ commit, state }) { commit('setLoading', true) ...
#!/usr/bin/env python def main(): pass if __name__ == '__main__': main()
from . import CommandExecuterBase, DEFAULT_MAX_QUEUE_SIZE, DEFAULT_TIMEOUT, SCSIReadCommand, SCSIWriteCommand from . import SCSI_STATUS_CODES, gevent_friendly from .errors import AsiSCSIError, AsiRequestQueueFullError, AsiReservationConflictError from ctypes import * from logging import getLogger logger = getLogger(__...
"""GUI Table related functions and classes.""" from kivy.uix.boxlayout import BoxLayout from kivy.uix.label import Label from kivy.uix.recycleboxlayout import RecycleBoxLayout from kivy.uix.recycleview import RecycleView from utils.helpers import get_archives, get_key_pairs, get_table_width # Global values for the ...
import modules.statistics as s def update_user_stats(): update_user_global_stats() update_user_mission_stats() def update_user_global_stats(): for stats in s.models.UserStats.objects.all(): stats.update() for stats in s.models.UserStats.objects.all(): stats.update_agreement_ranking(...
# # Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. # # SPDX-License-Identifier: Apache-2.0 OR MIT # # # Tests AZ Layer creation, property modification and interaction with entity CRUD operations in the editor ...
# # Copyright (c) 2017 Intel Corporation # # 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 required by applicable law or agreed to...
module.exports = { maxWorkers: '50%', testMatch: ['<rootDir>/__tests__/**/**.spec.[jt]s?(x)'], testPathIgnorePatterns: ['/node_modules/', '/lib/', '<rootDir>/lib/'], collectCoverage: Boolean(process.env.COVERAGE), collectCoverageFrom: ['<rootDir>/src/**/*.ts?(x)'], coveragePathIgnorePatterns: ['generated'],...
import atexit import numpy as np from numpy import uint64 from numpy.random import RandomState from projectq import MainEngine from projectq.backends import Simulator from projectq.ops import (All, C, CNOT, DaggeredGate, H, Measure, R, Rx, Ry, Rz, S, SqrtX, Swap, T, X, Y, Z, ...
""" *Standard Context* The standard context is the default context of text. """ from ._context import Context class StandardContext( Context, ): pass
/** * @file test_multi_connection.c * @author Ian Miller <imiller@adva.com> * @brief test for edits performed using multiple connections * * @copyright * Copyright 2020 ADVA Optical Networking Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in complia...
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
import os import sys if __name__ != '__main__': print("Currently not support importing.") raise KeyboardInterrupt("Force Exit") print("Supported: ") print("Pictures: png, jpg, jpeg, tif, tiff, bmp, gif, ico") print("Videos: mp4, webm, mov, mkv, avi, flv(RIP), wmv") print("Audio: mp3, ape, flac, wav, m4a") pr...
var name = "Master of the Hi Coup"; var collection_type = 0; var is_secret = 0; var desc = "Hit the Mega-Hi 311 times"; var status_text = "It's nice to say Hi. And with all these matching signs, you got a new badge!"; var last_published = 1351302650; var is_shareworthy = 1; var url = "master-of-the-hi-coup"; var c...
const { Group } = require('@antv/g/lib'); const Util = require('../util'); const Grid = function(cfg) { Grid.superclass.constructor.call(this, cfg); }; Util.extend(Grid, Group); Util.augment(Grid, { getDefaultCfg() { // const cfg = super.getDefaultCfg(); return { zIndex: 1, /** * 栅格线的类...
from digitalio import DigitalInOut, Direction, Pull import board import storage import usb_midi import usb_cdc import usb_hid btn_usb_state = DigitalInOut(board.D10) btn_usb_state.direction = Direction.INPUT btn_usb_state.pull = Pull.UP if btn_usb_state.value: # Executed when button at pin 10 is pressed print...
import gzip import mimetypes import os import re from datetime import datetime from functools import wraps from io import BytesIO, UnsupportedOperation from time import time import magic from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.core.files import File from djan...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ $(document).ready(function(){ /*if ($('#noRapport').attr('checked')) { alert("OUIIIIIIIIIII"); $("#description")....
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache Licen...
$NetBSD: patch-src_mapi_u__current.c,v 1.3 2019/10/18 09:57:07 nia Exp $ NetBSD only supports zero-initialized initial-exec tls variables in conjuction with dlopen(3) at the moment. --- src/mapi/u_current.c.orig 2019-10-09 16:52:00.000000000 +0000 +++ src/mapi/u_current.c @@ -101,7 +101,11 @@ extern void (*__glapi_no...
""" Provenance-related functions. """ from datetime import datetime import os.path from io import StringIO import git import git.exc def get_version(file_path=__file__): """ Get version information about ``file_path`` using the ``git`` package. If ``file_path`` is within the scope of a Git repository...
//constructor function for employee with name, idnum, email class Employee { constructor(name, id, email) { this.name = name; this.id = id; this.email = email; } getName() { return this.name; } getId() { return this.id; } getEmail() { return...
define(function(){ var pl = { modal: { cancel: "Anuluj", ok: "OK", }, project: { about: "O IoBlocks", create: "Nowy projekt", name: "Nazwa projektu:", open: "Otwórz projekt", save: "Zapisz projekt", title: "Projekt" }, workspace: { cleanWorks...
#include "vas_firobject.h" #ifndef rwa_reverb_h #define rwa_reverb_h typedef struct vas_dynconv { #ifdef MAXMSPSDK RWA_FIROBJECT_MAX #endif #ifdef PUREDATA RWA_FIROBJECT_PD #endif } vas_dynconv; #ifdef PUREDATA void vas_dynconv_tilde_setup(void); #endif #endif
import importlib import inspect import os import re import sys import tempfile import threading from io import StringIO from pathlib import Path from unittest import mock from django.core import mail from django.core.files.uploadedfile import SimpleUploadedFile from django.db import DatabaseError, connection from djan...
import arc @arc.command() def main(vals: set): print("Unique values:") print("\n".join(vals)) main()
class Solution: def twoSum(self, nums: List[int], target: int) -> List[int]: # create a cache numbers = {} # loop through list of nums # mapping nums to their indices for i, num in enumerate(nums): # if target - num is already cached, return it ...
class EntityAlreadyExist(Exception): pass class EntityNotFound(Exception): pass
from ..remote import RemoteModel from infoblox_netmri.utils.utils import check_api_availability class HubLocatorNetworkExplorerInventorySummaryGridRemote(RemoteModel): """ | ``id:`` none | ``attribute type:`` string | ``DeviceID:`` none | ``attribute type:`` string | ...
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.d (the "License"); # you may not use this file except in compliance with the License. # """Userbot help command""" from userbot import CMD_HELP from userbot.events import register @register(outgoing=True,...
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- import d...
""" Define extension dtypes. """ from __future__ import annotations import re from typing import ( TYPE_CHECKING, Any, Dict, List, MutableMapping, Optional, Tuple, Type, Union, cast, ) import numpy as np import pytz from pandas._libs.interval import Interval from pandas._libs....
from setuptools import setup import m2h with open("README.md", "r") as fh: long_description = fh.read() setup( name='machine2human', version=m2h.__version__, packages=['m2h'], url='https://github.com/andrew000/machine2human', license='MIT License', author='AndrewKing', python_requires...
import React from 'react'; import { Container, Top, Logo, Title } from './styles'; import Icon from 'react-native-vector-icons/MaterialIcons'; import logo from '~/assets/Nubank_Logo.png'; export default function Header() { return ( <Container> <Top> <Logo source={logo} /> <Title>Felipão</...
from datetime import datetime import socket import xmlrpclib from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes import generic from django.db import models from django.utils.translation import ugettext_lazy as _ class PingedURLManager(models.Manager): def process_pending(...
from ..abstract_command import AbstractModelCommand class Command(AbstractModelCommand): help = 'Creates membership of principal in role.' def add_command_arguments(self, parser): principal_parser = parser.add_mutually_exclusive_group(required=True) principal_parser.add_argument( ...
/** @file InterlockedDecrement function Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license...
def main(): horizontal = 0 depth = 0 aim = 0 with open("AoC-D2.txt") as f: directions = f.readlines() for line in directions: move = line.strip("\n").split() if move[0] == "forward": horizontal += int(move[1]) depth += aim * int(move[1]) elif m...
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.lang['fi']={"editor":"Rikastekstieditori","editorPanel":"Rikastekstieditoripaneeli","common":{"editorHelp":"Paina ALT 0 nähdäksesi ohjeen","browseServer":"Selaa pal...
new_npc_stats = { 'base_stats': { 'vit': 4, 'dex': 4, 'str': 4, 'int': 4, 'agility': 8, 'toughness': 9, }, 'stats': { 'max_hp': 'from vit', # vit*hp_per_vit + lvl*hp_per_lvl 'max_mana': 'from int?', 'armor': 'from str and toughness', ...
import plyj.parser as plyj class UnsupportedASTError(ValueError): pass class PrettyPretter: def __init__(self, indentation=4): self.out = None self.current_indent = None self.indentation_amount = indentation def print_tree(self, tree): self.out ...
// SPDX-License-Identifier: Apache-2.0 /* * Copyright 2019 IBM Corp. */ #include <io.h> #include <xscom.h> #include <npu3.h> #include <npu3-regs.h> #include <nvram.h> #include <interrupts.h> #include <xive.h> #define NPU3LOG(l, npu, fmt, a...) \ prlog(l, "NPU[%d:%d]: " fmt, (npu)->chip_id, (npu)->index, ##a) #defi...
import heapq import numpy as np from utils.vocab import Vocab class Huffman_node: """ Huffman node self.direction: the current node is left(0)/right(1) child of its parent node self.node: List of its left and right child self.freq: the Huffman weight value self.vector: context representation v...
// https://d3js.org/d3-force/ v3.0.0 Copyright 2010-2021 Mike Bostock !function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("d3-quadtree"),require("d3-dispatch"),require("d3-timer")):"function"==typeof define&&define.amd?define(["exports","d3-quadtree","d3-dispatch","d3-timer"],t):t((n="...
from discord import Member from sqlalchemy import Column, Integer, String, Boolean from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() class JeevesUser(Base): """ A JeevesUser class that is also a sqlalchmey base. (This means it is O...
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return ...
const Post = require('../models/postModel.js') const formidable = require('formidable') const fs = require ('fs') const _ = require("lodash") exports.postById = (req,res,next,id)=>{ Post.findById(id) .populate("postedBy", "_id name") .exec((err,post) =>{ if(err || !post){ return res.status(400)...
# This script allows you to define the turntable kinematics accoding to your KUKA KRC robot controller # Modify the values according to the Machine data definition # Define the name of your turntable in RoboDK (name in the RoboDK tree) # Make sure the joint sense is set to [1,1] (do not invert axes) turntable_name = "...
let userEmail = 'abs123l' let password ='1234' let userChecker = function(myString){ if ((myString.includes(123)) && (myString.length > 6)) { return true } else { return false } } console.log(userChecker(userEmail)); let passChecker = function(pass){ if ((pass.includes(1234)) && (pas...
/** @file */ /* * Copyright (c) 2019, Cisco Systems, Inc. * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://github.com/cisco/libacvp/LICENSE */ #i...
var provider; import configuration from 'torii/configuration'; var originalConfiguration = configuration.providers['mock-oauth1']; import BaseProvider from 'torii/providers/oauth1'; var providerName = 'mock-oauth1'; var Provider = BaseProvider.extend({ name: providerName, baseUrl: 'http://example.com', redir...
#2. download train data and test data import urllib.request import pandas as pd #download naver movie review data->ratings_train.txt & retings_test.txt urllib.request.urlretrieve("https://raw.githubusercontent.com/e9t/nsmc/master/ratings_train.txt", filename="ratings_train.txt") urllib.request.urlretrieve("https://raw...
from Locations.Lobby import Lobby location = Lobby() print("The girl ran away through the door.") while True: com = location.get_input() location.process_command(com)
var exists = require('101/exists') var toArray = require('toarray') module.exports = copyListeners function copyListeners (src, dst, events) { var events = exists(events) ? toArray(events) : Object.keys(src._events) events.forEach(function (event) { listeners = src.listeners(event) listeners.forEach(funct...
import json import os input_list = ["../../data/origin.json", "../../data/origin2.json"] output_path = "../../data/document/all.json" def format_content(content, id=0): pos = [] for a in range(0, len(content)): if content[a] == "\n\n": pos.append(a) p1 = 1 while pos[p...
# # Copyright (c) 2022 Airbyte, Inc., all rights reserved. # from typing import Any, MutableMapping from airbyte_cdk.models import SyncMode from airbyte_cdk.sources.streams import Stream def read_incremental(stream_instance: Stream, stream_state: MutableMapping[str, Any]): res = [] if stream_state and "stat...
/* CF3 Copyright (c) 2015 ishiura-lab. Released under the MIT license. https://github.com/ishiura-compiler/CF3/MIT-LICENSE.md */ #include<stdio.h> #include<stdint.h> #include<stdlib.h> #include"test1.h" uint8_t x1 = 1U; static int32_t x15 = 59; static volatile int32_t x19 = INT32_MIN; int32_t x29 = -21; uint64_t...
import os """Sample event["response"]: {"userAttributes": {"sub": "d5267ee4-3563-4e8b-b4f7-8af4929fc9e8", "website": "https://forms.beta.chinmayamission.com/admin/", "cognito:email_alias": "dxftsc+2ots8kjmm@sharklasers.com", "email_verified": "false", "cognito:user_status": "UNCONFIRMED", "name": "User", "email": "dx...
/* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:46:51 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/Frameworks/SafariServices.framework/SafariServices * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by E...
# Copyright 2021, Google LLC. # # 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 required by applicable law or agreed to in writing...
import { TreeGrid, Reorder as TreeGridReorder } from '@syncfusion/ej2-treegrid'; /** * To handle column reorder action from TreeGrid */ var Reorder = /** @class */ (function () { function Reorder(gantt) { this.parent = gantt; TreeGrid.Inject(TreeGridReorder); this.parent.treeGrid.allowReor...
from flask import Flask, request from flask_restful import Api, Resource import json import cal_id from models import db, Like class LikeList(Resource): def get_likes(self): likes = Like.query.all() return likes def get(self): likes = self.get_likes() ret = '' for like in likes: ret += '[user_id: {},...
import re import ast from setuptools import find_packages _version_re = re.compile(r'__version__\s+=\s+(.*)') with open('vnc_viewer/__init__.py', 'rb') as f: version = str(ast.literal_eval(_version_re.search( f.read().decode('utf-8')).group(1))) from distutils.core import setup setup( name = 'vnc_v...
# coding=utf-8 # Copyright 2019 The Google Research Authors. # # 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 required by applicab...
from Simulator.UrdfWrapper import UrdfWrapper from Simulator.ObdlRender import ObdlRender from Simulator.ObdlSim import ObdlSim from jaxRBDL.Dynamics.ForwardDynamics import ForwardDynamics, ForwardDynamicsCore from envs.core import Env import gym import jax import jax.numpy as jnp from jax.api import jit from jaxRBDL....
$(document).ready(function(){ //$(document).on('keydown','.numonly',function(event) { // // Allow: backspace, delete, tab, escape, and enter // if( event.keyCode == 46 || event.keyCode == 8 || event.keyCode == 9 || event.keyCode == 27 || event.keyCode == 13 || // // Allow: Num Pad Decimal ...
import { getMyTaskBar, myProjectItems, getLiaisonsViaPagination, deleteLiaison, updateLiaisonStatus, newLiaison, syncLiaisonBySirNo, getSingleLiaison, modifyLiaison, liaisonFileUpdate, getProjectMclDataStatistics, getSingleLiaisonBySlipNo, getMyMCL, getMyPCL, getMyApproval, getMyRelease,...
module.exports = new Date(1983, 0, 5)
import { createStore } from 'test/support/Helpers' import Model from 'app/model/Model' describe('Model – Inheritance - Relation instantiation', () => { it('should choose the appropriate STI model class when instantiating a belongsTo relation', () => { class Employee extends Model { static entity = 'employe...
app.controller('Authentication', function (store, authenticationAPI, $mdBottomSheet, $mdSidenav) { var viewModel = this viewModel.authenticate = function (user) { authenticationAPI.authenticate(user) .then(function (promise) { if (promise.user && promise.token) { viewModel.user = promise.user stor...
import { ZoomMtg } from "@zoomus/websdk"; console.log("checkSystemRequirements"); console.log(JSON.stringify(ZoomMtg.checkSystemRequirements())); // it's option if you want to change the WebSDK dependency link resources. setZoomJSLib must be run at first // if (!china) ZoomMtg.setZoomJSLib('https://source.zoom.us/1.9...
defineSuite([ 'Core/GoogleEarthEnterpriseMetadata', 'Core/decodeGoogleEarthEnterpriseData', 'Core/DefaultProxy', 'Core/defaultValue', 'Core/GoogleEarthEnterpriseTileInformation', 'Core/loadWithXhr', 'Core/Math', 'Core/Request', 'Core/Resource', ...
from __future__ import unicode_literals from django.contrib.gis.db import models from django.db.models import Manager as GeoManager from django.utils import timezone import folium import os.path # from .forecast_generator import add_stf class Dam(models.Model): name = models.CharField(max_length = 20) abbr = mode...
import requests def read_statistics_from_db( dataset_name, subset_name=None, version='Hugging Face', transformation={'type': 'origin'}, ): end_point_upload_dataset = "https://datalab.nlpedia.ai/api/normal_dataset/read_stat" data_info = { 'dataset_name': dataset_name, 'subset_n...
"""Describes results. Is a JSON. """ import json import os from planemo.io import error class StructuredData(object): """Abstraction around a simple data structure describing test results.""" def __init__(self, json_path=None, data=None): """Create a :class:`StructuredData` from a JSON file.""" ...
/* * * device driver for Conexant 2388x based TV cards * card-specific stuff. * * (c) 2003 Gerd Knorr <kraxel@bytesex.org> [SuSE Labs] * * 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 Foundatio...
from asyncio import get_event_loop import json import aiohttp from tentacruel.pinger import ensure_proactor HEOS_GATEWAY = "http://192.168.0.21:9617" async def amain(): async with aiohttp.ClientSession() as session: async with session.ws_connect('http://192.168.0.21:9617/heos') as socket: GET...
import argparse import os import numpy as np from sklearn.cross_validation import StratifiedKFold import autosklearn import autosklearn.data import autosklearn.data.competition_data_manager from autosklearn.evaluation.util import calculate_score from ParamSklearn.classification import ParamSklearnClassifier parser ...
import mysql.connector from mysql.connector.constants import ClientFlag config = { 'user': 'root', 'password': 'admin666', 'host': '34.71.98.84', 'client_flags': [ClientFlag.SSL], 'ssl_ca': 'server-ca.pem', 'ssl_cert': 'client-cert.pem', 'ssl_key': 'client-key.pem' } config['database'] =...
import React from "react"; import PropTypes from "prop-types"; import { connect } from "react-redux"; import { bindActionCreators } from "redux"; import toastr from "toastr"; import * as productAction from "../../action/ProductAction"; import ProductForm from "./ProductForm"; export class AddOrEditProductContainer ext...
# ---------------------------------------------------------------------------- # Copyright (c) 2017-2021, QIIME 2 development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
import { ARRAY_INSERT, ARRAY_MOVE, ARRAY_POP, ARRAY_PUSH, ARRAY_REMOVE, ARRAY_REMOVE_ALL, ARRAY_SHIFT, ARRAY_SPLICE, ARRAY_SWAP, ARRAY_UNSHIFT, AUTOFILL, BLUR, CHANGE, CLEAR_SUBMIT, CLEAR_SUBMIT_ERRORS, CLEAR_ASYNC_ERROR, DESTROY, FOCUS, INITIALIZE, REGISTER_FIELD, RESET, SET...
# Code generated by `typeddictgen`. DO NOT EDIT. """V1alpha1CSIStorageCapacityListDict generated type.""" from typing import TypedDict, List from kubernetes_typed.client import V1ListMetaDict, V1alpha1CSIStorageCapacityDict V1alpha1CSIStorageCapacityListDict = TypedDict( "V1alpha1CSIStorageCapacityListDict", ...