text
stringlengths
5.09k
178k
domain
stringclasses
106 values
# Copyright (c) 2016 IBM Corporation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
codeparrot/github-code-clean
# coding=UTF-8 """Provides abstraction of the FCO REST API endpoints.""" import resttypes.enums as enums import resttypes.cobjects as cobjects from resttypes import (to_str, rat_check) from resttypes import is_acceptable as c_is_acceptable from resttypes import construct_data as c_construct_data from typed import Typ...
codeparrot/github-code-clean
# Copyright (c) 2015 Ansible, Inc. # All Rights Reserved. # Python import getpass import json import os import re import time import subprocess import tempfile import urlparse # Django from django.conf import settings from django.contrib.auth.models import User from django.core.urlresolvers import reverse from django...
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
""" Comparative Annotation Toolkit. """ import string import random import datetime import collections import itertools import logging import os import shutil import json from collections import OrderedDict from frozendict import frozendict from configobj import ConfigObj from subprocess import check_call import luigi...
codeparrot/github-code-clean
# Copyright 2012 Nebula, 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 agree...
codeparrot/github-code-clean
# 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 (the "License"); you may # not use this file...
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
#!/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
# 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
""" Provide the groupby split-apply-combine paradigm. Define the GroupBy class providing the base-class of operations. The SeriesGroupBy and DataFrameGroupBy sub-class (defined in pandas.core.groupby.generic) expose these user-facing objects to provide specific functionality. """ from __future__ import annotations fr...
codeparrot/github-code-clean
"""Test date/time type. See http://www.zope.org/Members/fdrake/DateTimeWiki/TestCases """ import sys import pickle import cPickle import unittest from test import test_support from datetime import MINYEAR, MAXYEAR from datetime import timedelta from datetime import tzinfo from datetime import time from datetime imp...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from datetime import timedelta from odoo.addons.stock.tests.common import TestStockCommon from odoo.exceptions import UserError from odoo.tests import Form from odoo.tools import float_is_zero, float_compare from odoo...
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
import uuid import json import urllib import os import base64 import time import string import random import oauth2 as oauth from Crypto.PublicKey import RSA from django.conf import settings from django.contrib.auth.models import User from django.core.urlresolvers import reverse from django.test import TestCase from ...
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
from collections import OrderedDict import copy from numbers import Integral import os import warnings import h5py import numpy as np import openmc from openmc.data import REACTION_MT, REACTION_NAME, FISSION_MTS import openmc.checkvalue as cv from ..tallies import ESTIMATOR_TYPES from . import EnergyGroups # Suppor...
codeparrot/github-code-clean
"""HUB API.""" import re from datetime import datetime import gzip from urllib.parse import unquote, urlencode from uuid import uuid4, UUID import dateutil.parser import json import jsonschema import requests import validators import yaml from flask import (Response, abort, current_app, jsonify, make_response, ...
codeparrot/github-code-clean
"""Unit tests for collections.py.""" import collections import copy import doctest import inspect import keyword import operator import pickle from random import choice, randrange import re import string import sys from test import support import types import unittest from collections import namedtuple, Counter, Orde...
codeparrot/github-code-clean
#coding: utf-8 from lxml import etree class XMLDocumentException(Exception): u""" Un error relacionado a la validacion de un documento xml. """ pass class XMLFormatException(XMLDocumentException): u""" Esta excepcion se gatilla cuando la validacion de un string xml da mala (sea para ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # transformations.py # Copyright (c) 2006-2015, Christoph Gohlke # Copyright (c) 2006-2015, The Regents of the University of California # Produced at the Laboratory for Fluorescence Dynamics # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modifica...
codeparrot/github-code-clean
# fMBT, free Model Based Testing tool # Copyright (c) 2012, Intel Corporation. # # This program is free software; you can redistribute it and/or modify it # under the terms and conditions of the GNU Lesser General Public License, # version 2.1, as published by the Free Software Foundation. # # This program is distribut...
codeparrot/github-code-clean
from distutils.version import StrictVersion import unittest import datetime import time import binascii from redis._compat import (unichr, u, b, ascii_letters, iteritems, dictkeys, dictvalues) from redis.client import parse_info import redis class ServerCommandsTestCase(unittest.TestCase): ...
codeparrot/github-code-clean
# coding: utf-8 from __future__ import unicode_literals import itertools import json import os.path import re import time import traceback from .common import InfoExtractor, SearchInfoExtractor from ..jsinterp import JSInterpreter from ..swfinterp import SWFInterpreter from ..compat import ( compat_chr, com...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Copyright 2020 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 2013 IBM Corp. # Copyright 2012 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LIC...
codeparrot/github-code-clean
# -*- coding: cp1252 -*- __VERSION__ = "0.6.1" # 2007-06-10 # <p>Copyright © 2005-2007 Stephen John Machin, Lingfo Pty Ltd</p> # <p>This module is part of the xlrd package, which is released under a # BSD-style licence.</p> import licences ## # <p><b>A Python module for extracting data from MS Excel ™ sp...
codeparrot/github-code-clean
#!/usr/bin/env python """ Copyright (c) 2015, Nagoya University All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this ...
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
#!/usr/bin/env python # Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """End to end tests for ChromeDriver.""" # Note that to run Android tests you must have the following line in # .gclient (in the paren...
codeparrot/github-code-clean
# this is from https://github.com/mledoze/countries countries_info = [ { "name": { "common": "Afghanistan", "official": "Islamic Republic of Afghanistan", "native": { "common": "\u0627\u0641\u063a\u0627\u0646\u0633\u062a\u0627\u0646", "offi...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Copyright 2007-2022 The HyperSpy developers # # This file is part of HyperSpy. # # HyperSpy 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 y...
codeparrot/github-code-clean
# # libtcod 1.6.3 Python wrapper # Copyright (c) 2008,2009,2010,2012,2013,2016,2017 Jice & Mingos & rmtew # 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 mus...
codeparrot/github-code-clean
# Copyright (C) 2015-2018 YouCompleteMe contributors # # This file is part of YouCompleteMe. # # YouCompleteMe 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 opt...
codeparrot/github-code-clean
from __future__ import unicode_literals from calaccess_raw import fields from django.utils.encoding import python_2_unicode_compatible from .base import CalAccessBaseModel @python_2_unicode_compatible class CvrSoCd(CalAccessBaseModel): """ Cover page for a statement of organization creation or termination ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # $Id: itgTableDas.py 56287 2015-06-09 11:15:22Z vboxsync $ """ DAS (instruction) result table. """ __copyright__ = \ """ Copyright (C) 2012-2015 Oracle Corporation This file is part of VirtualBox Open Source Edition (OSE), as available from http://www.virtualbox.org. This file is free softw...
codeparrot/github-code-clean
# # webgateway/views.py - django application view handling functions # # Copyright (c) 2007, 2008, 2009 Glencoe Software, Inc. All rights reserved. # # This software is distributed under the terms described by the LICENCE file # you can find at the root of the distribution bundle, which states you are # free to use i...
codeparrot/github-code-clean
# objects.py is a subroutine of NumBAT. It contains the Struct # objects that represent the structure being simulated. # Copyright (C) 2017 Bjorn Sturmberg, Kokou Dossou. # NumBAT 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...
codeparrot/github-code-clean
""" Ops for downsampling images. Planned: Pool, DownsampleAvg, DownsampleSoftmax. """ from __future__ import absolute_import, print_function, division # This file should move along with conv.py import warnings import itertools import numpy from six.moves import xrange import six.moves.builtins as builtins import thea...
codeparrot/github-code-clean
# Copyright (c) 2012 - 2015 EMC Corporation, 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 # # ...
codeparrot/github-code-clean
# Copyright 2015 Internap. # # 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
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Piston Cloud Computing, Inc. # All Rights Reserved. # Copyright 2013 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # no...
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
"""Functions to plot M/EEG data e.g. topographies.""" # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Denis Engemann <denis.engemann@gmail.com> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # Eric Larson <larson.eric.d@gmail.com> # Robert Luke <mail@robertluke.net> # ...
codeparrot/github-code-clean
""" Test cases for time series specific (freq conversion, etc) """ from datetime import date, datetime, time, timedelta import pickle import sys import numpy as np import pytest from pandas.compat import PY3, lrange, zip import pandas.util._test_decorators as td from pandas import DataFrame, Index, NaT, Series, isna...
codeparrot/github-code-clean
from collections.abc import Iterable from itertools import product import numbers import warnings import inspect import numpy as np from copy import deepcopy from qutip.qip import circuit_latex as _latex from qutip.qip.operations.gates import (rx, ry, rz, sqrtnot, snot, phasegate, ...
codeparrot/github-code-clean
""" 12/19/2013 Author: Joshua Milas Python Version: 3.3.2 The NRLMSISE-00 model 2001 ported to python Based off of Dominik Brodowski 20100516 version available here http://www.brodo.de/english/pub/nrlmsise/ This is the external data file used by the main program /* ----------------------------------------------------...
codeparrot/github-code-clean
from __future__ import division, absolute_import, print_function import warnings import numpy as np from numpy.testing import ( assert_, assert_raises, assert_equal, assert_warns, assert_no_warnings, assert_array_equal, assert_array_almost_equal, suppress_warnings ) from numpy import ra...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- from __future__ import unicode_literals """ A series of tests to establish that the command-line management tools work as advertised - especially with regards to the handling of the DJANGO_SETTINGS_MODULE and default settings.py files. """ import codecs import os import re import shutil import...
codeparrot/github-code-clean
#!/usr/bin/env python import unittest import sys sys.path.insert(0, '..') import bitstring import copy import os import collections from bitstring import BitStream, ConstBitStream, pack from bitstring import ByteStore, offsetcopy class FlexibleInitialisation(unittest.TestCase): def testFlexibleInitialisation(sel...
codeparrot/github-code-clean
""" A generic n-dimensionnal Array class serving as base for arbitrary length VectorN and MatrixN classes """ # NOTE: modified and added some methods that are closer to how Numpy works, as some people pointed out # they didn't want non-Python dependencies. # For instance implemented partially the neat multi index slic...
codeparrot/github-code-clean
""" Perform Levenberg-Marquardt least-squares minimization, based on MINPACK-1. AUTHORS The original version of this software, called LMFIT, was written in FORTRAN as part of the MINPACK-1 package by XXX. Craig Markwardt converted the FORTRAN code to IDL. The information for ...
codeparrot/github-code-clean
# Author: Steven J. Bethard <steven.bethard@gmail.com>. """Command-line parsing library This module is an optparse-inspired command-line parsing library that: - handles both optional and positional arguments - produces highly informative usage messages - supports parsers that dispatch to sub-parsers The...
codeparrot/github-code-clean
""" This is our testing framework. Goals: * it should be compatible with py.test and operate very similarly (or identically) * doesn't require any external dependencies * preferably all the functionality should be in this file only * no magic, just import the test file and execute the test functions, that's it * po...
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
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
import collections import io import os import errno import pathlib import pickle import shutil import socket import stat import sys import tempfile import unittest from contextlib import contextmanager if sys.version_info < (2, 7): try: import unittest2 as unittest except ImportError: raise Imp...
codeparrot/github-code-clean
#===- cindex.py - Python Indexing Library Bindings -----------*- python -*--===# # # The LLVM Compiler Infrastructure # # This file is distributed under the University of Illinois Open Source # License. See LICENSE.TXT for details. # #===--------------------------------------------------------------...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Copyright 2010-2011 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/...
codeparrot/github-code-clean
# Copyright (c) 2015-2017 Tigera, 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 applicabl...
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
#!/usr/bin/python2.4 # # Copyright (c) 2009 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list ...
codeparrot/github-code-clean
# Copyright Hybrid Logic Ltd. See LICENSE file for details. """ Tests for ``admin.release``. """ import json import os from gzip import GzipFile from StringIO import StringIO import tempfile from textwrap import dedent from unittest import skipUnless from setuptools import __version__ as setuptools_version from e...
codeparrot/github-code-clean
""" Demo microbes service and methods """ __author__ = 'Dan Gunter <dkgunter@lbl.gov>, Bill Riehl <wjriehl@lbl.gov>, Michael Sneddon <mwsneddon@lbl.gov>, Roman Sutormin <rsutormin@lbl.gov>' __date__ = '11/15/13' ## Imports # Stdlib import json import os import random import numbers import uuid import hashlib import re...
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 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 (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import unittest from pathlib import Path import warnings import random import os import numpy as np from pymatgen.util.testing import PymatgenTest from pymatgen.core.periodic_table import Element, Specie from ...
codeparrot/github-code-clean
# id3 support for mutagen # Copyright (C) 2005 Michael Urman # # This program is free software; you can redistribute it and/or modify # it under the terms of version 2 of the GNU General Public License as # published by the Free Software Foundation. # # $Id: id3.py 4153 2007-08-05 07:07:49Z piman $ """ID3v2 reading a...
codeparrot/github-code-clean
# coding: utf-8 import datetime import decimal import re import uuid import sqlalchemy as sa from sqlalchemy import any_ from sqlalchemy import ARRAY from sqlalchemy import cast from sqlalchemy import Column from sqlalchemy import column from sqlalchemy import DateTime from sqlalchemy import Enum from sqlalchemy impor...
codeparrot/github-code-clean
import csv import datetime from functools import partial import io import logging from typing import Optional from django.conf import settings from django.contrib import messages from django.contrib.auth import update_session_auth_hash from django.contrib.auth.decorators import permission_required from django.contrib....
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2008-2011 Kees Bakker # Copyright (C) 2008 Brian G. Matherly # Copyright (C) 2013-2017 Alois Poettker <alois.poettker@gmx.de> # # This program is free software; you can redistribute it and/or modify # it under the terms ...
codeparrot/github-code-clean
# This program is distributed under the terms of the GNU General Purpose License (GPL). # Refer to http://www.gnu.org/licenses/gpl.txt # # This file is part of EqTools. # # EqTools 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 S...
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 (c) 2016 Juan Vanyo Cerda <juavacer@inf.upv.es> * #* ...
codeparrot/github-code-clean
# Copyright 2017 The Tangram Developers. See the AUTHORS file at the # top-level directory of this distribution and at # https://github.com/renatoGarcia/tangram/blob/master/AUTHORS. # # This file is part of Tangram. # # Tangram is free software: you can redistribute it and/or modify # it under the terms of the GNU Less...
codeparrot/github-code-clean
import fractions import math import operator import os import random import sys import struct import time import unittest from test import support from math import isinf, isnan, copysign, ldexp INF = float("inf") NAN = float("nan") have_getformat = hasattr(float, "__getformat__") requires_getformat = unittest.skipU...
codeparrot/github-code-clean
# TODO: Determine which tests are valid for GLSAR, and under what conditions # TODO: Fix issue with constant and GLS # TODO: GLS: add options Iterative GLS, for iterative fgls if sigma is None # TODO: GLS: default if sigma is none should be two-step GLS # TODO: Check nesting when performing model based tests, lr, wald,...
codeparrot/github-code-clean
# Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com> # # This file is part of paramiko. # # Paramiko 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 (a...
codeparrot/github-code-clean
from __future__ import print_function, division from sympy.core.add import Add from sympy.core.compatibility import as_int, is_sequence, range from sympy.core.exprtools import factor_terms from sympy.core.function import _mexpand from sympy.core.mul import Mul from sympy.core.numbers import Rational from sympy.core.nu...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- import numpy as np from scipy.integrate import odeint import sympy from phytosfdm.EnvForcing.envforcing import ExtractEnvFor class SM: """ Class with methods to quantify the size dynamics of phytoplankton communities in the ocean using a 0-dimensional NPZD m...
codeparrot/github-code-clean
# Copyright (C) 2007-2015 The Board of Regents of the University of Wisconsin System # # This program is free software; you can redistribute it and/or modify # it under the terms of version 2 of the GNU General Public License as # published by the Free Software Foundation. # # This program is distributed in the hope t...
codeparrot/github-code-clean
""" refdata.py -- reference data and tables used in computations """ import numpy as np # ------------------------------------------------------------------------------ # Helper functions for accessing REFERENCE TABLES # ------------------------------------------------------------------------------ def get_cromerm...
codeparrot/github-code-clean
# Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University # Copyright (c) 2011, 2012 Open Networking Foundation # Copyright (c) 2012, 2013 Big Switch Networks, Inc. # See the file LICENSE.pyloxi which should have been included in the source distribution # Automatically generated by LOXI from ...
codeparrot/github-code-clean
# -*- encoding: 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) 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
# -*- coding: utf-8 -*- from operator import attrgetter from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType from pyangbind.lib.yangtypes import RestrictedClassType from pyangbind.lib.yangtypes import TypedListType from pyangbind.lib.yangtypes import YANGBool from pyangbind.lib.yangtypes import YANGListTy...
codeparrot/github-code-clean
import pytest from diofant import (Add, And, Ci, Derivative, DiracDelta, E, Eq, EulerGamma, Expr, Function, I, Integral, Interval, Lambda, LambertW, Matrix, Max, Min, Ne, O, Piecewise, Poly, Rational, Si, Sum, Symbol, Tuple, acos, acosh, asin, asinh, atan,...
codeparrot/github-code-clean
from datetime import datetime from functools import partial from io import StringIO import numpy as np import pytest import pytz from pandas._libs import lib from pandas.errors import UnsupportedFunctionCall import pandas as pd from pandas import DataFrame, Series, Timedelta, Timestamp, isna, notna import pandas._te...
codeparrot/github-code-clean
# Copyright 2012 Hewlett-Packard Development Company, L.P. # Copyright 2012 Varnish Software AS # # 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 ...
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
# 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 -*- # # Generated Thu Mar 17 13:49:32 2011 by generateDS.py version 2.4b. # Modified by Gerson Galang to support xsd:anys in xmlData # import sys import getopt import re as re_ from xml.etree import ElementTree from xml.dom import minidom etree_ = None Verbose_import_ = False (XMLParser_import_n...
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
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # 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 # # Licensed under the A...
codeparrot/github-code-clean
# -*- indent-tabs-mode: t; tab-width: 4 -*- # 0: arc-arc test # 1: arc-line test # 2: hook # 3: SpaceClaim: 3D-NURBS # 4: conduit # 5: SpaceClaim: ski # 6: SpaceClaim: cube # 7: SpaceClaim: foil # 8: !SpaceClaim: hook - offset # 8: !SpaceClaim: hook - mesh w/ dmsh arc_test = 4 print_path_info = False print_pl...
codeparrot/github-code-clean
# coding: utf-8 texto = ''' <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Fotos BIXURRASCO - XV Edicao - FATEC - 14/09/2013 - Afterfest</title> <meta http-equiv="Content-Type...
codeparrot/github-code-clean
''' http://www.1point3acres.com/bbs/forum.php?mod=viewthread&tid=135449&extra=page%3D1%26filter%3Dsortid%26sortid%3D311%26sortid%3D311 1. 两个链表 求最大的公共后缀 ''' class ListNode: def __init__(self, value): self.value = value self.next = None def find_max_postfix(head1, head2): if not head1 or not he...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- { '# 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 are provided here currently:': 'يوجد خياري...
codeparrot/github-code-clean
#!/usr/bin/python -tt # 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 distributed in the hope that i...
codeparrot/github-code-clean
#!/usr/bin/python # -*- encoding: utf-8; py-indent-offset: 4 -*- # +------------------------------------------------------------------+ # | ____ _ _ __ __ _ __ | # | / ___| |__ ___ ___| | __ | \/ | |/ / | # | | | | '_ \ / _ \/ __| |/ /...
codeparrot/github-code-clean