text
stringlengths
5.09k
178k
domain
stringclasses
106 values
# -*- coding: utf-8 -*- # * 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, or (at your option) # * any later version. # * # * This Program is distributed in the hope th...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- ## Comments and reviews for records. ## This file is part of Invenio. ## Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 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 b...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- #Para probar en windows import re import ayuda import sys from PyQt4.QtCore import * from PyQt4.QtGui import * import subprocess import platform import threading import string as s import windows.main as win from functools import partial from config import config impor...
codeparrot/github-code-clean
#!/usr/bin/env python # import base64 import os import pprint import readline import argparse class Address(object): """ Class to contain address definitions for hosts or subnets """ def __init__(self,addrname,zone,mapto=''): if 'debug' in globals() and debug > 1: print "init ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Copyright (C) 2016 Mathew Topper, Vincenzo Nava, Adam Collin # Copyright (C) 2017-2021 Mathew Topper # # 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, e...
codeparrot/github-code-clean
import traceback import tempfile import operator import copy import sys import os import random import re import numpy import glob from collections import OrderedDict import csv from subprocess import check_call, Popen, PIPE import utils import indelutils # ------------------------------------------------------------...
codeparrot/github-code-clean
# orm/query.py # Copyright (C) 2005-2013 the SQLAlchemy authors and contributors <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """The Query class and support. Defines the :class:`.Query` class, the central construct...
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 'SourceRegionPolygon' db.create_table('source_region_polyg...
codeparrot/github-code-clean
""" Instructor Views """ ## NOTE: This is the code for the legacy instructor dashboard ## We are no longer supporting this file or accepting changes into it. # pylint: skip-file from contextlib import contextmanager import csv import json import logging import os import re import requests from collections import defau...
codeparrot/github-code-clean
# Copyright (c) 2012 NTT DOCOMO, INC. # Copyright 2011 OpenStack Foundation # Copyright 2011 Ilya Alekseyev # # 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:...
codeparrot/github-code-clean
# # Copyright (c) 2014 Juniper Networks, Inc. All rights reserved. # """ This file contains implementation of data model for physical router configuration manager """ from device_conf import DeviceConf from ansible_base import AnsibleBase from dm_utils import PushConfigState from dm_utils import DMUtils from dm_utils ...
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
# Copyright (c) 2014-2019, Ruslan Baratov & Luca Martini # Copyright (c) 2014-2019, Michele Caini # Copyright (c) 2017-2019, Robert Nitsch # Copyright (c) 2018-2019, David Hirvonen # Copyright (c) 2018-2019, Richard Hodges # Copyright (c) 2020, Clemens Arth # All rights reserved. import os import platform class Toolc...
codeparrot/github-code-clean
from sympy import sqrt, Abs from sympy.core import S, Rational from sympy.integrals.intpoly import (decompose, best_origin, distance_to_side, polytope_integrate, point_sort, hyperplane_parameters, main_integrate3d, ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # # Authors: Denis A. Engemann <denis.engemann@gmail.com> # Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Juergen Dammers <j.dammers@fz-juelich.de> # # License: BSD (3-clause) from inspect import isfunction from collections import namedtuple from copy import d...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- import sys from nose.plugins.skip import SkipTest sys.path[0:0] = [""] import datetime import unittest import uuid import math import itertools import re try: import dateutil except ImportError: dateutil = None from decimal import Decimal from bson import Binary, DBRef, ObjectId fr...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- ## This file is part of Invenio. ## Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2019, 2020 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...
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...
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 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, software...
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. # Copyright 2013 IBM Corp. # # Licensed under the Apache License, Version 2.0 (the "License"); you...
codeparrot/github-code-clean
""" ltisys -- a collection of classes and functions for modeling linear time invariant systems. """ # # Author: Travis Oliphant 2001 # # Feb 2010: Warren Weckesser # Rewrote lsim2 and added impulse2. # Apr 2011: Jeffrey Armstrong <jeff@approximatrix.com> # Added dlsim, dstep, dimpulse, cont2discrete # Aug 2013: Jua...
codeparrot/github-code-clean
# Copyright (c) 2010-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 agree...
codeparrot/github-code-clean
# # Author: Travis Oliphant 2002-2011 with contributions from # SciPy Developers 2004-2011 # from __future__ import division, print_function, absolute_import import warnings import numpy as np from scipy.misc.doccer import inherit_docstring_from from scipy import optimize from scipy import integrate impor...
codeparrot/github-code-clean
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Test running processes. """ import gzip import os import sys import signal import StringIO import errno import gc import stat import operator try: import fcntl except ImportError: fcntl = process = None else: from twisted.internet...
codeparrot/github-code-clean
<<<<<<< HEAD <<<<<<< HEAD # Copyright 2001-2013 by Vinay Sajip. All Rights Reserved. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose and without fee is hereby granted, # provided that the above copyright notice appear in all copies and that # both that copyright...
codeparrot/github-code-clean
# _ __ # | |/ /___ ___ _ __ ___ _ _ ® # | ' </ -_) -_) '_ \/ -_) '_| # |_|\_\___\___| .__/\___|_| # |_| # # Keeper Commander # Copyright 2021 Keeper Security Inc. # Contact: ops@keepersecurity.com # import itertools import json import base64 import collections import re import getpass im...
codeparrot/github-code-clean
#!/usr/bin/env python #coding=utf8 # Copyright (C) 2010-2014 GRNET S.A. # # 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 versio...
codeparrot/github-code-clean
# Copyright (c), Michael DeHaan <michael.dehaan@gmail.com>, 2012-2013 # Copyright (c), Toshio Kuratomi <tkuratomi@ansible.com> 2016 # Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) from __future__ import absolute_import, division, print_function __metaclass__ =...
codeparrot/github-code-clean
# # Copyright (C) 2010-2015 Netcetera Switzerland (info@netcetera.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 # Software Foundation; either version 3 of the License, or (at your option) # any later version....
codeparrot/github-code-clean
# Taken from periodictable-1.5.0 MASS_DICT = { 'x': 1, # dummy atom 'n': 14.0067, 'h': 1.00794, 'he': 4.002602, 'li': 6.941, 'be': 9.012182, # 'n': 14.0067, 'h': 1.007825, 'he': 4.002602, 'li': 6.941, 'be': 9.012182, 'b': 10.811, 'c': 12.0107, 'o': 15.9994, 'f': 18.9984032, 'ne': 20.1797, # 'b': 10....
codeparrot/github-code-clean
# ============================================================================= # AUSTRALIAN NATIONAL UNIVERSITY OPEN SOURCE LICENSE (ANUOS LICENSE) # VERSION 1.3 # # The contents of this file are subject to the ANUOS License Version 1.3 # (the "License"); you may not use this file except in compliance with # the Lice...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- """ License Copyright (C) 2013 YunoHost This program is free software; you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any l...
codeparrot/github-code-clean
import os import sys import json import time import uuid import base64 import gevent import itertools from hashlib import sha256 from datetime import datetime from collections import namedtuple from flask import (request, g, Blueprint, make_response, Response, stream_with_context) from flask import ...
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
import itertools import unittest from parameterized import parameterized import math import random import torch import torch.nn as nn #import torch_dct as dct from orthonormalTransform import OrthonormalTransform from nsoltUtility import OrthonormalMatrixGenerationSystem from nsoltSynthesis2dNetwork import NsoltSynthes...
codeparrot/github-code-clean
from __future__ import absolute_import, print_function, division import errno import os import sys import logging import numpy import platform import textwrap import re import socket import struct import warnings from six import string_types import theano from theano.configparser import (AddConfigVar, BoolParam, Conf...
codeparrot/github-code-clean
# -*- encoding: utf-8 -*- """Test class for Smart/Puppet Class Parameter :Requirement: Classparameters :CaseAutomation: Automated :CaseLevel: Acceptance :CaseComponent: UI :TestType: Functional :CaseImportance: High :Upstream: No """ import yaml from fauxfactory import gen_integer, gen_string from nailgun impor...
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/. import copy import re import json from StringIO import StringIO from mock import Mock, patch, call from nose.tools impo...
codeparrot/github-code-clean
"""The request for analysis by a client. It contains analysis instances. """ import datetime from base_olims_model import BaseOLiMSModel from fields.string_field import StringField from fields.text_field import TextField from fields.boolean_field import BooleanField from fields.date_time_field import DateTimeField from...
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
""" Modulestore backed by Mongodb. Stores individual XModules as single documents with the following structure: { '_id': <location.as_dict>, 'metadata': <dict containing all Scope.settings fields> 'definition': <dict containing all Scope.content fields> 'definition.children': <list of all child locati...
codeparrot/github-code-clean
## This file is part of Invenio. ## Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011 CERN. ## ## Invenio is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## License, or (at your ...
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
""" Test SciPy functions versus mpmath, if available. """ import numpy as np from numpy.testing import assert_, assert_allclose from numpy import pi import pytest import itertools from scipy._lib import _pep440 import scipy.special as sc from scipy.special._testutils import ( MissingModule, check_version, FuncDa...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- """ *************************************************************************** test_qgsdelimitedtextprovider_wanted.py --------------------- Date : May 2013 Copyright : (C) 2013 by Chris Crook Email : ccrook at linz dot govt dot nz ...
codeparrot/github-code-clean
def foo(): pass # keep the line number constant import os, time, sys, yaml 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 i...
codeparrot/github-code-clean
#=============================================================================== # # # Author : Angus Johnson # # Version : 5.1.6 ...
codeparrot/github-code-clean
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2012, Stephen Fromm <sfromm@gmail.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': ...
codeparrot/github-code-clean
''' DIRAC Transformation DB Transformation database is used to collect and serve the necessary information in order to automate the task of job preparation for high level transformations. This class is typically used as a base class for more specific data processing databases ''' import re, time, thre...
codeparrot/github-code-clean
#!/usr/bin/env python # SSSD # # SSSD Config API tests # # Copyright (C) Red Hat # # 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) a...
codeparrot/github-code-clean
# coding=utf-8 # !/usr/bin/python # module: PiConnect.py # TODO: Dodac swieta # TODO: Dodac mozlwiosc wlaczenia przyciskiem # TODO: Dodac regule, jezeli czujka ruchu wykrywa obecnosc domownika import time from datetime import datetime from datetime import timedelta import ConfigParser import logging import MySQLdb ...
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 os import string import operator from WebIDL import * from Configuration import NoSuc...
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 use ...
codeparrot/github-code-clean
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2012 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # no...
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...
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
r""" This module contains specific inner product matrices for the different bases in the Legendre family. A naming convention is used for the first three capital letters for all matrices. The first letter refers to type of matrix. - Mass matrices start with `B` - One derivative start with `C` - Stiffness ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # transformations.py # Copyright (c) 2006-2013, Christoph Gohlke # Copyright (c) 2006-2013, 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
from sympy.abc import t, w, x, y, z, n, k, m, p, i from sympy.assumptions import (ask, AssumptionsContext, Q, register_handler, remove_handler) from sympy.assumptions.assume import global_assumptions from sympy.assumptions.ask import (compute_known_facts, known_facts_cnf, know...
codeparrot/github-code-clean
""" Objects for dealing with Chebyshev series. This module provides a number of objects (mostly functions) useful for dealing with Chebyshev series, including a `Chebyshev` 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
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2012, 2013, 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 # License, or (at your optio...
codeparrot/github-code-clean
#!/usr/bin/env python2 # 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 coll...
codeparrot/github-code-clean
# Unix SMB/CIFS implementation. # backend code for provisioning a Samba AD server # Copyright (C) Jelmer Vernooij <jelmer@samba.org> 2007-2012 # Copyright (C) Andrew Bartlett <abartlet@samba.org> 2008-2009 # Copyright (C) Oliver Liebel <oliver@itc.li> 2008-2009 # # Based on the original in EJS: # Copyright (C) Andrew ...
codeparrot/github-code-clean
"""Tools for working with epoched data""" # Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Matti Hamalainen <msh@nmr.mgh.harvard.edu> # Daniel Strohmeier <daniel.strohmeier@tu-ilmenau.de> # Denis Engemann <denis.engemann@gmail.com> # Mainak Jas <mainak@neuro...
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
import numpy as np from numpy.testing import (assert_, assert_approx_equal, assert_allclose, assert_array_equal, assert_equal, assert_array_almost_equal_nulp, suppress_warnings) import pytest from pytest import raises as assert_raises from scipy import signal from ...
codeparrot/github-code-clean
from toontown.toonbase import TTLocalizer from toontown.coghq.SpecImports import * GlobalEntities = {1000: {'type': 'levelMgr', 'name': 'LevelMgr', 'comment': '', 'parentEntId': 0, 'cogLevel': 0, 'farPlaneDistance': 1500.0, 'modelFilename': 'phase_9/models/cogHQ/SelbotLeg...
codeparrot/github-code-clean
import maya.cmds as cmds import maya.mel as mel from functools import partial import xml.dom.minidom as xd from random import randint import MASH.api as mapi import flux.ui.core as fui """ windows not saving my shelf buttons. import cva reload(cva) cva.cvaUI() To do: -error check on : -cva name field. no bad names...
codeparrot/github-code-clean
# This version uses the newer trigrid2 class, and doesn't bother with # orthomaker (relevant parts of orthomaker are moved into trigrid2.) ################################################################################ # Maintain a live constrained delaunay triangulation of the grid. # designed as a mixin class Miss...
codeparrot/github-code-clean
# # Copyright 2014 Quantopian, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
codeparrot/github-code-clean
#!/usr/bin/env python """ Synopsis: Generate Python classes from XML Schema definition. Input is read from in_xsd_file or, if "-" (dash) arg, from stdin. Output is written to files named in "-o" and "-s" options. Usage: python generateDS.py [ options ] <xsd_file> python generateDS.py [ options ] - O...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
codeparrot/github-code-clean
############################################################################### ## ## Copyright (C) 2011-2014, NYU-Poly. ## 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 for...
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
#!/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. """Smoke tests for gclient.py. Shell out 'gclient' and run basic conformance tests. This test assumes GClientSmokeBase.URL_BASE i...
codeparrot/github-code-clean
# Author: Steven J. Bethard <steven.bethard@gmail.com>. import codecs import inspect import os import shutil import stat import sys import textwrap import tempfile import unittest import argparse from io import StringIO from test import support class StdIOBuffer(StringIO): pass class TestCase(unittest.TestCase)...
codeparrot/github-code-clean
from header_common import * from header_animations import * #################################################################################################################### # There are two animation arrays (one for human and one for horse). Each animation in these arrays contains the following fields: # 1) Anima...
codeparrot/github-code-clean
from __future__ import division, print_function, absolute_import import warnings from distutils.version import LooseVersion import numpy as np from numpy.testing import (TestCase, assert_array_almost_equal, assert_array_equal, assert_array_less, assert_raises, ass...
codeparrot/github-code-clean
##### Pylint Configurations ################# # For the complete list of pylint error messages, http://pylint-messages.wikidot.com/all-codes # To disable pylint "Line too long (%s/%s)" error message. # pylint: disable=C0301 # To disable too many modules error message. # pylint: disable=C0302 # To disable Anomalous back...
codeparrot/github-code-clean
#!/usr/bin/env python # The MIT License (MIT) # # Copyright (c) 2016 Paul Watkins, National Institutes of Health / NINDS # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction...
codeparrot/github-code-clean
from astropy.table import Table def vizq(_ra,_dec,catalogue,radius): import os,string,re,subprocess _site='vizier.u-strasbg.fr' # _site='vizier.cfa.harvard.edu' cat={'usnoa2':['I/252/out','USNO-A2.0','Rmag'],\ '2mass':['II/246/out','2MASS','Jmag'],\ 'usnob1':['I/284/out','USNO-B1.0','R...
codeparrot/github-code-clean
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module defines the VaspInputSet abstract base class and a concrete implementation for the parameters developed and tested by the core team of pymatgen, including the Materials Virtual Lab, Materials Pr...
codeparrot/github-code-clean
## This file is part of Invenio. ## Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 CERN. ## ## Invenio is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## License, ...
codeparrot/github-code-clean
import os import time import cPickle as pickle from enigma import eServiceReference, eServiceCenter, eTimer, eSize, iPlayableService, iServiceInformation, getPrevAsciiCode, eRCInput, eListboxPythonMultiContent, gFont, RT_HALIGN_CENTER, RT_HALIGN_LEFT, RT_VALIGN_CENTER, RT_WRAP from Screen import Screen from Component...
codeparrot/github-code-clean
""" Interface for Cobbler's XMLRPC API(s). there are two: a read-only API that koan uses a read-write API that requires logins Copyright 2007-2008, Red Hat, Inc Michael DeHaan <mdehaan@redhat.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- ## ## ## This file is part of Indico. ## Copyright (C) 2002 - 2014 European Organization for Nuclear Research (CERN). ## ## Indico is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the FreeSoftware Foundation; eithe...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- from odoo import api, fields, models, Command, _ from odoo.exceptions import RedirectWarning, UserError, ValidationError, AccessError from odoo.tools import float_compare, date_utils, email_split, email_re, html_escape, is_html_empty from odoo.tools.misc import formatLang, format_date, get_lang...
codeparrot/github-code-clean
"""Universal feed parser Handles RSS 0.9x, RSS 1.0, RSS 2.0, CDF, Atom 0.3, and Atom 1.0 feeds Visit https://code.google.com/p/feedparser/ for the latest version Visit http://packages.python.org/feedparser/ for the latest documentation Required: Python 2.4 or later Recommended: iconv_codec <http://cjkpython.i18n.org...
codeparrot/github-code-clean
# Copyright (C) 2012 Nippon Telegraph and Telephone Corporation. # Copyright (C) 2012, 2013 Isaku Yamahata <yamahata at valinux co jp> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # h...
codeparrot/github-code-clean
# 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/LICENSE-2.0 # # Unless requi...
codeparrot/github-code-clean
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2010 Citrix Systems, 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/L...
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. # Copyright 2014 IBM Corp. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Matti Hämäläinen <msh@nmr.mgh.harvard.edu> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # Denis Engemann <denis.engemann@gmail.com> # Teon Brooks <teon.brooks@gmail.com> # Marijn van Vliet...
codeparrot/github-code-clean
# Author: Dennis Lutter <lad1337@gmail.com> # Author: Jonathon Saine <thezoggy@gmail.com> # URL: http://code.google.com/p/sickbeard/ # # This file is part of SickRage. # # SickRage is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free S...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Resource object code # # Created: Fri Aug 3 00:15:09 2012 # by: The Resource Compiler for PyQt (Qt v4.8.0) # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore qt_resource_data = "\ \x00\x00\x08\x4a\ \x3c\ \x3f\x78\x6d\x6c\x20\x76\x65\x72\x73\x69\x6f\x6e\x3...
codeparrot/github-code-clean
from collections import OrderedDict from datetime import datetime, timedelta from decimal import Decimal from doctest import DocTestSuite from fractions import Fraction from functools import partial, reduce from heapq import merge from io import StringIO from itertools import ( accumulate, chain, count, ...
codeparrot/github-code-clean
# OpenShot Video Editor is a program that creates, modifies, and edits video files. # Copyright (C) 2009 Jonathan Thomas # # This file is part of OpenShot Video Editor (http://launchpad.net/openshot/). # # OpenShot Video Editor is free software: you can redistribute it and/or modify # it under the terms of the GNU G...
codeparrot/github-code-clean
#coding=UTF-8 from pyspark import SparkContext, SparkConf, SQLContext, Row, HiveContext from pyspark.sql.types import * from datetime import date, datetime, timedelta import sys, re, os st = datetime.now() conf = SparkConf().setAppName('PROC_A_PROD_CHANNEL_INFO').setMaster(sys.argv[2]) sc = SparkContext(conf = conf) s...
codeparrot/github-code-clean
#!/usr/bin/env python """@namespace IMP.pmi.tools Miscellaneous utilities. """ from __future__ import print_function import IMP import IMP.algebra import IMP.isd import IMP.pmi import IMP.pmi.topology import collections import itertools from math import log,pi,sqrt,exp import sys,os import random import ast import...
codeparrot/github-code-clean