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
cde401e95bef16b3bcc815251187af094240b598
Create check_linux.py
check_linux.py
check_linux.py
Python
0.000002
@@ -0,0 +1,1849 @@ +import cups%0Afrom twill.commands import *%0Aimport html2text%0Aimport subprocess%0Aimport time%0A%0A##Emotional words%0Aacceptance = %5B'congratulat', 'enjoy', 'party'%5D%0Arejection = %5B'sorry', 'unfortunately', 'disappoint'%5D%0A%0A##function to login and save the html%0Adef retrieve():%0A go...
fde083c87f0e2582fbf57415e957b93d116ad67a
Create RequestHandler related to GCI.
app/soc/modules/gci/views/base.py
app/soc/modules/gci/views/base.py
Python
0.000004
@@ -0,0 +1,2596 @@ +#!/usr/bin/env python2.5%0A#%0A# Copyright 2011 the Melange authors.%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/L...
e2669eddb9187db9a71095d8ed860f8b25369e78
add new package (#20106)
var/spack/repos/builtin/packages/py-catkin-pkg/package.py
var/spack/repos/builtin/packages/py-catkin-pkg/package.py
Python
0
@@ -0,0 +1,833 @@ +# 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%0A%0Aclass PyCatkinPkg(PythonPackage):%0A %22%22%22Library for retrieving information about ...
0106355df43bc35a75aafc6b9070f78131e89bef
Test for switching to postgres search backend
tests/search_backend_postgres.py
tests/search_backend_postgres.py
Python
0
@@ -0,0 +1,546 @@ +from wolis.test_case import WolisTestCase%0A%0Aclass SearchBackendPostgresTest(WolisTestCase):%0A def test_set_search_backend(self):%0A self.login('morpheus', 'morpheus')%0A self.acp_login('morpheus', 'morpheus')%0A %0A self.change_acp_knob(%0A link_text='Sea...
1f12da3d049527f838ab21c042b8f18e1977af49
Migrate existing platform admin services to not be counted
migrations/versions/0283_platform_admin_not_live.py
migrations/versions/0283_platform_admin_not_live.py
Python
0
@@ -0,0 +1,676 @@ +%22%22%22empty message%0A%0ARevision ID: 0283_platform_admin_not_live%0ARevises: 0282_add_count_as_live%0ACreate Date: 2016-10-25 17:37:27.660723%0A%0A%22%22%22%0A%0A# revision identifiers, used by Alembic.%0Arevision = '0283_platform_admin_not_live'%0Adown_revision = '0282_add_count_as_live'%0A%0Afr...
8e0e28c45616479c3d1fea9be78553185126743b
change case_type to location_type to be more clear about what's expected
corehq/apps/consumption/models.py
corehq/apps/consumption/models.py
from decimal import Decimal from couchdbkit.ext.django.schema import Document, StringProperty, DecimalProperty TYPE_DOMAIN = 'domain' TYPE_PRODUCT = 'product' TYPE_SUPPLY_POINT_TYPE = 'supply-point-type' TYPE_SUPPLY_POINT = 'supply-point' class DefaultConsumption(Document): """ Model for setting the default ...
Python
0.000002
@@ -674,28 +674,32 @@ product_id, -case +location _type, case_ @@ -788,20 +788,24 @@ uct_id, -case +location _type, N
d43e9867c7a603a0767941f4ed963d9d857bca03
Fix test after API change
utest/serializing/test_reporting.py
utest/serializing/test_reporting.py
import unittest from robot.output.logger import Logger from robot.output.readers import ExecutionErrors import resources from robot.common.model import BaseTestSuite import robot.output from robot.serializing.testoutput import Reporter import robot.serializing.testoutput def set_serialize_log_mock(): results = {'l...
Python
0.000001
@@ -695,25 +695,8 @@ one, - background=None, log @@ -789,51 +789,8 @@ tle%0A - results%5B'background'%5D = background%0A
6857624e9d6633038f0565a520de856ee40def09
Test with many envs and large groups
test/many_envs_test.py
test/many_envs_test.py
Python
0
@@ -0,0 +1,1358 @@ +# Copyright (c) 2012 Lars Hupfeldt Nielsen, Hupfeldt IT%0A# All rights reserved. This work is under a BSD license, see LICENSE.TXT.%0A%0Afrom .. import ConfigRoot%0Afrom ..envs import EnvFactory%0A%0Aef = EnvFactory()%0A%0Aenvs = %5B%5D%0Agroups = %5B%5D%0Afor ii in range(0, 16):%0A local_envs = ...
122fa6367dd7162503157b5f6e2739d28d5b2a4d
Fix stopping at breakpoints after stepping
python/helpers/pydev/_pydevd_frame_eval/pydevd_frame_tracing.py
python/helpers/pydev/_pydevd_frame_eval/pydevd_frame_tracing.py
import sys import traceback from _pydev_bundle import pydev_log from _pydev_imps._pydev_saved_modules import threading from _pydevd_bundle.pydevd_comm import get_global_debugger, CMD_SET_BREAK from pydevd_file_utils import get_abs_path_real_path_and_base_from_frame, NORM_PATHS_AND_BASE_CONTAINER def update_globals_d...
Python
0.000013
@@ -2430,17 +2430,146 @@ rame(1)%0A + # it's absolutely necessary to reset tracing function for frame in order to get the real line number%0A frame.f_trace = None %0A - t = @@ -2882,132 +2882,8 @@ er() -%0A pydev_log.debug(%22Suspending at breakpoint in file: %7B%7D on line %7B%7D%22.format(frame....
a4b242ebd107f9321cc5b87aee2cf608940007f4
Make permission name more consistent.
product/migrations/0005_auto_20161015_1536.py
product/migrations/0005_auto_20161015_1536.py
Python
0.000001
@@ -0,0 +1,474 @@ +# -*- coding: utf-8 -*-%0A# Generated by Django 1.10.1 on 2016-10-15 15:36%0Afrom __future__ import unicode_literals%0A%0Afrom django.db import migrations%0A%0A%0Aclass Migration(migrations.Migration):%0A%0A dependencies = %5B%0A ('product', '0004_auto_20161015_1534'),%0A %5D%0A%0A op...
b0a4f510ed343825a8073a68c4dc0e3066b560ec
add example canICA
nilearn/example_canICA.py
nilearn/example_canICA.py
Python
0.000004
@@ -0,0 +1,1274 @@ +# -*- coding: utf-8 -*-%0Afrom nilearn import datasets%0A%0Adataset = datasets.fetch_adhd()%0Afunc_files = dataset.func # The list of 4D nifti files for each subject%0A%0A### Apply CanICA ##############################################################%0Afrom nilearn.decomposition.canica import CanICA...
25c2502fce4556b5b72e96116745c83d1689677f
Add tests for artist serializers
artists/tests/test_serializers.py
artists/tests/test_serializers.py
Python
0
@@ -0,0 +1,1021 @@ +from unittest import TestCase%0A%0Afrom ..models import Artist, Hyperlink%0Afrom ..serializers import ArtistSerializer, HyperlinkSerializer%0A%0A%0Aclass HyperlinkSerializerTest(TestCase):%0A%0A %22%22%22Tests for Hyperlink serializer.%22%22%22%0A%0A def test_valid_fields(self):%0A id_ ...
7e463d26f8937d7671a15e370c6e91926597053b
Fix bug with {{task}} in jinja templates.
flexget/utils/template.py
flexget/utils/template.py
from __future__ import unicode_literals, division, absolute_import import logging import os import re import sys from copy import copy from datetime import datetime, date, time import locale from email.utils import parsedate from time import mktime from jinja2 import (Environment, StrictUndefined, ChoiceLoader, ...
Python
0.000001
@@ -5056,16 +5056,79 @@ e.now()%0A + if 'task' not in variables and hasattr(entry, 'task'):%0A vari @@ -5153,16 +5153,21 @@ try.task +.name %0A # W
1f49c220a9da5b848f68566a7bdb4be7acae8d23
Fix an issue when using lazy fields in a jinja statement where it would return 'None' instead of None, causing the default filter to not work. Add our own version of Jinja default filter, to fix a bug currently in the Jinja one.
flexget/utils/template.py
flexget/utils/template.py
import logging import os import re import sys from copy import copy from datetime import datetime, date, time import locale from email.utils import parsedate from time import mktime from jinja2 import (Environment, StrictUndefined, ChoiceLoader, FileSystemLoader, PackageLoader, TemplateNotFound, Tem...
Python
0.000016
@@ -329,16 +329,27 @@ taxError +, Undefined )%0Afrom f @@ -2816,16 +2816,326 @@ char)%0A%0A%0A +# Override the built-in Jinja default filter due to Jinja bug%0A# https://github.com/mitsuhiko/jinja2/pull/138%0Adef filter_default(value, default_value=u'', boolean=False):%0A if isinstance(value, Undefined) or (boole...
79563ccb72b50ad9b0a7cf037ad46efc98a1f79b
Create call.py
common/call.py
common/call.py
Python
0.000001
@@ -0,0 +1,2301 @@ +def call(mod,cmd,*args,**kargs):%0A %22%22%22Calls arbitrary python code%0A%0A Arguments:%0A mod - The module from which you are calling%0A cmd - The command in said module%0A *args - Any arguments you need to give to it%0A index=0 - A specific index at wh...
686da2bf6b71961ea82e72640b7e6ff16c4723d7
Add bubblesort example. Have problems with type inference.
examples/bubblesort.py
examples/bubblesort.py
Python
0
@@ -0,0 +1,1435 @@ +from numba import *%0Aimport numpy as np%0Afrom timeit import default_timer as timer%0A%0A#@autojit%0A#def bubbleswap(X, i):%0A# tmp = X%5Bi%5D%0A# X%5Bi%5D = X%5Bi + 1%5D%0A# X%5Bi + 1%5D = tmp%0A%0Adef bubblesort(X, doprint):%0A N = X.shape%5B0%5D%0A for end in range(N, 1, -1):%0A ...
8c9ff0787d1d862765bbd657b09357d31a402e1f
add collector for https://torstatus.blutmagie.de/
collectors/torstatus.blutmagie.py
collectors/torstatus.blutmagie.py
Python
0
@@ -0,0 +1,2148 @@ +#!/usr/bin/python%0A# -*- coding: utf-8 -*-%0A%0Aimport socket%0Aimport re%0Afrom bs4 import BeautifulSoup%0Aimport requests%0Aimport ipwhois%0Afrom pprint import pprint%0A%0A%0Adef get_url(url):%0A try:%0A res = requests.get(url)%0A except requests.exceptions.ConnectionError:%0A ...
265b47de5a54d7c3a6a7be70b10f16b05f40d0b2
add tests for "$ oj login --check URL"
tests/command_login.py
tests/command_login.py
Python
0
@@ -0,0 +1,1765 @@ +import os%0Aimport subprocess%0Aimport sys%0Aimport time%0Aimport unittest%0A%0Aimport tests.utils%0A%0A%0Aclass LoginTest(unittest.TestCase):%0A def snippet_call_login_check_failure(self, url):%0A ojtools = os.path.abspath('oj')%0A with tests.utils.sandbox(files=%5B%5D) as tempdir:...
0681d3833cd3c82d95ce80f12b492706f26b5ffa
add geco_slo_channel_plot in progress
geco_slow_channel_plot.py
geco_slow_channel_plot.py
Python
0.000001
@@ -0,0 +1,2321 @@ +#!/usr/bin/env python%0A# (c) Stefan Countryman 2017%0A%0Aimport matplotlib.pyplot as plt%0Aimport numpy as np%0Aimport geco_gwpy_dump as g%0Aimport gwpy.segments%0Aimport gwpy.time%0Aimport sys%0A%0Aif len(sys.argv) == 1:%0A job = g.Job.load()%0Aelse:%0A job = g.Job.load(sys.argv%5B1%5D)%0A%0...
fa6f2e35db07571759d654088d77cb7a206c5722
Create test.py
test.py
test.py
Python
0.000001
@@ -0,0 +1,193 @@ +import unittest%0A%0Aimport awesome%0A%0A%0Aclass TestMethods(unittest.TestCase):%0A def test_add(self):%0A self.assertEqual(awesome.smile(), %22:)%22)%0A%0A%0Aif __name__ == '__main__':%0A unittest.main()%0A
8bda92da85bd666aa91b657319a019e00bf27126
add sample configuration file
ryu/services/protocols/bgp/bgp_sample_conf.py
ryu/services/protocols/bgp/bgp_sample_conf.py
Python
0
@@ -0,0 +1,3176 @@ +import os%0A%0A# =============================================================================%0A# BGP configuration.%0A# =============================================================================%0ABGP = %7B%0A%0A # General BGP configuration.%0A 'routing': %7B%0A # ASN for this BGP ...
42af700af58588fccaa84f5348a5c854d095d1a9
Add ex2.2: multiple simple requests
code/ex2.2-simple_requests.py
code/ex2.2-simple_requests.py
Python
0.000034
@@ -0,0 +1,497 @@ +from urllib.request import urlopen%0Aimport time%0A%0AURLS = %5B%0A 'http://127.0.0.1:8000',%0A 'http://127.0.0.1:8000',%0A 'http://127.0.0.1:8000',%0A%5D%0A%0Adef request_greetings():%0A responses = %5B%5D%0A for url in URLS:%0A resp = urlopen(url)%0A responses.append(re...
f2ac12e66aa2209f98e6eed2283005f2a9e74768
Create perm_missing_elem.py
codility/perm_missing_elem.py
codility/perm_missing_elem.py
Python
0.00014
@@ -0,0 +1,410 @@ +%22%22%22%0Ahttps://codility.com/programmers/task/perm_missing_elem/%0A%0AGiven array A of integers. N = len(A). Integers are distinct and taken from%0Arange 1..(N+1), which means exactly one integer from 1..(N+1) is missing from%0AA. Find the missing integer.%0A%0ARuntime: O(N)%0AExtra Space: O(1...
785af4d73a158fdf43ceff8bb4c974a0215606fd
add missing test file
tests/test_set_long.py
tests/test_set_long.py
Python
0.000001
@@ -0,0 +1,817 @@ +import cmemcached%0Aimport unittest%0Aimport subprocess%0Aimport time%0A%0ATEST_SERVER = %22localhost%22%0Amemcached_process = None%0A%0Adef setup():%0A global memcached_process%0A memcached_process = subprocess.Popen(%5B'memcached'%5D)%0A time.sleep(0.5)%0A%0A%0Adef teardown():%0A memcac...
d59e49ddf95c20b51ac285dccb0a1b43936d97ef
Test that some credential setting properly switches endpoint schemes
tests/test_tpclient.py
tests/test_tpclient.py
Python
0
@@ -0,0 +1,3100 @@ +# Copyright (c) 2009-2010 Six Apart Ltd.%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 conditions are met:%0A#%0A# * Redistributions of source code must retain the above copyright notice...
9ad8a03eac3d9fc94122ee2494ff1f6398467cfc
Add files via upload
pque.py
pque.py
Python
0
@@ -0,0 +1,2118 @@ +class Pque(object):%0A %22%22%22make as priority queue priority scale is 0 through -99%0A 0 has greatest priority with ties being first come first pop%22%22%22%0A def __init__(self):%0A self.next_node = None%0A self.priority = 0%0A self.value = None%0A self....
b480a21d58c1fc1b8ad66442bd65a7d892d8efa1
Create Blink.py
Blink.py
Blink.py
Python
0
@@ -0,0 +1,320 @@ +import time%0Aimport mraa%0A%0A###### Programe Begins ####%0Aprint (mraa.getVersion())%0ALed = mraa.Gpio(4)%0ALed.dir(mraa.DIR_OUT)%0ALed.write(1)%0Avalue = 0%0Awhile 1:%0A if value == 0:%0A value = 1%0A else:%0A value = 0%0A Led.write(value)%0A ...
36af8c98005bfb6d51344b80a59cb6e48c8b55fb
Add outputter to display overstate stages
salt/output/overstatestage.py
salt/output/overstatestage.py
Python
0.000001
@@ -0,0 +1,846 @@ +'''%0ADisplay clean output of an overstate stage%0A'''%0A%0A%0A#%5B%7B'group2': %7B'match': %5B'fedora17-2', 'fedora17-3'%5D,%0A# 'require': %5B'group1'%5D,%0A# 'sls': %5B'nginx', 'edit'%5D%7D%0A# %7D%0A# %5D%0A%0A# Import Salt libs%0Aimport salt.utils%...
1085114668dc13d86dac8de70557cd4242ab9d20
Add tests for parse_csv, weighted_mode and weighted_replicate (#210)
tests/test_learning.py
tests/test_learning.py
Python
0
@@ -0,0 +1,356 @@ +import pytest%0Afrom learning import parse_csv, weighted_mode, weighted_replicate%0A%0Adef test_parse_csv():%0A%09assert parse_csv('1, 2, 3 %5Cn 0, 2, na') == %5B%5B1, 2, 3%5D, %5B0, 2, 'na'%5D%5D%0A%0A%0Adef test_weighted_mode():%0A%09assert weighted_mode('abbaa', %5B1,2,3,1,2%5D) == 'b'%0A%0A%0Adef...
8d88336d831eeb5e6603b9ff66f2e4906c4f9e2e
Create test.py
test.py
test.py
Python
0.000005
@@ -0,0 +1,21 @@ +print %22Hello world!%22%0A
6aec92990790dd5ba04ca1079dbc5fe9106f8747
Add test suite
test.py
test.py
Python
0.000001
@@ -0,0 +1,1850 @@ +import sys%0Aimport unittest%0Aimport pygooglesms%0Afrom pygooglesms import GoogleSMS%0A%0A%0Aclass TestPyGoogleSMS(unittest.TestCase):%0A GOOD_LOGIN = 'CHANGEME'%0A GOOD_PASSWD = 'CHANGEME'%0A TEST_NUMBER = 'CHANGEME'%0A%0A BAD_LOGIN = 'nobody@gmail.com'%0A BAD_PASSWD = 'terrible'%0A...
b7ff7ee179f7d973051ca7f70a04f27322c07cf2
Create Redis.py
Redis.py
Redis.py
Python
0.000001
@@ -0,0 +1,37 @@ +#Intro to Redis (NoSql)%0Aimport redis%0A
7d8ad6124cd838f3b2507e43c2c89e8a4873465e
fix case with no provider
test.py
test.py
Python
0.000002
@@ -0,0 +1,528 @@ +from genomepy.provider import ProviderBase%0Afrom genomepy import Genome%0Aimport sys%0A%0A%0Agenome_name = %22ce10%22%0Agenome = Genome(genome_name)%0Atax_id = genome.tax_id%0A%0A#p = ProviderBase.create(%22UCSC%22)%0A#print(p.assembly_accession(%22ci3%22))%0A#sys.exit()%0A%0Ap = ProviderBase.create...
eabe6103860fd7b04e52f2e5181affbb55e93273
add wsgi script
wsgi.py
wsgi.py
Python
0
@@ -0,0 +1,237 @@ +#!/usr/bin/env python3%0A# To run:%0A# gunicorn -b 0.0.0.0:5000 wsgi:app%0Aimport os%0A%0Afrom server import create_app, generate%0Afrom server.models import db, User%0A%0Aenv = os.environ.get('OK_ENV', 'dev')%0Aapp = create_app('settings/%25s.py' %25 env)%0A%0A%0A
623848955085a03d1de7e15863a7dd82e4d7f51a
fix import threading.Thread
Sound.py
Sound.py
import sublime, sublime_plugin from subprocess import call from os.path import join from random import randrange import threading class EventSound(sublime_plugin.EventListener): def __init__(self, *args, **kwargs): super(EventSound, self).__init__(*args, **kwargs) if sublime.platform() == "osx": ...
Python
0.000009
@@ -110,24 +110,36 @@ nge%0A +from threading import -t +T hread -ing %0A%0Acl @@ -3262,18 +3262,8 @@ -threading. Thre
89c4f92d56ab445d86dfdd321bca6c7e0f30855e
Create admin.py
weibopub/admin.py
weibopub/admin.py
Python
0
@@ -0,0 +1,2216 @@ +from __future__ import unicode_literals%0A%0Afrom django.utils.safestring import mark_safe%0Afrom django.utils.translation import ugettext_lazy as _%0Afrom django.template.defaultfilters import truncatechars%0A%0Afrom mezzanine.weibopub import get_auth_settings%0A%0AFORMFIELD_HTML = %22%22%22%0A%3Cd...
626662f0f3ef2ce7de63c424da89263443243e97
Fix SpiderState bug in Windows platforms
scrapy/contrib/spiderstate.py
scrapy/contrib/spiderstate.py
import os, cPickle as pickle from scrapy import signals class SpiderState(object): """Store and load spider state during a scraping job""" def __init__(self, jobdir=None): self.jobdir = jobdir @classmethod def from_crawler(cls, crawler): obj = cls(crawler.settings.get('JOBDIR')) ...
Python
0
@@ -786,16 +786,22 @@ .statefn +, 'rb' ) as f:%0A
af6eef23e60b88209ce4e9601f0cf457ee421bdc
add zone no crawler
DataHouse/crawler/zone_no_crawler.py
DataHouse/crawler/zone_no_crawler.py
Python
0.000002
@@ -0,0 +1,1473 @@ +%22%22%22%0Anot finish yet%0A%22%22%22%0A%0Aimport requests%0Afrom bs4 import BeautifulSoup%0A%0A%0Adef crawl():%0A url = 'http://quhao.tianqi.com/'%0A headers = %7B%0A 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8',%0A 'Host': '...
5fc6d9fc05bc4cae5588489c576744a518155461
Add Sin, Cos and Tan function classes
trig.py
trig.py
Python
0
@@ -0,0 +1,608 @@ +import function%0Aimport math%0A%0A%0Aclass Sin(function.Function):%0A%0A def _evaluate(self, x):%0A return math.sin(x)%0A%0A%0Aclass Cos(function.Function):%0A%0A def _evaluate(self, x):%0A return math.cos(x)%0A%0A%0Aclass Tan(function.Function):%0A%0A def _evaluate(self, x):%...
d101e1bae5b083b436411507ebe73f12f8088075
Create solution.py
unit-3-mixed-reading-and-assignment-lessons/lesson-3-assignment-one-code-block/solutions/solution.py
unit-3-mixed-reading-and-assignment-lessons/lesson-3-assignment-one-code-block/solutions/solution.py
Python
0.000018
@@ -0,0 +1,249 @@ +def convert_temperature(temperature, to='celsius'):%0A def to_fahrenheit():%0A return (temperature * 9 / 5) + 32%0A%0A def to_celsius():%0A return (temperature - 32) * 5 / 9%0A%0A return (to_celsius if to == 'celsius' else to_fahrenheit)()%0A
f375be2ac11aa9648c77392cec36900db900c6ef
Add Flask server.
serve.py
serve.py
Python
0
@@ -0,0 +1,821 @@ +import sys%0Aimport flask%0Aimport sqlalchemy as sa%0Aimport coils%0Aimport tables%0A%0Aapp = flask.Flask(__name__)%0A%0A@app.route('/')%0Adef root():%0A%0A # Load configuration file.%0A CONFIG = sys.argv%5B1%5D if len(sys.argv)%3E=2 else 'wabbit.cfg'%0A config = coils.Config(CONFIG)%0A%0A ...
f3ab43a3c24851ca5a6e68c04e56af8c8f9a0fd1
add setup.py
setup.py
setup.py
Python
0.000001
@@ -0,0 +1,3042 @@ +from setuptools import setup, find_packages # Always prefer setuptools over distutils%0Afrom codecs import open # To use a consistent encoding%0Afrom os import path%0A%0Ahere = path.abspath(path.dirname(__file__))%0A%0A# Get the long description from the relevant file%0A#with open(path.join(here, ...
1b77c721b53d59e1b6242906780941d262d070e8
add basic setup.py
setup.py
setup.py
Python
0.000001
@@ -0,0 +1,1229 @@ +from setuptools import setup%0D%0Afrom esipy import __version__ %0D%0A%0D%0A# install requirements%0D%0Ainstall_requirements = %5B%0D%0A %22requests%22,%0D%0A %22pyswagger%22,%0D%0A %22six%22%0D%0A%5D%0D%0A%0D%0A# test requirements%0D%0Atest_requirements = %5B%0D%0A %22coverage%22,%0D%0A...
518e1d56a23eb1d5b4bb31ae46c958e519addfc0
add setup file
setup.py
setup.py
Python
0.000001
@@ -0,0 +1,636 @@ +#!/usr/bin/env python%0A%0Afrom os.path import exists%0Afrom setuptools import setup, find_packages%0A%0Asetup(name='topik',%0A version='0.1.0',%0A description='A Topic Modeling high-level interface',%0A url='http://github.com/ContinuumIO/topik/',%0A author='Christine Doig',%0A ...
07cda3fee1215f4d28e3885796c5d5f02ec28918
add beginning for D4 qcodes wrapper
D4/D4.py
D4/D4.py
Python
0
@@ -0,0 +1,389 @@ +from qcodes import Instrument%0Afrom qcodes.utils.validators import Numbers%0A%0Afrom .D4_module import D4_module%0A%0A%0Aclass D4(Instrument):%0A %22%22%22%0A Qcodes driver for the D4 ADC SPI-rack module.%0A %22%22%22%0A def __init__(self, name, spi_rack, module, **kwargs):%0A sup...
0cce9a108d97b61bc36c1d6873a801ae5a02ee10
Add setup.py script.
setup.py
setup.py
Python
0
@@ -0,0 +1,371 @@ +from distutils.core import setup%0A%0Asetup(%0A name=%22booleanOperations%22,%0A version=%220.1%22,%0A description=%22Boolean operations on paths.%22,%0A author=%22Frederik Berlaen%22,%0A url=%22https://github.com/typemytype/booleanOperations%22,%0A license=%22MIT%22,%0A packages...
6edea0e1f15c3905251793238fe88641a5935fed
Update version to 3.6.2
setup.py
setup.py
from setuptools import setup description = """ Full featured redis cache backend for Django. """ setup( name = "django-redis", url = "https://github.com/niwibe/django-redis", author = "Andrei Antoukh", author_email = "niwi@niwi.be", version='3.6.1', packages = [ "redis_cache", ...
Python
0.000001
@@ -265,9 +265,9 @@ 3.6. -1 +2 ',%0A
709aef34e608eb86dc7cbffd5635f78d8b5f59f3
add fasta2bed.py
fasta2bed.py
fasta2bed.py
Python
0.000077
@@ -0,0 +1,240 @@ +'''Credit: Elijah Lowe'''%0A%0A'''Read in sequences in FASTA format and print out BED format.'''%0Aimport screed, sys%0A%0Ainfile = sys.argv%5B1%5D%0A%0Afor n, record in enumerate(screed.open(infile)):%0A print record%5B'name'%5D+%22%5Ct0%5Ct%22,len(record%5B'sequence'%5D)%0A
ce43e24355da26fbd40f7f32101ed631c2ae787d
Version bump 1.9.4
setup.py
setup.py
from setuptools import setup, find_packages import os # Utility function to read the README file. # Used for the long_description. It's nice, because now 1) we have a top level # README file and 2) it's easier to type in the README file than to put a raw # string in below ... def read(fname): return open(os.path.j...
Python
0
@@ -416,17 +416,17 @@ on='1.9. -3 +4 ',%0A d
58e4c8c5cd3c47fb4dc4e6e772b0f300fe890225
Add missed setup.py
setup.py
setup.py
Python
0
@@ -0,0 +1,385 @@ +#!/usr/bin/env python%0Afrom setuptools import setup, find_packages%0A%0Asetup(%0A name='myprefetch',%0A version='0.1',%0A description='MySQL Replication Prefetcher',%0A packages=find_packages(),%0A long_description=open('README.md').read(),%0A license=open('LICENSE').read(),%0A ...
46b723ad4b48e29225cf8fcc44fa90bc9cfc3e21
Enable distutils for package
setup.py
setup.py
Python
0
@@ -0,0 +1,412 @@ +from distutils.core import setup%0A%0Asetup(%0A name='Getty',%0A version='0.0.1',%0A author='Clemens Wolff',%0A author_email='clemens.wolff+pypi@gmail.com',%0A packages=%5B'getty'%5D,%0A url='https://github.com/c-w/Getty',%0A download_url='http://pypi.python.org/pypi/Getty',%0A ...
b4a41b129a33361ebcb45de87a236952943ab3c3
Create setup.py
setup.py
setup.py
Python
0.000001
@@ -0,0 +1,1497 @@ +#!/usr/bin/env python%0A# %0A# Copyright (c) 2009-2013 Kyle Gorman%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# wit...
3af11eab7373a937f8df9858efbc41cdc9cfc940
Package Linehaul
setup.py
setup.py
Python
0
@@ -0,0 +1,672 @@ +from setuptools import setup, find_packages%0A%0Ainstall_requires = %5B%5D%0Awith open(%22requirements/main.in%22, %22r%22) as fp:%0A for line in fp:%0A line.strip()%0A if line:%0A install_requires.append(line)%0A%0A%0Asetup(%0A name=%22linehaul%22,%0A use_scm_versio...
f743220b6d6868b3a489a1843dda329ed0a7d5c4
Add Python setup file
setup.py
setup.py
Python
0.000001
@@ -0,0 +1,289 @@ +from setuptools import setup%0A%0Asetup(name='amaya',%0A version='0.1',%0A description='IRCv3 capable bot framework',%0A url='http://github.com/bookhorse/amaya',%0A author='Nicole Brennan',%0A author_email='twipony.ts@gmail.com',%0A license='ZLib',%0A packages=%5B'a...
250261038893c7f5b004776c4aec01ebfc1d9012
Fix a typo
setup.py
setup.py
# Copyright Hybrid Logic Ltd. See LICENSE file for details. # # Generate a Flocker package that canbe deployed onto cluster nodes. # import os.path from setuptools import setup path = os.path.join(os.path.dirname(__file__), b"flocker/version") with open(path) as fObj: version = fObj.read().strip() del path set...
Python
1
@@ -93,16 +93,17 @@ that can + be deplo
b46119ada62fbcb4791cd8ce210e34a43564df5b
Add setup_tools cruft
setup.py
setup.py
Python
0
@@ -0,0 +1,343 @@ +from distutils.core import setup%0A%0Asetup(name = 'MNML',%0A description = 'A very lightweight WSGI Python web framework',%0A author = 'Bradley Wright',%0A author_email = 'me@bradleywright.name',%0A url = 'http://github.com/bradleywright/mnml',%0A ver...
328204f4158a829c6922019dcd83d3afbca2536d
bump to 0.4
setup.py
setup.py
from distutils.core import setup setup(name='zencoder', version='0.3', description='Integration library for Zencoder', author='Alex Schworer', author_email='alex.schworer@gmail.com', url='http://github.com/schworer/zencoder-py', license="MIT License", install_requires=['httpl...
Python
0.000024
@@ -72,9 +72,9 @@ ='0. -3 +4 ',%0A
e9b8c9489f4a43a43a865853f9bbdb246e445802
Comment setup.py
setup.py
setup.py
#!/usr/bin/env python import os from glob import glob import platform if os.environ.get('USE_SETUPTOOLS'): from setuptools import setup setup # workaround for pyflakes issue #13 setup_kwargs = dict(zip_safe=0) else: from distutils.core import setup setup_kwargs = dict() data_files = [ ('shar...
Python
0
@@ -1794,16 +1794,197 @@ sion():%0A + %22%22%22%0A Read the version.txt file to get the new version string%0A Generate it if version.txt is not available. Generation%0A is required for pip installs%0A %22%22%22%0A try: @@ -2232,16 +2232,70 @@ h=%22/%22):%0A + %22%22%22%0A Pac...
bd41935801fb01d85d7f3f600c6b94f077cdf82f
Add solid motor utilities.
solid.py
solid.py
Python
0
@@ -0,0 +1,809 @@ +''' Solid rocket motor equations.%0A%0AMatt Vernacchia%0Aproptools%0A2016 Aug 22%0A'''%0A%0Adef chamber_pressure(K_n, a, n, rho_solid, c_star):%0A ''' Chamber pressure due to solid propellant combustion.%0A%0A See equation 12-6 in Rocket Propulsion Elements 8th edition.%0A%0A Args:%0A ...
62d817cde6a8c58372125f551d8122cc303ac4b5
Add a new gclient-new-workdir script which clones an existing gclient working directory much like git-new-workdir, but takes into account all sub projects as well.
gclient-new-workdir.py
gclient-new-workdir.py
Python
0.000226
@@ -0,0 +1,2495 @@ +#!/usr/bin/env python%0A# Copyright 2013 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# Usage:%0A# gclient-new-workdir.py %3Crepository%3E %3Cnew_workdir%3E %5B%3Cbranch%3E%5D%0A#%0A%0Aim...
a45c78d0fcc6d8cd2d8e702917a2dabd7bfc0444
Add command createaccount
saleor/account/management/commands/createserviceaccount.py
saleor/account/management/commands/createserviceaccount.py
Python
0.000016
@@ -0,0 +1,3186 @@ +import json%0Afrom typing import Any, Dict, List, Optional%0A%0Aimport requests%0Afrom django.contrib.auth.models import Permission%0Afrom django.contrib.sites.models import Site%0Afrom django.core.management import BaseCommand, CommandError%0Afrom django.core.management.base import CommandParser%0A...
b4f76fdf1f500be289082d6a0fdc90835dff74fd
Update forward compatibility horizon to 2022-05-15
tensorflow/python/compat/compat.py
tensorflow/python/compat/compat.py
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
Python
0
@@ -1339,9 +1339,9 @@ 5, 1 -4 +5 )%0A_F
ef07c46210b17d407a9f9097af43bb77e16325d3
Update forward compatibility horizon to 2022-05-21
tensorflow/python/compat/compat.py
tensorflow/python/compat/compat.py
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
Python
0
@@ -1335,17 +1335,17 @@ 22, 5, 2 -0 +1 )%0A_FORWA
b8029643ca5dd5d559b7411b6fbb20896502fd7b
Create solution.py
hackerrank/algorithms/implementation/medium/almost_sorted/py/solution.py
hackerrank/algorithms/implementation/medium/almost_sorted/py/solution.py
Python
0.000018
@@ -0,0 +1,1193 @@ +def solution(L):%0A def isAscending(L):%0A m = 1%0A%0A while m %3C len(L):%0A if L%5Bm%5D %3C L%5Bm - 1%5D:%0A return False%0A m += 1%0A%0A return True%0A%0A buffer = list(L%5B:%5D)%0A i = 1%0A%0A while i %3C len(buffer):%0A ...
e57c1b157b39eac278552fd6c9a16e004d8be501
Create task_1_2.py
INBa/2014/Andreev_F_I/task_1_2.py
INBa/2014/Andreev_F_I/task_1_2.py
Python
0.999998
@@ -0,0 +1,378 @@ +# %D0%97%D0%B0%D0%B4%D0%B0%D1%87%D0%B0 1, %D0%92%D0%B0%D1%80%D0%B8%D0%B0%D0%BD%D1%82 2 %0A# %D0%9D%D0%B0%D0%BF%D0%B8%D1%88%D0%B8%D1%82%D0%B5 %D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%BC%D1%83, %D0%BA%D0%BE%D1%82%D0%BE%D1%80%D0%B0%D1%8F %D0%B1%D1%83%D0%B4%D0%B5%D1%82 %D1%81%D0%BE%D0%BE%D0%B1%D1%89...
1d55ad8fb8309918e7d41b4f443e16ebefbb1895
Add script for populating elasticsearch.
populate_elasticsearch.py
populate_elasticsearch.py
Python
0
@@ -0,0 +1,987 @@ +#!/usr/bin/env python%0A%0Aimport os%0Aimport sys%0Aimport json%0Aimport requests%0Aimport multiprocessing%0Aimport mwparserfromhell as mwp%0A%0AES_URL = 'http://localhost:9200'%0A%0ASECTIONS_TO_REMOVE = set(%5B%0A 'references', 'see also', 'external links', 'footnotes'%0A%5D)%0A%0Adef put_documen...
1362703d4068a03c2970962ef2c05c3b128edcf1
Create 5function.py
introduction/5function.py
introduction/5function.py
Python
0.000494
@@ -0,0 +1,121 @@ +def fun():%0A name = %22av%22%0A age = int(19)%0A print(%22%25s is %25d years old.%22%25 (name, age))%0A return %22end%22%0Aprint(fun())%0A
a6235ab8f9635d434f312eb7b0d442a0894ff208
Fix error when parsing HTML page without <html> (#6077)
devsiteParseHTML.py
devsiteParseHTML.py
import os import re import yaml import logging import devsiteHelper from google.appengine.ext.webapp.template import render SOURCE_PATH = os.path.join(os.path.dirname(__file__), 'src/content/') SERVED_FROM_AE = not os.environ['SERVER_SOFTWARE'].startswith('Dev') def parse(requestPath, fileLocation, content, lang='en'...
Python
0.000001
@@ -582,16 +582,20 @@ %0A log +ging .warning
06e352476d52865ab4905cebc57672d9f674a732
Disable tests requiring pairing
test/client/audio_consumer_test.py
test/client/audio_consumer_test.py
# Copyright 2016 Mycroft AI, Inc. # # This file is part of Mycroft Core. # # Mycroft Core is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later versio...
Python
0.000001
@@ -6040,32 +6040,101 @@ tate.sleeping)%0A%0A + @unittest.skip('Disabled while unittests are brought upto date')%0A def test_sto @@ -6768,32 +6768,101 @@ utterances%5B0%5D)%0A%0A + @unittest.skip('Disabled while unittests are brought upto date')%0A def test_rec
2d4f6dd040d6f92b0865421cddf6c9ce16eff08e
add sample python module
my_amazing_python_module.py
my_amazing_python_module.py
Python
0.000001
@@ -0,0 +1,55 @@ +def some_function(name):%0A return %22Hello, %25s!%22 %25 name
ff2b86d90ecbc2da25ddc05b0430555861104cac
Add an example for HybridContentsManager.
examples/hybrid_manager_example.py
examples/hybrid_manager_example.py
Python
0
@@ -0,0 +1,2100 @@ +# This example shows how to configure Jupyter/IPython to use the more complex%0A# HybridContentsManager.%0A%0A# A HybridContentsManager implements the contents API by delegating requests to%0A# other contents managers. Each sub-manager is associated with a root%0A# directory, and all requests for da...
d68109c2fb7bb324c93506d26a1a7cf996134da3
Allow `soulmate_finder` to be imported
soulmate_finder/__init__.py
soulmate_finder/__init__.py
Python
0.000015
@@ -0,0 +1,87 @@ +# allow %60soulmate_finder%60 to be imported%0A%0A# FIXME: This is bad%0Afrom .__main__ import *%0A
79fe576ec71552633c7e5a2a646567beecfa3b5b
Add a test
test/pkgbuildtest.py
test/pkgbuildtest.py
Python
0
@@ -0,0 +1,2160 @@ +#!/usr/bin/env python3%0A%0Aimport sys%0Aimport os%0Aimport unittest%0Asys.path%5B0%5D = os.path.abspath('..')%0A%0Aimport libaur.PKGBUILD as P%0A%0Aclass PkgbuildTest(unittest.TestCase):%0A KNOWN_VALUES = %5B%0A ('''pkgname=foobar%5Cn''',%0A %7B'pkgname':%5B'foobar'%5D%...
44a785b456ad1d1bd9c866b79cadaec4c1d5bab5
Add sample template file (#24)
samples/vsphere/common/sample_template.py
samples/vsphere/common/sample_template.py
Python
0
@@ -0,0 +1,1714 @@ +#!/usr/bin/env python%0A%0A%22%22%22%0A* *******************************************************%0A* Copyright (c) VMware, Inc. 2017. All Rights Reserved.%0A* SPDX-License-Identifier: MIT%0A* *******************************************************%0A*%0A* DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU ...
7d5407a98ef8b0d025532d9675b7109a4c4713f4
add send sms python post code
send-sms-text-messages-python/send_sms.py
send-sms-text-messages-python/send_sms.py
Python
0
@@ -0,0 +1,535 @@ +# we import the Twilio client from the dependency we just installed%0Afrom twilio.rest import TwilioRestClient%0A%0A# the following line needs your Twilio Account SID and Auth Token%0Aclient = TwilioRestClient(%22ACxxxxxxxxxxxxxx%22, %22zzzzzzzzzzzzz%22)%0A%0A# change the %22from_%22 number to your T...
9e200c1e5d666c3ab151c96fcc1190c70ddcb02c
Add pagination utility.
src/cadorsfeed/views/pagination.py
src/cadorsfeed/views/pagination.py
Python
0
@@ -0,0 +1,858 @@ +from werkzeug import cached_property%0Afrom flask import url_for%0A%0Aclass Pagination(object):%0A%0A def __init__(self, db, key, per_page, page, endpoint):%0A self.db = db%0A self.query = key%0A self.per_page = per_page%0A self.page = page%0A self.endpoint = end...
3506cb01b0ce03d834c61ff28dd5d35785b999d3
add initial coverage implementation (#39)
tools/coverage.py
tools/coverage.py
Python
0
@@ -0,0 +1,2209 @@ +#!/bin/env python%0A%22%22%22coverage.py%0A%0AThis script is for checking the code coverage of unit tests in the%0Aoshinko-rest project. It is meant to be invoked from the top level of the%0Arepository.%0A%0AExample invocation:%0A%0A $ tools/coverage.py -h%0A%0A%22%22%22%0Aimport argparse%0Aimpor...
63eaadad7a5169ec6219d33f9b39ce27859684c2
Add script to automate notebooks testing
notebooks/test_notebooks.py
notebooks/test_notebooks.py
Python
0.000001
@@ -0,0 +1,1142 @@ +# -*- coding: utf-8 -*-%0A%0A%0A'''%0AChecks notebook execution result.%0AEqual to this command + error management:%0Ajupyter nbconvert --to notebook --execute --ExecutePreprocessor.timeout=60 --output executed_notebook.ipynb demo.ipynb%0A%0AFor jupyter configuration information, run: jupyter --path...
37c151de6b2241e68f7287349b43f6dce1150093
add an API module for core.ui
enthought/mayavi/core/ui/api.py
enthought/mayavi/core/ui/api.py
Python
0.000002
@@ -0,0 +1,318 @@ +from enthought.mayavi.tools.mlab_scene_model import MlabSceneModel%0Afrom enthought.mayavi.core.ui.mayavi_scene import MayaviScene%0Afrom enthought.tvtk.pyface.scene_editor import SceneEditor%0Afrom enthought.mayavi.core.ui.engine_view import EngineView%0Afrom enthought.mayavi.core.ui.engine_rich_vie...
4fc098ade74a9b46f11937e229cba75b83f0c9a4
Create Utils.py
Utils.py
Utils.py
Python
0
@@ -0,0 +1,641 @@ +class Batchable:%0A%0A def __init__(self, X, y, batch_size = 256, seed = None):%0A import math%0A import numpy as np%0A if seed:%0A np.random.seed(seed)%0A idx = np.arange(X.shape%5B1%5D)%0A np.random.shuffle(idx)%0A self.X = X%5B:, idx%5D%0A ...
bed08a0d3187f6b31f985d448598eb0ea231a1db
Python print dict tip
python/print_dict.py
python/print_dict.py
Python
0.999031
@@ -0,0 +1,206 @@ +# print dictionary %0Aimport json%0A%0Agoo = %7B'name': 'honux', 'age': 25, 'favorite' : %7B'game': 'SF', 'movie': 'matrix', 'book': 'Galaxy hero'%7D%7D%0A%0Aprint(goo)%0A%0Aprint(json.dumps(goo, indent = 4, sort_keys = True))%0A%0A
4083cac3c0ec107df68cdecb8fc52c00e2684b08
Add b3 format benchmark tests (#1489)
propagator/opentelemetry-propagator-b3/tests/performance/benchmarks/trace/propagation/test_benchmark_b3_format.py
propagator/opentelemetry-propagator-b3/tests/performance/benchmarks/trace/propagation/test_benchmark_b3_format.py
Python
0
@@ -0,0 +1,1669 @@ +# Copyright The OpenTelemetry Authors%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#%0A# Unless req...
4a5767c18b3d75420c5498341012fa98e74edba6
Create 2string_join.py
string/2string_join.py
string/2string_join.py
Python
0.002004
@@ -0,0 +1,98 @@ +s1=%22hello%22%0As2=%22world%22%0Aprint(s1+s2)%0A%0Aprint(%22%5Cn%22,%22 %22.join(s2),%22%5Cn%22)%0A%0Aprint(%22length of s1=%22,len(s1))%0A
c1f02399ad3ce9c4009e297be58aa6e1f10337cb
Add utility getrecord.py to retrieve single records from lib
getrecord.py
getrecord.py
Python
0
@@ -0,0 +1,1266 @@ +#!/usr/bin/python%0A#%0A# retrieve specified record from lib%0A#%0A%0Aimport sys%0Aimport olypy.oio as oio%0Afrom olypy.oid import to_oid, to_int%0Aimport olypy.dbck as dbck%0A%0Aimport pathlib%0Afrom jinja2 import Environment, PackageLoader, select_autoescape%0Afrom olymap.loc import build_complete...
502a95b4bcf54792b5755c9ea6f03a8f9572a271
test resize
tests/test_resize.py
tests/test_resize.py
Python
0.000001
@@ -0,0 +1,663 @@ +from tempfile import TemporaryFile%0A%0Aimport pytest%0A%0Afrom imgpy import Img%0A%0A%0A@pytest.mark.parametrize('image', (%7B%0A 'sub': 'anima/bordered.gif',%0A 'size': (100, 100)%0A%7D, %7B%0A 'sub': 'anima/clear.gif',%0A 'size': (100, 100)%0A%7D, %7B%0A 'sub': 'fixed/bordered.jpg',...
f4bb4d17214f4e359455cf7b5fb7ab973508049b
Add missing module for merge script
bin/diffMatcher.py
bin/diffMatcher.py
Python
0.000001
@@ -0,0 +1,1016 @@ +#!/usr/bin/python%0A# coding=utf-8%0A%0Aimport subprocess%0A%0Aclass DiffMatcher(object):%0A %0A def __init__(self, listA, listB):%0A self.listA = listA%0A self.listB = listB%0A%0A%0A def create_diff(self, listA, listB,case_sensitive):%0A new_list = %5B%5D%0A #co...
7b0044d3ccb617e92ee8523be949966f1188c742
add unittest
tests/unit/py2/nupic/encoders/utility_test.py
tests/unit/py2/nupic/encoders/utility_test.py
Python
0.000015
@@ -0,0 +1,2033 @@ +#!/usr/bin/env python%0A# ----------------------------------------------------------------------%0A# Numenta Platform for Intelligent Computing (NuPIC)%0A# Copyright (C) 2013, Numenta, Inc. Unless you have purchased from%0A# Numenta, Inc. a separate commercial license for this software code, the%0A...
2ac66bef27652dec67b90cb428031e4954da8e21
Create download-search.py
lattes/download-search.py
lattes/download-search.py
Python
0
@@ -0,0 +1,950 @@ +import urllib2%0Aimport codecs%0Aimport os%0A%0Atry: os.makedirs('data')%0Aexcept: pass%0A%0Ainc = 10000%0Aoffset = 0%0Alimit = 211056%0Awhile (offset %3C 211057):%0A urlpath = 'http://buscatextual.cnpq.br/buscatextual/busca.do?metodo=forwardPaginaResultados&registros=' + str(offset) + ';' + str(inc...
6a95d0df59f5ab03cb8537014e0102e5300a544a
Add Docker driver
docker.py
docker.py
Python
0
@@ -0,0 +1,1604 @@ +%0Aimport random, string%0Aimport sys, subprocess%0A%0Afrom log import logging%0ALOG = logging.getLogger(__name__)%0A%0Aclass Driver(object):%0A%0A def __init__(self, name, dockerfilepath):%0A self.name = name%0A self.dockerfilepath = dockerfilepath%0A self.tag = %22rallyci:%...
f3c622a3dc9573c8244bf01408c1ff4620080c99
Create views module
views/__init__.py
views/__init__.py
Python
0
@@ -0,0 +1 @@ +%0A
07148136d8dcc165fc72d3ef264d721c652db025
Test cases for ZPool
test/002_test_zpool.py
test/002_test_zpool.py
Python
0
@@ -0,0 +1,1124 @@ +import unittest%0Aimport os%0Afrom .test_utils import _LibZFSHandleCase%0Afrom libzfs.zpool import ZPool, zpool_prop_t%0A%0ALIBZFS_TEST_POOL = os.environ.get(%22LIBZFS_TEST_POOL%22, False)%0A%0A%0A@unittest.skipUnless(LIBZFS_TEST_POOL, %22LIBZFS_TEST_POOL not set, so we do not test to a specific poo...
ba8be59db72c958e2ff20b9ae7fe81c400b40f9c
Make start of ongoing and deadline activities just a date
bluebottle/time_based/migrations/0008_auto_20201023_1443.py
bluebottle/time_based/migrations/0008_auto_20201023_1443.py
Python
0
@@ -0,0 +1,714 @@ +# -*- coding: utf-8 -*-%0A# Generated by Django 1.11.17 on 2020-10-23 12:43%0Afrom __future__ import unicode_literals%0A%0Afrom django.db import migrations, models%0A%0A%0Aclass Migration(migrations.Migration):%0A%0A dependencies = %5B%0A ('time_based', '0007_auto_20201023_1433'),%0A %5D...
b869748e4bc0ee6986fa280aa69027aaf8607dcb
allow set_ev_handler without dispatchers
ryu/controller/handler.py
ryu/controller/handler.py
# Copyright (C) 2011, 2012 Nippon Telegraph and Telephone Corporation. # Copyright (C) 2011, 2012 Isaku Yamahata <yamahata at valinux co jp> # # 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 # ...
Python
0
@@ -1336,16 +1336,21 @@ patchers +=None ):%0A d
7f49a34e605d701168ee88c8cff0e3b8ed9a68d6
Add GPG-related minor migration
storage_service/locations/migrations/0017_gpg_space_minor_migration.py
storage_service/locations/migrations/0017_gpg_space_minor_migration.py
Python
0
@@ -0,0 +1,1123 @@ +# -*- coding: utf-8 -*-%0Afrom __future__ import unicode_literals%0A%0Afrom django.db import migrations, models%0A%0A%0Aclass Migration(migrations.Migration):%0A%0A dependencies = %5B%0A ('locations', '0016_mirror_location_aip_replication'),%0A %5D%0A%0A operations = %5B%0A mi...
579d21e001f5cd61702dc086d36c1a5f764ffb45
Add app.wsgi to run under Apache
app.wsgi
app.wsgi
Python
0
@@ -0,0 +1,47 @@ +import app%0A%0Asite = app.create_app()%0Asite.run()%0A
38090ac06a48a4205cbc2318e3ad9296d5b08ea5
Add migration to populate Broadcast.base_language
temba/msgs/migrations/0069_populate_broadcast_base_lang.py
temba/msgs/migrations/0069_populate_broadcast_base_lang.py
Python
0.000001
@@ -0,0 +1,2251 @@ +# -*- coding: utf-8 -*-%0Afrom __future__ import unicode_literals%0A%0Afrom collections import defaultdict%0Afrom django.db import migrations%0Afrom temba.utils import chunk_list%0A%0A%0Adef do_populate(Broadcast, FlowStep):%0A BroadcastSteps = FlowStep.broadcasts.through%0A broadcast_ids = li...
42cc997aea3f71d9b0db37d36a895e68994616ea
Add Jansson (#2287)
var/spack/repos/builtin/packages/jansson/package.py
var/spack/repos/builtin/packages/jansson/package.py
Python
0
@@ -0,0 +1,1579 @@ +##############################################################################%0A# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.%0A# Produced at the Lawrence Livermore National Laboratory.%0A#%0A# This file is part of Spack.%0A# Created by Todd Gamblin, tgamblin@llnl.gov, All r...
e63a623452d9aa64c2dd392442f1f09f8e0924ef
make it work on python 2.6
compress/filters/css_url_replace/__init__.py
compress/filters/css_url_replace/__init__.py
import re from django.conf import settings from compress.filter_base import FilterBase CSS_REPLACE = getattr(settings, 'COMPRESS_CSS_URL_REPLACE', []) class CSSURLReplace(FilterBase): def filter_css(self, css): for pattern, repl in CSS_REPLACE.iteritems(): css = re.sub(pattern, repl, css, fla...
Python
0.000324
@@ -312,42 +312,8 @@ css -, flags=re.UNICODE %7C re.IGNORECASE )%0A
feee17d37fdef9b2b511366f42599ceb1b7fdd50
Add migration
corehq/apps/sms/migrations/0019_add_new_registration_invitation_fields.py
corehq/apps/sms/migrations/0019_add_new_registration_invitation_fields.py
Python
0.000002
@@ -0,0 +1,939 @@ +# -*- coding: utf-8 -*-%0Afrom __future__ import unicode_literals%0A%0Afrom django.db import models, migrations%0Aimport jsonfield.fields%0A%0A%0Aclass Migration(migrations.Migration):%0A%0A dependencies = %5B%0A ('sms', '0018_check_for_phone_number_migration'),%0A %5D%0A%0A operation...
1cee75aec336b6ba7d21cb9aa18b238e68ce2fd0
add script to export data from database
website/scripts/export_pairs.py
website/scripts/export_pairs.py
Python
0
@@ -0,0 +1,389 @@ +from website.models import Annotation%0A%0Anl_list = %5B%5D%0Acm_list = %5B%5D%0Afor annotation in Annotation.objects.all():%0A nl_list.append(annotation.nl.str)%0A cm_list.append(annotation.cmd.str)%0A%0Awith open('nl.txt', 'w') as o_f:%0A for nl in nl_list:%0A o_f.write('%7B%7D%5Cn'...