text
stringlengths
5.09k
178k
domain
stringclasses
106 values
# @HEADER # ************************************************************************ # # TriBITS: Tribal Build, Integrate, and Test System # Copyright 2013 Sandia Corporation # # Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, # the U.S. Government retains certain ri...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- class Charset(object): common_name = 'NotoSans-Bold' native_name = '' def glyphs(self): chars = [] chars.append(0x0000) #uni0000 ???? chars.append(0x2000) #uni2000 EN QUAD chars.append(0x2002) #uni2002 EN SPACE chars.append(0x2003) #uni2...
codeparrot/github-code-clean
import os, inspect, datetime, uuid, json, glob, random, logging, sys, copy, time from sqlalchemy import Column, Integer, String, ForeignKey, Table, create_engine, MetaData, Date, DateTime, Float, Boolean, and_, or_, asc, desc from sqlalchemy.orm import relationship, backref, scoped_session, sessionmaker, relation f...
codeparrot/github-code-clean
# # Author: Damian Eads # Date: April 17, 2008 # # Copyright (C) 2008 Damian Eads # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, this...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- ## ## This file is part of Invenio. ## Copyright (C) 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 t...
codeparrot/github-code-clean
""" Tests for Shopping Cart views """ from collections import OrderedDict import pytz from urlparse import urlparse from decimal import Decimal import json from django.http import HttpRequest from django.conf import settings from django.test import TestCase from django.test.utils import override_settings from django.c...
codeparrot/github-code-clean
import contextlib import gc from itertools import product, cycle import sys import warnings from numbers import Number, Integral import platform import numpy as np from numba import jit, njit, typeof from numba.core import errors from numba.tests.support import (TestCase, tag, needs_lapack, needs_blas, ...
codeparrot/github-code-clean
# Copyright (c) 2013 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
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
#****************************************************************************** # (C) 2018, Stefan Korner, Austria * # * # The Space Python Library is free software; you can redistribute it and/or * ...
codeparrot/github-code-clean
# SPDX-License-Identifier: Apache-2.0 # # Copyright (C) 2019, Arm Limited and contributors. # # 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
#!/usr/bin/env python # # Copyright 2016 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
codeparrot/github-code-clean
""" Cisco_IOS_XE_mpls_ldp This module contains a collection of YANG definitions for the Cisco MPLS LDP configuration and operational data. The configuration is held in the mpls\-ldp\-config container which is broken into the following sections\: 1) global\-cfg contains configuration applicable to the entire ...
codeparrot/github-code-clean
r""" This module contains classes for working with sparse matrices. """ from __future__ import division from typing import List from copy import copy, deepcopy from collections.abc import Mapping, MutableMapping from numbers import Number, Integral import numpy as np import sympy as sp from scipy.sparse import bmat, d...
codeparrot/github-code-clean
import copy import json import operator import re from collections import OrderedDict from functools import partial, reduce, update_wrapper from urllib.parse import quote as urlquote from django import forms from django.conf import settings from django.contrib import messages from django.contrib.admin import helpers, ...
codeparrot/github-code-clean
"""Test date/time type. See http://www.zope.org/Members/fdrake/DateTimeWiki/TestCases """ from __future__ import division 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 datetim...
codeparrot/github-code-clean
from __future__ import unicode_literals from operator import attrgetter from django.apps import apps from django.core import checks from django.db import connection, connections, router, transaction from django.db.backends import utils from django.db.models import signals, Q from django.db.models.deletion import SET_...
codeparrot/github-code-clean
from sqlalchemy import Boolean from sqlalchemy import case from sqlalchemy import column from sqlalchemy import event from sqlalchemy import exc as sa_exc from sqlalchemy import ForeignKey from sqlalchemy import func from sqlalchemy import inspect from sqlalchemy import Integer from sqlalchemy import MetaData from sqla...
codeparrot/github-code-clean
from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Choroplethmapbox(_BaseTraceType): # class properties # -------------------- _parent_path_str = "" _path_str = "choroplethmapbox" _valid_props = { "autocolorscale", "below", "colorax...
codeparrot/github-code-clean
#!python # -*- encoding: utf-8 -*- # G_production_pnl.py # Greg Wilson, 2012 # gwilson.sq1@gmail.com # This software is part of the Public Domain. # This file is part of the NOVUS Entrepreneurship Training Program. # NOVUS is free software: you can redistribute it and/or modify # it under the terms of the ...
codeparrot/github-code-clean
""" Classes for network communication. There are two general types of network objects - * :class:`.Station` and its children are independent processes that should only be instantiated once per piece of hardware. They are used to distribute messages between :class:`.Net_Node` s, forward messages up the network...
codeparrot/github-code-clean
#!/usr/bin/python3 # -*- coding: utf-8 -*- """Pychemqt, Chemical Engineering Process simulator Copyright (C) 2009-2017, Juan José Gómez Romera <jjgomera@gmail.com> 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 Softwar...
codeparrot/github-code-clean
# -*- coding: utf-8; Mode: Python; indent-tabs-mode: nil; tab-width: 4 -*- # Copyright (C) 2006, 2007, 2008 Canonical Ltd. # Written by Colin Watson <cjwatson@ubuntu.com>. # # 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 # t...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- """ Test the Recorder object API """ import pywr.core from pywr.core import Model, Input, Output, Scenario, AggregatedNode import numpy as np import pandas import pytest import tables import json from numpy.testing import assert_allclose, assert_equal from fixtures import simple_linear_model, 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
""" Models for User Information (students, staff, etc) Migration Notes If you make changes to this model, be sure to create an appropriate migration file and check it in at the same time as your model changes. To do that, 1. Go to the edx-platform dir 2. ./manage.py lms schemamigration student --auto description_of_...
codeparrot/github-code-clean
# Copyright (c) 2001-2015, Canal TP and/or its affiliates. All rights reserved. # # This file is part of Navitia, # the software to build cool stuff with public transport. # # Hope you'll enjoy and contribute to this project, # powered by Canal TP (www.canaltp.fr). # Help us simplify mobility and open public tr...
codeparrot/github-code-clean
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P. # Copyright (c) 2012 VMware, Inc. # Copyright (c) 2011 Citrix Systems, Inc. # Copyright 2011 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. Yo...
codeparrot/github-code-clean
# coding: utf-8 # # Copyright 2010 Alexandre Fiori # based on the original Tornado by Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # # Copyright 2012-2015 Spotify AB # # 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...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Copyright 2009-2013, Peter A. Bigot # # 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
#!/usr/bin/env python3 """ This file defines a set of system_info classes for getting information about various resources (libraries, library directories, include directories, etc.) in the system. Usage: info_dict = get_info(<name>) where <name> is a string 'atlas','x11','fftw','lapack','blas', 'lapack_src', 'b...
codeparrot/github-code-clean
# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe import unittest, copy, time from frappe.utils import nowdate, flt, getdate, cint from frappe.model.dynamic_links import get_dynamic_link_...
codeparrot/github-code-clean
# Copyright 2010 OpenStack Foundation # Copyright 2012 University Of Minho # # 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....
codeparrot/github-code-clean
"""Functions to plot epochs data.""" # 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> # Jaakko Leppakangas <jaeilepp@student.jyu.fi> # ...
codeparrot/github-code-clean
"""Unit tests for the io module.""" # Tests of io are scattered over the test suite: # * test_bufio - tests file buffering # * test_memoryio - tests BytesIO and StringIO # * test_fileio - tests FileIO # * test_file - tests the file interface # * test_io - tests everything else in the io module # * test_univnewlines - ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- """ Custom UI Widgets used by the survey application @copyright: 2009-2011 (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...
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. import collections import copy import ntpath import os import posixpath import re import subprocess import sys import gyp.common import gyp.easy_xml as easy_xml i...
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 -*- # Copyright JS Foundation and other contributors, https://js.foundation/ # # 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
# 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
#! /usr/bin/python2.5 from Tkinter import * import tkMessageBox from tkSimpleDialog import * from random import random from math import sqrt """ Main logic of the application """ class Board(object): """ Class representing the board of the world where the simulation takes place It includes all...
codeparrot/github-code-clean
# Code to extract heat capacity from a long pulse in PPMS measurement # Allen Scheie # August, 2016 import numpy as np import matplotlib.colors import matplotlib.pyplot as plt import matplotlib.lines as mlines import sys from scipy.interpolate import interp1d from scipy.interpolate import CubicSpline import copy impor...
codeparrot/github-code-clean
# Generated by generate_tests.py using data from fixtures/test_cases import pytest from sokoenginepy import (CellOrientation, Direction, HexobanBoard, OctobanBoard, SokobanBoard, Tessellation, TriobanBoard) from sokoenginepy.utilities import index_1d, is_on_board_1d ...
codeparrot/github-code-clean
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2013 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/lic...
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 2011 Rackspace # Copyright (c) 2011 X.commerce, a business unit of eBay Inc. # Copyright 2013 IBM Corp. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # ...
codeparrot/github-code-clean
""" ************** Synapse Client ************** The `Synapse` object encapsulates a connection to the Synapse service and is used for building projects, uploading and retrieving data, and recording provenance of data analysis. ~~~~~ Login ~~~~~ .. automethod:: synapseclient.client.login ~~~~~~~ Synapse ~~~~~~~ .....
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 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 agreed to in...
codeparrot/github-code-clean
# coding: utf-8 """JupyterLab command handler""" # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. import contextlib import errno import hashlib import itertools import json import logging import os import os.path as osp import re import shutil import stat import site...
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
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers import pybindgen.settings import warnings class ErrorHandler(pybindgen.settings.ErrorHandler): def handle_error(self, wrapper, exception, traceback_): warnings.warn("exception %r in wrapper %s" % (exception, wrapper)) ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # The MIT License (MIT) # # Copyright (c) 2016 Aens <https://github.com/Aens> # # 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...
codeparrot/github-code-clean
# orm/session.py # Copyright (C) 2005-2019 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 """Provides the Session class and related utilities.""" import itertools import sys ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- from ..campos import * from ..registros import Registro class Registro0000(Registro): """ Abertura do Arquivo Digital e Identificação da Pessoa Jurídica >>> r = Registro0000() >>> r.REG '0000' >>> r.NOME_ESC 'LECF' >>> line='|0000|LECF|1.00|11111111000191|EMPR...
codeparrot/github-code-clean
from django.db import models from instruments.base import BaseTable class Spanish_Mexican_WS(BaseTable): item_1_choices = [('produces', 'produces')] item_1 = models.CharField(max_length=8, choices=item_1_choices, null=True) item_2_choices = [('produces', 'produces')] item_2 = models.CharField(max_leng...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- # Author: Andrew Jewett (jewett.aij at g mail) # http://www.chem.ucsb.edu/~sheagroup # License: 3-clause BSD License (See LICENSE.TXT) # Copyright (c) 2012, Regents of the University of California # All rights reserved. """ ltemplify.py The "ltemplify.py" script...
codeparrot/github-code-clean
#!/usr/bin/env python3 """A glorified C pre-processor parser.""" import ctypes import logging import os import re import site import unittest import utils top = os.getenv('ANDROID_BUILD_TOP') if top is None: utils.panic('ANDROID_BUILD_TOP not set.\n') # Set up the env vars for libclang. site.addsitedir(os.path.j...
codeparrot/github-code-clean
# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Daniel Strohmeier <daniel.strohmeier@gmail.com> # Mathurin Massias <mathurin.massias@gmail.com> # License: Simplified BSD import functools from math import sqrt import numpy as np from .mxne_debiasing import compute_bias from ..utils import...
codeparrot/github-code-clean
""" Test functions for linalg module """ import os import sys import itertools import traceback import textwrap import subprocess import pytest import numpy as np from numpy import array, single, double, csingle, cdouble, dot, identity, matmul from numpy.core import swapaxes from numpy import multiply, atleast_2d, in...
codeparrot/github-code-clean
import datetime from django.utils import timezone import mock import pytest import pytz import random, string from framework.celery_tasks import handlers from framework.exceptions import PermissionsError from framework.sessions import set_session from website.util.permissions import READ, WRITE, ADMIN, expand_permissi...
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 2016 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 OpenGLCffi.GL import params @params(api='gl', prms=['target', 'level', 'internalformat', 'x', 'y', 'width', 'border']) def glCopyTexImage1D(target, level, internalformat, x, y, width, border): pass @params(api='gl', prms=['vaobj', 'buffer']) def glVertexArrayElementBuffer(vaobj, buffer): pass @params(api='gl...
codeparrot/github-code-clean
#!/usr/bin/env python3 import numpy as np from matplotlib import pyplot as plt from scipy.optimize import minimize from scipy.signal import hann from scipy import fft from LoLIM.utilities import v_air, RTD, natural_sort import LoLIM.utilities as util from LoLIM.antenna_response import getGalaxyCalibrationData, cali...
codeparrot/github-code-clean
""" Automatic processing scripts for grizli """ import os import numpy as np import astropy.io.fits as pyfits from .. import prep, utils if False: np.seterr(divide='ignore', invalid='ignore', over='ignore', under='ignore') # Only fetch F814W optical data for now #ONLY_F814W = True ONLY_F814W = False VALID_FILT...
codeparrot/github-code-clean
import os from django.conf import settings from django.contrib.auth.models import User, Permission from django.core import mail from django.core.files import File from django.db.models import Q from django.utils import simplejson from djblets.siteconfig.models import SiteConfiguration from djblets.testing.decorators i...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- '''Chemical Engineering Design Library (ChEDL). Utilities for process modeling. Copyright (C) 2019, Caleb Bell <Caleb.Andrew.Bell@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 deal...
codeparrot/github-code-clean
<<<<<<< HEAD <<<<<<< HEAD # Copyright (c) 2013 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 entir...
codeparrot/github-code-clean
def foo(): pass # keep the line number constant import os, time, sys from StringIO import StringIO from datetime import timedelta from twisted.trial import unittest from twisted.internet import defer, reactor from twisted.python.failure import Failure from twisted.python import log from pycryptopp.hash.sha256 import ...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- """Oculus Rift HMD support for PsychoPy. Copyright (C) 2019 - Matthew D. Cutone, The Centre for Vision Research, Toronto, Ontario, Canada Uses PsychXR to interface with the Oculus Rift runtime (LibOVR) and SDK. See http://psychxr.org for more information. The Oculus PC SD...
codeparrot/github-code-clean
#!/usr/bin/env python # pyinotify.py - python interface to inotify # Copyright (c) 2005-2011 Sebastien Martini <seb@dbzteam.org> # # 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 res...
codeparrot/github-code-clean
#!/usr/bin/env python # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai from __future__ import (unicode_literals, division, absolute_import, print_function) ''' Created on 29 Jun 2012 @author: charles ''' import socket, select, json, os, traceback, time, sys, random import posixpath from colle...
codeparrot/github-code-clean
# -*- coding:utf-8 -*- ## src/common/connection.py ## ## Copyright (C) 2003-2005 Vincent Hanquez <tab AT snarc.org> ## Copyright (C) 2003-2014 Yann Leboulanger <asterix AT lagaule.org> ## Copyright (C) 2005 Alex Mauer <hawke AT hawkesnest.net> ## Stéphan Kochen <stephan AT kochen.nl> ## Copyright (C)...
codeparrot/github-code-clean
from operator import attrgetter from itertools import repeat from copy import copy, deepcopy try: from unittest.mock import patch except ImportError: from mock import patch import platform import logging import sys import re import os sys.path.insert(0, "..") from ciscoconfparse.ciscoconfparse import CiscoCon...
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 (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
# Fuck you Disyer. Stealing my fucking paypal. GET FUCKED: toontown.coghq.CashbotMintLobby_Action00 from panda3d.core import Point3, Vec3 from toontown.coghq.SpecImports import * GlobalEntities = {1000: {'type': 'levelMgr', 'name': 'LevelMgr', 'comment': '', 'parentEntId': 0, 'cog...
codeparrot/github-code-clean
# pylint: disable-msg=W0400,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 sys import warnings import operator import itertools import textwrap import pytest from f...
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 from sentry.utils.db import is_postgres class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'OrganizationIntegration' ...
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
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import bitfield.models import sentry.models.scheduledeletion import sentry.models.groupshare import sentry.db.models.fields.uuid import django.utils.timezone import sentry.db.models.fields.citext from django.conf i...
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
''' The SampleLoaders module contains classes and functions for loading Sample data into STOQS. The btlLoader module has a load_btl() method that reads data from a Seabird btl*.asc file and saves the bottle trip events as parent Samples in the STOQS database. Mike McCann MBARI 19 Setember 2012 ''' import os import s...
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
# Copyright (c) 2012-2014, 2017 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of the fun...
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
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
from StringIO import StringIO import pickle import sys import platform import gc import copy from os import path from numpy.testing import * from numpy.testing.utils import _assert_valid_refcount, WarningManager from numpy.compat import asbytes, asunicode, asbytes_nested import warnings import tempfile import numpy as ...
codeparrot/github-code-clean
# This file is part of Invenio. # Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, # 2012, 2014, 2015 CERN. # # Invenio is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version...
codeparrot/github-code-clean
# Copyright (c) 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved # # 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 ...
codeparrot/github-code-clean
#gameheart.entities.views import re from django.db.models import Q from django.http import * from django.shortcuts import render, render_to_response, redirect from django.core.context_processors import csrf from django.forms.formsets import formset_factory from django.contrib.auth.models import User from django.contri...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- from __future__ import print_function import nose from numpy.testing.decorators import slow from datetime import datetime from numpy import nan from pandas import date_range,bdate_range, Timestamp from pandas.core.index import Index, MultiIndex, Int64Index, CategoricalIndex from pandas.core.a...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- # # webgateway/views.py - django application view handling functions # # Copyright (c) 2007-2015 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,...
codeparrot/github-code-clean
#!/usr/bin/env python #----------------------------------------------------------------------------- # test_update_backscatter.py, Angeline G. Burrell (AGB), UoL # # Comments: Scripts to create plots and calculate statistics that test # the routines in update_backscatter that determine the origin # ...
codeparrot/github-code-clean
#!/usr/bin/python # -*- coding: utf-8 -*- import cPickle from ConfigParser import ConfigParser from PyQt4.QtGui import QApplication import scipy.constants as k from lib.config import conf_dir, getMainWindowConfig from lib.utilities import representacion from lib.firstrun import getrates # Defining conversion factor...
codeparrot/github-code-clean
"""Test class for Content View UI Feature details: https://fedorahosted.org/katello/wiki/ContentViews :Requirement: Contentview :CaseAutomation: Automated :CaseLevel: Component :CaseComponent: ContentViews :Assignee: ltran :TestType: Functional :CaseImportance: High :Upstream: No """ import datetime from rand...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- ########################################################################### # OCRFeeder - The complete OCR suite # Copyright (C) 2009 Joaquim Rocha # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as publ...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2005, Giovanni Bajo # Copyright (c) 2004-2005, Awarix, Inc. # All rights reserved. # # 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