code
stringlengths
6
947k
repo_name
stringlengths
5
100
path
stringlengths
4
226
language
stringclasses
1 value
license
stringclasses
15 values
size
int64
6
947k
#!/usr/bin/python # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- ### BEGIN LICENSE # This file is in the public domain ### END LICENSE import unittest import subprocess class TestPylint(unittest.TestCase): def test_project_errors_only(self): '''run pylint in error only mode ...
didrocks/quickly
data/templates/ubuntu-application/project_root/tests/test_lint.py
Python
gpl-3.0
1,023
"""This modules is used to capture the screen """ import pyautogui import time import Globals PATH = './Captures/' def capture_area(area): """ Captures area of the screen Args: area (Tuple (x,y,width,height)): Area to capture Returns: Image : Image of the area captured """ ...
DavidBarishev/DDtankFarmingBot
Ddtank_farm_bot/Framework/Capture.py
Python
gpl-3.0
1,336
import hashlib from django.shortcuts import render, render_to_response, redirect from django.views.decorators.csrf import csrf_exempt from django.core.exceptions import ObjectDoesNotExist from accounts.models import User from student.models import StudentMessage, Elective from StudentSystem.customize_messages import fl...
MerleLK/StudentSystem
student/views.py
Python
gpl-3.0
7,522
''' forest data structure ''' import itertools import weakref from p2pool.util import skiplist, variable class TrackerSkipList(skiplist.SkipList): def __init__(self, tracker): skiplist.SkipList.__init__(self) self.tracker = tracker self_ref = weakref.ref(self, lambda _: tracker....
goblin/p2pool
p2pool/util/forest.py
Python
gpl-3.0
11,137
#!/usr/bin/env python3 ''' * Copyright 2015 by Benjamin J. Land (a.k.a. BenLand100) * * This file is part of chatlogs. * * chatlogs 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 ...
BenLand100/chatlogs
wordprofile.py
Python
gpl-3.0
2,410
# 2017 Red Hat Inc. # (c) 2017 Ansible Project # 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 = """ author: Ansible Core Team connection: persistent short_description: Us...
hryamzik/ansible
lib/ansible/plugins/connection/persistent.py
Python
gpl-3.0
5,401
#!/usr/bin/python import additional import animal import configuration import dbfs import financial import html import log import medical import person import users import utils from i18n import _, format_currency_no_symbol, now, python2display, yes_no from sitedefs import BASE_URL def org_tags(dbo, username): ""...
aubzen/sheltermanager
src/wordprocessor.py
Python
gpl-3.0
41,766
# Copyright (C) 2003 CAMP # Please see the accompanying LICENSE file for further information. """Main gpaw module.""" import os import sys try: from distutils.util import get_platform except ImportError: modulepath = os.environ.get('GPAW_GET_PLATFORM') if modulepath is None: errmsg = ('Error: Cou...
robwarm/gpaw-symm
gpaw/__init__.py
Python
gpl-3.0
10,531
# -*- coding: UTF-8 -*- ## Copyright 2011,2013 Luc Saffre ## This file is part of the Lino project. ## Lino 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 opt...
MaxTyutyunnikov/lino
lino/modlib/cal/management/commands/watch_calendars.py
Python
gpl-3.0
12,355
#!/usr/bin/env python3 import os import crossval, features, estimators, estpicker, bootstrap def Vecuum(): print('\nGROUP CHOICES (automated order: 2,1,0,4,3,5,11,10,12)') print('\nSymptom Severity:\n') print(' 0= control/mild\n 1= control/severe\n 2= control/very severe\n 3= mild/severe\n 4= mild/ve...
jrabenoit/shopvec
shopvec.py
Python
gpl-3.0
1,402
#!/usr/bin/env python # -*- coding: utf-8 -*- """ FlyFi - Floppy-Fidelity ======= Created to fulfill all your floppy music needs. Created on Tue 06-01-2013_05:17:42+0100 @author: Ricardo (XeN) Band <xen@c-base.org>, Stephan (coon) Thiele <coon@c-base.org> This file is part of FlyFi. FlyFi is free s...
coon42/FlyFi
FlyFi.py
Python
gpl-3.0
2,257
#!/usr/bin/env python # -*- mode: python; coding: utf-8; -*- import sys, os # для доступа к файлам данных меняем каталог на тот, # в котором лежит скрипт запуска dir = os.path.dirname(os.path.abspath(__file__)) os.chdir(dir) from brigantina import code # поехали! code.webapp.run() # stand alone s...
lankier/brigantina
runserver.py
Python
gpl-3.0
400
# coding=utf-8 from abc import ABCMeta import logging from typing import Iterator import numpy as np from mdlmc.topo.topology import NeighborTopology from ..misc.tools import remember_last_element from ..LMC.output import CovalentAutocorrelation, MeanSquareDisplacement from ..cython_exts.LMC.PBCHelper import AtomBo...
gkabbe/cMDLMC
mdlmc/LMC/MDMC.py
Python
gpl-3.0
10,013
#!/usr/bin/env python3 # for more info, see github.com/qguv/loadaverage from load.loadaverage import main
qguv/loadaverage
load/__init__.py
Python
gpl-3.0
107
# -*- coding: utf-8 -*- #---------------------------------------------------------------------------- # ModRana config files handling #---------------------------------------------------------------------------- # Copyright 2012, Martin Kolman # # This program is free software: you can redistribute it and/or modify # i...
ryfx/modrana
core/configs.py
Python
gpl-3.0
6,907
#!/usr/bin/python # -*- coding: utf-8; tab-width: 4; indent-tabs-mode: t; python-indent: 4 -*- """ Role ==== The ``PluginManager`` loads plugins that enforce the `Plugin Description Policy`_, and offers the most simple methods to activate and deactivate the plugins once they are loaded. .. note:: It may also classif...
meyt/mehrcal
mehrcal/yapsy/PluginManager.py
Python
gpl-3.0
22,880
import pycrs import mpl_toolkits.basemap.pyproj as pyproj # Import the pyproj module import shapefile as shp import matplotlib.pyplot as plt shpFilePath = r"taxi_zones\taxi_zones" sf = shp.Reader(shpFilePath) records = sf.records() plt.figure() for shape in sf.shapeRecords(): x = [i[0] for i in shape...
arg-hya/taxiCab
Plots/TrajectoryPlot/TrajectoryPlot.py
Python
gpl-3.0
1,224
""" import os for module in os.listdir(os.path.dirname(__file__)): if module == "__init__.py" or module[-3:] != ".py": continue __import__("src.itemFolder.logistics." + module[:-3], locals(), globals()) del module """ import src.itemFolder.logistics.container import src.itemFolder.logistics.mover impo...
MarxMustermann/OfMiceAndMechs
src/itemFolder/logistics/__init__.py
Python
gpl-3.0
510
import requests from bs4 import BeautifulSoup import pyprind import json import collections import os import codecs import mathscinet def make_mappers(profile): """ return mappers for id and mathscinet id """ gear_mathsci_mapper = {} mathsci_gear_mapper = {} for person in profile['items']: ...
LargePanda/GEAR_Network
scripts/data_collection_util.py
Python
gpl-3.0
9,523
import pandas as pd def closeFunc(): print('''Type 'quit' and press enter to exit program''') answer = input(': ') if answer == 'quit': quit() else: closeFunc() def oligosList(): oligosPath = input('Path to the file containing the list of probes: ') oligos = open(oligosPath) ...
Karl-Marka/data-mining
scleroderma-prediction/getGeneDescLocal_Illumina.py
Python
gpl-3.0
1,180
''' Created on 13.06.2016 @author: mkennert ''' from kivy.properties import NumericProperty, ObjectProperty from kivy.uix.gridlayout import GridLayout from crossSectionView.circleView import CSCircleView from shapes.ashape import AShape import numpy as np class ShapeCircle(GridLayout, AShape): ...
simbtrix/mxnix
project/shapes/shapeCircle.py
Python
gpl-3.0
1,369
from setuptools import setup from sample import __version__, __author__ setup(name='sample', version=__version__, description='an example of python module', url='http://github.com/josanly/python-module-project', author=__author__, author_email='josso.adrien@gmail.com', license='GPL ...
josanly/python-module-project
resources/setup.template.py
Python
gpl-3.0
419
#!/usr/bin/python #requires the following: #sudo apt-get install curl #curl http://apt.wxwidgets.org/key.asc | apt-key add - #sudo apt-get update #sudo apt-get install python-wxgtk2.8 python-wxtools wx2.8-i18n #sudo apt-get install python-gdata import wx import os import sys def pinger(): f = os.popen('ping -c 1 go...
kernt/linuxtools
gnome3-shell/nautilus-scripts/Archiving/PlowShare-Upload.py
Python
gpl-3.0
6,622
#!/usr/bin/python """ :: This experiment is used to study..... """ from __future__ import print_function from PSL_Apps.utilitiesClass import utilitiesClass from PSL_Apps.templates import ui_template_graph_nofft as template_graph_nofft import numpy as np from PyQt4 import QtGui,QtCore import pyqtgraph as pg ...
jithinbp/pslab-desktop-apps
psl_res/GUI/D_PHYSICS/B_physics/M_RANDOM_SAMPLING.py
Python
gpl-3.0
3,519
import redis class BetaRedis(redis.StrictRedis): def georadius(self, name, *values): return self.execute_command('GEORADIUS', name, *values) def geoadd(self, name, *values): return self.execute_command('GEOADD', name, *values) def geopos(self, name, *values): return self.execute_...
gdelt-analysis/worker
src/HeatMap.py
Python
gpl-3.0
1,473
from django.db import models from django.utils.encoding import python_2_unicode_compatible @python_2_unicode_compatible class Language(models.Model): code = models.CharField(max_length=50, null=False, unique=True, verbose_name='Co...
sgarrad/hicks
hicks/hicks_language/models.py
Python
gpl-3.0
720
# -*- coding: utf-8 -*- # scrapy_web # Copyright (C) 2016-2017 Matteo.Redaelli@gmail.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # ...
matteoredaelli/scrapy_tyres
scrapy_tyres/spiders/auto-doc_it.py
Python
gpl-3.0
4,693
# -*- coding: utf-8 -*- # Generated by Django 1.11.16 on 2018-11-22 11:11 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('WorkflowEngine', '0001_initial'), ('tags', '0013_auto_20180925_1142'), ] operation...
ESSolutions/ESSArch_Core
ESSArch_Core/tags/migrations/0014_auto_20181122_1211.py
Python
gpl-3.0
859
#!/usr/bin/python # This file is part of Lerot. # # Lerot 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 3 of the License, or # (at your option) any later version. # # Lerot is distribu...
hubert667/AIR
build/scripts-2.7/learning-experiment.py
Python
gpl-3.0
860
### # Copyright (c) 2005, Ali Afshar # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, # this list of conditions, a...
kg-bot/SupyBot
plugins/Gateway/gwcred.py
Python
gpl-3.0
5,416
# -*- coding: utf-8 -*- # # Doqu is a lightweight schema/query framework for document databases. # Copyright © 2009—2010 Andrey Mikhaylenko # # This file is part of Docu. # # Doqu is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as pub...
neithere/doqu
doqu/ext/shelve_db/lookups.py
Python
gpl-3.0
2,865
# -*- coding: utf-8 -*- """ -------------------------------------------------------------------------- glmnetPlot.m: plot coefficients from a "glmnet" object -------------------------------------------------------------------------- DESCRIPTION: Produces a coefficient profile plot fo the coefficient paths for a ...
bbalasub1/glmnet_python
glmnet_python/glmnetPlot.py
Python
gpl-3.0
8,744
# coding: utf-8 from libs.redis_storage import db1 class User(object): def __init__(self, **kwargs): pk = kwargs.get('pk') or db1.incr('new_user_id') kwargs['pk'] = pk db1.hmset('user::{}'.format(pk), kwargs) super(User, self).__setattr__('pk', pk) super(User, self).__seta...
beslave/space-king
space_king/models/user.py
Python
gpl-3.0
1,986
# -*- coding: utf-8 -*- # Copyright (C) 2014 Daniele Simonetti # # 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. # # Thi...
OpenNingia/l5r-character-manager
l5rcm/models/advancements/rank.py
Python
gpl-3.0
3,132
from __future__ import (absolute_import, division, print_function) import unittest from mantid.simpleapi import * import numpy as np import json from AbinsModules import CalculateDWSingleCrystal, LoadCASTEP, AbinsTestHelpers class AbinsCalculateDWSingleCrystalTest(unittest.TestCase): temperature = 10 # 10 K ...
dymkowsk/mantid
scripts/test/AbinsCalculateDWSingleCrystalTest.py
Python
gpl-3.0
2,485
""" File: tree.py Author: Inokentiy Babushkin Email: inokentiy.babushkin@googlemail.com Github: ibabushkin Description: A tree used to store DFS-trees for the CFG-module. """ class Tree(object): """ The tree mentioned in the module-docstring. Probably a Gingko. """ def __init__(self, obj): ...
ibabushkin/Iridium
defines/util/tree.py
Python
gpl-3.0
1,538
from urllib.parse import urlparse class Proxy(object): def __init__(self, proxy_type, proxy_address, proxy_port, proxy_login, proxy_password): self.proxyType = proxy_type self.proxyAddress = proxy_address self.proxyPort = proxy_port self.proxyLogin = proxy_login self.proxyP...
h3llrais3r/Auto-Subliminal
autosubliminal/providers/proxy.py
Python
gpl-3.0
1,013
''' Created on 28.06.2016 @author: michael ''' import unittest from alexandriabase.services import DatabaseUpgradeService from daotests.test_base import DatabaseBaseTest from alexandriabase.daos import RegistryDao class DatabaseUpgradeServiceTest(DatabaseBaseTest): def setUp(self): super().setUp() ...
archivsozialebewegungen/AlexandriaBase
tests/servicestests/test_database_upgrade_service.py
Python
gpl-3.0
1,154
## Copyright (C) 2017 Oscar Diaz Barriga ## This file is part of Comp-Process-STPatterns. ## 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 op...
oscardbpucp/Comp-Process-STPatterns
clean_and_pretreatment/datos_total_fase1v3-mod.py
Python
gpl-3.0
13,307
# -*- coding: utf-8 -*- """ Created on Tue Apr 9 21:30:31 2019 @author: Rignak """ import os from os.path import join, split lines = [] for root, folders, filenames in os.walk('..'): for filename in filenames: if filename == 'readme.md': lines += [''] with open(join(root, filena...
Rignak/Scripts-Python
Servlet/readme_maker.py
Python
gpl-3.0
1,062
# -*- coding: utf-8 -*- import datetime import json import mock import pytest import requests_mock from constance.test import override_config from django.conf import settings from django.contrib.sites.models import Site from django.core import mail from django.template.loader import render_to_string from django.utils....
jwhitlock/kuma
kuma/wiki/tests/test_views.py
Python
mpl-2.0
116,810
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. import json import logging import platform from os.path import abspath from django.utils.functional import lazy import...
analytics-pros/mozilla-bedrock
bedrock/settings/base.py
Python
mpl-2.0
33,383
from pages.treeherder import Treeherder def test_switch_app(base_url, selenium, test_repository): """Switch between Treeherder and Perfherder using header dropdown""" page = Treeherder(selenium, base_url).open() assert page.header.active_app == 'Treeherder' page = page.switch_to_perfherder() asser...
edmorley/treeherder
tests/selenium/test_switch_app.py
Python
mpl-2.0
790
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. import pytest from socorro.external.postgresql.bugs import Bugs from socorro.lib import MissingArgumentError from socor...
Tayamarn/socorro
socorro/unittest/external/postgresql/test_bugs.py
Python
mpl-2.0
4,325
# 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/. from selenium.webdriver.common.by import By from pages.firefox.base import FirefoxBasePage class FirefoxWhatsNew60Pag...
sgarrity/bedrock
tests/pages/firefox/whatsnew/whatsnew_60.py
Python
mpl-2.0
626
# 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 https://mozilla.org/MPL/2.0/. from ..._input_field import InputField class BoolInput(InputField): """Simple input that controls a boolean variab...
zerothi/sisl
sisl/viz/input_fields/basic/bool.py
Python
mpl-2.0
1,059
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. import contextlib import copy import hashlib import json import logging import mock import os import os.path import shut...
La0/mozilla-relengapi
src/tooltool/client/test_tooltool.py
Python
mpl-2.0
62,775
from django.apps import AppConfig class CalendarFeedConfig(AppConfig): name = 'info_display.screens.event_schedule' verbose_name = 'Event Schedule'
freieslabor/info-display
info_display/screens/event_schedule/apps.py
Python
mpl-2.0
158
# 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/. """ Create a user. """ from django.contrib.auth.models import User from django.core.management.base import BaseCommand ...
mozilla/socorro
docker/oidcprovider/createuser.py
Python
mpl-2.0
1,099
# 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 https://mozilla.org/MPL/2.0/. from django.db import models class ConfigValue(models.Model): name = models.CharField(max_length=100, db_index=Tr...
flodolo/bedrock
bedrock/base/models.py
Python
mpl-2.0
588
#!/usr/bin/python # -*- coding: ISO-8859-15-*- import sys import os import datetime import time from mpi4py import MPI # MPI related initialisations comm = MPI.COMM_WORLD rank = comm.Get_rank() # number of the processor size = comm.Get_size() # number of all participating processes name = MPI.Get_...
zalf-lsa/carbiocial-project
monica/monica-cluster-mpi/test-mpi.py
Python
mpl-2.0
1,331
### # SET a GRANTed ROLE for a USER (possible). # CREATE TABLE and INSERT (possible). ### import os, sys try: from MonetDBtesting import process except ImportError: import process clt = process.client('sql', user = 'my_user', passwd = 'p1', stdin = open(os.path.join(os.getenv('RELSRCDIR')...
zyzyis/monetdb
sql/test/Users/Tests/table.SQL.py
Python
mpl-2.0
488
# Copyright NuoBiT Solutions, S.L. (<https://www.nuobit.com>) # Eric Antones <eantones@nuobit.com> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from odoo import fields, models class ResPartner(models.Model): _inherit = "res.partner" sale_journal_id = fields.Many2one( "account.journ...
nuobit/odoo-addons
partner_default_journal/models/res_partner.py
Python
agpl-3.0
511
# -*- coding: utf-8 -*- # Copyright(C) 2011 Laurent Bachelier # # This file is part of weboob. # # weboob 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 ...
blckshrk/Weboob
weboob/tools/capabilities/paste.py
Python
agpl-3.0
2,825
from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("candidates", "0029_add_ordering_to_fields_meta"), ("candidates", "0028_auto_20160411_1055"), ] operations = []
DemocracyClub/yournextrepresentative
ynr/apps/candidates/migrations/0030_merge.py
Python
agpl-3.0
234
# -*- coding: utf-8 -*- # Copyright 2014 Davide Corio # Copyright 2015-2016 Lorenzo Battistini - Agile Business Group # Copyright 2018 Sergio Zanchetta (Associazione PNLUG - Gruppo Odoo) # Copyright 2018 Sergio Corato # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). { 'name': 'Italian Localization -...
linkitspa/l10n-italy
l10n_it_fatturapa_out/__manifest__.py
Python
agpl-3.0
1,166
# -*- coding: utf-8 -*- # Copyright 2017 Onestein (<http://www.onestein.eu>) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import ir_filesystem_directory from . import ir_filesystem_file
VitalPet/addons-onestein
base_directory_files_download/models/__init__.py
Python
agpl-3.0
218
# Copyright (c) 2006-2012 Mitch Garnaat http://garnaat.org/ # # 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, copy, modi...
GbalsaC/bitnamiP
venv/lib/python2.7/site-packages/boto/ec2/cloudwatch/dimension.py
Python
agpl-3.0
1,532
#!/usr/bin/env python3 import lifx lifx.set_power(lifx.BCAST, True)
sharph/lifx-python
lights_on.py
Python
agpl-3.0
71
# -*- 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...
iw3hxn/LibrERP
dt_price_security/models/product.py
Python
agpl-3.0
3,879
# -*- coding: utf-8 -*- ############################################################################### # License, author and contributors information in: # # __openerp__.py file at the root folder of this module. # ########################################################...
odoousers2014/odoo-development
modules/development_tools/wizard/development_tools_config_settings.py
Python
agpl-3.0
12,322
# coding: utf-8 from sqlalchemy import Column, Float, Integer, Numeric, String, Table, Text from geoalchemy2.types import Geometry from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() metadata = Base.metadata class EgoDemandFederalstate(Base): __tablename__ = 'ego_demand_federalstate...
openego/ego.io
egoio/db_tables/demand.py
Python
agpl-3.0
6,745
#------------------------------------------------------------------------------ # Copyright (C) 2009 Richard Lincoln # # 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; version 2 dated June...
rwl/openpowersystem
ucte/control_area/control_area.py
Python
agpl-3.0
2,764
# coding: utf-8 import sys reload(sys) sys.setdefaultencoding('utf-8') import sqlalchemy import ckan.plugins.toolkit as toolkit import ckan.lib.dictization.model_dictize as model_dictize from ckan.logic import NotAuthorized import logging log = logging.getLogger(__name__) from sqlalchemy import Column, String, ...
CBNU-BigDataLab/ckanext-theme
ckanext/theme/logic/action/create.py
Python
agpl-3.0
1,426
"""Normalize whitespace and Unicode forms in Python 3. Functions: normalize_space() -- collapse whitespace and trim normalize_unicode() -- return specified Unicode normal form """ __author__ = 'Tom Elliott' __copyright__ = 'Copyright ©️ 2017 New York University' __license__ = 'See LICENSE.txt' __version__ = '0.3' im...
isawnyu/textnorm
textnorm/__init__.py
Python
agpl-3.0
4,388
from django.contrib import admin from django.contrib.auth.models import Group as AuthGroup from sigma_core.models.user import User from sigma_core.models.group import Group from sigma_core.models.group_member import GroupMember from sigma_core.models.group_field import GroupField from sigma_core.models.group_field_val...
SRLKilling/sigma-backend
data-server/django_app/sigma_core/admin.py
Python
agpl-3.0
3,213
# Copyright 2009-2010 Canonical Ltd. This software is licensed under the # GNU Affero General Public License version 3 (see the file LICENSE). __metaclass__ = type from lp.services.mail.handlers import MailHandlers from lp.testing import TestCase class TestMailHandlers(TestCase): """Tests for the `MailHandlers...
abramhindle/UnnaturalCodeFork
python/testdata/launchpad/lib/lp/services/mail/tests/test_handlers.py
Python
agpl-3.0
1,755
from __future__ import print_function from six import text_type from django.core.management.base import BaseCommand, CommandError from opaque_keys import InvalidKeyError from opaque_keys.edx.keys import CourseKey from contentstore.utils import delete_course from xmodule.contentstore.django import contentstore from xm...
jolyonb/edx-platform
cms/djangoapps/contentstore/management/commands/delete_course.py
Python
agpl-3.0
3,575
# Copyright (c) 2001-2016, Canal TP and/or its affiliates. All rights reserved. # # This file is part of Navitia, # the software to build cool stuff with public transport. # # Hope you'll enjoy and contribute to this project, # powered by Canal TP (www.canaltp.fr). # Help us simplify mobility and open public tr...
kadhikari/navitia
source/jormungandr/tests/stif_tests.py
Python
agpl-3.0
7,989
# vcpw15-5.py # Memory Puzzle # Original By Al Sweigart al@inventwithpython.com # http://inventwithpython.com/pygame # Released under a "Simplified BSD" license import random, pygame, sys from pygame.locals import * FPS = 30 # frames per second, the general speed of the program WINDOWWIDTH = 640 # size of w...
mdecourse/2017springvcp
data/w15/vcpw15-5.py
Python
agpl-3.0
11,365
#!/usr/bin/env python # -*- coding: utf-8 -*- """ In order to use this lib, you have to call the method 'get_shipping_label' with the right arguments. To know which keys to send to this method read these lists : - required fields - fields """ from datetime import datetime import re from suds.client import Client,...
florian-dacosta/chronopost
chronopost_api/chronopost.py
Python
agpl-3.0
11,111
############################################################################### # # OpenERP, Open Source Management Solution # Copyright (C) 2013, 2015 XCG Consulting (http://www.xcg-consulting.fr/) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affe...
xcgd/board_alerts
models/board_alerts.py
Python
agpl-3.0
14,455
# This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be usefu...
joyxu/kernelci-backend
app/handlers/version.py
Python
agpl-3.0
1,607
# -*- coding: utf-8 -*- # Copyright: Damien Elmes <anki@ichi2.net> # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html import copy import os import re import json from anki.collection import _Collection from anki.consts import * from anki.db import DB from anki.lang import _ from anki.stdmo...
victos/busuu_anki
anki/storage.py
Python
agpl-3.0
11,169
# -*- coding: utf-8 -*- # (c) 2016 Alfredo de la Fuente - AvanzOSC # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html from openerp import models, fields, api class SaleOrder(models.Model): _inherit = 'sale.order' @api.multi def onchange_template_id(self, template_id, partner=False, ...
esthermm/odoo-addons
sale_service_recurrence_configurator/models/sale.py
Python
agpl-3.0
7,124
import markdown from markdown.blockprocessors import BlockProcessor from markdown import util import re import logging logger = logging.getLogger('MARKDOWN') # copied from class markdown.blockprocessors.HashHeaderProcessor class C2CHeaderProcessor(BlockProcessor): """ Process Hash Headers. """ # Detect a he...
c2corg/v6_ui
c2corg_ui/format/header.py
Python
agpl-3.0
2,420
# This file is part of wger Workout Manager. # # wger Workout Manager 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. # # wger W...
petervanderdoes/wger
wger/core/tests/test_repetition_unit.py
Python
agpl-3.0
3,162
#!/usr/bin/env python # coding=utf-8 from setuptools import setup, find_packages setup(name='french_dates_to_ical', version='0.0.1', author='Michaël Launay', author_email='michaellaunay@ecreall.com', url='http://www.ecreall.com/ressources/french_dates_to_ical', download_url='https://git...
michaellaunay/french_dates_to_ical
setup.py
Python
agpl-3.0
1,696
# -*- coding: utf-8 -*- from django.db import models, migrations def sector_validation(apps, schema_editor): """ Remove sector from RSR validation set """ ProjectEditorValidation = apps.get_model('rsr', 'ProjectEditorValidation') sector_validators = ['rsr_sector', 'rsr_sector.sector_code', 'rsr_sector....
akvo/akvo-rsr
akvo/rsr/migrations/0079_auto_20160620_1418.py
Python
agpl-3.0
1,137
# -*- coding: utf-8 -*- # Generated by Django 1.9.13 on 2017-07-27 15:04 from __future__ import unicode_literals import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('press', '0001_initial'), ] operations = [ mig...
BirkbeckCTP/janeway
src/press/migrations/0002_auto_20170727_1504.py
Python
agpl-3.0
979
import os import pymongo import imp # django stuff reference_data_dir = '../data/reference_data' #DEBUG = True #COMPRESS_ENABLED = False GENERATED_FILES_DIR = os.path.join(os.path.dirname(__file__), 'generated_files') MEDIA_ROOT = os.path.join(GENERATED_FILES_DIR , 'media/') DATABASES = { 'default': { ...
macarthur-lab/xbrowse
deploy/docker/seqr/config/local_settings.py
Python
agpl-3.0
2,316
# -*- coding: utf-8 -*- # This file is part of Shoop. # # Copyright (c) 2012-2015, Shoop Ltd. All rights reserved. # # This source code is licensed under the AGPLv3 license found in the # LICENSE file in the root directory of this source tree. from __future__ import with_statement from django import forms from django....
taedori81/shoop
shoop/front/views/category.py
Python
agpl-3.0
2,056
# -*- encoding: utf-8 -*- { 'name': 'Export Inventory Costs', 'version': '3.0.0.0', 'category': "Warehouse Management", 'description': """ Export Inventory Costs """, 'author': 'Didotech SRL', 'website': 'http://www.didotech.com', 'license': 'AGPL-3', "depends": [ 'b...
iw3hxn/LibrERP
stock_inventory_export/__openerp__.py
Python
agpl-3.0
541
""" Tests for programs celery tasks. """ import json from datetime import datetime, timedelta import ddt import httpretty import mock import pytz from waffle.testutils import override_switch from celery.exceptions import MaxRetriesExceededError from django.conf import settings from django.test import override_settings,...
ahmedaljazzar/edx-platform
openedx/core/djangoapps/programs/tasks/v1/tests/test_tasks.py
Python
agpl-3.0
21,370
from django.urls import path from tickets import views urlpatterns = [ path('', views.last_event, name='last_event'), path('event/<str:ev>/', views.event, name='event'), path('event/<str:ev>/<str:space>/<str:session>/register/', views.register, name='register'), path('ticket/<str:order>/payment/', v...
wadobo/congressus
congressus/tickets/urls.py
Python
agpl-3.0
1,208
# -*- encoding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # # Copyright (c) 2015 ERP|OPEN (www.erpopen.nl). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Aff...
rosenvladimirov/addons
product_barcodes_bg/__init__.py
Python
agpl-3.0
992
# -*- coding: utf-8 -*- """ This is the common settings file, intended to set sane defaults. If you have a piece of configuration that's dependent on a set of feature flags being set, then create a function that returns the calculated value based on the value of FEATURES[...]. Modules that extend this one can change th...
LearnEra/LearnEraPlaftform
cms/envs/common.py
Python
agpl-3.0
21,668
#!/usr/bin/env python3 # -*-coding:UTF-8 -* """ The Submit paste module ================ This module is taking paste in redis queue ARDB_DB and submit to global """ ################################## # Import External packages ################################## import os import sys import gzip import io import redi...
CIRCL/AIL-framework
bin/modules/submit_paste.py
Python
agpl-3.0
15,703
#################################################################################################### # neuropythy/datasets/__init__.py # Datasets for neuropythy. # by Noah C. Benson # mainly just to force these to load when datasets is loaded: from .benson_winawer_2018 import (BensonWinawer2018Dataset) from .hcp...
noahbenson/neuropythy
neuropythy/datasets/__init__.py
Python
agpl-3.0
779
# -*- coding: utf-8 -*- # Copyright 2014 Nicolas Bessi, Alexandre Fayolle, Camptocamp SA # Copyright 2016 Sodexis # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). def post_init_hook(cr, registry): """ Add street3 to address format """ query = """ UPDATE res_country SET address_f...
be-cloud-be/horizon-addons
partner-contact/partner_address_street3/hooks.py
Python
agpl-3.0
1,003
# Copyright (C) 2019 OpenMotics BV # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distribu...
openmotics/gateway
src/gateway/maintenance_controller.py
Python
agpl-3.0
7,651
# -*- coding: utf-8 -*- # (c) 2020-2021 Andreas Motl <andreas@getkotori.org> import logging import pytest import pytest_twisted from twisted.internet import threads from test.settings.mqttkit import settings, influx_sensors, PROCESS_DELAY_MQTT from test.util import mqtt_json_sensor, sleep logger = logging.getLogger(...
daq-tools/kotori
test/test_weewx.py
Python
agpl-3.0
3,456
# -*- coding: utf8 -*- from __future__ import absolute_import import os import logging from celery import task, current_task from django.conf import settings from .models import Video from .quvi import Quvi from .utils import download_thumbnail, celery_download, encode_videos LOGGER = logging.getLogger(__name__) ...
strycore/megascops
video/tasks.py
Python
agpl-3.0
1,094
# -*- coding: utf8 -*- # This file is part of PYBOSSA. # # Copyright (C) 2015 Scifabric LTD. # # PYBOSSA 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...
PyBossa/pybossa
test/test_jobs/test_schedule_jobs.py
Python
agpl-3.0
3,216
# -*- coding: utf-8 -*- # 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 ...
gangadharkadam/letzerp
erpnext/startup/__init__.py
Python
agpl-3.0
986
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>). # # This program is free software: you can redistribute it and/or modify # it under...
ClearCorp/knowledge
document_page_approval/models/document_page_history_workflow.py
Python
agpl-3.0
6,036
# -*- coding: utf-8 -*- # ============================================================================ # # SMB_Core.py # # Copyright: # Copyright (C) 2014 by Christopher R. Hertel # # $Id: SMB_Core.py; 2019-04-14 16:25:33 -0500; Christopher R. Hertel$ # # -----------------------------...
ubiqx-org/Carnaval
carnaval/smb/SMB_Core.py
Python
agpl-3.0
6,873
############################################################################## # # Copyright (C) 2015 ADHOC SA (http://www.adhoc.com.ar) # All Rights Reserved. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # pub...
ingadhoc/demo
demo_simple/__manifest__.py
Python
agpl-3.0
3,001
# pylint: disable=line-too-long """ End to end test of the per-module engagement workflow. """ import datetime import logging import ddt from edx.analytics.tasks.tests.acceptance import AcceptanceTestCase, when_elasticsearch_available log = logging.getLogger(__name__) @ddt.ddt class ModuleEngagementAcceptanceTest...
edx/edx-analytics-pipeline
edx/analytics/tasks/tests/acceptance/test_module_engagement.py
Python
agpl-3.0
17,667
# -*- coding: utf-8 -*- ############################################################################## # For copyright and license notices, see __openerp__.py file in root directory ############################################################################## from openerp import models, fields, api, exceptions, _ c...
factorlibre/odoomrp-wip
stock_picking_wave_management/models/stock_picking_wave.py
Python
agpl-3.0
3,408