repo_name stringlengths 5 92 | path stringlengths 4 232 | copies stringclasses 19
values | size stringlengths 4 7 | content stringlengths 721 1.04M | license stringclasses 15
values | hash int64 -9,223,277,421,539,062,000 9,223,102,107B | line_mean float64 6.51 99.9 | line_max int64 15 997 | alpha_frac float64 0.25 0.97 | autogenerated bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|
kickapoo/prometheus | prometheus/__init__.py | 1 | 1867 | from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext.login import LoginManager
from flask.ext.moment import Moment
from flask.ext.bootstrap import Bootstrap
import pyowm
app = Flask(__name__, instance_relative_config=True)
# config.default
app.config.from_object('config.default')
# config... | gpl-3.0 | 4,680,024,369,101,816,000 | 38.723404 | 77 | 0.803964 | false |
shuitian/pokemon_rpg | Assets/server/sqldata.py | 1 | 2027 | #-*- coding:utf-8 –*-
import sqlite3,os,time,json
class sql(object):
"""处理数据库的类"""
def __init__(self):
"""获取数据库连接"""
super(sql, self).__init__()
db = 'monsters.db'
self.conn = sqlite3.connect(db)
print "Open",db,"Success"
def __del__(self):
"""关闭数据库连接"""
self.conn.close()
def show_table(self, tab... | mit | 71,420,953,494,727,550 | 23.551282 | 91 | 0.602089 | false |
jsonchin/nba_stats_scraper_db_storage | nba_ss_db/scrape/query_param_values.py | 1 | 2097 | """
Contains functions to retrieve fillable values for
API request jobs.
"""
import datetime
from .. import db, CONFIG
from ..scrape.utils import get_date_before, format_date_for_api_request, PROPER_DATE_FORMAT
QUERY_PARAM_VALUES = {}
def get_possible_query_param_values(query_param, is_daily):
"""
Valid quer... | apache-2.0 | -6,235,656,609,852,025,000 | 35.155172 | 118 | 0.592752 | false |
wheeler-microfluidics/open-drop | pavement.py | 1 | 1896 | from collections import OrderedDict
import sys
from importlib import import_module
from paver.easy import task, needs, path, sh, cmdopts, options
from paver.setuputils import setup, find_package_data, install_distutils_tasks
try:
from base_node_rpc.pavement_base import *
except ImportError:
pass
sys.path.inse... | gpl-3.0 | -3,173,363,006,376,368,600 | 36.92 | 78 | 0.594937 | false |
DiegoCorrea/ouvidoMusical | apps/similarities/Cosine/algorithm/views.py | 1 | 2656 | from .algorithm import CosineSimilarity
from apps.data.songs.models import Song, SongSimilarity
from apps.similarities.Cosine.benchmark.models import BenchCosine_SongTitle
from django.db import transaction
from django.utils import timezone
from multiprocessing.dummy import Pool as ThreadPool
from apps.CONSTANTS import ... | mit | 6,042,651,033,651,817,000 | 30.247059 | 101 | 0.643825 | false |
blackmatrix7/apizen | app/config.py | 1 | 3877 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2017/5/28 20:50
# @Author : BlackMatrix
# @Sit :
# @File : config.py
# @Software : PyCharm
import os
__author__ = 'blackmatrix'
class BaseConfig:
DEBUG = True
TESTING = False
HOST = '0.0.0.0'
PORT = 8080
WORKS = 5
SITE_NAME = 'ApiZen'... | apache-2.0 | -9,111,898,448,475,030,000 | 23.940789 | 96 | 0.608547 | false |
NMisko/monkalot | bot/utilities/startgame.py | 1 | 1791 | """Contains functions to control games."""
import time
from bot.utilities.permission import Permission
from bot.utilities.tools import replace_vars
def start_game(bot, user, msg, cmd):
"""Return whether a user can start a game.
Takes off points if a non moderator wants to start a game.
Also makes sure ... | mit | -8,835,198,294,969,289,000 | 38.8 | 88 | 0.58459 | false |
Acimaz/Google_Apple_Financial_Reporter | Reporter.py | 1 | 5765 | # Reporting tool for querying Sales- and Financial Reports from iTunes Connect and Google Developer Console
#
# This tool can be used to download financial reports from both Google and Apple
# for the app of your choice (of course i assume that you are the owner of this app)
#
# Copyright (c) 2017 Ayhan Sakarya, Kaasa ... | mit | 5,068,535,535,105,347,000 | 48.273504 | 203 | 0.646487 | false |
openstack/swift | swift/common/middleware/recon.py | 1 | 17726 | # Copyright (c) 2010-2012 OpenStack Foundation
#
# 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 agree... | apache-2.0 | -7,486,379,650,210,433,000 | 40.415888 | 79 | 0.518278 | false |
eragonruan/text-detection-ctpn | utils/text_connector/detectors.py | 1 | 2097 | # coding:utf-8
import numpy as np
from utils.bbox.nms import nms
from .text_connect_cfg import Config as TextLineCfg
from .text_proposal_connector import TextProposalConnector
from .text_proposal_connector_oriented import TextProposalConnector as TextProposalConnectorOriented
class TextDetector:
def __init__(sel... | mit | -1,105,246,956,184,877,400 | 41.854167 | 108 | 0.633933 | false |
ashleyjsands/machine-learning | benchmark.py | 1 | 1576 | """
This script is used to benchmark neural network performance to determine which optimisations are useful.
"""
from neural_network import *
from data import *
from neural_network import get_index_of_maximum_value
import time
def print_intro():
print "Benchmarking neural network implementation"
def get_neural_n... | mit | 7,466,109,914,126,193,000 | 34.818182 | 241 | 0.695431 | false |
amanmehara/programming-app-data | Python/ScrappingHackerNewsWebsite/ScrappingHackerNewsWebsite.py | 1 | 3141 | '''
Copyright [2020] [Arun Kumar G]
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 agreed to in writing, software
... | apache-2.0 | -5,395,644,967,868,740,000 | 45.191176 | 172 | 0.737663 | false |
Bezoar/surrender-rides | bp_content/themes/default/handlers/forms.py | 1 | 5264 | # *-* coding: UTF-8 *-*
"""
Created on June 10, 2012
@author: peta15
"""
__author__ = 'coto'
from datetime import datetime
from wtforms import fields
from wtforms import Form
from wtforms import validators, ValidationError
from webapp2_extras.i18n import lazy_gettext as _
from webapp2_extras.i18n import ngettext, gett... | mit | 4,451,003,861,496,569,000 | 48.352381 | 156 | 0.650328 | false |
shengqh/ngsperl | lib/GATK/mergeMutect.py | 1 | 4103 | import argparse
import sys
import logging
import os
import errno
import gzip
from asyncore import read
from Mutect import MutectItem, MutectResult
def check_file_exists(file):
if not os.path.exists(file):
raise FileNotFoundError(errno.ENOENT, os.strerror(errno.ENOENT), file)
def readFileMap(fileName):
check_f... | apache-2.0 | 5,800,809,459,799,280,000 | 33.771186 | 169 | 0.639288 | false |
gprMax/gprMax | setup.py | 1 | 7984 | # Copyright (C) 2015-2020: The University of Edinburgh
# Authors: Craig Warren and Antonis Giannopoulos
#
# This file is part of gprMax.
#
# gprMax 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... | gpl-3.0 | -5,500,311,628,205,997,000 | 37.200957 | 204 | 0.600952 | false |
lare-team/django-lare | django_lare/models.py | 1 | 2035 | from django_lare import VERSION
class Lare(object):
enabled = False
current_namespace = ""
previous_namespace = ""
version = VERSION
supported_version = "1.0.0"
def __init__(self, request):
super(Lare, self).__init__()
if 'HTTP_X_LARE' in request.META:
if 'HTTP_X_... | mit | 3,086,362,984,252,951,600 | 34.701754 | 103 | 0.594595 | false |
previtus/MGR-Project-Code | Downloader/PreprocessData/GenListOfUrls.py | 1 | 1499 | # GenListOfUrls.py
import sys
sys.path.append('..')
def GenListOfUrls(Segments, PIXELS_X, PIXELS_Y, PrependPath='', minimal_length=20, custom=False):
'''
Iterates over the segment list and returns a list of urls needed for download
Outputs list of tripples in [ (<url>, <filename>, <edge id>), ... ]
'''... | mit | 9,217,931,892,103,464,000 | 36.475 | 129 | 0.623082 | false |
yeleman/snisi | snisi_core/migrations/0005_auto_20150205_1516.py | 1 | 1889 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('snisi_core', '0004_auto_20150114_1650'),
]
operations = [
migrations.CreateModel(
... | mit | -7,704,077,489,148,694,000 | 32.140351 | 114 | 0.535733 | false |
DomBennett/pG-lt | pglt/tools/setup_tools.py | 1 | 16996 | #! /bin/usr/env python
# D.J. Bennett
# 07/11/2014
"""
pglt setup tools
"""
# PACKAGES
import argparse
import sys
import os
import re
import pickle
import csv
import logging
import platform
from datetime import datetime
from reseter_tools import Reseter
from special_tools import clean
from special_tools import stats
f... | gpl-2.0 | -6,247,521,024,659,388,000 | 36.853007 | 93 | 0.595552 | false |
mediafactory/yats | sites/web/web/models.py | 1 | 3394 | # -*- coding: utf-8 -*-
from django.db import models
from django.utils.functional import lazy
from django.core.cache import cache
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from yats.models import tickets
from yats.models import base
import datetime
import base64
import ht... | mit | -4,443,041,059,347,932,700 | 33.632653 | 129 | 0.652033 | false |
hh-italian-group/h-tautau | Production/crab/split_dataset.py | 1 | 2726 | #!/usr/bin/env python
# Create json files to split dataset into several parts.
# This file is part of https://github.com/hh-italian-group/h-tautau.
import argparse
from sets import Set
from FWCore.PythonUtilities.LumiList import LumiList
from dbs.apis.dbsClient import DbsApi
parser = argparse.ArgumentParser(descripti... | gpl-2.0 | -1,129,987,620,451,551,900 | 37.394366 | 102 | 0.676816 | false |
UPDDI/mps-database-server | assays/forms.py | 1 | 247404 | import datetime
from django import forms
from django.contrib.auth.models import Group
from django.forms.models import (
BaseInlineFormSet,
inlineformset_factory,
BaseModelFormSet,
modelformset_factory,
)
from cellsamples.models import Biosensor
from assays.models import (
AssayStudyConfiguration,
... | mit | 1,930,131,250,192,173,600 | 41.53103 | 207 | 0.56811 | false |
adamrvfisher/TechnicalAnalysisLibrary | Blankrunningslate.py | 1 | 1167 | # -*- coding: utf-8 -*-
"""
Created on Wed Apr 5 20:13:42 2017
@author: AmatVictoriaCuramIII
"""
firsttime = '07/01/1983'
secondtime = '01/01/1995'
thirdtime = '01/01/2006'
fourthtime = '01/01/2010'
lasttime = '01/01/2050'
ticker = '^GSPC'
import pandas as pd
from ChaikinAggMaker import ChaikinAggMaker
... | apache-2.0 | 4,400,549,916,374,860,000 | 36.966667 | 70 | 0.720651 | false |
artefactual/archivematica-history | src/MCPServer/lib/archivematicaMCP.py | 1 | 11965 | #!/usr/bin/python -OO
# This file is part of Archivematica.
#
# Copyright 2010-2012 Artefactual Systems Inc. <http://artefactual.com>
#
# Archivematica is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, e... | agpl-3.0 | 5,251,333,690,015,819,000 | 34.930931 | 248 | 0.67781 | false |
mistercrunch/panoramix | tests/email_tests.py | 1 | 7013 | # -*- coding: utf-8 -*-
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "... | apache-2.0 | -800,606,943,113,333,600 | 39.074286 | 86 | 0.62926 | false |
google-research/tensor2robot | hooks/async_export_hook_builder_tpu_test.py | 1 | 2533 | # coding=utf-8
# Copyright 2021 The Tensor2Robot Authors.
#
# 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 ... | apache-2.0 | -8,682,825,229,037,684,000 | 35.710145 | 76 | 0.731938 | false |
mrven/origin_align_addon | OriginAlign.py | 1 | 5309 | #02.05.2015
#Ivan "mrven" Vostrikov
bl_info = {
"name": "Origin Align",
'author': 'Ivan Vostrikov',
'version': (1, 0, 1),
'blender': (2, 7, 4),
'location': '3d view > Object > Origin Align X/Y/Z',
'description': 'In object mode, sets object origin to selected axis of 3D Cursor',
'wiki_url'... | gpl-2.0 | -5,504,240,410,435,975,000 | 38.619403 | 111 | 0.600301 | false |
GoogleCloudPlatform/python-docs-samples | storage/s3-sdk/noxfile_config.py | 1 | 2085 | # Copyright 2021 Google LLC
#
# 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 agreed to in writing, ... | apache-2.0 | 3,094,053,016,361,112,000 | 40.7 | 78 | 0.70024 | false |
googleads/google-ads-python | google/ads/googleads/v6/services/services/google_ads_field_service/client.py | 1 | 21308 | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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 o... | apache-2.0 | 3,742,854,204,615,069,700 | 40.055877 | 140 | 0.62324 | false |
doucol/mysite | mysite/settings.py | 1 | 2120 | """
Django settings for mysite project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
imp... | mit | -8,617,119,388,000,631,000 | 23.941176 | 71 | 0.723113 | false |
labase/brython_crafty | src/crafty/graphics.py | 1 | 7243 | #! /usr/bin/env python
# -*- coding: UTF8 -*-
"""
############################################################
Graphic handling classes
############################################################
:Author: *Carlo E. T. Oliveira*
:Contact: carlo@nce.ufrj.br
:Date: 2014/09/17
:Status: This is a "work in progress"
:Revis... | gpl-2.0 | -4,888,606,017,845,747 | 31.195556 | 115 | 0.597542 | false |
joa/haxe-sublime2-bundle | features/haxe_create_type.py | 1 | 3178 | import sublime_plugin
import sublime
import os
try: # Python 3
from ..HaxeHelper import HaxeComplete_inst, isType
except (ValueError): # Python 2
from HaxeHelper import HaxeComplete_inst, isType
class HaxeCreateType( sublime_plugin.WindowCommand ):
classpath = None
currentFile = None
currentSrc ... | apache-2.0 | 42,504,940,573,944,810 | 27.890909 | 118 | 0.499056 | false |
uclouvain/osis | base/tests/ddd/test_business_validator.py | 1 | 7504 | ##############################################################################
#
# OSIS stands for Open Student Information System. It's an application
# designed to manage the core business of higher education institutions,
# such as universities, faculties, institutes and professional schools.
# The core ... | agpl-3.0 | -1,827,118,415,433,600,000 | 41.630682 | 116 | 0.682927 | false |
abhikeshav/ydk-py | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ipv4_acl_cfg.py | 1 | 80123 | """ Cisco_IOS_XR_ipv4_acl_cfg
This module contains a collection of YANG definitions
for Cisco IOS\-XR ipv4\-acl package configuration.
This module contains definitions
for the following management objects\:
ipv4\-acl\-and\-prefix\-list\: IPv4 ACL configuration data
Copyright (c) 2013\-2015 by Cisco Systems, Inc.
... | apache-2.0 | -9,191,342,410,181,101,000 | 41.938371 | 225 | 0.433109 | false |
hasgeek/funnel | funnel/models/reorder_mixin.py | 1 | 5123 | from __future__ import annotations
from typing import TypeVar, Union
from uuid import UUID
from coaster.sqlalchemy import Query
from . import db
__all__ = ['ReorderMixin']
# Use of TypeVar for subclasses of ReorderMixin as defined in this mypy ticket:
# https://github.com/python/mypy/issues/1212
Reorderable = Typ... | agpl-3.0 | 1,974,439,064,453,346,300 | 40.314516 | 88 | 0.626586 | false |
csparkresearch/ExpEYES17-Qt | SPARK17/textManual/MarkdownPP/Processor.py | 1 | 2387 | # Copyright 2015 John Reese
# Licensed under the MIT license
from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
import sys
if sys.version_info[0] != 2:
basestring = str
class Processor:
"""
Framework for allowing modules to modify the in... | mit | -5,170,128,148,573,232,000 | 29.602564 | 79 | 0.600335 | false |
rocky/python3-trepan | trepan/processor/command/ipython.py | 1 | 6554 | # -*- coding: utf-8 -*-
# Copyright (C) 2009-2010, 2013, 2015, 2017, 2020 Rocky Bernstein
#
# 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... | gpl-3.0 | 5,708,448,502,736,158,000 | 29.769953 | 88 | 0.623741 | false |
alcides/rdflib | rdflib/syntax/parsers/rdfa/state.py | 1 | 20868 | # -*- coding: utf-8 -*-
"""
Parser's execution context (a.k.a. state) object and handling. The state includes:
- dictionary for namespaces. Keys are the namespace prefixes, values are RDFLib Namespace instances
- language, retrieved from C{@xml:lang}
- URI base, determined by <base> (or set explicitly). This is ... | bsd-3-clause | 117,368,649,494,514,380 | 47.983568 | 312 | 0.592658 | false |
Connexions/openstax-cms | openstax/settings/base.py | 1 | 11195 | # Django settings for openstax project.
import os
import sys
import raven
import logging.config
from django.utils.log import DEFAULT_LOGGING
PROJECT_ROOT = os.path.join(os.path.dirname(__file__), '..', '..')
BASE_DIR = PROJECT_ROOT
# check if running local dev server - else default to DEBUG=False
if len(sys.argv) > ... | agpl-3.0 | -222,336,772,868,262,720 | 30.183844 | 303 | 0.677177 | false |
LTD-Beget/sprutio-rpc | lib/FileManager/workers/local/moveToWebDav.py | 1 | 5842 | import os
import shutil
import threading
import time
import traceback
from lib.FileManager.FM import REQUEST_DELAY
from lib.FileManager.WebDavConnection import WebDavConnection
from lib.FileManager.workers.baseWorkerCustomer import BaseWorkerCustomer
class MoveToWebDav(BaseWorkerCustomer):
def __init__(self, sou... | gpl-3.0 | -9,210,427,962,494,208,000 | 37.85906 | 111 | 0.518135 | false |
dhylands/upy-examples | rotary.py | 1 | 2290 | import pyb
class rotary():
def __init__(self,Apin='X21',Bpin='X22'):
self.B = pyb.Pin(Bpin)
self.A = pyb.Pin(Apin)
self.prevA = self.A.value()
self.prevB = self.B.value()
self.CWcount = 0
self.CCWcount = 0
self.position = 0
self.Bint = pyb.ExtInt(... | mit | 4,238,425,825,374,999,600 | 26.926829 | 98 | 0.448472 | false |
mozvip/Sick-Beard | sickbeard/versionChecker.py | 1 | 18840 | # Author: Nic Wolfe <nic@wolfeden.ca>
# URL: http://code.google.com/p/sickbeard/
#
# This file is part of Sick Beard.
#
# Sick Beard 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... | gpl-3.0 | -4,442,054,767,377,110,000 | 34.941176 | 286 | 0.578556 | false |
Transkribus/TranskribusDU | TranskribusDU/gcn/avg_checkpoints.py | 1 | 4652 | # Taken from https://github.com/tensorflow/tensor2tensor/blob/master/tensor2tensor/utils/avg_checkpoints.py
# coding=utf-8
# Copyright 2018 The Tensor2Tensor Authors.
#
# 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... | bsd-3-clause | -3,850,041,144,974,980,000 | 37.775 | 107 | 0.678848 | false |
necozay/tulip-control | tulip/transys/export/graph2dot.py | 1 | 17106 | # Copyright (c) 2013-2014 by California Institute of Technology
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice,... | bsd-3-clause | -4,901,562,265,867,219,000 | 29.169312 | 76 | 0.592365 | false |
moto-timo/robotframework | src/robot/utils/robotpath.py | 1 | 5342 | # Copyright 2008-2015 Nokia Solutions and Networks
#
# 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 l... | apache-2.0 | 160,849,017,757,947,400 | 35.094595 | 83 | 0.647885 | false |
Edraak/edraak-platform | lms/djangoapps/course_api/tests/test_forms.py | 1 | 4312 | """
Tests for Course API forms.
"""
from itertools import product
from urllib import urlencode
import ddt
from django.contrib.auth.models import AnonymousUser
from django.http import QueryDict
from openedx.core.djangoapps.util.test_forms import FormTestMixin
from student.tests.factories import UserFactory
from xmodu... | agpl-3.0 | -8,221,865,995,090,685,000 | 27.368421 | 91 | 0.612013 | false |
tastyproject/tasty | tasty/tastyc/tastyc.py | 1 | 9949 | # -*- coding: utf-8 -*-
"""tastyc configuration module"""
import copy
import sys
import os.path
from ast import *
import gc
from tasty import state
from tasty.exc import TastySyntaxError
from tasty.types import *
from tasty.tastyc import bases
from tasty.tastyc.codegen import to_source
from tasty.tastyc.analyzati... | gpl-3.0 | -1,735,557,266,108,462,600 | 34.280142 | 212 | 0.679666 | false |
mitsei/dlkit | dlkit/json_/authorization/searches.py | 1 | 11337 | """JSON implementations of authorization searches."""
# pylint: disable=no-init
# Numerous classes don't require __init__.
# pylint: disable=too-many-public-methods,too-few-public-methods
# Number of methods are defined in specification
# pylint: disable=protected-access
# Access to protected methods allow... | mit | -2,990,941,319,276,016,000 | 40.988889 | 121 | 0.659963 | false |
chrisguiney/mudpy | mudpy/character/__init__.py | 1 | 1901 | from functools import partial
from .. import races
from .. import classes
from ..magic import SpellBook
class Character(object):
def __init__(self, name, description, equipment, inventory, attributes, level=1, race="Human", base_class="Fighter",
spellbook=None):
"""
@param name... | apache-2.0 | -1,466,427,402,006,687,000 | 27.818182 | 120 | 0.624934 | false |
kevinkahn/softconsole | screens/specificscreens/weatherscreen.py | 1 | 6148 | from collections import OrderedDict
import debug
import logsupport
from screens import screen
import screens.__screens as screens
from keyspecs import toucharea
from utils import utilities, fonts, hw
from stores import valuestore
from utils.utilfuncs import wc, fmt
from utils.weatherfromatting import CreateWeathBlock
... | apache-2.0 | 1,973,004,741,115,924,700 | 40.540541 | 141 | 0.658913 | false |
TotalVerb/territory | territory/recurser.py | 1 | 3793 | # ------------------------------------------------------------------------
#
# This file is part of Territory.
#
# Territory 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 ... | gpl-3.0 | -9,116,925,893,547,967,000 | 39.351064 | 78 | 0.561033 | false |
CERNDocumentServer/invenio | modules/weblinkback/lib/weblinkback_dblayer.py | 1 | 13993 | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2011, 2012 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 Foundation; either version 2 of the
# License, or (at your option) any... | gpl-2.0 | -5,230,928,770,171,948,000 | 30.874715 | 128 | 0.517616 | false |
mburakergenc/Malware-Detection-using-Machine-Learning | cuckoo/analyzer/windows/analyzer.py | 1 | 30957 | # Copyright (C) 2010-2013 Claudio Guarnieri.
# Copyright (C) 2014-2016 Cuckoo Foundation.
# This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org
# See the file 'docs/LICENSE' for copying permission.
import datetime
import os
import sys
import socket
import struct
import pkgutil
import logging
import hash... | mit | -527,626,930,496,597,250 | 37.030713 | 91 | 0.565656 | false |
lem9/weblate | openshift/wsgi_install.py | 1 | 3249 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright © 2014 Daniel Tschan <tschan@puzzle.ch>
#
# 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 Foun... | gpl-3.0 | -2,372,140,518,733,032,000 | 24.178295 | 77 | 0.641933 | false |
gibsjose/SpectrumSite | Utilities/SteeringGenerator.py | 1 | 3470 | #!/usr/bin/python
import sys
# Input dictionary from KVP file
d = {}
# Defaults dictionary
defaults = {}
# Checks whether the key exists in the input dictionary
def Write(_key, _file):
if _key in d:
if not d[_key].strip():
_file.write("; ")
_file.write(_key + ' = ' + d[_key])
el... | mit | -3,632,527,644,091,879,400 | 22.605442 | 64 | 0.627089 | false |
mclaughlin6464/pearce | bin/mcmc/pearce_mcmc_xigg_emu1_shot.py | 1 | 2151 | from pearce.emulator import OriginalRecipe, ExtraCrispy, SpicyBuffalo
from pearce.inference import run_mcmc_iterator
import numpy as np
from os import path
import cPickle as pickle
#training_file = '/u/ki/swmclau2/des/xi_cosmo_trainer/PearceRedMagicXiCosmoFixedNd.hdf5'
training_file = '/scratch/users/swmclau2/xi_zheng... | mit | -2,329,669,638,456,525,000 | 32.609375 | 143 | 0.686657 | false |
m4rx9/rna-pdb-tools | rna_tools/tools/PyMOL4RNA/libs/show_contacts.py | 1 | 15707 | #!/usr/bin/python
"""
PyMOL plugin that provides show_contacts command and GUI
for highlighting good and bad polar contacts.
Factored out of clustermols by Matthew Baumgartner.
The advantage of this package is it requires many fewer dependencies.
Modified: Marcin Magnus 2020
Source <https://pymolwiki.org/index.p... | mit | 992,679,597,646,326,900 | 39.903646 | 144 | 0.569364 | false |
Axelrod-Python/axelrod-evolver | tests/integration/test_cycler_integration.py | 1 | 1543 | import os
import tempfile
import unittest
import axelrod as axl
import axelrod_dojo as axl_dojo
class TestCyclerParams(unittest.TestCase):
def setUp(self):
pass
def test_default_single_opponent_e2e(self):
temp_file = tempfile.NamedTemporaryFile()
# we will set the objective to be
... | mit | 2,311,307,298,383,570,400 | 33.288889 | 101 | 0.573558 | false |
airelil/pywinauto | pywinauto/findbestmatch.py | 1 | 20748 | # GUI Application automation and testing library
# Copyright (C) 2006-2018 Mark Mc Mahon and Contributors
# https://github.com/pywinauto/pywinauto/graphs/contributors
# http://pywinauto.readthedocs.io/en/latest/credits.html
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or with... | bsd-3-clause | 5,249,343,812,821,854,000 | 34.272727 | 118 | 0.581309 | false |
RIKILT/CITESspeciesDetect | CheckCriteriaBlastSingleSample.py | 1 | 5204 | #!/usr/bin/env python
# Script which test the different filtering thresholds per barcode
# Returns per barcode the detected species which match the criteria
import sys
import os
### Get the OTU abundance from the file (This is per barcode)
def GetOTUabundance(statFile, pOTU):
# Local variables
f = open(statFile)
... | bsd-3-clause | -4,412,462,166,043,438,600 | 26.828877 | 94 | 0.62452 | false |
jberci/resolwe | resolwe/flow/views/data.py | 1 | 8515 | """Data viewset."""
from elasticsearch_dsl.query import Q
from django.db import transaction
from django.db.models import Count
from rest_framework import exceptions, mixins, status, viewsets
from rest_framework.decorators import list_route
from rest_framework.response import Response
from resolwe.elastic.composer im... | apache-2.0 | -4,215,530,313,429,322,000 | 43.348958 | 116 | 0.601996 | false |
astroclark/bhextractor | bin/bhex_scalemassdemo.py | 1 | 4019 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2014-2015 James Clark <james.clark@ligo.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; either version 2 of the License, or
... | gpl-2.0 | -3,245,627,533,540,735,000 | 30.645669 | 90 | 0.693705 | false |
jeremy24/rnn-classifier | letter_tools.py | 1 | 1759 | import glob
import imghdr
import os
import PIL
from PIL import ImageFont
from PIL import Image
from PIL import ImageDraw
def _is_ascii(s):
return all(ord(c) < 128 for c in s)
def text2png(text, fullpath, color="#FFF", bgcolor="#000",
fontfullpath="assets/fonts/Oswald-Bold.ttf",
fontsize=35, leftpadding=3,... | mit | -5,027,793,800,516,839,000 | 25.253731 | 104 | 0.667425 | false |
mihaisoloi/conpaas | conpaas-director/setup.py | 1 | 2293 | #!/usr/bin/env python
import os
import sys
import shutil
from pwd import getpwnam
from grp import getgrnam
from setuptools import setup
from pkg_resources import Requirement, resource_filename
CPSVERSION = '1.2.0'
CONFDIR = '/etc/cpsdirector'
if not os.geteuid() == 0:
CONFDIR = 'cpsdirectorconf'
long_descript... | bsd-3-clause | 3,412,883,459,429,648,400 | 34.828125 | 115 | 0.627126 | false |
sssilver/angler | rod/rod/handler/lesson.py | 1 | 3347 | import flask
import decimal
import dateutil.parser
import flask.ext.login
import rod
import rod.model.student
import rod.model.lesson
import rod.model.group
import rod.model.company
import rod.model.transaction
import rod.model.schemas
lesson_handler = flask.Blueprint('lesson', __name__)
@lesson_handler.route('/le... | bsd-3-clause | -5,314,708,541,440,655,000 | 35.78022 | 105 | 0.689573 | false |
henry-ngo/VIP | vip_hci/preproc/skysubtraction.py | 1 | 4110 | #! /usr/bin/env python
"""
Module with sky subtraction function.
"""
from __future__ import division
__author__ = 'C. Gomez @ ULg'
__all__ = ['cube_subtract_sky_pca']
import numpy as np
def cube_subtract_sky_pca(sci_cube, sky_cube, mask, ref_cube=None, ncomp=2):
""" PCA based sky subtraction.
Parameters
... | mit | 7,069,799,869,590,812,000 | 36.027027 | 82 | 0.592457 | false |
tiborsimko/invenio-oauthclient | tests/conftest.py | 1 | 10459 | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2015-2018 CERN.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""Pytest configuration."""
from __future__ import absolute_import, print_function
... | mit | 5,920,141,418,307,998,000 | 28.461972 | 78 | 0.599292 | false |
justrypython/EAST | svm_model_v2.py | 1 | 2801 | #encoding:UTF-8
import os
import numpy as np
import sys
import cv2
import matplotlib.pyplot as plt
from sklearn.svm import NuSVC, SVC
import datetime
import pickle
#calculate the area
def area(p):
p = p.reshape((-1, 2))
return 0.5 * abs(sum(x0*y1 - x1*y0
for ((x0, y0), (x1, y1)) in segme... | gpl-3.0 | 3,479,348,540,319,028,700 | 29.129032 | 69 | 0.551946 | false |
BorgERP/borg-erp-6of3 | l10n_hr/l10n_hr_fiskal/__openerp__.py | 1 | 2505 | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Module: l10n_hr_fiskal
# Author: Davor Bojkić
# mail: bole@dajmi5.com
# Copyright (C) 2012- Daj Mi 5,
# http://www.dajmi5.com
# Co... | agpl-3.0 | 3,083,689,587,987,897,000 | 35.26087 | 78 | 0.544764 | false |
dmort27/panphon | panphon/test/test_permissive_methods.py | 1 | 2679 | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals, division, absolute_import
import unittest
from panphon import permissive
class TestFeatureTableAPI(unittest.TestCase):
def setUp(self):
self.ft = permissive.PermissiveFeatureTable()
def test_fts(self):
self.ass... | mit | -7,131,835,215,741,403,000 | 32.074074 | 84 | 0.592012 | false |
summychou/CSForOSS | CA/OSSQt_DataMasterRigster.py | 1 | 2535 | # -*- coding: utf-8 -*-
# import sqlite3 as sqlite
import sys
import uuid
from pysqlcipher3 import dbapi2 as sqlite
def main():
print("***************** Welcome to OSS DataMaster-Rigster System *******************")
print("* *")
pri... | mit | 9,171,648,892,522,189,000 | 45.592593 | 119 | 0.394036 | false |
Microvellum/Fluid-Designer | win64-vc/2.78/scripts/startup/fluid_operators/fd_api_doc.py | 1 | 10496 | '''
Created on Jan 27, 2017
@author: montes
'''
import bpy
from inspect import *
import mv
import os
import math
from reportlab.pdfgen import canvas
from reportlab.lib.pagesizes import legal,inch,cm
from reportlab.platypus import Image
from reportlab.platypus import Paragraph,Table,TableStyle
from reportlab.platypus ... | gpl-3.0 | -1,779,006,538,429,056,000 | 35.447917 | 118 | 0.477229 | false |
sol/pygments | tests/test_julia.py | 1 | 1791 | # -*- coding: utf-8 -*-
"""
Julia Tests
~~~~~~~~~~~
:copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import unittest
from pygments.lexers import JuliaLexer
from pygments.token import Token
class JuliaTests(unittest.TestCase):
def set... | bsd-2-clause | 331,492,644,497,758,000 | 29.844828 | 71 | 0.472331 | false |
Ramyak/CodingPractice | algo_practice/sort/merge_sort.py | 1 | 1251 | #!/usr/bin/env python
a = [5, 3, 6, 3, 1, 2]
def merge_sort(in_array, left, right):
print 'Before: ({} , {}) : {}'.format(str(left), str(right), (in_array[left:right + 1]))
if right - left >= 1:
mid = ((right - left) / 2) + left
if mid > right:
return
merge_sort(in_array, ... | gpl-2.0 | 6,766,558,600,085,191,000 | 31.076923 | 92 | 0.46283 | false |
AMOboxTV/AMOBox.LegoBuild | plugin.video.exodus/resources/lib/sources/ninemovies_mv_tv.py | 1 | 7333 | # -*- coding: utf-8 -*-
'''
Exodus Add-on
Copyright (C) 2016 Exodus
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 l... | gpl-2.0 | -7,445,599,848,500,218,000 | 35.849246 | 157 | 0.517114 | false |
LibraryOfCongress/gazetteer | etl/parser/hmdb.py | 1 | 1998 | import sys, json, os, datetime
from shapely.geometry import asShape, mapping
from fiona import collection
from core import Dump
import core
import codecs
#name, cmt, desc, link1_href
def extract_shapefile(shapefile, uri_name, simplify_tolerance=None):
for feature in collection(shapefile, "r"):
... | mit | -4,251,280,113,043,998,000 | 24.615385 | 89 | 0.553554 | false |
lucasmello/Driloader | driloader/browser/internet_explorer.py | 1 | 4135 | # pylint: disable=anomalous-backslash-in-string, too-many-locals,
# pylint: disable=multiple-statements
"""
Module that abstract operations to handle Internet Explorer versions.
"""
import os
import platform
import re
import xml.etree.ElementTree as ET
import requests
from driloader.browser.exceptions import Brow... | mit | -4,724,605,588,114,314,000 | 32.893443 | 77 | 0.564692 | false |
PyBossa/pybossa | pybossa/auth/webhook.py | 1 | 1833 | # -*- coding: utf8 -*-
# This file is part of PYBOSSA.
#
# Copyright (C) 2015 SF Isle of Man Limited
#
# PYBOSSA is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at... | agpl-3.0 | -6,669,273,108,467,857,000 | 33.584906 | 77 | 0.67976 | false |
spring01/libPSI | lib/python/grendel/chemistry/molecule_stub.py | 1 | 11089 | # FAILED ATTEMPT AT REFORMING MOLECULESTUB
# Perhaps I'll come back to this later...
#from grendel import type_checking_enabled, sanity_checking_enabled
#from grendel.chemistry.atom import Atom
#from grendel.gmath import magnitude, angle_between_vectors
#from grendel.gmath.matrix import Matrix
#from grendel.util.decora... | gpl-2.0 | 2,493,225,813,903,470,000 | 43.534137 | 139 | 0.541257 | false |
flying-sheep/omnitool | version.py | 1 | 1888 | from functools import total_ordering
@total_ordering
class Version():
"""Organization Class for comparable Version System
Version integer uses decimal shift:
2 digits major version, 2 digits minor version, 2 digits micro version
170100 -> 17.1.0
"""
def __init__(self, in... | mit | -4,095,968,977,931,674,000 | 29.95082 | 86 | 0.533898 | false |
domthu/gasistafelice | gasistafelice/auth/__init__.py | 1 | 2945 | from django.utils.translation import ugettext as _, ugettext_lazy
from django.db.models.signals import post_syncdb
import permissions
from permissions.utils import register_role, register_permission
## role-related constants
NOBODY = 'NOBODY'
GAS_MEMBER = 'GAS_MEMBER'
GAS_REFERRER_SUPPLIER = 'GAS_REFERRER_SUPPLIER'
... | agpl-3.0 | 7,373,385,643,594,439,000 | 26.268519 | 86 | 0.683531 | false |
cheral/orange3 | Orange/canvas/application/outputview.py | 6 | 6738 | """
"""
import traceback
from AnyQt.QtWidgets import QWidget, QPlainTextEdit, QVBoxLayout, QSizePolicy
from AnyQt.QtGui import QTextCursor, QTextCharFormat, QFont
from AnyQt.QtCore import Qt, QObject, QCoreApplication, QThread, QSize
from AnyQt.QtCore import pyqtSignal as Signal
class TerminalView(QPlainTextEdit):
... | bsd-2-clause | 1,927,550,279,089,523,200 | 28.552632 | 79 | 0.624221 | false |
sumpfgottheit/arps | arps/views.py | 1 | 3504 | from flask import render_template, request
import numbers
from pprint import pprint
from arps.restserver import app, db, ApiException, apiview
from arps.globals import *
from arps.validation import get_schemas_for_endpoint
from arps.models import *
METHODS = ['GET', 'POST', 'PUT', 'DELETE']
@app.route('/')
def main(... | mit | 2,719,949,691,329,565,000 | 33.019417 | 130 | 0.619863 | false |
repotvsupertuga/tvsupertuga.repository | script.module.streamtvsupertuga/lib/resources/lib/sources/pl/ekinomaniak.py | 1 | 4540 | # -*- coding: UTF-8 -*-
import urlparse
from resources.lib.modules import cleantitle
from resources.lib.modules import client
from resources.lib.modules import source_utils
import urllib
class source:
def __init__(self):
self.priority = 1
self.language = ['pl']
self.domains = ['ekinomani... | gpl-2.0 | -6,697,926,578,966,888,000 | 38.137931 | 327 | 0.490969 | false |
liresearchgroup/submtr | submtr/update.py | 1 | 7634 | """
submtr.update
~~~~~~~~~~~~~
Automatic program updates for submtr.
The ``AutoUpdtate()`` class contains the ``update()`` method to determine
if a new version of submtr is available for the update channel specied in
the ``SUBMTR_CONFIG`` file.
Automatic update checks are run in ... | mit | -3,210,622,861,708,365,300 | 34.840376 | 79 | 0.581085 | false |
MatthewWilkes/reportlab | demos/colors/colortest.py | 1 | 2725 | #Copyright ReportLab Europe Ltd. 2000-2012
#see license.txt for license details
__version__='''$Id$'''
import reportlab.pdfgen.canvas
from reportlab.lib import colors
from reportlab.lib.units import inch
def run():
c = reportlab.pdfgen.canvas.Canvas('colortest.pdf')
#do a test of CMYK interspersed with RGB
... | bsd-3-clause | 7,394,168,289,970,068,000 | 24.952381 | 81 | 0.601468 | false |
Brazelton-Lab/bio_utils | bio_utils/__init__.py | 1 | 1086 | #! /usr/bin/env python3
"""Software library containing common bioinformatic functions
Copyright:
__init__.py software library containing common bioinformatic functions
Copyright (C) 2015 William Brazelton, Alex Hyer
This program is free software: you can redistribute it and/or modify
it under the t... | gpl-3.0 | -5,207,140,348,901,563,000 | 36.448276 | 74 | 0.726519 | false |
iamgp/pyCa | pyCa/Graph.py | 1 | 2559 | from . import *
# Graphics Stuff
import matplotlib.pyplot as plt
class Graph(object):
"""docstring for Graph"""
def __init__(self, Experiment):
self.Experiment = Experiment
self.numberOfStimulantsAdded = 0
self.nameToUse = 0
def plot(self):
print ''
log(self.Exp... | gpl-3.0 | 8,551,664,604,400,707,000 | 31.392405 | 77 | 0.490035 | false |
neuropoly/spinalcordtoolbox | spinalcordtoolbox/scripts/sct_maths.py | 1 | 20433 | #!/usr/bin/env python
#########################################################################################
#
# Perform mathematical operations on images
#
# ---------------------------------------------------------------------------------------
# Copyright (c) 2015 Polytechnique Montreal <www.neuro.polymtl.ca>
# A... | mit | 2,048,659,252,759,735,300 | 39.222441 | 192 | 0.597856 | false |
Ultimaker/Cura | plugins/DigitalLibrary/src/DFFileExportAndUploadManager.py | 1 | 19837 | # Copyright (c) 2021 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
import json
import threading
from json import JSONDecodeError
from typing import List, Dict, Any, Callable, Union, Optional
from PyQt5.QtCore import QUrl
from PyQt5.QtGui import QDesktopServices
from PyQt5.QtNetwork import ... | lgpl-3.0 | -487,210,490,165,346,050 | 52.182306 | 188 | 0.616978 | false |
scotthuang1989/Python-3-Module-of-the-Week | concurrency/asyncio/asyncio_echo_server_protocol.py | 1 | 1651 | import asyncio
import logging
import sys
SERVER_ADDRESS = ('localhost', 10000)
logging.basicConfig(
level=logging.DEBUG,
format='%(name)s: %(message)s',
stream=sys.stderr,
)
log = logging.getLogger('main')
event_loop = asyncio.get_event_loop()
class EchoServer(asyncio.Protocol):
def connection_made... | apache-2.0 | -3,189,786,440,921,151,000 | 27.964912 | 64 | 0.654755 | false |
pymanopt/pymanopt | pymanopt/manifolds/__init__.py | 1 | 1111 | __all__ = [
"ComplexCircle",
"ComplexGrassmann",
"Elliptope",
"Euclidean",
"FixedRankEmbedded",
"Grassmann",
"Oblique",
"PSDFixedRank",
"PSDFixedRankComplex",
"Product",
"SkewSymmetric",
"SpecialOrthogonalGroup",
"Sphere",
"SphereSubspaceComplementIntersection",
... | bsd-3-clause | 2,313,783,084,934,162,400 | 29.861111 | 66 | 0.741674 | false |
Tenrec-Builders/pi-scan | src/stick.py | 1 | 3424 | import dbus
def search():
bus = dbus.SystemBus()
udisks = dbus.Interface(
bus.get_object('org.freedesktop.UDisks2',
'/org/freedesktop/UDisks2'),
'org.freedesktop.DBus.ObjectManager')
listDevices = udisks.get_dbus_method('GetManagedObjects')
result = []
for key, value in listDevices... | bsd-2-clause | 8,485,670,437,875,832,000 | 29.846847 | 68 | 0.592874 | false |
dhalleine/tensorflow | tensorflow/contrib/layers/python/layers/optimizers.py | 1 | 9885 | # Copyright 2015 The TensorFlow Authors. 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 applica... | apache-2.0 | 2,485,348,243,574,969,000 | 42.165939 | 80 | 0.653111 | false |
lab-robotics-unipv/pyFUZZYgenerator | core/ModelType.py | 1 | 2708 | class ModelType:
def __init__(self):
self.type = None
self.properties = {}
self.models = []
self.logic_function_name = None
self.init_function_name = None
self.output_function_name = None
def __eq__(self, other):
if other.type == self.type:
re... | lgpl-3.0 | 2,298,482,648,726,240,300 | 26.08 | 76 | 0.57644 | false |
sippeproject/vagoth | vagoth/virt/utils/mc_json_rpc.py | 1 | 1790 | #!/usr/bin/python
#
# Vagoth Cluster Management Framework
# Copyright (C) 2013 Robert Thomson
#
# 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 2.1 of the License, or (a... | lgpl-2.1 | 1,314,612,439,898,897,400 | 34.098039 | 80 | 0.694413 | false |
slackeater/anal-beh | firefoxSelenium.py | 1 | 1686 | #! /usr/bin/env python
import sys
from classes.sitemanager import SiteManager
from classes.gui.main import MainWindow
from classes.printer import Printer
from PyQt4 import QtGui
import argparse
__author__ = 'snake'
def main():
if len(sys.argv) == 1:
app = QtGui.QApplication(sys.argv)
main = Main... | gpl-2.0 | 5,399,769,859,326,694,000 | 30.222222 | 116 | 0.544484 | false |
globz/kitchen-cli | setup.py | 1 | 1945 | """Packaging settings."""
from codecs import open
from os.path import abspath, dirname, join
from subprocess import call
from setuptools import Command, find_packages, setup
from kitchen import __version__
this_dir = abspath(dirname(__file__))
with open(join(this_dir, 'README.md'), encoding='utf-8') as file:
... | gpl-2.0 | 7,183,078,768,081,821,000 | 26.785714 | 86 | 0.590231 | false |
levilucio/SyVOLT | ECore_Copier_MM/transformation/HEPackage.py | 1 | 2231 | from core.himesis import Himesis
import uuid
class HEPackage(Himesis):
def __init__(self):
"""
Creates the himesis graph representing the DSLTrans rule EPackage.
"""
# Flag this instance as compiled now
self.is_compiled = True
super(HEPackage, sel... | mit | 5,270,245,473,863,462,000 | 27.602564 | 163 | 0.469745 | false |
noelevans/sandpit | wordsnake/wordsnaketest.py | 1 | 2233 | from wordsnake import flattern, getLeaves, listOfMapsToMap
from wordsnake import possibleSingleShift, snake, targetFound, validWord
import unittest
class WordSnakeTest( unittest.TestCase ):
def setup( self ):
pass
def test_validWord( self ):
self.assertTrue( validWord( 'hello' ) )
self.assertFalse( val... | mit | 2,287,705,511,824,483,600 | 28.773333 | 109 | 0.464845 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.