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
import maya.cmds as cmds import pymel.all as pm import traceback controlCurve = pm.PyNode('control_curve') ## to make a numerical 'floating point' ## attribute, we use at='double', keyable=True controlCurve.addAttr( 'allCurl', at='double', keyable=True ) controlCurve.addAttr( 'pointerAllCurl', at='double', keyable...
joetainment/mmmmtools
MmmmToolsMod/script_file_runner_scripts/hand_auto_rigging.py
Python
gpl-3.0
5,762
# -*- coding: utf-8 -*- import xbmc import xbmcgui import xbmcaddon from utilities import xbmcJsonRequest, Debug, notification, chunks, get_bool_setting __setting__ = xbmcaddon.Addon('script.myshows').getSetting __getstring__ = xbmcaddon.Addon('script.myshows').getLocalizedString add_episodes_to_myshows = get_bool...
DiMartinoX/plugin.video.kinopoisk.ru
script.myshows/episode_sync.py
Python
gpl-3.0
16,581
"""Collection of helpers for online deployment."""
arugifa/website
website/deployment/__init__.py
Python
gpl-3.0
51
# coding=utf-8 # Author: Nic Wolfe <nic@wolfeden.ca> # # This file is part of Medusa. # # Medusa 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 late...
FireBladeNooT/Medusa_1_6
medusa/history.py
Python
gpl-3.0
4,645
# This file is part of James CI. # # James CI 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. # # James CI is distributed in the hope t...
alehaa/james
jamesci/status.py
Python
gpl-3.0
1,897
# -*- coding: utf-8 -*- # # Copyright (C) 2011-2012 Charles E. Vejnar # # This is free software, licensed under the GNU General Public License v3. # See /LICENSE for more information. # """ Interface classes with the `Vienna RNA <http://www.tbi.univie.ac.at/RNA>` executable programs. """ import re import subprocess ...
PrashntS/miRmap
mirmap/vienna.py
Python
gpl-3.0
2,499
# -*- coding: utf-8 -*- ## Copyright © 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 License, or ## (at your op...
smurfix/HomEvenT
irrigation/rainman/models/env.py
Python
gpl-3.0
3,941
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # vim:fileencoding=utf-8 """ this takes a newick string as instr and reads the string and makes the nodes and returns the root node http://www.github.com/FePhyFoFum/quartetsampling This file is part of 'quartetsampling'. 'quartetsampling' is free software: you can redis...
FePhyFoFum/quartetsampling
pysrc/phylo/tree_reader.py
Python
gpl-3.0
3,393
# -*- coding: UTF-8 -*- #!/usr/bin/env python from __future__ import unicode_literals # ------------------------------------------------------------------------------ # Name: Proxy checker # Purpose: Just a couple of functions to check various proxy configuration # # Author: Julien Moura (@geojulien)...
Guts/isogeo2sig
StandAlone/modules/proxy_checker.py
Python
gpl-3.0
2,322
#!/usr/bin/env python # Raspberry Pi Rotary Encoder Class # $Id: rotary_class.py,v 1.7 2017/01/07 11:38:47 bob Exp $ # # Copyright 2011 Ben Buxton. Licenced under the GNU GPL Version 3. # Contact: bb@cactii.net # Adapted by : Bob Rathbone and Lubos Ruckl (Czech republic) # Site : http://www.bobrathbone.com # # This c...
bobrathbone/piradio
rotary_class.py
Python
gpl-3.0
6,950
# coding=utf-8 # Author: CristianBB # # URL: https://sickrage.github.io # # 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 of the License, or # (at...
pedro2d10/SickRage-FR
sickbeard/providers/elitetorrent.py
Python
gpl-3.0
6,480
# coding=utf-8 import time import json import boto3 from botocore.errorfactory import ClientError def lambda_handler(event, context): instance_id = event.get('instance_id') region_id = event.get('region_id', 'us-east-2') image_name = 'beam-automation-'+time.strftime("%Y-%m-%d-%H%M%S", time.gmtime()) ...
colinsheppard/beam
aws/src/main/python/updateBeamAMI/lambda_function.py
Python
gpl-3.0
2,524
# This file is a part of MediaCore-Panda, Copyright 2011 Simple Station Inc. # # MediaCore 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 versi...
seanbradley/mediacore_panda
mediacore_panda/__init__.py
Python
gpl-3.0
2,033
# -*- coding: utf-8 -*- # Generated by Django 1.9.1 on 2016-01-08 06:13 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('nmaper', '0008_auto_20160108_0558'), ] operations = [ migrations.AlterField(...
cldrn/rainmap-lite
rainmap-lite/nmaper/migrations/0009_auto_20160108_0613.py
Python
gpl-3.0
538
import os import pyglet class ControlPanelError(Exception): pass class ControlPanelSkinError(Exception): pass class ControlPanel(object): def __init__(self, skin_name): self.skin_name = skin_name self.cached_skins = {} self.switch_skin(self.skin_name) def _cache_skin(self, skin_n...
sunfall/delta_trace
src/control_panel.py
Python
gpl-3.0
1,330
"""Support code for working with Azure Pipelines.""" from __future__ import (absolute_import, division, print_function) __metaclass__ = type import os import re import tempfile import uuid from .. import types as t from ..encoding import ( to_bytes, ) from ..config import ( CommonConfig, TestConfig, ) ...
2ndQuadrant/ansible
test/lib/ansible_test/_internal/ci/azp.py
Python
gpl-3.0
10,254
# -*- coding: utf-8 -*- from time import time from module.network.RequestFactory import getURL from module.plugins.Hook import Hook class AndroidPhoneNotify(Hook): __name__ = "AndroidPhoneNotify" __type__ = "hook" __version__ = "0.04" __config__ = [("apikey" , "str" , "API key" ...
mobo95/pyload
module/plugins/hooks/AndroidPhoneNotify.py
Python
gpl-3.0
2,646
from .pyutils.version import get_version try: # This variable is injected in the __builtins__ by the build # process. It used to enable importing subpackages when # the required packages are not installed __SETUP__ # type: ignore except NameError: __SETUP__ = False VERSION = (2, 0, 2, 'final', ...
public-ink/public-ink
server/appengine-staging/lib/promise/__init__.py
Python
gpl-3.0
994
import Queue import threading import socket import struct import json #TODO - Implement a cleaner shutdown for server socket # see: https://stackoverflow.com/questions/1148062/python-socket-accept-blocks-prevents-app-from-quitting class serversocket: """ A server socket to recieve and process string messages ...
lightnarcissus/PlayfulMesh
OpenWPM/automation/SocketInterface.py
Python
gpl-3.0
5,057
# This file is part of the Printrun suite. # # Printrun 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. # # Printrun is distributed in ...
3DP-Unlimited/3DP-Printrun
printrun/gviz.py
Python
gpl-3.0
21,353
# -*- coding: utf-8 -*- # # Copyright (C) 2007, 2008 Andrew Resch <andrewresch@gmail.com> # Copyright (C) 2011 Pedro Algarvio <pedro@algarvio.me> # # This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with # the additional special exception to link portions of this program with ...
bendykst/deluge
deluge/ui/gtkui/preferences.py
Python
gpl-3.0
58,154
from collections import OrderedDict from django.middleware.locale import LocaleMiddleware from django.utils import translation from django.conf import settings from instance.models import WriteItInstanceConfig def get_language_from_request(request, check_path=False): if check_path: lang_code = translati...
ciudadanointeligente/write-it
nuntium/middleware.py
Python
gpl-3.0
1,275
""" Copyright (c) 2012-2013 RockStor, Inc. <http://rockstor.com> This file is part of RockStor. RockStor 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 la...
sbrichards/rockstor-core
src/rockstor/storageadmin/views/share_iscsi.py
Python
gpl-3.0
4,001
""" Copyright (C) 2016 Hector Sanjuan This file is part of "dccpi". "dccpi" 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...
hsanjuan/dccpi
setup.py
Python
gpl-3.0
2,524
# # setup.py # # Copyright (c) 2017 Junpei Kawamoto # # This file is part of rgmining-tripadvisor-dataset. # # rgmining-tripadvisor-dataset 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 t...
rgmining/tripadvisor
setup.py
Python
gpl-3.0
3,543
class Point: Empty = " " Full = "XX" def __init__(self, x, y): if not type(x) == int \ or not type(y) == int: raise Exception('Can only assign int type to x or y value') self.X = x self.Y = y self.Value = self.Empty def __eq__(self, other): if isinstance(other, self.__class__):...
acbilson/py-lex-lib
point.py
Python
gpl-3.0
593
import galaxy.model from logging import getLogger log = getLogger( __name__ ) ROLES_UNSET = object() INVALID_STATES = [ galaxy.model.Dataset.states.ERROR, galaxy.model.Dataset.states.DISCARDED ] class DatasetMatcher( object ): """ Utility class to aid DataToolParameter and similar classes in reasoning about...
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/lib/galaxy/tools/parameters/dataset_matcher.py
Python
gpl-3.0
6,314
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.utils import timezone from django.db import models, migrations def fill_tables(apps, schema_editor): eventsforbusv2 = apps.get_model('AndroidRequests', 'EventForBusv2') eventsforbusstop = apps.get_model('AndroidRequests', 'EventForBus...
InspectorIncognito/visualization
AndroidRequests/migrations/0904_transformation_eventforbusv2_half_hour_period.py
Python
gpl-3.0
2,254
import ctypes libc = ctypes.CDLL("/usr/lib/libc.dylib") print(libc.rand()) print(libc.time()) cPrintF = libc.printf value = b"I'm a C function!" print(value) printValue = ctypes.c_char_p(value) print(printValue.value) print(printValue) cPrintF("%s", printValue)
torchhound/projects
python/ffi.py
Python
gpl-3.0
264
# DESCRIPTION # Renders a PNG image like bacteria that mutate color as they spread. TRY IT. The output is awesome. # DEPENDENCIES # python 3 with numpy, queue, and pyimage modules installed (and others--see the import statements). # USAGE # Run this script through a Python interpreter without any parameters, and it w...
r-alex-hall/fontDevTools
scripts/imgAndVideo/color_growth.py
Python
gpl-3.0
45,584
""" Utilities for structure analysis. """ from . import measure from .atoms import Selection __all__ = ['hydrogen_bonds', 'HydrogenBond'] class HydrogenBond(object): """ Represents hydrogen bond. @ivar: Hydrogen donor atom @ivar: Hydrogen atom @ivar: Hydrogen acceptor atom """ def __init...
ziima/pyvmd
pyvmd/analysis.py
Python
gpl-3.0
3,418
# BSD 3-Clause License # # Copyright (c) 2016-19, University of Liverpool # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notic...
fsimkovic/cptbx
conkit/io/fasta.py
Python
gpl-3.0
4,452
#!/usr/bin/python """ Create Y matrix for Canopy. This is the connection between the SNAs and CNVs """ import sys Wm = open(sys.argv[1]) Wm.readline() cnvs = list() header = list() header.append("non-cna_region") for i in Wm: region = i.split()[0] (chrx, start, end) = region.split("_") cnvs.append((chrx, int(s...
TravisCG/SI_scripts
canpyY.py
Python
gpl-3.0
803
from . import terrariumRelay, terrariumRelayDimmer, terrariumRelayLoadingException from terrariumUtils import terrariumUtils class terrariumRelayRemote(terrariumRelay): HARDWARE = 'remote' NAME = 'Remote power switch (API)' def _load_hardware(self): if terrariumUtils.parse_url(self.address): return se...
theyosh/TerrariumPI
hardware/relay/remote_relay.py
Python
gpl-3.0
1,365
# Copyright 2015 Peter van Zetten # # This file is part of pypkgmirror. # # pypkgmirror 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....
Zetten/pypkgmirror
pypkgmirror/__init__.py
Python
gpl-3.0
3,339
class BinaryTree: def __init__(self,rootObj): self.key = rootObj self.leftChild = None self.rightChild = None def insertLeft(self,newNode): if self.leftChild == None: self.leftChild = BinaryTree(newNode) else: t = BinaryTree(newNode) t.leftChild = self.leftChild self.leftChild = t def insertR...
BaReinhard/Hacktoberfest-Data-Structure-and-Algorithms
data_structures/binary_tree/python/binary_tree.py
Python
gpl-3.0
694
#! /usr/bin/env python3 import mwparserfromhell from ws.parser_helpers.wikicode import * class test_get_adjacent_node: def test_basic(self): snippet = "[[Arch Linux]] is the best!" wikicode = mwparserfromhell.parse(snippet) first = wikicode.get(0) last = get_adjacent_node(wikicode...
lahwaacz/wiki-scripts
tests/parser_helpers/test_wikicode.py
Python
gpl-3.0
18,144
# -*- coding: utf-8 -*- import os import tempfile from slidown import config def test_load_not_existing_config(): with tempfile.TemporaryDirectory() as temp_dir: configuration_file = os.path.join(temp_dir, 'config.json') import appdirs appdirs.user_config_dir = lambda any_appname: temp_d...
riccardomarotti/slidown
tests/test_config.py
Python
gpl-3.0
1,706
#!/usr/bin/env python2 # -*- coding: utf-8 -*- ################################################## # GNU Radio Python Flow Graph # Title: Blade Rx # Generated: Wed Jun 8 20:57:16 2016 ################################################## if __name__ == '__main__': import ctypes import sys if sys.platform.star...
argilo/contest-sdr
blade_rx.py
Python
gpl-3.0
14,830
# (c) 2015, Ansible Inc, # # 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 later version. # # Ansible is di...
Yannig/ansible
lib/ansible/plugins/action/net_base.py
Python
gpl-3.0
7,262
#!/usr/bin/env python from Tools.Test import TestCase, TestSuite from AOR.ProgUnit import ProgUnit from AOR.Statements import Call from AOR.If import If, IfOnly from Grammar.Parser import ParserClass class ProgUnitTest(TestCase): def __init__(self): TestCase.__init__(self, 'ProgUnit Test') ...
hiker/stan
AOR/Test/ProgUnitTest.py
Python
gpl-3.0
2,186
# -*- coding: utf-8 -*- ''' Printmodel django module for invoice @author: Laurent GAY @organization: sd-libre.fr @contact: info@sd-libre.fr @copyright: 2016 sd-libre.fr @license: This file is part of Lucterios. Lucterios is free software: you can redistribute it and/or modify it under the terms of the GNU General Pub...
Diacamma2/asso
diacamma/member/printmodel/TaxReceipt_0001.py
Python
gpl-3.0
4,411
import numpy as np import matplotlib.pyplot as pyplot def color_combine_mate(color_number=8,combine_type=0): colors={3:[["#7fc97f","#beaed4","#fdc086"],["#1b9e77","#d95f02","#7570b3"],['#a6cee3','#1f78b4','#b2df8a'],['#fbb4ae','#b3cde3','#ccebc5'],['#b3e2cd','#fdcdac','#cbd5e8'],['#e41a1c','#377eb8','#4daf4a'],['#...
jackey-qiu/genx_pc_qiu
supportive_functions/color_mate.py
Python
gpl-3.0
3,352
# -*- coding: utf-8 -*- # # Tutorial documentation build configuration file, created by # sphinx-quickstart on Thu Dec 8 12:57:03 2011. # # 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. # # Al...
qunying/gps
docs/tutorial/conf.py
Python
gpl-3.0
8,459
"""1.7 : Add active tags to expense types and tva Revision ID: 2b29f533fdfc Revises: 4ce6b915de98 Create Date: 2013-09-03 16:05:22.824684 """ # revision identifiers, used by Alembic. revision = '2b29f533fdfc' down_revision = '4ce6b915de98' from alembic import op import sqlalchemy as sa def upgrade(): try: ...
CroissanceCommune/autonomie
autonomie/alembic/versions/1_7_active_tag_2b29f533fdfc.py
Python
gpl-3.0
830
# -*- coding: utf-8 -*- from __future__ import absolute_import import rest.models from .base import from_django_model WsAuthGroup = from_django_model(rest.models.WsAuthGroup)
lavalamp-/ws-backend-community
lib/sqlalchemy/models/auth.py
Python
gpl-3.0
178
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*- # # Copyright (C) 2015, 2016 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...
squidsoup/snapcraft
snapcraft/internal/lifecycle.py
Python
gpl-3.0
20,279
# -*- encoding: utf-8 -*- ############################################################################## # Copyright (c) 2015 - Present All Rights Reserved # Author: Cesar Lage <kaerdsar@gmail.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Gener...
ITPS/odoo-saas-tools
saas_portal_demo/controllers/__init__.py
Python
gpl-3.0
924
from Node import * from Pin import * from Utilities import getQuotedString ### # FUNCTION : Handle Branch nodes ### def processBranch(lines, buildMode, nodeNumber, OUTPUT_FOLDER): node = Node("Branch", buildMode) inObject = False pinName = "" pinType = "" pinSide = "" for line in lines: line = line.strip(" "...
ShipleyCollege/ViPteam1
ExtractAndAnalyzeCode/ProcessBranch.py
Python
gpl-3.0
1,199
class Solution(object): def searchMatrix(self, matrix, target): """ :type matrix: List[List[int]] :type target: int :rtype: bool """ m, n = len(matrix), len(matrix[0]) if matrix else 0 l, r = 0, m * n - 1 while l <= r: mid = (l + r) / 2 ...
zqfan/leetcode
algorithms/74. Search a 2D Matrix/solution.py
Python
gpl-3.0
543
#!/usr/bin/env python """ A basic example of how to get a password from the default keyring of you environment. """ import keyring password = keyring.get_password(u"dummyapp", u"mark.veltzer@gmail.com") print("your password is [{}]".format(password))
veltzer/demos-python
src/examples/short/keyring/get.py
Python
gpl-3.0
253
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: # Copyright 2016-2018 Florian Bruhin (The Compiler) <mail@qutebrowser.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 S...
airodactyl/qutebrowser
qutebrowser/browser/webkit/webkittab.py
Python
gpl-3.0
30,341
""" The periodic table, and all it's info! And functions for doing chemical things. """ import os import re import pickle import pandas as pd def elements(all_isotopes=True): """ Loads a DataFrame of all elements and isotopes. Scraped from https://www.webelements.com/ Returns ------- pandas ...
oscarbranson/tools
tools/chemistry.py
Python
gpl-3.0
3,869
from gnss.base import Blocks, BlocksRegistry __all__ = [] # class RinexD(Blocks, metaclass=BlocksRegistry): # '''Hatanaka compressed GNSS observation''' # @classmethod # def valid_filetype(self, src): # return src.endswith('.rinex-d') # class RinexN(Blocks, metaclass=BlocksRegistry): # '''GPS ...
denz/geophys
gnss/data/satellite.py
Python
gpl-3.0
1,759
WMC_RATE_LIMIT = 5 WMC_USER = '' WMC_PASSWORD = '' BLOCKHASH_COMMAND = 'blockhash' SQLALCHEMY_URL = 'postgresql://user:pass@localhost/test' BROKER_URL = 'amqp://guest@localhost/' try: from config_local import * except ImportError: pass
commonsmachinery/commonshasher
config.py
Python
gpl-3.0
246
import webbrowser # ToDO: You can improve the Search using the OAUTH and other apis of the stack over flow class StackoverFlow: def __init__ (self): pass def search (self, search_text=''): search_text = search_text.strip() search_text = search_text.replace(' ', '+') # This repl...
shafaypro/PYSHA
_StackoverFlow.py
Python
gpl-3.0
606
import sys import time from threading import Thread class Spinner(Thread): #Set the screen position of the spinner (chars from the left). spin_screen_pos = 1 #Set the current index position in the spinner character list. char_index_pos = 0 #Set the time between character changes in the spinner. ...
jtriley/s3site
s3site/spinner.py
Python
gpl-3.0
2,255
print "I will now count my chickens:" print "Hens", 25+30 / 6 print "Roosters", 100 - 25 * 3 % 4 print "Now I will count the eggs:" print 3 + 2 + 1 - 5 + 4 % 2 - 1 / 4 + 6 print "Is it true that 3 + 2 < 5 - 7?" print 3 + 2 < 5 - 7 print "What is 3 + 2?", 3 + 2 print "What is 5 - 7?", 5 - 7 print "Oh, that's why ...
BigBoss424/webtutorials
python/learnpythonhard/ex/ex3.py
Python
gpl-3.0
474
#! /usr/bin/env python # coding:utf8 from argparse import ArgumentParser import os import sys PATH_OF_THIS_SCRIPT = os.path.split(os.path.realpath(__file__))[0] sys.path.insert(0, os.path.join(PATH_OF_THIS_SCRIPT, "..")) import GetOrganelleLib from GetOrganelleLib.pipe_control_func import * from GetOrganelleLib.seq_pa...
Kinggerm/GetOrganelle
Utilities/evaluate_assembly_using_mapping.py
Python
gpl-3.0
29,914
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests haystack.basicmodel .""" import logging import sys import unittest from haystack.outputters import python from haystack.search import api from haystack.mappings import folder from test.haystack import SrcTests __author__ = "Loic Jaquemet" __copyright__ = "Copyr...
trolldbois/python-haystack
test/haystack/outputters/test_python.py
Python
gpl-3.0
6,103
# This file is NOT licensed under the GPLv3, which is the license for the rest # of YouCompleteMe. # # Here's the license text for this file: # # This is free and unencumbered software released into the public domain. # # Anyone is free to copy, modify, publish, use, compile, sell, or # distribute this software, either...
Valloric/ycmd
.ycm_extra_conf.py
Python
gpl-3.0
7,079
#!/usr/bin/env python # -*- coding: utf-8 -*- import paulo import getopt import sys import os.path # usage: # export PYTHONUNBUFFERED=1 # ./paulo-consolidation.py -c backup-titres.csv -i /media/jm/Elements/backup/musique/ -o /mnt/paulo/home/sound/ -I 0.4 | tee -a log-copy.txt def usage(): print "Usage: paulo-co...
RadioCampusClermontFerrand/paulo-rebuild
paulo-consolidation.py
Python
gpl-3.0
5,019
# -*- coding: utf8 -*- SQL = ( ('list_fonds_report1', """ select F.FKOD,F.FNAME, (F.A16+if(F.A22,A22,0)) as A16 FROM `af3_fond` F WHERE FNAME like ('%%%(qr)s%%') or A1 like ('%%%(qr)s%%') ORDER BY FKOD;"""), ) FOUND_ROWS = True ROOT = "fonds" ROOT_PREFIX = None ROOT_POSTFIX= ...
ffsdmad/af-web
cgi-bin/plugins2/report/fond_search_report1.py
Python
gpl-3.0
547
# coding: utf-8 ''' grouped_translated ''' from ..load_fixture_json import load_fixture_json DATA = { 'title': 'Animal identification survey with translations and groups', 'id_string': 'grouped_translated', 'versions': [ load_fixture_json('grouped_translated/v1'), ], }
kobotoolbox/formpack
tests/fixtures/grouped_translated/__init__.py
Python
gpl-3.0
297
from tkinter import * import random import time class Game: def __init__(self): self.tk = Tk() self.tk.title("Mr. Stick Man Races for the Exit") self.tk.resizable(0, 0) self.tk.wm_attributes("-topmost", 1) self.canvas = Canvas(self.tk, width=500, height=500, highlightthickn...
amosnier/python_for_kids
book_code/appendixb/ch18-game-over.py
Python
gpl-3.0
9,143
import os import robotreviewer from robotreviewer.ml.ner_data_utils import get_trimmed_glove_vectors, load_vocab, \ get_processing_word class Config(): def __init__(self, load=True): """Initialize hyperparameters and load vocabs Args: load_embeddings: (bool) if True, load embedd...
ijmarshall/robotreviewer3
robotreviewer/ml/ner_config.py
Python
gpl-3.0
2,854
''' pyttsx setup script. Copyright (c) 2009, 2013 Peter Parente Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED 'AS IS' AND THE AUTHO...
valdecar/Murka
pyttsx-master/setup.py
Python
gpl-3.0
1,287
#!/usr/bin/python # -*- coding: UTF-8 -*- ''' kivyapp.py Este arquivo descreve a classe KivyApp que é a classe derivada de kivy.app.App do kivy. Esta classe é necessaria para inicializar um aplicativo com o kivy. Após inicializar a classe, voce deve setar uma classe parent (atraves de KivyApp.par...
mscansian/SigmaWebPlus
plus/kivyapp.py
Python
gpl-3.0
1,840
from django.db.models.expressions import F, Func from rest_framework import serializers from .models import PdfStorage class PdfStorageListSerializer(serializers.ModelSerializer): author = serializers.SerializerMethodField("full_name") class Meta: model = PdfStorage fields = [ "...
auto-mat/klub
apps/pdf_storage/serializers.py
Python
gpl-3.0
1,144
#!/usr/bin/env python3 """ Perform frequency analysis on text. This is already provided by !f, this script exists for other reasons. """ import sys import argparse import re from collections import Counter def parse_args(): parser = argparse.ArgumentParser(description=__doc__) parser.add_argument("input", t...
elterminad0r/cipher_tools
src/scripts/freq_analysis.py
Python
gpl-3.0
1,559
#!/usr/bin/env python """ Evaluate the performance of detector get the statistical quantify for the hypotheis test like False Alarm Rate. """ from __future__ import print_function, division, absolute_import import copy, os import collections from ..Detector import MEM_FS from ..Detector import BotDetector from ..util i...
hbhzwj/GAD
gad/Experiment/EvalForBotnetDetection.py
Python
gpl-3.0
9,139
# Generated by Django 3.0.3 on 2020-02-26 19:58 import collections import jsonfield.fields from django.db import migrations class Migration(migrations.Migration): dependencies = [('config', '0022_vpn_format_dh')] operations = [ migrations.AlterField( model_name='config', na...
nemesisdesign/openwisp2
openwisp_controller/config/migrations/0023_update_context.py
Python
gpl-3.0
888
# Copyright 2010-2017, The University of Melbourne # Copyright 2010-2017, Brian May # # This file is part of Karaage. # # Karaage 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...
Karaage-Cluster/karaage
karaage/common/__init__.py
Python
gpl-3.0
5,700
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author: Eduard Trott # @Date: 2015-09-15 08:57:35 # @Email: etrott@redhat.com # @Last modified by: etrott # @Last Modified time: 2015-12-17 16:53:17 version_info = ('0', '0', '1') __version__ = '.'.join(version_info[0:3]) # + '-' + version_info[3]
maybelinot/bellring
bellring/_version.py
Python
gpl-3.0
305
import f90nml # Adapted from the original core.nml and phys.nml files included in 2006 codebase. # where the value is the same as the default in the code base, it is commented out # and therefore not included in the namelist. # Where the value is different, the code default is shown in an inline comment basic = f90n...
Alexander-P/Isca
exp/python_gfdl/namelists.py
Python
gpl-3.0
6,032
from sklearn.metrics import roc_auc_score from sklearn.preprocessing import LabelBinarizer from sklearn.metrics import f1_score class benchMarks: def __init__(self, truth, pred): self.pred = pred self.truth = truth def getF1Scores(self): return f1_score(self.instancesClasses, resultClasses, average='macro'),f...
rsboos/DistributedClassifier
src/benchmarks.py
Python
gpl-3.0
670
""" Django settings for snippets_project project. Generated by 'django-admin startproject' using Django 1.9. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ impor...
franpandol/curso-django-snippets
snippets_project/settings.py
Python
gpl-3.0
4,420
#!/usr/bin/env python3 import uuid import pika import threading import json import time import os import kecsl import base64 import logging LOGGER = logging.getLogger(__name__) """ControlerInterface:AMQP Progresser""" WorkMode={ 'WorkNode', #Accetpt Control 'ControlConsole' #Connect to Server Accept Control } class...
xiaokangwang/KKUniCtrlConsole_Core
ControlerInterface_AMQP.py
Python
gpl-3.0
13,751
#! /usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2011 ~ 2012 Deepin, Inc. # 2011 ~ 2012 Wang Yong # # Author: Wang Yong <lazycat.manatee@gmail.com> # Maintainer: Wang Yong <lazycat.manatee@gmail.com> # # This program is free software: you can redistribute it and/or modify # it under the...
linuxdeepin/deepin-ui
dtk/ui/cycle_strip.py
Python
gpl-3.0
2,087
""" The events manager contains the class that manages custom and abstract callbacks into the system callbacks. Once a signals is registered here it could be used by string reference. This makes it easy to have dynamically signals being created by other apps in a single place so it could be used over all apps. For exa...
PyPlanet/PyPlanet
pyplanet/core/events/manager.py
Python
gpl-3.0
6,932
""" There are quite a few hacks in here to get this working for single player only notably, the use of self.game """ from __future__ import division import logging from functools import partial import pygame from core import tools from core.components.menu import Menu from core.components.menu.interface import HpBa...
nikitakurylev/TuxemonX
tuxemon/core/states/combat/combat_animations.py
Python
gpl-3.0
16,657
# DOENDO - A Python-Based Fortran Refactoring Tool # Copyright (C) 2011 Felipe H. da Jornada <jornada@civet.berkeley.edu> import re import xml.dom.minidom import analyze import common def rename(lines, doc, ren_dict, block=None): ''' Rename a variable in a particular block lines: line-oriented buffer to be al...
jornada/DOENDO
rename.py
Python
gpl-3.0
2,180
#!/usr/bin/env python import logging # http://docs.python.org/2/howto/logging.html#logging-basic-tutorial import pysftp # https://code.google.com/p/pysftp/ from configobj import ConfigObj # http://www.voidspace.org.uk/python/configobj.html import os import sys import time import curses import Image import ImageTk impo...
jvilaplana/PiMotionGallery
pmg.py
Python
gpl-3.0
8,027
#!/usr/bin/env python3 """Load Filters used in Loader""" import os import pickle import sys import unicodedata from json import dumps, loads from subprocess import PIPE, Popen from philologic.OHCOVector import Record # Default filters def get_word_counts(_, text): """Lowercase and count words""" attrib_set ...
ARTFL-Project/PhiloLogic5
python/philologic/LoadFilters.py
Python
gpl-3.0
11,328
from gonullu.farm import Farm from gonullu.docker import Docker from gonullu.volunteer import Volunteer from gonullu.log import Log
PisiLinuxNew/gonullu
gonullu/__init__.py
Python
gpl-3.0
132
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/gugu/w/calibre/src/calibre/gui2/dialogs/quickview.ui' # # Created: Thu Jul 19 23:32:31 2012 # by: PyQt4 UI code generator 4.9.1 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _f...
Eksmo/calibre
src/calibre/gui2/dialogs/quickview_ui.py
Python
gpl-3.0
3,673
import glob, os dir_name = "icons" app_name = "kaktus" # "dir_name": size sizes = { "86x86": 86, "108x108": 108, "128x128": 128, "150x150": 150, "172x172": 172, "256x256": 256 } svg = app_name + ".svg" if not os.path.exists(dir_name): os.makedirs(dir_name) for name in sizes.keys(): ...
mkiol/kaktus
sailfish/res/gen_png_app.py
Python
gpl-3.0
785
# Copyright (c) 2013 Calin Crisan # This file is part of motionEye. # # motionEye 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. # #...
porolakka/motioneye-jp
src/update.py
Python
gpl-3.0
1,486
from .rule_100 import rule_100 from .rule_101 import rule_101 from .rule_300 import rule_300 from .rule_500 import rule_500 from .rule_501 import rule_501 from .rule_502 import rule_502
jeremiah-c-leary/vhdl-style-guide
vsg/rules/attribute_declaration/__init__.py
Python
gpl-3.0
189
import sys import time import logging if sys.version_info[:2] >= (3, 0): # pylint: disable=E0611,F0401,I0011 uni = str else: uni = unicode import youtube_dl from . import g from .backend_shared import BasePafy, BaseStream, remux dbg = logging.debug early_py_version = sys.version_info...
adazey/Muzez
libs/pafy/backend_youtube_dl.py
Python
gpl-3.0
4,573
#!/usr/bin/python # This file is part of tcollector. # Copyright (C) 2011 The tcollector Authors. # # This program 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 the License, or (a...
box/tcollector
collectors/0/netstat.py
Python
gpl-3.0
17,119
#!/usr/bin/env python3 # export_to_pdf.py # # references # - https://onesheep.org/scripting-libreoffice-python/ # - http://christopher5106.github.io/office/2015/12/06/openoffice-lib # reoffice-automate-your-office-tasks-with-python-macros.html import uno from com.sun.star.beans import PropertyValue localCont...
pchaitat/invrcptexporter
sample-code/misc/hello_world_librecalc.py
Python
gpl-3.0
1,240
from __future__ import print_function import pymprog # The Queens Problem is to place as many queens as possible on the nxn # chess board in a way that they do not fight # each other. This problem is probably as old as the chess game itself, # and thus its origin is not known, but it is known that Gauss studied ...
langit/pymprog
models/queens.py
Python
gpl-3.0
1,087
# Copyright (C) 2016-2018 East Asian Observatory # All Rights Reserved. # # 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...
eaobservatory/hedwig
test/test_file_poll.py
Python
gpl-3.0
6,323
import xbmc, xbmcaddon, xbmcgui, xbmcplugin,os,sys import shutil import urllib2,urllib import re import extract import time import downloader import plugintools import zipfile import ntpath USER_AGENT = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3' base='' ADDON=xbmcaddo...
GhostTV/plugin.video.mykodibuildwizard
default.py
Python
gpl-3.0
8,951
# -*- coding: utf-8 -*- # Generated by Django 1.9.1 on 2016-05-17 20:16 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('samaritan', '0008_member_baptismal_place'), ] opera...
Silvian/samaritan
samaritan/migrations/0009_auto_20160517_2016.py
Python
gpl-3.0
1,012
# (c) 2015 J Miguel Farto, jmfarto@gmail.com r''' Aditional static paths ''' from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os from flask import Blueprint from flask import current_app as app from flask.helper...
damahou/sagewui
sagewui/blueprints/static_paths.py
Python
gpl-3.0
1,622
# This file is part of Palabra # # Copyright (C) 2009 - 2011 Simeon Visser # # Palabra 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. ...
svisser/palabra
tests/test_prefs.py
Python
gpl-3.0
3,065
#!/usr/bin/env python2 # -*- coding: utf-8 -*- ################################################## # GNU Radio Python Flow Graph # Title: Inmarsat Playback # Generated: Mon Aug 21 21:42:34 2017 ################################################## if __name__ == '__main__': import ctypes import sys if sys.plat...
Eclipse-2017/waveforms
playback/inmarsat_playback.py
Python
gpl-3.0
26,718
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-07-06 21:33 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('api', '0003_like_user'), ...
gewethor/Chartreuse-Back-End
api/migrations/0004_auto_20160706_2133.py
Python
gpl-3.0
580