text
stringlengths
5.09k
178k
domain
stringclasses
106 values
##################################################################### # -*- coding: iso-8859-1 -*- # # # # Frets on Fire # # Copyright (C) 2006 Sami Kyöstil? ...
codeparrot/github-code-clean
# Copyright © 2011-2019 Red Hat, Inc. and others. # # This file is part of Bodhi. # # 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 lat...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Resource object code # # Created: śr. lut 24 11:58:15 2016 # by: The Resource Compiler for PyQt (Qt v5.2.1) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x0a\xba\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\...
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. from collections import defaultdict import operator import re import string import textwrap ...
codeparrot/github-code-clean
######################################################################## # File name: test_node.py # This file is part of: aioxmpp # # LICENSE # # 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 Founda...
codeparrot/github-code-clean
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # Copyright (c) 2010 Citrix Systems, Inc. # Copyright (c) 2011 Piston Cloud Computing, Inc # Copyright (c) 2012 University Of Minho # (c) Copyright 2013 Hewlett-Pa...
codeparrot/github-code-clean
import base64 import os import re from collections import defaultdict from typing import Any, Callable, Dict, List, Sequence, Tuple from unittest import mock, skipUnless import orjson from django.conf import settings from django.contrib.auth.models import AnonymousUser from django.core.exceptions import ValidationErro...
codeparrot/github-code-clean
# Unicode property and category maps. from unicode import CodePointSet # Unicode code blocks: 68 blocks BlockMap = { 'AlphabeticPresentationForms' : CodePointSet( (0x00fb00, 0x00fb4f), ), 'Arabic' : CodePointSet( (0x000600, 0x0006ff), ), 'ArabicPresentationForms-A' : CodePointSet( (0x00fb50, ...
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() try: from collections import OrderedDict except ImportError: # python 2.6 or earlier, use backport from ordereddict import OrderedDict from ...
codeparrot/github-code-clean
########################################################################## # # Copyright (c) 2011-2012, John Haddon. All rights reserved. # Copyright (c) 2011-2013, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted prov...
codeparrot/github-code-clean
# This file is originally from Sage ( sagemath.org ) # I (Alex Clemesha) hold the original licence on it, with William Stein. # # It is included in codenode right now for 2 reasons: # 1) It is helping us get going quickly testing plotting with codenode. # 2) We hope to improve and generalize certain parts, then co...
codeparrot/github-code-clean
# ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2013, Numenta, Inc. Unless you have purchased from # Numenta, Inc. a separate commercial license for this software code, the # following terms and conditions apply: # # This pro...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- #------------------------------------------------------------ # pelisalacarta - XBMC Plugin # Canal para peliculasdk # http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/ #------------------------------------------------------------ import string import os import re import sys import urllib f...
codeparrot/github-code-clean
#!/usr/bin/env python # Copyright 2011 VMware, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
codeparrot/github-code-clean
# sql/selectable.py # Copyright (C) 2005-2016 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 :class:`.FromClause` class of SQL expression elements, representing SQL tab...
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
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (c) 2017 F5 Networks Inc. # 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': '1.1', ...
codeparrot/github-code-clean
# apis_v1/views/views_voter.py # Brought to you by We Vote. Be good. # -*- coding: UTF-8 -*- from apis_v1.controllers import voter_count from ballot.controllers import choose_election_and_prepare_ballot_data,voter_ballot_items_retrieve_for_api, \ voter_ballot_list_retrieve_for_api from ballot.models import BallotI...
codeparrot/github-code-clean
TRIPLE_SCORES = {} for index, triple in enumerate(""" ing$ ed$ es$ er$ ^co ^re ate ers$ ion$ ^de ^di ess$ atio ies$ tion ^ca ine ati ica te$ ted ^su ive ting ions$ ^ma tes ^pa ier$ ^mi ere ^ba al$ red iest$ ove era ^pe rat ic$ lly$ ^pro ble$ ring eri ty$ ^po est$ ent$ ^ha tions cat ity ^se ly$ lat able ^mo ina ene ^sa ...
codeparrot/github-code-clean
import os import os.path import pdb import math import time from types import * import threading import paramiko import pickle from cryptography.fernet import Fernet import shutil import string import wx import wx.lib.newevent import microdom import xml.dom.minidom from common import log import re import ntpath impo...
codeparrot/github-code-clean
# # ---------------------------------------------------------------------------------------------------- # # Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # This file is part of the Calibre-Web (https://github.com/janeczku/calibre-web) # Copyright (C) 2018-2019 OzzieIsaacs, cervinko, jkrehm, bodybybuddha, ok11, # andy29485, idalin, Kyosfonica, wuqi, Kennyl, lemmsh, # falgh1, grunjol, csitk...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- """ Test for lms courseware app, module render unit """ import ddt import itertools import json from nose.plugins.attrib import attr from functools import partial from bson import ObjectId from django.http import Http404, HttpResponse from django.core.urlresolvers import reverse from django.cor...
codeparrot/github-code-clean
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2018 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
# -*- coding: utf-8 -*- # Copyright 2010-2011 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/...
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
"""Module Description Copyright (c) 2008 H. Gene Shin <shin@jimmy.harvard.edu> This code is free software; you can redistribute it and/or modify it under the terms of the BSD License (see the file COPYING included with the distribution). @status: experimental @version: $Revision$ @author: H. Gene Shin @contact: ...
codeparrot/github-code-clean
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.7.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import sys import os im...
codeparrot/github-code-clean
""" Test functions for linalg.decomp module """ from __future__ import division, print_function, absolute_import __usage__ = """ Build linalg: python setup_linalg.py build Run tests if scipy is installed: python -c 'import scipy;scipy.linalg.test()' Run tests if linalg is not installed: python tests/test_decomp...
codeparrot/github-code-clean
"""The suite of window functions.""" import operator import warnings import numpy as np from scipy import linalg, special, fft as sp_fft __all__ = ['boxcar', 'triang', 'parzen', 'bohman', 'blackman', 'nuttall', 'blackmanharris', 'flattop', 'bartlett', 'hanning', 'barthann', 'hamming', 'kaiser',...
codeparrot/github-code-clean
# Copyright 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 requ...
codeparrot/github-code-clean
""" The :mod:`sklearn.model_selection._split` module includes classes and functions to split the data based on a preset strategy. """ # Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>, # Gael Varoquaux <gael.varoquaux@normalesup.org>, # Olivier Grisel <olivier.grisel@ensta.org> # Ragha...
codeparrot/github-code-clean
"""Metrics to assess performance on classification task given class prediction 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.gramf...
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
'''Pexpect is a Python module for spawning child applications and controlling them automatically. Pexpect can be used for automating interactive applications such as ssh, ftp, passwd, telnet, etc. It can be used to a automate setup scripts for duplicating software package installations on different servers. It can be u...
codeparrot/github-code-clean
r"""Functional interface""" from __future__ import division import warnings import math import types import torch from torch._C import _infer_size, _add_docstr from . import _reduction as _Reduction from . import _functions from .modules import utils from ._functions import vision from ._functions.thnn.fold import Co...
codeparrot/github-code-clean
from io import BytesIO from urllib.parse import urlparse, parse_qs import mock import pytest from dmapiclient import HTTPError, APIError from dmapiclient.audit import AuditTypes from dmutils.email.exceptions import EmailError from flask import current_app from freezegun import freeze_time from lxml import html from d...
codeparrot/github-code-clean
"""AuthZ Adapter implementations of learning sessions.""" # pylint: disable=no-init # Numerous classes don't require __init__. # pylint: disable=too-many-public-methods # Number of methods are defined in specification # pylint: disable=too-many-ancestors # Inheritance defined in specification from ...abs...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- """Tests for core functions.""" import copy import json import yaml from datetime import datetime from io import BytesIO import os from uuid import uuid4 from flask_login import current_user import pytest from orcid_hub.apis import yamlfy from orcid_hub.data_apis import plural from orcid_hub....
codeparrot/github-code-clean
#! /usr/bin/env python """ This page is in the table of contents. Fill is a script to fill the edges of a gcode file. The fill manual page is at: http://fabmetheus.crsndoo.com/wiki/index.php/Skeinforge_Fill Allan Ecker aka The Masked Retriever has written the "Skeinforge Quicktip: Fill" at: http://blog.thingiverse.co...
codeparrot/github-code-clean
# # Copyright 2009-2012 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
# -*- coding: utf-8 -*- import os from Tools.Profile import profile from Screen import Screen import Screens.InfoBar import Components.ParentalControl from Components.Button import Button from Components.ServiceList import ServiceList, refreshServiceList from Components.ActionMap import NumberActionMap, ActionMap, Hel...
codeparrot/github-code-clean
# ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2015, Numenta, Inc. Unless you have an agreement # with Numenta, Inc., for a separate license for this software code, the # following terms and conditions apply: # # This progra...
codeparrot/github-code-clean
#!/usr/bin/python3 import textwrap import sys import json import codecs import re import hashlib from datetime import datetime, timedelta, date from pprint import pprint,pformat import os import shutil import os.path hq=10 side='rebel' version=1048 verbosity=0 planet='planet1' xdate=date.today().isoformat() elements...
codeparrot/github-code-clean
#!/usr/bin/env python3 # # Copyright (c) 2016 The Hyve B.V. # This code is licensed under the GNU Affero General Public License (AGPL), # version 3, or (at your option) any later version. # # # This file is part of cBioPortal. # # cBioPortal is free software: you can redistribute it and/or modify # it under the terms...
codeparrot/github-code-clean
''' PLOTTING This file generates all the figure files -- either for use with the Python backend, or for the frontend via MPLD3. To add a new plot, you need to add it to getplotselections (in this file) so it will show up in the interface; plotresults (in gui.py) so it will be sent to the right spot; and then add the ...
codeparrot/github-code-clean
import functools import sys import warnings from collections import OrderedDict import numpy as np import pandas as pd from ..plot.plot import _PlotMethods from . import ( computation, dtypes, groupby, indexing, ops, resample, rolling, utils) from .accessors import DatetimeAccessor from .alignment import align, r...
codeparrot/github-code-clean
""" DataFrame --------- An efficient 2D container for potentially mixed-type time series or other labeled data series. Similar to its R counterpart, data.frame, except providing automatic data alignment and a host of useful data manipulation methods having to do with the labeling information """ import collections fr...
codeparrot/github-code-clean
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers import pybindgen.settings import warnings class ErrorHandler(pybindgen.settings.ErrorHandler): def handle_error(self, wrapper, exception, traceback_): warnings.warn("exception %r in wrapper %s" % (exception, wrapper)) ...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- #------------------------------------------------------------------- # Filename: obspyck.py # Purpose: ObsPyck main program # Author: Tobias Megies, Lion Krischer # Email: megies@geophysik.uni-muenchen.de # License: GPLv2 # # Copyright (C) 2010 Tobias Megies, Lion Kr...
codeparrot/github-code-clean
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
codeparrot/github-code-clean
# Copyright (C) 2012 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 ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- tests = r""" >>> from django.forms import * >>> from django.core.files.uploadedfile import SimpleUploadedFile >>> import datetime >>> import time >>> import re >>> from decimal import Decimal ######### # Forms # ######### A Form is a collection of Fields. It knows how to validate a set of data...
codeparrot/github-code-clean
#!/usr/bin/env python3 # Copyright 2020 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
codeparrot/github-code-clean
""" Python Interchangeable Virtual Instrument Library Copyright (c) 2012-2014 Alex Forencich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the...
codeparrot/github-code-clean
#!/usr/bin/python2 # -*- encoding: utf-8 -*- # # This is stepconf, a graphical configuration editor for Machinekit # Copyright 2007 Jeff Epler <jepler@unpythonic.net> # # stepconf 1.1 revamped by Chris Morley 2014 # replaced Gnome Druid as that is not available in future linux distributions # and because...
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
"""SQL io tests The SQL tests are broken down in different classes: - `PandasSQLTest`: base class with common methods for all test classes - Tests for the public API (only tests with sqlite3) - `_TestSQLApi` base class - `TestSQLApi`: test the public API with sqlalchemy engine - `TestSQLiteFallbackApi`: t...
codeparrot/github-code-clean
#!/usr/bin/python # Copyright (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported_by': 'community'} DOCUMENTATION = ''' --- module...
codeparrot/github-code-clean
"""AuthZ Adapter implementations of resource sessions.""" # pylint: disable=no-init # Numerous classes don't require __init__. # pylint: disable=too-many-public-methods # Number of methods are defined in specification # pylint: disable=too-many-ancestors # Inheritance defined in specification from ..osid ...
codeparrot/github-code-clean
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2006 Donald N. Allingham # Copyright (C) 2005-2009 Serge Noiraud # Copyright (C) 2007-2009 Brian G. Matherly # Copyright (C) 2010 Peter Landgren # Copyright (C) 2010 Jakim Friant # Copyright (C) 2011 Adam Stein <adam@csh.rit.e...
codeparrot/github-code-clean
# KCC topology utilities # # Copyright (C) Dave Craft 2011 # Copyright (C) Jelmer Vernooij 2011 # Copyright (C) Andrew Bartlett 2015 # # Andrew Bartlett's alleged work performed by his underlings Douglas # Bagnall and Garming Sam. # # This program is free software; you can redistribute it and/or modify # it under the t...
codeparrot/github-code-clean
""" Functions for running optimizations. Version: 2019dec02 """ from optima import OptimaException, Link, Multiresultset, ICER, asd, getresults # Main functions from optima import printv, dcp, odict, findinds, today, getdate, uuid, objrepr, promotetoarray, findnearest, sanitize, inclusiverange # Utilities from numpy...
codeparrot/github-code-clean
# Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University # Copyright (c) 2011, 2012 Open Networking Foundation # Copyright (c) 2012, 2013 Big Switch Networks, Inc. # See the file LICENSE.pyloxi which should have been included in the source distribution # Automatically generated by LOXI from ...
codeparrot/github-code-clean
# Copyright (c) 2020 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 # # Unless required by ap...
codeparrot/github-code-clean
# Copyright (c) 2016 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 # # Unless required by applic...
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 u...
codeparrot/github-code-clean
# # (c) Copyright 2013 Hewlett-Packard Development Company, L.P. # 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/licens...
codeparrot/github-code-clean
""" numpy.ma : a package to handle missing or invalid values. This package was initially written for numarray by Paul F. Dubois at Lawrence Livermore National Laboratory. In 2006, the package was completely rewritten by Pierre Gerard-Marchant (University of Georgia) to make the MaskedArray class a subclass of ndarray,...
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
# -*- 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 'ScheduledJob' db.create_table( 'sentry_schedul...
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 DOCUMENTATION = r''' module: user versi...
codeparrot/github-code-clean
""" Models for User Information (students, staff, etc) Migration Notes If you make changes to this model, be sure to create an appropriate migration file and check it in at the same time as your model changes. To do that, 1. Go to the edx-platform dir 2. ./manage.py lms schemamigration student --auto description_of_...
codeparrot/github-code-clean
# Copyright (c) 2006-2012 Mitch Garnaat http://garnaat.org/ # Copyright (c) 2010, Eucalyptus Systems, Inc. # Copyright (c) 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files ...
codeparrot/github-code-clean
#! /usr/bin/python # -*- coding: utf-8 -*- # Python ctypes bindings for VLC # # Copyright (C) 2009-2012 the VideoLAN team # $Id: $ # # Authors: Olivier Aubert <contact at olivieraubert.net> # Jean Brouwers <MrJean1 at gmail.com> # Geoff Salmon <geoff.salmon at gmail.com> # # This library is free soft...
codeparrot/github-code-clean
from sympy import ( Abs, And, Derivative, Dummy, Eq, Float, Function, Gt, I, Integral, LambertW, Lt, Matrix, Or, Piecewise, Poly, Q, Rational, S, Symbol, Wild, acos, asin, atan, atanh, cos, cosh, diff, erf, erfinv, erfc, erfcinv, erf2, erf2inv, exp, expand, im, log, pi, re, sec, sin, sinh, solve, so...
codeparrot/github-code-clean
# coding: utf8 from __future__ import unicode_literals NOUNS_IRREG = { "aa": ("aa",), "abatis": ("abatis",), "abattis": ("abattis",), "abax": ("abax",), "abcès": ("abcès",), "abc": ("abc",), "abducens": ("abducens",), "abies": ("abies",), "aboteaux": ("aboteau",), ...
codeparrot/github-code-clean
# # yuminstall.py # # Copyright (C) 2005, 2006, 2007 Red Hat, Inc. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option)...
codeparrot/github-code-clean
from gi.repository import Gtk, Gdk, GdkPixbuf, GObject import cairo import common.Util.Instruments import common.Util.InstrumentDB as InstrumentDB from common.Util.ThemeWidgets import RoundHBox, BigComboBox, ImageToggleButton from common.Util.Profiler import TP from common.Util import NoteDB from common.Util.NoteDB im...
codeparrot/github-code-clean
#!/usr/bin/env python3 import sys from pathlib import Path import psutil import os import warnings from pathlib import Path if not sys.getfilesystemencoding(): sys.getfilesystemencoding = lambda: 'UTF-8' import numpy as np import datetime from collections import OrderedDict from little_helpers import fix_requests_...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Resource object code # # Created: Wed Aug 5 07:54:48 2015 # by: The Resource Compiler for PyQt (Qt v4.8.6) # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore qt_resource_data = "\ \x00\x00\x01\xb7\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x4...
codeparrot/github-code-clean
# ***** BEGIN GPL LICENSE BLOCK ***** # # 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
# -*- coding: utf-8 -*- ''' Declarations defining patterns to be asserted upon MARC files to generate linked data in the form of a Versa output model BFLITE_TRANSFORMS is an example of a speification designed to be understood by moderately tech-savvy librarians, and even overridden to specialize the MARC -> BIBFRAME c...
codeparrot/github-code-clean
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
codeparrot/github-code-clean
import re from functools import wraps from collections import defaultdict, OrderedDict import numpy as np from compliance_checker.base import BaseCheck, BaseNCCheck, check_has, score_group, Result from compliance_checker.cf.appendix_d import dimless_vertical_coordinates from compliance_checker.cf.util import NCGraph, ...
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 (c) 2010 Citrix Systems, Inc. # Copyright 2011 Piston Cloud Computing, Inc. # 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 # # ...
codeparrot/github-code-clean
#!/usr/bin/env python # # svnmover_tests.py: tests of svnmover # # Subversion is a tool for revision control. # See http://subversion.apache.org for more information. # # ==================================================================== # Licensed to the Apache Software Foundation (ASF) under one # or more ...
codeparrot/github-code-clean
# Copyright (c) 2015 EMC Corporation. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
codeparrot/github-code-clean
# Copyright 2019 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, ...
codeparrot/github-code-clean
# Copyright (c) 2019 NTT DATA # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- from __future__ import unicode_literals import collections import copy import datetime import decimal import math import uuid import warnings from base64 import b64decode, b64encode from itertools import tee from django.apps import apps from django.db import connection from django.db.models.lo...
codeparrot/github-code-clean
dir = '$HOME/' # obviously needs to be changed localdir = '/Users/ashleyross/DESI/' #place for local DESI stuff from math import * from healpix import healpix,radec2thphi import numpy as np hpix = healpix() extmap = np.loadtxt('healSFD_r_256_fullsky.dat') DECamExt = [3.995,3.214,2.165,1.592,1.211,1.064] ### A couple o...
codeparrot/github-code-clean
# -*- coding: utf8 -*- #*************************************************************************** #* * #* Copyright (c) 2009 Yorik van Havre <yorik@uncreated.net> * #* ...
codeparrot/github-code-clean
import platform import struct import sys import os import ctypes as ct from vrepConst import * #load library libsimx = None try: file_extension = '.so' if platform.system() =='cli': file_extension = '.dll' elif platform.system() =='Windows': file_extension = '.dll' elif platform.system(...
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
""" Test suite. - Do not put 'mailer' in INSTALLED_APPS, it disturbs the emails counting. - Make sure these templates are accessible: registration/login.html base.html 404.html To have a fast test session, you can set a minimal configuration as: DATABASES = { 'default': { 'ENGINE': 'django.db....
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 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
codeparrot/github-code-clean
# # File: courseware/capa/responsetypes.py # """ Problem response evaluation. Handles checking of student responses, of a variety of types. Used by capa_problem.py """ # TODO: Refactor this code and fix this issue. # pylint: disable=attribute-defined-outside-init # standard library imports import abc import cgi imp...
codeparrot/github-code-clean