text
stringlengths
5.09k
178k
domain
stringclasses
106 values
################################################################################ # THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY # # Please refer to the README for information about making permanent changes. # #############################################################################...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # This is a Python open source project for migration of modules # and functions from GestionPyme and other ERP products from Sistemas # Ágiles. # # Copyright (C) 2012 Sistemas Ágiles. # # This program is free software: you can redistribute it and/or modify # it under the terms of...
codeparrot/github-code-clean
# Copyright (c) 2018 PaddlePaddle 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 # # Unlessf required by ap...
codeparrot/github-code-clean
# Copyright 2010-2011 OpenStack Foundation # Copyright 2011 Piston Cloud Computing, 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...
codeparrot/github-code-clean
# Copyright 2015, 2017 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
codeparrot/github-code-clean
# Copyright (C) 2012, 2013, 2014 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...
codeparrot/github-code-clean
#!/usr/bin/env python #!-*-coding:utf8 -*- import os import time import serial ser = serial.Serial('/dev/ttyUSB3',9600,8,'N',2,timeout = 1) #ser.write("1234") tx = [0]*201 rx = [0]*30 dd = [0]*28 save_data_sec4 = [] A = [0x0A for i in range(0,64)] B = [0x0A for i in range(0,64)] C = [0x0A for i in range(0,64)] D = [0x...
codeparrot/github-code-clean
# Copyright (c) 2016 Dell Inc. or its subsidiaries. # 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
""" Contains general node and attribute functions, as well as the main `PyNode` base class. For the rest of the class hierarchy, including `DependNode <pymel.core.nodetypes.DependNode>`, `Transform <pymel.core.nodetypes.Transform>`, and `Attribute <pymel.core.nodetypes.Attribute>`, see :mod:`pymel.core.nodetypes`. "...
codeparrot/github-code-clean
""" Logistic Regression """ # Author: Gael Varoquaux <gael.varoquaux@normalesup.org> # Fabian Pedregosa <f@bianp.net> # Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Manoj Kumar <manojkumarsivaraj334@gmail.com> # Lars Buitinck # Simon Wu <s8wu@uwaterloo.ca> # ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- import json import os import time from datetime import datetime, timedelta from django import forms from django.conf import settings from django.core import mail from django.core.files.storage import default_storage as storage from django.db import IntegrityError from django.utils import transl...
codeparrot/github-code-clean
from __future__ import division, absolute_import, print_function import collections import tempfile import sys import shutil import warnings import operator import io import itertools if sys.version_info[0] >= 3: import builtins else: import __builtin__ as builtins from decimal import Decimal import numpy as...
codeparrot/github-code-clean
# Copyright (c) 2010 Citrix Systems, Inc. # Copyright 2010 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...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- """ Various Statistical Tests Author: josef-pktd License: BSD-3 Notes ----- Almost fully verified against R or Gretl, not all options are the same. In many cases of Lagrange multiplier tests both the LM test and the F test is returned. In some but not all cases, R has the option to choose the ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Resource object code # # Created: Wed May 15 17:46:46 2013 # by: The Resource Compiler for PyQt (Qt v5.0.2) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x0a\x15\ \x00\ \x00\x38\x1d\x78\x9c\xdd\x5b\x5b\x73\xdb\xb8\x15\...
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 cgi import os import datetime import HTMLParser import json import logging import re import ushlex as shlex import urllib from bson.objectid import ObjectId from django.conf import settings from django.contrib.auth import authenticate, login as user_login from django.core.urlresolvers import reverse, resolve, g...
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
# encoding: utf-8 # # Copyright (c) 2014 Dean Jackson <deanishe@deanishe.net> # # MIT Licence. See http://opensource.org/licenses/MIT # # Created on 2014-02-15 # """The :class:`Workflow` object is the main interface to this library. :class:`Workflow` is targeted at Alfred 2. Use :class:`~workflow.Workflow3` if you wa...
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
# ----------------------------------------------------------------------------- # ply: yacc.py # # Copyright (C) 2001-2017 # David M. Beazley (Dabeaz LLC) # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions ar...
codeparrot/github-code-clean
# coding: utf-8 from contextlib import contextmanager import re import weakref import sqlalchemy as tsa from sqlalchemy import bindparam from sqlalchemy import create_engine from sqlalchemy import create_mock_engine from sqlalchemy import event from sqlalchemy import func from sqlalchemy import inspect from sqlalchem...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- """ S3 RESTful CRUD Methods @see: U{B{I{S3XRC}} <http://eden.sahanafoundation.org/wiki/S3XRC>} @requires: U{B{I{gluon}} <http://web2py.com>} @requires: U{B{I{lxml}} <http://codespeak.net/lxml>} @copyright: 2009-2014 (c) Sahana Software Foundation @license: MIT Permis...
codeparrot/github-code-clean
import mock import unittest from boto.dynamodb2 import exceptions from boto.dynamodb2.fields import (HashKey, RangeKey, AllIndex, KeysOnlyIndex, IncludeIndex, GlobalAllIndex, GlobalKeysOnlyIndex, GlobalIncludeIndex)...
codeparrot/github-code-clean
from collections import defaultdict from contextlib import contextmanager import theano from theano import ifelse from theano import tensor as T from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams from theano.tensor.signal import pool from theano.printing import Print try: import theano.sparse as ...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- """dslw_shell.py: SpatiaLite Shell (dslw) Copyright (c) Roger Binns / Garin Wally MIT License; see LICENSE This script is a copy of the shell provided by apsw that has been litely customized for dslw. It uses the `dslw.SpatialDB` subclass of `apsw.Connection` which automat...
codeparrot/github-code-clean
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Data used by test_keys as well as others. """ from __future__ import absolute_import, division, unicode_literals from base64 import decodestring as decodebytes RSAData = { 'n': long('2694136172381134381986610103767583992198802779683821226...
codeparrot/github-code-clean
""" Class to interface with cisco ucm axl api. Author: Brad Searle Version: 0.2.6 Dependencies: - suds-jurko: https://bitbucket.org/jurko/suds Links: - http://www.imdb.com/character/ch0005280/ - https://developer.cisco.com/site/axl/ """ import ssl import urllib from suds.transport.https import HttpAuthenticated f...
codeparrot/github-code-clean
import os.path from pathlib import Path import re import time import shutil from typing import Mapping, Optional, List, Any, Tuple from gettext import gettext as _ from gi.repository import Gtk import sqlalchemy import sqlalchemy.orm from sqlalchemy import (Integer, LargeBinary, String, Float, Boolean, Numeric, ...
codeparrot/github-code-clean
# Copyright 2012 IBM Corp. # Copyright 2013 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
codeparrot/github-code-clean
# -*- 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
#!/usr/bin/env python # # Copyright 2010 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
# Copyright (c) 2010-2012 OpenStack, 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 agreed to ...
codeparrot/github-code-clean
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Piston Cloud Computing, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); y...
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
"""Provides the `CCompilerOpt` class, used for handling the CPU/hardware optimization, starting from parsing the command arguments, to managing the relation between the CPU baseline and dispatch-able features, also generating the required C headers and ending with compiling the sources with proper compiler's flags. `C...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- """ pygments.lexers._openedge_builtins ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Builtin list for the OpenEdgeLexer. :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ OPENEDGEKEYWORDS = ( 'ABSOLUTE', 'ABS', ...
codeparrot/github-code-clean
# Author: David Goodger # Contact: goodger@users.sourceforge.net # Revision: $Revision$ # Date: $Date$ # Copyright: This module has been placed in the public domain. """ This is the ``docutils.parsers.restructuredtext.states`` module, the core of the reStructuredText parser. It defines the following: :Classes: -...
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
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2012 thomasv@gitorious # # 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 witho...
codeparrot/github-code-clean
# May you do good and not evil # May you find forgiveness for yourself and forgive others # May you share freely, never taking more than you give. -- SQLite source code # # As we enjoy great advantages from the inventions of others, we should be glad # of an opportunity to serve others by an invention of ours, and thi...
codeparrot/github-code-clean
"""JSON implementations of grading managers.""" # pylint: disable=no-init # Numerous classes don't require __init__. # pylint: disable=too-many-public-methods,too-few-public-methods # Number of methods are defined in specification # pylint: disable=protected-access # Access to protected methods allowed in ...
codeparrot/github-code-clean
# -*- coding: utf-8; -*- # # Copyright (C) 2011 Google Inc. All rights reserved. # Copyright (C) 2009 Torch Mobile Inc. # Copyright (C) 2009, 2013 Apple Inc. All rights reserved. # Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org) # # Redistribution and use in source and binary forms, with or without # modificat...
codeparrot/github-code-clean
# Author: Hubert Kario, (c) 2015 # Released under Gnu GPL v2.0, see LICENSE file for details try: import unittest2 as unittest except ImportError: import unittest try: import mock from mock import call except ImportError: import unittest.mock as mock from unittest.mock import call import sock...
codeparrot/github-code-clean
#!/usr/bin/python # -*- encoding: utf-8; py-indent-offset: 4 -*- # +------------------------------------------------------------------+ # | ____ _ _ __ __ _ __ | # | / ___| |__ ___ ___| | __ | \/ | |/ / | # | | | | '_ \ / _ \/ __| |/ /...
codeparrot/github-code-clean
#!/usr/bin/env python """ Ben Payne ben.is.located@gmail.com Yoga graph This file contains two functions called by the main YogaGraph program: -pose_properties: contains information about the pose -pose_transitions: set of edges on the graph This work is licensed under the Creative Commons Attribution-ShareAlike 4.0...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- """ **ibl_sets_outliner.py** **Platform:** Windows, Linux, Mac Os X. **Description:** Defines the :class:`IblSetsOutliner` Component Interface class. **Others:** """ from __future__ import unicode_literals import functools import os import platform import re ...
codeparrot/github-code-clean
#!/usr/bin/env python ''' File name: main_make_mucleus_TSNE.py Author: Guillaume Viejo Date created: 28/09/2017 Python Version: 3.5.2 ''' import numpy as np import pandas as pd # from matplotlib.pyplot import plot,show,draw import scipy.io from functions import * from pylab import * from sklearn.decomposit...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software ...
codeparrot/github-code-clean
""" Data objects in group "Node" """ from collections import OrderedDict import logging from pyidf.helper import DataObject logger = logging.getLogger("pyidf") logger.addHandler(logging.NullHandler()) class Branch(DataObject): """ Corresponds to IDD object `Branch` List components on the branch in sim...
codeparrot/github-code-clean
#!/usr/bin/env python ## WARNING: This file is generated #!/usr/bin/env python """Create a "virtual" Python installation """ # If you change the version here, change it in setup.py # and docs/conf.py as well. __version__ = "1.9.1" # following best practices virtualenv_version = __version__ # legacy, again import ba...
codeparrot/github-code-clean
# Generated by Django 2.2.1 on 2019-05-09 23:10 import datetime from decimal import Decimal import django.contrib.gis.db.models.fields import django.core.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone from django.utils.timezone import utc import gwells...
codeparrot/github-code-clean
""" Tests for the stats.mstats module (support for masked arrays) """ from __future__ import division, print_function, absolute_import import warnings import numpy as np from numpy import nan import numpy.ma as ma from numpy.ma import masked, nomask import scipy.stats.mstats as mstats from scipy import stats from .c...
codeparrot/github-code-clean
from __future__ import division """ Apply smoothing to rate computation [Longer Description] Author(s): Myunghwa Hwang mhwang4@gmail.com David Folch dfolch@asu.edu Luc Anselin luc.anselin@asu.edu Serge Rey srey@asu.edu """ __author__ = "Myunghwa Hwang <mhwang4@gmail.com>, David Folch <dfolch@asu.edu...
codeparrot/github-code-clean
import collections from functools import reduce from types import FunctionType from ..core import (Add, Atom, Basic, Dummy, Expr, Float, I, Integer, Pow, Symbol, count_ops, ilcm, oo, symbols, sympify) from ..core.compatibility import as_int, default_sort_key, is_sequence from ..core.logic import fu...
codeparrot/github-code-clean
""" This module stores all the default setting of ToFu Including in particular computing parameters, dictionnaries and figures """ #import matplotlib #matplotlib.use('WxAgg') #matplotlib.interactive(True) import matplotlib.pyplot as plt from matplotlib.path import Path from mpl_toolkits.mplot3d import Axes3D import n...
codeparrot/github-code-clean
"""Augmenters that apply affine or similar transformations. List of augmenters: * :class:`Affine` * :class:`ScaleX` * :class:`ScaleY` * :class:`TranslateX` * :class:`TranslateY` * :class:`Rotate` * :class:`ShearX` * :class:`ShearY` * :class:`AffineCv2` * :class:`PiecewiseAffine...
codeparrot/github-code-clean
from __future__ import division, print_function import numpy as np from scipy import linalg from functools import partial from itertools import product import warnings from sklearn import datasets from sklearn import svm from sklearn.datasets import make_multilabel_classification from sklearn.preprocessing import la...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- """Tests for Beautiful Soup's tree traversal methods. The tree traversal methods are the main advantage of using Beautiful Soup over just using a parser. Different parsers will build different Beautiful Soup trees given the same markup, but all Beautiful Soup trees can be traversed with the me...
codeparrot/github-code-clean
from __future__ import (absolute_import, division, print_function, unicode_literals) from matplotlib.externals import six from matplotlib.externals.six.moves import xrange import itertools import warnings import math from operator import itemgetter import numpy as np from numpy import ma imp...
codeparrot/github-code-clean
#!/usr/bin/env python """Create a "virtual" Python installation """ virtualenv_version = "1.5" import sys import os import optparse import re import shutil import logging import tempfile import distutils.sysconfig try: import subprocess except ImportError, e: if sys.version_info <= (2, 3): print 'ERRO...
codeparrot/github-code-clean
# This software was developed at the National Institute of Standards # and Technology in whole or in part by employees of the Federal # Government in the course of their official duties. Pursuant to # title 17 Section 105 of the United States Code portions of this # software authored by NIST employees are not subject ...
codeparrot/github-code-clean
#-*- coding:utf-8 -*- from builtins import range from future.utils import viewitems import logging from pyparsing import * from miasm.expression.expression import * from miasm.core.cpu import * from collections import defaultdict from miasm.core.bin_stream import bin_stream import miasm.arch.arm.regs as regs_module f...
codeparrot/github-code-clean
#!/usr/bin/env python import gc import gtk, gobject, os.path, time, os, sys, re, threading, gtk.gdk, Image, StringIO, pango, string import types import xml.sax.saxutils, pango import exporters.exportManager import convert, types from recindex import RecIndex import prefs import keymanager, Undo from gtk_extras import W...
codeparrot/github-code-clean
#################################################################################################### # cmag.py # Cortical magnification caclculation code and utilities. # by Noah C. Benson import os, sys, six, pimms import numpy as np import scipy as sp import scipy.sparse as sps import numpy...
codeparrot/github-code-clean
import datetime import re from decimal import * from operator import attrgetter from django.db import models from django.contrib.auth.models import User from django.utils.translation import ugettext_lazy as _ from django.core.exceptions import ValidationError from django.contrib.contenttypes.models import ContentType ...
codeparrot/github-code-clean
""" Cisco_IOS_XR_asr9k_policymgr_cfg This module contains a collection of YANG definitions for Cisco IOS\-XR ASR9k policy manager configuration. Copyright (c) 2013, 2015 by Cisco Systems, Inc. All rights reserved. """ import re import collections from enum import Enum from ydk.types import Empty, YList, YLeafLi...
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 2014-2018 Intel Corporation # # 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.apa...
codeparrot/github-code-clean
# Distutils command to create OSX installer packages # # Notes: Receipts in /var/db/receipts import sys, os, os.path, subprocess, shutil, base64 from distutils.core import Command from distutils.util import get_platform from distutils.dir_util import remove_tree from distutils.errors import * from distutils.sysconfig ...
codeparrot/github-code-clean
"""Test various algorithmic properties of selectables.""" from sqlalchemy.testing import eq_, assert_raises, \ assert_raises_message, is_ from sqlalchemy import * from sqlalchemy.testing import fixtures, AssertsCompiledSQL, \ AssertsExecutionResults from sqlalchemy import testing from sqlalchemy.sql import uti...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- #---------------------------------------------------------------------------- # Name: maskededit.py # Authors: Will Sadkin, Jeff Childers # Email: wsadkin@parlancecorp.com, jchilders_98@yahoo.com # Created: 02/11/2003 # Copyright: (c) 2003 by Jeff Childers, Will Sadki...
codeparrot/github-code-clean
# This file is part of the Printrun suite. # # Printrun 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. # # Printrun is distributed in ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- ''' Torrent-tv.ru Playlist Downloader Plugin configuration file ''' # Insert your Torrent-tv.ru playlist URL here (from http://torrent-tv.ru/c_playlist.php) url = '' # TV Guide URL tvgurl = 'http://api.torrent-tv.ru/ttv.xmltv.xml.gz' # Shift the TV Guide time to the specified number of hours...
codeparrot/github-code-clean
# -*- encoding: utf-8 -*- """ H2O data frame. :copyright: (c) 2016 H2O.ai :license: Apache License Version 2.0 (see LICENSE for details) """ from __future__ import absolute_import, division, print_function, unicode_literals import csv import datetime import functools import os import sys import tempfile import trac...
codeparrot/github-code-clean
""" Python interface to Midas 2K OPAL file format. Uses the mite or M2kinter module for read/write paths if available. Supports data in IEEE big and little endian formats only. Supports bit data only if t is accessed on byte boundaries and returns it as a single string. An Opal file is imported as a dictionary with t...
codeparrot/github-code-clean
# Docstrings for generated ufuncs # # The syntax is designed to look like the function add_newdoc is being # called from numpy.lib, but in this file add_newdoc puts the # docstrings in a dictionary. This dictionary is used in # generate_ufuncs.py to generate the docstrings for the ufuncs in # scipy.special at the C lev...
codeparrot/github-code-clean
import sys import numpy import collections import math import copy from amuse.datamodel import particle_attributes from amuse.datamodel import trees from amuse.datamodel import Particles from amuse.rfi.core import is_mpd_running from amuse.ic.plummer import new_plummer_model from amuse.ic.salpeter import new_salpeter_...
codeparrot/github-code-clean
# -*-mode: python; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*- # # $Id$ # # Tix.py -- Tix widget wrappers. # # For Tix, see http://tix.sourceforge.net # # - Sudhir Shenoy (sshenoy@gol.com), Dec. 1995. # based on an idea of Jean-Marc Lugrin (lugrin@ms.com) # # NOTE: In order to minimi...
codeparrot/github-code-clean
#!/c/Python25 python #--------------------------------------------------------------------------------------- """ LS Connectivity - LandScape Connectivity Calculator Version 0.9 John W. Ribeiro - jw.ribeiro.rc@gmail.com Bernardo B. S. Niebuhr - bernardo_brandaum@yahoo.com.br Milton C. Ribeiro - mcr@rc.un...
codeparrot/github-code-clean
from boxbranding import getBoxType from time import localtime, mktime from datetime import datetime import xml.etree.cElementTree from os import path from enigma import eDVBSatelliteEquipmentControl as secClass, \ eDVBSatelliteLNBParameters as lnbParam, \ eDVBSatelliteDiseqcParameters as diseqcParam, \ eDVBSatellit...
codeparrot/github-code-clean
# written by: Ioannis Paraskevakos # tested by: Ioannis Paraskevakos # debugged by: Ioannis Paraskevakos hashtable=[{'name':'New York, NY','lat':40.71,'long':-73.99}, {'name':'Los Angeles, CA','lat':34,'long':-118.25}, {'name':'Chicago, IL','lat':41.83,'long':-87.68}, {'name':'Houston, TX','lat':29.76,'long':-95.38}, {...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2021 Satpy developers # # This file is part of satpy. # # satpy 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...
codeparrot/github-code-clean
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: # Copyright 2014-2020 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # This file is part of qutebrowser. # # qutebrowser 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 Sof...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'mainwindow_netcdf.ui' # # Created by: PyQt5 UI code generator 5.6 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets from functions.gui_elements import PushButtonRight class Ui_MainWindow(ob...
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) Microsoft. 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.apa...
codeparrot/github-code-clean
# Copyright 2013 Josh Durgin # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
codeparrot/github-code-clean
""" Manage Local Policy on Windows This module allows configuring local group policy (i.e. ``gpedit.msc``) on a Windows server. .. versionadded:: 2016.11.0 Administrative Templates ======================== Administrative template policies are dynamically read from ADMX/ADML files on the server. Windows Settings ==...
codeparrot/github-code-clean
from __future__ import division, absolute_import, print_function import collections import tempfile import sys import shutil import warnings import operator import io import itertools import ctypes if sys.version_info[0] >= 3: import builtins else: import __builtin__ as builtins from decimal import Decimal i...
codeparrot/github-code-clean
# Licensed under a 3-clause BSD style license - see LICENSE.rst from collections import OrderedDict import pytest import numpy as np from astropy.tests.helper import catch_warnings from astropy.table import Table, QTable, TableMergeError, Column, MaskedColumn from astropy.table.operations import _get_out_class from...
codeparrot/github-code-clean
# # cmap.py -- color maps for fits viewing # # Eric Jeschke (eric@naoj.org) # # Copyright (c) Eric R. Jeschke. All rights reserved. # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # # Some built in colormaps cmap_soss = ( (0.000000, 0.000000, 0.000000),...
codeparrot/github-code-clean
# This file is part of Invenio. # Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 CERN. # # Invenio is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # Lice...
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
""" Base classes for the Unified Font Objects (UFO), a series of classes that deal with fonts, glyphs, contours and related things. Unified Font Objects are: - platform independent - application independent About Object Inheritance: objectsFL and objectsRF objects inherit methods and attributes from these objects. I...
codeparrot/github-code-clean
""" This module contains a set of functions for vectorized string operations and methods. .. note:: The `chararray` class exists for backwards compatibility with Numarray, it is not recommended for new development. Starting from numpy 1.4, if one needs arrays of strings, it is recommended to use arrays of ...
codeparrot/github-code-clean
#!/usr/bin/python2.4 # # Copyright 2007 The Python-Twitter Developers # # 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
# coding: utf-8 from sqlalchemy.testing.assertions import eq_, assert_raises, \ assert_raises_message, is_, AssertsExecutionResults, \ AssertsCompiledSQL, ComparesTables from sqlalchemy.testing import engines, fixtures from sqlalchemy import testing import datetime from sqlalchemy import Table, MetaData, Column...
codeparrot/github-code-clean
""" Generate and compile C modules for Python. """ from __future__ import print_function import atexit import six.moves.cPickle as pickle import logging import os import re import shutil import stat import subprocess import sys import tempfile import time import platform import distutils.sysconfig import warnings im...
codeparrot/github-code-clean
#!/usr/bin/env python3 # Copyright (c) 2016 The Stardust Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.mininode import * from test_framework.test_framework import StardustTestFramework from te...
codeparrot/github-code-clean