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
import pygame import time import os from global_variables import COLORS, ICONS, ICON_FONT_FILE, FONTS from pygame.locals import * from sunquest import * from string import maketrans Uppercase = maketrans("7894561230", 'SMTWHF X ') DEBUG = False class VirtualKeyboard(): ''' Implement a bas...
daftscienceLLC/pifile
keyboard.py
Python
gpl-3.0
18,205
import csv import numpy import os from argparse import ArgumentParser def generate_diagnostics(list_of_filenames): (col_names, runs) = read_mcmc_traces(list_of_filenames) runs2 = divide_runs(runs) num_samples = numpy.shape(runs2[0])[0] R_hat = [] for n in range(250,num_samples+1,250): R_...
gerberlab/mitre
mitre/mcmc_diagnostics.py
Python
gpl-3.0
2,438
# -*- coding: UTF-8 -*- # Copyright (C) 2006, 2010 Hervé Cauwelier <herve@oursours.net> # Copyright (C) 2007 Henry Obein <henry.obein@gmail.com> # Copyright (C) 2007 Sylvain Taverne <taverne.sylvain@gmail.com> # Copyright (C) 2007-2008, 2010-2012 J. David Ibáñez <jdavid.ibp@gmail.com> # Copyright (C) 2010 David Versmis...
nicolasderam/itools
itools/database/rw.py
Python
gpl-3.0
24,113
""" A module for log entries' representation """ import datetime import sys # a number of constants controlling the structure of entries' headers YEAR_SIZE = 4 MONTH_SIZE = 4 DAY_SIZE = 4 LENGTH_SIZE = 8 MARK_LENGTH_SIZE = 8 YEAR_OFFSET = 0 MONTH_OFFSET = YEAR_OFFSET + YEAR_SIZE DAY_OFFSET = MONTH_OFFSET + MONTH_SIZ...
mpevnev/Simlog
src/entry.py
Python
gpl-3.0
4,113
import time import itertools import heapq import operator from functools import reduce from collections import namedtuple import numpy as np import pyqtgraph as pg from PyQt4 import QtGui, QtCore from PyQt4.QtCore import Qt, QRectF, QPointF import Orange.data from Orange.data.sql.table import SqlTable from Orange.st...
jzbontar/orange-tree
Orange/widgets/visualize/owheatmap.py
Python
gpl-3.0
46,118
#!/usr/bin/env python import numpy as np import cffirmware def test_takeoff(): # Fixture planner = cffirmware.planner() cffirmware.plan_init(planner) pos = cffirmware.mkvec(0, 0, 0) yaw = 0 targetHeight = 1.0 targetYaw = 0 duration = 2 # Test cffirmware.plan_takeoff(planner, p...
bitcraze/crazyflie-firmware
test_python/test_planner.py
Python
gpl-3.0
564
from django.conf.urls.defaults import patterns, include, url from webui.platforms import utils import logging logger = logging.getLogger(__name__) urlpatterns = patterns('', url(r'^application/(?P<appname>[\w|\W]+)/$', 'webui.platforms.views.appdetails', name = "application_details"), ) installed_platforms = uti...
kermitfr/kermit-webui
src/webui/platforms/urls.py
Python
gpl-3.0
607
from django.db import models # Create your models here. class BatchHostSettings(models.Model): name = models.CharField(max_length=200) host = models.CharField(max_length=200) user = models.CharField(max_length=200) port = models.IntegerField(default=22) sshpub = models.TextField(blank=True) fs_engine = models.Ch...
dziadu/batch_monitor
models.py
Python
gpl-3.0
415
#!/usr/bin/env python #hi this is a test commit from setuptools import setup setup(name="BZRFlag", version="1.0", description="BZRFlag: BZFlag with Robotic Tanks!", long_description="See README", license="GNU GPL", author="BYU AML Lab", author_email="kseppi@byu.edu", url="http...
edwardekstrom/BZRflag
setup.py
Python
gpl-3.0
996
#!/usr/bin/env python3 # -*- coding: utf-8 -*- #a test for traverse directory __author__ = 'AlbertS' import os import os.path def showdir(): for parent, dirnames, filenames in os.walk("./"): #分别返回:父目录、所有文件夹名字(不含路径)、有文件名字 if '.git' not in parent and '.gita' not in dirnames: for filename ...
AlbertGithubHome/TestPullRequest
ShowDirectory.py
Python
gpl-3.0
1,206
#!/usr/bin/env python # encoding: utf-8 # # Copyright (c) 2008 Doug Hellmann All rights reserved. # """ """ #end_pymotw_header import warnings warnings.filterwarnings('ignore', '.*', UserWarning, 'warnings_filtering', 14...
qilicun/python
python2/PyMOTW-1.132/PyMOTW/warnings/warnings_filterwarnings_lineno.py
Python
gpl-3.0
349
import math def sign(val): return (-1 if val<0 else 1) def find_vect_normal(vect): n = [vect[1], -vect[0], 0] return n def mk_vect(s, e): if len(e) == 3 and len(s) == 3: return [e[0]-s[0], e[1]-s[1], e[2]-s[2]] return [e[0]-s[0], e[1]-s[1], 0] def normalize(v): if len(v) == 3: ...
snegovick/map_editor
tileset_editor/utils.py
Python
gpl-3.0
12,522
from django.conf import settings from django.contrib.auth.decorators import login_required from django.http import Http404, JsonResponse from django.template.loader import render_to_string from django.utils.safestring import mark_safe from django.views.decorators.cache import never_cache from django.views.decorators.ht...
pcolmant/repanier
repanier/views/order_ajax.py
Python
gpl-3.0
4,550
#!/usr/bin/env python3 # Copyright 2015 Ivan awamper@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 2 of # the License, or (at your option) any later version. # # Th...
awamper/draobpilc
draobpilc/lib/utils.py
Python
gpl-3.0
7,280
# -*- coding: utf-8 -*- # # Copyright (C) 2007-2013 by Erwin Marsi and TST-Centrale # # This file is part of the DAESO Framework. # # The DAESO Framework 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 ...
emsrc/daeso-framework
lib/daeso/pgc/diff.py
Python
gpl-3.0
6,732
# This file is part of Indico. # Copyright (C) 2002 - 2021 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from sqlalchemy.event import listens_for from sqlalchemy.ext.declarative import declared_attr from indico...
DirkHoffmann/indico
indico/core/db/sqlalchemy/locations.py
Python
gpl-3.0
10,872
# Plugin by Infinity - <https://github.com/infinitylabs/UguuBot> from util import hook, http, text db_ready = False def db_init(db): """check to see that our db has the horoscope table and return a connection.""" db.execute("create table if not exists horoscope(nick primary key, sign)") db.commit() ...
thejordan95/Groovebot2
plugins/horoscope.py
Python
gpl-3.0
1,664
import copy import json import logging import colander import datetime from pyramid.httpexceptions import HTTPBadRequest from lokp.config.form import getCategoryList from lokp.models import DBSession from lokp.protocols.activity_protocol import ActivityProtocol from lokp.protocols.stakeholder_protocol import Stakehol...
CDE-UNIBE/lokp
lokp/utils/form.py
Python
gpl-3.0
59,621
# -*- coding: utf-8 # pylint: disable=line-too-long import os import hashlib import gzip import shutil import anvio import anvio.db as db import anvio.tables as t import anvio.utils as utils import anvio.hmmops as hmmops import anvio.terminal as terminal import anvio.constants as constants import anvio.filesnpaths as...
meren/anvio
anvio/tables/hmmhits.py
Python
gpl-3.0
27,874
import subprocess import textwrap import socket import vim import sys import os import imp from ui import DebugUI from dbgp import DBGP def vim_init(): '''put DBG specific keybindings here -- e.g F1, whatever''' vim.command('ca dbg Dbg') def vim_quit(): '''remove DBG specific keybindings''' vim.comma...
elsdrm/vim-debug
plugin/vim_debug/new_debugger.py
Python
gpl-3.0
10,718
from flask import Flask # from flask.ext.mail import Mail # from flask.ext.sqlalchemy import SQLAlchemy # from flask.ext.security import Security # from flask.ext.babel import Babel # from flask.ext.assets import Environment # mail = Mail() # db = SQLAlchemy() # security = Security() # assets = Environment() # babel ...
jkur/snmp-manager
app/__init__.py
Python
gpl-3.0
330
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2013 - 2021 Pytroll developers # # Author(s): # # Martin Raspaud <martin.raspaud@smhi.se> # # 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 ...
pytroll/pytroll-collectors
pytroll_collectors/tests/test_scisys.py
Python
gpl-3.0
12,537
#!/usr/bin/python import ldap import ldap.modlist as modlist l = ldap.initialize("ldap://192.168.1.5") l.simple_bind_s("cn=admin,dc=pyatt,dc=lan","qwerty") try: #l.search_s("cn=admin,dc=pyatt,dc=lan", ldap.SCOPE_SUBTREE, "objectclass=*") print l.search_s('ou=Group,dc=pyatt,dc=lan', ldap.SCOPE_SUBTREE,'(cn=kpyat...
roguefalcon/rpi_docker_images
user-registration/ldap_test.py
Python
gpl-3.0
1,607
"""The game of life commands""" from GOL_Sim.GOL_Simulation import GOL_Simulation from src.CommandSystem import CommandSystem GOL_COMMANDS = CommandSystem(help_summary='Game of life genetic algorithm commands.') GOL_INSTANCES = {} GOL_MAX_PROCESSING = 50 ** 50 * (7 * 7) GOL_MAX_CYCLES = 25 def _numberify(terms): ...
eniallator/Discord-EniBot
src/CommandSystems/GOL.py
Python
gpl-3.0
5,184
#task_6 import matplotlib.pyplot as plt import networkx as nx # reading form file input_file = open('data.txt', 'r') list_of_lines = input_file.readlines() # creating nodes and edges of the graph graph = nx.Graph() for s in list_of_lines: a, b, w = tuple(s.split()) graph.add_edge(a, b, weight = float(w)) # поиск и вы...
Senbjorn/mipt_lab_2016
lab_20/task_6.py
Python
gpl-3.0
1,869
from django.contrib import admin from dream.core.models import MatchTeam @admin.register(MatchTeam) class MatchTeamAdmin(admin.ModelAdmin): list_display = ( 'team', 'role', 'tactics', 'tactics_ref' )
alumarcu/dream-framework
dream/core/admin/match_team.py
Python
gpl-3.0
243
#!/usr/bin/python '''\ Kickstart Debugger, written by Schlomo Schapiro. Licensed under the <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>. The favicon.ico is taken from the XFCE project. ''' __version__ = "$Id$" import base64 # remember to use %% and \\ instead of % and \ ! builtinPa...
ImmobilienScout24/kickstart-debugger
kickstart-debugger.py
Python
gpl-3.0
15,275
#!/usr/bin/env python # encoding: utf-8 """Not really a lexer in the classical sense, but code to convert snippet definitions into logical units called Tokens.""" import string import re from UltiSnips.position import Position from UltiSnips.text import unescape class _TextIterator: """Helper class to make it...
kzlin129/ultisnips
pythonx/UltiSnips/snippet/parsing/lexer.py
Python
gpl-3.0
11,949
def is_left_obstacle(lbot, threshold = 200): sonarsValue = lbot.getSonars()["left"] if min(sonarsValue) < threshold: return True return False
ibarbech/learnbot
learnbot_dsl/functions/perceptual/distancesensors/is_left_obstacle.py
Python
gpl-3.0
147
# -*- coding: utf-8 -*- # # This file is part of the shibboleth-authenticator module for Invenio. # Copyright (C) 2017 Helmholtz-Zentrum Dresden-Rossendorf # # 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...
tobiasfrust/shibboleth-authenticator
shibboleth_authenticator/utils.py
Python
gpl-3.0
2,488
import os from unittest import TestCase from unittest.mock import PropertyMock, patch from libres_utils import tmpdir from job_runner.job import Job from job_runner.reporting.message import Exited, Running, Start class JobTests(TestCase): @patch("job_runner.job.assert_file_executable") @patch("job_runner.jo...
joakim-hove/ert
tests/libres_tests/job_runner/test_job.py
Python
gpl-3.0
3,312
# -*- coding: utf-8 -*- # <Lettuce - Behaviour Driven Development for python> # Copyright (C) <2010-2011> Gabriel Falcão <gabriel@nacaolivre.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 Foundatio...
scaphe/lettuce-dirty
tests/functional/test_behave_as_handling.py
Python
gpl-3.0
8,334
""" Integral Transforms """ from __future__ import print_function, division from sympy.core import S from sympy.core.compatibility import reduce from sympy.core.function import Function from sympy.core.numbers import oo from sympy.core.symbol import Dummy from sympy.integrals import integrate, Integral from sympy.int...
alephu5/Soundbyte
environment/lib/python3.3/site-packages/sympy/integrals/transforms.py
Python
gpl-3.0
61,082
from __future__ import absolute_import, print_function, division def MonObuVar(L_m, siteConf): """Redirects to stabilityParam()""" return stabilityParam(L_m, siteConf) def stabilityParam(L_m, siteConf): """ Calculates the Monin-Obukhov Similarity Variable defined as zeta = (z-d)/Lo where ...
tomchor/pymicra
pymicra/micro/scales.py
Python
gpl-3.0
8,923
import logging from .base import AbstractHandler logger = logging.getLogger(__name__) class SearchHandler(AbstractHandler): """ Supported query parameters: search keyword search keyword [type=playlist] TODO: search keyword [type=all,source=netease,limit=10] """ cmds = 'search' ...
cosven/FeelUOwn
feeluown/server/handlers/search.py
Python
gpl-3.0
1,516
from ansible.compat.tests import unittest from ansible.compat.tests.mock import patch from ansible.module_utils import basic from library import mysql_query from tests.fixtures import MYSQL_CONNECTION_PARAMS, Fixture from tests.utils import set_module_args, AnsibleFailJson, exit_json, fail_json, AnsibleExitJson class...
zauberpony/ansible-mysql-query
tests/test_mysql_query_multi_check.py
Python
gpl-3.0
3,789
""" You are given the following information, but you may prefer to do some research for yourself. 1 Jan 1900 was a Monday. Thirty days has September, April, June and November. All the rest have thirty-one, Saving February alone, Which has twenty-eight, rain or shine. And on leap years, twen...
adiultra/pysick
projecteuler/p19.py
Python
gpl-3.0
911
# (c) Copyright 2015, University of Manchester # # This file is part of the Pyomo Plugin Demo Suite. # # The Pyomo Plugin Demo Suite 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...
UMWRG/demos
CostMinimisationDemo/model/pyomo/cost_minimisation.py
Python
gpl-3.0
12,599
#!/usr/bin/python3 # -*- coding: utf-8, vim: expandtab:ts=4 -*- # Miscellaneous tools for HunTag from operator import itemgetter from collections import Counter, defaultdict from itertools import count import sys import gzip def sentenceIterator(inputStream): currSen = [] currComment = None for line in i...
dlt-rilmta/hunlp-GATE
Lang_Hungarian/resources/huntag3/tools.py
Python
gpl-3.0
3,699
# -*- coding: utf-8 -*- import gtk from pygtktalog import logger UI = """ <ui> <menubar name="MenuBar"> <menu action="File"> <menuitem action="New"/> <menuitem action="Open"/> <menuitem action="Save"/> <menuitem action="Save As"/> <separator/> <menuitem action="Im...
gryf/pygtktalog
pygtktalog/gtk2/gui.py
Python
gpl-3.0
7,824
from __future__ import division import math as m import numpy as np from numpy import nan, any, array, asarray, ones, arange, delete, where from numpy.random import permutation from .utils import medsig from .core import * class DtData(object): """Utility class that encapsulates the fluxes and inputs for a detre...
OxES/k2sc
src/dtdata.py
Python
gpl-3.0
5,158
# Outspline - A highly modular and extensible outliner. # Copyright (C) 2011 Dario Giovannetti <dev@dariogiovannetti.net> # # This file is part of Outspline. # # Outspline 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 F...
kynikos/outspline
src/outspline/coreaux/exceptions.py
Python
gpl-3.0
1,452
# Caesar Cipher - Python Code - Elizabeth Tweedale # t is the text string for decoding/encoding # k is the key integer # decode is a boolean def caesar(t, k, decode = False): if decode: k = 26 - k # check if you are decoding or encoding # if decode = True, shift the key forward ...
elizabethtweedale/HowToCode2
SuperSkill-05-Spy/caesar_cipher.py
Python
gpl-3.0
1,183
from GangaCore.GPIDev.Base.Proxy import stripProxy def test_export(gpi, tmpdir): files = [gpi.LocalFile() for _ in range(100)] d = gpi.GangaDataset(files=files) fn = str(tmpdir.join('ganga-export')) gpi.export(d, fn) def test_roundtrip(gpi, tmpdir): files = [gpi.LocalFile() for _ in range(100)] ...
ganga-devs/ganga
ganga/GangaCore/test/GPI/TestPersistency.py
Python
gpl-3.0
574
# -*- coding: utf-8 -*- import re from channels import renumbertools from channelselector import get_thumb from core import httptools from core import scrapertools from core import servertools from core import tmdb from core.item import Item from platformcode import config, logger from channels import autoplay IDIO...
pitunti/alfaPitunti
plugin.video.alfa/channels/serieslan.py
Python
gpl-3.0
6,772
import os import mu_repo from .utils import push_dir def set_up(workdir): join = os.path.join paths = { 'dir1': join(workdir, 'projectA', 'sectionX'), 'dir2': join(workdir, 'projectB', 'sectionY'), 'repo1': join(workdir, 'projectA', 'sectionX', 'repo1'), 'rep...
fabioz/mu-repo
mu_repo/tests/test_register.py
Python
gpl-3.0
2,664
# -*- coding: utf-8 -*- """ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in...
chaosmaker/pyload
module/plugins/hooks/Checksum.py
Python
gpl-3.0
8,302
# -*- coding: utf-8 -*- # # Copyright (C) Pootle contributors. # # This file is a part of the Pootle project. It is distributed under the GPL3 # or later license. See the LICENSE file for a copy of the license and the # AUTHORS file for copyright and authorship information. from pkgutil import iter_modules from . imp...
claudep/pootle
pytest_pootle/plugin.py
Python
gpl-3.0
1,502
import threading from sqlalchemy import Column, UnicodeText, Integer, String, Boolean from tg_bot.modules.sql import BASE, SESSION class GloballyBannedUsers(BASE): __tablename__ = "gbans" user_id = Column(Integer, primary_key=True) name = Column(UnicodeText, nullable=False) reason = Column(UnicodeTe...
PaulSonOfLars/tgbot
tg_bot/modules/sql/global_bans_sql.py
Python
gpl-3.0
4,180
# -*- encoding: utf-8 -*- """ Factory object creation for all CLI methods """ import datetime import json import logging import os import random import time from fauxfactory import ( gen_alphanumeric, gen_choice, gen_integer, gen_ipaddr, gen_mac, gen_netmask, gen_string, ) from os import c...
omaciel/robottelo
robottelo/cli/factory.py
Python
gpl-3.0
177,458
# This file is part of Indico. # Copyright (C) 2002 - 2021 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. import icalendar from lxml import html from lxml.etree import ParserError from werkzeug.urls import url_pa...
DirkHoffmann/indico
indico/modules/events/ical.py
Python
gpl-3.0
4,640
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting field 'ReportTemplate.type' db.delete_column('lizard_htmlreport_reporttemplate', 'type') ...
lizardsystem/lizard-htmlreport
lizard_htmlreport/migrations/0005_auto__del_field_reporttemplate_type__add_field_reporttemplate_kind.py
Python
gpl-3.0
8,531
import shlex import sys import contextlib import nose import six from six import StringIO from ipatests import util from ipalib import api, errors import pytest if six.PY3: unicode = str TEST_ZONE = u'zoneadd.%(domain)s' % api.env @pytest.mark.tier0 class TestCLIParsing(object): """Tests that commandlines...
ofayans/freeipa
ipatests/test_cmdline/test_cli.py
Python
gpl-3.0
10,902
VERSION = '0.01"
BurritoBob/GUIMiner-X11
version.py
Python
gpl-3.0
17
"""Exceptions raised by the employee browser app.""" class EmployeeExc(Exception): """Base class for all app exceptions. Provides a common way to display exceptions. Subclass this class and define a 'message' property. That message will get printf'd with the keyword arguments provided to the c...
lseek/empdb
employees/exceptions.py
Python
gpl-3.0
1,088
# -*- coding: utf-8 -*- """ Created on Mon Apr 02 11:54:33 2012 @author: a1185872 """ import os import numpy as np import matplotlib.pyplot as plt import matplotlib.pylab as pylab from matplotlib.ticker import MultipleLocator, FormatStrFormatter from matplotlib.patches import Ellipse, Rectangle, Arrow from matplotli...
MTgeophysics/mtpy
legacy/ws3dtools.py
Python
gpl-3.0
93,047
#!/usr/bin/python2 # -*- coding: utf-8 -*- ''' @date: 2016-09-07 @author: Heysion Yuan @copyright: 2016, Heysion Yuan <heysions@gmail.com> @license: GPLv3 ''' import yaml import json from dabsv import HandlerBase class DaemonLoginHandler(HandlerBase): def get(self): self.wirte("login failed") pass
heysion/deepin-auto-build
dab/hub/manager/daemon.py
Python
gpl-3.0
320
# noinspection PyPackageRequirements import wx # noinspection PyPackageRequirements import wx.html _t = wx.GetTranslation class ItemTraits(wx.Panel): def __init__(self, parent, stuff, item): wx.Panel.__init__(self, parent) mainSizer = wx.BoxSizer(wx.VERTICAL) self.SetSizer(mainSizer) ...
pyfa-org/Pyfa
gui/builtinItemStatsViews/itemTraits.py
Python
gpl-3.0
2,013
# Authors: # Rob Crittenden <rcritten@redhat.com> # Pavel Zuna <pzuna@redhat.com> # # Copyright (C) 2009 Red Hat # see file 'COPYING' for use and warranty information # # 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 # th...
apophys/freeipa
ipaserver/plugins/group.py
Python
gpl-3.0
28,467
import logging import hashlib import redo import requests # Self file imports import csum import oddity #@profile def downloadmar(url, checksum, cipher='sha512', output_file=None): """ Downloads the file specified by url, verifies the checksum. The file is written to the location specified by output file...
ffledgling/Senbonzakura
senbonzakura/utils/fetch.py
Python
mpl-2.0
3,562
import datetime import os import re import unittest def build_substitution_table(params): table = { '<PROJECT_NAME>' : params['project_name'], '<PROJECT_NAME_LOWER>' : params['project_name'].lower(), '<CURRENT_YEAR>' : str(datetime.datetime.now().year) } if params['devel...
radupopescu/merou
merou/template.py
Python
mpl-2.0
2,467
import argparse import json import logging import os import sys from tools import localpaths from six import iteritems from . import virtualenv here = os.path.dirname(__file__) wpt_root = os.path.abspath(os.path.join(here, os.pardir, os.pardir)) def load_commands(): rv = {} with open(os.path.join(here, "p...
mbrubeck/servo
tests/wpt/web-platform-tests/tools/wpt/wpt.py
Python
mpl-2.0
4,227
#! /usr/bin/env python from setuptools import setup, find_packages setup( name="balrogclient", version="0.0.4", description="Balrog Admin API Client", author="Release Engineers", author_email="release@mozilla.com", packages=['balrogclient'], test_suite='balrogclient.test', install_re...
aksareen/balrog
client/setup.py
Python
mpl-2.0
389
# encoding: utf-8 # # # 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/. # # Author: Kyle Lahnakoski (kyle@lahnakoski.com) # from __future__ import absolute_import from __f...
klahnakoski/MySQL-to-S3
vendor/jx_elasticsearch/es52/format.py
Python
mpl-2.0
10,438
# 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 nose.tools import * import os import tlscanary.sources_db as sdb import tests def test_sources_db_instance(): ...
mwobensmith/tls-canary
tests/sources_db_test.py
Python
mpl-2.0
5,380
from django.test import TestCase from .models import GameModel from game_app.clean_files import reset_file, config_section_map, change_settings import io class JunkTestCase(TestCase): """Test junk_drawer functions.""" def setUp(self): """Setup.""" self.model = GameModel(title='test1', ini_fil...
flegald/Gameini
gameini/game_app/test_clean_files.py
Python
mpl-2.0
1,612
# -*- 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...
morrillo/stock_move_validation
__openerp__.py
Python
agpl-3.0
1,399
class GooDiffDocument: def __init__(self, url, replaces=None): self.url = url self.replaces = replaces or [] def debug(self): print "Document url:", self.url print "Document replaces:", self.replaces
quuxlabs/goodiff-core
includes/GooDiffDocument.py
Python
agpl-3.0
243
# -*- coding: utf-8 -*- ############################################################################### # # # Copyright (C) 2016 Trustcode - www.trustcode.com.br # # Danimar Ribeiro <danimaribeiro@gmail.com>...
Trust-Code/trust-addons
trustcode_helpdesk_client/models/__init__.py
Python
agpl-3.0
1,599
# -*- coding: utf-8 -*- # Akvo RSR is covered by the GNU Affero General Public License. # See more details in the license.txt file located at the root folder of the Akvo RSR module. # For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >. from akvo.utils import rsr_image_path ...
akvo/akvo-rsr
akvo/rsr/models/keyword.py
Python
agpl-3.0
1,547
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2018-05-03 13:17 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ovp_users', '0034_user_exceeded_login_attempts'), ] operations = [ migratio...
OpenVolunteeringPlatform/django-ovp-users
ovp_users/migrations/0035_user_phone2.py
Python
agpl-3.0
506
""" Copyright (C) 2014 Kompetenzzentrum fuer wissensbasierte Anwendungen und Systeme Forschungs- und Entwicklungs GmbH (Know-Center), Graz, Austria office@know-center.at 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 ...
patrickhoefler/linked-data-wizards
ldva/apps/visbuilder/tablegenerator.py
Python
agpl-3.0
5,804
# -*- encoding: utf-8 -*- ############################################################################### # # # Copyright (C) 2015 Trustcode - www.trustcode.com.br # # Danimar Ribeiro <danimaribeiro@gmail.co...
thinkopensolutions/odoo-brazil-banking
l10n_br_bank_statement_import/models/account_bank_statement_import.py
Python
agpl-3.0
6,195
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2011 DeneroTeam. (<http://www.deneroteam.com>) # Copyright (C) 2011 Didotech Inc. (<http://www.didotech.com>) # All Rights Reserved # # This program is free software: you can redistribute...
iw3hxn/LibrERP
product_catalog_extend/wizard/__init__.py
Python
agpl-3.0
1,061
import essentia import essentia.streaming as es # import matplotlib for plotting import matplotlib.pyplot as plt import numpy as np import sys # algorithm parameters params = { 'frameSize': 2048, 'hopSize': 512, 'startFromZero': False, 'sampleRate': 44100,'maxnSines': 100,'magnitudeThreshold': -74,'minSineDur': 0.02...
carthach/essentia
src/examples/python/musicbricks-tutorials/2-sinemodel_analsynth.py
Python
agpl-3.0
2,076
# Copyright 2019 Camptocamp SA # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) from odoo import fields class Many2manyCustom(fields.Many2many): """Many2manyCustom field is intended to customize Many2many properties. :param create_table: defines if the relational table must be created at t...
OCA/server-tools
base_m2m_custom_field/fields.py
Python
agpl-3.0
581
# coding: utf-8 import json import responses from django.conf import settings from django.urls import reverse from ipaddress import ip_address from rest_framework import status from kpi.constants import SUBMISSION_FORMAT_TYPE_JSON, SUBMISSION_FORMAT_TYPE_XML from kpi.exceptions import BadFormatException from kpi.test...
kobotoolbox/kpi
kobo/apps/hook/tests/hook_test_case.py
Python
agpl-3.0
5,718
# # This file is part of the Wiftgish project. # # Copyright (C) 2013 Stephen M Buben <smbuben@gmail.com> # # Wiftgish 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...
smbuben/wiftgish
appengine_config.py
Python
agpl-3.0
1,068
""" Utility method for the accounts application """ # Django from django.conf import settings from django.contrib import messages from django.contrib.auth.models import User from django.core.validators import validate_email from django.forms import ValidationError from django.utils.safestring import mark_safe # Standa...
MuckRock/muckrock
muckrock/accounts/utils.py
Python
agpl-3.0
4,612
#!/usr/bin/env python # -*- coding: utf-8 -*- import socket import struct import time from hashlib import md5 import sys import os import random import binascii # CONFIG server = "192.168.100.150" username = "" password = "" host_name = "LIYUANYUAN" host_os = "8089D" host_ip = "10.30.22.17" PRIMARY_DNS = "114.114.114...
drcoms/drcom-generic
latest-wired-python3.py
Python
agpl-3.0
15,765
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2013-2014 Didotech srl (info@didotech.com) # All Rights Reserved # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Pu...
iw3hxn/LibrERP
product_bom/models/mrp_bom.py
Python
agpl-3.0
10,462
from comics.aggregator.crawler import ComicControlCrawlerBase from comics.core.comic_data import ComicDataBase class ComicData(ComicDataBase): name = "Sticky Dilly Buns" language = "en" url = "http://www.stickydillybuns.com/" start_date = "2013-01-07" rights = "G. Lagace" active = False clas...
jodal/comics
comics/comics/stickydillybuns.py
Python
agpl-3.0
583
# coding=UTF-8 from time import time from bellum.stats.models import Report def makeReport(repdata, title): return Report.create(repdata, title) def sendTo(report, account, solicited): '''Solicited defines whether the report was solicited or no. It affects presenting it in chat system''' from bellum.chat....
piotrmaslanka/bellum
stats/reports/__init__.py
Python
agpl-3.0
583
# -*- coding: utf-8 -*- ############################################################################### # # # Copyright (C) 2016 Dominic Krimmer # # ...
dkrimmer84/l10n_co_res_partner
models/ciiu.py
Python
agpl-3.0
3,395
# Copyright (c) 2014 by Ecreall under licence AGPL terms # available on http://www.gnu.org/licenses/agpl.html # licence: AGPL # author: Amen Souissi import deform import colander from pyramid.view import view_config from dace.processinstance.core import DEFAULTMAPPING_ACTIONS_VIEWS from pontus.default_behavior impo...
ecreall/nova-ideo
novaideo/views/idea_management/make_opinion.py
Python
agpl-3.0
2,080
from . import update, read
uclouvain/osis_louvain
base/views/education_groups/group_element_year/__init__.py
Python
agpl-3.0
27
# This file is part of rhizi, a collaborative knowledge graph editor. # Copyright (C) 2014-2015 Rhizi # # 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...
ozFri/rhizi
rhizi/neo4j_qt.py
Python
agpl-3.0
6,163
#!/usr/bin/python #-*- coding: utf-8 -*- ########################################################### # © 2011 Daniel 'grindhold' Brendle and Team # # This file is part of Skarphed. # # Skarphed is free software: you can redistribute it and/or # modify it under the terms of the GNU Affero General Public License # as ...
skarphed/skarphed
admin/src/skarphedadmin/data/skarphed/Roles.py
Python
agpl-3.0
2,253
# -*- coding: utf-8 -*- # Generated by Django 1.9.12 on 2017-01-18 11:20 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('moderate', '0001_initial'), ] operations = [ migrations.AlterField( ...
johngian/mozmoderator
moderator/moderate/migrations/0002_auto_20170118_1120.py
Python
agpl-3.0
480
# -*- coding: utf-8 -*- ############################################################################## # # Author: Yannick Buron. Copyright Yannick Buron # # 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 t...
YannickB/server-tools
base_recursive_model/__openerp__.py
Python
agpl-3.0
1,216
# Copyright 2020 Camptocamp SA # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) from odoo.tests import SavepointCase class TestCommonMoveDest(SavepointCase): @classmethod def setUpClass(cls): super().setUpClass() cls.env = cls.env(context=dict(cls.env.context, tracking_disable=T...
OCA/stock-logistics-warehouse
stock_move_common_dest/tests/test_move_common_dest.py
Python
agpl-3.0
6,550
# Generated by Django 4.0 on 2022-02-28 08:55 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("contenttypes", "0002_remove_content_type_name"), ("observations", "0008_use_explicit_base_manager_name"), ] o...
City-of-Helsinki/smbackend
observations/migrations/0009_alter_observation_polymorphic_ctype.py
Python
agpl-3.0
750
from telecommand import Telecommand class PingTelecommand(Telecommand): def __init__(self): Telecommand.__init__(self) def apid(self): return 0x50 def payload(self): return []
PW-Sat2/PWSat2OBC
integration_tests/telecommand/ping.py
Python
agpl-3.0
224
# Copyright (C) 2021 Sebastian Pipping <sebastian@pipping.org> # Licensed under GNU Affero GPL v3 or later from django.http import FileResponse from django.test import TestCase from django.urls import reverse from parameterized import parameterized from ..favicon import FAVICON_FILES class FaviconTest(TestCase): ...
hartwork/wnpp.debian.net
wnpp_debian_net/views/tests/test_favicon.py
Python
agpl-3.0
557
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import unittest import webnotes class TestItem(unittest.TestCase): def test_duplicate_item(self): from stock.doctype.item_price.item_price import ItemPriceDuplica...
gangadhar-kadam/sapphire_app
stock/doctype/item_price/test_item_price.py
Python
agpl-3.0
576
# -*- coding: utf-8 -*- # This file is part of Shuup. # # Copyright (c) 2012-2016, 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 unicode_literals import json import six from django...
shawnadelic/shuup
shuup/admin/utils/picotable.py
Python
agpl-3.0
14,951
#!/usr/bin/python # -*- coding: utf-8 -*- from django.db import models, connection, transaction from kamu.votes.models import Member, Party, Session, Vote from django.contrib.auth.models import User from django.conf import settings class QuestionSource(models.Model): name = models.CharField(max_length=255) y...
kansanmuisti/kamu
opinions/models.py
Python
agpl-3.0
14,959
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2014 Pexego All Rights Reserved # $Jesús Ventosinos Mayor <jesus@pexego.es>$ # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affer...
jgmanzanas/CMNT_004_15
project-addons/location_moves/__init__.py
Python
agpl-3.0
1,014
# -*- coding: utf-8 -*- # pylint: disable=line-too-long """This module is used for parsing the received lines into a machine readable structure.""" from __future__ import annotations import re import typing import eml_parser.decode import eml_parser.regex def noparenthesis(line: str) -> str: """Remove nested ...
sim0nx/eml_parser
eml_parser/routing.py
Python
agpl-3.0
6,393
from django.contrib import admin from django.db import models as dmodels from SIP import models #get the models from myproject.models] mods = [x for x in models.__dict__.values() if issubclass(type(x), dmodels.base.ModelBase)] admins = [] #for each model in our models module, prepare an admin class #that will edi...
openiitbombayx/blendedmoocs-mis
IITBOMBAYX_PARTNERS/SIP/admin.py
Python
agpl-3.0
637