text
stringlengths
5.09k
178k
domain
stringclasses
106 values
# 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/. # Common codegen classes. from collections import defaultdict from itertools import groupby import operator import os ...
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
# configobj.py # A config file reader/writer that supports nested sections in config files. # Copyright (C) 2005-2009 Michael Foord, Nicola Larosa # E-mail: fuzzyman AT voidspace DOT org DOT uk # nico AT tekNico DOT net # ConfigObj 4 # http://www.voidspace.org.uk/python/configobj.html # Released subject to th...
codeparrot/github-code-clean
# -*- Python -*- # # Code to implement the repository objects # # This file is part of the "UpLib 1.7.11" release. # Copyright (C) 2003-2011 Palo Alto Research Center, Inc. # # 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 #...
codeparrot/github-code-clean
#!/usr/bin/env python # # basic_tests.py: testing working-copy interactions with ra_local # # Subversion is a tool for revision control. # See http://subversion.tigris.org for more information. # # ==================================================================== # Copyright (c) 2000-2008 CollabNet. All rights ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- """ This is the common settings file, intended to set sane defaults. If you have a piece of configuration that's dependent on a set of feature flags being set, then create a function that returns the calculated value based on the value of FEATURES[...]. Modules that extend this one can change th...
codeparrot/github-code-clean
#Note: Keep name-type-value-numchild-extra order ####################################################################### # # Dumper Implementations # ####################################################################### from __future__ import with_statement def qdump__QAtomicInt(d, item): d.putValue(item.valu...
codeparrot/github-code-clean
# coding=utf-8 # Copyright 2012 Hewlett-Packard Development Company, L.P. # Copyright (c) 2012 NTT DOCOMO, INC. # Copyright 2014 International Business Machines Corporation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance ...
codeparrot/github-code-clean
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # Copyright (c) 2010 Citrix Systems, Inc. # Copyright (c) 2011 Piston Cloud Computing, Inc # Copyright (c) 2012 University Of Minho # (c) Copyright 2013 Hewlett-Pa...
codeparrot/github-code-clean
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2011 X.commerce, a business unit of eBay Inc. # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (t...
codeparrot/github-code-clean
# # Copyright (c) SAS Institute Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
codeparrot/github-code-clean
import functools import re from unittest import mock from django.apps import apps from django.conf import settings from django.contrib.auth.models import AbstractBaseUser from django.core.validators import RegexValidator, validate_slug from django.db import connection, migrations, models from django.db.migrations.auto...
codeparrot/github-code-clean
# Author: Travis Oliphant # 1999 -- 2002 from __future__ import division, print_function, absolute_import import warnings import threading import sys from . import sigtools, lti from ._upfirdn import _UpFIRDn, _output_len from scipy._lib.six import callable from scipy._lib._version import NumpyVersion from scipy imp...
codeparrot/github-code-clean
# Licensed under a 3-clause BSD style license - see PYFITS.rst import ctypes import gc import itertools import math import re import time import warnings from contextlib import suppress import numpy as np from .base import DELAYED, ExtensionHDU, BITPIX2DTYPE, DTYPE2BITPIX from .image import ImageHDU from .table impo...
codeparrot/github-code-clean
# this program corresponds to special.py ### Means test is not done yet # E Means test is giving error (E) # F Means test is failing (F) # EF Means test is giving error and Failing #! Means test is segfaulting # 8 Means test runs forever ### test_besselpoly ### test_mathieu_a ### test_mathieu_even_coef ##...
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
"""Unit tests for the io module.""" # Tests of io are scattered over the test suite: # * test_bufio - tests file buffering # * test_memoryio - tests BytesIO and StringIO # * test_fileio - tests FileIO # * test_file - tests the file interface # * test_io - tests everything else in the io module # * test_univnewlines - ...
codeparrot/github-code-clean
#!/usr/bin/python """ This module contains an OpenSoundControl implementation (in Pure Python), based (somewhat) on the good old 'SimpleOSC' implementation by Daniel Holth & Clinton McChesney. This implementation is intended to still be 'simple' to the user, but much more complete (with OSCServer & OSCClient classes) ...
codeparrot/github-code-clean
#!/bin/env python """ 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_info ...
codeparrot/github-code-clean
""" This module contains a set of functions for vectorized string operations and methods. .. note:: The `chararray` class exists for backwards compatibility with Numarray, it is not recommended for new development. Starting from numpy 1.4, if one needs arrays of strings, it is recommended to use arrays of ...
codeparrot/github-code-clean
#!/usr/bin/env python3 # Copyright (c) 2015-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 block processing.""" import copy import struct import time from test_framework.blocktools import ...
codeparrot/github-code-clean
from __future__ import division from collections import Iterable, defaultdict import copy import os import pickle import itertools from numbers import Integral, Real from xml.etree import ElementTree as ET import sys import numpy as np from openmc import Mesh, Filter, Trigger, Nuclide from openmc.cross import CrossS...
codeparrot/github-code-clean
from pathlib import Path USER_REPOS_PAGE1 = """\ [ { "archive_url": "https://api.github.com/repos/jwodder/advent350/{archive_format}{/ref}", "assignees_url": "https://api.github.com/repos/jwodder/advent350/assignees{/user}", "blobs_url": "https://api.github.com/repos/jwodder/advent350/git/b...
codeparrot/github-code-clean
## This file is part of Invenio. ## Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 CERN. ## ## Invenio 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, ...
codeparrot/github-code-clean
from ChannelSelection import ChannelSelection, BouquetSelector, SilentBouquetSelector from Components.ActionMap import ActionMap, HelpableActionMap from Components.ActionMap import NumberActionMap from Components.Harddisk import harddiskmanager from Components.Input import Input from Components.Label import Label from...
codeparrot/github-code-clean
import os import platform from twisted.internet import defer from . import data from p2pool.util import math, pack, jsonrpc @defer.inlineCallbacks def check_genesis_block(bitcoind, genesis_block_hash): try: yield bitcoind.rpc_getblock(genesis_block_hash) except jsonrpc.Error_for_code(-5): def...
codeparrot/github-code-clean
#!/usr/bin/python import argparse import hashlib import sys import os import subprocess import signal import getpass import simplejson from termcolor import colored import ConfigParser import StringIO import functools import time import random import string from configobj import ConfigObj import tempfile import pwd, g...
codeparrot/github-code-clean
# -*- encoding: utf-8 -*- # # Copyright © 2012 New Dream Network, LLC (DreamHost) # Copyright 2013 IBM Corp. # Copyright © 2013 eNovance <licensing@enovance.com> # Copyright Ericsson AB 2013. All rights reserved # # Authors: Doug Hellmann <doug.hellmann@dreamhost.com> # Angus Salkeld <asalkeld@redhat.com> # ...
codeparrot/github-code-clean
""" Yay! It's NOT IDA!!!1!!1!one! """ import os import re import sys import time import queue import string import hashlib import logging import binascii import itertools import traceback import threading import collections import envi import envi.bits as e_bits import envi.memory as e_mem import envi.common as e...
codeparrot/github-code-clean
#!/usr/bin/env python # 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 a...
codeparrot/github-code-clean
import datetime import warnings import operator import numpy as np from pandas._libs import (lib, index as libindex, tslib as libts, algos as libalgos, join as libjoin, Timestamp, Timedelta, ) from pandas._libs.lib import is_datetime_array from pandas._libs.tslibs im...
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
import unittest import warnings from collections import OrderedDict import numpy as np import numpy.testing as np_test from pgmpy.extern.six.moves import range from pgmpy.factors.discrete import DiscreteFactor from pgmpy.factors.discrete import JointProbabilityDistribution as JPD from pgmpy.factors.discrete import fa...
codeparrot/github-code-clean
# coding: utf-8 """Tests unitofwork operations.""" import datetime import sqlalchemy as sa from sqlalchemy import Boolean from sqlalchemy import Enum from sqlalchemy import event from sqlalchemy import ForeignKey from sqlalchemy import func from sqlalchemy import Integer from sqlalchemy import literal from sqlalchemy...
codeparrot/github-code-clean
import unittest from test import support import errno import io import itertools import socket import select import tempfile import time import traceback import queue import sys import os import array import platform import contextlib from weakref import proxy import signal import math import pickle import struct impo...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- from __future__ import absolute_import from django.conf import settings if __name__ == '__main__': # When running this file in isolation, we need to set up the configuration # before importing 'template'. settings.configure() from datetime import date, datetime, timedelta import t...
codeparrot/github-code-clean
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2019 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
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 -*- import xbmc, xbmcgui, xbmcplugin import urllib2,urllib,cgi, re import HTMLParser import xbmcaddon import json import traceback import os import sys import cookielib from BeautifulSoup import BeautifulStoneSoup, BeautifulSoup, BeautifulSOAP, Tag,NavigableString try: from lxmlERRRORRRR import et...
codeparrot/github-code-clean
#!/usr/bin/env python # # Copyright 2009 Facebook # # 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...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2009-today OpenERP SA (<http://www.openerp.com>) # # This program is free software: you can redistribute it and/or modify # it under the terms o...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- """ Sahana Eden Person Registry Model @copyright: 2009-2012 (c) Sahana Software Foundation @license: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Softwa...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- """ S3 RESTful API @see: U{B{I{S3XRC}} <http://eden.sahanafoundation.org/wiki/S3XRC>} @requires: U{B{I{gluon}} <http://web2py.com>} @requires: U{B{I{lxml}} <http://codespeak.net/lxml>} @author: Dominic König <dominic[at]aidiq.com> @copyright: 2009-2011 (c) Sahana Sof...
codeparrot/github-code-clean
from __future__ import absolute_import, division, print_function from bisect import bisect from collections import Iterable, MutableMapping from collections import Iterator from functools import partial, wraps import inspect from itertools import product from numbers import Number import operator from operator import ...
codeparrot/github-code-clean
########################################################################## # # MRC FGU Computational Genomics Group # # $Id$ # # Copyright (C) 2009 Andreas Heger # # 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 ...
codeparrot/github-code-clean
#!/usr/bin/env python # flake8: noqa import warnings import operator from itertools import product from distutils.version import LooseVersion import nose from nose.tools import assert_raises from numpy.random import randn, rand, randint import numpy as np from numpy.testing import assert_allclose from numpy.testing...
codeparrot/github-code-clean
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.web._newclient}. """ __metaclass__ = type from zope.interface import implements from zope.interface.verify import verifyObject from twisted.python import log from twisted.python.failure import Failure from twisted.intern...
codeparrot/github-code-clean
# This file is part of lyx2lyx # -*- coding: utf-8 -*- # Copyright (C) 2002 Dekel Tsur <dekel@lyx.org> # Copyright (C) 2002-2004 José Matos <jamatos@lyx.org> # Copyright (C) 2004-2005 Georg Baum <Georg.Baum@post.rwth-aachen.de> # # This program is free software; you can redistribute it and/or # modify it under the term...
codeparrot/github-code-clean
# This script generates the Makefiles for building PyQt. It has no dependency # on the sipconfig module. # # Copyright (c) 2013 Riverbank Computing Limited <info@riverbankcomputing.com> # # This file is part of PyQt. # # This file may be used under the terms of the GNU General Public # License versions 2.0 or 3.0 as...
codeparrot/github-code-clean
import PmwColor Color = PmwColor del PmwColor import PmwBlt Blt = PmwBlt del PmwBlt ### Loader functions: _VERSION = '1.3.3' def setversion(version): if version != _VERSION: raise ValueError, 'Dynamic versioning not available' def setalphaversions(*alpha_versions): if alpha_ver...
codeparrot/github-code-clean
# # Copyright (C) 2011 EADS France, Fabrice Desclaux <fabrice.desclaux@eads.net> # # 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 late...
codeparrot/github-code-clean
from __future__ import absolute_import from __future__ import print_function # #START_LICENSE########################################################### # # # This file is part of the Environment for Tree Exploration program # (ETE). http://etetoolkit.org # # ETE is free software: you can redistribute it and/or modify...
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
#! /usr/bin/env python2.3 # -*- coding: Latin-1 -*- """Generate Python documentation in HTML or text for interactive use. In the Python interpreter, do "from pydoc import help" to provide online help. Calling help(thing) on a Python object documents the object. Or, at the shell command line outside of Python: Run "...
codeparrot/github-code-clean
""" The dependency resolving module. This gives direct access to the solver. You should use the resolve() function in resolve.py instead, which will use cached data where possible to provide you with a faster resolve. See SOLVER.md for an in-depth description of how this module works. """ from rez.config import confi...
codeparrot/github-code-clean
#!/usr/bin/env python # ________________________________________________________________________ # # Copyright (C) 2014 Andrew Fullford # # 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 # #...
codeparrot/github-code-clean
import datetime import hashlib import itertools import logging import os import time from collections import defaultdict from dataclasses import asdict, dataclass, field from operator import itemgetter from typing import ( IO, AbstractSet, Any, Callable, Collection, Dict, Iterable, List,...
codeparrot/github-code-clean
# 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 ...
codeparrot/github-code-clean
# Copyright 2010 Jacob Kaplan-Moss # Copyright 2011 OpenStack Foundation # Copyright 2013 IBM Corp. # 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 # # ...
codeparrot/github-code-clean
#!/usr/bin/env python # Copyright (C) 2010-2011 Hideo Hattori # Copyright (C) 2011-2013 Hideo Hattori, Steven Myint # Copyright (C) 2013-2016 Hideo Hattori, Steven Myint, Bill Wendling # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files...
codeparrot/github-code-clean
from time import localtime, time, strftime, mktime from enigma import eServiceReference, eTimer, eServiceCenter, ePoint from Screen import Screen from Screens.HelpMenu import HelpableScreen from Components.About import about from Components.ActionMap import HelpableActionMap, HelpableNumberActionMap from Components.B...
codeparrot/github-code-clean
"""Module containing non-deprecated functions borrowed from Numeric. """ from __future__ import division, absolute_import, print_function import types from . import multiarray as mu from . import umath as um from . import numerictypes as nt from .numeric import asarray, array, asanyarray, concatenate from . import _...
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
# -*- encoding: utf-8 -*- # # 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...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- # r""" A JSON data encoder and decoder. This Python module implements the JSON (http://json.org/) data encoding format; a subset of ECMAScript (aka JavaScript) for encoding primitive data types (numbers, strings, booleans, lists, and associative arrays) in a language-n...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- { '* Required Fields': 'الحقول المطلوبة *', '# selected': '# selected', '%(GRN)s Number': 'رقم مستند الادخال %(GRN)s', '%(GRN)s Status': 'حالة %(GRN)s', '%(PO)s Number': 'رقم طلبيه الشراء %(PO)s', '%(REQ)s Number': 'رقم الطلبيات %(REQ)s', '1 Assessment': 'التقييم1', '2 different options...
codeparrot/github-code-clean
# pylint: disable=E1101 from pandas.compat import u, range, map, openpyxl_compat, BytesIO, iteritems from datetime import datetime, date, time import sys import os from distutils.version import LooseVersion import warnings import operator import functools import nose from numpy import nan import numpy as np import ...
codeparrot/github-code-clean
# @author zfedoran / http://github.com/zfedoran import os import sys import math import operator import re import json import types import shutil # ##################################################### # Globals # ##################################################### option_triangulate = True option_textures = True o...
codeparrot/github-code-clean
""" The Risch Algorithm for transcendental function integration. The core algorithms for the Risch algorithm are here. The subproblem algorithms are in the rde.py and prde.py files for the Risch Differential Equation solver and the parametric problems solvers, respectively. All important information concerning the d...
codeparrot/github-code-clean
""" Package resource API -------------------- A resource is a logical file contained within a package, or a logical subdirectory thereof. The package resource API expects resource names to have their path parts separated with ``/``, *not* whatever the local path separator is. Do not use os.path operations to manipul...
codeparrot/github-code-clean
# # __COPYRIGHT__ # # 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, merge, publish, # distribute, sublicen...
codeparrot/github-code-clean
#!/usr/bin/env python __doc__ = '''Blood Bowl Web manager data model.''' import ConfigParser import datetime import sys import types # Read in the nuffle configuration so we can determine # where our third party python libraries have been # installed. cfg = ConfigParser.ConfigParser() cfg.read('nuffle.cfg...
codeparrot/github-code-clean
import bpy d = bpy.context.active_object.data.archipack_kitchen[0] bpy.ops.archipack.material(category='kitchen', material='DEFAULT') d.base_height = 0.07999999821186066 d.base_sink = 0.05000000074505806 d.baseboard = True d.cabinet_num = 17 d.cabinets.clear() item_sub_1 = d.cabinets.add() item_sub_1.name = '' item_su...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- ''' /************************************************************************************************************************** SemiAutomaticClassificationPlugin The Semi-Automatic Classification Plugin for QGIS allows for the supervised classification of remote sensing images, provid...
codeparrot/github-code-clean
#!/usr/bin/env python2 # -*- coding: utf-8 -*- ################################################## # GNU Radio Python Flow Graph # Title: TFG # Author: David Candal # Description: SDR ZigBee # Generated: Mon Oct 17 00:07:11 2016 ################################################## if __name__ == '__main__': import ct...
codeparrot/github-code-clean
# This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it w...
codeparrot/github-code-clean
# Copyright (c) 2018 PaddlePaddle 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 app...
codeparrot/github-code-clean
import re import collections from enum import Enum from ydk._core._dm_meta_info import _MetaInfoClassMember, _MetaInfoClass, _MetaInfoEnum from ydk.types import Empty, YList, YLeafList, DELETE, Decimal64, FixedBitsDict from ydk._core._dm_meta_info import ATTRIBUTE, REFERENCE_CLASS, REFERENCE_LIST, REFERENCE_LEAFLI...
codeparrot/github-code-clean
import datetime import os from typing import Any, Dict, List, Mapping, Optional, Sequence, Tuple, Union from unittest import mock import orjson from django.db import connection from django.http import HttpResponse from django.test import override_settings from django.utils.timezone import now as timezone_now from sqla...
codeparrot/github-code-clean
# # basic.py -- classes for basic shapes drawn on ginga canvases. # # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # import math import numpy as np from ginga.canvas.CanvasObject import (CanvasObjectBase, _bool, _color, ...
codeparrot/github-code-clean
# orm/query.py # Copyright (C) 2005-2014 the SQLAlchemy authors and contributors <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """The Query class and support. Defines the :class:`.Query` class, the central construct...
codeparrot/github-code-clean
"""Documentation can be found at http://www.cs.toronto.edu/~tijmen/gnumpy.html""" """ Copyright (c) 2010-2012 Tijmen Tieleman 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,...
codeparrot/github-code-clean
################################################################################ # This file provides a class representation of a KNOSSOS-dataset for reading # and writing raw and overlay data. # # (C) Copyright 2017 # Max-Planck-Gesellschaft zur Foerderung der Wissenschaften e.V. # # skeleton_utils.py is free sof...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # # Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
codeparrot/github-code-clean
""" Unit tests for optimization routines from optimize.py Authors: Ed Schofield, Nov 2005 Andrew Straw, April 2008 To run it in its simplest form:: nosetests test_optimize.py """ import itertools import platform import numpy as np from numpy.testing import (assert_allclose, assert_equal, ...
codeparrot/github-code-clean
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2012, Stephen Fromm <sfromm@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 Lice...
codeparrot/github-code-clean
#!/usr/bin/env python """Universal feed parser Handles RSS 0.9x, RSS 1.0, RSS 2.0, CDF, Atom 0.3, and Atom 1.0 feeds Visit http://feedparser.org/ for the latest version Visit http://feedparser.org/docs/ for the latest documentation Required: Python 2.1 or later Recommended: Python 2.3 or later Recommended: CJKCodecs...
codeparrot/github-code-clean
from Screen import Screen from Components.Button import Button from Components.ActionMap import HelpableActionMap, ActionMap, NumberActionMap from Components.ChoiceList import ChoiceList, ChoiceEntryComponent from Components.MenuList import MenuList from Components.MovieList import MovieList, resetMoviePlayState, AUDIO...
codeparrot/github-code-clean
# Copyright(C) 2011,2012,2013,2014 by Abe developers. # DataStore.py: back end database access for Abe. # This program 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 # License...
codeparrot/github-code-clean
""" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Copyright (C) 2015 National Institutes of Health This library is free software; you can redistribute it and/or modify it under the ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "...
codeparrot/github-code-clean
# Copyright (C) 2012,2013 Nippon Telegraph and Telephone Corporation. # Copyright (C) 2012 Isaku Yamahata <yamahata at valinux co jp> # # 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 # # ht...
codeparrot/github-code-clean
""" Command line interface programs for the GA4GH reference implementation. TODO: document how to use these for development and simple deployment. """ from __future__ import division from __future__ import print_function from __future__ import unicode_literals import argparse import glob import logging import operato...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- import json import os import time from urllib.parse import parse_qs from collections import OrderedDict from datetime import datetime, timedelta from unittest import mock from django.conf import settings from django.core import mail from django.core.cache import cache from django.core.files im...
codeparrot/github-code-clean
# Virtual memory analysis scripts. # Developed 2012-2014 by Peter Hornyack, pjh@cs.washington.edu # Copyright (c) 2012-2014 Peter Hornyack and University of Washington from trace.vm_regex import * from util.pjh_utils import * from analyze.process_group_class import * from trace.vm_common import * import itertools impo...
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
# 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
# -*- coding: utf-8 -*- # Resource object code # # Created: Wed Mar 20 11:18:27 2013 # by: The Resource Compiler for PyQt (Qt v4.8.4) # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore qt_resource_data = "\ \x00\x00\x05\x1c\ \xff\ \xff\xff\xff\x00\x00\x00\x05\x00\x00\x00\x10\x00\x...
codeparrot/github-code-clean
############################################################################ ## ## Copyright (C) 2006-2007 University of Utah. All rights reserved. ## ## This file is part of VisTrails. ## ## This file may be used under the terms of the GNU General Public ## License version 2.0 as published by the Free Software Foundat...
codeparrot/github-code-clean
#!/usr/bin/env python # # Copyright 2008-2009 Jose Fonseca # # This program is free software: you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # ...
codeparrot/github-code-clean