gt
stringclasses
1 value
context
stringlengths
2.49k
119k
from __future__ import division from sympy import sin, sqrt, pi, Number, Expr, Symbol, lambdify, symbols from common import function, tensor_product from lega.integration import Quad1d, Quad2d from scipy.sparse import eye, diags from math import pi as PI, sqrt as Sqrt from sympy.mpmath import quad from itertools import...
# -*- coding: utf-8 -*- """ pygments.lexers.dylan ~~~~~~~~~~~~~~~~~~~~~ Lexers for the Dylan language. :copyright: Copyright 2006-2015 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re from pygments.lexer import Lexer, RegexLexer, bygroups, do_insertions, d...
import time sttime= time.clock() print("Importing essential modules...") import numpy as np import matplotlib.pyplot as plt #from sklearn import svm import sys caffe_root = "/root/py-faster-rcnn/caffe-fast-rcnn/" import sys #sys.path.insert(0, caffe_root + "python") import caffe print("\t\tsuccessfully imported in ...
"""Easy to use ETA calculation and progress bar library. https://github.com/Robpol86/etaprogress https://pypi.python.org/pypi/etaprogress """ from __future__ import division from decimal import Decimal, ROUND_DOWN import locale from etaprogress.components.bars import Bar, BarDoubled, BarUndefinedAnimated, BarUndefin...
""" A build class. """ import os import signal import subprocess import math from datetime import datetime from contextlib import contextmanager from threading import Thread from .memoized import MemoizedObject from .log import LOGGER, Highlight as hl from .log import print_normal, print_error from .filters import F...
# -*- coding: utf-8 -*- # Copyright 2014-2016 OpenMarket 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 applicab...
from __future__ import unicode_literals import logging import operator import os import re import socket from decimal import Decimal from itertools import islice, zip_longest from urllib.parse import parse_qsl import pkg_resources from classytags.arguments import Argument from classytags.core import Options from clas...
# Copyright (c) 2013 Hortonworks, 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 ...
import sys if sys.version_info >= (3, 8): from unittest import IsolatedAsyncioTestCase as TestCase from unittest.mock import AsyncMock else: from unittest import TestCase from asynctest.mock import CoroutineMock as AsyncMock from unittest.mock import Mock, call, sentinel import pytest from jj.apps i...
#!/usr/local/bin/python # -*- coding: latin-1 import binascii, os, stat, sys CRCFILE = ".crcs" chunk = 1048576 #flags = { 'quiet' : False, 'recurse' : False, 'verbose' : False, 'clear' : False, 'nofile' : False, 'pretty' : False, 'fullpath' : False } class crc_file: def __init__(self, directory_path, transpare...
# -*- coding: utf-8 -*- #!/usr/bin/python # Author: Niam Moltta # UY - 2017 # MIT License # Measures of Central Tendency with Python import math import numpy as np import pandas as pd from scipy import stats from scipy.stats import norm import scipy.stats as st import matplotlib.pyplot as plt import matplotlib.mlab as...
import sys gui = sys.modules["__main__"] from utils.debug import debug from utils.string_handling import * if sys.platform.startswith('win') : SYSTEM_PATH_SEPERATOR = '\\' elif sys.platform.startswith('darwin') : SYSTEM_PATH_SEPERATOR = '/' LOOKUP_OUTPUT = [0,0,0] DYNA_1_POS = 0 DYNA_2_POS = 0 #POSITION_ARRAY = ...
# Hungarian algorithm (Kuhn-Munkres) for solving the linear sum assignment # problem. Taken from scikit-learn. Based on original code by Brian Clapper, # adapted to NumPy by Gael Varoquaux. # Further improvements by Ben Root, Vlad Niculae and Lars Buitinck. # # Copyright (c) 2008 Brian M. Clapper <bmc@clapper.org>, Gae...
# -*- coding: utf-8 -*- #----------------------------------------------------------------------------- # Copyright (c) 2011, Evan Leis # # Distributed under the terms of the Lesser GNU General Public License (LGPL) #----------------------------------------------------------------------------- ''' Created on May 9, 2011...
# Copyright 2016 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...
from django.db import NotSupportedError from django.db.models import Index from django.utils.functional import cached_property __all__ = [ 'BloomIndex', 'BrinIndex', 'BTreeIndex', 'GinIndex', 'GistIndex', 'HashIndex', 'SpGistIndex', ] class PostgresIndex(Index): @cached_property def max_name_length(...
#!/usr/bin/env python # # Copyright 2007 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...
# $Filename$ # $Authors$ # # Last Changed: $Date$ $Committer$ $Revision-Id$ # # Copyright (c) 2003-2011, German Aerospace Center (DLR) # All rights reserved. # #Redistribution and use in source and binary forms, with or without #modification, are permitted provided that the following conditions are #met: # # * Redistr...
# -*- coding: utf-8 -*- ################################################################################ # _____ _ _____ _ # # / ____(_) / ____| | | # # | | _ ___ ___ ___ | (___ _ _ ___| |_...
import logging import keyedcache import xlivesettings from django.conf import settings as djangosettings from django.core.urlresolvers import reverse from django.test import TestCase from xlivesettings import * log = logging.getLogger(__name__); class ConfigurationFunctionTest(TestCase): def testSetSingleConfi...
# Tweepy # Copyright 2009-2010 Joshua Roesslein # See LICENSE for details. try: import http.client except ImportError: import httplib except ImportError: raise ImportError("There is no http.client or httplib module") import urllib.parse as urllib import time import re from io import StringIO import gzip ...
""" Form classes """ from django.utils.datastructures import SortedDict, MultiValueDict from django.utils.html import escape from fields import Field from widgets import TextInput, Textarea, HiddenInput, MultipleHiddenInput from util import flatatt, StrAndUnicode, ErrorDict, ErrorList, ValidationError import copy __a...
""" ============================================================= Online Latent Dirichlet Allocation with variational inference ============================================================= This implementation is modified from Matthew D. Hoffman's onlineldavb code Link: http://www.cs.princeton.edu/~mdhoffma/code/onli...
# # Copyright (c) 2009-2015, Jack Poulson # All rights reserved. # # This file is part of Elemental and is under the BSD 2-Clause License, # which can be found in the LICENSE file in the root directory, or at # http://opensource.org/licenses/BSD-2-Clause # from environment import * from imports import mpi i...
import os import cPickle as pickle from datetime import datetime from globalvars import GlobalVars import metasmoke import requests import json import time import math # methods to load files and filter data in them: def load_files(): if os.path.isfile("falsePositives.txt"): with open("falsePositives.tx...
"""Support for remote Python debugging. Some ASCII art to describe the structure: IN PYTHON SUBPROCESS # IN IDLE PROCESS # # oid='gui_adapter' +----------+ # +------------+ ...
import os import json import time import uuid import signal import logging from threading import Thread from addict import Dict from six.moves.http_client import HTTPConnection from .process import Process from .interface import ExecutorDriver from .utils import parse_duration, encode_data, decode_data logger = loggin...
# $Id$ # # Copyright (C) 2000-2008 greg Landrum and Rational Discovery LLC # All Rights Reserved # """ code for dealing with composite models For a model to be useable here, it should support the following API: - _ClassifyExample(example)_, returns a classification Other compatibility notes: 1) To use _Compo...
__file__ = 'OffSystem_v1' __date__ = '5/29/14' __author__ = 'ABREZNIC' import os, arcpy, xlwt, datetime, math #date now = datetime.datetime.now() curMonth = now.strftime("%m") curDay = now.strftime("%d") curYear = now.strftime("%Y") today = curYear + "_" + curMonth + "_" + curDay #variables # check0 = arcpy.GetParam...
#!/usr/bin/python """User Database""" from userbase_config import config import psycopg2 import cStringIO import traceback import userbase_models import userbase_validations import bcrypt import datetime import uuid class Database: def __init__(self, salt, fn_log_error, config_path, config_section='postgresql'): ...
#!/usr/bin/env python """ @package mi.dataset.parser.test.test_nutnr_b_dcl_conc @file mi/dataset/parser/test/test_nutnr_b_dcl_conc.py @author Steve Myerson (Raytheon), Mark Worden @brief Test code for a nutnr_b_dcl_conc data parser Files used for testing: Filename Blocks Instrument Records 20010101.nutn...
""" Copyright 2016-2017 Ellation, 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 writing, sof...
#!/usr/bin/env python """ This is a REST server that accept requests to control the PiGlow board. A few interesting things about this server: * It is designed with a RESTful Api * It uses a global lock to queue up operations to the PiGlow Run this server like this: python pg_rest_server.py ...
from neo.Network.common import blocking_prompt as prompt from neo.Prompt.InputParser import InputParser from neo.SmartContract.ContractParameter import ContractParameter from neo.SmartContract.ContractParameterType import ContractParameterType from boa.compiler import Compiler import pprint import pdb import dis import...
# Copyright 2016 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...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # (c) The James Hutton Institute 2017-2019 # (c) University of Strathclyde 2019-2020 # Author: Leighton Pritchard # # Contact: # leighton.pritchard@strath.ac.uk # # Leighton Pritchard, # Strathclyde Institute for Pharmacy and Biomedical Sciences, # 161 Cathedral Street, # ...
import __builtin__ import os import unittest import shutil import tempfile from .buck import BuildFileProcessor, add_rule def foo_rule(name, srcs=[], visibility=[], build_env=None): add_rule({ 'buck.type': 'foo', 'name': name, 'srcs': srcs, 'visibility': visibility, }, build_e...
from __future__ import unicode_literals from mopidy.models import Playlist, Track from tests.mpd import protocol class PlaylistsHandlerTest(protocol.BaseTestCase): def test_listplaylist(self): self.backend.playlists.playlists = [ Playlist( name='name', uri='dummy:name', track...
"""The tests for the Radarr platform.""" import unittest import pytest import homeassistant.components.radarr.sensor as radarr from tests.common import get_test_home_assistant def mocked_exception(*args, **kwargs): """Mock exception thrown by requests.get.""" raise OSError def mocked_requests_get(*args, ...
#!/usr/bin/env python """ @package ion.agents.platform.platform_driver @file ion/agents/platform/platform_driver.py @author Carlos Rueda @brief Base classes supporting platform drivers. """ __author__ = 'Carlos Rueda' __license__ = 'Apache 2.0' from pyon.public import log import logging from copy import deep...
# tempfile.py unit tests. import tempfile import errno import io import os import pathlib import signal import sys import re import warnings import contextlib import stat import weakref from unittest import mock import unittest from test import support from test.support import script_helper has_textmode = (tempfile....
#!/usr/bin/env python # -*- coding: utf-8 -*- from buildbot import locks import factories reload(factories) from factories import self_update from factories import buildslaves # from factories import cpp_ethereum # from factories import cpp_ethereum_osx # from factories import cpp_ethereum_brew # from factories impo...
# ================================================================================================== # Copyright 2011 Twitter, Inc. # -------------------------------------------------------------------------------------------------- # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
#!/usr/bin/env python #=============================================================================== # Copyright 2015 Geoscience Australia # # 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 #...
# Copyright (C) 2003-2005 Peter J. Verveer # # 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 # notice, this list of conditions and the following d...
""" ============================================ Tractography Clustering - Available Features ============================================ This page lists available features that can be used by the tractography clustering framework. For every feature a brief description is provided explaining: what it does, when it's ...
""" A set of utility functions to get the actual computation complexity of various layers """ import math import warnings oneGiga = 1e9 def convolutional_layer_direct(imageSize, filterSize, padding='SAME', stride=(1, 1), inGFLOP=True, result_format='mac'): """ The input conforms t...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2010 Citrix Systems, 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/L...
# Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from collections import defaultdict import itertools import sys from bs4.element import ( CharsetMetaAttributeValue, ContentMetaAttributeValue, HTMLAwareEntitySubstitution, whitespace_re ) __all__...
import errno import imp import io import json import os import sys import textwrap import warnings try: import configparser # py3 except ImportError: import ConfigParser as configparser import toml # requires "pip install toml" import yaml # requires "pip install pyyaml" import confix from confix import Al...
#/usr/bin/python # The following module(s) are required for listing the files in a directory. from os import listdir from os.path import isfile, join # The following module(s) are rquired for regular expressions. import re class ParseGTF: # Function that initializes the ParseGTF class. def __init__(self, pathToG...
from io import BytesIO from os.path import getmtime import tempfile from time import gmtime import os import shutil import unittest from webob import static from webob.compat import bytes_ from webob.request import Request, environ_from_url from webob.response import Response def get_response(app, path='/', **req_kw...
#!/usr/bin/python # Copyright (c) 2015, BROCADE COMMUNICATIONS SYSTEMS, 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: # 1. Redistributions of source code must retain the above copyright n...
"""Convert compiler package AST nodes into Python source code. The entry point is the L{pp} function. This is mostly used to present certain nodes in the rendered documentation -- for example any default values for a function's arguments are rendered using L{pp}. The code was stolen from exarkun's svn.twistedmatrix....
# Copyright (c) 2012 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 in wri...
# -*- coding: utf-8 -*- # Copyright 2020 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...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 OpenStack LLC. # Copyright (c) 2011 X.commerce, a business unit of eBay Inc. # Copyright 2011 Grid Dynamics # Copyright 2011 Eldar Nugaev, Kirill Shileev, Ilya Alekseyev # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not ...
# -*- coding: utf-8 -*- # # Copyright 2014 Rackspace, Inc. # Copyright 2015 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://ww...
import pytest from api.base.settings.defaults import API_BASE from osf_tests.factories import ( RegistrationProviderFactory, AuthUserFactory ) from django.contrib.auth.models import Group from osf.models import RegistrationSchema from waffle.models import Flag from osf.migrations import update_provider_auth...
# Django settings for tjrapid. import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) DEBUG = True TEMPLATE_DEBUG = DEBUG # Serve static files even when DEBUG is False. SERVE_STATIC = False ADMINS = ( # ('Your Name', 'your_email@example.com'), ) MANAGERS = ADMINS DATABASES = { '...
from __future__ import print_function import argparse import ast import cProfile import imp import locale import os import select import sys from collections import OrderedDict from contextlib import contextmanager from copy import deepcopy from datetime import datetime from json import dumps, loads from signal impor...
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2015 clowwindy # # 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 print_function import os import sys import wx import numpy as np import matplotlib matplotlib.interactive(False) #Use the WxAgg back end. The Wx one takes too long to render matplotlib.use('WXAgg') from sas.sasgui.guiframe.local_perspectives.plotting.SimplePlot import PlotFrame #import matplotli...
__author__ = 'pierleonia' # biopython from Bio import Alphabet from Bio.SeqUtils.CheckSum import crc64 from Bio import Entrez from Bio.Seq import Seq, UnknownSeq from Bio.SeqRecord import SeqRecord, _RestrictedDict from Bio import SeqFeature class BaseBioSQLAlter(): '''Base class for to handlers for BioSQL dat...
#!/usr/bin/env python3 """Application and persistence management.""" # pylint: disable=no-member, import-error, no-init, too-few-public-methods # pylint: disable=cyclic-import, no-name-in-module, invalid-name from sqlalchemy.dialects.postgresql import UUID from ersa_flask_util import db, id_column, boot, get_or_crea...
# Copyright 2018 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
# Copyright 2015 Rackspace Hosting 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 req...
# 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 unde...
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
import os import re import tempfile import urlparse from djblets.util.filesystem import is_exe_in_path from reviewboard.scmtools import sshutils from reviewboard.scmtools.core import SCMTool, HEAD, PRE_CREATION from reviewboard.scmtools.errors import SCMError, FileNotFoundError, \ ...
import re import socket from threading import Lock, Timer from contextlib import contextmanager import sys try: # Python 3 from urllib.parse import urlparse str_cls = str except (ImportError): # Python 2 from urlparse import urlparse str_cls = unicode from . import __version__ from .show_erro...
import mock from nose import tools as nt from django.test import RequestFactory from django.db import transaction from django.http import Http404 from tests.base import AdminTestCase from osf_tests.factories import ( DraftRegistrationFactory, AuthUserFactory, ProjectFactory, UserFactory ) from osf.mode...
from .. utils import TranspileTestCase, UnaryOperationTestCase, BinaryOperationTestCase, InplaceOperationTestCase class ListTests(TranspileTestCase): def test_setattr(self): self.assertCodeExecution(""" x = [1, 2, 3] try: x.attr = 42 except AttributeErro...
# dope wars world import random import math import pickle import common import player import events config = { "price_shift": 0.3, "min_drugs": 10, "loan_interest": 15, "old_lady_chance": 20, "rand_event_chance": 40 } templates = { "old_lady_bust": "<b style='color: purple'>I heard there's g...
""" Helper routines for generating gpu kernels for nvcc. """ try: from pygpu import gpuarray except ImportError: pass def nvcc_kernel(name, params, body): """ Return the c code of a kernel function. Parameters ---------- params The parameters to the function as one or more strin...
# Copyright 2010 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 l...
# 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...
# Copyright 2012 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2012 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the...
""" Metrics for scoring predictions and also some more specialized math needed for skedm """ import numpy as np from scipy import stats as stats from numba import jit def weighted_mean(X, distances ): """ Calculates the weighted mean given a set of values and their corresponding distances. Only 1/distan...
# data_generator.py # @author: Lisa Wang # @created: Jan 30 2017 # #=============================================================================== # DESCRIPTION: # Ground truth student model for data generation. # 1. n concepts (e.g. 10) # 2. k exercises (e.g. 1000) # # ### Student Model # At any time t, a student s c...
# -*- coding: utf-8 -*- """ The MIT License (MIT) Copyright (c) 2015-2017 Rapptz 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...
# 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 2017 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...
import numpy as np from sklearn.grid_search import GridSearchCV import sklearn.metrics as metrics from sklearn import preprocessing as prep from tr_utils import merge_two_dicts, isEmpty class SKSupervisedLearning (object): """ Thin wrapper around some learning methods """ def __init__(self, classifi...
import contextlib import io import os import socketserver import string import sys import threading import time import queue import win32all # int(md5.md5('ibb').hexdigest()[-4:], 16) IBB_PORT = 26830 class StopServer(Exception): pass class CommandHandler: def __init__(self): self.systems = {} ...
from __future__ import with_statement import os import sys from ConfigParser import ConfigParser from itertools import chain from bpython.keys import cli_key_dispatch as key_dispatch from bpython.autocomplete import SIMPLE as default_completion MAGIC_METHODS = ", ".join("__%s__" % s for s in [ "init", "repr", "str...
from __future__ import unicode_literals from django import forms from django.conf import settings from django.conf.urls import url from django.core.exceptions import ImproperlyConfigured from django.db import transaction from django.forms import widgets from django.http import ( HttpResponseBadRequest, HttpRes...
""" Test distributed simulation. """ import cPickle import hashlib import logging import os import shutil import socket import sys import traceback import unittest from math import pi from multiprocessing import AuthenticationError from multiprocessing.managers import RemoteError from Crypto.Random import get_random_...
# 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 use ...
################################################################################ # 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...
#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # 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 Apach...
# Copyright 2015 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 or agreed to in writing, ...
"""Logic expressions handling NOTE ---- at present this is mainly needed for facts.py , feel free however to improve this stuff for general purpose. """ from sympy.core.compatibility import iterable, cmp def fuzzy_bool(x): """Return True, False or None according to x. Whereas bool(x) returns True or False, ...
'''Screen Manager ============== .. versionadded:: 1.4.0 The screen manager is a widget dedicated to managing multiple screens for your application. The default :class:`ScreenManager` displays only one :class:`Screen` at a time and uses a :class:`TransitionBase` to switch from one Screen to another. Multiple transit...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # vsgen documentation build configuration file, created by # sphinx-quickstart on Thu Feb 4 23:23:51 2016. # # 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 # auto...
#!/usr/bin/env python # basic_alarm_a.py """ Copyright (c) 2015 ContinuumBridge Limited 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...
#Interphase - Copyright (C) 2009 James Garnon <http://gatc.ca/> #Released under the MIT License <http://opensource.org/licenses/MIT> from __future__ import division from control import Control, FunctionControl, Label, Textbox from util import Text, load_image import os from env import engine __docformat__ = 'restruct...
from __future__ import division from libtbx.test_utils import approx_equal from libtbx.utils import Usage from libtbx import easy_run import libtbx.load_env import platform import time import sys, os op = os.path __this_script__ = "cctbx_project/fable/test/sf_times.py" # based on cctbx_project/compcomm/newslet...
# Copyright 2017 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...
# -*- 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...