gt
stringclasses
1 value
context
stringlengths
2.49k
119k
from jedi.inference.cache import inference_state_method_cache from jedi.inference.base_value import ValueSet, NO_VALUES, Value, \ iterator_to_value_set, LazyValueWrapper, ValueWrapper from jedi.inference.compiled import builtin_from_name from jedi.inference.value.klass import ClassFilter from jedi.inference.value.k...
from django.conf import settings from django.http import HttpResponseRedirect from django.shortcuts import get_object_or_404 from django.shortcuts import render from django.urls import reverse from django.urls import reverse_lazy from django.utils.translation import gettext_lazy as _ from django.views.generic import Cr...
# Copyright (C) 2012 - 2014 EMC 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 # # Unle...
# coding: utf-8 # # 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 requi...
# Copyright 2011-2014 Splunk, 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 agreed to in wri...
# Copyright (C) 2015 Nippon Telegraph and Telephone 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 appli...
# -*- coding: utf-8 -*- """ Created on Fri Jan 13 21:00:38 2017 @author: pchero """ import Tkinter as tk import ttk import tkFont import tkSimpleDialog class FrameMain(object): container = None action_handler = None data_handler = None # info list_headers = ["uuid"] detail_headers = ...
#! /usr/bin/env python # 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. import itertools import json import os.path import re import sys import schema_util # This file is a peer to json_schema.py. Eac...
import io from os.path import join, realpath, dirname from pathlib import Path import sys import unittest from unittest import mock from unittest.mock import call TEST_DIR = str(Path(dirname(realpath(__file__))).parent) sys.path.insert(0, TEST_DIR) from test.env import env import dfm from ioutils import ioutils cla...
# -*- coding: utf-8 -*- """Utility for assigning pathways.""" import itertools as itt import random from collections import defaultdict from typing import List, Optional import pyobo import pyobo.sources.hgnc from pybel import BELGraph from pybel.dsl import BaseAbundance, ListAbundance __all__ = [ 'PathwayAssi...
#!/usr/bin/env python """ This module contains tests for djenerator app. """ import datetime import itertools import os import random import re import tempfile import uuid from decimal import Decimal from django.db import models from django.db.models import Model from django.db.models.fields import BigIntegerField from...
import copy import csv import pytz from datetime import datetime from dateutil.relativedelta import relativedelta, weekday from django.core import mail from django.core.exceptions import ValidationError from django.db import connection, transaction, models from django.http import HttpResponse from django.template.res...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # DCASE 2016::Acoustic Scene Classification / Baseline System from src.ui import * from src.general import * from src.files import * from src.features import * from src.dataset import * from src.evaluation import * import numpy import csv import argparse import textwra...
# # Copyright (c) 2012-2017 Kevin Steves <kevin.steves@pobox.com> # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AN...
# Copyright 2015 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 applica...
""" Utility functions for - building and importing modules on test time, using a temporary location - detecting if compilers are present """ from __future__ import division, absolute_import, print_function import os import sys import subprocess import tempfile import shutil import atexit import textwrap import re im...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License...
#!/usr/bin/env python # # Copyright 2010 Google 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 o...
#!/usr/bin/env python # 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. from __future__ import print_function import copy import json import sys # These fields must appear in the test result output REQUIRE...
from __future__ import unicode_literals from django.contrib.auth.models import User from django.http import HttpResponseRedirect from django.shortcuts import render, render_to_response from django.utils.translation import ugettext_lazy as _ from djblets.siteconfig.models import SiteConfiguration from haystack.inputs i...
# Copyright 2015 Google 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 applicable law or a...
import sys import time import xmpp from PyGtalkRobot import GtalkRobot roster = [] #all people online, not just logged in users = {} #keep track of all users logged in here for reply to all nicks = [] killList = {} class polbot(GtalkRobot): status = "Pol Bot" #def command_priority###_name def echoT...
""" mingprovider Module This contains the class which allows sprox to interface with any database. Copyright &copy 2009 Jorge Vargas Original Version by Jorge Vargas 2009 Released under MIT license. """ from bson.errors import InvalidId from sprox.iprovider import IProvider from sprox.util import timestamp import dat...
from django.contrib.auth.models import User from django.core.exceptions import ValidationError, FieldError from django.db import models from django.db.models import Q from django.db.models.loading import get_model from django.db.models.signals import m2m_changed from django.forms import ModelForm from cyder.base.const...
# -*- coding: utf-8 -*- # Copyright (c) 2010-2017 Tuukka Turto # # 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,...
#!/usr/bin/env python # ___ ___ _ _ ___ ___ _ _____ ___ ___ # / __| __| \| | __| _ \ /_\_ _| __| \ # | (_ | _|| .` | _|| / / _ \| | | _|| |) | # \___|___|_|\_|___|_|_\/_/_\_\_|_|___|___/_ _____ # | \ / _ \ | \| |/ _ \_ _| | __| \_ _|_ _| # | |) | (_) | | .` | (_) || | | _|| |) | | ...
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
import sys from Bio import SeqIO from Modules.p05_ParseGff import * from natsort import natsorted #=============================================================================== # snpEff and snpSift #=============================================================================== def snpEff_annotateVCF(...
# Copyright (c) 2006,2007,2008 Mitch Garnaat http://garnaat.org/ # # 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,...
""" Created on Jan 25, 2017 @author: Jafar Taghiyar (jtaghiyar@bccrc.ca) """ from datetime import datetime #============================ # Django imports #---------------------------- from django.shortcuts import render from django.core.urlresolvers import reverse from django.contrib.auth.decorators import login_req...
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # 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 compli...
from __future__ import print_function from __future__ import division from __future__ import unicode_literals from __future__ import absolute_import from builtins import * # NOQA from future import standard_library standard_library.install_aliases() # NOQA import argparse import functools import os import chainer fr...
from collections import defaultdict import itertools import sys from bs4.element import ( CharsetMetaAttributeValue, ContentMetaAttributeValue, whitespace_re ) __all__ = [ 'HTMLTreeBuilder', 'SAXTreeBuilder', 'TreeBuilder', 'TreeBuilderRegistry', ] # Some useful features for a TreeBuilder to have. FAST = 'fa...
# -*- coding: utf-8 -*- from simulation import Controller def _createSystem(): import fuzzy.System system = fuzzy.System.System(description= """This fuzzy system is to control the inverted pendulum into an upright position as well as at the position X=0. It also is used to demonstrate some features of pyfuzz...
"""Bayesian variant calling with FreeBayes. https://github.com/ekg/freebayes """ import os import sys from bcbio import bam, utils from bcbio.distributed.transaction import file_transaction from bcbio.pipeline import config_utils from bcbio.pipeline.shared import subset_variant_regions from bcbio.provenance import d...
# test_repo.py # Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors # # This module is part of GitPython and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php from git.test.lib import (patch, TestBase, with...
""" Different helpful functions, objects, methods are collected here. """ from __future__ import division, print_function, absolute_import from collections import OrderedDict import numexpr import numpy import pandas from sklearn.utils.validation import column_or_1d from sklearn.metrics import roc_curve def weighte...
import os import sys import grammar class Token(object): """Token which is a result from Lexer symbol: symbol in grammar lexeme: text hit """ def __init__(self, symbol, lexeme, position): self.symbol = symbol self.lexeme = lexeme self.position = position def __s...
# Copyright (C) 2012 Google Inc. All rights reserved. # Copyright (C) 2010 Gabor Rapcsanyi (rgabor@inf.u-szeged.hu), University of Szeged # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of so...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # -*- encoding: utf-8 -*- # # Copyright 2013 Hewlett-Packard Development Company, 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 # # htt...
"""Support for Rflink devices.""" import asyncio from collections import defaultdict import logging import async_timeout from rflink.protocol import create_rflink_connection from serial import SerialException import voluptuous as vol from homeassistant.const import ( ATTR_ENTITY_ID, ATTR_STATE, CONF_COMMA...
import os import sys import unittest import ray from ray.rllib import _register_all from ray import tune from ray.tune import TuneError, register_trainable from ray.tune.ray_trial_executor import RayTrialExecutor from ray.tune.schedulers import TrialScheduler, FIFOScheduler from ray.tune.trial import Trial from ray.t...
#!/usr/bin/env python import breakdancer from breakdancer import Condition, Effect, Action, Driver TESTKEY = 'testkey' ###################################################################### # Conditions ###################################################################### class ExistsCondition(Condition): def...
from __future__ import division import math import random import urllib import os.path import sys import time import logging logger = logging.getLogger(__name__) from PIL import Image, ImageDraw from PIL.ImageFilter import EDGE_ENHANCE from molly.maps.osm.models import OSMTile, get_marker_dir def log2(x): """ ...
# Copyright 2017 Google 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 applicable law or a...
import errno import os import selectors import signal import socket import struct import sys import threading from . import connection from . import process from .context import reduction from . import semaphore_tracker from . import spawn from . import util __all__ = ['ensure_running', 'get_inherited_fds', 'connect_...
# 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 # d...
# -*- coding: utf-8 -*- """ Holds the code for cleaning out unwanted tags from the lxml dom xpath. """ from .utils import ReplaceSequence class DocumentCleaner(object): def __init__(self, config): """Set appropriate tag names and regexes of tags to remove from the HTML """ self.co...
"""comtypes.server.register - register and unregister a COM object. Exports the UseCommandLine function. UseCommandLine is called with the COM object classes that a module exposes. It parses the Windows command line and takes the appropriate actions. These command line options are supported: /regserver - register t...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2009, MARIMORE Inc Tokyo, Japan. # Contributed by # Iqbal Abdullah <iqbal@marimore.co.jp> # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following condit...
"""An XML Reader is the SAX 2 name for an XML parser. XML Parsers should be based on this code. """ import handler from _exceptions import SAXNotSupportedException, SAXNotRecognizedException # ===== XMLREADER ===== class XMLReader: """Interface for reading an XML document using callbacks. XMLReader is the...
# -*- coding: utf-8 -*- # Copyright 2010-2015, Google Inc. # All rights reserved. # # 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...
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import errno import ...
import importlib.util import json import os from functools import lru_cache from os.path import join import pytest from .scripts import standalone pre_baked_images = { "centos8": { "registry": "docker.io", "repo": "centos", "tag": "centos8", "digest": "sha256:85313b812ad747dd19cf1...
#!/usr/bin/env python ################################################################################ # AUTHOR: Miguel A. Ibarra <miguelib@ufl.edu> # DESCRIPTION: Take a a wide format file and perform a random forest analysis. ################################################################################ import os ...
# This file implements a MultiVolumeVisual class that can be used to show # multiple volumes simultaneously. It is derived from the original VolumeVisual # class in vispy.visuals.volume, which is releaed under a BSD license included # here: # # ===========================================================================...
#!/usr/bin/env python """ Copyright 2012 GroupDocs. 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 ...
""" Testing for the approximate neighbor search using Locality Sensitive Hashing Forest module (sklearn.neighbors.LSHForest). """ # Author: Maheshakya Wijewardena, Joel Nothman import numpy as np import scipy.sparse as sp from sklearn.utils.testing import assert_array_equal from sklearn.utils.testing import assert_a...
# Copyright 2011 the Melange authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
# 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 not u...
# Copyright (c) 2013 OpenStack Foundation # 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 ...
#Copyright 2016 Tim Wentlau. #Distributed under the MIT License. See LICENSE in root of project. """ Sensor handling in Kervi is split in two parts. The first part is sensor device drivers that handles physical access to sensor hardware. The second part is the Sensor class that reads a sensor device and triggers even...
#!/usr/bin/env python3 # Copyright 2017 Google 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 ...
# # Handler library for Linux IaaS # # Copyright 2014 Microsoft 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 requi...
#!/usr/bin/env python """Anonymises patient data, creates two copies, performs poisson resampling on one to produce a simulated half time image and removes the odd numbered frames in the other to simulate a half angle image""" # Graham Arden, May 2009 # import the necessary libraries import dicom import os import...
"""test_raspberry_pi.py - Test routines and sample code for communicating via LAN or RS232 with NEC large-screen displays using the NEC PD SDK. Revision: 180220 """ # # # Copyright (C) 2016-18 NEC Display Solutions, Ltd # written by Will Hollingworth <whollingworth at necdisplay.com> # See LICENSE.rst for details. # ...
from os import path import subprocess import inflection import jinja2 import xmltodict HERE = path.dirname(path.abspath(__file__)) VENDOR_EXTENSIONS = ['KHR', 'EXT', 'NV'] CUSTOM_FUNCTIONS = ('vkGetInstanceProcAddr', 'vkGetDeviceProcAddr', 'vkMapMemory', 'vkGetPipelineCacheData') NULL_MEMBERS = ...
# -*- coding: utf-8 -*- from sklearn.linear_model import LinearRegression, Ridge from sklearn import svm from SuperGLU.Classifiers.Metrics import calcR2 from SuperGLU.Classifiers.ModelFeature import FeatureSelector, ModelFeature # Builder for Classifires #------------------------------ class ClassifierBuilder(object):...
import logging import os import re from urllib.parse import urlsplit class Whitelist(): def __init__(self, config): # Initiate logging. self.logger = logging.getLogger() # Save the config. This should be a ConfigParser object. self.config = config # This will read your co...
# Authors: Marijn van Vliet <w.m.vanvliet@gmail.com> # Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Teon Brooks <teon.brooks@gmail.com> # # License: BSD (3-clause) import numpy as np from .constants import FIFF from .proj import _has_eeg_average_ref_proj, make_eeg_average_ref_proj ...
# Author: Kyle Kastner # License: BSD 3-clause # THEANO_FLAGS="optimizer=None,compute_test_value=raise" python tanh_rnn.py import numpy as np import theano import theano.tensor as T from scipy import linalg class sgd(object): # Only here for API conformity with other optimizers def __init__(self, params): ...
# Copyright 2020 Makani Technologies 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...
# Copyright (c) 2013 Red Hat, 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 agreed to in writ...
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
#!/usr/bin/python # -*- coding: utf-8 -*- import os import urllib import zlib import zipfile import math import sys import json import time import bz2 import gzip import binascii import requests import random from subprocess import * import subprocess import threading import MySQLdb # See http://stackoverflow.com/que...
from django.contrib import auth from django.core import validators from django.core.exceptions import ImproperlyConfigured from django.db import models from django.db.models.manager import EmptyManager from django.contrib.contenttypes.models import ContentType from django.utils.encoding import smart_str from django.uti...
"""Proximal Policy Optimization (clip objective).""" from copy import deepcopy import torch import torch.optim as optim from torch.utils.data.sampler import BatchSampler, SubsetRandomSampler from torch.distributions import kl_divergence import time import numpy as np import os import ray from rl.envs import WrapEn...
from __future__ import absolute_import import os import time import zipfile from six import BytesIO, text_type from django.core.files.uploadedfile import SimpleUploadedFile from django.core.urlresolvers import reverse from sentry.testutils import APITestCase, TestCase from sentry.models import debugfile, File, Proje...
# -*- coding: utf-8 -*- import os import httplib as http from flask import request from flask import send_from_directory from framework import status from framework import sentry from framework.auth import cas from framework.routing import Rule from framework.flask import redirect from framework.sessions import sessi...
u''' Created on Sep 13, 2011 @author: Mark V Systems Limited (c) Copyright 2011 Mark V Systems Limited, All rights reserved. ''' import os, io, sys, json from collections import defaultdict from arelle import XbrlConst from arelle.ModelObject import ModelObject from arelle.ModelValue import QName from arelle.ModelForm...
import numpy as np import tensorflow as tf import gym import logz import scipy.signal def normc_initializer(std=1.0): """ Initialize array with normalized columns """ def _initializer(shape, dtype=None, partition_info=None): #pylint: disable=W0613 out = np.random.randn(*shape).astype(np.float32...
# Django from django.db import models # Third-party apps import jsonfield # http://pypi.python.org/pypi/django-jsonfield/ from lxml import etree # http://lxml.de/ # Internal from .log import default_logger as logger from .utils.introspection import ModelFactory from .utils.serializers import deserialize_function fr...
from __future__ import absolute_import import contextlib import errno import os from mercurial.node import sha1nodeconstants from mercurial import ( error, extensions, match as matchmod, pycompat, scmutil, util, ) from mercurial.interfaces import ( dirstate as intdirstate, util as inte...
# -*- coding: Latin-1 -*- """peutils, Portable Executable utilities module Copyright (c) 2005-2013 Ero Carrera <ero.carrera@gmail.com> All rights reserved. For detailed copyright information see the file COPYING in the root of the distribution archive. """ from __future__ import division from future import standard...
# # 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 not...
""" A selection of cross-compatible functions for Python 2 and 3. This module exports useful functions for 2/3 compatible code: * bind_method: binds functions to classes * ``native_str_to_bytes`` and ``bytes_to_native_str`` * ``native_str``: always equal to the native platform string object (because ...
#!/usr/bin/env python # # Copyright 2008 Google 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 o...
# -*- coding: utf-8 -*- from operator import attrgetter from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType from pyangbind.lib.yangtypes import RestrictedClassType from pyangbind.lib.yangtypes import TypedListType from pyangbind.lib.yangtypes import YANGBool from pyangbind.lib.yangtypes import YANGListTy...
""" Differential operators, for all sympy expressions For multivector-customized differential operators, see :class:`galgebra.mv.Dop`. """ import copy import numbers import warnings from sympy import Symbol, S, Add, simplify, diff, Expr from . import printer from . import metric from . import mv from .printer import...
from extendable_cards.visual_main import card_interaction from extendable_cards.lib.cards import Card, CardOrganizer, CardController #=============== TEST DRAW CARDS TO HAND =====================# def test_draw_none_one(): obj_cards = [Card("test_card_1"), Card("test_card_2"), Card("crazy_card_name_boogie"), Car...
# Copyright 2013: Mirantis 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 b...
from __future__ import unicode_literals import re from django.db import models class Accreds(models.Model): sciper = models.CharField(max_length=8) unite = models.CharField(max_length=8) fonction = models.CharField(max_length=128, blank=True, null=True) ordre = models.DecimalField(max_digits=3, deci...
# Copyright 2012 OpenStack LLC. # 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 b...
from ctypes import windll, pointer from ctypes.wintypes import DWORD from prompt_toolkit.key_binding.input_processor import KeyPress from prompt_toolkit.keys import Keys from prompt_toolkit.win32_types import EventTypes, KEY_EVENT_RECORD, INPUT_RECORD, STD_INPUT_HANDLE __all__ = ( 'ConsoleInputReader', 'raw_m...
from sqlalchemy.dialects.postgresql import JSONB, BYTEA from app import db import datetime class Base(db.Model): __abstract__ = True id = db.Column(db.Integer, primary_key = True) class Study(Base): __tablename__ = "study" title = db.Column(db.String(450), nullable=False) description = db.Colum...
# coding=utf-8 # Copyright 2022 The TensorFlow Datasets Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
# -*- coding: utf-8 -*- # Copyright 2010 Google Inc. All Rights Reserved. # # 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 u...
import math import pytest from pycket.interpreter import * from pycket.values import * from pycket.prims import * from pycket.test.testhelper import run_fix, run, run_top, run_std, run_flo from pycket.error import SchemeException def test_flonum_tostring(): from rpython.rtyper.test.test_llinterp import interpret ...
# # 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 not us...