text
stringlengths
3
1.05M
from django import forms from vocabulator.words.models import Definition class DefinitionInlineForm(forms.ModelForm): desc = forms.CharField(widget=forms.Textarea(attrs={'rows': 3, 'cols': 100})) example = forms.CharField(widget=forms.Textarea(attrs={'rows': 3, 'cols': 100}), required=False) translate = ...
function strtoupper (str) { // discuss at: http://locutus.io/php/strtoupper/ // original by: Kevin van Zonneveld (http://kvz.io) // improved by: Onno Marsman (https://twitter.com/onnomarsman) // example 1: strtoupper('Kevin van Zonneveld') // returns 1: 'KEVIN VAN ZONNEVELD' return (str + '') .toU...
Meteor.startup(function () { Template[getTemplate('trackfireCategoryItem')].helpers({ categoryLink: function(){ return getSiteUrl()+'category/'+this.slug; }, }); });
'use strict' /** * Test case for stream. * Runs with mocha. */ describe('stream', function () { this.timeout(3000) before(async () => {}) after(async () => {}) it('Stream', async () => {}) }) /* global describe, before, after, it */
import { createAction } from 'redux-act' import analytics, { updateLastActive } from 'src/analytics' import { remoteFunction } from 'src/util/webextensionRPC' import { actions as filterActs, selectors as filters } from './filters' import * as constants from './constants' import * as selectors from './selectors' import...
{ 'variables': { 'macia_sources': [ 'buffer.h', 'buffer.cc', 'shader.h', 'shader.cc', 'program.h', 'program.cc', 'sampler.h', 'sampler.cc', 'texture.h', 'texture.cc', 'fw.h', 'fw.cc', 'ut.h', 'ut.cc', ], 'depended_librarie...
import numpy as np from scipy.optimize import minimize_scalar def angle_distance(theta1, theta2, factor=1): max_angle = 360 / factor d = abs(theta1 % max_angle - theta2 % max_angle) return min(max_angle - d, d) def get_angle_metric(factor=1): def angle_euclidean_metric(a, b): difference = a ...
class Solution(object): def intToRoman(self, num): """ :type num: int :rtype: str """ res = '' t = num // 1000 if t: res += 'M' * t num %= 1000 h = num // 100 if h: if h == 9: re...
/* @flow */ import { CLASS } from '../../../constants'; export const pageStyle = ` html, body { padding: 0; margin: 0; width: 100%; overflow: hidden; text-align: center; } body { display: inline-block; vertical-align: top; border-collapse: c...
"""deCONZ sensor platform tests.""" from datetime import timedelta from unittest.mock import patch import pytest from homeassistant.components.deconz.const import CONF_ALLOW_CLIP_SENSOR from homeassistant.components.sensor import ( DOMAIN as SENSOR_DOMAIN, SensorDeviceClass, SensorStateClass, ) from home...
let directory = null; // Set the number of employees to generate const directorySize = 12; // Create & append search elements const searchDiv = document.querySelector(".search-container"); searchDiv.innerHTML = ` <form action="#" method="get"> <input type="search" id="search-input" class="search-input" placeholder="S...
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ retu...
#!/usr/bin/env python ####################################################################### ####################################################################### ## Created on July 4th 2018 to create IGV session file from file list ####################################################################### #####...
// // AFBOrderFormController.h // AFBOrderFormController // // Created by drfgh on 16/11/20. // Copyright © 2016年 drfgh. All rights reserved. // #import <UIKit/UIKit.h> @interface AFBOrderFormController : UITableViewController @end
//------------------------------------------------------------------------------ // GB_Asaxpy3B: hard-coded saxpy3 method for a semiring //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-License-Iden...
""" Tropical Cyclone Risk Model (TCRM) - Version 1.0 (beta release) Copyright (C) 2011 Commonwealth of Australia (Geoscience Australia) 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 Foundat...
def encode(json, schema): payload = schema.Main() payload.version = json['version'] return payload def decode(payload): return payload.__dict__
"""speakeasy_28830 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Cla...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> void swap(int *a, int *b) { int temp; temp = *a; *a = *b; *b = temp; } void main() { int i, j, m, n; printf("Enter the dimension of the matrix (with a space): \n"); scanf("%d %d", &m, &n); int Z[m][n]; sra...
a = 10 b = 20 if a < b: smaller = a else: smaller = b print(smaller) s = a if a < b else b # 和上面的if-else语句等价 print(s)
""" Server side: open a TCP/IP socket on a port, listen for a message from a client, and send an echo reply; this is a simple one-shot listen/reply conversation per client, but it goes into an infinite loop to listen for more clients as long as this server script runs; the client may run on a remote machine, or on...
var tap = require('tap'); var test = tap.test; var semver = require('../semver.js'); var clean = semver.clean; test('\nclean tests', function(t) { // [range, version] // Version should be detectable despite extra characters [ ['1.2.3', '1.2.3'], [' 1.2.3 ', '1.2.3'], [' 1.2.3-4 ', '1.2.3-4'], ['...
def lfsr2(seed, taps): #xor_input - вдвигаемый бит shift_register_state = seed; xor_input = 1; nbits = seed.bit_length() while True: for tap in taps: #проверяем значение отводного разряда, если разряд = 1; то меняем значение вдвигаемого бита, иначе проверяемый следующий разряд ...
define( //begin v1.x content { "field-second": "sekund", "field-year-relative+-1": "i fjol", "field-week": "vecka", "field-month-relative+-1": "förra månaden", "field-day-relative+-1": "i går", "field-day-relative+-2": "i förrgår", "months-standAlone-wide": [ "Tout", "Bâbâ", "Hâtour", "Kiahk", "Toubah"...
import Modal from './modal.js'; const modal = Modal(); const modalTitle = document.querySelector('.modal h2'); const modalDescription = document.querySelector('.modal p'); const modalButton = document.querySelector('.modal button'); const checkButtons = document.querySelectorAll('.actions a.check'); checkButtons.fo...
/* ---------------------------------------------------------------------------- * Copyright (C) 2010-2014 ARM Limited. All rights reserved. * * $Date: 19. March 2015 * $Revision: V.1.4.5 * * Project: CMSIS DSP Library * Title: arm_conv_f32.c * * Description: Convolutio...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[3],{ /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/src/components/statistics-cards/StatisticsCardLine.vue?vue&type=script&lang=js&": /*!**************************************************************...
var SOL_TOPO = {"type":"Topology","objects":{"sol":{"type":"GeometryCollection","geometries":[{"type":"Polygon","properties":{"name":"Somaliland"},"id":"-99","arcs":[[0]]},{"type":"MultiPolygon","properties":{"name":null},"id":"-99","arcs":[[[1]],[[2]]]}]}},"arcs":[[[9999,9197],[0,-318],[0,-318],[0,-318],[0,-317],[0,-3...
/* global ga:false */ import AppEvents from './app-events'; export default class AnalyticsProvider { constructor(trackingId, performGoogleAnalyticsWireup = true) { this.appEvents = new AppEvents(); this.trackingId = trackingId; this.performGoogleAnalyticsWireup = performGoogleAnalyticsWireup; } beg...
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads/v6/enums/keyword_match_type.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import refl...
define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t){"use strict";var n=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,r=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},r.getTagRule(),{defa...
from echomesh.base import Name from echomesh.base import Platform CONTEXTS = ['tag', 'name', 'platform', 'master', 'default'] def resolve(context): parts = context.split('/') body = parts[0] suffix = parts[1] if len(parts) >= 2 else '' if body not in CONTEXTS: raise Exception('Didn\'t understand "%s" in ...
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # Copyright (c) Megvii, Inc. and its affiliates. from loguru import logger import cv2 import torch from yolox.data.data_augment import preproc from yolox.data.datasets import COCO_CLASSES from yolox.exp import get_exp from yolox.utils import fuse_model, get_model_info, ...
/* Copyright 2021 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 applicable law or a...
import time import json import threading import random import socket from nanpy import (SerialManager) from nanpy.serialmanager import SerialManagerError from nanpy.sockconnection import (SocketManager, SocketManagerError) import sys sys.path.append('..') import variables import importlib #r = redis.Redis(host='127.0...
import pypboy import pygame import game import config class Module(pypboy.SubModule): label = "Skills" def __init__(self, *args, **kwargs): super(Module, self).__init__(*args, **kwargs)
// nuomi.c inherit ITEM; inherit F_FOOD; void create() { set_name("糯米燒賣", ({"nuomi shaomai", "shaomai" }) ); set_weight(50);//一兩 if( clonep() ) set_default_object(__FILE__); else { set("unit", "個"); set("value", 20); set(...
import { model, Schema } from 'mongoose'; const CommentSchema = new Schema( { productId: { type: Schema.Types.ObjectId, ref: 'Product', required: true, }, parentId: { type: Schema.Types.ObjectId, ref: 'Product', }, text: { type: String, required: true, ...
import sys sys.path.append("/sandbox/code/github/threefoldtech/zeroCI/backend") from datetime import datetime from pathlib import Path from redis import Redis from models.base import StoredFactory from models.scheduler_run import SchedulerRun from models.trigger_run import TriggerRun REDIS_PATH = "/var/lib/redis"...
import os import markdown import codecs import difflib try: import nose except ImportError: raise ImportError("The nose testing framework is required to run " \ "Python-Markdown tests. Run `easy_install nose` " \ "to install the latest version.") from . import util...
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
# This file is part of Buildbot. Buildbot 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. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without eve...
import torch import torch.nn as nn import torch.optim as optim from torchvision.utils import save_image import numpy as np from .model import Generator, Discriminator, weights_init_normal from ..general import GeneratePairImageDanbooruDataset, to_loader, save_args def train( epochs, dataset, G, opti...
const validator = require('express-validator'); var async = require('async'); var BookInstance = require('../models/bookinstance'); var Book = require('../models/book'); // Display list of all BookInstances. exports.bookinstance_list = function(req, res, next) { BookInstance.find() .populate('book') .exec...
import electron, { remote } from 'electron'; import fs from 'fs'; import path from 'path'; import https from 'https'; export const getPath = () => { const savePath = (remote || electron).app.getPath('userData'); return path.resolve(`${savePath}/extensions`); }; // Use https.get fallback for Electron < 1.4.5 const...
#pragma once #include <truth/types.h> #include <truth/object.h> #define Thread_Default_User_Stack_Size (16 * KB) #define Thread_Default_Kernel_Stack_Size (8 * KB) enum process_state { Process_Running, Process_Exited, }; enum thread_state { Thread_Running, Thread_Sleeping, Thread_Exited, }; str...
import {Layer} from 'deck.gl'; import GL from '@luma.gl/constants'; import {Model, Geometry} from '@luma.gl/core'; import {textMatrixToTexture} from './utils'; import fragmentShader from './axes-fragment.glsl'; import gridVertex from './grid-vertex.glsl'; import labelVertex from './label-vertex.glsl'; import labelFra...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ The script allows the user to draw the expected availability program of a given set of production units. """ import pandas as pd # from pub_data_visualization import global_var, outages ###############################################################################...
from seedwork.application.commands import Command from seedwork.domain.value_objects import UUID from seedwork.application.command_handlers import CommandResult from seedwork.application.decorators import command_handler from modules.catalog.domain.entities import Listing, Seller from modules.catalog.domain.repositorie...
const Transform = require('stream').Transform const util = require('util') const ReplaceSynonyms = function (options, filter, requestedBuckets) { this.options = options Transform.call(this, { objectMode: true }) } exports.ReplaceSynonyms = ReplaceSynonyms util.inherits(ReplaceSynonyms, Transform) ReplaceSynonyms.p...
import logging import re import shutil import tarfile import urllib.request from collections import defaultdict from pathlib import Path from typing import Dict, NamedTuple, Optional, Union import torchaudio from lhotse.audio import AudioSource, Recording, RecordingSet from lhotse.supervision import SupervisionSegmen...
# Copyright 2012 Nebula, Inc. # # 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 agree...
from django.contrib import admin from django.urls import path from kontranto_igra import views urlpatterns = [ path("", views.index, name="index"), path("pravila", views.pravila, name="pravila"), path("show_board", views.show_board, name="show_board"), path("new_game", views.new_game, name="n...
import torch.nn as nn class PixelShuffleDecoder(nn.Module): """ Pixel shuffle decoder. """ def __init__(self, input_feat_dim=128, num_upsample=2, output_channel=2): super(PixelShuffleDecoder, self).__init__() # Get channel parameters self.channel_conf = self.get_channel_conf(num_upsamp...
# -*- coding: utf-8 -*- # $URL$ # $Date$ # $Revision$ # See LICENSE.txt for licensing terms import os from urllib.parse import urljoin, urlparse from xml.sax.saxutils import escape import docutils.nodes from rst2pdf.basenodehandler import NodeHandler from rst2pdf.image import MyImage, missing from rst2pdf.opt_imp...
# ::import_start:: from math import sqrt as math_square # ::import_end:: # ::testa_start:: # ::case_start:: # >> testa.isEqual(2, 2) # << true # ::case_end:: # ::testa_end:: # ::testa_start:: # ::case_start:: # >> square(9) # << 3.0 # ::case_end:: # ::code_start:: def square(a): return math_square(a) # ::code...
"""sqlmigman shell command executer""" import subprocess as sp class ExecError(Exception): pass def run_in_shell(cmd): proc = sp.Popen(cmd, stdout=sp.PIPE, stderr=sp.PIPE, shell=True) out, err = proc.communicate() if proc.returncode != 0: raise ExecError(err.decode('utf-8')) return out....
# Copyright 1997 - 2018 by IXIA Keysight # # 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 the Software without restriction, including without limitation # the rights to use, copy, modify, merge, p...
# AUTOGENERATED BY NBDEV! DO NOT EDIT! __all__ = ["index", "modules", "custom_doc_links", "git_url"] index = {} modules = [] doc_url = "https://manikyabard.github.io/metrics_anomaly/" git_url = "https://github.com/manikyabard/metrics_anomaly/tree/master/" def custom_doc_links(name): return None
# ex:ts=4:sw=4:sts=4:et # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- import copy import json import logging import re from html import unescape from svtplay_dl.error import ServiceError from svtplay_dl.fetcher.hls import hlsparse from svtplay_dl.service import OpenGraphThumbMixin from svtplay_dl.se...
# # PySNMP MIB module CISCO-IPSEC-FLOW-MONITOR-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-IPSEC-FLOW-MONITOR-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:45:22 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python vers...
from app.utils_dependency import * from app.models import ( Notification, Comment, CommentPhoto, ) from django.contrib.auth.models import User from app.utils import ( get_person_or_org, check_user_type, if_image, ) from app.notification_utils import notification_create from app.wechat_send impor...
"use strict"; /** * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1.20.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator...
'use strict'; const Task = require('co-task'); const sql = require('../api/helpers/sql'); module.exports = { up: function (queryInterface, Sequelize) { return Task.spawn(function*() { yield queryInterface.addColumn('SaladComponents', 'SaladComponentGroupId', Sequelize.INTEGER); yield sql.foreignKeyU...
const CLIEngine = require("eslint").CLIEngine const cli = new CLIEngine({configFile: require.resolve('./.eslintrc')}) module.exports = asset => { const report = cli.executeOnFiles([asset.in]) report.results.forEach(result => result.messages.forEach(message => { const converted = { file: re...
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. __all__ = ['automated_ml', 'bootstrap', 'cate_interpreter', 'causal_forest', 'data', 'deepiv', 'dml', 'dr', 'drlearner', 'inference', 'iv', 'metalearners', 'ortho_forest', 'o...
from django.conf.urls import url from rest_framework.urlpatterns import format_suffix_patterns from coopInfo import views urlpatterns = [ url(r'^api/persons/$', views.PersonList.as_view()), url(r'^web/persons/$', views.PersonListWeb.as_view()), url(r'^api/persons/(?P<pk>[0-9]+)/$', views.PersonDetail.as_v...
from django.test import TestCase from nodes.models import Node from django.contrib.auth import get_user_model import re class NodeTestCase(TestCase): def setUp(self): self.hostname = 'www.example.com' self.remote_url = f'https://{self.hostname}' self.remote_username = 'username' sel...
#!/usr/bin/python3 #Licensed under the 2-Clause BSD License # 0.0000233333333333333 b #Slack Crow 2017 import csv import sys import os import requests import json import time currentBoard = "" currentPage = 0 currentThread = 0 currentPost = 0 #clears the current console def clear(): os.system('cls' if os.name=='...
angular.module('chainid.app').component('endpointsDatatable', { templateUrl: 'app/chainid/components/datatables/endpoints-datatable/endpointsDatatable.html', controller: 'GenericDatatableController', bindings: { title: '@', titleIcon: '@', dataset: '<', tableKey: '@', orderBy: '@', ...
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import json import azure.functions as azf def main(msg: azf.ServiceBusMessage) -> str: result = json.dumps({ 'message_id': msg.message_id, 'body': msg.get_body().decode('utf-8'), 'content_type': ...
OC.L10N.register( "settings", { "Saved" : "Хадгалагдсан", "Sending…" : "Илгээх...", "Private" : "Далд", "Verify" : "Шалнгах", "Unable to change password" : "Нууц үг солих боломжгүй", "Very weak password" : "маш муу нууц үг", "Weak password" : "муу нууц үг", "So-so password" : "ер...
//seija weapon #include <std.h> inherit "/d/magic/obj/weapons/godwpns"; void create() { ::create(); set_name("%^BOLD%^%^BLUE%^El%^RED%^e%^BLUE%^m%^YELLOW%^e%^BLUE%^nt%^RESET%^%^ORANGE%^a%^BOLD%^%^BLUE%^l%^WHITE%^i%^BLUE%^st's Sh%^CYAN%^o%^BLUE%^rtst%^RED%^a%^BLUE%^ff%^RESET%^"); set_short("%^BOLD%^%^BLUE%^...
var searchData= [ ['round_5frobin_72',['round_robin',['../struct_u_t_i_l___s_e_q___priority__t.html#a10895a689ca10b69554ba4a822329f54',1,'UTIL_SEQ_Priority_t']]] ];
const assert = require('assert'); const { omitBy, isUndefined } = require('lodash'); module.exports = function getParams(whitelist) { assert(whitelist, 'whitelist must be present'); class Params { constructor(params) { whitelist.forEach((prop) => { this[prop] = params[prop]; }); Object.seal(this)...
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals import os import shutil import subprocess # nosec: disable=B603 import sys import tempfile import typing from urllib.parse import urlparse import requests def run_command(*co...
'use strict'; const proxyquire = require('proxyquire'); const url = require('url'); const Code = require('code'); const Lab = require('lab'); const lab = exports.lab = Lab.script(); const DATA = ` <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" > ...
# # Copyright (C) 2003-2006 greg Landrum and Rational Discovery LLC # # @@ All Rights Reserved @@ # This file is part of the RDKit. # The contents are covered by the terms of the BSD license # which is included in the file license.txt, found at the root # of the RDKit source tree. # """ Supplies a class for worki...
"""post processing of ansible-navigator configuration """ import importlib import logging import os import shlex import shutil from dataclasses import dataclass from dataclasses import field from enum import Enum from pathlib import Path from typing import List from typing import Tuple from ..utils import ExitMessage...
export * from './configItems'; export * from './configPieces'; export * from './configRequests'; export * from './configTitleReceive'; export * from './configTitles';
"""Parse an tokenized expression into an AST.""" import codecs from runtime import ast, lexer, env, lib, flags class ParseException(Exception): def __init__(self, msg): super().__init__("ParseException: " + msg) class MissingOperand(ParseException): def __init__(self, op): super().__init__("%s...
// SPDX-License-Identifier: GPL-2.0 /* * SMB2 version specific operations * * Copyright (c) 2012, Jeff Layton <jlayton@redhat.com> */ #include <linux/pagemap.h> #include <linux/vfs.h> #include <linux/falloc.h> #include <linux/scatterlist.h> #include <linux/uuid.h> #include <linux/sort.h> #include <crypto/aead.h>...
var smartfare = angular.module('SmartFare', ['ng', 'ngRoute']); smartfare.controller('tripsTableController', function($scope, $http) { $http.get('/api/trips').success(function(data) { $scope.trips = data; console.log(data); }); }); smartfare.controller('usersTableController', function($scope, ...
# International Morse Code defines a standard encoding where each letter is mapped to a series of dots and dashes, as follows: "a" maps to ".-", "b" maps to "-...", "c" maps to "-.-.", and so on. # For convenience, the full table for the 26 letters of the English alphabet is given below: # [".-","-...","-.-.","-..","...
import Vue from 'vue' import Router from 'vue-router' Vue.use(Router) export default new Router({ mode: 'history', base: process.env.BASE_URL, routes: [ { path: '/about', name: 'about', // route level code-splitting // this generates a separate chunk (about.[hash].js) for this route ...
// Word list originally created as part of the Electrum project, Copyright (C) 2014 Thomas Voegtlin // // Copyright (c) 2018, The Safex Project // // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are // permitted provided that the following conditions are...
$(function() { $('.ripiu.rototalc').slick(); });
#!/usr/bin/env python3 import sys sys.path.append("..") import os import asyncio import httpx from auth import authorization_metadata async def main(): endpoint = os.environ.get("VOICEKIT_ENDPOINT") or "api.tinkoff.ai:443" api_key = os.environ["VOICEKIT_API_KEY"] secret_key = os.environ["VOICEKIT_SECRET_...
import helper def main(): print("Name: ", __name__) print("Package: ", __package__) print("File: ", __file__) helper.main() if __name__ == "__main__": print("Hello, World!") main()
from office365.runtime.client_object import ClientObject from office365.runtime.http.http_method import HttpMethod from office365.runtime.queries.service_operation_query import ServiceOperationQuery from office365.runtime.resource_path import ResourcePath from office365.sharepoint.portal.group_site_info import GroupSit...
# Copyright (C) 2010-2013 Yaco Sistemas (http://www.yaco.es) # Copyright (C) 2009 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> # # 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 # # ...
import asyncio import collections.abc import functools import pathlib import shutil import tempfile from datetime import datetime from cached_property import cached_property from ...utils import closer from ..interface import DuplicateEditSession, InvalidSessionState from ..interface import Repo as BaseRepo from ..in...
/* * Kendo UI v2014.2.903 (http://www.telerik.com/kendo-ui) * Copyright 2014 Telerik AD. All rights reserved. * * Kendo UI commercial licenses may be obtained at * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete * If you do not own a commercial license, this file shall be governed by the trial licen...
import pytest import importlib module = importlib.import_module("12_subterranean_sustainability") parse = module.parse state_value = module.state_value def test_parse_input(puzzle): live_sates = [ "...##", "..#..", ".#...", ".#.#.", ".#.##", ".##..", ".####...
import path from 'path' import when from 'when' import * as u from '../util' /** * Update content to an archive. * @promise Update * @param archive {string} Path to the archive. * @param files {string} Files to add. * @param options {Object} An object of acceptables options to 7z bin. * @resolve {array} Argument...
export default [ '~/plugins/Globals', '~/plugins/OptiImage', '~/plugins/Disqus', '~/plugins/EventBus', '~/plugins/Components', '~/plugins/Boxever' ]
# Copyright (c) OpenMMLab. All rights reserved. import warnings import numpy as np import torch from addict import Dict from mmdet.core.bbox.transforms import bbox_cxcywh_to_xyxy, bbox_xyxy_to_cxcywh from mmdet.models.builder import build_backbone, build_head, build_neck from torch.nn.modules.batchnorm import _BatchNo...
import sys from IPython.display import HTML, display as ipy_display import csv class Display: '''A basic display.''' def display(self, game): if game.end == 2: self.win(game) elif game.end == 1: self.lose(game) else: self.show(game) def _displa...
/** * Copyright IBM Corp. 2019, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. * * Code generated by @carbon/icon-build-helpers. DO NOT EDIT. */ 'use strict'; var Icon = require('../Icon-399ca71f.js'); var React = require...
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc from orc8r.protos import sync_rpc_service_pb2 as orc8r_dot_protos_dot_sync__rpc__service__pb2 class SyncRPCServiceStub(object): """Missing associated docum...