text
stringlengths
5.09k
178k
domain
stringclasses
106 values
# ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2013, Numenta, Inc. Unless you have an agreement # with Numenta, Inc., for a separate license for this software code, the # following terms and conditions apply: # # This progra...
codeparrot/github-code-clean
# Copyright (c) 2014-2016 Ryan Huber <rhuber@gmail.com> # Copyright (c) 2015-2018 Tollef Fog Heen <tfheen@err.no> # Copyright (c) 2015-2020 Trygve Aaberge <trygveaa@gmail.com> # Released under the MIT license. from __future__ import print_function, unicode_literals from collections import OrderedDict, namedtuple from...
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
""" .. autoclass:: CatalogueConstructor :members: """ import os import json from collections import OrderedDict import time import pickle import itertools import datetime import shutil from pprint import pprint import numpy as np import scipy.signal import scipy.interpolate import sklearn import sklearn.metric...
codeparrot/github-code-clean
""" This file demonstrates writing tests using the unittest module. These will pass when you run "manage.py test". Replace this with more appropriate tests for your application. """ from django.test import TestCase from django.db.models import F from decimal import Decimal import datetime class SimpleTest(TestCase):...
codeparrot/github-code-clean
stations = { 'acheng': 'ACB', 'aershan': 'ART', 'aershanbei': 'ARX', 'aihe': 'AHP', 'aijiacun': 'AJJ', 'ajin': 'AJD', 'akesu': 'ASR', 'aketao': 'AER', 'alashankou': 'AKR', 'alihe': 'AHX', 'alongshan': 'ASX', 'amuer': 'JTX', 'ananzhuang': 'AZM', 'anda': 'ADX', ...
codeparrot/github-code-clean
# Copyright (c), Michael DeHaan <michael.dehaan@gmail.com>, 2012-2013 # Copyright (c), Toshio Kuratomi <tkuratomi@ansible.com> 2016 # Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) from __future__ import absolute_import, division, print_function SIZE_RANGES = ...
codeparrot/github-code-clean
#!/usr/bin/env python3 import sys import pandas as pd from sklearn import decomposition from sklearn import metrics from sklearn.externals import joblib import matplotlib.pyplot as plt import tensorflow as tf import numpy as np import math from random import randint # HUPL from HUPL.learner import preprocess_featur...
codeparrot/github-code-clean
#!/usr/bin/env python3 # Copyright (C) 2012-2015 ASTRON (Netherlands Institute for Radio Astronomy) # P.O. Box 2, 7990 AA Dwingeloo, The Netherlands # # This file is part of the LOFAR software suite. # The LOFAR software suite is free software: you can redistribute it and/or # modify it under the terms of the GNU G...
codeparrot/github-code-clean
""" 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 the feature configuration ...
codeparrot/github-code-clean
# -*- coding: 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 in writing, software ...
codeparrot/github-code-clean
# # Copyright 2011 Red Hat, 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...
codeparrot/github-code-clean
#!/usr/local/bin/python2.6 ###AltAnalyze #Copyright 2005-2008 J. David Gladstone Institutes, San Francisco California #Author Nathan Salomonis - nsalomonis@gmail.com #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to...
codeparrot/github-code-clean
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------------------------------...
codeparrot/github-code-clean
from boxbranding import getBoxType, getMachineBrand, getMachineName from os import path as os_path, remove, unlink, rename, chmod, access, X_OK from shutil import move import time from enigma import eTimer from Screens.Screen import Screen from Screens.MessageBox import MessageBox from Screens.Standby import TryQuitM...
codeparrot/github-code-clean
from __future__ import absolute_import, division, print_function import io import itertools import math import uuid import warnings from collections import defaultdict from distutils.version import LooseVersion from functools import wraps, partial from operator import getitem from random import Random from toolz impo...
codeparrot/github-code-clean
# Copyright 2017 Inspur 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
codeparrot/github-code-clean
""" Objects for dealing with Hermite_e series. This module provides a number of objects (mostly functions) useful for dealing with Hermite_e series, including a `HermiteE` class that encapsulates the usual arithmetic operations. (General information on how this module represents and works with such polynomials is in ...
codeparrot/github-code-clean
import builtins import collections import datetime import functools import importlib import inspect import io import linecache import os from os.path import normcase import _pickle import pickle import re import shutil import sys import types import textwrap import unicodedata import unittest import unittest.mock impor...
codeparrot/github-code-clean
# This file is part of BurnMan - a thermoelastic and thermodynamic toolkit for the Earth and Planetary Sciences # Copyright (C) 2012 - 2017 by the BurnMan team, released under the GNU # GPL v2 or later. """ HP_2011 (ds-62) Minerals from Holland and Powell 2011 and references therein Update to dataset version 6.2 The ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- ## ## This file is part of Invenio. ## Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 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; eit...
codeparrot/github-code-clean
#### PATTERN | GRAPH ############################################################################### # Copyright (c) 2010 University of Antwerp, Belgium # Author: Tom De Smedt <tom@organisms.be> # License: BSD (see LICENSE.txt for details). # http://www.clips.ua.ac.be/pages/pattern ####################################...
codeparrot/github-code-clean
#!/usr/bin/env python # pylint: disable=missing-docstring # flake8: noqa: T001 # ___ ___ _ _ ___ ___ _ _____ ___ ___ # / __| __| \| | __| _ \ /_\_ _| __| \ # | (_ | _|| .` | _|| / / _ \| | | _|| |) | # \___|___|_|\_|___|_|_\/_/_\_\_|_|___|___/_ _____ # | \ / _ \ | \| |/ _ \_ _| | __| \_ ...
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...
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
# Copyright 2014 IBM Corp. # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- if __name__ == '__main__': import sys import os pkg_dir = os.path.split(os.path.abspath(__file__))[0] parent_dir, pkg_name = os.path.split(pkg_dir) is_pygame_pkg = (pkg_name == 'tests' and os.path.split(parent_dir)[1] == 'pygame') if not is_pygame_pk...
codeparrot/github-code-clean
# test-case-name: twisted.names.test.test_dns # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for twisted.names.dns. """ from __future__ import division, absolute_import from io import BytesIO import struct from zope.interface.verify import verifyClass from twisted.python.failure...
codeparrot/github-code-clean
# flake8: noqa SNOOZED_ISSUE_COMMENT = """\ { "action": "created", "issue": { "url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/2", "labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/2/labels{/name}", "comments_url": "https://api.github.com/repos/baxtert...
codeparrot/github-code-clean
"""Generated message classes for deploymentmanager version alpha. The Deployment Manager API allows users to declaratively configure, deploy and run complex solutions on the Google Cloud Platform. """ # NOTE: This file is autogenerated and should not be edited by hand. from apitools.base.protorpclite import messages ...
codeparrot/github-code-clean
"""library to read rotation coil data and create excitation data file.""" import os as _os import numpy as _np from siriuspy import envars as _envars from siriuspy import util as _util from siriuspy.magnet import util as _mutil from siriuspy.ramp import util as _rutil from matplotlib import gridspec as _gridspec cl...
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
from __future__ import print_function from __future__ import absolute_import import os from boxbranding import getBoxType, getBrandOEM, getMachineBrand from time import localtime, mktime from datetime import datetime import xml.etree.cElementTree from os import path, access, F_OK import six from enigma import eDVBSate...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2009 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
# Documentation for Zulip's authentication backends is split across a few places: # # * https://zulip.readthedocs.io/en/latest/production/authentication-methods.html and # zproject/prod_settings_template.py have user-level configuration documentation. # * https://zulip.readthedocs.io/en/latest/development/authenticat...
codeparrot/github-code-clean
# # Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. # """ This file contains implementation of transforming user-exposed VNC configuration model/schema to a representation needed by VNC Control Plane (BGP-based) """ import gevent # Import kazoo.client before monkey patching from cfgm_common.zkclient im...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Bottle is a fast and simple micro-framework for small web applications. It offers request dispatching (Routes) with url parameter support, templates, a built-in HTTP Server and adapters for many third party WSGI/HTTP-server and template engines - all in a single file an...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Copyright (c) 2004-2014 Alterra, Wageningen-UR # Allard de Wit (allard.dewit@wur.nl), April 2014 from __future__ import print_function import datetime from copy import deepcopy import numpy as np from ..pydispatch import dispatcher from ..traitlets import Float, Int, Instance, Enum, Unicode,...
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
######### # ps_drone.py # (w)+(c) J. Philipp de Graaff, www.playsheep.de, drone@playsheep.de, 2012-2015 # Project homepage: www.playsheep.de/drone and https://sourceforge.net/projects/ps-drone/ # Dependencies: a POSIX OS, openCV2 for video-support. # Base-program of the PS-Drone API: "An open and enhanced API for unive...
codeparrot/github-code-clean
"""Simple Python lib for the ISY home automation netapp This is a Python interface to the ISY rest interface providomg simple commands to query and control registared Nodes and Scenes and well as a method of setting or querying vars """ __author__ = 'Peter Shipley <peter.shipley@gmail.com>' __copyright__ = "Copyri...
codeparrot/github-code-clean
# Copyright 2007 Google Inc. # Licensed to PSF under a Contributor Agreement. """A fast, lightweight IPv4/IPv6 manipulation library in Python. This library is used to create/poke/manipulate IPv4 and IPv6 addresses and networks. """ __version__ = '1.0' import functools IPV4LENGTH = 32 IPV6LENGTH = 128 class Add...
codeparrot/github-code-clean
# 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
#encoding: utf-8 from __future__ import with_statement import copy from datetime import datetime, timedelta import pytest from whoosh import analysis, fields, index, qparser, query, searching, scoring from whoosh.codec.whoosh3 import W3Codec from whoosh.compat import b, u, text_type from whoosh.compat import xrange,...
codeparrot/github-code-clean
# This file is part of lyx2lyx # -*- coding: utf-8 -*- # Copyright (C) 2006 José Matos <jamatos@lyx.org> # Copyright (C) 2004-2006 Georg Baum <Georg.Baum@post.rwth-aachen.de> # # 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
# -*- coding: utf-8 -*- # # Copyright (C) 2007-2009 Edgewall Software # Copyright (C) 2007 Matt Good <trac@matt-good.net> # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://trac.ed...
codeparrot/github-code-clean
""" Create SQL statements for QuerySets. The code in here encapsulates all of the SQL construction so that QuerySets themselves do not have to (and could be backed by things other than SQL databases). The abstraction barrier only works one way: this module has to know all about the internals of models in order to get ...
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
# unit tests for ansible ohai fact collector # -*- coding: utf-8 -*- # # 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 later version. # # An...
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. # -----------------------------------------------------...
codeparrot/github-code-clean
#!/usr/bin/env python2 # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai from __future__ import division __license__ = 'GPL v3' __copyright__ = '2010-2012, Timothy Legge <timlegge@gmail.com>, Kovid Goyal <kovid@kovidgoyal.net> and David Forrester <davidfor@internode.on.net>' __docformat__ = 'restructuredtext en' '...
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
# Copyright 2012 IBM Corp. # Copyright 2013 Red Hat, 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 r...
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
#Copyright 2008 Orbitz WorldWide # #Licensed under the Apache License, Version 2.0 (the "License"); #you may not use this file except in compliance with the License. #You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # #Unless required by applicable law or agreed to in writing, so...
codeparrot/github-code-clean
# coding: utf-8 # # Copyright 2015 The Oppia 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 requi...
codeparrot/github-code-clean
import pickle import sys import warnings from copy import deepcopy from textwrap import dedent import numpy as np import pandas as pd import pytest import xarray as xr from xarray import DataArray, Dataset, IndexVariable, Variable, align, broadcast from xarray.coding.times import CFDatetimeCoder from xarray.convert i...
codeparrot/github-code-clean
""" fitpack --- curve and surface fitting with splines fitpack is based on a collection of Fortran routines DIERCKX by P. Dierckx (see http://www.netlib.org/dierckx/) transformed to double routines by Pearu Peterson. """ # Created by Pearu Peterson, June,August 2003 from __future__ import division, print_function, abs...
codeparrot/github-code-clean
############################################################################### ## ## Copyright (C) 2006-2011, University of Utah. ## All rights reserved. ## Contact: contact@vistrails.org ## ## This file is part of VisTrails. ## ## "Redistribution and use in source and binary forms, with or without ## modification, ...
codeparrot/github-code-clean
########################################################################## # # Copyright (c) 2013, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistribu...
codeparrot/github-code-clean
#!/usr/local/bin/python #CHIPSEC: Platform Security Assessment Framework #Copyright (c) 2010-2016, Intel Corporation # #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; Version 2. # #This program is...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- """ ########## # Fields # ########## Each Field class does some sort of validation. Each Field has a clean() method, which either raises django.forms.ValidationError or returns the "clean" data -- usually a Unicode object, but, in some rare cases, a list. Each Field's __init__() takes at least...
codeparrot/github-code-clean
import unittest from test import script_helper from test import support import subprocess import sys import signal import io import locale import os import errno import tempfile import time import re import sysconfig import warnings import select import shutil import gc import textwrap try: import resource except ...
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
## This file is part of Invenio. ## Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 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
# encoding: utf-8 # module __builtin__ # from (built-in) # by generator 1.138 from __future__ import print_function """ Built-in functions, exceptions, and other objects. Noteworthy: None is the `nil' object; Ellipsis represents `...' in slices. """ # imports from exceptions import (ArithmeticError, AssertionError, A...
codeparrot/github-code-clean
# # libtcod 1.5.2 python wrapper # Copyright (c) 2008,2009,2010 Jice & Mingos # 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...
codeparrot/github-code-clean
from __future__ import print_function from __future__ import division from builtins import str from builtins import range from past.utils import old_div import proteus from proteus import FemTools from proteus import LinearAlgebraTools as LAT from proteus.mprans.cSW2DCV import * import numpy as np from proteus.Transpor...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- ## ## This file is part of Invenio. ## Copyright (C) 2011, 2012 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, or (at your opt...
codeparrot/github-code-clean
# # Wireshark ASTERIX dissector tests # By Atli Guðmundsson <atli@tern.is> # # SPDX-License-Identifier: GPL-2.0-or-later # '''ASTERIX dissector tests''' # Standard modules import inspect # Wireshark modules import fixtures import subprocesstest from suite_dissectors.dissectorstest import * @fixtures.mark_usefixture...
codeparrot/github-code-clean
# Author: Nic Wolfe <nic@wolfeden.ca> # URL: http://code.google.com/p/sickbeard/ # # This file is part of SickRage. # # SickRage 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
#!/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
# -*- 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 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
# coding=utf-8 from pyopy.base import MatlabSequence from pyopy.hctsa.hctsa_bindings_gen import HCTSASuper, HCTSAOperation class CO_AddNoise(HCTSASuper): """ Matlab doc: ---------------------------------------- % % Adds Gaussian-distributed noise to the time series with increasing standard % d...
codeparrot/github-code-clean
""" Mappings from Adobe glyph names to Unicode characters. In some CMap tables, Adobe glyph names are used for specifying Unicode characters instead of using decimal/hex character code. The following data was taken by $ wget https://partners.adobe.com/public/developer/en/opentype/glyphlist.txt $ python tools/c...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- ## # This file is part of Testerman, a test automation system. # Copyright (c) 2009-2012 QTesterman contributors # # 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; ...
codeparrot/github-code-clean
# Copyright 2012 VMware, 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 a...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # # Copyright (C) 2003-2009 Edgewall Software # Copyright (C) 2003-2005 Jonas Borgström <jonas@edgewall.com> # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at htt...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Bottle is a fast and simple micro-framework for small web applications. It offers request dispatching (Routes) with URL parameter support, templates, a built-in HTTP Server and adapters for many third party WSGI/HTTP-server and template engines - all in a single file an...
codeparrot/github-code-clean
""" Function Reference ------------------ These functions cut hierarchical clusterings into flat clusterings or find the roots of the forest formed by a cut by providing the flat cluster ids of each observation. .. autosummary:: :toctree: generated/ fcluster fclusterdata leaders These are routines for a...
codeparrot/github-code-clean
# #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 it # under the terms of the GNU General Public License as published by # t...
codeparrot/github-code-clean
# # turtle.py: a Tkinter based turtle graphics module for Python # Version 1.1b - 4. 5. 2009 # # Copyright (C) 2006 - 2010 Gregor Lingl # email: glingl@aon.at # # This software is provided 'as-is', without any express or implied # warranty. In no event will the authors be held liable for any damages # arising from th...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- import optparse import sys import os import base64 import re import random sys.path.insert(0, "bin/python") import samba samba.ensure_external_module("testtools", "testtools") samba.ensure_external_module("subunit", "subunit/python") import samba.getopt as options # Som...
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 -*- """Tests for the Wikidata parts of the page module.""" # # (C) Pywikibot team, 2008-2020 # # Distributed under the terms of the MIT license. # from __future__ import absolute_import, division, unicode_literals import copy import json from decimal import Decimal import pywikibot from pywikibo...
codeparrot/github-code-clean
"""Implementations of resource abstract base class managers.""" # pylint: disable=invalid-name # Method names comply with OSID specification. # pylint: disable=no-init # Abstract classes do not define __init__. # pylint: disable=too-few-public-methods # Some interfaces are specified as 'markers' and include...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Bottle is a fast and simple micro-framework for small web applications. It offers request dispatching (Routes) with URL parameter support, templates, a built-in HTTP Server and adapters for many third party WSGI/HTTP-server and template engines - all in a single file an...
codeparrot/github-code-clean
# MIT License # # Copyright (c) 2017 Alex Ignatov # # 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,...
codeparrot/github-code-clean
from __future__ import division from collections import Iterable, OrderedDict from numbers import Integral import os import sys import copy import abc import numpy as np import openmc import openmc.checkvalue as cv from openmc.mgxs import EnergyGroups if sys.version_info[0] >= 3: basestring = str # Supported...
codeparrot/github-code-clean
# sql/expression.py # Copyright (C) 2005-2013 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 """Defines the base components of SQL expression trees. All components are derived ...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- # $Id: vboxshell.py 56000 2015-05-21 11:42:45Z vboxsync $ """ VirtualBox Python Shell. This program is a simple interactive shell for VirtualBox. You can query information and issue commands from a simple command line. It also provides you with examples on how to use Virt...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- ''' Created on 15 Oct 2012 @author: Éric Piel Copyright © 2012-2015 Éric Piel, 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 Foundation. Odem...
codeparrot/github-code-clean
########################### BEGIN GPL LICENSE BLOCK ########################### # # THE VIDEO EDITOR'S RENDER SCRIPT FOR BLENDER (2.79 and Higher) # Copyright (C) 2017 Mike Meyers # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public Lic...
codeparrot/github-code-clean
from django.core.context_processors import csrf from django.core.exceptions import PermissionDenied from django.contrib.auth.decorators import login_required from django.contrib.auth.models import Group from django.contrib import messages from django.shortcuts import render, render_to_response from django.template im...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2009 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
import unittest import seccure def nist_test_vectors(): # These test vectors have been derived from # http://point-at-infinity.org/ecc/nisttv return { 'secp192r1/nistp192': [ ['#', '#<%E/4#.v,7<^TdueIy@]IU5S%7,8?', 'D:/]|&5!rtYmWN,>BDR$OQNC&}Bxl'], ...
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
# # 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
# Copyright 2012-2016 The Meson development team # 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