text
stringlengths
3
1.05M
// Karma configuration file, see link for more information // https://karma-runner.github.io/1.0/config/configuration-file.html module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine', '@angular-devkit/build-angular'], plugins: [ require('karma-jasmine'), requir...
from keras.layers import Input, Reshape, Dropout, Dense, Flatten, BatchNormalization, Activation, ZeroPadding2D from keras.layers.advanced_activations import LeakyReLU from keras.layers.convolutional import UpSampling2D, Conv2D from keras.models import Sequential, Model, load_model from keras.optimizers import Adam imp...
module.exports = /******/ (function(modules, runtime) { // webpackBootstrap /******/ "use strict"; /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/...
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
from os import truncate from Includes import os, shutil, sleep from AssistantConfig import voice, USERPATH TIME = 10 def extension_type(event): # Get file's extension if event.src_path[event.src_path.rindex('.') + 1:] != 'tmp' or 'crdownload': return event.src_path[event.src_path.rindex('.') + 1:] # --- ...
from timeit import default_timer import torch import torchvision import torchvision.transforms as transforms from joblib import Memory from tqdm import tqdm from spn.algorithms.Inference import log_likelihood from spn.algorithms.LearningWrappers import learn_classifier, learn_parametric from spn.experiments.layers.l...
from solcon import * """ Test util file, it should be moved into test/ in the future """ class Util: root = "../../" @staticmethod def solcon(file, config="config-esc.toml"): # Remove '../' to root if you're running it via unit_tests.py s = SolCon(internal_run=True, internal_args=Util.form...
import logging import os.path import shutil from abc import ABC, abstractmethod from dataclasses import dataclass from typing import Iterator, List, Type from common import directories, file_utils from common.commands.base import ArxivBatchCommand from common.compile import compile_tex, get_errors, is_driver_unimpleme...
import pytest from django.conf import settings from django.test import RequestFactory from casa_amparo.users.tests.factories import UserFactory @pytest.fixture(autouse=True) def media_storage(settings, tmpdir): settings.MEDIA_ROOT = tmpdir.strpath @pytest.fixture def user() -> settings.AUTH_USER_MODEL: ret...
/* Ordered Dictionary object implementation. This implementation is necessarily explicitly equivalent to the pure Python OrderedDict class in Lib/collections/__init__.py. The strategy there involves using a doubly-linked-list to capture the order. We keep to that strategy, using a lower-level linked-list. About the...
# Copyright (c) 2020, NVIDIA CORPORATION. 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 appli...
""" # Copyright 2022 Red Hat # # 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 agr...
//# sourceMappingURL=dateInterface.js.map
// homebridge-rpi/index.js // Copyright © 2019-2021 Erik Baauw. All rights reserved. // // Homebridge plugin for Raspberry Pi. 'use strict' const RpiPlatform = require('./lib/RpiPlatform') const packageJson = require('./package.json') module.exports = function (homebridge) { RpiPlatform.loadPlatform(homebridge, pa...
from __future__ import unicode_literals from . import packetutils as pckt from os import urandom from bluepy import btle import logging import struct import time # Commands : #: Set mesh groups. #: Data : 3 bytes C_MESH_GROUP = 0xd7 #: Set the mesh id. The light will still answer to the 0 mesh id. Calling the #: c...
// 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 License, Version 2.0 (the // "License"); you may...
/******************************************************************************** ** Form generated from reading UI file 'contoursui.ui' ** ** Created by: Qt User Interface Compiler version 5.2.1 ** ** WARNING! All changes made in this file will be lost when recompiling UI file! ****************************************...
// reference https://github.com/noeldelgado/gemini-scrollbar/blob/master/index.js import { addResizeListener, removeResizeListener } from 'gemini-ui/src/utils/resize-event'; import scrollbarWidth from 'gemini-ui/src/utils/scrollbar-width'; import { toObject } from 'gemini-ui/src/utils/util'; import Bar from './bar'; ...
#!/usr/bin/python # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supporte...
# coding: utf-8 """ HubSpot Events API API for accessing CRM object events. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from hubspot.events.configuration import Configuration class Paging...
/********************************************************************************************************************* * Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * ...
import logging logger = logging.getLogger(__name__) def error(): raise RuntimeError() def log(msg): print(msg) def silenced1(): try: error() except Exception: pass def silenced2(): try: error() except Exception as exc: log(exc) for i in range(200)...
# *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* # ** Copyright UCAR (c) 1992 - 2014 # ** University Corporation for Atmospheric Research(UCAR) # ** National Center for Atmospheric Research(NCAR) # ** P.O.Box 3000, Boulder, Colorado, 80307-3000, USA # ** See LICENSE.TXT for license detai...
""" For main documentation consult cog/bot.py """ import sys __version__ = '0.3.1' try: assert sys.version_info[0:2] >= (3, 7) except AssertionError: print('This entire program must be run with python >= 3.7') print('If unavailable on platform, see https://github.com/pyenv/pyenv') sys.exit(1)
from sympy import Eq, S, sqrt from sympy.abc import x, y, z, s, t from sympy.sets import FiniteSet, EmptySet from sympy.geometry import Point from sympy.vector import ImplicitRegion from sympy.testing.pytest import raises def test_ImplicitRegion(): ellipse = ImplicitRegion((x, y), (x**2/4 + y**2/16 - 1)) asse...
window.__NUXT__=(function(a,b,c,d,e){return {staticAssetsBase:"https:\u002F\u002Fwww.baca-quran.id\u002Fstatic\u002F1627814429",layout:"default",error:b,state:{notification:{show:a,title:c,message:c},isShowSidebar:a,isSupportWebShare:a,headerTitle:"Baca Qur'an",page:"home",lastReadVerse:b,settingActiveTheme:{name:"dark...
(function() { var script = document.currentScript; var previousOnload = window.onload || function(){}; window.onload = function() { previousOnload(); var container = script.parentElement.parentElement; var date = container.querySelector('x-date').when(); if (date < new Date()) { container.c...
# Copyright (c) 2012 OpenStack Foundation. # # 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 itertools import json import uuid from datetime import timedelta from functools import reduce import numpy from django.core.exceptions import SuspiciousOperation, ValidationError from django.db import models from django.db.models import Q from rest_framework import serializers from perftracker.helpers import P...
import axios from 'axios' export function request(config) { // 1.创建axios实例 const instance = axios.create({ baseURL: 'http://152.136.185.210:7878/api/m5', timeout: 5000, }) // 2.axios网络拦截器 // request拦截下来的config参数其实就是我们的网络请求的配置(但好像没有拦截下数据) instance.interceptors.request.use...
from dataclasses import dataclass from typing import List from src.types.condition_opcodes import ConditionOpcode @dataclass(frozen=True) class ConditionVarPair: """ This structure is used to store parsed CLVM conditions Conditions in CLVM have either format of (opcode, var1) or (opcode, var1, var2) ...
# Copyright (c) 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # # Code generated. DO NOT EDIT! # template file: justice_py_sdk_codegen/__main__.py # pylint: disable=duplicate-code # pylint: disable=li...
# Generated by Django 3.2.5 on 2021-07-26 19:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('neighborhood', '0006_rename_health_tell_neighborhood_hospital_number'), ] operations = [ migrations.AlterField( model_name='neig...
import numpy as np import pyglet import time class KinematicEnv(): viewer = None dt = 0.1 state_dim = 12 action_dim = 5 action_bound = [-1, 1] def __init__(self): #位姿初始化 self.STATE = 0 #0表示两端都在杆上; 1表示下端在杆上,执行stepUp(); 2表示上端在杆上,执行stepDown() self.on_goal = 0 #判断当前动作是否结束 ...
from item import Item class Pepe(Item): NAME = 'Pepe' QUALITY_FACTOR = 0 SELL_IN_FACTOR = 0 def __init__(self, sell_in, quality): super().__init__(self.NAME, sell_in, quality) def update_quality(self): self.decrase_quality() self.decrease_sell_in() if self.sell_i...
GLOBAL['#FairKey#']=(function(__initProps__){const __global__=this;return runCallback(function(__mod__){with(__mod__.imports){function PicData(){const inner=PicData.__inner__;if(this==__global__){return new PicData({__args__:arguments});}else{const args=arguments.length>0?arguments[0].__args__||arguments:[];inner.apply...
// Copyright 2016 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 SERVICES_DATA_DECODER_DATA_DECODER_SERVICE_H_ #define SERVICES_DATA_DECODER_DATA_DECODER_SERVICE_H_ #include <memory> #include "base/macros.h" #...
// Dependencies // ============================================================= var express = require("express"); var bodyParser = require("body-parser"); // Sets up the Express App // ============================================================= var app = express(); var PORT = process.env.PORT || 7999; //Sets up th...
from flask import Flask from config import FitterConfig from fitter.cachestore.inmemory import InMemoryStore from fitter.cachestore.redis import RedisStore from fitter.storage.fs import FileSystemSourceStorage from fitter.storage.fs import FileSystemStoreStorage from fitter.storage.s3 import S3SourceStorage from fitte...
// This file is required by the index.html file and will // be executed in the renderer process for that window. // All of the Node.js APIs are available in this process. var remote = require('electron').remote; function leave(){ console.log('closing') remote.getCurrentWindow().close(); } module.exports=leave;
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/3.15/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details. //>>built define({"widgets/GriddedReferenceGraphic/setting/nls/strings":{gridTabLabel:"Grid",labelTabLabel:"Labe...
import numpy as np def to_one_hot(observation, dim): """ Convert Discrete observation to one-hot vector """ v = np.zeros(dim) v[observation] = 1 return v def from_one_hot(observation): assert (np.sum(observation) == 1) return np.argmax(observation) def discount(x, gamma): """ ...
// // ShowAlertClass.h // impcloud_dev // // Created by 许阳 on 2019/3/27. // Copyright © 2019 Elliot. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN typedef void (^sureBtnClickBlock) (void); typedef void (^CancelBlock) (void); @interface ShowAlertClass :...
/* * $Log: set.h,v $ * Revision 1.6 2003/05/20 15:12:55 sccblom * Added weak bisimulation and trace equivalence. * * Stefan. * * Revision 1.5 2003/04/22 15:33:27 sccblom * Distributed branching bisimulation v1. * * Revision 1.4 2002/12/05 15:27:43 sccblom * Fixed a number of bugs for branching bisimula...
import React from "react"; import PropTypes from "prop-types"; import CommentsBlock from "./CommentsBlock"; import RecipeItem from "./RecipeItem"; const RecipePage = ({ recipes, match, searchString }) => recipes ? recipes.results .filter(recipe => { return recipe.title === match.params.recipeSl...
# from resource.city import get from resource.city import get from resource import User from flask_restful import Api from flask import Flask print(get()) app = Flask(__name__) api = Api(app, catch_all_404s=True) api.add_resource(User, '/user/<int:id>', '/user', '/user/') if __name__ == '__main__': app.run(debug=T...
import numpy from Bio import SeqIO import sys import pysam # import vcf from pstats import Stats from collections import OrderedDict from cProfile import run from pstats import Stats USE_CHASTITY = False ### cat sd_0001_PAO1_5k.sam | python get_alleles_from_sam.py sample_name positions.txt vcf_file def get_args(): ...
import { Shape, xy } from '@jsxcad/api-shape'; import { outline, taggedGroup, translate } from '@jsxcad/geometry'; import { seq } from '@jsxcad/api-v1-math'; import { toToolFromTags } from '@jsxcad/algorithm-tool'; const Z = 2; const carve = (block, tool = {}, ...shapes) => { const { grbl = {} } = tool; const { ...
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 4 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import isi_sdk_8_0_1 from i...
def nested_dictionnary(dic, nest_list, value, verbose = 0) : if verbose > 1 : print(f"parameters : {dic} {nest_list} {value}") if len(nest_list) == 1 : dic[nest_list[0]] = value if verbose > 1 : print(dic) return(dic) elif nest_list[0] not in dic : dic[nest_list[0]] = nested_dictionnary({}, nest_list[1:...
# (c) Copyright 2016 Hewlett-Packard Enterprise Development , L.P. # # 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 app...
var searchData= [ ['access',['access',['../structgdt__entry__struct.html#a360a726ac0b61d9e4e1be3ad34f80244',1,'gdt_entry_struct::access()'],['../tables_8h.html#a360a726ac0b61d9e4e1be3ad34f80244',1,'access():&#160;tables.h']]], ['accessed',['accessed',['../structpage__entry.html#afb99a0327fa4c7332208a4c69586c8ec',1,...
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
import React from "react" import { shallow } from "enzyme" import toJson from "enzyme-to-json" import Markdown from "../markdown" describe("Markdown", () => { const props = { data: { ama: "", badgeColor: "0e75b6", badgeLabel: "Profile views", badgeStyle: "flat", collaborateOn: "", ...
#include <stdio.h> int main() { printf( "Hello\n" ); return 0; }
(function() {var implementors = {}; implementors["parking_lot"] = [{"text":"impl <a class=\"trait\" href=\"lock_api/rwlock/trait.RawRwLockUpgradeTimed.html\" title=\"trait lock_api::rwlock::RawRwLockUpgradeTimed\">RawRwLockUpgradeTimed</a> for <a class=\"struct\" href=\"parking_lot/struct.RawRwLock.html\" title=\"struc...
# Copyright 2019 The Cirq Developers # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
import React from 'react'; import styled from 'styled-components'; const Container = styled.section` padding: 0 2rem; h1 { font-size: 2rem; margin-bottom: 1rem; } p { line-height: 1.5; } `; const Services = styled.section` display: grid; grid-template-rows: 1fr 1fr; grid-template-columns...
#ifndef CONSOLEDISPLAY_H #define CONSOLEDISPLAY_H #include "Display.h" class ConsoleDisplay : public Display { public: void show(); }; #endif
# import portality.models, workflows, cerif from portality import models from portality.gtrindexer import workflows from portality.gtrindexer import cerif from portality import settings def project_handler(project, cerif_project): proj = models.Project(**project.as_dict()) print "saving data from " + project....
/* * BMKPolyline.h * BMapKit * * Copyright 2011 Baidu Inc. All rights reserved. * */ #import "BMKMultiPoint.h" #import "BMKOverlay.h" /// 此类用于定义一段折线 @interface BMKPolyline : BMKMultiPoint <BMKOverlay> /** *根据指定坐标点生成一段折线 *@param points 指定的直角坐标点数组 *@param count points数组中坐标点的个数 *@return 新生成的折线对象 */ + (BMK...
import MQTTClient from './MQTTClient'; import Constants from '../constants/'; import store from '../store'; import * as action from '../action/'; import { getUrlFor } from '../reducers'; import { subscribe } from 'redux-subscriber'; const mqttEvents = Constants.MQTTEvents; export const bindMQTTEvents = url => { let...
""" """ import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from sympy import * from sympy.matrices import Matrix,eye from moro.transformations import * from moro.util import * __all__ = ["plot_euler", "draw_uv", "draw_uvw"] def plot_euler(phi,theta,psi,seq="zxz"): fig = plt.figure() ax =...
import os from django.contrib import admin from django.utils.safestring import mark_safe from frontend.apps.post.models import Post, Extractor class PostAdmin(admin.ModelAdmin): list_display = ('id', 'getSubject', 'upvotes', 'post_age', 'comments', 'is_read', 'is_deleted') # fieldsets basically organises the...
deepmacDetailCallback("40d855190000/36",[{"a":"Rua Alencar Araripe,1440 São Paulo SP BR 04253-000","o":"Spider Tecnologia Ind. e Com Ltda","d":"2013-10-13","t":"add","s":"ieee","c":"BR"}]);
import unittest from pyknon import notation class TestNotation(unittest.TestCase): def test_parse_accidental(self): acc1 = notation.parse_accidental("###") acc2 = notation.parse_accidental("bbb") acc3 = notation.parse_accidental("") self.assertEqual(acc1, 3) self.assertEqua...
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
import './styles.scss'; import React from 'react'; import InputWithButton from 'widgets/InputWithButton'; const ComingSoon = () => ( <div className="coming-soon-container"> <div className="content"> <div> <p>Something Is</p> <div className="soon">COMING SOON</div> <p>We will be cele...
// @flow import type { EdgeLobby } from 'edge-core-js' import { type Reducer } from 'redux' import type { Action } from '../../modules/ReduxTypes.js' export type EdgeLoginState = { lobby: EdgeLobby | null, error: Error | null, isProcessing: boolean } const initialState = { lobby: null, erro...
from balebot.models.messages.template_response_message import TemplateResponseMessage import re from balebot.filters.filter import Filter class TemplateResponseFilter(Filter): def __init__(self, keywords=None, pattern=None, validator=None, include_commands=True): super(TemplateResponseFilter, self).__init...
import logging import random import time from typing import Dict, Tuple from tor.helpers.flair import check_promotion import beeline from blossom_wrapper import BlossomStatus from praw.models import Comment, Message, Redditor, Submission from tor.validation.formatting_validation import ( check_for_formatting_issu...
from random import randint, choice import pygame pygame.init() def create_checker_board(): x = y = 0 for i in range(6): for j in range(6): pygame.draw.rect(screen, choice(colors), (x, y, 100, 100)) x += 100 y += 100 x = 0 screen = pygame.display.set_mode((600,...
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "S1AP-Containers" * found in "../support/r14.4.0/36413-e40.asn" * `asn1c -pdu=all -fcompound-names -findirect-choice -fno-include-deps` */ #include "S1AP_ProtocolIE-SingleContainer.h" /* * This type is implemented using S1AP_E_RABTo...
import time from app.thirdparty.oneforall.config import settings from app.thirdparty.oneforall.common.search import Search from app.thirdparty.oneforall.config.log import logger class GithubAPI(Search): def __init__(self, domain): Search.__init__(self) self.source = 'GithubAPISearch' self...
var searchData= [ ['ndarrayformaterr',['NDArrayFormatErr',['../namespacemxnet.html#ace60510752753f459193f95cab0e9e1a',1,'mxnet']]], ['ndarrayfunctiontypemask',['NDArrayFunctionTypeMask',['../namespacemxnet.html#a89a5f0f5cfd9e1e94604a7b42dda818a',1,'mxnet']]], ['ndarraystoragetype',['NDArrayStorageType',['../names...
import requests import os import shutil from concurrent.futures import ProcessPoolExecutor,ThreadPoolExecutor from threading import currentThread import traceback from PIL import Image from urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureRequestWarning) def save_ima...
'use strict'; exports.up = function (knex) { return knex.schema.table('accounts', function (table) { table.string('role', true).notNullable().defaultTo('admin'); }); }; exports.down = function (knex) { return knex.schema.table('accounts', function (table) { table.dropColumn('role'); }); };
'use strict'; module.exports = function(grunt) { grunt.config('uglify', { options: { banner: '/*!' + '\n<%= pkg.name %> - v<%= pkg.version %> - ' + '<%= grunt.template.today("yyyy-mm-dd") %>' + '\nhttps://github.com/provejs-jquery' + '\n*/' }, prove: { options: { sourceMap: true, sour...
import numpy as np __all__ = ["plot_spectrum_datasets_off_regions", "plot_contour_line"] def plot_spectrum_datasets_off_regions(datasets, ax=None): """Plot spectrum datasets of regions. Parameters ---------- datasets : list of `SpectrumDatasetOnOff` List of spectrum on-off datasets """ ...
import pandas as pd from evalml.objectives import get_objective from evalml.pipelines.regression_pipeline import RegressionPipeline from evalml.problem_types import ProblemTypes from evalml.utils.gen_utils import ( _convert_to_woodwork_structure, _convert_woodwork_types_wrapper, drop_rows_with_nans, pa...
/*- * Copyright (c) 2007 Kai Wang * Copyright (c) 2007 Tim Kientzle * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright *...
/** * 自定义jquery扩展方法 */ $.extend({ });
'use strict'; var _ = require('lodash'), should = require('should'), request = require('supertest'), path = require('path'), async = require('async'), moment = require('moment'), mongoose = require('mongoose'), User = mongoose.model('User'), Offer = mongoose.model('Offer'), Tribe = ...
import React, { useState } from "react"; // import useFetch from "../../hooks/useFetch"; import useQuery from "../../hooks/useQuery"; import Card from "../../components/Card"; import Pagination from "../../components/PaginationC"; import SearchBox from "../../components/SearchBox/SearchBox"; import PhSlider from "../....
# Generated by Django 2.2.1 on 2021-03-19 06:30 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('webapi', '0061_auto_20210317_1402'), ] operations = [ migrations.AlterField( model_name='entity...
# -*- coding: utf-8 -*- from __future__ import unicode_literals import datetime import transaction def setUp(): from sw.allotmentclub import Depot, User user = User.create(username='hans') Depot.create(date=datetime.datetime(2014, 11, 27, 7, 21, 45), size=15, data=b'GIF89a????!?,D;', mime...
import codecs import datetime import locale from decimal import Decimal from urllib.parse import quote from django.utils.functional import Promise class DjangoUnicodeDecodeError(UnicodeDecodeError): def __init__(self, obj, *args): self.obj = obj super().__init__(*args) def __str__(self): ...
class PublicKey(object): def __init__(self, keylen, data): """ :param data: bytes """ if len(data) != keylen: raise ValueError("Wrong length: %d" % len(data)) self._data = data @property def data(self): """ :return: bytes """ ...
import { moduleFor, test } from 'ember-qunit'; moduleFor( 'route:student/class', 'Unit | Route | student/class', { // Specify the other units that are required for this test. // needs: ['controller:foo'] } ); test('it exists', function(assert) { let route = this.subject(); assert.ok(route); });
/** * 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'; function _interopDefault (ex) { return (ex && (typeof ex === '...
# Copyright (c) 2010-2011 OpenStack, 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 ...
(function () { angular.module('app.core') .run(appRun); /* @ngInject */ function appRun(routeHelper){ routeHelper.configure('/404',getStates()); function getStates() { return [ { state: '404', config: { url: '/404', templateUrl: 'app/core/404.html', title: '404' ...
/** * @file csscomb rule * @author chris<wfsr@foxmail.com> */ var path = require('path'); var Module = require('module'); function createModule(filename) { var mod = new Module(filename); mod.filename = filename; mod.paths = Module._nodeModulePaths(path.dirname(filename)); return mod; } var cssco...
import Link from 'next/link' export default function About() { return ( <> <h1>About Appainter Net</h1> <h2> <p>Minimalistic Nextjs frontend.</p> <Link href="/"> <a>Back to home</a> </Link> </h2> </> ) }
/** @jsx jsx */ import {jsx, Styled, Container} from 'theme-ui' import React, {useEffect, useState} from 'react' // eslint-disable-line // import SEO from '../components/seo' // import RenderModules from '../lib/renderModules' import Product from '../components/dashboard/analytics/productRow' const Fundraiser = ({pat...
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] # Embedded file name: T:\InGame\Gameplay\Scripts\Server\sims\sim.py # Compiled at: 2020-10-22 18:43:51 # Size of source mod 2**32: 217029 bytes import funct...
# Needs to be run like: pytest -s test_sqlite_provider.py # In eclipse we need to set PYGEOAPI_CONFIG, Run>Debug Configurations> # (Arguments as py.test and set external variables to the correct config path) import pytest from pygeoapi.provider.sqlite import SQLiteProvider @pytest.fixture() def config(): return ...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2018 The Sprocket developers // Distributed under the MIT software license, see the accompanying // file COPY...
# Copyright (c) 2019 NVIDIA CORPORATION. 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 applicabl...
""" Python ICE-CASCADE tectonic uplift-subsidence model component Null model: Defines do-nothing methods for required interface, used to disable the uplift-subsidence model component """ from .base import base_model import numpy as np class null_model(base_model): """Do-nothing class to be used for disabled upli...