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 |
|---|---|---|---|---|---|---|---|
18428461f230d7d57056bd1a6a0fc2a66cedb5f1 | increment version | grizli/version.py | grizli/version.py | # git describe --tags
__version__ = "0.8.0-10-g15486e6"
| Python | 0.000004 | @@ -41,16 +41,16 @@
.0-1
-0
+4
-g
-1
548
-6e6
+f692
%22%0A
|
b66c987170d8d0b6b83d25f4214208b9251c644c | Document error handling | code/document.py | code/document.py | from boto.s3.key import Key
import socket
import sys
import xmltodict
from collections import OrderedDict
import gzip
class Document(object):
"""
This class represents a subtitle file.
"""
def __init__(self, key, label):
self.label = label
self.key = key
self.parsed_xml = self... | Python | 0.000001 | @@ -1456,17 +1456,17 @@
urn %7B%7D%0A%0A
-
+#
x
@@ -1474,17 +1474,17 @@
l=''%0A%0A%0A%0A
-
+#
l
@@ -1499,25 +1499,25 @@
readline()%0A%0A
-
+#
while
@@ -1523,17 +1523,17 @@
e line:%0A
-
+#
@@ -1555,16 +1555,37 @@
strip()%0A
+# try:%0A#
@@ -1608,34 +1608,2... |
7aa5c99682a626eb1a189d29e609bee290451f14 | Create trace_dir if not exists. Other minor changes. | utils/config_import.py | utils/config_import.py | import yaml
import os
import sqlite3
class DistillerConfig:
def __init__(self, config_file, section):
self.config = read_config(config_file, section)
try:
self.project_name = self.config['name']
self.trace_queue = "%s-trace-queue" % self.project_name
self.trace... | Python | 0 | @@ -2663,24 +2663,30 @@
%22No seed dir
+ectory
defined.%22)%0A
@@ -2757,24 +2757,326 @@
trace_dir'%5D%0A
+ if not os.path.isdir(self.trace_dir):%0A try:%0A os.makedirs(self.trace_dir)%0A except os.error:%0A pass%0A ... |
e31d0a25e15ebba565fc7466a9d307829a75201b | Update script to put things in supportfiles/ now and reference supportfiles.tar.bz2 for better autocomplete. | autogallery.py | autogallery.py | #!/usr/bin/env python
import os, sys, getopt #for path navigation and argument handling
import Image #for thumbnailing, Python Image Library
import zipfile, tarfile #for archive reading/writing
import ConfigParser #for parsing config file
try:
opts, args = getopt.getopt(sys.argv[1:], "", ["rex", "regen", "regenall"]... | Python | 0 | @@ -14,16 +14,40 @@
v python
+%0A# -*- coding: utf-8 -*-
%0A%0Aimport
@@ -641,16 +641,29 @@
isfile('
+supportfiles/
template
@@ -758,24 +758,20 @@
en('
-autogallerystuff
+supportfiles
.tar
@@ -1057,16 +1057,29 @@
p(open('
+supportfiles/
config.c
@@ -2923,16 +2923,29 @@
= open('
+supportfiles/
template
|
68eaa885e15b98bc05376d9ddca6926258be2c46 | make header fields with dates (e.g. last-modified) comparable | httoop/header/conditional.py | httoop/header/conditional.py | # -*- coding: utf-8 -*-
from httoop.header.element import HeaderElement
class ETag(HeaderElement):
pass
class LastModified(HeaderElement):
__name__ = 'Last-Modified'
class IfMatch(HeaderElement):
__name__ = 'If-Match'
class IfModifiedSince(HeaderElement):
__name__ = 'If-Modified-Since'
class IfNoneMatch(... | Python | 0 | @@ -68,16 +68,142 @@
ement%0A%0A%0A
+class _DateComparable(object):%0A%09from httoop.date import Date%0A%09def sanitize(self):%0A%09%09self.value = self.Date.parse(self.value)%0A%0A
class ET
@@ -248,16 +248,33 @@
odified(
+_DateComparable,
HeaderEl
@@ -380,32 +380,49 @@
IfModifiedSince(
+_DateComparable,
Header... |
683842330c3a6fa8974d141fc4c3095a8c095510 | add total variation loss to summary | examples/style-transfer/style_transfer.py | examples/style-transfer/style_transfer.py | # -*- coding: utf-8 -*-
import argparse
import os
import sys
import numpy as np
from scipy.misc import imread, imresize, imsave
import tensorflow as tf
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir)))
import tfmodel
# Parse arguments
parser = argparse.ArgumentParser()
... | Python | 0.000009 | @@ -773,17 +773,17 @@
default=
-1
+3
000)%0Apar
@@ -4124,16 +4124,75 @@
weight%22)
+%0A tf.summary.scalar(%22total_variation_loss%22, tv_loss)
%0A%0A #
|
82bc502cf7bb64236feba6e140d98bb9e555f4ca | Fix assert_raises for catching parents of exceptions. | tests/backport_assert_raises.py | tests/backport_assert_raises.py | from __future__ import unicode_literals
"""
Patch courtesy of:
https://marmida.com/blog/index.php/2012/08/08/monkey-patching-assert_raises/
"""
# code for monkey-patching
import nose.tools
# let's fix nose.tools.assert_raises (which is really unittest.assertRaises)
# so that it always supports context management
# i... | Python | 0 | @@ -877,16 +877,96 @@
exc_val%0A
+ if issubclass(exc_type, self.expected):%0A return True%0A
|
bea4752dea1e7f01257b38faef9e21ba0e946983 | Implement psutil within blackbox tests | tests/blackbox/testlib/utils.py | tests/blackbox/testlib/utils.py | # Copyright 2019 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 writing... | Python | 0.000002 | @@ -708,16 +708,51 @@
Popen%0A%0A
+# isort: THIRDPARTY%0Aimport psutil%0A%0A
# Name p
@@ -1448,24 +1448,28 @@
-Wal
+Loo
k th
-e
+rough
process
tab
@@ -1468,366 +1468,408 @@
cess
- table looking for executable 'name', returns pid if one%0A found, else return None%0A %22%22%22%0A for pid in %5Bpid... |
fc94bda4cb840b74fbd1226d69bf0aafc5e16e61 | return when not installed (#283) | pwndbg/commands/rop.py | pwndbg/commands/rop.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import argparse
import re
import subprocess
import tempfile
import gdb
import pwndbg.commands
import pwndbg.vmmap
parser ... | Python | 0 | @@ -1438,16 +1438,35 @@
$PATH.%22)
+%0A return
%0A%0A
|
0a5b7c606a711307bdc41179cf94c0a72c15ee92 | Make BaseCommandTest automatically instantiate commands using decoration magic. | hypebot/commands/hypetest.py | hypebot/commands/hypetest.py | # Copyright 2019 The Hypebot Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | Python | 0 | @@ -1200,16 +1200,224 @@
BLIC)%0A%0A%0A
+def ForCommand(command_cls):%0A %22%22%22Decorator to enable setting the command for each test class.%22%22%22%0A%0A def _Internal(test_cls):%0A test_cls._command_cls = command_cls%0A return test_cls%0A%0A return _Internal%0A%0A%0A
class Ba
@@ -2159,16 +2159,499 @@
,... |
6cef7f841fc34321d68e8c85ff7f78682c59eae2 | Add help and version text; check for IO errors | py-chrome-bookmarks.py | py-chrome-bookmarks.py | #!/usr/bin/python
# py-chrome-bookmarks
#
# A script to convert Google Chrome's bookmarks file to the standard HTML-ish
# format.
#
# (c) Benjamin Esham, 2011. See the accompanying README for this file's
# license and other information.
import json, sys, os, re
# html escaping code from http://wiki.python.org/moin... | Python | 0 | @@ -1214,16 +1214,764 @@
n'%5D%5D))%0A%0A
+def version_text():%0A%09old_out = sys.stdout%0A%09sys.stdout = sys.stderr%0A%0A%09print %22py-chrome-bookmarks%22%0A%09print %22(c) 2011, Benjamin Esham%22%0A%09print %22https://github.com/bdesham/py-chrome-bookmarks%22%0A%0A%09sys.stdout = old_out%0A%0Adef help_text():%0A%0... |
98467f55ef8526d343065da7d6a896b16539fa53 | use consistent hash for etag | http_agent/utils/etag.py | http_agent/utils/etag.py | def make_entity_tag(body):
checksum = hash(body) + (1 << 64)
return '"{checksum}"'.format(checksum=checksum)
| Python | 0.000001 | @@ -1,8 +1,35 @@
+from zlib import adler32%0A%0A%0A
def make
@@ -66,29 +66,29 @@
m =
-hash(body) + (1 %3C%3C 64
+adler32(body.encode()
)%0A
|
82f6a4cf6e1e5ceef2c48811eceb93e8a7ce13e3 | Add handler for demo. | filestore/file_readers.py | filestore/file_readers.py | from __future__ import (absolute_import, division, print_function,
unicode_literals)
from .retrieve import HandlerBase
import six
import logging
import h5py
import numpy as np
import os.path
logger = logging.getLogger(__name__)
class _HdfMapsHandlerBase(HandlerBase):
"""
Reader for X... | Python | 0 | @@ -245,24 +245,774 @@
__name__)%0A%0A%0A
+class _HDF5HandlerBase(HandlerBase):%0A%0A def open(self):%0A if self._file:%0A return%0A self._file = h5py.File(self._filename)%0A%0A def close(self):%0A super(HDF5HandlerBase, self).close()%0A self._file.close()%0A%0A%0Aclass HDF... |
ec668c693051f70026360ac2f3bc67ced6c01a21 | fix little bug | src/fb_messenger/test/test_attachements.py | src/fb_messenger/test/test_attachements.py | import unittest
class FirstTest(unittest.TestCase):
def test_first(self):
self.assertEqual(True, False, 'incorrect types')
| Python | 0.000001 | @@ -108,12 +108,11 @@
ue,
-Fals
+Tru
e, '
|
72fa89b1b6052f71873f25af2feb9f77c64dd3b0 | use calculation to build the team lists | mue/integration_test.py | mue/integration_test.py | from random import choice
import json
import sys
import pymue
MAX_WAY = 7.8
def way_cost(way_length):
if way_length <= 1:
return way_length * 100
elif way_length < MAX_WAY:
return (way_length * 100) ** 2
return sys.float_info.max
print "read data...."
pref = ""
if len(sys.argv):
pr... | Python | 0 | @@ -54,16 +54,52 @@
rt pymue
+%0Afrom collections import defaultdict
%0A%0AMAX_WA
@@ -1412,16 +1412,372 @@
ing)%0A%0A%0A%0A
+def generate_plan(round_data, iteration_data):%0A plan = %5B%5D%0A for round_num in range(3):%0A round_set = defaultdict(set)%0A for (team_id, station) in enumerate(calcula... |
a7bfebe4bc1cdeca333675ccdfd19e385dbc864b | improve leak checker flag description | jax/config.py | jax/config.py | # Copyright 2018 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | Python | 0.000003 | @@ -5540,32 +5540,33 @@
alse),%0A help=
+(
'Turn on checkin
@@ -5615,12 +5615,153 @@
mpletes.
-'
+ '%0A 'Enabling leak checking may have performance impacts: some caching '%0A 'is disabled, and other overheads may be added.'),
%0A)%0A
|
4979e8e5ee8ac6cb86ab260f44f052b27381eeb6 | bump version | giddy/__init__.py | giddy/__init__.py | __version__ = "1.2.0"
# __version__ has to be defined in the first line
"""
:mod:`giddy` --- Spatial Dynamics and Mobility
==============================================
"""
from . import directional
from . import ergodic
from . import markov
from . import mobility
from . import rank
from . import util | Python | 0 | @@ -12,11 +12,11 @@
= %22
-1.2
+2.0
.0%22%0A
|
522906d2842d90722776f898015fde060c967401 | Update cam.py | pyCam/build_0.3/cam.py | pyCam/build_0.3/cam.py | import cv2
import numpy as np
from twilio.rest import TwilioRestClient
import time
#importing modules ^^
body_cascade = cv2.CascadeClassifier('haarcascade_fullbody.xml')
#importing cascade-classfiers ^^
vc = cv2.VideoCapture(0)
#finding default camera ^^
while -1:
ret, img = vc.read()
gray = cv2.cvtColo... | Python | 0.000001 | @@ -195,17 +195,16 @@
lassfier
-s
%5E%5E%0A%0Avc
@@ -654,78 +654,82 @@
nt(%22
-AC47b13b617c5806614265237ce06fa110%22, %22e4e74dbdf6719d769422a90225dd8814
+xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx%22, %22xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
%22) #
@@ -851,10 +851,12 @@
%22, #
-my
+user
num
|
10ee1e1fc58153644bb027c0534dc8f80d09e9bc | Define font size value as the class constant | pyavagen/generators.py | pyavagen/generators.py | import os
import abc
import math
from random import randint, choice
from PIL import Image, ImageDraw, ImageFilter, ImageFont
from pyavagen.validators import (
TypeValidator,
ColorValidator,
MinValueValidator,
)
from pyavagen.utils import get_random_color
class AvatarField(object):
def __init__(self... | Python | 0.000527 | @@ -4570,24 +4570,46 @@
r.ttf'%0A )
+%0A FONT_SIZE_MIN = 1
%0A%0A string
@@ -5105,17 +5105,29 @@
lidator(
-1
+FONT_SIZE_MIN
)%0A
|
64c08dfc40240c7b1b4b876b12bdb57ace22d675 | remove print statement | gippy/__init__.py | gippy/__init__.py | #!/usr/bin/env python
################################################################################
# GIPPY: Geospatial Image Processing library for Python
#
# AUTHOR: Matthew Hanson
# EMAIL: matt.a.hanson@gmail.com
#
# Copyright (C) 2015 Applied Geosolutions
#
# Licensed under the Apache License, Ve... | Python | 0.999999 | @@ -1032,25 +1032,8 @@
sys%0A
- print 'here'%0A
|
30f89eacb428af7091d238d39766d6481735c670 | fix for BASH_FUNC_module on qstat output | igf_airflow/hpc/hpc_queue.py | igf_airflow/hpc/hpc_queue.py | import json
import subprocess
from collections import defaultdict
from tempfile import TemporaryFile
def get_pbspro_job_count(job_name_prefix=''):
'''
A function for fetching running and queued job information from a PBSPro HPC cluster
:param job_name_prefix: A text to filter running jobs, default ''
:returns... | Python | 0.000001 | @@ -522,39 +522,139 @@
-%5B
'qstat
-','-t','-f','-F','json'%5D
+ -t -f -F json%7Cgrep -v BASH_FUNC_module', # this can fix or break pipeline as well%0A shell=True
,%0A
|
8998d0f617791f95b1ed6b4a1fffa0f71752b801 | Update docs/params for initialization methods. | pybo/bayesopt/inits.py | pybo/bayesopt/inits.py | """
Implementation of methods for sampling initial points.
"""
# future imports
from __future__ import division
from __future__ import absolute_import
from __future__ import print_function
# global imports
import numpy as np
# local imports
from ..utils import ldsample
# exported symbols
__all__ = ['init_middle', '... | Python | 0 | @@ -383,16 +383,96 @@
ounds):%0A
+ %22%22%22%0A Initialize using a single query in the middle of the space.%0A %22%22%22%0A
retu
@@ -525,32 +525,40 @@
_uniform(bounds,
+ n=None,
rng=None):%0A
@@ -557,33 +557,222 @@
e):%0A
-n = 3*len(bounds)
+%22%22%22%0A Initialize using %60n%60 uniformly ... |
cfc13f7e98062a2eb5a9a96298ebc67ee79d9602 | Use path for urls | src/clarityv2/deductions/admin.py | src/clarityv2/deductions/admin.py | from django.conf.urls import url
from django.contrib import admin
from django.db.models import Sum
from clarityv2.utils.views.private_media import PrivateMediaView
from .models import Deduction
class DeductionPrivateMediaView(PrivateMediaView):
model = Deduction
permission_required = 'invoices.can_view_invo... | Python | 0.000002 | @@ -9,13 +9,8 @@
ngo.
-conf.
urls
@@ -17,19 +17,20 @@
import
-url
+path
%0Afrom dj
@@ -1085,19 +1085,20 @@
-url
+path
(%0A
@@ -1111,28 +1111,19 @@
-r'%5E(?P
+'
%3Cpk%3E
-.*)
/file/
-$
',%0A
|
a8d7afe076c14115f3282114cecad216e46e7353 | Update scipy_effects.py | pydub/scipy_effects.py | pydub/scipy_effects.py | """
This module provides scipy versions of high_pass_filter, and low_pass_filter
as well as an additional band_pass_filter.
Of course, you will need to install scipy for these to work.
When this module is imported the high and low pass filters are used when calling
audio_segment.high_pass_filter() and audio_segment.h... | Python | 0.000002 | @@ -239,18 +239,39 @@
filters
-ar
+from this module%0Awill b
e used w
@@ -281,17 +281,17 @@
calling
-%0A
+
audio_se
@@ -319,16 +319,17 @@
r() and
+%0A
audio_se
@@ -360,17 +360,17 @@
instead
-%0A
+
of the s
@@ -399,16 +399,17 @@
ersions
+%0A
provided
|
7508d20bd3d6af0b2e5a886c8ea2f895d9e69935 | Bump version: 0.2.1 → 0.2.2 | pyfilemail/__init__.py | pyfilemail/__init__.py | # -*- coding: utf-8 -*-
__title__ = 'pyfilemail'
__version__ = '0.2.1'
__author__ = 'Daniel Flehner Heen'
__license__ = 'MIT'
__copyright__ = 'Copyright 2016 Daniel Flehner Heen'
import os
import logging
from functools import wraps
import appdirs
# Init logger
logger = logging.getLogger('pyfilemail')
level = os.g... | Python | 0.000001 | @@ -62,17 +62,17 @@
= '0.2.
-1
+2
'%0A__auth
|
954043ded2d23072fd55d2a9e10db058959b9921 | Add docstring to the Boa lexer. | pygments/lexers/boa.py | pygments/lexers/boa.py | # -*- coding: utf-8 -*-
import re
from pygments.lexer import RegexLexer, words
from pygments.token import *
__all__ = ['BoaLexer']
line_re = re.compile('.*?\n')
class BoaLexer(RegexLexer):
"""
http://boa.cs.iastate.edu/docs/
"""
name = 'Boa'
aliases = ['boa']
filenames = ['... | Python | 0 | @@ -18,16 +18,234 @@
-8 -*-%0D%0A
+%22%22%22%0D%0A pygments.lexers.boa%0D%0A ~~~~~~~~~~~~~~~~~~~~%0D%0A%0D%0A Lexers for the Boa language.%0D%0A%0D%0A :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.%0D%0A :license: BSD, see LICENSE for details.%0D%0A%22%22%22%0D%0A%0D%0A
import r
@@ ... |
08f9d84cd32d89bec89ee600b70bdbe6e3909070 | version bump | gooey/__init__.py | gooey/__init__.py | import os
from gooey.python_bindings.gooey_decorator import Gooey
from gooey.python_bindings.gooey_parser import GooeyParser
# from gooey.gui import application
version_file = os.path.join(os.path.dirname(__file__), 'version')
__version__ = '0.8.15.2'
| Python | 0.000001 | @@ -253,10 +253,8 @@
.8.1
-5.2
+6
'%0D%0A
|
dc5a30caf4e2668e0e89e0800787930a3fb40dd1 | add myself to docs authors in latex | pylons/docs/en/conf.py | pylons/docs/en/conf.py | # -*- coding: utf-8 -*-
#
# Pylons documentation build configuration file, created by
# sphinx-quickstart on Mon Apr 21 20:41:33 2008.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# The contents of this file are pickled, so don't put values in the namespace
# that aren't pickleab... | Python | 0 | @@ -4108,16 +4108,31 @@
Gardner
+, Philip Jenvey
', 'manu
@@ -4135,16 +4135,19 @@
manual',
+%0A
'toctre
|
f7066d6bdd4fefbf517cd8ab44951955bb9f3a2a | Fix min/max for None types | gpaw/setup/gcc.py | gpaw/setup/gcc.py | #!/usr/bin/env python3
"""Wrapper for the GNU compiler that converts / removes incompatible
compiler options and allows for file-specific tailoring."""
import sys
from subprocess import call
# Default compiler and options
compiler = 'gcc'
args2change = {}
fragile_files = ['c/xc/tpss.c']
# Default optimisation sett... | Python | 0.000072 | @@ -1540,16 +1540,49 @@
ragile:%0A
+ if optimise is not None:%0A
opti
@@ -1645,24 +1645,57 @@
flags%0Aelse:%0A
+ if optimise is not None:%0A
optimise
|
0b6b7ab518362445f3901f8d3b0d6281e2671c3f | Make code python3 compatible | drivers/python/setup.py | drivers/python/setup.py | # Copyright 2010-2012 RethinkDB, all rights reserved.
from setuptools import setup, Extension
from distutils.command.build_ext import build_ext
from distutils.errors import DistutilsPlatformError, CCompilerError, DistutilsExecError
import sys
class build_ext_nofail(build_ext):
# This class can replace the build_e... | Python | 0.000222 | @@ -495,17 +495,19 @@
ormError
-,
+ as
e:%0A
@@ -680,17 +680,19 @@
ecError)
-,
+ as
e:%0A
|
7418379d959cba0e96161c9e61f340541b82d85f | clean up xor a bit | python/examples/xor.py | python/examples/xor.py | # Copyright Hugh Perkins 2015
#
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at http://mozilla.org/MPL/2.0/.
from __future__ import print_function
# import sys
# import array
import PyDeepCL
imp... | Python | 0 | @@ -25,9 +25,9 @@
201
-5
+6
%0A#%0A#
@@ -226,16 +226,45 @@
L/2.0/.%0A
+%22%22%22%0ASimple example of xor%0A%22%22%22
%0Afrom __
@@ -297,37 +297,8 @@
tion
-%0A%0A# import sys%0A# import array
%0Aimp
@@ -376,869 +376,8 @@
')%0A%0A
- random.seed(1)%0A cl = PyDeepCL.DeepCL()%0A net = PyDeepCL.NeuralNet(cl,... |
9729c3aecccfa8130db7b5942c423c0807726f81 | Add feature importance bar chart. | python/gbdt/_forest.py | python/gbdt/_forest.py | from libgbdt import Forest as _Forest
class Forest:
def __init__(self, forest):
if type(forest) is str or type(forest) is unicode:
self._forest = _Forest(forest)
elif type(forest) is _Forest:
self._forest = forest
else:
raise TypeError, 'Unsupported fores... | Python | 0 | @@ -656,16 +656,631 @@
ance()%0A%0A
+ def feature_importance_bar_chart(self, color='blue'):%0A try:%0A from matplotlib import pyplot as plt%0A import numpy%0A except ImportError:%0A raise ImportError('Please install matplotlib and numpy.')%0A%0A fimps = self.fea... |
f9a4a4a79896a3864f7c80702292c8bcc1ddd860 | Make rrdtool support optional | python/nagcat/trend.py | python/nagcat/trend.py | # Copyright 2008-2009 ITA Software, 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 ... | Python | 0 | @@ -661,16 +661,25 @@
logfile%0A
+try:%0A
import r
@@ -684,16 +684,55 @@
rrdtool
+%0Aexcept ImportError:%0A rrdtool = None
%0A%0Afrom n
@@ -805,16 +805,16 @@
_rradir%0A
-
asse
@@ -821,16 +821,118 @@
rt dir%0A%0A
+ if rrdtool is None:%0A raise util.InitError(%22The python module 'rrdtool' is... |
6c036e6ba44793261dea6017091423af3624050c | Fix SettingWithCopyWarning | pytrthree/dataframe.py | pytrthree/dataframe.py | import io
import re
from typing import Sequence, Union
import numpy as np
import pandas as pd
import pytz
from . import utils
logger = utils.make_logger('pytrthree')
TRTHFile = Union[str, io.TextIOWrapper]
class TRTHIterator:
"""
Helper class to parse a set of TRTH .csv.gz files
and yield DataFrame gr... | Python | 0 | @@ -3271,32 +3271,37 @@
ol%5D)%0A
+ df =
df.drop(%5Bdate_c
@@ -3317,38 +3317,24 @@
col%5D, axis=1
-, inplace=True
)%0A el
@@ -3404,32 +3404,37 @@
tr))%0A
+ df =
df.drop(date_co
@@ -3438,38 +3438,24 @@
_col, axis=1
-, inplace=True
)%0A
|
851fe0dad512dbf9888638566135d1f8cd0dd853 | fix #4036 | gui/qt/qrtextedit.py | gui/qt/qrtextedit.py |
from electrum.i18n import _
from electrum.plugins import run_hook
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWidgets import QFileDialog
from .util import ButtonsTextEdit, MessageBoxMixin, ColorScheme
class ShowQRTextEdit(ButtonsTextEdit):
def __init__(self, text=None):
ButtonsTex... | Python | 0.000001 | @@ -1495,16 +1495,33 @@
return%0A
+ try:%0A
@@ -1559,24 +1559,28 @@
+
+
data = f.rea
@@ -1583,16 +1583,139 @@
.read()%0A
+ except BaseException as e:%0A self.show_error(_('Error opening file') + ':%5Cn' + str(e))%0A else:%0A
|
50d44ec25eb102451a495dd645ffb2a6f77012ae | Add a shortcut for imports | queue_util/__init__.py | queue_util/__init__.py | Python | 0.000002 | @@ -0,0 +1,82 @@
+from queue_util.consumer import Consumer%0Afrom queue_util.producer import Producer%0A
| |
bbc250fa9e961ad273ad90152e42500ae4241890 | Add hotfix for slow joiner symptom | queuing/zmq-simplex.py | queuing/zmq-simplex.py | # -*- coding: utf8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4 expandtab
'''Hands-on simplex chat implementation.
The module supports command line invocation (any order of invocation):
TerminalA> python3 -m zmq-simplex -s
TerminalB> python3 -m zmq-simplex -p
(TerminalB)> go type stuff
(TerminalA){... | Python | 0 | @@ -4449,32 +4449,188 @@
t(self.address))
+%0A import time%0A time.sleep(1) # HOTFIX for slow joiner symptom%0A # http://zguide.zeromq.org/page:all#sockets-and-patterns
%0A%0A from d
|
325c5a8f407340fa8901f406c301fa8cbdac4ff8 | bump version to 0.13.0 | gunicorn/__init__.py | gunicorn/__init__.py | # -*- coding: utf-8 -
#
# This file is part of gunicorn released under the MIT license.
# See the NOTICE for more information.
version_info = (0, 12, 2)
__version__ = ".".join(map(str, version_info))
SERVER_SOFTWARE = "gunicorn/%s" % __version__
| Python | 0 | @@ -146,12 +146,12 @@
0, 1
-2, 2
+3, 0
)%0A__
|
d35c9bb68d786e06738bbc80f0e79964887cdd1d | Revert changing of -, needs to be fixed by the user interface | rabbitmq_monitoring.py | rabbitmq_monitoring.py | #!/usr/bin/env python
"""
This script extracts metrics from a RabbitMQ instance.
The usage of this script is as follows:
rabbitmq_monitoring.py
"""
import json
from time import sleep
import collections
import sys
from os.path import basename
import urllib2
from base64 import b64encode
from string import replace
... | Python | 0 | @@ -3320,16 +3320,8 @@
e =
-replace(
dic.
@@ -3335,17 +3335,8 @@
me%22)
-,%22@%22,%22:%22)
%0A
|
8368aa5da5382a49d04b0d956503ca3eb6e797ce | Add overloading __len__() | ds_binary_heap_tuple.py | ds_binary_heap_tuple.py | from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
class BinaryHeap(object):
"""Binary Min Heap class with (key, val)."""
def __init__(self):
self.heap_ls = [(0, 0)]
self.current_size = 0
def _percolate_up(self, i):
while i ... | Python | 0.000602 | @@ -1763,16 +1763,73 @@
t_size%0A%0A
+ def __len__(self):%0A return self.current_size%0A%0A
def
@@ -3489,32 +3489,135 @@
_min.heap_ls))%0A%0A
+ print('len by size(): %7B%7D'.format(bh_min.size()))%0A print('len by len(): %7B%7D'.format(len(bh_min)))%0A
print('c in
|
dda25cdb808259ec2a91cba74273dc6c929af0aa | Check README.md and CHANGELOG.md. | dscan/plugins/drupal.py | dscan/plugins/drupal.py | from cement.core import handler, controller
from dscan.plugins import BasePlugin
from dscan.common.update_api import GitRepo
import dscan.common.update_api as ua
import dscan.common.versions
class Drupal(BasePlugin):
plugins_base_url = [
"%ssites/all/modules/%s/",
"%ssites/default/modules/... | Python | 0 | @@ -898,32 +898,76 @@
angelog file'),%0A
+ ('CHANGELOG.md', 'Changelog file'),%0A
('change
@@ -1071,32 +1071,70 @@
'README file'),%0A
+ ('README.md', 'README file'),%0A
('readme
|
58a71e60932a546fee919ce38b78254f885364f3 | Update density imports | gypsy/stand_density_factor.py | gypsy/stand_density_factor.py | """Stand density factor estimators"""
import logging
from gypsy.GYPSYNonSpatial import (
densityAw,
densitySw,
densitySb,
densityPl,
)
LOGGER = logging.getLogger(__name__)
def estimate_sdf_aw(spc, site_index, bhage, density):
'''Main purpose of this function is to estimate SDF for the species
... | Python | 0 | @@ -62,23 +62,15 @@
psy.
-GYPSYNonSpatial
+density
imp
@@ -83,61 +83,101 @@
+estimate_
density
-A
+_a
w,%0A
+estimate_
density
-S
+_s
w,%0A
+estimate_
density
-S
+_s
b,%0A
+estimate_
density
-P
+_p
l,%0A)
@@ -896,16 +896,26 @@
t =
+estimate_
density
-A
+_a
w(sd
@@ -2160,24 +2160,34 @@
... |
fbb3df846b3b9f4a86d6238cc5605a8d771ff924 | add python 3 compatibility | dumper/logging_utils.py | dumper/logging_utils.py | from __future__ import unicode_literals
import logging
class BaseLogger(object):
@classmethod
def get_logger(cls):
logger = logging.getLogger(cls.module)
logger.setLevel('DEBUG')
return logger
@classmethod
def _log(cls, message):
cls.get_logger().debug(message)
... | Python | 0.000001 | @@ -49,16 +49,27 @@
logging%0A
+import six%0A
%0A%0Aclass
@@ -2136,22 +2136,28 @@
_name =
-unicod
+six.text_typ
e(instan
|
0f4d2b75cde58f6926636563691182fb5896c894 | Add docstring to autocorr and ambiguity functions so the axes and peak location of the result is made clear. | echolect/core/coding.py | echolect/core/coding.py | # Copyright 2013 Ryan Volz
# This file is part of echolect.
# Echolect is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# Echolect is... | Python | 0 | @@ -800,24 +800,1013 @@
, nfreq=1):%0A
+ %22%22%22Calculate autocorrelation of code for nfreq frequencies.%0A %0A If nfreq == 1, the result is a 1-D array with length that is %0A 2*len(code) - 1. The peak value of sum(abs(code)**2) is located%0A in the middle at index len(code) - 1.%0A %0A If nfre... |
006fa9a63913f1a54091ba06eb87cea1f117c55a | Version bump for the new package | inapp_survey/__init__.py | inapp_survey/__init__.py | __version__ = '0.1.1'
| Python | 0 | @@ -12,11 +12,11 @@
= '0.1.
-1
+2
'%0A
|
919b9900d7960054fc7eaf67a9d9bc07e325c966 | Fix fnmatch for /**/ case | editorconfig/fnmatch.py | editorconfig/fnmatch.py | """Filename matching with shell patterns.
fnmatch(FILENAME, PATTERN) matches according to the local convention.
fnmatchcase(FILENAME, PATTERN) always takes case in account.
The functions operate by translating the pattern into a regular
expression. They cache the compiled regular expressions for speed.
The function... | Python | 0.000004 | @@ -5328,16 +5328,189 @@
+ '%5C%5C%7D'%0A
+ elif c == '/':%0A if pat%5Bi:i+3%5D == %22**/%22:%0A res = res + %22(?:/%7C/.*/)%22%0A i += 3%0A else:%0A res = res + '/'%0A
|
63ecfbe4bbe10ba9cb4e2e374e99ac1a78276023 | fix sql syntax error | eheritage/injest/vic.py | eheritage/injest/vic.py | from sqlalchemy import create_engine, MetaData, text
import json
import MySQLdb, MySQLdb.cursors
conn = MySQLdb.connect(user="vhd", passwd="vhd", db="vhd", cursorclass=MySQLdb.cursors.SSDictCursor, charset="utf8")
cursor = conn.cursor()
engine = create_engine("mysql+mysqldb://vhd:vhd@localhost/vhd?charset=utf8&use_u... | Python | 0.000073 | @@ -3443,16 +3443,17 @@
styles a
+r
s ON asp
@@ -3479,16 +3479,17 @@
e_id = a
+r
s.id%0A
|
cc6bc2b9af67c064339371b43795c36ed3e5ddcb | use TemplateResponse everywhere | ella_galleries/views.py | ella_galleries/views.py | from django.http import Http404
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.utils.translation import ungettext
from django.utils.cache import patch_vary_headers
from ella.core.views import get_templates_from_publishable
def gallery_item_detail(request, contex... | Python | 0 | @@ -41,86 +41,49 @@
ngo.
-shortcuts import render_to_response%0Afrom django.template import RequestContext
+template.response import TemplateResponse
%0Afro
@@ -1768,27 +1768,42 @@
e =
-render_to_response(
+TemplateResponse(%0A request,
%0A
@@ -1894,58 +1894,8 @@
xt,%0A
- context_instance=Request... |
63587ab033a0aabd52af6b657600d2d2547f034f | Bump release version | grove/__init__.py | grove/__init__.py | ##############################################################################
# Copyright 2016-2017 Rigetti Computing
#
# 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... | Python | 0 | @@ -781,13 +781,13 @@
__ = '1.
-2
+3
.0'%0A
|
e0de9a865b731f3f24bc7a42909849abc738217f | Increment version | karld/_meta.py | karld/_meta.py | version_info = (0, 2, 0)
version = '.'.join(map(str, version_info))
| Python | 0.000002 | @@ -15,17 +15,17 @@
(0, 2,
-0
+1
)%0Aversio
|
96395ef3cc411e7e5455635604c0bea606ec006c | update model.py | model.py | model.py | import threading
class DataValidationError(Exception):
""" Used for an data validation errors when deserializing """
pass
class Customer(object):
def __init__(self, wishlist={}, wishlist_id={}):
self.wishlist = wishlist
self.wishlist_id = wishlist_id
self.index = 0
def creat... | Python | 0.000001 | @@ -2105,32 +2105,118 @@
ust_id%5Bself.id%5D%0A
+%09 for k,v in c.wishlist_id.iteritems():%0A%09 if self.name == v:%0A%09 id = k%0A
product_
@@ -2251,32 +2251,42 @@
return %7B
+%22ID%22: id,
%22Wishlist name%22:
@@ -2339,16 +2339,25 @@
t_list%5D%7D
+%0A
%0A%0A @s
@@ -26... |
c39ce3485af781e8974a70200baa1f51e5c1633b | fix imports | gstat/__init__.py | gstat/__init__.py | Python | 0.000002 | @@ -0,0 +1,60 @@
+from gstat import gstat, gstats, gstat_elapsed, gstat_event%0A
| |
9212f90ae383cae05178585b31cc4ff26e584d28 | use smaller pixmaps for the toolbar | examples/gtkhtml_demo.py | examples/gtkhtml_demo.py | # $Id: gtkhtml_demo.py,v 1.13 2002/08/28 12:12:14 kjetilja Exp $
import sys
import os
import urllib, urlparse
from gtk import *
from gnome.ui import *
from gtkhtml import *
import cStringIO, threading, Queue, time
import pycurl
# URL history
history = []
# Links for 'forward'
forward = []
# Number of concurrent conne... | Python | 0 | @@ -21,17 +21,17 @@
py,v 1.1
-3
+4
2002/08
@@ -41,13 +41,13 @@
12:
-12:14
+42:25
kje
@@ -4855,22 +4855,20 @@
, STOCK_
-PIXMAP
+MENU
_BACK),%0A
@@ -4936,22 +4936,20 @@
, STOCK_
-PIXMAP
+MENU
_FORWARD
@@ -5032,14 +5032,12 @@
OCK_
-PIXMAP
+MENU
_REF
|
1acc7e7f32aba2419a564f771e97625671514ace | Fix test order when running with nose | html5lib/tests/test_parser.py | html5lib/tests/test_parser.py | import os
import sys
import traceback
import StringIO
import warnings
import re
warnings.simplefilter("error")
from support import html5lib_test_files, TestData, convert, convertExpected
import html5lib
from html5lib import html5parser, treebuilders, constants
treeTypes = {"simpletree":treebuilders.getTreeBuilder("s... | Python | 0.000003 | @@ -145,17 +145,50 @@
st_files
-,
+ as data_files%0Afrom support import
TestDat
@@ -4019,19 +4019,19 @@
sys.std
-out
+err
.write('
@@ -4094,90 +4094,24 @@
n%22)%0A
-%0A for treeName, treeCls in treeTypes.iteritems():%0A files = html5lib_test
+ files = data
_fil
@@ -4134,24 +4134,25 @@
ction')%0A ... |
ae3f7266437c8670ec6531fb2f17eec328fcd6ed | Fix bug | gwv/validators/ids.py | gwv/validators/ids.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import re
from gwv.kagedata import KageData
from gwv.validators import ValidatorClass
filters = {
"alias": {True, False},
"category": {... | Python | 0.000001 | @@ -2438,32 +2438,45 @@
urn %5B6, %5B0,
-g
+kage.lines%5B0%5D.str
data
-%5B0%5D
%5D%5D # %E5%B7%A6%E5%8F%B3%E3%81%AEIDS
@@ -3176,16 +3176,29 @@
%5B0,
-g
+kage.lines%5B0%5D.str
data
-%5B0%5D
%5D%5D
|
dfeb286810064a2e62d19639320fb95f784c4760 | fix forward of logit | model.py | model.py | import torch
import torch.nn as nn
from torch.nn import init
import torch.nn.functional as F
from torch import autograd
class CNN_Text(nn.Module):
def __init__(self, args, char_or_word, vectors=None):
super(CNN_Text,self).__init__()
self.args = args
V = args.embed_num
... | Python | 0.003063 | @@ -2097,27 +2097,17 @@
softmax(
-self.fc1(x)
+x
) # (N,C
|
cbbe9d50108747b15864436de01947bc2598b1b3 | Fix bug | WindAdapter/data_provider.py | WindAdapter/data_provider.py | # -*- coding: utf-8 -*-
import pandas as pd
try:
from WindPy import w
except ImportError:
pass
class WindRunner:
def __init__(self):
try:
w.start()
except NameError:
pass
def __del__(self):
try:
w.stop()
except AttributeError:
... | Python | 0.000001 | @@ -808,16 +808,21 @@
id, date
+=None
, output
|
d35f381727d5aa9e11d79cca9fe917527136853c | update the new method URL (from new AF website recently announced by Richard -- it looks more clean) | haietmoba-reminder.py | haietmoba-reminder.py | import sys
from os import path
import webbrowser
from PyQt4 import QtGui, QtCore
if hasattr(sys, 'frozen'):
scriptDir = path.dirname(unicode(sys.executable, sys.getfilesystemencoding()))
else:
scriptDir = path.dirname(unicode(__file__, sys.getfilesystemencoding()))
theQuestion = 'How am I experien... | Python | 0 | @@ -368,16 +368,20 @@
'http://
+www.
actualfr
|
1cb30a296e7fe8e742d68f87a1c403e1269f8206 | support global_threshold=auto | Wrappers/Dials/Spotfinder.py | Wrappers/Dials/Spotfinder.py | #!/usr/bin/env python
# Spotfinder.py
#
# Copyright (C) 2013 Diamond Light Source, Richard Gildea, Graeme Winter
#
# This code is distributed under the BSD license, a copy of which is
# included in the root directory of this package.
#
# Find spots for autoindexing using the DIALS code; this will probably be
# re... | Python | 0.000208 | @@ -2156,14 +2156,8 @@
d =
-float(
glob
@@ -2168,17 +2168,16 @@
hreshold
-)
%0A%0A de
@@ -3263,17 +3263,17 @@
eshold=%25
-f
+s
' %25 self
|
f66cc11e2c9f9e1f9524133f83b33989259e7c33 | support google bounding box format | backend/app.py | backend/app.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import sys
import codecs
import json
from bottle import route, run, get, request, response
o8 = codecs.getwriter('utf-8')(sys.stdout)
e8 = codecs.getwriter('utf-8')(sys.stderr)
@route('/api/v1/pois.json')
def pois_v1():
global _p... | Python | 0 | @@ -664,34 +664,14 @@
b
-ounding_box = BoundingBox(
+box =
requ
@@ -697,16 +697,90 @@
', None)
+.replace(%22(%22, %22%22).replace(%22)%22, %22%22)%0A bounding_box = BoundingBox(bbox
)%0A%0A r
|
cd1b8bf468c8a30c18243f94d6c0115503bff7c6 | Use invisible target to set paste location in page. Clsoes #1 | kitnarchive.py | kitnarchive.py | #!/usr/bin/python
from redmine import Redmine, ResourceNotFoundError
from redmine.exceptions import BaseRedmineError
from datetime import datetime
from logging import getLogger
from re import split as re_split
from kitnirc.modular import Module
from kitnirc.contrib.admintools import is_admin
_log = getLogger(__name__... | Python | 0 | @@ -1716,16 +1716,291 @@
ect_id)%0A
+ target = %22%5Cn!%3Ehttps://raw.githubusercontent.com/relsqui/archivebot/master/ArchiveBot-target.png!%22%0A new_text += target%0A if target in page.text:%0A parts = page.text.split(target, 1)%0A page.text = new_text.join(parts)%0A ... |
2a0e3fe9c83da1d11b892c7c35e367f414329936 | Update teaching_modules.py | src/ensae_teaching_cs/automation/teaching_modules.py | src/ensae_teaching_cs/automation/teaching_modules.py | # -*- coding: utf-8 -*-
"""
@file
@brief List of modules to maintain for the teachings.
"""
def get_teaching_modules():
"""
List of teachings modules to maintain (CI + documentation).
.. runpython::
:showcode:
from ensae_teaching_cs.automation import get_teaching_modules
print('\... | Python | 0.000001 | @@ -1074,22 +1074,8 @@
all%22
-, %22onnxcustom%22
%0A
|
bc08499fd803278ea502bafdf845dec438f951f3 | Update range-sum-query-2d-immutable.py | Python/range-sum-query-2d-immutable.py | Python/range-sum-query-2d-immutable.py | # Time: ctor: O(m * n)
# lookup: O(1)
# Space: O(m * n)
#
# Given a 2D matrix matrix, find the sum of the elements inside
# the rectangle defined by its upper left corner (row1, col1)
# and lower right corner (row2, col2).
#
# Range Sum Query 2D
# The above rectangle (with the red border) is defined by
# (row... | Python | 0.000005 | @@ -979,16 +979,17 @@
return%0A
+%0A
|
27f8b342e1a4bea9c807b005d16f932880bb7136 | Document utils.setup_readline | jedi/utils.py | jedi/utils.py | """
Utilities for end-users.
"""
import sys
from jedi import Interpreter
def readline_complete(text, state):
"""
Function to be passed to :func:`readline.set_completer`.
Usage::
import readline
readline.set_completer(readline_complete)
"""
ns = vars(sys.modules['__main__'])
... | Python | 0.000001 | @@ -548,16 +548,269 @@
dline%60.%0A
+%0A This function setups :mod:%60readline%60 to use Jedi in Python interactive%0A shell. If you want to use custom %60%60PYTHONSTARTUP%60%60 file, you can call%0A this function like this:%0A%0A %3E%3E%3E from jedi.utils import setup_readline%0A %3E%3E%3E setup_readl... |
d2514b01be2bc3ba527eb9dc528309d2c7452ddb | Remove additional space after initials | mycroft/audio/speech.py | mycroft/audio/speech.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.999956 | @@ -2695,16 +2695,310 @@
== 0):%0A
+ # Remove any whitespace present after the period,%0A # if a character (only alpha) ends with a period%0A # ex: A. Lincoln -%3E A.Lincoln%0A # so that we don't split at the period%0A utterance = re.sub(r'%5Cb(%5BA-za-z%5D%5B%5C... |
c9dceb4dc83490ab0eebcd3efc9590d3275f53df | tidy up messytables-jts integration | ktbh/schema.py | ktbh/schema.py | import unicodecsv
from cStringIO import StringIO
import messytables
import itertools
import slugify
import jsontableschema
from messytables.types import *
from messytables_jts import rowset_as_schema
def censor(dialect):
tmp = dict(dialect)
censored = [
"doublequote",
"lineterminator",
... | Python | 0 | @@ -177,32 +177,34 @@
import
-rowset_as_schema
+celltype_as_string
%0A%0Adef ce
@@ -571,24 +571,26 @@
urn
-rowset_as_schema
+celltype_as_string
(col
@@ -1043,11 +1043,8 @@
lumn
-(t)
,%0A
|
39de531241f987daf2f417fd419c7bd63248dd9d | Bump version number. | kyokai/util.py | kyokai/util.py | """
Misc utilities.
"""
import os
import pathlib
VERSION = "1.3.8"
VERSIONT = tuple(map(int, VERSION.split('.')))
HTTP_CODES = {
200: "OK",
201: "Created",
202: "Accepted",
203: "Non-Authoritative Information",
204: "No Content",
205: "Reset Content",
301: "Moved Permanently",
302: "Fo... | Python | 0 | @@ -60,11 +60,11 @@
%221.
-3.8
+5.0
%22%0AVE
|
34ca71d5db9c1f17d236e5e49471fb6f2a6e1747 | Implement Paulo tip about router. | aldryn_search/router.py | aldryn_search/router.py | # -*- coding: utf-8 -*-
from django.conf import settings
from cms.utils.i18n import get_current_language
from haystack import routers
from haystack.constants import DEFAULT_ALIAS
class LanguageRouter(routers.BaseRouter):
def for_read(self, **hints):
language = get_current_language()
if language ... | Python | 0 | @@ -59,21 +59,31 @@
rom
-cms
+django
.utils.
-i18
+translatio
n im
@@ -87,31 +87,70 @@
import get_
-current
+language%0Afrom cms.utils.i18n import alias_from
_language%0A%0Af
@@ -319,32 +319,24 @@
guage = get_
-current_
language()%0A
@@ -338,35 +338,79 @@
e()%0A
-if language
+alias = alias_from_langu... |
9fa2214b03d3264240b46fe5368b37ffa696f50c | Allow test selection according to tags | baf/src/baf.py | baf/src/baf.py | """The main module of the Bayesian API Fuzzer."""
import sys
from time import time
from fastlog import log
from csv_reader import read_csv_as_dicts
from setup import setup
from cliargs import cli_parser
from fuzzer import run_test
from results import Results
from report_generator import generate_reports
VERSION_MAJ... | Python | 0 | @@ -165,17 +165,29 @@
rt setup
+, parse_tags
%0A
-
from cli
@@ -684,16 +684,605 @@
+= 1%0A%0A%0A
+def run_tests_with_tags(cfg, fuzzer_settings, tests, results, tags):%0A %22%22%22Run tests read from CSV file that are marged by any of tags provided in tags parameter.%22%22%22%0A i = 1%0A for test in tests:... |
4c600c15c64f92fb256225ad3f4e85e3ea057976 | Remove collections import from SMOTEENN | imblearn/combine/smote_enn.py | imblearn/combine/smote_enn.py | """Class to perform over-sampling using SMOTE and cleaning using ENN."""
from __future__ import print_function
from __future__ import division
from ..over_sampling import SMOTE
from ..under_sampling import EditedNearestNeighbours
from ..base import SamplerMixin
class SMOTEENN(SamplerMixin):
"""Class to perform o... | Python | 0 | @@ -4230,48 +4230,8 @@
rgs%0A
- from collections import Counter%0A
|
e5e523890dd1129402d7a0477468ee47dee3fd91 | Fix missing part/block conversion. | inbox/sendmail/smtp/common.py | inbox/sendmail/smtp/common.py | from inbox.sendmail.base import generate_attachments, SendError
from inbox.sendmail.smtp.postel import BaseSMTPClient
from inbox.sendmail.smtp.message import create_email, create_reply
class SMTPClient(BaseSMTPClient):
""" SMTPClient for Gmail and other providers. """
def _send_mail(self, db_session, message,... | Python | 0 | @@ -807,32 +807,86 @@
.sanitized_body%0A
+ blocks = %5Bp.block for p in draft.attachments%5D%0A
attachme
@@ -912,32 +912,21 @@
chments(
-draft.attachment
+block
s)%0A%0A
@@ -1433,32 +1433,86 @@
.sanitized_body%0A
+ blocks = %5Bp.block for p in draft.attachments%5D%0A
attachme
@@ ... |
d5561c37780fa29db15a076eff0c3faf126c6470 | handle script files with . in the name properly (Issue #23) | jip/parser.py | jip/parser.py | #!/usr/bin/env python
"""The JIP parser module provides methods to parse tools from scripts.
"""
import os
import re
from collections import defaultdict
from textwrap import dedent
from jip.tools import Block, ScriptTool
#currently supported block type
VALIDATE_BLOCK = "validate"
COMMAND_BLOCK = "command"
SETUP_BLOCK... | Python | 0 | @@ -7560,16 +7560,17 @@
ol.name.
+r
index('.
@@ -7572,16 +7572,34 @@
ex('.')%5D
+.replace(%22.%22, %22_%22)
%0A
|
2808b0dfba0597e09d80eafedfead246779111d9 | Clean up verbose looking code | MOAL/data_structures/trees/binary_trees.py | MOAL/data_structures/trees/binary_trees.py | # -*- coding: utf-8 -*-
__author__ = """Chris Tabor (dxdstudio@gmail.com)"""
if __name__ == '__main__':
from os import getcwd
from os import sys
sys.path.append(getcwd())
from MOAL.helpers.display import Section
from MOAL.helpers.display import print_h4
from MOAL.helpers.display import cmd_title
from MOA... | Python | 0.998916 | @@ -1882,39 +1882,40 @@
node):%0A
-if len(
+edges =
node%5B'edges'%5D) %3C
@@ -1911,16 +1911,37 @@
'edges'%5D
+%0A if len(edges
) %3C 2:%0A
@@ -1982,39 +1982,23 @@
_lt(
-node%5B'
edges
-'%5D
%5B0%5D,
-node%5B'
edges
-'%5D
%5B1%5D)
@@ -2025,29 +2025,21 @@
eversed(
-node%5B'
edges
-'%5D
))%... |
872a96b52061bd9ab3a3178aacf3e3d0be2cc498 | Make field filter errors ValidationErrors | nap/dataviews/fields.py | nap/dataviews/fields.py |
from django.db.models.fields import NOT_PROVIDED
from nap.utils import digattr
class field(property):
'''A base class to compare against.'''
def __get__(self, instance, cls=None):
if instance is None:
return self
return self.fget(instance._obj)
def __set__(self, instance, va... | Python | 0.000008 | @@ -42,16 +42,57 @@
PROVIDED
+%0Afrom django.forms import ValidationError
%0A%0Afrom n
@@ -853,16 +853,37 @@
ilters:%0A
+ try:%0A
@@ -910,32 +910,131 @@
m_python(value)%0A
+ except (TypeError, ValueError):%0A raise ValidationError('Invalid value')%0A
retur... |
f41bb86dd5263d63172b303a5a3993fc28e612dc | fix spelling of "received" | django-hq/apps/receiver/submitprocessor.py | django-hq/apps/receiver/submitprocessor.py | from models import *
import logging
import hashlib
import settings
import traceback
import sys
import os
import string
import uuid
from django.db import transaction
def get_submission_path():
return settings.rapidsms_apps_conf['receiver']['xform_submission_path']
@transaction.com... | Python | 0.999883 | @@ -733,17 +733,16 @@
ME_RECEI
-E
VED'%5D, %22
|
bbe263e8bd9bb12ccef681d4f21f6b90c89f059d | Remove some debug logging | flask/test/test_signup.py | flask/test/test_signup.py | from __future__ import unicode_literals
from test import TestCase
from web import app
from db import session, User
from nose.tools import eq_
class TestSignup(TestCase):
def test_sign_up(self):
app.test_client().post('/', data={'email': 'andrew@lorente.name'})
users = session().query(User.email)... | Python | 0.000003 | @@ -735,90 +735,23 @@
-print 'here before visit'%0A self.visit('/')%0A print 'here after visit'
+self.visit('/')
%0A
|
5060eeb34b44158bcd5e8b466650269adae8d194 | Add getter for grammar rules | viper/grammar/grammar.py | viper/grammar/grammar.py | import viper.lexer as vl
from viper.grammar.languages import *
from os.path import dirname, join
from typing import ClassVar, List
class GrammarToken:
def __init__(self, lexeme_class: ClassVar, text=None):
self._lexeme_class = lexeme_class
self._text = text
def __eq__(self, other):
... | Python | 0.000002 | @@ -2586,32 +2586,133 @@
lexemes, lang)%0A%0A
+ def get_rule(self, rule: str) -%3E Language:%0A return self._grammar_dict.get(rule, empty())%0A%0A
def _parse_f
|
1a961d34a0c2773853123267f391f861bfe02426 | fix access class variable | nupic/algorithms/anomaly.py | nupic/algorithms/anomaly.py | # ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2014, Numenta, Inc. Unless you have purchased from
# Numenta, Inc. a separate commercial license for this software code, the
# following terms and conditions apply:
#
# This pro... | Python | 0.000003 | @@ -3720,32 +3720,40 @@
f self._mode ==
+Anomaly.
MODE_LIKELIHOOD:
@@ -3915,24 +3915,32 @@
lf._mode ==
+Anomaly.
MODE_PURE:%0A
@@ -3980,32 +3980,40 @@
f self._mode ==
+Anomaly.
MODE_LIKELIHOOD:
@@ -4058,24 +4058,32 @@
lf._mode ==
+Anomaly.
MODE_WEIGHTE
|
6d9e8e8831cd08fa358f33f155a760de3ec59f3b | document that this file is generated | Lib/fontTools/ttLib/tables/__init__.py | Lib/fontTools/ttLib/tables/__init__.py | def _moduleFinderHint():
"""Dummy function to let modulefinder know what tables may be
dynamically imported. Generated by MetaTools/buildTableList.py.
"""
import B_A_S_E_
import C_F_F_
import D_S_I_G_
import G_D_E_F_
import G_P_O_S_
import G_S_U_B_
import J_S_T_F_
import L_T_S_H_
import O_S_2f_2
import T_S... | Python | 0.000003 | @@ -1,8 +1,77 @@
+# DON'T EDIT! This file is generated by MetaTools/buildTableList.py.%0A
def _mod
@@ -558,16 +558,33 @@
_S_I__5%0A
+%09import V_O_R_G_%0A
%09import
|
1f977aa5fa28ed1e351f337191291198384abe02 | Set auth_encryption_key option to be secret | heat/common/crypt.py | heat/common/crypt.py | #
# 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 writing, software
# ... | Python | 0.000001 | @@ -743,16 +743,44 @@
n_key',%0A
+ secret=True,%0A
@@ -831,12 +831,8 @@
i t
-hink
',%0A
@@ -855,31 +855,27 @@
lp=%22
-Encryption key used for
+Key used to encrypt
aut
@@ -894,16 +894,20 @@
info in
+the
database
@@ -907,16 +907,91 @@
atabase.
+ %22%0A %22Length of ... |
76e22fed42833a1b998dbc37a0a0e62764092de3 | Use simplejson for older Python versions | Roundabound/__init__.py | Roundabound/__init__.py | # Needed to get with statement working in Python 2.5
from __future__ import with_statement
import glob
import os
import os.path
import time
import logging
from zipfile import ZipFile
class LogRotationError(Exception):
def __init__(self, message):
Exception.__init__(self, message)
def parse_ag... | Python | 0 | @@ -3835,19 +3835,87 @@
-import json
+try:%0D%0A import json%0D%0A except ImportError:%0D%0A import simplejson%0D%0A
%0D%0A
|
57100d99b58263a76f9bf405f7bdc62e8839552e | Fix bug with JSON serialization | model.py | model.py | import datetime
import random
from google.appengine.api import memcache
from google.appengine.ext import db
def from_milliseconds(millis):
return datetime.datetime.utcfromtimestamp(millis / 1000)
def to_milliseconds(date_time):
delta = date_time - from_milliseconds(0)
return int(round(delta.total_secon... | Python | 0.000002 | @@ -3243,16 +3243,24 @@
'key':
+unicode(
entity.k
@@ -3263,16 +3263,17 @@
ty.key()
+)
,%0A
|
1eeb8588d1a407e91e73749a35e5fb1f6cace196 | Add option for page to be in no category | app/page.py | app/page.py | from app import app, db, utils
from app.models import User, Page
from flask import Flask, redirect, request
from flask_login import current_user
from flask_wtf import Form
from wtforms import validators, StringField, TextAreaField, HiddenField, SelectField, BooleanField
from flask_wtf.html5 import IntegerField
from wtf... | Python | 0 | @@ -383,16 +383,50 @@
ices = %5B
+('none', 'None'),%0A
('calend
@@ -441,24 +441,24 @@
alendars'),%0A
-
@@ -2006,16 +2006,52 @@
er up):'
+, validators=%5Bvalidators.Optional()%5D
)%0A bo
@@ -2654,16 +2654,17 @@
=index)%0A
+%0A
@@ -2663,32 +2663,43 @@
if index
+ a... |
ae7c7d076b1c80457fc491dc390e9861c1559d97 | fix broken protobuf path am: a46f70c546 | bazel/deps.bzl | bazel/deps.bzl | # Copyright (C) 2019 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | Python | 0.000001 | @@ -1164,22 +1164,31 @@
hub.com/
-google
+protocolbuffers
/protobu
|
ecf96772ff471f5ef928453b5f6103943a60d752 | add - property to set params. | versus/src/logistic.py | versus/src/logistic.py | """
Logistic regression.
"""
import numpy
from theano import config
import theano.tensor as T
from theano import shared
def decode(self, encoding):
""" Decode an encoded model.
:return: LogisticRegression with encodings parameters
"""
pass
class LogisticRegression(object):
"""Multi-class Logi... | Python | 0 | @@ -2034,16 +2034,17 @@
self.
+_
params =
@@ -2150,16 +2150,158 @@
pass%0A%0A
+ @property%0A def params(self):%0A return self._params%0A%0A @params.setter%0A def params(self, value):%0A self._params = value%0A
%0A def
|
197a0440ddbf31aa87a6a6998b41344be4924076 | fix on the rows update | gui/placeslist.py | gui/placeslist.py | # -*- coding: utf8 -*-
from PyQt4 import QtGui
from PyQt4 import QtCore
class placesList(QtGui.QTableWidget):
_columns = ('Name', 'Type', 'X', 'Y', 'Locate')
_app = None
_parent = None
def __init__(self, parent, app):
"""
Initialisation of the window, creates the GUI and displays the window.
"""
self._... | Python | 0 | @@ -751,16 +751,84 @@
(self):%0A
+%09%09self.clearContents()%0A%09%09nbRowsToInsert = len(self._app.map.places)%0A
%09%09for in
@@ -872,16 +872,57 @@
laces):%0A
+%09%09%09if self.rowCount() %3C nbRowsToInsert:%0A%09
%09%09%09self.
|
29e18edf18c14cd11c8cebd93548eeadbb61b1da | Fix biases by using correct shape | model.py | model.py | import tensorflow as tf
def make_weight_variable(name, num_inputs, num_outputs):
return tf.get_variable(
name,
[num_inputs, num_outputs],
initializer=tf.contrib.layers.variance_scaling_initializer()
)
class Model:
def __init__(self, chars, max_steps, lstm_units=250, l1_units=200,... | Python | 0.0001 | @@ -1216,35 +1216,66 @@
s = tf.Variable(
-0.1
+tf.constant(0.1, shape=%5Bl1_units%5D)
, name='l1-biase
@@ -1488,35 +1488,66 @@
s = tf.Variable(
-0.1
+tf.constant(0.1, shape=%5Bl2_units%5D)
, name='l2-biase
@@ -1648,24 +1648,57 @@
utput layer%0A
+ out_len = len(chars) + 1%0A
out_
@@ -1753,30 +1753,2... |
5809fc832340e3ee5d798fa347e4933e874bdb8b | Allow older django to find the tests | voting/tests/__init__.py | voting/tests/__init__.py | Python | 0.000003 | @@ -0,0 +1,92 @@
+import django%0Aif django.VERSION%5B0%5D == 1 and django.VERSION%5B1%5D %3C 6:%0A from .tests import *%0A
| |
b33b6c7a5ae8835514389340ff3152f03f619984 | prefix number underscore sep | holodeck/settings.py | holodeck/settings.py | LOGICAL_SHARDS = 8
PHYSICAL_SHARDS = [
{
'ENGINE': 'django.db.backends.sqlite3',
'NAME_PREFIX': 'holodeck1',
'USER': '',
'PASSWORD': '',
'HOST': '',
'PORT': '',
},
{
'ENGINE': 'django.db.backends.sqlite3',
'NAME_PREFIX': 'holodeck2',
'... | Python | 0.998789 | @@ -119,16 +119,17 @@
holodeck
+_
1',%0A
@@ -301,16 +301,17 @@
holodeck
+_
2',%0A
|
0b38626104d587513db82535bbadc8b5d305f614 | Fix #659 | nextcloudappstore/user/forms.py | nextcloudappstore/user/forms.py | from allauth.account.utils import filter_users_by_email, user_username, \
user_pk_to_url_str
from django import forms
from django.contrib.auth import get_user_model
from django.forms import EmailField, CharField, PasswordInput
from django.utils.translation import ugettext_lazy as _
from snowpenguin.django.recaptcha... | Python | 0 | @@ -1,28 +1,100 @@
+from allauth.account.forms import EmailAwarePasswordResetTokenGenerator%0A
from allauth.account.utils i
@@ -3172,16 +3172,32 @@
il(email
+, is_active=True
)%0A%0A
@@ -3445,187 +3445,63 @@
-from django.contrib.auth.tokens import default_token_generator%0A token_generator = kwargs... |
9246d33429e1940d5a98c3c16e708159437b88fa | enable header modification | lib/neuroimaging/tools/AnalyzeHeaderTool.py | lib/neuroimaging/tools/AnalyzeHeaderTool.py | import os, sys
from optparse import OptionParser, Option
from neuroimaging.data import DataSource
from neuroimaging.refactoring.analyze import struct_fields, AnalyzeHeader
##############################################################################
class AnalyzeHeaderTool (OptionParser):
"Command-line tool for... | Python | 0 | @@ -1576,27 +1576,26 @@
%22before: %25s
- =
+%5Ct
%25s%22%25(attname
@@ -1702,19 +1702,18 @@
fter: %25s
- =
+%5Ct
%25s%22%25(att
@@ -1764,23 +1764,37 @@
-#write back out
+header.write(filename+%22.new%22)
%0A
@@ -1817,19 +1817,18 @@
rint %22%25s
- =
+%5Ct
%25s%22%25(att
|
1117f6e2d51ed6faf37aa2a6deab8a6ff8fa0e5b | test for compiling simple command | linemode/tests/test_command_list_printer.py | linemode/tests/test_command_list_printer.py | import unittest
from linemode.drivers.command_list import CommandListPrinter
class TestCommandListPrinter(unittest.TestCase):
pass
| Python | 0.000001 | @@ -52,34 +52,23 @@
import
-CommandListPrinter
+compile
%0A%0A%0Aclass
@@ -119,9 +119,138 @@
-pass
+def test_simple_command(self):%0A program = compile(%5B%0A %22reset%22%0A %5D)%0A self.assertEqual(program, b'reset')
%0A
|
5662a6cb9cd567b5e08398e4e5394f8049f02741 | Update tests to allow for id in content type json | feincms_extensions/tests/test_content_types.py | feincms_extensions/tests/test_content_types.py | import datetime
from django.test import TestCase
from . import factories
from .models import Dummy
from .. import content_types
class TestJsonRichTextContent(TestCase):
model = Dummy.content_type_for(content_types.JsonRichTextContent)
def test_json(self):
"""A JsonRichTextContent can be rendered to... | Python | 0 | @@ -342,32 +342,48 @@
t = 'Rich Text'%0A
+ pk = 42%0A
content
@@ -419,16 +419,23 @@
ext=text
+, pk=pk
)%0A
@@ -534,24 +534,46 @@
tml': text,%0A
+ 'id': pk,%0A
%7D)%0A%0A
@@ -877,32 +877,48 @@
ight = 'Incuna'%0A
+ pk = 42%0A
created
@@ -1258,16 +1258,35 @@... |
3f0b19d153360ee5cf1fda1acfa0e4ad846b6c86 | fix admin.py, remove site on AccountAccess and add it on Provider | allaccess/admin.py | allaccess/admin.py | from django.contrib import admin
from .models import Provider, AccountAccess
class ProviderAdmin(admin.ModelAdmin):
"Admin customization for OAuth providers."
list_display = ('name', 'enabled', )
class AccountAccessAdmin(admin.ModelAdmin):
"Admin customization for accounts."
list_display = (
... | Python | 0 | @@ -199,16 +199,71 @@
nabled',
+ 'site',)%0A list_filter = ('name', 'enabled', 'site',
)%0A%0A%0Acla
@@ -423,32 +423,24 @@
'modified',
- 'site',
)%0A list_f
@@ -478,32 +478,24 @@
'modified',
- 'site',
)%0A%0A%0Aadmin.s
|
0834084e76bf22c7cde39f60876d993afa28f9a6 | Rewrite candidate to committee linking function | analysis/search.py | analysis/search.py | #!/usr/bin/env python
#import pandas
import sys
import psycopg2
#from sqlalchemy import create_engine
from geo import states
from geo.geolocation import GeoLocation
class SearchLocation:
'Provides search functions for database queries'
def __init__(self, conn_settings):
self.__geodb = "geozipcodes"
self.... | Python | 0.000003 | @@ -1666,16 +1666,23 @@
%0A def
+self.__
get_cand
@@ -4070,16 +4070,23 @@
ttees =
+self.__
get_cand
@@ -5311,16 +5311,23 @@
ittees=
+self.__
get_cand
|
ee6d4f50b4a27e9cc8c3b5f8a821a6d9c0cf4f21 | remove unwanted changes | frappe/website/page_renderers/document_page.py | frappe/website/page_renderers/document_page.py | import frappe
from frappe.model.document import get_controller
from frappe.website.page_renderers.base_template_page import BaseTemplatePage
from frappe.website.utils import build_response
from frappe.website.router import (get_doctypes_with_web_view,
get_page_info_from_web_page_with_dynamic_routes)
class DocumentPa... | Python | 0.005417 | @@ -167,30 +167,26 @@
import
-build_response
+cache_html
%0Afrom fr
@@ -1303,24 +1303,155 @@
nder(self):%0A
+%09%09html = self.get_html()%0A%09%09html = self.add_csrf_token(html)%0A%0A%09%09return self.build_response(html)%0A%0A%09@cache_html%0A%09def get_html(self):%0A
%09%09self.doc =
@@ -1646,126 +1646,19 @@
... |
a5f1ad3e47daf3f8db04b605fb13ff3f9f871e3a | Divide entire loss by n, not just mll component. | gpytorch/mlls/exact_marginal_log_likelihood.py | gpytorch/mlls/exact_marginal_log_likelihood.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import math
import torch
from .marginal_log_likelihood import MarginalLogLikelihood
from ..lazy import LazyVariable, NonLazyVariable
from ..likelihoods import GaussianLik... | Python | 0.000004 | @@ -2693,33 +2693,8 @@
ff%5D)
-%0A res.div_(n_data)
%0A%0A
@@ -3009,9 +3009,22 @@
turn res
+.div_(n_data)
%0A
|
87041ab71b2f1c1de4425070a032d03b42045d6d | Test step to repeatedly access server API | integration-tests/features/steps/server_api.py | integration-tests/features/steps/server_api.py | """Basic checks for the server API."""
from behave import given, then, when
import requests
from src.utils import *
from src.authorization_tokens import *
from src.attribute_checks import *
from src.schema_validator import *
@when('I access {url:S}')
def access_url(context, url):
"""Access the service API using ... | Python | 0 | @@ -84,16 +84,28 @@
requests
+%0Aimport time
%0A%0Afrom s
@@ -410,24 +410,541 @@
rl + url)%0A%0A%0A
+@when('I access the %7Burl:S%7D %7Brepeat_count:d%7D times with %7Bdelay:d%7D seconds delay')%0Adef access_url_repeatedly(context, url, repeat_count, delay):%0A %22%22%22Access the service API using the HTTP GET m... |
77a0d62157ea5b9bc27e7e081676fe7045f83c2e | Add admin help handler to admincommands | ownbot/admincommands.py | ownbot/admincommands.py | # -*- coding: utf-8 -*-
"""
Provides the ownbot AdminCommands class.
"""
from telegram.parsemode import ParseMode
from telegram.ext import CommandHandler
from ownbot.auth import requires_usergroup
from ownbot.user import User
from ownbot.usermanager import UserManager
class AdminCommands(object):
"""
... | Python | 0 | @@ -199,37 +199,8 @@
oup%0A
-from ownbot.user import User%0A
from
@@ -267,16 +267,58 @@
object):
+ # pylint: disable=too-few-public-methods
%0A %22%22%22
@@ -1218,16 +1218,68 @@
)%0A%0A
+%0A @staticmethod%0A @requires_usergroup(%22admin%22)%0A
def
@@ -1291,22 +1291,16 @@
in_help(
-self,
bot... |
16110c627100f5fd6bdaaf859ed71559ea17780a | Fix push/pull tests | jupyterlab_git/tests/test_pushpull.py | jupyterlab_git/tests/test_pushpull.py | from subprocess import PIPE
from mock import patch, call, Mock
from jupyterlab_git.git import Git
@patch('subprocess.Popen')
@patch('os.environ', {'TEST': 'test'})
def test_git_pull_fail(mock_subproc_popen):
# Given
process_mock = Mock()
attrs = {
'communicate.return_value': ('output', 'Authenti... | Python | 0.000686 | @@ -627,36 +627,30 @@
%5B'git
-', 'pull', '
+ pull
--no-commit'
@@ -1452,20 +1452,14 @@
'git
-', 'pull', '
+ pull
--no
@@ -2282,28 +2282,22 @@
%5B'git
-', 'push', '
+ push
test_ori
@@ -2291,36 +2291,33 @@
push test_origin
-', '
+
HEAD:test_master
@@ -3160,25 +3160,16 @@
'git
-', 'push', '.', '
+ ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.