text
stringlengths
3
1.05M
import pytest @pytest.mark.skip(reason="New hire work") @pytest.mark.base_classes class TestBaseClasses: """Tests all funcs in base_classes""" pass
from abc import abstractmethod from enum import Enum import pandas as pd from datetime import datetime from analizer.functions import MathFunctions as mf from analizer.functions import TrigonometricFunctions as trf from analizer.functions import StringFunctions as strf # import abstract.select_data as data # Prueba ...
from allennlp.common.testing import ModelTestCase # Some imports necessary in order to register the dataset reader, model, and modules import summarize.data.dataset_readers.sds import summarize.models.sds import summarize.modules.matrix_attention import summarize.training.metrics from summarize.common.testing import F...
#!/usr/bin/python3 # -*- coding: utf-8 -*- """ Defines the server-side for using benchmarks with containers BenchmarkServer defines the server side for the communication between the container (benchmark) and the client. It starts the Pyro4 server and awaits commands from the client. Make sure that all payloads are js...
module.exports = { parser: '@typescript-eslint/parser', parserOptions: { ecmaVersion: 2020, sourceType: 'module', }, extends: ['plugin:@typescript-eslint/recommended', 'prettier'], rules: {}, };
# Copyright 2016 Cloudbase Solutions Srl # 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 r...
!function(t,i,e){var r=(e.un,e.uns,e["static"],e["class"]),h=e.getset,a=(e.__newvec,laya.utils.Browser),s=(laya.utils.Handler,laya.net.Loader),o=laya.maths.Point,l=laya.maths.Rectangle,n=laya.renders.Render,_=laya.display.Sprite,p=laya.resource.Texture,m=function(){function t(){this._jsonData=null,this._tileTexSetArr=[...
/** * 随机数获取 * @param lower 最低值 包括 * @param upper 最高值 不包括 * */ export const random = function(lower, upper) { return Math.floor(Math.random() * (upper - lower)) + lower }
var Renalware = typeof Renalware === 'undefined' ? {} : Renalware; Renalware.Renal = (function () { var setAllComobidityOptionsToNo = function() { $(document).on( "click", "a.set_all_comorbidities_to_no", function(e) { e.preventDefault(); $(".comorbidities input[type=radio]").filter("[value=no],[val...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const Identifiers = require('./Identifiers'); const OfflinePacket_1 = __importDefault(require("./Offline...
# -*- coding: utf-8 -*- import difflib import re def allmusic_artistfind(data, artist): data = data.decode('utf-8') artists = [] artistlist = re.findall('class="artist">\s*(.*?)\s*</li', data, re.S) for item in artistlist: artistdata = {} artistname = re.search('class="name">.*?>(.*?)</...
/*************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. This code is licensed under the Visual Studio SDK license terms. THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES...
// // Copyright 2016 Pixar // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and replaced with: // // 6. Trad...
# # Copyright (c) 2021 Airbyte, Inc., all rights reserved. # import pytest from click.testing import CliRunner from octavia_cli.apply.resources import NonExistingResourceError from octavia_cli.generate import commands @pytest.fixture def context_object(mock_api_client, mock_telemetry_client): return {"PROJECT_IS...
'use strict'; const { ExpressJS, WebhookVerified: Webhook } = require('jovo-framework'); const { app } = require('./app.js'); const fs = require('fs'); // ------------------------------------------------------------------ // HOST CONFIGURATION // ------------------------------------------------------------------ // ...
define (["lib/jquery", "lib/lodash", "src/skinner/core/page", "src/skinner/core/intervals"], function ($, _, Page, intervals) { "use strict"; var CountdownPage = Page.extend({ init: function (data, task) { _.extend(data, { "show timer": true }); this._super(data, task); } }); return CountdownP...
class Event { constructor(/* ServerInfo */ serverInfo, /* JSON */ message) { this.serverInfo = serverInfo; this.message = message; } } module.exports = Event;
// // si-73-secpasswordgenerate.c // sec // #include <stdio.h> #include <Security/SecPasswordGenerate.h> #include <utilities/SecCFRelease.h> #include "Security_regressions.h" static void tests(void) { CFErrorRef error = NULL; CFStringRef password = NULL; CFMutableArrayRef requiredCharacterSets = CFArray...
/* * This file is part of the MicroPython project, http://micropython.org/ * * Taken from ST Cube library and heavily modified. See below for original * copyright header. */ /** ****************************************************************************** * @file USB_Device/CDC_Standalone/Src/usbd_cdc_in...
#------------------------------------------------------------------------------ # Copyright (c) 2011, Enthought, Inc. # All rights reserved. #------------------------------------------------------------------------------ from traits.api import Bool, Str from .bounded_datetime import BoundedDatetime class DatetimeS...
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from typing import Dict, Optional class Registry(object): """ The registry that provides name -> object mapping, to support third-party users' custom modules. To create a registry (e.g. a backbone registry):...
import $ from '../../../core/renderer'; import CurrentTimeShader from '../shaders/ui.scheduler.current_time_shader'; const DATE_TIME_SHADER_ALL_DAY_CLASS = 'dx-scheduler-date-time-shader-all-day'; const DATE_TIME_SHADER_TOP_CLASS = 'dx-scheduler-date-time-shader-top'; const DATE_TIME_SHADER_BOTTOM_CLASS = 'dx-schedule...
'use strict' const path = require('path') const test = require('ava') const { fetchSites, getMostRecent } = require('../commands/sync') const pkg = require('../package') const validSitesUrl = 'https://webring-cli-test.now.sh/valid-sites.js' const invalidSitesUrl = 'https://webring-cli-test.now.sh/invalid-sites.js' ...
""" __graph_ParIndexed.py___________________________________________________________ Automatically generated graphical appearance ---> MODIFY DIRECTLY WITH CAUTION ________________________________________________________________________________ """ import tkFont from graphEntity import * from GraphicalForm impo...
import angular from 'angular'; import moment from 'moment'; import expect from 'expect.js'; import _ from 'lodash'; import sinon from 'auto-release-sinon'; import ngMock from 'ng_mock'; import 'plugins/kibana/visualize/index'; import 'plugins/kibana/dashboard/index'; import 'plugins/kibana/discover/index'; // TODO: T...
# # make_per_season_SS_json.py # # Create a COCO-camera-traps .json file for each Snapshot Serengeti season from # the original .csv files provided on Dryad. # # This was used for "version 1.0" of the public Snapshot Serengeti archive; it's no # longer used as of v2.0 (early 2020). See snapshot_serengeti_lila.py for...
// // (C) CharLS Team 2014, all rights reserved. See the accompanying "License.txt" for licensed use. // #pragma once #include "util.h" #include "jpegsegment.h" #include "jpegstreamwriter.h" #include <vector> class JpegImageDataSegment : public JpegSegment { public: JpegImageDataSegment(ByteStreamInfo rawStream, c...
# Generated by Django 3.1.6 on 2021-03-12 09:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('products', '0002_auto_20210217_2309'), ] operations = [ migrations.AddField( model_name='product', name='memberprodu...
import React from 'react' import { StyleSheet, Platform, Image, Text, View } from 'react-native' import { Button, Avatar } from 'react-native-elements'; import firebase from 'react-native-firebase' import { Header } from 'react-native-elements'; import ImagePicker from 'react-native-image-picker'; let _this = null; va...
from abc import ABC, abstractmethod from typing import Any, Callable, Dict, List, Optional, TextIO, Type class Storage(ABC): def __init__(self, retry_limit: int, api_error: Type[IOError]) -> None: self._drive = None self._api_error = api_error self.retry_limit = retry_limit @abstractm...
import Tkinter as Tk ######################################################################## class OtherFrame(Tk.Toplevel): """""" #---------------------------------------------------------------------- def __init__(self): """Constructor""" Tk.Toplevel.__init__(self) self.geometry...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
#pragma once #define _USING_V110_SDK71_ 1 #include <D3dx9tex.h> #include <string> class Texture { public: Texture(std::string fileName = std::string(), D3DCOLOR colorTransparent = D3DCOLOR_XRGB(0, 0, 0)); ~Texture(); LPDIRECT3DTEXTURE9 GetDirect3DTexture() const { return m_pTexture; } void Loa...
// // OCTEntity.h // OctoKit // // Created by Josh Abernathy on 1/21/11. // Copyright 2011 GitHub. All rights reserved. // #import "OCTObject.h" @class OCTPlan; // Represents any GitHub object which is capable of owning repositories. @interface OCTEntity : OCTObject // The unique name for this entity, used in G...
from django.urls import path from .views import get_ips, get_lists, update_lists urlpatterns = { path('ip', get_ips, name="get_ips"), path('list', get_lists, name="get_lists"), path('management/update', update_lists, name='update_lists') }
import React, { useRef } from "react" const timeoutInfoByNameAndKey = {} const detectChangingProps = (name, Component) => props => { const prevProps = useRef(props) const keys = Object.keys(props) keys.forEach(key => { if(props[key] !== prevProps.current[key]) { const nameAndKey = `${name} ${k...
import CardRoom from './CardRoom'; $(document).ready(() => { const cardRoomEls = document.querySelectorAll('.js-card-room'); cardRoomEls.forEach((cardRoomEl) => new CardRoom(cardRoomEl)); });
""" wrapanapi.entities """ from __future__ import absolute_import from .template import Template, TemplateMixin from .vm import Vm, VmState, VmMixin from .instance import Instance from .stack import Stack, StackMixin __all__ = [ 'Template', 'TemplateMixin', 'Vm', 'VmState', 'VmMixin', 'Instance', 'Stack', 'St...
@abstract class Another_grand_parent(DBC): pass @abstract class Grand_parent(DBC): pass @abstract class Parent(DBC, Grand_parent, Another_grand_parent): pass @abstract class Another_parent(DBC, Grand_parent, Another_grand_parent): pass class Something(DBC, Parent, Another_parent): pass cla...
# ============================================================================= # PROJECT CHRONO - http:#projectchrono.org # # Copyright (c) 2014 projectchrono.org # All rights reserved. # # Use of this source code is governed by a BSD-style license that can be found # in the LICENSE file at the top level of the distri...
var widgetUtils = require("../widgetUtils"); module.exports = function(options, callback) { /* get issue counts by month */ options.db.pull_request.aggregate([ { $group: { _id: { $substr: ['$created_at', 0, 7] }, issue_count: { $sum: 1 } } }, { $sort: { _id: 1 } } ], {allowDiskUse: true, cu...
import React from 'react' import ReactDOM from 'react-dom' class Options extends React.Component { constructor (props) { super(props); this.displayName = 'Options'; this.state = { options: { auth_key: null, auth_hash_id: null }, savedOptions: { } } } comp...
var WindowManager = require('helper/WindowManager'); var Utils = require('helper/Utils'); var Cloud = require('ti.cloud'); exports['Remove Checkin'] = function(evt) { var win = WindowManager.createWindow({ backgroundColor: 'white' }); var button = Ti.UI.createButton({ title: 'Are you sure?', top: 10 + Utils.u...
const Engine = Matter.Engine; const World = Matter.World; const Bodies = Matter.Bodies; const Constraint = Matter.Constraint; var engine, world; var canvas; var palyer, playerBase, playerArcher; var playerArrows = []; function preload() { backgroundImg = loadImage("./assets/background.png"); baseimage = loadImag...
""" xmlhttp controllers, usefull for testing """ import py from pypy.rpython.ootypesystem.bltregistry import BasicExternal, MethodDesc from pypy.translator.js.examples.bnb.servermessage import log, ServerMessage,\ PMSG_INLINE_FRAME, PMSG_DEF_ICON from pypy.translator.js.examples.bnb.msgstruct import * from pypy....
#!/usr/bin/env python ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Test RFC35 for Memory driver # Author: Even Rouault <even dot rouault at mines dash paris dot org> # ##############################################################...
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import sys, os project_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.append(project_path) from tensorflow.python.platform import flags FLAG...
# Copyright 2021 Huawei Technologies Co., Ltd # # 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...
import glob import ete3 import os from Bio import Entrez from Bio import SeqIO def get_acc_for_gi(): Entrez.email = 'max-emil.schon@icm.uu.se' qui_gi = [l.strip() for l in open('gi_list.csv')] gi2acc = {} for i in range(0, len(qui_gi), 200): gi_fetch = ','.join(qui_gi[i:i+200]) handle =...
"""Read and interpret the project configuration file.""" from timo.file_manager.file_reader import Reader from timo.file_manager.file_writer import Writer from timo.exception import FileExtensionError from typing import Dict from typing import List from typing import NoReturn from timo.utils import colored_print impor...
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.EuiFilePicker = exports.DISPLAYS = void 0; var _extends...
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * Mock class for VolumeManager. * @final * @implements {VolumeManager} */ class MockVolumeManager { constructor() { /** @const {!VolumeInfoL...
#pragma once #include <inttypes.h> #include <stdbool.h> #include <stdio.h> #include <rte_ether.h> bool nf_parse_etheraddr(const char* str, struct rte_ether_addr* addr) { return sscanf(str, "%02hhX:%02hhX:%02hhX:%02hhX:%02hhX:%02hhX", addr->addr_bytes + 0, addr->addr_bytes + 1, ...
#!/usr/bin/python3 # Validate Passport # Valid passports have all fields except "cid" import sys class Field: valid_fields = { "byr", # (Birth Year) "iyr", # (Issue Year) "eyr", # (Expiration Year) "hgt", # (Height) "hcl", # (Hair Color) "ecl", # (Eye Color) ...
__version__ = "0.9.1" __prog__ = "ansible-playbook-grapher"
from __future__ import print_function, absolute_import, division import KratosMultiphysics import numpy as np from .MainKratosROM import TestConvectionDiffusionStationaryROM import KratosMultiphysics.KratosUnittest as KratosUnittest import KratosMultiphysics.kratos_utilities as kratos_utilities class ROMStationaryC...
# 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, software # distributed under t...
define( ({ Select: 'выборка', clear: 'очистить' }) );
from functools import update_wrapper from dagster import check from ..graph import GraphDefinition from ..input import InputDefinition from ..output import OutputDefinition class _Graph: def __init__( self, name=None, description=None, input_defs=None, output_defs=None, ...
## Test # Main script to test cat detector # # Author: Fahim Dalvi import dlib import numpy as np from PIL import Image from PIL import ImageDraw from keras.models import load_model from data_utils import * import keras import os import cPickle as cp import sys import h5py def rect2lines(bbox): """ Given a boun...
import React from 'react'; import { Table, Divider } from 'antd'; import { connect } from 'dva'; const columns = [ { title: 'id', dataIndex: 'id', key: 'id', }, { title: '页面', dataIndex: 'pageName', key: 'pageName', }, { title: '路径', dataIndex: 'pagePath', key: 'pagePath',...
""" WSGI config for wecloud project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTI...
BX.namespace("BX.Report");if(typeof BX.Report.setSelectValue==="undefined"){BX.Report.setSelectValue=function(e,t){var i,s;var r=false;var l=!!e.getAttribute("multiple");if(!(t instanceof Array))t=[t];for(i=0;i<e.options.length;i++){for(s in t){if(e.options[i].value==t[s]){if(!r){r=true;e.selectedIndex=i}e.options[i].s...
export default (list, accumulator) => { const out = []; let idx = -1; const end = Array.isArray(list) ? list.length : 0; while (++idx < end) { out.push(accumulator(list[idx])); } return out; };
import pathlib import hashlib import shutil import threading import os import logging from pprint import pprint from mutagen.easyid3 import EasyID3 class LocalFileInterfaz(object): def __init__(self, dirsInput=[], dirOutput=None): self.dirsInput = dirsInput self.dirOutput = dirOutput self.t...
# [\0] # # # # This code is confidential and proprietary, All rights reserved. # # # # Tamar Labs 2015. # # # # @author: Adam Lev-Libfeld (adam@tamarlabs....
/* Flot plugin for showing a crosshair, thin lines, when the mouse hovers over the plot. crosshair: { mode: null or "x" or "y" or "xy" color: color lineWidth: number } Set the mode to one of "x", "y" or "xy". The "x" mode enables a vertical crosshair that lets you trace the values on the x axis, "y" e...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["polyfills"],{ /***/ "./node_modules/zone.js/dist/zone-evergreen.js": /*!*****************************************************!*\ !*** ./node_modules/zone.js/dist/zone-evergreen.js ***! \*****************************************************/ /*! no sta...
window._ = require('lodash'); /** * We'll load jQuery and the Bootstrap jQuery plugin which provides support * for JavaScript based Bootstrap features such as modals and tabs. This * code may be modified to fit the specific needs of your application. */ try { window.Popper = require('popper.js').default; ...
import * as path from "path" import * as webpack from "webpack" let cssModulesLoader = "css-loader?importLoader=1&modules&localIdentName=[path]___[name]__[local]___[hash:base64:5]" module.exports = { devtool: "inline-source-map", entry: [ "webpack-hot-middleware/client", path.resolve(__dirname, "src/entry.j...
module.exports = { en_US: { createdAt: 'Created', amount: 'Total', chargeStatus: 'Billing status', chargeFor: 'Billing for: ', description: 'Description', name: 'Name', quantity: 'Quantity', } }
# -*- coding:utf-8 -*- import os import sys import time import math import reader import random import inspect import collections import numpy as np import tensorflow as tf from scipy.sparse import lil_matrix reload(sys) sys.setdefaultencoding("utf-8") os.environ["CUDA_VISIBLE_DEVICES"] = "7" config = tf.ConfigProt...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * 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 applic...
import { parseCall, parseNextToken, parseNextListValue, finishParsingList } from './parseCall'; import { parameterValue, isParameterReference } from './values'; import { functionWithName } from './functionTable'; import { performAll } from './perform'; const parseTo = (state, token) => { if (token.type === '...
"""Network helper class for the network integration.""" from __future__ import annotations from ipaddress import IPv4Address, IPv6Address, ip_address import logging import socket from typing import cast import ifaddr from openpeerpower.core import callback from .const import MDNS_TARGET_IP from .models import Adapt...
# -*- coding: utf-8 -*- from flask.ext.sqlalchemy import SQLAlchemy db = SQLAlchemy() from flask.ext.mail import Mail mail = Mail() from flask.ext.cache import Cache cache = Cache() from flask.ext.login import LoginManager login_manager = LoginManager() from flask.ext.openid import OpenID oid = OpenID()
const MODULE_NAME = 'foundryvtt-custom-classes' const SETTING_NAME = 'classesOverride' function log(data) { console.log("Foundry VTT | Custom Classes", data) } Hooks.once('ready', async function () { game.settings.register(MODULE_NAME, SETTING_NAME, { scope: 'world', config: false, type: Object, d...
from tests.util.test_util import get_client, get_service_description, get_endpoint_service_clients, get_service_descriptions, get_service_clients from xrdsst.controllers.base import BaseController from xrdsst.controllers.client import ClientController from xrdsst.controllers.endpoint import EndpointController, Endpoint...
from django.core.management.base import BaseCommand from peeringdb_server.models import REFTAG_MAP import reversion import json import re class Command(BaseCommand): help = "Undo object deletion" def add_arguments(self, parser): parser.add_argument( "reftag", nargs="?", help="object ref...
IntlPolyfill.__addLocaleData({locale:"yav",date:{ca:["gregory","buddhist","chinese","coptic","dangi","ethioaa","ethiopic","generic","hebrew","indian","islamic","islamicc","japanese","persian","roc"],hourNo0:true,hour12:false,formats:{short:"{1} {0}",medium:"{1} {0}",full:"{1} {0}",long:"{1} {0}",availableFormats:{"d":"...
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # 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 ...
// // CustomCell.h // Delicious // // Created by Vinh Nguyen on 7/9/15. // Copyright (c) 2015 TinhVan. All rights reserved. // #import <UIKit/UIKit.h> @interface CustomCell : UITableViewCell @property (weak, nonatomic) IBOutlet UIImageView *channelImage; @property (weak, nonatomic) IBOutlet UILabel *channelTitle...
import { container, defaultFont, primaryColor, infoColor, successColor, warningColor, dangerColor, roseColor, transition, boxShadow, drawerWidth } from "assets/jss/material-kit-react.js"; const headerStyle = { appBar: { display: "flex", border: "0", padding: "0.625rem 0", margin...
var oauthshim = require('oauth-shim'), express = require('express'), credentials = require('./credentials.json') ; var app = express(); app.all('/oauthproxy', oauthshim); var creds = { }; creds[credentials.TWITTER_CLIENT] = credentials.TWITTER_CLIENT_SECRET; creds[credentials.GITHUB_CLIENT] = creden...
import React from "react"; const Search = ({ txtSearch, handleOnChange, handleSearchCountries, handleResetCountries }) => { return ( <div className='div-search'> <input className='test' type='text' name='txtSearch' value={tx...
import sys import numpy as np from copy import copy import matplotlib.pyplot as plt from sklearn.decomposition import PCA from concurrent.futures import ProcessPoolExecutor, as_completed from helper_functions import * def surface_area_calculation(l_axis, d_axis, bins, bin_range, p_init, i): fig = plt.figure() ...
import numpy as np import argparse from train import * from test import * from new_train import train ##################################################### # Training: python Transfer_learning.py -bs 5 -m ./ckpt-enet-100-35.71956396102905.pth --cuda True ##################################################### # Fordpa...
console.log("Archivo editado desde la pc windows 10");
/* YUI 3.11.0 (build d549e5c) Copyright 2013 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('datatable-column-widths', function (Y, NAME) { /** Adds basic, programmatic column width support to DataTable via column configuration property `width` and method `t...
from colorama import Fore, init, deinit def test_colorama(capsys): init(autoreset=True) print(Fore.GREEN + "hello world") deinit() result = capsys.readouterr() assert result.out == "hello world\n"
import _plotly_utils.basevalidators class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): def __init__(self, plotly_name="colorscale", parent_name="heatmap", **kwargs): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_nam...
/* # STPrivilegedTask - NSTask-like wrapper around AuthorizationExecuteWithPrivileges # Copyright (C) 2009-2017 Sveinbjorn Thordarson <sveinbjorn@sveinbjorn.org> # # BSD License # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following condition...
# Copyright 2019 NEC 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 in writi...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ #include "chrome/browser/ui/aut...
/* Logr v0.1.0 (2015-01-08) */ /* A 'configurable' logging utility for JavaScript! */ var Logr;!function(Logr){var Formatters;!function(Formatters){var ErrorFormatter=function(){function ErrorFormatter(){}return ErrorFormatter.prototype.getMessage=function(error){return error.message?error.message:error.toString?error....
# -*- coding: utf-8 -*- from django.db import models from openslides.projector.models import SlideMixin class RelatedItem(SlideMixin, models.Model): slide_callback_name = 'test_related_item' name = models.CharField(max_length='255') class Meta: verbose_name = 'Related Item CHFNGEJ5634DJ34F' ...
(function(global) { 'use strict'; var fabric = global.fabric || (global.fabric = { }), degreesToRadians = fabric.util.degreesToRadians, controls = {}; function renderCircleControl (ctx, left, top, styleOverride, fabricObject) { styleOverride = styleOverride || {}; if (!this.getVisibility(fa...
from setuptools import setup setup( name="disk_cache", version="", packages=["disk_cache"], url="https://github.com/mavnt/disk_cache", license="MIT", author="Mirko Avantaggiato", author_email="", description="", )
from Abstract.Expression import Expression from Environment.Environment import Environment from Environment.Value import Value from Enum.typeExpression import typeExpression class Minus(Expression): def __init__(self, left: Expression, right: Expression) -> None: super().__init__() self.leftExpres...
(window.webpackJsonp=window.webpackJsonp||[]).push([[156],{529:function(s,t,a){"use strict";a.r(t);var n=a(52),e=Object(n.a)({},(function(){var s=this,t=s.$createElement,a=s._self._c||t;return a("ContentSlotsDistributor",{attrs:{"slot-key":s.$parent.slotKey}},[a("h1",{attrs:{id:"处理响应-data"}},[a("a",{staticClass:"header...