gt
stringclasses
1 value
context
stringlengths
2.49k
119k
from __future__ import unicode_literals, division, absolute_import from builtins import * # pylint: disable=unused-import, redefined-builtin import logging from sqlalchemy import Column, Integer, String, ForeignKey, or_, and_, select, update, func, Unicode from sqlalchemy.orm.exc import NoResultFound, MultipleResult...
# -*- coding: utf-8 -*- # # Copyright (c) 2015, Alcatel-Lucent Inc, 2017 Nokia # 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 copyrigh...
# # 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 # ...
""" Support to interact with a Music Player Daemon. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/media_player.mpd/ """ import logging import os from datetime import timedelta import voluptuous as vol from homeassistant.components.media_player import ...
import django from django.test import TestCase from django.contrib.contenttypes.models import ContentType from django.contrib.auth import get_user_model User = get_user_model() import denorm from denorm import denorms import models # Use all but denorms in FailingTriggers models by default failingdenorms = denorms.a...
import os import shutil from kivy.event import EventDispatcher from kivy.properties import StringProperty, ObjectProperty, \ ConfigParser, ConfigParserProperty, partial, Clock from kivy.uix.popup import Popup import designer from designer.confirmation_dialog import ConfirmationDialog class Builder(EventDispatche...
""" Collection of postgres-specific extensions, currently including: * Support for hstore, a key/value type storage """ import uuid from peewee import * from peewee import coerce_to_unicode from peewee import Expression from peewee import logger from peewee import Node from peewee import Param from peewee import retu...
from __future__ import division import logging log = logging.getLogger(__name__) class PwmError(Exception): pass class BiDict(object): def __init__(self, dic): self.norm = dic self.inv = dict([(v, k) for k, v in dic.items()]) base_divisor = { 3: 512, 5: 256, 6: 256, 9: 512,...
from flask import Flask from flask import jsonify, Response, render_template, abort, make_response from flask import request from cookbook_manager import CookbookManager from barista import Barista import json import httplib from threading import Thread from utils import channel from utils import json_config # ===...
#!/usr/bin/env python # Copyright 2016 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 python """ ==================================== rsfMRI: ANTS, FS, FSL, NiPy, aCompCor ==================================== A preprocessing workflow for Siemens resting state data. This workflow makes use of: - ANTS - FreeSurfer - FSL - NiPy - CompCor For example:: python rsfmri_preprocessing.py ...
""" sentry.utils.http ~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import import sentry import ipaddress import six import socket import requests import warnings import time import loggin...
#! from __future__ import division from __future__ import print_function import codecs import datetime import sys import os import shutil #import tabulate import codecs from numpy import * import numpy.linalg as LA from sympy import * from sympy import var as varsym from sympy import printing from sympy.core.alphabets...
from contextlib import closing import html import json import mimetypes import os import socket import time import traceback import uuid import webbrowser from http.server import HTTPServer from http.server import SimpleHTTPRequestHandler from dateutil.parser import parse from watchdog.observers import Observer from ...
from __future__ import print_function import numpy as np from numpy.linalg import norm import numpy.testing as npt from dipy.testing.memory import get_type_refcount from nose.tools import assert_true, assert_equal, assert_almost_equal from numpy.testing import (assert_array_equal, assert_array_almost_equal, ...
from django.core.exceptions import FieldError from django.db import connections from django.db.backends.util import truncate_name from django.db.models.sql.constants import * from django.db.models.sql.datastructures import EmptyResultSet from django.db.models.sql.expressions import SQLEvaluator from django.db.models.sq...
#!/usr/bin/python # coding: UTF-8 # musicdata service to read from SPOP # Written by: Ron Ritchey from __future__ import unicode_literals import threading, logging, Queue, time, sys, telnetlib, json, getopt import musicdata class musicdata_spop(musicdata.musicdata): def __init__(self, q, server=u'localhost', port...
"""The Session is a wrapper around a Shotgun instance, proxying requests to the server and applying additional logic on top of it. The Session instance is designed to be used for a single task and then discarded, since it makes the assumption that entity relationships do not change. While not fully documented below, t...
# The MIT License # # Copyright (c) 2008 William T. Katz # # 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,...
import os import subprocess import json import matplotlib.pyplot as plt import cv2 from numpy.linalg.linalg import inv from numpy import loadtxt from moving import userTypeNames from storage import loadTrajectoriesFromSqlite from cvutils import cvPlot, cvColors, cvGreen, imageBox colors = cvColors['colorblind'] gree...
#!/usr/bin/env python3 # -*- Coding: UTF-8 -*- # --------------------------------------------------------------------------- # Open Asset Import Library (ASSIMP) # --------------------------------------------------------------------------- # # Copyright (c) 2006-2016, ASSIMP Development Team # # All rights reserved. #...
from __future__ import absolute_import from django import forms from django.contrib import messages from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect from django.utils.safestring import mark_safe from django.utils.translation import ugettext_lazy as _ from uuid import uuid1 fro...
import ast import os import re from ate import exception, utils variable_regexp = r"\$([\w_]+)" function_regexp = r"\$\{[\w_]+\([\$\w_ =,]*\)\}" function_regexp_compile = re.compile(r"^\$\{([\w_]+)\(([\$\w_ =,]*)\)\}$") def extract_variables(content): """ extract all variable names from content, which is in for...
#!/usr/bin/env python # # 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 o...
"""Device, context and memory management on CuPy. Chainer uses CuPy (with very thin wrapper) to exploit the speed of GPU computation. Following modules and classes are imported to :mod:`cuda` module for convenience (refer to this table when reading chainer's source codes). ============================ ===============...
""" A test file for LDpred. Examples -------- To run all tests: $ python -m tests.test To run a specific test: $ python -m unittest tests.test.SimpleTests.test_ldpred_inf """ import pickle import filecmp import gzip import h5py from ldpred import coord_genotypes from ldpred import ld from ldpred import sum_stats_par...
#!/usr/bin/env python """ Copyright (c) 2021 Alex Forencich 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, merg...
# Copyright 2013 NEC Corporation. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
import json from os import urandom import urllib import urlparse import flask import requests from requests_oauthlib import OAuth1 as OAuth1Manager from oauthlib.oauth1.rfc5849 import SIGNATURE_HMAC, SIGNATURE_TYPE_AUTH_HEADER from oauthlib.oauth2.draft25 import tokens from werkzeug.urls import url_decode import conf...
import ctypes import random import importlib import numpy as np # Set up ctypes function bindings libpath = importlib.find_loader("libfht").path libfht = ctypes.CDLL(libpath) _fht = libfht.fht _shuffle_bigger_lfsr = libfht.shuffle_bigger_lfsr _shuffle_smaller_lfsr = libfht.shuffle_smaller_lfsr _shuffle_bigger_o = lib...
# Copyright (c) 2009, Giampaolo Rodola'. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Routines common to all posix systems.""" import glob import os import signal import sys import time from ._common import TimeoutExpired from ._common ...
# 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 sys from telemetry.story import story_set as story_set_module from telemetry.page import page_test from gpu_tests import gpu_test_base class GpuProce...
# Copyright 2012 Managed I.T. # # Author: Kiall Mac Innes <kiall@managedit.ie> # Author: Endre Karlson <endre.karlson@bouvet.no> # # 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:...
# -*- coding: utf-8 -*- import mysqlstmt from .where_mixin import WhereMixin from .join_mixin import JoinMixin from .config import Config import collections class Select(mysqlstmt.Stmt, WhereMixin, JoinMixin): """SELECT statement. Attributes: cacheable (bool): See constructor. calc_found_row...
from PySide2 import QtWidgets, QtCore, QtGui from pymel import core as pmc from auri.auri_lib import AuriScriptView, AuriScriptController, AuriScriptModel, grpbox from auri.scripts.Maya_Scripts import rig_lib from auri.scripts.Maya_Scripts.rig_lib import RigController reload(rig_lib) class View(AuriScriptView): ...
# 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 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 # # Unless required by applica...
# Source Generated with Decompyle++ # File: internal_parameter.pyc (Python 2.5) from __future__ import absolute_import from Live import DeviceParameter from ableton.v2.base import listenable_property, liveobj_valid, nop, Slot, SlotManager, Subject, SlotError def identity(value, _parent): return value def to_per...
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2019, Andrew Klychkov (@Andersson007) <aaklychkov@mail.ru> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {...
class BaseStemmer(object): def __init__(self): self.set_current("") self.maxCacheSize = 10000 self._cache = {} self._counter = 0 def set_current(self, value): ''' Set the self.current string. ''' self.current = value self.cursor = 0 ...
#!/usr/bin/python # Copyright (c) 2013 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Recipes for PNaCl toolchain packages. Recipes consist of specially-structured dictionaries, with keys for package name, ...
# 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 # # Unless required by applica...
# 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 agreed to in...
# Copyright 2019 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, ...
# BSD 3-Clause License # # Copyright (c) 2019, Elasticsearch BV # 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, t...
# -*- coding: utf-8 -*- """Contains helper functions for generating correctly formatted hgrid list/folders. """ import logging import datetime import hurry.filesize from framework import sentry from framework.auth.decorators import Auth from website import settings from website.util import paths from website.util im...
# Copyright (c) 2013 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. """VM-related helper functions/classes.""" import logging import os import shutil import time from chromite.cbuildbot import constants from chromite...
from __future__ import absolute_import, division, print_function from itertools import cycle from operator import itemgetter, add from toolz import unique, groupby, accumulate, pluck import bokeh.plotting as bp from bokeh.io import _state from bokeh.palettes import brewer from bokeh.models import HoverTool, LinearAxi...
# profile.py from translationstring import TranslationString as _ from error import WeasylError import macro as m import define as d import pytz import orm import shout import welcome from libweasyl.html import strip_html from libweasyl.models import tables from libweasyl import ratings from libweasyl import staff...
#!/usr/bin/env python3 # Copyright (c) 2018-2021 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the Partially Signed Transaction RPCs. """ from decimal import Decimal from itertools import prod...
# -*- coding:utf-8 -*- ''' Function for building whole packed version of highlight.js out of pre-packed modules. ''' import os import shutil import re import argparse import subprocess import json import codecs from functools import partial REPLACES = { 'case_insensitive': 'cI', 'lexemes': 'l', 'contains'...
# Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
#------------- # Some sections of the code below have been copied from # MongoEngine. # # https://github.com/MongoEngine/mongoengine # # Copyright (c) 2009 See AUTHORS # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation # files (the "Software"...
# coding: utf-8 # In[1]: from __future__ import division import numpy as np import matplotlib.pyplot as plt import matplotlib.dates as dts import pandas as pd from fredpy import series, window_equalize, quickplot import datetime,dateutil,urllib,runProcs import requests # get_ipython().magic('matplotlib inline') # ...
import random from django.contrib.auth.models import AnonymousUser, Group, User from django.db import connection from django.test import RequestFactory from django.test.utils import override_settings import mock import waffle from test_app import views from waffle.middleware import WaffleMiddleware from waffle.model...
# Copyright (c) 2012 Rackspace Hosting # 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...
# coding: utf-8 import re from mapography.model import CallTree, Segment, Module class ParserError(Exception): pass def extract_segments(maptext): """ Extract the segments extract from map file content :param maptext: map file content string :return: segments extract string """ segment...
"""Spectral biclustering algorithms.""" # Authors : Kemal Eren # License: BSD 3 clause from abc import ABCMeta, abstractmethod import warnings import numpy as np from scipy.linalg import norm from scipy.sparse import dia_matrix, issparse from scipy.sparse.linalg import eigsh, svds from . import KMeans, MiniBatchKMe...
# 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...
import os import sys sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), os.path.pardir)) from phantom_mask import db from config import settings from datetime import datetime, timedelta import uuid from contextlib import contextmanager import json from lib import usps, phantom_on_the_capitol, s...
# # Widgets.py -- wrapped HTML widgets and convenience functions # # Eric Jeschke (eric@naoj.org) # # Copyright (c) Eric R. Jeschke. All rights reserved. # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # import os.path import threading import time from functo...
"""Interfaces for launching and remotely controlling Web browsers.""" import os import sys __all__ = ["Error", "open", "get", "register"] class Error(Exception): pass _browsers = {} # Dictionary of available browser controllers _tryorder = [] # Preference order of available browsers def regis...
# Copyright 2013 Red Hat, Inc. # Copyright 2015 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/LICEN...
## system-config-printer ## Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Red Hat, Inc. ## Authors: ## Florian Festi <ffesti@redhat.com> ## Tim Waugh <twaugh@redhat.com> ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as ...
# 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 warnings warnings.filterwarnings('ignore') import tensorflow as tf import numpy as np import pickle import getopt import time import sys import os import nltk sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/../') from dnc import DNC from recurrent_controller import StatelessRecurrentController...
# $Id: __init__.py 7961 2016-07-28 22:02:47Z milde $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ This is ``docutils.parsers.rst`` package. It exports a single class, `Parser`, the reStructuredText parser. Usage ===== 1. Create a parser:: pa...
"""deCONZ service tests.""" from copy import deepcopy from asynctest import Mock, patch import pytest import voluptuous as vol from homeassistant.components import deconz from .test_gateway import ( BRIDGEID, ENTRY_CONFIG, DECONZ_WEB_REQUEST, setup_deconz_integration, ) GROUP = { "1": { ...
import asyncio import inspect import urllib.request from operator import methodcaller import snug async def awaitable(obj): """an awaitable returning given object""" await asyncio.sleep(0) return obj class MockAsyncClient: def __init__(self, response): self.response = response async de...
""" Let's work out some basic parsing of some productions from the Python grammar. Start from a py3 port of parts of Parson, adapted to work on tokens from `tokenize`. """ import sys import ast import token as T from tokenize import tokenize # First an annoying necessary hack. Certain of the AST types (the # 'simple'...
# 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...
# 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...
# Copyright 2019 PerfKitBenchmarker 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 appli...
import copy from office365.runtime.client_value import ClientValue from office365.runtime.odata.v3.json_light_format import JsonLightFormat from office365.runtime.odata.odata_json_format import ODataJsonFormat from office365.runtime.odata.query_options import QueryOptions class ClientObject(object): def __init_...
# -*- coding: utf-8 -*- """ Organization Registry - Controllers """ module = request.controller resourcename = request.function if not settings.has_module(module): raise HTTP(404, body="Module disabled: %s" % module) # ----------------------------------------------------------------------------- def index(...
#!/usr/bin/env python import os from time import time import argparse import logging import logging.handlers from eden.util import configure_logging from eden.util import serialize_dict from numpy.random import randint from numpy.random import uniform from sklearn.linear_model import SGDClassifier from sklearn imp...
from __future__ import division import tensorflow as tf tf.reset_default_graph() from tensorflow.python.client import timeline #profiling import re import ast import os import sys import time import math from random import sample import matplotlib.pyplot as plt import numpy as np import seaborn as sns from heapq impo...
import env import pytest from olopy.deep import * class TestPath: def test_contructor (self): # it should return an array of keys p = Path('a','b','c') assert isinstance(p, Path) assert p == ['a','b','c'] # it should split dot-separated keys p = Path('a.b', 'c')...
"""Definitions for DSMR Reader sensors added to MQTT.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from typing import Final from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntityDescription, SensorStateClass, ) from hom...
# Copyright 2019 Objectif Libre # # 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 agr...
"""Data prep, train and evaluate DNN model.""" import datetime import logging import os import numpy as np import tensorflow as tf from tensorflow import feature_column as fc from tensorflow.keras import activations, callbacks, layers, models logging.info(tf.version.VERSION) CSV_COLUMNS = [ "fare_amount", ...
from __future__ import absolute_import, print_function, division from petl.test.helpers import ieq from petl.util import expr, empty, coalesce from petl.transform.basics import cut, cat, addfield, rowslice, head, tail, \ cutout, skipcomments, annex, addrownumbers, addcolumn, \ addfieldusingcontext, movefield,...
import functools import json import logging import re from io import BytesIO from urllib.parse import parse_qs from urllib.parse import urlparse from pytest import fixture from pytest import mark from tornado.httpclient import HTTPResponse from tornado.httputil import HTTPHeaders from traitlets.config import Config f...
# Copyright The Cloud Custodian Authors. # SPDX-License-Identifier: Apache-2.0 """Most tags tests within their corresponding resource tags, we use this module to test some universal tagging infrastructure not directly exposed. """ import time from mock import MagicMock, call from c7n.tags import universal_retry, coale...
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Runs an exe through Valgrind and puts the intermediate files in a directory. """ import datetime import glob import logging import optparse import os...
# 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 unittest from dag import\ DfsNode,\ Dag,\ DagNode # # TestDfsNode # class TestDfsNode( unittest.TestCase ): def test_init( self ): node = DfsNode() self.assertEqual( node.getColor(), DfsNode.White ) self.assertEqual( node.getPreVisit(), -1 ) self.assertEqual( no...
# Copyright 2016 Twitter. 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 agree...
"""Terminal reporting of the full testing process. This is a good source for looking at the various reporting hooks. """ import argparse import datetime import inspect import platform import sys import warnings from functools import partial from typing import Any from typing import Callable from typing import Dict fro...
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals """ Customize Form is a Single DocType used to mask the Property Setter Thus providing a better UI from user perspective """ import frappe import frappe.translate from frappe im...
"""This module implements decorators for implementing other decorators as well as some commonly used decorators. """ import sys PY2 = sys.version_info[0] == 2 PY3 = sys.version_info[0] == 3 if PY3: string_types = str, import builtins exec_ = getattr(builtins, "exec") del builtins else: string_...
<NotepadPlus> <Project name="djdam"> <Folder name="apps"> <Folder name="admin"> <File name="C:\Documents and Settings\johnb\Desktop\GIT\djdam\apps\admin\actions.html" /> <File name="C:\Documents and Settings\johnb\Desktop\GIT\djdam\apps\admin\base.html" /> ...
"""Tests of http client with custom Connector""" import asyncio import http.cookies import gc import socket import unittest import ssl import tempfile import shutil import os.path from unittest import mock import aiohttp from aiohttp import web from aiohttp import client from aiohttp.client import ClientResponse from...
#!/usr/bin/env python import effess import os import os.path as p import re import shutil import string import sys import tempfile import types import uuid import subprocess from app import App from xml.sax.saxutils import quoteattr win32_dir = p.join(p.dirname(__file__), 'win32') if p.exists(win32_dir): sys.path.app...
import os from io import StringIO import shutil from unittest import mock from django.contrib.auth.models import User from django.core.files.uploadedfile import SimpleUploadedFile from django.test import TestCase from django.test.utils import override_settings from django.urls import reverse from mapentity.tests.fact...
"""Illustrates the same UPDATE into INSERT technique of ``versioned_rows.py``, but also emits an UPDATE on the **old** row to affect a change in timestamp. Also includes a :meth:`.SessionEvents.do_orm_execute` hook to limit queries to only the most recent version. """ import datetime import time from sqlalchemy impo...
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: group_search_service.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflect...
from sympy import (meijerg, I, S, integrate, Integral, oo, gamma, hyperexpand, exp, simplify, sqrt, pi, erf, sin, cos, exp_polar, polar_lift, polygamma, hyper, log, expand_func) from sympy.integrals.meijerint import (_rewrite_single, _rewrite1, meijerint_indefinite, _infla...
# -*- 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...
# -*- coding: utf-8 -*- # # Utilities for dealing with HTTP requests # # RateLimiter helps to only make a certain number of calls per second. # MultiRequest wraps grequests and issues multiple requests at once with an easy to use interface. # SSLAdapter helps force use of the highest possible version of TLS. # import s...