repo_name stringlengths 5 100 | path stringlengths 4 299 | copies stringclasses 990
values | size stringlengths 4 7 | content stringlengths 666 1.03M | license stringclasses 15
values | hash int64 -9,223,351,895,964,839,000 9,223,297,778B | line_mean float64 3.17 100 | line_max int64 7 1k | alpha_frac float64 0.25 0.98 | autogenerated bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|
RKrahl/pytest-dependency | pytest_dependency.py | 1 | 6492 | """$DOC"""
__version__ = "$VERSION"
import logging
import pytest
logger = logging.getLogger(__name__)
_automark = False
_ignore_unknown = False
def _get_bool(value):
"""Evaluate string representation of a boolean value.
"""
if value:
if value.lower() in ["0", "no", "n", "false", "f", "off"]:
... | apache-2.0 | -6,127,965,594,478,083,000 | 33.903226 | 76 | 0.580869 | false |
trondhindenes/ansible | lib/ansible/plugins/action/aruba.py | 21 | 3677 | #
# (c) 2016 Red Hat Inc.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is d... | gpl-3.0 | 6,255,726,228,680,200,000 | 40.314607 | 118 | 0.673647 | false |
yfu/tools | circ/find_circ/merge_bed.py | 4 | 1854 | #!/usr/bin/env python
import sys,os
from collections import defaultdict
def read_to_hash(fname,ds=0,de=0,flank=0,cover=False):
#print "loading",fname
pos = {}
for line in file(fname):
if line.startswith("#"):
continue
line = line.strip()
chrom,start,end,name,score,sense... | gpl-3.0 | 448,779,059,131,171,500 | 27.106061 | 76 | 0.539914 | false |
incnone/necrobot | necrobot/race/publicrace/raceroom.py | 1 | 11742 | # A necrobot "casual" race room.
import asyncio
import datetime
import discord
from necrobot.botbase.botchannel import BotChannel
from necrobot.botbase.necrobot import Necrobot
from necrobot.config import Config
from necrobot.race import cmd_race
from necrobot.race import raceinfo
from necrobot.race.publicrace impor... | mit | -4,230,707,436,161,804,000 | 38.402685 | 118 | 0.586272 | false |
morphis/home-assistant | homeassistant/util/temperature.py | 18 | 1188 | """Temperature util functions."""
from homeassistant.const import (
TEMP_CELSIUS,
TEMP_FAHRENHEIT,
UNIT_NOT_RECOGNIZED_TEMPLATE,
TEMPERATURE
)
def fahrenheit_to_celsius(fahrenheit: float) -> float:
"""Convert a Fahrenheit temperature to Celsius."""
return (fahrenheit - 32.0) / 1.8
def celsiu... | apache-2.0 | -6,189,082,600,241,182,000 | 33.941176 | 74 | 0.62037 | false |
hoverinc/three.js | utils/converters/fbx/convert_to_threejs.py | 16 | 76649 | # @author zfedoran / http://github.com/zfedoran
import os
import sys
import math
import operator
import re
import json
import types
import shutil
# #####################################################
# Globals
# #####################################################
option_triangulate = True
option_textures = True
o... | mit | 1,759,656,565,885,856,800 | 34.485648 | 214 | 0.579551 | false |
fidodaj/project2 | server/lib/werkzeug/debug/tbtools.py | 311 | 16785 | # -*- coding: utf-8 -*-
"""
werkzeug.debug.tbtools
~~~~~~~~~~~~~~~~~~~~~~
This module provides various traceback related utility functions.
:copyright: (c) 2013 by the Werkzeug Team, see AUTHORS for more details.
:license: BSD.
"""
import re
import os
import sys
import json
import inspect
import ... | apache-2.0 | -2,235,704,901,760,546,800 | 32.041339 | 103 | 0.552815 | false |
wangscript/libjingle-1 | trunk/tools/python/google/path_utils.py | 191 | 2910 | # Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Some utility methods for getting and manipulating paths."""
# TODO(pamg): Have the buildbot use these, too.
import errno
import os
import sys
clas... | bsd-3-clause | -5,272,682,117,765,833,000 | 33.642857 | 80 | 0.701375 | false |
uclouvain/osis | education_group/views/access_requirements/create.py | 1 | 3536 | #
# 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 business involves the administration of students, teachers,
# courses, progr... | agpl-3.0 | -8,946,607,689,185,371,000 | 43.746835 | 105 | 0.714003 | false |
dpetzold/django | tests/middleware/tests.py | 13 | 34932 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import gzip
import random
import re
from io import BytesIO
from unittest import skipIf
from django.conf import settings
from django.core import mail
from django.core.exceptions import PermissionDenied
from django.http import (
FileResponse, HttpReque... | bsd-3-clause | -5,534,503,060,564,332,000 | 43.440204 | 114 | 0.642628 | false |
leviroth/praw | praw/models/reddit/subreddit.py | 1 | 101559 | """Provide the Subreddit class."""
# pylint: disable=too-many-lines
from copy import deepcopy
from json import dumps, loads
from os.path import basename, dirname, join
from urllib.parse import urljoin
from prawcore import Redirect
import websocket
from ...const import API_PATH, JPEG_HEADER
from ...exceptions import A... | bsd-2-clause | -7,310,375,806,501,327,000 | 33.792395 | 96 | 0.59653 | false |
infoxchange/lettuce | tests/integration/lib/Django-1.2.5/tests/regressiontests/urlpatterns_reverse/namespace_urls.py | 51 | 1463 | from django.conf.urls.defaults import *
class URLObject(object):
def __init__(self, app_name, namespace):
self.app_name = app_name
self.namespace = namespace
def urls(self):
return patterns('',
url(r'^inner/$', 'empty_view', name='urlobject-view'),
url(r'^inner/... | gpl-3.0 | -5,292,288,999,358,233,000 | 37.5 | 117 | 0.651401 | false |
matsjoyce/python-krunner | src/krunner.py | 1 | 2880 | import _krunner
import abc
from PyQt5 import QtCore
__all__ = ["AbstractRunner", "QueryMatch", "RunnerContext", "RunnerSyntax"]
for name in __all__[1:]:
cls = getattr(_krunner.Plasma, name)
globals()[name] = cls
cls.__module__ = __name__
del name
del cls
class ARMeta(type(_krunner.Plasma.AbstractRunne... | lgpl-3.0 | 1,380,575,226,892,235,500 | 24.263158 | 87 | 0.654514 | false |
e-mission/e-mission-server | emission/analysis/plotting/leaflet_osm/ipython_helper.py | 2 | 1415 | """
Helper functions that can display leaflet maps inline in an ipython notebook
"""
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from future import standard_library
standard_library.install_aliases()
from builtins i... | bsd-3-clause | 5,773,032,909,723,954,000 | 31.906977 | 113 | 0.703887 | false |
MakMukhi/grpc | src/python/grpcio_tests/tests/unit/_junkdrawer/__init__.py | 901 | 1528 | # Copyright 2015, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... | bsd-3-clause | 7,592,075,577,968,472,000 | 53.571429 | 72 | 0.782723 | false |
blisseth/ThinkStats2 | code/regression.py | 62 | 9652 | """This file contains code used in "Think Stats",
by Allen B. Downey, available from greenteapress.com
Copyright 2010 Allen B. Downey
License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html
"""
from __future__ import print_function, division
import math
import pandas
import random
import numpy as np
import statsmode... | gpl-3.0 | -2,269,424,247,804,909,600 | 24.135417 | 78 | 0.612516 | false |
joferkington/numpy | doc/postprocess.py | 143 | 1481 | #!/usr/bin/env python
"""
%prog MODE FILES...
Post-processes HTML and Latex files output by Sphinx.
MODE is either 'html' or 'tex'.
"""
from __future__ import division, absolute_import, print_function
import re
import optparse
import io
def main():
p = optparse.OptionParser(__doc__)
options, args = p.parse_... | bsd-3-clause | -1,184,995,599,391,529,500 | 22.507937 | 64 | 0.545577 | false |
arne-cl/pattern | pattern/web/pdf/encodingdb.py | 56 | 1548 | #!/usr/bin/env python2
import re
from psparser import PSLiteral
from glyphlist import glyphname2unicode
from latin_enc import ENCODING
## name2unicode
##
STRIP_NAME = re.compile(r'[0-9]+')
def name2unicode(name):
"""Converts Adobe glyph names to Unicode numbers."""
if name in glyphname2unicode:
retu... | bsd-3-clause | 4,451,562,903,178,473,500 | 25.689655 | 66 | 0.574289 | false |
sekikn/incubator-airflow | airflow/providers/amazon/aws/operators/s3_bucket.py | 7 | 3993 | #
# 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
# "License"); you may not... | apache-2.0 | 1,493,359,525,984,938,000 | 38.93 | 95 | 0.676434 | false |
roselleebarle04/django | tests/flatpages_tests/test_sitemaps.py | 380 | 1326 | from __future__ import unicode_literals
from django.apps import apps
from django.contrib.sites.models import Site
from django.test import TestCase
from django.test.utils import modify_settings, override_settings
@override_settings(
ROOT_URLCONF='flatpages_tests.urls',
SITE_ID=1,
)
@modify_settings(
INSTA... | bsd-3-clause | 7,512,587,546,436,622,000 | 34.837838 | 110 | 0.687783 | false |
blaggacao/odoo | addons/mail/tests/test_mail_group.py | 140 | 3964 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Business Applications
# Copyright (c) 2012-TODAY OpenERP S.A. <http://openerp.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of ... | agpl-3.0 | -5,811,167,959,311,190,000 | 54.055556 | 126 | 0.635974 | false |
meetsandeepan/meetsandeepan.github.io | node_modules/pygmentize-bundled/vendor/pygments/build-2.7/pygments/token.py | 365 | 5662 | # -*- coding: utf-8 -*-
"""
pygments.token
~~~~~~~~~~~~~~
Basic token types and the standard tokens.
:copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
class _TokenType(tuple):
parent = None
def split(self):
buf = []
... | mit | -6,306,570,437,643,109,000 | 28.035897 | 70 | 0.459908 | false |
sameetb-cuelogic/edx-platform-test | lms/djangoapps/certificates/migrations/0006_auto__chg_field_generatedcertificate_certificate_id.py | 188 | 7408 | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'GeneratedCertificate.certificate_id'
db.alter_column('certificates_generatedcertificate', 'cert... | agpl-3.0 | 5,627,653,851,054,084,000 | 76.166667 | 182 | 0.568305 | false |
pymedusa/SickRage | ext/guessit/rules/properties/video_codec.py | 4 | 4959 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
video_codec and video_profile property
"""
from rebulk import Rebulk, Rule, RemoveMatch
from rebulk.remodule import re
from ..common import dash
from ..common.pattern import is_disabled
from ..common.validators import seps_after, seps_before, seps_surround
def video_... | gpl-3.0 | 8,392,812,509,139,827,000 | 38.357143 | 117 | 0.618471 | false |
ZhangXinNan/tensorflow | tensorflow/python/saved_model/loader_impl.py | 5 | 14273 | # 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,493,810,611,091,114,500 | 39.896848 | 103 | 0.690955 | false |
django-wodnas/django-tinymce | tinymce/widgets.py | 6 | 4860 | # Copyright (c) 2008 Joost Cassee
# Licensed under the terms of the MIT License (see LICENSE.txt)
"""
This TinyMCE widget was copied and extended from this code by John D'Agostino:
http://code.djangoproject.com/wiki/CustomWidgetsTinyMCE
"""
from django import forms
from django.conf import settings
from django.contrib... | mit | -6,911,016,297,554,156,000 | 35.818182 | 105 | 0.653909 | false |
hoh/Billabong | billabong/check.py | 1 | 2931 | # Copyright (c) 2015 "Hugo Herter http://hugoherter.com"
#
# This file is part of Billabong.
#
# Intercom 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 your o... | agpl-3.0 | 985,511,317,169,826,000 | 30.180851 | 74 | 0.654043 | false |
valkjsaaa/sl4a | python/xmpppy/doc/examples/commandsbot.py | 87 | 7937 | #!/usr/bin/python
""" The example of using xmpppy's Ad-Hoc Commands (JEP-0050) implementation.
"""
import xmpp
from xmpp.protocol import *
options = {
'JID': 'circles@example.com',
'Password': '********',
}
class TestCommand(xmpp.commands.Command_Handler_Prototype):
""" Example class. You should read source if you... | apache-2.0 | 3,100,345,150,622,980,600 | 26.463668 | 92 | 0.681114 | false |
mat12/mytest | lib/python/Components/ChoiceList.py | 7 | 2176 | from MenuList import MenuList
from Tools.Directories import SCOPE_ACTIVE_SKIN, resolveFilename
from enigma import RT_HALIGN_LEFT, eListboxPythonMultiContent, gFont, getDesktop
from Tools.LoadPixmap import LoadPixmap
from Tools.Directories import fileExists
import skin
def ChoiceEntryComponent(key="", text=None):
scre... | gpl-2.0 | -2,123,228,725,338,566,100 | 38.563636 | 98 | 0.721967 | false |
Gheehnest/three.js | utils/exporters/blender/addons/io_three/exporter/api/material.py | 55 | 8333 | from bpy import data, types
from .. import constants, logger
from .constants import MULTIPLY, WIRE, IMAGE
def _material(func):
"""
:param func:
"""
def inner(name, *args, **kwargs):
"""
:param name:
:param *args:
:param **kwargs:
"""
if isinstance(... | mit | -8,537,457,587,146,690,000 | 19.225728 | 76 | 0.614905 | false |
ferrants/ansible | test/units/parsing/test_splitter.py | 204 | 4425 | # coding: utf-8
# (c) 2015, Toshio Kuratomi <tkuratomi@ansible.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your o... | gpl-3.0 | 5,759,693,348,333,707,000 | 38.401786 | 85 | 0.468842 | false |
admire93/youtube-dl | youtube_dl/extractor/sharesix.py | 128 | 2692 | # coding: utf-8
from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..compat import (
compat_urllib_parse,
compat_urllib_request,
)
from ..utils import (
parse_duration,
)
class ShareSixIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?sharesix\.com/(?:f/)?(?P... | unlicense | 5,374,723,151,778,540,000 | 27.946237 | 80 | 0.447994 | false |
elsonrodriguez/madhatter | cobbler/modules/sync_post_restart_services.py | 6 | 2421 | import distutils.sysconfig
import sys
import os
import traceback
import cexceptions
import os
import sys
import xmlrpclib
import cobbler.module_loader as module_loader
import cobbler.utils as utils
plib = distutils.sysconfig.get_python_lib()
mod_path="%s/cobbler" % plib
sys.path.insert(0, mod_path)
def register():
... | gpl-2.0 | -6,551,306,974,139,904,000 | 36.246154 | 98 | 0.619992 | false |
caphrim007/ansible | lib/ansible/module_utils/network/f5/bigiq.py | 15 | 6723 | # -*- coding: utf-8 -*-
#
# Copyright (c) 2017 F5 Networks Inc.
# GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
import os
import time
try:
from f5.bigiq import ManagementRoot
fro... | gpl-3.0 | 5,540,900,257,796,182,000 | 36.983051 | 113 | 0.55972 | false |
alex/pip | pip/index.py | 3 | 38101 | """Routines related to PyPI, indexes"""
from __future__ import absolute_import
import logging
import cgi
from collections import namedtuple
import itertools
import sys
import os
import re
import mimetypes
import posixpath
import warnings
from pip._vendor.six.moves.urllib import parse as urllib_parse
from pip._vendor.... | mit | -2,887,185,659,788,923,000 | 35.012287 | 79 | 0.553004 | false |
faroit/mir_eval | tests/test_sonify.py | 1 | 3340 | """ Unit tests for sonification methods """
import mir_eval
import numpy as np
import scipy
def test_clicks():
# Test output length for a variety of parameter settings
for times in [np.array([1.]), np.arange(10)*1.]:
for fs in [8000, 44100]:
click_signal = mir_eval.sonify.clicks(times, fs... | mit | -2,593,659,800,626,248,700 | 36.111111 | 77 | 0.577545 | false |
crakensio/django_training | lib/python2.7/site-packages/django/contrib/auth/tests/test_auth_backends.py | 97 | 19207 | from __future__ import unicode_literals
from datetime import date
from django.conf import settings
from django.contrib.auth.backends import ModelBackend
from django.contrib.auth.models import User, Group, Permission, AnonymousUser
from django.contrib.auth.tests.utils import skipIfCustomUser
from django.contrib.auth.te... | cc0-1.0 | -101,636,079,758,617,650 | 36.958498 | 116 | 0.660957 | false |
kunaltyagi/nsiqcppstyle | nsiqcppstyle.py | 1 | 2624 | #!/usr/bin/env python
#
# Copyright (c) 2009 NHN Inc. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this l... | gpl-2.0 | 7,175,608,701,901,995,000 | 36.028986 | 74 | 0.714558 | false |
dmsurti/mayavi | mayavi/sources/chaco_reader.py | 3 | 2647 | """A Chaco file reader.
"""
# Author: Suyog Dutt Jain <suyog.jain@aero.iitb.ac.in>
# Copyright (c) 2009, Enthought, Inc.
# License: BSD Style.
# Enthought library imports.
from traits.api import Instance, Str
from traitsui.api import View, Group, Item
from tvtk.api import tvtk
# Local imports.
from mayavi.core.source... | bsd-3-clause | -3,196,526,411,355,711,000 | 31.280488 | 74 | 0.496789 | false |
ZaraSeries/repo | script.module.urlresolver/lib/urlresolver/plugins/streaminto.py | 3 | 2808 | """
urlresolver XBMC Addon
Copyright (C) 2011 t0mm0
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
... | gpl-2.0 | -8,922,828,102,668,085,000 | 40.294118 | 92 | 0.630698 | false |
arunlodhi/pymc3 | pymc3/interactive_sampling.py | 10 | 4699 | try:
__IPYTHON__
import IPython
import ipywidgets as widgets
from IPython.core import display
from traitlets import Unicode, Integer, Float
import json
from numpy.random import seed
import time
from .backends.base import MultiTrace
from .sampling import _iter_sample
except (NameE... | apache-2.0 | -410,070,160,164,894,400 | 40.955357 | 112 | 0.51628 | false |
dnozay/lettuce | tests/integration/lib/Django-1.3/django/core/servers/fastcgi.py | 289 | 6402 | """
FastCGI (or SCGI, or AJP1.3 ...) server that implements the WSGI protocol.
Uses the flup python package: http://www.saddi.com/software/flup/
This is a adaptation of the flup package to add FastCGI server support
to run Django apps from Web servers that support the FastCGI protocol.
This module can be run standalo... | gpl-3.0 | 1,722,171,115,303,504,600 | 33.983607 | 95 | 0.628085 | false |
gdgellatly/OCB1 | addons/delivery/partner.py | 57 | 1474 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | agpl-3.0 | -1,834,567,405,601,809,200 | 35.85 | 81 | 0.609227 | false |
swilcox/pinax-blog | pinax/blog/admin.py | 3 | 2677 | from django.contrib import admin
from django.utils import timezone
from django.utils.functional import curry
from django.utils.translation import ugettext_lazy as _
from .forms import AdminPostForm
from .models import Post, Image, ReviewComment, Section
from .utils import can_tweet
class ImageInline(admin.TabularInl... | mit | -7,627,998,283,907,405,000 | 30.127907 | 89 | 0.650355 | false |
gengjiawen/AndroidHelper | aar_util/aar_util.py | 1 | 1841 | import os
import shutil
import tempfile
import zipfile
from utils.file_util import get_files_by_re, gen_new_file_extension
def get_aar_files(proj_dir, des_dir):
rel_aar_dir = r"build\outputs\aar"
aar_dirs = [os.path.join(proj_dir, i) for i in os.listdir(proj_dir) if os.path.isdir(os.path.join(proj_dir, i))]
... | mit | 1,090,207,391,093,984,800 | 35.82 | 116 | 0.612167 | false |
SysTheron/adhocracy | src/adhocracy/websetup.py | 2 | 1955 | """Setup the adhocracy application"""
import logging
import os
import os.path
import pylons
import pylons.test
from pylons import config
import migrate.versioning.api as migrateapi
try:
from migrate.versioning.exceptions import DatabaseAlreadyControlledError
from migrate.versioning.exceptions import DatabaseN... | agpl-3.0 | 196,285,035,216,708,300 | 32.135593 | 81 | 0.725831 | false |
JFriel/honours_project | venv/lib/python2.7/site-packages/numpy/fft/tests/test_helper.py | 117 | 2556 | #!/usr/bin/env python
"""Test functions for fftpack.helper module
Copied from fftpack.helper by Pearu Peterson, October 2005
"""
from __future__ import division, absolute_import, print_function
import numpy as np
from numpy.testing import TestCase, run_module_suite, assert_array_almost_equal
from numpy import fft
fr... | gpl-3.0 | -3,015,139,154,835,288,000 | 31.769231 | 79 | 0.572379 | false |
slundberg/Mocha.jl | docs/conf.py | 23 | 8570 | # -*- coding: utf-8 -*-
#
# Mocha documentation build configuration file, created by
# sphinx-quickstart on Thu Nov 13 00:43:40 2014.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All... | mit | 1,705,881,141,127,873,800 | 29.938628 | 79 | 0.703034 | false |
waymarkedtrails/waymarked-trails-site | db/tables/route_nodes.py | 2 | 3914 | # This file is part of the Waymarked Trails Map Project
# Copyright (C) 2015 Sarah Hoffmann
#
# This 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 any later version.
#
#... | gpl-3.0 | -8,747,056,517,793,661,000 | 34.908257 | 83 | 0.629024 | false |
Yawning/or-applet | orapplet/status_icon.py | 1 | 12289 | #!/usr/bin/env python2
# This file is part of or-applet.
#
# or-applet 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.
#
# or-applet i... | gpl-3.0 | 4,973,378,940,227,673,000 | 37.523511 | 120 | 0.647652 | false |
deadblue/baidupan_shell | pyasn1/type/univ.py | 185 | 39731 | # ASN.1 "universal" data types
import operator, sys
from pyasn1.type import base, tag, constraint, namedtype, namedval, tagmap
from pyasn1.codec.ber import eoo
from pyasn1.compat import octets
from pyasn1 import error
# "Simple" ASN.1 types (yet incomplete)
class Integer(base.AbstractSimpleAsn1Item):
tagSet = bas... | gpl-2.0 | 1,314,233,685,782,889,200 | 37.129559 | 117 | 0.549974 | false |
liyu1990/sklearn | examples/manifold/plot_swissroll.py | 330 | 1446 | """
===================================
Swiss Roll reduction with LLE
===================================
An illustration of Swiss Roll reduction
with locally linear embedding
"""
# Author: Fabian Pedregosa -- <fabian.pedregosa@inria.fr>
# License: BSD 3 clause (C) INRIA 2011
print(__doc__)
import matplotlib.pyplot... | bsd-3-clause | -1,486,551,899,741,850,000 | 27.92 | 72 | 0.574689 | false |
barthisrael/OmniDB | OmniDB/OmniDB_app/include/paramiko/kex_gex.py | 7 | 10302 | # Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com>
#
# This file is part of paramiko.
#
# Paramiko 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... | mit | -3,105,219,090,994,518,500 | 34.89547 | 95 | 0.575519 | false |
numerigraphe/odoo | addons/project/report/project_report.py | 279 | 5789 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | agpl-3.0 | -8,095,639,358,768,804,000 | 49.33913 | 143 | 0.534462 | false |
liavkoren/djangoDev | django/db/backends/schema.py | 2 | 38689 | import hashlib
import operator
from django.db.backends.creation import BaseDatabaseCreation
from django.db.backends.utils import truncate_name
from django.db.models.fields.related import ManyToManyField
from django.db.transaction import atomic
from django.utils.encoding import force_bytes
from django.utils.log import ... | bsd-3-clause | -288,901,835,067,738,000 | 45.782346 | 193 | 0.549303 | false |
tvenkat/askbot-devel | askbot/management/commands/add_admin.py | 13 | 1434 | from django.core.management.base import NoArgsCommand
from django.contrib.auth.models import User
from django.db.models.signals import pre_save, post_save
import sys
class Command(NoArgsCommand):
def get_user(self, uid_str):
try:
uid = int(uid_str)
return User.objects.get(id=uid)
... | gpl-3.0 | 2,222,627,754,285,607,700 | 30.866667 | 100 | 0.580195 | false |
cmusatyalab/django-s3 | django_s3/forms.py | 1 | 1062 | #
# Copyright (C) 2012 Carnegie Mellon University
#
# 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 that it will be useful,
# but WITHOUT AN... | gpl-2.0 | -134,369,736,689,553,500 | 30.235294 | 67 | 0.747646 | false |
rigmar/idapython | examples/ex_patch.py | 18 | 1139 | # -------------------------------------------------------------------------
# This is an example illustrating how to visit all patched bytes in Python
# (c) Hex-Rays
import idaapi
# -------------------------------------------------------------------------
class patched_bytes_visitor(object):
def __init__(self):
... | bsd-3-clause | 8,492,315,894,779,684,000 | 30.666667 | 75 | 0.378402 | false |
cirrax/openstack-nagios-plugins | openstacknagios/nova/Services.py | 1 | 4298 | #
# Copyright (C) 2014 Cirrax GmbH http://www.cirrax.com
# Benedikt Trefzer <benedikt.trefzer@cirrax.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of t... | gpl-3.0 | 5,133,699,961,189,543,000 | 37.375 | 133 | 0.60121 | false |
studio666/gnuradio | grc/base/Connection.py | 17 | 5254 | """
Copyright 2008-2011 Free Software Foundation, Inc.
This file is part of GNU Radio
GNU Radio Companion 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 l... | gpl-3.0 | -4,889,012,449,644,270,000 | 37.072464 | 91 | 0.579178 | false |
Ichag/odoo | openerp/addons/base/__init__.py | 379 | 1134 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the... | agpl-3.0 | -1,669,418,776,719,179,800 | 36.8 | 79 | 0.621693 | false |
IndigoTiger/ezzybot | ezzybot/util/bucket.py | 5 | 1252 | from time import time
class TokenBucket(object):
"""An implementation of the token bucket algorithm.
>>> bucket = TokenBucket(80, 0.5)
>>> print bucket.consume(10)
True
>>> print bucket.consume(90)
False
"""
def __init__(self, tokens, fill_rate):
"""tokens is the total tokens... | gpl-3.0 | -6,717,562,289,323,511,000 | 28.809524 | 69 | 0.591853 | false |
sauloal/linuxscripts | apache/var/www/html/saulo/torrent/html/bin/clients/mainline/BTL/yielddefer25.py | 11 | 6035 | # yielddefer is an async programming mechanism with a blocking look-alike syntax
#
# The contents of this file are subject to the Python Software Foundation
# License Version 2.3 (the License). You may not copy or use this file, in
# either source code or executable form, except in compliance with the License.
# You m... | mit | -5,791,329,552,378,903,000 | 32.342541 | 86 | 0.594366 | false |
wsdream/CARP | CARP/src/evaluator.py | 1 | 5610 | ########################################################
# evaluator.py
# Author: Jamie Zhu <jimzhu@GitHub>
# Created: 2014/2/6
# Last updated: 2014/11/03
########################################################
import numpy as np
from numpy import linalg as LA
import time, sys
import random
import core
from utilitie... | mit | -2,825,900,155,382,062,000 | 35.193548 | 86 | 0.58164 | false |
bhargav2408/python-for-android | python-modules/twisted/twisted/conch/ssh/service.py | 61 | 1418 | # Copyright (c) 2001-2004 Twisted Matrix Laboratories.
# See LICENSE for details.
"""
The parent class for all the SSH services. Currently implemented services
are ssh-userauth and ssh-connection.
Maintainer: Paul Swartz
"""
from twisted.python import log
class SSHService(log.Logger):
name = None # this is th... | apache-2.0 | -8,899,945,667,857,492,000 | 28.541667 | 75 | 0.620592 | false |
manojgudi/sandhi | modules/gr36/gnuradio-core/src/python/gnuradio/gr/qa_kludged_imports.py | 18 | 1325 | #!/usr/bin/env python
#
# Copyright 2005,2008,2010 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio 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, or (at your ... | gpl-3.0 | 703,080,767,544,896,900 | 29.813953 | 70 | 0.714717 | false |
jarathomas/openVA-Pipeline | pipeline.py | 1 | 49777 | #-------------------------------------------------------------------------------------------------------------------------------------------#
# openVA Pipeline: pipeline.py -- Software for processing Verbal Autopsy data with automated cause of death assignment. #
# Copyright (C) 2018 Jason Thomas,... | gpl-3.0 | 4,634,560,813,896,929,000 | 49.279798 | 171 | 0.53587 | false |
gfyoung/pandas | pandas/tests/frame/indexing/test_getitem.py | 2 | 5364 | import numpy as np
import pytest
from pandas import (
Categorical,
CategoricalDtype,
CategoricalIndex,
DataFrame,
MultiIndex,
Series,
Timestamp,
get_dummies,
period_range,
)
import pandas._testing as tm
from pandas.core.arrays import SparseArray
class TestGetitem:
def test_get... | bsd-3-clause | 7,923,465,243,973,377,000 | 29.477273 | 79 | 0.537472 | false |
koobonil/Boss2D | Boss2D/addon/tensorflow-1.2.1_for_boss/tensorflow/python/training/server_lib_same_variables_no_clear_test.py | 125 | 2159 | # 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... | mit | -7,061,813,193,182,121,000 | 38.981481 | 80 | 0.698472 | false |
nilsgrabbert/spark | examples/src/main/python/streaming/hdfs_wordcount.py | 85 | 1865 | #
# 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 "License"); you may not us... | apache-2.0 | 3,783,801,989,740,377,000 | 36.3 | 94 | 0.720643 | false |
ddrmanxbxfr/servo | tests/wpt/css-tests/tools/py/testing/code/test_code.py | 216 | 4212 | import py
import sys
def test_ne():
code1 = py.code.Code(compile('foo = "bar"', '', 'exec'))
assert code1 == code1
code2 = py.code.Code(compile('foo = "baz"', '', 'exec'))
assert code2 != code1
def test_code_gives_back_name_for_not_existing_file():
name = 'abc-123'
co_code = compile("pass\n", ... | mpl-2.0 | 5,943,583,065,023,950,000 | 25.490566 | 76 | 0.57075 | false |
dralves/nixysa | third_party/ply-3.1/test/lex_hedit.py | 174 | 1141 | # -----------------------------------------------------------------------------
# hedit.py
#
# Paring of Fortran H Edit descriptions (Contributed by Pearu Peterson)
#
# These tokens can't be easily tokenized because they are of the following
# form:
#
# nHc1...cn
#
# where n is a positive integer and c1 ... cn are ch... | apache-2.0 | -3,758,831,825,911,637,500 | 23.276596 | 79 | 0.516214 | false |
abhikeshav/ydk-py | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ip_pfilter_oper.py | 1 | 21114 | """ Cisco_IOS_XR_ip_pfilter_oper
This module contains a collection of YANG definitions
for Cisco IOS\-XR ip\-pfilter package operational data.
This module contains definitions
for the following management objects\:
pfilter\-ma\: Root class of PfilterMa Oper schema
Copyright (c) 2013\-2015 by Cisco Systems, Inc.
A... | apache-2.0 | -1,239,986,136,252,464,000 | 38.027726 | 341 | 0.426257 | false |
abligh/xen-4.2-live-migrate | tools/python/xen/xend/xenstore/tests/stress_xs.py | 49 | 2700 | # This library is free software; you can redistribute it and/or
# modify it under the terms of version 2.1 of the GNU Lesser General Public
# License as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied war... | gpl-2.0 | 6,433,003,891,580,499,000 | 21.31405 | 75 | 0.627407 | false |
MLnick/spark | examples/src/main/python/mllib/logistic_regression_with_lbfgs_example.py | 106 | 2082 | #
# 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 "License"); you may not us... | apache-2.0 | 4,443,358,212,936,988,000 | 37.555556 | 99 | 0.723823 | false |
yaukwankiu/armor | __init__pre_20140313.py | 1 | 2017 | """
I am completely rewriting this framework which was formerly known as weatherPattern. Yau Kwan Kiu, 802 CERB, NTU, 23-1-2013.
== Requirements ==
* python 2.7 or similar (python 2.5 will probably be okay, no python 3 please)
* numpy and scipy
* no sympy needed yet
* no opencv yet
== What's this? ==
ARMOR = Adjustm... | cc0-1.0 | 6,770,884,905,230,082,000 | 44.840909 | 423 | 0.737234 | false |
boltnev/iktomi | tests/db/sqla/__init__.py | 4 | 2080 | import unittest
from sqlalchemy.exc import UnboundExecutionError
from sqlalchemy.orm import sessionmaker
from sqlalchemy import func
from iktomi.db.sqla import multidb_binds
from . import multidb_models
from .multidb_models import db1, db2
class MultidbTest(unittest.TestCase):
def setUp(self):
binds = mu... | mit | -6,861,245,766,303,229,000 | 37.518519 | 71 | 0.622115 | false |
Voluntarynet/BitmessageKit | BitmessageKit/Vendor/static-python/Lib/traceback.py | 67 | 11255 | """Extract, format and print information about Python stack traces."""
import linecache
import sys
import types
__all__ = ['extract_stack', 'extract_tb', 'format_exception',
'format_exception_only', 'format_list', 'format_stack',
'format_tb', 'print_exc', 'format_exc', 'print_exception',
... | mit | -7,451,505,135,514,413,000 | 34.282132 | 100 | 0.626033 | false |
deepsrijit1105/edx-platform | openedx/core/djangoapps/credit/admin.py | 27 | 2460 | """
Django admin page for credit eligibility
"""
from ratelimitbackend import admin
from openedx.core.djangoapps.credit.models import (
CreditConfig, CreditCourse, CreditProvider, CreditEligibility, CreditRequest, CreditRequirement,
CreditRequirementStatus
)
class CreditCourseAdmin(admin.ModelAdmin):
"""... | agpl-3.0 | -5,727,921,518,648,047,000 | 30.948052 | 100 | 0.703659 | false |
statgen/encore | encore/tests/api_tests.py | 1 | 1036 | import pytest
import flask_login
from encore import create_app
from encore.user import User
@pytest.fixture(scope="module")
def app(request):
app = create_app()
ctx = app.app_context()
ctx.push()
request.addfinalizer(ctx.pop)
return app
@pytest.fixture(scope="module")
def test_client(request, app)... | agpl-3.0 | -1,688,377,205,503,942,100 | 26.263158 | 67 | 0.662162 | false |
williamfeng323/py-web | flask/lib/python3.6/site-packages/psycopg2/psycopg1.py | 8 | 3339 | """psycopg 1.1.x compatibility module
This module uses the new style connection and cursor types to build a psycopg
1.1.1.x compatibility layer. It should be considered a temporary hack to run
old code while porting to psycopg 2. Import it as follows::
from psycopg2 import psycopg1 as psycopg
"""
# psycopg/psycop... | mit | -1,886,374,107,592,166,100 | 33.78125 | 77 | 0.684636 | false |
aeron15/ruffus | ruffus/test/test_transform_with_no_re_matches.py | 5 | 3227 | #!/usr/bin/env python
from __future__ import print_function
"""
test_transform_with_no_re_matches.py
test messages with no regular expression matches
"""
#88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888
# options
#888888888888888888888888888888888888888888... | mit | -3,462,820,483,330,502,700 | 24.816 | 99 | 0.669352 | false |
jaingaurav/Diamond | src/collectors/cephstats/cephstats.py | 26 | 1581 | # coding=utf-8
"""
Get ceph status from one node
"""
import subprocess
import re
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)),
'ceph'))
from ceph import CephCollector
patternchk = re.compile(r'\bclient io .*')
numberchk = re.compile(r... | mit | -4,525,459,448,617,787,000 | 23.323077 | 75 | 0.555977 | false |
tersmitten/ansible | lib/ansible/plugins/shell/powershell.py | 30 | 12111 | # Copyright (c) 2014, Chris Church <chris@ninemoreminutes.com>
# Copyright (c) 2017 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
DOCUMENTATION = '''
name: powershell
p... | gpl-3.0 | -2,502,365,957,732,336,000 | 37.942122 | 155 | 0.570721 | false |
Kovath/league-announcer | log_analyzer.py | 1 | 1527 | #!/usr/bin/env python
# LOG ANALYZER
# by Kevin Yang
#
# Assumes VERY MUCH THIS FORMAT:
# [<time>] <event> -> <data>
import sys, re
import numpy as np
def find_outliers(array, mean = None, std = None, m = 6):
if mean == None:
mean = np.mean(array)
if std == None:
std = np.std(array)
return array[abs(array - ... | mit | -2,527,666,009,925,682,000 | 21.470588 | 72 | 0.59594 | false |
40123148/40123148 | static/Brython3.1.1-20150328-091302/Lib/unittest/test/test_case.py | 738 | 51689 | import difflib
import pprint
import pickle
import re
import sys
import warnings
import weakref
import inspect
from copy import deepcopy
from test import support
import unittest
from .support import (
TestEquality, TestHashing, LoggingResult,
ResultWithNoStartTestRunStopTestRun
)
class Test(object):
"Ke... | lgpl-3.0 | -749,433,752,865,654,800 | 38.307224 | 87 | 0.595794 | false |
gangadharkadam/v5_frappe | frappe/utils/data.py | 4 | 17064 | # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
# IMPORTANT: only import safe functions as this module will be included in jinja environment
import frappe
import operator
import re, urllib, datetime, math
import babel.dates... | mit | -9,066,791,448,070,147,000 | 27.158416 | 145 | 0.643108 | false |
cloudify-cosmo/cloudify-diamond-plugin | diamond_agent/tests/test_single_node.py | 1 | 7362 | import os
import time
import tempfile
import pickle as cPickle
import mock
from testtools import TestCase
from cloudify.workflows import local
from cloudify.decorators import operation
from diamond_agent import tasks
from diamond_agent.tests import IGNORED_LOCAL_WORKFLOW_MODULES
class TestSingleNode(TestCase):
... | apache-2.0 | -4,313,866,447,422,166,500 | 31.72 | 79 | 0.502445 | false |
varunagrawal/azure-services | varunagrawal/site-packages/django/contrib/admindocs/views.py | 77 | 15064 | import inspect
import os
import re
from django import template
from django.template import RequestContext
from django.conf import settings
from django.contrib.admin.views.decorators import staff_member_required
from django.db import models
from django.shortcuts import render_to_response
from django.core.exceptions imp... | gpl-2.0 | -6,575,094,731,674,168,000 | 38.434555 | 180 | 0.594264 | false |
lasote/conan | conans/test/integration/profile_test.py | 1 | 16563 | import unittest
from conans.client import tools
from conans.test.utils.tools import TestClient
from conans.test.utils.cpp_test_files import cpp_hello_conan_files
from conans.util.files import save, load
import os
from conans.paths import CONANFILE
from collections import OrderedDict
from conans.test.utils.test_files i... | mit | 1,846,403,134,146,039,600 | 41.360614 | 97 | 0.603333 | false |
luofei98/qgis | python/plugins/processing/algs/otb/maintenance/OTBTester.py | 4 | 16871 | # -*- coding: utf-8 -*-
"""
***************************************************************************
OTBTester.py
---------------------
Copyright : (C) 2013 by CS Systemes d'information (CS SI)
Email : otb at c-s dot fr (CS SI)
Contributors : Julien Malik (CS SI... | gpl-2.0 | 789,516,047,254,340,100 | 38.053241 | 145 | 0.514433 | false |
aewallin/opencamlib | examples/python/old/kdtree_tst.py | 1 | 5359 | import ocl as cam
import camvtk
import time
import vtk
import datetime
if __name__ == "__main__":
myscreen = camvtk.VTKScreen()
myscreen.setAmbient(1,1,1)
#stl = camvtk.STLSurf(filename="demo.stl")
stl = camvtk.STLSurf(filename="demo2.stl")
print("STL surface read")
myscreen.addActor(stl... | lgpl-2.1 | 727,688,251,211,723,800 | 28.284153 | 130 | 0.549543 | false |
axelkennedal/dissen | dissenEnv/lib/python3.5/site-packages/django/forms/fields.py | 35 | 47161 | """
Field classes.
"""
from __future__ import unicode_literals
import copy
import datetime
import os
import re
import sys
import uuid
import warnings
from decimal import Decimal, DecimalException
from io import BytesIO
from django.core import validators
from django.core.exceptions import ValidationError
# Provide th... | mit | 4,796,067,627,579,341,000 | 37.187045 | 110 | 0.598121 | false |
hmendozap/master-arbeit-projects | autosk_dev_test/component/LinReg.py | 1 | 8756 | import numpy as np
import scipy.sparse as sp
from HPOlibConfigSpace.configuration_space import ConfigurationSpace
from HPOlibConfigSpace.conditions import EqualsCondition, InCondition
from HPOlibConfigSpace.hyperparameters import UniformFloatHyperparameter, \
UniformIntegerHyperparameter, CategoricalHyperparameter... | mit | -3,494,951,040,575,415,000 | 43.446701 | 102 | 0.470991 | false |
idnael/ctxsearch | ctxsearch/_termi/_termi_encoding.py | 1 | 4460 | #!/usr/bin/python
# TerminatorEncoding - charset encoding classes
# Copyright (C) 2006-2008 chantra@debuntu.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, version 2 only.
#
# T... | gpl-2.0 | 6,860,210,027,241,304,000 | 37.782609 | 79 | 0.576457 | false |
kbrose/project_euler | p90-99/p91.py | 1 | 1360 | grid_size = 50 # assumes a square grid
counter = 3 * (grid_size * grid_size) # all cases that won't be covered
def gcd(a,b):
while (b != 0) and (a != b) and (a != 0):
if b < a:
a = a - b
else:
b = b - a
if a > 0:
return a
return b
end = grid_size+1
def my_a... | unlicense | 557,626,984,125,605,100 | 26.2 | 80 | 0.447059 | false |
LIMXTEC/BitSend | qa/rpc-tests/mempool_reorg.py | 3 | 4514 | #!/usr/bin/env python3
# Copyright (c) 2014-2016 The Bitsend Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Test re-org scenarios with a mempool that contains transactions
# that spend (directly or indirectly)... | mit | 7,167,700,610,357,613,000 | 43.693069 | 122 | 0.652636 | false |
piru/letsencrypt | letsencrypt/tests/display/enhancements_test.py | 53 | 1703 | """Module for enhancement UI."""
import logging
import unittest
import mock
from letsencrypt import errors
from letsencrypt.display import util as display_util
class AskTest(unittest.TestCase):
"""Test the ask method."""
def setUp(self):
logging.disable(logging.CRITICAL)
def tearDown(self):
... | apache-2.0 | 8,566,637,641,327,471,000 | 28.877193 | 74 | 0.67293 | false |
canwe/NewsBlur | apps/rss_feeds/migrations/0046_remove_feedhistory.py | 18 | 5828 | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting model 'FeedUpdateHistory'
db.delete_table('rss_feeds_feedupdatehistory')
def backwards(se... | mit | 6,685,264,770,255,732,000 | 69.216867 | 151 | 0.562972 | false |
sumeetsk/NEXT-1 | next/assistant/pijemont/verifier.py | 3 | 7768 | import yaml, json
import random
import traceback
import sys
import os
import next.utils as utils
DICT = {'dict','dictionary','map'}
LIST = {'list'}
TUPLE = {'tuple'}
ONEOF = {'oneof'}
NUM = {'num','number','float'}
STRING = {'str','string','multiline'}
ANY = {'any','stuff'}
FILE = {'file'}
BOOL = {'boolean','bool'}
... | apache-2.0 | -2,925,835,634,634,915,000 | 34.47032 | 134 | 0.529609 | false |
Subsets and Splits
Gradio Code Samples
Limits the results to entries containing the word 'gradio' in the repo_name, content, or path, providing a filtered subset of the dataset.