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
0fe76a38aff965aca9f672b48ed4a4933ee10161
add an argument taskid to EventLoopProgressReportWriter.write()
AlphaTwirl/EventReader/EventLoopProgressReportWriter.py
AlphaTwirl/EventReader/EventLoopProgressReportWriter.py
# Tai Sakuma <tai.sakuma@cern.ch> from AlphaTwirl.ProgressBar import ProgressReport ##____________________________________________________________________________|| class EventLoopProgressReportWriter(object): def write(self, component, event): return ProgressReport(name = component.name, done = event.iEve...
Python
0.000001
@@ -223,16 +223,24 @@ te(self, + taskid, compone @@ -281,16 +281,29 @@ sReport( +%0A name = c @@ -316,16 +316,28 @@ nt.name, +%0A done = @@ -353,16 +353,28 @@ ent + 1, +%0A total = @@ -387,16 +387,54 @@ .nEvents +,%0A taskid = taskid%0A )%0A%0A##___
662cc443f7c32182aaef89e5b61e90797b7e3e58
Update TFRT dependency to use revision http://github.com/tensorflow/runtime/commit/81d27bd006f86cc3fd3d78a7193583ab9d18367a.
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 = "bd4c5dc54997aaffe6f37a802b106c3ac88f150f" TFRT_SHA256 = "a3ee3c259c5d7ea631177a75195b35bbfb695d69ad70ad...
Python
0.000002
@@ -210,133 +210,133 @@ = %22 -bd4c5dc54997aaffe6f37a802b106c3ac88f150f%22%0A TFRT_SHA256 = %22a3ee3c259c5d7ea631177a75195b35bbfb695d69ad70adf4b0830ee2d91a9625 +81d27bd006f86cc3fd3d78a7193583ab9d18367a%22%0A TFRT_SHA256 = %22f7cafc8d2b512ff3be61dc5a3d8a3a5bcc3e749b213c1afa4909116b90710e2e %22%0A%0A
d5813abf5b6b5ac142880781d9bb021b63670928
Update AndroidGatewayTester python testdriver for new Android protocol
AndroidGatewayPlugin/Testdriver/AndroidGatewayTester.py
AndroidGatewayPlugin/Testdriver/AndroidGatewayTester.py
#!/usr/bin/env python #Test driver for Android gateway plugin to test deserialization of messages. import sys import socket import struct import zlib import time import AmmoMessages_pb2 class GatewayTestClient: def __init__(self, host, port): self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s...
Python
0
@@ -208,16 +208,51 @@ Client:%0A + HEADER_MAGIC_NUMBER = 0xfeedbeef%0A def __ @@ -474,34 +474,32 @@ g()%0A -self.sock.sendall( +messageHeader = struct.p @@ -509,30 +509,121 @@ (%22%3CI +Ii %22, -len(serializedMsg)) +self.HEADER_MAGIC_NUMBER, len(serializedMsg), zlib.crc32(serializedMsg))%0A self.sock....
f0d76cae236cded0bfa6cc0f6486efb04daeb133
convert latency to int before posting to cbmonitor
cbagent/collectors/secondary_latency.py
cbagent/collectors/secondary_latency.py
import os.path from cbagent.collectors import Collector class SecondaryLatencyStats(Collector): COLLECTOR = "secondaryscan_latency" def _get_secondaryscan_latency(self): stats = {} if os.path.isfile(self.secondary_statsfile): with open(self.secondary_statsfile, 'rb') as fh: ...
Python
0
@@ -733,23 +733,28 @@ _key%5D = +int( latency +) %0A
69c9322827ed95ce845b49119bc58aa4f36d82bb
Update TFRT dependency to use revision http://github.com/tensorflow/runtime/commit/ecf8607212b519546828e3fcc66f68985597a622.
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 = "078534d79809852ea069d23bbacd2483ade18c11" TFRT_SHA256 = "55905ff389c5294ac1ce4be5e3f0af2d171e6061aa886f...
Python
0.000002
@@ -210,133 +210,133 @@ = %22 -078534d79809852ea069d23bbacd2483ade18c11%22%0A TFRT_SHA256 = %2255905ff389c5294ac1ce4be5e3f0af2d171e6061aa886fb66d59e3636f03412b +ecf8607212b519546828e3fcc66f68985597a622%22%0A TFRT_SHA256 = %22545c097a241ff80701e54d1e088762f27a7494980f01c08fee3ce3aeb4fd22cf %22%0A%0A
66284e57accec5977d606fc91a0b28177b352eb4
Add end-to-end integration testing for all compression types
test/test_producer.py
test/test_producer.py
import pytest from kafka import KafkaConsumer, KafkaProducer from test.conftest import version from test.testutil import random_string @pytest.mark.skipif(not version(), reason="No KAFKA_VERSION set") def test_end_to_end(kafka_broker): connect_str = 'localhost:' + str(kafka_broker.port) producer = KafkaProdu...
Python
0
@@ -201,42 +201,225 @@ t%22)%0A -def test_end_to_end(kafka_broker): +@pytest.mark.parametrize(%22compression%22, %5BNone, 'gzip', 'snappy', 'lz4'%5D)%0Adef test_end_to_end(kafka_broker, compression):%0A%0A # LZ4 requires 0.8.2%0A if compression == 'lz4' and version() %3C (0, 8, 2):%0A return%0A %0A @@...
7c12b82cb410540dfa3b65150ce39924b5793bce
handle package.json exceptions
python_package_manager/utils/package_json.py
python_package_manager/utils/package_json.py
import os import json def get_dependencies(): package_file_path = os.path.join(os.getcwd(), 'package.json') with open(package_file_path, 'r') as infile: package_dict = json.load(infile) dependencies = package_dict.get("pythonDependencies", []) dependencies_dev = package_dict.get("pythonDevDependencies", []) r...
Python
0.000003
@@ -95,32 +95,39 @@ 'package.json')%0A +%09try:%0A%09 %09with open(packa @@ -150,32 +150,33 @@ ') as infile:%0A%09%09 +%09 package_dict = j @@ -192,16 +192,17 @@ infile)%0A +%09 %09%09depend @@ -253,16 +253,17 @@ s%22, %5B%5D)%0A +%09 %09%09depend @@ -321,16 +321,76 @@ s%22, %5B%5D)%0A +%09except:%0A%09%09prin...
b0dd18d4e4e18dafae9d93848f633afc396c91b4
remove outdated/misguided meta __variables__, https://mail.python.org/pipermail/python-dev/2001-March/013328.html
fastly/__init__.py
fastly/__init__.py
""" """ from fastly import * __author__ = 'Tyler McMullen <tbmcmullen@gmail.com>' __copyright__ = 'Copyright (c) 2012 Fastly Inc' __license__ = 'BSD' __version__ = '0.0.1' __url__ = 'http://www.fastly.com/docs/fastly-py'
Python
0.000065
@@ -1,14 +1,4 @@ -%22%22%22%0A%0A%22%22%22%0A%0A from @@ -18,197 +18,4 @@ t *%0A -%0A__author__ = 'Tyler McMullen %3Ctbmcmullen@gmail.com%3E'%0A__copyright__ = 'Copyright (c) 2012 Fastly Inc'%0A__license__ = 'BSD'%0A__version__ = '0.0.1'%0A__url__ = 'http://www.fastly.com/docs/fastly-py'%0A
bc02e845f4a8b726f7474efa77753c7de6fe600b
Update TFRT dependency to use revision http://github.com/tensorflow/runtime/commit/300e7ac61cda0eb2ddb13b7f2ad850d80646adcd.
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 = "ed6f666ac14b939d7303607c950b88b7d5607c46" TFRT_SHA256 = "b99fed746abe39cb0b072e773af53a4c7189056737fc01...
Python
0.000001
@@ -210,133 +210,133 @@ = %22 -ed6f666ac14b939d7303607c950b88b7d5607c46%22%0A TFRT_SHA256 = %22b99fed746abe39cb0b072e773af53a4c7189056737fc0118ef3b013c187660c9 +300e7ac61cda0eb2ddb13b7f2ad850d80646adcd%22%0A TFRT_SHA256 = %222b79ada8dbacd5de1b868121822ffde58564a1f8749c4f3d91f8f951e76c3fbc %22%0A%0A
c01cf49ec3cc6423d61e364ee06cc8907db7ba83
add utility method for getting sql checkpoints
pillowtop/checkpoints/manager.py
pillowtop/checkpoints/manager.py
from collections import namedtuple from datetime import datetime from dateutil import parser import pytz from pillowtop.checkpoints.util import get_formatted_current_timestamp from pillowtop.dao.django import DjangoDocumentStore from pillowtop.dao.exceptions import DocumentNotFoundError from pillowtop.exceptions import...
Python
0
@@ -4204,12 +4204,178 @@ dict,%0A )%0A +%0A%0Adef get_default_django_checkpoint_for_legacy_pillow_class(pillow_class):%0A return PillowCheckpoint(get_django_checkpoint_store(), pillow_class.get_legacy_name())%0A
42a147b0dcc24ea51207cca020d2bfc6fa7bde46
Update TFRT dependency to use revision http://github.com/tensorflow/runtime/commit/926650aa8e303d62814e45f709d16673501d96bc.
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 = "d50aae4b79fb4aa5a3c4dd280004313c7f1fda51" TFRT_SHA256 = "3d02021cbd499d749eeb4e3e6bdc...
Python
0
@@ -228,133 +228,133 @@ = %22 -d50aae4b79fb4aa5a3c4dd280004313c7f1fda51%22%0A TFRT_SHA256 = %223d02021cbd499d749eeb4e3e6bdcd47a67695bfc145827c5821548c3c6f1494c +926650aa8e303d62814e45f709d16673501d96bc%22%0A TFRT_SHA256 = %22f178d137127c3a67962362f596b8015fdcdc58271e1e3d692eba47b09d31402a %22%0A%0A
aad4e64e0619e14fce898898b79d35e5c18ec8a2
Fix for version resolution in non-git-controlled directories.
fermipy/version.py
fermipy/version.py
# -*- coding: utf-8 -*- # Author: Douglas Creager <dcreager@dcreager.net> # This file is placed into the public domain. # Calculates the current version number. If possible, this is the # output of “git describe”, modified to conform to the versioning # scheme that setuptools uses. If “git describe” returns an error...
Python
0
@@ -1162,16 +1162,34 @@ port os%0A +import subprocess%0A from sub @@ -1339,16 +1339,349 @@ : %25h$'%0A%0A +def capture_output(cmd,dirname):%0A %0A p = subprocess.Popen(cmd,%0A stdout=subprocess.PIPE,%0A stderr=subprocess.PIPE,%0A cwd=dirna...
4cbbe7c3ab891a11492f368d780a1416d37358ff
Change the method of generating content of GUID element
feedzilla/syndication.py
feedzilla/syndication.py
# -*- coding: utf-8 -*- # Copyright: 2011, Grigoriy Petukhov # Author: Grigoriy Petukhov (http://lorien.name) # License: BSD from django.contrib.syndication.views import Feed from django.conf import settings from feedzilla.models import Post class PostFeed(Feed): title_template = 'feedzilla/feed/post_title.html...
Python
0.000003
@@ -881,19 +881,14 @@ urn -str( item. -guid) +link %0A
7744aca1edc6afd263ac386efa9a1e92a41c30aa
Add variable PY2
file_metadata/_compat.py
file_metadata/_compat.py
# -*- coding: utf-8 -*- """ Provides utilities to handle the python2 and python3 differences. """ from __future__ import (division, absolute_import, unicode_literals, print_function) import json import re import subprocess try: # Python 3 from urllib.request import urlopen # flake8: noq...
Python
0.000272
@@ -241,16 +241,27 @@ bprocess +%0Aimport sys %0A%0Atry: @@ -592,16 +592,48 @@ eError%0A%0A +PY2 = sys.version_info%5B0%5D == 2%0A%0A %0Adef che
05451dd584f7d06da1d8e7fda16044c86b4615e1
Fix a bug in extracting subnetwork.
SIF.py
SIF.py
"""Module to work with network in SIF format. http://wiki.cytoscape.org/Cytoscape_User_Manual/Network_Formats#SIF_Format """ class SIFNode(object): def __init__(self, id): self.id = id self.edges = [] self.reverse= [] class SIFEdge(object): def __init__(self, type, target): ...
Python
0
@@ -1331,17 +1331,16 @@ lose()%0A%0A -%0A def @@ -1503,51 +1503,886 @@ -return self._subnetwork(center_id, degree)%0A +sub = self._subnetwork(center_id, degree)%0A for n in sub.nodes.itervalues():%0A for edge in n.edges:%0A complement_flag = False%0A for r_ed...
26ad97dc7e6cdc6afa9d819665b35ca78e095811
sha1 ok
fillSimHBaseNewFormat.py
fillSimHBaseNewFormat.py
import os,sys # http://happybase.readthedocs.org/en/latest/user.html import happybase import MySQLdb import json import time import requests import shutil import hashlib #import numpy as np tmp_img_dl_dir = 'tmp_img_dl' # MySQL connection infos global_var = json.load(open('../conf/global_var_all.json')) localhost=glo...
Python
0.99877
@@ -2543,28 +2543,102 @@ -one_url = one_row%5B1%5D +print one_row%0A doc = one_row%5B'images:images_doc'%5D%0A jd = json.loads(doc)%0A one_url = jd %5B'ob
9ad9eb083be4e1a834f2a91c581259d86a8f493a
fix integration test NBO encoding
tests/integration/wallet/test_transactions.py
tests/integration/wallet/test_transactions.py
import asyncio from binascii import hexlify from orchstr8.testcase import IntegrationTestCase, d2f from lbryschema.claim import ClaimDict from torba.constants import COIN from lbrynet.wallet.transaction import Transaction from lbrynet.wallet.account import generate_certificate import lbryschema lbryschema.BLOCKCHAIN_...
Python
0.000001
@@ -2175,16 +2175,22 @@ im_id(0) +%5B::-1%5D ))%0A
20dc4b6d80842579740ed91ebb848446a0cecdbf
fix test_settings
test_settings.py
test_settings.py
from settings import * ROOT_URLCONF = 'urls' DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': rel('mirosubs.sqlite3'), } } INSTALLED_APPS += ('django_nose', ) INSTALLED_APPS = list(INSTALLED_APPS) INSTALLED_APPS.remove('mirosubs') TEST_RUNNER = 'django_nose.NoseTest...
Python
0.000002
@@ -15,16 +15,75 @@ import * +%0A__import__('dev-settings', globals(), locals(), %5B'*'%5D, -1) %0A%0AROOT_U
555981d288b1e3970e2cb9432db3e72f57ba48b4
deal with zero args corner case and return correct type
finat/pyop2_interface.py
finat/pyop2_interface.py
try: from pyop2.pyparloop import Kernel except: Kernel = None from .interpreter import evaluate def pyop2_kernel(kernel, kernel_args, interpreter=False): """Return a :class:`pyop2.Kernel` from the recipe and kernel data provided. :param kernel: The :class:`~.utils.Kernel` to map to PyOP2. :pa...
Python
0
@@ -810,16 +810,41 @@ %0A if +kernel_args and %5C%0A set(kern @@ -1136,17 +1136,16 @@ return -( Kernel(k @@ -1163,22 +1163,8 @@ ion) -, kernel_args) %0A%0A
bc7899c989eae19812f4f527d89ccea138748477
Exclude data previously outside reliable_window
tests/test_sourcefinder/test_L15_12h_const.py
tests/test_sourcefinder/test_L15_12h_const.py
""" Tests for simulated LOFAR datasets. """ import os import unittest2 as unittest import tkp.accessors.fitsimage import tkp.sourcefinder.image as image import tkp.utility.coordinates as coords from tkp.testutil.decorators import requires_data from tkp.testutil.data import DATAPATH # The simulation code causes a f...
Python
0
@@ -3768,32 +3768,44 @@ am, fitsfile.wcs +, radius=100 )%0A self.r
c676eb448a51c89b0f1aefed1c2328ec9b88b97a
Update pages_page_studio.py
regression/pages/studio/pages_page_studio.py
regression/pages/studio/pages_page_studio.py
""" Extended Pages page for a course. """ from edxapp_acceptance.pages.common.utils import click_css from edxapp_acceptance.pages.studio.utils import drag from regression.pages.studio.utils import ( click_css_with_animation_enabled, sync_on_notification ) from regression.pages.studio.course_page_studio import ...
Python
0.000002
@@ -4699,32 +4699,61 @@ _css)%0A )%0A + self.wait_for_ajax()%0A sync_on_
dfff8bf474663d4efc02fdd3344054e20a6385ca
Update test_smoothing.py
tests/test_smoothing.py
tests/test_smoothing.py
try: from . import generic as g except BaseException: import generic as g class SmoothTest(g.unittest.TestCase): def test_smooth(self): """ Load a collada scene with pycollada. """ m = g.trimesh.creation.icosahedron() m.vertices, m.faces = g.trimesh.remesh.subdivide...
Python
0.000001
@@ -375,32 +375,53 @@ s = m.copy()%0A + q = m.copy()%0A f = m.co @@ -417,32 +417,32 @@ f = m.copy()%0A - d = m.co @@ -644,32 +644,119 @@ cian(s, 0.5, 10, + False, True, lap)%0A g.trimesh.smoothing.filter_laplacian(q, 0.5, 10, True, True, lap)%0A g. @@ -896,32 +896,59 @@...
3f85183da738e337d51a8523524eb992e2dd29bf
Reorder tests
tests/test_tictactoe.py
tests/test_tictactoe.py
import unittest from games import TicTacToe class TestTicTacToe(unittest.TestCase): def setUp(self): self.game = TicTacToe() def test_cur_player_start(self): self.assertEqual(self.game.cur_player, 0) def test_cur_player_after_one_move(self): self.game.make_move(3) self.a...
Python
0
@@ -134,16 +134,299 @@ cToe()%0A%0A + def test_copy(self):%0A self.game.make_moves(%5B1, 3, 2%5D)%0A clone = self.game.copy()%0A self.assertItemsEqual(self.game.legal_moves(), clone.legal_moves())%0A self.assertEqual(self.game.cur_player, clone.cur_player)%0A self.assertEqual(self...
379822ab16229174071172792132cbb549c5f841
celery task for requests
ekanalyzer.py
ekanalyzer.py
import os from flask import Flask from flask import render_template from flask import request, redirect, url_for from werkzeug import secure_filename import hashlib from pymongo import Connection import dpkt import sys import socket from celery import Celery from requests import Request, Session # FIXME: move to ...
Python
0.999885
@@ -2029,16 +2029,22 @@ _request +.delay (r%5B'ip'%5D @@ -2094,16 +2094,29 @@ ata'%5D)%0A%0A +@celery.task%0A def proc
3efda93bfd4a4245b15a712a0d4bdefeb111710f
make server ip a variable
misc/build-windows.py
misc/build-windows.py
#!/usr/bin/env python # start up windows vm # some script should start on bootup and try to connect back to this script (through some port) # this script should send commands for building the tree and creating the exe # could also have a simple file transfer mechanism so I can get the exe without having to muck around...
Python
0.000315
@@ -349,16 +349,84 @@ = 15421%0A +# network settings in jon's virtual box %0Aserver_ip = '192.168.90.2'%0A quit_mes @@ -2764,30 +2764,25 @@ connect( -'192.168.90.2' +server_ip ))%0A%0A
337f6d67bce331a26b44e65671c63f223f0c5ebc
add help
ckstyle/command/ConsoleCommandParser.py
ckstyle/command/ConsoleCommandParser.py
import sys import os import getopt import string from ckstyle.doCssCheck import checkFile, checkDir, checkDirRecursively import CommandFileParser def usage(): print ''' [Usage] ckstyle -h / ckstyle --help ckstyle file.css ckstyle dir ckstyle -r dir ckstyle -p file.css ckstyle -p -r dir ...
Python
0
@@ -1,16 +1,50 @@ +#/usr/bin/python%0A#encoding=utf-8%0A%0A import sys%0Aimpor @@ -241,16 +241,28 @@ --help%0A + ckstyle%0A ckst @@ -329,108 +329,749 @@ -p -file.css%0A ckstyle -p -r dir%0A ckstyle -c config_file_path%0A ckstyle -c config_file_path -r -p +-r dir%0A ckstyle -c xxx.ini %0A ck...
64bae35c0c2d6132b1ba5b2fa73e8bc2df541c33
swap x-y size for library call
ani.py
ani.py
# Python ctypes wrapper and circle test for fast anisotropic 2-D Gaussian filter # wrapper for C library by J. M. Geusebroek: http://staff.science.uva.nl/~mark # compile original C function as: gcc -fPIC -shared -o anigauss.so anigauss.c # # Lindy L Blackburn (lindylam@gmail.com) # Jan 29, 2014 import numpy as np impo...
Python
0
@@ -1023,16 +1023,16 @@ size -x +y , size -y +x ) =
12a85a17194610f81c9ff0c73ea69f4adfc2b307
remove old routine
floss/render/sanitize.py
floss/render/sanitize.py
import string def sanitize_string_for_printing(s: str) -> str: """ Return sanitized string for printing to cli. """ sanitized_string = s.replace("\\\\", "\\") # print single backslashes sanitized_string = "".join(c for c in sanitized_string if c in string.printable) return sanitized_string ...
Python
0.000654
@@ -314,339 +314,4 @@ ring -%0A%0A%0Adef sanitize_string_for_script(s: str) -%3E str:%0A %22%22%22%0A Return sanitized string that is added to IDA script source.%0A %22%22%22%0A sanitized_string = sanitize_string_for_printing(s)%0A sanitized_string = sanitized_string.replace(%22%5C%5C%22, %22%5C%5C%5C%5...
8379d56ac1be68c9c1d255893644813df8300ed8
add verbose name
awesomepose/categories/models/category.py
awesomepose/categories/models/category.py
from django.db import models from mptt.models import MPTTModel, TreeForeignKey class Category(models.Model): name = models.CharField(max_length=50, unique=True) parent = TreeForeignKey('self', null=True, blank=True, related_name="children", db_index=True) class MPTTMeta: order_insertion_by = ['na...
Python
0.999996
@@ -89,23 +89,20 @@ ategory( -models. +MPTT Model):%0A @@ -316,16 +316,106 @@ name'%5D%0A%0A + class Meta:%0A verbose_name = %22%EC%B9%B4%ED%85%8C%EA%B3%A0%EB%A6%AC%22%0A verbose_name_plural = verbose_name%0A%0A def
502ab3c29d66840b030f2bd277b11e9bdd33e297
version bump
diffantom/info.py
diffantom/info.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """ Base module variables """ from __future__ import absolute_import, division, print_function, unicode_literals from datetime import datetime __packagename__ ...
Python
0.000001
@@ -346,17 +346,19 @@ = '1.0. -1 +2a0 '%0A__auth
bcd8d27194131e48d73d843bdae9930e6720130f
Update Vartype
dimod/vartypes.py
dimod/vartypes.py
""" Vartype is an enumeration of the valid types for variables in a binary quadratic models. Examples: >>> vartype = dimod.Vartype.SPIN >>> print(vartype) Vartype.SPIN >>> isinstance(vartype, dimod.Vartype) True Access can also be by value or name. >>> print(dimod.Vartype({0, 1})) Var...
Python
0
@@ -1,23 +1,9 @@ %22%22%22%0A -Vartype is an e +E nume @@ -16,18 +16,23 @@ of -the valid +variable type @@ -40,23 +40,8 @@ for - variables in a bin @@ -69,24 +69,262 @@ %0A%0AExamples:%0A + This example shows easy access to different Vartypes, which are in the main%0A namespace.%0A%0A %3E%3E%3E ...
8ed7b3e4367f5ed43a901fee048228c6e6aeeb8c
fix for edge case with invalid user logged in
backend/unpp_api/apps/management/views.py
backend/unpp_api/apps/management/views.py
from django.db.models import Q from django_filters.rest_framework import DjangoFilterBackend from rest_framework.generics import CreateAPIView, ListAPIView, UpdateAPIView from account.models import User from agency.models import AgencyOffice from agency.permissions import AgencyPermission from common.pagination import...
Python
0
@@ -1571,32 +1571,71 @@ queryset(self):%0A + queryset = User.objects.none()%0A if self. @@ -2969,16 +2969,54 @@ r(query) +%0A return Partner.objects.none() %0A%0A de @@ -3150,38 +3150,10 @@ el -if self.request.partner_member +se :%0A
9077b4e319807fd2791a28c55d41cf4fcd149365
Fix Member.colour to use the new algorithm for determining colour.
discord/member.py
discord/member.py
# -*- coding: utf-8 -*- """ The MIT License (MIT) Copyright (c) 2015-2016 Rapptz 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 u...
Python
0
@@ -4903,24 +4903,66 @@ %22%22%22%0A%0A + default_colour = Colour.default()%0A # hi @@ -5014,24 +5014,131 @@ s rendered.%0A + # if the highest is the default colour then the next one with a colour%0A # is chosen instead%0A if s @@ -5168,14 +5168,18 @@ role +s = -max +...
0cb9b65fc0030922fea122a82451fef0d6d3653b
update version 1.0.0
flyingpigeon/__init__.py
flyingpigeon/__init__.py
from .wsgi import application from .demo import main __version__ = "0.11.0"
Python
0.000001
@@ -66,12 +66,11 @@ = %22 -0.11 +1.0 .0%22%0A
402e350e2dd39f1b60743771a8b27a73fe664112
Change update race to use HTTP PUT method
api.py
api.py
"""API around S3, SQS, and MK64 database""" import boto import json import multiprocessing import os import requests import time import uuid import syslog from subprocess import call from boto.sqs.message import Message from boto.sqs.message import RawMessage from boto.exception import * import boto.utils from const ...
Python
0
@@ -4372,34 +4372,33 @@ res = requests.p -os +u t(url, data=json
ba78e359c709c8d70c1f68f3e9eaee455408de06
Update tests to v1.6.0 (#1532)
exercises/phone-number/phone_number_test.py
exercises/phone-number/phone_number_test.py
import unittest from phone_number import Phone # Tests adapted from `problem-specifications//canonical-data.json` @ v1.4.0 class PhoneNumberTest(unittest.TestCase): def test_cleans_number(self): number = Phone("(223) 456-7890").number self.assertEqual(number, "2234567890") def test_cleans_n...
Python
0
@@ -2183,24 +2183,716 @@ 156-7890%22)%0A%0A + def test_invalid_if_area_code_starts_with_0_on_valid_11_digit_number(self):%0A with self.assertRaisesWithMessage(ValueError):%0A Phone(%221 (023) 456-7890%22)%0A%0A def test_invalid_if_area_code_starts_with_1_on_valid_11_digit_number(self):%0A ...
3806de4adf5ebe25a8e15fe76657d10a1b1c01c6
Fix path to pip
dodo_commands/dodo_system_commands/install-commands.py
dodo_commands/dodo_system_commands/install-commands.py
from argparse import ArgumentParser from dodo_commands.framework import Dodo, CommandError from dodo_commands.framework.config import Paths from dodo_commands.framework.util import is_using_system_dodo, symlink from dodo_commands.framework.config import load_global_config_parser import sys import os import tempfile d...
Python
0.000068
@@ -4968,16 +4968,21 @@ parts = +list( python_p @@ -4995,18 +4995,29 @@ rts%5B:-1%5D +) + + %5B%0A python_ @@ -5039,25 +5039,16 @@ replace( -%0A 'python' @@ -5056,16 +5056,22 @@ 'pip')%0A + %5D%0A pip
cfc6083c58d151934403ccf55444b122fec46604
Resolve here
takeyourmeds/utils/test.py
takeyourmeds/utils/test.py
from django.test import TestCase from django.shortcuts import resolve_url from django.contrib.auth import get_user_model from django.core.urlresolvers import reverse User = get_user_model() class TestCase(TestCase): def setUp(self): self.user = self.create_user('testuser') def assertStatusCode(self, ...
Python
0
@@ -117,53 +117,8 @@ odel -%0Afrom django.core.urlresolvers import reverse %0A%0AUs @@ -1510,13 +1510,17 @@ re -verse +solve_url (url @@ -1529,26 +1529,17 @@ nf, -args= +* args, -kwargs= +** kwar
d9ca3d7113423a84026ad59e1369321baa54d532
Add a simple neutron_hanler
drcontroller/replication/controller/neutron_handler.py
drcontroller/replication/controller/neutron_handler.py
import logging def post_handle(message): pass def delete_handle(message): pass def put_handle(mesage): pass class NeutronHandler(object): def __init__(self): self.logger = logging.getLogger("NeutronHandler") self.logger.info('Init NeutronHandler') def accept(self, *req, **kwarg...
Python
0.999996
@@ -12,316 +12,291 @@ ing%0A -%0Adef post_handle(message):%0A pass%0A%0Adef delete_handle(message):%0A pass%0A%0Adef put_handle(mesage):%0A pass%0A%0A%0Aclass NeutronHandler(object):%0A def __init__(self):%0A self.logger = logging.getLogger(%22NeutronHandler%22)%0A self.logger.info('Init Neut...
ca8622f5af66ef01c9c185065f2e77fca30bef79
Remove unused update method
irctk/nick.py
irctk/nick.py
import re class Nick(object): IRC_USERHOST_REGEX = re.compile(r'^(.*)!(.*)@(.*)$') @classmethod def parse(cls, client, userhost): m = cls.IRC_USERHOST_REGEX.match(userhost) if m: return cls(client, m.group(1), m.group(2), m.group(3)) return cls(client, host=userhost) ...
Python
0.000001
@@ -946,335 +946,4 @@ f)%5D%0A -%0A def update(self):%0A if self == self.client.nick:%0A self.client.nick.ident = self.ident%0A self.client.nick.host = self.host%0A%0A for channel in self.client.channels:%0A n = channel.find_nick(self)%0A if n:%0A ...
52c17672d73a9461771c3ec09465d91992160fc5
Fix quota init migration
src/nodeconductor_saltstack/exchange/migrations/0004_init_quotas.py
src/nodeconductor_saltstack/exchange/migrations/0004_init_quotas.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from uuid import uuid4 from django.contrib.contenttypes.models import ContentType from django.db import models, migrations GLOBAL_MAILBOX_SIZE_QUOTA = 'global_mailbox_size' USER_COUNT_QUOTA = 'user_count' def convert_mailbox_size_to_mb(apps, schema_e...
Python
0.000002
@@ -354,32 +354,40 @@ el('exchange', ' +Exchange Tenant')%0A for @@ -604,16 +604,24 @@ ange', ' +Exchange Tenant') @@ -1548,16 +1548,24 @@ l_name=' +exchange tenant',
cd98b91fecd6735254133649ec39c19877aabbc5
Update celery settings to avoid a warning about pickle, and disable the now-useless GZIP compression.
oneflow/settings/snippets/celery.py
oneflow/settings/snippets/celery.py
# -*- coding: utf-8 -*- # # NOTE: this snippet should come *after* the other celery_* # because it uses the BROKER_URL that should have been # defined in these. # """ Copyright 2013 Olivier Cortès <oc@1flow.io> This file is part of the 1flow project. 1flow is free software: you can redistribut...
Python
0
@@ -2540,16 +2540,145 @@ f you).%0A +#%0A# 20140309: no more remote worker and we have very small messages (only%0A# IDs, no full instance), so stop wasting CPU cycles.%0A# CELERY_M @@ -3066,16 +3066,133 @@ = True%0A%0A +# Since Celery 3.1/3.2, no 'pickle' anymore.%0A# JSON is my prefered option, anyway.%0ACELERY_AC...
7d8517ff714ca501500e610d6cc59e69c43ff5bd
use zmq API for json for py2/3 compatibility #15 ENH: provide std. deserialize_data function REG: use json serializable commands only
online_monitor/receiver/receiver.py
online_monitor/receiver/receiver.py
from pyqtgraph.Qt import QtCore import zmq import logging from threading import Event from online_monitor.utils import utils class DataWorker(QtCore.QObject): data = QtCore.pyqtSignal(dict) finished = QtCore.pyqtSignal() def __init__(self, deserializer): QtCore.QObject.__init__(self) sel...
Python
0.000001
@@ -1496,16 +1496,21 @@ ver.send +_json (self._s @@ -5524,16 +5524,109 @@ mmand):%0A + ''' Send command to transceiver%0A%0A Has to be json serializable%0A '''%0A @@ -5765,140 +5765,79 @@ r -aise NotImplementedError('You have to implement a deserialize_data '%0A ...
e91eb6aaad52010b7441595cc55695e6ee21b360
Add support for setting login_service
oauthenticator/azuread.py
oauthenticator/azuread.py
""" Custom Authenticator to use Azure AD with JupyterHub """ import json import jwt import os import urllib from tornado.auth import OAuth2Mixin from tornado.log import app_log from tornado.httpclient import HTTPRequest, AsyncHTTPClient from jupyterhub.auth import LocalAuthenticator from traitlets import Unicode, ...
Python
0
@@ -977,18 +977,139 @@ e = -%22Azure AD%22 +Unicode(%0A%09%09os.environ.get('LOGIN_SERVICE', 'Azure AD'),%0A%09%09config=True,%0A%09%09help=%22%22%22Azure AD domain name string, e.g. My College%22%22%22%0A%09) %0A%0A
586dd06a429e5017d798ca55c20f1d095e5171d4
fix scaling/stacking defaulting to podi footprint
odi_scalestack_process.py
odi_scalestack_process.py
#!/usr/bin/env python import sys, os, glob, string import numpy as np import astropy as ast import matplotlib.pyplot as plt from pyraf import iraf from tqdm import tqdm import odi_config as odi import glob import shutil import pandas as pd try: object_str, filters, instrument, images, illcor_flag, skyflat_src, wc...
Python
0
@@ -596,28 +596,17 @@ nt(i -mages%5Bfilters%5B0%5D%5D%5B0%5D +nstrument )%0A%0Ai
ce01340348dd99faf9fc6c06b3c96e23f7714252
FIX __str__ of Event for python 3.5
gcsa/event.py
gcsa/event.py
from tzlocal import get_localzone from datetime import datetime, date, timedelta from .attachment import Attachment from .reminder import PopupReminder, EmailReminder from util.date_time_util import insure_localisation class Visibility: """ Possible values of the event visibility. DEFAULT - Uses the default...
Python
0.999753
@@ -5836,11 +5836,25 @@ urn -f '%7B +%7D - %7B%7D'.format( self @@ -5859,21 +5859,18 @@ lf.start -%7D - %7B +, self.sum @@ -5873,11 +5873,10 @@ .summary -%7D' +) %0A
edebc05d3df68faadc6c0547de7cc06f1469915e
make click example do stuff
fosscon2015/cli_click.py
fosscon2015/cli_click.py
import click @click.command() def cli(): click.echo("I'm a click CLI.") if __name__ == '__main__': cli()
Python
0.000001
@@ -1,80 +1,791 @@ -import click%0A%0A@click.command()%0Adef cli():%0A click.echo(%22I'm a click CLI.%22) +#!/usr/bin/env python%0A%0Aimport click%0Aimport json%0A%0Atry:%0A from collections import Counter%0Aexcept ImportError:%0A # backport_collections needed for python 2.6 compatibility%0A from backport_c...
514c6c145e6e2f2c327fb89cfe780eb196508f79
change absolute site url
publishconf.py
publishconf.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # from __future__ import unicode_literals # This file is only used if you use `make publish` or # explicitly specify it as your config file. import os import sys sys.path.append(os.curdir) from pelicanconf import * SITEURL = 'http://3-strand-code.github.io/3sc-blog/' REL...
Python
0.000001
@@ -279,40 +279,28 @@ p:// +blog. 3 -- strand -- code. -github.io/3sc-blog +com /'%0AR
ca863134d20cda67c6e7f4abf1df595d5d549952
Fix agent changelog command (#3233)
datadog_checks_dev/datadog_checks/dev/tooling/commands/agent/common.py
datadog_checks_dev/datadog_checks/dev/tooling/commands/agent/common.py
# (C) Datadog, Inc. 2019 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from ...git import git_tag_list def get_agent_tags(since, to): """ Return a list of tags from integrations-core representing an Agent release, sorted by more recent first. """ agent_tags = gi...
Python
0
@@ -100,16 +100,55 @@ ICENSE)%0A +from semver import parse_version_info%0A%0A from ... @@ -349,16 +349,54 @@ t_tags = + sorted(parse_version_info(t) for t in git_tag @@ -420,16 +420,17 @@ %5C.%5Cd+$') +) %0A%0A # @@ -481,43 +481,124 @@ if -not to:%0A to = agent_tags%5B-1%5D +to:%0A to = pars...
2988d50cdef4a2c617f20817911826f2f7863f0e
Fix string comparison in the fedimg proc.
fedmsg_meta_fedora_infrastructure/fedimg.py
fedmsg_meta_fedora_infrastructure/fedimg.py
# This file is part of fedmsg. # Copyright (C) 2014 Red Hat, Inc. # # fedmsg is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. #...
Python
0.000266
@@ -1363,34 +1363,34 @@ msg'%5D%5B'status'%5D -is +== %22started%22:%0A @@ -1655,34 +1655,34 @@ msg'%5D%5B'status'%5D -is +== %22completed%22:%0A @@ -1953,34 +1953,34 @@ msg'%5D%5B'status'%5D -is +== %22failed%22:%0A @@ -2290,18 +2290,18 @@ tatus'%5D -is +== %22starte @@ -2580,18 +2580,18 @@ ...
7b585baab70e85e4d28f8827a11c0be9c6cc2938
fix travis
_unittests/ut_cli/test_pymy_install_cli_tool.py
_unittests/ut_cli/test_pymy_install_cli_tool.py
# coding: latin-1 """ @brief test log(time=1s) """ import sys import os import unittest try: import src except ImportError: path = os.path.normpath( os.path.abspath( os.path.join( os.path.split(__file__)[0], "..", ".."))) if path not...
Python
0.000002
@@ -86,16 +86,32 @@ unittest +%0Aimport warnings %0A%0Atry:%0A @@ -1081,16 +1081,39 @@ p_folder +, is_travis_or_appveyor %0A%0A%0Aclass @@ -1963,22 +1963,209 @@ -assert content +if not content:%0A if is_travis_or_appveyor():%0A warnings.warn(%22content is empty for: %22 + temp)%0A ...
07e12dd0942329aadc8fb3ed47b6f088779800b9
fix logcollector
src/bots/outputs/logcollector/logcollector.py
src/bots/outputs/logcollector/logcollector.py
import sys import time import socket from lib.bot import * from lib.utils import * from lib.event import * try: import simplejson as json except ImportError: import json class LogCollectorBot(Bot): def process(self): event = self.receive_message() if event: dat...
Python
0.000002
@@ -105,80 +105,8 @@ *%0A%0A -try:%0A import simplejson as json%0Aexcept ImportError:%0A import json%0A%0A clas @@ -346,33 +346,23 @@ + '= +%22 ' + -json.dumps( value -) + ' +%22 '%0A
2de1effbf33ea3aae0bbc36a4c89fad432975e9e
Fix tests #3
tests/web_cache_test.py
tests/web_cache_test.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import collections import logging import os import pickle import random import string import sys import time import unittest import mkstemp_ctx import google_speech.web_cache as web_cache web_cache.DISABLE_PERSISTENT_CACHING = True INFINITY = sys.maxsize def get_ran...
Python
0.000001
@@ -167,16 +167,23 @@ ittest%0A%0A +from . import m
cc1d72d68fb46cccdf22e08d416a49b18e4a39b2
Disable cache during CLI tests
tests/whack_cli_test.py
tests/whack_cli_test.py
import os import subprocess import contextlib from nose.tools import istest, assert_equal from whack import cli from whack.sources import SourceTarball from . import whack_test @istest def params_are_passed_to_install_command_as_dict(): argv = [ "whack", "install", "hello=1", "apps/hello", "-p",...
Python
0.000001
@@ -2334,16 +2334,33 @@ st(args) + + %5B%22--no-cache%22%5D )%0A
e383d309483af6c8f33494b80d766d471def9773
Update test tolerance
tests/chainer_tests/functions_tests/array_tests/test_scatter_add.py
tests/chainer_tests/functions_tests/array_tests/test_scatter_add.py
import unittest import numpy import chainer from chainer import cuda from chainer import functions from chainer import gradient_check from chainer import testing from chainer.testing import attr from chainer.utils import type_check @testing.parameterize( {'slices': (0, slice(0, 1), numpy.array(-1)), 'b_data': n...
Python
0
@@ -1355,16 +1355,97 @@ float32) +%0A self.check_backward_options = %7B'atol': 5e-4, 'rtol': 1e-4, 'dtype': 'f'%7D %0A%0A de @@ -3078,26 +3078,58 @@ d_grad), - rtol=1e-3 +%0A **self.check_backward_options )%0A%0A d
5098d48598a3e57b00d1c813d0ff95b9b15a74cb
Update azure_recorded_testcase.py (#21771)
tools/azure-sdk-tools/devtools_testutils/azure_recorded_testcase.py
tools/azure-sdk-tools/devtools_testutils/azure_recorded_testcase.py
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import fun...
Python
0.000001
@@ -2360,16 +2360,18 @@ playback +() :%0A
3ba71de7d03b99376b70cd40de6dfcd45f1d35c0
replace distutils with which
tmscoring/tests/test.py
tmscoring/tests/test.py
from __future__ import division import subprocess import distutils import tmscoring import numpy as np from numpy.testing import assert_almost_equal, TestCase from nose.exc import SkipTest class TestAligningBase(TestCase): def test_matrix(self): align_object = tmscoring.Aligning('pdb1.pdb', 'pdb2.pdb')...
Python
0.000011
@@ -48,26 +48,8 @@ ess%0A -import distutils%0A%0A impo @@ -61,17 +61,16 @@ scoring%0A -%0A import n @@ -166,16 +166,41 @@ kipTest%0A +from shutil import which%0A %0A%0Aclass @@ -1076,16 +1076,23 @@ assert +np.all( 0 %3C= -tm @@ -1112,13 +1112,9 @@ ct.N - %3C= 1 +) %0A%0A @@ -1939,54 +1939,32 @@ if -no...
d451814584318ac45cdefa9702c72eb5c15fe690
Fix Flakes Errors: openspending/ui/controllers/home.py
openspending/ui/controllers/home.py
openspending/ui/controllers/home.py
import logging import os import random import subprocess from datetime import datetime from pylons import request, response, tmpl_context as c, url, config from pylons.controllers.util import redirect from pylons.decorators.cache import beaker_cache from pylons.i18n import _ from openspending.model import Dataset fro...
Python
0.000013
@@ -29,62 +29,18 @@ ort -random%0Aimport subprocess%0Afrom datetime import datetime +subprocess %0A%0Afr @@ -68,18 +68,8 @@ est, - response, tmp @@ -86,21 +86,8 @@ as c -, url, config %0Afro @@ -132,57 +132,8 @@ ect%0A -from pylons.decorators.cache import beaker_cache%0A from @@ -305,46 +305,8 @@ ale%0A -fro...
7db11fa7aad4b53a1f50988e83de2abfbae61dde
Fix the senddeletionnotices command to take into account the new default SMS limit.
hc/accounts/management/commands/senddeletionnotices.py
hc/accounts/management/commands/senddeletionnotices.py
from datetime import timedelta import time from django.conf import settings from django.core.management.base import BaseCommand from django.utils.timezone import now from hc.accounts.models import Profile, Member from hc.api.models import Ping from hc.lib import emails class Command(BaseCommand): help = """Send ...
Python
0
@@ -1104,17 +1104,17 @@ mit__gt= -0 +5 )%0A%0A
43ab753c4a9892c55f115a4dd5345e94c4bb5d41
Fix auth initialization logging
opwen_email_server/services/auth.py
opwen_email_server/services/auth.py
from ast import literal_eval from os import environ from typing import Callable from typing import Mapping from opwen_email_server.utils.log import LogMixin class EnvironmentAuth(LogMixin): def __init__(self, client_to_domain: Mapping[str, str]=None, envgetter: Callable[[str, str], str]=environ...
Python
0.000004
@@ -614,50 +614,41 @@ elf. -log_debug('initialized auth to %25r', +__client_to_domain = self._ +create _cli @@ -660,16 +660,17 @@ o_domain +( )%0A @@ -684,41 +684,50 @@ elf. -__client_to_domain = +log_debug('initialized auth to %25r', self._ -create _cli @@ -731,33 +731,32 @@ client_to_domain -( )%0A ...
5118104dad921128e4dec0cd1ea00aa7d854c0a9
fix token create params to match new keystone - this change will need to be ported to novaclient
openstackx/auth/tokens.py
openstackx/auth/tokens.py
from openstackx.api import base class Tenant(base.Resource): def __repr__(self): return "<Tenant %s>" % self._info @property def id(self): return self._info['id'] @property def description(self): return self._info['description'] @property def enabled(self): ...
Python
0
@@ -994,16 +994,25 @@ params = + %7B%22auth%22: %7B%22passw @@ -1113,16 +1113,17 @@ password +%7D ,%0A @@ -1228,19 +1228,21 @@ rams, %22a -uth +ccess %22)%0A%0A%0Acla
180b7810cdc9a2a17a13c184fc2143f9a5f10cd6
change var name article to container (opps 0.2) in sitemap generator class
opps/sitemaps/sitemaps.py
opps/sitemaps/sitemaps.py
# -*- coding: utf-8 -*- from django.contrib.sitemaps import GenericSitemap as DjangoGenericSitemap from django.contrib.sitemaps import Sitemap as DjangoSitemap from django.utils import timezone from opps.containers.models import Container def InfoDisct(googlenews=False): article = Container.objects.filter(date_a...
Python
0
@@ -272,23 +272,25 @@ e):%0A -article +container = Conta @@ -376,32 +376,34 @@ + published=True)%0A @@ -433,25 +433,29 @@ -article = article +container = container %5B:10 @@ -495,15 +495,17 @@ t': -article +container ,%0A
ba92d4b5854f31b97255c98b83d8dfb8874c8668
Fix arg list for thumbnailpath override
frontend/src/indexing.py
frontend/src/indexing.py
#!/usr/bin/env python from pymongo import MongoClient #from subprocess import Popen, PIPE import FindVid as fv from sys import argv, exit import hashlib import os def hashFile(filename, blocksize): hash = hashlib.sha1() with open(filename, 'rb') as f: buffer = f.read(blocksize) while len(buffer) > 0: hash.upd...
Python
0.000002
@@ -1583,16 +1583,128 @@ folder%0A +%09if (thumbpath == None):%0A%09%09features = fv.getFeatures(videofile, keyframes%5Blen(keyframes)/2%5D, keyframes)%0A%09else:%0A%09 %09feature
964fcba7cc91bd84bec234943a90ecbfa33caa8f
Fix response handling bugs
pynba/pynba.py
pynba/pynba.py
import requests import json from os import path from abc import ABCMeta, abstractmethod _REQUEST_DATA_PATH = path.join(path.dirname(path.abspath(__file__)), "requests.json") class WebInterface: def __init__(self): with open(_REQUEST_DATA_PATH, 'r') as f: request_data = json.load(f) s...
Python
0.000005
@@ -617,32 +617,39 @@ ms=%7B%7D):%0A +return self._request_ty @@ -1404,109 +1404,8 @@ -print(%22URL: %7B0%7D%22.format(url))%0A print(%22Params: %7B0%7D%22.format(params_composed))%0A %0A # if s @@ -1441,33 +1441,32 @@ t-set':%0A -# return self. @@ -1492,16 +1492,23 ...
0d01756c1db9a6c19d263edadeda775adf5291af
Add unit tests on the sphinxext indent function
oslo_policy/tests/test_sphinxext.py
oslo_policy/tests/test_sphinxext.py
# Copyright 2017 Red Hat, 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.000029
@@ -683,16 +683,990 @@ nxext%0A%0A%0A +class IndentTest(base.BaseTestCase):%0A%0A def test_indent(self):%0A result = sphinxext._indent(%22foo%5Cnbar%22)%0A self.assertEqual(%22 foo%5Cn bar%22, result)%0A%0A result = sphinxext._indent(%22%22)%0A self.assertEqual(%22%22, result)%0A%0...
f127f0e9bb0b8778feafbdbc1fa68e79a923d639
Update product listing test to use product ids rather than index
whats_fresh/whats_fresh_api/tests/views/entry/test_list_products.py
whats_fresh/whats_fresh_api/tests/views/entry/test_list_products.py
from django.test import TestCase from django.core.urlresolvers import reverse from whats_fresh_api.models import * from django.contrib.gis.db import models import json class ListProductTestCase(TestCase): fixtures = ['test_fixtures'] def test_url_endpoint(self): url = reverse('entry-list-products') ...
Python
0
@@ -478,17 +478,16 @@ products -s and%0A @@ -633,24 +633,190 @@ tem_list'%5D%0A%0A + product_dict = %7B%7D%0A%0A for product in items:%0A product_id = product%5B'link'%5D.split('/')%5B-1%5D%0A product_dict%5Bstr(product_id)%5D = product%0A%0A for @@ -887,38 +887,49 @...
3229cd37fab3d453798b7440f5519b0be17a1345
"mode" option
pyspeedtest.py
pyspeedtest.py
#!/usr/bin/python ''' TODO: - improve upload() test to match speedtest.net flash app results (dns cache, keep-alive?) - choose server based on latency (http://www.speedtest.net/speedtest-servers.php / http://SERVER/speedtest/latency.txt) ''' import urllib, urllib2 import getopt, sys from time import time from random ...
Python
0.999349
@@ -3110,16 +3110,95 @@ %0A%09%09%09 -mode = a +try:%0A%09%09%09%09mode = int(a)%0A%09%09%09except ValueError:%0A%09%09%09%09print 'Bad mode value'%0A%09%09%09%09sys.exit(2) %0A%09if
266ee5a6798c1fe09e9c6b36ee5831a1060b4624
Fix lust.py
python/lust.py
python/lust.py
#!/usr/bin/env python class LustObject(object): # executes the command def handle(self, arguments): pass def print_help(self): pass class FactorialCommand(LustObject): def handle(self, arguments): try: argument = int(arguments[0]) except (ValueError, IndexError): print("fact: could not read inte...
Python
0.000004
@@ -662,17 +662,17 @@ esult = -0 +1 %0A for
3312bd93f42aad077bb3c580c40e918bbff73f66
fix issue#160
pywren/wait.py
pywren/wait.py
from __future__ import absolute_import import time from multiprocessing.pool import ThreadPool from pywren.future import JobState import pywren.storage as storage import pywren.wrenconfig as wrenconfig ALL_COMPLETED = 1 ANY_COMPLETED = 2 ALWAYS = 3 def wait(fs, return_when=ALL_COMPLETED, THREADPOOL_SIZE=64, ...
Python
0
@@ -33,16 +33,30 @@ import%0A%0A +import random%0A import t @@ -2529,111 +2529,1628 @@ ig)%0A - callids_done = storage_handler.get_callset_status(callset_id)%0A%0A callids_done = set(callids_done) +%0A # Signal the completion of tasks by probing status files.%0A # Because S3 does not provide list-after-w...
0c0613f8b5719e396d6a053201c32482f95bdb7f
simplified the dict merging. small fix
qface/utils.py
qface/utils.py
def merge(a, b, path=None): "merges b into a" # import pdb; pdb.set_trace() path = path or [] for key in b: if key in a: if isinstance(a[key], dict) and isinstance(b[key], dict): merge(a[key], b[key], path + [str(key)]) else: a[key] = b[k...
Python
0.999987
@@ -13,19 +13,8 @@ a, b -, path=None ):%0A @@ -36,65 +36,42 @@ to a -%22%0A # import pdb; pdb.set_trace()%0A path = path or %5B%5D + recursively if a and b are dicts%22 %0A @@ -89,33 +89,8 @@ b:%0A - if key in a:%0A @@ -108,21 +108,25 @@ stance(a -%5Bkey%5D +.get(key) , dict) @@ -141...
12b34fc09baa5060495e25e57680d1f6170559c5
Enable estimation reports for FPBŻ
addons/bestja_configuration_fpbz/__openerp__.py
addons/bestja_configuration_fpbz/__openerp__.py
# -*- coding: utf-8 -*- { 'name': "Bestja: FBŻ", 'summary': "Installation configuration for FPBŻ", 'description': "Installation configuration for Federacja Polskich Banków Żywności", 'author': "Laboratorium EE", 'website': "http://www.laboratorium.ee", 'version': '0.1', 'category': 'Specific...
Python
0
@@ -708,24 +708,61 @@ d_reports',%0A + 'bestja_estimation_reports',%0A 'bes
a0b488490ad32f7251e0ec2a35607a78c3022695
FIx Entity.save signature in alias loader.
grano/service/aliases.py
grano/service/aliases.py
import logging from unicodecsv import DictReader, DictWriter from grano.core import db from grano.model import Entity, Schema log = logging.getLogger(__name__) ## Import commands def import_aliases(path): with open(path, 'r') as fh: reader = DictReader(fh) for row in reader: data = {...
Python
0
@@ -954,37 +954,8 @@ = %7B%0A - 'name': 'name', %0A @@ -1161,14 +1161,22 @@ a%5D, -%5B +%7B'name': prop -%5D +%7D , %5B%5D
4a170c7ea5fb67d15d04485973ce46b112b8a0ac
Make CDN regression handle missing files in rebaseline.
tools/cdn/regression.py
tools/cdn/regression.py
#!/usr/bin/env python # # regression.py - Checks for visual regressions in content loaded from # the CDN by rendering before and after versions and comparing them. # # regression.py [-n num_assets] [-t type] url command # # regression.py is a utility for finding visual regressions in # meshes. It can be used to check f...
Python
0
@@ -2342,32 +2342,80 @@ item in items:%0A + print 'Generating screenshot for', item%0A sshot = @@ -3682,32 +3682,49 @@ item in items:%0A + try:%0A sshot_ba @@ -3768,32 +3768,36 @@ eline')%0A + sshot_new = file @@ -3815,32 +3815,36 @@ rl(item, 'new')%0A + ...
7856a9f7e63c6a5146dc6976686e22420155f80c
if heroku debug=False
app.py
app.py
from flask import Flask, render_template, jsonify, request from get_solution import Solution app = Flask(__name__) @app.route('/') @app.route('/index') def index(): return render_template('base.html', title="Codeforces Solution by Handle Name") @app.route('/get_solution', methods=['POST', 'GET']) def get_solution(...
Python
0.999999
@@ -85,16 +85,26 @@ Solution +%0Aimport os %0A%0Aapp = @@ -515,22 +515,8 @@ ()%0A%0A -LOCAL = True%0A%0A if _ @@ -542,26 +542,90 @@ _':%0A - app.run(debug=LOCAL) +%0A if os.environ.get('HEROKU') is None:%0A app.run(debug=True)%0A else:%0A app.run()%0A
aca7362a3056045f869375797cbaef58b76c6f3b
Return airlines as array instead of map
app.py
app.py
from flask import Flask, flash, request, redirect, url_for, render_template, jsonify from werkzeug.utils import secure_filename import sys import os import json import logging import urllib import location_analyzer import suggester import db import precomputed app = Flask(__name__, static_url_path='/static') mode...
Python
0.000058
@@ -3827,16 +3827,37 @@ cov%5B'p'%5D +, 'iata': cov%5B'iata'%5D %7D%0A%0A f @@ -4191,16 +4191,25 @@ airlines +.values() %7D)%0A%0A@app
2dc3e7eb3e6e5b32347d24d5353f9a5f0f6915c2
Create app.py
app.py
app.py
#!/usr/bin/env python import urllib import json import os import time from flask import Flask from flask import request from flask import make_response from datetime import datetime # Flask app should start in global layout app = Flask(__name__) @app.route('/webhook', methods=['POST']) def webhook(): req = req...
Python
0.000003
@@ -809,18 +809,16 @@ n%22)%0A%0A -// cost = @@ -904,18 +904,16 @@ 00%7D%0A%0A -// speech @@ -1078,26 +1078,24 @@ caltime%0A%0A -// print(%22Resp @@ -1109,10 +1109,8 @@ %0A -// pri
7cae85a5a0da8a49297eade0dd2ebdca0259e6ff
Support jpeg tiles.
app.py
app.py
#!/usr/bin/python # Copyright 2012 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 applic...
Python
0.000001
@@ -3752,11 +3752,13 @@ %3Cy%3E. -png +%3Cfmt%3E ',%0A
cb5aa965254c6abe3a865747e823fbe90f894a2c
return addresses as 'items'
app.py
app.py
from flask import Flask, Response, url_for, request, json import os import urllib2 import datetime app = Flask(__name__) @app.route('/hello') def hello(): return 'Hello world' @app.route('/') def index(): response_data = json.dumps({ 'closures_href': url_for('closures') }) response = Response(response_data, st...
Python
0.999977
@@ -744,16 +744,38 @@ ponse = +%7B 'items': json.loads( urllib2. @@ -807,16 +807,19 @@ ).read() +) %7D %0A respo @@ -833,16 +833,27 @@ esponse( +json.dumps( scraperw @@ -864,16 +864,17 @@ response +) , status @@ -912,54 +912,8 @@ n')%0A - #return url_for('closure_id', closure_id=1)%0A re
1f0261486710cebc1d7f279b5cada22b9a92c30f
Correct URL expressions
app.py
app.py
from flask import Flask, render_template, request, url_for, redirect, abort import flask_bootstrap import db import os import rpi import psycopg2.extras import json app = Flask(__name__) flask_bootstrap.Bootstrap(app) # This method is used by typeahead.js @app.route("/api/v1/player") def api_list_players(): conn...
Python
0
@@ -2558,27 +2558,28 @@ e/%3Cgamename%3E +/ %22)%0A - def show_gam @@ -3942,16 +3942,17 @@ %3E/submit +/ %22)%0Adef s @@ -4664,16 +4664,17 @@ %3E/submit +/ %22, metho @@ -5581,16 +5581,16 @@ None%0A%0A%0A - @app.rou @@ -5621,16 +5621,17 @@ derboard +/ %22)%0Adef s
86fc8afe0a8eed0f9f61372c19f9655abfb8c556
fix for not caching when mergeable_state==unknown
app.py
app.py
#!/usr/bin/env python import json import os import hashlib import requests from werkzeug.contrib.cache import MemcachedCache from flask import Flask, request, make_response, jsonify, send_file from flask.views import MethodView MEMCACHE_URL = os.environ.get('MEMCACHE_URL', '127.0.0.1:11211').split(',') DEBUG = os....
Python
0.000001
@@ -3077,16 +3077,271 @@ value%7D%0A + # often when pulling down a pull request, the state of%0A # whether the pull request is mergeable takes a while to figure%0A # out so we don't want to cache that.%0A if value.get('mergeable_state') != 'unknown':%0A @@ -35...
32cb09df8f8c62bdc2ba5331b46b217abed49705
Falling back to batch mode should be a WARNING not ERROR
rootpy/logger/roothandler.py
rootpy/logger/roothandler.py
import ctypes import logging import re import sys from . import root_logger, log from .magic import DANGER, set_error_handler, re_execute_with_exception class SHOWTRACE: enabled = False SANE_REGEX = re.compile("^[^\x80-\xFF]*$") class Initialized: value = False ABORT_LEVEL = log.ERROR def python_logging_e...
Python
0.999601
@@ -293,16 +293,433 @@ .ERROR%0A%0A +def fixup_msg(lvl, msg):%0A %0A # Fixup for this ERROR to a WARNING because it has a reasonable fallback.%0A # WARNING:ROOT.TGClient.TGClient%5D can't open display %22localhost:10.0%22, switching to batch mode...%0A # In case you run from a remote ssh session, reconnec...
070589ee7dba86dd3d0a8928ebdd331d4faaa0c6
Remove pdf_file field from plugin
addons/plugin_thunderbird/plugin_thunderbird.py
addons/plugin_thunderbird/plugin_thunderbird.py
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
Python
0
@@ -1655,142 +1655,8 @@ i',%0A - 'pdf_file' : 'http://doc.openerp.com/v6.1/book/2/3_CRM_Contacts/communicate.html#managing-your-crm-from-mozilla-thunderbird',%0A
8dbe0a3f0b9371ef63b099389fc2a8e12b2632c6
test button
app.py
app.py
#!/usr/bin/env python from __future__ import print_function from future.standard_library import install_aliases install_aliases() from urllib.parse import urlparse, urlencode from urllib.request import urlopen, Request from urllib.error import HTTPError import json import os from flask import Flask from flask impor...
Python
0.000002
@@ -20,117 +20,8 @@ on%0A%0A -from __future__ import print_function%0Afrom future.standard_library import install_aliases%0Ainstall_aliases()%0A%0A from @@ -2345,16 +2345,330 @@ sample%22%0A + %22buttons%22:%5B%0A %7B%0A %22type%22:%22web_url%22,%0A %22url%22:%22https://petersap...
41792170e33d1904a8ed4f7021fe57ed9fd96dc1
test insert into DB by param
app.py
app.py
#!/usr/bin/env python from Data import Database import urllib import json import os from flask import Flask from flask import request from flask import make_response import psycopg2 import urlparse global name global singletonObject singletonObject = None # Flask app should start in global layout app = Flask(__nam...
Python
0
@@ -2426,16 +2426,21 @@ nn, Name +, age ):%0A c @@ -2540,27 +2540,41 @@ %22 + -(str)(Name) + %22, 20 +%22'%22 + Name + %22'%22 + %22, %22 + age + %22 )%22); @@ -3107,16 +3107,20 @@ , %22Nany%22 +, 20 )%0A %0A
052dc22a82267d381636f5f5fbbf4b5149ffb518
check if the values are empty before adding the data
gui/specieslistdialog.py
gui/specieslistdialog.py
# -*- coding: utf8 -*- from PyQt4 import QtGui, QtCore class speciesListDialog(QtGui.QDialog): _tableview = None def __init__(self, parent, app): QtGui.QDialog.__init__(self, parent) self._app = app self._parent = parent self.initUI() self.setWindowTitle('List species') self.show() def initUI(self):...
Python
0.000005
@@ -1250,28 +1250,18 @@ :%0A%09%09 -self._app.addSpecies +name = str (sel @@ -1279,18 +1279,38 @@ d.text() -, +)%0A%09%09description = str( self._de @@ -1340,16 +1340,114 @@ ext())%0A%0A +%09%09if name is %22%22 or description is %22%22:%0A%09%09%09return False%0A%0A%09%09self._app.addSpecies(name, description)%0...
fda5277442f62ff9a81dcc853a8de86b825751b0
use rq.SimpleWork (execute job in main process)
app.py
app.py
#! /usr/bin/env python3.6 # coding: utf-8 from kamera.logger import log import sys import os from hashlib import sha256 import hmac import json import datetime as dt from pathlib import Path from flask import Flask, request, abort, Response, g import redis import rq import rq_dashboard import redis_lock import dropbo...
Python
0
@@ -5733,42 +5733,35 @@ rq. +Simple Worker( -list(map(rq.Queue, listen)) +queues=%5Bqueue%5D )%0A
ffe23433056e0a710f81bb22a9161cdaf3ff2c12
fix format call for python 2.6
moban/filters/repr.py
moban/filters/repr.py
from moban.extensions import JinjaFilter @JinjaFilter('repr') def repr_function(string): if isinstance(string, list): return ["'{}'".format(str(element)) for element in string] else: return "'{}'".format(str(string))
Python
0.000003
@@ -136,16 +136,17 @@ urn %5B%22'%7B +0 %7D'%22.form @@ -213,16 +213,17 @@ turn %22'%7B +0 %7D'%22.form
73029fe3a4cb40063820fdab0fe61a4adbe56e01
use tempfile instead of /tmp
thinc/linear/tests/test_avgtron.py
thinc/linear/tests/test_avgtron.py
from __future__ import division import pytest import pickle import io import tempfile from thinc.linear.avgtron import AveragedPerceptron from thinc.extra.eg import Example def assert_near_eq(float1, float2): assert abs(float1 - float2) < 0.001 def test_basic(): nr_class = 3 model = AveragedPerceptron...
Python
0.000001
@@ -3815,16 +3815,19 @@ kstemp() +%5B1%5D %0A mod
9255fd2c34a403b14b423628f47b7a7419c0d526
update language lexer translations
packages/wakatime/wakatime/stats.py
packages/wakatime/wakatime/stats.py
# -*- coding: utf-8 -*- """ wakatime.stats ~~~~~~~~~~~~~~ Stats about files :copyright: (c) 2013 Alan Hamlett. :license: BSD, see LICENSE for more details. """ import logging import os import sys if sys.version_info[0] == 2: sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__f...
Python
0
@@ -658,16 +658,251 @@ own',%0A%7D%0A +TRANSLATIONS = %7B%0A 'CSS+Genshi Text': 'CSS',%0A 'CSS+Lasso': 'CSS',%0A 'HTML+Django/Jinja': 'HTML',%0A 'HTML+Lasso': 'HTML',%0A 'JavaScript+Genshi Text': 'JavaScript',%0A 'JavaScript+Lasso': 'JavaScript',%0A 'Perl6': 'Perl',%0A%7D%0A %0A%0Adef gu @@ -1259...
b91c15f745d18bba4a884666cd3bd7eb87f82943
Bind to 0.0.0.0.
bot.py
bot.py
import functools import os from bottle import Bottle, request, jinja2_view view = functools.partial(jinja2_view, template_lookup=['templates']) app = Bottle() @app.get('/') @view('home.html') def instructions(): return {} @app.post('/') def do_correlation(): data = request.json print data return "H...
Python
0.997724
@@ -466,17 +466,15 @@ st=' -localhost +0.0.0.0 ', p
324cae7bc3d8d758205a0760dffd8d78ce611d48
Increase tweet length
bot.py
bot.py
#!/usr/bin/python # -*- coding: utf-8 -*- import tweepy import datetime import os import os.path import requests import json from models import Aufmacher, Author, Image, TweetJob from config import db from playhouse.shortcuts import model_to_dict from secrets import twitter_secrets def tweet(tweetjob): href = t...
Python
0.998431
@@ -517,19 +517,19 @@ text) %3E -115 +250 :%0A @@ -551,11 +551,11 @@ %22%7B:. -115 +250 %7D%E2%80%A6%22.
4d131e93f61f879307e92e1fcabe38ff4f670e64
add missing )
controllers/api/api_district_controller.py
controllers/api/api_district_controller.py
import json import webapp2 from controllers.api.api_base_controller import ApiBaseController from consts.district_type import DistrictType from consts.event_type import EventType from datetime import datetime from google.appengine.ext import ndb from helpers.district_helper import DistrictHelper from helpers.event_...
Python
0.000018
@@ -1341,24 +1341,25 @@ /list', year +) %0A%0A def _r
afc1c7331e683aeffe05a914780a5ec60cdbf81b
use 4GB RAM for garmin
conversion_service/converters/converter.py
conversion_service/converters/converter.py
import os import shutil import subprocess import time from converters import garmin_converter from converters import gis_converter from converters.gis_converter.bootstrap import bootstrap from utils import chg_dir_with class Conversion(object): def __init__(self, formats, output_dir, osm_pbf_path, basename='osma...
Python
0.000001
@@ -2065,16 +2065,40 @@ %5B'java', + '-Xms32m', '-Xmx4096m', '-jar',
22c9ac7807ad493e9b2b0b97f4299cc87b316ada
Fix copy_resources overwrite.
modelmanager/utils.py
modelmanager/utils.py
"""All handy, general utility functionality used throughout the package.""" import os import os.path as osp import fnmatch import shutil def load_module_path(name, path): """Load a python module source file python version aware.""" if True: # PY==27 import imp m = imp.load_source(name, path)...
Python
0
@@ -3592,33 +3592,67 @@ e%0A el -s +if not osp.exists(dest) or overwrit e:%0A
3d52eca5b9a7cddcd1d2b67547c22c28847aa085
fix print format for python3
tools/run_tests/start_port_server.py
tools/run_tests/start_port_server.py
#!/usr/bin/env python2.7 # Copyright 2017 gRPC 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 l...
Python
0.000027
@@ -959,17 +959,17 @@ )%0A%0Aprint - +( %22Port se @@ -994,9 +994,10 @@ ssfully%22 +) %0A
091ce8a1249a5e4675e4cde6b51e9e551956f299
Remove python version consideration in pacman commands
tools/check_python_dependencies.py
tools/check_python_dependencies.py
#!/usr/bin/env python # # Copyright 2018 Espressif Systems (Shanghai) PTE LTD # # 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 req...
Python
0
@@ -3751,18 +3751,16 @@ 6-python -%7B%7D -%3Cpackag @@ -3792,37 +3792,8 @@ it.%22 -.format(sys.version_info%5B0%5D,) )%0A @@ -4904,18 +4904,16 @@ 6-python -%7B%7D -setupto @@ -4920,37 +4920,8 @@ ols%22 -.format(sys.version_info%5B0%5D,) )%0A
c0e9c1bdcfb01e409e0b0ded5302fe258ee75cdb
Fix git method called (#149)
models/runbot_repo.py
models/runbot_repo.py
# Copyright <2017> <Vauxoo info@vauxoo.com> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). import logging import os import re import urllib.parse import requests from odoo import fields, models _logger = logging.getLogger(__name__) def _get_url(url, base): """When get is URL_GITHUB/api/v3/Use...
Python
0
@@ -2375,16 +2375,17 @@ repo. +_ git(%5B'fe @@ -2406,16 +2406,17 @@ rigin',%0A +
6561ea0b329b2f42126dc23eab59676de305dd73
remove unused imports
flask_wtf/forms.py
flask_wtf/forms.py
from __future__ import absolute_import import jinja2 import wtforms from flask import request, session, current_app from wtforms.ext.csrf.session import SessionSecureForm from wtforms.fields import HiddenField class Form(SessionSecureForm): "Implements a SessionSecureForm using app.SECRET_KEY and flask.session o...
Python
0.000001
@@ -50,23 +50,8 @@ nja2 -%0Aimport wtforms %0A%0Afr
733afa0e339028da9f26c213f980b2c151f8c5c9
optimize workers count according to profiling result.
processor/emblem_processor.py
processor/emblem_processor.py
import logging import operator import os from mapreduce.driver import MapReduceDriver from mapreduce.emblem_finals import EmblemFinals from mapreduce.emblem_freq import EmblemFreq from nlp.emblem import Emblem from processor.songci_dao import MongoDAO class EmblemProcessor: """ Processor that deals with embl...
Python
0
@@ -3109,12 +3109,8 @@ rs = - 4 * (os @@ -3127,16 +3127,21 @@ () or 1) + %3C%3C 3 %0A
7041baaf713e7c3bf7b764aaddd439faae2b5a3b
Fix URL in api.get_workspaces().
floo/common/api.py
floo/common/api.py
import sys import base64 import json import subprocess import traceback from functools import wraps try: import ssl except ImportError: ssl = False try: import __builtin__ str_instances = (str, __builtin__.basestring) except Exception: str_instances = (str, ) try: import urllib from urll...
Python
0.000002
@@ -4246,16 +4246,17 @@ orkspace +s /can/vie