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 |
|---|---|---|---|---|---|---|---|
ca67f5e71a8d572e37bf2f02e8fdf1a34c5be2bd | fix relative pathnames printed in debug messages. | redo-ifchange.py | redo-ifchange.py | #!/usr/bin/python
import sys, os, errno, stat
import vars, state, builder, jwack
from helpers import debug, debug2, err, unlink
def dirty_deps(f, depth, max_changed):
if vars.DEBUG >= 1: debug('%s?%s\n' % (depth, f.name))
if f.failed_runid:
debug('%s-- DIRTY (failed last time)\n' % depth)
ret... | Python | 0 | @@ -122,16 +122,98 @@
unlink%0A%0A
+def _nice(t):%0A return state.relpath(os.path.join(vars.BASE, t), vars.STARTDIR)%0A
%0Adef dir
@@ -259,32 +259,40 @@
vars.DEBUG %3E= 1:
+%0A
debug('%25s?%25s%5Cn'
@@ -306,16 +306,22 @@
th,
+_nice(
f.name))
%0A%0A
@@ -316,16 +316,17 @@
f.name))
+)
%0A%0A if
|
238cc9e278c7e214b66757ccecd482229186ad4b | disable broken test | InvenTree/users/tests.py | InvenTree/users/tests.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.test import TestCase
from django.apps import apps
from django.urls import reverse
from django.contrib.auth import get_user_model
from django.contrib.auth.models import Group
from rest_framework.authtoken.models import Token
from users.models... | Python | 0.000002 | @@ -7349,32 +7349,63 @@
r detail%0A
+ # TODO fix this test%0A #
self.do_request
|
4926dd72c831960c7d6167f1ec73a663506aee82 | Fix wrong variable name. | Lib/encodings/charmap.py | Lib/encodings/charmap.py | """ Generic Python Character Mapping Codec.
Use this codec directly rather than through the automatic
conversion mechanisms supplied by unicode() and .encode().
Written by Marc-Andre Lemburg (mal@lemburg.com).
(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
"""#"
import codecs
### Codec APIs
class... | Python | 0.000093 | @@ -982,19 +982,19 @@
self,str
-ict
+eam
,errors)
|
1ee39bbc8fd38d42e1d1ecc93fdbb1ec549353bc | restructure a bit to not rely on test case execution ordering add test case for bug #482460 | Lib/test/test_dumbdbm.py | Lib/test/test_dumbdbm.py | #! /usr/bin/env python
"""Test script for the dumbdbm module
Original by Roger E. Masse
"""
import os
import test_support
import unittest
import dumbdbm
import tempfile
_fname = tempfile.mktemp()
def _delete_files():
for ext in [".dir", ".dat", ".bak"]:
try:
os.unlink(_fname + ext)
... | Python | 0 | @@ -678,75 +678,8 @@
rgs)
-%0A self._dkeys = self._dict.keys()%0A self._dkeys.sort()
%0A%0A
@@ -717,32 +717,8 @@
f):%0A
- _delete_files()%0A
@@ -938,32 +938,55 @@
fication(self):%0A
+ self.init_db()%0A
f = dumb
@@ -1125,32 +1125,55 @@
dbm_read(self):%0A
+ self.in... |
10f31cc96c776453be941ed0010cf4e88233c975 | update swallow_argv test with prefix-matching | IPython/kernel/tests/test_launcher.py | IPython/kernel/tests/test_launcher.py | """Tests for kernel utility functions
Authors
-------
* MinRK
"""
#-----------------------------------------------------------------------------
# Copyright (c) 2011, the IPython Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed ... | Python | 0 | @@ -1301,23 +1301,16 @@
(%5B
-'--foo'
%5D, %5B'--f
|
eea4914e2ac082ad1fecc6131cbfea52f9565139 | update dev version after 0.39.0 tag [ci skip] | py/desitarget/_version.py | py/desitarget/_version.py | __version__ = '0.39.0'
| Python | 0 | @@ -14,10 +14,18 @@
'0.39.0
+.dev3998
'%0A
|
b1a839e46a1c197fbd091a97fee0dea6f6f0b660 | bump dev version after 0.7.0 tag | py/desitarget/_version.py | py/desitarget/_version.py | __version__ = '0.7.0'
| Python | 0 | @@ -13,10 +13,17 @@
= '0.7.0
+.dev406
'%0A
|
482d9fe0cfd1d729316530b684e058b8f08cc4b4 | Add meme font | memefarm/__init__.py | memefarm/__init__.py | """
memefarm - generate an effectively unlimited number of memes by blindly
combining random images and words.
"""
# Dependencies
from PIL import Image
import random
# Internal modules
import imagesearch
import wordgen
# Load words
commonwords = wordgen.getWords()
class memefarm(object):
""" A 'meme farm' ca... | Python | 0.000001 | @@ -146,17 +146,39 @@
rt Image
+, ImageDraw, ImageFont
%0A
-
import r
@@ -245,18 +245,15 @@
%0A%0A#
-Load words
+GLOBALS
%0Acom
@@ -281,16 +281,80 @@
tWords()
+ # Common english words%0Amemefont = ImageFont.truetype(%22Impact%22)
%0A%0A%0Aclass
|
d6ff777c7fb3f645c021da1319bb5d78d13aa9db | Fix python siphashing to match c implementation | meshnet/interface.py | meshnet/interface.py | import serial
import struct
from siphashc import siphash
def _hash(key: str, sender: int, receiver: int, msg_type: int, data: bytes):
packed_data = struct.pack(">h>hBs", sender, receiver, msg_type, data)
return struct.pack("Q", siphash(key, packed_data))
class SerialMessage(object):
def __init__(self):
... | Python | 0 | @@ -51,16 +51,17 @@
iphash%0A%0A
+%0A
def _has
@@ -67,19 +67,21 @@
sh(key:
-str
+bytes
, sender
@@ -168,12 +168,10 @@
(%22%3Eh
-%3E
hB
-s
%22, s
@@ -199,15 +199,16 @@
type
-,
+) +
data
-)
%0A
@@ -228,16 +228,17 @@
t.pack(%22
+%3E
Q%22, siph
@@ -369,18 +369,16 @@
pass%0A%0A%0A
-%0A%0A
class Co
@@ -39... |
6ae6db2b7dbb8ed2226cdb8d969329019bbe2993 | add restart | py/mabo_sup/controller.py | py/mabo_sup/controller.py |
"""restart app/service"""
class Controller(object):
def __init__(self):
pass
| Python | 0.000002 | @@ -1,10 +1,8 @@
-%0A%0A
%0A%0A%22%22%22res
@@ -22,16 +22,37 @@
ice%22%22%22%0A%0A
+import subprocess%0A%0A%0A
+%0A
%0Aclass C
@@ -70,24 +70,35 @@
bject):%0A
+%22%22%22class%22%22%22
%0A def __i
@@ -132,12 +132,754 @@
%0A
+%0A def listen(self):%0A %22%22%22listen restart command%22%22%... |
35ccac1fcaf7219d0b71f117f3e16ca201c3322d | add identifier | Lib/booleanOperations/booleanGlyph.py | Lib/booleanOperations/booleanGlyph.py | from __future__ import print_function, division, absolute_import
import weakref
from copy import deepcopy
try:
from robofab.pens.pointPen import AbstractPointPen
from robofab.pens.adapterPens import PointToSegmentPen, SegmentToPointPen
from robofab.pens.boundsPen import BoundsPen
except:
from ufoLib.po... | Python | 0.001197 | @@ -2016,32 +2016,49 @@
f beginPath(self
+, identifier=None
):%0A self.
|
9d6ad3b56d078143ddbbfec0674a6a0cb7f2030f | Convert result of optimization to a tuple | metaopt/core/main.py | metaopt/core/main.py | # -*- coding: utf-8 -*-
from __future__ import division, print_function, with_statement
from threading import Timer
from metaopt.core.returnspec import ReturnSpec
from metaopt.invoker.multiprocess import MultiProcessInvoker
from metaopt.invoker.pluggable import PluggableInvoker
from metaopt.optimizer.saes import SAES... | Python | 1 | @@ -1312,22 +1312,29 @@
return
+tuple(
result
+)
%0A%0A%0Adef o
|
7f314ac89ef5dac18afac30f9ad86f6bf47b630b | Remove unused module level variables | pybossa_discourse/view.py | pybossa_discourse/view.py | # -*- coding: utf8 -*-
"""Views module for pybossa-discourse."""
from flask import Blueprint, request, url_for, flash, redirect
from flask import current_app as app
from flask.ext.login import logout_user, current_user
discourse_sso = app.extensions['discourse']['sso']
discourse_client = app.extensions['discourse']['... | Python | 0.000001 | @@ -218,117 +218,8 @@
er%0A%0A
-discourse_sso = app.extensions%5B'discourse'%5D%5B'sso'%5D%0Adiscourse_client = app.extensions%5B'discourse'%5D%5B'client'%5D%0A%0A
%0Adef
|
6b64da619fbb5ce17e1a309518206d7e46688b0a | Allow loading an explicit dict or configuration | microcosm/loaders.py | microcosm/loaders.py | """
Configuration loading
A configuration loader is any function that accepts `Metadata` and
returns a `Configuration` object. Configuration might be loaded
from a file, from environment variables, or from an external service.
"""
from imp import new_module
from json import loads
from os import environ
from inflectio... | Python | 0 | @@ -3666,32 +3666,277 @@
e_func=loads)%0A%0A%0A
+def load_from_dict(dct=None, **kwargs):%0A %22%22%22%0A Load configuration from a dictionary.%0A%0A %22%22%22%0A dct = dct or dict()%0A dct.update(kwargs)%0A%0A def _load_from_dict(metadata):%0A return Configuration(dct)%0A return _load_from_... |
1fe9dbdbe1eaf02a9e53dfe5ce890358296f4efb | Increment version for release | pycroscopy/__version__.py | pycroscopy/__version__.py | version = '0.60.1'
time = '2018-06-19 09:41:25'
| Python | 0 | @@ -9,17 +9,17 @@
= '0.60.
-1
+2
'%0Atime =
@@ -30,19 +30,19 @@
18-0
-6-19 09:41:25
+7-30 14:04:51
'%0A
|
25dd1a2579195021900d641eddcc084c00084b25 | use numpy random | pydigree/recombination.py | pydigree/recombination.py | #!/usr/bin/env python
import random
from array import array
from bisect import bisect_left
import numpy as np
def recombine(chr1, chr2, map):
newchrom = _recombine_haldane(chr1, chr2, map)
if isinstance(chr1, array) and isinstance(chr2, array):
if chr1.typecode != chr2.typecode:
raise Va... | Python | 0.001894 | @@ -20,23 +20,8 @@
on%0A%0A
-import random%0A%0A
from
@@ -645,16 +645,149 @@
rt from%0A
+ # np.random.randint works on a half open interval, so the upper bound %0A # specified is 2. We'll get zeros and ones out of it.%0A
flip
@@ -796,36 +796,31 @@
d =
+np.
random.
-choice((True, False))
+randint(0,2)%0... |
05c396714ab03447690c01b1b28e760b67a2f975 | strings, bygroup, ? operator | pygments/lexers/puppet.py | pygments/lexers/puppet.py | # -*- coding: utf-8 -*-
"""
pygments.lexers.puppet
~~~~~~~~~~~~~~~~~~~~~~
Lexer for the Puppet DSL.
:copyright: Copyright 2006-2012 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from pygments.lexer import RegexLexer
from pygments.token import *
__all__ = ['Puppet... | Python | 1 | @@ -264,17 +264,27 @@
gexLexer
+, bygroups
%0A
-
from pyg
@@ -571,16 +571,17 @@
iline),%0A
+%0A
@@ -587,16 +587,19 @@
(r'
+%5C?%7C
%3C%7C%3E%7C=%7C%5C+
@@ -721,16 +721,17 @@
ation),%0A
+%0A
@@ -788,32 +788,32 @@
)%5Cb', Keyword),%0A
-
(r'(
@@ -863,32 +863,218 @@
)%5Cb', Ke... |
8a29430d0254d4e5e9b13db5369d7bc2883a7ca7 | Update pylsy_test.py | pylsy/tests/pylsy_test.py | pylsy/tests/pylsy_test.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import unittest
import sys
sys.path.append('..')
from pylsy import pylsytable
class PylsyTableTests(unittest.TestCase):
def setUp(self):
attributes = ["name", "age"]
self.table = pylsytable(attributes)
def tearDown(self):
... | Python | 0 | @@ -57,17 +57,16 @@
_import%0A
-%0A
import u
@@ -77,49 +77,19 @@
est%0A
-%0Aimport sys%0A%0Asys.path.append('..')%0A%0Afrom
+from pylsy.
pyls
|
0cabd9f72f902a993d52bbae5a9f45580254a44f | return values for testcase | pyproject/simplemodule.py | pyproject/simplemodule.py | # -*- coding: utf-8 -*-
#
# Copyright 2012 Martin Halder <martin.halder@gmail.com>
#
# This file is part of PyProject.
#
# PyProject 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 Lice... | Python | 0.000015 | @@ -1411,13 +1411,15 @@
ns:
-never
+'three'
%0A
@@ -1470,9 +1470,18 @@
-pass
+return 'test'
%0A
|
a468ab86e2fde8e4394ff63bcffecb65c81fc257 | Update docstring to match code | pytest_django/fixtures.py | pytest_django/fixtures.py | """All pytest-django fixtures"""
from __future__ import with_statement
import copy
import os
import pytest
from . import live_server_helper
from .db_reuse import monkey_patch_creation_for_db_reuse
from .django_compat import is_django_unittest
from .lazy_django import skip_if_no_django
__all__ = ['_django_db_setup'... | Python | 0 | @@ -5538,16 +5538,26 @@
ost:8081
+,8100-8200
%60%60 is us
@@ -5572,19 +5572,19 @@
the
+%0A
Django
-%0A
doc
|
e896b288bd9fe70dd6856237ae63e1a6b5be4a01 | Update TCC rule | pythainlp/tokenize/tcc.py | pythainlp/tokenize/tcc.py | # -*- coding: utf-8 -*-
"""
The implementation of tokenizer accorinding to Thai Character Clusters (TCCs)
rules purposed by `Theeramunkong et al. 2000. \
<http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.59.2548>`_
Credits:
* TCC: Jakkrit TeCho
* Grammar: Wittawat Jitkrittum (`link to the source fil... | Python | 0 | @@ -610,51 +610,38 @@
?k%0Ac
-%E0%B8%B1tk%0Ac%E0%B8%B1t%E0%B8%A7%E0%B8%B0k%0Ac%5B%E0%B8%B1%E0%B8%B7%5Dtc%5B%E0%B8%B8%E0%B8%B4%E0%B8%B0%5D
+%5B%E0%B8%B1%5D(%5B%E0%B9%88-%E0%B9%8B%5Dc)
?k%0Ac%5B
-%E0%B8%B4%E0%B8%B8%E0%B8%B9%5D%E0%B9%8C
+%E0%B8%B0-%E0%B8%B9%5Dt
k%0Ac%5B
-%E0%B8%B0-%E0%B8%B9%5Dtk
+%E0%B8%B4%E0%B8%B8%E0%... |
9e25dbabbebb3638b8f176612bff8562c081d2b7 | Add PDFFile as alias for PNGImage | python/balcaza/t2types.py | python/balcaza/t2types.py | __all__ = ('Logical', 'Integer', 'Number', 'String', 'TextFile', 'PNGImage',
'RExpression', 'List', 'Vector')
import copy
from t2util import BeanshellEscapeString
from t2activity import BeanshellActivity
class T2FlowType:
def __init__(self, depth=0):
self.depth = depth
self.dict = {}
def... | Python | 0 | @@ -57,16 +57,32 @@
xtFile',
+ 'PDFFile', %0A
'PNGIma
@@ -85,20 +85,16 @@
GImage',
-%0A
'RExpre
@@ -3967,16 +3967,20 @@
Integer
+Type
):%0A
@@ -4903,24 +4903,44 @@
mageType()%0A%0A
+PDFFile = PNGImage%0A%0A
class TextFi
|
bb0c9465026999aeff0c7c233f1a7db1e67bb29b | improve Collection performance | models/collection.py | models/collection.py | #!/usr/bin/env python3
from .base import Serializable, Collectable
class Collection(Serializable):
def __init__(self):
self.known = {}
self.by_id = {}
def _serialize(self):
return {model: [obj.serialize() for obj in objects] for model, objects in self.known.items()}
def _get_list... | Python | 0.000001 | @@ -60,16 +60,27 @@
ectable%0A
+import time
%0A%0Aclass
@@ -176,16 +176,41 @@
_id = %7B%7D
+%0A self.by_pid = %7B%7D
%0A%0A de
@@ -759,16 +759,92 @@
return%0A%0A
+ if id(obj) in self.by_pid:%0A return self.by_pid%5Bid(obj)%5D%0A%0A
@@ -969,104 +969,8 @@
ne:%0A
- ... |
080d36290df26ad04801d7cb60dc85aea16f4217 | Update utilities.py | modules/utilities.py | modules/utilities.py | from templates import TextTemplate, add_quick_reply
import requests
import config
import os
import json
from app import usersdb
ACCESS_TOKEN = os.environ.get('ACCESS_TOKEN', config.ACCESS_TOKEN)
APP_URL = os.environ.get('APP_URL', config.APP_URL)
def send_interest_menu(sender):
out = {"keyword":"interest"}
me... | Python | 0 | @@ -2460,16 +2460,18 @@
ptext =
+%22%22
%22BlindCh
@@ -2537,29 +2537,21 @@
entity.
-%22+%5C
%0A
- %22
The bot
@@ -2599,16 +2599,20 @@
e world.
+%0A
You can
@@ -2689,25 +2689,18 @@
hat.
-%5Cn%22+%5C
%0A
+%0A
-%22%5Cn
Avai
@@ -2718,23 +2718,23 @@
nds:
-%5Cn1. quit/exit:
+%0A quit... |
c79daca5025dd322a2418a09ec46852f707bbcc0 | Test stop_running_subscriptions. | mqtt_logger/tests.py | mqtt_logger/tests.py | from django.test import TestCase
from django.core.management import call_command
from models import *
class SubscriptionTests(TestCase):
@classmethod
def setUpTestData(cls):
activesub = MQTTSubscription(server='broker.hivemq.com', topic='mqtt-hub/tests/active')
activesub.save()
cls.ac... | Python | 0 | @@ -2624,71 +2624,8 @@
1)%0A%0A
- inactivesub.active = False%0A inactivesub.save()%0A%0A
@@ -2637,38 +2637,36 @@
QTTSubscription.
-update
+stop
_running_subscri
|
2731001c08f8b908f9974765529790443c74edd5 | allow wait messages to be closures to minimize unnecessary wire calls | nerodia/wait/wait.py | nerodia/wait/wait.py | import nerodia
from .timer import Timer
class Wait(object):
INTERVAL = 0.1
timer = Timer() # Access timer implementation in use
@classmethod
def until(cls, method=None, timeout=None, message=None, interval=None, object=None):
"""
Waits until the method evaluates to True or times out
... | Python | 0 | @@ -998,32 +998,40 @@
age_for(timeout,
+ object,
message))%0A%0A
@@ -1900,32 +1900,40 @@
age_for(timeout,
+ object,
message))%0A%0A
@@ -1995,32 +1995,40 @@
or(cls, timeout,
+ object,
message):%0A
@@ -2018,24 +2018,92 @@
, message):%0A
+ if callable(message):%0A message = message... |
0e4f24c6d8e8722776144df83e2265aef2792cad | Update normalize_dataset script | normalize_dataset.py | normalize_dataset.py | """Create multilabel data set with normalized spelling.
The input consists of a directory of text files containing the dataset in
historic spelling.
The data set consists of:
<sentence id>\t<sentence>\tEmotie_Liefde (embodied emotions labels separated by
_)
<sentence id>\t<sentence>\tNone ('None' if no words were tagg... | Python | 0 | @@ -1651,76 +1651,8 @@
le%0A%0A
- if os.path.isfile(os.path.join(output_dir, text_file)):%0A
@@ -1692,36 +1692,32 @@
dir, text_file)%0A
-
out_file
@@ -1755,36 +1755,32 @@
t_file)%0A
-
-
with codecs.open
@@ -1802,36 +1802,32 @@
'utf-8') as f:%0A
-
line
@@ ... |
b14dbd720cde227433e48b7923da2254d3774359 | Fix for SkipTest support | nosedbreport/base.py | nosedbreport/base.py | import logging
import os
import traceback
import sys
import pprint
from time import time
from datetime import datetime, timedelta
from nose.plugins.base import Plugin
from nose.plugins.skip import SkipTest
__author__ = "Ali-Akber Saifee"
__email__ = "ali@mig33global.com"
__copyright__ = "Copyright 2011, ProjectGoth"
... | Python | 0 | @@ -2952,32 +2952,55 @@
test.address()%0A
+ id = test.id()%0A
if issub
@@ -3259,35 +3259,8 @@
r))%0A
- id = test.id()%0A
@@ -3494,24 +3494,16 @@
%22error%22%0A
-
|
a392e6fce8cbdf62390bd559f5b8c729c0ba1110 | Revert "Raise a warning when failing run_decoding_tests." | slave/skia_slave_scripts/run_decoding_tests.py | slave/skia_slave_scripts/run_decoding_tests.py | #!/usr/bin/env python
# Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
""" Run the Skia skimage executable. """
from build_step import BuildStep, BuildStepWarning
import sys
class RunDecodingTests(Bui... | Python | 0.000056 | @@ -260,26 +260,8 @@
Step
-, BuildStepWarning
%0Aimp
@@ -1184,19 +1184,8 @@
%5D)%0A%0A
- try:%0A
@@ -1224,132 +1224,8 @@
md)%0A
- except Exception as e:%0A print %22========= Exception in run_decoding_tests ========%22%0A raise BuildStepWarning(e)%0A
%0A%0Aif
|
0194d071e22ff230fcd85ba1a129e9d74c1890e2 | Update paginator.py | rawpaginator/paginator.py | rawpaginator/paginator.py | from django.core.paginator import Page, Paginator as DefaultPaginator
from django.db.models.query import RawQuerySet
from django.db import connections
class DatabaseNotSupportedException(Exception):
pass
class RawQuerySetPaginator(DefaultPaginator):
"An efficient paginator for RawQuerySets."
def __init_... | Python | 0 | @@ -381,25 +381,24 @@
page=True):%0A
-%0A
supe
@@ -626,17 +626,16 @@
(self):%0A
-%0A
@@ -1095,33 +1095,32 @@
limit, offset):%0A
-%0A
return '
@@ -1251,24 +1251,29 @@
it, offset)%0A
+ %0A
mysql_ge
@@ -1520,78 +1520,8 @@
2.1%0A
- ## I have no access to oracle and have no idea i... |
5205b16c761172f032cb71969d955b3e46d68a5e | Increase retries times on ObjectPathInUse exception | obmc/mapper/utils.py | obmc/mapper/utils.py | # Contributors Listed Below - COPYRIGHT 2016
# [+] International Business Machines Corp.
#
#
# 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
#... | Python | 0.000001 | @@ -1314,9 +1314,10 @@
s',
-5
+20
)%0A
@@ -1416,10 +1416,9 @@
s',
-10
+5
00)%0A
|
36d99edb6747fea58bb1effbfc306af09939779e | use transaction | snotes20/management/commands/importexternal.py | snotes20/management/commands/importexternal.py | from django.core.management.base import BaseCommand, CommandError
import logging
import datetime
from snotes20.datasources import sources
import snotes20.models as models
logger = logging.getLogger(__name__)
def import_from_source(source):
logger.info("importing Podcasts")
podcasts = source.get_podcasts()
... | Python | 0.000001 | @@ -1,12 +1,44 @@
+import logging%0Aimport datetime%0A%0A
from django.
@@ -95,38 +95,41 @@
ror%0A
-import logging%0Aimport datetime
+from django.db import transaction
%0A%0Afr
@@ -201,16 +201,17 @@
models%0A%0A
+%0A
logger =
@@ -286,30 +286,32 @@
ogger.info(%22
-import
+download
ing Podcasts
@@ -353,67 +353,8 @@... |
f828b79ed30edcc87837d820e6b5712de16a3118 | bump version -> 2.2.0.dev3 | omegaconf/version.py | omegaconf/version.py | import sys # pragma: no cover
__version__ = "2.2.0.dev2"
msg = """OmegaConf 2.0 and above is compatible with Python 3.6 and newer.
You have the following options:
1. Upgrade to Python 3.6 or newer.
This is highly recommended. new features will not be added to OmegaConf 1.4.
2. Continue using OmegaConf 1.4:
Yo... | Python | 0.000001 | @@ -49,17 +49,17 @@
.2.0.dev
-2
+3
%22%0A%0Amsg =
|
4c5be9a3b99ad47a1492a2b3481498273ec3a6cd | bump repo version | omegaconf/version.py | omegaconf/version.py | import sys # pragma: no cover
__version__ = "2.0.0rc23"
msg = """OmegaConf 2.0 and above is compatible with Python 3.6 and newer.
You have the following options:
1. Upgrade to Python 3.6 or newer.
This is highly recommended. new features will not be added to OmegaConf 1.4.
2. Continue using OmegaConf 1.4:
You... | Python | 0 | @@ -48,17 +48,17 @@
2.0.0rc2
-3
+4
%22%0A%0Amsg =
|
3e8d1efc04d28b11f0ca8b4c14f84b4fdd3b88ba | Fix import error | regex4dummies/__init__.py | regex4dummies/__init__.py | from regex4dummies import regex4dummies
| Python | 0.000002 | @@ -33,8 +33,36 @@
dummies%0A
+from toolkit import Toolkit%0A
|
2bcda9a2e80386cbd0f269b422ad9fa693a5b4de | Add "Python :: 3" classifier to reprozip-jupyter | reprozip-jupyter/setup.py | reprozip-jupyter/setup.py | import io
import os
from setuptools import setup
# pip workaround
os.chdir(os.path.abspath(os.path.dirname(__file__)))
# Need to specify encoding for PY3, which has the worst unicode handling ever
with io.open('README.rst', encoding='utf-8') as fp:
description = fp.read()
setup(name='reprozip-jupyter',
ve... | Python | 0.999984 | @@ -1824,16 +1824,65 @@
: 2.7',%0A
+ 'Programming Language :: Python :: 3',%0A
|
0df3fe9b900fcfb96953195f4f5ed013cd4ebb55 | update version | twitcher/__init__.py | twitcher/__init__.py | import logging
logger = logging.getLogger(__name__)
__version__ = '0.3.2'
def main(global_config, **settings):
"""
This function returns a Pyramid WSGI application.
"""
from pyramid.config import Configurator
config = Configurator(settings=settings)
# include twitcher components
config.... | Python | 0 | @@ -69,9 +69,9 @@
0.3.
-2
+3
'%0A%0A%0A
|
3d50ea1f282fdeac2957e288cb743a7b6b6490cb | Add grid option to worldmap | typhon/plots/maps.py | typhon/plots/maps.py | # -*- coding: utf-8 -*-
"""Functions related to plotting maps. """
from collections import namedtuple
try:
import cartopy.crs as ccrs
from cartopy.feature import NaturalEarthFeature, COLORS
except ImportError:
raise ImportError('You have to install `cartopy` to use functions '
'locate... | Python | 0.000001 | @@ -543,16 +543,28 @@
g=False,
+ grid=False,
**kwarg
@@ -567,16 +567,16 @@
wargs):%0A
-
%22%22%22P
@@ -1373,16 +1373,113 @@
%22s%22: 1,%0A
+ # This accelerates the drawing of many points:%0A %22rasterized%22: lat.size %3E 100_000,%0A
%7D%0A
@@ -1607,17 +1607,16 @@
s None:%0A
-%0A
... |
a7845bfcb63118fd547a573f2579f30e22a5fcc7 | Add allocator dependency to events_unittests. | ui/events/events.gyp | ui/events/events.gyp | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
},
'targets': [
{
'target_name': 'dom4_keycode_converter',
'type': 'static_library',
'de... | Python | 0.000473 | @@ -6000,30 +6000,229 @@
t.cc',%0A %5D,%0A
+ 'conditions': %5B%0A %5B'OS==%22linux%22 and linux_use_tcmalloc==1', %7B%0A 'dependencies': %5B%0A '%3C(DEPTH)/base/allocator/allocator.gyp:allocator',%0A %5D,%0A %7D%5D,%0A %5D,%0A
%7D,%0A %5D,%0A%7D%0A
|
27b1570653c326410dc2b23fcc012e3c1ac47847 | Add PlayerSprite.move | MazeRunner/mazeRunner.py | MazeRunner/mazeRunner.py | #!/usr/bin/env python
"""
mazeRunner.py
Escape the maze quickly.
Author: geugon
License: Apache License 2.0
See http://www.apache.org/licenses/LICENSE-2.0
"""
import pygame
SCREEN_SIZE = (640, 480)
PLAYER_RADIUS = 10
WHITE = (230, 230, 230)
RED = (255, 0, 0)
BLACK = (0, 0, 0)
CLEAR = (0, 0, 0, 0)... | Python | 0.000001 | @@ -738,16 +738,182 @@
, 100)%0A%0A
+ def move(self, direction):%0A vel = 2%0A dx, dy = %5Btmp*vel for tmp in direction%5D%0A x, y = self.rect.center%0A self.rect.center = x+dx, y+dy%0A%0A
%0Aclass M
@@ -1964,16 +1964,399 @@
False%0A%0A
+ keys_pressed = pygame.key.get_pressed()... |
8ca10d1e7d23542611b30e429c514ec28249786f | use AreaPen | Lib/booleanOperations/booleanGlyph.py | Lib/booleanOperations/booleanGlyph.py | from __future__ import print_function, division, absolute_import
import weakref
from copy import deepcopy
try:
from robofab.pens.pointPen import AbstractPointPen
from robofab.pens.adapterPens import PointToSegmentPen, SegmentToPointPen
from robofab.pens.boundsPen import BoundsPen
except:
from ufoLib.po... | Python | 0.000004 | @@ -454,72 +454,46 @@
rom
-defcon.pens.clockwiseTestPointPen import ClockwiseTestPoint
+fontTools.pens.areaPen import Area
Pen%0A
-%0A
from
@@ -3074,36 +3074,17 @@
p
-ointPen = ClockwiseTestPoint
+en = Area
Pen(
@@ -3102,37 +3102,26 @@
self.draw
-Points(pointP
+(p
en)%0A
@@ -3147,32 +3147,20 @@
... |
ca8fcf22c1ca258b82e64b6679505801ca2187af | Test avec une taille d'historique différente | use_learning_leap.py | use_learning_leap.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os, sys
this_dir = os.path.dirname(os.path.realpath(__name__))
sys.path.insert(0, os.path.join(this_dir, 'libs', 'leap'))
import Leap
import time
from sklearn import neighbors
from learner_finger import FingerMove, FingerPoint
from learner_finger import wait_move
... | Python | 0 | @@ -356,10 +356,9 @@
e =
-10
+2
0%0A
|
247da8ba47c6573a3e75b4c4925d5a0c44a6aa70 | version bump | user_sync/version.py | user_sync/version.py | # Copyright (c) 2016-2017 Adobe Inc. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modif... | Python | 0.000001 | @@ -1132,9 +1132,6 @@
'2.4
-rc3
'%0A
|
32e729afc893c19b4b4a289ad4fc9f931dfc27e1 | Update regular-expression-matching.py | Python/regular-expression-matching.py | Python/regular-expression-matching.py | # Time: O(m * n)
# Space: O(n)
#
# Implement regular expression matching with support for '.' and '*'.
#
# '.' Matches any single character.
# '*' Matches zero or more of the preceding element.
#
# The matching should cover the entire input string (not partial).
#
# The function prototype should be:
# bool isMatch(... | Python | 0.000004 | @@ -1329,34 +1329,36 @@
p%5Bj-2%5D or p%5Bj-2%5D
+
==
+
'.'))%0A
|
328f773780873eee80f91938cde274c9f118ecfa | version bump | user_sync/version.py | user_sync/version.py | # Copyright (c) 2016-2017 Adobe Inc. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modif... | Python | 0.000001 | @@ -1130,11 +1130,11 @@
= '2.4rc
-2
+3
'%0A
|
e9af799900df8f3dd6f4b55f796e918c80a48b5a | Handle 'Interrupted system call' corectly in InputHookContext. | prompt_toolkit/eventloop/inputhook.py | prompt_toolkit/eventloop/inputhook.py | """
Similar to `PyOS_InputHook` of the Python API. Some eventloops can have an
inputhook to allow easy integration with other event loops.
When the eventloop of prompt-toolkit is idle, it can call such a hook. This
hook can call another eventloop that runs for a short while, for instance to
keep a graphical user inter... | Python | 0 | @@ -2282,16 +2282,33 @@
e pipe.%0A
+ try:%0A
@@ -2330,16 +2330,228 @@
, 1024)%0A
+ except OSError:%0A # This happens when the window resizes and a SIGWINCH was received.%0A # We get 'Error: %5BErrno 4%5D Interrupted system call'%0A # Just ignore.%0A ... |
5f2bb7263e660b3981a246faaa5d7ce4c8601a19 | change potcar_data to potcar_spec | pymatgen/apps/borg/tests/test_hive.py | pymatgen/apps/borg/tests/test_hive.py | # coding: utf-8
from __future__ import division, unicode_literals
"""
Created on Mar 18, 2012
"""
__author__ = "Shyue Ping Ong"
__copyright__ = "Copyright 2012, The Materials Project"
__version__ = "0.1"
__maintainer__ = "Shyue Ping Ong"
__email__ = "shyue@mit.edu"
__date__ = "Mar 18, 2012"
import unittest
import ... | Python | 0.000073 | @@ -1252,20 +1252,20 @@
%22potcar_
-data
+spec
%22, %22run_
|
40cfd938c4529043ed3da00b464fc71fc8fd00b3 | Fix typos | pysnmp/carrier/asyncore/dgram/base.py | pysnmp/carrier/asyncore/dgram/base.py | #
# This file is part of pysnmp software.
#
# Copyright (c) 2005-2018, Ilya Etingof <etingof@gmail.com>
# License: http://snmplabs.com/pysnmp/license.html
#
import socket
import errno
import sys
from pysnmp.carrier.asyncore.base import AbstractSocketTransport
from pysnmp.carrier import sockfix, sockmsg, error
from pysn... | Python | 0.999999 | @@ -4063,16 +4063,16 @@
erus
-r
e
+r
pr
-evi
+ive
lege
|
b2bab786c4af3dcca7d35b1e6ecff8699e542ec4 | Add a pytest hook for creating the coverage data_file directory | pytest_girder/pytest_girder/plugin.py | pytest_girder/pytest_girder/plugin.py | from .fixtures import * # noqa
def pytest_addoption(parser):
group = parser.getgroup('girder')
group.addoption('--mock-db', action='store_true', default=False,
help='Whether or not to mock the database using mongomock.')
group.addoption('--mongo-uri', action='store', default='mongodb:... | Python | 0 | @@ -1,8 +1,18 @@
+import os%0A
from .fi
@@ -37,16 +37,553 @@
noqa%0A%0A%0A
+def pytest_configure(config):%0A %22%22%22%0A Create the necessary directories for coverage. This is necessary because neither coverage nor%0A pytest-cov have support for making the data_file directory before running.%0A %22%22%2... |
61799c59f5acddeb79248f5f2244b047cb737e29 | move get_posts and get_stream methods into User | python/flask/social-network/models.py | python/flask/social-network/models.py | import datetime
from flask_bcrypt import generate_password_hash
from flask_login import UserMixin
from peewee import *
DATABASE = SqliteDatabase('social.db')
class User(UserMixin, Model):
username = CharField(unique=True)
email = CharField(unique=True)
password = CharField(max_length=100)
joined_at = DateTimeFie... | Python | 0 | @@ -453,16 +453,168 @@
_at',)%0A%0A
+%09def get_posts(self):%0A%09%09return Post.select().where(Post.user == self)%0A%0A%09def get_stream(self):%0A%09%09return Post.select().where(%0A%09%09%09(Post.user == self)%0A%09%09)%0A%0A
%09@classm
@@ -1117,160 +1117,8 @@
,)%0A%0A
-%09def get_posts(self):%0A%09%09return Post.... |
ef0a9d291b5c2ecfd596fa2c5faf7b2f65414557 | Refactor tokenizer for clarity | python/jsbeautifier/core/tokenizer.py | python/jsbeautifier/core/tokenizer.py | # The MIT License (MIT)
#
# Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.
#
# 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 ... | Python | 0 | @@ -2164,32 +2164,33 @@
current = self._
+_
get_next_token(p
@@ -2179,32 +2179,46 @@
__get_next_token
+_with_comments
(previous, open_
@@ -2227,334 +2227,8 @@
ken)
-%0A%0A while self._is_comment(current):%0A comments.add(current)%0A current = self._get_next_token(previous, ... |
aa51ebd73389c9c8a3db53057dbd0b5beba59ece | Use the official name "Databricks Runtime 5.0 ML" | python/sparkdl/horovod/runner_base.py | python/sparkdl/horovod/runner_base.py | # Copyright 2017 Databricks, 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 | @@ -914,33 +914,24 @@
ime
-for Machine Learning 5.0+
+5.0 ML and above
, it
@@ -972,20 +972,16 @@
tributed
-%0A
Spark j
@@ -983,16 +983,19 @@
ark job.
+%0A
It mak
@@ -1065,20 +1065,16 @@
etup and
-%0A
integra
@@ -1086,15 +1086,22 @@
with
+%0A
Spark.
+%0A
Ch
@@ -1164,20 +1164,16 @@
ples ... |
65330d63992fa2f8696308a06991cb9b031668b1 | Update curlCallee.py | pythonworks/Curls/Curls/curlCallee.py | pythonworks/Curls/Curls/curlCallee.py | __author__ = 'Krishna Mudragada'
from curlRequester import sendCurlRequest
username = 'krishna'
password = 'Eagles@123'
instancesFile = 'instancesspreadout'
def BrowsePageServiceFlush():
path = 'aeo/commerce/catalog/services/BrowsePageService/?shouldInvokeMethod=flushAllBrowseCaches'
typeList = ['831','832','... | Python | 0.000001 | @@ -1,38 +1,4 @@
-__author__ = 'Krishna Mudragada'%0A%0A
from
@@ -52,15 +52,13 @@
= '
-krishna
+admin
'%0Apa
@@ -71,18 +71,16 @@
= '
-Eagles@123
+password
'%0Ain
@@ -160,55 +160,11 @@
= '
-aeo/commerce/catalog/services/BrowsePageService
+url
/?sh
|
8a26c2f9fefdf76aaffaf8ee276f810e10935796 | Implement EvidenceRequest.__eq__() | pywatson/question/evidence_request.py | pywatson/question/evidence_request.py | class EvidenceRequest(object):
"""Include this with a Question to request evidence from Watson"""
def __init__(self, items=3, profile=False):
self.items = items
self.profile = profile
def __eq__(self, other):
return False
| Python | 0.000388 | @@ -244,17 +244,414 @@
-return Fals
+%22%22%22Return True iff self is equivalent to other%0A%0A :param other: an EvidenceRequest%0A :return: True or False%0A %22%22%22%0A if self is other:%0A return True%0A%0A if not isinstance(other, EvidenceRequest):%0A r... |
b1e6f3eacccb5e575ac47b6a40809f4671510672 | Drop Python 2 support in split_level utility function | rest_flex_fields/utils.py | rest_flex_fields/utils.py | try:
# Python 3
from collections.abc import Iterable
string_types = (str,)
except ImportError:
# Python 2
from collections import Iterable
string_types = (str, unicode)
def is_expanded(request, key):
""" Examines request object to return boolean of whether
passed field is expanded.... | Python | 0 | @@ -1,28 +1,4 @@
-try:%0A # Python 3%0A
from
@@ -34,140 +34,8 @@
ble%0A
- string_types = (str,)%0Aexcept ImportError:%0A # Python 2%0A from collections import Iterable%0A string_types = (str, unicode)%0A
%0A%0Ade
@@ -871,17 +871,8 @@
str
-ing_types
):%0A
|
fe3ac58959d14e9d505e6b8df0811b4a993488ac | fix api to create database | dbaas/api/database.py | dbaas/api/database.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from rest_framework import viewsets, serializers, status
from rest_framework.response import Response
from logical import models
from physical.models import Plan, Environment
class DatabaseSerializer(serializers.HyperlinkedModelSerialize... | Python | 0 | @@ -249,16 +249,48 @@
ronment%0A
+from account.models import Team%0A
%0A%0Aclass
@@ -419,32 +419,16 @@
='plan',
- read_only=True,
view_na
@@ -556,24 +556,8 @@
nt',
- read_only=True,
vie
@@ -611,24 +611,143 @@
nt.objects)%0A
+ team = serializers.HyperlinkedRelatedField(%0A source='team', view_name='t... |
e7b9b4232182c59e31aa2bad82fe01a426349919 | Bump version to 2.0.0b3 | rpi_backlight/__init__.py | rpi_backlight/__init__.py | import time
from contextlib import contextmanager
from pathlib import Path
from tempfile import gettempdir
from typing import Any, Callable, Iterator, Union
__author__ = "Linus Groh"
__version__ = "2.0.0b2"
__all__ = ["Backlight"]
_BACKLIGHT_SYSFS_PATH = "/sys/class/backlight/rpi_backlight/"
_EMULATOR_SYSFS_TMP_FILE_... | Python | 0 | @@ -198,17 +198,17 @@
%222.0.0b
-2
+3
%22%0A__all_
|
534acdaa5e93886455db573630c376b46eeb0cab | Implement verbose output | rsk_mind/core/commands.py | rsk_mind/core/commands.py | import argparse, logging, json
from rsk_mind.dataset import Statistics, Splitter
from rsk_mind.classifier.xgboost_classifier import XgboostClassifier
logging.basicConfig()
logger = logging.getLogger('rsk-mind')
logger.setLevel(logging.DEBUG)
def default_settings(setting):
ANALYSIS = {
'persist': False
... | Python | 1 | @@ -209,39 +209,8 @@
nd')
-%0Alogger.setLevel(logging.DEBUG)
%0A%0Ade
@@ -2596,77 +2596,268 @@
par
-ams = parser.parse_args(argv)%0A%0A setting = default_settings(setting
+ser.add_argument('--verbose', '-v', dest='verbose', action='store_true')%0A params = parser.parse_args(argv)%0A%0A setting = default_se... |
40980253f3ea8dd03e8f14d25f9098c8c910d989 | Update validate-binary-search-tree.py | Python/validate-binary-search-tree.py | Python/validate-binary-search-tree.py | # Time: O(n)
# Space: O(logn)
#
# Given a binary tree, determine if it is a valid binary search tree (BST).
#
# Assume a BST is defined as follows:
#
# The left subtree of a node contains only nodes with keys less than the node's key.
# The right subtree of a node contains only nodes with keys greater than the node... | Python | 0.000001 | @@ -22,12 +22,9 @@
: O(
-logn
+1
)%0A#
@@ -543,16 +543,44 @@
= None%0A%0A
+# Morris Traversal Solution%0A
class So
@@ -618,16 +618,915 @@
ee node%0A
+ # @return a list of integers%0A def isValidBST(self, root):%0A prev, cur = None, root%0A while cur:%0A if cur.left is None:%0A ... |
2aa68d742ed099b13531b2a3c12a72501a2c97c8 | Remove AWS_S3_OBJECT_PARAMETERS from settings | seven23/settings.py | seven23/settings.py | """
Django settings for seven23 project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
im... | Python | 0.000001 | @@ -2422,73 +2422,8 @@
N')%0A
- AWS_S3_OBJECT_PARAMETERS = %7B'CacheControl': 'max-age=86400'%7D%0A
|
da98b79f9d8b35ea2d5b503b2b50ecb985c3a966 | Fix building on Python 3 | shipwright/build.py | shipwright/build.py | import json
from . import fn
from .fn import compose, curry, maybe, flat_map, merge
from .tar import mkcontext
# (container->(str -> None))
# -> (container -> stream)
# -> [targets]
# -> [(container, docker_image_id)]
def do_build(client, git_rev, targets):
"""
Generic function for building multiple ... | Python | 0.000001 | @@ -1,17 +1,4 @@
-import json%0A%0A
from
@@ -95,16 +95,48 @@
ontext%0A%0A
+from .compat import json_loads%0A%0A
%0A# (cont
@@ -1360,17 +1360,17 @@
json
-.
+_
loads%0A
|
e5c2fbdaf574d1200e5c96fa25a5b0a67d24e656 | Tweak virtualenv paths method | sideloader/utils.py | sideloader/utils.py | import os
import shutil
from collections import namedtuple
def rmtree_if_exists(tree_path):
"""
Delete a directory and its contents if the directory exists.
:param: tree_path:
The path to the directory.
:returns:
True if the directory existed and was deleted. False otherwise.
"""
if... | Python | 0 | @@ -988,24 +988,20 @@
t_path,
-venv_dir
+name
='ve'):%0A
@@ -1166,24 +1166,20 @@
:param:
-venv_dir
+name
:%0A Th
@@ -1202,26 +1202,16 @@
rtualenv
- directory
. Defaul
@@ -1419,16 +1419,12 @@
th,
-venv_dir
+name
)%0A
|
65ab61af27aeea3ed82e842cd62f6493d55abfc1 | Add TalkType to admin pages. | wafer/talks/admin.py | wafer/talks/admin.py | from django.contrib import admin
from wafer.talks.models import Talk, TalkUrl
class TalkUrlInline(admin.TabularInline):
model = TalkUrl
class TalkAdmin(admin.ModelAdmin):
list_display = ('title', 'get_author_name', 'get_author_contact',
'status')
list_editable = ('status',)
inli... | Python | 0 | @@ -57,16 +57,26 @@
s import
+ TalkType,
Talk, T
@@ -415,16 +415,46 @@
kAdmin)%0A
+admin.site.register(TalkType)%0A
admin.si
|
5415fced9a28efaab3241fdb72a4a15f487a6348 | Replace easy_select2 widget in talk from | wafer/talks/forms.py | wafer/talks/forms.py | import copy
from django import forms
from django.conf import settings
from django.core.exceptions import FieldDoesNotExist
from django.urls import reverse
from django.utils.module_loading import import_string
from django.utils.translation import ugettext as _
from crispy_forms.bootstrap import FormActions
from crispy... | Python | 0 | @@ -399,12 +399,14 @@
rom
-easy
+django
_sel
@@ -410,22 +410,20 @@
select2.
-widget
+form
s import
@@ -438,16 +438,22 @@
Multiple
+Widget
%0Afrom ma
@@ -4971,18 +4971,22 @@
Multiple
-()
+Widget
,%0A
|
db9b999a39d8b04d9b25c5ee1e50cfa510cf2b7d | Add the talk submitter as an initial author | wafer/talks/forms.py | wafer/talks/forms.py | from django import forms
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext as _
from crispy_forms.bootstrap import FormActions
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Submit, HTML
from markitup.widgets import MarkItUpWidget
from easy_select2.w... | Python | 0.000007 | @@ -510,16 +510,92 @@
'user')%0A
+ kwargs.setdefault('initial', %7B%7D).setdefault('authors', %5Bself.user%5D)%0A
|
6a1acb9aba19ffda3e5807f5ccac9e46ca41672e | remove no longer needed commented out code | slumber/__init__.py | slumber/__init__.py | import posixpath
import urllib
import urlparse
import requests
from slumber import exceptions
from slumber.serialize import Serializer
__all__ = ["Resource", "API"]
def url_join(base, *args):
"""
Helper function to join an arbitrary number of url segments together.
"""
scheme, netloc, path, query, ... | Python | 0 | @@ -3283,92 +3283,8 @@
ne%0A%0A
- # if kwargs:%0A # url = %22?%22.join(%5Burl, urllib.urlencode(kwargs)%5D)%0A%0A
|
28b6e711da7470aadce9a1362c5a60227fc7268a | Add category datamanager setup | src/meetshaus.blog/meetshaus/blog/categories.py | src/meetshaus.blog/meetshaus/blog/categories.py | # -*- coding: UTF-8 -*-
""" Module listing available and asigned blog categories """
import urllib2
from plone import api
from five import grok
from Products.CMFCore.interfaces import IContentish
from meetshaus.blog.blogentry import IBlogEntry
class BlogCategories(grok.View):
grok.context(IContentish)
grok.r... | Python | 0 | @@ -78,16 +78,40 @@
ies %22%22%22%0A
+import json%0Aimport time%0A
import u
@@ -121,57 +121,14 @@
ib2%0A
+%0A
from
-plone import api%0Afrom five import grok%0Afrom
Prod
@@ -169,16 +169,224 @@
ntentish
+%0Afrom five import grok%0Afrom plone import api%0Afrom plone.app.layout.navigation.interfaces import INavigat... |
ecd92c84373dc3df43cd8c78e021b88475fc1494 | Change header block to be more pythonic | replace-words/python/replace-words.py | replace-words/python/replace-words.py | #!/usr/bin/env python
"""replace-words.py is the main executable module for the coding test that
demonstrates simple minded tokenization and some simple data structures.
Process a given sentence into single "word" tokens that can be checked
against a list of many-to-one word maps to see whether any words i... | Python | 0 | @@ -1237,77 +1237,85 @@
se.%0A
- %0A CODER: Dean Stevens%0A STATUS: Sample%0A VERSION: 0.1%0A%22%22%22
+%22%22%22%0A%0A__author__ = %22Dean Stevens%22%0A__status__ = %22Sample%22%0A__version__ = %220.1.0%22%0A
%0A%0Acl
|
be0e05187044e08ede722ae224ca59895edd0f46 | Add version 1.7.1 for cub. (#5164) | var/spack/repos/builtin/packages/cub/package.py | var/spack/repos/builtin/packages/cub/package.py | ##############################################################################
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | Python | 0 | @@ -1512,16 +1512,73 @@
4.zip%22%0A%0A
+ version('1.7.1', '028ac43922a4538596338ad5aef0f0c4')%0A
vers
|
8680dbb71e323df9d34e99b6e118014b3289ad7c | add missing imports to agent CLI | agents/utils.py | agents/utils.py | # -*- coding: utf-8 -*-
import os
import sys
import subprocess
import shlex
import socket
DEPLOYMENT_TYPE_STATIC = 0
DEPLOYMENT_TYPE_CONTAINERS = 1
DEPLOYMENT_TYPE_COMPOSE = 2
class ConsoleColors:
HEADER = '\033[95m'
BLUE = '\033[94m'
GREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[... | Python | 0.000001 | @@ -84,16 +84,43 @@
socket%0A
+import fcntl%0Aimport struct%0A
%0A%0ADEPLOY
|
9ee3423a8be12c5b14d6f317d4fc535f1fa309b5 | Switch to development version. | parglare/__init__.py | parglare/__init__.py | # -*- coding: utf-8 -*-
# flake8: NOQA
from parglare.parser import Parser, Token, pos_to_line_col, \
Node, NodeTerm, NodeNonTerm
from parglare.tables import LALR, SLR, SHIFT, REDUCE, ACCEPT
from parglare.glr import GLRParser
from parglare.grammar import Grammar, NonTerminal, Terminal, \
RegExRecognizer, StringR... | Python | 0 | @@ -507,9 +507,14 @@
%220.
-9.2
+10.0.dev
%22%0A
|
845b5deb17a088e8dc7e899b294d6b821d3896a3 | Remove unused import | parsec/decorators.py | parsec/decorators.py | import json
import pprint
import wrapt
from .io import error
@wrapt.decorator
def bioblend_exception(wrapped, instance, args, kwargs):
try:
return wrapped(*args, **kwargs)
except Exception, e:
try:
error(json.loads(e.body)['err_msg'])
except:
print e
@wrapt.deco... | Python | 0.000001 | @@ -9,22 +9,8 @@
son%0A
-import pprint%0A
impo
@@ -265,16 +265,29 @@
except
+ Exception, e
:%0A
|
c70cb13c1f54e5e64bb3b6e8be761ad86ee3926f | Update urls.py | antfarm/urls.py | antfarm/urls.py |
'''
Django-style URL dispatcher view.
App(root_url=url_dispatcher([
(r'^/$', views.index),
(re.compile(r'^/(?P<foo>\d+)/'), views.detail, {'bar': True}),
])
The view will be called with the request, and any matched _named_ groups.
Extra kwargs can be passed as a 3rd positional argument.
Ther... | Python | 0 | @@ -1,13 +1,12 @@
-%0A
'''%0ADjango-s
@@ -992,16 +992,59 @@
, URL):%0A
+ # Ensure the regex is compiled%0A
@@ -1123,97 +1123,8 @@
rn)%0A
- # Ensure the regex is compiled%0A pattern.regex = re.compile(pattern.regex)%0A
|
12331f6e1cd13a8e6f6f72f8ec07e509c27f9e33 | version update | pimat_web/version.py | pimat_web/version.py | __version__ = '0.6.6'
| Python | 0.000001 | @@ -12,12 +12,12 @@
= '0.6.
-6
+7
'%0A%0A
|
cc683963bb5e9215aab3c7aefe35f9f483cdefef | Update scoring_engine version to 1.0.0 | scoring_engine/version.py | scoring_engine/version.py | import os
from scoring_engine.config import config
version = "0.1.0"
# If we specify the version specifically then use that one
if 'SCORINGENGINE_VERSION' in os.environ:
version = os.environ['SCORINGENGINE_VERSION']
# If we're in debug mode, just say dev
if config.debug is True:
version += '-dev'
| Python | 0 | @@ -62,11 +62,11 @@
= %22
-0.1
+1.0
.0%22%0A
|
0a3e9ebf020bfabe6f99b8573de83ebf1a28ab73 | Kill server when login/password is invalid | script/facebook_server.py | script/facebook_server.py | #!/usr/bin/env python
import argparse # Manage program arguments
import json # Read json input
import os # Build path
import sys # Use exit calls
import signal # Catch kill
from subprocess import check_output # Run shell commands
import logging # Add logging
import fbchat # Use facebook messenger library
import unicod... | Python | 0.000002 | @@ -951,16 +951,34 @@
sword.%22)
+%0A sys.exit(2)
%0A%0A #
|
42f27447a5aa51f6de55e62c75222052679e59ad | Terminate Celery when exiting | run_celery.py | run_celery.py | #!/usr/bin/env python
"""Runs a celery worker, and reloads on a file change. Run as ./run_celery [directory]. If
directory is not given, default to cwd."""
import os
import sys
import signal
import time
import multiprocessing
import subprocess
import threading
import inotify.adapters
CELERY_CMD = tuple("celery -A a... | Python | 0.000001 | @@ -1825,18 +1825,77 @@
elf.
-wtree.join
+celery.terminate()%0A self.wtree.join()%0A self.celery.wait
()%0A
|
555ab40670332e048610998318c45bf9a321beaa | use pager.getch() instead of raw_input() for actions | s/bin/gits.py | s/bin/gits.py | from __future__ import print_function, absolute_import
import s
import argh
import sys
import six
@s.cached.func
def _repos():
message = 'comma seperated directories to look for git repos in'
search_dirs = s.shell.get_or_prompt_pref('search_dirs', __file__, message=message)
search_dirs = [s.shell.abspand(... | Python | 0.000001 | @@ -91,16 +91,29 @@
ort six%0A
+import pager%0A
%0A%0A@s.cac
@@ -1005,16 +1005,18 @@
.input('
+%5Cn
commit m
@@ -2091,31 +2091,12 @@
-action = six.moves.inpu
+prin
t('%5B
@@ -2123,16 +2123,63 @@
atch ? '
+, end='')%0A action = pager.getch(
)%0A
|
2678663109a41dd681b770f75b9f76671358a6e8 | add the bucket cache | s3fs/utils.py | s3fs/utils.py | import errno
from contextlib import contextmanager
@contextmanager
def ignoring(*exceptions):
try:
yield
except exceptions:
pass
class FileExpired(IOError):
"""
Is raised, when the file content has been changed from a different process after
opening the file. Reading the file wou... | Python | 0.000001 | @@ -28,16 +28,32 @@
b import
+ AsyncExitStack,
context
@@ -166,16 +166,1341 @@
pass%0A%0A%0A
+class S3BucketRegionCache:%0A # See https://github.com/aio-libs/aiobotocore/issues/866%0A # for details.%0A%0A def __init__(self, session, client, **client_kwargs):%0A self._session = session%0A sel... |
d4740c4dafc7cf2505a8b6117a5953ae8f2b9a6e | Update "setuptools" while install PlatformIO | scripts/get-platformio.py | scripts/get-platformio.py | # Copyright (C) Ivan Kravets <me@ikravets.com>
# See LICENSE for details.
import os
import subprocess
import sys
from platform import system
from tempfile import NamedTemporaryFile
CURINTERPRETER_PATH = os.path.normpath(sys.executable)
IS_WINDOWS = system() == "Windows"
def fix_winpython_pathenv():
"""
Add... | Python | 0 | @@ -2827,16 +2827,32 @@
%5B
+%5B%22setuptools%22%5D,
%5B%22platfo
|
cde48bca684e225b2f99be6637380f4ef3365f17 | Update version 1.0.0.dev3 -> 1.0.0.dev4 | dimod/package_info.py | dimod/package_info.py | __version__ = '1.0.0.dev3'
__author__ = 'D-Wave Systems Inc.'
__authoremail__ = 'acondello@dwavesys.com'
__description__ = 'A shared API for binary quadratic model samplers.'
| Python | 0.000001 | @@ -21,9 +21,9 @@
.dev
-3
+4
'%0A__
|
8e41bbe2b03acf305dc2d557337b29a64023b84f | Modify `generate_sha1sum_node_modules()`. | scripts/lib/node_cache.py | scripts/lib/node_cache.py | from __future__ import print_function
import os
import hashlib
from os.path import dirname, abspath
if False:
from typing import Optional, List, IO, Tuple, Any
from scripts.lib.zulip_tools import subprocess_text_output, run
ZULIP_PATH = dirname(dirname(dirname(abspath(__file__))))
ZULIP_SRV_PATH = "/srv"
if 'T... | Python | 0 | @@ -147,16 +147,22 @@
ist, IO,
+ Text,
Tuple,
@@ -785,32 +785,48 @@
um_node_modules(
+setup_dir=None,
production=DEFAU
@@ -846,32 +846,48 @@
):%0A # type: (
+Optional%5BText%5D,
bool) -%3E str%0A
@@ -883,16 +883,224 @@
-%3E str%0A
+ if setup_dir is None:%0A setup_dir = os.path.realpath(os.ge... |
8eaa75b90f6faaf6503410876c11f100a037c4db | Remove unnecessary postgresql-server-dev-all dependency. | scripts/lib/setup_venv.py | scripts/lib/setup_venv.py | from __future__ import print_function
import os
import sys
from os.path import dirname, abspath
import subprocess
from zulip_tools import run
ZULIP_PATH = dirname(dirname(dirname(abspath(__file__))))
VENV_CACHE_PATH = "/srv/zulip-venv-cache"
if 'TRAVIS' in os.environ:
# In Travis CI, we don't have root access
... | Python | 0 | @@ -597,41 +597,8 @@
v%22,%0A
- %22postgresql-server-dev-all%22,%0A
|
17da30bb342239af347e52f7f0759ea2bff8cc7d | Add storages to installed apps | disparity/settings.py | disparity/settings.py | import os
import excavator
import django_cache_url
import dj_database_url
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/dev/howto/depl... | Python | 0.000001 | @@ -987,16 +987,32 @@
trap3',%0A
+ 'storages',%0A
'rav
|
19e480ac1e77e718e3cad980a96eb9f4612ff697 | Move template method and make private | app/__init__.py | app/__init__.py | # -*- coding: utf-8 -*-
"""
app
~~~~~~~~~~~~~~
Provides the flask application
"""
from __future__ import print_function
import re
import config
from inspect import isclass, getmembers
from functools import partial, update_wrapper
from importlib import import_module
from itertools import imap, repeat
from os impo... | Python | 0 | @@ -1160,16 +1160,92 @@
sses%5D%0A%0A%0A
+def _template(kwargs):%0A%09return render_template('markdown.html', **kwargs)%0A%0A%0A
def crea
@@ -2643,84 +2643,8 @@
'%5D%0A%0A
-%09def template(kwargs):%0A%09%09return render_template('markdown.html', **kwargs)%0A%0A
%09for
@@ -3198,16 +3198,17 @@
partial(
+_
template
... |
c813f2e9540a9399cf41f0c17e272761243dd1e0 | Convert print to LOG in let.py | scheme/let.py | scheme/let.py | from scheme.environment import Environment
from scheme.procedure import SimpleProcedure
__author__ = 'perkins'
from scheme.macro import Macro, MacroSymbol
from scheme.Globals import Globals
from zope.interface import implements
class let(object):
implements(Macro)
def __init__(self):
pass
def _... | Python | 0.999998 | @@ -1038,14 +1038,12 @@
-print
+LOG(
32,
@@ -1053,16 +1053,17 @@
oc%5D+vals
+)
%0A
@@ -1311,8 +1311,9 @@
= let()
+%0A
|
58daab07ab9cebb83ce54c932e1bfe7c9b6eaada | fix the team code review | SoftLayer/CLI/hardware/credentials.py | SoftLayer/CLI/hardware/credentials.py | """List server credentials."""
# :license: MIT, see LICENSE for more details.
import click
import SoftLayer
from SoftLayer.CLI import environment
from SoftLayer.CLI import formatting
from SoftLayer.CLI import helpers
from SoftLayer import exceptions
@click.command(cls=SoftLayer.CLI.command.SLCommand, )
@click.argum... | Python | 0.999996 | @@ -704,17 +704,17 @@
Table(%5B'
-u
+U
sername'
@@ -716,17 +716,17 @@
name', '
-p
+P
assword'
|
45249f21b1579f716c59d5da9a9819401ed8edd1 | Update makelayerfiles.py | scripts/makelayerfiles.py | scripts/makelayerfiles.py | """---------------------------------------------------------------------------
Name: makelayerfiles.py
Purpose: Make layer files for feature classes & rasters in a geodatabase.
Author: NewfoundGEO Consulting
Created: 29/05/2013
Updated: 29/05/2013
------------------------------------------------... | Python | 0 | @@ -250,29 +250,29 @@
pdated:
-29/05
+05/06
/2013%0A------
@@ -5011,16 +5011,17 @@
ace, out_folder)
+%0A
|
6b0198b3fce3d4fffb01ede08e1cad08d4d4e5a9 | Fix options check for --disabled option | SoftLayer/CLI/loadbal/service_edit.py | SoftLayer/CLI/loadbal/service_edit.py | """Edit the properties of a service group."""
# :license: MIT, see LICENSE for more details.
import click
import SoftLayer
from SoftLayer.CLI import environment
from SoftLayer.CLI import exceptions
from SoftLayer.CLI import loadbal
@click.command()
@click.argument('identifier')
@click.option('--enabled / --disabled... | Python | 0 | @@ -1056,16 +1056,18 @@
%0A if
+((
not any(
@@ -1078,25 +1078,16 @@
address,
- enabled,
weight,
@@ -1111,16 +1111,50 @@
k_type%5D)
+) and%0A enabled is None)
:%0A
|
f29536ab98eb49a962141535d29866dcdd29a99f | Convert to int when assigning values, slight optimization | scoreboard.py | scoreboard.py | #!/usr/bin/env python
import os
print "Content-Type: text/html\n"
print ""
def gen_scoreboard(team_data):
if len(team_data) == 0:
print "There are no teams!"
else:
print "<br>"
print "<div class='container'>"
print "<table class='responsive-table bordered hoverable centered'>"
... | Python | 0.000442 | @@ -554,95 +554,8 @@
turn
-%0A for key in team_data:%0A team_data%5Bkey%5D = int(team_data%5Bkey%5D)
%0A%0A
@@ -1126,15 +1126,20 @@
%5D =
+int(
info%5B1%5D
+)
%0A
|
33927bb593d600425271dcefc9438ba2d52b96be | Add QueryRadioSelectField. | spline/lib/forms.py | spline/lib/forms.py | # encoding: utf8
"""Useful extra form fields."""
from sqlalchemy.orm.exc import NoResultFound
from wtforms import fields, widgets, ValidationError
from wtforms.ext.sqlalchemy.fields import QuerySelectMultipleField
class FakeMultiDict(dict):
def getlist(self, key):
return self[key]
class DuplicateField(f... | Python | 0 | @@ -182,16 +182,34 @@
s import
+ QuerySelectField,
QuerySe
@@ -3665,32 +3665,345 @@
eckboxInput()%0A%0A%0A
+class QueryRadioSelectField(QuerySelectField):%0A %22%22%22%0A Works the same as a QuerySelectField, except using radio buttons%0A rather than a selectbox.%0A%0A Iterating over the field yields th... |
6ecce0e5072eeec56fcc472ad0c065539f1c9b13 | Unify method order in run.py | script/run.py | script/run.py | #!/usr/bin/env python3
# -*- coding: ascii -*-
# An init script for running Instant and a number of bots.
import os, re
import signal
try: # Py3K
from configparser import ConfigParser as _ConfigParser
except ImportError: # Py2K
from ConfigParser import SafeConfigParser as _ConfigParser
DEFAULT_CONFFILE = 'c... | Python | 0.000007 | @@ -2008,292 +2008,8 @@
K'%0A%0A
- def status(self):%0A pid = self.get_pid()%0A if pid is None:%0A return 'NOT_RUNNING'%0A try:%0A os.kill(pid, 0)%0A return 'RUNNING'%0A except OSError as e:%0A if e.errno == errno.ESRCH: return 'STALEFILE'%0A ... |
8f8bee0bdc89cac5f4c28fba36f3495854921110 | Comment out greek-ext subset. | scripts/subset_for_web.py | scripts/subset_for_web.py | #!/usr/bin/python
# coding=UTF-8
#
# Copyright 2014 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | Python | 0 | @@ -1816,24 +1816,25 @@
4, 0x0400),%0A
+#
'greek-e
|
b1a570590cadf31c8067357f68484d9027760247 | Update paralogs_to_ref.py | secapr/paralogs_to_ref.py | secapr/paralogs_to_ref.py | # encoding: utf-8
'''
Align paralogous contigs with reference sequence
'''
import os
import sys
import glob
import logging
import argparse
import numpy as np
import pandas as pd
from secapr.helpers import is_dir, is_file, FullPaths
import shutil
from numpy import genfromtxt
from Bio import SeqIO
from Bio.Align.Applic... | Python | 0 | @@ -3252,16 +3252,43 @@
values =
+ %5Bval.split()%5B0%5D for val in
ref_ind
@@ -3294,32 +3294,33 @@
dex_df%5B1%5D.values
+%5D
%0A id_ref_
|
ae1dacd8870c314ace48f497342c5a286f9fc492 | fix manifest code. close #143 | pipeline/manifest.py | pipeline/manifest.py | try:
from staticfiles.finders import DefaultStorageFinder
except ImportError:
from django.contrib.staticfiles.storage import DefaultStorageFinder # noqa
from django.conf import settings
from manifesto import Manifest
from pipeline.packager import Packager
class PipelineManifest(Manifest):
def __init__(... | Python | 0.001405 | @@ -115,15 +115,15 @@
les.
-storage
+finders
imp
@@ -1390,32 +1390,35 @@
for path
+, _
in self.finder.
|
d84ed991080ee2290e8bd2afcf673180eb56c70a | Simplify return | server/app.py | server/app.py | from werkzeug.utils import secure_filename
from flask import Flask, request
import cognitive_face as CF
import pymysql.cursors
from PIL import Image
import string
import random
import json
import os
import kairos_face
import constants
app = Flask(__name__)
app.config['UPLOAD_FOLDER'] = 'uploads/'
def kairos_identify... | Python | 0.999019 | @@ -2580,37 +2580,8 @@
'))%0A
- return 'Image Saved'%0A
@@ -3301,29 +3301,34 @@
ed! :('%0A
-%0A
+else:%0A
return %22
@@ -3323,34 +3323,17 @@
-return %22error%22%0A%0A return
+message =
'Da
@@ -3357,16 +3357,68 @@
a Sent!'
+%0A return %7B%22success%22: success, %22message%2... |
d5999505ee00767dca85667c04cd24bccde42eb6 | use _write to solve a problem when the order is blocked and set qty to 0.0 | sale_delivery_ux/models/sale_order.py | sale_delivery_ux/models/sale_order.py | ##############################################################################
# For copyright and license notices, see __manifest__.py file in module root
# directory
##############################################################################
from odoo import models
class SaleOrder(models.Model):
_inherit = '... | Python | 0 | @@ -837,16 +837,25 @@
sol.
+_write(%7B'
product_
@@ -865,14 +865,16 @@
_qty
- =
+':
0.0
+%7D)
%0A
|
a5b998846aa77d63843c5d3dfe05f91c655b9400 | Fix the misplaced feed_options | samples/DocumentManagement/Program.py | samples/DocumentManagement/Program.py | import pydocumentdb.documents as documents
import pydocumentdb.document_client as document_client
import pydocumentdb.errors as errors
import datetime
import config as cfg
# ----------------------------------------------------------------------------------------------------------
# Prerequistes -
#
# 1. An Azure Do... | Python | 0.998671 | @@ -3458,17 +3458,16 @@
ion_link
-)
, %7B'maxI
@@ -3480,16 +3480,17 @@
nt':10%7D)
+)
%0A
@@ -7383,8 +7383,9 @@
e.args))
+%0A
|
34359ce6a0bda6ec061782f743f73fb528446553 | Support py3 | replay_buffer.py | replay_buffer.py | from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from builtins import dict
from future import standard_library
standard_library.install_aliases()
from collections import deque
import random
import cPickle as pickle
cla... | Python | 0 | @@ -283,23 +283,34 @@
random%0A
+%0A
import
+six.moves.
cPickle
@@ -1397,16 +1397,17 @@
name, 'w
+b
') as f:
@@ -1504,16 +1504,22 @@
filename
+, 'rb'
) as f:%0A
|
106e37a12f429b1e989d70bcff83eed0d9319498 | optimize constructor | server/core_queryables.py | server/core_queryables.py | # -*- coding: ISO-8859-15 -*-
# =================================================================
#
# $Id$
#
# Authors: Tom Kralidis <tomkralidis@hotmail.com>
#
# Copyright (c) 2011 Tom Kralidis
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentat... | Python | 0.998785 | @@ -2255,34 +2255,38 @@
-if
+val2 =
k.split(':')%5B-1
@@ -2298,12 +2298,38 @@
er()
- ==
+%0A if val2.find(
'ide
@@ -2336,16 +2336,23 @@
ntifier'
+) != -1
:%0A
@@ -2527,35 +2527,17 @@
+el
if
-k.split(':')%5B-1%5D.lower()
+val2
.fin
@@ -2748,35 +2748,17 @@
+el
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.