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 |
|---|---|---|---|---|---|---|---|
3654c339e2e4b363a5675335e062503bf1705f79 | Fix broken test after configuration change | tests/run.py | tests/run.py | #!/usr/bin/env python
import httplib, subprocess, shlex, os, sys, time
def expect_status(*expected):
def wrapper(fun):
def inside(self, *args, **kargs):
(response, body) = fun(self, *args, **kargs)
if not response.status in expected:
print "\tFAILURE: expected %s, got %d: %s" % (
str(expected), re... | Python | 0.000005 | @@ -2108,12 +2108,12 @@
%22 *
-2048
+8192
)%0A%09%09
|
3c9666538bd548e416f43f786e588af2861d9d90 | Comment change | tests/run.py | tests/run.py | import sys
import os
from spec import eq_, skip, Spec, raises, ok_, trap
from invoke.runner import run
from invoke.exceptions import Failure
from _utils import support
class Run(Spec):
"run()"
def setup(self):
os.chdir(support)
self.both = "echo foo && ./err bar"
self.out = "echo f... | Python | 0 | @@ -4785,19 +4785,56 @@
#
-E.g. 'tree'
+Crummy %22doesn't explode with decode errors%22 test
%0A
@@ -4856,10 +4856,23 @@
ree.out%22
+, hide='both'
)%0A
|
94c50696a9ec448766023c9575d5b73785b1afeb | print vertical | hello.py | hello.py | x = "Hello World!"
print(x)
input()
| Python | 0.000021 | @@ -16,15 +16,28 @@
d!%22%0A
+for i in x:%0A%09
print(
-x
+i
)%0Ain
|
cb6c1a854f64c72bc4bf809307692b801286fe95 | remove redundant and broken re-definition of programrolegrant | accelerator/models/program_role_grant.py | accelerator/models/program_role_grant.py | # MIT License
# Copyright (c) 2017 MassChallenge, Inc.
from __future__ import unicode_literals
import swapper
from django.conf import settings
from django.db import models
from accelerator_abstract.models.accelerator_model import AcceleratorModel
from accelerator_abstract.models.base_program_role_grant import (
... | Python | 0.000833 | @@ -388,220 +388,8 @@
t):%0A
- person = models.ForeignKey(settings.AUTH_USER_MODEL)%0A program_role = models.ForeignKey(%0A swapper.get_model_name(AcceleratorModel.Meta.app_label,%0A %22ProgramRoleGrant%22))%0A%0A
|
bc7c37f42a8c1e7604f9766d6bd22c13935b6ba8 | fix title | testing/test_large_copy_admUI_dit.py | testing/test_large_copy_admUI_dit.py | # test_large_copy_broja_2pid_computeUI.py
from sys import path
path.insert(0,"..")
import BROJA_2PID as BROJA
from BROJA_2PID import BROJA_2PID_Exception
path.insert(0, "../../computeUI/python/")
from admUI import computeQUI
from dit import *
import time
from math import log2
from sys import argv
print("test_large_... | Python | 0.000797 | @@ -15,28 +15,17 @@
opy_
-broja_2pid_computeUI
+admUI_dit
.py%0A
|
ecb060f85c3de21b6f2e6ea94417685307252791 | Improve QtScriptEngineDebugger test behavior | tests/QtScriptTools/debugger_test.py | tests/QtScriptTools/debugger_test.py |
import unittest
from PySide.QtCore import SIGNAL
from PySide.QtScript import QScriptEngine
from PySide.QtScriptTools import QScriptEngineDebugger
from helper import UsesQApplication
class DebuggerTest(UsesQApplication):
def setUp(self):
UsesQApplication.setUp(self)
self.engine = QScriptEngine()... | Python | 0.000004 | @@ -43,16 +43,24 @@
t SIGNAL
+, QTimer
%0Afrom Py
@@ -399,21 +399,17 @@
ended =
-False
+0
%0A
@@ -428,21 +428,40 @@
sumed =
-False
+0%0A self.count = 3
%0A%0A de
@@ -510,22 +510,125 @@
ded
++
=
-True%0A
+1%0A # Will emit evaluationResumed until there are more instructions to b... |
8a8cc7b5f37baa315470083eedf942b004ff3662 | add more cases to member list acceptance test (#4804) | tests/acceptance/test_member_list.py | tests/acceptance/test_member_list.py | from __future__ import absolute_import
from sentry.testutils import AcceptanceTestCase
class ListOrganizationMembersTest(AcceptanceTestCase):
def setUp(self):
super(ListOrganizationMembersTest, self).setUp()
self.user = self.create_user('foo@example.com')
self.org = self.create_organizati... | Python | 0 | @@ -33,16 +33,61 @@
import%0A%0A
+from sentry.models import OrganizationMember%0A
from sen
@@ -694,32 +694,367 @@
eam%5D,%0A )%0A
+ OrganizationMember.objects.create(%0A email='bar@example.com',%0A organization=self.org,%0A role='member'%0A )%0A self.creat... |
fe77ac0eef6067384bdc60bb0006028b50d0c60a | resolve typedefs | scripts/AST.py | scripts/AST.py | # Copyright (c) 2014 Quanta Research Cambridge, Inc
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merg... | Python | 0.00001 | @@ -1126,16 +1126,25 @@
, bsvgen
+, globalv
%0A%0Aclass
@@ -5402,32 +5402,62 @@
elf.name = name%0A
+ self.type = 'TypeDef'%0A
self.tdt
@@ -6633,32 +6633,215 @@
numeric(self):%0A
+ if globalv.globalvars.has_key(self.name):%0A decl = globalv.globalvars%5Bself.name%5D%0A ... |
16b3e30a88e9101db58c0549e515848df29f29b9 | Set up sample project to throw web exceptions (for request oject) | raygun4py-sample/test.py | raygun4py-sample/test.py | import sys, os
import traceback
from provider import raygunprovider
def handle_exception(exc_type, exc_value, exc_traceback):
cl = raygunprovider.RaygunSender("onPbQXtZKqJX38IuN4AQKA==")
cl.set_version("1.2")
print cl.send(exc_type, exc_value, exc_traceback, "myclass", ["tag1", "tag2"], {"key1": 1111, ... | Python | 0 | @@ -7,16 +7,25 @@
sys, os
+, urllib2
%0Aimport
@@ -128,20 +128,16 @@
ceback):
-
%0A cl
@@ -393,38 +393,54 @@
-raise Exception(%22My exception%22
+urllib2.urlopen(%22gopher://nonsense.org%22).read(
)%0A%0As
|
fda572c774f1fa6223f7b8ee9cb2e22fe2c92238 | add debug timestamp to resources | rctk/resourceregistry.py | rctk/resourceregistry.py | import os
import stat
import sys
import time
import mimetypes
from rctk.compat import OrderedDict
class BaseResource(object):
type = "application/data"
counter = 0
def __init__(self, data, name=None, type=None, timestamp=None):
self.data = data
if type is not None:
self.type =... | Python | 0.000015 | @@ -3308,24 +3308,36 @@
_init__(self
+, debug=True
):%0A s
@@ -3365,16 +3365,43 @@
edDict()
+%0A self.debug = debug
%0A%0A de
@@ -4882,32 +4882,143 @@
ss_resources():%0A
+ o = self.resources%5Bcss%5D%0A if self.debug:%0A timestamp = %22?%25d%22 %25 o.timestamp%... |
f26f577e54f9240dd63db2fcff3270de3ef5cfc3 | whoops.. removed print statements | rdflib/store/__init__.py | rdflib/store/__init__.py | ## Context-aware: An RDF store capable of storing statements within contexts is considered context-aware.
## Essentially, such a store is able to partition the RDF model it represents into individual, named, and addressable sub-graphs.
## Relevant Notation3 reference regarding formula's, quoted statements, and such: h... | Python | 0.999907 | @@ -5538,34 +5538,8 @@
t):%0A
- print object_%0A
@@ -6101,34 +6101,8 @@
t):%0A
- print subject%0A
@@ -6580,36 +6580,8 @@
t):%0A
- print predicate%0A
|
480784e2a4d0b6ea0375aa4f667ec88089660243 | change from pdf backend to Agg | scripts/e82.py | scripts/e82.py | from __future__ import print_function, division
import matplotlib
matplotlib.use('pdf') # Must be before importing matplotlib.pyplot or pylab!
from neuralnilm import Net, RealApplianceSource, BLSTMLayer, SubsampleLayer, DimshuffleLayer
from lasagne.nonlinearities import sigmoid, rectify
from lasagne.objectives import c... | Python | 0 | @@ -79,11 +79,11 @@
se('
-pdf
+Agg
') #
|
4670988a6856f4a3330f5b185c33df01505fbd13 | Fix style. | tests/integration/states/boto_sns.py | tests/integration/states/boto_sns.py | # -*- coding: utf-8 -*-
"""
Tests for the boto_sns state
"""
from salttesting import skipIf
from salttesting.helpers import ensure_in_syspath
ensure_in_syspath('../../')
import integration
NO_BOTO_MODULE = True
BOTO_NOT_CONFIGURED = True
try:
import boto
NO_BOTO_MODULE = False
try:
boto.connect_ia... | Python | 0 | @@ -4125,13 +4125,12 @@
rtTrue(ret)%0A
-%0A
|
be19617fa98b78451f6d39e6afba25261689904e | change distance settings | serial_test.py | serial_test.py | import datetime
import sys
import pigpio
import time
import math
def normalize(things):
dis = ''
for distance in things:
if distance >= 36:
dis += '8'
elif distance >= 24:
dis += '7'
elif distance >= 20:
dis += '6'
elif distance >= 16:
... | Python | 0.000001 | @@ -151,10 +151,11 @@
%3E=
-36
+108
:%0A
@@ -204,10 +204,10 @@
%3E=
+7
2
-4
:%0A
@@ -252,17 +252,17 @@
ance %3E=
-2
+6
0:%0A
@@ -308,10 +308,10 @@
%3E=
-16
+48
:%0A
@@ -360,10 +360,10 @@
%3E=
-12
+36
:%0A
@@ -408,17 +408,17 @@
ance %3E=
-1
+3
0:%0A
@@ -460,17 +460,18 @@
ance %3... |
9d2f071c28d4f84ae57ab7b572b3c98620c820a4 | Fix sort order | tests/mock_vws/test_delete_target.py | tests/mock_vws/test_delete_target.py | """
Tests for deleting targets.
"""
import pytest
from requests import codes
from requests_mock import DELETE
from common.constants import ResultCodes
from tests.mock_vws.utils import assert_vws_failure
from vws._request_utils import target_api_request
from tests.utils import VuforiaServerCredentials
@pytest.mark.u... | Python | 0.000235 | @@ -207,21 +207,14 @@
rom
-vws._request_
+tests.
util
@@ -226,38 +226,51 @@
ort
-target_api_request%0Afrom tests.
+VuforiaServerCredentials%0Afrom vws._request_
util
@@ -282,32 +282,26 @@
ort
-VuforiaServerCredentials
+target_api_request
%0A%0A%0A@
|
0653153714fc23546bec58eac70d931563f6e322 | Fix yapf | tests/mock_vws/test_update_target.py | tests/mock_vws/test_update_target.py | """
Tests for the mock of the update target endpoint.
"""
import base64
import io
import json
from typing import Any, Dict
from urllib.parse import urljoin
import pytest
import requests
from requests import Response, codes
from requests_mock import PUT
from common.constants import ResultCodes
from tests.mock_vws.uti... | Python | 0.000006 | @@ -3584,24 +3584,25 @@
nt.%0A %22%22%22%0A
+%0A
def test
@@ -4106,25 +4106,8 @@
ta=%7B
-%0A
'ext
@@ -4118,30 +4118,16 @@
hing': 1
-,%0A
%7D,%0A
|
4d0504d42dbae8e5a00e53c470cda7e4dade7c73 | fix bug in Esurf regex that caused regr tests to fail | tests/regression_tests/regression.py | tests/regression_tests/regression.py | import re
import os
import shutil
import numpy
import pickle
from pygbe.main import main as pygbe
ITER_REGEX = re.compile('Converged after (\d*) iterations')
N_REGEX = re.compile('Total elements : (\d*)')
ESOLV_REGEX = re.compile('Esolv = (\-*\d*\.\d*)\ kcal\/mol')
ESURF_REGEX = re.compile('Esurf = (\-*\d*\.\d*)\ kc... | Python | 0.999995 | @@ -288,16 +288,21 @@
ompile('
+%5B%5E: %5D
Esurf =
|
719bd53fe9b7346e858becce99b6f0eead40b3fe | bump to 1.1 | sorbic/__init__.py | sorbic/__init__.py | # -*- coding: utf-8 -*-
version = '0.1.0'
| Python | 0 | @@ -32,11 +32,11 @@
= '0.1.
-0
+1
'%0A
|
0aa0582e9897b6ce8b3e06aff12f5f19bd1e9956 | Fix tests. | tests/test_mustache/test_mustache.py | tests/test_mustache/test_mustache.py | import os
import unittest
from rucola import Rucola
from rucola_mustache import Mustache
class Test(unittest.TestCase):
"""A rucola-mustache plugin"""
def setUp(self):
self.app = Rucola(os.path.dirname(__file__))
# Basic
def test_render_path(self):
app = Rucola()
app.create... | Python | 0 | @@ -381,32 +381,40 @@
te('url2.html',
+content=
'My path: %7B%7B pat
@@ -866,16 +866,24 @@
.html',
+content=
'My path
@@ -927,16 +927,24 @@
st.md',
+content=
'My path
@@ -2823,16 +2823,24 @@
.html',
+content=
'%7B%7B%3E sam
|
d147832e3c6d86ec81c2ea35bde1de7358cac27e | Fix atol in test | tests/tests_twobody/test_sampling.py | tests/tests_twobody/test_sampling.py | from functools import partial
import hypothesis.strategies as st
import numpy as np
from astropy import units as u
from astropy.tests.helper import assert_quantity_allclose
from hypothesis import example, given, settings
from poliastro.twobody.sampling import sample_closed
angles = partial(st.floats, min_value=-2 * ... | Python | 0.000001 | @@ -1574,16 +1574,51 @@
_q(),%0A)%0A
+@example(1e-16 * u.rad, 0 * u.one)%0A
@example
@@ -1870,16 +1870,36 @@
, min_nu
+, atol=1e-14 * u.rad
)%0A as
|
6979d67e50366ec0fb1336cec8a5a69fee190433 | Update TFRT dependency to use revision http://github.com/tensorflow/runtime/commit/7c99aeadacee949f4de11eafe7e83bae80358791. | third_party/tf_runtime/workspace.bzl | third_party/tf_runtime/workspace.bzl | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "a0616887359cc71195d562d2f6eb53abd7080f4a"
TFRT_SHA256 = "943724d90fecd811d6c93cb7d3f5... | Python | 0.000003 | @@ -228,133 +228,133 @@
= %22
-a0616887359cc71195d562d2f6eb53abd7080f4a%22%0A TFRT_SHA256 = %22943724d90fecd811d6c93cb7d3f5d8a2a11f7a74f416edaeb046ad552528bd5e
+7c99aeadacee949f4de11eafe7e83bae80358791%22%0A TFRT_SHA256 = %22482deb3aecbaff840b9de99c5dc571a2cd1e2e7b7f7fbce6ea3f6782a02f10fc
%22%0A%0A
|
bccbd3ec0795371653c8d0cd5cc82999715b0687 | Update TFRT dependency to use revision http://github.com/tensorflow/runtime/commit/36bc3321fbeacbc170257d5f345f0962fde39a64. | third_party/tf_runtime/workspace.bzl | third_party/tf_runtime/workspace.bzl | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "3d3b2e9a5cdb682c2cb7a04f80846734dafb9880"
TFRT_SHA256 = "73af62ae6962b38e1fe8d675a43a... | Python | 0 | @@ -229,132 +229,132 @@
= %223
-d3b2e9a5cdb682c2cb7a04f80846734dafb9880%22%0A TFRT_SHA256 = %2273af62ae6962b38e1fe8d675a43a9f47e9c3df7203aea2c6b26a4172c660f7d2
+6bc3321fbeacbc170257d5f345f0962fde39a64%22%0A TFRT_SHA256 = %2261cb6c8bf4c69b71475572c4730921a70bb6759f150a691c90d93df3919c264b
%22%0A%0A
|
968a1751ef6ccadc30ac6bd0f0be5056ac0e9288 | Update TFRT dependency to use revision http://github.com/tensorflow/runtime/commit/780e7a8cc4bb4c9338ad2da7cf63c75ce491cb96. | third_party/tf_runtime/workspace.bzl | third_party/tf_runtime/workspace.bzl | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "04472136dd8959de458771bbe1127f7a860e6884"
TFRT_SHA256 = "16e69b914bb119dbe30422b86e7d... | Python | 0.000001 | @@ -228,131 +228,131 @@
= %22
-04472136dd8959de458771bbe1127f7a860e6884%22%0A TFRT_SHA256 = %2216e69b914bb119dbe30422b86e7db2cc8c9e13b36e7b3346200f86363e6fa1
+780e7a8cc4bb4c9338ad2da7cf63c75ce491cb96%22%0A TFRT_SHA256 = %22983a6740b2d2737bb2b0fc50caed7aca8a18760f2d7efde0dd0049d0cf6e1b
1c%22%0A
|
0f28fe59a0f166f70b7fa9e6f4b209cc7632a126 | Update TFRT dependency to use revision http://github.com/tensorflow/runtime/commit/abc30e257aea33e6637010a90e015f018ac065ca. | third_party/tf_runtime/workspace.bzl | third_party/tf_runtime/workspace.bzl | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "02ce138aadc5b4a7f585085fe75d9024d921c5a5"
TFRT_SHA256 = "1abe70a9684aadf8aa5b2ce32d5b0a1ac67f4f8f7fb0fb... | Python | 0.000002 | @@ -210,133 +210,133 @@
= %22
-02ce138aadc5b4a7f585085fe75d9024d921c5a5%22%0A TFRT_SHA256 = %221abe70a9684aadf8aa5b2ce32d5b0a1ac67f4f8f7fb0fb0ee95bcea7a3036bae
+abc30e257aea33e6637010a90e015f018ac065ca%22%0A TFRT_SHA256 = %229382080217c32d0a0029fe58e72efd711323ddebd70f20844ca8bb1d2a3d875a
%22%0A%0A
|
f2ff64a2897610d8b3d629ce9a198f60fb5402ce | Update TFRT dependency to use revision http://github.com/tensorflow/runtime/commit/e3a3076004d39ea17f6573898033e78a6321f505. | third_party/tf_runtime/workspace.bzl | third_party/tf_runtime/workspace.bzl | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "ff325fafd1976e494831e9b3897ddf2c93235fbc"
TFRT_SHA256 = "ff221d793a6938cddb8075bf599a5060864803e0a96eef... | Python | 0.000002 | @@ -210,133 +210,133 @@
= %22
-ff325fafd1976e494831e9b3897ddf2c93235fbc%22%0A TFRT_SHA256 = %22ff221d793a6938cddb8075bf599a5060864803e0a96eef78bce0cece0dde4844
+e3a3076004d39ea17f6573898033e78a6321f505%22%0A TFRT_SHA256 = %2299b146cbac1288f104e65060219b63c26ea0d485d1de0b7da79eb165abba420c
%22%0A%0A
|
3dfb6078d3f22235a856183499f5c1d6581a7de7 | Update TFRT dependency to use revision http://github.com/tensorflow/runtime/commit/7ed8de2e571d95575634f354762740aefd34e7fb. | third_party/tf_runtime/workspace.bzl | third_party/tf_runtime/workspace.bzl | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "433795f38edd59236fc2ce2acc2f050be4646d8f"
TFRT_SHA256 = "37beb3024c1821e93f42959dd14f845467b17a35f6e10d... | Python | 0.000001 | @@ -210,133 +210,133 @@
= %22
-433795f38edd59236fc2ce2acc2f050be4646d8f%22%0A TFRT_SHA256 = %2237beb3024c1821e93f42959dd14f845467b17a35f6e10dfe414631469d9c4465
+7ed8de2e571d95575634f354762740aefd34e7fb%22%0A TFRT_SHA256 = %2233831854b097fc733649886d74e6c10546c8aeee94e953cf3f020a05beadab69
%22%0A%0A
|
2026cf7b4d6e82ae66e9ea1adc9d9dfeef3de879 | Add two more results to the startup metric. | tools/perf/metrics/startup_metric.py | tools/perf/metrics/startup_metric.py | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import collections
import json
import logging
from telemetry.core import exceptions
from telemetry.value import histogram_util
from telemetry.value import sc... | Python | 0.000009 | @@ -643,16 +643,170 @@
penTabs'
+,%0A 'first_non_empty_paint_time' : 'Startup.FirstWebContents.NonEmptyPaint',%0A 'first_main_frame_load_time' : 'Startup.FirstWebContents.MainFrameLoad'
%7D%0A%0A def
|
56a8899e59a3ec0e2898435d6deb8f9c80001da3 | Use closing ctx manager. | src/hunter/remote.py | src/hunter/remote.py | from __future__ import print_function
import argparse
import errno
import json
import os
import signal
import socket
import sys
import time
from contextlib import contextmanager
from subprocess import check_call
import manhole
from manhole import get_peercred
from manhole.cli import parse_signal
from . import action... | Python | 0 | @@ -134,16 +134,47 @@
rt time%0A
+from contextlib import closing%0A
from con
@@ -1414,32 +1414,40 @@
f-8')%0A%0A with
+closing(
connect_manhole(
@@ -1474,32 +1474,33 @@
ut, args.signal)
+)
as manhole:%0A
@@ -1586,16 +1586,24 @@
with
+closing(
connect_
@@ -1646,16 +1646,17 @@
.signal)
+)
as manh
|
2c6d6f8f23a49422a4ba6d16a7bc5bc5259efa25 | Notifications for anonymous comments should also be anonymous | src/idea/__init__.py | src/idea/__init__.py | from django.contrib.comments.signals import comment_was_posted
from django.dispatch import receiver
from idea.models import Idea
@receiver(comment_was_posted)
def send_idea_notifications(sender, comment, request, **kwargs):
# If installed in collab
try:
from core.notifications.models import Notificati... | Python | 0.998036 | @@ -97,37 +97,8 @@
ver%0A
-from idea.models import Idea%0A
%0A%0A@r
@@ -437,27 +437,252 @@
-title = u%22%25s %25s com
+if comment.is_anonymous:%0A title = u'Someone commented on %22%25s%22' %25 idea.title%0A text_template = 'new_comment_anonymous.txt'%0A html_template = 'new_com... |
7b03e220263c365689bbd3699ecbabadee0552ac | Add serial interface | server/main.py | server/main.py | #!/usr/bin/python3 -tt
# -*- coding: utf-8 -*-
import re
import json
from http.server import HTTPServer, BaseHTTPRequestHandler
from urllib.parse import urlparse, parse_qs
def run(server_class=HTTPServer, handler_class=BaseHTTPRequestHandler):
server_address = ('', 8000)
httpd = server_class(server_address, ... | Python | 0.000001 | @@ -63,16 +63,65 @@
rt json%0A
+from serial import Serial%0Afrom time import sleep%0A
from htt
@@ -217,16 +217,444 @@
se_qs%0A%0A%0A
+class Car(object):%0A%0A def __init__(self, *args, **kwargs):%0A self.serial = Serial(*args, **kwargs)%0A%0A def forward(self):%0A self.serial.write(b'f')%0A%0A ... |
45b39e8fca6341e69c3772c5914f8c78fb9545f8 | Fix bug with game screen UI being created more than once | Source/Gamestates/gamescreen.py | Source/Gamestates/gamescreen.py | import pygame, sys
from input import xo_input
from UI.uicontainer import UIContainer
class GameScreen:
def __init__(self, manager, screen):
self.stateManager = manager
self.window = screen
self.uiContainer = UIContainer(self.window)
self.uiContainer.horizontalStride = 5
se... | Python | 0 | @@ -301,16 +301,51 @@
ride = 5
+%0A self.initializedUI = False
%0A%0A
@@ -413,32 +413,71 @@
ef start(self):%0A
+ if not self.initializedUI:%0A
# Button
@@ -491,16 +491,20 @@
+
+
padding
@@ -508,16 +508,20 @@
ng = 10%0A
+
@@ -545,16 +545,20 @@
... |
77379f70fdd817ab5c4ea66d3bc0c4b4f125d6b1 | Put content of README.rst inside setup.py | setup/setup.py | setup/setup.py | # Always prefer setuptools over distutils
from setuptools import setup, find_packages
import os
import shutil
import sys
this_dir = os.getcwd()
root_dir = os.path.dirname(this_dir)
release_dir = os.path.join(root_dir, "releases")
with open('README.rst', encoding='utf-8') as fobj:
LONG_DESCRIPTION = fobj.read()
... | Python | 0 | @@ -230,93 +230,527 @@
%22)%0A%0A
-with open('README.rst', encoding='utf-8') as fobj:%0A LONG_DESCRIPTION = fobj.read()
+%0ALONG_DESCRIPTION = %5C%0A%22%22%22With Brython you can write browser programs in Python instead of Javascript,%0Aby inserting Python code in an HTML page by::%0A%0A %3Cscript type=%22text/p... |
ec15f264f5deec8a31b72c52edecdbe16c6c3f1f | Fix Score Keeper | app_engine/plugins/score_keeper_plugin.py | app_engine/plugins/score_keeper_plugin.py | import re
from operator import attrgetter
from google.appengine.ext import db
BOT_ID = "100007101244912"
class Participant(db.Model):
"""Models an individual chat participant, with her score."""
name = db.StringProperty(indexed=False)
thread_id = db.StringProperty(indexed=True)
score = db.IntegerProperty(ind... | Python | 0.000001 | @@ -1324,25 +1324,28 @@
s(self,
-thread_id
+conversation
):%0A q
@@ -1393,25 +1393,42 @@
_id =%22,
-t
+conversation.GetT
hread
-_id
+Id()
)%0A %0A
@@ -1751,23 +1751,17 @@
-self.write_sess
+conversat
ion.
@@ -1772,27 +1772,16 @@
Message(
-thread_id,
message)
@@ -2612,33 +2612,19 @@
conversation
... |
9f3356d06067dbcc77a79afee6bccf80600dab28 | Add a method to get the idle time. Also data are directly readed in /proc/uptime. | server/systeminfo.py | server/systeminfo.py | #!/bin/python3
""" This script contains functions to access various system's info.
Author: Julien Delplanque
"""
import subprocess
def get_uptime():
""" Return the uptime of the system as a str using the command: $ uptime
"""
proc = subprocess.Popen(["uptime"], stdout=subprocess.PIPE, shell=True)
... | Python | 0 | @@ -128,16 +128,47 @@
bprocess
+%0Afrom datetime import timedelta
%0A%0Adef ge
@@ -228,39 +228,25 @@
s a
-str using the command: $ uptime
+timedelta object.
%0A
@@ -284,17 +284,55 @@
n(%5B%22
-uptime%22%5D,
+cat /proc/uptime%22%5D,%0A
std
@@ -418,16 +418,20 @@
ptime =
+int(
outp... |
d1bb0fc044962649c5d05b7f9e59d400fd7b471a | Update repo-infra to v0.2.2 | load.bzl | load.bzl | # Copyright 2019 The Kubernetes 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 required by applicable law or agreed to ... | Python | 0.000001 | @@ -905,72 +905,72 @@
= %22
-b5051a0dfd63560455fb4d291769444f45b621b27fe7d3b04441aa7d84264171
+ae75a3a8de9698df30dd5a177c61f31ae9dd3a5da96ec951f0d6e60b2672d5fe
%22,%0A
@@ -1011,17 +1011,17 @@
fra-0.2.
-1
+2
%22,%0A
@@ -1107,17 +1107,17 @@
ve/v0.2.
-1
+2
.tar.gz%22
|
b9cb58be7952f262d14ee2a5ecffd137d75152ed | Fix single_test.py | test/integrationtests/skills/single_test.py | test/integrationtests/skills/single_test.py | # Copyright 2017 Mycroft AI Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | Python | 0.000022 | @@ -2416,17 +2416,16 @@
rn test%0A
-%0A
@@ -3117,16 +3117,50 @@
TestCase
+, metaclass=IntentTestSequenceMeta
):%0A %22
@@ -3238,51 +3238,8 @@
%22%22%22%0A
- __metaclass__ = IntentTestSequenceMeta%0A
|
3727d5d15804b764e6ada3d41137d5fb03a2dcd5 | update for running tests in bamboo | mint_test/djangotest/inventorytest/systemdbmgrtest.py | mint_test/djangotest/inventorytest/systemdbmgrtest.py | #!/usr/bin/python
import os
import sys
import tempfile
import time
from testrunner import testhelp
from conary import versions
from conary.deps import deps
import mint_test
from mint_test import fixtures
builtins = sys.modules.keys()
class DjangoTest(fixtures.FixturedUnitTest):
def setUpDjangoSettingsModule(... | Python | 0 | @@ -1287,36 +1287,318 @@
ls%0A%0A def
-setUp(self):
+_unImport(self):%0A # %22Unimport%22 anything that was imported so the next test will have a new%0A # settings.py.%0A for k, v in sys.modules.items():%0A if k not in builtins or 'django' in k:%0A sys.modules.pop(k)%... |
06196dcac0573cd853e72222bd067ec023157a6c | add rejected apps to list_packaged_apps management command | mkt/webapps/management/commands/list_packaged_apps.py | mkt/webapps/management/commands/list_packaged_apps.py | from optparse import make_option
from django.core.exceptions import ObjectDoesNotExist
from django.core.management.base import BaseCommand
import amo
from files.models import File
HELP = 'List all Marketplace packaged apps'
statuses = {'pending': amo.STATUS_PENDING,
'public': amo.STATUS_PUBLIC,
... | Python | 0.000001 | @@ -355,16 +355,61 @@
_WAITING
+,%0A 'rejected': amo.STATUS_DISABLED
%7D%0A%0A%0Aclas
|
090d7a0e877b838beda7cb7ca6955673def8c243 | Remove debug code | bluebottle/utils/tests/test_functional.py | bluebottle/utils/tests/test_functional.py | from django.core.urlresolvers import reverse
from django.contrib.auth.models import Group
from django.template.response import TemplateResponse
from django.http.response import HttpResponseForbidden
from django.test.client import RequestFactory
from bluebottle.test.utils import BluebottleTestCase
from bluebottle.test.... | Python | 0.000299 | @@ -842,53 +842,8 @@
ser%0A
- import ipdb%0A ipdb.set_trace()%0A
|
ee6273f4bf2939294f0843e77ab9d6b8e7979cda | Remove reference to nonexistent attribute from string party sequence's representation | byceps/blueprints/shop/models/sequence.py | byceps/blueprints/shop/models/sequence.py | # -*- coding: utf-8 -*-
"""
byceps.blueprints.shop.models.sequence
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2016 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
from enum import Enum
from sqlalchemy.ext.hybrid import hybrid_property
from ....database import db
from ....util... | Python | 0.000001 | @@ -2122,45 +2122,8 @@
) %5C%0A
- .add_with_lookup('id') %5C%0A
|
ea88fcf63776c828f229c209ccf2617db4f806b2 | Fix missing import in feature extraction command-line script | src/extract_features.py | src/extract_features.py | '''
:author: Matt Mulholland
:date: September 18, 2015
Script used to extract features for review documents in the Mongo database.
'''
from os.path import (dirname,
realpath,
splitext)
from argparse import (ArgumentParser,
ArgumentDefaultsHelpFormatter)
... | Python | 0.000007 | @@ -150,16 +150,43 @@
import (
+join,%0A
dirname,
|
a5fdc9e16e83df3b7860486181638ff1bb59acd6 | Change dbaas_cloudstack version to 0.7.1 | dbaas/workflow/settings.py | dbaas/workflow/settings.py | DEPLOY_MYSQL = (
'workflow.steps.util.deploy.build_databaseinfra.BuildDatabaseInfra',
'workflow.steps.mysql.deploy.create_virtualmachines.CreateVirtualMachine',
'workflow.steps.mysql.deploy.create_secondary_ip.CreateSecondaryIp',
'workflow.steps.mysql.deploy.create_dns.CreateDns',
'workflow.steps.ut... | Python | 0.000002 | @@ -4477,21 +4477,405 @@
IGRATION
- = ()
+_1 = (%0A 'workflow.steps.util.region_migration.change_ttl.DecreaseTTL',%0A 'workflow.steps.mongodb.region_migration.create_virtualmachines.CreateVirtualMachine',%0A 'workflow.steps.util.region_migration.create_nfs.CreateNfs',%0A 'workflow.steps.util.region_migrati... |
eab6ee9671222836b32dc48b8dbf48bec3016b1e | Use rfc6266 package to build Content-Disposition header | depot/io/awss3.py | depot/io/awss3.py | """
Provides FileStorage implementation for Amazon S3.
This is useful for storing files in S3.
"""
from __future__ import absolute_import
from datetime import datetime
import uuid
from boto.s3.connection import S3Connection
from depot._compat import unicode_text
from .interfaces import FileStorage, StoredFile
from ... | Python | 0 | @@ -258,16 +258,31 @@
ode_text
+%0Aimport rfc6266
%0A%0Afrom .
@@ -4435,16 +4435,29 @@
etadata(
+%0A
'Content
@@ -4474,43 +4474,66 @@
on',
- 'inline; filename=%22%25s%22' %25 filename
+%0A str(rfc6266.build_header(filename, 'inline'))
)%0A%0A
|
6588c1f953f063b120e7f096cfd1ae0dfafcd9aa | Add 'gbf.game.mbga' to gbf checker | dogbot/bot/listeners/gbf.py | dogbot/bot/listeners/gbf.py | import re
import requests
from requests.exceptions import MissingSchema
from dogbot.cqsdk.utils import reply
GBF_PATTERN = re.compile("(((https|http|ftp|rtsp|mms)?://)" # 端口
"?(([0-9a-z_!~*'().&=+$%-]+: )?[0-9a-z_!~*'().&=+$%-]+@)?" # ftp 用戶密碼
"(([0-9]{1,3}\.){3}[0-... | Python | 0.000038 | @@ -147,21 +147,8 @@
http
-%7Cftp%7Crtsp%7Cmms
)?:/
@@ -1152,16 +1152,47 @@
ranblue'
+ in resp.url or 'gbf.game.mbga'
in resp
|
2ba112eca05c32fe8246d262e35a9ed3ea9fb57b | make it run under Python3 | deps/src/patch.py | deps/src/patch.py | #!/usr/bin/env python
# Starting point https://github.com/llvm-mirror/clang/blob/master/bindings/python/examples/cindex/cindex-dump.py
#
# Needs clang module to be installed.
#
from __future__ import print_function
import os
import re
import requests
import sys
import shutil
try:
from clang.cindex import Index
... | Python | 0.000081 | @@ -1157,24 +1157,25 @@
(cblas_h, %22w
+b
%22) as io:%0A
@@ -1595,24 +1595,25 @@
lapack_h, %22w
+b
%22) as io:%0A
|
efe4c1390e6d5b490628243a6147cd60d5c78950 | use of os.path.exists(path) instead of the magic library | detectFicChiff.py | detectFicChiff.py | #! /usr/bin/python2.7
import sys
import math
import os
import calcEntFic
import testBrokFic
#02 novembre 9h
try:
thresEnt = 7.999
cible = str(sys.argv[1])
seuil = int(sys.argv[2]) * 1000
ech = int(sys.argv[3])
resultats = []
except:
print "argument invalides"
print "Usage: " + sys.argv[0] ... | Python | 0.000001 | @@ -69,27 +69,8 @@
tFic
-%0Aimport testBrokFic
%0A%0A#0
@@ -172,16 +172,19 @@
) * 1000
+000
%0A%09ech =
@@ -199,16 +199,26 @@
argv%5B3%5D)
+ * 1000000
%0A
@@ -328,33 +328,33 @@
ectory min_size%5B
-K
+M
o%5D N-first_Bytes
@@ -356,32 +356,36 @@
Bytes_to_be_read
+%5BMo%5D
%22%0A%09sys.exit()%0A#C
@@ -522... |
7dc9b0dac57acb9d956dd923ebd0e8e146b85d38 | fix for aws-ec2-initialization-commands not being set | smr/config.py | smr/config.py | from __future__ import (absolute_import, division,
print_function, unicode_literals)
import argparse
import datetime
import logging
import os
import sys
from .version import __version__
LOG_LEVELS = {
"critical": logging.CRITICAL,
"error": logging.ERROR,
"warning": logging.WARNING... | Python | 0 | @@ -4807,16 +4807,201 @@
g_path)%0A
+ parser.add_argument(%22--aws-ec2-initialization-commands%22, help=%22initialization commands to use for EC2 instances%22, nargs=%22+%22, default=default_config.aws_ec2_initialization_commands)%0A
pars
|
5bb2ee7b2a8e0d51437d6536f6cd336ae48fa4a5 | Add ability to match 'Error:\n...', and escape error string | diagnose_error.py | diagnose_error.py | from __future__ import with_statement
import os, sys, tempfile, subprocess, re
from memoize import memoize
__all__ = ["has_error", "get_error_line_number", "make_reg_string", "get_coq_output", "get_error_string"]
DEFAULT_ERROR_REG_STRING = 'File "[^"]+", line ([0-9]+), characters [0-9-]+:\n([^\n]+)'
DEFAULT_ERROR_REG... | Python | 0.001195 | @@ -287,16 +287,32 @@
9-%5D+:%5Cn(
+Error:%5Cs*%5B%5E%5Cn%5D+%7C
%5B%5E%5Cn%5D+)'
@@ -1467,16 +1467,26 @@
NERIC %25
+re.escape(
get_erro
@@ -1501,16 +1501,17 @@
(output)
+)
%0A%0A@memoi
|
5b4d09e631a15b120e05350de1a0e30419268716 | make tests fail if they can't be imported | Lib/ctypes/test/__init__.py | Lib/ctypes/test/__init__.py | import os, sys, unittest, getopt, time
use_resources = []
class ResourceDenied(Exception):
"""Test skipped because it requested a disallowed resource.
This is raised when a test calls requires() for a resource that
has not be enabled. Resources are defined by test modules.
"""
def is_resource_enabl... | Python | 0.000001 | @@ -2598,151 +2598,8 @@
nue%0A
- except Exception, detail:%0A print %3E%3E sys.stderr, %22Warning: could not import %25s: %25s%22 %25 (modname, detail)%0A continue%0A
|
5d2043d0b662f38bd51e062367c2e4b703b457a1 | Update version 0.11.4 -> 0.11.5 | dimod/__init__.py | dimod/__init__.py | # Copyright 2018 D-Wave Systems Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | Python | 0 | @@ -701,9 +701,9 @@
.11.
-4
+5
'%0A%0Af
|
8d660f68b34eddce1c5f728ef62fea9b6bf9111b | remove help msg for --no-production-names as it's redundant | Lib/fontmake/__main__.py | Lib/fontmake/__main__.py | # Copyright 2015 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 a... | Python | 0.000029 | @@ -2544,138 +2544,8 @@
lse'
-,%0A help='Do not rename glyphs with production names. '%0A 'Keeps original glyph names'
)%0A
|
82a98819ccd1385333ad64351baf80a9139984f3 | Extend debug decorator -- add new output style "LINE" | edgedb/lang/common/debug.py | edgedb/lang/common/debug.py | ##
# Copyright (c) 2008-2010 Sprymix Inc.
# All rights reserved.
#
# See LICENSE for details.
##
import inspect
import re
import ast
from semantix.utils.functional import decorate
enabled = False
channels = set()
class DebugDecoratorParseError(Exception): pass
def _indent_code(source, absolute=None, relative=None... | Python | 0.001918 | @@ -1581,19 +1581,34 @@
ile(r'''
-LOG
+(?P%3Ctype%3ELOG%7CLINE)
%0A
@@ -1941,16 +1941,51 @@
h('LOG')
+ or node.value.s.startswith('LINE')
:%0A
@@ -2076,16 +2076,75 @@
if m:%0A
+ type = m.group('type').strip()%0A
@@ -2793,16 +2793,70 @@
title:%0A
+ ... |
68860fcc9d5fc201017ca910577620e9d833c2c3 | modify SO | addons/stock_dropshipping/models/sale.py | addons/stock_dropshipping/models/sale.py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, models, fields
class SaleOrderLine(models.Model):
_inherit = "sale.order.line"
purchase_line_ids = fields.One2many('purchase.order.line', 'sale_line_id')
@api.multi
def _get_qty_... | Python | 0.000007 | @@ -484,70 +484,8 @@
if
-not self.move_ids.filtered(lambda r: r.state != 'cancel') and
purc
|
6e5f3a32d638f5475ed729352316e3dbfc653a69 | Fix issue #455 | examples/cc/42-as_casci_fcisolver.py | examples/cc/42-as_casci_fcisolver.py | #!/usr/bin/env python
'''
Using the CCSD method as the active space solver to compute an approximate
CASCI energy.
A wrapper is required to adapt the CCSD solver to CASCI fcisolver interface.
Inside the wrapper function, the CCSD code is the same as the example
40-ccsd_with_given_hamiltonian.py
'''
import numpy
from... | Python | 0 | @@ -1078,21 +1078,38 @@
re,
+FakeCIVector(
%5Bt1,
+
t2,
+
l1,
+
l2%5D
+)
%0A%0A
@@ -1209,32 +1209,45 @@
l1, l2 = fake_ci
+.cc_amplitues
%0A dm1 = r
@@ -1938,16 +1938,116 @@
n 0, 1%0A%0A
+class FakeCIVector:%0A def __init__(self, cc_amplitues):%0A self.cc_amplitues = cc_amplitues%0A%0A
m... |
39489603c44232d587796beeeb76516475ccf19b | set filter dimensions in python script | examples/cuda/convolution_correct.py | examples/cuda/convolution_correct.py | #!/usr/bin/env python
""" convolution with correctness checks
This example is mostly the same as the Convolution example. The only
difference is that a naive kernel is used to compute a reference
output. This reference output is used to check the correctness of
every kernel before it is benchmarked.
This is done usin... | Python | 0 | @@ -1260,16 +1260,43 @@
read()%0A%0A
+ filter_size = (17, 17)%0A
prob
@@ -1355,16 +1355,77 @@
m_size)%0A
+ border_size = (filter_size%5B0%5D//2*2, filter_size%5B1%5D//2*2)%0A
inpu
@@ -1451,18 +1451,30 @@
size%5B0%5D+
-16
+border_size%5B0%5D
) * (pro
@@ -1486,18 +1486,30 @@
size%5B1%5D+
-16
+border_... |
f55b787de3794732c85c007bd3abd38a76075577 | Remove unused global variable | google3/third_party/py/android_env/components/remote_controller_test.py | google3/third_party/py/android_env/components/remote_controller_test.py | # Lint as: python3
"""Tests for android_env.components.remote_controller."""
import time
from absl.testing import absltest
from android_env.components import action_type
from android_env.components import adb_controller
from android_env.components import dumpsys_thread
from android_env.components import emulator_simu... | Python | 0 | @@ -596,84 +596,8 @@
np%0A%0A
-_ROOT_DIR = 'google3.learning.deepmind.rl.environments.android.components'%0A%0A
%0Acla
|
4b67508330ac970608df43302f103a9d1eedb37a | Revert "Pulseaudio: Changed default port from 4712 to 4713 (#28857)" (#30939) | homeassistant/components/pulseaudio_loopback/switch.py | homeassistant/components/pulseaudio_loopback/switch.py | """Switch logic for loading/unloading pulseaudio loopback modules."""
from datetime import timedelta
import logging
import re
import socket
import voluptuous as vol
from homeassistant import util
from homeassistant.components.switch import PLATFORM_SCHEMA, SwitchDevice
from homeassistant.const import CONF_HOST, CONF_... | Python | 0 | @@ -676,17 +676,17 @@
RT = 471
-3
+2
%0ADEFAULT
|
c48ec1352dd7dc268858ba0c08f4f9376c85e5b6 | Update mechanism of reducing speed | src/navi/tools/agent.py | src/navi/tools/agent.py | import random
from navi.tools import logic, config
__author__ = 'paoolo'
class Eye(object):
def __init__(self, laser):
self.__laser, self.__scan = laser, None
self.__laser.subscribe(self)
def get(self):
return self.__scan
def handle(self, scan):
self.__scan = scan
MA... | Python | 0 | @@ -3123,24 +3123,81 @@
LIMIT_DIST:%0A
+ current_speed = (left + right) / 2.0%0A
@@ -3250,16 +3250,17 @@
stance)%0A
+%0A
@@ -3275,55 +3275,42 @@
-left = max_speed if left %3E max_speed else left%0A
+if current_speed %3E max_speed:%0A
@@ -3325,21 +3325,22 @@
... |
46536609871f48160722fa0e1abae5a94cdf499e | Update searchAndStoreTweets.py | app/utils/insert/searchAndStoreTweets.py | app/utils/insert/searchAndStoreTweets.py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Search and Store Tweets utility.
Search for tweets in the Twitter API for given input terms, then store
the tweet and the tweet's author data locally, updating or adding objects
as required.
Send search terms as arguments to the command-line tool to search for
them. ... | Python | 0.000001 | @@ -2955,23 +2955,27 @@
terms (
+must
escape
-d
)%0A -
@@ -2984,25 +2984,36 @@
#abc
- OR
+%0A -
'#def
-'
OR xyz
+ OR #ghi'
%0A *
@@ -3048,17 +3048,25 @@
es (
+must
escape
-d
).
+%0A
Not
@@ -3071,20 +3071,16 @@
ote that
-%0A
quoted
@@ -3105,16 +3105,20 @@
r before
+%0A
other t
@@... |
3c77617141542fe6bb6aac897aff554cd3c1ec08 | fix missing pbx frameworks | recipes/sdl2/__init__.py | recipes/sdl2/__init__.py | from toolchain import Recipe, shprint
import sh
class LibSDL2Recipe(Recipe):
version = "2.0.8"
url = "https://www.libsdl.org/release/SDL2-{version}.tar.gz"
#version = "iOS-improvements"
#url = "https://bitbucket.org/slime73/sdl-experiments/get/{version}.tar.gz"
library = "Xcode-iOS/SDL/build/Relea... | Python | 0.000006 | @@ -388,16 +388,25 @@
orks = %5B
+%0A
%22OpenGLE
@@ -463,20 +463,16 @@
-
%22CoreMot
@@ -518,16 +518,33 @@
%22Metal%22
+,%0A %22UIKit%22
%5D%0A%0A d
|
595218c33892facf0cf26e5e6b3e16b2c02e737e | Add a stub for fts_updates | spring/settings.py | spring/settings.py | from urlparse import urlparse
from logger import logger
class WorkloadSettings(object):
def __init__(self, options):
self.creates = options.creates
self.reads = options.reads
self.updates = options.updates
self.deletes = options.deletes
self.cases = 0 # Stub for library ... | Python | 0 | @@ -942,16 +942,45 @@
g = None
+%0A self.fts_updates = 0
%0A%0A
|
f0a41081cbbaa3d8a78a8a05da15a8c5bbb94f93 | Fix ssh issue for FreeBSD. | azurelinuxagent/distro/freebsd/osutil.py | azurelinuxagent/distro/freebsd/osutil.py | # Microsoft Azure Linux Agent
#
# Copyright 2014 Microsoft Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | Python | 0 | @@ -759,94 +759,8 @@
til%0A
-import azurelinuxagent.utils.fileutil as fileutil%0Aimport azurelinuxagent.conf as conf%0A
impo
@@ -1063,16 +1063,120 @@
False%0A%0A
+ def restart_ssh_service(self):%0A return shellutil.run('service sshd restart', chk_err=False)%0A%0A
def
|
10b5182bd5ee2a2dc8fa1d13c8db1237077b0209 | Fix linting error | bin/prxtransfer-dns-station-migration.py | bin/prxtransfer-dns-station-migration.py | import boto3
client = boto3.client("route53")
# List the FTP subdomains that should have explicit DNS records added
subdomains = [
"wxyz",
]
changes = []
for subdomain in subdomains:
changes.append(
{
"Action": "UPSERT",
"ResourceRecordSet": {
"Name": f"{subd... | Python | 0.000015 | @@ -156,16 +156,97 @@
s = %5B%5D%0A%0A
+name = %22infra-FtpSe-1W1OF5U4X8M3Z-284373e0ff42a3aa.elb.us-east-1.amazonaws.com%22%0A%0A
for subd
@@ -570,80 +570,12 @@
e%22:
-%22infra-FtpSe-1W1OF5U4X8M3Z-284373e0ff42a3aa.elb.us-east-1.amazonaws.com%22
+name
,%0A
|
4f9dd639566515e956812d38f2932237a487a4e6 | Fix typo | bitbots_common/scripts/launch_warning.py | bitbots_common/scripts/launch_warning.py | #!/usr/bin/env python3
import rospy
rospy.logerr("###\n###\n###\n###\n###\nYou didn't specifiy which robot you want to start!\nPlease add minibot:=true or woflgang:=true or davros:=true behind you roslaunch.\n###\n###\n###\n###\n###") | Python | 0.999999 | @@ -155,10 +155,10 @@
r wo
-f
l
+f
gang
@@ -228,8 +228,9 @@
#%5Cn###%22)
+%0A
|
ad19f15ed4609c67c1325a02005062b15d503705 | customize plot style | streamteam/integrate/tests/helpers.py | streamteam/integrate/tests/helpers.py | # coding: utf-8
""" Test helpers """
from __future__ import division, print_function
__author__ = "adrn <adrn@astro.columbia.edu>"
# Standard library
import os, sys
# Third-party
import matplotlib.pyplot as plt
import numpy as np
def plot(ts, q, p):
""" Make some helpful plots for testing the integrators. """... | Python | 0 | @@ -246,16 +246,55 @@
ts, q, p
+, marker='.', alpha=0.75, linestyle='-'
):%0A %22
@@ -511,19 +511,22 @@
(marker=
-'.'
+marker
, linest
@@ -529,19 +529,38 @@
nestyle=
-'-'
+linestyle, alpha=alpha
)%0A fo
@@ -682,217 +682,93 @@
i%5D,
-linestyle='-',%0A marker='.', alpha=0.75)... |
9898632327cfe6d8f1c91754be13270603265e36 | Add the "default assignement" probability model | src/probabilitymodel.py | src/probabilitymodel.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import unittest
from framestructure import *
from collections import defaultdict
from functools import reduce
NO_PREP = "no_prep_magic_value"
def multi_get(d, l):
"""Traverses multiple levels of a dictionary to get a key or None"""
return reduce(lambda d,k: d.ge... | Python | 0.999997 | @@ -397,32 +397,313 @@
__init__(self):%0A
+ self.data_default = %7B%0A VerbnetFrame.slot_types%5B%22subject%22%5D:%22Agent%22,%0A VerbnetFrame.slot_types%5B%22object%22%5D:%22Theme%22,%0A VerbnetFrame.slot_types%5B%22indirect_object%22%5D:%22Recipient%22,%0A VerbnetFr... |
cfad3e375dc57e6b4b59c3892d31773221255686 | use `eden prefetch` on windows | build/fbcode_builder/getdeps/copytree.py | build/fbcode_builder/getdeps/copytree.py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import absolute_import, division, print_function, unicode_literals
import os
import shutil
import subprocess
from .platform ... | Python | 0 | @@ -1692,185 +1692,8 @@
IRS%0A
- if is_windows():%0A # prefetch takes longer than not prefetching our opensource%0A # projects until we cut over to the new globfiles implementation%0A return%0A
|
a663ad5171b1f736b0ca781606a4426fad04ccd0 | Handle missing screen name on email address confirmation request | byceps/services/user/creation_service.py | byceps/services/user/creation_service.py | """
byceps.services.user.creation_service
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2021 Jochen Kupperschmidt
:License: Revised BSD (see `LICENSE` file for details)
"""
from __future__ import annotations
from datetime import datetime
from typing import Optional
from flask import current_app
from ...dat... | Python | 0.000003 | @@ -4850,24 +4850,98 @@
ail_address)
+%0A screen_name = user.screen_name if user.screen_name else 'UnknownUser'
%0A%0A email_
@@ -5042,21 +5042,16 @@
ddress,
-user.
screen_n
|
b6bc4cdff2efbda928ad223929dbc595a0fa842e | Add executable property to Python/makeopcodetargets.py | Python/makeopcodetargets.py | Python/makeopcodetargets.py | #! /usr/bin/env python
"""Generate C code for the jump table of the threaded code interpreter
(for compilers supporting computed gotos or "labels-as-values", such as gcc).
"""
import imp
import os
def find_module(modname):
"""Finds and returns a module in the local dist/checkout.
"""
modpath = os.path.jo... | Python | 0.000002 | |
bf69e6d248f58245258c350a6f427d9dc2f05343 | Correct transit test failure | test/469-transit-features.py | test/469-transit-features.py | # way 91806504
assert_has_feature(
16, 10470, 25316, 'transit',
{ 'kind': 'bus_stop' })
# node 1241518350
assert_has_feature(
16, 10480, 25332, 'transit',
{ 'kind': 'bus_stop' })
# way 196670577
assert_has_feature(
16, 10486, 25326, 'transit',
{ 'kind': 'platform' })
| Python | 0.000004 | @@ -151,23 +151,20 @@
25332, '
-transit
+pois
',%0A %7B
|
3cca42d17c7bdcd250df3723240c760434a08a60 | update create cloud account command example | catoclient/commands/createcloudaccount.py | catoclient/commands/createcloudaccount.py | #########################################################################
# Copyright 2011 Cloud Sidekick
#
# 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... | Python | 0 | @@ -875,18 +875,16 @@
Creates
-a
new Clou
@@ -896,56 +896,236 @@
ount
-.'%0A API = 'create_account'%0A Examples = '''
+ credentials in Cato used to access a cloud endpoint.'%0A API = 'create_account'%0A Examples = '''%0A cato-create-cloud-account -name %22vcloudtest%22 -v %22vCloud%22 -l %22tom.... |
a2adce3bb374acf7e2eef1fd6dfc6648027ab06d | Modify the views according to the modification of models | sites/views.py | sites/views.py | from django.http import HttpResponse
from django.template import loader
from django.shortcuts import render,render_to_response
from django.http import Http404
from sites.models import *
def sites_overview(request):
# if not Sites.objects.all():
#
# site = Sites(site_name='Demo Site', site_id='1',date='... | Python | 0 | @@ -1289,25 +1289,24 @@
site = Site
-s
.objects.fil
|
4fb65741f91224c22ad504313f513a76f12f08a5 | update errors.py doc | sldc/errors.py | sldc/errors.py | # -*- coding: utf-8 -*-
class TileExtractionException(Exception):
"""
Thrown when a tile is requested but cannot be fetched
"""
pass
class ImageExtractionException(Exception):
"""
Thrown when an image is requested cannot be extracted
"""
pass
| Python | 0.000001 | @@ -18,16 +18,95 @@
-8 -*-%0A%0A
+__author__ = %22Romain Mormont %3Cromainmormont@hotmail.com%3E%22%0A__version__ = %220.1%22%0A%0A
%0Aclass T
@@ -139,37 +139,32 @@
eption):%0A %22%22%22
-%0A
Thrown when a ti
@@ -200,21 +200,16 @@
fetched
-%0A
%22%22%22%0A
@@ -265,21 +265,16 @@
%0A %22%22%22
-... |
6dcbaa509546678666cfe74c7b58993bc0bfacb9 | update tests to use the cluster arg | ceph_deploy/tests/unit/util/test_paths.py | ceph_deploy/tests/unit/util/test_paths.py | from ceph_deploy.util import paths
class TestMonPaths(object):
def test_base_path(self):
assert paths.mon._base.endswith('/ceph-')
def test_path(self):
result = paths.mon.path('myhostname')
assert result.startswith('/')
assert result.endswith('/ceph-myhostname')
def test... | Python | 0 | @@ -197,16 +197,24 @@
on.path(
+'ceph',
'myhostn
@@ -211,32 +211,32 @@
, 'myhostname')%0A
-
assert r
@@ -366,16 +366,24 @@
on.done(
+'ceph',
'myhostn
@@ -499,32 +499,32 @@
est_init(self):%0A
-
result =
@@ -539,16 +539,24 @@
on.init(
+'ceph',
'myhostn
|
dcedaad395bf02bae673beb2343e8cf1c4b8b8b2 | arrange title var removed | p/poc.py | p/poc.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
r"""
███████████████████████████████████
███████████████████████████████████
███████▀███████████████████▀███████
████████▄▀███████████████▀▄████████
██████████▄▀███████████▀▄██████████
███████████▄▀███████▀▄███████████
... | Python | 0.000055 | @@ -1521,32 +1521,36 @@
s.post(%0A
+
GET_URL, data=js
@@ -3555,30 +3555,8 @@
%5B%5D%0A
- max_title_len = 0%0A
@@ -3678,103 +3678,8 @@
pl)%0A
- max_title_len = max(%0A max_title_len, len(json_list%5Bkey%5D%5B'resolved_title'%5D))%0A
|
22989e800ea71cbf32482e2bc128d81fd6317afa | Remove < and >-escape because people | parse.py | parse.py | import sys # stdin
import re # regexp
import os # rename
import json # dumps
import datetime # current date
qsize = 20;
chat_file = "chat.json"
users_file = "users.json"
DEBUG = False
server_msg = re.compile(r"\[(\d{2}:\d{2}:\d{2})\] \[Server thread/INFO\]: (.*)")
chat_message = re.compile(r"<([^ ]*)> (.*)")
achievem... | Python | 0 | @@ -949,16 +949,17 @@
pop(0)%0A%09
+#
message
@@ -1011,16 +1011,17 @@
>%22)%0A%09
+#
nick = n
|
0647264a7c9ac410a0d342250d4933b1ba5c7fb1 | print in main | pi/main.py | pi/main.py | import signal
import sys
import traceback
import datetime
from datetime import timedelta
from bus import Bus
from navigator import Navigator
from driver import Driver
from messages import read_messages, subscribe_to_cmd
from outbound import request_sensor_data, CMD_RETURN_SENSOR_DATA, \
set_motor_speed, set_right_mot... | Python | 0.000001 | @@ -613,16 +613,48 @@
= False%0A
+%09print('ir right': ir_right_mm)%0A
%09navigat
|
a71d4b861302db6101a399db9ef562d716f3c26e | Change k8s pod_request_factory to use yaml safe_load (#5120) | airflow/contrib/kubernetes/kubernetes_request_factory/pod_request_factory.py | airflow/contrib/kubernetes/kubernetes_request_factory/pod_request_factory.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | Python | 0 | @@ -1424,32 +1424,37 @@
req = yaml.
+safe_
load(self._yaml)
@@ -3500,16 +3500,21 @@
= yaml.
+safe_
load(sel
|
3530a1c0573b89df3ca47ed44e4b60a0e0ba7d18 | Change a local variable name (opt -> parser) | skeleton/__init__.py | skeleton/__init__.py | """
Basic Template system for project skeleton.
skeleton is similar to the template part of PasteScript but
without any dependencies; it should also be compatible with Python 3.
However in this early phase of development, it only target python 2.5+,
and tests require Mock.
"""
import codecs
import optparse
import o... | Python | 0 | @@ -458,19 +458,22 @@
s):%0A
-opt
+parser
= optpa
@@ -591,19 +591,22 @@
-opt
+parser
.add_opt
@@ -738,19 +738,22 @@
return
-opt
+parser
%0A%0A%0Aclass
|
a578e2e738a77f8ca0073b2b337a8fa79794500b | Change default SERVER_NAME to localhost:5000 | skeleton/settings.py | skeleton/settings.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Flask application default config:
# http://flask.pocoo.org/docs/config/#configuring-from-files
# https://github.com/mbr/flask-appconfig
DEBUG = True
TESTING = False
JS_LOG_LEVEL = 3 # log (1) < debug (2) < info (3) < warn (4) < error (5)
APP_NAME = 'Skeleton'
# Serv... | Python | 0 | @@ -341,28 +341,30 @@
NAME = '
-skeleton.dev
+localhost:5000
'%0A%0A# Aut
@@ -435,20 +435,22 @@
= '
-skeleton.dev
+localhost:5000
'%0AAP
|
9c53de5034d1f7184eba5f1d5414884386901cd9 | add empty return type test | test/completion/docstring.py | test/completion/docstring.py | """ Test docstrings in functions and classes, which are used to infer types """
# -----------------
# sphinx style
# -----------------
def f(a, b, c, d):
""" asdfasdf
:param a: blablabla
:type a: str
:type b: (str, int)
:type c: threading.Thread
:type d: :class:`threading.Thread`
:rtype: di... | Python | 0.000023 | @@ -595,16 +595,29 @@
e b: %60%60%0A
+ :rtype: %0A
%22%22%22%0A
@@ -645,16 +645,25 @@
%0A b%0A%0A
+#? %0Af()%0A%0A
# ------
|
d574cd0f50a5f1771ebb7f0cbc0295746108c937 | Add nitpicky | source/conf.py | source/conf.py | # -*- coding: utf-8 -*-
execfile("conf-travis.py")
# Pulling all repository components.
execfile("pull.py")
| Python | 0.000619 | @@ -46,16 +46,90 @@
s.py%22)%0A%0A
+# Check that all links are linking to existing documents%0Anitpicky = True%0A%0A
# Pullin
|
c703365ad09229ae0f66a7b42fa406bcbaeb2275 | Add better config for Google auth | skeleton/settings.py | skeleton/settings.py | # Django settings for skeleton project.
import os, datetime, socket
import djcelery
djcelery.setup_loader()
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
def abspath(*args):
"""convert relative paths to absolute paths relative to PROJECT_ROOT"""
return os.path.join(PROJECT_ROOT, *args)
DEBUG ... | Python | 0.000003 | @@ -6972,16 +6972,120 @@
otstrap'
+%0ASESSION_COOKIE_AGE = 1209600%0A%0ASESSION_SERIALIZER='django.contrib.sessions.serializers.PickleSerializer'
%0A%0ASIDELO
|
52338a07bba66da549a55391747d74a4a7e6aba3 | Set version to v3.0.0.dev13 | spacy/about.py | spacy/about.py | # fmt: off
__title__ = "spacy"
__version__ = "3.0.0.dev12"
__release__ = True
__download_url__ = "https://github.com/explosion/spacy-models/releases/download"
__compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-models/master/compatibility.json"
__shortcuts__ = "https://raw.githubusercontent.com/explo... | Python | 0.00001 | @@ -49,17 +49,17 @@
0.0.dev1
-2
+3
%22%0A__rele
|
8af4b9e4dfd6e8e273be5613c7dde017ae2a3354 | Fix compatibility.json link | spacy/about.py | spacy/about.py | # inspired from:
# https://python-packaging-user-guide.readthedocs.org/en/latest/single_source_version/
# https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py
__title__ = 'spacy'
__version__ = '1.6.0'
__summary__ = 'Industrial-strength Natural Language Processing (NLP) with Python and Cython'
__uri__ =... | Python | 0.000007 | @@ -647,63 +647,8 @@
json
-?token=ANAt54fi5zcUtnwGhMLw2klWwcAyHkZGks5Y0nw1wA%253D%253D
'%0A__
|
dad97a33179d6b7cb2c7024ea46983618162dc24 | Switch to verified https requests | slack/http_client.py | slack/http_client.py | # Copyright (c) 2014 Katsuya Noguchi
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish, dis... | Python | 0.000001 | @@ -1592,36 +1592,35 @@
=params, verify=
-Fals
+Tru
e).json()%0A _r
@@ -1780,12 +1780,11 @@
ify=
-Fals
+Tru
e).j
|
cf4436b69922b55bd612ad83cce0ff7ebf34a1d0 | Bump version | smarkets/__init__.py | smarkets/__init__.py | # Copyright (C) 2011 Smarkets Limited <support@smarkets.com>
#
# This module is released under the MIT License:
# http://www.opensource.org/licenses/mit-license.php
__version__ = '1.0.8'
def private(something):
something.__private__ = True
return something
__all__ = ()
| Python | 0 | @@ -182,9 +182,9 @@
1.0.
-8
+9
'%0A%0A%0A
|
a81f4e248c2412bd5e076d592777001f7f47ddca | fix inverted logic | ckanext/stadtzhnotify/commands/stadtzh.py | ckanext/stadtzhnotify/commands/stadtzh.py | #coding: utf-8
import sys
import os
import datetime
import smtplib
import uuid
import ckan.lib.cli
import paste.deploy.converters
import logging
from time import time
from pylons import config
from email.mime.text import MIMEText
from email.header import Header
from email import Utils
from urlparse import urljoin
from... | Python | 0.021154 | @@ -4565,20 +4565,16 @@
ath) if
-not
f.starts
|
e71bb55c2db45a8743c7e3b47f823d454319b317 | add poster to video | src/server/instagram.py | src/server/instagram.py | # Copyright 2017 Alex K (wtwf.com)
__author__ = 'wtwf.com (Alex K)'
import cgi
import datetime
import json
import logging
import re
import PyRSS2Gen as rss
from google.appengine.api import urlfetch
from google.appengine.ext import webapp
class RssFeed(webapp.RequestHandler):
"""Make RSS Feed for a (public) insta... | Python | 0 | @@ -1340,16 +1340,28 @@
deo/mp4%22
+ poster=%22%25s%22
/%3E%0A
@@ -1388,16 +1388,17 @@
o%3E%22%22%22 %25
+(
item%5B%22al
@@ -1406,24 +1406,34 @@
_media_url%22%5D
+, img_src)
%0A else:
|
d85c13937c1852e7e390aa366e904047d8542bf1 | Version 1.13. | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(
name='django-digest',
version='1.12',
description=('An implementation of HTTP Digest Authentication for Django.'),
long_description=(
"""
django-digest supplies a middleware (HttpDigestMiddleware) that may installed to protect access
to all URL... | Python | 0 | @@ -99,9 +99,9 @@
'1.1
-2
+3
',%0A
|
025a2d28fffcb178d35127b5ed76306a9f0f9818 | Include Django migrations in Python package (fixes #9) | setup.py | setup.py | import os
import re
from setuptools import setup
def get_package_version(package):
version = re.compile(r"(?:__)?version(?:__)?\s*=\s\"(.*)\"", re.I)
initfile = os.path.join(os.path.dirname(__file__), package, "__init__.py")
for line in open(initfile):
m = version.match(line)
if m:
... | Python | 0 | @@ -1254,24 +1254,57 @@
.commands',%0A
+ 'iprestrict.migrations',%0A
%5D,%0A i
|
1e710cde77cab75946ac290578230ece09a1e0d8 | fix name and package the same | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: bustta
# @Date: 2014-11-04 00:47:53
# @Last Modified by: bustta
# @Last Modified time: 2014-11-05 01:13:27
from distutils.core import setup
setup(
name = 'NewsParser',
packages = ['newsParser'],
scripts = [''],
version = '0.0.3',
descrip... | Python | 0.000003 | @@ -111,22 +111,26 @@
d by:
-bustta
+kenny.tsai
%0A# @Last
@@ -160,15 +160,15 @@
-05
-01:13:2
+10:10:3
7%0A%0Af
@@ -219,17 +219,17 @@
name = '
-N
+n
ewsParse
@@ -267,28 +267,8 @@
'%5D,%0A
- scripts = %5B''%5D,%0A
@@ -282,17 +282,17 @@
= '0.0.
-3
+4
',%0A d
@@ -513,17 +513,17 @@
ve/v0.0.
-3
+4... |
23b15ebead9c5818dc94471d5b56feaa1fcf24a7 | Bump version to 0.3.3 | setup.py | setup.py | import os
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
from bqx._func_generator import generate_funcpy
here = os.path.abspath(os.path.dirname(__file__))
if 'build' in sys.argv:
import pypandoc
with open(os.path.join(here, 'README.md')) as f:
... | Python | 0.000001 | @@ -691,9 +691,9 @@
0.3.
-2
+3
'%0A__
|
fb8ded55a0e09c2f953770e6bc1c7968c57f0c47 | Bump to version 1.12. | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(
name='django-digest',
version='1.11',
description=('An implementation of HTTP Digest Authentication for Django.'),
long_description=(
"""
django-digest supplies a middleware (HttpDigestMiddleware) that may installed to protect access
to all URL... | Python | 0 | @@ -95,17 +95,17 @@
ion='1.1
-1
+2
',%0A d
|
1b8a9cabd5f329f59f19572c34e1df4f5bfa0302 | Make Pygame a dependency. | setup.py | setup.py | from __future__ import with_statement
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
ledgrid_classifiers = [
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
"License :: OSI Approved :: BS... | Python | 0 | @@ -594,17 +594,17 @@
rsion=0.
-3
+4
,%0A
@@ -689,16 +689,69 @@
grid%22%5D,%0A
+ install_requires=%5B%0A 'pygame'%0A %5D,%0A
lo
|
d4c064f150ac506c7b8f0dc9ea2103b1cb8cab0e | Fix license description | setup.py | setup.py | #!/usr/bin/env python
import os
from distutils.core import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-alipay',
version='0.1',
... | Python | 0.000006 | @@ -1031,28 +1031,52 @@
ved :: G
-PLv3 License
+NU General Public License v3 (GPLv3)
',%0A
|
ba14198b7ed847a26cb548710ef46ff83563abe8 | Bump version to 2.1.1 | setup.py | setup.py | """setup.py"""
from codecs import open as codecs_open
from setuptools import setup
with codecs_open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
with codecs_open('HISTORY.rst', 'r', 'utf-8') as f:
history = f.read()
setup(
name='jsonrpcclient',
version='2.1.0',
description='Send JSON-RPC ... | Python | 0 | @@ -282,9 +282,9 @@
2.1.
-0
+1
',%0A
|
2e6d862b26848ce182ab3ed82cf56b5e56a1b90f | Add the back buffer blit in the update function | elpiwear/watchout_screen.py | elpiwear/watchout_screen.py | import Image
import ImageDraw
import ImageFont
import screen
class watchout_screen(screen.screen):
def __init__(self):
screen.screen.__init__(self)
self.image = Image.open('maximus.jpg')
self.image = self.image.resize((320,240))
self.draw_image(self.image , (0,0))
self.bfo... | Python | 0.000001 | @@ -1080,8 +1080,43 @@
f.count%0A
+ screen.screen.update(self)%0A
|
2026f1fd5b46ac98b9a26206beb036147a787e64 | update author email | setup.py | setup.py | """
********************************************************************************
* Name: setup.py
* Author: Nathan Swain
* Created On: 2014
* Copyright: (c) Brigham Young University 2014
* License: BSD 2-Clause
********************************************************************************
"""
import os
from setup... | Python | 0.000001 | @@ -940,27 +940,25 @@
l='n
-athan.swain@byu.net
+swain@aquaveo.com
',%0A
|
05ec7d088ea3bea1fe2f8555627f06f57c28fe0d | Version 0.14.1 | setup.py | setup.py | """setup.py file."""
import uuid
from setuptools import setup, find_packages
from pip.req import parse_requirements
__author__ = 'David Barroso <dbarrosop@dravetech.com>'
install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1())
reqs = [str(ir.req) for ir in install_reqs]
setup(
name="napalm-... | Python | 0 | @@ -338,17 +338,17 @@
n=%220.14.
-0
+1
%22,%0A p
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.