code
stringlengths
2
1.05M
repo_name
stringlengths
5
104
path
stringlengths
4
251
language
stringclasses
1 value
license
stringclasses
15 values
size
int32
2
1.05M
#!/usr/bin/env python from pinguino import pinguino_reset
PinguinoIDE/pinguino-ide
cmd/pinguino-reset.py
Python
gpl-2.0
59
""" Create inset. """ from __future__ import absolute_import #Init has to be imported first because it has code to workaround the python bug where relative imports don't work if the module is imported as a main module. import __init__ from fabmetheus_utilities.geometry.creation import lineation from fabmetheus_utili...
natetrue/ReplicatorG
skein_engines/skeinforge-40/fabmetheus_utilities/geometry/manipulation_paths/_outset.py
Python
gpl-2.0
1,041
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2011-2012 Async Open Source ## ## 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; either version 2 ## of the Licens...
andrebellafronte/stoq
stoqlib/api.py
Python
gpl-2.0
8,524
import wx import wx.lib.ogl as ogl class LinkShape(ogl.LineShape): def __init__(self, canvas, link): self.canvas = canvas self.__link = link ogl.LineShape.__init__(self) #self.SetCanvas(canvas) #line.SetPen(wx.BLACK_PEN) #line.SetBrush(wx.BLACK_BRUSH) self.AddArrow(ogl.ARROW_ARROW) self.MakeLineCon...
onoga/toolib
toolib/wx/controls/gant/LinkShape.py
Python
gpl-2.0
1,368
# -*- coding: utf-8 -*- """ *************************************************************************** OTBUtils.py --------------------- Date : 11-12-13 Copyright : (C) 2013 by CS Systemes d'information (CS SI) Email : otb at c-s dot fr (CS SI) Contrib...
carolinux/QGIS
python/plugins/processing/algs/otb/OTBSpecific_XMLLoading.py
Python
gpl-2.0
12,848
# ABCSBH -- a drastically hacked-down version of the ABC-SYSBIO package
buck06191/BayesCMD
batch/abcsbh/__init__.py
Python
gpl-2.0
72
# Volatility # Copyright (C) 2007-2013 Volatility Foundation # # This file is part of Volatility. # # Volatility 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 Software Foundation. You may not use, modify or # distribu...
Cisco-Talos/pyrebox
volatility/volatility/plugins/linux/check_fops.py
Python
gpl-2.0
10,529
# # The Python Imaging Library. # $Id: //modules/pil/PIL/PcdImagePlugin.py#4 $ # # PCD file handling # # History: # 96-05-10 fl Created # 96-05-27 fl Added draft mode (128x192, 256x384) # # Copyright (c) Secret Labs AB 1997. # Copyright (c) Fredrik Lundh 1996. # # See the README file for information...
fxia22/ASM_xf
PythonD/lib/python2.4/site-packages/display/PIL/PcdImagePlugin.py
Python
gpl-2.0
1,813
# -*- coding: utf-8 -*- """ *************************************************************************** GdalUtils.py --------------------- Date : August 2012 Copyright : (C) 2012 by Victor Olaya Email : volayaf at gmail dot com *****************************...
alexbruy/QGIS
python/plugins/processing/algs/gdal/GdalUtils.py
Python
gpl-2.0
6,616
# Opus/UrbanSim urban simulation software. # Copyright (C) 2005-2009 University of Washington # See opus_core/LICENSE from opus_core.variables.variable import Variable from variable_functions import my_attribute_label class home_grid_id(Variable): '''The grid_id of a person's residence.''' def dep...
christianurich/VIBe2UrbanSim
3rdparty/opus/src/psrc/person/home_grid_id.py
Python
gpl-2.0
2,165
#!/usr/bin/python -tt # vim: ai ts=4 sts=4 et sw=4 # Copyright (c) 2007 Intel Corporation # # 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; version 2 of the License # # This prog...
juanje/moblin-image-creator
libs/moblin_pkgbase.py
Python
gpl-2.0
1,634
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2002-2007 Donald N. Allingham # Copyright (C) 2007-2008 Brian G. Matherly # Copyright (C) 2011 Tim G L Lyons # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as publ...
beernarrd/gramps
gramps/gen/filters/rules/citation/__init__.py
Python
gpl-2.0
2,223
import os from osmnames.export_osmnames.export_osmnames import export_housenumbers, create_views def test_tsv_get_created(session, tables): session.add( tables.osm_housenumber( osm_id=1, ) ) create_views() export_housenumbers() assert os.path.exists('...
philippks/OSMNames
tests/export_osmnames/test_export_housenumbers.py
Python
gpl-2.0
365
# -*- coding: utf-8 -*- """Configuration of pyAutoFuzSlpPos project. @author: Liangjun Zhu @changelog: - 15-07-31 lj - initial implementation. - 17-07-31 lj - reorganize as basic class, and incorporated with pygeoc. """ from __future__ import absolute_import, unicode_literals, division import argpa...
lreis2415/AutoFuzSlpPos
autofuzslppos/Config.py
Python
gpl-2.0
29,475
# Timer class for scheduling methods after some time. # # Copyright (C) 2018 Red Hat, Inc. # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions of # the GNU General Public License v.2, or (at your option) any later version. # Th...
vathpela/anaconda
pyanaconda/core/timer.py
Python
gpl-2.0
3,465
# Copyright 2007 Joe Wreschnig # 2012-2016 Christoph Reiter # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, ...
Meriipu/quodlibet
gdist/__init__.py
Python
gpl-2.0
7,826
from sys import argv script, file_name = argv def lineprint(f): print f.readline() target = open(file_name) lineprint(target) lineprint(target) lineprint(target)
mrniranjan/python-scripts
reboot/check1.py
Python
gpl-2.0
166
from django.conf.urls import include, url # Doorstep apps urls urlpatterns = [ url(r'^', include('doorstep.catalog.urls')), url(r'^accounts/', include('doorstep.accounts.urls')), url(r'^sales/', include('doorstep.sales.urls')), url(r'^payments/', include('doorstep.payments.urls')), url(r'^pages/',...
mysteryjeans/doorsale-demo
doorstep/urls.py
Python
gpl-2.0
355
#!usr/bin/env python # # Copyright 2013 Matthew Wall # See the file LICENSE.txt for your full rights. # # Thanks to Kenneth Lavrsen for the Open2300 implementation: # http://www.lavrsen.dk/foswiki/bin/view/Open2300/WebHome # description of the station communication interface: # http://www.lavrsen.dk/foswiki/bin/vie...
knnniggett/weewx
bin/weewx/drivers/ws23xx.py
Python
gpl-3.0
77,294
from chininux import Record r = Record("section", [ "label1", "label2", "label3", "label4", "label5", "label6", "label7", ]) r.label1 = "prova" r.label2 = "10.0.1.0/24" r.label3 = "10.0.2.0/30 (GR)" r.label4 = "10.3.0.0/16 - 10.4.0.0/16" r.label5 = "10.5.0.0/16 10.6.0.0/16" r.label6 ...
cl4u2/chininux
tests/test_record.py
Python
gpl-3.0
720
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2017 Google # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # ---------------------------------------------------------------------------- # # *** AUTO GENERATED CODE *** AUTO GENERATED CODE *** # ...
aperigault/ansible
lib/ansible/modules/cloud/google/gcp_compute_instance_template_info.py
Python
gpl-3.0
22,686
# -*- coding: utf-8 -*- # # Copyright © 2014 René Samselnig # # This file is part of Database Navigator. # # Database Navigator 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, ...
resamsel/dbmanagr
src/dbmanagr/driver/sqlite/driver.py
Python
gpl-3.0
1,308
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-04-20 16:33 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('api', '0018_auto_20160420_1231'), ] operations = [ ...
CarlosTenorio/vespapp-web
api/migrations/0019_auto_20160420_1833.py
Python
gpl-3.0
766
#!/usr/bin/env python # -*- coding: utf-8 -*- ## Copyright 2011, IOActive, Inc. All rights reserved. ## ## AndBug is free software: you can redistribute it and/or modify it under ## the terms of version 3 of the GNU Lesser General Public License as ## published by the Free Software Foundation. ## ## AndBug is distr...
fengyunsixing/Android
lib/andbug/log.py
Python
gpl-3.0
6,290
from Model import * import MemoryDecay # Note we cannot import TwoConcepts here because that ends up modifying the grammar, ruining it for example loaders
joshrule/LOTlib
LOTlib/Examples/RationalRules/__init__.py
Python
gpl-3.0
157
''' Driver method to run the density_plot module ''' import sys import string import os import shutil import time import sassie.interface.input_filter as input_filter import sassie.analyze.density_plot.density_plot as density_plot #import density_plot as density_plot import sassie.interface.density_plot.density_plot_...
madscatt/zazzie
src_2.7/sassie/analyze/density_plot/gui_mimic_density_plot.py
Python
gpl-3.0
6,461
# -*- coding: UTF-8 -*- import os import os.path import unittest from tempfile import mkdtemp from outwiker.core.tree import WikiDocument from outwiker.core.application import Application from outwiker.core.attachment import Attachment from outwiker.pages.wiki.parser.commands.attachlist import AttachListCommand from ...
unreal666/outwiker
src/test/wikiparser/test_wikicommandattachlist.py
Python
gpl-3.0
11,139
""" This is for transfers what RPCClient is for RPC calls """ __RCSID__ = "$Id$" import os from DIRAC import S_OK, S_ERROR from DIRAC.Core.Utilities import File from DIRAC.Core.DISET.private.BaseClient import BaseClient from DIRAC.Core.DISET.private.FileHelper import FileHelper class TransferClient( BaseClient ): ...
andresailer/DIRAC
Core/DISET/TransferClient.py
Python
gpl-3.0
6,920
# coding=utf-8 __author__ = 'DM_' import platform import ctypes import sys USE_WINDOWS_COLOR = False if platform.system() == "Windows": USE_WINDOWS_COLOR = True # ######################################### #windows color. BLACK = 0x0 BLUE = 0x01 GREEN = 0x02 CYAN = 0x03 RED = 0x04 ...
walkinreeds/MultiProxies
lib/EchoColor.py
Python
gpl-3.0
1,788
#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 in the hope that it ...
Microvellum/Fluid-Designer
win64-vc/2.78/Python/bin/2.78/scripts/addons_contrib/btrace/bTrace.py
Python
gpl-3.0
79,198
import logging from datetime import date as _date, timedelta from typing import Dict, List from fahrplan.exception import FahrplanError from fahrplan.xml import XmlWriter, XmlSerializable from .conference import Conference from .day import Day from .event import Event from .room import Room log = logging.getLogger(...
zuntrax/schedule-ng
fahrplan/model/schedule.py
Python
gpl-3.0
3,835
# encoding: utf-8 __import__('pkg_resources').declare_namespace(__name__)
NicoVarg99/daf-recipes
ckan/ckan/ckan/ckanext/stats/__init__.py
Python
gpl-3.0
75
# -*- coding: utf-8 -*- ''' Genesis Add-on Copyright (C) 2015 lambda 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 ...
freeworldxbmc/pluging.video.Jurassic.World.Media
resources/lib/libraries/player.py
Python
gpl-3.0
12,058
# -*- coding: utf-8 -*- import os.path import unittest from tempfile import mkdtemp from outwiker.core.application import Application from outwiker.core.attachment import Attachment from outwiker.core.tree import WikiDocument from outwiker.core.config import StringOption from outwiker.pages.text.textpage import Text...
unreal666/outwiker
src/test/core/test_treeloading.py
Python
gpl-3.0
16,335
# scanStrengthBonusPercentOnline # # Used by: # Modules from group: Signal Amplifier (7 of 7) type = "passive" def handler(fit, module, context): for type in ("Gravimetric", "Magnetometric", "Radar", "Ladar"): fit.ship.boostItemAttr("scan%sStrength" % type, module.getModifie...
Ebag333/Pyfa
eos/effects/scanstrengthbonuspercentonline.py
Python
gpl-3.0
418
# Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015 Rickard Lindberg, Roger Lindberg # # This file is part of Timeline. # # Timeline 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 th...
ezequielpereira/Time-Line
timelinelib/drawing/interface.py
Python
gpl-3.0
3,967
import os import sys import gzip import time import numpy as np import pickle as pkl from scipy.sparse import hstack from sklearn.metrics import roc_auc_score from models import MTC if len(sys.argv) != 7: print('Usage: python', sys.argv[0], 'WORK_DIR DATASET C P N_SEED TRAIN_DEV(Y/N)') sys.exit...
cdawei/digbeta
dchen/music/src/PLA_pop.py
Python
gpl-3.0
3,102
import psutil _mb_conversion = 1024 * 1024 def cpu_times(*args, **kwargs): return psutil.cpu_times() def cpu_count(logical=True, *args, **kwargs): cores = psutil.cpu_count(logical) if cores == 1: word = 'Core' else: word = 'Cores' return '{} CPU {}'.format(cores, word) def cpu...
benhoff/vexbot
vexbot/extensions/system.py
Python
gpl-3.0
1,216
#!/usr/bin/python # This script fetches treenodes from the database and renders them to # stack-sized PNGs from __future__ import division, print_function from math import pi as M_PI # used by many snippets import sys import psycopg2 import os import numpy as np import yaml import cairo if not (cairo.HAS_IMAGE_SURF...
catsop/CATMAID
scripts/experiment/cairo_render.py
Python
gpl-3.0
4,795
""" MAP Client, a program to generate detailed musculoskeletal models for OpenSim. Copyright (C) 2012 University of Auckland This file is part of MAP Client. (http://launchpad.net/mapclient) MAP Client is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Li...
MusculoskeletalAtlasProject/mapclient
src/mapclient/view/managers/package/packagemanagerdialog.py
Python
gpl-3.0
3,052
# Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt import frappe from dateutil.relativedelta import relativedelta from frappe import _ from frappe.desk.reportview import get_filters_cond, get_match_cond from frappe.model.document import Document from...
almeidapaulopt/erpnext
erpnext/payroll/doctype/payroll_entry/payroll_entry.py
Python
gpl-3.0
29,720
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ava.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
benhoff/ava
src/manage.py
Python
gpl-3.0
246
# -*- coding: utf-8 -*- # # Copyright © 2012 - 2015 Michal Čihař <michal@cihar.com> # # This file is part of Weblate <http://weblate.org/> # # 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, eithe...
miumok98/weblate
weblate/accounts/management/commands/changesite.py
Python
gpl-3.0
2,417
import numpy as np import matplotlib.pyplot as plt import loudness as ln class DoubleRoexBank(): def __init__(self, camLo=1.5, camHi=40.2, camStep=0.1): self.camLo = camLo self.camHi = camHi self.camStep = camStep self.binauralLoudnessFactor = 1.53e-8 * 2 * camStep self.in...
faroit/loudness
python/tests/test_DoubleRoexBank.py
Python
gpl-3.0
5,063
# -*- coding: utf-8 -*- ##Copyright (C) [2005] [Juergen Hamel, D-32584 Löhne] ##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 vers...
BackupTheBerlios/cuon-svn
cuon_client/cuon/Finances/InvoiceBook/invoicebook.py
Python
gpl-3.0
20,827
import requests_mock from django.conf import settings from jingo.helpers import urlparams from nose.tools import eq_, ok_ from pyquery import PyQuery as pq from waffle.models import Flag from kuma.core.urlresolvers import reverse from . import UserTestCase from .test_views import TESTUSER_PASSWORD def add_persona_v...
darkwing/kuma
kuma/users/tests/test_templates.py
Python
mpl-2.0
13,321
import logging from django.core.management.base import BaseCommand, CommandError from kuma.wiki.search import WikiDocumentType class Command(BaseCommand): help = "Reindex the database for Elastic." def add_arguments(self, parser): parser.add_argument( "-c", "--chunk", ...
a2sheppy/kuma
kuma/search/management/commands/reindex.py
Python
mpl-2.0
1,103
from django.conf.urls import patterns, url from rest_framework.routers import DefaultRouter from ..boards.views import BoardHTMLView from . import views router = DefaultRouter() router.register(r'cards', views.CardViewSet) api_urlpatterns = router.urls urlpatterns = patterns( # Prefix '', url(r'^$',...
jessamynsmith/boards-backend
blimp_boards/cards/urls.py
Python
agpl-3.0
471
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2011-2012 OpenERP S.A (<http://www.openerp.com>) # # This program is free software: you can redistribute it and/or modify # it under the terms o...
john-wang-metro/metro-openerp
bug_fix/ir_mail_server.py
Python
agpl-3.0
25,985
import os def numCPUs(): if not hasattr(os, "sysconf"): raise RuntimeError("No sysconf detected.") return os.sysconf("SC_NPROCESSORS_ONLN") bind = "0.0.0.0:8000" # workers = numCPUs() * 2 + 1 workers = 1 backlog = 2048 worker_class = "sync" # worker_class = "gevent" debug = True # daemon = True # err...
yewsiang/botmother
gunicorn.py
Python
agpl-3.0
417
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. # List of contributors: # Jordi Esteve <jesteve@zikzakmedia.com> # Dpto. Consultoría Grupo Opentia <consultoria@opentia.es> # Pedro M. Baeza <pedro.baeza@tecnativa.com> # Carlos Liébana <carlos.liebana@factorlibre.com> #...
maxive/erp
addons/l10n_es/__manifest__.py
Python
agpl-3.0
1,890
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-02-25 22:07 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ] operations = [ migrations.AlterModelOptions( ...
litui/openparliament
parliament/core/migrations/0002_some_fr_fields.py
Python
agpl-3.0
1,459
#!/usr/bin/python3 # -*- coding: utf-8 -*- """ Classes to import data from source files """ import os import re import logging import os.path import tempfile import getpass from pkg_resources import get_distribution import datetime from askomics.libaskomics.ParamManager import ParamManager from askomics.libaskomics.r...
askomics/askomics
askomics/libaskomics/source_file/SourceFile.py
Python
agpl-3.0
12,771
""" Tests for student enrollment. """ from mock import patch, Mock import ddt from django.core.cache import cache from nose.tools import raises import unittest from django.test import TestCase from django.test.utils import override_settings from django.conf import settings from course_modes.models import CourseMode f...
10clouds/edx-platform
common/djangoapps/enrollment/tests/test_api.py
Python
agpl-3.0
10,138
# ERPNext - web based ERP (http://erpnext.com) # Copyright (C) 2012 Web Notes Technologies Pvt Ltd # # 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 yo...
gangadhar-kadam/mtn-erpnext
accounts/report/item_wise_sales_register/item_wise_sales_register.py
Python
agpl-3.0
2,744
# # Copyright (c) 2016 ThoughtWorks, Inc. # # Pixelated is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Pixelated is distrib...
pixelated/pixelated-user-agent
service/test/functional/features/steps/signup.py
Python
agpl-3.0
1,874
""" Instructor Tasks related to module state. """ import json import logging from time import time from django.contrib.auth.models import User from opaque_keys.edx.keys import UsageKey from xblock.runtime import KvsFieldData import dogstats_wrapper as dog_stats_api from capa.responsetypes import LoncapaProblemError, ...
miptliot/edx-platform
lms/djangoapps/instructor_task/tasks_helper/module_state.py
Python
agpl-3.0
15,346
# -*- encoding: utf-8 -*- ################################################################################ # # # Copyright (C) 2013-Today Carlos Eduardo Vercelino - CLVsol # # ...
odoousers2014/odoo_addons-2
clv_frame/clv_tag/clv_tag.py
Python
agpl-3.0
2,011
from datetime import date, datetime from functools import wraps try: # PY2 from urllib import quote_plus except ImportError: # PY3 from urllib.parse import quote_plus # parts of URL to be omitted SKIP_IN_PATH = (None, '', [], ()) def _escape(value): """ Escape a single value of a URL string or...
devs1991/test_edx_docmode
venv/lib/python2.7/site-packages/elasticsearch/client/utils.py
Python
agpl-3.0
2,382
# Amara, universalsubtitles.org # # Copyright (C) 2014 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...
eloquence/unisubs
apps/teams/workflows/old/subtitleworkflows.py
Python
agpl-3.0
9,638
# -*- coding: utf-8 -*- from odoo import api, fields, models, _ class SaleOrder(models.Model): _inherit = "sale.order" attendee_count = fields.Integer('Attendee Count', compute='_compute_attendee_count') def write(self, vals): """ Synchronize partner from SO to registrations. This is done notab...
ddico/odoo
addons/event_sale/models/sale_order.py
Python
agpl-3.0
7,205
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from . import test_l10n_es_aeat_mod347
OCA/l10n-spain
l10n_es_aeat_mod347/tests/__init__.py
Python
agpl-3.0
104
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). from . import test_addon_hash from . import test_module
Vauxoo/server-tools
module_auto_update/tests/__init__.py
Python
agpl-3.0
122
# Generated by Django 2.0.6 on 2018-08-30 16:37 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('iati', '0024_auto_20180830_1232'), ] operations = [ migrations.AlterField( model_name='resultin...
openaid-IATI/OIPA
OIPA/iati/migrations/0025_auto_20180830_1637.py
Python
agpl-3.0
525
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2014 Kozea # # This library 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, either version...
makinacorpus/pygal
pygal/graph/bar.py
Python
lgpl-3.0
5,037
import logging import os,string,sys from AZutilities import dataUtilities import random import bbrc import orange from cinfony import rdk logging.basicConfig() log = logging.getLogger(__name__) log.setLevel(logging.INFO) class BBRC(object): def __init__(self, verbose = 0): self.iniDir = os.getcwd() ...
JonnaStalring/AZOrange
azorange/AZutilities/getBBRCDesc.py
Python
lgpl-3.0
12,011
import sys from services.spawn import MobileTemplate from services.spawn import WeaponTemplate from resources.datatables import WeaponType from resources.datatables import Difficulty from resources.datatables import Options from resources.datatables import FactionStatus from java.util import Vector def addTemplate(cor...
ProjectSWGCore/NGECore2
scripts/mobiles/generic/faction/rebel/battle_droid_rebel.py
Python
lgpl-3.0
1,397
# RUN: %python -m artiq.compiler.testbench.signature %s >%t with interleave: delay(1.0) t0 = now_mu() print(t0)
JQIamo/artiq
artiq/test/lit/local_access/parallel.py
Python
lgpl-3.0
121
#!/usr/bin/env python # -*- coding: utf-8 -*- import imp import logging from os import walk from os.path import realpath, dirname, join, isdir, isfile from getpass import getuser from sys import exit WORKDIR = realpath(join(dirname(__file__))) PACKAGES = "packages" def build_cli(parent_subparser): sys_choices ...
jpigree/config
sys/__init__.py
Python
unlicense
2,239
# # 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...
nathanielvarona/airflow
airflow/sensors/sql_sensor.py
Python
apache-2.0
1,078
# Copyright 2013 Mellanox Technologies, Ltd # # 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 t...
onecloud/neutron
neutron/plugins/mlnx/rpc_callbacks.py
Python
apache-2.0
4,874
# 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...
airbnb/airflow
airflow/providers/cncf/kubernetes/hooks/kubernetes.py
Python
apache-2.0
9,757
from django.db import models #from django.contrib.auth.models import User from django.conf import settings import hashlib import time, datetime def _createHash(): hash = hashlib.sha1() hash.update(str(time.time())) return hash.hexdigest()[:-10] # the dataset class stores parameters about the class Data...
draperlaboratory/stout
op_tasks/models.py
Python
apache-2.0
5,396
import logging import os import ctypes import ctypes.util log = logging.getLogger("lrrbot.systemd") try: libsystemd = ctypes.CDLL(ctypes.util.find_library("systemd")) libsystemd.sd_notify.argtypes = [ctypes.c_int, ctypes.c_char_p] def notify(status): libsystemd.sd_notify(0, status.encode('utf-8')) except OSErr...
andreasots/lrrbot
lrrbot/systemd.py
Python
apache-2.0
992
''' Copyright 2010-2013 DIMA Research Group, TU Berlin 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...
codeaudit/myriad-toolkit
tools/python/myriad/compiler/debug.py
Python
apache-2.0
2,056
# =============================================================================== # Copyright 2016 Jake Ross # # 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...
USGSDenverPychron/pychron
pychron/hardware/furnace/nmgrl/funnel.py
Python
apache-2.0
2,158
# Copyright 2014-2020 Scalyr Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
imron/scalyr-agent-2
benchmarks/micro/test_json_serialization.py
Python
apache-2.0
5,318
# Copyright 2019 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...
mlperf/training_results_v0.7
Google/benchmarks/bert/implementations/bert-cloud-TF2.0-tpu-v3-32/tf2_common/modeling/model_training_utils.py
Python
apache-2.0
24,871
# -*- coding: utf-8 -*- # Generated by Django 1.11.18 on 2019-02-06 21:49 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('zerver', '0206_stream_rendered_description'), ] operations = [ migrations....
tommyip/zulip
zerver/migrations/0207_multiuseinvite_invited_as.py
Python
apache-2.0
482
# 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,...
froyobin/ironic
ironic/conductor/utils.py
Python
apache-2.0
6,324
# coding=utf-8 # Copyright 2017 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) from contextlib impo...
UnrememberMe/pants
tests/python/pants_test/testutils/process_test_util.py
Python
apache-2.0
1,611
# 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 # distributed under t...
openstack/tosca-parser
toscaparser/__init__.py
Python
apache-2.0
643
# Licensed to the StackStorm, Inc ('StackStorm') 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 th...
pinterb/st2
st2common/st2common/services/action.py
Python
apache-2.0
4,646
# # Copyright (c) 2015 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/scancode-toolkit/ # The ScanCode software is licensed under the Apache License version 2.0. # Data generated with ScanCode require an acknowledgment. # ScanCode is a trademark of nexB Inc. # # You may not use...
lach76/scancode-toolkit
src/commoncode/functional.py
Python
apache-2.0
5,818
#!/usr/bin/env python # # Copyright 2013 Splunk, 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 ...
sullivanmatt/splunk-sdk-python
examples/github_forks/github_forks.py
Python
apache-2.0
6,663
# -*- coding:utf-8 -*- """ author comger@gmail.com """ import json from pyquery import PyQuery as pyq from kpages import LogicContext, reflesh_config from logic.city import add from logic.utility import m_page from unittest import TestCase class CityCate(object): _url = 'http://d.360buy.com/area/get?fid={0}' ...
baikl/baikili
web/utest/test_city.py
Python
apache-2.0
1,361
# 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...
gibiansky/tensorflow
tensorflow/contrib/rnn/python/ops/rnn_cell.py
Python
apache-2.0
52,642
# Copyright 2018 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...
jart/tensorflow
tensorflow/python/keras/engine/training_utils.py
Python
apache-2.0
32,266
#!/usr/bin/env python3.7 # 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 "Li...
chrismattmann/drat
distribution/src/main/resources/bin/list-ghe-repos.py
Python
apache-2.0
1,171
from __future__ import absolute_import, division, print_function import os class Config(object): """ Default configuration """ DEBUG = False APPR_URI = os.getenv('APPR_URI', "http://localhost:5000") class ProductionConfig(Config): """ Production configuration """ APPR_URI = "http://localhost:50...
cn-app-registry/cnr-server
appr/api/config.py
Python
apache-2.0
545
"""Support for RFXtrx covers.""" import voluptuous as vol from homeassistant.components import rfxtrx from homeassistant.components.cover import PLATFORM_SCHEMA, CoverDevice from homeassistant.const import CONF_NAME from homeassistant.helpers import config_validation as cv from . import ( CONF_AUTOMATIC_ADD, ...
Cinntax/home-assistant
homeassistant/components/rfxtrx/cover.py
Python
apache-2.0
2,494
#!/usr/bin/env python """ Copyright 2012 GroupDocs. 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...
liosha2007/temporary-groupdocs-python3-sdk
groupdocs/models/AddStorageProviderResult.py
Python
apache-2.0
870
# -*- coding: utf-8 -*- # 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 appl...
smerritt/swift
test/unit/common/middleware/test_bulk.py
Python
apache-2.0
46,342
# Copyright 2015, A10 Networks # # 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 la...
dougwig/a10-neutron-lbaas
a10_neutron_lbaas/neutron_ext/extensions/a10DeviceInstance.py
Python
apache-2.0
4,037
""" Copyright (C) 2004-2015 Pivotal Software, Inc. All rights reserved. This program and the accompanying materials are made available under the terms of the 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 ...
CraigHarris/gpdb
src/test/tinc/tincrepo/mpp/models/test/sql_related/test_sql_tc_42.py
Python
apache-2.0
1,931
# Copyright 2019 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...
chemelnucfin/tensorflow
tensorflow/python/tpu/tpu_strategy_util.py
Python
apache-2.0
4,954
# Copyright 2012 Nebula, Inc. # Copyright 2013 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...
shail2810/nova
nova/tests/functional/api_sample_tests/test_scheduler_hints.py
Python
apache-2.0
1,979
from __future__ import print_function import unittest from test import test_support as support import os import sys # Setup bsddb warnings try: bsddb = support.import_module('bsddb', deprecated=True) except unittest.SkipTest: pass class NoAll(RuntimeError): pass class FailedImport(Runt...
Jeff-Tian/mybnb
Python27/Lib/test/test___all__.py
Python
apache-2.0
4,298
# Copyright 2015 Internap. # # 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, so...
godp1301/netman
tests/adapters/unified_tests/__init__.py
Python
apache-2.0
1,574
# Copyright (c) 2022 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...
luotao1/Paddle
python/paddle/fluid/tests/unittests/distributed_passes/test_dist_fuse_bn_add_act_pass.py
Python
apache-2.0
3,476