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/python3 import argparse import code import readline import signal import sys from parse import Argparser, premain, SigHandler_SIGINT,PythonInterpreter from utils import ParseFlags def getWASMModule(): module_path = sys.argv[1] interpreter = PythonInterpreter() module = interpreter.parse(module_...
bloodstalker/mutator
bruiser/wasm/dwasm.py
Python
gpl-3.0
855
import unittest import decodes.core as dc from decodes.core import * from decodes.extensions.voxel import * class Tests(unittest.TestCase): def test_constructor(self): bounds = Bounds(center=Point(),dim_x=8,dim_y=8,dim_z=8) vf = VoxelField(bounds,4,4,4) vf.set(0,0,0,10.0) vf.set(3...
ksteinfe/decodes
tests/test_voxel.py
Python
gpl-3.0
906
from __future__ import print_function import os from ftplib import FTP def place_file(ftp, filename): ftp.storbinary('STOR ' + filename,open(filename, 'rb')) if __name__ == '__main__': url = 'ftp.k-bits.com' ftp = FTP(url) user = 'usuario1@k-bits.com' passw = 'happy1234' ftp.login(user, pass...
chrisRubiano/TAP
dolar/ftp.py
Python
gpl-3.0
494
from vsg.rules import token_case from vsg import token lTokens = [] lTokens.append(token.package_body.body_keyword) class rule_501(token_case): ''' This rule checks the **body** keyword has proper case. |configuring_uppercase_and_lowercase_rules_link| **Violation** .. code-block:: vhdl ...
jeremiah-c-leary/vhdl-style-guide
vsg/rules/package_body/rule_501.py
Python
gpl-3.0
563
import xml.etree.ElementTree as ElementTree from model.dynamic.api import api from model.dynamic.skills.skill_queue_item import SkillQueueItem class SkillQueue(object): def __init__(self, user_id, api_key, character_id): api.fetch("char", "SkillQueue", user_id, api_key, character_id) tree = Elemen...
Iconik/eve-suite
src/model/dynamic/skills/skill_queue.py
Python
gpl-3.0
1,072
#!/usr/bin/env python # encoding: utf-8 """Copyright (C) 2013 COLDWELL AG 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...
MoroGasper/client
client/javascript.py
Python
gpl-3.0
1,277
import percolation as P import rdflib as r import os import time from rdflib import ConjunctiveGraph TT = time.time() class PercolationServer: def __init__(self, percolationdir="~/.percolation/"): percolationdir = os.path.expanduser(percolationdir) if not os.path.isdir(percolationdir): ...
ttm/percolation
percolation/bootstrap.py
Python
gpl-3.0
2,675
# ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2014, Numenta, Inc. Unless you have an agreement # with Numenta, Inc., for a separate license for this software code, the # following terms and conditions apply: # # This progra...
syl20bnr/nupic
nupic/test/temporal_memory_test_machine.py
Python
gpl-3.0
7,649
from callback_event import * def getOddNumber(k,getEvenNumber): return 1+getEvenNumber(k) def main(): k=1 i=getOddNumber(k,double); print(i) i=getOddNumber(k,quadruple); print(i) i=getOddNumber(k,lambda x:x*8) print(i) if __name__=="__main__":main()
AlexYu-beta/CppTemplateProgrammingDemo
Demo1_8/demo1_8.py
Python
gpl-3.0
278
import subprocess, sys def run_doxygen(folder): """Run the doxygen make command in the designated folder""" try: retcode = subprocess.call("cd %s; make" % folder, shell=True) if retcode < 0: sys.stderr.write("doxygen terminated by signal %s" % (-retcode)) except OSError as e: ...
UCLOrengoGroup/cath-tools
docs/conf.py
Python
gpl-3.0
743
from __future__ import print_function, absolute_import from PySide2 import QtGui,QtCore,QtWidgets from math import * import pickle, os, json import learnbot_dsl.guis.EditVar as EditVar from learnbot_dsl.learnbotCode.Block import * from learnbot_dsl.learnbotCode.Language import getLanguage from learnbot_dsl.learnbotCode...
robocomp/learnbot
learnbot_dsl/learnbotCode/VisualBlock.py
Python
gpl-3.0
29,715
#!/usr/bin/env python import sys from setuptools import setup, find_packages from setuptools.command.test import test as TestCommand import versioneer class PyTest(TestCommand): user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")] def initialize_options(self): TestCommand.initializ...
arsgeografica/kinderstadt-registry
setup.py
Python
gpl-3.0
1,548
""" Test Result ----------- Provides a TextTestResult that extends unittest._TextTestResult to provide support for error classes (such as the builtin skip and deprecated classes), and hooks for plugins to take over or extend reporting. """ import logging from unittest import _TextTestResult from nose.config import Co...
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/eggs/nose-0.11.1-py2.7.egg/nose/result.py
Python
gpl-3.0
5,943
# -*- test-case-name: twisted.conch.test.test_userauth -*- # Copyright (c) 2001-2009 Twisted Matrix Laboratories. # See LICENSE for details. """ Implementation of the ssh-userauth service. Currently implemented authentication types are public-key and password. Maintainer: Paul Swartz """ import struct, warnings from...
Donkyhotay/MoonPy
twisted/conch/ssh/userauth.py
Python
gpl-3.0
29,730
# This file is part of taxtastic. # # taxtastic 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. # # taxtastic is distrib...
fhcrc/taxtastic
taxtastic/subcommands/rollforward.py
Python
gpl-3.0
2,393
# -*- coding: utf-8 -*- from asyncore import write import serial import sys import time import strutils from datafile import DataFile __author__ = 'Trol' # Установка: # python -m pip install pyserial def _bytes(i): return divmod(i, 0x100) class Bootloader: CMD_SYNC = 0 CMD_ABOUT = 1 CMD_READ_FL...
trol73/avr-bootloader
software/python/loader.py
Python
gpl-3.0
8,577
# coding=utf-8 """PySnapSync client. This package implements the pysnapsync client. The package exports the following modules: o `snapsync` main backup script. See the module doc strings for more information. """ from __future__ import absolute_import from __future__ import print_function from __future__ import d...
dtaylor84/pysnapsync
pysnapsync/client/__init__.py
Python
gpl-3.0
427
#!/usr/bin/env python """zip source directory tree""" import argparse import fnmatch import logging import os import re import subprocess import zipfile def get_version(): command = ['git', 'describe', '--tags', '--dirty', '--always'] return subprocess.check_output(command).decode('utf-8') def source_walk(r...
nsubiron/configure-pyz
setup.py
Python
gpl-3.0
1,666
""" Author: RedFantom Contributors: Daethyra (Naiii) and Sprigellania (Zarainia) License: GNU GPLv3 as in LICENSE Copyright (C) 2016-2018 RedFantom """ from ast import literal_eval def config_eval(value): """ Safely evaluate a string that can be a in a configuration file to a valid Python value. Performs ...
RedFantom/GSF-Parser
settings/eval.py
Python
gpl-3.0
597
#!/usr/bin/env python3 import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk class MenuButton(Gtk.Window): def __init__(self): Gtk.Window.__init__(self) self.connect("destroy", Gtk.main_quit) menubutton = Gtk.MenuButton("MenuButton") self.add(menubutton) ...
hezral/Rogu
reference/menubutton.py
Python
gpl-3.0
750
f = open("data/planetsc.txt", "r") earth = 0 for line in f: planet = line.strip().lower() if planet[0] == "#": continue earth += 1 if planet == "earth": break print "Earth is planet #%d" % earth
otfried/cs101
code/files/planets4.py
Python
gpl-3.0
213
import xmlrpclib as xml import time # connect to environment via XML-RPC e = xml.ServerProxy('http://localhost:8001') def sense(): return e.do('sense', {'agent':'Ralph'}) def step(time): e.do('meta_step', {'seconds':time}) def do(command, args = None): if not args: args = {} args['agent'] = '...
dasmith/IsisWorld
agents/test_thoughts.py
Python
gpl-3.0
1,119
# ---------------------------------------------------------------------------- # Copyright (C) 2013-2014 Huynh Vi Lam <domovilam@gmail.com> # # This file is part of pimucha. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as pu...
domovilam/pimucha
piHAparsers/x10libs/c_cm1x.py
Python
gpl-3.0
1,136
#!/usr/bin/env python # -*- coding: utf-8 -*- # Part of the PsychoPy library # Copyright (C) 2018 Jonathan Peirce # Distributed under the terms of the GNU General Public License (GPL). """A Backend class defines the core low-level functions required by a Window class, such as the ability to create an OpenGL context a...
hoechenberger/psychopy
psychopy/visual/backends/pygletbackend.py
Python
gpl-3.0
16,713
# -*- coding: utf-8 -*- # Project : LM4paper # Created by igor on 17-3-14 import os import sys import time import json import numpy as np import tensorflow as tf from tensorflow.contrib.tensorboard.plugins import projector from mixlm.lm_train import * from mixlm.clstmdnn import CLSTMDNN from bmlm.common import Check...
IgorWang/LM4paper
mixlm/visualize.py
Python
gpl-3.0
5,856
import os from flask import Flask, url_for, request, render_template, jsonify, send_file from werkzeug.utils import secure_filename import deepchem as dc import subprocess from shutil import copyfile import csv import rdkit from rdkit import Chem from rdkit.Chem import AllChem from rdkit.Chem import Draw STATIC_DIR = ...
deepchem/deepchem-gui
gui/app.py
Python
gpl-3.0
8,020
#! /usr/bin/env python # -*- coding: utf-8 -*- """TODO""" # This file is part of Linshare cli. # # LinShare cli 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 ...
fred49/linshare-cli
linsharecli/user/shared_space_audit.py
Python
gpl-3.0
7,635
#!/bin/python2 import os, gzip, StringIO, time, csv, datetime from flask import Flask, request, redirect, url_for, render_template from werkzeug.utils import secure_filename from wtforms import Form, DecimalField, validators class UpdateForm(Form): weight = DecimalField('Weight', [validators.DataRequired()]) f...
bossen/smartscale
main.py
Python
gpl-3.0
1,578
#!/usr/bin/env python3 # Copyright (C) 2017 # ASTRON (Netherlands Institute for Radio Astronomy) # P.O.Box 2, 7990 AA Dwingeloo, The Netherlands # # This file is part of the LOFAR software suite. # The LOFAR software suite is free software: you can redistribute it # and/or modify it under the terms of the GNU General P...
kernsuite-debian/lofar
SAS/DataManagement/ResourceTool/resourcetool.py
Python
gpl-3.0
24,976
""" Python implementation of the matrix information measurement examples from the StackExchange answer written by WilliamAHuber for "Measuring entropy/ information/ patterns of a 2d binary matrix" http://stats.stackexchange.com/a/17556/43909 Copyright 2014 Cosmo Harrigan This program is free software, distributed unde...
cosmoharrigan/matrix-entropy
main.py
Python
gpl-3.0
1,624
#! /usr/bin/env python # DBus to turn USB on or off (by unbinding the driver) # The System D-bus import dbus import dbus.service from gi.repository import GLib from dbus.mainloop.glib import DBusGMainLoop from usb_inhibit import USB_inhibit class USB_Service_Blocker(dbus.service.Object): inhibitor_work = False ...
murarugeorgec/USB-checking
USB/USB_DBus/usb_dbus_system.py
Python
gpl-3.0
1,795
import argparse import ui.output def help_format_cloudcredgrab(prog): kwargs = dict() kwargs['width'] = ui.output.columns() kwargs['max_help_position'] = 34 format = argparse.HelpFormatter(prog, **kwargs) return (format) def parse(args): parser = argparse.ArgumentParser(prog="cloudcredgrab", ...
nil0x42/phpsploit
plugins/credentials/cloudcredgrab/plugin_args.py
Python
gpl-3.0
596
from rambutan3.check_args.base.RAbstractTypeMatcher import RAbstractTypeMatcher from rambutan3.check_args.set.RSetEnum import RSetEnum from rambutan3.check_args.set.RSetOfMatcher import RSetOfMatcher # noinspection PyPep8Naming def BUILTIN_SET_OF(type_matcher: RAbstractTypeMatcher) -> RSetOfMatcher: x = RSetOfMat...
kevinarpe/kevinarpe-rambutan3
rambutan3/check_args/annotation/BUILTIN_SET_OF.py
Python
gpl-3.0
373
# -*- coding: utf8 -*- ''' 基本工具 Created on 2014年5月14日 @author: Exp ''' ''' 获取系统时间 ''' def getSysTime(format = "%Y-%m-%d %H:%M:%S"): import time return time.strftime(format) # End Fun getSysTime() ''' 判断是否为本地运行环境,否则为SAE运行环境 ''' def isLocalEnvironment(): from os import environ retu...
lyy289065406/expcodes
python/99-project/django-web/ExpPH/ExpPH/utils/BaseUtils.py
Python
gpl-3.0
1,328
#!/usr/bin/env python # coding=utf-8 from __future__ import division, print_function, unicode_literals import re import unicodedata h1_start = re.compile(r"^\s*=(?P<title>[^=]+)=*[ \t]*") valid_title = re.compile(r"[^=]+") general_heading = re.compile(r"^\s*(={2,6}(?P<title>" + valid_title.pattern + ...
Qwlouse/Findeco
node_storage/validation.py
Python
gpl-3.0
1,992
# -*- coding: utf-8 -*- import sys PY3 = False if sys.version_info[0] >= 3: PY3 = True; unicode = str; unichr = chr; long = int if PY3: import urllib.parse as urlparse # Es muy lento en PY2. En PY3 es nativo else: import urlparse ...
alfa-addon/addon
plugin.video.alfa/channels/cinetorrent.py
Python
gpl-3.0
59,082
""" Django settings for eproweb project. Generated by 'django-admin startproject' using Django 1.8.2. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # Build path...
mahmoodkhan/ranewal
htdocs/eproweb/settings/base.py
Python
gpl-3.0
5,611
#!/usr/bin/env python3 '''Test for DDNS forwarding''' from dnstest.test import Test t = Test() master = t.server("knot") slave = t.server("knot") zone = t.zone("example.com.") t.link(zone, master, slave, ddns=True) t.start() master.zones_wait(zone) seri = slave.zones_wait(zone) # OK update = slave.update(zone) ...
CZ-NIC/knot
tests-extra/tests/ddns/forward/test.py
Python
gpl-3.0
777
""" WSGI config for fitch project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "fitch.settings") from django.core.wsgi ...
winstonschroeder77/fitch-
fitch_app/webui/fitch/fitch/wsgi.py
Python
gpl-3.0
385
#! /usr/bin/env python # ========================================================================== # This scripts performs unit tests for the ctools package # # Copyright (C) 2012-2017 Juergen Knoedlseder # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General P...
ctools/ctools
test/test_python_ctools.py
Python
gpl-3.0
4,967
from bisect import bisect_left from lib import argmax, bin_search_left, yield_while from math import inf def search(arr): # binary search, length only. O(n\log n) time st = [arr[0]] # st[i]: smallest tail of LIS of length i + 1. naturally sorted, and all elements are distinct for x in arr: if x > st[...
liboyin/algo-prac
arrays/longest_increasing_subsequence.py
Python
gpl-3.0
3,290
資料 = [1, 2, 3, 4, 5] ''' program: list1.py ''' print(資料[:3]) print(資料[2:]) print(資料[1:2]) a = [3, 5, 7, 11, 13] for x in a: if x == 7: print('list contains 7') break print(list(range(10))) for 索引 in range(-5, 6, 2): print(索引) squares = [ x*x for x in range(0, 11) ] print(squares) a = [10, '...
2014c2g5/2014cadp
wsgi/local_data/brython_programs/list1.py
Python
gpl-3.0
609
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2017-01-06 05:21 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('app', '0002_auto_20170105_0206'), ] operations = [...
GDG-JSS-NOIDA/programmr
programmr/app/migrations/0003_submission_ques_id.py
Python
gpl-3.0
580
import json import sys if sys.version_info >= (3, 0): from urllib.request import urlopen else: from urllib2 import urlopen class Blocks: def __init__(self): self.version = None self.block_hash = None def load_info(self, block_number): raise NotImplementError def read_url...
camponez/watch-blockchain
blocks.py
Python
gpl-3.0
1,341
from common import fileio def main(): ADJ = 4 fileio.FILE_ADDRESS = "../../res/problem011/grid.txt" matrix = fileio.readFileAsMatrix() products = [] products.extend(checkVertical(matrix, ADJ)) products.extend(checkHorizontal(matrix, ADJ)) products.extend(checkDiagonal(matrix, ADJ)) products.extend(checkReverse...
ZachOhara/Project-Euler
python/p011_p020/problem011.py
Python
gpl-3.0
1,427
#!/usr/bin/env python ''' Plot distribution of each feature, conditioned on its bfeature type ''' import argparse import matplotlib.pyplot as plt from matplotlib.backends.backend_pdf import PdfPages from common import * from information import utils from scipy.stats import itemfreq nbins = 100 def opts(): parse...
timpalpant/KaggleTSTextClassification
scripts/plot_feature_distributions.py
Python
gpl-3.0
2,179
import os import datetime import lib.maglib as MSG #这是一个对结果进行初步处理的库 #用来分离抓取结果,作者,发帖时间 #抓取结果应该储存在【用户端根目录】并以result命名 #在测试情况下,抓取结果文件为results.txt #重要全局变量 PATH_SUFFIX = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir)) print(PATH_SUFFIX) PATH_SUFFIX = PATH_SUFFIX[::-1] PATH_SUFFIX = PATH_SUFFIX[...
ankanch/tieba-zhuaqu
DSV-user-application-plugin-dev-kit/lib/result_functions_file.py
Python
gpl-3.0
3,240
# -*- coding: utf-8 -*- # # diffoscope: in-depth comparison of files, archives, and directories # # Copyright © 2014-2015 Jérémy Bobbio <lunar@debian.org> # © 2015 Reiner Herrmann <reiner@reiner-h.de> # © 2012-2013 Olivier Matz <zer0@droids-corp.org> # © 2012 Alan De Smet <adesme...
ReproducibleBuilds/diffoscope
diffoscope/presenters/html/html.py
Python
gpl-3.0
30,030
import view from world import * DEFAULT_CAMERA_AREA = view.View.CAMERA_AREA class LevelZero(view.View): lives = 50 name = "Level 0: Grossini's return" target = 5 order = 0 CAMERA_AREA=(0, -90, 0, -90) mountainScale = 0.4 def setup_level(self): self.step = 0.15 self.ene...
italomaia/turtle-linux
games/gHell/lib/levels.py
Python
gpl-3.0
6,134
import numpy as np import pandas as pd import scipy as sp import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import os, sys try: import cPickle as pickle except: import pickle #connect echoRD Tools pathdir='../echoRD' #path to echoRD lib_path = os.path.abspath(pathdir) #sys.path.append(lib_pa...
cojacoo/testcases_echoRD
gen_test2123.py
Python
gpl-3.0
4,416
#!/usr/bin/env python import matplotlib.pyplot as plt from mpl_toolkits.basemap import cm import numpy as np# reshape from cstoolkit import drange from matplotlib.colors import LinearSegmentedColormap """ cmap_cs_precp = [ (242, 242, 242), (191, 239, 255), (178, 223, 238), (154, 192, 205), ( 0, 235, 235)...
sunchaoatmo/cplot
plotset.py
Python
gpl-3.0
28,891
import bench class Stats(bench.Bench): def __init__(self, league): bench.Bench.__init__(self) self.league = league self.type = 'stats' def list(self, team=False, player=False): """ Lists all stats for the current season to date. Can be filtered by team or by player. De...
sroche0/mfl-pyapi
modules/stats.py
Python
gpl-3.0
929
from django.conf.urls import url from rpi.beehive.views import AddBeehiveView, delete_readering_view, \ ChartReaderingView, export_view, ListReaderingView, DeleteBeehiveView, \ ModifyBeehiveView, summary_view urlpatterns = [ url(r'^ajouter$', AddBeehiveView.as_view(), name='add-beehive'), url(r'^(?P<...
RuchePI/Site
rpi/beehive/urls.py
Python
gpl-3.0
915
"""Define related tools for web.archive.org (aka Wayback Machine).""" import logging from threading import Thread from datetime import date from urllib.parse import urlparse from regex import compile as regex_compile from requests import ConnectionError as RequestsConnectionError from lib.commons import dict_to_sfn_...
5j9/yadkard
lib/waybackmachine.py
Python
gpl-3.0
4,099
# # Copyright (c) 2016 SUSE Linux GmbH # # This file is part of dbxincluder. # # dbxincluder 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 ver...
openSUSE/dbxincluder
tests/conftest.py
Python
gpl-3.0
1,148
import re import json import requests from util import irc from util.handler_utils import cmdhook, authenticate, get_target from qtbot3_common.types.message import Message def scrape(board: str, filtertext: str): try: data = requests.get("http://boards.4chan.org/{board}/catalog".format(board=board)).tex...
yukaritan/qtbot3
qtbot3_service/plugins/4chan.py
Python
gpl-3.0
1,490
#!/usr/bin/python # -*- coding: UTF-8 -*- #==============================================================================# # # # Copyright 2011 Carlos Alberto da Costa Filho # # ...
cako/notorius
src/image_label.py
Python
gpl-3.0
15,994
""" Curriculum-based course timetabling solver; solves timetabling problems formulated in .ectt file format (http://tabu.diegm.uniud.it/ctt/) Copyright (C) 2013 Stephan E. Becker This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License a...
stBecker/CB-CTT_Solver
Course timetabling solver/hard.py
Python
gpl-3.0
3,933
#!/usr/bin/env python # -*- encoding: utf-8 -*- from roars.gui.pyqtutils import PyQtWidget, PyQtImageConverter from WBaseWidget import WBaseWidget from PyQt4.QtGui import * from PyQt4.QtCore import * from PyQt4 import QtCore class WAxesButtons(WBaseWidget): def __init__(self, name='axes', label='Axes Buttons', ...
m4nh/roars
scripts/roars/gui/widgets/WAxesButtons.py
Python
gpl-3.0
1,548
# -*- coding: UTF-8 -*- # # Copyright © 2003 - 2018 Michal Čihař <michal@cihar.com> # # This file is part of Wammu <https://wammu.eu/> # # 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 ve...
gammu/wammu
Wammu/Image.py
Python
gpl-3.0
3,359
__author__ = 'Liam' import types def flag(func): func.is_flag = True return func class BadSearchOp(Exception): def __init__(self, value = "bad search operation"): self.value = value def __str__(self): return "BadSearchOp: %s" % self.value class ImapSearchQueryParser(object): "...
syberkitten/Imap4SearchQueryParser
SearchParser.py
Python
gpl-3.0
16,261
#!/usr/bin/env python3 ############################################################################### # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public L...
Ecogenomics/GTDBNCBI
scripts_dev/type_genome_selection/generate_date_table.py
Python
gpl-3.0
10,985
# -*- encoding: utf-8 -*- """Test class for Host Collection CLI""" import csv import os import re import tempfile from fauxfactory import gen_string from itertools import product from random import sample from robottelo import ssh from robottelo.cli.base import CLIReturnCodeError from robottelo.cli.contenthost import ...
abalakh/robottelo
tests/foreman/cli/test_import.py
Python
gpl-3.0
64,380
# -*- coding: UTF-8 -*- # # Copyright © 2003 - 2018 Michal Čihař <michal@cihar.com> # # This file is part of Wammu <https://wammu.eu/> # # 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 ve...
gammu/wammu
Wammu/App.py
Python
gpl-3.0
2,021
""" Convert an OpenTripPlanner json itinerary response into something that's more suitable for rendering via a webpage """ import re import sys import math from decimal import * import datetime from datetime import timedelta import simplejson as json from ott.utils import object_utils from ott.utils import date_utils ...
OpenTransitTools/otp_client_py
ott/otp_client/otp_to_ott.py
Python
mpl-2.0
36,580
## ##SMART FP7 - Search engine for MultimediA enviRonment generated contenT ##Webpage: http://smartfp7.eu ## ## 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/. ##...
SmartSearch/Edge-Node
LinkedDataManager/feed_generator/ldm_feeder.py
Python
mpl-2.0
8,016
#!/usr/local/bin/python """ Handles Google Service Authentication """ # TODO(rrayborn): Better documentation __author__ = "Rob Rayborn" __copyright__ = "Copyright 2014, The Mozilla Foundation" __license__ = "MPLv2" __maintainer__ = "Rob Rayborn" __email__ = "rrayborn@mozilla.com" __status__ = "Development" from Ope...
mozilla/user-advocacy
lib/web_api/google_services.py
Python
mpl-2.0
4,807
# 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 __future__ import absolute_import, print_function, unicode_literals import copy import logging from . import tran...
Yukarumya/Yukarum-Redfoxes
taskcluster/taskgraph/task/test.py
Python
mpl-2.0
5,066
# Copyright (C) 2013-2014 Igor Tkach # # 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 argparse import fcntl import hashlib import os import random import socket...
itkach/mwscrape
mwscrape/scrape.py
Python
mpl-2.0
17,994
# ***** BEGIN LICENSE BLOCK ***** # 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/. # ***** END LICENSE BLOCK ***** # This is a template config file for web-platfor...
cstipkovic/spidermonkey-research
testing/mozharness/configs/web_platform_tests/prod_config_windows.py
Python
mpl-2.0
1,629
from FireGirlOptimizer import * FGPO = FireGirlPolicyOptimizer() ###To create, uncomment the following two lines: FGPO.createFireGirlPathways(10,50) #FGPO.saveFireGirlPathways("FG_pathways_20x50.fgl") ###To load (already created data), uncomment the following line #FGPO.loadFireGirlPathways("FG_pathways_20x50.fgl") ...
buckinha/gravity
deprecated/test_script_optimizer2.py
Python
mpl-2.0
1,197
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP - Account balance reporting engine # Copyright (C) 2009 Pexego Sistemas Informáticos. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Ge...
jaumemarti/l10n-spain-txerpa
account_balance_reporting/account_balance_reporting_template.py
Python
agpl-3.0
9,107
"""Added initial tables Revision ID: initial Revises: None Create Date: 2013-10-25 16:52:12.150570 """ # revision identifiers, used by Alembic. revision = 'initial' down_revision = None from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - please adjust! ### ...
rootio/rootio_web
alembic/versions/initial_added_tables.py
Python
agpl-3.0
13,787
# -*- coding: utf-8 -*- # This file is part of PrawoKultury, licensed under GNU Affero GPLv3 or later. # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # from datetime import datetime from django.core.mail import send_mail, mail_managers from django.conf import settings from django.contrib.sit...
fnp/prawokultury
shop/models.py
Python
agpl-3.0
4,642
# # Author: Jorg Bornschein <bornschein@fias.uni-frankfurt.de) # Lincense: Academic Free License (AFL) v3.0 # from __future__ import division import numpy as np from math import pi from scipy.misc import comb from mpi4py import MPI import pulp.em as em import pulp.utils.parallel as parallel import pulp.utils.tra...
jbornschein/mca-genmodel
pulp/em/camodels/mmca_et.py
Python
agpl-3.0
16,713
# 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...
rolandgeider/wger
wger/manager/tests/test_ical.py
Python
agpl-3.0
7,598
from __future__ import absolute_import ########################################################################### # (C) Vrije Universiteit, Amsterdam (the Netherlands) # # # # This file is part of AmCAT - The Amsterdam Content...
tschmorleiz/amcat
amcat/scripts/article_upload/controller.py
Python
agpl-3.0
3,148
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('autodidact', '0002_auto_20161004_1251'), ] operations = [ migrations.CreateModel( name='RightAnswer', ...
JaapJoris/autodidact
autodidact/migrations/0003_auto_20170116_1142.py
Python
agpl-3.0
2,079
from gi.repository import Gtk import os class ExportDialog(Gtk.Dialog): def __init__(self,parent,*args): Gtk.Dialog.__init__(self, "Exportieren", parent, 0, (Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL, Gtk.STOCK_OK, Gtk.ResponseType.OK)) self.set_default_size(150,150) self.contentarea=self.get_content_are...
daknuett/BeeKeeper
pythons/objs_graphics.py
Python
agpl-3.0
1,259
""" Name : Stegano Extract and Read File From Image Created By : Agus Makmun (Summon Agus) Blog : bloggersmart.net - python.web.id License : GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Documentation : https://github.com/agusmakmun/Some-Examples-of-Simple-Python-Script/ "...
agusmakmun/Some-Examples-of-Simple-Python-Script
Stegano-Extract-and-Read-File-From-Image/script.py
Python
agpl-3.0
2,974
# !/usr/bin/python # -*- coding: cp1252 -*- # ################################################################################## # # Copyright 2016 Félix Brezo and Yaiza Rubio (i3visio, contacto@i3visio.com) # # This program is part of OSRFramework. You can redistribute it and/or modify # it under the terms of...
i3visio/osrframework
osrframework/wrappers/pending/streakgaming.py
Python
agpl-3.0
4,315
# -*- coding: utf-8 -*- # Copyright (C) 2014-2017 Andrey Antukh <niwi@niwi.nz> # Copyright (C) 2014-2017 Jesús Espino <jespinog@gmail.com> # Copyright (C) 2014-2017 David Barragán <bameda@dbarragan.com> # Copyright (C) 2014-2017 Alejandro Alonso <alejandro.alonso@kaleidos.net> # Copyright (C) 2014-2017 Anler Hernández ...
dayatz/taiga-back
tests/integration/resources_permissions/test_auth_resources.py
Python
agpl-3.0
2,107
# -*- coding: utf-8 -*- __version__ = '1.1.0' default_app_config = 'ipware.apps.AppConfig'
devs1991/test_edx_docmode
venv/lib/python2.7/site-packages/ipware/__init__.py
Python
agpl-3.0
93
# -*- coding: utf-8 -*- # Copyright 2011 Domsense srl (<http://www.domsense.com>) # Copyright 2011-15 Agile Business Group sagl (<http://www.agilebg.com>) # Copyright 2017 OpenSynergy Indonesia (<https://opensynergy-indonesia.com>) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from __future__ imp...
open-synergy/opnsynid-hr
hr_attendance_computation/models/hr_attendance.py
Python
agpl-3.0
21,338
# -*- coding: utf-8 -*- # Generated by Django 1.9.1 on 2016-02-06 16:27 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migration...
tiregram/Boufix
snackix/migrations/0001_initial.py
Python
agpl-3.0
2,164
# -*- coding: utf-8 -*- from __future__ import unicode_literals from udata.api import api, fields, base_reference from udata.core.badges.api import badge_fields from udata.core.dataset.api_fields import dataset_ref_fields from udata.core.organization.api_fields import org_ref_fields from udata.core.user.api_fields im...
davidbgk/udata
udata/core/reuse/api_fields.py
Python
agpl-3.0
4,422
""" Helper for keeping processes singletons """ __license__ = """ This file is part of RAPD Copyright (C) 2016-2018 Cornell University All rights reserved. RAPD 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 Founda...
RAPD/RAPD
src/utils/lock.py
Python
agpl-3.0
1,987
# -*- coding: utf-8 -*- # This file is part of Shoop. # # 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. import os from django.core.exceptions import ImproperlyConfigured from sho...
akx/shoop
shoop_workbench/settings/__init__.py
Python
agpl-3.0
1,393
# Copyright 2018 ACSONE SA/NV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from . import test_accounting from . import test_donation
mozaik-association/mozaik
mozaik_account/tests/__init__.py
Python
agpl-3.0
153
# -*- coding: utf8 -*- # # Copyright (C) 2014 NDP Systèmes (<http://www.ndp-systemes.fr>). # # 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,...
odoousers2014/odoo-addons-supplier_price
purchase_group_by_period/tests/__init__.py
Python
agpl-3.0
821
#!/usr/bin/env python # # Copyright (c) 2001 Autonomous Zone Industries # Copyright (c) 2002 Bryce "Zooko" Wilcox-O'Hearn # This file is licensed under the # GNU Lesser General Public License v2.1. # See the file COPYING or visit http://www.gnu.org/ for details. # __cvsid = '$Id: mencode_unittests.py,v 1.1 200...
zooko/egtp
common/mencode_unittests.py
Python
agpl-3.0
13,498
# -*- coding: utf-8 -*- import simplejson from django.core.management.base import BaseCommand from django.contrib.gis.geos import MultiPolygon, Polygon from ...models import State class Command(BaseCommand): args = 'filename' help = 'Import states from a GeoJSON file' def handle(self, *args, **options...
ibamacsr/routes_registry_api
routes_registry_api/routes/management/commands/importstates.py
Python
agpl-3.0
1,055
# -*- coding: utf-8 -*- # © 2016 Comunitea - Kiko Sanchez <kiko@comunitea.com> # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0. from odoo import api, fields, models, _ import odoo.addons.decimal_precision as dp class ShippingContainerType(models.Model): _name = "shipping.container.type" name = fi...
Comunitea/CMNT_00098_2017_JIM_addons
shipping_container/models/shipping_container.py
Python
agpl-3.0
3,735
# -*- encoding: utf-8 -*- ############################################################################## # # Copyright (C) 2015 Compassion CH (http://www.compassion.ch) # Releasing children from poverty in Jesus' name # @author: Emanuel Cino <ecino@compassion.ch> # # The licence is in the file __openerp__.p...
emgirardin/compassion-modules
message_center_compassion/mappings/__init__.py
Python
agpl-3.0
467
# -*- coding: utf-8 -*- # Copyright (C) 2013-Today Carlos Eduardo Vercelino - CLVsol # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from . import family_aux_mass_edit from . import family_associate_to_family_aux from . import family_aux_associate_to_address_aux
CLVsol/clvsol_odoo_addons
clv_family_aux/wizard/__init__.py
Python
agpl-3.0
281
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2016-03-10 16:10 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): dependencies = [ migrations.swappabl...
uclouvain/osis_louvain
base/migrations/0024_documentfile.py
Python
agpl-3.0
1,981
""" Courseware page. """ from bok_choy.page_object import PageObject, unguarded from bok_choy.promise import EmptyPromise import re from selenium.webdriver.common.action_chains import ActionChains from common.test.acceptance.pages.lms.bookmarks import BookmarksPage from common.test.acceptance.pages.lms.course_page im...
romain-li/edx-platform
common/test/acceptance/pages/lms/courseware.py
Python
agpl-3.0
23,445
""" Factories for Program Enrollment tests. """ from __future__ import absolute_import from uuid import uuid4 import factory from factory.django import DjangoModelFactory from opaque_keys.edx.keys import CourseKey from lms.djangoapps.program_enrollments import models from student.tests.factories import CourseEnrollm...
ESOedX/edx-platform
lms/djangoapps/program_enrollments/tests/factories.py
Python
agpl-3.0
1,400
""" Database ORM models managed by this Django app Please do not integrate directly with these models!!! This app currently offers one programmatic API -- api.py for direct Python integration. """ import re from django.core.exceptions import ValidationError from django.db import models from django.utils.translation i...
edx/edx-organizations
organizations/models.py
Python
agpl-3.0
2,793
import os import os.path import sys ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Add apps and lib directories to PYTHONPATH sys.path = [ ROOT, os.path.join(ROOT, 'apps'), ] + sys.path os.environ.setdefault("DJANGO_SETTINGS_MODULE", "koedquiz.settings") # This application object is u...
fnp/koed-quiz
koedquiz/wsgi.py
Python
agpl-3.0
495