commit
stringlengths
40
40
subject
stringlengths
1
3.25k
old_file
stringlengths
4
311
new_file
stringlengths
4
311
old_contents
stringlengths
0
26.3k
lang
stringclasses
3 values
proba
float64
0
1
diff
stringlengths
0
7.82k
b5a210fac3941298fdf9160948c2cc73c27bfccd
add missing module electrum_plugins
setup.py
setup.py
#!/usr/bin/env python2 # python setup.py sdist --format=zip,gztar from setuptools import setup import os import sys import platform import imp version = imp.load_source('version', 'lib/version.py') if sys.version_info[:3] < (2, 7, 0): sys.exit("Error: Electrum requires Python version >= 2.7.0...") data_files =...
Python
0.000002
@@ -921,24 +921,52 @@ um_gui.qt',%0A + 'electrum_plugins',%0A 'ele
60bc275a7c45278ffe9269abf2c1191a73df9d40
add setup.py (#6)
setup.py
setup.py
Python
0
@@ -0,0 +1,321 @@ +#!/usr/bin/env python%0A%0Afrom distutils.core import setup%0A%0Asetup(name='rotoscoping',%0A version='1.0',%0A description=%22Take in pics swap faces and make'm pretty%22,%0A author='Seith Miller',%0A author_email='seithmiller@gmail.com',%0A url='https://www.seithmiller.com/...
2191dc74a6307881ac33639330b8c0edb965200b
Version bump to 1.1.1.
setup.py
setup.py
from distutils.core import setup import os def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup(name='pandocfilters', version='1.1', description='Utilities for writing pandoc filters in python', long_description=read('README.rst'), author='John MacFarla...
Python
0
@@ -172,16 +172,18 @@ ion='1.1 +.1 ',%0A
01d21e43cedd191c57e3d505d9f308185012bdef
Remove power metric from jsgamebench benchmark
tools/perf/benchmarks/jsgamebench.py
tools/perf/benchmarks/jsgamebench.py
# Copyright (c) 2012 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. """Runs Facebook's JSGameBench benchmark.""" import os from metrics import power from telemetry import test from telemetry.page import page_measurement...
Python
0.000025
@@ -221,34 +221,8 @@ os%0A%0A -from metrics import power%0A from @@ -468,238 +468,8 @@ __() -%0A self._power_metric = power.PowerMetric()%0A%0A def CustomizeBrowserOptions(self, options):%0A power.PowerMetric.CustomizeBrowserOptions(options)%0A%0A def DidNavigateToPage(self, page, tab):%0A self._power_met...
9ee46e93aca97f69a2ad75a2b9b2db52196bfcba
Create trumpbot.py
trumpbot.py
trumpbot.py
Python
0.000001
@@ -0,0 +1,1267 @@ +#!/usr/bin/python%0A'''%0A Author : Micah Hoffman (@WebBreacher)%0A Description : Trump Retweeting Bot that retweets Android-sourced tweets.%0A'''%0A%0A# Import Libraries%0Aimport re%0Aimport tweepy%0Afrom creds import *%0A%0A# Set up temp file for most recent tweet id%0AtweetHistoryFile = ope...
67a295d10df752b3a4d932efa9e9750d60273c09
add script to index streams from a video
demos/stream_index.py
demos/stream_index.py
Python
0
@@ -0,0 +1,357 @@ +import sys%0A%0Afrom Ziggeo import Ziggeo%0Aimport json%0Aif(len(sys.argv) %3C 4):%0A%09print (%22Error%5Cn%22)%0A%09print (%22Usage: $%3Epython stream_index.py YOUR_API_TOKEN YOUR_PRIVATE_KEY VIDEO_TOKEN %5Cn%22)%0A%09sys.exit()%0A%0Aapi_token = sys.argv%5B1%5D%0Aprivate_key = sys.argv%5B2%5D%0Avide...
906196a28fecab43ec6e33e3517c7159f66a0a52
Add init
src/robot/result/__init__.py
src/robot/result/__init__.py
Python
0.000788
@@ -0,0 +1,605 @@ +# Copyright 2008-2011 Nokia Siemens Networks Oyj%0A#%0A# Licensed under the Apache License, Version 2.0 (the %22License%22);%0A# you may not use this file except in compliance with the License.%0A# You may obtain a copy of the License at%0A#%0A# http://www.apache.org/licenses/LICENSE-2.0%0A#...
841c79ca1e8850eda140bc09fc889dd693ecd5f6
Add setup.py so pylogmet can be installed
setup.py
setup.py
Python
0
@@ -0,0 +1,122 @@ +import setuptools%0A%0Asetuptools.setup(%0A name='pylogmet',%0A version='0.1.0',%0A packages=setuptools.find_packages(),%0A)%0A
4d831ef9232a23e1ac7c12f529d24d47118eec56
Revert 233116 "Revert 233071 "Migrate to Openbox from IceWM (In ..."
testing/xvfb.py
testing/xvfb.py
#!/usr/bin/env python # Copyright (c) 2012 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. """Runs the test with xvfb on linux. Runs the test normally on other platforms. For simplicity in gyp targets, this script just ru...
Python
0.000001
@@ -2357,21 +2357,23 @@ vfb and -icewm +openbox are ins @@ -3188,27 +3188,26 @@ ry:%0A -ice +wm _cmd = %5B'ice @@ -3207,13 +3207,15 @@ = %5B' -icewm +openbox '%5D%0A @@ -3251,19 +3251,18 @@ -ice +wm _cmd, st @@ -3399,19 +3399,18 @@ '.join( -ice +wm _cmd)%0A
9c88998a5d40f623e1c98006492393d3b2ad718a
add initial unit test skeleton
test/test_discogs.py
test/test_discogs.py
Python
0
@@ -0,0 +1,3324 @@ +# -*- coding: utf-8 -*-%0A# This file is part of beets.%0A# Copyright 2016, Adrian Sampson.%0A#%0A# Permission is hereby granted, free of charge, to any person obtaining%0A# a copy of this software and associated documentation files (the%0A# %22Software%22), to deal in the Software without restricti...
99a71ccd5ed1282a86bca7535a31ec949afa71bf
Create tulkinta.py
tulkinta.py
tulkinta.py
Python
0.000001
@@ -0,0 +1,779 @@ +import setup%0Aimport lampotila%0A%0Adef lukuohjelma():%0A%09import lukuohjelma%0A%09lukuohjelma.main()%0A%0Adef fav():%0A%09fav = setup.Tfav()%0A%09return fav%09%0A%09%0Adef Tmin():%0A%09Tmin = setup.Tmin()%0A%09return Tmin%0A%09%0Adef Tmax():%0A%09Tmax = setup.Tmax()%0A%09return Tmax%0A%0Adef delta...
6f4db28710aca096de5fed10af737575af37ea12
make daemonizing better
gunicorn/main.py
gunicorn/main.py
# -*- coding: utf-8 - # # This file is part of gunicorn released under the MIT license. # See the NOTICE for more information. import logging import optparse as op import os import sys from gunicorn.arbiter import Arbiter LOG_LEVELS = { "critical": logging.CRITICAL, "error": logging.ERROR, "warning": l...
Python
0.000008
@@ -170,16 +170,32 @@ port os%0A +import resource%0A import s @@ -401,16 +401,133 @@ EBUG%0A%7D%0A%0A +UMASK = 0%0AMAXFD = 1024%0Aif (hasattr(os, %22devnull%22)):%0A REDIRECT_TO = os.devnull%0Aelse:%0A REDIRECT_TO = %22/dev/null%22%0A%0A%0A def opti @@ -2059,38 +2059,36 @@ if os.fork() -: os._exit(0)%0A + == 0...
06bb72423587d37c86f46a9f298c9c4f36805543
copy and pasted some sections of chatbot to a new module, trainbot
trainbot.py
trainbot.py
Python
0
@@ -0,0 +1,1585 @@ +class Trainbot(object):%0A def __init__(self, training_file=%22tell_tale_heart.txt%22):%0A self.training_file = training_file%0A self.tri_lexicon = %7B%7D%0A self.bi_lexicon = %7B%7D%0A self.stop_puncts = %5B'.', '!', '?'%5D%0A self.puncts = %5B',', ';', ':', '%...
08a6dddb866ec53ff45a302d7c163d041bbefe71
Add stub unit test for options resolving
protoplot-test/test_options_resolving.py
protoplot-test/test_options_resolving.py
Python
0
@@ -0,0 +1,545 @@ +import unittest%0A %0Afrom protoplot.engine.item import Item%0Afrom protoplot.engine.item_container import ItemContainer%0A%0Aclass Series(Item):%0A pass%0A%0ASeries.options.register(%22color%22, True)%0ASeries.options.register(%22lineWidth%22, False)%0ASeries.options.register(%22lineStyle%22, Fal...
983bf009012e69ed703302fc02aef32bd33a6f12
add timings
utils/timings.py
utils/timings.py
Python
0.000001
@@ -0,0 +1,1762 @@ +# -*- coding: utf-8 -*-%0A%22%22%22Measure execution average execution times%22%22%22%0Aimport cProfile%0Aimport time%0A%0Aimport numpy as np%0Afrom numpy.random import dirichlet, multinomial%0Afrom scipy.stats import entropy as sp_entropy%0A%0Aimport ndd%0Aimport ndd.fnsb # pylint: disable=no-name...
60d57f24a76976d82de37fda40d3a081cc497e72
add setup.py.
setup.py
setup.py
Python
0
@@ -0,0 +1,351 @@ +#!/usr/bin/env python%0D%0A%0D%0Afrom distutils.core import setup%0D%0A%0D%0Asetup(name='sql_server.pyodbc',%0D%0A version='1.0',%0D%0A description='Django MS SQL Server backends using pyodbc',%0D%0A author='django-pyodbc team',%0D%0A url='http://code.google.com/p/django-pyodbc',%...
93fea6b7553e1098707e87259f60ce08ec841d85
add setup.py
setup.py
setup.py
Python
0.000001
@@ -0,0 +1,1104 @@ +%22%22%22%0ASQLAlchemy FullText Search%0A%22%22%22%0A%0Afrom setuptools import setup, Command%0A%0A%0Asetup(%0A name='SQLAlchemy-FullText-Search',%0A version='0.1',%0A url='https://github.com/mengzhuo/sqlalchemy-fulltext-search',%0A license='BSD',%0A author='Meng Z...
fc9a1aaa11fb45ba1acf898a351455beb13e5066
Update django and python version in classifiers
setup.py
setup.py
from setuptools import find_packages, setup from django_mailbox import __version__ as version_string tests_require = [ 'django', 'mock', 'unittest2', ] gmail_oauth2_require = [ 'python-social-auth', ] setup( name='django-mailbox', version=version_string, url='http://github.com/coddington...
Python
0
@@ -1155,16 +1155,55 @@ 1.10',%0A + 'Framework :: Django :: 1.11',%0A @@ -1377,24 +1377,171 @@ thon :: 3',%0A + 'Programming Language :: Python :: 3.4',%0A 'Programming Language :: Python :: 3.5',%0A 'Programming Language :: Python :: 3.6',%0A 'Top
bd4556dcd663f78aaa50d247e198e8e2d7604d52
Add a setup.py file to ease setuptools installation, thanks Ariel Nunez
setup.py
setup.py
Python
0
@@ -0,0 +1,932 @@ +from setuptools import setup, find_packages%0A %0Asetup(%0A name='django-oauth',%0A version='0.1',%0A description='Support of OAuth in Django.',%0A author='David Larlet',%0A author_email='david@larlet.fr',%0A url='http://code.welldev.org/django-oauth/',%0A packages=find_packages(...
f8a22b7f58b29031adf23a9b91748ccc0909d141
Add 'setup.py' #3
setup.py
setup.py
Python
0.000006
@@ -0,0 +1,501 @@ +# -*- coding: utf-8 -*-%0A%0Afrom setuptools import find_packages, setup%0A%0Afrom toggl2html import __version__%0A%0A%0Asetup(%0A name='toggl2html',%0A version=__version__,%0A description='Tools for converting Toggl CSV to HTML',%0A author='Jun-ya HASEBA',%0A author_email='7pairs@gmai...
d2f6bf7a0ee1e3387d007b39832ef61b49a5c9c4
Add config
wakefs/config.py
wakefs/config.py
Python
0.000005
@@ -0,0 +1,1819 @@ +import ConfigParser, os.path%0A%0Aclass Config(object):%0A _configfile = os.path.expanduser('~/.wakefs/config')%0A def __new__(type, *args):%0A if not '_the_instance' in type.__dict__:%0A type._the_instance = object.__new__(type)%0A return type._the_instance%0A%0A d...
21ccfab04b57e71af706648fac6d6d01fa2b8500
add setup file
setup.py
setup.py
Python
0.000001
@@ -0,0 +1,776 @@ +#!/usr/bin/env python3%0A# -*- coding: utf-8 -*-%0A%0A%0A%0Afrom setuptools import setup, find_packages%0Aimport labyrinth%0A %0Awith open('requirements.txt') as f:%0A requires = f.read().split('%5Cn')%0A%0A%0A%0Asetup(%0A%0A name='oc-labyrinth',%0A version=3.2,%0A %0A packages=find_packa...
b81d7c8d54caf4e334e1cbe550223d9c112a6de5
Add setup.py file for doing pip installs
setup.py
setup.py
Python
0
@@ -0,0 +1,321 @@ +#!/usr/bin/env python%0A%0Afrom distutils.core import setup%0A%0Asetup(name='np-telegram-bot',%0A version='0.1',%0A description='NP Labs Telegram Bot Base Code',%0A author='Kyle Machulis',%0A author_email='kyle@machul.is',%0A url='https://github.com/qdot/np-telegram-bot/',%0A...
cc40de21219934e50a840305bc9416b71e9eb2ed
add bominn.py
exercise-1_from-pull-to-push/bominn.py
exercise-1_from-pull-to-push/bominn.py
Python
0.000004
@@ -0,0 +1,15 @@ +print('bomin')%0A
585c9b6f1c8bf186fee34303ba29b7b511c1ba7e
Add a script to add mapit area IDs to new Place objects for 2013
mzalendo/core/management/commands/core_match_places_to_mapit_areas_2013.py
mzalendo/core/management/commands/core_match_places_to_mapit_areas_2013.py
Python
0
@@ -0,0 +1,3243 @@ +import sys%0A%0Afrom optparse import make_option%0Afrom pprint import pprint%0A%0Afrom django.core.management.base import NoArgsCommand%0Afrom django.template.defaultfilters import slugify%0Afrom django.conf import settings%0A%0A# from helpers import geocode%0Afrom core import models%0Afrom mapit im...
f107494d841ffd9adeecc49014e9334c98279385
Make author name ASCII
setup.py
setup.py
#!/usr/bin/env python # vim:fileencoding=utf-8:noet from __future__ import unicode_literals import os import sys from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) try: README = open(os.path.join(here, 'README.rst'), 'rb').read().decode('utf-8') except IOError: README = ''...
Python
0.999999
@@ -520,9 +520,10 @@ lkeb -%C3%A6 +ae kken
1836748476be53b7a65a5a07ae900837e0283298
Add Django 1.9 to setup.py
setup.py
setup.py
from setuptools import setup, find_packages import os import cms CLASSIFIERS = [ 'Development Status :: 5 - Production/Stable', 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independ...
Python
0.000001
@@ -706,16 +706,61 @@ : 3.4',%0A + 'Programming Language :: Python :: 3.5',%0A 'Fra @@ -774,24 +774,24 @@ :: Django',%0A - 'Framewo @@ -880,16 +880,50 @@ : 1.8',%0A + 'Framework :: Django :: 1.9',%0A %5D%0A%0AINSTA @@ -964,17 +964,18 @@ .6.9,%3C1. -9 +10 ',%0A '
b5767a9dbc90e8252ca0885212f33df08a5a3e66
Create setup.py
setup.py
setup.py
Python
0.000002
@@ -0,0 +1,353 @@ +import sys%0A%0Afrom cx_Freeze import setup, Executable%0A%0Abase = None%0Aif sys.platform == %22win32%22:%0A base = %22Win32GUI%22%0A%0Asetup(%0A name = %22IA%22,%0A version = %220.1%22,%0A description = %22IA%22,%0A options = %7B%22build_exe%22 : %7B%22includes%22 : %...
c82062bced242d0aa4675f2a66620c99149dfb63
bump to dev version
setup.py
setup.py
from setuptools import setup, find_packages setup( name='django-markitup', version='0.3.0', description='Django integration with the MarkItUp universal markup editor', long_description=open('README.txt').read(), author='Carl Meyer', author_email='carl@dirtcircle.com', url='http://bitbucket...
Python
0
@@ -91,17 +91,20 @@ on='0.3. -0 +1dev ',%0A d
aa0839cb8f26d2b80e53e2dec41ddcd4a66003f4
Update setup.py
setup.py
setup.py
"""praw setup.py""" import re from codecs import open from os import path from setuptools import find_packages, setup PACKAGE_NAME = "praw" HERE = path.abspath(path.dirname(__file__)) with open(path.join(HERE, "README.rst"), encoding="utf-8") as fp: README = fp.read() with open(path.join(HERE, PACKAGE_NAME, "con...
Python
0
@@ -1063,16 +1063,65 @@ : 3.7%22,%0A + %22Programming Language :: Python :: 3.8%22,%0A
a84d2abc0f601df0d889ea08dee8ba88593f401d
Create setup.py
setup.py
setup.py
Python
0.000001
@@ -0,0 +1,302 @@ +%22%22%22Installation and setup configuration.%22%22%22%0A%0A%0Afrom setuptools import setup%0A%0A%0Asetup(%0A name='emocapper',%0A description=%22Installation and setup configuration%22,%0A py_modules=%5B'emocapper'%5D,%0A entry_points=%7B%0A 'console_scripts': %5B%0A '...
fe68f04fe89e50183cd413ae8833a487bc9bd0d0
Define random walk traversal
stats/random_walk.py
stats/random_walk.py
Python
0.006525
@@ -0,0 +1,1116 @@ +import neo4j%0Aimport random%0A%0Afrom logbook import Logger%0Alog = Logger('trinity.topics')%0A%0A%0ADEFAULT_DEPTH = 5%0ANUM_WALKS = 100%0A# Passed sorted list (desc order), return top nodes%0ATO_RETURN = lambda x: x%5B:10%5D%0Arandom.seed()%0A%0Adef random_walk(graph, node, depth=DEFAULT_DEPTH):%0...
f831639d176e85128d9f018170782115c25e6b2a
Fix clean to really remove .pyc files, better specify requirements
setup.py
setup.py
# Copyright 2014 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 required by applicable law or agre...
Python
0
@@ -1084,16 +1084,19 @@ openhtf/ +io/ proto/*_ @@ -1109,24 +1109,34 @@ ',%0A ' +./openhtf/ **/*.pyc',%0A @@ -1138,28 +1138,8 @@ c',%0A - '**/*.tgz',%0A @@ -1155,16 +1155,35 @@ system(' +shopt -s globstar; rm -vrf @@ -1208,16 +1208,17 @@ gets))%0A%0A +%0A class Bu @@ -2413,16 +2413,24 @@ ...
24db3e122ffa68cf64738ffd6fd2f6ef1a51142b
add setup.py
setup.py
setup.py
Python
0.000001
@@ -0,0 +1,1508 @@ +# Copyright 2018 Google LLC%0A#%0A# Licensed under the Apache License, Version 2.0 (the %22License%22);%0A# you may not use this file except in compliance with the License.%0A# You may obtain a copy of the License at%0A#%0A# https://www.apache.org/licenses/LICENSE-2.0%0A#%0A# Unless required by ...
b0b1f14d282f1115c1d1c39e7517ecc0ce5f2ad4
disable git version tagging to avoid testing conflicts with cwltool
setup.py
setup.py
#!/usr/bin/env python import os import sys import shutil import setuptools.command.egg_info as egg_info_cmd from setuptools import setup, find_packages SETUP_DIR = os.path.dirname(__file__) README = os.path.join(SETUP_DIR, 'README.rst') try: import gittaggers tagger = gittaggers.EggInfoFromGit except Impor...
Python
0
@@ -2337,16 +2337,18 @@ e,%0A + # cmdclas
e1a38a3085b5381b5f61a3aeb5d0fdf6fff80502
add setup.py visual.py
setup.py
setup.py
Python
0.000002
@@ -0,0 +1,1216 @@ +# -*- coding: utf-8 -*-%0A%22%22%22%0A%22%22%22%0Afrom __future__ import with_statement%0Aimport re%0Afrom setuptools import setup%0Afrom setuptools.command.test import test%0A%0A%0A# detect the current version%0Awith open('gauge.py') as f:%0A version = re.search(r'__version__%5Cs*=%5Cs*%5C'(.+?)...
93504c41694501ef815dc0caf894e381a15140ae
Add an example REPL
example_repl.py
example_repl.py
Python
0.000454
@@ -0,0 +1,1159 @@ +#!/usr/bin/env python%0A%0Afrom __future__ import print_function%0Aimport sys%0A%0Aif sys.version_info %3C (3,):%0A input = raw_input%0A%0Afrom iterm2_tools.shell_integration import Prompt, Output%0A%0Adef run_command(text):%0A if text:%0A print(%22I got the text%22, text)%0A return ...
81627d57fbbc8ac394574ba070831adbfbdc9738
Version 0.0.47
setup.py
setup.py
# -*- coding: utf-8 -*- import os from setuptools import find_packages from setuptools import setup base_dir = os.path.dirname(__file__) setup( name='elastalert', version='0.0.46', description='Runs custom filters on Elasticsearch and alerts on matches', author='Quentin Long', author_email='qlo@y...
Python
0.000001
@@ -185,9 +185,9 @@ .0.4 -6 +7 ',%0A
be37775945e92deea028d0dbc6b7e28fe96de400
add setup.py
setup.py
setup.py
Python
0.000001
@@ -0,0 +1,453 @@ +from os.path import exists%0Afrom setuptools import setup%0A%0Asetup(name='multipolyfit',%0A version='0.0.1',%0A description='Multivariate Polynomial fitting with NumPy',%0A url='http://github.com/mrocklin/multipolyfit',%0A author='Matthew Rocklin',%0A author_email='mrocklin@...
2b7536f3919d77a7c7a815f895a10221f547ddc0
Add setup.py
setup.py
setup.py
Python
0
@@ -0,0 +1,2068 @@ +# -*- coding: utf-8 -*-%0Afrom __future__ import print_function%0Afrom os import sys%0A%0Atry:%0A from skbuild import setup%0Aexcept ImportError:%0A print('scikit-build is required to build from source.', file=sys.stderr)%0A print('Please run:', file=sys.stderr)%0A print('', file=sys.std...
a8903de681e5a68f246b119e987aa79412035efe
change version, uncomment classifiers for py3
setup.py
setup.py
#!/usr/bin/env python import os import sys import shutil import setuptools.command.egg_info as egg_info_cmd from setuptools import setup, find_packages SETUP_DIR = os.path.dirname(__file__) README = os.path.join(SETUP_DIR, 'README.rst') try: import gittaggers tagger = gittaggers.EggInfoFromGit except Impor...
Python
0
@@ -1142,19 +1142,21 @@ ersion=' -3.0 +2.5.1 ',%0A @@ -2413,33 +2413,32 @@ 2.7%22,%0A -# %22Programming Lan @@ -2465,33 +2465,8 @@ .3%22, - # TODO: uncomment these %0A @@ -2464,33 +2464,32 @@ 3.3%22,%0A -# %22Programming Lan @@ -2516,17 +2516,8 @@ .4%22, - # lines %0A @@ -2523...
66d5047e8611d8af70977609fe79ad592faa2b37
Bump filebrowser-safe for security fix to 0.2.6
setup.py
setup.py
from __future__ import with_statement import os exclude = ["mezzanine/project_template/dev.db", "mezzanine/project_template/local_settings.py"] exclude = dict([(e, None) for e in exclude]) for e in exclude: if e.endswith(".py"): try: os.remove("%sc" % e) except: ...
Python
0
@@ -616,16 +616,16 @@ afe -= +%3E = 0.2. -3 +6 %22,%0A @@ -647,16 +647,16 @@ afe -= +%3E = 0.2. -2 +3 %22,%0A
458a98b3c70d5990f8e8c5b4e412342a58ac31bf
Create setup.py
setup.py
setup.py
Python
0.000001
@@ -0,0 +1,219 @@ +from setuptools import setup, find_packages%0A%0Asetup(%0A name=%22integration_testing%22,%0A author = %22Alun Morgan%22,%0A version = %220.1%22,%0A packages = find_packages(),%0A install_requires = %5B'numpy'%5D,%0A )%0A#%0A
e8c8fde695803320096d58a6b8103210d566f2b0
Add whitelist for the threading module (#150)
vulture/whitelists/threading_whitelist.py
vulture/whitelists/threading_whitelist.py
Python
0
@@ -0,0 +1,85 @@ +import threading%0A%0Athreading.Thread.daemon%0Athreading.Thread.name%0Athreading.Thread.run%0A
4f95d4d73fc9823aa59737fbebc81373ff3694dc
Create setup.py
setup.py
setup.py
Python
0.000001
@@ -0,0 +1,417 @@ +# -*- coding: utf-8 -*-%0Afrom setuptools import setup%0A%0Asetup(%0A name='tempMail',%0A version='1.0',%0A url='https://github.com/mthbernardes/tempMail',%0A license='MIT License',%0A author='Matheus Bernardes',%0A author_email='mthbernardes@gmail.com',%0A keywords='email tempor...
34ff26caef5c67eb603179a631db69ab527b494b
Complete bencoding encode/decode methods
bencoding.py
bencoding.py
Python
0.000037
@@ -0,0 +1,1504 @@ +def decode( data ):%0A def decode_one( data ):%0A if data%5B 0 %5D == 'i':%0A # data is an integer%0A pos = data.index( 'e' )%0A return ( int( data%5B 1:pos %5D ), data%5B ( pos + 1 ): %5D )%0A if data%5B 0 %5D == 'l':%0A # data is a list%...
4989c443b9a247c784ad7b0e9a76df59358825a2
Add iaas manager and also some logic to choose the provider
dbaas/integrations/iaas/manager.py
dbaas/integrations/iaas/manager.py
Python
0
@@ -0,0 +1,949 @@ +from cloudstack.cloudstack_client import CloudStackProvider%0Afrom cloudstack.models import PlanAttr%0Afrom pre_provisioned.pre_provisioned_client import PreProvisionedProvider%0Aimport logging%0A%0ALOG = logging.getLogger(__name__)%0A%0Aclass IaaSManager():%0A %0A def __init__(self, plan, env...
596535209e4d48e18ed9e471b22c97d74d24155f
Create base_script.py
base_script.py
base_script.py
Python
0.000002
@@ -0,0 +1,548 @@ +import argparse%0Aimport os%0Afrom datetime import datetime%0Afrom pathlib import Path%0A%0Adef argparse():%0A parser = argparse.ArgumentParser()%0A parser.add_argument('--input', type=str, default='')%0A parser.add_argument('--output_dir', type=str, default='output')%0A args = parser.parse_args(...
5fba93a26b6f09c20391ec18b281def2bd851650
Add test for semantics of for-loop that optimisation can break.
tests/basics/for3.py
tests/basics/for3.py
Python
0
@@ -0,0 +1,265 @@ +# test assigning to iterator within the loop%0Afor i in range(2):%0A print(i)%0A i = 2%0A%0A# test assigning to range parameter within the loop%0A# (since we optimise for loops, this needs checking, currently it fails)%0A#n = 2%0A#for i in range(n):%0A# print(i)%0A# n = 0%0A
10bc476eee20270d0cda93cded5c808d38c90b16
Add ConfigData class module
utils/configdataload.py
utils/configdataload.py
Python
0
@@ -0,0 +1,1456 @@ +#!/usr/bin/env python%0A# -*- coding: utf-8 -*-%0A%0A# The MIT License (MIT)%0A#%0A# Copyright (c) 2015 Corrado Ubezio%0A#%0A# Permission is hereby granted, free of charge, to any person obtaining a copy%0A# of this software and associated documentation files (the %22Software%22), to deal%0A# in the...
86312f5f7ee0f26e5b94c37b7d12ff9826c92de6
Create intNotLikeOthers.py
Codingame/Python/Clash/intNotLikeOthers.py
Codingame/Python/Clash/intNotLikeOthers.py
Python
0.000001
@@ -0,0 +1,494 @@ +import sys%0Aimport math%0A%0A# Auto-generated code below aims at helping you parse%0A# the standard input according to the problem statement.%0A%0Anumbers = %5Bint(x) for x in input().split()%5D%0Au = 0%0Ad = 0%0Afor x in numbers:%0A if x %3E= 0:%0A u += 1%0A else:%0A d += 1%0Aif...
02c49c817d1dce694b3e6c81c9df9e28e878c53f
fix simple_serialize_sqlalchemy for non-dictlike models
rootio/utils.py
rootio/utils.py
# -*- coding: utf-8 -*- """ Utils has nothing to do with models and views. """ import string import random import os from datetime import datetime, time, timedelta from flask import Flask from flask import json from flask.ext.wtf import Form ALLOWED_AVATAR_EXTENSIONS = set(['png', 'jpg', 'jpeg', 'gif']) # Form...
Python
0.000001
@@ -3562,24 +3562,63 @@ privates%22%22%22%0A + if hasattr(model, '__dict__'):%0A keys = %5B @@ -3682,16 +3682,20 @@ h('_')%5D%0A + seri @@ -3750,16 +3750,20 @@ n keys%7D%0A + retu @@ -3777,16 +3777,47 @@ al_dict%0A + else:%0A return model%0A %0A%0Aclass
7888ec20f67a8c708608b16e2c86b23993e3648a
add bulls-and-cows
vol6/bulls-and-cows/bulls-and-cows.py
vol6/bulls-and-cows/bulls-and-cows.py
Python
0.999997
@@ -0,0 +1,665 @@ +#!/usr/bin/env python%0A# -*- coding: utf-8 -*-%0A# @Author: Zeyuan Shang%0A# @Date: 2015-10-30 20:10:42%0A# @Last Modified by: Zeyuan Shang%0A# @Last Modified time: 2015-10-30 20:10:47%0Aclass Solution(object):%0A def getHint(self, secret, guess):%0A %22%22%22%0A :type secret: s...
08a3317d577e0ee5dfa07f8a81b7a4a018297b4a
Create a script to parse .mat and write .csv file
dstar-lite/scripts/python_pipe.py
dstar-lite/scripts/python_pipe.py
Python
0.000001
@@ -0,0 +1,1830 @@ +%0Aimport csv%0A%0Aimport numpy as np%0Aimport scipy.io as sio%0A%0Adef process_gridworld_data(input, imsize):%0A # run training from input matlab data file, and save test data prediction in output file%0A # load data from Matlab file, including%0A # im_data: flattened images%0A # state_data: co...
83e036f3d89c4b3956bde006085becb496a1fb6e
Add python / sklearn comparison script
dbscan/test.py
dbscan/test.py
Python
0
@@ -0,0 +1,1721 @@ +'''%0AGenerate dummy data, and compare output from scikit-learn's DBSCAN.%0A%0AExample code based on:%0A http://scikit-learn.org/stable/auto_examples/cluster/plot_dbscan.html#sphx-glr-auto-examples-cluster-plot-dbscan-py%0A%0ARun with pytest, e.g.:%0A%0A py.test test.py%0A'''%0A%0Aimport os%0Aim...
bc39c5fe7537bebcee478903e6890f4b9bab8b77
delete unit tests
tests/test_delete.py
tests/test_delete.py
Python
0.000001
@@ -0,0 +1,2602 @@ +import mock%0Aimport unittest%0A%0Aimport botocore%0A%0Afrom slam import cli%0Afrom .test_deploy import config, describe_stacks_response%0A%0A%0Aclass DeleteTests(unittest.TestCase):%0A @mock.patch('slam.cli.boto3.client')%0A @mock.patch('slam.cli._load_config', return_value=config)%0A def ...
31e5950b35545b293247d2979678b2b6c7c7864c
Create the test file
tests/test_fringe.py
tests/test_fringe.py
Python
0.000003
@@ -0,0 +1,224 @@ +import unittest%0Aimport ctypes%0A%0Aclass TestBranch(unittest.TestCase):%0A def setUpClass(cls):%0A cls.obj = ctypes.CDLL(%22obj/fringe13.o%22)%0A %0A def test_object(self):%0A self.assertIsNotNone(self.obj)%0A
fe6d4383a942eb85e3062f35f5b6d073d92b1cc2
Add unit test for tuning estimations
tests/test_pgtune.py
tests/test_pgtune.py
Python
0
@@ -0,0 +1,1182 @@ +# coding: utf-8%0A%22%22%22%0ATest suite for PgTune.%0A%22%22%22%0A%0Afrom unittest.mock import MagicMock, patch%0Aimport pytest%0Aimport smdba.postgresqlgate%0A%0A%0Aclass TestPgTune:%0A %22%22%22%0A Test PgTune class.%0A %22%22%22%0A%0A def test_estimate(self):%0A %22%22%22%0A ...
d8d2ef931c5883dd1a04e563ebb67b381af6f541
Add teuthology.config, the start of a better system
teuthology/config.py
teuthology/config.py
Python
0.000002
@@ -0,0 +1,866 @@ +#!/usr/bin/env python%0Aimport os%0Aimport yaml%0Aimport logging%0A%0ACONF_FILE = os.path.join(os.environ%5B'HOME'%5D, '.teuthology.yaml')%0A%0Alog = logging.getLogger(__name__)%0A%0A%0Aclass _Config(object):%0A def __init__(self):%0A self.__conf = %7B%7D%0A if not os.path.exists(CON...
89b1790a5b12a90d03d09280f92f8d068b799a1b
add metadata client
priority15/metadata_client.py
priority15/metadata_client.py
Python
0
@@ -0,0 +1,1224 @@ +import requests%0A%0A%0Adef post_request(request):%0A def wrapper(*args, **kargs):%0A url, params = request(*args, **kargs)%0A requests.post(url, params)%0A return wrapper%0A%0A%0Aclass MetadataClient(object):%0A%0A def __init__(self, host=%22127.0.0.1%22):%0A self.base...
ed985791d20199af9cb34e445d0a96dc11e9129b
Add some basic tests for RRTM scheme.
climlab/tests/test_rrtm.py
climlab/tests/test_rrtm.py
Python
0
@@ -0,0 +1,1053 @@ +from __future__ import division%0Aimport numpy as np%0Aimport climlab%0Aimport pytest%0Afrom climlab.radiation import RRTMG, RRTMG_LW, RRTMG_SW, CAM3Radiation_LW%0A%0Adef test_rrtm_creation():%0A # initial state (temperatures)%0A state = climlab.column_state(num_lev=num_lev, num_lat=1, water_d...
0d0cbb961a5d19ce98dd7e9805a04ac9c8887687
Add main file
hotcrp2acm.py
hotcrp2acm.py
Python
0.000001
@@ -0,0 +1,1235 @@ +#! /usr/bin/python%0A%0A__author__ = %22Xiaofan (Fred) Jiang%22%0A__copyright__ = %22Copyright 2016, Columbia ICSL%22%0A__license__ = %22GPL%22%0A__version__ = %221.0%22%0A__email__ = %22jiang@ee.columbia.edu%22%0A__status__ = %22Production%22%0A%0A%22%22%22%0AExample: %0A hotcrp2acm.py input.jso...
9d94dcff276418edd5d1464761a976ec65df8519
add install.py stub
install.py
install.py
Python
0.000001
@@ -0,0 +1,151 @@ +# invoke python%0A# locate sublime%0A# ask the user if they want to:%0A# add only the missing records to the user's files%0A# or replace the files completely%0A%0A
f35baed0d59c508110b97d9d100e36afcb57a6c0
update alembic
alembic/versions/7665dea01c37_add_project_to_child.py
alembic/versions/7665dea01c37_add_project_to_child.py
Python
0.000001
@@ -0,0 +1,645 @@ +%22%22%22add project to child%0A%0ARevision ID: 7665dea01c37%0ARevises: %0ACreate Date: 2017-10-07 16:37:54.126634%0A%0A%22%22%22%0Afrom alembic import op%0Aimport sqlalchemy as sa%0A%0A%0A# revision identifiers, used by Alembic.%0Arevision = '7665dea01c37'%0Adown_revision = None%0Abranch_labels = No...
cde510b5f13e1a2624d7d458415d206ad6c6019c
Add py-httptools (#19186)
var/spack/repos/builtin/packages/py-httptools/package.py
var/spack/repos/builtin/packages/py-httptools/package.py
Python
0
@@ -0,0 +1,649 @@ +# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other%0A# Spack Project Developers. See the top-level COPYRIGHT file for details.%0A#%0A# SPDX-License-Identifier: (Apache-2.0 OR MIT)%0A%0Afrom spack import *%0A%0A%0Aclass PyHttptools(PythonPackage):%0A %22%22%22httptools is a P...
7fbdd5dbadc8bc8186173545257763471bd69665
test the use_twisted etc commands
test/test_imports.py
test/test_imports.py
Python
0.000017
@@ -0,0 +1,751 @@ +import pytest%0A%0A%0Adef test_use_twisted():%0A pytest.importorskip('twisted')%0A%0A import txaio%0A txaio.use_twisted()%0A assert txaio.using_twisted%0A assert not txaio.using_asyncio%0A%0A%0Adef test_use_twisted_no_twisted():%0A # make sure we DO NOT have Twisted installed%0A ...
6f758a8a6340c3754019c433ee40e9dfe2536bcc
Use the new version style
tvrenamr/frontend.py
tvrenamr/frontend.py
#!/usr/bin/python import logging import os import sys from __init__ import get_version from config import Config from episode import Episode from errors import * from logs import start_logging from main import TvRenamr from options import OptionParser log = logging.getLogger('Core') parser = OptionParser(usage='tvr...
Python
0.000001
@@ -70,27 +70,25 @@ import -get +_ _version %0Afrom co @@ -79,16 +79,18 @@ _version +__ %0Afrom co @@ -339,16 +339,38 @@ older%3E', +%0A version @@ -385,25 +385,29 @@ amr -%25s' %25 get +%7B0%7D'.format(_ _version ())%0A @@ -402,17 +402,18 @@ _version -( +__ ))%0Aoptio
a84d8005193328b63eaf98f0852dc72c3e58aed9
Add example script for evaluating setiment
twitter_feed.py
twitter_feed.py
Python
0
@@ -0,0 +1,920 @@ +# authenticates with twitter, searches for microsoft, evaluates overall%0A# sentiment for microsoft%0A%0Aimport numpy as np%0Aimport twitter%0Afrom textblob import TextBlob%0A%0Af = open('me.auth')%0Akeys = f.readlines()%0A%0A# Read in keys%0Akeys = %5Bx.strip('%5Cn') for x in keys%5D%0A%0A# Connect%...
4463ee56c210b5dd2c7e117b2b4f3adb3d8a4b67
Create icreacream.py
icreacream.py
icreacream.py
Python
0
@@ -0,0 +1,3669 @@ +# Copyright 2016 John J. Rofrano. All Rights Reserved.%0A#%0A# Licensed under the Apache License, Version 2.0 (the %22License%22);%0A# you may not use this file except in compliance with the License.%0A# You may obtain a copy of the License at%0A#%0A# https://www.apache.org/licenses/LICENSE-2.0%0A#%...
3c1971d1175f0257e5297c273a780b337b72b319
Add tests from AutoParadigmMixin
test/test_util.py
test/test_util.py
Python
0
@@ -0,0 +1,482 @@ +from kitten.util import AutoParadigmMixin%0A%0A%0Aclass TestAutoParadigmMixin(object):%0A def setup_method(self, method):%0A self.apm = AutoParadigmMixin()%0A%0A def test_first_load(self):%0A ret = self.apm.paradigms%0A%0A assert 'node' in ret%0A assert 'node' in sel...
0d7b9e23889b2908e874bda58a119af6b763f04e
Test Case for adding groups
test_add_group.py
test_add_group.py
Python
0
@@ -0,0 +1,1869 @@ +# -*- coding: utf-8 -*-%0Afrom selenium.webdriver.firefox.webdriver import WebDriver%0Afrom selenium.webdriver.common.action_chains import ActionChains%0Aimport time, unittest%0A%0Adef is_alert_present(wd):%0A try:%0A wd.switch_to_alert().text%0A return True%0A except:%0A ...
cda831f6fc95922ac81e51fd93dc4705f1bdb688
add keyhac config
keyhac/config.py
keyhac/config.py
Python
0.000001
@@ -0,0 +1,926 @@ +from keyhac import *%0D%0A%0D%0Adef configure(keymap):%0A%09keymap_global = keymap.defineWindowKeymap()%0D%0A%0A%09keymap_global%5B %22Ctrl-H%22 %5D = %22Left%22%0A%09keymap_global%5B %22Ctrl-J%22 %5D = %22Down%22%0A%09keymap_global%5B %22Ctrl-K%22 %5D = %22Up%22%0A%09keymap_global%5B %22Ctrl-L%22...
c68ae63ac4856a6417afb10f53a7609c3958ae32
Solve Knowit 01
knowit2017/01.py
knowit2017/01.py
Python
0.999998
@@ -0,0 +1,1137 @@ +from collections import Counter%0A%0A%0Adef lookify(w):%0A c = Counter(w)%0A return ''.join(sorted(c.keys()))%0A%0A%0Adef ngram(n, w):%0A tokens = ''%0A i = 0%0A lw = len(w)%0A%0A while True:%0A print(w%5Bi:i+n%5D)%0A tokens += w%5Bi:i+n%5D%0A i += 1%0A%0A ...
55908f44cb683063cba4a57ee262c3d0074b68e2
Create GiftWrapping.py
Challenge-174/03-Hard/GiftWrapping.py
Challenge-174/03-Hard/GiftWrapping.py
Python
0
@@ -0,0 +1,1837 @@ +from PIL import Image, ImageDraw, ImageOps%0Afrom random import randint%0A%0An = 26%0A%0A#Create image%0Aimg = Image.new( 'RGB', (101, 101), 'white')%0Adraw = ImageDraw.Draw(img)%0Apoints = %5B(randint(0, 100), randint(0, 100)) for _ in range(n)%5D%0A%0Adef left(point, line):%0A %22%22%22Determi...
71d0a5a283a3320926fb017e355aa812301997e5
Create Malta holidays tests
test/countries/test_malta.py
test/countries/test_malta.py
Python
0
@@ -0,0 +1,1616 @@ +# -*- coding: utf-8 -*-%0A%0A# python-holidays%0A# ---------------%0A# A fast, efficient Python library for generating country, province and state%0A# specific sets of holidays on the fly. It aims to make determining whether a%0A# specific date is a holiday as fast and flexible as possible.%0A#...
469c2932575daaf42d8cec5578c087f4e5c340af
Add Django REST Framework authentication helpers for JWT
helusers/jwt.py
helusers/jwt.py
Python
0
@@ -0,0 +1,1673 @@ +from django.utils.translation import ugettext as _%0Afrom django.contrib.auth import get_user_model%0Afrom rest_framework_jwt.authentication import JSONWebTokenAuthentication%0Afrom rest_framework import exceptions%0Aimport random%0A%0AUser = get_user_model()%0A%0A%0Aclass JWTAuthentication(JSONWebT...
672d76c4c904c3e9cf572310a218be533288e01e
Add API_class.py
API_class.py
API_class.py
Python
0
@@ -0,0 +1,722 @@ +class API_config():%0A %0A def __init__(self, app_config,tweepy):%0A self.app_config = app_config%0A self.tweepy = app_config%0A%0A def API_launch(self):%0A %0A# Twitter API configuration%0A consumer_key = app_config.twitter%5B%22consumer_key%22%5D%0A consu...
4b9b4a3f0fe248a7b550a7c370780c1a66e8c323
fix report timesheet
netforce_service/netforce_service/models/report_service_time.py
netforce_service/netforce_service/models/report_service_time.py
# Copyright (c) 2012-2015 Netforce Co. Ltd. # # 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, publ...
Python
0.000001
@@ -2389,38 +2389,8 @@ = 1%0A - print(%22weeks%22, weeks)%0A @@ -2396,32 +2396,32 @@ lines = %5B%5D%0A + for proj @@ -3084,32 +3084,37 @@ ls%5B%22bill_hours%22%5D + or 0 %0A @@ -3366,36 +3366,8 @@ %7D%0A - print(%22data%22, data)%0A @@ -4498,38 +4498,8 @@ =...
5aafda5603ca6a5d2b1b6cfcae41132a46382c86
add memcached example, closes #344
onadata/settings/production_example.py
onadata/settings/production_example.py
from common import * # nopep8 # this setting file will not work on "runserver" -- it needs a server for # static files DEBUG = False # override to set the actual location for the production static and media # directories MEDIA_ROOT = '/var/formhub-media' STATIC_ROOT = "/srv/formhub-static" STATICFILES_DIRS = ( o...
Python
0
@@ -2024,8 +2024,166 @@ tYXB9y'%0A +%0A# Caching%0ACACHES = %7B%0A 'default': %7B%0A 'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache',%0A 'LOCATION': '127.0.0.1:11211',%0A %7D%0A%7D%0A
5c3eaede26381babac281dfa0d9bec3ebe911ba8
Add tool for building custom packages
util/compile.py
util/compile.py
Python
0
@@ -0,0 +1,1001 @@ +#!/usr/bin/env python%0Aimport sys, os, subprocess%0A%0Asys.argv.pop(0)%0Alanguages = sys.argv%0Alanguages.sort()%0A%0Ajs_path = os.path.dirname(__file__) + '/../js/'%0A%0Ajs_files_to_include = %5Bjs_path + 'rainbow.js'%5D%0Aincluded_languages = %5B%5D%0A%0Afor language in languages:%0A path = js...
86c4bc1a3aa8c29293e5d77dfbd66ea72f58d832
add some python tests
py/test.py
py/test.py
Python
0.000001
@@ -0,0 +1,1217 @@ +import unittest%0Afrom twombly import *%0A%0A%0A%0Aclass TestDrawing(unittest.TestCase):%0A def setUp(self):%0A self.image = new_image(1200, 800)%0A self.drawing = draw(self.image)%0A%0A def test_new_drawing(self):%0A self.assertIsNotNone(self.image)%0A self.assertE...
fa12247a378e172b75db8d04378883c9d1231449
Add tests for children sorting in the admin panel.
tests/test_api.py
tests/test_api.py
Python
0
@@ -0,0 +1,2519 @@ +import os%0Afrom operator import itemgetter%0A%0Aimport pytest%0Afrom flask import json%0A%0Afrom lektor.admin import WebAdmin%0A%0A%0A@pytest.fixture%0Adef children_records_data():%0A %22%22%22Returns test values for children records' %60id%60, %60title%60, and %60pub_date%60 fields.%22%22%22%0A...
46735fedcff6c7ee37ecce0912b44fbdb09338e5
Add test
tests/test_hex.py
tests/test_hex.py
Python
0.000005
@@ -0,0 +1,757 @@ +#!/usr/bin/env python%0A%0Aimport logging%0Aimport nose%0Aimport os%0A%0Aimport cle%0A%0ATEST_BASE = os.path.join(os.path.dirname(os.path.realpath(__file__)),%0A os.path.join('..', '..', 'binaries'))%0A%0Adef test_macho():%0A %22%22%22%0A Basic smoke-test...
73c8a0fabd4cd746d6690a7e5fbe4628d12b47e3
Revert "If CFP can't be found 404, don't hardcode ids"
cfp/views.py
cfp/views.py
from braces.views._access import LoginRequiredMixin, UserPassesTestMixin from django.core.exceptions import PermissionDenied from django.core.urlresolvers import reverse from django.http.response import HttpResponse, Http404 from django.shortcuts import get_object_or_404 from django.views.generic.edit import CreateView...
Python
0
@@ -222,55 +222,8 @@ 404%0A -from django.shortcuts import get_object_or_404%0A from @@ -622,40 +622,33 @@ p = -get_object_or_404(CallForPaper, +CallForPaper.objects.get( pk=k @@ -662,16 +662,21 @@ et('pk') + or 1 )%0A @@ -750,32 +750,33 @@ rgs, **kwargs)%0A%0A +%0A def get_cont
923a90c8678c82a66233008d943f05e865b53ad8
Add geom_density tests
ggplot/tests/test_geom_density.py
ggplot/tests/test_geom_density.py
Python
0.000001
@@ -0,0 +1,752 @@ +from __future__ import absolute_import, division, print_function%0A%0Aimport numpy as np%0Aimport pandas as pd%0A%0Afrom .. import ggplot, aes, geom_density%0Afrom .conftest import cleanup%0A%0An = 6 # Some even number greater than 2%0A%0A# ladder: 0 1 times, 1 2 times, 2 3 times, ...%0Adf = pd.Data...
296044328ba9e9670db7b051d0160b08aa459414
Create code.py
code/code.py
code/code.py
Python
0.000007
@@ -0,0 +1,2804 @@ +import requests%0Aimport re%0Aimport webbrowser%0Aimport os%0A%0Afrom bs4 import BeautifulSoup%0A%0Aflag=0%0Aname = (raw_input(%22please enter the name to search%5Cn%3E%22))%0A%0Aresponse = requests.get(%22https://www.google.co.in/search?&q=%22+name+%22lyrics%22)%0A%0Aif response.status_code==200:%...
41df6d294b17b6b21af1d32e3c74c3ad1e0591bb
Add custom login form
maccman/forms.py
maccman/forms.py
Python
0
@@ -0,0 +1,510 @@ +from django.contrib.auth.forms import AuthenticationForm%0Afrom django.forms import forms%0Afrom django.utils.translation import gettext as _%0A%0Afrom .models import UserProfile%0A%0A%0Aclass UserProfileAuthenticationForm(AuthenticationForm):%0A def confirm_login_allowed(self, user):%0A tr...
c8fd1c96e629e3330dd11416a0eb7432118f1191
rename for convenience
tools/demodata.py
tools/demodata.py
Python
0.000001
@@ -0,0 +1,1808 @@ +#!/usr/bin/python%0Aimport sys, os, urllib%0A%0Aroot = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))%0Asys.path.append(root)%0Aimport admin, store, config%0A%0Acfg = config.Config(root+'/config.ini')%0Ast = store.Store(cfg)%0A%0A# classifiers%0Afor c in urllib.urlopen(%22http://pypi.py...
4047c59ed58dc8fef037ecc589bb7d82df967d13
Create __init__.py
GWsky/__init__.py
GWsky/__init__.py
Python
0.000429
@@ -0,0 +1,58 @@ +from .GWsky import GWsky%0Afrom .version import __version__%0A
e478afec3d706f6d5784937fd33c6feb32ea0218
Create lastfm.py
HexChat/lastfm.py
HexChat/lastfm.py
Python
0.000004
@@ -0,0 +1,1999 @@ +from __future__ import print_function%0A%0Aimport sys%0Aimport json%0A%0Aif sys.version_info%5B0%5D == 2:%0A import urllib2 as urllib_error%0A import urllib as urllib_request%0Aelse:%0A import urllib.error as urllib_error%0A import urllib.request as urllib_request%0A%0Aim...
21b5fbfc2b400e70ed51876d6046320c974b666d
fix issue #57: add plugin for imagebam
gallery_plugins/plugin_imagebam.py
gallery_plugins/plugin_imagebam.py
Python
0
@@ -0,0 +1,1032 @@ +# Plugin for gallery_get.%0A%0A# Each definition can be one of the following:%0A# - a string%0A# - a regex string%0A# - a function that takes source as a parameter and returns an array or a string. (You may assume that re and urllib are already imported.)%0A# If you comment out a parameter, it will...
17335a6165b6070ceb4c4f1e6bb1d5a6a8bf08f2
Add AttachedNotesMixin
indico/core/db/sqlalchemy/notes.py
indico/core/db/sqlalchemy/notes.py
Python
0
@@ -0,0 +1,1378 @@ +# This file is part of Indico.%0A# Copyright (C) 2002 - 2016 European Organization for Nuclear Research (CERN).%0A#%0A# Indico is free software; you can redistribute it and/or%0A# modify it under the terms of the GNU General Public License as%0A# published by the Free Software Foundation; either ver...
f35d5251500268235598e4dbd2ddf91c994e1632
Fix for django-tagging and automcomplete
ixxy_admin_utils/custom_widgets.py
ixxy_admin_utils/custom_widgets.py
Python
0
@@ -0,0 +1,764 @@ +from dal_select2_tagging.widgets import TaggingSelect2%0Afrom django import VERSION%0Afrom tagging.utils import parse_tag_input%0A%0A%0Aclass IxxyTaggingSelect2(TaggingSelect2):%0A%0A # TaggingSelect2 doesn't handle spaces as delimeters in tags%0A # Django-tagging has a function we can use that...
0d4ea4493484e2d34468e205f392d2025e6c2f87
Add tower 9
towers/beginner/level_009.py
towers/beginner/level_009.py
Python
0.000003
@@ -0,0 +1,560 @@ +# -----------%0A# %7C%3ECa @ S wC%7C%0A# -----------%0A%0Alevel.description(%22Time to hone your skills and apply all of the abilities that you have learned.%22)%0Alevel.tip(%22Watch your back.%22)%0Alevel.clue(%22Don't just keep shooting the bow while you are being attacked from behind.%22)%0A%0A...
8c0c52712833de31aeb2c4a48c8f4300966f5366
Add lc230_kth_smallest_element_in_a_bst.py
lc230_kth_smallest_element_in_a_bst.py
lc230_kth_smallest_element_in_a_bst.py
Python
0.001517
@@ -0,0 +1,1082 @@ +%22%22%22Leetcode 230. Kth Smallest Element in a BST%0AMedium%0A%0AURL: https://leetcode.com/problems/kth-smallest-element-in-a-bst/%0A%0AGiven a binary search tree, write a function kthSmallest to find the %0Akth smallest element in it.%0A%0ANote: %0AYou may assume k is always valid, 1 %3C= k %3C= ...
2475916e0d17e4b03bb93970b88555a229a5f3c0
add tests for ninefold
libcloud/test/storage/test_ninefold.py
libcloud/test/storage/test_ninefold.py
Python
0.000004
@@ -0,0 +1,1367 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more%0A# contributor license agreements. See the NOTICE file distributed with%0A# this work for additional information regarding copyright ownership.%0A# The ASF licenses this file to You under the Apache License, Version 2.0%0A# (the ...
bcae52c8e8fbbfe7f986a5ef5e5150f4b189de0a
update configure script
configure.py
configure.py
import sys import os import urllib2 import tarfile import subprocess import json packages = { "fftw" : ["http://www.fftw.org/fftw-3.3.2.tar.gz", ["--disable-fortran", "--disable-mpi", "--disable-openmp", "--disable-threads"] ], "gsl" : ["ftp://ftp.gnu.org/gnu/gsl/gsl-1.15.tar.gz", ...
Python
0.000001
@@ -422,15 +422,8 @@ 8.10 --patch1 .tar @@ -655,14 +655,14 @@ bxc- -1. 2.0. +1. tar. @@ -791,16 +791,18 @@ lib-1.3. +1. tar.gz%22, @@ -2118,32 +2118,64 @@ age_dir + %22/src%22 + + %22 -I%22 + cwdlibs + package_dir , %0A
5a0d37668c76c7ed77347f2d59cb5b7a20284385
Add names updater
names_updater.py
names_updater.py
Python
0
@@ -0,0 +1,2200 @@ +#!/usr/bin/env python%0A# Copyright 2017 Patrick Laughrea%0A# Licensed under the Apache License, Version 2.0%0AREADME = '''%0A## Purpose%0A%0AThis is a script to update names in the %60gitignore.py%60 file.%0A%0A## Requirements%0A%0AThe gitignore repository must have been cloned on the machine at %6...
3bdc692133c7e9e56fb3eeb77d0951ce21a225ec
Create ds_string_word_pattern.py
leetcode/ds_string_word_pattern.py
leetcode/ds_string_word_pattern.py
Python
0.002888
@@ -0,0 +1,711 @@ +%0A# @file Word Pattern%0A# @brief Given 2 sets check if it is a bijection%0A%0A# https://leetcode.com/problems/word-pattern/%0A%0A'''%0AGiven a pattern and a string str, find if str follows the same pattern.%0AHere follow means a full match, such that there is a bijection between %0Aa letter in pat...
36843505e1f8d80768c75487faf7cef20294936b
Add migration file
csunplugged/topics/migrations/0047_curriculumarea_colour.py
csunplugged/topics/migrations/0047_curriculumarea_colour.py
Python
0.000001
@@ -0,0 +1,465 @@ +# -*- coding: utf-8 -*-%0A# Generated by Django 1.11 on 2017-05-05 09:20%0Afrom __future__ import unicode_literals%0A%0Afrom django.db import migrations, models%0A%0A%0Aclass Migration(migrations.Migration):%0A%0A dependencies = %5B%0A ('topics', '0046_glossarydefinition'),%0A %5D%0A%0A ...