text
stringlengths
5.09k
178k
domain
stringclasses
106 values
# Copyright (C) 2012,2013 Nippon Telegraph and Telephone Corporation. # Copyright (C) 2012 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 # # ht...
codeparrot/github-code-clean
#!/usr/bin/env python # # Generated by generateDS.py. # import sys import getopt from string import lower as str_lower from xml.dom import minidom from xml.dom import Node # # User methods # # Calls to the methods in these classes are generated by generateDS.py. # You can replace these methods by re-implementing th...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- from __future__ import with_statement import base64 import datetime import json import os from django import http from django.conf import settings from django.conf.urls import url from django.contrib import admin from django.core import urlresolvers from django.core.cache import cache from djan...
codeparrot/github-code-clean
import datetime import json import unittest from unittest.mock import Mock import pytz from django.conf import settings from django.contrib.auth import get_user_model from django.contrib.auth.models import AnonymousUser from django.contrib.contenttypes.models import ContentType from django.core.exceptions import Val...
codeparrot/github-code-clean
''' SASSIE: Copyright (C) 2011 Joseph E. Curtis, Ph.D. 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
# 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
""" ======================================================== Hierarchical clustering (:mod:`scipy.cluster.hierarchy`) ======================================================== .. currentmodule:: scipy.cluster.hierarchy These functions cut hierarchical clusterings into flat clusterings or find the roots of the forest f...
codeparrot/github-code-clean
# Copyright (c) 2013 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 ...
codeparrot/github-code-clean
""" Module contains tools for processing files into DataFrames or other objects """ from __future__ import print_function from collections import defaultdict import re import csv import sys import warnings import datetime from textwrap import fill import numpy as np from pandas import compat from pandas.compat import...
codeparrot/github-code-clean
# schema.py # Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Michael Bayer # mike_mp@zzzcomputing.com # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """The schema module provides the building blocks for database metadata. Each elemen...
codeparrot/github-code-clean
# pylint: disable-msg=W0401,W0511,W0611,W0612,W0614,R0201,E1102 """Tests suite for MaskedArray & subclassing. :author: Pierre Gerard-Marchant :contact: pierregm_at_uga_dot_edu """ from __future__ import division, absolute_import, print_function __author__ = "Pierre GF Gerard-Marchant" import warnings import pickle i...
codeparrot/github-code-clean
#! /usr/bin/env python ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- # # Copyright (c) 2009 University of Washington # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free ...
codeparrot/github-code-clean
""" Integral Transforms """ from __future__ import print_function, division from sympy.core import S from sympy.core.compatibility import reduce, range from sympy.core.function import Function from sympy.core.numbers import oo from sympy.core.symbol import Dummy from sympy.integrals import integrate, Integral from sy...
codeparrot/github-code-clean
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Provides an interface to communicate with the device via the adb command. Assumes adb binary is currently on system path. """ # pylint: disable-all ...
codeparrot/github-code-clean
__author__ = 'htelg' import warnings as _warnings from copy import deepcopy as _deepcopy import atmPy.general.vertical_profile import pandas as _pd import numpy as _np import matplotlib.pylab as _plt from atmPy.tools import pandas_tools as _pandas_tools from atmPy.tools import time_tools as _time_tools from atmPy.to...
codeparrot/github-code-clean
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class YAxis(_BaseLayoutHierarchyType): # class properties # -------------------- _parent_path_str = "layout.scene" _path_str = "layout.scene.yaxis" _valid_props = { "autorange", ...
codeparrot/github-code-clean
from sqlalchemy.testing import eq_, assert_raises, assert_raises_message import operator from sqlalchemy import * from sqlalchemy import exc as sa_exc, util from sqlalchemy.sql import compiler, table, column from sqlalchemy.engine import default from sqlalchemy.orm import * from sqlalchemy.orm import attributes from s...
codeparrot/github-code-clean
# run this code from terminal useing 'run -i Create_Library' import time import KAM import numpy as np reload(KAM) start = time.time() temp = KAM.thermometry() swp = KAM.sweep() path = '/Users/miguel_daal/Desktop/Some_Data/' Find_Temperatures = 0 Cable_Calibration = 1 Run53ab = 1 Run52b = 0 Run51a = 0 Run51b = 0 Ru...
codeparrot/github-code-clean
from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Box(_BaseTraceType): # class properties # -------------------- _parent_path_str = "" _path_str = "box" _valid_props = { "alignmentgroup", "boxmean", "boxpoints", "customdata...
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 -*- ## BibIndxes bibliographic data, reference and fulltext indexing utility. ## ## This file is part of CDS Invenio. ## Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 CERN. ## ## CDS Invenio is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Pub...
codeparrot/github-code-clean
#!/usr/bin/env python #============================================================================================= # MODULE DOCSTRING #============================================================================================= """ Test YAML functions. """ #=======================================================...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated Tue Jan 25 13:17:29 2011 by generateDS.py version 2.3b. # import sys import getopt import re as re_ etree_ = None Verbose_import_ = False ( XMLParser_import_none, XMLParser_import_lxml, XMLParser_import_elementtree ) = range(3) XMLParser_import_l...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- '''Views tests for the OSF.''' from __future__ import absolute_import import unittest import json import datetime as dt import mock import httplib as http import math import time from nose.tools import * # noqa PEP8 asserts from tests.test_features import requires_search...
codeparrot/github-code-clean
""" pygments.lexers._openedge_builtins ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Builtin list for the OpenEdgeLexer. :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ OPENEDGEKEYWORDS = ( 'ABS', 'ABSO', 'ABSOL', 'ABSOLU', '...
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
#!/usr/bin/python # -*- coding: utf-8 -*- import numpy as np import scipy.ndimage from scipy import stats from scipy.fftpack import fft, fftfreq, fftshift import os, sys import gc from os import listdir from os.path import isfile,join import gtk import matplotlib as mpl import matplotlib.pyplot as plt #mpl.use('GtkAgg'...
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
# Copyright (c) 2015 Infortrend Technology, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
codeparrot/github-code-clean
# sql/sqltypes.py # Copyright (C) 2005-2017 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 """SQL specific types. """ import datetime as dt import codecs import collections ...
codeparrot/github-code-clean
from __future__ import division, absolute_import, print_function import sys import warnings import itertools import platform from decimal import Decimal import numpy as np from numpy.core import umath from numpy.random import rand, randint, randn from numpy.testing import ( TestCase, run_module_suite, assert_, as...
codeparrot/github-code-clean
# coding: utf8 { ' (leave empty to detach account)': ' (leave empty to detach account)', ' Module is the main communications hub of the Sahana system. It is used to send alerts and/or messages using SMS & Email to various groups and individuals before, during and after a disaster.': ' Module is the main communicatio...
codeparrot/github-code-clean
#!/usr/bin/env python3 # SPDX-License-Identifier: LGPL-2.1-or-later # systemd-networkd tests import argparse import itertools import os import re import shutil import signal import subprocess import sys import time import unittest from shutil import copytree network_unit_file_path='/run/systemd/network' networkd_runt...
codeparrot/github-code-clean
#! /usr/bin/python2.7 """Read/write support for Maildir, mbox, MH, Babyl, and MMDF mailboxes.""" # Notes for authors of new mailbox subclasses: # # Remember to fsync() changes to disk before closing a modified file # or returning from a flush() method. See functions _sync_flush() and # _sync_close(). import sys imp...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Copyright 2009-2010 10gen, 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 ...
codeparrot/github-code-clean
########################### BEGIN GPL LICENSE BLOCK ########################### # # THE VIDEO EDITOR'S RENDER SCRIPT FOR BLENDER (2.78C and Lower) # Copyright (C) 2017 Mike Meyers # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public Li...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Copyright 2008-2015 Canonical # Copyright 2015-2018 Chicharreros (https://launchpad.net/~chicharreros) # # 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 ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
codeparrot/github-code-clean
# -*- coding: iso-8859-15 -*- # This program is public domain # Author: Paul Kienzle u""" Adds average mass for the elements: * mass, mass_units (u) The molar mass averaged over natural isotope abundance. Adds mass and abundance information for isotopes: * mass, mass_units (u) The molar mass...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- ''' Utility functions for salt.cloud ''' # Import python libs from __future__ import absolute_import import os import sys import stat import codecs import shutil import hashlib import socket import tempfile import time import subprocess import multiprocessing import logging import pipes import ...
codeparrot/github-code-clean
import inspect from datetime import datetime import numpy as np import pandas as pd import pytest import xarray as xr import xarray.plot as xplt from xarray import DataArray, Dataset from xarray.plot.dataset_plot import _infer_meta_data from xarray.plot.plot import _infer_interval_breaks from xarray.plot.utils import...
codeparrot/github-code-clean
# Copyright 2017,2018 IBM Corp. # # 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 agr...
codeparrot/github-code-clean
###### ###### channels_base.py called diversions.update() COMMENTED OUT !!!!! ## Copyright (c) 2001-2014, Scott D. Peckham ## ## Jan 2013. Revised handling of input/output names. ## ## Oct 2012. CSDMS Standard Names and BMI. ## ## May 2012. Q_outlet -> Q_outlet[0] (5/19/12) ## ## May 2010. Changes to initialize() ...
codeparrot/github-code-clean
# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com> # # This file is part of Ansible # # Ansible 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 lat...
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
"""Metrics to assess performance on classification task given scores. Functions named as ``*_score`` return a scalar value to maximize: the higher the better. Function named as ``*_error`` or ``*_loss`` return a scalar value to minimize: the lower the better. """ # Authors: Alexandre Gramfort <alexandre.gramfort@inr...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- """QGIS Unit tests for the postgres provider. Note: to prepare the DB, you need to run the sql files specified in tests/testdata/provider/testdata_pg.sh Read tests/README.md about writing/launching tests with PostgreSQL. Run with ctest -V -R PyQgsPostgresProvider .. note:: This program is fr...
codeparrot/github-code-clean
# Copyright (c) 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...
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 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
# # 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
"""Lite version of scipy.linalg. Notes ----- This module is a lite version of the linalg.py module in SciPy which contains high-level Python interface to the LAPACK library. The lite version only accesses the following LAPACK functions: dgesv, zgesv, dgeev, zgeev, dgesdd, zgesdd, dgelsd, zgelsd, dsyevd, zheevd, dgetr...
codeparrot/github-code-clean
nomes_list = [ "Aaren" , "Aarika" , "Abagael" , "Abagail" , "Abbe" , "Abbey" , "Abbi" , "Abbie" , "Abby" , "Abbye" , "Abigael" , "Abigail" , "Abigale" , "Abra" , "Ada" , "Adah" , "Adaline" , "Adan" , "Adara" , "Adda" , "Addi" , "Addia" , "Addie" , "Addy" , "Adel" , "Adela" , "Adelaida" , "Adelaide" , "Adele" , "Adelhei...
codeparrot/github-code-clean
import bisect import bucket import cross_bundle_bucket import pairedread import copy import random import time class Alignments: ''' A set of reads aligned to a genome ''' def __init__(self, chromosomes, frag_len_cutoff=None, split_discordant=True): ''' Initialize a genome for alignments ...
codeparrot/github-code-clean
# # # Copyright 2013-2021 Ghent University # # This file is part of EasyBuild, # originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), # with support of Ghent University (http://ugent.be/hpc), # the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be), # Flemish Research Foundation (...
codeparrot/github-code-clean
# pylint: disable=E1101,E1103,W0232 from datetime import datetime, timedelta from pandas.compat import range, lrange, lzip, u, zip import operator import pickle import re import nose import warnings import os import numpy as np from numpy.testing import assert_array_equal from pandas.core.index import (Index, Float6...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- # This is a port of the original in testprogs/ejs/ldap.js import optparse import sys import os sys.path.insert(0, "bin/python") import samba samba.ensure_external_module("testtools", "testtools") samba.ensure_external_module("subunit", "subunit/python") import samba.geto...
codeparrot/github-code-clean
import sys from traceHandler import sizeError try: import matplotlib.pyplot as plt from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas from matplotlib.figure import Figure except RuntimeError as re: print(re) sys.exit() #from inspyred.ec import analysis from inspyred.ec.analysis ...
codeparrot/github-code-clean
# Copyright (C) Jean-Paul Calderone # See LICENSE for details. """ Unit tests for :mod:`OpenSSL.SSL`. """ import datetime import sys import uuid from gc import collect, get_referrers from errno import ECONNREFUSED, EINPROGRESS, EWOULDBLOCK, EPIPE, ESHUTDOWN from sys import platform, getfilesystemencoding, version_in...
codeparrot/github-code-clean
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010-2011 OpenStack LLC. # 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 o...
codeparrot/github-code-clean
#! coding:utf-8 from test.lib.testing import eq_, is_, assert_raises, assert_raises_message import datetime, re, operator, decimal from sqlalchemy import * from sqlalchemy import exc, sql, util, types, schema from sqlalchemy.sql import table, column, label, compiler from sqlalchemy.sql.expression import ClauseList, _l...
codeparrot/github-code-clean
COUNTRY_MAPPING = { 380: "country_FYR", 272: "country_VAT", 233: "country_COT", 238: "country_DCO", 301: "country_MAC", 313: "country_MIC", 428: "country_PLE", 348: "country_RUS", 282: "country_ISR", 375: "country_SYR", 378: "country_TZA", 403: "country_WAL", 402: "co...
codeparrot/github-code-clean
""" Font Bakery CheckRunner is the driver of a font bakery suite of checks. Separation of Concerns Disclaimer: While created specifically for checking fonts and font-families this module has no domain knowledge about fonts. It can be used for any kind of (document) checking. Please keep it so. It will be valuable for...
codeparrot/github-code-clean
import glob import gzip import os import os.path import subprocess import sys import tables import numpy as np import find_intersecting_snps def read_bam(bam): """ Read a bam file into a list where each element of the list is a line from the bam file (with the newline stripped). The header is discarded. ...
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
# Version: 6.2 # Architecture: i386 from past.builtins import xrange import vstruct from vstruct.primitives import * KPROCESS_STATE = v_enum() KPROCESS_STATE.ProcessInMemory = 0 KPROCESS_STATE.ProcessOutOfMemory = 1 KPROCESS_STATE.ProcessInTransition = 2 KPROCESS_STATE.ProcessOutTransition = 3 KPROCESS_STATE.ProcessI...
codeparrot/github-code-clean
import logging from typing import Union, Optional, List, Dict, Type from collections import defaultdict import claripy import archinfo from archinfo import RegisterName from .sim_type import SimType, SimTypeChar, SimTypePointer, SimTypeFixedSizeArray, SimTypeArray, SimTypeString, \ SimTypeFunction, SimTypeFloat, ...
codeparrot/github-code-clean
"""Functions to make simple plot on evoked M/EEG data (besides topographies) """ from __future__ import print_function # Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Denis Engemann <denis.engemann@gmail.com> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # Eric Lars...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- """QGIS Unit tests for QgsVectorLayer. .. note:: This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. """ __...
codeparrot/github-code-clean
"""A high-speed, production ready, thread pooled, generic HTTP server. Simplest example on how to use this module directly (without using CherryPy's application machinery):: from cherrypy import wsgiserver def my_crazy_app(environ, start_response): status = '200 OK' response_headers = [('...
codeparrot/github-code-clean
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2017 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
codeparrot/github-code-clean
# # The Python Imaging Library. # $Id$ # # TIFF file handling # # TIFF is a flexible, if somewhat aged, image file format originally # defined by Aldus. Although TIFF supports a wide variety of pixel # layouts and compression methods, the name doesn't really stand for # "thousands of incompatible file formats," it jus...
codeparrot/github-code-clean
# Generated by ../generate_parser.py """ # Grammar definition: ``` import textwrap ``` ignored Space = /[ \\t]+/ ignored Comment = /#[^\\r\\n]*/ Newline = /[\\r\\n][\\s]*/ LineSep = Some(Newline | ";") Name = /[_a-zA-Z][_a-zA-Z0-9]*/ Comma = wrap(",") wrap(x) => Skip(Newline) >> x << Skip(Newline) # Parse a full wo...
codeparrot/github-code-clean
#!/usr/bin/env python # # update_tests.py: testing update cases. # # Subversion is a tool for revision control. # See http://subversion.tigris.org for more information. # # ==================================================================== # Copyright (c) 2000-2009 CollabNet. All rights reserved. # # This softwa...
codeparrot/github-code-clean
from __future__ import absolute_import, unicode_literals import json import time import urlparse from datetime import timedelta from uuid import uuid4 from urllib import quote_plus import os import phonenumbers import plivo import requests from django.contrib.auth.models import User, Group from django.core.urlresolve...
codeparrot/github-code-clean
#!/usr/bin/env python # # Copyright (C) Citrix Systems Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free Software Foundation; version 2.1 only. # # This program is distributed in the hope that it will ...
codeparrot/github-code-clean
# # Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. # # # Opserver # # Operational State Server for VNC # from gevent import monkey monkey.patch_all() import sys import json import socket import time import copy import traceback import signal import random import hashlib import ConfigParser import logg...
codeparrot/github-code-clean
# The minimal basis sets used by Molpro. # # Comments from Molpro # # ! These are minimal basis sets created by taking the first # ! nOcc contracted functions out of the cc-pVTZ or cc-pVTZ-PP # ! basis sets. They are intended as auxiliary sets for SCF # ! convergence experiments and atomic density guess purposes. # ! S...
codeparrot/github-code-clean
# # 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. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file...
codeparrot/github-code-clean
# Copyright (c) 2018 The Johns Hopkins University/Applied Physics Laboratory # 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/LICEN...
codeparrot/github-code-clean
# Copyright 2015 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 required by applicable law or agreed ...
codeparrot/github-code-clean
from __future__ import division, absolute_import, print_function import os import sys import warnings import collections from numpy.core import multiarray from . import umath from .umath import (invert, sin, UFUNC_BUFSIZE_DEFAULT, ERR_IGNORE, ERR_WARN, ERR_RAISE, ERR_CALL, ERR_PRINT, ERR_LOG, ...
codeparrot/github-code-clean
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Unit tests for cache framework # Uses whatever cache backend is set in the test settings file. from __future__ import unicode_literals import os import re import shutil import tempfile import threading import time import unittest import warnings from django.conf import settings from django....
codeparrot/github-code-clean
""" Test functions for stats module """ from __future__ import division, print_function, absolute_import import warnings import re import sys from numpy.testing import (TestCase, run_module_suite, assert_equal, assert_array_equal, assert_almost_equal, assert_array_almost_equal, assert_allclose, assert_, asse...
codeparrot/github-code-clean
#!/usr/bin/env python3 # # Unit tests for the multiprocessing package # import unittest import queue as pyqueue import time import io import sys import os import gc import errno import signal import array import socket import random import logging import test.support import test.script_helper # Skip tests if _multi...
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
import concurrent.futures import json import time import traceback from copy import deepcopy from typing import Callable, Dict, List, Optional from urllib import parse import requests import urllib3 from requests.exceptions import HTTPError import demistomock as demisto from CommonServerPython import * from CommonSer...
codeparrot/github-code-clean
""" Module simplifying manipulation of XML described at http://libvirt.org/formatdomain.html """ import logging import platform import re from .. import xml_utils from .. import utils_misc from ..libvirt_xml import base, accessors, xcepts from ..libvirt_xml.devices import librarian class VMXMLDevices(list): ""...
codeparrot/github-code-clean
# # Copyright 2009-2011 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed ...
codeparrot/github-code-clean
#!/usr/bin/env python # This file is part of nexdatas - Tango Server for NeXus data writer # # Copyright (C) 2012-2017 DESY, Jan Kotanski <jkotan@mail.desy.de> # # nexdatas is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- """ Éditeur de Spyder Portagee de la detection de tige de Olivier (en matlab) vers python Regroupe les differentes fonctions pour le traitements des images de la manip du gravitron. Version: 2.0.2 Date: 14/12/2015 Modif ----- 15/12/2015 Hugo: Changement du seuil de l'auto detection de 0.1 à...
codeparrot/github-code-clean
# coding=utf8 # Simon's attempts to make a single feature selection pipeline from __future__ import print_function # from Queue import PriorityQueue import numpy as np import sys, os import re import json # sys.path.append('/Users/simon/git/efcompute') # from ef_assigner import ef_assigner # from formula import Formula...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # # Copyright (C) 2013 Tommy Winther # http://tommy.winther.nu # # Modified for FTV Guide (09/2014 onwards) # by Thomas Geppert [bluezed] - bluezed.apps@gmail.com # # Modified for TV Guide Fullscreen (2016) # by primaeval - primaeval.dev@gmail.com # # This Program ...
codeparrot/github-code-clean
# Amara, universalsubtitles.org # # Copyright (C) 2013 Participatory Culture Foundation # # 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 op...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- """ Instructor Dashboard API views JSON views which the instructor dashboard requests. Many of these GETs may become PUTs in the future. """ import StringIO import json import logging import re import time import requests from django.conf import settings from django.views.decorators.csrf impo...
codeparrot/github-code-clean
# Copyright 2015 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 agreed to in writing, s...
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 2015-2016 Nervana 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.apa...
codeparrot/github-code-clean