code
stringlengths
2
1.05M
repo_name
stringlengths
5
104
path
stringlengths
4
251
language
stringclasses
1 value
license
stringclasses
15 values
size
int32
2
1.05M
# -*- coding: utf-8 -*- import diaper import fauxfactory import pytest from mgmtsystem import exceptions from cfme.common.vm import VM from cfme.configure.configuration import VMAnalysisProfile from cfme.control.explorer import ( VMCompliancePolicy, VMCondition, PolicyProfile) from cfme.web_ui import flash, toolb...
kzvyahin/cfme_tests
cfme/tests/control/test_compliance.py
Python
gpl-2.0
8,549
# Licensed under the GPLv3 - see LICENSE """ Definitions for VLBI Mark5B Headers. Implements a Mark5BHeader class used to store header words, and decode/encode the information therein. For the specification, see http://www.haystack.edu/tech/vlbi/mark5/docs/Mark%205B%20users%20manual.pdf """ import numpy as np import ...
cczhu/baseband
baseband/mark5b/header.py
Python
gpl-3.0
12,216
# -*- coding: utf-8 -*- __all__ = ['const']
Suwings/Yeinw
src/Suwings/__init__.py
Python
gpl-3.0
46
#!/usr/bin/env python # -*- coding: utf8 -*- # *************************************************************************** # # # # Version 0.1 - 2013-08-01 # # Copyright (C) 2013 Marco Cr...
lenonr/dev_xfce
Auto_Config/base/.gimp-2.8/plug-ins/gimp_instagram_valencia.py
Python
gpl-3.0
4,118
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-07-04 21:44 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Contac...
charityscience/csh-sms
management/migrations/0001_initial.py
Python
gpl-3.0
1,061
import re import requests import lxml.html import scrapelib from pupa.scrape import Person, Scraper abbr = {"D": "Democratic", "R": "Republican"} class MIPersonScraper(Scraper): def scrape(self, chamber=None, session=None): if chamber == "upper": yield from self.scrape_upper(chamber) ...
openstates/openstates
openstates/mi/people.py
Python
gpl-3.0
7,404
#!/usr/bin/env python """ @file generator_blpulse.py @brief Bandlimited pulse generation @author gm @copyright gm 2016 This file is part of SoundTailor SoundTailor 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,...
G4m4/soundtailor
scripts/generator_blpulse.py
Python
gpl-3.0
4,122
#!/usr/bin/env Django_py3 """mysite_tue URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', vie...
gmf1045/Python_Sample_codes
mysite_tue/urls.py
Python
gpl-3.0
794
""" Omeka API Script to find word/office documents and add HTML renditions of them to items. Requires word2html to be in a directory parallel to this or in the python path """ from omekaclient import OmekaClient from omekautils import get_omeka_config from omekautils import create_stream_logger from sys import stdou...
ptsefton/omeka-python-utils
convert_word_docs_to_html.py
Python
gpl-3.0
3,529
import sys import os import itk import numpy as np if len(sys.argv) < 5 or len(sys.argv) > 6: print("Usage: " + sys.argv[0] + "inputImage outputFOLDER numberOfIterations conductance [timeStep=0.0625]") sys.exit(1) print("Anisotropic Denoising %s" % sys.argv[1]) input_filename = sys.argv[1] basename = os.path.base...
phcerdan/ITKfilters
scripts-python/denoise_input.py
Python
gpl-3.0
1,451
# -*- coding: utf-8 -*- # # Copyright © 2012 - 2017 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...
lem9/weblate
weblate/trans/feeds.py
Python
gpl-3.0
3,830
# -*- coding: utf-8 -*- from santaclara_editor.santaclara_lang.tags import Tag class Table(list): def __init__(self,style=""): list.__init__(self) self.style=style def html(self): S=u"<center><table" if self.style: S+=u' class="'+self.style+'"' S+=u">\n...
chiara-paci/santaclara-editor
santaclara_editor/santaclara_lang/tables.py
Python
gpl-3.0
4,455
#!/sur/bin/env python # -*- coding: utf8 -*- """ Profection dialog. """ import sys from PyQt4.QtCore import * from PyQt4.QtGui import * __all__ = ['ProfectionDialog'] class ProfectionDialog(QDialog): def __init__(self, parent=None): QDialog.__init__(self, parent) tr = self.tr self.setWindowTitle(tr('Ad...
astrorigin/oroboros
oroboros/gui/profectiondialog.py
Python
gpl-3.0
2,889
# Copyright (C) 2014 Statoil ASA, Norway. # # The file 'double_vector.py' is part of ERT - Ensemble based Reservoir Tool. # # ERT 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 ...
iLoop2/ResInsight
ThirdParty/Ert/devel/python/python/ert/util/double_vector.py
Python
gpl-3.0
6,272
# # Copyright (C) 2011-2017 Ary Pablo Batista <arypbatista@gmail.com>, Pablo Barenbaum <foones@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 # ...
arypbatista/gobspy
gobspy/lang/utils/__init__.py
Python
gpl-3.0
8,234
#!/usr/bin/python3 import sys import os import inspect import visa import matplotlib.pyplot as pyplot import skrf as rf ############################# # Importing local libraries # ############################# import instr_tests as instr try: vna = instr.instruments.vna.AgilentE5061B("10.0.18.54") except: ...
lnls-dig/instr_tests
instr_tests/examples/example_vna.py
Python
gpl-3.0
1,360
""" This is a test of using SandboxStoreClient in the WMS In order to run this test we need the following DBs installed: - SandboxMetadataDB And the following services should also be on: - SandboxStore And a SandboxSE should be configured, something like: SandboxStore { LocalS...
DIRACGrid/DIRAC
tests/Integration/WorkloadManagementSystem/Test_SandboxStoreClient.py
Python
gpl-3.0
2,767
# gus.mb, an open source flow solver. # Copyright (C) 2016 Hiromasa Kato <hiromasa at gmail.com> # # This file is part of gus.mb. # # gus.mb 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, ei...
butakun/gus.mb
IO/Pre.py
Python
gpl-3.0
6,058
# -*- coding: utf-8 -*- # # Copyright © 2012 - 2015 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...
miyataken999/weblate
weblate/trans/tests/test_ssh.py
Python
gpl-3.0
2,079
from endpoint.auth import AuthMiddleware from endpoint.data import application as data_app from endpoint.events import application as events_app from endpoint.page import application as page_app from os import environ from sys import exit from werkzeug.wsgi import DispatcherMiddleware import logging logging.basicConf...
aquametalabs/aquameta
experimental/uwsgi-endpoint/endpoint/wsgi.py
Python
gpl-3.0
682
import numpy as np import matplotlib.pyplot as plt from sklearn.decomposition import PCA import topology.data as td def run_coffee_mug_pca_example(): X, y = td.coffee_mug(bottom_label=0, side_label=0, handle_label=1) c = ['r' if l else 'b' for l in y] # Nontrivial rotation around the x-axis angle = ...
nonabelian/tda_dionysus
scripts/pca_demo.py
Python
gpl-3.0
1,605
#!/usr/bin/python -u # -*- coding: utf-8 -*- ''' Module for generation of environments for experiments over Yahoo finance data using BEST and TOPK operators ''' import csv import os from yfimport import TRANSACTION_FILE # Experiment parameters RAN = 'range' SLI = 'slide' OPE = 'operator' TOPK = 'top' BEST = 'best'...
ribeiromarcos/yfimport
pref.py
Python
gpl-3.0
11,968
import pytest from datetime import datetime from nextgisweb.audit.util import es_index def one(es, index): result = es.search(index=index, body={"query": {"match_all": {}}}, size=1) return result["hits"]["hits"][0]["_source"] @pytest.fixture(scope='module', autouse=True) def skip_without_es(ngw_env): i...
nextgis/nextgisweb
nextgisweb/audit/test/test_audit.py
Python
gpl-3.0
2,453
from flask_script import Manager,prompt_bool,prompt from harrier.core import db import harrier.model as model manager = Manager(usage="Perform database operations") @manager.command def drop(): "Drops all database tables" if prompt_bool("**DANGER AREA** Are you sure you want to proceed?"): if prompt_b...
ubccr/harrier
harrier/manage/database.py
Python
gpl-3.0
965
import h5py import numpy as np import pylab as pl from matplotlib.mlab import PCA from mpl_toolkits.mplot3d import Axes3D name = "koendata.h5" file = h5py.File(name, 'r') def dataProcessing(file, rat, date): object = file[rat][date]["valueMatrix"] data = np.array(object) pca = PCA(data) print pca...
CINPLA/bigdata
koen.py
Python
gpl-3.0
964
from util import hook, user, database import os import sys import re import json import time import subprocess @hook.command(autohelp=False, adminonly=True) def gadmins(inp, notice=None, bot=None): "admins -- Lists bot's global admins." if bot.config["admins"]: notice("Admins are: %s." % ", ".join(bot...
bytebit-ch/uguubot
plugins/core_admin_global.py
Python
gpl-3.0
11,753
""" com_dht11.py v1.0.0 Auteur: Bruno DELATTRE Date : 02/10/2016 """ import time from dal import dal_dht11 from lib import com_logger from lib.driver import com_gpio class DHT11Result: ERR_NO_ERROR = 0 ERR_MISSING_DATA = 1 ERR_CRC = 2 error_code = ERR_NO_ERROR temperature = -1 humidity ...
delattreb/StratoBalloon
src/lib/driver/com_dht11.py
Python
gpl-3.0
6,901
""" GNU Radio is a free & open-source software development toolkit that provides signal processing blocks to implement software radios. It can be used with readily-available low-cost external RF hardware to create software-defined radios, or without hardware in a simulation-like environment. It is widely used in hobbyi...
ambikeshwar1991/gnuradio-3.7.4
gnuradio-runtime/python/gnuradio/__init__.py
Python
gpl-3.0
3,362
# -*- coding: utf-8 -*- ## ## ## This file is part of Indico. ## Copyright (C) 2002 - 2014 European Organization for Nuclear Research (CERN). ## ## Indico 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...
pferreir/indico-backup
indico/MaKaC/plugins/Collaboration/base.py
Python
gpl-3.0
112,740
# -*- coding: utf-8 -*- #=================================== #標準地域メッシュコードインポートプラグイン # #=================================== def classFactory(iface): from .main import main return main(iface)
karaGR/JpnStdMeshImport
__init__.py
Python
gpl-3.0
242
""" FILENAME: controller.py controller.py is the client and SUMO is the server """ """ DIRECTORIES & PATHS """ PORT = 8813 """ LIBRARIES """ import os, sys import subprocess import traci import random import pandas as pd import numpy as np import math from numpy import random import nu...
JDGlick/sumo_reinforcement_learning
getDiscreteStates.py
Python
gpl-3.0
22,439
from datetime import date, time, datetime def from_dict(self, values): """Merge in items in the values dict into our object if it's one of our columns """ json_eager_save = set(getattr(self, '_json_eager_save', [])) for c in self.__table__.columns: if c.name in values: setattr(self...
aguirrel/sqlalchemy_rest
sqlalchemy_rest/json/__init__.py
Python
gpl-3.0
3,900
class TurbolinksMiddleware(object): def process_response(self, request, response): response['X-XHR-Current-Location'] = request.get_full_path() response.set_cookie('request_method', request.method) #response.set_cookie('request_method') = 'GET' print '*****************************...
hzlf/openbroadcast
website/tools/turbolinks/middleware.py
Python
gpl-3.0
423
#! /usr/bin/env python3 import os import pwd import logging import re from shutil import move from gi.repository import Gtk from dialogs import MessageDialog from treeview import TreeViewHandler class Logger(): def __init__(self, logPath='', defaultLogLevel='debug', addLogTime=True, rtObject=None, parent=None, ...
ruibarreira/linuxtrail
usr/lib/trail/updatemanager/logger.py
Python
gpl-3.0
5,098
# -*- coding: utf-8 -*- from __future__ import absolute_import from rest_framework import serializers from .base import WsBaseModelSerializer import rest.models class OrderSerializer(WsBaseModelSerializer): """ This is a serializer class for the Order rest model. """ user = serializers.PrimaryKeyRe...
lavalamp-/ws-backend-community
rest/serializers/orders.py
Python
gpl-3.0
1,853
#!/usr/bin/env python # -*- coding: utf-8 -*- import math import time import rospy import std_msgs import json import os from std_msgs.msg import String from std_msgs.msg import Float32 from arom.srv import * from arom.msg import * import numpy as np import pylirc from drivers.__init__ import AromNode try: import...
Robozor-network/AROM
src/arom_manager.py
Python
gpl-3.0
1,298
# -*- coding: utf-8 -*- """ (C) 2015, Niels Anders, EUBrazilCC """ from generic_tools import saveimg, getpoints, gridcellborders import numpy as np import sys, time, os.path def calcAspect(dtm): [r,c] = dtm.shape print 'Calculate slope angle (%d x %d)...' % (c, r), time.sleep(0.1) t0 = time...
niels-anders/eubrazilcc-lidar
aspect.py
Python
gpl-3.0
2,894
#! /usr/bin/env python # coding: utf-8 # This file is part of the OMI Python package. # # The OMI Python package 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 ...
gkuhl/omi
omi/psm.py
Python
gpl-3.0
23,137
import numpy as np import sys from scipy.stats import spearmanr def read_final(path): models = [] headings = [] with open(path,'r') as f: header = f.readline() tokens = header.replace("\n","").split(",") headings = tokens[2:] for i in range(0,len(tokens)-2): models.append([]) ...
QMUL/wacky
python/final_stats.py
Python
gpl-3.0
1,977
# Copyright (C) 2011, The SAO/NASA Astrophysics Data System # # 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 p...
adsabs/ADS_records_merger
merger/global_merging_checks.py
Python
gpl-3.0
6,091
"""This module's scope covers the operations related to metadata. """ __version__ = "0.1.1" __changelog = { "0.1.1": {"Tuna": "0.16.5", "Change": "PEP8 and PEP257 compliance."}, "0.1.0": {"Tuna": "0.14.0", "Change": "updated docstrings to new style."}, } import logging import re import sys class MetadataParse...
rcbrgs/tuna
tuna/io/metadata_parser.py
Python
gpl-3.0
2,321
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2015 Josef Gajdusek <atx@atx.name> ## ## 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 Licen...
atalax/libsigrokdecode
decoders/qi/__init__.py
Python
gpl-3.0
994
#!/usr/bin/env python # Copyright (C) 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
merlinschumacher/ct-google-assistant-sdk
assistant_button.py
Python
gpl-3.0
6,753
#!/usr/bin/env python places = { 'Shire': {'leave': 'Bree', 'stay': 'DEATH'}, 'DEATH': {}, 'Bree': {'with Strider': 'Rivendell', 'alone': 'DEATH'}, 'Rivendell': {'over mountains': 'DEATH', 'through Moria': 'Lorien'}, 'Lorien': {'down Anduin': 'Falls of Rauros'}, 'Falls of Rauros': {'down Anduin...
veltzer/demos-python
src/exercises/advanced/advanced_dict_usage/solution1.py
Python
gpl-3.0
1,263
#!/usr/bin/env python # -*- coding: utf-8 -*- # 2016/08/23 Version 34 - parameters24 input file needed # 2017/10/27 Version 39 - Reformatted PEP8 Code # 2017/11/05 Version 40 - Corrections to tdifmin, tstda calculations # 2019/10/15 Version pympa - xcorr substitued with correlate_template from obspy # First Version Au...
avuan/PyMPA37
main.pympa.dir/pympa_obspy1.2.1.py
Python
gpl-3.0
32,655
#!/bin/python # -*- coding: utf-8 -*- # #################################################################### # gofed-ng - Golang system # Copyright (C) 2016 Fridolin Pokorny, fpokorny@redhat.com # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public Lice...
gofed/gofed-ng
common/system/connectionCall.py
Python
gpl-3.0
1,736
### # Copyright (c) 2013, KG-Bot # All rights reserved. # # ### import re import json import urllib2 import urllib import supybot.schedule as schedule import datetime import time from operator import itemgetter import locale import string import supybot.utils as utils from supybot.commands im...
kg-bot/SupyBot
plugins/ESim/plugin.py
Python
gpl-3.0
40,915
from os.path import getctime, isfile from datetime import datetime, timedelta from flask import Flask, render_template, request from raptiformica_map.graph_data import insert_graph_data from raptiformica_map.update_graph import generate_graph, GRAPH_FILE app = Flask(__name__) app.config.from_pyfile('settings.cfg') d...
vdloo/raptiformica-map
raptiformica_map/web.py
Python
gpl-3.0
1,405
import os import zmq import logging class Tank(object): def __init__(self, host, port): self.host = host self.port = port def run(self): self.context = zmq.Context() self.sock = self.context.socket(zmq.PUSH) logging.info('binding to \'tcp://0.0.0.0:%s\'' % (self.port, )...
yandex/opensourcestand
tank.py
Python
gpl-3.0
1,076
import unittest import redeemer.tokenwords.tokenconverter as tk class test_tokenconverter(unittest.TestCase): def setUp(self): pass def test_first_word_in_dictionary(self): result = tk._get_word_for_number(0) self.assertEquals(result,'A') def test_last_word_in_dictionary(self): ...
montaggroup/montag-token-redeemer
redeemer/testing/unittests/test_tokenconverter.py
Python
gpl-3.0
3,918
# coding=utf-8 """ Test unit, using simple graph made in Signavio editor for import/export operation """ import os import unittest import bpmn_python.bpmn_diagram_rep as diagram class BPMNEditorTests(unittest.TestCase): """ This class contains test for bpmn-python package functionality using an example BPMN ...
KrzyHonk/bpmn-python
tests/xml_import_export/lanes_test.py
Python
gpl-3.0
1,170
# -*- coding:Utf8 -*- # affichage des 20 premiers termes de la table par 7, # avec signalement des multiples de 3 : i = 1 # compteur : prendra successivement les valeurs de 1 à 20 while i < 21: # calcul du terme à afficher : t = i * 7 # affichage sans saut à la ligne (utilisation de 'end =')...
widowild/messcripts
exercice/python3/solutions_exercices/exercice_4_07.py
Python
gpl-3.0
601
''' Created on Mar 11, 2013 @author: stefano ''' from HomeoUniselector import * from Helpers.General_Helper_Functions import * import unittest, string, random class HomeoUniselectorTest(unittest.TestCase): def setUp(self): self.uniselector = HomeoUniselector() def tearDown(self): pas...
cleinias/Homeo
src/Core/HomeoUniselectorTest.py
Python
gpl-3.0
2,342
# This file is part of eddylicious # (c) Timofey Mukha # The code is released under the GNU GPL Version 3 licence. # See LICENCE.txt and the Legal section in the User Guide for more information """Module containing functions for writing out the inflow fields in various file formats. """ from .hdf5_writers import * f...
timofeymukha/eddylicious
eddylicious/writers/__init__.py
Python
gpl-3.0
476
# coding: utf-8 """ weasyprint.text --------------- Interface with Pango to decide where to do line breaks and to draw text. :copyright: Copyright 2011-2014 Simon Sapin and contributors, see AUTHORS. :license: BSD, see LICENSE for details. """ from __future__ import division # XXX No unicode_lit...
aESeguridad/GERE
venv/lib/python2.7/site-packages/weasyprint/text.py
Python
gpl-3.0
22,476
# -*- coding: utf-8 -*- # IDD3 - Propositional Idea Density from Dependency Trees # Copyright (C) 2014-2015 Andre Luiz Verucci da Cunha # # 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 ...
andrecunha/idd3
idd3/__init__.py
Python
gpl-3.0
1,432
# Copyright (C) 2011-2014 2ndQuadrant Italia (Devise.IT S.r.L.) # # This file is part of Barman. # # Barman 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...
huddler/pgbarman
tests/test_xlog.py
Python
gpl-3.0
5,245
# Generated by Django 2.2.2 on 2021-02-11 18:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('scoping', '0337_auto_20210126_2126'), ] operations = [ migrations.AddField( model_name='category', name='selection_t...
mcallaghan/tmv
BasicBrowser/scoping/migrations/0338_auto_20210211_1810.py
Python
gpl-3.0
556
"""empty message Revision ID: cfc5f3fd5efe Revises: 2040f0c804b0 Create Date: 2018-06-07 18:52:31.059396 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'cfc5f3fd5efe' down_revision = '2040f0c804b0' branch_labels = None depends_on = None def upgrade(): # ...
lucyparsons/OpenOversight
OpenOversight/migrations/versions/cfc5f3fd5efe_.py
Python
gpl-3.0
1,091
# -*- coding: utf-8 -*- #!/usr/bin/env python # 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 distri...
BrainTech/openbci
obci/exps/ventures/maze_game/maze_screen.py
Python
gpl-3.0
16,119
############################################################################# # This file holds some global variables for some of the input options. # These global parameters should be read only -- they are not modified anywhere # else in the code except when reading the input options. # # This dictionary will also be...
gwct/core
python/python-template/lib/params.py
Python
gpl-3.0
2,831
#!/usr/local/bin/python3 __author__ = 'apaeffgen' # -*- coding: utf-8 -*- # This file is part of Panconvert. # # Panconvert 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...
apaeffgen/PanConvert
source/dialogs/dialog_preferences.py
Python
gpl-3.0
11,698
#!/usr/bin/env python # -*- coding: UTF-8 -*- from setuptools import setup, find_packages import mylittlebudget with open('README.md') as f: long_description = f.read() with open('requirements.txt') as f: install_requires = f.read() setup(name='mylittlebudget', version='0.1', author='Florian Bri...
Nabellaleen/MyLittleBudget
setup.py
Python
gpl-3.0
674
""" Platform dependend OS calls - linux edition """ import subprocess import logging LOGGER=logging.getLogger(__name__) # Check if xdotool is available xdotool=None p = subprocess.run(['which', 'xdotool'], stdout=subprocess.PIPE) xdotool = p.stdout.rstrip() if p.returncode != 0 or p.stdout.rstrip() == '': LOGGER.war...
Cybso/gameplay
gameplay/platform/linux.py
Python
gpl-3.0
1,137
def filfun(): return "returning from file1"
nageswau/python_class
pack/file1.py
Python
gpl-3.0
48
import numpy as np import os from os import listdir from os.path import isfile, join import spearmint_lite import os import sys os.chdir('../bci_framework') sys.path.append('./BCI_Framework') import Main import Configuration_BCI import Single_Job_runner as SJR import numpy as np import itertools from time import sle...
lol/BCI-BO-old
check_if_all_jobs_finished.py
Python
gpl-3.0
1,803
from django.shortcuts import render from django.views.generic.base import TemplateView from django.views.generic import FormView from lsmentries.forms import EntryAddForm class AddView(FormView): template_name="lsmentries/add.html" form_class = EntryAddForm success_url = "/manage"
acuriel/lsmdico
lsmentries/views.py
Python
gpl-3.0
297
# Copyright 2012 the rootpy developers # distributed under the terms of the GNU General Public License from rootpy.testdata import get_file from nose.tools import assert_equal, with_setup from nose.plugins.skip import SkipTest from tempfile import mkdtemp import os import shutil TEMPDIR = None def setup_func(): ...
henryiii/rootpy
rootpy/tests/test_root2hdf5.py
Python
gpl-3.0
1,801
"""util.Split is a special block for splitting documents.""" import math from udapi.core.basereader import BaseReader # pylint: disable=abstract-method # read_tree() does not need to be installed here class Split(BaseReader): """Split Udapi document (with sentence-aligned trees in bundles) into several parts."""...
udapi/udapi-python
udapi/block/util/split.py
Python
gpl-3.0
1,506
# -*- coding: utf-8 -*- import urlparse,urllib2,urllib,re import os import sys from core import config from core import logger from core.item import Item DEBUG = True CHANNELNAME = "channelselector" def getmainlist(): logger.info("channelselector.getmainlist") itemlist = [] # Obtiene el i...
golaizola/pelisalacarta-xbmc
channelselector.py
Python
gpl-3.0
44,793
#!/usr/bin/env python # -*- coding: utf-8 -*- # Part of the PsychoPy library # Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2022 Open Science Tools Ltd. # Distributed under the terms of the GNU General Public License (GPL). """Conditions-file preview and mini-editor for the Builder """ import os import sys import...
psychopy/psychopy
psychopy/app/builder/dialogs/dlgsConditions.py
Python
gpl-3.0
29,203
# Copyright 2015 Paul Balanca. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
maxkferg/smart-city-model
modules/vision/datasets/pascalvoc_common.py
Python
gpl-3.0
4,420
mcinif='mcini_g63' runname='col_test0123' mcpick='col_test1.pickle' pathdir='/beegfs/work/ka_oj4748/echoRD' wdir='/beegfs/work/ka_oj4748/gen_tests' colref='True' prec2D='False' update_part=False import sys sys.path.append(pathdir) import run_echoRD as rE rE.echoRD_job(mcinif=mcinif,mcpick=mcpick,runname=runname,wdir=...
cojacoo/testcases_echoRD
col_test0123.py
Python
gpl-3.0
409
''' Created on Sep 16, 2016 State Diagram: Off ==[motion]==> On ==[No motion]==> TentativeOn /\ /\ // || || || // || || =======[motion]=== // || || || \\ ...
dawsonlp/picam
src/activetime.py
Python
gpl-3.0
3,167
# Reach, the remote acccess tool # Copyright (C) 2010 Simon Poirier <simpoir@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) ...
simpoir/reach
reach/__init__.py
Python
gpl-3.0
847
# -*- coding: utf-8 -*- # # Copyright (C) Pootle contributors. # # This file is a part of the Pootle project. It is distributed under the GPL3 # or later license. See the LICENSE file for a copy of the license and the # AUTHORS file for copyright and authorship information. import functools from django.conf import se...
Finntack/pootle
pootle/apps/pootle_translationproject/views.py
Python
gpl-3.0
13,913
''' Created on 13.04.2013 @author: capone ''' X86_DEBUGGERS_ROOT = r'C:\\Program Files (x86)\\Windows Kits\\8.0\\Debuggers\\x86' X64_DEBUGGERS_ROOT = r'C:\Program Files (x86)\\Windows Kits\\8.0\\Debuggers\\x64'
capone212/crashtec
src/crashtec/config/windowsconfig.py
Python
gpl-3.0
212
#!/usr/bin/env python from setuptools import setup, find_packages from setuptools import Command # Build and update pyqt resources import sequence.resource.pyqt del sequence class UploadGhPages(Command): '''Command to update build and upload sphinx doc to github.''' user_options = [] def initialize_opt...
vxgmichel/python-sequence
setup.py
Python
gpl-3.0
1,974
import logging from penfold.WorkflowActionIO import WorkflowActionIO from penfold.error import InputError log = logging.getLogger(__name__) class InputOutputFactory(object): """Handle the processing of Workflow inputs and outputs""" def __init__(self, action_data=None): self._action_data = action_d...
neil-davis/penfold
src/package/penfold/InputOutputFactory.py
Python
gpl-3.0
3,461
import json from libnow.src.business.exceptions.MapperException import MapperException class JsonMapper(object): @staticmethod def from_json_to_py(json_string): """ Convierte un Json (string) a un mapa Python (diccionario). En caso de error lanza una MapperException. :param js...
keikenuro/kaiju-libnow
kaiju_libnow/libnow/src/business/mapper/web/JsonMapper.py
Python
gpl-3.0
954
# -*- coding: utf-8 -*- from south.utils import datetime_utils as 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 'HighlightTranslationVCS' db.create_table(u'appulet_highli...
MoveLab/erulet-server
appulet/migrations/0008_auto__add_highlighttranslationvcs.py
Python
gpl-3.0
21,086
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright &copy; 2018 ISIS Rutherford Appleton Laboratory UKRI, # NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin # SPDX - License - Identifier: GPL - 3.0 + class SummableRunFile(object): def __in...
mganeva/mantid
scripts/SANS/sans/gui_logic/models/run_file.py
Python
gpl-3.0
731
import libvirt import sys def fmtstate(x): return { libvirt.VIR_DOMAIN_SHUTOFF: "Shutoff", libvirt.VIR_DOMAIN_SHUTDOWN: "Shutdown", libvirt.VIR_DOMAIN_NOSTATE: "No state", libvirt.VIR_DOMAIN_BLOCKED: "Blocked", libvirt.VIR_DOMAIN_PAUSED: "Paused", libvirt.VIR_DOMAIN_...
ignuki/vweb
mylib.py
Python
gpl-3.0
2,000
# -*- coding: utf-8 -*- import pytest import os.path as op from django.core import mail from django.test import TestCase from django.test.utils import override_settings from core.email.email import Email @override_settings( TEMPLATES=[ { "BACKEND": "django.template.backends.django.DjangoTem...
erudit/eruditorg
tests/unit/core/email/test_email.py
Python
gpl-3.0
4,054
import socket import sched import time connected_players = {} def process_packet(sock, data, address): print "Received a packet from", address, "containing", data if data == "SYN": connected_players[address] = "SYN-ACK sent" sock.sendto("SYN-ACK", address) elif data == "ACK": conn...
atsheehan/pypogs
pypogs/tmp-server.py
Python
gpl-3.0
713
# -*- coding: utf-8 -*- # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import re from past.builtins import cmp import functools import frappe, erpnext from erpnext.accounts.report.utils import get...
shubhamgupta123/erpnext
erpnext/accounts/report/financial_statements.py
Python
gpl-3.0
15,121
# /usr/bin/env python import numpy import csv from math import * from euclid import * from omega import * from cyclops import * csv_filename = "terraindata/cyprus/data.csv" ref_point = {} ref_point['lat'] = 36.0001388889 ref_point['lon'] = 31.9998611111 data_xz_scale = [1, 1] data_height_scale = 1.0 # model scene =...
mivp/tessterrain
examples/cyprus/run_local.py
Python
gpl-3.0
4,984
import os import hashlib import base64 from Crypto.Cipher import AES from Crypto import Random AES_KEY_BITS = 256 AES_KEY_BYTES = (AES_KEY_BITS/8) AES_KEY_FILE_DEFAULT = '/var/palette/.aes' # pylint: disable=invalid-name aes_key_file = AES_KEY_FILE_DEFAULT # pylint: enable=invalid-name # This is the Tableau passwo...
palette-software/palette
controller/controller/passwd.py
Python
gpl-3.0
1,549
import sys,time,threading from Core.Color import LinuxColor, LinuxStatus class PB(): Stop = False def __init__(self,MSG): self.Mess = MSG def Run(self): print self.Mess + "... ", sys.stdout.flush() i = 0 while self.Stop != True: if (i%4) == 0: s...
micle2018/OCCULT
Core/Process.py
Python
gpl-3.0
769
import urllib,urllib2,re,sys,httplib #import xbmcplugin,xbmcgui,xbmcaddon,urlresolver import cookielib,os,string,cookielib,StringIO import os,time,base64,logging from datetime import datetime from utils import * try: import json except ImportError: import simplejson as json #testing in shell #TEST 1 # pyth...
torenado/plugin.video.animestream
resources/lib/streamSites/animeflavor.py
Python
gpl-3.0
8,906
import sys import time import threading class ResettableTimer(threading.Thread): def __init__(self, maxtime, callback): self.maxtime = maxtime self.counter = 0 self.inc = maxtime / 10.0 self.callback = callback threading.Thread.__init__(self) self.setDaemon(True) ...
jimktrains/gus
resettabletimer.py
Python
gpl-3.0
569
# -*- coding: utf-8 -*- import cv import os import cv2 def quick_show(image): """Display an image on the screen. Quick 'n' dirty method to throw up a window with an image in it and wait for the user to dismiss it. """ cv.NamedWindow("foo") cv.ShowImage("foo", image) cv.WaitKey(0) cv.De...
xmnlab/minilab
ia/ocr/xmnlpr/lpr.py
Python
gpl-3.0
2,210
#!/usr/bin/env python """Split a fasta file into chuncks of at least n nucleotides Usage: python fasta_split_n_nucleotides.py input_file n output_stub input_file = fasta file to split (string) n = minimal number of nucleotides in each split files (integer > 0) output_stub = name stub for ouptut files (string, def...
enormandeau/Scripts
fasta_split_n_nucleotides.py
Python
gpl-3.0
2,105
#!/usr/bin/env python # SuperTester v1.4 by Albert Huang # ================================= # Before using this really fun (and colorful) debugging tool, you MUST put # this line at the very beginning of main(): # # setvbuf(stdout, NULL, _IONBF, 0); # # This forces your C program to NOT buffer output (stdout)! # Fin...
alberthdev/SuperTester
SuperTesterOrig.py
Python
gpl-3.0
6,774
#!/usr/bin/env python # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # # Copyright (C) 2015 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as pub...
gnagel/backtrader
docs/pfeed.py
Python
gpl-3.0
5,235
#!/usr/bin/env python # -*- coding: utf-8 -*- # Part of the PsychoPy library # Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2020 Open Science Tools Ltd. # Distributed under the terms of the GNU General Public License (GPL). import wx import wx.html2 from psychopy.localization import _translate from psychopy.proj...
psychopy/versions
psychopy/app/pavlovia_ui/_base.py
Python
gpl-3.0
8,295
#!venv/bin/python from webserver import app if __name__ == '__main__': app.run(host=app.config['HOST'],port=app.config['PORT'],debug=app.config['DEBUG'])
samarth/baalti-server
run.py
Python
gpl-3.0
160
""" Keep track of (optionally weighted) descriptive statistics of incoming data, handling nans. Copyright 2013 Deepak Subburam 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 th...
Fenugreek/tamarind
stats.py
Python
gpl-3.0
49,648
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-03-15 09:50 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('location', '0002_auto_20170312_1343'), ] operations = [ migrations.AlterModelOption...
vest-thermostat/server
vest/location/migrations/0003_auto_20170315_0950.py
Python
gpl-3.0
450
# @String(visibility="MESSAGE",value="<html><div WIDTH=600>This script tags particles according to skeleton features: It detects maxima on a masked image and clusters detected maxima using features of the mask-derived skeleton. A maxima is considered to be associated to a skeleton feature (junction, tip, etc.) if the d...
tferr/hIPNAT
src/main/resources/scripts/Analyze/Skeleton/Classify_Particles_Using_Skeleton.py
Python
gpl-3.0
9,651