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 - # Copyright (c) 2011-2012 Media Modifications, Ltd. # Dual licensed under the MIT or GPL Version 2 licenses. from gi.repository import Gtk as gtk from gi.repository import Gdk as gdk from gi.repository import GObject as gobject from lib import graphics from ui.containers import Widget, Container,...
projecthamster/experiments
ui/buttons.py
Python
mit
14,962
# coding: utf-8 # ## logaritmic (base 2) binning in log-log (base 10) plots of integer histograms # In[67]: import numpy import matplotlib.pyplot get_ipython().magic(u'matplotlib inline') # In[114]: DA BUTTARE def logBinnedStepPlot(histogramResults): if 0 in integerData: return "error: log2(0) ...
FedericoMuciaccia/SistemiComplessi
src/log binning.py
Python
mit
2,169
#coding=utf-8 from flask import render_template, redirect, request, url_for, flash from flask.ext.login import login_user, logout_user, login_required, \ current_user from . import auth from .. import db from ..models import User from ..email import send_email from .forms import LoginForm, RegistrationForm, ChangeP...
384782946/MyBlog
app/auth/views.py
Python
mit
6,062
# -- coding: utf-8 - from django.db import models from django.template.defaultfilters import slugify from django.contrib.auth.models import User class Cliente(models.Model): name = models.CharField(max_length=128, unique=True) #views = models.IntegerField(default=0) #likes = models.IntegerField(default=0) ...
ignaciorecuerda/gestionpedidos_django
gestionpedidos/models.py
Python
cc0-1.0
1,338
from setuptools import setup, find_packages setup(name='BIOMD0000000386', version=20140916, description='BIOMD0000000386 from BioModels', url='http://www.ebi.ac.uk/biomodels-main/BIOMD0000000386', maintainer='Stanley Gu', maintainer_url='stanleygu@gmail.com', packages=find_packages(...
biomodels/BIOMD0000000386
setup.py
Python
cc0-1.0
377
# Round-trippable YAML # -------------------- # This module configures the YAML library so that it round-trips # files: # a) without disturbing field order # b) so that it uses some saner output options than the defaults # c) preserving any comment block at the very beginning of the file # # Usage: # # import ...
mofuobi/asorock-legislators
scripts/rtyaml.py
Python
cc0-1.0
6,416
#!/usr/bin/python # -*- coding: utf-8 -*- """ This module allow you to use the API in a simple and easy way. -- Example -- params = { 'action' :'query', 'prop' :'revisions', 'titles' :'Test', 'rvlimit' :'2', 'rvprop' :'user|timestamp|content', } ...
races1986/SafeLanguage
CEM/query.py
Python
epl-1.0
10,276
# Copyright (C) 2008-2009 Open Society Institute # Thomas Moroz: tmoroz@sorosny.org # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License Version 2 as published # by the Free Software Foundation. You may not use, modify or distribu...
boothead/karl
karl/utilities/tests/test_mime.py
Python
gpl-2.0
2,589
# # Copyright (c) 2012--2015 Red Hat, Inc. # # This software is licensed to you under the GNU General Public License, # version 2 (GPLv2). There is NO WARRANTY for this software, express or # implied, including the implied warranties of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. You should have received a c...
mcalmer/spacewalk
backend/server/action_extra_data/scap.py
Python
gpl-2.0
6,509
__author__ = 'Bo'
IllutionSoft/MyCalendarAPI
scrapers/__init__.py
Python
gpl-2.0
18
__author__ = 'Przemek' import numpy as np import matplotlib.pyplot as plt class Ploter: def __init__(self): pass def plot_temperature(self, temperature, cooling_method, initial_temperature, numb_of_cycles): plt.plot(temperature, 'b.-') plt.xlabel('Number of cycles') plt.ylabe...
adgon92/optimalization-project
src/plot/ploter.py
Python
gpl-2.0
1,397
import glob import multiprocessing import os import shutil import tempfile import unittest from unittest.mock import patch from scripts_EM import gautomatch_batch as m class test_args_check(unittest.TestCase): def setUp(self): self.tempdir = tempfile.mkdtemp() def tearDown(self): ...
AGMMGA/EM_scripts
EM_scripts/tests/gautomatch_batch_test.py
Python
gpl-2.0
5,189
#!/usr/bin/env python # ! -*- coding:utf-8 -*- import unittest from pagseguro_python_client.models import Item from pagseguro_python_client.validators import StatusValidator class ItemValidatorTest(unittest.TestCase): def test_item_validator_existence(self): try: from pagseguro_python_client...
geraldoandradee/pagseguro_python_client
tests/test_validators.py
Python
gpl-2.0
3,081
from bson import json_util from flask import Response, g from flask_restful import Resource, reqparse, abort from webapp.api.models.jobs import get_job, get_jobs, create_job, delete_job, update_job from webapp.api.utils.decorators import handle_errors, login_required def job_belongs_to_user(job_id): """ Check...
trhlikpa/thug-framework
webapp/api/controllers/jobs.py
Python
gpl-2.0
8,259
# -*- coding: iso-8859-1 -*- # Copyright (C) 2007, 2008 by Francesco Biscani # bluescarni@gmail.com # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at yo...
7ofNine/piranha
pyranha/Celmec/detail.py
Python
gpl-2.0
996
from django.db import models class BookInfo(models.Model): btitle=models.CharField(max_length=20) bpub_date=models.DateTimeField() def __str__(self): return self.btitle.encode('utf-8') class HeroInfo(models.Model): hname=models.CharField(max_length=10) hgender=models.BooleanField() hco...
jameswatt2008/jameswatt2008.github.io
python/django/截图和代码/入门/test1/booktest/models.py
Python
gpl-2.0
464
#!/usr/bin/env python import urllib import graphitestat interval = 15 class apache_stat(graphitestat.graphitestat): def get_stat(self): result = {} f = urllib.urlopen('http://127.0.0.1/server-status?auto') for line in f.readlines(): # {'Uptime': ' 2818294', # 'IdleWorkers': ' 16', # 'Total Accesse...
atanyukevich/graphite-agent
collectors/apache_stat.py
Python
gpl-2.0
753
from setuptools import setup, find_packages setup( name='pydbd', version='0.0', description='experimental openxt python dbd replacement', url='', author='Chris Patterson', author_email='pattersonc@ainfosec.com', license='GPLv2', packages=find_packages(), package_data={ }, script...
cjp256/pydbd
setup.py
Python
gpl-2.0
435
# UnbelievableDirtyPythonTimingSolution # Dieses Script wird stündlich per Cronjob aufgerufen, # läd die Konfigurationsdatei und prüft, ob für die aktuelle Stunde eine # Abgabe vorgesehen ist. Ist dies der Fall ruft es das Controll-Skript auf, # wartet die Statusmeldung dieser ab und meldet diese an den Server. import ...
thahnen/JugendHackt-2014-PillenBox
src/udpts.py
Python
gpl-2.0
857
from ml.training_set_util import build_training_set, save_training_set save_training_set(build_training_set(path='email_dataset'))
ajaybhat/email-categorization
setup_training_set.py
Python
gpl-2.0
132
# TBD Finish Python port ******************************************************************************/ package edu.princeton.cs.algs4 # # The <tt>NFA</tt> class provides a data type for creating a # <em>nondeterministic finite state automaton</em> (NFA) from a regular # expression and testing whether a given str...
dvklopfenstein/PrincetonAlgorithms
py/AlgsSedgewickWayne/NFA.py
Python
gpl-2.0
4,085
read('inTrees.phy') stm = STMcmc(var.trees, sampleInterval=10, defaultBeta=2.0) stm.run(500) tp = TreePartitions("mcmc_trees_0.nex", skip=25) t = tp.consensus(minimumProportion=0.5) for n in t.iterInternalsNoRoot(): n.name = "%.0f" % (100. * n.br.support) t.draw()
Anaphory/p4-phylogeny
share/Examples/O_SuperTreeMcmc/A_simple/sSTMcmc.py
Python
gpl-2.0
271
from qgis.core import * from geoserveralgorithm import GeoServerAlgorithm from processing.core.parameters import * class DeleteDatastore(GeoServerAlgorithm): DATASTORE = 'DATASTORE' WORKSPACE = 'WORKSPACE' def processAlgorithm(self, progress): self.createCatalog() datastoreName = self.g...
jodygarnett/qgis-geoserver-plugin
src/geoserverexplorer/processingprovider/deletedatastore.py
Python
gpl-2.0
826
#/usr/bin/env python2.6 ''' @name Sober scanner @author Leandro Mendes<theflockers@gmail.com> @copyright Sober @brief This helper module is a Postfix content-filter for Sober Sober. written by wish4 web. The copy and distribution of this software is protected by law. ''' import ...
theflockers/sober-filter
programs/scanner/__init__.py
Python
gpl-2.0
3,598
#!/usr/bin/env python3 def run(c, server, nickname='PyRC', port=6667, password=None): if server in c['MainWindow'].servers: return None c['MainWindow'].global_action('add_server', server) c['MainWindow'].ui_plugins['ServerList'].servers[server]['connection'] = c['Connection'](server, port, nicknam...
Sjc1000/PyRC
Commands/server.py
Python
gpl-2.0
911
# -*- coding: utf-8 -*- # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope th...
Farthen/OTFBot
twisted/plugins/genconfig_plugin.py
Python
gpl-2.0
4,403
import sys import os import signal import subprocess import time import twill import urllib2 import os.path import re CONFIG_FILE = os.path.expanduser('~/.config/lasso_integration.conf') CONFIG = dict() if os.path.exists(CONFIG_FILE): lines = open(CONFIG_FILE).read().splitlines() i = 1 for line in lines: ...
adieu/lasso
tests/integration/saml2/__init__.py
Python
gpl-2.0
3,566
#!/usr/bin/env python import os import tempfile from shutil import copyfile, rmtree def create_ngs_projects_dir(name, tsv_config_file): ngs_projects_dir = os.path.join(tempfile.gettempdir(), name) if os.path.isdir(ngs_projects_dir): rmtree(ngs_projects_dir) ngs_projects_config_dir = os.path.join...
olgamelnichuk/NGSPyEasy
tests/testutils.py
Python
gpl-2.0
605
import os import sys import pyfits import config as c from os.path import exists from numpy import log10 from readlog import ReadLog from runsexfunc import * from flagfunc import * class ConfigIter: """The class making configuration file for GALFIT. The configuration file consists of bulge and disk compone...
vvinuv/pymorph
pymorph/configiter.py
Python
gpl-2.0
22,037
from flask import Flask, jsonify, request from banco import app import matricula, modelo, dados @app.route('/echo', methods = ['GET', 'POST', 'PATCH', 'PUT', 'DELETE', 'OPTIONS']) def api_echo(): return "ECHO: " + request.method @app.errorhandler(404) def not_found(error=None): message = { 'status...
AllanDenis/grade-ideal
api_flask.py
Python
gpl-2.0
3,187
#!/usr/bin python # -*- coding: utf-8 -*- import datetime import gc import pyqtgraph as pg from pyqtgraph.Qt import QtCore, QtGui from pyqtgraph import functions as fn from pyqtgraph import BusyCursor from lib.flowchart.nodes.generalNode import NodeWithCtrlWidget, NodeCtrlWidget from lib.common.DateAxisItem import Dat...
cdd1969/pygwa
lib/flowchart/nodes/n06_plottimeseries/node_plottimeseries.py
Python
gpl-2.0
14,740
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('programs', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='instructor', name='...
amcdawes/ALPhA_db
programs/migrations/0002_auto_20151009_2159.py
Python
gpl-2.0
737
#! /usr/bin/python import os import sys import string cnt = 10 idstr = "asdf" cmdstrings = "sar -n DEV 1 10 > /tmp/sarnDEV-", \ "iostat 1 10 > /tmp/iostat-", \ "sar -B 1 10 > /tmp/sarB-", \ "sar -P ALL 1 10 > /tmp/sarPALL-", \ "vmstat 1 10 > /tmp/vmstat-" css = "sar -n DEV", "iostat", "sar -B", "sar -...
jencce/stuff
py/strsubsti.py
Python
gpl-2.0
563
from netCDF4 import Dataset # http://code.google.com/p/netcdf4-python/ import numpy as np import datetime as dt # Python standard library datetime module import matplotlib.pyplot as plt from mpl_toolkits.basemap import Basemap, addcyclic, shiftgrid def ncdump(nc_fid, verb=True): ''' ncdump outputs dimension...
braghiere/JULESv4.6_clump
examples/tonzi_4.6/output/plotnee.py
Python
gpl-2.0
16,824
import time import git git_dir = "/root/raspnator" while(True): time.sleep(5) g = git.cmd.Git(git_dir) g.pull() print("Pull done")
raspdronepi/raspnator
deploy/autoPull.py
Python
gpl-2.0
149
# -*- coding: utf-8 -*- from ragendja.settings_pre import * # Increase this when you update your media on the production site, so users # don't have to refresh their cache. By setting this your MEDIA_URL # automatically becomes /media/MEDIA_VERSION/ MEDIA_VERSION = 44 # Make this unique, and don't share it with anybo...
adamfisk/littleshoot-client
server/appengine/settings.py
Python
gpl-2.0
6,856
# Copyright (c) 2016, Intel Corporation. # # This program is free software; you can redistribute it and/or modify it # under the terms and conditions of the GNU General Public License, # version 2, as published by the Free Software Foundation. # # This program is distributed in the hope it will be useful, but WITHOUT #...
schleichdi2/OPENNFR-6.1-CORE
opennfr-openembedded-core/meta/lib/oeqa/buildperf/base.py
Python
gpl-2.0
21,195
#!/usr/bin/python # -*- coding: utf-8 -*- """ This module implements community detection. """ __all__ = ["partition_at_level", "modularity", "best_partition", "generate_dendogram", "induced_graph"] __author__ = """Thomas Aynaud (thomas.aynaud@lip6.fr)""" # Copyright (C) 2009 by # Thomas Aynaud <thomas.ayn...
sergelhomme/Network_Analysis
Network_Analysis_2_1/network_analysis/tools/community.py
Python
gpl-2.0
18,128
##################################################################### # -*- coding: iso-8859-1 -*- # # # # Frets on Fire # # Copyright (C) 2006 Sami Kyöstilä ...
fculpo/fofix
fofix/core/Settings.py
Python
gpl-2.0
98,567
from django.contrib.auth.models import User from models import SocialGraph def social_graph_validator(sndr, rcvr, subj): ##print """Validate a social graph exists where the #subject is %s and the receiver is %s""" % (sndr, rcvr) try: sender=User.objects.get(username=sndr) receiver=User.obje...
aviars/flangio
apps/socialgraph/utils.py
Python
gpl-2.0
2,362
import pycurl from io import BytesIO from threading import Thread, Lock import itertools from queue import Queue from .exception import FuzzExceptBadOptions, FuzzExceptNetError class HttpPool: HTTPAUTH_BASIC, HTTPAUTH_NTLM, HTTPAUTH_DIGEST = ('basic', 'ntlm', 'digest') newid = itertools.count(0) def __i...
0ps/wfuzz
src/wfuzz/myhttp.py
Python
gpl-2.0
7,932
""" urlresolver XBMC Addon Copyright (C) 2011 t0mm0 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. ...
igor-rangel7l/igorrangelteste.repository
script.module.urlresolver/lib/urlresolver/plugins/auengine.py
Python
gpl-2.0
2,052
# -*- coding:utf-8 -*- import mock from colab.plugins.utils import filters_importer from django.test import TestCase, Client from django.core.management import call_command from colab.search.forms import ColabSearchForm class SearchViewTest(TestCase): fixtures = ['test_data.json'] def setUp(self): ...
colab/colab
colab/search/tests/test_search_view.py
Python
gpl-2.0
3,843
# -*- Mode: Python -*- # vi:si:et:sw=4:sts=4:ts=4 # # Flumotion - a streaming media server # Copyright (C) 2004,2005,2006,2007 Fluendo, S.L. (www.fluendo.com). # All rights reserved. # This file may be distributed and/or modified under the terms of # the GNU General Public License version 2 as published by # the Free ...
flyapen/UgFlu
flumotion/component/producers/webcam/webcam.py
Python
gpl-2.0
3,075
from django.conf.urls import patterns, url from django.views.generic.base import TemplateView from monMonde import views urlpatterns = patterns('', url(r'^$', views.IndexView.as_view(), name='Index'), url(r'^media$', views.MediaView.as_view(), name='Media'), url(r'^programming$', views.ProgrammingView.as_view(), na...
Girardvjonathan/johnsWorld
monMonde/urls.py
Python
gpl-2.0
459
from flask import Flask from flask import render_template app = Flask(__name__) d = { 'a' : 'b', 'c' : 'd'} a = [ 'e', 'f', 'g', 'h'] @app.route('/') def hello_world(): return render_template('show_data.html', geocode=a)
ARL-UTEP-OC/emubox
archive/test.py
Python
gpl-2.0
224
## SQLalcls.py ## SQLalchemy classes only ## ############################################################################ ## Copyleft 2015, Ernest Yeung <ernestyalumni@gmail.com> ## ## 20150823 ## ...
ernestyalumni/Physical
Physical/SQLalcls.py
Python
gpl-2.0
3,702
from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver import sys, time ''' This file contains the model for disks. ''' class Disk: def __init__(self, name, size, location, snapshot, myDriver, image, instanceNames, log, disk_type = 'pd-standard', init_source="", shutdown_des...
collinmelton/DynamicDiskCloudSoftware
Master/Disks.py
Python
gpl-2.0
7,815
from PyQt5.QtWidgets import QDoubleSpinBox from PyQt5.QtGui import QValidator import re height_re = re.compile(r''' (\d+)' \s*(\d+(?:\.\d*)?)" | # 6' 6.3" (\d+(?:\.\d*)?)'\s* | # 6' (\d+(?:\.\d*)?)" | # 3.6" (\d+(?:\.\d*)?)?\s* # 3.9 or bla...
jgardner1/JGRPGTools
jgrpg/InchesSpinBox.py
Python
gpl-2.0
1,308
#!/usr/bin/env python import sys import time import binascii import socket import struct import random import math G_maxV =32 G_noise=64 def AWGN_generator(NOISE_POWER=64): # Generates additive white Gaussian Noise samples with zero mean and a standard deviation of 1. p=1 while ...
claudebideau/illustrabot2oo
test/test_ue.py
Python
gpl-2.0
4,040
import irc class htmlconvert: def on_pubmsg(self, nick, connection, event): message = event.arguments[0] source = event.source.split('!')[0] if message.startswith(".convert"): try: color = message.split(' ')[1] if color.startswith("#"): ...
TheCrittaC/BigBen
modules/pubmsg/htmlconvert.py
Python
gpl-2.0
1,478
# Copyright (C) 2006-2008, 2011 Uninett AS # # This file is part of Network Administration Visualized (NAV). # # NAV 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 i...
UNINETT/nav
python/nav/daemon.py
Python
gpl-2.0
12,986
""" This module contains tests for the lib submodule of the Remotes plugin. """ import os from unittest import TestCase from tempfile import mkstemp from mock import MagicMock import urllib.request, urllib.error, urllib.parse import cherrypy from bs4 import BeautifulSoup from openlp.core.lib import Settings from ope...
marmyshev/bug_1117098
tests/interfaces/openlp_plugins/remotes/test_server.py
Python
gpl-2.0
4,286
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013, # 2014, 2015 CERN. # # Invenio 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 Founda...
jirikuncar/invenio-ext
invenio_ext/logging/wrappers.py
Python
gpl-2.0
12,120
# $Id$ # (C) Timothy Corbett-Clark, 2004 """Common library routines.""" import mx.DateTime import smtplib import socket import urllib import xml.sax.saxutils import midge.config as config import midge.logger as logger def join_url(path, dictionary=None): if dictionary: attr = "&".join(["%s=%s" % (key, ...
p/midge
midge/lib.py
Python
gpl-2.0
2,246
# -*- coding: utf-8 -*- # vim: set et sts=4 sw=4 encoding=utf-8: # # This file is part of Warzone 2100. # Copyright (C) 2011 Warzone 2100 Project # # Warzone 2100 is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundatio...
pcdummy/wzlobbyserver-ng
wzlobby/game.py
Python
gpl-2.0
3,718
import base64 import re,time import urllib import urlparse from BeautifulSoup import BeautifulSoup from ..import proxy from ..common import replaceHTMLCodes, clean_title from ..scraper import Scraper import xbmcaddon import xbmc class Watchfree(Scraper): domains = ['watchfree.to'] name = "watchfree" def ...
repotvsupertuga/tvsupertuga.repository
script.module.streamtvsupertuga/lib/resources/lib/sources/it/watchfree.py
Python
gpl-2.0
7,954
import datetime as dt import threading import time import wx import coordinator.engineAccessors as engine from emitLogging import elog from gui.views.WofSitesView import WofSitesView from sprint import * class WofSitesCtrl(WofSitesView): def __init__(self, parent, siteObject, api): self.wof_api = api ...
Castronova/EMIT
gui/controller/WofSitesCtrl.py
Python
gpl-2.0
18,226
import unittest import parse_ljsl TEST_CORPUS = '''There is some text followed by information about @registers:TEST#(120:5:3) as well as a separate mixed entry about: @registers:OTHERTEST#(1:3),TEST#(1:5:3),OTHERTEST#(1:3),lowertest#(1:3),l#(1:3)p ''' TEST_CORPUS_MANY_WITH_INVALID = '''There is some text followed ...
Samnsparky/ljsimpleregisterlookup
parse_ljsl_test.py
Python
gpl-2.0
15,421
__author__ = "Dani" from wikidata_exp.wdexp.wikidata.commands.class_ranking_DUMP import KEY_ID, KEY_ACCUMULATED, KEY_INSTANCES from wikidata_exp.wdexp.communications.input.wikidata.api_reader import WikidataApiReader from wikidata_exp.wdexp.communications.input.json.json_in import read_json_object from wikidata_exp.wd...
DaniFdezAlvarez/wikidataExplorer
wikidata_exp/wdexp/wikidata/commands/agregated_class_summarizer_API.py
Python
gpl-2.0
3,679
#!/usr/bin/env python #ver 0.1 #non-classes #simple variables and funtions. import sys import subprocess yo = "sudo" caller = subprocess.call def update(): return subprocess.call([yo, aptget, "update"]) def upgrade(): return subprocess.call([yo, aptget, y, "upgrade"]) def autoremove(): return subprocess.call([yo,...
luistroche/elementaryos
elementary-after-install-python-script.py
Python
gpl-2.0
2,347
# # Code Coverage # Copyright (C) 2006 Pedram Amini <pedram.amini@gmail.com> # # $Id: code_coverage.py 193 2007-04-05 13:30:01Z cameron $ # # 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 v...
axcheron/pydbg
utils/code_coverage.py
Python
gpl-2.0
14,965
#!/usr/bin/env python import json, io, sys, getopt, math, subprocess, os.path, requests, re def usage(fh): sys.stderr.write('usage: convert_model_to_pdf_submit.py -i <input_json_model_file> -j <output_projection_matrix_file> -o <output_matrix_file> -p <output_pdf_file> -e <email_address> -d <id>\n') if int(fh...
alexpreynolds/cubemaker
services/convert_model_to_pdf_submit.py
Python
gpl-2.0
6,629
# -*- coding: utf-8 -*- ##--------------------------------------####### # Texte # ##--------------------------------------####### # WxGeometrie # Dynamic geometry, graph plotter, and more for french mathematic teachers. # Copyright (C) 2005-2013 Nicolas Pourcelot # # ...
wxgeo/geophar
wxgeometrie/geolib/textes.py
Python
gpl-2.0
22,188
# Generated by Django 2.2.13 on 2020-08-10 19:47 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('users', '0034_remove_userdarkmodeproperties__dark_mode_unlocked'), ] operations = [ migrations.RemoveField( model_name='userproperties'...
tjcsl/ion
intranet/apps/users/migrations/0035_auto_20200810_1547.py
Python
gpl-2.0
617
''' Arachnid Snippets - Example code you can download and edit to customize for simple tasks .. currentmodule:: arachnid.snippets .. autosummary:: :nosignatures: :template: api_module.rst pyspider metadata image reconstruction :mod:`arachnid.snippets.pyspider` =======================...
ezralanglois/arachnid
arachnid/snippets/__init__.py
Python
gpl-2.0
748
# Copyright (C) 2012-2016 Codethink Limited # # 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 2 of the License. # # This program is distributed in the hope that it will be useful, # but...
perryl/morph
morphlib/plugins/show_dependencies_plugin.py
Python
gpl-2.0
2,214
# This file is part of MyPaint. # Copyright (C) 2011-2018 by the MyPaint Development Team. # Copyright (C) 2007-2012 by Martin Renold <martinxyz@gmx.ch> # # 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 Fou...
mypaint/mypaint
lib/layer/core.py
Python
gpl-2.0
35,007
""" Add functions corresponding to each of the actions in the json file. The function should be named as follows <feature name>_<action_name> """ from gdeploylib import defaults, Helpers, Global import os, re helpers = Helpers() def openshift_ctl_create(section_dict): global helpers filepaths = helpers.listif...
lioupayphone/gdeploy
gdeployfeatures/openshift_ctl/openshift_ctl.py
Python
gpl-2.0
3,784
import logging import urllib import urllib2 import re import xml.etree.ElementTree as ET import cgi ################################################################################ # Notes: # https://appengine.google.com/ # https://code.google.com/apis/console/ # https://developers.google.com/places/documentation/sear...
mathieugouin/txtWeb
mgouinlib.py
Python
gpl-2.0
9,786
# -*- coding: utf-8 -*- import unittest from mock import patch, MagicMock from six import assertRaisesRegex from txclib.wizard import Wizard @patch('txclib.wizard.Api') class WizardCase(unittest.TestCase): def setUp(self, *args, **kwargs): with patch('txclib.wizard.Project') as project_mock: ...
transifex/transifex-client
tests/test_wizard.py
Python
gpl-2.0
5,661
import pygame audio_path = '/home/pi/Desktop/audio/ambient.mp3' var = True while var ==True: pygame.mixer.init() pygame.mixer.music.load(audio_path) pygame.mixer.music.set_volume(1.0) pygame.mixer.music.play(5)
CharlesJGantt/Foginator2000
ambient.py
Python
gpl-2.0
230
from scipy.stats import gausshyper import matplotlib.pyplot as plt fig, ax = plt.subplots(1, 1) # Calculate a few first moments: a, b, c, z = 13.8, 3.12, 2.51, 5.18 mean, var, skew, kurt = gausshyper.stats(a, b, c, z, moments='mvsk') # Display the probability density function (``pdf``): x = np.linspace(gausshyper.p...
platinhom/ManualHom
Coding/Python/scipy-html-0.16.1/generated/scipy-stats-gausshyper-1.py
Python
gpl-2.0
1,210
# # The Qubes OS Project, https://www.qubes-os.org/ # # Copyright (C) 2014-2015 Joanna Rutkowska <joanna@invisiblethingslab.com> # Copyright (C) 2014-2015 Wojtek Porczyk <woju@invisiblethingslab.com> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Publi...
kalkin/qubes-core-admin
qubes/tests/events.py
Python
gpl-2.0
5,971
# # # Copyright 2009-2014 Ghent University # # This file is part of EasyBuild, # originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), # with support of Ghent University (http://ugent.be/hpc), # the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en), # the Hercules foundation (ht...
geimer/easybuild-framework
easybuild/tools/modules.py
Python
gpl-2.0
43,559
#!/usr/bin/env python ## ---------------------------------------- ## scikit-ribo ## ---------------------------------------- ## rna-fold output processing ## ---------------------------------------- ## author: Han Fang ## contact: hanfang.cshl@gmail.com ## website: hanfang.github.io ## date: 12/28/2016 ## ------------...
hanfang/scikit-ribo
scikit_ribo/process_rnafold.py
Python
gpl-2.0
7,436
#!/usr/bin/python # -*- coding: utf-8 -*- import os import ConfigParser import time from lib.utils import do_ssh,do_ssh_back def qperf_tcp_lat_route1_test(): print "" print " === qperf_tcp_lat_route1_test ===" print "" print " --------------------------------------------------------------------- " ...
nak3/mptcp-testsuite
mptcp-tests/tests/qperf.py
Python
gpl-2.0
2,477
#! /usr/bin/exec python3 # _*_ coding: utf-8 _*_ # test layer.py # The methods to test are: """ def __init__(self, name: str) -> None: def get_status(self) -> constants.ErrorLevels: def __sub__(self, other: 'Layer') -> 'Layer': def __eq__(self, other: 'Layer') -> bool: def discover(cls) -> typing....
jeffsilverm/nbmdt
test/test_layer.py
Python
gpl-2.0
2,700
# # gPrime - A web-based genealogy program # # Copyright (C) 2002-2006 Donald N. Allingham # Copyright (C) 2011 Tim G L Lyons # # 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 vers...
sam-m888/gprime
gprime/filters/rules/_hascitationbase.py
Python
gpl-2.0
2,772
# xorn.geda.netlist - gEDA Netlist Extraction and Generation # Copyright (C) 1998-2010 Ales Hvezda # Copyright (C) 1998-2010 gEDA Contributors (see ChangeLog for details) # Copyright (C) 2013-2017 Roland Lutz # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Genera...
bert/geda-gaf
xorn/src/python/geda/netlist/package.py
Python
gpl-2.0
12,664
from django.db import models import datetime from django.utils import timezone from django.conf import settings class User(models.Model): """ Modelo que representa al usuario de la aplicación """ nick = models.CharField(max_length = 255) email = models.CharField(max_length = 511) password = models.CharField(max...
jmjurado23/patit-django
patit_server_app/patit/models.py
Python
gpl-2.0
4,045
# -*- coding: utf-8 -*- """ Catch-up TV & More Copyright (C) 2018 SylvainCecchetto This file is part of Catch-up TV & More. Catch-up TV & More 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 Foundat...
SylvainCecchetto/plugin.video.catchuptvandmore
plugin.video.catchuptvandmore/resources/lib/channels/fr/via.py
Python
gpl-2.0
6,908
from __future__ import division from cochlea_model import * from periphery import * from utils import * def chunks(L, n): return [L[i::n] for i in range(n)] def pure2cochlea_explore_thread(pure_tone,data,nthreads=1,func=None): from threading import Thread f0_list = pure_tone['f0'] ...
pabloriera/pycochlea
pycochlea/distributed_exploration.py
Python
gpl-2.0
6,462
# -*- coding: utf-8 -*- # Copyright (C) 2006-2008 Osmo Salomaa # # 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. # # Thi...
otsaloma/gedit-plugins
sort.py
Python
gpl-2.0
2,911
# # Copyright (c) 2013 Citrix Systems, Inc. # # 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 dist...
OpenXT/sync-cli
sync_cli/show_licensing.py
Python
gpl-2.0
1,447
''' Mesh ==== ''' import copy class Nodes(object): ''' Manages nodes for finite element modeling pre/postprocessing and further graphical representations. :param labels: list of node labels. :type labels: list of int > 0 :param x: x coordinate of nodes. :type x: list floats :param y: y coordinate...
lcharleux/abapy
abapy/mesh.py
Python
gpl-2.0
95,476
#!/usr/bin/env python3 from collections import defaultdict from pathlib import Path import re import sys import matplotlib.cm import matplotlib.colors import numpy as np from PIL import Image, ImageFont, ImageDraw from ck2parser import rootpath, csv_rows, SimpleParser from localpaths import eu4dir from print_time impo...
zijistark/ck2utils
esc/eu4tradecenter_map.py
Python
gpl-2.0
6,227
__author__ = 'julenka' import re import os from zipfile import ZipInfo,ZipFile base='p6_channel' next = "90052" z = ZipFile(open('channel.zip')) comments = [x.comment for x in z.infolist()] comments_collected = [] names = {x.filename.replace('.txt',''):i for i,x in enumerate(z.infolist())} for i in range(1818): ...
julenka/programming-puzzles
python-challenge/p6_zippedlist.py
Python
gpl-2.0
699
from os.path import expanduser from kivy.clock import Clock from kivy.lang import Builder from kivy.uix.boxlayout import BoxLayout # Uncomment this if you want to see a demo of localization. # from kivy.config import Config # from os.path import abspath, dirname, join # Config.add_section('xpopup') # Config.set('xpopu...
jamalmoir/ml_demo
libs/garden/xpopup/demo_app.py
Python
gpl-3.0
7,115
import os import sys from shutil import copy2 from subprocess import call def usage(): print("") print("-------------------------------------------------------------------------------") print("") print("To use this installer, parameters are required") print("1st parameter is ltsp or anything else. ...
gbaman/Pi_Connector
setup.py
Python
gpl-3.0
5,322
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: # Copyright 2016-2018 Jan Verbeek (blyxxyz) <ring@openmailbox.org> # # 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 ...
V155/qutebrowser
qutebrowser/keyinput/macros.py
Python
gpl-3.0
4,333
import unittest from django.test import LiveServerTestCase from selenium import webdriver from selenium.webdriver.common.keys import Keys class BasicAppTest(LiveServerTestCase): """Test the basic app is working""" def setUp(self): self.browser = webdriver.Chrome() self.browser.implicity_wait...
smith2255/notes
functional_tests/functional_tests.py
Python
gpl-3.0
1,115
# Angr doesn't currently support reading multiple things with scanf (Ex: # scanf("%u %u).) You will have to tell the simulation engine to begin the # program after scanf is called and manually inject the symbols into registers. import angr import claripy import sys def main(argv): path_to_binary = argv[1] projec...
jakespringer/angr_ctf
solutions/03_angr_symbolic_registers/solve03.py
Python
gpl-3.0
3,557
#!/usr/bin/env python # This file is part of nexdatas - Tango Server for NeXus data writer # # Copyright (C) 2014-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/selector
nxsselector/EdDataDlg.py
Python
gpl-3.0
4,082
import numpy as np import constants as paras def trial(x,a): return a[0] + a[1] * x def linear_fit_domain_nor(x, w, L=2): """ linear fit with spacial domains without r input: L : number of domains """ am = paras.am # define domain functions d = 16.0 #xdom ...
binghongcha08/pyQMD
QTM_F/1D/domain/fit.py
Python
gpl-3.0
2,317
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2016, Cristian García <cristian99garcia@gmail.com> # # This library is free software you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation either # version 3 of th...
cristian99garcia/gmail-activity
canvas.py
Python
gpl-3.0
7,082
#Name:Misfortune Cookie vulnerability scanner #File:misfortune_cookie.py #Author:Ján Trenčanský #License: GNU GPL v3 #Created: 4.2.2014 #Last modified: 19.8.2015 #Shodan Dork: #Description: PoC based on 31C3 presentation import core.Scanner from interface.messages import print_failed, print_success, print_red, print_g...
bmaia/rext
modules/scanners/allegrosoft/misfortune_cookie.py
Python
gpl-3.0
2,391
# -*- coding: iso-8859-1 -*- # # Copyright (c) 2002, 2003, 2005, 2006 Allan Saddi <allan@saddi.com> # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://trac.edgewall.org/wiki/TracLi...
cyphactor/lifecyclemanager
testenv/trac-0.10.4/trac/web/_fcgi.py
Python
gpl-3.0
43,340
#!/usr/bin/python # Copyright (C) 2012 Mehmet Atakan Gürkan # # 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, # but...
atakan/Complex_Coeff_RKN
RKNB_BCH_expan_coeffs.py
Python
gpl-3.0
12,245
# coding=utf-8 # Author: Nic Wolfe <nic@wolfeden.ca> # URL: http://code.google.com/p/sickbeard/ # # This file is part of SickRage. # # SickRage 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 ...
jackkiej/SickRage
sickbeard/webserve.py
Python
gpl-3.0
240,021