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
# coding: utf-8 from orgprobe.result import Result import logging def test_unicode(): title = u"Some text here with a \u00a3 sign" r = Result('ok', 200, title=title) assert isinstance(title, unicode) assert r.title == "Some text here with a £ sign" assert isinstance(r.title, str) assert str(...
openrightsgroup/OrgProbe
test/test_result.py
Python
gpl-3.0
936
# Cut the experiment session in small fragments # Input: ../bin/data/records/{session}/body.csv and skeletok.csv # Output: fragments/{fragment_number}.json and fragments/log.csv import os import numpy import json DELAY = 15 LENGTH = 30 OVERLAP = 0.719999 FREQUENCY = 60 MARGIN = 5 FREQUENCY = 60 CUTOFF_FREQUENCY = 1...
petr-devaikin/dancee
helpers/extractor.py
Python
gpl-3.0
5,790
class Identifiable: def __init__(self, identity): self.identity = identity def set_identity(self, identity): self.identity = identity def get_identity(self): return self.identity def needs_insert(self): return not self.identity def get_insert_sql(self): pass def get_insert_values(s...
cberes/horse-stats
db/identifiable.py
Python
gpl-3.0
415
#!/usr/bin/env python """ @file routes2OD.py @author Julia Ringel @author Daniel Krajzewicz @author Michael Behrisch @date 2009-04-15 @version $Id: routes2OD.py 22608 2017-01-17 06:28:54Z behrisch $ Creates an OD-matrix in visum format $O from a route.xml file when starting the programm the name for the input...
702nADOS/sumo
tools/purgatory/routes2OD.py
Python
gpl-3.0
3,825
#!/usr/bin/env python # -*- coding: utf-8 -*- from collections import deque import SokoMove import Helper as hlp class SokoGoodFloors(): # Interface: # findGoodFloors() -> good-floor-List def __init__(self, pgs, pgdp, zfl, pp): self.pgs=pgs self.pgdp=pgdp self.zfl=zfl self.pp=pp self.bf=[]...
dede67/sokoban
SokoGoodFloors.py
Python
gpl-3.0
5,693
# # ident/geoio.py # # Copyright (C) 2011 Damien Churchill <damoxc@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, or (at your option) # any later version. # # Thi...
damoxc/vsmtpd
plugins/ident/geoip.py
Python
gpl-3.0
1,203
# # Tuxemon # Copyright (c) 2014-2017 William Edwards <shadowapex@gmail.com>, # Benjamin Bean <superman2k5@gmail.com> # # This file is part of Tuxemon # # 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 #...
Tuxemon/Tuxemon
tuxemon/event/actions/print.py
Python
gpl-3.0
1,942
# -*- coding: utf-8 -*- # _protocol.py # Copyright (C) 2014-2015 LEAP # # 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. ...
kalikaneko/bitmask-dev
src/leap/bitmask/bonafide/_protocol.py
Python
gpl-3.0
5,978
# -*- coding: utf-8 -*- # Copyright (C) 2013 # by Klemens Fritzsche, pyplane@leckstrom.de # # 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 # ...
klim-/pyplane
core/Toolbar.py
Python
gpl-3.0
1,723
try: from scapy.all import * except ImportError: sys.stderr.write("ERROR: You must have scapy installed.\n") sys.stderr.write("You can install it by running: sudo pip install -U 'scapy>=2.3,<2.4'") exit(1) try: from scapy.layers import http except ImportError: sys.stderr.write("ERROR: You must have scapy-http ins...
thesecuritystoic/Packet2Snort
packet2snort.py
Python
gpl-3.0
9,018
#!/usr/bin/env python """ starts the daemon to give remote acces to the raspery pi ressources. Usage: run_camera_server.py [--port=<port>] [--IP=<IP>] [--allow_webcam] [--allow_picam] Options: -h --help show this screen. --port=<port> port used to connect [default: 8000]. --IP=<...
APIG2014/raspberryPiCam
raspberry_pi_cam/run_camera_server.py
Python
gpl-3.0
1,274
"""Populate / extend the BandPass Filter table & documentation, and associated utilities add_bpfilters has three modes of operation: 1. Add bp filters and generate associated spectra (documentation) 2. Add bp filters, without documentation 3. Scan the bp filters for duplicate wavelengths In the first mode, the comma...
IntersectAustralia/asvo-tao
web/tao/management/commands/add_bpfilters.py
Python
gpl-3.0
9,406
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: # Copyright 2016-2021 Ryan Roden-Corrent (rcorre) <ryan@rcorre.net> # # This file is part of qutebrowser. # # qutebrowser 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...
forkbong/qutebrowser
qutebrowser/misc/sql.py
Python
gpl-3.0
16,139
from django.conf.urls import include, url from . import views urlpatterns = [ url(r'^register/$', views.register,name="register"), # url('^logout', views.logout_view,name="logout"), # url('^login', views.logout_view,name="login"), url(r'^password_change/$','django.contrib.auth.views.pa...
RachellCalhoun/craftsite
accounts/urls.py
Python
gpl-3.0
1,059
from vsg.vhdlFile.extract import tokens def get_n_token_after_tokens(iToken, lTokens, lAllTokens, oTokenMap): lReturn = [] lIndexes = [] for oToken in lTokens: lTemp = oTokenMap.get_token_indexes(oToken) for iTemp in lTemp: iTokenIndex = iTemp for iCount in range(0...
jeremiah-c-leary/vhdl-style-guide
vsg/vhdlFile/extract/get_n_token_after_tokens.py
Python
gpl-3.0
688
# -*- coding: utf-8 -*- """ contains definition of models names """ PRODUCT_TEMPLATE_TABLE = 'product.template' PRODUCT_PRODUCT_TABLE = 'product.product' PRODUCT_TEMPLATE_ID_FIELD = 'product_tmpl_id' PRODUCT_VIRTUAL_AVAILABLE_FIELD = 'virtual_available' PRODUCT_OPERATION_TABLE = 'amdeb.product.operation' MODEL_NAME_...
amdeb/amdeb-integrator
amdeb_integrator/shared/model_names.py
Python
gpl-3.0
549
import argparse import sys from Bio import SeqIO from Bio.SeqRecord import SeqRecord from Bio.Seq import Seq import random import sys import re import os.path import markov_gen def parse_params(args): parser = argparse.ArgumentParser(description = "Generate simulated chromosome") # parser.add_argument('-c', ...
karroje/RAIDER_eval
chromosome_simulator.py
Python
gpl-3.0
14,562
from ert_gui.models.ert_connector import ErtConnector from ert_gui.models.mixins import SpinnerModelMixin class HistoryLengthModel(ErtConnector, SpinnerModelMixin): def __init__(self): self.__value = self.getMaxValue() super(HistoryLengthModel, self).__init__() #todo: notify when the his...
iLoop2/ResInsight
ThirdParty/Ert/devel/python/python/ert_gui/models/connectors/init/init_history_length.py
Python
gpl-3.0
977
# browsershots.org - Test your web design in different browsers # Copyright (C) 2007 Johann C. Rocholl <johann@browsershots.org> # # Browsershots 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 ...
foligny/browsershots-psycopg2
shotserver/shotserver04/accounts/urls.py
Python
gpl-3.0
1,222
# encoding: utf-8 import gvsig from gvsig import getResource import addons.statistics_viewer.statisticprocess reload(addons.statistics_viewer.statisticprocess) from addons.statistics_viewer.statisticprocess.abstractprocess import AbstractStatisticProcess import os from addons.statistics_viewer.sv import svgraph fro...
oscar9/statistics_viewer
processmanager/processdirectory/stat1.py
Python
gpl-3.0
3,078
################################################################################ ### Copyright © 2012-2013 BlackDragonHunt ### ### This file is part of the Super Duper Script Editor. ### ### The Super Duper Script Editor is free software: you can redistribute it ### and/or modify it under the terms of the GNU Genera...
ThunderGemios10/The-Super-Duper-Script-Editor
setup_wizard.py
Python
gpl-3.0
22,165
# Copyright (C) 2010-2017 GRNET S.A. # # 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 i...
grnet/synnefo
snf-cyclades-app/synnefo/logic/management/commands/backend-update-status.py
Python
gpl-3.0
1,489
from ..braille import from_unicode def _render(width, height, text): # text must already be i18n-ed to Unicode. data = [] lines = tuple(from_unicode(l) for l in text.split('\n')) for line in lines: data.append(line) # pad page with empty rows while len(data) % height: data.a...
Bristol-Braille/canute-ui
ui/book/help.py
Python
gpl-3.0
2,528
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2011-2016 Uwe Hermann <uwe@hermann-uwe.de> ## ## 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 t...
zeldin/libsigrokdecode
decoders/spiflash/pd.py
Python
gpl-3.0
19,082
LOG_SETTINGS = { 'version': 1, 'disable_existing_loggers': False, 'formatters': { 'detailed': { 'format': '%(asctime)s | %(process)d | %(levelname)s | %(filename)s | %(lineno)d | %(funcName)s | %(message)s', 'datefmt': '%Y-%m-%d %H:%M:%S' }, 'simpl...
Hydrosys4/Master
loggerconfig.py
Python
gpl-3.0
1,697
from jsonschema import Draft7Validator, FormatChecker CONSTRAINT_SCHEMA = { "type": "object", "description": {"Override constraints between specific groups"}, "properties": { "src": {"type": "string", "description": "Source group"}, "dst": {"type": "string", "description": "Destination gro...
BeyondTheClouds/enoslib
enoslib/service/emul/schema.py
Python
gpl-3.0
4,444
#Minimal example for running location prediction from keras.models import load_model import pickle from keras.preprocessing.sequence import pad_sequences import numpy as np import os os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" # see issue #152 os.environ["CUDA_VISIBLE_DEVICES"] = "" binaryPath= 'data/binaries/' ...
Erechtheus/geolocation
predictText.py
Python
gpl-3.0
1,245
""" Django settings for untitled project. Generated by 'django-admin startproject' using Django 1.10.3. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import o...
sistason/kinksorter2
src/kinksorter/settings.py
Python
gpl-3.0
4,818
""" Markup class allows the use of easy-to-write characters to style the text instead of using escape codes. ==text== --> reverse video '''text''' --> bold ~~text~~ --> strikethrough Copyright (c) 2015 makos <https://github.com/makos>, chibi <http://neetco.de/chibi> under GNU GPL v3, see LICENSE for details """ impo...
makos/sshchan-oop
chan_mark.py
Python
gpl-3.0
1,058
import socket from packet import send_data, send_close import random, time, pickle import threading from packet import * listening = True total_acked = 0 def listen_ack(sock): global total_acked while listening: raw_data, _ = sock.recvfrom(2048) ack_packet = pickle.loads(raw_data) if a...
AjayKrP/Computer-Network
LEAKY-BUCKET/client.py
Python
gpl-3.0
2,214
# Copyright (C) 2008 Valmantas Paliksa <walmis at balticum-tv dot lt> # Copyright (C) 2008 Tadas Dailyda <tadas at dailyda dot com> # # Licensed under the GNU General Public License Version 3 # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License ...
namili/blueman
blueman/plugins/applet/StatusIcon.py
Python
gpl-3.0
3,189
import time import os import posixpath import datetime import math import re import logging from django import template from django.utils.encoding import smart_unicode from django.utils.safestring import mark_safe from forum.models import Question, Answer, QuestionRevision, AnswerRevision, NodeRevision from django.util...
CLLKazan/iCQA
qa-engine/forum/templatetags/extra_tags.py
Python
gpl-3.0
7,925
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*- # # Copyright (C) 2016-2018-2020 Canonical Ltd # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License version 3 as # published by the Free Software Foundation. # # This program is distribute...
chipaca/snapcraft
tests/unit/plugins/v1/test_maven.py
Python
gpl-3.0
23,004
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-10-23 05:52 from __future__ import unicode_literals import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True ...
asmltd/gosports
webapp/ui/migrations/0001_initial.py
Python
gpl-3.0
3,109
# Foris - web administration interface for OpenWrt based on NETCONF # Copyright (C) 2017 CZ.NIC, z.s.p.o. <http://www.nic.cz> # # 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 o...
CZ-NIC/foris
foris/config_handlers/__init__.py
Python
gpl-3.0
833
import pytest from hbayesdm.models import gng_m3 def test_gng_m3(): _ = gng_m3( data="example", niter=10, nwarmup=5, nchain=1, ncore=1) if __name__ == '__main__': pytest.main()
CCS-Lab/hBayesDM
Python/tests/test_gng_m3.py
Python
gpl-3.0
198
# This file is part of django-ca (https://github.com/mathiasertl/django-ca). # # django-ca 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...
mathiasertl/django-ca
ca/django_ca/fields.py
Python
gpl-3.0
6,854
# -*- coding: utf-8 -*- from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('oauth2', '__first__'), ] operations = [ migrations.CreateModel( name='ClientPermissions', fields=[ ('id', models.AutoField(...
openplans/shareabouts-api
src/remote_client_user/migrations/0001_initial.py
Python
gpl-3.0
751
#!@PYTHON_EXECUTABLE@ # -*- coding: utf-8 -*- import os, sys import zipfile import platform from subprocess import * from xml.dom import minidom import re import glob os.environ['CF_DATADIR'] = "@CMAKE_SOURCE_DIR@/datafiles" os.environ['PATH'] = os.environ['PATH'] + ":@CMAKE_BINARY_DIR@" # globals exe's and paths CU...
uliss/quneiform
tests/py/cf.py
Python
gpl-3.0
12,883
from django.conf import settings from django.template import RequestContext from django.shortcuts import render_to_response, get_object_or_404 from django.http import HttpResponse, HttpResponseRedirect, Http404 from django.utils import simplejson, dateparse from django.db.models import Count, Q from django.forms.models...
MAPC/myschoolcommute
survey/views.py
Python
gpl-3.0
12,688
from django.conf.urls import url from .views import IndexView urlpatterns = [ url(r'^$', IndexView.as_view()), ]
AlexandroPQC/django_discusion
SistemaDiscusiones/home/urls.py
Python
gpl-3.0
118
'''Wrapper for QuickLink2.h Generated with: ctypesgen.py -a -l QuickLink2 -o pyQuickLink2.py QuickLink2.h Do not modify this file. ''' __docformat__ = 'restructuredtext' # Begin preamble import ctypes, os, sys from ctypes import * _int_types = (c_int16, c_int32) if hasattr(ctypes, 'c_int64'): # Some builds o...
peteristhegreat/ioHub
devices/eyeTrackerInterface/HW/EyeTech/QuickLink/reference/pyQuickLink2.py
Python
gpl-3.0
43,079
#!/usr/bin/env python # -*- coding: utf-8 -*- import re bestandsnaam="De_Telegraaf2014-03-22_22-08.TXT" artikel=0 tekst={} datum={} section={} length={} loaddate={} language={} pubtype={} journal={} with open(bestandsnaam,"r") as f: for line in f: line=line.replace("\r","") if line=="\n": continue matchObj...
uvacw/tcst
lnparse.py
Python
gpl-3.0
1,302
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
TheDuckCow/MCprep
MCprep_addon/addon_updater.py
Python
gpl-3.0
52,611
# -*- coding: utf-8 -*- # Copyright (C) Duncan Macleod (2014-2020) # # This file is part of GWpy. # # GWpy 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)...
areeda/gwpy
gwpy/timeseries/io/gwf/lalframe.py
Python
gpl-3.0
6,759
import sys import urllib, urllib2 import xbmc import xbmcgui import XbmcHelpers common = XbmcHelpers from videohosts import tools URL = "http://czx.to" HEADERS = { "Host": "czx.to", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537...
dandygithub/kodi
addons/context.dandy.kinopoisk.sc/resources/lib/sc_czxto.py
Python
gpl-3.0
1,100
''' Created on 13.09.2016 @author: mkennert ''' from kivy.properties import StringProperty from materialLawEditor.ainformation import AInformation from ownComponents.design import Design from ownComponents.numpad import Numpad from ownComponents.ownButton import OwnButton from ownComponents.ownLabel import...
simbtrix/mxnix
project/materialLawEditor/logarithmInformation.py
Python
gpl-3.0
3,830
from selenium import webdriver import os driver = webdriver.PhantomJS() driver.get("http://info.nowgoal.com/en/team/summary.aspx?TeamID=59") driver.execute_script('leftSide(selectTeamID, arrTeam);\ if (coach.length>0){ mainTitle(teamDetail, coach[0][2 + lang], coach[0][0]);\ } else { m...
Edanprof/ScoreM
script_execute.py
Python
gpl-3.0
768
# -*- coding: utf-8 -*- # Generated by Django 1.9.9 on 2016-10-28 15:32 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): dependencies = [ ('editor', '0005_auto_2016092...
erudit/zenon
eruditorg/core/editor/migrations/0006_auto_20161028_1032.py
Python
gpl-3.0
620
from .frontend import JSON_Editor, mode, Page from . import frontend from .character import Character from .util import load_json, debug class CHARACTERS(JSON_Editor): def __init__(self): self._name = 'character' JSON_Editor.__init__(self) self._icons = 'avatars' self._obj = Charac...
ajventer/ezdm
ezdm_libs/all_characters.py
Python
gpl-3.0
1,127
#!/usr/bin/env python # -*- coding: utf-8 -*- # # encfs.py # # Copyright 2013 Antergos # # 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 opti...
prescott66/Cnchi
src/encfs.py
Python
gpl-3.0
3,865
#from distutils.core import setup import setuptools setuptools.setup( name = 'p3270', packages = ['p3270'], version = '0.1.3', description = 'Python library to communicate with IBM hosts', author = 'Mossaab Stiri', author_email = 'mossaab.stiri@gmail.com', url = ...
mstiri/p3270
setup.py
Python
gpl-3.0
1,698
import asyncio from collections import defaultdict from datetime import datetime, timedelta from itertools import zip_longest import os from typing import Any, Dict, List try: from dateutil import parser as dp dateutil_available = True except: dateutil_available = False import discord from discord.ext imp...
dealien/Red-Magician
cogs/survey.py
Python
gpl-3.0
27,575
from helper.readtempsocket import ReadTempSocket class asd: def __init__(self): r = ReadTempSocket() r.run() asd()
braubar/braubar-pi
test/testReadTempSocket.py
Python
gpl-3.0
139
import logging import os from django.shortcuts import render from django.views.generic import View from django.http import HttpResponse from django.conf import settings class FrontendAppView(View): """ Serves the compiled frontend entry point (only works if you have run `make build-frontend`). """ ...
nadege/food-organizer
backend/apps/project/views.py
Python
gpl-3.0
1,258
# coding: utf-8 """ weasyprint.layout.tables ------------------------ Layout for tables and internal table boxes. :copyright: Copyright 2011-2016 Simon Sapin and contributors, see AUTHORS. :license: BSD, see LICENSE for details. """ from __future__ import division, unicode_literals ...
johnlb/strange_wp
strange_bak/layout/tables.py
Python
gpl-3.0
32,363
"""Module Description Copyright (c) 2008 H. Gene Shin <shin@jimmy.harvard.edu> This code is free software; you can redistribute it and/or modify it under the terms of the BSD License (see the file COPYING included with the distribution). @status: experimental @version: $Revision$ @author: H. Gene Shin @contact: s...
ChengchenZhao/DrSeq2
ceas_lib/annotator.py
Python
gpl-3.0
75,107
import ssl import logging import tornado.ioloop import tornado.web import sys from tornado import httpclient from functools import partial from sqlalchemy import create_engine, func from sqlalchemy.orm import scoped_session, sessionmaker from create_receive_handler import ReceiveHandler from wallet_notify_handler i...
bzero/bitex
apps/api_receive/api_receive_application.py
Python
gpl-3.0
4,247
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # # This file is part of Ansible # # Ansible 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) an...
arista-eosplus/ansible
lib/ansible/playbook/included_file.py
Python
gpl-3.0
6,133
# -*- coding: utf-8 -*- # This file is part of the Calibre-Web (https://github.com/janeczku/calibre-web) # Copyright (C) 2018-2019 OzzieIsaacs, cervinko, jkrehm, bodybybuddha, ok11, # andy29485, idalin, Kyosfonica, wuqi, Kennyl, lemmsh, # falgh1, grunjol, csitk...
radzio1993/calibre-web
cps/about.py
Python
gpl-3.0
4,430
#!/usr/bin/env python # EventServer test import eserver import sys class EchoProtocol(eserver.Protocol): def processData(self, data): self.send(data) def main(argv): S = eserver.EventServer( ('localhost', 9999), EchoProtocol ) S.start() if __name__ == '__main__': main(sys.argv)
rymis/mrimpy
test/estest.py
Python
gpl-3.0
289
__author__ = 'DownGoat' from pyfeedreader import database database.init_db()
DownGoat/PyFeedReader
db_init.py
Python
gpl-3.0
79
#!/usr/bin/env python # # This file is protected by Copyright. Please refer to the COPYRIGHT file # distributed with this source distribution. # # This file is part of GNUHAWK. # # GNUHAWK is free software: you can redistribute it and/or modify is under the # terms of the GNU General Public License as published by ...
RedhawkSDR/integration-gnuhawk
components/interleave_cc_1i/tests/test_interleave_cc_1i.py
Python
gpl-3.0
4,075
import pilas from aplicacion import App pilas.iniciar(ancho = 1280, alto = 800, titulo = "Aplicadion para Docente") pilas.cambiar_escena(App()) pilas.ejecutar()
gercordero/va_de_vuelta
src/resumen.py
Python
gpl-3.0
166
#!/usr/bin/env python # -*- coding: utf-8 -*- # #Copyright (C) 2015, Delft University of Technology, Faculty of Electrical Engineering, Mathematics and Computer Science, Network Architectures and Services and TNO, ICT - Service Enabling and Management, Mani Prashanth Varma Manthena, Niels van Adrichem, Casper van den ...
TUDelftNAS/SDN-NaaSPlatform
NaaSPlatform/Load_Balancing_App.py
Python
gpl-3.0
62,701
# -*- coding: utf-8 -*- # ------------------------------------------------------------ # streamondemand.- XBMC Plugin # Canal para mondolunatico # http://blog.tvalacarta.info/plugin-xbmc/streamondemand. # ------------------------------------------------------------ import os import re import urllib import urlparse fro...
costadorione/purestream
channels/mondolunatico.py
Python
gpl-3.0
9,580
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt # For license information, please see license.txt import frappe from frappe import _ from frappe.custom.doctype.property_setter.property_setter import make_property_setter from frappe.model....
mhbu50/erpnext
erpnext/accounts/doctype/accounts_settings/accounts_settings.py
Python
gpl-3.0
2,701
import mapper from addon.routes import my_library from addon.routes import actions from addon.routes import generic MPR = mapper.Mapper.get() @MPR.s_url('/track/<track_id>/') @MPR.s_url('/track/<track_id>/<title>/') def track(track_id, title=''): actions.play_track(track_id, track_title=title) @MPR.s_url('/a...
linuxwhatelse/plugin.audio.linuxwhatelse.gmusic
addon/routes/files.py
Python
gpl-3.0
1,076
# -*- coding: utf-8 -*- """ Settings of ``critica.apps.notes`` application. """ from critica.apps.notes import choices # Excluded categories # ------------------------------------------------------------------------------ EXCLUDED_CATEGORIES = [ 'epicurien', 'voyages', 'regions', 'coup-de-gueule', ] ...
brunobord/critica
apps/notes/settings.py
Python
gpl-3.0
652
# -*- coding: utf-8 -*- """ Description: Usage: Author: YingzhiGou Date: 21/08/2017 """ from mtpy.gui.SmartMT.Components.FigureSetting import Font from mtpy.gui.SmartMT.Components.PlotParameter import FrequencyTolerance, Rotation from mtpy.gui.SmartMT.gui.plot_control_guis import PlotControlStrike fr...
MTgeophysics/mtpy
mtpy/gui/SmartMT/visualization/strike.py
Python
gpl-3.0
3,575
# ========================================================================== # This script provides a number of functions that are useful for handling # CTA observations. # # Copyright (C) 2011-2013 Juergen Knoedlseder # # This program is free software: you can redistribute it and/or modify # it under the terms of the ...
cdeil/ctools
scripts/obsutils.py
Python
gpl-3.0
9,202
# # Copyright (C) 2003-2022 Sébastien Helleu <flashcode@flashtux.org> # # This file is part of WeeChat.org. # # WeeChat.org 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 #...
weechat/weechat.org
weechat/context_processors.py
Python
gpl-3.0
1,229
import sys sys.path.insert(0, "../utils/") import utils def unjudged(qrelsFile, resultsFile): qrels = utils.readQrels(qrelsFile) results = utils.readResults(resultsFile) unjudged = {} for qid in results.keys(): qrelIds = set([did for (did, _) in qrels[qid]]) resIds = set([did for (did, _, _) in results[qid][:...
fmance/deep-medical-ir
ranking/unjudged.py
Python
gpl-3.0
594
# coding=utf-8 import codecs import logging import cherrypy import tailer from schema import And, Schema, SchemaError, Use from ws4py.messaging import TextMessage from ws4py.websocket import WebSocket import autosubliminal from autosubliminal import system from autosubliminal.core.runner import Runner from autosubli...
h3llrais3r/Auto-Subliminal
autosubliminal/core/websocket.py
Python
gpl-3.0
4,134
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-09-10 17:18 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('livehome', '0004_indoor'), ] operations = [ migrations.RenameModel( old_...
iannesbitt/iannesbitt.org
livehome/migrations/0005_auto_20160910_1318.py
Python
mpl-2.0
390
import sys sys.path.append('/opt/marcopolo/') from bindings.polo import polo from twisted.trial import unittest from mock import MagicMock, patch class TestRegisterService(unittest.TestCase): pass class TestRegisterService(unittest.TestCase): def setUp(self): self.polo = polo.Polo() self....
Alternhuman/marcopolo
marcopolo/tests/test_polo_binding.py
Python
mpl-2.0
1,960
from django.conf import settings, UserSettingsHolder from django.contrib.auth.models import User from django.contrib.messages.storage.fallback import FallbackStorage from django.test.client import Client from django.utils.functional import wraps from django.utils.importlib import import_module import constance.config ...
mastizada/kuma
kuma/core/tests/__init__.py
Python
mpl-2.0
6,376
#!/usr/bin/env python # 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 buildconfig from mozbuild.preprocessor import preprocess # By default, the pre-processor...
Yukarumya/Yukarum-Redfoxes
browser/themes/preprocess-tab-svgs.py
Python
mpl-2.0
1,392
# encoding: utf-8 import datetime from south.db import db from south.v2 import DataMigration from django.db import models class Migration(DataMigration): def forwards(self, orm): "Write your forwards methods here." new_default = orm.Extension._meta.get_field_by_name('icon')[0].default for ...
magcius/sweettooth
sweettooth/extensions/migrations/0008_new_icon_default.py
Python
agpl-3.0
6,118
from django.core.exceptions import ImproperlyConfigured from django.conf import settings from rest_framework.settings import APISettings USER_SETTINGS = getattr(settings, 'JWT_GRAPHENE', None) DEFAULTS = { 'JWT_GRAPHENE_USER_ONLY_FIELDS': None, 'JWT_GRAPHENE_USER_EXCLUDE_FIELDS': None, } IMPORT_STRINGS = ( ...
SillyFreak/django-graphene-jwt
graphene_jwt/settings.py
Python
agpl-3.0
629
#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse import logging import os import re import subprocess import sys import time from collections import defaultdict from html import unescape from urllib.error import URLError from urllib.parse import quote, urlparse, urlsplit, urlunsplit from urllib.request im...
talha131/pelican
pelican/tools/pelican_import.py
Python
agpl-3.0
37,631
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='BTBeacon', fields=[ ('id', models.AutoField(ver...
Fresnoy/kart
common/migrations/0001_initial.py
Python
agpl-3.0
1,169
# Copyright (c) 2014 by Ecreall under licence AGPL terms # available on http://www.gnu.org/licenses/agpl.html # licence: AGPL # author: Amen Souissi from pyramid.view import view_config from pyramid.httpexceptions import HTTPFound from dace.util import getSite from dace.processinstance.core import DEFAULTMAPPING_A...
ecreall/lagendacommun
lac/views/services_processes/import_service/see_service.py
Python
agpl-3.0
1,732
from django.contrib import admin from wevolve.tasks.models import Task, TaskSkill, TaskUser class TaskAdmin(admin.ModelAdmin): pass class TaskSkillAdmin(admin.ModelAdmin): pass class TaskUserAdmin(admin.ModelAdmin): pass admin.site.register(Task, TaskAdmin) admin.site.register(TaskSkill, TaskSkillA...
taikoa/wevolver-server
wevolve/tasks/admin.py
Python
agpl-3.0
371
"""IIIF image and presentation logic.""" import logging from itertools import chain from typing import Dict, Iterable, List, Mapping, Optional, Tuple from urllib.parse import urlencode import shortuuid from flask_sqlalchemy import Pagination from iiif_prezi.factory import Manifest, ManifestFactory from .mets import M...
jbaiter/demetsiiify
demetsiiify/iiif.py
Python
agpl-3.0
12,787
#!/usr/bin/env python from util.misc import open_file, Benchmark from util.PajekFactory import PajekFactory import ujson if __name__ == "__main__": import argparse parser = argparse.ArgumentParser(description="Creates Pajek (.net) files from JSON") parser.add_argument('outfile') parser.add_argument('-...
jevinw/rec_utilities
babel_util/scripts/ai_to_pajek.py
Python
agpl-3.0
918
import re import time from flask import Flask, render_template, request, flash, redirect from flaskext.babel import Babel from flask.ext.mail import Mail, Message from flask.ext.cache import Cache from flask.ext.assets import Environment from raven.contrib.flask import Sentry import feedparser app = Flask(__name__) ...
taikoa/taikoa
taikoa.py
Python
agpl-3.0
2,419
# -*- coding: 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): # Adding model 'Profile' db.create_table('edxval_profile', ( ('id', self.gf('django.db.models.fi...
GbalsaC/bitnamiP
edx-val/edxval/migrations/0001_initial.py
Python
agpl-3.0
7,559
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-11-10 18:31 from __future__ import unicode_literals import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('workshops', '0027_auto_20161110_0311'), ] operations = [ mi...
d120/pyofahrt
workshops/migrations/0028_auto_20161110_1931.py
Python
agpl-3.0
795
from django.conf.urls import url from . import views app_name = 'server' urlpatterns = [ url(r'^settings/$', views.server_info, name='settings'), url(r'^power/$', views.power, name='power'), url(r'^backup/$', views.backup, name='backup'), url(r'^battery/$', views.battery, name='battery'), url(r'^...
ideascube/ideascube
ideascube/serveradmin/urls.py
Python
agpl-3.0
562
############################################################################## # # OSIS stands for Open Student Information System. It's an application # designed to manage the core business of higher education institutions, # such as universities, faculties, institutes and professional schools. # The core ...
uclouvain/osis_louvain
base/forms/education_group_admission.py
Python
agpl-3.0
2,239
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-05-03 17:10 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('oplan', '0007_auto_20160503_1638'), ] operations = [ migrations.RemoveField(...
d120/kifplan
oplan/migrations/0008_auto_20160503_1910.py
Python
agpl-3.0
2,321
from django import template from filemanager.models import fileobject from django.shortcuts import get_object_or_404, render_to_response from django.template.loader import render_to_string from django.contrib.contenttypes.models import ContentType register = template.Library() def raw_text(context): project=cont...
Rhombik/rhombik-object-repository
searchsettings/templatetags/addSearchContext.py
Python
agpl-3.0
669
from flask import Flask, request, session, render_template, g, url_for, redirect from markdown import markdown import os import json from db import Database from model import Article app = Flask(__name__) app.config.update(dict( DATABASE = os.path.join(app.root_path, 'wickr.db'), DEBUG = True, SITE_TITLE...
nylux/wickr
wickr.py
Python
agpl-3.0
1,200
HAYSTACK_CONNECTIONS = { 'default': { 'ENGINE': 'haystack.backends.solr_backend.SolrEngine', 'URL': 'http://127.0.0.1:8983/solr/prawokultury' }, } HAYSTACK_DOCUMENT_FIELD = "text" #HAYSTACK_SIGNAL_PROCESSOR = 'haystack.signals.RealtimeSignalProcessor'
fnp/prawokultury
prawokultury/settings.d/35-search.py
Python
agpl-3.0
277
# -*- coding: utf-8 -*- # # The internetarchive module is a Python/CLI interface to Archive.org. # # Copyright (C) 2012-2016 Internet Archive # # 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 Foundat...
brycedrennan/internetarchive
internetarchive/cli/ia_configure.py
Python
agpl-3.0
2,377
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.Create...
SuperNovaPOLIUSP/supernova
aeSupernova/login/migrations/0001_initial.py
Python
agpl-3.0
1,436
################################################################################ # # Copyright 2015-2020 Félix Brezo and Yaiza Rubio # # This program is part of OSRFramework. You can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Softwa...
i3visio/osrframework
osrframework/wrappers/teamtreehouse.py
Python
agpl-3.0
3,948
from odoo import models, fields class AccountMove(models.Model): _inherit = "account.move" def _get_tax_factor(self): tax_factor = super()._get_tax_factor() doc_letter = self.l10n_latam_document_type_id.l10n_ar_letter # if we receive B invoices, then we take out 21 of vat # th...
adhoc-dev/odoo-argentina
l10n_ar_account_withholding/models/account_move.py
Python
agpl-3.0
1,785
# -*- coding: utf-8 -*- ################################################################################# # # OpenERP, Open Source Management Solution # Copyright (C) 2013 Julius Network Solutions SARL <contact@julius.fr> # # This program is free software: you can redistribute it and/or modify # it under th...
ncliam/serverpos
openerp/custom_modules/school_link/school.py
Python
agpl-3.0
39,903