text
string
domain
string
# 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
# -*- coding: utf-8 -*- # Copyright (c) 2013 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 appl...
codeparrot/github-code-clean
# Copyright 2014-2016 OpenMarket Ltd # Copyright 2017 Vector Creations Ltd # Copyright 2018-2019 New Vector Ltd # Copyright 2019 The Matrix.org Foundation C.I.C. # # 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...
codeparrot/github-code-clean
# Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # Notes: # # This is all roughly based on the Makefile system used by the Linux # kernel, but is a non-recursive make -- we put the entire dependency # graph in fr...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2014 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 # Li...
codeparrot/github-code-clean
""" Classes for the ticks and x and y axis """ from __future__ import (absolute_import, division, print_function, unicode_literals) import six from matplotlib import rcParams import matplotlib.artist as artist from matplotlib.artist import allow_rasterization import matplotlib.cbook as cbook f...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- # gpload - load file(s) into Greenplum Database # Copyright Greenplum 2008 '''gpload [options] -f configuration file Options: -h hostname: host to connect to -p port: port to connect to -U username: user to connect as -d database: database to connect to ...
codeparrot/github-code-clean
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Generic presubmit checks that can be reused by other presubmit checks.""" from __future__ import print_function import os as _os from warnings impo...
codeparrot/github-code-clean
from __future__ import absolute_import, unicode_literals import datetime import pickle from operator import attrgetter from django.contrib.auth.models import User from django.contrib.contenttypes.models import ContentType from django.core import management from django.db import connections, router, DEFAULT_DB_ALIAS f...
codeparrot/github-code-clean
import numpy as np import pandas as pd import scipy from scipy import stats, spatial import matplotlib as mpl import matplotlib.pyplot as plt from distutils.version import LooseVersion import nose.tools as nt import numpy.testing as npt from numpy.testing.decorators import skipif from . import PlotTestCase from .. i...
codeparrot/github-code-clean
""" ufoTools.py v1.28 May 10 2016 This module supports using the Adobe FDK tools which operate on 'bez' files with UFO fonts. It provides low level utilities to manipulate UFO data without fully parsing and instantiating UFO objects, and without requiring that the AFDKO contain the robofab libraries. Modified in Nov ...
codeparrot/github-code-clean
# This file is part of Scapy # See http://www.secdev.org/projects/scapy for more information # Copyright (C) Nils Weiss <nils@we155.de> # This program is published under a GPLv2 license # scapy.contrib.description = BMW specific definitions for UDS # scapy.contrib.status = loads from scapy.packet import Packet, bind...
codeparrot/github-code-clean
"""A module for organizing geometrical data for a blade station. Note: to generate html documentation of this module, open a Windows cmd prompt: > cd path/to/lib > python -m pydoc -w station Then, open path/to/lib/station.html in a browser. Refs: https://docs.python.org/2.7/library/pydoc.html http://bytes.com/...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Resource object code # # Created by: The Resource Compiler for PyQt (Qt v4.6.2) # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore qt_resource_data = "\ \x00\x00\x09\xfa\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\ \x00\x00\x40\x00\...
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 date...
codeparrot/github-code-clean
import json import time from cStringIO import StringIO from datetime import date, datetime, timedelta from xml.sax.saxutils import escape import mock from constance import config from constance.test import override_config from nose.plugins.attrib import attr from nose.tools import eq_, ok_ from waffle.models import Sw...
codeparrot/github-code-clean
# Copyright The Cloud Custodian Authors. # SPDX-License-Identifier: Apache-2.0 import time from .common import BaseTest, functional, event_data from unittest.mock import MagicMock from botocore.exceptions import ClientError as BotoClientError from c7n.exceptions import PolicyValidationError from c7n.resources.aws impo...
codeparrot/github-code-clean
# Copyright 2015 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
codeparrot/github-code-clean
""" A collection of functions to find the weights and abscissas for Gaussian Quadrature. These calculations are done by finding the eigenvalues of a tridiagonal matrix whose entries are dependent on the coefficients in the recursion formula for the orthogonal polynomials with the corresponding weighting function over ...
codeparrot/github-code-clean
# -*- coding: utf8 -*- # Check code with # flake8 --ignore=E226,E266,E401,W503 # *************************************************************************** # * Copyright (c) 2009 Yorik van Havre <yorik@uncreated.net> * # * * # * ...
codeparrot/github-code-clean
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2017 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 (c) 2013 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 agreed to ...
codeparrot/github-code-clean
# This code is part of Ansible, but is an independent component. # This particular file snippet, and this file snippet only, is BSD licensed. # Modules you write using this snippet, which is embedded dynamically by Ansible # still belong to the author of the module, and may assign their own license # to the complete wo...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- from __future__ import unicode_literals import datetime import json import os import re import unittest from django.contrib.admin import AdminSite, ModelAdmin from django.contrib.admin.helpers import ACTION_CHECKBOX_NAME from django.contrib.admin.models import ADDITION, DELETION, LogEntry from...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- """ Unit tests for instructor.api methods. """ import datetime import ddt import functools import random import pytz import io import json import shutil import tempfile from django.conf import settings from django.contrib.auth.models import User from django.core import mail from django.core.fil...
codeparrot/github-code-clean
#!/usr/bin/python # NOTE: this file is taken from the Python source distribution # It can be found under Tools/gdb/libpython.py. It is shipped with Cython # because it's not installed as a python module, and because changes are only # merged into new python versions (v3.2+). ''' From gdb 7 onwards, gdb's build can be...
codeparrot/github-code-clean
#!/usr/bin/env python """ Calulate all torsion angles and assign secondary structure and mesostate code. This module uses much of the code from the original BIOMOL collection of utilities written by Raj Srinivasani with enhancements by Nick Fitzkee. The script was put together by Pat Fleming so that a user would not ...
codeparrot/github-code-clean
""" .. module:: abstract :platform: Unix, Windows :synopsis: Provides abstract base classes for representing the geometries .. moduleauthor:: Onur Rauf Bingol <orbingol@gmail.com> """ import copy import abc import warnings from . import vis, helpers, knotvector, voxelize, utilities from . import tessellate f...
codeparrot/github-code-clean
from . import _ from Components.AVSwitch import AVSwitch from Components.ActionMap import ActionMap from Components.Button import Button from Components.ConfigList import ConfigListScreen from Components.Label import Label from Components.MultiContent import MultiContentEntryText, MultiContentEntryPixmapAlphaTest from...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- """ Created on Tue Nov 22 09:43:24 2016 @author: zhanggaoyang """ from pyautocad import Autocad, APoint from pyautocad.contrib.tables import Table import xlrd import math import os import re from breezypythongui import EasyFrame import sys versionNumber = sys.version_info.majo...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- #----------------------------------------------------------------------------- # update_backscatter.py, Angeline G. Burrell (AGB), UoL # # Comments: Update the beam's groundscatter flag, calculate the virtual height # and propagation path, determine the origin fie...
codeparrot/github-code-clean
# zh_TW.po val = {" days." : " 天。", "(all)" : "", "(any)" : "", "(anyone)" : "", "(available)" : "", "(blank)" : "", "(both)" : "", "(everyone)" : "", "(master user, not editable)" : "", "(no change)" : "", "(no deduction)" : "", "(none)" : "", "(unknown)" : "", "(use system)" : "", "({0} given, {1} remaining)" : "", ...
codeparrot/github-code-clean
#!/usr/bin/python # -*- coding: iso-8859-15 -*- # # trouble_codes.py # # Copyright (C) Ben Van Mechelen 2008-2009 <me@benvm.be> # # This file is part of Garmon # # Garmon 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...
codeparrot/github-code-clean
# orm/query.py # Copyright (C) 2005-2018 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 constru...
codeparrot/github-code-clean
# 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. import operator import os import re import string import textwrap import functools from WebI...
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
import functools import inspect import logging import os import sys import typing as t import weakref from datetime import timedelta from itertools import chain from threading import Lock from types import TracebackType from werkzeug.datastructures import Headers from werkzeug.datastructures import ImmutableDict from ...
codeparrot/github-code-clean
# pylint: disable-msg=W0401,W0511,W0611,W0612,W0614,R0201,E1102 """Tests suite for MaskedArray & subclassing. :author: Pierre Gerard-Marchant :contact: pierregm_at_uga_dot_edu """ __author__ = "Pierre GF Gerard-Marchant" import types import warnings import numpy as np import numpy.core.fromnumeric as fromnumeric fr...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): # Flag to indicate if this migration is too risky # to run online and needs to be coordinated for offline ...
codeparrot/github-code-clean
#!/usr/bin/env python from time import sleep, time from redis.exceptions import ResponseError import inspect from functools import wraps import sys from nose.plugins.skip import SkipTest from nose.plugins.attrib import attr import redis import redis.client import fakeredis from datetime import datetime, timedelta PY...
codeparrot/github-code-clean
#!/usr/bin/env python from time import sleep, time from redis.exceptions import ResponseError import inspect from functools import wraps import sys import threading from nose.plugins.skip import SkipTest from nose.plugins.attrib import attr import redis import redis.client import fakeredis from datetime import dateti...
codeparrot/github-code-clean
# Licensed under a 3-clause BSD style license - see PYFITS.rst import contextlib import copy import gc import pickle import re import pytest import numpy as np from numpy import char as chararray try: import objgraph HAVE_OBJGRAPH = True except ImportError: HAVE_OBJGRAPH = False from astropy.io import f...
codeparrot/github-code-clean
GL_COVERAGE_BUFFER_BIT_NV = 0x00008000 GL_CONTEXT_FLAG_DEBUG_BIT = 0x00000002 GL_CONTEXT_FLAG_DEBUG_BIT_KHR = 0x00000002 GL_CONTEXT_FLAG_NO_ERROR_BIT_KHR = 0x00000008 GL_CONTEXT_FLAG_PROTECTED_CONTENT_BIT_EXT = 0x00000010 GL_MAP_READ_BIT = 0x0001 GL_MAP_READ_BIT_EXT = 0x0001 GL_MAP_WRITE_BIT = 0x0002 GL_MAP_WRITE_BIT_E...
codeparrot/github-code-clean
import builtins import sys import types import unittest import warnings from copy import deepcopy from test import support class OperatorsTest(unittest.TestCase): def __init__(self, *args, **kwargs): unittest.TestCase.__init__(self, *args, **kwargs) self.binops = { 'add': '+', ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- ##Copyright (C) [2003 -2007] [Jürgen Hamel, D-32584 Löhne] ##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 3 of the License, or (at your option) any later...
codeparrot/github-code-clean
# Copyright 2011 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- """ Sahana Eden Inventory 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 Software wit...
codeparrot/github-code-clean
import sys, inspect from cast.ParserCommon import * def whoami(): return inspect.stack()[1][3] def whosdaddy(): return inspect.stack()[2][3] def parse( iterator, entry ): p = pp_Parser() return p.parse(iterator, entry) class pp_ExpressionParser__expr: def __init__(self, parent): self.__dict__.update(local...
codeparrot/github-code-clean
# # Copyright 2013-2017 Red Hat, 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 # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in...
codeparrot/github-code-clean
import json import numpy import time import sys import itertools import math import os import glob import csv csv.field_size_limit(sys.maxsize) # make sure we can write very large csv fields import random from collections import OrderedDict from subprocess import Popen, check_call, PIPE, CalledProcessError, check_outp...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # # tests/test_common.py # # Copyright (C) 2011-18 Tomáš Pecina <tomas@pecina.cz> # # This file is part of legal.pecina.cz, a web-based toolbox for lawyers. # # This application is free software: you can redistribute it and/or # modify it under the terms of the GNU General Public License as # pu...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- """This module provides basic circuit structures and features""" from tasty.circuit import Circuit from tasty.utils import bitlength from tasty.circuit import SIGNED, UNSIGNED, UNDEF, DROP_MSB, NODROP_MSB __all__ = ["SubCircuit", "AddCircuit", "AddSubCircuit", "AddSub0Circuit", ...
codeparrot/github-code-clean
#!/usr/bin/python # -*- coding: utf-8; -*- # # 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 copyrigh...
codeparrot/github-code-clean
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe, erpnext import frappe.defaults from frappe.utils import cint, flt, getdate, add_days, cstr, nowdate, get_link_to_form, formatdate from fr...
codeparrot/github-code-clean
""" Constraint contains parent classes for all constraints. A Constraint is used to set certain rules for the stochastic engine to evolve the atomic system. Therefore it has become possible to fully customize and set any possibly imaginable rule. .. inheritance-diagram:: fullrmc.Core.Constraint :parts: 1 """ # sta...
codeparrot/github-code-clean
#! /usr/bin/env python # coding:utf-8 ############################################################################### # # The Cling Interpreter # # Cling Packaging Tool (CPT) # # tools/packaging/cpt.py: Python script to launch Cling Packaging Tool (CPT) # # Documentation: tools/packaging/READ...
codeparrot/github-code-clean
#! /usr/bin/env python """ tpipe.py --- read and visualize visibility data to search for transients Generalization of evlavis, etc. Can read MS or Miriad formatted data. Will try to import the following: - CASA and pyrap for MS reading - miriad-python for Miriad reading - aipy for imaging numpy array data """ import ...
codeparrot/github-code-clean
from datetime import datetime from decimal import Decimal from io import StringIO import numpy as np import pytest from pandas.compat import IS64 from pandas.errors import PerformanceWarning import pandas as pd from pandas import ( DataFrame, Grouper, Index, MultiIndex, Series, Timestamp, ...
codeparrot/github-code-clean
#!/usr/bin/env python """ Rules for building C/API module with f2py2e. Here is a skeleton of a new wrapper function (13Dec2001): wrapper_function(args) declarations get_python_arguments, say, `a' and `b' get_a_from_python if (successful) { get_b_from_python if (successful) { callfortran ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Author: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Denis Engemann <denis.engemann@gmail.com> # Stefan Appelhoff <stefan.appelhoff@mailbox.org> # # License: BSD (3-clause) from copy import deepcopy from distutils.version import LooseVersion from functools import partial...
codeparrot/github-code-clean
# -*- test-case-name: sine.test -*- # Copyright 2005 Divmod, Inc. See LICENSE file for details # "I have always wished that my computer would be as easy to use as my # telephone. My wish has come true. I no longer know how to use my # telephone." - Bjarne Stroustrup import socket, random, hashlib, sys, urllib from ...
codeparrot/github-code-clean
# Copyright (c) 2015 Infortrend Technology, 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 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
from __future__ import division, absolute_import, print_function import functools import itertools import operator import sys import warnings import numbers import contextlib import numpy as np from numpy.compat import pickle, basestring from . import multiarray from .multiarray import ( _fastCopyAndTranspose as ...
codeparrot/github-code-clean
from collections import defaultdict from . import sanitized as conf language = conf.LANGUAGE.upper()[:2] POKEMON = defaultdict(lambda: '?', { 1: 'Bulbasaur', 2: 'Ivysaur', 3: 'Venusaur', 4: 'Charmander', 5: 'Charmeleon', 6: 'Charizard', 7: 'Squirtle', 8: 'Wartortle', 9: 'Blastoise...
codeparrot/github-code-clean
# Natural Language Toolkit: Framenet Corpus Reader # # Copyright (C) 2001-2013 NLTK Project # Authors: Chuck Wooters <wooters@icsi.berkeley.edu>, # Nathan Schneider <nschneid@cs.cmu.edu> # URL: <http://nltk.org/> # For license information, see LICENSE.TXT from __future__ import print_function, unicode_literals...
codeparrot/github-code-clean
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Basic pyauto performance tests. For tests that need to be run for multiple iterations (e.g., so that average and standard devia...
codeparrot/github-code-clean
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module implements more advanced transformations. """ from typing import Optional import numpy as np from fractions import Fraction from math import gcd from itertools import groupby, product from stri...
codeparrot/github-code-clean
from copy import deepcopy from django.db import connection as default_django_connection from django.db.models import Q, AutoField from django.db.models.query import QuerySet from django.db.models.constants import LOOKUP_SEP from django.apps import apps get_model = apps.get_model import six from querybuilder.fields i...
codeparrot/github-code-clean
import unittest from pyramid import testing from pyramid.tests.test_config import IDummy from pyramid.tests.test_config import dummy_view from pyramid.compat import ( im_func, text_, ) from pyramid.exceptions import ConfigurationError from pyramid.exceptions import ConfigurationExecutionError from pyrami...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Resource object code # # Created: Thu Aug 5 04:53:00 2010 # by: The Resource Compiler for PyQt (Qt v4.6.2) # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore qt_resource_data = "\ \x00\x00\x35\x2a\ \x3c\ \x3f\x78\x6d\x6c\x20\x76\x65\x72\x73\x69\x6f\x6e\x3...
codeparrot/github-code-clean
#! /usr/bin/env python3 ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- # # Copyright (c) 2009 University of Washington # # This program 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...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- import pytz import re import time import openerp import openerp.service.report import uuid import collections import babel.dates from werkzeug.exceptions import BadRequest from datetime import datetime, timedelta from dateutil import parser from dateutil import rrule from dateutil.relativedelta...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- from __future__ import division import math import matplotlib as mpl import numpy as np import matplotlib.cbook as cbook import matplotlib.artist as artist import matplotlib.colors as colors import matplotlib.transforms as transforms from matplotlib.path import Path # these are not available ...
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 # Copyright 2013 Hewlett-Packard Development Company, L.P. # Copyright 2013 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 with the License. You may obtain # ...
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 2012 Cloudbase Solutions Srl # # 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 ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'User.last_active' db.add_column( 'auth_user', ...
codeparrot/github-code-clean
""" DataFrame --------- An efficient 2D container for potentially mixed-type time series or other labeled data series. Similar to its R counterpart, data.frame, except providing automatic data alignment and a host of useful data manipulation methods having to do with the labeling information """ from __future__ import...
codeparrot/github-code-clean
import six from six.moves import builtins from unittest import TestCase from random import seed from os import stat try: from unittest.mock import patch, call, mock_open except ImportError: from mock import patch, call from dark.aa import ( BASIC_POSITIVE, HYDROPHOBIC, HYDROPHILIC, NEGATIVE, NONE, POLAR, ...
codeparrot/github-code-clean
# - coding: utf-8 - # Copyright (c) 2008-2012 Toms Bauģis <toms.baugis at gmail.com> # Copyright (c) 2011-2012 Media Modifications, Ltd. # Dual licensed under the MIT or GPL Version 2 licenses. # See http://github.com/tbaugis/hamster_experiments/blob/master/README.textile from collections import defaultdict import ma...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Library to extract EXIF information from digital camera image files # http://sourceforge.net/projects/exif-py/ # # VERSION 1.1.0 # # To use this library call with: # f = open(path_name, 'rb') # tags = EXIF.process_file(f) # # To ignore MakerNote tags, pass the -q ...
codeparrot/github-code-clean
# coding=utf-8 # Module wingdings_16 # generated from Wingdings 11.25pt name = "Wingdings 16" start_char = '!' end_char = chr(255) char_height = 16 space_width = 8 gap_width = 2 bitmaps = ( # @0 '!' (14 pixels wide) 0x00, 0x00, # 0x00, 0x00, # 0x00, 0x18, # ...
codeparrot/github-code-clean
from cStringIO import StringIO import boto.exception import boto.s3.connection import boto.s3.acl import boto.s3.lifecycle import bunch import datetime import time import email.utils import isodate import nose import operator import socket import ssl import os import requests import base64 import hmac import sha import...
codeparrot/github-code-clean
#!/usr/bin/env python # # Copyright (c) 2020 by VMware, Inc. ("VMware") # Used Copyright (c) 2018 by Network Device Education Foundation, # Inc. ("NetDEF") in this file. # # Permission to use, copy, modify, and/or distribute this software # for any purpose with or without fee is hereby granted, provided # that the abov...
codeparrot/github-code-clean
#!/usr/bin/env python # Copyright 2016 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 ...
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 2021 Google LLC. 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 o...
codeparrot/github-code-clean
#Embedded file name: ACEStream\Plugin\BackgroundProcess.pyo import ACEStream.Debug.console import os import sys import time import random import binascii import hashlib import tempfile import urllib import re import copy import encodings import subprocess import socket from math import ceil from cStringIO import String...
codeparrot/github-code-clean
from __future__ import unicode_literals import copy import itertools from collections import defaultdict from datetime import datetime import six import boto from boto.ec2.instance import Instance as BotoInstance, Reservation from boto.ec2.blockdevicemapping import BlockDeviceMapping, BlockDeviceType from boto.ec2.spo...
codeparrot/github-code-clean
''' Generates some test plots from a lightcone that has been generated using Rachel's SAM. :author: Sami-Matias Niemi :contact: niemi@stsci.edu ''' import matplotlib matplotlib.use('Agg') matplotlib.rc('text', usetex=True) matplotlib.rcParams['font.size'] = 16 matplotlib.rc('xtick', labelsize=13) matplotlib.rc('ytick...
codeparrot/github-code-clean
# Copyright (c) Gary Strangman. All rights reserved # # Disclaimer # # This software is provided "as-is". There are no expressed or implied # warranties of any kind, including, but not limited to, the warranties # of merchantability and fitness for a given application. In no event # shall Gary Strangman be liable fo...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'ReleaseHeadCommit' db.create_table( 'sentry_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 us...
codeparrot/github-code-clean
import os import sys import vtkAll as vtk from ddapp import botpy import math import time import types import functools import numpy as np from ddapp import transformUtils from ddapp import lcmUtils from ddapp.timercallback import TimerCallback from ddapp.asynctaskqueue import AsyncTaskQueue from ddapp import objectmo...
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: cp1252 -*- from struct import pack from .UnicodeUtils import upack1, upack2, upack2rt from .compat import basestring, unicode, unicode_type, xrange, iteritems class SharedStringTable(object): _SST_ID = 0x00FC _CONTINUE_ID = 0x003C def __init__(self, encoding): self.encoding = encodin...
codeparrot/github-code-clean
"""Real and complex root isolation and refinement algorithms. """ from __future__ import print_function, division from sympy.polys.densebasic import ( dup_LC, dup_TC, dup_degree, dup_strip, dup_reverse, dup_convert, dup_terms_gcd) from sympy.polys.densearith import ( dup_neg, dup_rshift, dup_rem)...
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