text
stringlengths
5.09k
178k
domain
stringclasses
106 values
# coding=utf-8 # (The line above is necessary so that I can use 世界 in the # *comment* below without Python getting all bent out of shape.) # Copyright 2007-2009 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 o...
codeparrot/github-code-clean
#!/usr/bin/env python3 # Copyright (c) 2016-2017 The Doriancoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test segwit transactions and blocks on P2P network.""" from test_framework.mininode import * from t...
codeparrot/github-code-clean
# 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 ...
codeparrot/github-code-clean
#!/usr/local/bin/python3.2 # coding: utf-8 # pylint: disable-msg=C0302 """This module tests the sbo_data_source_cache module.""" import unittest import debug import debug_flags # Test specific imports. import datetime from data_source_base import DataSourceBase # The class under test. from sbo_data_source_cache imp...
codeparrot/github-code-clean
# -*- coding: ascii -*- # $Id$ # # Author: vvlachoudis@gmail.com # Date: 18-Jun-2015 from __future__ import absolute_import from __future__ import print_function __author__ = "Vasilis Vlachoudis" __email__ = "vvlachoudis@gmail.com" import sys # import time import math try: from Tkinter import * import tkMessageBo...
codeparrot/github-code-clean
import os import time import cPickle as pickle from enigma import eServiceReference, eServiceCenter, eTimer, eSize, iPlayableService, iServiceInformation, getPrevAsciiCode, eRCInput, eListboxPythonMultiContent, gFont, RT_HALIGN_CENTER, RT_HALIGN_LEFT, RT_VALIGN_CENTER, RT_WRAP from Screen import Screen from Component...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Resource object code # # Created: So. Okt 20 13:01:22 2013 # by: The Resource Compiler for PyQt (Qt v4.8.5) # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore qt_resource_data = "\ \x00\x00\x13\xbc\ \xff\ \xd8\xff\xe0\x00\x10\x4a\x46\x49\x46\x00\x01\x01\x...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- from io import StringIO import json import platform import re from typing import Any, Dict from unittest import skipIf from urllib.parse import urlencode from django.db import connection, transaction from django.shortcuts import get_object_or_404 from guardian.shortcuts import assign_perm fro...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- import base64 import datetime import dateutil import email import lxml from lxml import etree import logging import pytz import re import socket import time import xmlrpclib from email.message import Message from email.utils import formataddr from werkzeug import url_encode from openerp import...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
codeparrot/github-code-clean
# -*- 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...
codeparrot/github-code-clean
# Copyright 2014-2017 Spectra Logic 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. A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license" ...
codeparrot/github-code-clean
# 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 the Li...
codeparrot/github-code-clean
# -*- 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): # Flag to indicate if this migration is too risky # to run online and needs to be coordinated for offline ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- import sys import unittest import os import tempfile import warnings import numpy as np from numpy import rec as records from numpy import testing as npt from tables import * from tables.utils import SizeType, byteorders from tables.tests import common from tables.tests.common import allequal...
codeparrot/github-code-clean
#-------------------------------------------------------------------------- # Software: InVesalius - Software de Reconstrucao 3D de Imagens Medicas # Copyright: (C) 2001 Centro de Pesquisas Renato Archer # Homepage: http://www.softwarepublico.gov.br # Contact: invesalius@cti.gov.br # License: GNU ...
codeparrot/github-code-clean
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Mathieu Blondel <mathieu@mblondel.org> # Olivier Grisel <olivier.grisel@ensta.org> # Andreas Mueller <amueller@ais.uni-bonn.de> # Eric Martin <eric@ericmart.in> # Giorgio Patrini <giorgio.patrini@anu.edu.au> # ...
codeparrot/github-code-clean
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
codeparrot/github-code-clean
"""Dense univariate polynomials with coefficients in Galois fields. """ from __future__ import print_function, division from random import uniform from math import ceil as _ceil, sqrt as _sqrt from sympy.core.compatibility import SYMPY_INTS, xrange from sympy.core.mul import prod from sympy.polys.polyutils import _s...
codeparrot/github-code-clean
#! /usr/bin/env python ############################################################################# ## ## ## inet6.py --- IPv6 support for Scapy ## ## see http://natisbad.org/IPv6/ ...
codeparrot/github-code-clean
"""This is a module to implement the hardware side of the commands to send through the GPIB interface to the Measuremnt hardware devices. It responds to predefined methods and returns correctly calculated values back to the MeasurementDeviceController""" __copyright__ = "Copyright 2015 - 2017, Justin Scholz" __author__...
codeparrot/github-code-clean
# ----------------------------------------------------------------------------- # ply: yacc.py # # Copyright (C) 2001-2011, # David M. Beazley (Dabeaz LLC) # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions a...
codeparrot/github-code-clean
""" :Author: Engelbert Gruber :Contact: grubert@users.sourceforge.net :Revision: $Revision: 3367 $ :Date: $Date: 2005-05-26 02:44:13 +0200 (Thu, 26 May 2005) $ :Copyright: This module has been placed in the public domain. LaTeX2e document tree Writer. """ __docformat__ = 'reStructuredText' # code contributions from ...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals import base64 import binascii import calendar import codecs import contextlib import ctypes import datetime import email.utils import errno import functools import gzip import itertools import io import json import locale import mat...
codeparrot/github-code-clean
#!/usr/bin/python # # libtcod python tutorial # import libtcodpy as libtcod import CONSTANTS import math import textwrap import shelve import json import ConfigParser from helpers import * from spells import * #actual size of the window SCREEN_WIDTH = 160 SCREEN_HEIGHT = 60 #size of the map portion shown on-scr...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # ------------------------------------------------------------ # infoplus ventana con información del Item # ------------------------------------------------------------ from future import standard_library standard_library.install_aliases() import sys PY3 = False if sys.version_info[0]...
codeparrot/github-code-clean
""" Student Views """ import datetime import logging import uuid import json import warnings from collections import defaultdict from urlparse import urljoin, urlsplit, parse_qs, urlunsplit from django.views.generic import TemplateView from pytz import UTC from requests import HTTPError from ipware.ip import get_ip i...
codeparrot/github-code-clean
# coding: utf-8 from __future__ import unicode_literals import os import re import sys from .common import InfoExtractor from .youtube import YoutubeIE from ..compat import ( compat_etree_fromstring, compat_str, compat_urllib_parse_unquote, compat_urlparse, compat_xml_parse_error, ) from ..utils ...
codeparrot/github-code-clean
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
codeparrot/github-code-clean
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
codeparrot/github-code-clean
# pylint: disable=C0302 # 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 # "...
codeparrot/github-code-clean
# Copyright 2018 Big Switch Networks, 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...
codeparrot/github-code-clean
# # 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 # ...
codeparrot/github-code-clean
# 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...
codeparrot/github-code-clean
# -*- coding: UTF-8 -*- # Copyright 2010-2014 Luc Saffre # License: BSD (see file COPYING for details) """Loads all Belgian cities into the database. Supposes that :mod:`few_cities <lino_xl.lib.countries.fixtures.few_cities>` has also been loaded and thus does not load the cities defined there. This list of Belgian ...
codeparrot/github-code-clean
""" Properties are objects that can be assigned as class attributes on Bokeh models, to provide automatic serialization, validation, and documentation. There are many property types defined in the module, for example ``Int`` to represent integral values, ``Seq`` to represent sequences (e.g. lists or tuples, etc.). Pro...
codeparrot/github-code-clean
from __future__ import division import csv import time import numpy as np import scipy as sp import scipy.optimize as opt from matplotlib import pyplot as plt from mpl_toolkits.mplot3d import Axes3D import AuxiliaryDemographics as demog #from pure_cython import cy_fillca class OLG(object): """ This object...
codeparrot/github-code-clean
""" This file is part of RAPD Copyright (C) 2016-2018 Cornell University All rights reserved. RAPD is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, version 3. RAPD is distributed in the hope that it will ...
codeparrot/github-code-clean
# 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...
codeparrot/github-code-clean
import numpy as np import scipy.sparse as sp from scipy import linalg from itertools import product import pytest from sklearn.utils import _IS_32BIT from sklearn.utils._testing import assert_almost_equal from sklearn.utils._testing import assert_allclose from sklearn.utils._testing import assert_array_almost_equal f...
codeparrot/github-code-clean
from __future__ import (absolute_import, division, print_function, unicode_literals) from matplotlib.externals import six from matplotlib.externals.six.moves import reduce, xrange, zip, zip_longest import math import warnings import numpy as np from numpy import ma import matplotlib from mat...
codeparrot/github-code-clean
""" Acceptance tests for studio related to the outline page. """ import json from datetime import datetime, timedelta import itertools from pytz import UTC from bok_choy.promise import EmptyPromise from nose.plugins.attrib import attr from ...pages.studio.settings_advanced import AdvancedSettingsPage from ...pages.stu...
codeparrot/github-code-clean
# Copyright 2012, Nachi Ueno, NTT MCL, 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 # # Unles...
codeparrot/github-code-clean
""" Tests for Discussion API internal interface """ from datetime import datetime, timedelta import itertools from urlparse import parse_qs, urlparse, urlunparse from urllib import urlencode import ddt import httpretty import mock from pytz import UTC from django.core.exceptions import ValidationError from django.htt...
codeparrot/github-code-clean
triangles = [] formatted_triangles = [] def format_triangles(): triangle_count = len(triangles) index = 0 while index < triangle_count: formatted_triangles.append([triangles[index], triangles[index + 3], triangles[index + 6]]) formatted_triangles.append([triangles[index + 1], triangles[index + 4], trian...
codeparrot/github-code-clean
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Test running processes. @var CONCURRENT_PROCESS_TEST_COUNT: The number of concurrent processes to use to stress-test the spawnProcess API. This value is tuned to a number of processes which has been determined to stay below various ...
codeparrot/github-code-clean
''' ========================================================================= Author: Leonardo Citraro Company: Filename: Last modifed: 06.04.2017 by Leonardo Citraro Description: Functional test ========================================================================= ================================...
codeparrot/github-code-clean
# -*- coding: utf8 -*- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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...
codeparrot/github-code-clean
import datetime import decimal import itertools import re import socket import time import uuid import warnings from operator import itemgetter from bson import Binary, DBRef, ObjectId, SON import gridfs import pymongo import six try: import dateutil except ImportError: dateutil = None else: import dateut...
codeparrot/github-code-clean
# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com> # # This file is part of Ansible # # 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 License, or # (at your option) any lat...
codeparrot/github-code-clean
""" Classes for the ticks and x and y axis """ from matplotlib import rcParams import matplotlib.artist as artist from matplotlib.artist import allow_rasterization import matplotlib.cbook as cbook import matplotlib.font_manager as font_manager import matplotlib.lines as mlines import matplotlib.patches as mpatches i...
codeparrot/github-code-clean
# Card lists. Included are the Party set and both expansions. GREENCARDS = { 'Absurd':'ridiculous, senseless, foolish', 'Addictive':'obsessive, consuming, captivating', 'Adorable':'lovable, charming, delightful', 'Aged':'old, ancient, mature', 'American':'U.S. Citizen, Yankee, Apple Pie', 'Ancient':'elderly, old, anti...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from datetime import date, timedelta, datetime from decimal import Decimal from django.ht...
codeparrot/github-code-clean
from __future__ import print_function, division import functools import nose import numpy from scipy import interpolate sdf_bovy14= None #so we can set this up and then use in other tests sdft_bovy14= None #so we can set this up and then use in other tests, trailing # Decorator for expected failure def expected_failur...
codeparrot/github-code-clean
""" Classes linking Parameters to Tkinter. TkParameterized allows flexible graphical representation and manipulation of the parameters of a Parameterized instance or class. ParametersFrame and ParametersFrameWithApply extend TkParameterized, displaying all the Parameters together in a list. Both allow these Parameter...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # ------------------------------------------------------------ # pelisalacarta - XBMC Plugin # http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/ # ------------------------------------------------------------ import os import re import sys import urllib import urllib2 import xbmcgui from co...
codeparrot/github-code-clean
# encoding: utf-8 from __future__ import unicode_literals import os import re import sys from .common import InfoExtractor from .youtube import YoutubeIE from ..compat import ( compat_etree_fromstring, compat_urllib_parse_unquote, compat_urllib_request, compat_urlparse, compat_xml_parse_error, ) ...
codeparrot/github-code-clean
# Copyright 2013 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
codeparrot/github-code-clean
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
codeparrot/github-code-clean
# Author: Nic Wolfe <nic@wolfeden.ca> # URL: http://code.google.com/p/sickbeard/ # # This file is part of Sick Beard. # # Sick Beard 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 Lice...
codeparrot/github-code-clean
#!/usr/bin/env python ''' OWASP ZSC https://www.owasp.org/index.php/OWASP_ZSC_Tool_Project https://github.com/zscproject/OWASP-ZSC http://api.z3r0d4y.com/ https://groups.google.com/d/forum/owasp-zsc [ owasp-zsc[at]googlegroups[dot]com ] ''' import random, binascii, string from core.compatible import version _version = ...
codeparrot/github-code-clean
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
codeparrot/github-code-clean
# Copyright (C) Jean-Paul Calderone # See LICENSE for details. """ Unit tests for :py:obj:`OpenSSL.SSL`. """ from gc import collect, get_referrers from errno import ECONNREFUSED, EINPROGRESS, EWOULDBLOCK, EPIPE, ESHUTDOWN from sys import platform, getfilesystemencoding from socket import SHUT_RDWR, error, socket from...
codeparrot/github-code-clean
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers import pybindgen.settings import warnings class ErrorHandler(pybindgen.settings.ErrorHandler): def handle_error(self, wrapper, exception, traceback_): warnings.warn("exception %r in wrapper %s" % (exception, wrapper)) ...
codeparrot/github-code-clean
#!/usr/bin/env python # encoding: utf-8 # === IMPORTANT ==== # NOTE: In order to support non-ASCII file names, # your system's locale MUST be set to 'utf-8' # CAVEAT: DOESN'T work with proxy, the underlying reason being # the 'requests' package used for http communication doesn't seem # to work ...
codeparrot/github-code-clean
# -*- coding: utf8 -*- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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...
codeparrot/github-code-clean
#!/usr/bin/python # -*- encoding: utf-8; py-indent-offset: 4 -*- # +------------------------------------------------------------------+ # | ____ _ _ __ __ _ __ | # | / ___| |__ ___ ___| | __ | \/ | |/ / | # | | | | '_ \ / _ \/ __| |/ /...
codeparrot/github-code-clean
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program 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 2 # of the License, or (at your option) any later version. # # This program is distrib...
codeparrot/github-code-clean
# # x86sets.py # # Copyright (C) 2009 Gil Dabah, http://ragestorm.net/disops/ # from x86header import * OPT = OperandType IFlag = InstFlag class Instructions: """ Initializes all instruction of the 80x86 CPU (includes AMD64). """ def init_INTEGER(self): Set = lambda *args: self.SetCallback(ISetCl...
codeparrot/github-code-clean
# Author: Nic Wolfe <nic@wolfeden.ca> # URL: http://code.google.com/p/sickbeard/ # # This file is part of SickGear. # # SickGear 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 License,...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- ## ## ## This file is part of Indico. ## Copyright (C) 2002 - 2014 European Organization for Nuclear Research (CERN). ## ## Indico 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; eith...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2013 Radim Rehurek <me@radimrehurek.com> # Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html """ Produce word vectors with deep learning via word2vec's "skip-gram and CBOW models", using either hierarchical softmax or negative samp...
codeparrot/github-code-clean
# Copyright (c) 2015 Clinton Knight. 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 requir...
codeparrot/github-code-clean
# Copyright 2016-2017 Capital One Services, 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 ...
codeparrot/github-code-clean
from __future__ import absolute_import from __future__ import division from __future__ import print_function from contextlib import contextmanager import colorama import atexit import faulthandler import hashlib import inspect import io import json import logging import numpy as np import os import redis import signal...
codeparrot/github-code-clean
import gc import sys import unittest import collections import weakref import operator import contextlib import copy import threading import time import random from test import support from test.support import script_helper # Used in ReferencesTestCase.test_ref_created_during_del() . ref_from_del = None # Used by Fi...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: UTF-8 -*- """ Scaffold Ordering with Weighted Maps. """ import os.path as op import os import sys import logging import numpy as np import networkx as nx from collections import Counter, defaultdict from functools import partial from itertools import combinations, product from mor...
codeparrot/github-code-clean
from .winstructs import * import functools import ctypes generate_IID = IID.from_raw class COMHRESULT(HRESULT): _type_ = HRESULT._type_ def _check_retval_(self): # We CAN NOT try to adapt the self.value and transform it with flags # here, we need to do it with the errcheck ...
codeparrot/github-code-clean
from __future__ import division from sympy import (acos, acosh, asinh, atan, cos, Derivative, diff, dsolve, Eq, erf, exp, Function, I, Integral, LambertW, log, O, pi, Rational, RootOf, S, simplify, sin, sqrt, Symbol, tan, asin, Piecewise, symbols) x, y, z = sym...
codeparrot/github-code-clean
# # Author: Travis Oliphant 2002-2011 with contributions from # SciPy Developers 2004-2011 # from __future__ import division, print_function, absolute_import from scipy._lib.six import string_types, exec_, PY3 from scipy._lib._util import getargspec_no_self as _getargspec import sys import keyword import r...
codeparrot/github-code-clean
""" Spherical Harmonic Coefficients classes """ import os as _os import numpy as _np import matplotlib as _mpl import matplotlib.pyplot as _plt from mpl_toolkits.axes_grid1 import make_axes_locatable as _make_axes_locatable import copy as _copy import gzip as _gzip import shutil as _shutil import warnings as _warni...
codeparrot/github-code-clean
import unittest from test import support from itertools import * from weakref import proxy from decimal import Decimal from fractions import Fraction import sys import operator import random import copy import pickle from functools import reduce maxsize = support.MAX_Py_ssize_t minsize = -maxsize-1 def lzip(*args): ...
codeparrot/github-code-clean
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers import pybindgen.settings import warnings class ErrorHandler(pybindgen.settings.ErrorHandler): def handle_error(self, wrapper, exception, traceback_): warnings.warn("exception %r in wrapper %s" % (exception, wrapper)) ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- ''' Solver framework for the eigenvalue problem associated with the Fokker-Planck operator of (linear or non-linear) integrate-and-fire model neurons subject to white noise input. Work started in January 2014; current version: July 2017 Please cite the publication which has introduced the s...
codeparrot/github-code-clean
#!/usr/bin/python3 # Copyright 2016-2018 Brian Warner # # SPDX-License-Identifier: Apache-2.0 # Facade CLI # # This script enables basic management of Facade without needing to install or # use the web UI. It includes a number of helper functions which can be # imported by other programs. # # add_project(name,descr...
codeparrot/github-code-clean
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers import pybindgen.settings import warnings class ErrorHandler(pybindgen.settings.ErrorHandler): def handle_error(self, wrapper, exception, traceback_): warnings.warn("exception %r in wrapper %s" % (exception, wrapper)) ...
codeparrot/github-code-clean
#!/usr/bin/python # Copyright (c) 2005-2013, Alexander Belchenko # 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,...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Business Applications # Copyright (c) 2011-2014 OpenERP S.A. <http://openerp.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of t...
codeparrot/github-code-clean
from twisted.trial import unittest from twisted.python import reflect from twisted.python.failure import Failure from twisted.python.components import registerAdapter from twisted.internet import defer from foolscap.tokens import ISlicer, Violation, BananaError from foolscap.tokens import BananaFailure, tokenNames, \...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- #------------------------------------------------------------------------------- # Name: chord.py # Purpose: Chord representation and utilities # # Authors: Michael Scott Cuthbert # Christopher Ariza # # Copyright: Copyright © 2009-2014 Michael Scott Cuthbert a...
codeparrot/github-code-clean
""" Mac OS X .app build command for distutils Originally (loosely) based on code from py2exe's build_exe.py by Thomas Heller. """ from __future__ import print_function import imp import sys import os import zipfile import plistlib import shlex import shutil import textwrap import pkg_resources import collections impo...
codeparrot/github-code-clean
#!/usr/bin/env python2 """ This file defines a set of system_info classes for getting information about various resources (libraries, library directories, include directories, etc.) in the system. Currently, the following classes are available: atlas_info atlas_threads_info atlas_blas_info atlas_blas_threads_i...
codeparrot/github-code-clean
#!/usr/bin/env python # Schrodinger modifications to rev 26 from # pymolapbsplugin.svn.sourceforge.net/viewvc/pymolapbsplugin/trunk/src/apbsplugin.py # - FreeMOL handling # - importing of pdb2pqr # - updated URLs # - move all print statements behind "if DEBUG:" statements # TODO: # - Fold in ApbsInterface.py # ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- """ Created on 16 Jul 2014 @author: Kimon Tsitsikas Copyright © 2013-2014 Kimon Tsitsikas, Delmic This file is part of Odemis. Odemis is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Fou...
codeparrot/github-code-clean
# This file is part of OpenDrift. # # OpenDrift 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, version 2 # # OpenDrift is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without ev...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # # Copyright © 2012 - 2013 Michal Čihař <michal@cihar.com> # # This file is part of Weblate <http://weblate.org/> # # This program 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, eithe...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Copyright 2016-2021 The pyXem developers # # This file is part of pyXem. # # pyXem 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 License, or # (at your optio...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Resource object code # # Created by: The Resource Compiler for PyQt5 (Qt v5.15.2) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x24\x23\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\ \x00\x00\x80\x...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright (C) 2014-2022 GEM Foundation # # OpenQuake is free software: you can redistribute it and/or modify it # under the terms of the GNU Affero General Public License as published # by the Free Software Foundation, either version 3 of the Licen...
codeparrot/github-code-clean
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
codeparrot/github-code-clean