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
7b0779a402070ec88d9afeab42388b6432391336
ADD AND CHANGE
zt.py
zt.py
Python
0.000001
@@ -0,0 +1,828 @@ +#!/usr/bin/env python%0A# -*- conding: utf-8 -*-%0A########################%0A#File Name:zt.py%0A#Author:WmTiger%0A#Mail:bfstiger@gmail.com%0A#Created Time:2016-09-07 12:59:28%0A########################%0A%0Aimport picamera%0Aimport time%0Aimport io%0Aimport zbar%0Afrom PIL import Image%0A%0Adef getQ...
8812d487c33a8f0f1c96336cd27ad2fa942175f6
add setup.py
setup.py
setup.py
Python
0.000001
@@ -0,0 +1,956 @@ +from distutils.core import setup%0A%0Asetup(%0A name=%22sequential%22,%0A packages=%5B%22sequential%22%5D,%0A version=%221.0.0%22,%0A description=%22Sequential wrappers for python functions.%22,%0A author=%22Phil Condreay%22,%0A author_email=%220astex@gmail.com%22,%0A url=%22http...
365540e17885cf41043358f14a04d0fa15ecb4ec
update 002 with python
002.py
002.py
Python
0
@@ -0,0 +1,202 @@ +def func(thresh):%0A a = 1%0A b = 1%0A ret = 0%0A while 1:%0A a, b = a + b, a%0A if a %3E thresh:%0A return ret%0A if a %25 2 == 0:%0A ret += a%0A%0Aprint func(4*1000*1000)%0A
a675b289f7848a773ded80f943f60156a224fd17
Add a setup.py to allow use in pip requirements files.
setup.py
setup.py
Python
0
@@ -0,0 +1,751 @@ +#!/usr/bin/env python%0A# -*- coding: utf-8 -*-%0Afrom setuptools import setup, find_packages%0A%0Asetup(%0A name='tweetar',%0A version='1.0.0',%0A description='Script to post on Twitter METARs retrieved from NOAA.',%0A author='Adam Fast',%0A author_email='adamfast@gmail.com',%0A ur...
62a405bf2574320a7fe1e941129056e8157121b5
Add setup.py
setup.py
setup.py
Python
0.000001
@@ -0,0 +1,609 @@ +# coding=utf-8%0A%0Afrom setuptools import setup, find_packages%0A%0APACKAGES_DATA = %7B'sii': %5B'data/*.xsd'%5D%7D%0A%0Asetup(%0A name='sii',%0A description='Librer%C3%ADa de Suministro Inmediato de Informaci%C3%B3n',%0A author='GISCE-TI, S.L.',%0A author_email='devel@gisce.net',%0A ...
6fc87957cff4e0ef1c95d604a8fb0630f2bcda38
Add initial setup.py to please buildout.
setup.py
setup.py
Python
0
@@ -0,0 +1,579 @@ +import os%0Aimport re%0Afrom setuptools import setup, find_packages%0A%0A%0Asetup(%0A name = 'e-cidadania',%0A description=(%22e-cidadania is a project to develop an open source %22%0A %22application for citizen participation, usable by %22%0A %22associations, co...
c862150e8b9d015263f450483f7163e067df5b92
add setup.py
setup.py
setup.py
Python
0.000001
@@ -0,0 +1,969 @@ +#/usr/bin/python%0A#coding=utf8%0A%0Aimport os%0Aimport sys%0A%0A%0Adef authenticate():%0A '''Prompt the user for the superuser password if required.'''%0A # The euid (effective user id) of the superuser is 0.%0A euid = os.geteuid()%0A if euid != 0:%0A args = %5B'sudo', '-E', sys.e...
5f410124e439ba5795335b3e0159eb1421e3ba52
Package setup definition
setup.py
setup.py
Python
0
@@ -0,0 +1,435 @@ +from setuptools import setup%0A%0A%0Asetup(%0A name='plotta',%0A version='1.0.0a1',%0A install_requires=%5B'unirest'%5D,%0A%0A description='Python wrapper for Plotta API',%0A url='https://github.com/gzuidhof/plotta-python',%0A license='MIT',%0A keywords='plot plotting plotta',%0A...
a03b9b0d219b54fce5bd3fcbef88b117d49115b1
Add files via upload
self-driving-car-ai/mlp_training.py
self-driving-car-ai/mlp_training.py
Python
0
@@ -0,0 +1,2314 @@ +__author__ = 'zhengwang'%0A%0Aimport cv2%0Aimport numpy as np%0Aimport glob%0A%0Aprint 'Loading training data...'%0Ae0 = cv2.getTickCount()%0A%0A# load training data%0Aimage_array = np.zeros((1, 38400))%0Alabel_array = np.zeros((1, 4), 'float')%0Atraining_data = glob.glob('training_data/*.npz')%0A# ...
27b7fe3c6ef33e2a810f0394e83b5f776e17a60b
add setup.py
setup.py
setup.py
Python
0.000001
@@ -0,0 +1,1114 @@ +#!/usr/bin/env python%0A#-*- coding:utf-8 -*-%0A%0Afrom setuptools import setup, find_packages%0A%0Asetup(%0A name = %22missh%22,%0A version = %220.1.1rc7%22,%0A# packages = find_packages(), #%5B%22mipass%22,%22missh-nox%22%5D,%0A py_modules = %5B%22mipass%22%5D,%0A scripts = %5B'miss...
34bb61bb7b634255a5828a0dbc695668bfe357cf
add setup.py for setuptools
setup.py
setup.py
Python
0
@@ -0,0 +1,566 @@ +#!/usr/bin/env python%0A%0Afrom os.path import join%0Afrom setuptools import setup, find_packages%0A%0Asetup(name='egniter',%0A version='1.0',%0A description='Egniter is a command line tool for easy launching VMWare' +%0A 'ESX virtual machines using ESX API',%0A author...
a00f47d66f87632fc28d49b97500132535c25d68
Create setup.py
setup.py
setup.py
Python
0.000001
@@ -0,0 +1,873 @@ +from setuptools import setup, find_packages%0A%0Asetup(name='WiFiSuite',%0A version='v 1.05282017',%0A description='Enterprise WPA Wireless Tool suite ',%0A classifiers=%5B%0A 'Development Status :: 1 - Beta',%0A 'License :: OSI Approved :: MIT License',%0A 'Programming ...
3d6fb311e55e62cb0b1bbf9108af4d42853e32d6
apply 26_win32_setup.diff from pjenvey
setup.py
setup.py
#!/usr/bin/env python from ez_setup import use_setuptools import sys if 'cygwin' in sys.platform.lower(): min_version='0.6c6' else: min_version='0.6a9' try: use_setuptools(min_version=min_version) except TypeError: # If a non-local ez_setup is already imported, it won't be able to # use the min_versi...
Python
0
@@ -1737,16 +1737,356 @@ %5D,%0A)%0A%0A +if sys.platform == 'win32' and sys.version_info %3E (2, 6):%0A # 2.6's distutils.msvc9compiler can raise an IOError when failing to%0A # find the compiler%0A ext_errors = (CCompilerError, DistutilsExecError, DistutilsPlatformError,%0A IOError)%0Aelse:%0A...
fb53445b97f6667f4773b7f4ec32e03e2e2019d6
Make setuptools optional for install.
setup.py
setup.py
from setuptools import setup setup( name='XlsxWriter', version='0.5.7', author='John McNamara', author_email='jmcnamara@cpan.org', url='https://github.com/jmcnamara/XlsxWriter', packages=['xlsxwriter'], license='BSD', description='A Python module for creating Excel XLSX files.', lon...
Python
0
@@ -1,8 +1,17 @@ +try:%0A from set @@ -30,16 +30,73 @@ rt setup +%0Aexcept ImportError:%0A from distutils.core import setup %0A%0Asetup(
118e6fdd95d16c69a9d887d327046eadc61853f1
Add setup.py
setup.py
setup.py
Python
0.000001
@@ -0,0 +1,875 @@ +#!/usr/bin/python3%0Afrom setuptools import setup, find_packages%0A%0Asetup(name='grafcli',%0A version='0.1.0',%0A description='Grafana CLI management tool',%0A author='Milosz Smolka',%0A author_email='m110@m110.pl',%0A url='https://github.com/m110/grafcli',%0A packages=...
98ce14b1ed7fb8729f26e5705910b15ab4928275
Create rf_Table_Helpers.py
rf_Table_Helpers.py
rf_Table_Helpers.py
Python
0
@@ -0,0 +1,345 @@ +#!/usr/bin/env python%0A# -*- coding: utf-8 -*-%0A%22%22%22%0A.. module:: rf_Table_Helpers%0A :platform: Unix, Windows%0A :synopsis: Useful table introspection functions for Robot Framework's Selenium 2 Library.%0A%0A.. moduleauthor:: Greg Meece %3Cglmeece@gmail.com%3E%0A%0A%22%22%22%0A%0Afrom lx...
bd724a63413ea3234d6f404ccac662febb2e1ccd
Complete exercise 9
ex/ex09.py
ex/ex09.py
Python
0
@@ -0,0 +1,429 @@ +# LPTHW Exercise 9 -- Printing, Printing, Printing%0A%0A# Here's some new strange stuff, remember type it exactly.%0A%0Adays = %22Mon Tue Wed Thu Fri Sat Sun%22%0Amonths = %22Jan%5CnFeb%5CnMar%5CnApr%5CnMay%5CnJun%5CnJul%5CnAug%22%0A%0Aprint %22Here are the days: %22, days%0Aprint %22Here are the mon...
64f79354695b24d99479f63c770887e6326b7102
Create app.py
app.py
app.py
Python
0.000003
@@ -0,0 +1,15 @@ +print(%22hello%22)%0A
f7003aaf07862539933a03cd66a8b3a71c2e3fa3
fix import
src/robotide/application/application.py
src/robotide/application/application.py
# Copyright 2008-2009 Nokia Siemens Networks Oyj # # 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...
Python
0.000001
@@ -734,21 +734,17 @@ ide. -contentassist +namespace imp
989d8516e40890f3a75d040f6923cbe8bd9749ff
Create subprocess.py
subprocess.py
subprocess.py
Python
0.000006
@@ -0,0 +1,429 @@ +#system information gather script. %0A%0Aimport subprocess%0A%0Adef uname_func():%0A%09uname = 'uname'%0A%09uname_arg='-a'%0A%09print %22collecting system information with %25s command:%5Cn%22 %25uname%0A%09subprocess.call(%5Buname,uname_arg%5D)%0A%09%0Adef disk_func():%0A%09diskspace = %22df%22%0A%0...
a7685738c9bd54a53858199b2225dbb4d1adce8e
Fix warning in plot_rank_mean
doc/examples/filters/plot_rank_mean.py
doc/examples/filters/plot_rank_mean.py
""" ============ Mean filters ============ This example compares the following mean filters of the rank filter package: * **local mean**: all pixels belonging to the structuring element to compute average gray level. * **percentile mean**: only use values between percentiles p0 and p1 (here 10% and 90%). * **bila...
Python
0.99936
@@ -859,17 +859,16 @@ image = -( data.coi @@ -875,32 +875,8 @@ ns() -).astype(np.uint16) * 16 %0Asel @@ -1507,17 +1507,16 @@ 'off')%0A%0A -%0A plt.show
64cc611c8a13379f62151629585e3fec9e442f82
add timeout decorator
timeout.py
timeout.py
Python
0
@@ -0,0 +1,2219 @@ +#%0A# Copyright 2012, Couchbase, Inc.%0A# 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# http://www.apache.org/licenses/LICENSE...
72be8a8fd8345542096ba31e3f1428ea25ea9498
Print with vs without a comma
ex6.py
ex6.py
Python
0.000001
@@ -0,0 +1,376 @@ +end1 = %22C%22%0Aend2 = %22H%22%0Aend3 = %22E%22%0Aend4 = %22E%22%0Aend5 = %22S%22%0Aend6 = %22E%22%0Aend7 = %22B%22%0Aend8 = %22U%22%0Aend9 = %22R%22%0Aend10 = %22G%22%0Aend11 = %22E%22%0Aend12 = %22R%22%0A# Printing without a comma%0Aprint end1 + end2 + end3 + end4 + end5 + end6%0Aprint end7 + end8...
e58fe43d032a98849acc9c0ca041432bea0dbdba
Create brick-wall.py
Python/brick-wall.py
Python/brick-wall.py
Python
0.000933
@@ -0,0 +1,1663 @@ +# Time: O(n), n is the total number of the bricks%0A# Space: O(m), m is the total number different widths%0A%0A# There is a brick wall in front of you. The wall is rectangular and has several rows of bricks.%0A# The bricks have the same height but different width. You want to draw a vertical line f...
fd807364ead8c450530c5f3a3735cc2c236761b7
add non-stub impute_and_confidence function
tabular_predDB/jsonrpc_http/stub_client_jsonrpc.py
tabular_predDB/jsonrpc_http/stub_client_jsonrpc.py
# # Copyright 2013 Baxter, Lovell, Mangsingkha, Saeedi # # 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 appl...
Python
0.000304
@@ -1950,16 +1950,41 @@ + 'impute_and_confidence', 'simple @@ -3208,16 +3208,284 @@ eep(1)%0A%0A +method_name = 'impute_and_confidence'%0Aargs_dict = dict()%0Aargs_dict%5B'M_c'%5D = M_c%0Aargs_dict%5B'X_L'%5D = X_L_prime%0Aargs_dict%5B'X_D'%5D = X_D_prime%0Aargs_dict%5B'Y'%5D = None%0Aargs_dict%5B'Q'%5D = ...
c8f2c51470bc966adb69cdbf8bf9cc7858cfa6a3
Fix render_content.
grip/api.py
grip/api.py
from __future__ import print_function, unicode_literals import io import os import sys import errno from .app import Grip from .readers import DirectoryReader, StdinReader, TextReader from .renderers import GitHubRenderer, OfflineRenderer from .resolver import resolve_readme def create_app(path=None, user_content=F...
Python
0
@@ -3106,35 +3106,33 @@ re -turn (offline_render(text, +nderer = (GitHubRenderer( user @@ -3144,26 +3144,38 @@ ent, context -)%0A +, api_url)%0A @@ -3170,27 +3170,32 @@ + if +not render_offli @@ -3196,16 +3196,21 @@ _offline + else %0A @@ -3218,115 +3218,155 @@ -...
96035f6bb2a298cea859b1e5e9812e2dd83982d2
Add script to upload files to shell applet
dnanexus/shell/resources/home/dnanexus/upload_file.py
dnanexus/shell/resources/home/dnanexus/upload_file.py
Python
0
@@ -0,0 +1,1314 @@ +#!/usr/bin/env python%0A# -*- coding: latin-1 -*-%0A%0Aimport os, sys, time, subprocess, json, requests%0A%0AHEADERS = %7B%0A 'Content-type': 'application/json',%0A 'Accept': 'application/json',%0A%7D%0A%0Apath = 'test.fastq'%0AFILE_URL = 'http://test.encodedcc.org/TSTFF867178/upload/'%0AENCOD...
85f6b2437b57c6e33ff56422b15aaab690704218
Add test to validate against schema
ckanext/doi/tests/test_schema.py
ckanext/doi/tests/test_schema.py
Python
0.000001
@@ -0,0 +1,1656 @@ +#!/usr/bin/env python%0A# encoding: utf-8%0A#%0A# This file is part of ckanext-doi%0A# Created by the Natural History Museum in London, UK%0A%0Aimport ckanext.doi.api as doi_api%0Aimport ckanext.doi.lib as doi_lib%0Aimport mock%0Aimport requests%0Afrom ckantest.factories import DataConstants%0Afrom ...
56e3ec2e0e788797b252cf28438d7ca6bede29ef
Correct comparison
tests/sentry/api/endpoints/test_broadcast_index.py
tests/sentry/api/endpoints/test_broadcast_index.py
from __future__ import absolute_import from django.core.urlresolvers import reverse from sentry.models import Broadcast, BroadcastSeen from sentry.testutils import APITestCase class BroadcastListTest(APITestCase): def test_simple(self): broadcast1 = Broadcast.objects.create(message='bar', is_active=True...
Python
0.00011
@@ -1138,16 +1138,8 @@ en'%5D - == True %0A%0A
de5e7e3555788bb5e62d1ad2d20208d4289e5fe5
Add script for printing max accuracy across many networks
max.py
max.py
Python
0
@@ -0,0 +1,1707 @@ +#!/usr/bin/env python3%0A%0Aimport argparse%0Aimport numpy%0Aimport sys%0Aimport re%0Aimport os%0Aimport os.path%0Aimport tempfile%0A%0Aparser = argparse.ArgumentParser()%0Aparser.add_argument('model',%0A type=argparse.FileType('rb'),%0A nargs='+',%0A ...
9f67de8a0823edf66212ed84116a1138a5fd0adb
add tests
tests/gdr-test1.py
tests/gdr-test1.py
Python
0
@@ -0,0 +1,1302 @@ +# -*- coding: utf-8 -*-%0A%0A# Copyright (c) 2017 shmilee%0A%0Aimport os%0Aimport logging%0Aimport gdpy3.read as gdr%0A%0Alog = logging.getLogger('gdr')%0A%0Aif __name__ == '__main__':%0A # log.setLevel(20)%0A log.setLevel(10)%0A datadir = '/home/IFTS_shmilee/phiobo-4-test'%0A numpat = r...
4a9e2ac4a92fb67fd1f77605b5db6e6c3e5becc4
add CubicToQuadraticFilter
Lib/ufo2ft/filters/cubicToQuadratic.py
Lib/ufo2ft/filters/cubicToQuadratic.py
Python
0
@@ -0,0 +1,908 @@ +from __future__ import (%0A print_function, division, absolute_import, unicode_literals)%0A%0Afrom ufo2ft.filters import BaseFilter%0Afrom cu2qu.ufo import DEFAULT_MAX_ERR%0Afrom cu2qu.pens import Cu2QuPointPen%0A%0A%0Aclass CubicToQuadraticFilter(BaseFilter):%0A%0A _kwargs = %7B%0A 'con...
1811ddb9e49307f3473add8363c464946dffb0d8
Create jsonToExcel.py
jsonToExcel.py
jsonToExcel.py
Python
0.000019
@@ -0,0 +1,1166 @@ +#! /usr/bin/python%0A%0A%22%22%22%0AJSON to Excel v1.0%0APython script to convert a JSON to a XLS file%0ACreated by: Miguel Jim%C3%A9nez%0ADate: 22/10/2014%0A%22%22%22%0A%0Aimport json%0Aimport xlwt%0Aimport sys%0Aimport os%0A%0Aif sys.argv%5B1%5D == %22help%22:%0A print(%22Usage:%5Cn%5CtjsonToEx...
41eeab76452cbbb92711c0a60bda4cfc28d8502f
Add network_training_tensorflow.py
demos/network_training_tensorflow.py
demos/network_training_tensorflow.py
Python
0.000001
@@ -0,0 +1,2005 @@ +%22%22%22 TensorFlow Network Training Demo%0ATrains a simple CNN to make velocity fields incompressible.%0AThis script runs for a certain number of steps before saving the trained network and halting.%0A%22%22%22%0Afrom phi.tf.flow import *%0A%0A%0Amath.seed(0) # Make the results reproducible%0Anet...
ead3203a804e6397a00531d3b9e284edd87d0718
Add merge candidates cmd #72
calaccess_processed/management/commands/mergecandidates.py
calaccess_processed/management/commands/mergecandidates.py
Python
0
@@ -0,0 +1,1943 @@ +#!/usr/bin/env python%0A# -*- coding: utf-8 -*-%0A%22%22%22%0AMerge Persons that share the same CAL-ACCESS filer_id.%0A%22%22%22%0Afrom django.db.models import Count%0Afrom calaccess_processed.management.commands import LoadOCDModelsCommand%0Afrom opencivicdata.models import Person, PersonIdentifier...
f4355824da0bc36da46561f0dc7125ff3e642acd
Add support for _filter_by_* to query helper
src/ggrc/converters/query_helper.py
src/ggrc/converters/query_helper.py
# Copyright (C) 2015 Google Inc., authors, and contributors <see AUTHORS file> # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> # Created By: miha@reciprocitylabs.com # Maintained By: miha@reciprocitylabs.com from sqlalchemy import and_ from sqlalchemy import not_ from sqlalchemy import o...
Python
0
@@ -4459,17 +4459,16 @@ key - = exp%5B%22l @@ -4472,16 +4472,24 @@ %5B%22left%22%5D +.lower() %0A @@ -4481,36 +4481,102 @@ lower()%0A -attr +key = self.attr_name_map%5Bobject_class%5D.get(key, key)%0A filter_by = getattr(objec @@ -4584,27 +4584,33 @@ _class, -key.lower() +%22_filter...
0a24e0bf83d1d4f5e8ed70ff0d7681efcf26d190
Create assessment relationships on the backend
src/ggrc/models/hooks/assessment.py
src/ggrc/models/hooks/assessment.py
# Copyright (C) 2016 Google Inc., authors, and contributors <see AUTHORS file> # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> # Created By: ivan@reciprocitylabs.com # Maintained By: ivan@reciprocitylabs.com """ Assessment generator hooks We are applying assessment template properti...
Python
0
@@ -392,16 +392,64 @@ port db%0A +from ggrc.automapper import AutomapperGenerator%0A from ggr @@ -475,16 +475,16 @@ _models%0A - from ggr @@ -953,16 +953,86 @@ ate%22%22%22%0A%0A + map_object(src%5B%22object%22%5D, obj)%0A map_object(src%5B%22audit%22%5D, obj)%0A%0A if n @@ -1293,16 +1293,16 @@ elated)...
a7629ef3acedaa688a455c01afb65c40a53c14b0
Add unit test for drawing routines
tests/test_draw.py
tests/test_draw.py
Python
0
@@ -0,0 +1,1686 @@ +import batoid%0Aimport time%0Aimport os%0Aimport yaml%0Aimport numpy as np%0Aimport pytest%0Afrom test_helpers import timer%0A%0A# Use matplotlib with a non-interactive backend.%0Aimport matplotlib as mpl%0Ampl.use('Agg')%0Aimport matplotlib.pyplot as plt%0Afrom mpl_toolkits.mplot3d import Axes3D%0A...
2ea675d3f719e6e309a47d6c0e9b98b407377267
Create get_mac.py
get_mac.py
get_mac.py
Python
0.000002
@@ -0,0 +1,75 @@ +import re, uuid%0Aprint ':'.join(re.findall('..', '%25012x' %25 uuid.getnode()))%0A
a2772fdb9a5d8b83db4818b0439825ee73bae25d
Update __init__.py
tendrl/commons/objects/__init__.py
tendrl/commons/objects/__init__.py
import abc import etcd import six import sys import types from tendrl.commons.central_store import utils as cs_utils from tendrl.commons.event import Event from tendrl.commons.message import ExceptionMessage, Message from tendrl.commons.utils import time_utils @six.add_metaclass(abc.ABCMeta) class BaseObject(object)...
Python
0.000072
@@ -4212,16 +4212,208 @@ l_obj()%0A + %0A def exists(self):%0A _exists = False%0A try:%0A self.load()%0A _exists = True%0A except etcd.EtcdKeyNotFound:%0A pass%0A return _exists%0A %0A%0A@six.a
703a94b1352d710ee4577dee0c5ad5c349d0c49e
Add SMTP returner
salt/returners/smtp_return.py
salt/returners/smtp_return.py
Python
0.000064
@@ -0,0 +1,2431 @@ +'''%0AReturn salt data via email%0A%0AThe following fields can be set in the minion conf file:%0A%0A smtp.from (required)%0A smtp.to (required)%0A smtp.host (required)%0A smtp.username (optional)%0A smtp.password (optional)%0A smtp.tls (optional, defaults to False)%0A smtp.subje...
dcc6ba3558696ba73d8e00f820eb8941b2d48b51
test Console-Logging
testConsoleLoggin.py
testConsoleLoggin.py
Python
0
@@ -0,0 +1,266 @@ +#!/usr/local/bin/python%0A# -*- coding: utf-8 -*-%0Afrom console_logging import console%0A%0Aconsole.log(%22Hello World!%22)%0Aconsole.log(%22This is a log.%22)%0Aconsole.error(%22This is an error.%22)%0Aconsole.info(%22This is some neutral info.%22)%0Aconsole.success(%22This is a success message.%22...
537e243d15d1689e9e14535acb01bf65c9cbffcf
Add migration <ADDON>GuidFile -> StoredFileNode
scripts/migrate_file_guids.py
scripts/migrate_file_guids.py
Python
0
@@ -0,0 +1,2904 @@ +import sys%0Aimport logging%0A%0Afrom website.app import init_app%0Afrom scripts import utils as script_utils%0Afrom framework.transactions.context import TokuTransaction%0Afrom framework.guid.model import Guid%0A%0Afrom website.files import models%0Afrom website.addons.box.model import BoxFile%0Afr...
a06d614a119ae25c702b51a282adc8d3f2971f9e
Stop false matches with changelog->upgradeactions linking
gen-changelog.py
gen-changelog.py
# Writes a changelog in trac WikiFormatting based on a git log from __future__ import unicode_literals, division, absolute_import import codecs from itertools import ifilter import os import re import subprocess import sys from bs4 import BeautifulSoup import dateutil.parser import requests out_path = 'ChangeLog' if...
Python
0
@@ -1444,16 +1444,25 @@ compile( +' %25s ' %25 re.escap
4ac7d4ec350e0f56d39c72c8aa33894ff28d3fb0
add replacement for pfSctl
src/opnsense/service/configd_ctl.py
src/opnsense/service/configd_ctl.py
Python
0
@@ -0,0 +1,2299 @@ +#!/usr/local/bin/python2.7%0A%22%22%22%0A Copyright (c) 2015 Ad Schellevis%0A%0A part of OPNsense (https://www.opnsense.org/)%0A%0A All rights reserved.%0A%0A Redistribution and use in source and binary forms, with or without%0A modification, are permitted provided that the following ...
7a687d60a607dda79e14e9e8ba50e92a19e3e916
Add basic main() function
haldane.py
haldane.py
Python
0
@@ -0,0 +1,897 @@ +from sensor import *%0Afrom display import *%0Afrom timer import *%0Afrom model import *%0A%0Aimport time%0A%0Adef main():%0A sensor = Sensor.factory(%22MS5803-14B%22)%0A model = Model.factory(%22Buhlmann%22)%0A timer = Timer.factory(%22Sleep%22, 1)%0A display = Display.factory(%22Stdio%2...
80af3f92c08404a57cd660e84c1bf9d8f983920c
Create hangman.py
hangman.py
hangman.py
Python
0.000001
@@ -0,0 +1,50 @@ +print 'This game is so fun right'%0Aprint 'You won'%0A
2cbeff222a7b3d0746d62c46566d463c95102fe6
Optimize the home page. #15
judge/views/blog.py
judge/views/blog.py
from django.core.urlresolvers import reverse from django.http import Http404 from django.utils import timezone from django.views.generic import ListView, DetailView from judge.comments import CommentedDetailView from judge.models import BlogPost, Comment, Problem from judge.utils.diggpaginator import DiggPaginator from...
Python
0.999997
@@ -1307,16 +1307,70 @@ objects. +select_related('author__user').defer('author__about'). order_by
064386acbe509f872e40f3f577e7b6189ed91434
Test threading in app server rather than in serverTest.
src/test/ed/lang/python/thread2_test.py
src/test/ed/lang/python/thread2_test.py
Python
0
@@ -0,0 +1,288 @@ +import _10gen%0Aimport ed.appserver.AppContext%0Aimport ed.lang.python.Python%0Aimport java.io.File%0A%0A# FIXME: this test produces a lot of output%0A_10gen.__instance__ = ed.lang.python.Python.toPython(ed.appserver.AppContext(java.io.File('.')))%0A%0Aimport test.test_thread%0Aimport test.test_threa...
28b285e0f3810d009f141217759130afb517d8e8
Remove wrong log message
smile_log/models/smile_log.py
smile_log/models/smile_log.py
# -*- encoding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2011 Smile (<http://www.smile.fr>). All Rights Reserved # # This program is free software: you can redistribute it and/or modify # it under th...
Python
0
@@ -1037,54 +1037,8 @@ ds%0A%0A -from ..tools.db_handler import SmileDBLogger%0A%0A %0Acla @@ -1204,297 +1204,8 @@ c'%0A%0A - def __init__(self, pool, cr):%0A super(SmileLog, self).__init__(pool, cr)%0A cr.execute(%22select relname from pg_class where relname='smile_log'%22)%0A if cr.rowcount...
ab79e32552e1292feb75db52426d6fd4418c8262
Add a snippet.
python/wave/read_wav_file2.py
python/wave/read_wav_file2.py
Python
0.000002
@@ -0,0 +1,447 @@ +#!/usr/bin/env python3%0A# -*- coding: utf-8 -*-%0A%0A# Read the content of an audio wave file (.wav)%0A# See: https://docs.python.org/3/library/wave.html%0A%0Aimport wave%0A%0Awith wave.open(%22./test.wav%22, mode=%22rb%22) as wr:%0A%0A print(wr.readframes(20)) # Read the 20 first frames%0A%0A ...
610f560c086320b42d83aab7644fe5d9a99d2cb7
Add channel invite test
tests/unit/channels/test_invite.py
tests/unit/channels/test_invite.py
Python
0
@@ -0,0 +1,1568 @@ +# Copyright (c) 2014 Katsuya Noguchi%0A#%0A# Permission is hereby granted, free of charge, to any person obtaining a%0A# copy of this software and associated documentation files (the%0A# %22Software%22), to deal in the Software without restriction, including%0A# without limitation the rights to use,...
9b4c716117966194d046eef56ea5f891ce3d40f9
Implement char CNN
model.py
model.py
Python
0.99958
@@ -0,0 +1,1437 @@ +import tensorflow as tf%0A%0A%0Adef weight_variable(shape):%0A initial = tf.truncated_normal(shape, stddev=0.1)%0A return tf.Variable(initial)%0A%0A%0Adef bias_variable(shape):%0A initial = tf.constant(0.1, shape=shape)%0A return tf.Variable(initial)%0A%0A%0Adef conv2d(input_, output_dim...
cf31afad7752c3da5eba72613f89e7247a3eaed4
put actual file up
trainwreck.py
trainwreck.py
Python
0
@@ -0,0 +1,469 @@ +import pygame%0Afrom time import sleep%0Afrom pygame.locals import *%0Aimport sys%0A%0Apygame.init()%0A%0Awhite = (255,255,255)%0Ablack = (0,0,0)%0Ared = (255, 0, 0)%0Agreen = (0, 255, 0)%0Ablue = (0,0, 255)%0Agray = (100, 100, 100)%0A %0A%0Atrain = pygame.image.load('pixel-train2.png')%0Ascreen = py...
3b5234a370db18fc51d8ad8573981c85544abb47
Add code to fix the python 2.6.6 auth failure issue.
test/frameworks/lib/fix_auth_failure.py
test/frameworks/lib/fix_auth_failure.py
Python
0.997951
@@ -0,0 +1,2024 @@ +#!/usr/bin/env python%0A%0A# $Id: fix_auth_failure.py,v 1.1 2011-02-15 20:28:38 barry409 Exp $%0A%0A# Copyright (c) 2011 Board of Trustees of Leland Stanford Jr. University,%0A# all rights reserved.%0A#%0A# Permission is hereby granted, free of charge, to any person obtaining a copy%0A# of this soft...
bf19db124cdca9c219bcf65929423efaac7d9504
version bump for 0.80.25.
oneflow/__init__.py
oneflow/__init__.py
VERSION = '0.80.24'
Python
0
@@ -15,8 +15,8 @@ 80.2 -4 +5 '%0A%0A
580464a7b381becf5163dee0d910f34665458c73
version bump for 0.80.61.
oneflow/__init__.py
oneflow/__init__.py
VERSION = '0.80.60'
Python
0
@@ -11,12 +11,12 @@ '0.80.6 -0 +1 '%0A%0A
773c6b0091e5385fa48f813ef86baa95b0ae451b
version bump for 0.25.9.5.
oneflow/__init__.py
oneflow/__init__.py
VERSION = '0.25.9.4'
Python
0
@@ -16,8 +16,8 @@ 5.9. -4 +5 '%0A%0A
5f25d8fc11705d63b1bc45135e2f9910acbf3923
version bump for 0.80.17.
oneflow/__init__.py
oneflow/__init__.py
VERSION = '0.80.16'
Python
0
@@ -15,8 +15,8 @@ 80.1 -6 +7 '%0A%0A
670bd6e65721df376d8b3a5305a1fdb358d214d3
bump version in __init__.py
oneflow/__init__.py
oneflow/__init__.py
VERSION = '0.16.1.6'
Python
0.000023
@@ -12,11 +12,11 @@ '0.16.1. -6 +7 '%0A
b32fb8b0367984b8756c738674f5010da37d578a
version bump for 0.25.14.5.
oneflow/__init__.py
oneflow/__init__.py
VERSION = '0.25.14.4'
Python
0
@@ -13,12 +13,12 @@ 0.25.14. -4 +5 '%0A%0A
3db5b1e7099e1c10d557577350dc28e323c70af4
fix stale libvirt images on download failure. Bug 801412
nova/virt/images.py
nova/virt/images.py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # Copyright (c) 2010 Citrix Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you m...
Python
0.000002
@@ -1513,16 +1513,29 @@ e_href)%0A + try:%0A with @@ -1567,16 +1567,20 @@ e_file:%0A + @@ -1639,16 +1639,76 @@ e_file)%0A + except Exception:%0A os.unlink(path)%0A raise%0A retu
ece1b5f163abb61d080b5e8d0fc8d57a311635d0
Fix changes in handler arguments
src/robotide/spec/libraryfetcher.py
src/robotide/spec/libraryfetcher.py
# Copyright 2008-2012 Nokia Siemens Networks Oyj # # 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...
Python
0.000004
@@ -782,22 +782,21 @@ -return +kws = %5B%0A @@ -993,16 +993,35 @@ lues()%5D%0A + return kws%0A exce @@ -1164,21 +1164,26 @@ er_args. -names +positional :%0A @@ -1214,21 +1214,26 @@ er_args. -names +positional ))%0A i @@ -1356,13 +1356,18 @@ rgs. -names +positional ) - @@ -1...
b7c54e6bf4c91587df0e74f04ba63b50d01977aa
Create test2.py
test2.py
test2.py
Python
0.000004
@@ -0,0 +1,515 @@ +import sys%0A%0Awith open(sys.argv%5B1%5D) as f:%0A lines = f.readlines()%0A for ln in lines:%0A ln = ln.replace(%22%5Cn%22, %22%22)%0A ln = ln.replace(%22 %22, %22%22)%0A rev_ln = ''.join(sorted(ln, reverse=True))%0A%0A result = True%0A ln_len = len(ln)%0A half_ln_len = ln_len/2%...
a8bd9defcf3359296acf7633041b036213868075
Make getting started easier with a handy script
install.py
install.py
Python
0.000001
@@ -0,0 +1,1140 @@ +#!/usr/bin/env python%0A%0Aimport subprocess%0A%0A%0Adef sudo(command_text):%0A parts = %5B'sudo'%5D%0A parts.extend(command_text.split(command_text))%0A subprocess.call(parts)%0A%0A%0Adef apt_get_install(package_name):%0A command_text = %22apt-get -y install %7B0%7D%22.format(package_na...
fd1fcead596844552a90980166b9f2a73aabc089
test cases for 3X3_2K1R scenario and to the fucntion that validates a individual configuration
tests.py
tests.py
Python
0
@@ -0,0 +1,744 @@ +import naive%0A%0Adef test_is_valid_configuration_3X3_2K1R():%0A all_configurations = %5B%0A (1,0,1,0,0,0,0,4,0),%0A (1,0,0,0,0,4,1,0,0),%0A (0,0,1,4,0,0,0,0,1),%0A (0,4,0,0,0,0,1,0,1)%0A %5D%0A%0A M = N = 3%0A%0A for conf in all_configurations:%0A asser...
b372c34cf8bb111c0dcc25b391220f54bc22b36f
add functioning bundestag_reden_down.py
bundestag_down/bundestag_reden_down.py
bundestag_down/bundestag_reden_down.py
Python
0.000025
@@ -0,0 +1,1277 @@ +%0A# script to download all %22Plenardebatten%22 from the Deutscher Bundestag%0A%0A# http://dipbt.bundestag.de/doc/btp/17/17140.pdf%0A%0A%0Abase_url = %22http://dipbt.bundestag.de/doc/btp/%22%0A%0Adef get_name( period, docnum ):%0A%09return base_url + '%7B:=02%7D'.format(period) + %22/%22 + '%7B:=02...
ac636016d75f0f874973edf2a8fe1ab991b868c7
Fix #6: Added auto-setup script
install.py
install.py
Python
0
@@ -0,0 +1,1301 @@ +#!/usr/bin/env python%0A# -*- coding: utf-8 -*-%0Aimport os%0Aimport platform%0Aimport subprocess%0A%0A%0A%0A# Identify the type of operating system for install packages%0AOS = platform.dist()%5B0%5D.lower()%0A%0Aif OS == %22fedora%22 or OS == %22redhat%22:%0A install = %22sudo yum install %22%0A...
d71eaed10b2c62fc5b5c6436d146a561479198a3
bump version in __init__.py
oneflow/__init__.py
oneflow/__init__.py
VERSION = '0.20.11.16'
Python
0.000023
@@ -18,7 +18,7 @@ 11.1 -6 +7 '%0A
135a8117b14817ba06932f5af4c827e183265079
bump version in __init__.py
oneflow/__init__.py
oneflow/__init__.py
VERSION = '0.18.2.2'
Python
0.000023
@@ -12,11 +12,11 @@ '0.18.2. -2 +4 '%0A
f2f1ba286a1e0d651b989c755585284e13401154
Fix following the rename `Preference` -> `Preferences`.
oneflow/core/api.py
oneflow/core/api.py
# -*- coding: utf-8 -*- import logging from tastypie_mongoengine.resources import MongoEngineResource from tastypie_mongoengine.fields import ReferencedListField, ReferenceField from tastypie.resources import ALL from tastypie.fields import CharField from .models.nonrel import Subscription, Feed, Article, Read, Aut...
Python
0.000012
@@ -274,16 +274,23 @@ l import + (Feed, Subscri @@ -299,29 +299,79 @@ ion, - Feed, Article, Read, +%0A Article, Read,%0A Aut @@ -385,16 +385,18 @@ eference +s) %0A%0Afrom . @@ -3745,32 +3745,33 @@ class Preference +s Resource(MongoEn @@ -3831,16 +3831,17 @...
c653d0cc8989755ba44c31910b5f3c93f44d9d45
Fix issue 121
pages/utils.py
pages/utils.py
# -*- coding: utf-8 -*- from django.conf import settings as django_settings from django.template import TemplateDoesNotExist from django.template.loader_tags import ExtendsNode, ConstantIncludeNode from django.template.loader_tags import BlockNode from django.template import loader, Context, RequestContext from django....
Python
0
@@ -3461,17 +3461,20 @@ path -.replace( +%0A root = reve @@ -3494,13 +3494,94 @@ ot') -, '') +%0A if request.path.startswith(root):%0A relative_url = relative_url%5Blen(root):%5D %0A
55b6134e9fbab02bbabb1a298f3bb2777608d9a1
Fix issue 106
pages/views.py
pages/views.py
# -*- coding: utf-8 -*- from django.http import Http404, HttpResponsePermanentRedirect from django.shortcuts import get_object_or_404 from django.contrib.sites.models import SITE_CACHE from pages import settings from pages.models import Page, Content from pages.utils import auto_render, get_language_from_request, get_p...
Python
0
@@ -1156,16 +1156,33 @@ if +current_page and request. @@ -1201,16 +1201,54 @@ NFO'%5D != + %5C%0A current
56893afe699759be82cd547e9529768d7d8f7745
Resolve correct path for attachment from settings.MEDIA_ROOT, fix infinite recusion on delivery failure.
mailqueue/models.py
mailqueue/models.py
#---------------------------------------------# # # Mailer will queue up emails, Try to send them # and keep track of if they are sent or not. # Should be executed with a cron job. # #---------------------------------------------# import datetime import logging logger = logging.getLogger(__name__) from django.db impo...
Python
0
@@ -254,16 +254,26 @@ logging +%0Aimport os %0A%0Alogger @@ -3339,16 +3339,50 @@ ch_file( +os.path.join(settings.MEDIA_ROOT, attachme @@ -3405,16 +3405,17 @@ nt.name) +) %0A%0A @@ -3501,16 +3501,56 @@ ion, e:%0A + self.do_not_send = True%0A
6f3579e6ac32211779481307f8e508469dde7605
Add example of how to read from a external GPS outputting NMEA messages.
externalNMEA.py
externalNMEA.py
Python
0.000005
@@ -0,0 +1,2172 @@ +from __future__ import print_function%0Aimport requests%0Aimport argparse%0Aimport time%0Aimport logging%0Aimport sys%0Aimport serial%0Aimport pynmea2%0A%0A%0Alog = logging.getLogger()%0Alogging.basicConfig(format='%25(asctime)s %25(message)s', level=logging.INFO)%0A%0Adef set_position_master(url, l...
8117e10dc49f20a167d94ae278cd904a0e27188e
Add Class definitions for models for the products calls and variables
pitchfork/models.py
pitchfork/models.py
Python
0
@@ -0,0 +1,2295 @@ +%0Afrom pitchfork import db%0A%0A%0Aimport re%0A%0A%0Aclass Product:%0A def __init__(self, product):%0A self.app_url = product.get('app_url')%0A self.title = product.get('title')%0A self.us_api = product.get('us_api')%0A self.uk_api = product.get('uk_api')%0A se...
ac0d0b78b7b4eef913460894fca3af1ace222c7f
Test template for the Damage class
tests/test_damage.py
tests/test_damage.py
Python
0
@@ -0,0 +1,617 @@ +import unittest%0Afrom damage import Damage%0A%0A%0Aclass DamageTests(unittest.TestCase):%0A def test_init(self):%0A dmg = Damage(phys_dmg=1.34, magic_dmg=1.49391)%0A expected_phys_dmg = 1.3%0A expected_m_dmg = 1.5%0A expected_absorbed = 0%0A%0A # it should round...
dd5c0e1f66785089e4d996e40f1a8b93308ab42d
Add unittest
tests/test_params.py
tests/test_params.py
Python
0.000001
@@ -0,0 +1,2361 @@ +# -*- coding: utf-8 -*-%0Afrom __future__ import absolute_import%0Aimport datetime as dt%0Aimport decimal%0Afrom datetime import datetime%0A%0Aimport mongoengine as me%0A%0Aimport pytest%0Afrom marshmallow_mongoengine import ModelSchema%0A%0A%0ATEST_DB = 'marshmallow_mongoengine-test'%0Adb = me.conn...
9349adb2efa5f0242cf9250d74d714a7e6aea1e9
Make version compatible with PEP386
ordination/__init__.py
ordination/__init__.py
from .base import CA, RDA, CCA __all__ = ['CA', 'RDA', 'CCA'] # #from numpy.testing import Tester #test = Tester().test __version__ = '0.1-dev'
Python
0
@@ -116,16 +116,41 @@ ).test%0A%0A +# Compatible with PEP386%0A __versio @@ -163,9 +163,9 @@ '0.1 -- +. dev'
df77b24a730190342b2f6384bcaf052532c82632
Add files via upload
find_min_max.py
find_min_max.py
Python
0
@@ -0,0 +1,686 @@ +path = %22wordlist.txt%22%0D%0AmaxWordCount = 3%0D%0A%0D%0Afile = open(path, %22r%22)%0D%0Awords = file.read().replace(%22%5Cn%22, %22%22).split(%22,%22)%0D%0Afile.close()%0D%0A%0D%0Amaxlen = %5B%5D%0D%0Aminlen = %5B%5D%0D%0Afor i in range(maxWordCount):%0D%0A maxlen.append(%5B%5D)%0D%0A minlen...
c0d9c0aa93a5e32e04eaba3bfc8d4cf30a88395d
add configuration class
micronota/config.py
micronota/config.py
Python
0.000001
@@ -0,0 +1,3196 @@ +# ----------------------------------------------------------------------------%0A# Copyright (c) 2015--, micronota development team.%0A#%0A# Distributed under the terms of the Modified BSD License.%0A#%0A# The full license is in the file COPYING.txt, distributed with this software.%0A# -------------...
cb210e39fc6dc9bc3654dad0a70f29bc206688b4
Create feedback.py
plugins/feedback.py
plugins/feedback.py
Python
0
@@ -0,0 +1,368 @@ +@bot.message_handler(commands=%5B'feedback', 'sendfeedback'%5D)%0Adef send_feedbackz(message):%0A userid = message.from_user.id%0A banlist = redisserver.sismember('zigzag_banlist', '%7B%7D'.format(userid))%0A if banlist:%0A return%0A if userid not in messanger_list:%0A bot.reply_to(message,...
c5e047ff0e1cfe35692838365b907db8c3746c4b
Add join_segmentations example to the gallery
doc/examples/plot_join_segmentations.py
doc/examples/plot_join_segmentations.py
Python
0
@@ -0,0 +1,2140 @@ +%22%22%22%0A==========================================%0AFind the intersection of two segmentations%0A==========================================%0A%0AWhen segmenting an image, you may want to combine multiple alternative%0Asegmentations. The %60skimage.segmentation.join_segmentations%60 function%0Ac...
c231a440cd0b79a2e64fc050849ce3bc8e9b6f98
Annotate zerver/templatetags/minified_js.py.
zerver/templatetags/minified_js.py
zerver/templatetags/minified_js.py
from __future__ import absolute_import from django.template import Node, Library, TemplateSyntaxError from django.conf import settings from django.contrib.staticfiles.storage import staticfiles_storage register = Library() class MinifiedJSNode(Node): def __init__(self, sourcefile): self.sourcefile = sour...
Python
0
@@ -31,16 +31,39 @@ e_import +%0Afrom typing import Any %0A%0Afrom d @@ -220,16 +220,110 @@ torage%0A%0A +if False:%0A # no need to add dependency%0A from django.template.base import Parser, Token%0A%0A register @@ -396,24 +396,54 @@ ourcefile):%0A + # type: (str) -%3E None%0A self @@ -499,16...
6536a5893e44a40a776fe98c97ed0326299cc27b
Create 03.py
Euler/03.py
Euler/03.py
Python
0
@@ -0,0 +1,1160 @@ +def prime_sieve(limit):%0A is_prime = %5BFalse%5D * (limit + 1)%0A for x in range(1,int(limit**.5)+1):%0A for y in range(1,int(limit**.5)+1):%0A n = 4*x**2 + y**2%0A if n%3C=limit and (n%2512==1 or n%2512==5):%0A # print %221st if%22%0A ...
ebb3af21130c817eb41ecc0b79ec0dab2f5f64bf
Implement pull_request event
captain_hook/services/github/events/pull_request.py
captain_hook/services/github/events/pull_request.py
Python
0.000008
@@ -0,0 +1,1764 @@ +# -*- coding: utf-8 -*-%0Afrom __future__ import absolute_import%0Afrom ...base.events import BaseEvent%0A%0A%0Aclass PullRequestEvent(BaseEvent):%0A%0A def process(self):%0A%0A pr_link = str(self.body%5B'pull_request'%5D%5B'url'%5D).replace('https://api.github.com/', '')%0A params ...
b8db983c3b901ea45fabbfd87a1e92ae3722e8fe
Initialize 04.sameName
books/AutomateTheBoringStuffWithPython/Chapter03/04.sameName.py
books/AutomateTheBoringStuffWithPython/Chapter03/04.sameName.py
Python
0.999987
@@ -0,0 +1,317 @@ +# This program uses the same variable name throughout%0Adef spam():%0A eggs = 'spam local'%0A print(eggs) # prints 'spam local'%0A%0A%0Adef bacon():%0A eggs = 'bacon local'%0A print(eggs) # prints 'bacon local'%0A spam()%0A print(eggs) # prints 'bacon local'%0A%0A%0Aeggs = 'globa...
2b146388d1804ca4cb069fa07ea5e614a8ee1d14
Add example of sending push notification via Firebase Cloud Messaging
tools/send_to_fcm.py
tools/send_to_fcm.py
Python
0
@@ -0,0 +1,387 @@ +import requests%0A%0Aurl = 'https://fcm.googleapis.com/fcm/send'%0Aheaders = %7B'Content-Type': 'application/json',%0A 'Authorization': 'key=AIza...(copy code here)...'%7D%0A%0Apayload = %22%22%22 %0A%7B%0A %22to%22: %22/topics/all%22,%0A %22notification%22: %7B%0A %22title%22: %22Hell...
42ee5971dfd7309e707213d18c2041128a79e901
add test for overwrite grads
treeano/sandbox/tests/utils_test.py
treeano/sandbox/tests/utils_test.py
Python
0
@@ -0,0 +1,804 @@ +import nose.tools as nt%0Aimport numpy as np%0Aimport theano%0Aimport theano.tensor as T%0A%0Aimport treeano%0Aimport treeano.nodes as tn%0Afrom treeano.sandbox import utils%0A%0AfX = theano.config.floatX%0A%0A%0Adef test_overwrite_grad_multiple_args():%0A class Foo(utils.OverwriteGrad):%0A%0A ...
6557b2fc86c340968755274bbd97262b79dd1115
Add blank __init__ to make NEURON a package
pyrho/NEURON/__init__.py
pyrho/NEURON/__init__.py
Python
0.000952
@@ -0,0 +1 @@ +%0A
ebba34e159704332b26b9211392e7a1b0b3039ba
bump version to 1.0.3
setup.py
setup.py
#!/usr/bin/env python # Copyright 2011 The greplin-twisted-utils Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
Python
0
@@ -793,17 +793,17 @@ on='1.0. -2 +3 ',%0A
067236f0d1afc646967acfe3a37faa6643afbecb
Create setup.py
setup.py
setup.py
Python
0.000001
@@ -0,0 +1,84 @@ +# setup.py info things%0Afrom distutils.core import setup%0Asetup(%0A name = %22Kevin%22%0A )%0A
b3c99aba7d5c82bc8c7c08c4ba8461522f18fef0
Add some more trove classifiers; most importantly License (#71)
setup.py
setup.py
import sys import io from setuptools import setup, find_packages, __version__ as setuptools_version from pkg_resources import parse_version import pkg_resources try: import _markerlib.markers except ImportError: _markerlib = None # _markerlib.default_environment() obtains its data from _VARS # and wraps it...
Python
0
@@ -2322,16 +2322,151 @@ fiers=%5B%0A + 'Development Status :: 4 - Beta',%0A 'Intended Audience :: Developers',%0A 'License :: OSI Approved :: MIT License',%0A @@ -2932,21 +2932,212 @@ on :: 3.6',%0A + 'Programming Language :: Python :: Implementation :: CPython',%0A 'Prog...
b53b228ec81a1d7e65e7056fee2711f6a2f557b0
Add setup.py
setup.py
setup.py
Python
0.000001
@@ -0,0 +1,987 @@ +from setuptools import setup, find_packages%0Aimport os%0Aimport sys%0A%0Along_description = %22%22%22This project contains library functions for converting%5C%0A between the Unit Address and MAC address representations of SCTE 55-1%5C%0A terminals, e.g. Motorola-brand set-top boxes and CableCARDs%...
3898db5ffff2b3515e6f41e7c17e3f5b5fce9243
Create setup.py
setup.py
setup.py
Python
0.000001
@@ -0,0 +1,461 @@ +from setuptools import find_packages, setup%0A%0A%0Aversion = __import__('deduplicated').__version__%0A%0A%0Asetup(%0A name='deduplicated',%0A version=version,%0A description='Check duplicated files',%0A author='Eduardo Klosowski',%0A author_email='eduardo_klosowski@yahoo.com',%0A l...
a03130d23474efd7c4e2440618453d26e4f19f18
Create setup.py
setup.py
setup.py
Python
0.000001
@@ -0,0 +1,1363 @@ +from setuptools import setup, find_packages%0Aimport re, os%0A%0A%0Arequirements = %5B%5D%0Awith open('requirements.txt') as f:%0A requirements = f.read().splitlines()%0A%0A%0Aversion = ''%0Awith open('cleverbot/__init__.py') as f:%0A version = re.search(r'%5E__version__%5Cs*=%5Cs*%5B%5C'%22%5D(...
5ae7dcf5c1ebfdb70b1e12ed48dfa42fba348c7c
Add setup.py
setup.py
setup.py
Python
0.000001
@@ -0,0 +1,1152 @@ +from setuptools import setup, find_packages%0A%0Aimport inbox%0A%0Arequirements = %5B%0A %22click%22,%0A%5D%0A%0Asetup(%0A name=%22inbox%22,%0A version=inbox.__version__,%0A url='TODO',%0A description=inbox.__doc__,%0A author=inbox.__author__,%0A license=inbox.__license__,%0A ...
cf4c893560bede792e8f1c809d54a89f1c9b9870
Add setup.py.
setup.py
setup.py
Python
0
@@ -0,0 +1,1846 @@ +#!/usr/bin/env python%0A# -*- coding: utf-8 -*-%0A# Copyright 2014 Jan-Philip Gehrcke (http://gehrcke.de).%0A# See LICENSE file for details.%0A%0A%0Aimport re%0Afrom setuptools import setup%0A%0A%0Along_description = %5C%0A%22%22%22Beautiful-readme converts a single README file into a simple and mod...
450a186d7827b40dbb3a8ddde1f5f3e48b5143af
bump version
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup( name='django_linter', version='0.0.3', packages=('django_linter', 'django_linter.checkers'), description='Linter for django projects', long_description=open('README.rst').read(), author='Timofey Trukhanov', author_email='timofey.tru...
Python
0
@@ -98,11 +98,9 @@ ='0. -0.3 +1 ',%0A
49358019f146aa479b75ddb0dc75dffd1ecc351b
Create setup.py
setup.py
setup.py
Python
0.000001
@@ -0,0 +1,799 @@ +#! /usr/bin/env python%0A%0Afrom setuptools import setup%0A%0Asetup(%0A name='rdfa_markdown',%0A version='0.1',%0A author='James McCusker',%0A author_email='mccusj@cs.rpi.edu',%0A description='Python-Markdown extension to add support for semantic data (RDFa).',%0A url='https://githu...