gt
stringclasses
1 value
context
stringlengths
2.49k
119k
# -*- test-case-name: nevow.test.test_testutil -*- # Copyright (c) 2004-2010 Divmod. # See LICENSE for details. import os, sys, signal #from subprocess import PIPE, Popen from zope.interface import implements try: import subunit except ImportError: subunit = None from twisted.python.log import msg from twi...
""" DeepMind Control Suite Wrapper directly sourced from: https://github.com/denisyarats/dmc2gym MIT License Copyright (c) 2020 Denis Yarats 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 witho...
# -*- test-case-name: foolscap.test.test_pb -*- import re if False: import sys from twisted.python import log log.startLogging(sys.stderr) from twisted.python import failure, reflect from twisted.internet import defer from twisted.internet.interfaces import IAddress from twisted.trial import unittest fr...
import collections import networkx import numpy import os import pandas import pysam import re import scipy.stats from grocsvs import step from grocsvs import structuralvariants from grocsvs import utilities from grocsvs.stages import assembly from grocsvs.stages import cluster_svs from grocsvs.stages import call_rea...
import os import yaml import tempfile from mock import MagicMock, patch from cloudify.exceptions import CommandExecutionException from ... import env from ...config import config from .test_base import CliCommandTest from .constants import BLUEPRINTS_DIR, SAMPLE_BLUEPRINT_PATH, \ SAMPLE_ARCHIVE_PATH class Bluep...
# 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...
# 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/LICE...
# coding=utf-8 # Copyright 2021 DeepMind Technologies Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
# # 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...
import logging from typing import Dict from unittest import mock import pytest from great_expectations import DataContext from great_expectations.core.usage_statistics.schemas import ( anonymized_usage_statistics_record_schema, ) from great_expectations.core.usage_statistics.usage_statistics import ( UsageSta...
# Copyright 2017 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, ...
""" This module processes images and makes them suitable to use as neural network inputs. """ from __future__ import division import numpy as np try: from scipy.misc import imresize has_scipy = True except ImportError: has_scipy = False from ..util import misc from ..util import netlog log = netlog.setup...
# Copyright (c) 2015 FUJITSU LIMITED # Copyright (c) 2012 EMC Corporation. # Copyright (c) 2012 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 Licen...
import logging import arrow import json import os import re from os.path import join, abspath, dirname import settings import github_api as gh THIS_DIR = dirname(abspath(__file__)) # Hopefully this isn't overwritten on pulls SAVED_COMMANDS_FILE = join(THIS_DIR, '..', "server/issue_commands_ran.json") if not os.path.e...
""" Platform for retrieving meteorological data from Dark Sky. For more details about this platform, please refer to the documentation https://home-assistant.io/components/weather.darksky/ """ from datetime import datetime, timedelta import logging from requests.exceptions import ( ConnectionError as ConnectError...
"""This module provides an API to validate and to some extent manipulate data structures, such as JSON and XML parsing results. Example usage: >>> validate(int, 5) 5 >>> validate({text: int}, {'foo': '1'}) ValueError: Type of '1' should be 'int' but is 'str' >>> validate({'foo': transform(int)...
""" RenderTarget Copyright (c) 2015 tobspr <tobias.springer1@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 in the Software without restriction, including without limitation the rights to use, copy,...
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'User.session_nonce' db.add_column('auth_user', 'session_n...
from lims.shared.loggedintestcase import LoggedInTestCase from rest_framework import status from .models import Address class AddressTestCase(LoggedInTestCase): def setUp(self): super(AddressTestCase, self).setUp() self._joeBloggsAddress = \ Address.objects.create(institution_name="Be...
""" Module to interact with the ChromeCast via protobuf-over-socket. Big thanks goes out to Fred Clift <fred@clift.org> who build the first version of this code: https://github.com/minektur/chromecast-python-poc. Without him this would not have been possible. """ # Pylint does not understand the protobuf objects corre...
# Copyright 2012 Grid Dynamics # Copyright 2013 Inktank Storage, Inc. # Copyright 2014 Mirantis, 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.or...
# coding=utf-8 # pylint: disable-msg=E1101,W0612 from datetime import datetime import numpy as np from numpy import nan import pytest import pandas.compat as compat from pandas.compat import lrange, range import pandas as pd from pandas import Categorical, Series, date_range, isna import pandas.util.testing as tm f...
# Lint as: python2, python3 # Copyright 2018 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 # ...
# 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 datetime import commonware.log import django_tables as tables import jinja2 from django.conf import settings from django.template import Context, loader from django.utils.datastructures import SortedDict from django.utils.translation import force_text from jingo import register from tower import ugettext as _, ...
# # 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...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # (c) Copyright 2013 Hewlett-Packard Development Company, L.P. # 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...
# Author: Jeffrey Armstrong <jeff@approximatrix.com> # April 4, 2011 import numpy as np from numpy.testing import (assert_equal, assert_array_almost_equal, assert_array_equal, assert_allclose, assert_, assert_almost_equal, suppress_warnin...
from bson import ObjectId import simplejson as json from eve.tests import TestBase from eve.tests.test_settings import MONGO_DBNAME from eve.tests.utils import DummyEvent from eve import STATUS_OK, LAST_UPDATED, ISSUES, STATUS, ETAG from eve.methods.patch import patch_internal class TestPatch(TestBase): def te...
# -*- coding: utf-8 -*- # # Copyright 2012-2015 Spotify AB # # 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...
from numpy import asarray, nonzero, sort, unique from pandas import DataFrame from .make_colorscale import make_colorscale from .nd_array.nd_array.check_nd_array_for_bad import check_nd_array_for_bad from .nd_array.nd_array.cluster_2d_array_slices import cluster_2d_array_slices from .nd_array.nd_array.normalize_nd_arr...
# -*- coding:utf-8 -*- # # Copyright 2019, Couchbase, 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 r...
""" Python VXI-11 driver Copyright (c) 2012-2017 Alex Forencich and Michael Walle 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 ...
import asyncio import logging import re import urllib from dataclasses import dataclass, field from time import sleep from typing import Dict, Iterable, List, Union from okta.client import Client as OktaClient from okta.models import Group, GroupProfile, User, UserProfile, UserStatus from datahub.configuration import...
from __future__ import absolute_import from __future__ import with_statement import pickle import sys from functools import wraps from mock import Mock, patch if sys.version_info >= (3, 0): from io import StringIO, BytesIO else: from StringIO import StringIO, StringIO as BytesIO # noqa from kombu import ut...
# -*- coding: utf-8 -*- # # Copyright 2017-2021 Tencent 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 applicabl...
import numpy as np import pytest import tensorflow as tf from numpy.testing import assert_almost_equal from tensorflow.python.framework.errors import InvalidArgumentError from gtd.ml.seq_batch import SequenceBatch, FeedSequenceBatch, reduce_mean, reduce_max, reduce_sum from gtd.ml.utils import clean_session from gtd.m...
# coding: utf-8 # # Copyright 2013 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 # # ...
# This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See https://swift.org/LICENSE.txt for license information # See https://swift.org/CONTRIBUTORS.txt for the list o...
#!/usr/bin/python # coding: utf8 """ Contains classes related to Range semantic """ import ast from print_trace import PrintTrace from range_operator import operators from range_operator import comparison_sign from range_operator import opposite_comparison from data_structure import VariableRangeValue from lexical_s...
# -*- coding: utf-8 -*- """``cacheutils`` contains consistent implementations of fundamental cache types. Currently there are two to choose from: * :class:`LRI` - Least-recently inserted * :class:`LRU` - Least-recently used Both caches are :class:`dict` subtypes, designed to be as interchangeable as possible, to ...
""" The MIT License (MIT) Copyright (c) 2016 Kyle Hollins Wray, University of Massachusetts 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 ...
"""Query module. This module contains a definition of object queries. """ import traceback import inspect import re import logging import uuid import exc from lib.rome.core.terms.terms import * from sqlalchemy.sql.expression import BinaryExpression, BooleanClauseList from lib.rome.core.rows.rows import construct_ro...
# ----------------------------------------------------------------------------- # Author: Texas Department of Transportation (TPP) # # Licence: The MIT License (MIT) # Copyright (C) 2014 TxDOT # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO TH...
# Copyright 2013-2014 MongoDB, 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 writin...
# # Copyright 2016 Quantopian, 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 wr...
from __future__ import unicode_literals, division, absolute_import from builtins import * # noqa pylint: disable=unused-import, redefined-builtin import logging from flexget import plugin from flexget.entry import Entry from flexget.event import event from flexget.config_schema import one_or_more from flexget.utils....
from __future__ import unicode_literals import getpass import optparse import os import subprocess import sys try: import urllib.request as compat_urllib_request except ImportError: # Python 2 import urllib2 as compat_urllib_request try: import urllib.error as compat_urllib_error except ImportError: # P...
# Copyright 2018 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, ...
import inspect import os import re import sys from collections import abc from typing import ( Any, Callable, Dict, Iterable, List, Mapping, Optional, Sequence, Set, Tuple, Union, ) from unittest import mock from unittest.mock import MagicMock, patch import yaml from django....
# Copyright (c) 2014 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 required by applic...
# 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 ...
"""The tests for the IGN Sismologia (Earthquakes) Feed platform.""" import datetime from unittest.mock import MagicMock, call, patch from homeassistant.components import geo_location from homeassistant.components.geo_location import ATTR_SOURCE from homeassistant.components.ign_sismologia.geo_location import ( ATT...
# Python 3 import fileinput import glob import shutil import sys import os import re import distutils.dir_util VERSION_SHORT = "v.31a" VERSION_FULL = VERSION_SHORT + ", released 12 Feb 2022" EXEC_UGLIFYJS_WIN = "{2}/lib/uglifyjs.cmd --parse bare_returns --compress --mangle toplevel --mangle-props keep_quoted,reserve...
# 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...
""" The Flow module lets you connect to processes or network services using a unified API. It is primarily designed for synchronous communication flows. It is based around the central :class:`Flow` class which uses a ``Channel`` to connect to a process. The :class:`Flow` class then uses the primitives exposed by the `...
""" Giving models a custom manager You can use a custom ``Manager`` in a particular model by extending the base ``Manager`` class and instantiating your custom ``Manager`` in your model. There are two reasons you might want to customize a ``Manager``: to add extra ``Manager`` methods, and/or to modify the initial ``Q...
#win_notify ''' This will setup your computer to enable auditing for specified folders inputted into a yaml file. It will then scan the ntfs journal for changes to those folders and report when it finds one. ''' from __future__ import absolute_import from time import mktime, strptime, time import collections import ...
from fooster.web import web import pytest test_key = 'Magical' test_value = 'header' test_header = test_key + ': ' + test_value + '\r\n' poor_key = 'not' poor_value = 'good' poor_header = poor_key + ':' + poor_value + '\r\n' good_header = poor_key + ': ' + poor_value + '\r\n' case_key = 'wEIrd' case_key_title = c...
#!/usr/bin/env python # # 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 require...
import subprocess import jinja2 import unittest import os import shutil import json import signal import sys import time import yaml from datetime import datetime, timedelta from .compose import ComposeMixin BEAT_REQUIRED_FIELDS = ["@timestamp", "beat.name", "beat.hostname", "beat.version"] ...
# 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...
# coding=utf-8 # ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ import pytest import functools from io import BytesIO from datetime import date from devtools_testutils import recorded_by_proxy from azure.core.exceptio...
"""A script to clean US EPA's Facility data from GHG Emitter Facilities table""" import csv import datacommons import json import os.path import pathlib import sys from absl import app from absl import flags from shapely import geometry # Allows the following module imports to work when running as a script _SCRIPT_P...
__author__ = 'bkeroack' import sys import logging import traceback import time import billiard import itertools import pprint pp = pprint.PrettyPrinter(indent=4) import elita.util import elita.util.type_check import gitservice import salt_control from elita.actions.action import regen_datasvc class FatalDeploymentEr...
import datetime import warnings from xml.dom import minidom from django.contrib.syndication import views from django.core.exceptions import ImproperlyConfigured from django.test import TestCase from django.utils import tzinfo from django.utils.feedgenerator import rfc2822_date, rfc3339_date from models import Entry ...
import numpy class ApproximateInferenceEngine(object): def __init__(self, network): """Defines an engine for performing approximate inference in a discrete Bayesian network. Keyword arguments: network -- A 'libpgm.discretebayesiannetwork.DiscreteBayesianNetwork' object representing a discr...
#!/usr/bin/env python # # 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 # "...
# -*- coding: utf-8 -*- """ Sahana Eden Delphi Decision Maker Model @copyright: 2009-2012 (c) Sahana Software Foundation @license: MIT 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 ...
#!/usr/bin/env python # Copyright 2015 The Kubernetes 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 appli...
#!/usr/bin/env python3 import gc import logging import time import asyncio import struct import socket from concurrent.futures import Executor, ThreadPoolExecutor from phasortoolbox.message import Command from phasortoolbox import Parser LOG=logging.getLogger('phasortoolbox.client') class Client(): """A synchroph...
# Copyright 2016 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, ...
# Copyright 2019 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. """Functions for interacting with llvm-profdata""" import logging import multiprocessing import os import re import shutil import subprocess _DIR_SOURCE_ROO...
# encoding: utf-8 __author__ = "Nils Tobias Schmidt" __email__ = "schmidt89 at informatik.uni-marburg.de" from androguard.decompiler.dad import decompile import re from androlyze.log.Log import log ############################################################ #---Checks ############################################...
# Copyright (c) 2015 Hitachi Data Systems. # 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...
#!/usr/bin/python # # Hey, here's a thing: # # You can use this bit of python script to generate GCode to drill a PCB based on an image file that you used # to etch the board. # # This script makes GCode to drill the center of sections of an image that are a given color or brightness. # # All you need to do is load the...
import wx import sys from sas.sasgui.perspectives.calculator import calculator_widgets as widget from sas.sasgui.perspectives.file_converter.converter_widgets import VectorInput from wx.lib.scrolledpanel import ScrolledPanel from sas.sasgui.guiframe.panel_base import PanelBase from sas.sascalc.dataloader.data_info impo...
# Copyright 2015 - Mirantis, Inc. # Copyright 2015 - StackStorm, 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 # # Unl...
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2017, Ansible by Red Hat, inc # # This file is part of Ansible by Red Hat # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the Li...
from unittest import TestCase from chatterbot.storage import MongoDatabaseAdapter from chatterbot.conversation import Statement class MongoAdapterTestCase(TestCase): @classmethod def setUpClass(cls): """ Instantiate the adapter before any tests in the test case run. """ from p...
import sys, time, socketserver import emailinfo, regrules, TCGMain from modules import pyrand, pyemail, pyhash from modules.pyqueue import Queue from threading import Thread from os import walk class SimpleServer(socketserver.ThreadingMixIn, socketserver.TCPServer): daemon_threads = True allow_reuse_address =...
""" pyshtools subpackage that includes all Python wrapped Fortran routines. """ from __future__ import absolute_import as _absolute_import from __future__ import division as _division from __future__ import print_function as _print_function import os as _os import numpy as _np # ---- Import all wrapped SHTOOLS funct...
# -*- coding: utf-8 -*- """ edacc.forms ----------- Various WTForms used by the web frontend. :copyright: (c) 2010 by Daniel Diepold. :license: MIT, see LICENSE for details. """ from wtforms import Form, TextField, PasswordField, TextAreaField, RadioField, DecimalField, FloatField from wtforms im...
""" sourcemap.decoder ~~~~~~~~~~~~~~~~~ Includes source from: https://github.com/martine/python-sourcemap Original source under Apache license, see: https://github.com/martine/python-sourcemap/blob/master/COPYING :copyright: (c) 2013 by Matt Robenolt :license: BSD, see LICENSE for more details. """ import os ...
from distutils.command.build_ext import build_ext as _du_build_ext try: # Attempt to use Pyrex for building extensions, if available from Pyrex.Distutils.build_ext import build_ext as _build_ext except ImportError: _build_ext = _du_build_ext import os, sys from distutils.file_util import copy_file from set...
# Copyright (c) 2010-2014 openpyxl import pytest # package imports from openpyxl.compat import safe_string from openpyxl.reader.excel import load_workbook from openpyxl.reader.style import read_style_table from openpyxl.styles import ( numbers, Color, Font, PatternFill, GradientFill, Border, ...
#!/usr/bin/env python # # Copyright (c) 2010 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. # Chromoting Directory API client implementation. Used for testing/debugging # purposes. Requires Python 2.6: json module is not ...
# This file is part of Indico. # Copyright (C) 2002 - 2019 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from __future__ import print_function, unicode_literals import logging import os from operator import ite...
# Copyright (c) 2015-2018. Mount Sinai School of Medicine # # 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...
# 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...
from __future__ import unicode_literals import mimetypes import os import random import sys import time from email import (charset as Charset, encoders as Encoders, message_from_string, generator) from email.message import Message from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart ...
import datetime import itertools from django.db import connection from django.db.models import Max, Sum from elasticsearch.helpers import bulk as bulk_index import olympia.core.logger from olympia import amo from olympia.addons.models import Addon from olympia.amo import search as amo_search from olympia.amo.celery...
# Fuck you Disyer. Stealing my fucking paypal. GET FUCKED: toontown.fishing.FishermanGUI from panda3d.core import TextNode from direct.gui.DirectGui import * from toontown.toontowngui import TTDialog from toontown.toonbase import ToontownGlobals, TTLocalizer from toontown.toon import NPCToons from FishSellGUI import Fi...
# -*- coding: utf-8 -*- from __future__ import absolute_import import os import subprocess from django.conf import settings from django.test import TestCase, override_settings from typing import Any, Dict, List from zproject.settings import DEPLOY_ROOT from zerver.lib.integrations import INTEGRATIONS, HUBOT_LOZENGES...
# coding: utf-8 import pytest import pandas as pd import numpy as np from pandas.testing import assert_series_equal from functools import partial from dgp.lib.transform.graph import Graph, TransformGraph, GraphError from dgp.lib.transform.gravity import eotvos_correction, latitude_correction, free_air_correction impor...
# Copyright 2012 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 requ...
""" Copyright (C) 2010 - 2013 TopCoder Inc., All Rights Reserved. This file contains claim file. ClaimFile provides the access to the file @version 1.0 (Healthcare Fraud Prevention - Partner Database Appliance - Assembly) @author: zeadom, TCSASSEMBLER @since 2013-12-10 """ import os, sys import abc import csv sys.pa...
# 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 pygame.math import Vector3 as V3 import pygame import thorpy from core3d import Object3D, Path3D from light import Light, Material from camera import Camera import primitivemeshes import parameters import drawing import vessel import random from scene import Scene import levelgen import gamelogic import garage im...
"""Composable matchers for HTTP headers.""" import re RE_TYPE = type(re.compile(r'')) class BaseMatcher: """Matcher base class.""" def match(self, request): """ Check HTTP request headers against some criteria. This method checks whether the request headers satisfy some crit...