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
# encoding= utf-8 ## # VisibilityCheck. # <p> # Description of the test. # # @data INSTANCE_ID [String] instance id ## from qtaste import * import time # update in order to cope with the javaGUI extension declared in your testbed configuration. javaguiMI = testAPI.getJavaGUI(INSTANCE_ID=testData.getValue("JAVAGUI_I...
remybaranx/qtaste
demo/TestSuites/PlayBack/VisibilityCheck/TestScript.py
Python
gpl-3.0
1,239
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django import forms from .settings import MARTOR_ENABLE_LABEL from .widgets import MartorWidget class MartorFormField(forms.CharField): def __init__(self, *args, **kwargs): # to setup the editor without label if not MARTOR_EN...
agusmakmun/dracos-markdown-editor
martor/fields.py
Python
gpl-3.0
535
import random from pybugger import myaixterm color = myaixterm color.aix_init() def string_constructor(args, foreground="normal", background="normal"): if foreground != "rainbow": foreground = "" if foreground == "normal" else color.aix_fg(foreground) background = "" if background == "normal" els...
fareskalaboud/pybugger
pybugger/pybugger.py
Python
gpl-3.0
4,133
# -*- coding: utf-8 -*- # # This file is part of scoopy. # # Scoopy 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. # # ...
mattoufoutu/scoopy
scoopy/oauth.py
Python
gpl-3.0
6,386
# Microcosmos: an antsy game # Copyright (C) 2010 Cyril ADRIAN <cyril.adrian@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, version 3 exclusively. # # This program is distrib...
cadrian/microcosmos
src/net/cadrian/microcosmos/model/bugs/__init__.py
Python
gpl-3.0
1,120
#!/usr/bin/env python # -*- coding: utf-8 -*- # HORTON: Helpful Open-source Research TOol for N-fermion systems. # Copyright (C) 2011-2016 The HORTON Development Team # # This file is part of HORTON. # # HORTON is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public Licens...
crisely09/horton
doc/update_lib_doc.py
Python
gpl-3.0
4,657
# coding=utf-8 # Copyright (C) 2014 Stefano Guglielmetti # 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 prog...
amicojeko/YouCantTouchThis
sendemail.py
Python
gpl-3.0
2,259
# -*- coding: utf-8 -*- """ Validators for UI @author: Jan Gabriel @contact: jan.gabriel@tul.cz """ from enum import Enum from PyQt5.QtGui import QColor from PyQt5 import QtWidgets class ValidationColors(Enum): """ Holds colors for form validation. """ white = QColor("#ffffff") red = QColor("#f698...
GeoMop/GeoMop
src/JobPanel/ui/validators/validation.py
Python
gpl-3.0
3,569
# (C) 2012, 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) any lat...
shlomozippel/ansible
plugins/callbacks/log_plays.py
Python
gpl-3.0
3,121
# This file is part of Gem. # # Gem 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. # # Gem is distributed in the hope that it wi...
kaye64/gem
content/player.py
Python
gpl-3.0
838
#!/usr/bin/env python3 import sys import os from distutils.core import run_setup # build_ext is subclassed, so we import it with a _ to avoid a collision from distutils.command.build_ext import build_ext as _build_ext from setuptools import setup, Extension, find_packages PKG_NAME = "piqueserver" extra_args = sys.a...
piqueserver/piqueserver
setup.py
Python
gpl-3.0
4,880
# Bulletproof Arma Launcher # Copyright (C) 2016 Sascha Ebert # # 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 distributed in the hope that it will be useful, # bu...
overfl0/Bulletproof-Arma-Launcher
tests/utils/event_bridge_test.py
Python
gpl-3.0
1,873
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from nasa_r2_common_msgs/JointStatusArray.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import nasa_r2_common_msgs.msg import std_msgs.msg class JointStatusArray(genpy....
mkhuthir/catkin_ws
src/chessbot/devel/lib/python2.7/dist-packages/nasa_r2_common_msgs/msg/_JointStatusArray.py
Python
gpl-3.0
10,820
#!/usr/bin/env python # This file is part of nexdatas - Tango Server for NeXus data writer # # Copyright (C) 2012-2017 DESY, Jan Kotanski <jkotan@mail.desy.de> # # nexdatas is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the ...
nexdatas/configtool
test/ComponentModel_test.py
Python
gpl-3.0
46,177
# Copyright 2015-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: # 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 Sof...
forkbong/qutebrowser
tests/unit/misc/test_msgbox.py
Python
gpl-3.0
3,129
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2018 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
noam09/deluge-telegramer
telegramer/include/telegram/inline/inlinequeryresultcachedmpeg4gif.py
Python
gpl-3.0
3,901
from django import template from django.core.urlresolvers import reverse from django.utils.http import urlquote_plus from apps.cms.models import Content register = template.Library() @register.simple_tag (takes_context=True) def cms_content (context, key): request = context['request'] can_edit = request.user....
normalnorway/normal.no
django/apps/cms/templatetags/cms.py
Python
gpl-3.0
942
# Copyright (c) 2014 RainMachine, Green Electronics LLC # All rights reserved. # Authors: Nicu Pavel <npavel@mini-box.com> # Codrin Juravle <codrin.juravle@mini-box.com> from datetime import datetime, timedelta, tzinfo from math import sin, cos, asin, acos, sqrt import time, calendar import ctypes,os, fcntl,...
sprinkler/rainmachine-developer-resources
sdk-parsers/RMUtilsFramework/rmTimeUtils.py
Python
gpl-3.0
12,413
#!/usr/bin/python # -*- coding: utf8 -*- from pprint import pprint import sys,os import random import json import gzip import random import boto3 session = boto3.Session( region_name='cn-north-1', aws_access_key_id='xxxxxxxxxxxxxx', aws_secret_access_key='xxxxxxxxxxxxxxxxxxxxxx' ) sns = session.resou...
iceflow/aws-demo
sns/sns.py
Python
gpl-3.0
1,021
from tasty.types.driver import TestDriver __params__ = {'la': 32, 'lb': 32} driver = TestDriver() def protocol(client, server, params): la = params['la'] lb = params['lb'] client.a = Unsigned(bitlen=la).input(src=driver, desc='a') client.b = Unsigned(bitlen=lb).input(src=driver, desc='b') client.ga...
tastyproject/tasty
tasty/tests/functional/protocols/add/garbled_client_client_server/protocol_final.py
Python
gpl-3.0
531
#!/usr/bin/env python import sys,sqlite3,os if __name__ == "__main__": if len(sys.argv) != 3: print ("usage: update_database database_name division") print ("\t\tdatabase_name = any database name that will be referred to later") print ("\t\tdivision = the division as recognized by NCBI (used for downloading)")...
chinchliff/autophy
other_scripts/src_stephen/update_database.py
Python
gpl-3.0
1,302
# -*- coding: utf-8 -*- # Copyright (C) Duncan Macleod (2013) # # This file is part of GWSumm. # # GWSumm 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) ...
duncanmmacleod/gwsumm
gwsumm/tests/test_data.py
Python
gpl-3.0
9,035
# Copyright (C) 2012 Prayush Kumar # # 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 distribut...
hagabbar/pycbc_copy
pycbc/waveform/pycbc_phenomC_tmplt.py
Python
gpl-3.0
14,998
# # This file is part of Freedom Maker. # # 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 distribute...
peacekeeper/freedom-maker
freedommaker/vmdebootstrap.py
Python
gpl-3.0
8,089
""" RESTx: Sane, simple and effective data publishing and integration. Copyright (C) 2010 MuleSoft Inc. http://www.mulesoft.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...
yyamano/RESTx
src/python/starter.py
Python
gpl-3.0
2,796
# This file is part of Korman. # # Korman 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. # # Korman is distributed i...
Hoikas/korman
korman/exporter/convert.py
Python
gpl-3.0
21,736
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2016-07-13 05:47 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('waterlevel', '0004_auto_20160531_1218'), ] operations = [ migrations.AlterModelOptio...
geoenvo/opendims
opendims/waterlevel/migrations/0005_auto_20160713_1247.py
Python
gpl-3.0
673
from math import * testing_number = int(1) sum_of_logs = log(2) n = int(input('Choose a number: ')) while testing_number < n: testing_number = testing_number + 2 for checking_number in range(2, testing_number): if testing_number % checking_number == 0: break else: ...
Safuya/python_project_euler
prime_numbers3.py
Python
gpl-3.0
441
#!/usr/bin/env python """ @file CSV2polyconvertXML.py @author Daniel Krajzewicz @author Michael Behrisch @date 2008-07-17 @version $Id: CSV2polyconvertXML.py 22608 2017-01-17 06:28:54Z behrisch $ Converts a given CSV-file that contains a list of pois to an XML-file that may be read by POLYCONVERT. SUMO, Sim...
702nADOS/sumo
tools/shapes/CSV2polyconvertXML.py
Python
gpl-3.0
1,565
#/* bigbob9.py - demo ranger interface # * K. Nickels 7/24/13 # */ # Check with "locate playerc.py" import sys,os sys.path.append('/usr/local/lib/python2.7/site-packages/') sys.path.append('/usr/local/lib64/python2.7/site-packages/') import math from playerc import * # /* Create a client and connect it to the serve...
lsa-pucrs/Player-Stage-Manual
code/Ch9.3/bigbob9_c.py
Python
gpl-3.0
1,538
from django.shortcuts import render,HttpResponse from .models import Employee from .models import Record import datetime import calendar def wage_list(request): return render(request,'app/wage_list.html',{}) def get_data(request): date_from_user = str(request.POST.get('datepicker')) date_from_user = date_from_us...
piyushhajare/Wage_Management
app/views.py
Python
gpl-3.0
3,832
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # scikit-survival documentation build configuration file # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a...
sebp/scikit-survival
doc/conf.py
Python
gpl-3.0
12,460
import numpy as np import pandas as pd import matplotlib.pyplot as plt def plot_decision_regions(X, y, clf, res=0.02): x_min, x_max = X[:, 0].min() - 1, X[:, 0].max() + 1 y_min, y_max = X[:, 1].min() - 1, X[:, 1].max() + 1 xx, yy = np.meshgrid(np.arange(x_min, x_max, res), np.arang...
wyzekid/Python_Projects
Perceptron/Rosenblatt_perceptron.py
Python
gpl-3.0
1,928
#!/usr/bin/env python """ segmentation-fold can predict RNA 2D structures including K-turns. Copyright (C) 2012-2016 Youri Hoogstrate This file is part of segmentation-fold and originally taken from yh-kt-fold. segmentation-fold is free software: you can redistribute it and/or modify it under the terms of the GNU Ge...
yhoogstrate/segmentation-fold
scripts/energy-estimation-utility/segmentation_fold_utils/RNA.py
Python
gpl-3.0
1,466
#!/usr/bin/python # coding: utf8 # # cookiecutter-py documentation build configuration file # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; valu...
antoinedube/numeric-cookiecutter
docs/conf.py
Python
gpl-3.0
9,486
from common.common_consts.telem_categories import TelemCategoryEnum from infection_monkey.telemetry.base_telem import BaseTelem class ScanTelem(BaseTelem): def __init__(self, machine): """ Default scan telemetry constructor :param machine: Scanned machine """ super(ScanTele...
guardicore/monkey
monkey/infection_monkey/telemetry/scan_telem.py
Python
gpl-3.0
537
from django.contrib.auth import get_user_model # from django.urls import reverse from model_bakery import baker from tenant_schemas.test.cases import TenantTestCase from tenant_schemas.test.client import TenantClient # from siteconfig.models import SiteConfig from hackerspace_online.tests.utils import ViewTestUtilsMix...
timberline-secondary/hackerspace
src/djcytoscape/tests/test_views.py
Python
gpl-3.0
5,010
from flask import g from flask.ext.restplus import Namespace, reqparse, marshal from app.api.attendees import TICKET from app.api.microlocations import MICROLOCATION from app.api.sessions import SESSION from app.api.speakers import SPEAKER from app.api.sponsors import SPONSOR from app.api.tracks import TRACK from app....
arpitn30/open-event-orga-server
app/api/events.py
Python
gpl-3.0
15,239
#!/usr/bin/env python3 # ReText # Copyright 2011-2012 Dmitry Shachnev # 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. ...
codemedic/retext
retext.py
Python
gpl-3.0
1,988
# -*- coding: utf-8 -*- # # Copyright © 2012 - 2016 Michal Čihař <michal@cihar.com> # # This file is part of Weblate <https://weblate.org/> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, eith...
dtschan/weblate
weblate/accounts/tests/test_models.py
Python
gpl-3.0
1,853
import locale import os import re import subprocess import sys import platform import time # init libs PROGRAM_DIR = os.path.dirname(os.path.normpath(os.path.abspath(os.path.join(__file__, os.pardir)))) LIBS_DIR = os.path.join(PROGRAM_DIR, 'libs') sys.path.insert(0, LIBS_DIR) # init preliminaries SYS_ARGV = sys.argv[...
grantsewell/nzbToMedia
core/__init__.py
Python
gpl-3.0
33,961
# -*- coding: utf-8 -*- # Config file handling module # Copyright (C) 2014 Yury Gavrilov <yuriy@igavrilov.ru> # This file is part of VKBuddy. # VKBuddy 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...
gavyur/vkbuddy
config.py
Python
gpl-3.0
2,070
""" Copyright (C) 2017 João Barroca <joao.barroca@tecnico.ulisboa.pt> 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 pro...
joaobarroca93/AI
Space-Station-Assembly/search.py
Python
gpl-3.0
2,739
""" Unit tests for nyx.panel.graph. """ import datetime import unittest import stem.control import nyx.curses import nyx.panel.graph import test from test import require_curses from mock import patch EXPECTED_BLANK_GRAPH = """ Download: 0 b 0 b 5s 10 15 """.rstrip() EXPECTED_ACCOUNTING = """ Accoun...
sammyshj/nyx
test/panel/graph.py
Python
gpl-3.0
4,813
import time import bluetooth from h7PolarDataPoints import h7PolarDataPoint from h7PolarDataPointReader import h7PolarDataPointReader if __name__ == '__main__': h7PolarDataPointReader = h7PolarDataPointReader() h7PolarDataPointReader.start() while(True): dataPoint = h7PolarDataPointReader.re...
lukefrasera/fatigueBSN
scripts/include/test_h7PolarRead.py
Python
gpl-3.0
363
#!/usr/bin/env python # # Copyright (C) 2017 - Massachusetts Institute of Technology (MIT) # # 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...
azariven/BioSig_SEAS
bin/test/test_SEAS_import.py
Python
gpl-3.0
1,357
# -*- coding: utf-8 -*- # # This file is part of the osmxapi Python module. # # osmxapi 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...
jmwenda/osmxapi
osmxapi/__init__.py
Python
gpl-3.0
4,014
# Natural Language Toolkit: Parsers # # Copyright (C) 2001-2016 NLTK Project # Author: Steven Bird <stevenbird1@gmail.com> # Edward Loper <edloper@gmail.com> # URL: <http://nltk.org/> # For license information, see LICENSE.TXT # """ NLTK Parsers Classes and interfaces for producing tree structures...
adazey/Muzez
libs/nltk/parse/__init__.py
Python
gpl-3.0
4,269
#!/usr/bin/python """ @author: Manuel F Martinez <manpaz@bashlinux.com> @organization: Bashlinux @copyright: Copyright (c) 2012 Bashlinux @license: GNU GPL v3 """ import usb.core import usb.util import serial import socket from .escpos import * from .constants import * from .exceptions import * class Usb(Escpos): ...
lrks/python-escpos
escpos/printer.py
Python
gpl-3.0
5,425
#!/usr/bin/env python """ crate_anon/linkage/bulk_hash.py =============================================================================== Copyright (C) 2015-2021 Rudolf Cardinal (rudolf@pobox.com). This file is part of CRATE. CRATE is free software: you can redistribute it and/or modify it under th...
RudolfCardinal/crate
crate_anon/linkage/bulk_hash.py
Python
gpl-3.0
6,042
# This module has moved to zope.annotation.attribute # and will go away in Zope 3.5 import zope.deprecation zope.deprecation.moved( 'zope.annotation.attribute', "Zope 3.5", )
Donkyhotay/MoonPy
zope/app/annotation/attribute.py
Python
gpl-3.0
187
from rest_framework.decorators import api_view from rest_framework.response import Response from django.contrib.auth.models import User from application.serializers import UserSerializer, ApplicationSerializer, ApplicationListSerializer from rest_framework import viewsets, status from application.models import Applicat...
mkmeral/TevitolApplication
application/backend/application/views.py
Python
gpl-3.0
2,676
from .sample_filter import SampleFilter, GtFilter from .sv_gt_filter import SvGtFilter import logging from collections import OrderedDict, defaultdict class FamilyFilter(object): ''' Determine whether variants/alleles fit given inheritance patterns for families. ''' def __init__(self, pe...
gantzgraf/vape
vase/family_filter.py
Python
gpl-3.0
69,896
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2015 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # from gnuradio import gr, gr_unittest from gnuradio import blocks, digital import pmt import numpy as np import sys def make_length_tag(...
sdh11/gnuradio
gr-digital/python/digital/qa_burst_shaper.py
Python
gpl-3.0
15,116
# <pep8-80 compliant> # ##### 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. # # ...
Microvellum/Fluid-Designer
win64-vc/2.78/Python/bin/2.78/scripts/addons_contrib/uv_magic_uv/muv_common.py
Python
gpl-3.0
1,988
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*- # # Copyright (C) 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 distributed in the h...
ubuntu-core/snapcraft
tests/unit/plugins/v2/test_meson.py
Python
gpl-3.0
3,544
all( {% include "LinkedInObject.IsInstance.py" with variable="element" type=type.name|add:"."|add:type.name only %} for element in {{ variable }} )
alvarovmz/PyLinkedIn
codegen/templates/LinkedInObject.IsInstance.list.complex.py
Python
gpl-3.0
148
class Solution(object): def trap(self, height): """ :type height: List[int] :rtype: int """ l=len(height) maxheight=[0 for i in range(l)] leftmax=0 rightmax=0 res=0 for i in range(l): if height[i]>leftmax: le...
dichen001/Go4Jobs
JoeXu/42. Trapping rain water.py
Python
gpl-3.0
616
# coding=utf-8 import unittest """826. Most Profit Assigning Work https://leetcode.com/problems/most-profit-assigning-work/description/ We have jobs: `difficulty[i]` is the difficulty of the `i`th job, and `profit[i]` is the profit of the `i`th job. Now we have some workers. `worker[i]` is the ability of the `i`th w...
openqt/algorithms
leetcode/python/lc826-most-profit-assigning-work.py
Python
gpl-3.0
1,478
#!/usr/bin/python # -*- coding: utf-8 -*- ## ## Copyright © 2007-2012, Matthias Urlichs <matthias@urlichs.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 L...
smurfix/HomEvenT
test/mod_path.py
Python
gpl-3.0
1,386
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations def fix_notes_field (apps, schema_editor): Question = apps.get_model("checklist", "Question") for question in Question.objects.all(): question.notes = "" question.save() class Migration(...
KevinSeghetti/survey
survey/checklist/migrations/0012_auto_20150928_1443.py
Python
gpl-3.0
503
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/krl1to5/Work/FULL/Sequence-ToolKit/2016/resources/ui/genrep/dialogs/setup.ui' # # Created by: PyQt5 UI code generator 5.5.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_...
carlos-ferras/Sequence-ToolKit
view/genrep/dialogs/ui_setup.py
Python
gpl-3.0
34,982
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-04-08 19:41 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('event', '0015_auto_20170408_1815'), ] operations = [ migrations.AddField( ...
sandrofolk/girox
girox/event/migrations/0016_subscription_team.py
Python
gpl-3.0
498
# -*- coding: utf-8 -*- # # Copyright (c) 2010-2010 by drubin <drubin at smartcube.co.za> # # 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)...
qguv/config
weechat/plugins/python/confversion.py
Python
gpl-3.0
4,417
# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor from ..compat import compat_HTTPError from ..utils import ( float_or_none, parse_iso8601, str_or_none, try_get, unescapeHTML, url_or_none, ExtractorError, ) class RteBaseIE(InfoExtractor): def _real_extract(s...
valmynd/MediaFetcher
src/plugins/youtube_dl/youtube_dl/extractor/rte.py
Python
gpl-3.0
5,026
# -*- coding: utf-8 -*- """Simulation launch services. Simulation launch services provide the following functionality: - generating simulation id based on local date and time; - generating simulation directory name; - loading names of simulation directories from a text file; - creating directory structure for simulat...
macknowak/simtools
simtools/simrun.py
Python
gpl-3.0
3,606
from io import StringIO import re import httpretty from django.core.management import call_command from oppia.test import OppiaTestCase from settings import constants from settings.models import SettingProperties from tests.utils import get_file_contents class CartoDBUpdateTest(OppiaTestCase): fixtures = ['test...
DigitalCampus/django-oppia
tests/viz/management/commands/test_cartodb_update.py
Python
gpl-3.0
2,062
#!/usr/bin/env python # encoding: utf-8 import sqlite3 from sys import version_info if version_info >= (3, 0, 0): def listkey(dicts): return list(dicts.keys())[0] else: def listkey(dicts): return dicts.keys()[0] class sqlitei: '''Encapsulation sql.''' def __init__(self, path): ...
54Pany/gum
data/libdbs.py
Python
gpl-3.0
1,870
# -*- coding: utf-8 -*- import re test = '用户输入的字符串' if re.match(r'用户', test): print('ok') else: print('failed') print('a b c'.split(' ')) print(re.split(r'\s*', 'a b c')) print(re.split(r'[\s\,\;]+', 'a,b;; c d')) m = re.match(r'^(\d{3})-(\d{3,8})$', '010-12345') print(m.group(1)) m = re.match(r'^(\S+)@(\...
cysuncn/python
study/test/TestRe.py
Python
gpl-3.0
655
def __load(): import imp, os, sys ext = 'pygame/display.so' for path in sys.path: if not path.endswith('lib-dynload'): continue ext_path = os.path.join(path, ext) if os.path.exists(ext_path): mod = imp.load_dynamic(__name__, ext_path) break el...
mokuki082/EggDrop
code/build/bdist.macosx-10.6-intel/python3.4-standalone/app/temp/pygame/display.py
Python
gpl-3.0
396
#!/usr/bin/env python gplheader = """Harmon Instruments CORDIC generator Copyright (C) 2014 Harmon Instruments, LLC 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, o...
HarmonInstruments/verilog
cordic/cordic.py
Python
gpl-3.0
4,069
import os import sys import numpy as np import math def findBinIndexFor(aFloatValue, binsList): #print "findBinIndexFor: %s" % aFloatValue returnIndex = -1 for i in range(len(binsList)): thisBin = binsList[i] if (aFloatValue >= thisBin[0]) and (aFloatValue < thisBin[1]): returnIndex = i break return ...
omoju/Fundamentals
Data/twitterDataAnalysis/info_gain.py
Python
gpl-3.0
3,353
# This file is part of HamsiManager. # # Copyright (c) 2010 - 2015 Murat Demir <mopened@gmail.com> # # Hamsi Manager 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 yo...
supermurat/hamsi-manager
Amarok/Operations.py
Python
gpl-3.0
5,993
""" Example usage: python3 testf0seqnrcalculation.py 548659 \ ../testdata/sample_data_548659/L548659.parset \ ../testdata/sample_data_548659/file-sizes.txt \ ../testdata/sample_data_548659/f0seqnr-sizes.txt """ import os import sys sys.path.append("../scripts") import create_html def test...
brentjens/pyautoplot
test/testf0seqnrcalculation.py
Python
gpl-3.0
6,014
import aiohttp import discord import random from config import GoogleAPIKey from config import GoogleCSECX async def google(cmd, message, args): if not args: await message.channel.send(cmd.help()) return else: search = ' '.join(args) url = 'https://www.googleapis.com/customsea...
valeth/apex-sigma
sigma/plugins/searches/google/google.py
Python
gpl-3.0
1,478
#!/usr/bin/python from setuptools import setup, find_packages setup( name='plumber', version='0.0.1-alpha', description='simple, mundane script to build and publish containers to marathon/mesos', author='Giuseppe Lavagetto', author_email='glavagetto@wikimedia.org', url='https://github.com/lava...
lavagetto/plumber
setup.py
Python
gpl-3.0
589
# Sebastian Raschka 2016 # # `siteinterlock` is a Python package for selecting near-native protein-ligand # docking poses based upon the hypothesis that interfacial rigidification # of both the protein and ligand prove to be important characteristics of # the native binding mode and are sensitive to the spatial couplin...
psa-lab/siteinterlock
siteinterlock/proflex_utils/__init__.py
Python
gpl-3.0
741
#!/usr/bin/env python # Calculate the 1000th element of the Fibonacci series. Fast. # (Another popular tech interview question.) import numpy; # Definition of Fibonacci numbers: # F(1) = 1 # F(2) = 1 # For n = 3, 4, 5, ...: F(n) = F(n-2) + F(n-1). # Method one: recursion. # Very inefficient: F(n) is called once, it ...
bencebeky/etudes
fibonacci.py
Python
gpl-3.0
3,792
"""Routines for bubble format validation""" import os import itertools as it from collections import Counter from bubbletools.bbltree import BubbleTree from bubbletools import utils def validate(bbllines:iter, *, profiling=False): """Yield lines of warnings and errors about input bbl lines. profiling -- yi...
Aluriak/bubble-tools
bubbletools/validator.py
Python
gpl-3.0
6,140
# Copyright (c) 2014 Adafruit Industries # Author: Tony DiCola # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, m...
henla464/WiRoc-Python-2
testOLED.py
Python
gpl-3.0
6,908
import sys import random from linked_list_prototype import ListNode from reverse_linked_list_iterative import reverse_linked_list # @include def zipping_linked_list(L): if not L or not L.next: return L # Finds the second half of L. slow = fast = L while fast and fast.next: slow, fast ...
meisamhe/GPLshared
Programming/MPI — AMath 483 583, Spring 2013 1.0 documentation_files/zipping_list.py
Python
gpl-3.0
1,575
# -*- coding: utf-8 -*- # Copyright (c) 2009 - 2014 Detlev Offenbach <detlev@die-offenbachs.de> # """ Module implementing a dialog to enter the connection parameters. """ from __future__ import unicode_literals from PyQt5.QtCore import pyqtSlot from PyQt5.QtWidgets import QDialog, QDialogButtonBox from PyQt5.QtSql ...
davy39/eric
SqlBrowser/SqlConnectionDialog.py
Python
gpl-3.0
3,950
#!/usr/bin/python # -*- coding: utf-8 -*- # # Tuxemon # Copyright (C) 2014, William Edwards <shadowapex@gmail.com>, # Benjamin Bean <superman2k5@gmail.com> # # This file is part of Tuxemon. # # Tuxemon is free software: you can redistribute it and/or modify # it under the terms of the GNU General Pu...
nikitakurylev/TuxemonX
tuxemon/core/states/combat/combat.py
Python
gpl-3.0
27,084
from jroc.tasks.tokenizers.TokenizerTask import SentenceTokenizerTask, WordTokenizerTask
domenicosolazzo/jroc
tests/tasks/tokenizers/__init__.py
Python
gpl-3.0
89
from django.forms import * from django.forms.formsets import BaseFormSet from django.utils.translation import ugettext_lazy as _ from django.contrib.sites.models import Site from tradeschool.models import * class DefaultBranchForm(Form): def __init__(self, user, redirect_to, *args, **kwargs): super(Defaul...
orzubalsky/tradeschool
ts/apps/tradeschool/forms.py
Python
gpl-3.0
7,844
# -*- coding: utf-8 -*- # MLC (Machine Learning Control): A genetic algorithm library to solve chaotic problems # Copyright (C) 2015-2017, Thomas Duriez (thomas.duriez@gmail.com) # Copyright (C) 2015, Adrian Durán (adrianmdu@gmail.com) # Copyright (C) 2015-2017, Ezequiel Torres Feyuk (ezequiel.torresfeyuk@gmail.com) # ...
MachineLearningControl/OpenMLC-Python
MLC/Population/Creation/IndividualSelection.py
Python
gpl-3.0
2,329
""" WSGI config for school_registry 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.9/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJAN...
agustin380/school-registry
src/school_registry/wsgi.py
Python
gpl-3.0
407
import card from card import Card from player import Player from hand import Hand from prompt import Prompt, IntegerPrompt, SetPrompt import pprint class Setup: def run(self, game): self.game = game self.cards_accounted_for = 0 self.setup_conviction() self.initialize_cards() ...
jonahbron/clue
setup.py
Python
gpl-3.0
3,316
# coding=utf-8 """ Utility Serializers """ from rest_framework.serializers import HyperlinkedModelSerializer class HybridModelSerializer(HyperlinkedModelSerializer): """ ModelSerializer which provides both a `url` and `id` field """ def get_pk_field(self, model_field): return self.get_field(...
bigbangdev/cityhelpdeskdjango
cityhelpdesk/utility/serializers.py
Python
gpl-3.0
333
# coding=utf-8 """Request handler for authentication.""" from __future__ import unicode_literals import logging import random import string import time from builtins import range import jwt from medusa import app, helpers, notifiers from medusa.logger.adapters.style import BraceAdapter from medusa.server.api.v2.base...
pymedusa/SickRage
medusa/server/api/v2/auth.py
Python
gpl-3.0
2,962
from collections import OrderedDict from django import forms from django.conf import settings from django.db import transaction from django.utils.translation import ugettext_lazy as _ from oioioi.base.utils.input_with_generate import TextInputWithGenerate from oioioi.base.utils.inputs import narrow_input_field from oi...
sio2project/oioioi
oioioi/problems/forms.py
Python
gpl-3.0
9,816
# This file is part of LilyPond, the GNU music typesetter. # # Copyright (C) 1998--2012 Han-Wen Nienhuys <hanwen@xs4all.nl> # Jan Nieuwenhuizen <janneke@gnu.org> # # LilyPond is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # t...
sehe/Lilypond
python/lilylib.py
Python
gpl-3.0
9,740
from __future__ import division import socket, MySQLdb from PIL import Image from random import randint, randrange from ConfigParser import SafeConfigParser parser = SafeConfigParser() parser.read('../analogy_config.ini') db = MySQLdb.connect( host = parser.get('database','host'), user = parser.get('database...
LucaClaessens/Analogy
Printer/Publication_Maker.py
Python
gpl-3.0
7,901
# Copyright (C) 2014 Nicolas Lamirault <nicolas.lamirault@gmail.com> # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. ...
nlamirault/hyperion-lite
hyperiontests/test_grafana.py
Python
gpl-3.0
1,189
# PyJVM (pyjvm.org) Java Virtual Machine implemented in pure Python # Copyright (C) 2014 Andrew Romanenco (andrew@romanenco.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 ...
andrewromanenco/pyjvm
pyjvm/ops/ops_invokevirtual.py
Python
gpl-3.0
4,330
""" Bootstrapping script that create a basic Pimlico setup, either for an existing config file, or for a new project. Distribute this with your Pimlico project code. You don't need to distribute Pimlico itself with your project, since it can be downloaded later. Just distribute a directory tree containing your config ...
markgw/pimlico
admin/bootstrap.py
Python
gpl-3.0
8,150
#!/usr/bin/env python import numpy as np import sys try: t1 = int(sys.argv[1]) except: print "usage:", sys.argv[0], "n (number of years)" sys.exit(1) t0 = 1750 u0 = 2 t = np.linspace(t0, t0 + t1 + .5, t1) u = np.zeros(t1 + 1) a = 0.0218 u[0] = u0 for i in range(len(u) - 1): u[i+1] = (1 + a)*u[i] prin...
qilicun/python
python3/src/ode1/pop_exp_growth.py
Python
gpl-3.0
376
#!/usr/bin/env python """ script to build the latest binaries for each vehicle type, ready to upload Peter Barker, August 2017 based on build_binaries.sh by Andrew Tridgell, March 2013 """ from __future__ import print_function import datetime import optparse import os import re import shutil import time import subpr...
sharescience/ardupilot
Tools/scripts/build_binaries.py
Python
gpl-3.0
26,405
#!/usr/bin/env python # -*- coding: utf-8 -*- import config_speller_8 import config_robot_8 class Config(object): def __init__(self): self.number_of_decisions = 8 speller = config_speller_8.Config() robot = config_robot_8.Config() self.state = [] self.actions = [] se...
BrainTech/openbci
obci/logic/configs/config_multiple_8.py
Python
gpl-3.0
2,287
import numpy as np import time import matplotlib.pyplot as plt from AndorSpectrometer import Spectrometer spec = Spectrometer(start_cooler=False,init_shutter=True) #time.sleep(30) spec.SetCentreWavelength(650) spec.SetSlitWidth(100) # spec.SetImageofSlit() # slit = spec.TakeImageofSlit() # # spec.SetSingleTrack()...
sdickreuter/python-andor
test.py
Python
gpl-3.0
660