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 |
|---|---|---|---|---|---|---|---|---|---|---|
spinicist/ITK | Wrapping/Generators/Python/Tests/wrappingCoverage.py | 8 | 2909 | #==========================================================================
#
# Copyright Insight Software Consortium
#
# 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... | apache-2.0 | -196,618,674,219,446,370 | 31.322222 | 79 | 0.63527 | false |
solarjoe/numpy | tools/npy_tempita/compat3.py | 42 | 1094 | from __future__ import absolute_import, division, print_function
import sys
__all__ = ['PY3', 'b', 'basestring_', 'bytes', 'next', 'is_unicode',
'iteritems']
PY3 = True if sys.version_info[0] == 3 else False
if sys.version_info[0] < 3:
def next(obj):
return obj.next()
def iteritems(d, *... | bsd-3-clause | -7,501,397,780,349,668,000 | 18.890909 | 68 | 0.538391 | false |
wulczer/ansible | lib/ansible/inventory/__init__.py | 13 | 25475 | # (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.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 option) an... | gpl-3.0 | 5,957,708,799,310,906,000 | 37.952599 | 170 | 0.565378 | false |
tensorflow/models | official/nlp/nhnet/configs.py | 1 | 3203 | # Copyright 2021 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 | 7,170,364,536,636,620,000 | 29.216981 | 78 | 0.699969 | false |
bertucho/epic-movie-quotes-quiz | dialogos/build/scrapy/tests/test_utils_url.py | 15 | 10500 | import unittest
from scrapy.spiders import Spider
from scrapy.utils.url import url_is_from_any_domain, url_is_from_spider, canonicalize_url
__doctests__ = ['scrapy.utils.url']
class UrlUtilsTest(unittest.TestCase):
def test_url_is_from_any_domain(self):
url = 'http://www.wheele-bin-art.co.uk/get/produc... | mit | 2,298,285,911,706,669,800 | 59.344828 | 150 | 0.592952 | false |
mbaijal/incubator-mxnet | python/mxnet/lr_scheduler.py | 18 | 11542 | # 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 u... | apache-2.0 | -4,903,619,106,887,850,000 | 40.074733 | 98 | 0.613932 | false |
firebitsbr/discover | parsers/parse-nmap.py | 7 | 4345 | #!/usr/bin/env python
#
# by Saviour Emmanuel
from xml.dom import minidom
class NMAP_XMLParser(object):
def __init__(self,file_path):
self._xml_object = object()
self._xml_path = file_path
self._output_path = str()
self._csv_string = str()
self._open_xml()
def _open_xm... | bsd-3-clause | -2,463,991,100,049,689,000 | 34.909091 | 103 | 0.572152 | false |
Crach1015/plugin.video.superpack | zip/plugin.video.Robinhood2.0/youtubedl.py | 255 | 1840 | # -*- coding: utf-8 -*-
import xbmc,xbmcgui
try:
from YDStreamExtractor import getVideoInfo
from YDStreamExtractor import handleDownload
except Exception:
print 'importing Error. You need youtubedl module which is in official xbmc.org'
xbmc.executebuiltin("XBMC.Notification(LiveStreamsPro,Please [C... | gpl-2.0 | 6,661,643,760,216,008,000 | 38.148936 | 125 | 0.497826 | false |
kmoocdev2/edx-platform | lms/djangoapps/verify_student/management/commands/manual_verifications.py | 13 | 3261 | """
Django admin commands related to verify_student
"""
import logging
import os
from pprint import pformat
from django.core.management.base import BaseCommand, CommandError
from django.contrib.auth.models import User
from lms.djangoapps.verify_student.models import ManualVerification
from lms.djangoapps.verify_stude... | agpl-3.0 | -4,838,766,839,211,489,000 | 36.918605 | 117 | 0.598589 | false |
bansallab/roundup | _214_scrape.py | 1 | 6944 | import csv
from urllib.request import Request, urlopen
import dateutil.parser
import re
from os import system
from sys import argv
from bs4 import BeautifulSoup
from datetime import date
import scrape_util
default_sale, base_url, prefix = scrape_util.get_market(argv)
default_sale = default_sale[0]
report_path = 'mar... | mit | -1,843,432,755,051,657,200 | 31.448598 | 128 | 0.557892 | false |
kwrl/trondheim.kodeklubben.no | backend/wsgi/usermanagement/forms.py | 2 | 1601 | from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm, AuthenticationForm
from django.forms import ModelForm
class RegistrationForm(UserCreationForm):
email = forms.EmailField(required=True)
first_name = forms.CharField(required=True)... | gpl-3.0 | -6,222,866,725,159,996,000 | 36.232558 | 90 | 0.638976 | false |
houshengbo/nova_vmware_compute_driver | nova/scheduler/manager.py | 2 | 11613 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) 2010 OpenStack, LLC.
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# ... | apache-2.0 | 7,823,074,096,763,811,000 | 42.33209 | 78 | 0.560579 | false |
JavaRabbit/CS496_capstone | language/api/analyze.py | 8 | 2746 | #!/usr/bin/env python
# Copyright 2016 Google, 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 | -6,025,316,655,616,881,000 | 25.921569 | 74 | 0.648216 | false |
cedi4155476/QGIS | python/ext-libs/pygments/formatters/svg.py | 362 | 5867 | # -*- coding: utf-8 -*-
"""
pygments.formatters.svg
~~~~~~~~~~~~~~~~~~~~~~~
Formatter for SVG output.
:copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from pygments.formatter import Formatter
from pygments.util import get_bool_opt, get... | gpl-2.0 | 3,253,757,624,218,299,000 | 37.097403 | 81 | 0.55565 | false |
bbc/kamaelia | Sketches/AB/backup/Bookmarks/LiveAnalysis.py | 3 | 37390 | #! /usr/bin/python
'''
Analyses saved data in DB to give something more useful. Saves to output DB ready for display in web interface
Any looking at natural language engines / subtitles should be done here or in components following this
Need to ensure one rogue user can't cause a trend - things must be mentioned by s... | apache-2.0 | 3,649,172,684,573,453,000 | 54.724292 | 270 | 0.49671 | false |
Alecto3-D/testable-greeter | bb-master/sandbox/lib/python3.5/site-packages/buildbot_worker/commands/transfer.py | 3 | 12816 | # This file is part of Buildbot. Buildbot 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.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without eve... | mit | 8,662,104,282,725,579,000 | 31.777494 | 99 | 0.555868 | false |
ms-iot/python | cpython/Lib/plat-linux/CDROM.py | 330 | 5035 | # Generated by h2py from /usr/include/linux/cdrom.h
CDROMPAUSE = 0x5301
CDROMRESUME = 0x5302
CDROMPLAYMSF = 0x5303
CDROMPLAYTRKIND = 0x5304
CDROMREADTOCHDR = 0x5305
CDROMREADTOCENTRY = 0x5306
CDROMSTOP = 0x5307
CDROMSTART = 0x5308
CDROMEJECT = 0x5309
CDROMVOLCTRL = 0x530a
CDROMSUBCHNL = 0x530b
CDROMREADMODE2 = 0x530c
... | bsd-3-clause | 6,379,290,081,983,009,000 | 23.323671 | 64 | 0.748957 | false |
heytcass/homeassistant-config | deps/sqlalchemy/sql/operators.py | 34 | 23013 | # sql/operators.py
# Copyright (C) 2005-2016 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
# This module is part of SQLAlchemy and is released under
# the MIT License: http:/... | mit | -4,702,326,922,308,176,000 | 24.428729 | 78 | 0.589319 | false |
xiangel/hue | desktop/core/ext-py/pysaml2-2.4.0/example/idp2/idp_uwsgi.py | 29 | 36330 | #!/usr/bin/env python
import importlib
import argparse
import base64
import re
import logging
import time
from hashlib import sha1
from urlparse import parse_qs
from Cookie import SimpleCookie
import os
from saml2.authn import is_equal
from saml2.profile import ecp
from saml2 import server
from saml2 import BINDING_H... | apache-2.0 | -4,513,507,734,606,042,600 | 34.340467 | 80 | 0.529452 | false |
BorisJeremic/Real-ESSI-Examples | analytic_solution/test_cases/4NodeANDES/cantilever_different_Poisson/NumberOfDivision1/PoissonRatio0.49/compare_HDF5_ALL.py | 424 | 3382 | #!/usr/bin/python
import h5py
import sys
import numpy as np
import os
import re
import random
# find the path to my own python function:
cur_dir=os.getcwd()
sep='test_cases'
test_DIR=cur_dir.split(sep,1)[0]
scriptDIR=test_DIR+'compare_function'
sys.path.append(scriptDIR)
# import my own function for color and comparat... | cc0-1.0 | 7,623,824,753,594,278,000 | 28.417391 | 119 | 0.653164 | false |
jordiclariana/ansible | lib/ansible/modules/system/selinux_permissive.py | 48 | 4345 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2015, Michael Scherer <misc@zarb.org>
# inspired by code of github.com/dandiker/
#
# 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 Softwar... | gpl-3.0 | -6,559,964,134,323,870,000 | 30.258993 | 135 | 0.637284 | false |
hankcs/CS224n | assignment2/utils/parser_utils.py | 7 | 15552 | """Utilities for training the dependency parser.
You do not need to read/understand this code
"""
import time
import os
import logging
from collections import Counter
from general_utils import logged_loop, get_minibatches
from q2_parser_transitions import PartialParse, minibatch_parse
import numpy as np
P_PREFIX = ... | gpl-3.0 | 5,724,690,142,861,250,000 | 38.774936 | 100 | 0.510995 | false |
hazrpg/calibre | src/calibre/gui2/dialogs/confirm_delete.py | 14 | 2426 | #!/usr/bin/env python2
__license__ = 'GPL v3'
__copyright__ = '2008, Kovid Goyal kovid@kovidgoyal.net'
__docformat__ = 'restructuredtext en'
from PyQt5.Qt import (
QDialog, Qt, QPixmap, QIcon, QSize, QVBoxLayout, QHBoxLayout, QLabel,
QCheckBox, QDialogButtonBox)
from calibre import confirm_config_name
from... | gpl-3.0 | 1,272,116,582,806,758,400 | 36.323077 | 102 | 0.645507 | false |
LeZhang2016/openthread | tests/scripts/thread-cert/Cert_6_1_03_RouterAttachConnectivity.py | 3 | 4589 | #!/usr/bin/env python
#
# Copyright (c) 2016, The OpenThread Authors.
# 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
# ... | bsd-3-clause | -5,131,039,586,845,095,000 | 38.904348 | 78 | 0.680105 | false |
walty8/trac | trac/versioncontrol/web_ui/tests/changeset.py | 1 | 1258 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2014 Edgewall Software
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://trac.edgewall.com/license.html.
#
# This software consists of vo... | bsd-3-clause | 7,523,388,841,028,654,000 | 30.45 | 75 | 0.72655 | false |
Emergya/icm-openedx-educamadrid-platform-basic | common/djangoapps/course_modes/tests/test_signals.py | 28 | 3279 | """
Unit tests for the course_mode signals
"""
from datetime import datetime, timedelta
from mock import patch
import ddt
from pytz import UTC
from xmodule.modulestore.tests.django_utils import ModuleStoreTestCase
from xmodule.modulestore.tests.factories import CourseFactory
from course_modes.models import CourseMod... | agpl-3.0 | -5,319,515,304,404,931,000 | 35.842697 | 111 | 0.660262 | false |
spring-week-topos/horizon-week | openstack_dashboard/dashboards/admin/networks/forms.py | 7 | 5239 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 NEC Corporation
#
# 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
#... | apache-2.0 | 8,345,946,583,740,564,000 | 40.912 | 78 | 0.593243 | false |
mathspace/django | tests/gis_tests/test_geoforms.py | 26 | 15044 | from unittest import skipUnless
from django.contrib.gis import forms
from django.contrib.gis.gdal import HAS_GDAL
from django.contrib.gis.geos import GEOSGeometry
from django.forms import ValidationError
from django.test import SimpleTestCase, override_settings, skipUnlessDBFeature
from django.utils.html import escape... | bsd-3-clause | -1,981,171,278,301,418,500 | 43.64095 | 105 | 0.56235 | false |
mlaitinen/odoo | openerp/osv/fields.py | 9 | 74532 | # -*- 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 GNU... | agpl-3.0 | -7,733,180,138,389,095,000 | 40.475793 | 228 | 0.56247 | false |
ravindrapanda/tensorflow | tensorflow/python/eager/graph_only_ops.py | 69 | 2363 | # 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,077,131,001,988,524,000 | 42.759259 | 80 | 0.691494 | false |
andyaguiar/tornado | demos/appengine/blog.py | 114 | 5385 | #!/usr/bin/env python
#
# Copyright 2009 Facebook
#
# 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 a... | apache-2.0 | 9,130,417,011,281,435,000 | 31.835366 | 78 | 0.620984 | false |
peercoin/peercoin | test/functional/test_framework/test_shell.py | 49 | 2402 | #!/usr/bin/env python3
# Copyright (c) 2019 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from test_framework.test_framework import BitcoinTestFramework
class TestShell:
"""Wrapper Class for Bitc... | mit | 5,089,284,223,275,307,000 | 31.026667 | 77 | 0.58368 | false |
iromli/flosculus | setup.py | 1 | 1639 | import codecs
import os.path
import re
from setuptools import setup
from setuptools import find_packages
def find_version(*file_paths):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, *file_paths), 'r') as f:
version_file = f.read()
version_match = re.search(r... | mit | -4,067,291,946,810,137,000 | 27.258621 | 74 | 0.602807 | false |
vegetableman/phantomjs | src/qt/qtwebkit/Tools/Scripts/webkitpy/tool/steps/suggestreviewers.py | 125 | 2506 | # Copyright (C) 2010 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 ... | bsd-3-clause | 6,694,363,103,578,259,000 | 45.407407 | 119 | 0.731844 | false |
Jhonbeltran/information-layer8 | informationLayer8/settings.example.py | 1 | 4057 | """
Django settings for informationLayer8 project.
Generated by 'django-admin startproject' using Django 1.10.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
... | mit | -8,288,062,727,448,439,000 | 26.412162 | 91 | 0.684003 | false |
jacksemancik/PokemonPerlaBot | views.py | 1 | 3646 | import pyautogui, time
from color import color_from_mouse
def keypress(key):
pyautogui.keyDown(key)
time.sleep(.5)
pyautogui.keyUp(key)
def save():
keypress('enter')
keypress('up')
keypress('up')
keypress('up')
keypress('x')
keypress('x')
keypress('x')
keypress('x')#spams x to assure that the saving proces... | mit | -6,665,397,715,514,568,000 | 19.368715 | 75 | 0.640428 | false |
yaegashi/ansible-modules-extras | cloud/cloudstack/cs_loadbalancer_rule_member.py | 44 | 10054 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# (c) 2015, Darren Worrall <darren@iweb.co.uk>
# (c) 2015, René Moser <mail@renemoser.net>
#
# 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 So... | gpl-3.0 | 1,344,616,971,184,908,300 | 26.922222 | 128 | 0.617191 | false |
ahmedsalman/threadedcomments | threadedcomments/management/commands/migratecomments.py | 17 | 2145 | from django.core.management.base import BaseCommand
from django.contrib.comments.models import Comment, FreeComment
from threadedcomments.models import ThreadedComment, FreeThreadedComment
class Command(BaseCommand):
help = "Migrates Django's built-in django.contrib.comments data to threadedcomments data"
... | bsd-3-clause | 2,819,430,759,564,076,500 | 35.372881 | 93 | 0.538928 | false |
mchristopher/PokemonGo-DesktopMap | app/pylibs/win32/Cryptodome/SelfTest/Hash/test_SHAKE.py | 2 | 4960 | # ===================================================================
#
# Copyright (c) 2015, Legrandin <helderijs@gmail.com>
# 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. Redi... | mit | 5,825,402,365,441,021,000 | 32.444444 | 89 | 0.612298 | false |
linked67/p2pool-phicoin | p2pool/test/test_data.py | 276 | 1605 | import random
import unittest
from p2pool import data
from p2pool.bitcoin import data as bitcoin_data
from p2pool.test.util import test_forest
from p2pool.util import forest
def random_bytes(length):
return ''.join(chr(random.randrange(2**8)) for i in xrange(length))
class Test(unittest.TestCase):
def test_h... | gpl-3.0 | 6,765,309,545,269,512,000 | 38.146341 | 149 | 0.608723 | false |
mengxn/tensorflow | tensorflow/contrib/learn/python/learn/tests/dataframe/sparsify_densify_test.py | 62 | 3824 | # Copyright 2016 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 | -7,657,088,379,298,602,000 | 35.419048 | 87 | 0.695345 | false |
jasonwzhy/django | tests/model_inheritance/models.py | 227 | 4810 | """
XX. Model inheritance
Model inheritance exists in two varieties:
- abstract base classes which are a way of specifying common
information inherited by the subclasses. They don't exist as a separate
model.
- non-abstract base classes (the default), which are models in their own
right with ... | bsd-3-clause | -8,769,909,456,205,012,000 | 21.904762 | 105 | 0.686486 | false |
mavit/ansible | lib/ansible/modules/files/fetch.py | 22 | 3596 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2017, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# This is a virtual module that is entirely implemented as an action plugin and runs on the controller
from __future__ import absolute_import, ... | gpl-3.0 | -2,014,674,288,840,718,300 | 34.254902 | 116 | 0.701613 | false |
hoosteeno/mozillians | vendor-local/lib/python/tablib/packages/odf/text.py | 91 | 17212 | # -*- coding: utf-8 -*-
# Copyright (C) 2006-2007 Søren Roug, European Environment Agency
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at you... | bsd-3-clause | 4,171,410,075,793,074,700 | 29.624555 | 80 | 0.682354 | false |
atvcaptain/enigma2 | lib/python/Components/Converter/ConfigEntryTest.py | 1 | 1749 | from __future__ import print_function
from __future__ import absolute_import
from Components.Converter.Converter import Converter
from Components.Element import cached
from Components.config import configfile
class ConfigEntryTest(Converter, object):
def __init__(self, argstr):
Converter.__init__(self, argstr)
a... | gpl-2.0 | -2,538,500,850,713,247,000 | 30.8 | 223 | 0.706118 | false |
AlanZatarain/raft | ui/DiffWindow.py | 11 | 3420 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'DiffWindow.ui'
#
# Created: Sun Oct 3 00:57:43 2010
# by: PyQt4 UI code generator 4.7.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
class Ui_DiffWindow(object):
def setupUi(self, DiffW... | gpl-3.0 | -7,156,527,387,834,228,000 | 53.285714 | 135 | 0.726608 | false |
zefciu/django-extensions | tests/test_clean_pyc.py | 12 | 2392 | import fnmatch
import os
import shutil
import six
from django.core.management import call_command
from django.test import TestCase
from django_extensions.management.utils import get_project_root
class CleanPycTests(TestCase):
def setUp(self):
self._settings = os.environ.get('DJANGO_SETTINGS_MODULE')
... | mit | -3,980,173,551,820,831,000 | 36.968254 | 78 | 0.620819 | false |
luismasuelli/python-server-cantrips | cantrips/task/timed.py | 1 | 4468 | from six import integer_types
from cantrips.types.exception import factory
from .features import TornadoTimerFeature, TwistedTimerFeature, ThreadedTimerFeature
class Timeout(object):
"""
Lets a timeout be triggered and cancelled. If the timeout is reached,
an exception is triggered.
Notes: Processo... | lgpl-3.0 | -6,928,107,869,288,849,000 | 30.251748 | 97 | 0.59333 | false |
marcelovilaca/DIRAC | DataManagementSystem/Client/test/FTSSiteTests.py | 15 | 2616 | ########################################################################
# File: FTSSiteTests.py
# Author: Krzysztof.Ciba@NOSPAMgmail.com
# Date: 2013/04/16 08:52:36
########################################################################
""" :mod: FTSSiteTests
==================
.. module: FTSSiteTests
:... | gpl-3.0 | 3,120,994,060,359,145,500 | 30.902439 | 114 | 0.578746 | false |
ROB-Seismology/oq-hazardlib | openquake/hazardlib/calc/__init__.py | 1 | 1266 | # The Hazard Library
# Copyright (C) 2012 GEM Foundation
#
# This program 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 option) any later version.
#
# Th... | agpl-3.0 | -22,333,377,330,030,296 | 47.692308 | 79 | 0.7891 | false |
ngugi/geonode | geonode/catalogue/backends/pycsw_local.py | 3 | 6015 | #########################################################################
#
# Copyright (C) 2012 OpenPlans
#
# 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
#... | gpl-3.0 | 3,983,353,342,477,589,500 | 36.12963 | 112 | 0.583209 | false |
nhejazi/scikit-learn | sklearn/linear_model/least_angle.py | 6 | 58438 | """
Least Angle Regression algorithm. See the documentation on the
Generalized Linear Model for a complete discussion.
"""
from __future__ import print_function
# Author: Fabian Pedregosa <fabian.pedregosa@inria.fr>
# Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Gael Varoquaux
#
# License: BSD 3 ... | bsd-3-clause | -6,101,524,924,144,265,000 | 37.496706 | 79 | 0.576611 | false |
etianen/cms | src/cms/apps/news/admin.py | 2 | 1829 | """Admin settings for the CMS news app."""
from django.contrib import admin
from cms.admin import PageBaseAdmin
from cms.apps.news.models import Category, Article
class CategoryAdmin(PageBaseAdmin):
"""Admin settings for the Category model."""
fieldsets = (
PageBaseAdmin.TITLE_FIELDS,
... | bsd-3-clause | 2,961,693,105,342,083,000 | 26.727273 | 79 | 0.587206 | false |
IndonesiaX/edx-platform | common/test/acceptance/pages/studio/textbooks.py | 65 | 2540 | """
Course Textbooks page.
"""
import requests
from path import Path as path
from ..common.utils import click_css
from .course_page import CoursePage
class TextbooksPage(CoursePage):
"""
Course Textbooks page.
"""
url_path = "textbooks"
def is_browser_on_page(self):
return self.q(css='b... | agpl-3.0 | 6,939,441,571,612,770,000 | 34.277778 | 111 | 0.624409 | false |
povellesto/blobygames | Blob Rage App/random/blobrage.py | 1 | 5331 | import random
from Tkinter import *
root = Tk()
print("")
print("Welcome to Blob Rage Beta 2")
print("Instructions:")
print("To kill blobs you click them until they are dead. You do 2.5 damage to a blob on contact.")
print("")
print("Blobs:")
print("Green Blob: 10 to 50 health, and speed equals a range of -2 to 2.")
p... | unlicense | 6,319,510,268,032,863,000 | 29.994186 | 98 | 0.546614 | false |
cpyou/odoo | openerp/addons/base/ir/ir_cron.py | 276 | 15096 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-TODAY OpenERP S.A. <http://www.openerp.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms o... | agpl-3.0 | 4,327,101,691,324,505,600 | 47.070064 | 152 | 0.579701 | false |
rubyinhell/brython | www/src/Lib/test/test_dict.py | 21 | 29053 | import unittest
from test import support
import collections, random, string
import collections.abc
import gc, weakref
import pickle
class DictTest(unittest.TestCase):
def test_invalid_keyword_arguments(self):
class Custom(dict):
pass
for invalid in {1 : 2}, Custom({1 : 2}):
... | bsd-3-clause | 5,930,186,595,031,542,000 | 30.307112 | 79 | 0.497264 | false |
mattjmorrison/logilab-common-clone | optparser.py | 25 | 3344 | # -*- coding: utf-8 -*-
# copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# This file is part of logilab-common.
#
# logilab-common is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser Genera... | gpl-2.0 | 7,813,842,546,844,152,000 | 36.155556 | 90 | 0.629785 | false |
gaddman/ansible | test/units/modules/network/onyx/test_onyx_l3_interface.py | 68 | 4375 | #
# Copyright: Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
from units.compat.mock import patch
from ansible.modules.network.onyx impor... | gpl-3.0 | 3,379,214,497,595,995,000 | 37.716814 | 92 | 0.624 | false |
navodissa/python-flask | flask/lib/python2.7/site-packages/setuptools/tests/test_resources.py | 345 | 23973 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# NOTE: the shebang and encoding lines are for ScriptHeaderTests do not remove
import os
import sys
import tempfile
import shutil
from unittest import TestCase
import pkg_resources
from pkg_resources import (parse_requirements, VersionConflict, parse_version,
Distribution... | bsd-3-clause | -6,742,730,296,502,305,000 | 37.664516 | 94 | 0.559903 | false |
csachs/openmicroscopy | components/tools/OmeroPy/test/unit/gatewaytest/test_argument_errors.py | 13 | 2006 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2015 University of Dundee & Open Microscopy Environment.
# All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation;... | gpl-2.0 | 5,004,428,107,216,764,000 | 33.586207 | 73 | 0.678963 | false |
zxsted/scipy | scipy/linalg/_expm_frechet.py | 117 | 12182 | """Frechet derivative of the matrix exponential."""
from __future__ import division, print_function, absolute_import
import numpy as np
import scipy.linalg
__all__ = ['expm_frechet', 'expm_cond']
def expm_frechet(A, E, method=None, compute_expm=True, check_finite=True):
"""
Frechet derivative of the matrix ... | bsd-3-clause | -9,073,778,996,763,956,000 | 29.228288 | 79 | 0.549335 | false |
carolineLe/miasm | example/asm/shellcode.py | 3 | 3732 | #! /usr/bin/env python2
from __future__ import print_function
from argparse import ArgumentParser
from pdb import pm
from future.utils import viewitems
from miasm.loader import pe_init
from miasm.loader.strpatchwork import StrPatchwork
from miasm.core import parse_asm, asmblock
from miasm.analysis.machine import Mach... | gpl-2.0 | 5,238,848,761,772,188,000 | 27.06015 | 86 | 0.647642 | false |
bsipocz/ginga | examples/gtk/example2_gtk.py | 1 | 7364 | #! /usr/bin/env python
#
# example2_gtk.py -- Simple, configurable FITS viewer.
#
# Eric Jeschke (eric@naoj.org)
#
# Copyright (c) Eric R. Jeschke. All rights reserved.
# This is open-source software licensed under a BSD license.
# Please see the file LICENSE.txt for details.
#
from __future__ import print_function
im... | bsd-3-clause | -6,363,023,005,479,754,000 | 29.683333 | 100 | 0.58881 | false |
aioue/ansible | lib/ansible/modules/monitoring/rollbar_deployment.py | 41 | 4131 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright 2014, Max Riveiro, <kavu13@gmail.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... | gpl-3.0 | -4,494,412,529,533,466,000 | 27.6875 | 97 | 0.643428 | false |
SiccarPoint/numpy | numpy/lib/__init__.py | 71 | 1189 | from __future__ import division, absolute_import, print_function
import math
from .info import __doc__
from numpy.version import version as __version__
from .type_check import *
from .index_tricks import *
from .function_base import *
from .nanfunctions import *
from .shape_base import *
from .stride_tricks import *... | bsd-3-clause | 2,419,567,115,107,280,400 | 24.847826 | 64 | 0.665265 | false |
dwillis/django-calaccess-raw-data | calaccess_raw/admin/__init__.py | 29 | 4140 | from calaccess_raw.admin.base import BaseAdmin
from calaccess_raw.admin.campaign import (
CvrSoCdAdmin,
Cvr2SoCdAdmin,
CvrCampaignDisclosureCdAdmin,
Cvr2CampaignDisclosureCdAdmin,
RcptCdAdmin,
Cvr3VerificationInfoCdAdmin,
LoanCdAdmin,
S401CdAdmin,
ExpnCdAdmin,
F495P2CdAdmin,
... | mit | -6,577,650,693,323,452,000 | 24.090909 | 46 | 0.726812 | false |
12AngryMen/votca-scripts | cluster/collectjobs.py | 2 | 3419 | #!bin/python
import os
import re
import shutil
import subprocess
username="wehnerj"
sortstring="8PNPO12"
#sortstring=None
apename="APE_ISO"
workground="WORKGROUND"
class cd:
"""Context manager for changing the current working directory"""
def __init__(self, newPath):
self.newPath = os.path.expanduser(... | apache-2.0 | 818,121,714,947,449,600 | 34.989474 | 170 | 0.531734 | false |
Endika/django | django/contrib/sites/managers.py | 4 | 2070 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
from django.core import checks
from django.core.exceptions import FieldDoesNotExist
from django.db import models
class CurrentSiteManager(models.Manager):
"Use this to limit objects to those associated with the curre... | bsd-3-clause | -4,607,661,118,784,274,400 | 31.34375 | 109 | 0.543478 | false |
hobarrera/django | tests/test_utils/tests.py | 18 | 41065 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import unittest
import warnings
from django.conf.urls import url
from django.contrib.staticfiles.finders import get_finder, get_finders
from django.contrib.staticfiles.storage import staticfiles_storage
from django.core.files.storage import default_stora... | bsd-3-clause | -8,346,321,519,717,155,000 | 36.973173 | 114 | 0.608322 | false |
googleapis/python-compute | google/cloud/compute_v1/services/region_instances/transports/__init__.py | 1 | 1024 | # -*- 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,496,765,290,326,520,000 | 33.133333 | 86 | 0.764648 | false |
sgerhart/ansible | contrib/inventory/ec2.py | 21 | 72932 | #!/usr/bin/env python
'''
EC2 external inventory script
=================================
Generates inventory that Ansible can understand by making API request to
AWS EC2 using the Boto library.
NOTE: This script assumes Ansible is being executed where the environment
variables needed for Boto have already been set:... | mit | 8,712,879,820,934,473,000 | 41.675249 | 152 | 0.592058 | false |
bennyhat/me-benbrewer-academic-thesis-ns-3 | src/propagation/bindings/modulegen__gcc_LP64.py | 10 | 158617 | from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers
import pybindgen.settings
import warnings
class ErrorHandler(pybindgen.settings.ErrorHandler):
def handle_error(self, wrapper, exception, traceback_):
warnings.warn("exception %r in wrapper %s" % (exception, wrapper))
... | gpl-2.0 | 1,929,100,680,564,252,200 | 68.906126 | 381 | 0.650302 | false |
BrandonY/gsutil | gslib/commands/compose.py | 7 | 7297 | # -*- coding: utf-8 -*-
# Copyright 2013 Google Inc. 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 require... | apache-2.0 | -5,389,293,380,219,208,000 | 39.994382 | 92 | 0.70111 | false |
phuongtg/zerorpc-python | zerorpc/socket.py | 134 | 1737 | # -*- coding: utf-8 -*-
# Open Source Initiative OSI - The MIT License (MIT):Licensing
#
# The MIT License (MIT)
# Copyright (c) 2012 DotCloud Inc (opensource@dotcloud.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Softwa... | mit | -1,702,668,845,676,752,600 | 39.395349 | 81 | 0.739781 | false |
insomnia-lab/calibre | src/calibre/utils/bibtex.py | 19 | 100975 | """ Collection of python utility-methodes commonly used by other
bibliograph packages.
From http://pypi.python.org/pypi/bibliograph.core/
from Tom Gross <itconsense@gmail.com>
Adapted for calibre use
Zope Public License (ZPL) Version 2.1
A copyright notice accompanies this license document th... | gpl-3.0 | -7,143,158,190,690,760,000 | 33.462457 | 83 | 0.468294 | false |
fkazimierczak/flask | examples/minitwit/test_minitwit.py | 156 | 4798 | # -*- coding: utf-8 -*-
"""
MiniTwit Tests
~~~~~~~~~~~~~~
Tests the MiniTwit application.
:copyright: (c) 2015 by Armin Ronacher.
:license: BSD, see LICENSE for more details.
"""
import os
import minitwit
import tempfile
import pytest
@pytest.fixture
def client(request):
db_fd, minitwit.app.... | bsd-3-clause | -1,097,503,324,134,156,400 | 30.774834 | 69 | 0.642143 | false |
quoniammm/happy-machine-learning | Udacity-ML/boston_housing-master_0/visuals.py | 6 | 5008 | ###########################################
# Suppress matplotlib user warnings
# Necessary for newer version of matplotlib
import warnings
warnings.filterwarnings("ignore", category = UserWarning, module = "matplotlib")
#
# Display inline matplotlib plots with IPython
from IPython import get_ipython
get_ipython().run_... | mit | -7,345,246,282,211,464,000 | 36.94697 | 90 | 0.619209 | false |
ZENGXH/scikit-learn | examples/applications/plot_stock_market.py | 227 | 8284 | """
=======================================
Visualizing the stock market structure
=======================================
This example employs several unsupervised learning techniques to extract
the stock market structure from variations in historical quotes.
The quantity that we use is the daily variation in quote ... | bsd-3-clause | -9,104,268,994,989,703,000 | 31.359375 | 79 | 0.623008 | false |
ifduyue/sentry | src/sentry/filters/manager.py | 10 | 1101 | from __future__ import absolute_import, print_function
__all__ = ['FilterManager', 'FilterNotRegistered']
import six
class FilterNotRegistered(Exception):
pass
# TODO(dcramer): a lot of these managers are very similar and should abstracted
# into some kind of base class
class FilterManager(object):
def __... | bsd-3-clause | -8,381,198,776,875,192,000 | 23.466667 | 79 | 0.594005 | false |
redhat-openstack/django_openstack_auth | openstack_auth/backend.py | 2 | 10356 | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the... | apache-2.0 | 25,643,951,692,825,748 | 39.139535 | 79 | 0.597625 | false |
buddylindsey/photo-blogger | photob/settings.py | 1 | 6132 | # Django settings for photob project.
import os
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
path = lambda *a: os.path.join(ROOT, *a)
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
from postgresify import postgresify
DATABASES... | bsd-2-clause | 3,492,957,146,905,129,000 | 30.285714 | 88 | 0.685258 | false |
laplaceliu/readthedocs.org | readthedocs/builds/filters.py | 33 | 1312 | from django.utils.translation import ugettext_lazy as _
import django_filters
from readthedocs.builds import constants
from readthedocs.builds.models import Build, Version
ANY_REPO = (
('', _('Any')),
)
BUILD_TYPES = ANY_REPO + constants.BUILD_TYPES
class VersionSlugFilter(django_filters.FilterSet):
cla... | mit | -9,177,118,553,945,319,000 | 27.521739 | 98 | 0.598323 | false |
scripnichenko/nova | nova/tests/unit/api/openstack/compute/test_admin_actions.py | 35 | 3992 | # Copyright 2011 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | apache-2.0 | -8,349,550,593,705,872,000 | 38.92 | 77 | 0.662325 | false |
pattisdr/osf.io | api_tests/comments/views/test_comment_report_detail.py | 17 | 16596 | from django.utils import timezone
import mock
import pytest
from addons.wiki.tests.factories import WikiFactory
from api.base.settings.defaults import API_BASE
from api_tests import utils as test_utils
from osf.models import Guid
from osf_tests.factories import (
ProjectFactory,
AuthUserFactory,
CommentFac... | apache-2.0 | 5,210,533,118,749,525,000 | 34.767241 | 100 | 0.603519 | false |
lyft/incubator-airflow | airflow/contrib/hooks/gcs_hook.py | 5 | 1514 | #
# 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,466,948,949,696,200,200 | 36.85 | 103 | 0.729855 | false |
jjas0nn/solvem | tensorflow/lib/python2.7/site-packages/setuptools/sandbox.py | 86 | 14317 | import os
import sys
import tempfile
import operator
import functools
import itertools
import re
import contextlib
import pickle
import six
from six.moves import builtins, map
import pkg_resources
if sys.platform.startswith('java'):
import org.python.modules.posix.PosixModule as _os
else:
_os = sys.modules[o... | mit | -3,083,753,053,780,149,000 | 28.158859 | 105 | 0.582874 | false |
edevil/django | django/contrib/gis/gdal/prototypes/ds.py | 10 | 4282 | """
This module houses the ctypes function prototypes for OGR DataSource
related data structures. OGR_Dr_*, OGR_DS_*, OGR_L_*, OGR_F_*,
OGR_Fld_* routines are relevant here.
"""
from ctypes import c_char_p, c_double, c_int, c_long, c_void_p, POINTER
from django.contrib.gis.gdal.envelope import OGREnvelope
from djang... | bsd-3-clause | 6,088,780,833,367,834,000 | 56.864865 | 100 | 0.7305 | false |
timgrossmann/instagram-profilecrawl | util/chromedriver.py | 1 | 2703 | import re
import sys
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver import DesiredCapabilities
from webdriver_manager.chrome import ChromeDriverManager
from util.exceptions import WebDriverException
from util.instalogger import InstaLogger
from util.settin... | mit | -3,298,374,652,715,858,000 | 39.343284 | 99 | 0.660377 | false |
GenericStudent/home-assistant | homeassistant/components/nx584/binary_sensor.py | 10 | 4494 | """Support for exposing NX584 elements as sensors."""
import logging
import threading
import time
from nx584 import client as nx584_client
import requests
import voluptuous as vol
from homeassistant.components.binary_sensor import (
DEVICE_CLASS_OPENING,
DEVICE_CLASSES,
PLATFORM_SCHEMA,
BinarySensorEn... | apache-2.0 | -1,681,820,845,646,315,500 | 28.565789 | 77 | 0.614375 | false |
nsalomonis/AltAnalyze | import_scripts/combineCufflinks.py | 1 | 6249 | import sys,string,os
sys.path.insert(1, os.path.join(sys.path[0], '..')) ### import parent dir dependencies
def importFPKMFile(input_file):
added_key={}
firstLine = True
for line in open(input_file,'rU').xreadlines():
data = line.rstrip('\n')
t = string.split(data,'\t')
if firstLine... | apache-2.0 | -2,626,333,338,174,639,000 | 35.121387 | 111 | 0.528885 | false |
bruce3557/NTHUOJ_web | users/templatetags/profile_filters.py | 7 | 2186 | """
The MIT License (MIT)
Copyright (c) 2014 NTHUOJ team
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 limitation the rights
to use, copy, modify, merge, ... | mit | 3,140,357,423,279,589,400 | 36.689655 | 79 | 0.744282 | false |
ercchy/coding-events | api/models/events.py | 3 | 3525 | """
Models for the event
"""
import datetime
from django.utils import timezone
from django.db import models
from django.template.defaultfilters import slugify
from taggit.managers import TaggableManager
from geoposition.fields import GeopositionField
from django_countries.fields import CountryField
from django.conf imp... | mit | -1,731,399,795,017,639,200 | 24.919118 | 84 | 0.706383 | false |
LukeM12/samba | source4/selftest/tests.py | 1 | 36902 | #!/usr/bin/python
# This script generates a list of testsuites that should be run as part of
# the Samba 4 test suite.
# The output of this script is parsed by selftest.pl, which then decides
# which of the tests to actually run. It will, for example, skip all tests
# listed in selftest/skip or only run a subset durin... | gpl-3.0 | -7,444,142,663,850,969,000 | 71.356863 | 415 | 0.679855 | false |
jiadaizhao/LeetCode | 1001-1100/1093-Statistics from a Large Sample/1093-Statistics from a Large Sample.py | 1 | 1194 | class Solution:
def sampleStats(self, count: List[int]) -> List[float]:
# minimum, maximum, mean, median, and mode
result = [0] * 5
for i, c in enumerate(count):
if c > 0:
result[0] = float(i)
break
for i in range(255, -1, -1):
... | mit | 1,903,122,092,614,679,300 | 27.428571 | 62 | 0.361809 | false |
larsks/ansible-modules-core | cloud/rackspace/rax_meta.py | 157 | 5136 | #!/usr/bin/python
# 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 distributed... | gpl-3.0 | 3,907,538,178,622,464,000 | 27.853933 | 79 | 0.606698 | false |
M4rtinK/tsubame | core/bundle/oauthlib/oauth2/rfc6749/clients/base.py | 16 | 20346 | # -*- coding: utf-8 -*-
"""
oauthlib.oauth2.rfc6749
~~~~~~~~~~~~~~~~~~~~~~~
This module is an implementation of various logic needed
for consuming OAuth 2.0 RFC6749.
"""
from __future__ import absolute_import, unicode_literals
import time
from oauthlib.common import generate_token
from oauthlib.oauth2.rfc6749 import... | gpl-3.0 | -9,153,667,270,473,268,000 | 40.522449 | 107 | 0.647695 | false |
Akasurde/ansible | lib/ansible/plugins/doc_fragments/default_callback.py | 8 | 3513 | # -*- coding: utf-8 -*-
# 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
class ModuleDocFragment(object):
DOCUMENTATION = r'''
options:
... | gpl-3.0 | 3,346,551,284,868,306,400 | 34.846939 | 130 | 0.599488 | false |
mpcraddock/classraspi | sabryna/Chat Shtuff.py | 2 | 1178 | name = raw_input("Username: ")
##while True == True:
## boat = raw_input("Enter your message: ")
## mc.postToChat(name + ": " + boat)
##x = int(raw_input("Giveth to me numbers: "))
##y = int(raw_input("Giveth to me numbers: "))
##z = int(raw_input("Giveth to me numbers: "))
##blockType = int(raw_input("Giveth t... | gpl-2.0 | -6,791,100,506,850,556,000 | 15.591549 | 63 | 0.563667 | false |
GiladE/birde | venv/lib/python2.7/site-packages/django/contrib/gis/db/backends/spatialite/operations.py | 48 | 15259 | import re
import sys
from decimal import Decimal
from django.contrib.gis.db.backends.base import BaseSpatialOperations
from django.contrib.gis.db.backends.utils import SpatialOperation, SpatialFunction
from django.contrib.gis.db.backends.spatialite.adapter import SpatiaLiteAdapter
from django.contrib.gis.geometry.back... | mit | -4,037,704,299,474,863,000 | 39.155263 | 112 | 0.610722 | 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.