repo_name stringlengths 6 61 | path stringlengths 4 230 | copies stringlengths 1 3 | size stringlengths 4 6 | text stringlengths 1.01k 850k | license stringclasses 15
values | hash int64 -9,220,477,234,079,998,000 9,219,060,020B | line_mean float64 11.6 96.6 | line_max int64 32 939 | alpha_frac float64 0.26 0.9 | autogenerated bool 1
class | ratio float64 1.62 6.1 | config_test bool 2
classes | has_no_keywords bool 2
classes | few_assignments bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
madAsket/levitin_algorithms | src/composition_counting_sort.py | 1 | 1750 | # -*- coding: utf-8 -*-
# сортировка массива методом подсчета сравнений
import random
# [65, 59, 46, 62, 14, 25, 78, 22, 47, 79]
# [7, 5, 3, 6, 0, 2, 8, 1, 4, 9]
def ccs(array):
# Создаем массив с нулевыми весами, размером с оригинальный массив
cnt = [0 for i in range(len(array))]
print cnt
... | gpl-3.0 | 1,829,407,590,805,079,600 | 31.642857 | 112 | 0.579562 | false | 1.929577 | false | false | false |
RedFantom/ttkwidgets | ttkwidgets/frames/scrolledframe.py | 1 | 4442 | """
Author: RedFantom
License: GNU GPLv3
Source: This repository
"""
# The following sites were used for reference in the creation of this file:
# http://code.activestate.com/recipes/578894-mousewheel-binding-to-scrolling-area-tkinter-multi/
# http://tkinter.unpythonic.net/wiki/VerticalScrolledFrame
import tkinter as t... | gpl-3.0 | -2,579,756,312,360,639,000 | 41.304762 | 118 | 0.644529 | false | 4.034514 | true | false | false |
dswd/Swine | shortcutlib.py | 1 | 5570 | ############################################################################
# Copyright (C) 2007 by Dennis Schwerdel, Thomas Schmidt #
# #
# #
# This pr... | gpl-2.0 | 2,456,863,744,634,209,000 | 49.645455 | 375 | 0.6307 | false | 3.570513 | false | false | false |
carlosabalde/vcc | vcc/ui.py | 1 | 5651 | # -*- coding: utf-8 -*-
'''
:copyright: (c) 2014 by Carlos Abalde, see AUTHORS.txt for more details.
'''
from __future__ import absolute_import
import datetime
import curses
import threading
class UI(threading.Thread):
KEY_ESC = 27
MIN_WIDTH = 12
INTEGER_FORMAT = '%d'
DECIMAL_FORMAT = '%.5f'
d... | bsd-2-clause | -4,528,734,693,311,094,000 | 35.458065 | 104 | 0.488409 | false | 4.091962 | false | false | false |
anentropic/django-conditional-aggregates | djconnagg/aggregates.py | 1 | 7441 | import django
from django.db.models import Aggregate, Q
from django.db.models.sql.aggregates import Aggregate as SQLAggregate
DJANGO_MAJOR, DJANGO_MINOR, _, _, _ = django.VERSION
def transform_q(q, query):
"""
Replaces (lookup, value) children of Q with equivalent WhereNode objects.
This is a pre-prep ... | mit | -7,850,309,308,230,748,000 | 30.66383 | 78 | 0.575326 | false | 4.194476 | false | false | false |
6si/shipwright | shipwright/_lib/cache.py | 1 | 6177 | from __future__ import absolute_import
import os
import sys
import traceback
from docker import errors as d_errors
from requests import exceptions as requests_exceptions
from . import compat, docker, push, tar
def pull(client, *args, **kwargs):
try:
for evt in client.pull(*args, **kwargs):
... | apache-2.0 | -5,070,552,965,968,544,000 | 26.699552 | 76 | 0.525174 | false | 4.242445 | false | false | false |
mpoussevin/NMFViz | nmf_viz.py | 1 | 13049 | #!/usr/bin/python
import numpy as np
import matplotlib.pyplot as plt
import random
import logging
import simplejson as json
import re
import glob
import os
import gzip
import struct
import array
import pickle
def load_pgm(filename, byteorder=">"):
"""Return image data from a raw PGM file as numpy array.
Forma... | mit | 2,806,228,678,834,713,000 | 41.783607 | 120 | 0.617978 | false | 3.316137 | true | false | false |
spthaolt/socorro | webapp-django/crashstats/topcrashers/views.py | 1 | 10933 | import datetime
import isodate
from collections import defaultdict
from django import http
from django.conf import settings
from django.shortcuts import render, redirect
from django.utils import timezone
from django.utils.http import urlquote
from session_csrf import anonymous_csrf
from crashstats.crashstats import... | mpl-2.0 | -1,486,760,568,614,625,500 | 32.53681 | 78 | 0.562792 | false | 4.076435 | false | false | false |
rkoshak/sensorReporter | gpio/rpi_gpio.py | 1 | 7551 | # Copyright 2020 Richard Koshak
#
# 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 writin... | apache-2.0 | -4,835,190,813,067,179,000 | 40.489011 | 98 | 0.602039 | false | 4.097124 | false | false | false |
iogf/vy | vyapp/plugins/tidy.py | 1 | 1835 | """
Overview
========
Show errors in html files by running Tidy.
Extern dependencies:
Html Tidy
Key-Commands
============
Namespace: tidy
Mode: HTML
Event: <Key-h>
Description: Run Tidy on the current html file and display
a dialog window with all encountered errors. When the dialog
window is shown with the er... | mit | 1,064,562,167,593,228,000 | 22.831169 | 78 | 0.637602 | false | 3.528846 | false | false | false |
tanmaykm/edx-platform | lms/djangoapps/verify_student/admin.py | 7 | 2230 | # encoding: utf-8
"""
Admin site configurations for verify_student.
"""
from config_models.admin import ConfigurationModelAdmin
from ratelimitbackend import admin
from lms.djangoapps.verify_student.models import (
IcrvStatusEmailsConfiguration,
SkippedReverification,
SoftwareSecurePhotoVerification,
Ve... | agpl-3.0 | 6,437,314,400,052,727,000 | 33.84375 | 95 | 0.70583 | false | 4.17603 | true | false | false |
leiferikb/bitpop | src/native_client/pnacl/driver/pnacl-abicheck.py | 4 | 1126 | #!/usr/bin/python
# Copyright (c) 2013 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# IMPORTANT NOTE: If you make local mods to this file, you must run:
# % pnacl/build.sh driver
# in order for them to take eff... | gpl-3.0 | 8,104,783,777,869,809,000 | 25.809524 | 73 | 0.693606 | false | 3.254335 | false | false | false |
andrew-lundgren/gwpy | docs/ex2rst.py | 1 | 3425 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) Duncan Macleod (2014)
#
# This file is part of GWpy.
#
# GWpy 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
#... | gpl-3.0 | -4,909,058,951,072,356,000 | 26.4 | 79 | 0.565255 | false | 3.896473 | false | false | false |
SolutionsCloud/apidoc | apidoc/factory/config.py | 1 | 1773 | import os
from apidoc.object.config import Config as ConfigObject
from apidoc.service.parser import Parser
from apidoc.service.merger import Merger
from apidoc.service.validator import Validator
from apidoc.lib.util.decorator import add_property
@add_property("validator", Validator)
@add_property("parser", Parser)
... | gpl-3.0 | 7,689,680,059,595,804,000 | 33.764706 | 110 | 0.620981 | false | 3.922566 | true | false | false |
timothycrosley/hug | hug/validate.py | 1 | 2551 | """hug/validate.py
Defines hugs built-in validation methods
Copyright (C) 2016 Timothy Edmund Crosley
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limi... | mit | -5,882,885,373,735,339,000 | 35.971014 | 112 | 0.698942 | false | 4.66362 | false | false | false |
Go-In/go-coup | web/signaldetect/signals.py | 1 | 3643 | from django.db.models.signals import pre_save, pre_delete, post_save, post_delete
from django.dispatch import receiver
from django.conf import settings
from django.contrib.auth.models import User, Group
import datetime
from usermanage.models import Customer
from customermanage.models import Coupon
from storemanage.mo... | mit | 1,063,608,146,051,341,400 | 33.046729 | 116 | 0.634642 | false | 3.557617 | false | false | false |
googleapis/googleapis-gen | google/ads/googleads/v6/googleads-py/google/ads/googleads/v6/services/services/ad_service/client.py | 1 | 21192 | # -*- 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 or... | apache-2.0 | -4,245,362,499,694,073,300 | 42.337423 | 106 | 0.616837 | false | 4.520478 | false | false | false |
chosenone75/Neural-Networks | DUCTextSummary/CNN4DUCSummary.py | 1 | 5220 | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Mon Apr 3 10:26:23 2017
@author: chosenone
CNN for DUC Doc Summmary
Structure:
A embedding lay,followed by a convolutional lay and a max-pooling lay,at last
regression(maybe) layer.
"""
import tensorflow as tf
import numpy as np
class CNN4DUCSummary(... | gpl-3.0 | -4,465,537,385,845,269,500 | 42.140496 | 126 | 0.499808 | false | 4.037123 | false | false | false |
scdoshi/django-bits | bits/general.py | 1 | 2707 | """
General utilities for django.
"""
###############################################################################
## Imports
###############################################################################
from django.conf import settings
from django.contrib.auth.models import Group, SiteProfileNotAvailable
from d... | bsd-2-clause | -1,473,195,700,488,016,100 | 32.8375 | 79 | 0.573328 | false | 4.580372 | false | false | false |
cjekel/USA_GDP_per_capita_inflation_adjust | plotCountryGNI.py | 1 | 3694 | import numpy as np
import matplotlib.pyplot as plt
years2 = np.array([1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011... | mit | -8,321,938,076,944,006,000 | 55.830769 | 911 | 0.784515 | false | 2.153936 | false | false | false |
infobloxopen/infoblox-netmri | infoblox_netmri/api/broker/v2_8_0/device_environment_monitor_broker.py | 16 | 69932 | from ..broker import Broker
class DeviceEnvironmentMonitorBroker(Broker):
controller = "device_environment_monitors"
def index(self, **kwargs):
"""Lists the available device environment monitors. Any of the inputs listed may be be used to narrow the list; other inputs will be ignored. Of the various ... | apache-2.0 | 471,652,885,452,120,700 | 54.238547 | 773 | 0.620088 | false | 4.474216 | false | false | false |
turbokongen/home-assistant | homeassistant/components/xbox/sensor.py | 9 | 2594 | """Xbox friends binary sensors."""
from functools import partial
from typing import Dict, List
from homeassistant.core import callback
from homeassistant.helpers.entity_registry import (
async_get_registry as async_get_entity_registry,
)
from homeassistant.helpers.typing import HomeAssistantType
from . import Xbo... | apache-2.0 | 5,337,372,128,086,291,000 | 30.253012 | 87 | 0.696608 | false | 3.94825 | false | false | false |
baharev/SDOPT | sdopt/representation/dag_util.py | 1 | 8916 | from __future__ import print_function
from array import array
from collections import defaultdict
import networkx as nx
import six
from ..nodes.types import is_sum_node, is_var_node
from ..nodes.attributes import NodeAttr
def dbg_info(dag, optional_callable=None):
print('-------------------------------------------... | bsd-3-clause | -8,298,086,595,619,204,000 | 38.803571 | 82 | 0.597465 | false | 3.251641 | false | false | false |
emesene/emesene | emesene/e3/papylib/papyon/papyon/gnet/proxy/SOCKS4.py | 6 | 4563 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2007 Johann Prieur <johann.prieur@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 your option) an... | gpl-3.0 | -1,452,429,311,636,583,400 | 33.568182 | 89 | 0.635108 | false | 3.992126 | false | false | false |
zenodo/zenodo | zenodo/modules/communities/receivers.py | 1 | 1754 | # -*- coding: utf-8 -*-
#
# This file is part of Zenodo.
# Copyright (C) 2021 CERN.
#
# Zenodo 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 v... | gpl-2.0 | -6,008,738,019,087,902,000 | 35.541667 | 79 | 0.72577 | false | 3.915179 | false | false | false |
oncer/imagemusic | test.py | 1 | 1458 | import random
import tkinter
from tkinter import ttk
from tkinter import messagebox
class App(object):
def __init__(self):
self.root = tkinter.Tk()
self.style = ttk.Style()
available_themes = self.style.theme_names()
random_theme = random.choice(available_themes)
self.style... | mit | 2,753,733,675,890,375,700 | 30.021277 | 63 | 0.618656 | false | 3.709924 | false | false | false |
shyamalschandra/keras | examples/imdb_lstm.py | 4 | 2097 | import numpy as np
from keras.preprocessing import sequence
from keras.optimizers import SGD, RMSprop, Adagrad
from keras.utils import np_utils
from keras.models import Sequential
from keras.layers.core import Dense, Dropout, Activation, Embedding
from keras.layers.recurrent import LSTM, GRU
from keras.datasets import... | mit | -6,056,320,864,871,329,000 | 32.822581 | 94 | 0.743443 | false | 3.398703 | true | false | false |
AlexKornitzer/radare2-extras | pimp/pimp.py | 1 | 13253 | import r2pipe
import triton
import struct
class R2Plugin(object):
def __init__(self, name, privdata):
self.privdata = privdata
self.name = name
self.command = _r2_plugin_args[0]
self.args = _r2_plugin_args[1:]
self.r2 = r2pipe.open()
bininfo = self.r2.cmdj("ij")["b... | lgpl-3.0 | 6,267,235,369,199,245,000 | 29.678241 | 370 | 0.563571 | false | 3.49868 | false | false | false |
SlashRoot/WHAT | what_apps/utility/forms.py | 1 | 10552 |
from django import forms
from django.contrib.auth.models import User, Group
from django.contrib.contenttypes.models import ContentType
from django.core import validators
from django.core.exceptions import ValidationError
from django.db import models
from django.forms.formsets import BaseFormSet
from django.forms.widge... | mit | 3,383,373,050,029,385,000 | 44.683983 | 272 | 0.594484 | false | 4.237751 | false | false | false |
citizen-stig/pyjtt | setup.py | 1 | 2399 | import sys
import os
from cx_Freeze import setup, Executable
path = ["pyjtt"] + sys.path
icon_path = os.path.join("resources", "icons", "clock.ico")
build_exe_options = {'path': path, 'include_msvcr': True}
# http://msdn.microsoft.com/en-us/library/windows/desktop/aa371847(v=vs.85).aspx
shortcut_table = [
("Deskt... | gpl-3.0 | -2,657,565,497,915,762,000 | 34.80597 | 80 | 0.521884 | false | 3.907166 | false | false | false |
sdrogers/ms2ldaviz | ms2ldaviz/basicviz/migrations/0001_initial.py | 1 | 1168 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Document',
fields=[
('id', models.AutoField(ver... | mit | 8,181,280,632,879,288,000 | 28.948718 | 114 | 0.524829 | false | 4.653386 | false | false | false |
mohabusama/togile | togile/apps/todo/migrations/0001_initial.py | 1 | 6624 | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'TodoList'
db.create_table(u'todo_todolist', (
... | mit | 3,963,344,749,262,621,000 | 65.919192 | 195 | 0.569143 | false | 3.578606 | false | false | false |
desihub/desispec | py/desispec/magnitude.py | 1 | 2904 | """
desispec.magnitude
========================
Broadband flux and magnitudes
"""
import numpy as np
def compute_broadband_flux(spectrum_wave,spectrum_flux,transmission_wave,transmission_value) :
"""
Computes broadband flux
Args:
spectrum_wave: 1D numpy array (Angstrom)
spectrum_flux: 1D nump... | bsd-3-clause | 717,909,583,657,756,400 | 32 | 131 | 0.694904 | false | 3.330275 | false | false | false |
suvarnaraju/robotframework | src/robot/utils/escaping.py | 18 | 4166 | # 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 | 4,818,477,688,823,138,000 | 28.546099 | 78 | 0.585934 | false | 3.763324 | false | false | false |
alexgorban/models | research/object_detection/builders/box_predictor_builder.py | 1 | 46974 | # Copyright 2017 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 | 4,100,371,919,349,700,000 | 47.178462 | 80 | 0.679418 | false | 4.023469 | true | false | false |
zbanks/musicazoo | musicazoo/lib/watch_dl.py | 1 | 3170 | # -*- coding: utf-8 -*-
import urllib
import re
import urllib2
import sys
import HTMLParser
from youtube_dl.extractor.common import InfoExtractor
html_parser = HTMLParser.HTMLParser()
class WatchCartoonOnlineIE(InfoExtractor):
#IE_NAME = u'WatchCartoonOnline'
_VALID_URL = r'(?:http://)?(?:www\.)?watchcartoon... | mit | -4,147,889,361,817,719,000 | 34.222222 | 95 | 0.555836 | false | 3.176353 | false | false | false |
desihub/fiberassign | py/fiberassign/test/fiberassign_test_suite.py | 1 | 1121 | # Licensed under a 3-clause BSD style license - see LICENSE.rst
# -*- coding: utf-8 -*-
"""
fiberassign.test.fiberassign_test_suite
===================================================
Used to initialize the unit test framework via ``python setup.py test``.
"""
from __future__ import absolute_import, division, print_fu... | bsd-3-clause | 5,689,746,902,278,580,000 | 27.74359 | 85 | 0.657449 | false | 3.878893 | true | false | false |
mayfield/snowflake-connector-python | network.py | 1 | 44805 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2012-2017 Snowflake Computing Inc. All right reserved.
#
import collections
import contextlib
import copy
import gzip
import itertools
import json
import logging
import platform
import sys
import time
import uuid
from io import StringIO, BytesIO
from threa... | apache-2.0 | -5,605,493,169,981,819,000 | 40.409427 | 81 | 0.520009 | false | 4.300317 | false | false | false |
qnorsten/svtplay-dl | lib/svtplay_dl/service/oppetarkiv.py | 1 | 9577 | # ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
from __future__ import absolute_import
import re
import copy
import os
import hashlib
from svtplay_dl.service import Service, OpenGraphThumbMixin
from svtplay_dl.error import ServiceError
from svtplay_dl.log import log
from svtplay... | mit | 8,521,074,660,413,249,000 | 38.570248 | 117 | 0.500104 | false | 3.958661 | false | false | false |
Pierre-Thibault/neo-insert-imports | test/result_dir/blank_lines_only.py | 1 | 6254 |
# Static analyzer import helpers: (STATIC_IMPORT_MARK)
if 0:
import gluon
global cache; cache = gluon.cache.Cache()
global LOAD; LOAD = gluon.compileapp.LoadFactory()
import gluon.compileapp.local_import_aux as local_im... | mit | 7,308,186,558,216,996,000 | 43.671429 | 75 | 0.738887 | false | 4.373427 | false | true | false |
fenglb/mysite | eguard/migrations/0002_auto_20160220_1853.py | 1 | 2429 | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-02-20 10:53
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 = [
migrations.swappable_dependency... | cc0-1.0 | -6,512,004,272,363,192,000 | 33.211268 | 293 | 0.561136 | false | 3.731183 | false | false | false |
matthew-brett/draft-statsmodels | scikits/statsmodels/sandbox/tsa/tsatools.py | 1 | 4014 | import numpy as np
def lagmat(x, maxlag, trim='forward'):
'''create 2d array of lags
Parameters
----------
x : array_like, 1d or 2d
data; if 2d, observation in rows and variables in columns
maxlag : int
all lags from zero to maxlag are included
trim : str {'forward', 'backward'... | bsd-3-clause | 6,150,457,829,898,565,000 | 31.112 | 86 | 0.555805 | false | 3.234488 | false | false | false |
EzyInsights/Diamond | src/collectors/nginx/nginx.py | 15 | 3235 | # coding=utf-8
"""
Collect statistics from Nginx
#### Dependencies
* urllib2
#### Usage
To enable the nginx status page to work with defaults,
add a file to /etc/nginx/sites-enabled/ (on Ubuntu) with the
following content:
<pre>
server {
listen 127.0.0.1:8080;
server_name localhost;
location /... | mit | 779,631,892,434,717,700 | 35.348315 | 79 | 0.520247 | false | 3.954768 | true | false | false |
Quantipy/quantipy | savReaderWriter/__init__.py | 1 | 4643 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
savReaderWriter: A cross-platform Python interface to the IBM SPSS
Statistics Input Output Module. Read or Write SPSS system files (.sav, .zsav)
.. moduleauthor:: Albert-Jan Roskam <fomcl "at" yahoo "dot" com>
"""
# change this to 'True' in case you exper... | mit | 8,820,088,647,539,985,000 | 34.273438 | 77 | 0.58432 | false | 2.696283 | false | false | false |
henniggroup/GASP-python | gasp/post_processing/plotter.py | 1 | 6437 | # coding: utf-8
# Copyright (c) Henniggroup.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals, print_function
"""
Plotter module:
This module contains the Plotter class, which is used to plot various data
from the genetic algorithm structure search.
"""
from pymat... | mit | -8,962,152,829,643,050,000 | 30.70936 | 77 | 0.580239 | false | 4.033208 | false | false | false |
PmagPy/PmagPy | programs/conversion_scripts/iodp_jr6_magic.py | 1 | 2644 | #!/usr/bin/env python
"""
NAME
iodp_jr6_magic.py
DESCRIPTION
converts shipboard .jr6 format files to measurements format files
This program assumes that you have created the specimens, samples, sites and location
files using convert_2_magic.iodp_samples_csv from files downloaded from the LIMS online
... | bsd-3-clause | 5,809,550,570,063,431,000 | 32.897436 | 145 | 0.631997 | false | 3.372449 | false | false | false |
gnotaras/wordpress-add-meta-tags | make_release.py | 1 | 5082 | #
# This script is intentionally a mess. This is not meant to be used by you, folks.
#
# Copyright George Notaras
REL_FILES = [
'add-meta-tags.pot',
'add-meta-tags.php',
'amt-cli.php',
'amt-admin-panel.php',
'amt-settings.php',
'amt-template-tags.php',
'amt-utils.php',
'amt-embed.php',
... | apache-2.0 | -8,872,548,991,531,218,000 | 25.061538 | 298 | 0.64148 | false | 3.196226 | false | false | false |
cinnamoncoin/eloipool_Blakecoin | blake8.py | 2 | 19109 |
intro = """
blake.py
version 4
BLAKE is a SHA3 round-3 finalist designed and submitted by
Jean-Philippe Aumasson et al.
At the core of BLAKE is a ChaCha-like mixer, very similar
to that found in the stream cipher, ChaCha8. Besides being
a very good mixer, ChaCha is fast.
... | mit | 402,631,691,257,087,700 | 36.104854 | 88 | 0.487257 | false | 3.194951 | true | false | false |
DedMemez/ODS-August-2017 | abc.py | 1 | 3785 | # Fuck you Disyer. Stealing my fucking paypal. GET FUCKED: abc
import types
from _weakrefset import WeakSet
class _C:
pass
_InstanceType = type(_C())
def abstractmethod(funcobj):
funcobj.__isabstractmethod__ = True
return funcobj
class abstractproperty(property):
__isabstractmethod... | apache-2.0 | -5,928,648,413,365,189,000 | 35.87 | 123 | 0.57041 | false | 4.401163 | false | false | false |
cstipkovic/spidermonkey-research | testing/marionette/harness/marionette/tests/unit/test_addons.py | 1 | 1985 | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import os
import unittest
from marionette import MarionetteTestCase
from marionette_driver.addons import Addons, AddonI... | mpl-2.0 | 3,420,210,611,468,736,500 | 33.224138 | 81 | 0.654408 | false | 3.615665 | true | false | false |
mr-karan/coala | coalib/bearlib/languages/documentation/DocumentationComment.py | 4 | 5320 | from collections import namedtuple
from coala_utils.decorators import generate_eq, generate_repr
@generate_repr()
@generate_eq("documentation", "language", "docstyle",
"indent", "marker", "range")
class DocumentationComment:
"""
The DocumentationComment holds information about a documentation co... | agpl-3.0 | -4,701,396,301,550,918,000 | 38.117647 | 78 | 0.564286 | false | 5.028355 | false | false | false |
DavidAndreev/indico | migrations/versions/201502111317_233928da84b2_create_video_conference_rooms.py | 4 | 2113 | """Create videoconference rooms
Revision ID: 233928da84b2
Revises: 50c2b5ee2726
Create Date: 2015-02-11 13:17:44.365589
"""
import sqlalchemy as sa
from alembic import op
from indico.core.db.sqlalchemy import PyIntEnum
from indico.core.db.sqlalchemy import UTCDateTime
from indico.modules.vc.models.vc_rooms import VCR... | gpl-3.0 | 6,583,649,150,840,279,000 | 43.020833 | 105 | 0.599148 | false | 3.90573 | false | false | false |
CardiacAtlasProject/CAPServer2.0 | dbase/utils/test_connect.py | 1 | 1654 | """Test connection to a MySQL server
Usage:
test_connect.py [options] <host> <user>
test_connect.py -h
Arguments:
host MySQL server IP address
user Username to connect with
Options:
-h, --help Show this screen
-d, --debug Show some debug information
-p, --po... | apache-2.0 | -1,585,207,934,581,546,200 | 25.253968 | 91 | 0.573156 | false | 4.230179 | false | false | false |
msmolens/VTK | Parallel/Core/Testing/Python/TestPolyDataPieces.py | 12 | 2945 | #!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
math = vtk.vtkMath()
math.RandomSeed(22)
sphere = vtk.vtkSphereSource()
sphere.SetPhiResolution(32)
sphere.SetThetaResolution(32)
extract = vtk.vtkExtractPolyDataPiece()
extract.Set... | bsd-3-clause | 5,129,533,428,117,693,000 | 24.833333 | 75 | 0.798981 | false | 3.036082 | false | true | false |
ticketea/forseti | forseti/cli.py | 1 | 2818 | #!/usr/bin/env python
"""Forseti is a tool to manage AWS autoscaling groups.
Usage:
{% for doc in command_docs -%}
forseti {{ doc }}
{% endfor -%}
forseti (-h | --help)
forseti --version
Options:
{% for doc in command_options -%}
{{ doc }}
{% endfor -%}
-h --help Show t... | isc | 9,020,402,200,622,750,000 | 27.464646 | 81 | 0.658978 | false | 3.952314 | true | false | false |
google/certificate-transparency | python/ct/crypto/asn1/type_test_base.py | 35 | 4516 | import unittest
from ct.crypto import error
class TypeTestBase(unittest.TestCase):
# Test class for each concrete type should fill this in.
asn1_type = None
# Immutable types support hashing.
immutable = True
# Repeated types support lookup and assignment by index.
repeated = True
# Keye... | apache-2.0 | -6,243,667,938,546,458,000 | 44.16 | 78 | 0.593224 | false | 4.072137 | true | false | false |
prospwro/odoo | addons/irsid_edu_training/models/student_program.py | 2 | 13940 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution Addon
# Copyright (C) 2009-2013 IRSID (<http://irsid.ru>),
# Paul Korotkov (korotkov.paul@gmail.com).
#
# This program is free software: you can redistribute it... | agpl-3.0 | 1,469,602,133,691,813,600 | 39.556851 | 147 | 0.4651 | false | 4.22057 | false | false | false |
jhuapl-boss/intern | intern/service/dvid/volume.py | 1 | 6479 | # Copyright 2020 The Johns Hopkins University Applied Physics Laboratory
#
# 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 ... | apache-2.0 | 7,961,849,185,573,913,000 | 36.022857 | 97 | 0.572156 | false | 4.100633 | false | false | false |
conejoninja/pelisalacarta | python/version-command-line/download_url.py | 1 | 1720 | # -*- coding: utf-8 -*-
#-------------------------------------------------------------------------
# Script for downloading files from any server supported on pelisalacarta
# http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/
#-------------------------------------------------------------------------
import re,urll... | gpl-3.0 | 2,455,178,989,207,028,000 | 26.741935 | 92 | 0.588372 | false | 3.659574 | false | false | false |
cjonsmith/python-challenge | problem_05.py | 1 | 1162 | """The first hint for this problem is the title of the webpage: 'peak hell'.
When pronounced, it sounds very similar to 'pickle', which is the builtin
python object serialization package. When viewing the the source code of the
webpage, there is a 'peakhell' tag that links to a pickle file. We'll download
the file (pro... | mit | 5,570,560,142,735,886,000 | 30.405405 | 79 | 0.718589 | false | 3.218837 | false | false | false |
metagriffin/pysyncml | pysyncml/model/store.py | 1 | 17402 | # -*- coding: utf-8 -*-
#------------------------------------------------------------------------------
# file: $Id$
# auth: metagriffin <mg.github@uberdev.org>
# date: 2012/06/14
# copy: (C) Copyright 2012-EOT metagriffin -- see LICENSE.txt
#-----------------------------------------------------------------------------... | gpl-3.0 | 4,451,211,935,199,341,600 | 45.90566 | 104 | 0.545914 | false | 4.324553 | false | false | false |
ashishbaghudana/mthesis-ashish | resources/tees/Utils/DetectHeads.py | 2 | 18739 | import sys, os
sys.path.append(os.path.dirname(os.path.abspath(__file__))+"/..")
import Core.SentenceGraph as SentenceGraph
from Utils.ProgressCounter import ProgressCounter
from FindHeads import findHeads
import Utils.ElementTreeUtils as ETUtils
import Utils.InteractionXML.CorpusElements
import Utils.Range as Range
im... | mit | 1,266,903,294,218,379,500 | 48.708223 | 158 | 0.613853 | false | 4.167 | false | false | false |
NickShaffner/rhea | test/test_cores/test_video/test_hdmi.py | 2 | 1811 |
from __future__ import print_function, division
import pytest
import myhdl
from myhdl import always, delay, instance, now, StopSimulation
import rhea
from rhea.system import Global
from rhea.cores.video import VideoStream, HDMIExtInterface
from rhea.cores.video import hdmi_xcvr
# a video desplay model to check the... | mit | -6,748,531,368,725,565,000 | 24.871429 | 63 | 0.573716 | false | 4.088036 | true | false | false |
mjrulesamrat/merchant | billing/integrations/authorize_net_dpm_integration.py | 4 | 5426 | from billing import Integration, IntegrationNotConfigured
from billing.forms.authorize_net_forms import AuthorizeNetDPMForm
from billing.signals import transaction_was_successful, transaction_was_unsuccessful
from django.conf import settings
from django.conf.urls import patterns, url
from django.views.decorators.csrf i... | bsd-3-clause | 8,007,233,141,908,801,000 | 49.240741 | 126 | 0.589016 | false | 4.465844 | false | false | false |
marcinkaszynski/burner-files | 2018-burning-man/sign2/effects.py | 1 | 6966 | import random
from math import cos, pi
from PIL import Image, ImageFilter
COLS = 20
ROWS = 12
def squash(v, low, high):
return min(max(low, v), high)
class FlatImage:
def __init__(self, file_name):
self.image = Image.open(file_name)
self.arr = self.image.load()
def tick(self, ts):
... | mit | -1,440,909,792,892,522,200 | 28.896996 | 123 | 0.515504 | false | 3.337805 | false | false | false |
pthatcher/psync | src/fs/FileSystem.py | 1 | 12463 | # Copyright (c) 2011, Peter Thatcher
# 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,
# this list of conditi... | bsd-3-clause | 971,168,239,324,412,800 | 35.764012 | 80 | 0.61478 | false | 3.889825 | false | false | false |
wesleywh/Scripts | metadata.py | 1 | 5246 | import os,sys #for system commands
import argparse #used for allowing command line switches
from stat import * #for stat command
import datetime #used for float to datetime
# import win32security
import ctypes as _ctypes #this is used to determine ... | mit | 1,616,514,697,141,397,200 | 54.934783 | 264 | 0.574293 | false | 3.901639 | false | false | false |
madeso/prettygood | dotnet/Seymor/Seymour/AddFeedDialog.Designer.py | 1 | 3812 | namespace Seymour
{
partial class AddFeedDialog
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <pa... | mit | 6,284,534,663,532,206,000 | 40.423913 | 155 | 0.575591 | false | 4.006309 | false | false | false |
LTLMoP/LTLMoP | src/lib/parseLP.py | 8 | 14969 | #!/usr/bin/env python
import math,re, os, random
import Polygon, Polygon.IO, Polygon.Utils
import project
from regions import *
import itertools
import decomposition
Polygon.setTolerance(0.1)
class parseLP:
"""
A parser to parse the locative prepositions in specification
"""
def __init__(self):
... | gpl-3.0 | 8,325,122,493,284,336,000 | 42.514535 | 146 | 0.553277 | false | 4.485766 | false | false | false |
wy65701436/harbor | tests/apitests/python/library/project.py | 2 | 10378 | # -*- coding: utf-8 -*-
import v2_swagger_client
from library.base import _assert_status_code
from v2_swagger_client.models.role_request import RoleRequest
from v2_swagger_client.rest import ApiException
import base
def is_member_exist_in_project(members, member_user_name, expected_member_role_id = None):
resul... | apache-2.0 | -2,864,483,311,539,250,000 | 47.050926 | 173 | 0.628059 | false | 3.706429 | false | false | false |
moria/zulip | zerver/management/commands/gravatar_to_user_avatar.py | 124 | 2043 | from __future__ import absolute_import
import requests
from zerver.models import get_user_profile_by_email, UserProfile
from zerver.lib.avatar import gravatar_hash
from zerver.lib.upload import upload_avatar_image
from django.core.management.base import BaseCommand, CommandError
from django.core.files.uploadedfile imp... | apache-2.0 | -7,385,521,084,850,490,000 | 42.468085 | 104 | 0.660793 | false | 4.086 | false | false | false |
noba3/KoTos | addons/plugin.video.hubwizard/default.py | 1 | 9230 | # Config Wizard By: Blazetamer 2013-2014
# Thanks to Blazetamer, TheHighway, and the rest of the crew at TVADDONS.ag (XBMCHUB.com).
import urllib,urllib2,re,xbmcplugin,xbmcgui,xbmc,xbmcaddon,os,sys,downloader,extract,time,shutil
import wizardmain as main
AddonTitle='Config Wizard'; wizardUrl='http://tribeca.tvaddons.ag... | gpl-2.0 | -8,947,119,783,127,450,000 | 72.84 | 230 | 0.631203 | false | 3.458224 | true | false | false |
baldengineers/KickstarterBot | imagegen.py | 1 | 5608 | import random
import pickle
from sklearn import tree
from pprint import pprint
from PIL import Image
##choices = ["█", " ", "▓", "▒", "░"]
choices = ["██", " "]
WIDTH = 8
def clear(p):
if p:
name = 'training.dat'
with open(name, 'rb') as f:
l = pickle.load(f)
l = l[1][:-1]
... | mit | 205,228,781,841,308,060 | 29.248649 | 119 | 0.490172 | false | 3.284038 | false | false | false |
rewardz/django_model_helpers | tests/simple_app/simple_app/settings.py | 1 | 2611 | """
Django settings for simple_app project.
Generated by 'django-admin startproject' using Django 1.8.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build p... | mit | -5,824,480,294,159,593,000 | 25.373737 | 71 | 0.663347 | false | 3.596419 | false | false | false |
befelix/GPy | GPy/kern/src/multioutput_kern.py | 1 | 7150 | from .kern import Kern, CombinationKernel
import numpy as np
from functools import reduce, partial
from .independent_outputs import index_to_slices
from paramz.caching import Cache_this
class ZeroKern(Kern):
def __init__(self):
super(ZeroKern, self).__init__(1, None, name='ZeroKern',useGPU=False)
def ... | bsd-3-clause | 6,165,214,033,855,403,000 | 53.587786 | 341 | 0.605035 | false | 3.294931 | false | false | false |
mcleary/glbinding | source/codegeneration/scripts/binding.py | 2 | 3196 |
import os, sys
import pystache
from classes.Extension import Extension
execDir = os.path.dirname(os.path.abspath(sys.argv[0])) + "/"
templateDir = "templates/"
templateExtension = "tpl"
tab = " "
tab2 = tab + tab
def versionBID(feature, core = False, ext = False):
if feature is None:
... | mit | -650,482,394,610,676,200 | 22.5 | 127 | 0.623279 | false | 3.90232 | false | false | false |
sipsorcery/bitcoin | test/functional/rpc_createmultisig.py | 6 | 10381 | #!/usr/bin/env python3
# Copyright (c) 2015-2020 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test multisig RPCs"""
import binascii
import decimal
import itertools
import json
import os
from test_... | mit | 4,962,217,062,874,460,000 | 44.331878 | 174 | 0.636451 | false | 3.551488 | true | false | false |
ppramesi/JOANNA | utils.py | 1 | 8031 | import wave, struct, time
import numpy as np
import scipy.io.wavfile as wav
import scipy.fftpack as fft
def openWavFile(fileName):
data = wav.read(fileName)
ssize = data[1].shape[0]
nparray = data[1].astype('float32')
return nparray
def stftWindowFunction(xPhi, xMag):
oldShapePhi = xPh... | mit | 5,391,299,308,794,588,000 | 36.252381 | 134 | 0.628191 | false | 2.986612 | false | false | false |
niosus/EasyClangComplete | tests/test_subl_bridge.py | 1 | 3140 | """Test tools.
Attributes:
easy_clang_complete (module): this plugin module
SublBridge (SublBridge): class for subl bridge
"""
import imp
from os import path
from EasyClangComplete.plugin.settings import settings_manager
from EasyClangComplete.plugin.utils.subl import subl_bridge
from EasyClangComplete.tests... | mit | -4,480,479,087,521,750,500 | 32.052632 | 75 | 0.62707 | false | 3.929912 | true | false | false |
varnivey/hakoton_images | gui/table_widget.py | 1 | 7038 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) Grigoriy A. Armeev, 2015
#
# 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.
#
# This program is distributed in the hope th... | gpl-2.0 | -8,784,571,887,633,566,000 | 36.232804 | 98 | 0.557198 | false | 4.103207 | false | false | false |
ewels/MultiQC | multiqc/utils/log.py | 1 | 3660 | #!/usr/bin/env python
"""
Code to initilise the MultiQC logging
"""
import coloredlogs
import logging
import os
import shutil
import sys
import tempfile
from multiqc.utils import config, util_functions, mqc_colour
LEVELS = {0: "INFO", 1: "DEBUG"}
log_tmp_dir = None
log_tmp_fn = "/dev/null"
def init_log(logger, lo... | gpl-3.0 | 9,199,252,740,111,501,000 | 29.247934 | 118 | 0.657377 | false | 3.808533 | false | false | false |
xiaofeiyangyang/physpetools | physpetool/phylotree/retrieveprotein.py | 1 | 9001 | # ########################## Copyrights and License #############################
# #
# Copyright 2016 Yang Fang <yangfangscu@gmail.com> #
# ... | gpl-3.0 | -2,210,047,906,401,690,600 | 36.041152 | 117 | 0.510721 | false | 3.873064 | false | false | false |
ExeClim/Isca | src/extra/python/scripts/find_namelists_to_check.py | 1 | 3480 | import subprocess
import os
import glob
from pathlib import Path
import pdb
#A script to find the fortran files within Isca's src directory
#that include namelists, and to check if namelist checking is done.
#find the location of the source code
GFDL_BASE = os.environ['GFDL_BASE']
#setup some output dictionaries and... | gpl-3.0 | -6,630,615,997,728,799,000 | 38.556818 | 264 | 0.694828 | false | 3.561924 | false | false | false |
jlettvin/shmathd | gpgpu/gpu11.py | 1 | 26973 | #!/usr/bin/env python
###############################################################################
# TODO JMP JE JG JL JGE JLE SETJMP LONGJMP DATA LABEL
# TODO discover how to keep code resident and send it new data
# TODO discover how to reference other pixel data for convolution/correlation
# TODO Use Tower of Han... | gpl-3.0 | 6,278,133,493,561,412,000 | 34.537549 | 79 | 0.412449 | false | 4.151608 | false | false | false |
HossainKhademian/FreeCivAndroid | lib/freeciv/diplodialog.py | 4 | 4811 | # Copyright (C) 2011 Michal Zielinski (michal@zielinscy.org.pl)
#
# 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, or (at your option)
# any later version.
#
# This program is d... | gpl-2.0 | -3,065,350,190,407,030,000 | 32.416667 | 83 | 0.624818 | false | 3.336338 | false | false | false |
smousavi05/EQTransformer | tests/test_downloader.py | 1 | 1620 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Jan 25 22:34:05 2020
@author: mostafamousavi
"""
from EQTransformer.utils.downloader import downloadMseeds, makeStationList, downloadSacs
import pytest
import glob
import os
def test_downloader():
makeStationList(client_list=["SCEDC"],
... | mit | 5,332,259,601,145,437,000 | 27.421053 | 120 | 0.495679 | false | 3.396226 | false | false | false |
alexei-matveev/ccp1gui | jobmanager/__init__.py | 1 | 1565 | #
# This file is part of the CCP1 Graphical User Interface (ccp1gui)
#
# (C) 2002-2005 CCLRC Daresbury Laboratory
#
# 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 ... | gpl-2.0 | -8,558,338,639,613,817,000 | 29.096154 | 72 | 0.704792 | false | 3.532731 | false | false | false |
akurtakov/Pydev | plugins/com.python.pydev.docs/build_homepage.py | 1 | 7928 | import datetime
import os
import shutil
import sys
import build_python_code_block
args = sys.argv[1:]
this_script_path = sys.argv[0]
this_script_dir = os.path.split(this_script_path)[0]
CURRENT_DATE = datetime.datetime.now()
# CURRENT_DATE = datetime.datetime(2017, 9, 20)
update_site_versions = [
'6.3.2',
... | epl-1.0 | 8,646,195,774,528,780,000 | 30.460317 | 125 | 0.589556 | false | 3.349387 | false | false | false |
electricface/deepin-notifications | src/dbus_notify.py | 1 | 6534 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2011 ~ 2012 Deepin, Inc.
# 2011 ~ 2012 Hou Shaohui
#
# Author: Hou Shaohui <houshao55@gmail.com>
# Maintainer: Hou Shaohui <houshao55@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms... | gpl-3.0 | -1,757,554,600,149,854,000 | 41.154839 | 115 | 0.640496 | false | 3.67285 | false | false | false |
wursm1/eurobot-hauptsteuerung | eurobot/hauptsteuerung/robot.py | 1 | 3766 | """
This module contains classes that hold the position information of the robots
"""
__author__ = 'Wuersch Marcel'
__license__ = "GPLv3"
import time
import threading
from libraries.can import MsgSender
import numpy as np
class RobotPosition():
""" parent class for PositionMyRobot and PositionOtherRobot
... | gpl-3.0 | 4,258,096,413,590,043,000 | 34.87619 | 94 | 0.586298 | false | 4.027807 | false | false | false |
phovea/phovea_server | phovea_server/dataset.py | 1 | 2778 | ###############################################################################
# Caleydo - Visualization for Molecular Biology - http://caleydo.org
# Copyright (c) The Caleydo Team. All rights reserved.
# Licensed under the new BSD license, available at http://caleydo.org/license
######################################... | bsd-3-clause | 6,400,642,323,520,684,000 | 22.948276 | 94 | 0.649748 | false | 3.754054 | false | false | false |
ozamiatin/oslo.messaging | oslo_messaging/_drivers/zmq_driver/poller/threading_poller.py | 2 | 2911 | # Copyright 2015 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | apache-2.0 | -95,809,660,102,179,120 | 32.079545 | 78 | 0.642391 | false | 4.048679 | false | false | false |
mass-project/mass_server | mass_flask_webui/forms/submit.py | 1 | 2232 | from flask_wtf import Form
from flask_wtf.file import FileField, FileRequired
from wtforms import StringField, SubmitField, SelectField
from wtforms.validators import InputRequired, IPAddress, URL
from mass_flask_core.models import TLPLevelField
class FileSampleSubmitForm(Form):
file = FileField('File', validator... | mit | -9,076,948,158,519,788,000 | 44.55102 | 92 | 0.6931 | false | 3.588424 | false | false | false |
ABorgna/BluePoV-PC | bluePoV.py | 1 | 6233 | #
# Banana banana banana
#
# ~ ABorgna
#
#
# Explicacion en 'README-esp.txt'.
#
#
# Los paquetes son listas con n items, n >= 2;
# 1er valor: FUNC - int
# siguientes: DATA - int || list || NumpyArray_t
# Includes
import constants as const
from sockets import *
from transmitter import *
... | mit | -7,462,355,119,536,010,000 | 29.165 | 90 | 0.585753 | false | 3.833333 | false | false | false |
ergoregion/Rota-Program | Rota_System/UI/Events/widget_template.py | 1 | 1916 | __author__ = 'Neil Butcher'
from PyQt4 import QtGui, QtCore
import widget_core
from Rota_System.UI.Appointments import AppointmentsListWidget
class EventTemplateWidget(QtGui.QWidget):
commandIssued = QtCore.pyqtSignal(QtGui.QUndoCommand)
criticalCommandIssued = QtCore.pyqtSignal()
def __init__(self, par... | mit | 4,932,403,053,297,764,000 | 28.953125 | 87 | 0.709812 | false | 3.502742 | false | false | false |
brettwooldridge/buck | programs/tracing.py | 4 | 4241 | #!/usr/bin/env python
# Copyright 2018-present Facebook, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -5,381,889,734,795,819,000 | 28.866197 | 85 | 0.564725 | false | 3.700698 | false | false | false |
coteyr/home-assistant | homeassistant/components/binary_sensor/template.py | 1 | 3823 | """
homeassistant.components.binary_sensor.template
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Support for exposing a templated binary_sensor
"""
import logging
from homeassistant.components.binary_sensor import (BinarySensorDevice,
DOMAIN,
... | mit | -2,837,158,572,584,971,000 | 30.336066 | 78 | 0.589589 | false | 4.54038 | true | false | false |
AdamWill/anaconda | pyanaconda/startup_utils.py | 1 | 17832 | #
# startup_utils.py - code used during early startup with minimal dependencies
#
# Copyright (C) 2014 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# the GNU General Public License v.2, or (at your opti... | gpl-2.0 | 4,923,131,784,954,620,000 | 38.191209 | 128 | 0.656068 | false | 3.978581 | false | false | false |
azumimuo/family-xbmc-addon | script.module.urlresolver/lib/urlresolver/plugins/mooshare_biz.py | 2 | 2529 | '''
Allmyvideos urlresolver plugin
Copyright (C) 2013 Vinnydude
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program i... | gpl-2.0 | -2,058,027,579,635,291,400 | 36.746269 | 147 | 0.624753 | false | 3.724595 | false | false | false |
shibu/pyspec | pyspec/wxui/util.py | 1 | 1803 | # -*- coding: ascii -*-
"""Idea of event binder decoretor is Mr.NoboNobo's and TurboGears. Thanks.
Mr.NoboNobo's site: http://python.matrix.jp
"""
__pyspec = 1
__all__ = ('expose',
'bind_event_handler',
'get_resource_path',
'load_png')
import pyspec.util
attr_key = "__pyspec_wxu... | mit | -4,515,592,377,775,067,000 | 26.738462 | 93 | 0.601775 | false | 3.401887 | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.