text
stringlengths
2
999k
# -*- coding: UTF-8 -*- """" Created on 17.02.20 :author: Martin Dočekal """ import unittest from evalhulth2003.utils.generic import subSeq class TestSubSeq(unittest.TestCase): """ Unit test of subSeq method. """ def test_sub_seq(self): """ Test for subSeq. """ s...
#!/home/ec2-user/environment/lc101/bin/python3.6 # $Id: rst2odt.py 5839 2009-01-07 19:09:28Z dkuhlman $ # Author: Dave Kuhlman <dkuhlman@rexx.com> # Copyright: This module has been placed in the public domain. """ A front end to the Docutils Publisher, producing OpenOffice documents. """ import sys try: import l...
""" Django settings for app project. Generated by 'django-admin startproject' using Django 3.0.3. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os # Bui...
import os, sys from collections import namedtuple from PyQt4.QtCore import * from PyQt4.QtGui import * from aboutdialog import AboutDialog from highscoresdialog import HighscoresDialog from highscores import HighScores from images import get_icon_pixmap from enum import Enum from tetrismodel import TetrisB...
for i in range(20,100,2): print (i) if i == 80: break
""" This file is part of the TheLMA (THe Laboratory Management Application) project. See LICENSE.txt for licensing, CONTRIBUTORS.txt for contributor information. Tools dealing with custom transfers. AAB """ from thelma.tools.handlers.sampletransfer \ import GenericSampleTransferPlanParserHandler from thelma.tools...
#!/usr/bin/env python import os import sys import time from glob import glob import radical.pilot as rp import radical.utils as ru # def test_da_scheduler_local_integration(): def test_bw_integration(): # Create a new session. No need to try/except this: if session creation # fails, there is not much we c...
from .bitmovin import Bitmovin from .resources import *
# Generated by Django 3.1.3 on 2020-11-30 06:21 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0002_tag'), ] operations = [ migrations.CreateModel( n...
# import waitGPU # import setGPU # waitGPU.wait(utilization=20, available_memory=10000, interval=60) # waitGPU.wait(gpu_ids=[1,3], utilization=20, available_memory=10000, interval=60) import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F from torch.autograd import Variable impo...
from __future__ import division from __future__ import print_function from numpy.core.arrayprint import dtype_is_implied from tigre.utilities.parkerweight import parkerweight import numpy as np from scipy.fft import fft, ifft import warnings import numpy as np from tigre.utilities.parkerweight import parke...
# -*- coding: utf-8 -*- import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("tests", "0047_restaurant_tags"), ] operations = [ migrations.CreateModel( name="ImportantPages", fields=[ ...
import os from django.urls import reverse, reverse_lazy from django.db import models from django.contrib.auth import get_user_model from django.utils.translation import ugettext_lazy as _ User = get_user_model() class Category(models.Model): full_name = models.CharField(max_length=200) type = models.ForeignK...
from game.scripts.battle.battle import BattleController from game.scripts.battle.pokemon import PokemonScript
from __future__ import print_function # we only need to be able to run this file on 2.7 # don't introduce a pandas/pandas.compat import # or we get a bootstrapping problem from StringIO import StringIO header = """ cimport numpy as np cimport cython from libc.string cimport memmove from numpy cimport * from cpython...
# 集合 无序不重复元素 animals = {'cat', 'dog'} print('cat' in animals) # True print('fish' in animals) # False animals.add('fish') print('fish' in animals) # True print(len(animals)) # 3 animals.add('cat') # 添加已经在集合中的元素不会有任何操作 print(len(animals)) # 3 animals.remove('cat') print(animals) # loops animals2 = {'cat', 'dog'...
""" A ``TextField`` represents a string of text, the kind that you might want to represent with standard word vectors, or pass through an LSTM. """ from typing import Dict, List, Optional import textwrap from overrides import overrides from spacy.tokens import Token as SpacyToken import torch from torch.autograd impor...
import tensorflow as tf import tensorflow.contrib as tf_contrib from tensorflow.contrib.layers import variance_scaling_initializer as he_init def conv(x, channels, kernel=3, stride=2, pad=0, normal_weight_init=False, activation_fn='leaky', scope='conv_0') : with tf.variable_scope(scope) : x = tf.pad(x, [[0...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib.auth import get_user_model from django.core.exceptions import ValidationError from django.forms import fields, widgets from django.forms.utils import ErrorDict from django.utils.safestring import mark_safe from django.utils.translation...
# coding=utf-8 # pystray # Copyright (C) 2016-2022 Moses Palmér # # This program is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either version 3 of the License, or (at your option) any # later version....
from flask import Flask from flask_sqlalchemy import SQLAlchemy # Create Instance Flask App app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = 'postgresql://mohammdelzanaty@localhost:5432/postgres' app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False db = SQLAlchemy(app) # Create Person Model class Perso...
""" Django settings for helloweb project. Generated by 'django-admin startproject' using Django 3.2.7. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathli...
import numpy as np import pytest import pyswallow as ps import pyswallow.handlers.boundary_handler as psbh class TestMOSwallow: @pytest.fixture def swallow(self): bounds = { 'x0': [-50.0, 50.0], 'x1': [-50.0, 50.0] } swallow = ps.MOSwallow(bounds, n_obj=2) ...
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Whizard(AutotoolsPackage): """WHIZARD is a program system designed for the efficient calcu...
import _plotly_utils.basevalidators class ChoroplethValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__(self, plotly_name='choropleth', parent_name='', **kwargs): super(ChoroplethValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
#encoding: utf-8 import unidecode #kotus listing diphtongs = [u"ai", u"ei", u"oi", u"äi", u"öi", u"ey", u"äy", u"öy", u"au", u"eu", u"ou", u"ui", u"yi", u"iu", u"iy"] vowels = u"aeiouyäö" def _remove_diacritics(word): r_word = "" for c in word: if c not in vowels: r_word += unidecode.unidecode(c) else: r_...
"""empty message Revision ID: 5e2282d6f7ef Revises: 81549fd19dfa Create Date: 2020-05-20 15:14:12.085144 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '5e2282d6f7ef' down_revision = '81549fd19dfa' branch_labels = None depends_on = None def upgrade(): # ...
from Foundation import NSObject, NSMutableAttributedString, NSInsetRect from AppKit import NSApp, NSColorWell, NSActionCell, NSNotificationCenter, NSFontManager, \ NSCalibratedRGBColorSpace, NSTableViewFirstColumnOnlyAutoresizingStyle, \ NSBezierPath, NSFont, NSForegroundColorAttributeName, NSUnderlineColorAttr...
import shutil from ngslite.fasta import FastaParser, FastaWriter from .setup import setup_dirs, TestCase class TestFastaParser(TestCase): def setUp(self): self.indir, self.workdir, self.outdir = setup_dirs(__file__) def tearDown(self): shutil.rmtree(self.workdir) shutil.r...
#!/usr/bin/env python """interleave.py <glob1> [, <glob1> ... ] Accepts one of more files or globs interleaving lines and writing to stdout. """ import os import sys import glob def iter_interleave(*iterables): """ A generator that interleaves the output from a one or more iterators until they are *all* ...
#!/usr/bin/env python # Copyright Contributors to the OpenCue Project # # 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 requir...
# coding: utf-8 # Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. from __future__ import absolute_import import sys import unittest im...
import os from shutil import copy from leapp.libraries.stdlib import api from leapp.models import CupsChangedFeatures CUPSD_CONF = '/etc/cups/cupsd.conf' CUPSFILES_CONF = '/etc/cups/cups-files.conf' """ CUPS configuration files """ class FileOperations(object): def readlines(self, path): if os.path.exis...
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. import re from cornice.service import Service, get_services from openprocurement.api.constants import VERSION URL_PLAC...
from .base import * # noqa DEBUG = True TEMPLATE_DEBUG = True INTERNAL_IPS = ('127.0.0.1',) DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. 'NAME': 'tock', # Or path to database file ...
#!/usr/bin/python # # Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. # from __future__ import print_function from future import standard_library standard_library.install_aliases() from builtins import object import os import sys import errno import pprint import subprocess import time import argparse s...
""" Originally from https://github.com/naiquevin/lookupy The library is provided as-is under the MIT License Copyright (c) 2013 Vineet Naik (naikvin@gmail.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal i...
from django.urls import path from . import views as v urlpatterns = [ # Forum path('<int:grouppk>/forum', v.redirectForum), path('<int:grouppk>/<slug:slug>/forum', v.GroupForumView.as_view(), name='forum'), path('<int:grouppk>/forum/new', v.redirectNewThread), # Thread path('<int:grouppk>/<slu...
# # Created on Sun Dec 12 2021 # # The MIT License (MIT) # Copyright (c) 2021 Maatuq # # 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 ri...
"""Quarantine functionality is managed here.""" import cloudpassage from halocelery.apputils import Utility as hc_util class Quarantine(object): """Instantiate with a `config` object.""" def __init__(self, config): self.quarantine_enable = config.quarantine_enable self.quarantine_group_name =...
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
import torch from kge import Config, Dataset from kge.model.kge_model import RelationalScorer, KgeModel class ComplExScorer(RelationalScorer): r"""Implementation of the ComplEx KGE scorer. Reference: Théo Trouillon, Johannes Welbl, Sebastian Riedel, Éric Gaussier and Guillaume Bouchard: Complex Embedding...
from metadrive.envs.metadrive_env import MetaDriveEnv if __name__ == "__main__": config = { "environment_num": 10, "traffic_density": .0, # "use_render":True, "map": "SSSSS", # "manual_control":True, "controller": "joystick", "random_agent_model": False, ...
import krmining from setuptools import setup, find_packages VERSION = krmining.__version__ setup( name="keyar-mining", packages=find_packages(), version=VERSION, license="MIT", description="Package for machine learning algorithm and data mining", author="BASIS / SynitIsCool", author_email=...
#!/usr/bin/env python3 # # Este arquivo é parte do programa multi_agenda # # Esta obra está licenciada com uma # Licença Creative Commons Atribuição 4.0 Internacional. # (CC BY 4.0 Internacional) # # Para ver uma cópia da licença, visite # https://creativecommons.org/licenses/by/4.0/legalcode # # WELLINGTON SAMPAI...
import logging from flask import Blueprint from yelp_beans.logic.data_ingestion import DataIngestion from yelp_beans.logic.meeting_spec import get_meeting_datetime from yelp_beans.logic.meeting_spec import get_specs_for_current_week from yelp_beans.logic.subscription import get_specs_from_subscription from yelp_beans....
""" Library for case.cmpgen_namelists. case_cmpgen_namelists is a member of Class case from file case.py """ from CIME.XML.standard_module_setup import * from CIME.compare_namelists import is_namelist_file, compare_namelist_files from CIME.simple_compare import compare_files, compare_runconfigfiles from CIME.utils im...
# Generated by Django 2.1.7 on 2019-05-15 12:35 import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_ma...
from __future__ import unicode_literals import logging import os from mopidy import config, ext __version__ = '0.2.0' logger = logging.getLogger(__name__) class Extension(ext.Extension): dist_name = 'Mopidy-MQTT' ext_name = 'mqtthook' version = __version__ def get_default_config(self): con...
# Copyright 2014 The Oppia 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 ...
from pathlib import Path from params_proto.neo_hyper import Sweep from sac_dennis_rff.config import Args, Actor, Critic, Agent from model_free_analysis import RUN with Sweep(RUN, Args, Actor, Critic, Agent) as sweep: Args.dmc = True Args.train_frames = 1_000_000 Args.env_name = 'dmc:Quadruped-run-v1' ...
# Lemoneval Project # Author: Abhabongse Janthong <6845502+abhabongse@users.noreply.github.com> """Decorator helpers.""" from functools import update_wrapper from types import MethodType class CallableWrapper(object): """Decorator which allows injection into decorated object method. This class takes in an o...
import os import pickle import pandas as pd import numpy as np from scipy import stats from sklearn import linear_model from sklearn.model_selection import train_test_split from sklearn.preprocessing import PolynomialFeatures from sklearn.metrics import mean_squared_error class Main: def __init__(self, dataset_pat...
import random import string import time from typing import Any, Dict, Optional, Tuple from hummingbot.client.config.config_methods import using_exchange from hummingbot.client.config.config_var import ConfigVar from hummingbot.core.web_assistant.auth import AuthBase from hummingbot.core.web_assistant.connections.data_...
#!/usr/bin/env python # # Copyright 2014 Scalyr 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 ...
import FWCore.ParameterSet.Config as cms DTTimingExtractorBlock = cms.PSet( DTTimingParameters = cms.PSet( ServiceParameters = cms.PSet( Propagators = cms.untracked.vstring('SteppingHelixPropagatorAny', 'PropagatorWithMaterial', 'PropagatorWithMaterialOpposite'), RPCLaye...
""" Loops https://www.hackerrank.com/challenges/python-loops/problem """ if __name__ == '__main__': n = int(input()) for i in range(n): print(i ** 2)
# encoding: utf-8 from __future__ import absolute_import from __future__ import unicode_literals from docker.utils.json_stream import json_splitter, stream_as_text, json_stream class TestJsonSplitter(object): def test_json_splitter_no_object(self): data = '{"foo": "bar' assert json_splitter(data...
# -*- coding: utf-8 -*- import logging from urllib.parse import urlparse import asyncio from collections.abc import Mapping import requests from . import __version__ __all__ = ["Api"] class Api(object): def __init__( self, site_url, consumer_key=None, consumer_secret=None, ...
#!/usr/bin/env pytest # -*- coding: utf-8 -*- ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Test read/write functionality for GeoTIFF format. # Author: Frank Warmerdam <warmerdam@pobox.com> # #######################################...
# Generated by the protocol buffer compiler. DO NOT EDIT! from google.protobuf import descriptor from google.protobuf import message from google.protobuf import reflection from google.protobuf import descriptor_pb2 # @@protoc_insertion_point(imports) DESCRIPTOR = descriptor.FileDescriptor( name='mbly_ref.proto', ...
from __future__ import division, print_function, unicode_literals # This code is so you can run the samples without installing the package import sys import os sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) # testinfo = "s, t 1, s, t 2, s, t 3, s, t 4, s, t 5.1, s, t 5.5, s, q" tags = "loop" impor...
input_signals =[] weights =[] ''' Synapses - Mathematically, the synapse is represented as a weight vector empty list of weights and input signals''' signals_v =(int(input('type number of input signals'))) for i in range(0, signals_v): # for each input signal we will store a weight signals_list = (int(input...
# Free index 10 def get_index_10(x): index = x[:, :, 0] return index
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
import sys import io from twisted.application import service from twisted.internet.endpoints import serverFromString from twisted.internet.protocol import ServerFactory from twisted.python.components import registerAdapter from twisted.python import log from ldaptor.inmemory import fromLDIFFile from ldaptor.interfaces...
#!/usr/bin/env python3 import argparse from bitstring import BitArray from io import UnsupportedOperation import os.path as path import rv32i def main(): parser = argparse.ArgumentParser() parser.add_argument('input', help = "input assembled file") parser.add_argument('-o', '--output', default = "a...
# -*- coding: utf-8 -*- # # 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 ...
# SPDX-FileCopyrightText: 2017 Fermi Research Alliance, LLC # SPDX-License-Identifier: Apache-2.0 """ Logger to use in all modules """ import logging import logging.config import logging.handlers import os import structlog import decisionengine.framework.modules.logging_configDict as logconf import decisionengine.fr...
# -*- coding: utf-8 -*- ''' Connection module for Amazon ELB .. versionadded:: 2014.7.0 :configuration: This module accepts explicit elb credentials but can also utilize IAM roles assigned to the instance trough Instance Profiles. Dynamic credentials are then automatically obtained from AWS API and no further...
import utils utils.print_msg("Hello Team")
import random import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import torchvision.models as models from torch.autograd import Variable import numpy as np from model.utils.config import cfg from model.rpn.rpn import _RPN from model.roi_pooling.modules.roi_p...
# will contain some benchmarking coding if I ever get the time to implement this
# # Copyright (c) 2021, NVIDIA 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 ...
# Copyright 2016 Red Hat, Inc. # 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...
from unittest import TestCase from unittest.mock import Mock, patch from nyuki.commands import get_command_kwargs class TestCommand(TestCase): @patch('nyuki.commands._build_args') def test_001_get_command_kwargs(self, _build_args): # Arguments parsed args = Mock() args.config = 'conf...
import pandas as pd import dgl from time import time import torch from sklearn.decomposition import PCA import numpy as np from torchlight import set_seed def load_tissue(params=None): random_seed = params.random_seed dense_dim = params.dense_dim set_seed(random_seed) # 400 0.7895 # 200 0.5117 ...
import typer def main(username: str): if username == "root": typer.echo("The root user is reserved") raise typer.Exit(code=1) typer.echo(f"New user created: {username}") if __name__ == "__main__": typer.run(main)
# -*- coding: utf-8 -*- from zvt.domain import DividendDetail from zvt.recorders.eastmoney.common import EastmoneyPageabeDataRecorder from zvdata.utils.time_utils import to_pd_timestamp class DividendDetailRecorder(EastmoneyPageabeDataRecorder): data_schema = DividendDetail url = 'https://emh5.eastmoney.com...
# Generated by Django 2.2.1 on 2019-06-13 07:19 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('User', '0002_useraddress'), ] operations = [ migrations.RemoveField( model_name='useraddress', name='is_deleted', ),...
# -*- coding: utf-8 -*- import os import tornado.web import tornado.ioloop from tornado.testing import AsyncHTTPTestCase from tornado.options import options from tornado.escape import json_decode from tortik.page import RequestHandler import tortik.logger def preprocessor(handler, callback): def handle_request(...
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import numpy as np import onnx from ..base import Base from . import expect class Flatten(Base): @staticmethod def export(): shape = (2, 3, 4, 5) ...
# -*- coding: utf-8 -*- # # covid-19_ecuador documentation build configuration file, created by # sphinx-quickstart. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration valu...
import praw import passwords import calendar, datetime, time # Version! version = "0.1" with_version = lambda msg: msg + "\n\nI'm using Ploverscript v{}. Learn more [here](https://github.com/codingJWilliams/Ploverscript).".format(version) # Formatting stuff. small_indent = " | " big_indent = " | " def w...
# CRUD # CREATE ENTRY def test_create_entry(client, api_tokens, db_with_log): response = client.post( "/api/logs/1/entries", headers={"Authorization": f"Bearer {api_tokens.token_user_one.value}"}, json={"content": "Test content for entry."}, ) json_data = response.get_json() or {} ...
import json from importlib import import_module import six from django.conf import settings from django.core.exceptions import ImproperlyConfigured from rest_framework import serializers from task_api.models import TaskInfo from task_api.params import ParameterNotValidError BACKGROUND_TASKS = getattr(settings, 'TASK...
import re import shutil from pathlib import Path import aws_cdk as cdk import boto3 from aws_cdk import aws_codecommit as codecommit from aws_cdk.aws_iam import Role from aws_cdk.aws_s3_assets import Asset from constructs import Construct def generate_template(stack: cdk.Stack, stack_name: str, **kwargs) -> str: ...
from pymetasploit3.msfrpc import MsfRpcClient import subprocess import time import psutil from auxiliarymanager import AuxiliaryManager from exploitmanager import ExploitManager from msfreportmanager import MsfReportManager from msfwrapper import MsfWrapper class MetasploitManager(object): def set_targets(self, tar...
import numpy as np from CTViewer import view_CT filename = "nodule_cubes/train/npy_random/LKDS-00249_cc_0_random.npy" volume = np.load(filename) view_CT(volume)
# Copyright 2019 Yuhao Zhang # 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, softwar...
from Voicelab.pipeline.Node import Node from parselmouth.praat import call ################################################################################################### # Extends the basic node with some shared voicelab functionalities #############################################################################...
"""Add post class for blog posts Revision ID: 4dfdaa23de0 Revises: 48eb772b7a93 Create Date: 2017-08-17 14:02:27.133734 """ # revision identifiers, used by Alembic. revision = '4dfdaa23de0' down_revision = '48eb772b7a93' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated...
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
# Generated from /home/mtdsousa/workspace/antlr4-verilog-python/extra/grammars-v4-2/verilog/systemverilog/SystemVerilogPreParser.g4 by ANTLR 4.9 # encoding: utf-8 from antlr4 import * from io import StringIO import sys if sys.version_info[1] > 5: from typing import TextIO else: from typing.io import TextIO def seri...
from __future__ import absolute_import from .developer import JistLaminarVolumetricLayering, JistBrainMgdmSegmentation, JistLaminarProfileGeometry, JistLaminarProfileCalculator, MedicAlgorithmN3, JistLaminarROIAveraging, MedicAlgorithmLesionToads, JistBrainMp2rageSkullStripping, JistCortexSurfaceMeshInflation, RandomVo...
# Generated by Django 3.0.7 on 2021-02-08 10:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0009_notification'), ] operations = [ migrations.AddField( model_name='dataoceanuser', name='can_admin_paym...
# Copyright 2018 Google, Inc. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer; # redistribu...
import configparser import os class Config: """ Reads and/or writes the configuration from/to a file """ def __init__(self, path): """ Initializes the parameters and checks if a config file is already existing. :param path: """ self.path = path self.co...
from __future__ import annotations from datetime import timedelta from typing import ( List, Optional, Union, ) import numpy as np from pandas._libs import ( lib, tslibs, ) from pandas._libs.tslibs import ( BaseOffset, NaT, NaTType, Period, Tick, Timedelta, Timestamp, ...
"""Validation utils.""" # Copyright 2019 NeuroData (http://neurodata.io) # # 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...