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 |
|---|---|---|---|---|---|---|---|
066ba7f846f9cf32e29e82f6ba90db4f4f27029f | Create superBall.py | CodeWars/8kyu/superBall.py | CodeWars/8kyu/superBall.py | Python | 0.000003 | @@ -0,0 +1,92 @@
+class Ball(object):%0A def __init__(self, type = %22regular%22):%0A self.ball_type = type%0A
| |
8579e10ad13f2a9b5680edfbe185d3e1b597f9c6 | add hello.py | hello.py | hello.py | Python | 0.999964 | @@ -0,0 +1,230 @@
+# -*- coding: utf-8 -*-%0A%22%22%22%0ACreated on Fri Oct 16 20:11:07 2015%0A%0A@author: jessime%0A%22%22%22%0A%0Afrom flask import Flask%0Aapp = Flask(__name__)%0A%0A@app.route(%22/%22)%0Adef hello():%0A return %22Hello World!%22%0A%0Aif __name__ == %22__main__%22:%0A app.run()
| |
c2d48bec0d025d1aedf2c1f8d8f042eb14cabc52 | Add error message if no .go files are specified. | base_workspace/tools/build_rules/go_rules.bzl | base_workspace/tools/build_rules/go_rules.bzl | # 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 ag... | Python | 0.000001 | @@ -1315,23 +1315,8 @@
hand
- or using Glaze
.%0A%0A-
@@ -1896,16 +1896,72 @@
es.srcs%0A
+ if not sources:%0A fail(%22may not be empty%22, %22srcs%22)%0A%0A
out_li
|
852ecb67e11f4ad9662c832d8be5f5bf1b8327b1 | Add tests for action groups. | pyface/action/tests/test_group.py | pyface/action/tests/test_group.py | Python | 0 | @@ -0,0 +1,1245 @@
+from __future__ import absolute_import%0A%0Afrom traits.testing.unittest_tools import UnittestTools, unittest%0A%0Afrom ...image_cache import ImageCache%0Afrom ...window import Window%0Afrom ..action import Action%0Afrom ..action_item import ActionItem%0Afrom ..group import Group%0A%0A%0Aclass TestA... | |
76f636d38d6f3947efe6d58eacbd655027fc1a0e | Add post-hook to handle the difference between project name and role name. | hooks/post_gen_project.py | hooks/post_gen_project.py | Python | 0 | @@ -0,0 +1,228 @@
+#!/usr/bin/env python%0A# -*- coding: utf-8 -*-%0A%0Aimport os%0A%0A# Use symlink to handle the difference between project name and role name.%0Aos.symlink('../../%7B%7B cookiecutter.role_project_name %7D%7D', 'roles/%7B%7B cookiecutter.role_name %7D%7D')%0A
| |
fd7949d9fba182b19fc0de3cb32bca142cf8c801 | Add missing file. | tests/test_triple_parser.py | tests/test_triple_parser.py | Python | 0.000001 | @@ -0,0 +1,716 @@
+from unittest import TestCase%0A%0Afrom ppp_datamodel import Triple, Resource, Missing%0Afrom ppp_datamodel.triple_parser import parse_triples%0A%0Aclass TripleParserTestCase(TestCase):%0A def testBasics(self):%0A self.assertEqual(parse_triples('(foo, (bar, ?, (?, qux, quux)), ?)'), %5B%0A ... | |
882b016d7cc084b2b6071bd128c060083d0aecd6 | Create __init__.py | rdflib/plugins/parsers/__init__.py | rdflib/plugins/parsers/__init__.py | Python | 0.000429 | @@ -0,0 +1,9 @@
+%22%22%22%0A%0A%22%22%22%0A
| |
7022b47ed984d11474b1aa5721099620cc20956c | Fix updating issue with Qtile widget | powerline/bindings/qtile/widget.py | powerline/bindings/qtile/widget.py | # -*- coding: utf-8 -*-
from libqtile import bar
from libqtile.widget import base
from powerline.core import Powerline as PowerlineCore
class Powerline(base._TextBox):
def __init__(self, timeout=2, text=" ", width=bar.CALCULATED, **config):
base._TextBox.__init__(self, text, width, **config)
self.timeout_add(t... | Python | 0 | @@ -429,16 +429,57 @@
(self):%0A
+%09%09if not self.configured:%0A%09%09%09return True%0A
%09%09self.t
@@ -546,16 +546,30 @@
r.draw()
+%0A%09%09return True
%0A%0A%09def c
|
e3793a076606e8200a38cb9504f04730470bd741 | Create Source.py | Source.py | Source.py | Python | 0 | @@ -0,0 +1,652 @@
+import numpy as np%0Aimport cv2%0A%0Avid=cv2.VideoCapture(0)%0A_, instant=vid.read()%0Aavg=np.float32(instant)%0Afile=cv2.CascadeClassifier(%22C:%5Copencv2.4.6%5Cdata%5Chaarcascades%5Chaarcascade_mcs_upperbody.xml%22)%0Aobj=0%0Awhile(1):%0A _,frame=vid.read()%0A cv2.accumulateWeighted(frame, av... | |
1ace5845055050c0ac3d9e14a5f76ad78f6778bf | Add python script for calculating fuel pitch fraction. | python/calc_fuel_pitch_fraction.py | python/calc_fuel_pitch_fraction.py | Python | 0 | @@ -0,0 +1,538 @@
+import sympy as sp%0Aimport sys%0A%0A%0Adef calc_spacing(R, n):%0A x = sp.symbols('x')%0A Af = 0%0A Am = 0%0A for m in range(2*n - 1):%0A if m %25 2 == 0:%0A Af += sp.pi * (R/n * (m/2 + x))**2%0A if m %25 2 == 1:%0A Af -= sp.pi * (R/n * (m+1)/2)**2%0A ... | |
975493d0376dd565242718c588ce0d24eca8b923 | add initial script for copying local solutions to the baseline directory | newBaselineSolutions.py | newBaselineSolutions.py | Python | 0 | @@ -0,0 +1,976 @@
+%22%22%22%0A%0A%22%22%22%0A%0Aimport sys%0Aimport os%0Aimport shutil%0A%0A##### Helper functions%0Adef exitWithError(error):%0A print(error)%0A sys.exit(1)%0A%0Adef exitWithDirNotFound(dir):%0A exitWithError(%22Directory does not exist: %7B%7D%5Cn%22.format(dir))%0A%0A##### Main%0AsourceDir ... | |
3646ca1fc66a174d787ffd4a7569f48bc8f23cf5 | Update downladable clang to r335091. | third_party/clang_toolchain/download_clang.bzl | third_party/clang_toolchain/download_clang.bzl | """ Helpers to download a recent clang release."""
def _get_platform_folder(os_name):
os_name = os_name.lower()
if os_name.startswith('windows'):
return 'Win'
if os_name.startswith('mac os'):
return 'Mac'
if not os_name.startswith('linux'):
fail('Unknown platform')
return 'Linux_x64'
def _downlo... | Python | 0.000001 | @@ -1600,12 +1600,12 @@
'33
-4100
+5091
'%0A
@@ -1746,254 +1746,254 @@
'
-3c57420b591601cd14b5babd74b58fcaefa877112938d70cca6f0a1b0b293ab4',%0A 'Mac':%0A '97d313996fb97a6138635f963d7ef4efa9f028a8168bb7917cc428b9eab05ebb',%0A 'Win':%0A '52c1d6d20a0733276597f4ced59d18b545769dbf8beb8c6... |
bfd85c18e788c4e89569f7a35fa85d80d3bcd031 | Add the IPython version helper | reducer/ipython_version_helper.py | reducer/ipython_version_helper.py | Python | 0.000004 | @@ -0,0 +1,354 @@
+from __future__ import (division, print_function, absolute_import,%0A unicode_literals)%0A%0Afrom IPython import version_info%0A%0A%0Adef ipython_version_as_string():%0A %22%22%22%0A The IPython version is a tuple (major, minor, patch, vendor). We only%0A need major, m... | |
cd7822eb0017a59e71fb98e395228f891282082f | Revert r10641 | pywikibot/families/commons_family.py | pywikibot/families/commons_family.py | # -*- coding: utf-8 -*-
__version__ = '$Id$'
from pywikibot import family
# The Wikimedia Commons family
class Family(family.Family):
def __init__(self):
family.Family.__init__(self)
self.name = 'commons'
self.langs = {
'commons': 'commons.wikimedia.org',
}
... | Python | 0 | @@ -1350,16 +1350,100 @@
iki_p'%0A%0A
+ def shared_image_repository(self, code):%0A return ('commons', 'commons')%0A%0A
def
|
f110fdd778b450a0bed2b8bfb68f12648c4fd3e7 | add base_tester.py | tests/base_tester.py | tests/base_tester.py | Python | 0 | @@ -0,0 +1,1394 @@
+# -*- coding: utf-8 -*-%0A%22%22%22%0AThis is a utility script designed to allow you to run either py2 or py3 via:%0A /some/path/to/python base_tester.py%0Ain order to verify TLS 1.2 support and the version of openssl that python is%0Alinked against.%0A%0AThank you to Hanno B%C3%B6ck for providin... | |
f2044b0771f278c2a0de5cb69783b264a2d2363d | Add clustering metrics calculator file. | cluster_metrics.py | cluster_metrics.py | Python | 0 | @@ -0,0 +1,1531 @@
+%22Calculates Silhouette coefficient and Calinski-Harabaz index for a kmeans model.%22%0Aimport os, sys%0Aimport argparse, joblib%0Afrom sklearn import metrics%0A%0Adef cluster_metrics(data_file_path):%0A if not os.path.exists(data_file_path + '/kmodel.txt'):%0A print('No k-means model fil... | |
3b182032ae092560b2423e77f657ec0794ce38e6 | Add new users to all deployments | planetstack/model_policies/model_policy_User.py | planetstack/model_policies/model_policy_User.py | Python | 0 | @@ -0,0 +1,1108 @@
+from core.models import *%0A%0Adef handle(user):%0A%09deployments = Deployment.objects.all()%0A%09site_deployments = SiteDeployments.objects.all()%0A%09site_deploy_lookup = defaultdict(list)%0A%09for site_deployment in site_deployments:%0A%09%09site_deploy_lookup%5Bsite_deployment.site%5D.append(sit... | |
7e7bd440a1e3f585464df3458070528d0100d456 | Add helper to run requested Python script | pyseidon/handlers/__init__.py | pyseidon/handlers/__init__.py | Python | 0 | @@ -0,0 +1,569 @@
+import pyseidon%0Aimport sys%0A%0Adef handle_script():%0A import runpy%0A %22%22%22%0AAllow the client to run an arbitrary Python script.%0A%0AHere's sample usage:%0A%0A%60%60%60%0Adef expensive_setup():%0A ...%0A%0Aif __name__ == '__main__':%0A expensive_setup()%0A%0A import pyseidon.handle... | |
9a27b5c9a18c889c42b4de32cb4b596c7e331e6a | Refactor using Flask-Testing in client tests. | tests/test_client.py | tests/test_client.py | # -*- coding: utf-8 -*-
import unittest
from flask import url_for
from app import create_app, db
from app.models import User, Todo
class TodolistClientTestCase(unittest.TestCase):
def setUp(self):
self.app = create_app('testing')
self.app_context = self.app.app_context()
self.app_cont... | Python | 0 | @@ -22,23 +22,46 @@
*-%0A%0A
-import unittest
+from flask.ext.testing import TestCase
%0A%0Afr
@@ -186,17 +186,8 @@
ase(
-unittest.
Test
@@ -206,12 +206,17 @@
def
-setU
+create_ap
p(se
@@ -232,18 +232,14 @@
-self.app =
+return
cre
@@ -261,173 +261,52 @@
g')%0A
-
+%0A
- self.app_context = self.a... |
87172e2b9e0143cf164dc34c26c69fc4eda7dd1e | Add initial block list for ad_block functionality | seleniumbase/config/ad_block_list.py | seleniumbase/config/ad_block_list.py | Python | 0.000001 | @@ -0,0 +1,1474 @@
+%22%22%22%0AFor use with SeleniumBase ad_block functionality.%0A%0AUsage:%0A On the command line:%0A %22pytest SOME_TEST.py --ad_block%22%0A%0A From inside a test:%0A self.ad_block()%0A%0AIf using the command line version, the ad_block functionality gets%0Aactivated after %22self.wait_fo... | |
c7cdb6750ac3a927fe773f7d86be94d24df937b1 | Add Choice module | commands/Choice.py | commands/Choice.py | Python | 0 | @@ -0,0 +1,1311 @@
+import random%0A%0Afrom CommandTemplate import CommandTemplate%0A%0A%0Aclass Command(CommandTemplate):%0A%09triggers = %5B'choice', 'choose'%5D%0A%09helptext = %22Helps you make a choice between options in a comma-separated list%22%0A%0A%09def execute(self, message):%0A%09%09%22%22%22%0A%09%09:type ... | |
0a4bc484b465b2cfa0d763026a161ab7a92a3abb | Create squreRootBi.py | python_scripts/squreRootBi.py | python_scripts/squreRootBi.py | Python | 0.000001 | @@ -0,0 +1,736 @@
+def squreRootBi(x, epsilon):%0A '''assume x%3E=0 and epsilon %3E 0%0A Return y s.t y*y is within epsilon of x'''%0A assert x%3E= 0, 'x must be non-negative, not' + str(x) %0A assert epsilon %3E 0 , 'epsilon must be positive, not' + str(epsilon)%0A low = 0%0A high= max (x, 1.0) # inc... | |
645316b5583a69c834c3f6800007eadf2c6d8fed | test ra package | tests/test_ra.py | tests/test_ra.py | Python | 0.000001 | @@ -0,0 +1,176 @@
+%0A%0Adef test_api(mocker, test_raml):%0A import ra%0A raml = test_raml('simple')%0A app = mocker.Mock()%0A api = ra.api(raml, app)%0A assert isinstance(api, ra.dsl.APISuite)%0A
| |
2d4f09fe8c31aa2b996e71565292d5ef249986c7 | Add a small tool to answer questions like "Why does target A depend on target B". | tools/gyp-explain.py | tools/gyp-explain.py | Python | 0.999999 | @@ -0,0 +1,2255 @@
+#!/usr/bin/env python%0A# Copyright (c) 2011 The Chromium Authors. All rights reserved.%0A# Use of this source code is governed by a BSD-style license that can be%0A# found in the LICENSE file.%0A%0A%22%22%22Prints paths between gyp targets.%0A%22%22%22%0A%0Aimport json%0Aimport os%0Aimport sys%0Aim... | |
5e32d890fe0762163f1edab6672df91e7d461d8f | Check if a given sequence of moves for a robot is circular or not (py) | check-if-a-given-sequence-of-moves-for-a-robot-is-circular-or-not.py | check-if-a-given-sequence-of-moves-for-a-robot-is-circular-or-not.py | Python | 0.000202 | @@ -0,0 +1,775 @@
+from operator import add%0Aimport math%0A%0Amoves = raw_input(%22Enter the moves: %22)%0A%0Astart_position = %5B0,0%5D%0Acurrent_position = %5B0,0%5D%0A%0A'''%0Aheading = %5B1,90%5D - 1 step North%0A%09%09 %5B1, -90%5D - 1 step South%0A%09%09 %5B1,0%5D - East%0A%09%09 %5B1,360%5D - West%0A'''%0A%0... | |
7e1113801b04c7cc7300ee0cdebea25d0ea190a6 | Create scrap.py | scrap.py | scrap.py | Python | 0 | @@ -0,0 +1,1174 @@
+import urllib2%0Aimport json%0Afrom bs4 import BeautifulSoup%0A%0Abase_url = %22%22%0Astarting_page = %22%22%0Ajson_export = '%7B %22pages%22: %5B %5Cn'%0A%0Aindex = 0%0Aurl_list = %5B%5D%0Aurl_list.append(base_url+starting_page)%0Aurls_tested = %5B%5D%0A%0A%0Afor url in url_list:%0A page_json = '%... | |
4c7536d6f2c5c8b6f1c76a8fb6af062f3cfebf6c | add setup.py | setup.py | setup.py | Python | 0 | @@ -0,0 +1,324 @@
+from setuptools import setup%0A%0Asetup(name='dummy_data',%0A version='0.0.0',%0A description='Generate dummy data ',%0A url='http://github.com/blcook223/dummy_data',%0A author='Benjamin Cook',%0A author_email='benjamin.l.cook@gmail.com',%0A license='MIT',%0A packag... | |
3a185f5475f9270c5c0ff75528a26860bdac1aa3 | Fix development status classifier | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
import re
with open('evesrp/__init__.py', 'r') as f:
init_contents = ''
for line in f:
init_contents += line + '\n'
version = re.search(r'^__version__ *= *u?[\'"]([^\'"]*)[\'"]', init_contents,
re.MULTILINE)
if version:
version = version.g... | Python | 0.000156 | @@ -1276,17 +1276,17 @@
atus ::
-3
+4
- Beta'
|
b253d58d9feb614e00bdff3b41e087eafd0bfc5d | Bump version. | setup.py | setup.py | import os
from setuptools import setup
f = open(os.path.join(os.path.dirname(__file__), 'README.md'))
readme = f.read()
f.close()
setup(
name='django-ajaximage',
version='0.1.16-rohanza',
description='Add ajax image upload functionality with a progress bar to file input fields within Django admin. Images ... | Python | 0 | @@ -183,17 +183,9 @@
.1.1
-6-rohanza
+7
',%0A
|
4f4a30e9d0be7b282be6a5378d67b9d5cad047bc | Add classdata for bayes | bayes/classdata.py | bayes/classdata.py | Python | 0.000001 | @@ -0,0 +1,554 @@
+# Name: Kevin Wilde (kjw731)%0A# Date: May 23, 2016%0A# Description: Sentiment Analysis with Naive Bayes Classifiers%0A#%0A# All group members were present and contributing during all work on this%0A# project. (I worked alone.)%0A#%0A# Class to hold class data. Necessary to define in separate module ... | |
4e396326c2c053713bc6699ff572cd96669fa041 | Add setup.py | setup.py | setup.py | Python | 0.000001 | @@ -0,0 +1,207 @@
+#!/usr/bin/env python3%0A%0Afrom distutils.core import setup%0A%0Asetup(%0A%09name=%22tagmyrebase%22,%0A%09version=%222.0.0%22,%0A%09description=%22Utility to tag HEAD and the upstream commit after a rebase%22,%0A%09scripts=%5B%22tagmyrebase%22%5D,%0A)%0A
| |
f6666dd338fc5bb2832044759c526528f4e1f57d | Version bump | 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.000001 | @@ -793,17 +793,17 @@
on='1.0.
-3
+4
',%0A
|
af07e75b3f13970b16b8e8c8509e4e83a2dbfd18 | Add setup.py | setup.py | setup.py | Python | 0.000001 | @@ -0,0 +1,1486 @@
+# Always prefer setuptools over distutils%0Afrom setuptools import setup, find_packages%0A# To use a consistent encoding%0Afrom codecs import open%0Afrom os import path%0A%0Afrom playlist_kreator import VERSION%0A%0Ahere = path.abspath(path.dirname(__file__))%0A%0A# Get the long description from the... | |
247c57b08f9f7baf8d0fb71ca323ac60005f280f | Initialize setup file for microservice | setup.py | setup.py | Python | 0 | @@ -0,0 +1,277 @@
+from setuptools import find_packages, setup%0A%0A%0Asetup(name='pig_latin_microservice',%0A version='1.0',%0A description='Vicarious Pig Latin Microservice Project',%0A author='Christopher Tham',%0A platforms=%5B'any'%5D,%0A license='MIT',%0A packages=find_packages())%0A... | |
e742b075d19a00a5eb5eb9990c90b874b7ed3085 | Fix with statement for Python2.5 in setup.py. Closes #9. | setup.py | setup.py |
import os
exclude = ["mezzanine/project_template/mezzanine.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:
pass
try:
with open(e, "r"... | Python | 0 | @@ -1,8 +1,46 @@
+%0Afrom __future__ import with_statement
%0Aimport
|
dd3d5fe460a1f44dbd173350ab9b0014905b51ea | Make pillow an optional dependency, only used when PIL isn't installed. | 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 | @@ -546,16 +546,223 @@
ersion%0A%0A
+install_requires = %5B%0A %22django %3E= 1.3%22,%0A %22filebrowser_safe %3E= 0.2.0%22,%0A %22grappelli_safe %3E= 0.2.1%22,%0A%5D%0A%0Atry:%0A from PIL import Image, ImageOps%0Aexcept ImportError:%0A install_requires += %5B%22pillow%22%5D%0A%0A%0A
try:%0A
@@ -1234... |
5c09bc5cd1611c81c70db7248a45fcbb10c61d71 | add setup.py | setup.py | setup.py | Python | 0.000001 | @@ -0,0 +1,474 @@
+from setuptools import find_packages%0Afrom distutils.core import setup%0A%0Asetup(%0A name='spindrift',%0A version='1.0.0',%0A packages=find_packages(exclude=%5B'tests'%5D),%0A description='A rest framework',%0A long_description=%22%22%22%0ADocumentation%0A-------------%0A You can ... | |
d976725de01d2691c42b796d30c69c42d2934c07 | Update setup.py | setup.py | setup.py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name='owasp-skf',
version='1.3.12',
description='The OWASP Security Knowledge Framework',
url='https://github.com/blabla1337/skf-flask',
author='Glenn ten Cate, Riccardo ten Cate',
author_email='gte... | Python | 0 | @@ -131,17 +131,17 @@
n='1.3.1
-2
+4
',%0A d
|
6135a7a0f6594782d6412d9ef767e4a251f39c84 | Update dev status classifier in setup.py | setup.py | setup.py |
from __future__ import with_statement
import os
import sys
exclude = ["mezzanine/project_template/dev.db",
"mezzanine/project_template/local_settings.py"]
if sys.argv == ["setup.py", "test"]:
exclude = []
exclude = dict([(e, None) for e in exclude])
for e in exclude:
if e.endswith(".py"):
... | Python | 0 | @@ -1980,16 +1980,29 @@
::
-4 - Beta
+5 - Production/Stable
%22,%0A
|
85a7279c08b1997b5d2483106a10a0c428d44458 | Add setup.py. | setup.py | setup.py | Python | 0 | @@ -0,0 +1,1124 @@
+from setuptools import setup, Command%0Aimport subprocess%0A%0A%0Aclass PyTest(Command):%0A user_options = %5B%5D%0A%0A def initialize_options(self):%0A pass%0A%0A def finalize_options(self):%0A pass%0A%0A def run(self):%0A errno = subprocess.call(%5B'py.test'%5D)%0A... | |
a45885947fa10c9143beec5294870e801fff8bc6 | Create apg_de.py | apg_de.py | apg_de.py | Python | 0.00006 | @@ -0,0 +1,2514 @@
+#!/usr/bin/env python2%0A#%0A#%0A#%0A# by t3sl4/tesl23%0A#%0A%0Aimport base64%0Aimport random%0Aimport string%0Afrom Crypto.Cipher import AES%0A%0Adecoded = ''%0A%0Adef makepasswd(bsize, key, spass, username, passfor, saveto, pad, dec, low, upp, pun):%0A if bsize == '32':%0A bsize = 32%0A elif ... | |
77f6f387d2eda3accc2969a02daf5c8315016d6b | Fix #5: add setup.py for PyPI package | setup.py | setup.py | Python | 0 | @@ -0,0 +1,608 @@
+#!/usr/bin/env python%0A%0Aimport sys%0Aimport os%0Atry:%0A from setuptools import setup, find_packages%0Aexcept ImportError:%0A from disutils.core import setup%0A%0A%0Ahere = os.path.abspath(os.path.dirname(__file__))%0Awith open(os.path.join(here, %22README.md%22)) as f:%0A README = f.read... | |
c09aae8181fd7ab706b6fca84e64830e76007687 | add setup.py file | setup.py | setup.py | Python | 0.000001 | @@ -0,0 +1,1636 @@
+import os%0Atry:%0A from setuptools import setup%0Aexcept ImportError:%0A from distutils.core import setup%0A%0ADESCRIPTION = %22Galaxy Cluster Properties and Weak Lensing Profiles%22%0ALONG_DESCRIPTION = %22%22%22%0Acluster-lensing: galaxy cluster halo calculations%0A=========================... | |
4d9bbd9d1cea89c656cec9faeca24e3353bd5dbf | Bump mock requirement to >= 1.0 | setup.py | setup.py | from __future__ import unicode_literals
import re
from setuptools import setup, find_packages
def get_version(filename):
init_py = open(filename).read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_py))
return metadata['version']
setup(
name='Mopidy',
version=get_version('mopidy... | Python | 0 | @@ -1041,11 +1041,11 @@
%3E=
-0.7
+1.0
',%0A
|
b89347a6aaec2f5d74f788b966ead5cc8a2ae37e | add setup.py | setup.py | setup.py | Python | 0.000001 | @@ -0,0 +1,270 @@
+from distutils.core import setup%0Asetup(name='python-libusb1',%0A description='a Python wrapper around libusb-1.0',%0A version='0.0.1',%0A author='vpelletier',%0A url='http://github.com/vpelletier/python-libusb1',%0A py_modules=%5B'libusb1','usb1'%5D,%0A )%0A
| |
e0550aa39f76eb186be41914afb484d135d0257c | Add setup.py | setup.py | setup.py | Python | 0.000001 | @@ -0,0 +1,700 @@
+#!/usr/bin/env python%0D%0A%0D%0Afrom distutils.core import setup%0D%0A%0D%0Asetup(name='LinkHeader',%0D%0A version='0.1',%0D%0A description='The parsing and formatting of Link Headers',%0D%0A author='Michael Burrows',%0D%0A author_email='mjb@asplake.co.uk ',%0D%0A url='htt... | |
62facc7d99797330fbd03b55a88ba12c60c23ea2 | add setup.py | setup.py | setup.py | Python | 0.000001 | @@ -0,0 +1,685 @@
+#!/usr/bin/env python%0A%0Afrom setuptools import setup, find_packages%0A%0Asetup(%0A name='home',%0A version=%220.1%22,%0A author='encorehu',%0A author_email='huyoo353@126.com',%0A description='a django project specific app.',%0A url='https://github.com/encorehu/django-home',%0A ... | |
56f1a366c8a482c63782933514222376bb827a8a | add setup.py | setup.py | setup.py | Python | 0.000001 | @@ -0,0 +1,560 @@
+#+%0A# Distutils script to install DBussy. Invoke from the command line%0A# in this directory as follows:%0A#%0A# python3 setup.py build%0A# sudo python3 setup.py install%0A#%0A# Written by Lawrence D'Oliveiro %3Cldo@geek-central.gen.nz%3E.%0A#-%0A%0Aimport distutils.core%0A%0Adistutils.core.... | |
475458a322525f429b31fe54f1295685b2195c39 | Add setup.py | setup.py | setup.py | Python | 0.000001 | @@ -0,0 +1,2367 @@
+%22%22%22Setup module for the address_extractor package%22%22%22%0A%0Aimport setuptools%0Aimport codecs # To use a consistent encoding%0Aimport os%0Aimport re%0A%0A#################################################################%0A%0APACKAGES = setuptools.find_packages(where='src')%0AMETA_PATH = os... | |
72af391ec00facfbabc8ac89ff3bea1b54799d97 | Add plot of days per year with precip | htdocs/plotting/auto/scripts/p50.py | htdocs/plotting/auto/scripts/p50.py | Python | 0.000219 | @@ -0,0 +1,2095 @@
+import matplotlib%0Amatplotlib.use('agg')%0Aimport matplotlib.pyplot as plt%0Aimport psycopg2.extras%0Aimport pyiem.nws.vtec as vtec%0Afrom pyiem.network import Table as NetworkTable%0Aimport numpy as np%0Aimport pytz%0A%0APDICT = %7B%0A %22hadgem=a1b%22: %22HADGEM A1B%22,%0A %22cnrm=a1b%22 ... | |
a950eb82f62f98900db8dcc4f30fd444f760b6e0 | Bump for 1.9.9-04 | setup.py | setup.py | #!/usr/bin/env python
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
# Our version ALWAYS matches the version of Django we support
# If Django has a new release, we branch, tag, then update this setting after the tag.
version = '1.9.9-03'
if sys.a... | Python | 0 | @@ -301,17 +301,17 @@
'1.9.9-0
-3
+4
'%0A%0Aif sy
|
1d693c0e32cb3247e861c819d389f51fc2fc6be0 | add setup.py | setup.py | setup.py | Python | 0.000001 | @@ -0,0 +1,545 @@
+#!/usr/bin/env python%0A#-*- coding:utf-8 -*-%0A%0Afrom setuptools import setup, find_packages%0A%0Asetup(%0A name = %22webqq%22,%0A version=%220.1.0%22,%0A packages = find_packages(),%0A zip_safe = False,%0A%0A description = %22python 2.7.x webqq lib, for fun.%22,%... | |
14f5ad3da26a7fbfab7b902e778eac1702accfc9 | Version bump | setup.py | setup.py | #!/usr/bin/env python
from distribute_setup import use_setuptools
use_setuptools()
PROJECT = 'virtualenvwrapper-win'
AUTHOR = 'David Marble'
EMAIL = 'davidmarble@gmail.com'
DESCRIPTION = ('Port of Doug Hellmann\'s virtualenvwrapper '
'to Windows batch scripts')
VERSION = '1.1.4'
PROJECT_URL = 'https://... | Python | 0.000001 | @@ -287,17 +287,17 @@
= '1.1.
-4
+5
'%0APROJEC
|
e3c32fb0775a17d47906c5fdd48a9809a00430b3 | include kismon.windows in the setup.py | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
setup(name='kismon',
version='0.2',
description='PyGTK based kismet client',
author='Patrick Salecker',
author_email='mail@salecker.org',
url='http://www.salecker.org/software/kismon/en',
license='BSD',
packages=['kismon'],
scripts=['bin/kismon'],
platfo... | Python | 0 | @@ -274,24 +274,42 @@
es=%5B'kismon'
+, 'kismon.windows'
%5D,%0A%09scripts=
|
392458f6d5cea3d723d86d6238d1f1b46cfc95a5 | Add a setup.py | setup.py | setup.py | Python | 0.000006 | @@ -0,0 +1,315 @@
+#!/usr/bin/env python%0A%0Afrom distutils.core import setup%0A%0Asetup(name='jogging',%0A version='0.1',%0A description='Jogging makes logging in django easier',%0A author='Zain',%0A author_email='zain@inzain.net',%0A url='',%0A packages = %5B'jogging',%5D,%0A packa... | |
e67e2ca56310c35a0a8bb30ecb9fceeb55dcc9f5 | Add setup.py | setup.py | setup.py | Python | 0.000001 | @@ -0,0 +1,888 @@
+# -*- coding: utf8 -*-%0A%0Atry:%0A from setuptools import setup%0Aexcept ImportError:%0A from distutils.core import setup%0A%0Asetup(%0A version='0.3',%0A name='sverigesradio',%0A description='Python bindings for Sveriges Radio API',%0A author='William Tis%C3%A4ter',%0A author_e... | |
ec087b033b8e9b4172a4d5e77a26a10ea16ffb64 | Add setup.py | setup.py | setup.py | Python | 0.000001 | @@ -0,0 +1,457 @@
+#!/usr/bin/env python%0A%0Afrom setuptools import setup%0Afrom setuptools import find_packages%0A%0A__author__ = 'Daniel Luque %3Cdanielluque14@gmail.com%3E'%0A__version__ = '1.0.0'%0A%0Asetup(%0A name='pybooru',%0A version=__version__,%0A author=__author__ %0A author_email=%22danielluque... | |
072d6a2ad1ab293427aadd074c5485483f701eb1 | Add a setuptools wrapper | setup.py | setup.py | Python | 0.000001 | @@ -0,0 +1,672 @@
+#!/usr/bin/env python%0A%0Aimport os%0Afrom setuptools import find_packages, setup%0A%0Adef read(fname):%0A return open(os.path.join(os.path.dirname(__file__), fname)).read()%0A%0Asetup(%0A name = %22statprof%22,%0A version = %220.1%22,%0A author = %22Jeff Muizelaar%22,%0A author_email... | |
8500effa4ade8ecb3eff0501a749a869467a8768 | Add setup.py | setup.py | setup.py | Python | 0.000001 | @@ -0,0 +1,331 @@
+#!/usr/bin/env python%0A%0Afrom distutils.core import setup%0A%0Asetup(%0A name='OMFTools',%0A version='0.1',%0A description='Tools for modifying OMF2097 files',%0A author='Tuomas Virtanen',%0A author_email='katajakasa@gmail.com',%0A url='https://github.com/omf2097/pyomftools',%0A ... | |
7b8f76d53fb820e4fd429f880557bf52ec5dc4be | Add setup | setup.py | setup.py | Python | 0.000001 | @@ -0,0 +1,700 @@
+from setuptools import setup%0A%0Asetup(%0A name='fixture-generator',%0A version='0.0.1',%0A packages=%5B'fixture-generator'%5D,%0A url='https://github.com/Rhathe/Fixture-Generator',%0A license='MIT',%0A author='Ramon Sandoval',%0A description='SqlAlchemy Fixture Generator',%0A ... | |
12dce1474946d1a9bc41681af6dc2723ecfcc7f1 | Add setup.py | setup.py | setup.py | Python | 0.000001 | @@ -0,0 +1,1033 @@
+from setuptools import setup%0Afrom setuptools import find_packages%0A%0Awith open('requirements.txt') as f:%0A required = f.read().splitlines()%0A%0Asetup(%0A name='downflickr',%0A description='Download photoset of flickr using gevent',%0A long_description=open('README.rst').read(),%0A ... | |
54b8c721834921542940d43f53e25ebaac5477db | version bump | setup.py | setup.py | import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name = "cmsplugin-filer",
version = "0.0.5a7",
url = 'http://github.com/stefanfoulis/django-filer-cmsplugins',
license = 'BSD',
description = "django... | Python | 0.000001 | @@ -199,9 +199,9 @@
0.5a
-7
+8
%22,%0A
|
f704bc7f14e6505a9f898e7c2a225a2044f49eec | Update required pyhull version to 1.3.5 | setup.py | setup.py | import glob
import os
from distribute_setup import use_setuptools
use_setuptools(version='0.6.10')
from setuptools import setup, find_packages, Extension
from numpy.distutils.misc_util import get_numpy_include_dirs
from pymatgen import __version__
long_description = """
Pymatgen (Python Materials Genomics) is a robus... | Python | 0 | @@ -3328,17 +3328,17 @@
ll%3E=1.3.
-3
+5
%22%5D,%0A
|
3cd157c12224ba8cee54be36f7da92f30c38964f | Update issue 120 Moving parsers and serializer implementations into rdflib.plugins package | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
# Install rdflib
from rdflib import __version__
setup(
name = 'rdflib',
version = __version__,
description = "RDFLib is a Python library for working with RDF, a simple yet powerful language for representing information.",
author = "Daniel 'eikeo... | Python | 0 | @@ -1692,22 +1692,23 @@
'rdflib/
-syntax
+plugins
',%0A
@@ -1718,38 +1718,39 @@
'rdflib/
-syntax
+plugins
/parsers',%0A
@@ -1760,38 +1760,39 @@
'rdflib/
-syntax
+plugins
/parsers/rdfa',%0A
@@ -1815,22 +1815,23 @@
'rdflib/
-syntax
+plugins
/parsers
@@ -1876,14 +1876,15 @@
lib/
-syntax
... |
43947b54e8774306ead2fa86ef587526f058e572 | Add manage.py for quick access to management commands | manage.py | manage.py | Python | 0 | @@ -0,0 +1,807 @@
+#!/usr/bin/env python%0Aimport os%0Aimport sys%0A%0Aif __name__ == %22__main__%22:%0A os.environ.setdefault(%22DJANGO_SETTINGS_MODULE%22, %22tests.app.settings%22)%0A try:%0A from django.core.management import execute_from_command_line%0A except ImportError:%0A # The above impo... | |
23f797bcf30bb7de26d1558e5eafc7818141f640 | Create __init__.py | attribution/__init__.py | attribution/__init__.py | Python | 0.000429 | @@ -0,0 +1 @@
+%0A
| |
34530a8b60bc1ebfe9bdd56250ecf23e05b8c935 | add setup.py | setup.py | setup.py | Python | 0.000001 | @@ -0,0 +1,822 @@
+#!/usr/bin/env python2.7%0A%0Afrom setuptools import setup%0A%0Along_description = %22%22%22%5C%0AvSphere Client for Python is pure-Python implementation of%0Acollection tools to access to VMware's vSphere API.%0AIt provides both a Python API and a CLI to manage vSphere.%0A%22%22%22%0A%0Apkgdir = %7B... | |
6b3c3a2e0dd4f47fc014f86fa0e85d38e11366b7 | Create run_test.py | recipes/pytest-django/run_test.py | recipes/pytest-django/run_test.py | Python | 0.000004 | @@ -0,0 +1,201 @@
+import django%0Afrom django.conf import settings%0Asettings.configure(INSTALLED_APPS=%5B'pytest_django', 'django.contrib.contenttypes', 'django.contrib.auth'%5D) %0Adjango.setup() %0A %0Aimport pytest_django%0A
| |
4a7a103204989af7e2b6bc97a4109d81beebd34c | Add python_requires to setup.py (#2465) | setup.py | setup.py | #!/usr/bin/env python
import sys
from setuptools import find_packages, setup
import versioneer
DISTNAME = 'xarray'
LICENSE = 'Apache'
AUTHOR = 'xarray Developers'
AUTHOR_EMAIL = 'xarray@googlegroups.com'
URL = 'https://github.com/pydata/xarray'
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'License :: O... | Python | 0 | @@ -2418,16 +2418,87 @@
rl=URL,%0A
+ python_requires='%3E=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*',%0A
pa
|
09d2d84c73bd3c232bdc78d1c46be43c676ef7ac | remove email | setup.py | setup.py | Python | 0.000011 | @@ -0,0 +1,1435 @@
+#!/usr/bin/env python%0A%0A%22%22%22The setup script.%22%22%22%0A%0Afrom setuptools import setup, find_packages%0A%0Awith open(%22README.md%22) as readme_file:%0A readme = readme_file.read()%0A%0Awith open(%22HISTORY.md%22) as history_file:%0A history = history_file.read()%0A%0Awith open(%22re... | |
423d16e4bc7edbc583a21155d6f3b2bc8e153cb6 | Version bump | setup.py | setup.py | from setuptools import setup
setup(
name="funsize",
version="0.52",
description="Funsize Scheduler",
author="Mozilla Release Engineering",
packages=["funsize"],
include_package_data=True,
# Not zip safe because we have data files in the package
zip_safe=False,
entry_points={
... | Python | 0.000001 | @@ -66,17 +66,17 @@
ion=%220.5
-2
+3
%22,%0A d
|
f0ad13539a040fe019cc299979caa5764b581faf | Add simple setuptools based build script | setup.py | setup.py | Python | 0 | @@ -0,0 +1,569 @@
+#!/usr/bin/env python%0Afrom setuptools import setup, find_packages%0Aimport sys%0A%0Asetup(%0A name = %22svtplay-dl%22,%0A version = %220.9.2013.03.06%22, # FIXME - extract from svtplay-dl%0A packages = find_packages(%0A 'lib',%0A exclude=%5B%22tests%22, %22*.tests%22, %22*... | |
7fb257178f032feaa13a7761cf242f8be202b07d | Add setup.py | setup.py | setup.py | Python | 0.000001 | @@ -0,0 +1,1051 @@
+import sys%0Afrom setuptools import setup, find_packages%0A%0Asetup(%0A name=%22bikeshares%22,%0A version=%220.0.0%22,%0A description=%22Standardized access to the data published by bicycle sharing programs.%22,%0A long_description=%22%22,%0A classifiers=%5B%0A %22Development S... | |
1f16c8d71ef550c92f3f1851a8b1a94285675eb2 | add setup.py | setup.py | setup.py | Python | 0.000001 | @@ -0,0 +1,326 @@
+%0Afrom distutils.core import setup%0A%0Asetup(name='zencoder',%0A version='0.1',%0A description='Integration library for Zencoder',%0A author='Alex Schworer',%0A author_email='alex.schworer@gmail.com',%0A url='http://github.com/schworer/zencoder-py',%0A license=%22MIT L... | |
e5023ed11a8aff0b84b330bad2796bb28f93483b | add basic setuptools setup.py | setup.py | setup.py | Python | 0 | @@ -0,0 +1,1250 @@
+import os.path%0Aimport re%0Aimport subprocess%0Afrom setuptools import setup%0Afrom pip.req import parse_requirements%0A%0Aproject_root = os.path.dirname(os.path.abspath(__file__))%0Agit_version = subprocess.check_output(%5B'git', 'describe', 'HEAD', '--tags'%5D).strip().decode('utf8')%0Agit_url = ... | |
4364b952701b6ce3883094676ea9d8d93757cbde | Add bare setup.py | setup.py | setup.py | Python | 0 | @@ -0,0 +1,319 @@
+import os%0A%0Afrom setuptools import setup, find_packages%0A%0A%0Asetup(%0A name='django-sneak-peek',%0A version='0.0.1',%0A description='',%0A long_description='',%0A url='',%0A license='MIT',%0A author='Teddy Wing',%0A author_email='',%0A include_package_data=True,%0A ... | |
14aa0c03673abea5cbd954aafb909b581c8ce849 | Add setup.py | setup.py | setup.py | Python | 0.000001 | @@ -0,0 +1,749 @@
+#!/usr/bin/env python%0A%0Afrom setuptools import setup%0A%0Asetup(%0A name = %22blynk-library-python%22,%0A version = %220.1.0%22, #blynk.lib.__version__%0A description = %22Blynk library%22,%0A platforms = %22any%22,%0A url = %22http://www.blynk.cc%22,%0A ... | |
1b96dbf3882301dbfa8d8d102f1cead2e2b0447d | bump version | setup.py | setup.py | # Copyright 2014-2015 ARM Limited
#
# Licensed under the Apache License, Version 2.0
# See LICENSE file for details.
import os
from setuptools import setup, find_packages
# Utility function to cat in a file (used for the README)
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
... | Python | 0 | @@ -859,11 +859,11 @@
%220.
-6.2
+7.0
%22,%0A
|
6e601d9720139bbb04c1fd30dc6552730270ba0a | Fix the versioned Django, we're grabbing 1.4.1 off the requirements.txt | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
from billy import __version__
long_description = open('README.rst').read()
setup(name='billy',
version=__version__,
packages=find_packages(),
package_data={'billy': ['schemas/*.json',
'schemas/api/*.json'... | Python | 0.000002 | @@ -960,17 +960,17 @@
%22Django
-=
+%3E
=1.4%22,%0A
|
1eb31a433da1c684e7cace4d01705778b3a34b67 | Update setup.py | setup.py | setup.py | #!/usr/bin/env python
from __future__ import (absolute_import, division, print_function)
import sys
import warnings
import numpy as np
try:
from setuptools import setup
except ImportError:
try:
from setuptools.core import setup
except ImportError:
from distutils.core import setup
from di... | Python | 0 | @@ -2371,16 +2371,192 @@
replay':
+ %5B'*.enaml'%5D,%0A 'dataportal.replay.muxer': %5B'*.enaml'%5D,%0A 'dataportal.replay.scalar': %5B'*.enaml'%5D,%0A 'dataportal.replay.search':
%5B'*.ena
|
e38e0789f65e174770aeca44abec9e3e47503cbb | include user-extensions.js containing flex methods into installation | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
from os.path import abspath, dirname, join
execfile(join(dirname(abspath(__file__)), 'src', 'SeleniumLibrary', 'version.py'))
setup(name = 'robotframework-seleniumlibrary',
version = VERSION,
description = 'Web testing library for Robot... | Python | 0 | @@ -650,16 +650,126 @@
/*.jar',
+%0A 'lib/user-extensions.js',%0A
'firefo
|
cd9aea1addd55be7c9d8adfb91137d9581af9317 | Add minimum setup.py | setup.py | setup.py | Python | 0.000001 | @@ -0,0 +1,582 @@
+#!/usr/bin/env python%0A# -*- coding: utf-8 -*-%0A%0A%0Atry:%0A from setuptools import setup%0Aexcept ImportError:%0A from distutils.core import setup%0A%0A%0Asetup(%0A name='expertsender',%0A version='0.1.0',%0A description='Python API library for the ExpertSender email platform',%0A ... | |
dd37a333a84fb6c636a26a3d96d56925c0ec06a8 | Create cleaner.py | Meteo/meteociel/cleaner.py | Meteo/meteociel/cleaner.py | Python | 0.000001 | @@ -0,0 +1,2070 @@
+#!/usr/bin/python%0A%0A# -*- coding: UTF-8 -*-%0A%0Adef cleaner(source):%0A %22Clean all source code to make something sweet or at least, trying to%22%0A # Brute encode to utf-8 because source code looks like a mix between iso-8859-1 and something else (kind of a joke isn't it ?)%0A # It se... | |
3dc5b026433795946eba623aa04d2c3c88a99281 | Move the credit card test mode checking so that credit card type can be assigned | billing/gateway.py | billing/gateway.py | from django.utils.importlib import import_module
from django.conf import settings
class GatewayModuleNotFound(Exception):
pass
class GatewayNotConfigured(Exception):
pass
class CardNotSupported(Exception):
pass
class Gateway(object):
"""Sub-classes to inherit from this and implement the below method... | Python | 0.000001 | @@ -1427,155 +1427,8 @@
%22%22%22%0A
- # Gateways might provide some random number which%0A # might not pass Luhn's test.%0A if self.test_mode:%0A return True %0A
@@ -1821,16 +1821,163 @@
eway.%22)%0A
+ # Gateways might provide some random number which%0A # might not... |
7736c11b005f9baefc7ba9c35884deddc56bc191 | Test file to check if twistd is working | test.tac | test.tac | Python | 0 | @@ -0,0 +1,223 @@
+from twisted.application import internet, service%0Afrom hubbebot import *%0A%0Aapplication = service.Application(%22AllTheHubbeBots%22)%0A%0Ainternet.TCPClient(%22irc.desertbus.org%22, 6667, HubbeBotFactory()).setServiceParent(application)%0A
| |
24e914da9e0e38728d862ecc82f8443a3b88e68f | add expression to improve the domain | bin/tools/expression.py | bin/tools/expression.py | Python | 0.00123 | @@ -0,0 +1,2114 @@
+#!/usr/bin/env python%0A%0Adef _is_operator( element ):%0A return isinstance( element, str ) and element in %5B'&','%7C'%5D%0A%0Adef _is_leaf( element ):%0A return isinstance( element, tuple ) and len( element ) == 3 and element%5B1%5D in %5B'=', '%3C%3E', '!=', '%3C=', '%3C', '%3E', '%3E=', '... | |
9ad2ca99f9902f8d6ebd7f794251434692006081 | Add commented-out page change list replacement settings to example project | example/settings.py | example/settings.py | # Django settings for example project.
import os
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@domain.com'),
)
MANAGERS = ADMINS
DATABASE_ENGINE = 'sqlite3'
DATABASE_NAME = 'example.db'
TIME_ZONE = 'America/Chicago'
LANGUAGE_CODE = 'en-us'
SITE_ID = 1
USE_I18N = True
MEDIA_ROO... | Python | 0 | @@ -4143,8 +4143,215 @@
,%0A )%0A
+%0A# Activate either of these (but not both) to check out another%0A# possibility to select pages in the administration interface:%0A#FEINCMS_PAGE_USE_SPLIT_PANE_EDITOR = True%0A#FEINCMS_PAGE_USE_CHANGE_LIST = True%0A
|
8a86c1c9bec625b58c2dc4914837b2e3a0ef175c | Add FDIC | inspectors/fdic.py | inspectors/fdic.py | Python | 0.000149 | @@ -0,0 +1,2161 @@
+#!/usr/bin/env python%0A%0Aimport datetime%0Aimport logging%0Aimport os%0Afrom urllib.parse import urljoin%0A%0Afrom bs4 import BeautifulSoup%0Afrom utils import utils, inspector%0A%0A# http://www.fdicoig.gov%0A# Oldest report: 1998%0A%0A# options:%0A# standard since/year options for a year range ... | |
cec3eebace1ad5f236761bdd98bef0d5ac52d3ba | Replace list-to-set cast with normal set literal | cura/Settings/MaterialSettingsVisibilityHandler.py | cura/Settings/MaterialSettingsVisibilityHandler.py | # Copyright (c) 2016 Ultimaker B.V.
# Uranium is released under the terms of the AGPLv3 or higher.
from UM.Settings.Models.SettingVisibilityHandler import SettingVisibilityHandler
class MaterialSettingsVisibilityHandler(SettingVisibilityHandler):
def __init__(self, parent = None, *args, **kwargs):
super()... | Python | 0 | @@ -16,9 +16,9 @@
201
-6
+7
Ult
@@ -390,13 +390,9 @@
s =
-set(%5B
+%7B
%0A
@@ -629,10 +629,9 @@
-%5D)
+%7D
%0A%0A
|
8094267faf7a9cdbd1520383f51e537e159cdca2 | Add unit column unit tests. | tests.py | tests.py | Python | 0 | @@ -0,0 +1,3498 @@
+# -*- coding: utf-8 -*-%0A%22%22%22 Test relation columns.%0A%22%22%22%0A%0Aimport math%0Aimport uuid%0Afrom unittest import TestCase%0A%0Aimport arrow%0Afrom cqlengine import columns%0Afrom cqlengine.models import Model%0A%0A%0Adef truncate_to_milliseconds(date_time):%0A %22%22%22 Truncate datet... | |
71f073ca40459c56ce666650af982a9f08d613f1 | Add support for PodDisruptionBudget | k8s/models/pod_disruption_budget.py | k8s/models/pod_disruption_budget.py | Python | 0 | @@ -0,0 +1,881 @@
+#!/usr/bin/env python%0A# -*- coding: utf-8%0Afrom __future__ import absolute_import%0A%0Aimport six%0A%0Afrom .common import ObjectMeta%0Afrom ..base import Model%0Afrom ..fields import Field, ListField%0A%0A%0Aclass PodDisruptionBudgetMatchExpressions(Model):%0A key = Field(six.text_type)%0A ... | |
4c46b7b86171b89f0c85f6d48eaf6d24e702c6f9 | Add a Tasks sample that demonstrates Service accounts. | samples/service_account/tasks.py | samples/service_account/tasks.py | Python | 0.011664 | @@ -0,0 +1,2084 @@
+#!/usr/bin/python2.4%0A# -*- coding: utf-8 -*-%0A#%0A# Copyright (C) 2012 Google Inc.%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.a... | |
b541d4c9ab1d7f199cc551179f454c5c3a53625f | add tests for "patch" command | rhcephpkg/tests/test_patch.py | rhcephpkg/tests/test_patch.py | Python | 0.000007 | @@ -0,0 +1,1082 @@
+import os%0Aimport pytest%0Afrom rhcephpkg import Patch%0A%0ATESTS_DIR = os.path.dirname(os.path.abspath(__file__))%0AFIXTURES_DIR = os.path.join(TESTS_DIR, 'fixtures')%0A%0A%0Aclass FakePatch(object):%0A pass%0A%0A%0Aclass TestPatch(object):%0A%0A def test_wrong_branch(self, monkeypatch):%0A ... | |
ed27c75a2d3400955d8e3e85d08d480db3fd3657 | Add generate_vocab script | seq2seq/scripts/generate_vocab.py | seq2seq/scripts/generate_vocab.py | Python | 0.000001 | @@ -0,0 +1,2023 @@
+#! /usr/bin/env python%0A#pylint: disable=invalid-name%0A%0A%22%22%22%0AGenerate vocabulary for a tokenized text file.%0A%22%22%22%0A%0Aimport argparse%0Aimport collections%0A%0Aparser = argparse.ArgumentParser(description=%22Generate vocabulary for a tokenized text file.%22)%0Aparser.add_argument(%... | |
21eac65d8a252e9d3cc83d97a9f270ef0078be9c | add indexer | indexer.py | indexer.py | Python | 0.000002 | @@ -0,0 +1,2300 @@
+# -*- coding: utf-8 -*-%0Aimport json%0Aimport os%0Aimport argparse%0Aimport sys%0Aimport re%0A%0Aclass Indexer:%0A def __init__(self):%0A self.forward_index = dict()%0A%0A def create_index(self, raw_data, keyword):%0A keyword_utf8 = keyword.decode('utf-8')%0A if not self.... | |
37e87ad6eed85e83a2199f851e8b07135d779909 | Add wsgi script | DiscourseSSO.wsgi | DiscourseSSO.wsgi | Python | 0.000001 | @@ -0,0 +1,1273 @@
+# Copyright 2015 INFN%0A# All Rights Reserved.%0A#%0A# Licensed under the Apache License, Version 2.0 (the %22License%22); you may%0A# not use this file except in compliance with the License. You may obtain%0A# a copy of the License at%0A#%0A# http://www.apache.org/licenses/LICENSE-... | |
261b2879c830aeaa21351c34a78dc0b5262436c2 | Create 7kyu_simple_fun138_similarity.py | Solutions/7kyu/7kyu_simple_fun138_similarity.py | Solutions/7kyu/7kyu_simple_fun138_similarity.py | Python | 0.998424 | @@ -0,0 +1,85 @@
+def similarity(a, b):%0A return len(set(a).intersection(set(b)))/len(set(a)%7Cset(b))%0A
| |
c5427bc00678e9f9122b8201b79af2ab454288f3 | Create popServer.py | popServer.py | popServer.py | Python | 0.000001 | @@ -0,0 +1,1016 @@
+__author__ = 'JontyHome'%0Aimport poplib%0A%0A%0Aclass popServer():%0A # host = ''%0A # username = ''%0A # password = ''%0A # port = 0%0A%0A%0A def __init__(self, username, password, host, port):%0A self.host = host%0A self.username = username%0A self.password = p... | |
eaf59371ea4ec9d5ceb98331c1a4b58a54558d3b | Solve Ch3_Q5 - Implement queue using two stacks | fourth_edition/ch3_stacks_and_queues/python/3.5.py | fourth_edition/ch3_stacks_and_queues/python/3.5.py | Python | 0.000039 | @@ -0,0 +1,1255 @@
+'''%0AImplement a MyQueue class which implements a queue using two stacks.%0A'''%0A%0A%0Astack1 = list()%0Astack2 = list()%0Amax_ = 10%0A%0A%0Adef push(val):%0A global stack1, stack2%0A if len(stack1) == max_:%0A if len(stack2) == 0:%0A for x in stack1%5B::-1%5D:%0A ... | |
73b6be31b8ddbdb8e266f63c4e9df0fc1d8403e2 | Set CpuAcctCgroupCollector disabled by default | src/collectors/cpuacct_cgroup/cpuacct_cgroup.py | src/collectors/cpuacct_cgroup/cpuacct_cgroup.py | # coding=utf-8
"""
The CpuAcctCGroupCollector collects CPU Acct metric for cgroups
#### Dependencies
/sys/fs/cgroup/cpuacct/cpuacct.stat
"""
import diamond.collector
import os
class CpuAcctCgroupCollector(diamond.collector.Collector):
CPUACCT_PATH = '/sys/fs/cgroup/cpuacct/'
def get_default_config_help(s... | Python | 0 | @@ -712,19 +712,20 @@
led': '
-Tru
+Fals
e',%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.