gt
stringclasses
1 value
context
stringlengths
2.49k
119k
#!/usr/bin/env python import collections import warnings from affine import Affine import numpy import pandas from geoh5.kea import common as kc from geoh5.kea.common import LayerType from geoh5.kea.common import BandColourInterp from geoh5.kea.common import RatFieldTypes from geoh5.kea.common import RatDataTypes fr...
import rdtest import struct import renderdoc as rd def real_action_children(action): return [c for c in action.children if not c.flags & rd.ActionFlags.PopMarker] class VK_Indirect(rdtest.TestCase): demos_test_name = 'VK_Indirect' def check_overlay(self, pass_samples, *, no_overlay = False): pi...
# Copyright (c) 2010-2012 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
# 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...
"""Tests for `imitation.data.rollout`.""" import functools from typing import Mapping, Sequence import gym import numpy as np import pytest from stable_baselines3.common import monitor, vec_env from imitation.data import rollout, types, wrappers from imitation.policies import serialize from imitation.policies.base i...
# coding: utf-8 # In[1]: get_ipython().magic('matplotlib inline') import matplotlib.pyplot as plt import numpy as np import time import src.gen_source as gen_source import src.two_tone_lib as tt import src.tcp_async as tcp_async import src.tcp_sync as tcp_sync import src.dab_util as du import src.dab_tuning_lib as ...
# coding=utf-8 # Copyright 2018 The Tensor2Tensor 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...
from __future__ import absolute_import, division, print_function import gc import contextlib import datetime import functools import platform import sys import textwrap import time import weakref import warnings from tornado.concurrent import return_future, Future from tornado.escape import url_escape from tornado.ht...
# Copyright 2017 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. # pylint: disable=relative-import import argparse import os import posixpath from code_generator import initialize_jinja_env from idl_reader import IdlRead...
import datetime from django.core.urlresolvers import reverse from molo.polls.admin import QuestionAdmin, download_as_csv from molo.polls.models import ( Choice, Question, FreeTextQuestion, ) from molo.polls.tests.base import BasePollsTestCase class AdminTestCase(BasePollsTestCase): def test_downloa...
import numpy as np import theano import theano.tensor as T from lib import sigmoid, softmax, dropout, floatX, random_weights, zeros class NNLayer: def get_params(self): return self.params def get_param_names(self): return [ 'UNK' if p.name is None else p.name for p in self.params ] def ...
#!/usr/bin/python # -*- coding: utf-8 -*- # libthumbor - python extension to thumbor # http://github.com/heynemann/libthumbor # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license # Copyright (c) 2011 Bernardo Heynemann heynemann@gmail.com '''libthumbor URL composer tests''' import sys f...
#!/usr/bin/env python # # Copyright 2011-2015 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...
import logging import os import tkinter import tkinter.filedialog import yaml from msquaredc import persistence from msquaredc import utils from msquaredc.ui.gui.widgets import ScaleWidget class MainFrame(object): # pragma no cover def __init__(self, widgets): self.widgets = widgets self.tk = t...
# -*- coding: utf-8 -*- from reportlab.graphics.barcode import createBarcodeDrawing from reportlab.lib.pagesizes import A4 from reportlab.lib.units import inch, mm from reportlab.platypus.doctemplate import NextPageTemplate, FrameBreak from reportlab.platypus.flowables import Spacer, HRFlowable, PageBreak, Flowable fro...
from abc import ABC, abstractmethod from collections import OrderedDict from collections.abc import MutableSequence from copy import deepcopy import numpy as np from .checkvalue import check_type class Region(ABC): """Region of space that can be assigned to a cell. Region is an abstract base class that is ...
r""" Nonlinear solvers ================= .. currentmodule:: scipy.optimize This is a collection of general-purpose nonlinear multidimensional solvers. These solvers find *x* for which *F(x) = 0*. Both *x* and *F* can be multidimensional. Routines -------- Large-scale nonlinear solvers: .. autosummary:: newton...
import logging from flask import request, flash, abort, Response from flask_admin import expose from flask_admin.babel import gettext, ngettext, lazy_gettext from flask_admin.model import BaseModelView from flask_admin.model.form import wrap_fields_in_fieldlist from flask_admin.model.fields import ListEditableFieldLi...
# # Copyright 2009 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 ...
from metabotnik.models import Project, File, new_task from dropbox import Dropbox import os import sys import subprocess import traceback import json from django.utils import timezone from django.core.mail import send_mail from django.conf import settings import planodo from PIL import Image from metabotnik.xmp import ...
#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse import ast # TODO: add to geoocode_db_utils import db import json import logging import psycopg2.extras from psycopg2.extensions import AsIs import urllib import yaml # Load the key we use for geocoding addressed # TODO: have a config file for this geocode_...
""" Test the ColumnTransformer. """ import re import pickle import numpy as np from scipy import sparse import pytest from numpy.testing import assert_allclose from sklearn.utils._testing import assert_array_equal from sklearn.utils._testing import assert_allclose_dense_sparse from sklearn.utils._testing import asser...
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding index on 'Comment', fields ['visibility'] db.create_index('canvas_comment', ['visibility']) ...
#!/usr/bin/python # Copyright (c) 2015 Matthew Earl # # 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, modify, me...
#!/usr/bin/env python # # Copyright 2008 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 li...
# 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 ...
import functools import logging from collections import defaultdict from inspect import signature from warnings import warn from twisted.internet.defer import Deferred, DeferredList from twisted.python.failure import Failure from scrapy.settings import Settings from scrapy.utils.datatypes import SequenceExclude from ...
from __future__ import print_function from __future__ import unicode_literals from inspect import getdoc from operator import attrgetter import logging import re import signal import sys from docker.errors import APIError import dockerpty from .. import __version__, legacy from ..project import NoSuchService, Configu...
#!/usr/bin/python # -*- coding: utf-8 -*- """Tests for the Less Frequently Used (LFU) Windows Registry plugin.""" import unittest from plaso.dfwinreg import definitions as dfwinreg_definitions from plaso.dfwinreg import fake as dfwinreg_fake from plaso.formatters import winreg as _ # pylint: disable=unused-import fr...
# django-salesforce # # by Phil Christensen # (c) 2012-2013 Freelancers Union (http://www.freelancersunion.org) # See LICENSE.md for details # """ Salesforce database backend for Django. """ import logging import requests import sys import threading from salesforce import DJANGO_16_PLUS, DJANGO_18_PLUS from django....
# from https://github.com/DJuttmann/SM3E/blob/master/SM3E/Tools/Compression.cs import utils.log class Compressor: def __init__(self, computeLimit=5): self.log = utils.log.get('Compressor') self.computeLimit = computeLimit def _concatBytes(self, b0, b1): return b0 + (b1 << 8) def _...
#!/usr/bin/python # # Copyright (c) 2012 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Unittests for the gs.py module.""" import functools import os import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os...
import logging import warnings from django.contrib.auth.models import User from django.db import models from django.db.models import Q from django.utils import timezone from django.utils.functional import cached_property from django.utils.encoding import python_2_unicode_compatible from django.utils.translation import...
"""Home Assistant auth provider.""" from __future__ import annotations import asyncio import base64 from collections import OrderedDict import logging from typing import Any, Dict, List, Optional, Set, cast import bcrypt import voluptuous as vol from homeassistant.const import CONF_ID from homeassistant.core import ...
# Copyright 2011 OpenStack Foundation # 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 use this file except in compliance with...
#------------------------------------------------------------------------------ # # Copyright (c) 2006, Enthought, Inc. # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in enthought/LICENSE.txt and may be redistributed only # under the conditions d...
import pygame import numpy # import is unused but required or we fail later from pygame.constants import K_DOWN, K_UP, KEYDOWN, KEYUP, QUIT import pygame.surfarray import pygame.key def function_intercept(intercepted_func, intercepting_func): """ Intercepts a method call and calls the supplied intercepting_f...
# 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...
import numpy as np import matplotlib.pyplot as plt import matplotlib.patches as patches from matplotlib.path import Path class HivePlot(object): """ The HivePlot class will take in the following and return a hive plot: - nodes: a dictionary of nodes, in which there are at most 3 keys ...
#!/usr/bin/env python # Copyright 2020 The HuggingFace Team. 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 2013 Mirantis, Inc. # Copyright 2013 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 # # Un...
# coding: utf-8 """ Wavefront REST API Documentation <p>The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.</p><p>When you make REST API calls outside the W...
""" Defines different IO utility methods and classes. Author: O.Z. """ # imports import os import sys import shutil from pathlib import Path __all__ = ['has_attribute', 'compare_paths', 'is_subfolder', 'extract_file_name', 'get_current_package_path', ...
from __future__ import print_function, division, absolute_import import collections import itertools import numpy as np from numba import unittest_support as unittest from numba.compiler import compile_isolated from numba import jit, types, errors from .support import TestCase, MemoryLeakMixin, tag Rect = collecti...
# ============================================================================= # periscope-ps (blipp) # # Copyright (c) 2013-2016, Trustees of Indiana University, # All rights reserved. # # This software may be modified and distributed under the terms of the BSD # license. See the COPYING file for details. # # ...
#!/usr/bin/env python # encoding: utf-8 import os from types import NoneType from xmlrpclib import DateTime import mock from nose.tools import * # flake8: noqa from tests.base import OsfTestCase from osf_tests.factories import (UserFactory, ProjectFactory, NodeFactory, AuthFactory, Regi...
# 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...
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function from argparse import Namespace import tensorflow as tf import numpy as np from niftynet.evaluation.pairwise_measures import PairwiseMeasures from niftynet.utilities.util_common import MorphologyOps from niftynet.evaluation.segmentation_eva...
"""extra utility functions""" import os import sys import logging import random import operator import numpy as np import math import tensorflow.keras import tensorflow as tf from tensorflow.python.keras.layers import Dropout from tensorflow.keras.callbacks import Callback from sklearn.metrics import f1_score, precisi...
''' This module holds the constants used for specifying the states of the debugger. ''' from __future__ import nested_scopes STATE_RUN = 1 STATE_SUSPEND = 2 PYTHON_SUSPEND = 1 DJANGO_SUSPEND = 2 JINJA2_SUSPEND = 3 try: __setFalse = False except: import __builtin__ setattr(__builtin__, 'True', 1) set...
import unittest import unittest.mock import random import os import time import pickle import warnings import test.support from functools import partial from math import log, exp, pi, fsum, sin, factorial from test import support from fractions import Fraction from collections import Counter class TestBasicOps: #...
import json import struct import os import sys import subprocess import time import collections import io import cv2 from math import radians import numpy as np import shm red = (0, 0, 255) green = (0, 255, 0) blue = (255, 0, 0) white = (255, 255, 255) cyan = (255, 255, 0) yellow = (0, 255, 255) purple = (127, 0, 1...
''' brozzler/browser.py - manages the browsers for brozzler Copyright (C) 2014-2020 Internet Archive 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 ...
#!/usr/bin/python from .py2specials import * from .py3specials import * import binascii import hashlib import re import sys import os import base64 import time import random import hmac from bitcoin.ripemd import * # Elliptic curve parameters (secp256k1) P = 2**256 - 2**32 - 977 N = 1157920892373161954235709850086879...
# -*- coding: utf-8 -*- """ Django settings for jmauricio project. For more information on this file, see https://docs.djangoproject.com/en/dev/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/dev/ref/settings/ """ # Build paths inside the project like this: os.p...
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
""" Copyright (c) 2017 Baidu 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 agre...
import os import json import time from datetime import datetime from django.conf import settings from django import template from django.template.loader import get_template from django.template import TemplateSyntaxError from django.contrib.staticfiles.templatetags.staticfiles import static from django.core.serializers...
# 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 under t...
#!/usr/bin/python2.6 # # Copyright 2010 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...
# Copyright 2012 IBM Corp. # # 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 t...
import numpy as np from nose.tools import assert_equal from sklearn.cross_decomposition import pls_, CCA from sklearn.datasets import load_linnerud from sklearn.utils.testing import (assert_array_almost_equal, assert_array_equal, assert_true, assert_...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 Grid Dynamics # 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/l...
from importlib import import_module from itertools import islice from time import sleep from selenium.common.exceptions import StaleElementReferenceException import nerodia from nerodia.exception import LocatorException from nerodia.js_snippet import JSSnippet from .locators.class_helpers import ClassHelpers class ...
# Copyright 2015 Cisco 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 required by...
# coding=utf-8 # Copyright 2022 The Tensor2Tensor 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...
from model.contact import Contact import re class ContactHelper: contact_cache = None def __init__(self, app): self.app = app def change_field_value(self, field_name, text): wd = self.app.wd if text is not None: wd.find_element_by_name(field_name).click() ...
# Copyright 2012 NEC Corporation # Copyright 2015 Cisco 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/LICENSE-2.0 # # Un...
""" Models the visit attribute object. """ import logging from cutlass.iHMPSession import iHMPSession from cutlass.DiseaseMeta import DiseaseMeta from cutlass.Base import Base from cutlass.Util import enforce_bool, enforce_dict, enforce_float, \ enforce_int, enforce_list, enforce_string # pyl...
from __future__ import unicode_literals import codecs import os import re from django.conf import settings from django.core.management.base import CommandError from django.db import models from django.db.models import get_models from django.utils._os import upath def sql_create(app, style, connection): "Returns...
#!/usr/bin/env python3 # # Copyright (c) 2016, The OpenThread Authors. # 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 # ...
import hashlib import hmac import json import re from django.conf import settings from django.contrib.auth import logout from django.contrib.auth.decorators import login_required from django.contrib.auth.mixins import LoginRequiredMixin from django.core.urlresolvers import reverse from django.db.models import Count fr...
import os import pytest import bcrypt _test_vectors = [ ( b"Kk4DQuMMfZL9o", b"$2b$04$cVWp4XaNU8a4v1uMRum2SO", b"$2b$04$cVWp4XaNU8a4v1uMRum2SO026BWLIoQMD/TXg5uZV.0P.uO8m3YEm", ), ( b"9IeRXmnGxMYbs", b"$2b$04$pQ7gRO7e6wx/936oXhNjrO", b"$2b$04$pQ7gRO7e6wx/936...
"""============== Motif pipeline ============== The motif pipeline runs a set of motif discovery and enrichment analysis on a set of intervals. * Motif discovery using MEME * Motif detection using MAST * requires a set of known motifs Usage ===== See :ref:`PipelineSettingUp` and :ref:`PipelineRunning`...
#------------------------------------------------------------------------------- # Copyright 2017 Cognizant Technology Solutions # # 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:...
import piquant.parameters as parameters import pytest import schema import tempfile def _get_test_parameter( name="name", title="The Name", option_name="--option-name", option_validator=int, is_numeric=False, value_namer=None, file_namer=None): param = parameters._Parameter( name,...
""" dj-stripe Webhook Tests. """ import json import warnings from collections import defaultdict from copy import deepcopy from unittest.mock import Mock, PropertyMock, call, patch from uuid import UUID import pytest from django.test import TestCase, override_settings from django.test.client import Client from django....
import hail as hl from .java import Env, info from .misc import new_temp_file, local_path_uri, new_local_temp_dir import os import zipfile from urllib.request import urlretrieve from hailtop.utils import sync_retry_transient_errors __all__ = [ 'get_1kg', 'get_hgdp', 'get_movie_lens' ] resources = { '1...
# -*- coding: utf-8 -*- """ Bindings for SQLite https://docs.python.org/2/library/sqlite3.html Notes, certain SQLite versions might have a problem with long integers http://jakegoulding.com/blog/2011/02/06/sqlite-64-bit-integers/ Looking at the docs, it says it will set an integer value to 1-4, 6, or 8 bytes dependi...
# Copyright 2009 Matt Chaput. 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 notice, # this list of conditions and the...
# 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 ...
"""Copyright 2008 Orbitz WorldWide 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...
"""Miscellaneous stuff that doesn't really fit anywhere else.""" from __future__ import print_function, division import sys import os import re as _re from textwrap import fill, dedent from sympy.core.compatibility import get_function_name, range def filldedent(s, w=70): """ Strips leading and trailing emp...
#!/usr/bin/env python import gevent import gevent.monkey gevent.monkey.patch_all() import json from flask import Flask, render_template, session, request from flask_socketio import SocketIO, emit, join_room, leave_room, \ close_room, rooms, disconnect import sys import argparse parser = argparse.ArgumentParser...
"Ideogenesis: Note pages." from __future__ import print_function, absolute_import import logging import tornado.web import ideogenesis from . import constants from . import neo4jdbi from . import saver from . import settings from . import utils from .requesthandler import RequestHandler class NoteSaver(saver.Save...
# Copyright 2017 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 agreed to in writing, s...
#!/usr/bin/env python # Copyright (c) 2002-2011 ActiveState Software Inc. All rights reserved. """ActivePython identification module This can be run as a script to dump version info: python .../activestate.py or to relocate this Python installation appropriately (see relocate_python() for details): python .....
import json import logging import inspect from .decorators import pipeline_functions, register_pipeline from indra.statements import get_statement_by_name, Statement logger = logging.getLogger(__name__) class AssemblyPipeline(): """An assembly pipeline that runs the specified steps on a given set of statem...
# # Jasy - Web Tooling Framework # Copyright 2010-2012 Zynga Inc. # Copyright 2013-2014 Sebastian Werner # # # License: MPL 1.1/GPL 2.0/LGPL 2.1 # Authors: # - Brendan Eich <brendan@mozilla.org> (Original JavaScript) (2004-2010) # - Sebastian Werner <info@sebastian-werner.net> (Python Port) (2010) # import jasy.s...
'''tzinfo timezone information for America/Asuncion.''' from pytz.tzinfo import DstTzInfo from pytz.tzinfo import memorized_datetime as d from pytz.tzinfo import memorized_ttinfo as i class Asuncion(DstTzInfo): '''America/Asuncion timezone definition. See datetime.tzinfo for details''' zone = 'America/Asuncio...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import os import logging import ebstall.errors as errors import collections import re import ebstall.util as util import subprocess import types import ebstall.osutil as osutil import shutil import pkg_resources __author__ = 'dusankl...
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt # util __init__.py from __future__ import unicode_literals, print_function from werkzeug.test import Client import os, re, sys, json, hashlib, requests, traceback from markdown2 import markdown as _markdown from .html_...
# Copyright (c) 2012 NetApp, Inc. All rights reserved. # Copyright (c) 2014 Ben Swartzlander. All rights reserved. # Copyright (c) 2014 Navneet Singh. All rights reserved. # Copyright (c) 2014 Clinton Knight. All rights reserved. # Copyright (c) 2014 Alex Meade. All rights reserved. # Copyright (c) 2014 Andrew Ker...
#app = contacts_and_people from django.db import models from django.db.utils import DatabaseError from django.contrib.contenttypes import generic from django.contrib.contenttypes.models import ContentType from django.contrib.auth.models import User from django.template.defaultfilters import slugify from django.utils.fu...
import sys import unittest2 from mock import Mock, patch import stripe from stripe.test.helper import StripeUnitTestCase VALID_API_METHODS = ('get', 'post', 'delete') class HttpClientTests(StripeUnitTestCase): def setUp(self): super(HttpClientTests, self).setUp() self.original_filters = stri...
# coding: utf-8 """ Onshape REST API The Onshape REST API consumed by all clients. # noqa: E501 The version of the OpenAPI document: 1.113 Contact: api-support@onshape.zendesk.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re # noqa: F401 im...
from core_serializers.utils import empty, get_attribute, is_html_input class ValidationError(Exception): pass class SkipField(Exception): pass class Field(object): _creation_counter = 0 MESSAGES = { 'required': 'This field is required.' } _NOT_READ_ONLY_WRITE_ONLY = 'May not set ...
from django import forms from django.contrib import admin from django.contrib.admin import AdminSite from django.contrib.contenttypes.admin import GenericStackedInline from django.core import checks from django.test import SimpleTestCase, override_settings from .models import ( Album, Author, Book, City, Influence...
# Copyright 2014 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 unittest from telemetry.core import exceptions from telemetry.core import util from telemetry import decorators from telemetry.internal.actions import...
# Copyright 2015 Fortinet 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 agre...