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
11182c8ff3ef10e01ddda8a858708d0759d4f3ae
Remove useless --only option on ./manage.py migrate
south/management/commands/migrate.py
south/management/commands/migrate.py
from django.core.management.base import BaseCommand from django.core.management.color import no_style from django.conf import settings from django.db import models from optparse import make_option from south import migration import sys class Command(BaseCommand): option_list = BaseCommand.option_list + ( m...
Python
0.000002
@@ -1086,177 +1086,8 @@ '),%0A - make_option('--only', action='store_true', dest='only', default=False,%0A help='Only runs or rolls back the migration specified, and none around it.'),%0A @@ -1988,20 +1988,8 @@ lse, - only=False, bac
49cb47d9d193ffb8aaedf30baa1df938184988b0
Allow image name to be empty for simple list test
tempest/lib/api_schema/response/compute/v2_1/images.py
tempest/lib/api_schema/response/compute/v2_1/images.py
# Copyright 2014 NEC Corporation. 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 ...
Python
0.000019
@@ -2730,32 +2730,33 @@ ': %7B'type': +%5B 'string' %7D%0A @@ -2739,24 +2739,33 @@ ': %5B'string' +, 'null'%5D %7D%0A
724b4c382015aa933659a24f7be3bd2cabbcb5eb
Add flag --exclusive setting whether to run as exclusive or not
sherlock.stanford.edu.run_gpaw.py
sherlock.stanford.edu.run_gpaw.py
"""This is the submission script for GPAW on Sherlock at Stanford""" #!/usr/bin/env python from sys import argv import os job = argv[1] nodes = argv[2] time = argv[3] + ":00" if len(argv) > 4: gpaw_options = ' '.join(argv[4:]) else: gpaw_options = ' ' #options = '-l nodes=' + nodes +':ppn=2' + ' -l' +' wallti...
Python
0
@@ -1,73 +1,4 @@ -%22%22%22This is the submission script for GPAW on Sherlock at Stanford%22%22%22%0A #!/u @@ -101,16 +101,129 @@ %22:00%22%0A%0A +if '--exclusive' in argv:%0A is_exclusive = True%0A argv.remove('--exclusive')%0Aelse:%0A is_exclusive = False%0A%0A if len(a @@ -531,16 +531,93 @@ bin/bash +%...
31cec1c5ab052f237445b8969088aba755ae73cf
Clean up now-unnecessary DummyStorage().
incuna_test_utils/testcases/integration.py
incuna_test_utils/testcases/integration.py
from django.core.exceptions import ImproperlyConfigured from django.shortcuts import render from .request import BaseRequestTestCase class BaseIntegrationTestCase(BaseRequestTestCase): """ A TestCase that operates similarly to a Selenium test. Contains methods that access pages and render them to string...
Python
0
@@ -1598,55 +1598,8 @@ st() -%0A request._messages = DummyStorage() %0A%0A
ec25f9c1b0212f1f23855eab22078d1563cd7165
Use int for survey_id and question_id
indico/modules/events/surveys/blueprint.py
indico/modules/events/surveys/blueprint.py
# This file is part of Indico. # Copyright (C) 2002 - 2015 European Organization for Nuclear Research (CERN). # # Indico 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 (a...
Python
0.000003
@@ -1808,32 +1808,36 @@ manage/surveys/%3C +int: survey_id%3E/', 'm @@ -1894,32 +1894,36 @@ manage/surveys/%3C +int: survey_id%3E/edit' @@ -2005,32 +2005,36 @@ manage/surveys/%3C +int: survey_id%3E/sched @@ -2067,32 +2067,49 @@ HScheduleSurvey, +%0A methods=('GET', @@ -2145,32 +2145,36 @@ mana...
98ba2e69daa3ebf460516f5b57f5340ae71fe830
Use alert_percentage for coloring the entry red
i3pystatus/battery.py
i3pystatus/battery.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import re import configparser from i3pystatus import IntervalModule, formatp from i3pystatus.core.util import lchop, TimeWrapper from i3pystatus.core.desktop import DesktopNotification class UEventParser(configparser.ConfigParser): @staticmethod def parse_file(f...
Python
0.000001
@@ -4974,20 +4974,17 @@ us in %5B%22 -Disc +C harging%22 @@ -4986,17 +4986,20 @@ ging%22, %22 -C +Disc harging%22 @@ -5220,22 +5220,53 @@ if -remaining %3C 15 +battery.percentage() %3C= self.alert_percentage :%0A
76f19afd5cfb084327740de9346781e730d764f9
Add message method for create etc
iatiupdates/models.py
iatiupdates/models.py
# IATI Updates, IATI Registry API augmented # by Mark Brough # # Copyright (C) 2013 Publish What You Fund # # This programme is free software; you may redistribute and/or modify # it under the terms of the GNU Affero General Public License v3.0 from sqlalchemy import * from iatiupdates import db from datetime im...
Python
0
@@ -2723,24 +2723,65 @@ nicodeText)%0A + message_method = Column(UnicodeText)%0A date = C
502d2ca202101ae963f97c38e2c14049eec5848e
Add a unique identifier of the event to coalesce start <-> success/failed
idb/common/logging.py
idb/common/logging.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import functools import inspect import logging import time from concurrent.futures import CancelledError from types imp...
Python
0.000024
@@ -409,16 +409,39 @@ le, Type +%0Afrom uuid import uuid4 %0A%0Aimport @@ -1017,24 +1017,67 @@ (self_meta)%0A + _metadata%5B%22event_uuid%22%5D = str(uuid4())%0A start =
6863aaf12dddec37e01fc38f025db6f60dd274a0
Remove decorator for fixed test
test/functionalities/abbreviation/TestAbbreviations.py
test/functionalities/abbreviation/TestAbbreviations.py
""" Test some lldb command abbreviations. """ import os, time import unittest2 import lldb from lldbtest import * import lldbutil class AbbreviationsTestCase(TestBase): mydir = TestBase.compute_mydir(__file__) @expectedFailureFreeBSD('llvm.org/pr18805') @expectedFailureLinux('llvm.org/pr18816') def ...
Python
0
@@ -215,56 +215,8 @@ _)%0A%0A - @expectedFailureFreeBSD('llvm.org/pr18805')%0A
b5a526cfcd01e5b7b9bd0605abe7533a5b5902e7
Drop Py2 and six on tests/integration/netapi/rest_cherrypy/test_app_pam.py
tests/integration/netapi/rest_cherrypy/test_app_pam.py
tests/integration/netapi/rest_cherrypy/test_app_pam.py
""" Integration Tests for restcherry salt-api with pam eauth """ import salt.utils.platform import tests.support.cherrypy_testclasses as cptc from salt.ext.six.moves.urllib.parse import ( # pylint: disable=no-name-in-module,import-error urlencode, ) from tests.support.case import ModuleCase from tests.support.hel...
Python
0
@@ -57,16 +57,36 @@ auth%0A%22%22%22 +%0Aimport urllib.parse %0A%0Aimport @@ -160,121 +160,8 @@ ptc%0A -from salt.ext.six.moves.urllib.parse import ( # pylint: disable=no-name-in-module,import-error%0A urlencode,%0A)%0A from @@ -1965,32 +1965,45 @@ %0A body = +urllib.parse. urlencode(copyau @@ -2680,3...
c019c337c8642006a7a851c40bbedbb2c32fc5b5
Add nuclear option to delete all available caches
wger/core/management/commands/clear-cache.py
wger/core/management/commands/clear-cache.py
# -*- coding: utf-8 *-* # This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any ...
Python
0
@@ -801,16 +801,52 @@ andError +%0Afrom django.core.cache import cache %0A%0Afrom w @@ -1666,16 +1666,220 @@ view'), +%0A%0A make_option('--clear-all',%0A action='store_true',%0A dest='clear_all',%0A default=False,%0A help='Clear ALL...
4b08904ff8dcdd22ca36d862a14b1afb8f7d0f9d
Update igrf12fun.py
igrf12py/igrf12fun.py
igrf12py/igrf12fun.py
#!/usr/bin/env python3 """ NOTE: The performance of this demo has not been checked at all. Please do basic sanity checks of output. Quick demo of calling IGRF12 and IGRF11 using f2py3 from Python Michael Hirsch """ from __future__ import division,absolute_import from numpy import empty, empty_like, atleast_1d,nditer ...
Python
0.000001
@@ -213,56 +213,8 @@ %22%22%22%0A -from __future__ import division,absolute_import%0A from
5952c372ae01672bfce450aec924628faecd3654
bump version for release
crossbar/crossbar/__init__.py
crossbar/crossbar/__init__.py
############################################################################### ## ## Copyright (C) 2011-2015 Tavendo GmbH ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU Affero General Public License, version 3, ## as published by the Free Software Founda...
Python
0
@@ -1638,11 +1638,11 @@ = %220.10. -0 +1 %22%0A
0b4fb3dd59ce0940026b1cf212adcf6d17bca7a0
Refactor build_update_query (2)
mongots/query.py
mongots/query.py
from datetime import datetime AGGREGATION_KEYS = [ '', 'months.{month}.', 'months.{month}.days.{day}.', 'months.{month}.days.{day}.hours.{hour}.', ] DATETIME_KEY = 'datetime' def build_filter_query(timestamp, tags=None): filters = tags or {} filters[DATETIME_KEY] = datetime(timestamp.year, 1...
Python
0
@@ -382,16 +382,84 @@ stamp):%0A + inc_values = %7B%0A 'count': 1,%0A 'sum': value,%0A %7D%0A%0A date @@ -876,17 +876,19 @@ e): +inc_ value - if +s%5B aggr @@ -901,24 +901,9 @@ type - is %22sum%22 else 1 +%5D %0A @@ -965,24 +965,18 @@ in -%5B'count', 'sum'%5D +inc_values %0A
51432aa92e233ba3c9db500e4e3d55b7067e906c
Add latest version of py-jinja2 (#13311)
var/spack/repos/builtin/packages/py-jinja2/package.py
var/spack/repos/builtin/packages/py-jinja2/package.py
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyJinja2(PythonPackage): """Jinja2 is a template engine written in pure Python. It provide...
Python
0
@@ -455,26 +455,39 @@ http +s :// -jinja.pocoo.org +palletsprojects.com/p/jinja /%22%0A @@ -551,19 +551,20 @@ inja2-2. -9.6 +10.3 .tar.gz%22 @@ -615,18 +615,117 @@ on('2.10 +.3 ', + sha256='9fe95f19286cfefaa917656583d020be14e7859c6b0252588391e47db34527de')%0A version('2.10', sha256= @@ -812,16 +812,17 @@...
77f155fec48c808724eff1b2631035d2526c170f
add version 2.11.3 (#23698)
var/spack/repos/builtin/packages/py-jinja2/package.py
var/spack/repos/builtin/packages/py-jinja2/package.py
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyJinja2(PythonPackage): """Jinja2 is a template engine written in pure Python. It provide...
Python
0.000009
@@ -527,16 +527,113 @@ ar.gz%22%0A%0A + version('2.11.3', sha256='a6d58433de0ae800347cab1fa3043cebbabe8baa9d29e668f1c768cb87a333c6')%0A vers @@ -1498,16 +1498,77 @@ fa4d')%0A%0A + depends_on('python@2.7:2.8,3.5:', type=('build', 'run'))%0A depe
e705c2aceae7020781ac18e3352dad7b4e3d5b1e
Send currently edited object to template in edit_view
mooch/generic.py
mooch/generic.py
from django.contrib import messages from django.core.exceptions import PermissionDenied, ValidationError from django.forms.formsets import all_valid from django.forms.models import modelform_factory from django.http import Http404, HttpResponseRedirect from django.shortcuts import get_object_or_404, redirect, render_to...
Python
0
@@ -6627,32 +6627,76 @@ 'form': form,%0A + self.template_object_name: obj,%0A %7D%0A%0A
5b6445e519fa9c03d703144462004ac27b9079ba
Add latest version of joblib (#11495)
var/spack/repos/builtin/packages/py-joblib/package.py
var/spack/repos/builtin/packages/py-joblib/package.py
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyJoblib(PythonPackage): """Python function as pipeline jobs""" homepage = "http://pa...
Python
0
@@ -407,19 +407,19 @@ blib-0.1 -0.3 +3.2 .tar.gz%22 @@ -420,16 +420,278 @@ ar.gz%22%0A%0A + import_modules = %5B%0A 'joblib', 'joblib.externals', 'joblib.externals.cloudpickle',%0A 'joblib.externals.loky', 'joblib.externals.loky.backend'%0A %5D%0A%0A version('0.13.2', sha256='315d6b19643ec4afd...
028391c0a3778d20d162882b6778a164984ceb2a
update dependencies and fix build (#9207)
var/spack/repos/builtin/packages/py-spyder/package.py
var/spack/repos/builtin/packages/py-spyder/package.py
############################################################################## # Copyright (c) 2013-2018, 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
@@ -1604,40 +1604,55 @@ ('py --setuptools', +thon@2.7.0:2.8.0,3.3.0:', type= +( 'build' +, 'run') )%0A @@ -2222,40 +2222,465 @@ -depends_on('py-pycodestyle', +# The pycodestyle dependency is split in two, because internally it%0A # changes its name from pep8 to pycodestyle, and spyder does not...
350a5422ed1f874e7b2780348663f320a1af6676
Update py-theano dependencies (#14015)
var/spack/repos/builtin/packages/py-theano/package.py
var/spack/repos/builtin/packages/py-theano/package.py
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyTheano(PythonPackage): """Optimizing compiler for evaluating mathematical expressions on...
Python
0
@@ -1179,17 +1179,18 @@ 'py- -scipy@0.1 +numpy@1.9. 1:', @@ -1236,19 +1236,18 @@ 'py- -numpy@1.7 +scipy@0 .1 +4 :', @@ -1598,13 +1598,8 @@ 'py- -nose- para @@ -1611,15 +1611,49 @@ ized -@0.5.0: +', type='test')%0A depends_on('py-flake8 ', t
38199ce9cfb69b21e45e679d3a6604a72da7cc5b
add version 0.5.0 to r-forcats (#20972)
var/spack/repos/builtin/packages/r-forcats/package.py
var/spack/repos/builtin/packages/r-forcats/package.py
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RForcats(RPackage): """Helpers for reordering factor levels (including moving specified le...
Python
0
@@ -246,16 +246,76 @@ %0A %22%22%22 +Tools for Working with Categorical Variables (Factors)%0A%0A Helpers @@ -381,18 +381,15 @@ vels + to %0A - to fro @@ -445,23 +445,16 @@ randomly -%0A shuffli @@ -457,16 +457,20 @@ ffling), +%0A and too @@ -525,15 +525,8 @@ sing -%0A rar @@...
c0297fd4837a83c177a89656c5ef591d7b5430d2
add download remote file function
mp3Downloader.py
mp3Downloader.py
import urllib2 import subprocess import os import tempfile import shutil """ http://feeds.gimletmedia.com/~r/hearstartup/~5/sqn8_rZ3xTM/GLT6849433183.mp3 """ TEMP_DIR = './tmp' OUTPUT_DIR = './output' def cleanup(): shutil.rmtree(TEMP_DIR) def create_ancillary_folders(): if not os.path.exists(OUTPUT_DIR):...
Python
0.000001
@@ -1180,191 +1180,1226 @@ oad_ -mp3_from_url(url):%0A %22%22%22%0A Once we have received the mp3 url from the user, we download and write it%0A in a file, in binary. This function writes always in the same file%0A %22%22%22 +remote_file(url, dest):%0A %22%22%22%0A Downloads a remote file to the spec...
538ffaf6c71944aa4f0d77f1167c2cef570dabe1
Store self.action='metadata' for OPTIONS requests on viewsets. Closes #3115.
rest_framework/viewsets.py
rest_framework/viewsets.py
""" ViewSets are essentially just a type of class based view, that doesn't provide any method handlers, such as `get()`, `post()`, etc... but instead has actions, such as `list()`, `retrieve()`, `create()`, etc... Actions are only bound to methods at the point of instantiating the views. user_list = UserViewSet.a...
Python
0
@@ -3259,16 +3259,340 @@ lf.get%0A%0A + # Explicitly map %60options%60 requests to an (implicit) action named%0A # 'metadata'. This action doesn't actually exist as a named method,%0A # because, unlike other methods, we always route to it.%0A if hasattr(self, 'options'):%0A ...
de9f83d5c573112fabfd923d845e2092c64d0fc7
fix whitespace
legislature/templatetags/pagination.py
legislature/templatetags/pagination.py
# Copyright (C) 2012 Michael Mulley (michaelmulley.com) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # T...
Python
0.999999
@@ -308,17 +308,16 @@ rsion.%0A# - %0A# This @@ -559,17 +559,16 @@ tails.%0A# - %0A# You s @@ -2554,17 +2554,16 @@ else: - %0A
f18db26bdf82d9c921a765408d00203edf0db0c8
fix another empty-code bug
ELiDE/codeinput.py
ELiDE/codeinput.py
import re from functools import partial from string import ascii_letters, digits from kivy.clock import Clock from kivy.properties import ( AliasProperty, ListProperty, NumericProperty, ObjectProperty, StringProperty ) from kivy.lang import Builder from kivy.uix.textinput import TextInput from kivy....
Python
0.000059
@@ -1892,32 +1892,111 @@ del lines%5B0%5D%0A + if lines == %5B%5D:%0A self.ids.code.text = ''%0A return%0A # hack t
a529eb18e9d114672350853a48a16d6036ca0c76
split the former RulesView into three parts
ELiDE/rulesview.py
ELiDE/rulesview.py
# This file is part of LiSE, a framework for life simulation games. # Copyright (C) 2013-2014 Zachary Spector, ZacharySpector@gmail.com """Widget to enable browsing rules and the functions that make them.""" from functools import partial from kivy.clock import Clock from kivy.logger import Logger from kivy.adapters imp...
Python
0
@@ -231,16 +231,46 @@ partial%0A +from kivy.lang import Builder%0A from kiv @@ -290,16 +290,16 @@ t Clock%0A - from kiv @@ -359,16 +359,57 @@ Adapter%0A +from kivy.uix.boxlayout import BoxLayout%0A from kiv @@ -559,12 +559,12 @@ ass -Rule +Func sVie @@ -578,39 +578,8 @@ t):%0A - subject = ObjectProperty()%...
2848c38519ee806acfe7c591cddb827dcb33c67f
check for r2 files for star
ehive/runnable/process/alignment/RunSTAR.py
ehive/runnable/process/alignment/RunSTAR.py
import os,json from ehive.runnable.IGFBaseProcess import IGFBaseProcess from igf_data.utils.tools.star_utils import Star_utils from igf_data.utils.fileutils import get_datestamp_label from igf_data.utils.tools.reference_genome_utils import Reference_genome_utils class RunSTAR(IGFBaseProcess): def param_defaults(self...
Python
0
@@ -3938,32 +3938,69 @@ file is not None + and %5C%0A len(r2_read_file)%3E0 :%0A inpu
c4d809a3b8ccb24d684c489925dd6c9634dbdf55
Remove use of DesiredCapabilities object, use Options object instead (#981)
splinter/driver/webdriver/firefox.py
splinter/driver/webdriver/firefox.py
# -*- coding: utf-8 -*- # Copyright 2012 splinter authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. from selenium.webdriver import DesiredCapabilities, Firefox from selenium.webdriver.firefox.firefox_profile import FirefoxProfile from s...
Python
0
@@ -211,29 +211,8 @@ port - DesiredCapabilities, Fir @@ -216,16 +216,16 @@ Firefox%0A + from sel @@ -1087,120 +1087,8 @@ e)%0A%0A - firefox_capabilities = DesiredCapabilities().FIREFOX%0A firefox_capabilities%5B%22marionette%22%5D = True%0A%0A @@ -1204,117 +1204,8 @@ ():%0A - #...
546b55248457055c4803d7ea65c21b92276309bd
Reformat and update copyright.
spotseeker_server/views/add_image.py
spotseeker_server/views/add_image.py
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 """ Copyright 2012, 2013 UW Information Technology, University of Washington Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtai...
Python
0
@@ -88,643 +88,8 @@ %0A%22%22%22 - Copyright 2012, 2013 UW Information Technology, University of Washington%0A%0A Licensed under the Apache License, Version 2.0 (the %22License%22);%0A you may not use this file except in compliance with the License.%0A You may obtain a copy of the License at%0A%0A http://w...
913163a1acddc1d846eb269c04ae3dc60ecbc2bd
Update LongitudinalController.py
workspace/src/labs/src/lab5/LongitudinalController.py
workspace/src/labs/src/lab5/LongitudinalController.py
#!/usr/bin/env python import rospy import time from barc.msg import ECU, Encoder from numpy import pi # from encoder v_meas = 0.0 t0 = time.time() ang_km1 = 0.0 ang_km2 = 0.0 n_FL = 0.0 n_FR = 0.0 n_BL = 0.0 n_BR = 0.0 r_tire = 0.05 # radius of the tire servo_pwm...
Python
0
@@ -160,116 +160,8 @@ e()%0A -ang_km1 = 0.0%0Aang_km2 = 0.0%0An_FL = 0.0%0An_FR = 0.0%0An_BL = 0.0%0An_BR = 0.0%0A r_ti @@ -264,16 +264,17 @@ 1500.0%0A +%0A # refere @@ -284,16 +284,16 @@ speed %0A - v_ref = @@ -297,16 +297,21 @@ = 0.5 # + give referen @@ -2198,15 +2198,...
b6363044cac862dd5bef54bc210c4beceaa90bdd
refactor fixtures and add 2 more tests for old collections
test/test_collection.py
test/test_collection.py
import pytest import json from girder.models.collection import Collection from pytest_girder.assertions import assertStatusOk @pytest.fixture def collections(db): yield [ Collection().createCollection('private collection', public=False), Collection().createCollection('public collection', public=T...
Python
0
@@ -437,17 +437,16 @@ =True)%0A%0A -%0A @pytest. @@ -449,33 +449,36 @@ est.fixture%0Adef -c +oldC ollectionWithMet @@ -470,24 +470,16 @@ llection -WithMeta (db, col @@ -489,143 +489,301 @@ tion -, metadata):%0A def _collectionWithMeta(_metadata=None):%0A if _metadata is None:%0A _metadata =...
9ac7be20f3b25ca768f7260900928b2c7224f470
Improve correlator test
test/test_correlator.py
test/test_correlator.py
# http://www.apache.org/licenses/LICENSE-2.0 import unittest import time import numpy as np import auspex.config as config config.auspex_dummy_mode = True from auspex.experiment import Experiment from auspex.stream import DataStream, DataAxis, DataStreamDescriptor, OutputConnector from auspex.filters.debug impor...
Python
0.000001
@@ -2363,16 +2363,39 @@ weeps()%0A + time.sleep(0.1) %0A @@ -2554,9 +2554,9 @@ 1e- -4 +1 )%0A%0A%0A
5c064695d257c1dab055d36a5d1ab0a6d72fd854
add a test for using a Ducksboard service with no password
test/test_ducksboard.py
test/test_ducksboard.py
import json import unittest from libsaas.executors import test_executor from libsaas.services import ducksboard class DucksboardTestCase(unittest.TestCase): def setUp(self): self.executor = test_executor.use() self.executor.set_response(b'{}', 200, {}) self.service = ducksboard.Ducksboa...
Python
0
@@ -911,16 +911,242 @@ arams)%0A%0A + def test_default_password(self):%0A s = ducksboard.Ducksboard('apikey')%0A s.user().get()%0A%0A self.assertEqual(self.executor.request.headers%5B'Authorization'%5D,%0A 'Basic YXBpa2V5Og==')%0A%0A def
0a40882c5b609522f12556d474954623483f6461
Add await_data in test_tail_gen
test/test_motor_tail.py
test/test_motor_tail.py
# Copyright 2012 10gen, 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, soft...
Python
0.00005
@@ -6707,24 +6707,41 @@ ailable=True +, await_data=True )%0A%0A
99241ab49a0a76472bb6f107a078248782af9626
fix string_types in _compat
myhdl/_compat.py
myhdl/_compat.py
import sys PY2 = sys.version_info[0] == 2 if not PY2: string_types = (str, unicode) integer_types = (int,) long = int import builtins else: string_types = (str,) integer_types = (int, long) long = long import __builtin__ as builtins
Python
0.999999
@@ -78,16 +78,8 @@ str, - unicode )%0A @@ -160,32 +160,40 @@ ng_types = (str, + unicode )%0A integer_ty
52429b9300f30ae28b81604bbc0933b456c654f2
use PORT instead of VCAP_APP_PORT
extensions/varnish/extension.py
extensions/varnish/extension.py
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
Python
0.000001
@@ -2227,17 +2227,8 @@ .0:$ -VCAP_APP_ PORT
97fa2f41bb00d2ceb0726b9cffdaa7c4ea97bc45
Remove trailing whitespace from test/test_xml_parser.py
test/test_xml_parser.py
test/test_xml_parser.py
import unittest from apel.db.loader.xml_parser import XMLParser, get_primary_ns class XMLParserTest(unittest.TestCase): ''' Test case for XMLParser ''' data1 = '''<?xml version="1.0"?> <ns:node xmlns:ns="http://fake.namespace.org" xmlns:ons="http://fake.othernamespace.org"> <ns:title>Some tit...
Python
0.999959
@@ -160,20 +160,16 @@ '''%0A - %0A dat @@ -418,19 +418,16 @@ values%3E%0A - %0A %3Cns: @@ -975,20 +975,16 @@ ce.org'%0A - %0A def @@ -1247,20 +1247,16 @@ Nodes))%0A - %0A def
37d20fe09aa19dde2ac50816958d9b1372bc76eb
indent (tabs!)
integration-test/1251-early-track-roads.py
integration-test/1251-early-track-roads.py
from . import FixtureTest class EarlyUnclassifiedRoads(FixtureTest): def test_early_track_road_z11_grade1_paved(self): # asphalt, grade1, track (default zoom 11, no demotion) self.load_fixtures([ 'https://www.openstreetmap.org/way/329375413', ]) self.assert_has_featu...
Python
0
@@ -792,26 +792,24 @@ %0A %0A - self.assert_ @@ -825,28 +825,24 @@ re(%0A - 12, 661, 156 @@ -853,36 +853,32 @@ roads',%0A - - %7B'kind': 'path', @@ -870,36 +870,32 @@ 'kind': 'path',%0A - 'kind_d
2e761252093b41d33cf57599ba8f05ec01e90a6a
delete noneffective codes
fate_flow/flowpy/client/base.py
fate_flow/flowpy/client/base.py
# # Copyright 2019 The FATE 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 appli...
Python
0.000003
@@ -1039,65 +1039,8 @@ ts:%0A - print('name: %7B%7D, api: %7B%7D'.format(name, api))%0A
7acc609cc75c315b32bbca5b0f4e39df942bbec1
Mention the real name in the email
fedorasummerofhardware/views.py
fedorasummerofhardware/views.py
import logging from pyramid.url import route_url from pyramid.security import remember, authenticated_userid, forget from pyramid.exceptions import Forbidden from pyramid.httpexceptions import HTTPFound, HTTPMovedPermanently from pyramid.view import view_config from pyramid_mailer import get_mailer from pyramid_mailer...
Python
0.999999
@@ -5641,16 +5641,38 @@ = %22%22%22%5C%0A + Real Name: %25s%0A @@ -5782,16 +5782,30 @@ %22%22%22 %25 ( +app.realname, app.user @@ -5835,16 +5835,27 @@ .shield, +%0A app.dat
a9cfd2bc842631431e20b6c13d3d98535b643b3b
Fix mispelling
ixdjango/management/commands/copystatic.py
ixdjango/management/commands/copystatic.py
""" Copy static files to nginx location .. moduleauthor:: Infoxchange Development Team <development@infoxchange.net.au> """ import logging import os from shutil import copy2, copystat from django.conf import settings from django.core.management.base import NoArgsCommand LOGGER = logging.getLogger(__name__) def co...
Python
0.999687
@@ -463,12 +463,12 @@ GER. -INFO +info (%22Cr @@ -711,37 +711,37 @@ LOGGER. -DEBUG +debug (%22Copying direct @@ -831,13 +831,13 @@ GER. -DEBUG +debug (%22Co
b6df83242128c3c383696eae2057bd3725c3139e
Support arbitrary primary key fields
flask_mongoengine/wtf/fields.py
flask_mongoengine/wtf/fields.py
""" Useful form fields for use with the mongoengine. """ from gettext import gettext as _ import json import sys from wtforms import widgets from wtforms.fields import SelectFieldBase, TextAreaField, StringField from wtforms.validators import ValidationError from mongoengine.queryset import DoesNotExist from mongoeng...
Python
0
@@ -2585,18 +2585,18 @@ e().get( -id +pk =valueli
f8cf08e41ccb024683c8bdf075f129b64dc38190
Add support for executing the code without X
bitcoin_tools/analysis/plots.py
bitcoin_tools/analysis/plots.py
import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np from bitcoin_tools import CFG label_size = 11 mpl.rcParams['xtick.labelsize'] = label_size mpl.rcParams['ytick.labelsize'] = label_size mpl.rcParams['legend.numpoints'] = 1 def get_counts(samples, normalize=False): """ Counts the num...
Python
0.000004
@@ -1,24 +1,34 @@ +import os%0A import matplotlib as mpl @@ -28,16 +28,74 @@ as mpl%0A +if not %22DISPLAY%22 in os.environ.keys():%0A mpl.use('Agg')%0A import m
7888b2b14a26deead0b4f1559b755fcf17cbb6f8
correct style link
cte-collation-poc/fullbook.py
cte-collation-poc/fullbook.py
#!/usr/bin/env python from __future__ import print_function import sys import argparse import requests from lxml import etree ARCHIVEJS = 'http://archive.cnx.org/contents/{}.json' ARCHIVEHTML = 'http://archive.cnx.org/contents/{}.html' NS = {'x': 'http://www.w3.org/1999/xhtml'} HTMLWRAPPER = """<html xmlns="http://w...
Python
0.000001
@@ -367,21 +367,20 @@ title%3E%0A%3C -style +link href=%22s @@ -399,16 +399,17 @@ el=%22styl +e sheet%22 t
df85906e8e2a872ca99002b26af6ea5d495b23ca
fix wrong document string
data_migrator/emitters/__init__.py
data_migrator/emitters/__init__.py
#!/usr/bin/python # -*- coding: UTF-8 -*- from .mysql import MySQLEmitter from .csv import CSVEmitter """ This module contains all classes for models, managers and fields * :class:`BaseEmitter` * :class:`MySQLEmitter` * ... """
Python
0.999949
@@ -39,70 +39,8 @@ -*-%0A -%0Afrom .mysql import MySQLEmitter%0Afrom .csv import CSVEmitter%0A%0A %22%22%22%0A @@ -158,12 +158,73 @@ %60%0A* ...%0A%22%22%22%0A +%0Afrom .mysql import MySQLEmitter%0Afrom .csv import CSVEmitter%0A
0a05e6479ee907c3702cc895c5a180cd816a5433
Build interdependencies.
d1_common_python/src/setup.py
d1_common_python/src/setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ :mod:`setup` ==================== :Synopsis: Create egg. :Author: DataONE (Dahl) """ from setuptools import setup, find_packages setup( name='Python DataONE Common', #version=d1_client.__version__, description='Contains functionality common to projects that int...
Python
0.00002
@@ -173,16 +173,33 @@ packages +%0Aimport d1_common %0A%0Asetup( @@ -211,23 +211,16 @@ me=' -Python DataONE - +_ Comm @@ -226,17 +226,16 @@ mon',%0A -# version= @@ -242,13 +242,13 @@ d1_c -lient +ommon .__v @@ -257,16 +257,113 @@ sion__,%0A + author='DataONE Project',%0A author_email='developers@dataone...
9664f6e6bf64e10fe0ce6fbfc3bbf20d4775cdb6
Update MotorsControlFile.py
ProBot_BeagleBone/MotorsControlFile.py
ProBot_BeagleBone/MotorsControlFile.py
#!/usr/bin/python import SabertoothFile import PWMFile import ProBotConstantsFile # Initialization of classes from local files Sabertooth = SabertoothFile.SabertoothClass() PWM = PWMFile.PWMClass() Pconst = ProBotConstantsFile.Constants() class MotorsControlClass(): def MotorsControl(self,rightMotor, leftM...
Python
0
@@ -13,16 +13,50 @@ ython%0A %0A +# Python Standart Library Imports%0A import S @@ -592,16 +592,93 @@ e=='2':%0A +%09%09# Sending the values to the pwm controller that is connected to the motors%0A %09%09PWM.PW
76a39d6ab95f3b036b93a4a4680f7a5e37e981ec
Fix ElasticNet distance unit test
foolbox/tests/test_distances.py
foolbox/tests/test_distances.py
import pytest import numpy as np from foolbox import distances from pytest import approx def test_abstract_distance(): with pytest.raises(TypeError): distances.Distance() def test_base_distance(): class TestDistance(distances.Distance): def _calculate(self): return 22, 2 d...
Python
0.000001
@@ -2148,67 +2148,55 @@ -with pytest.raises(NotImplementedError):%0A d.gradient +assert (d.gradient == np.array(%5B2.4, 0%5D)).all() %0A%0A%0A@ @@ -2364,17 +2364,17 @@ nces.EN( -1 +0 ),%0A%5D)%0Ade
19b0391aad11748cfca4b22616159a7b2893ff9b
Change api to return money objects
bluebottle/utils/serializers.py
bluebottle/utils/serializers.py
from HTMLParser import HTMLParser import re from moneyed import Money from rest_framework import serializers from .validators import validate_postal_code from .models import Address, Language class MoneySerializer(serializers.DecimalField): def __init__(self, max_digits=12, decimal_places=2, **kwargs): ...
Python
0.000001
@@ -526,23 +526,105 @@ urn -instance.amount +%7B%0A 'amount': instance.amount,%0A 'currency': str(instance.currency)%0A %7D %0A%0A
8fe5beda751145b00ac2484e884ae40659649563
Set actual connection sockets non-blocking
networkserver.py
networkserver.py
# Eloipool - Python Bitcoin pool server # Copyright (C) 2011-2012 Luke Dashjr <luke-jr+eloipool@utopios.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # L...
Python
0
@@ -3417,16 +3417,42 @@ ccept()%0A +%09%09conn.setblocking(False)%0A %09%09h = se
d78aa6e9a659c4ef5aa19024245eb0b3e56f2761
remove bytecode message
box/mixins.py
box/mixins.py
import re import sublime import os from .utils import execute_command, read_registry class RscriptMixin: message_shown = False def custom_env(self): paths = self.additional_paths() env = os.environ.copy() if paths: sep = ";" if sublime.platform() == "windows" else ":" ...
Python
0.030551
@@ -1762,32 +1762,92 @@ t, out).strip()%0A + out = re.sub(r%22%3Cbytecode: %5B%5E%3E%5D+%3E%22, %22%22, out).strip()%0A out = re
e39bca3bf4da5a6593c8cfd614e92c6ce3a4080b
fix for test of to_angstrom
sunpy/tests/net/test_vso.py
sunpy/tests/net/test_vso.py
# -*- coding: utf-8 -*- # Author: Florian Mayer <florian.mayer@bitsrc.org> #pylint: disable=W0613 from __future__ import absolute_import import pytest from sunpy.net import vso from sunpy.net.vso import attrs as va from sunpy.net import attr from sunpy.util.unit_conversion import energy, frequency def pytest_func...
Python
0
@@ -244,66 +244,8 @@ tr%0A%0A -from sunpy.util.unit_conversion import energy, frequency%0A%0A def @@ -2599,24 +2599,207 @@ angstrom():%0A + frequency = %5B%0A ('Hz', 1),%0A ('kHz', 1e3),%0A ('MHz', 1e6),%0A ('GHz', 1e9)%5D%0A%0A energy = %5B%0A ('eV', 1),%0A ('keV', 1...
d0d80c459bcac9b86fff146726e9e0e9ec788652
fix some broken doctests
sympy/assumptions/assume.py
sympy/assumptions/assume.py
# doctests are disabled because of issue #1521 from sympy.core import Basic, Symbol from sympy.core.relational import Relational class AssumptionsContext(set): """Set representing assumptions. This is used to represent global assumptions, but you can also use this class to create your own local assumption...
Python
0.000041
@@ -500,38 +500,51 @@ mptions%0A -set(%5B%5D +AssumptionsContext( )%0A %3E%3E%3E x @@ -650,18 +650,33 @@ -se +AssumptionsContex t(%5BAssum @@ -796,14 +796,27 @@ -set(%5B%5D +AssumptionsContext( )%0A
c1a71ff5f5a777bb9ea28b6109334067f186eb5a
add Q.infinity(Add(args)) <==> any(map(Q.infinity, args))
sympy/assumptions/newask.py
sympy/assumptions/newask.py
from __future__ import print_function, division from sympy.core import Basic, Mul, Add, Pow from sympy.assumptions.assume import global_assumptions, AppliedPredicate from sympy.logic.inference import satisfiable from sympy.logic.boolalg import And, Implies, Equivalent, Or from sympy.assumptions.ask import Q from symp...
Python
0.000029
@@ -1233,16 +1233,56 @@ o, Mul), +%0A (Q.infinity, Add) ))%0A%0Adef
50b19958b531cd94b537f3d911ce9b0c0b7f1ea2
add ordereddictionary to store information about file .rooms loaded
trunk/editor/structdata/project.py
trunk/editor/structdata/project.py
#!/usr/bin/env python try: from collections import OrderedDict except ImportError: from misc.dict import OrderedDict from subject import Subject class Project(Subject): def __init__(self): super(Project, self).__init__() self.informations = None self.images = {} self.items...
Python
0
@@ -254,20 +254,55 @@ elf. -informations +data = OrderedDict()%0A self.data%5B'world'%5D = N @@ -322,14 +322,22 @@ elf. +data%5B' images +'%5D = %7B @@ -355,13 +355,21 @@ elf. +data%5B' items +'%5D = O @@ -398,12 +398,20 @@ elf. +data%5B' vars +'%5D = %7B @@ -429,14 +429,22 @@ elf. +data%5B' eve...
01e9fa344259faa6eeb7f0480975547d375e132f
add function to change and image. The function remove the image from the dictionary and add an image with the new key and new path to file
trunk/editor/structdata/project.py
trunk/editor/structdata/project.py
#!/usr/bin/env python from misc.odict import OrderedDict from subject import Subject class Project(Subject): def __init__(self): super(Project, self).__init__() self.data = OrderedDict() self.data['world'] = None self.data['images'] = {} self.data['items'] = OrderedDict()...
Python
0.000002
@@ -429,24 +429,226 @@ eredDict()%0A%0A +%0A def changeImage(self, old_image, new_image):%0A image = self.data%5B'images'%5D.pop(old_image)%0A image.file = new_image%0A self.data%5B'images'%5D%5Bnew_image%5D = image%0A self.notify()%0A%0A def chan
a5aa4672ea04dd67cbbf70e058e8a6bf3e7f2de6
remove support for providers as it complicates things too much
systest_manager/commands.py
systest_manager/commands.py
import sys import os import shutil import argh import sh import yaml import requests from argh.decorators import arg import cloudify_cli from cloudify_rest_client import CloudifyClient from cloudify_cli.utils import load_cloudify_working_dir_settings from cosmo_tester.framework import util from settings import Setti...
Python
0
@@ -1280,110 +1280,8 @@ on%5D%0A - is_manager_bootstrap = not handler_configuration.get(%0A 'bootstrap_using_providers', False)%0A @@ -1359,41 +1359,8 @@ '%5D)%0A - if is_manager_bootstrap:%0A @@ -1417,28 +1417,24 @@ er(%0A - handler_conf @@ -1469,65 +1469,8 @@ '%5D)%0A - ...
3fcdaf6dcfd5b8752c6785972025d6cc051d4d6b
Add utf-8 encoding flag to models file
teknologr/members/models.py
teknologr/members/models.py
from django.db import models from django_countries.fields import CountryField class SuperClass(models.Model): # This class is the base of everything created = models.DateTimeField(auto_now_add=True) modified = models.DateTimeField(auto_now=True) class Meta: abstract = True class Member(Supe...
Python
0
@@ -1,16 +1,41 @@ +# -*- coding: utf-8 -*-%0A%0A from django.db i
b04693387be08c1ead880d0e7472026ed76dad80
Fix django.conf.urls.defaults imports
openstack_auth/urls.py
openstack_auth/urls.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 # distributed under the...
Python
0.003868
@@ -564,17 +564,8 @@ urls -.defaults imp
78705f598e7e3325e871bd17ff353a31c71bc399
Extend all admin form to Container Admin Form (json field)
opps/articles/forms.py
opps/articles/forms.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from django import forms from .models import Post, Album, Link from opps.core.widgets import OppsEditor from opps.db.models.fields.jsonf import JSONFormField from opps.fields.widgets import JSONField from opps.fields.models import Field, FieldOption class PostAdminForm...
Python
0
@@ -43,73 +43,8 @@ -*-%0A -from django import forms%0A%0Afrom .models import Post, Album, Link%0A%0A from @@ -80,17 +80,16 @@ sEditor%0A -%0A from opp @@ -94,763 +94,176 @@ pps. -db.models.fields.jsonf import JSONFormField%0Afrom opps.fields.widgets import JSONField%0Afrom opps.fields.models import Field, FieldOpt...
67a7a3f5bc05265690a831dea7c4310af66870a8
add channel obj on set_context_data * long_slug * level
opps/articles/utils.py
opps/articles/utils.py
# -*- coding: utf-8 -*- from django.utils import timezone from opps.articles.models import ArticleBox, Article def set_context_data(self, SUPER, **kwargs): context = super(SUPER, self).get_context_data(**kwargs) article = Article.objects.filter( site=self.site, channel_long_slug__in=self.cha...
Python
0.000001
@@ -566,37 +566,152 @@ nnel -_long_slug'%5D = self.long_slug +'%5D = %7B%7D%0A context%5B'channel'%5D%5B'long_slug'%5D = self.long_slug%0A if self.channel:%0A context%5B'channel'%5D%5B'level'%5D = self.channel.get_level() %0A%0A
5ad21e185cf1984eb0a068387fdd1d73a4a56d15
Create get context data, set template var opps_channel and opps_channel_conf issue #47
opps/articles/views.py
opps/articles/views.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.contrib.sites.models import get_current_site from django.core.paginator import Paginator, InvalidPage from django.views.generic.detail import DetailView from django.views.generic.list import ListView from django.shortcuts import get_object_or_404 from django.ut...
Python
0
@@ -364,16 +364,49 @@ Http404 +%0Afrom django.conf import settings %0A%0Afrom h @@ -509,71 +509,482 @@ el%0A%0A -%0Aclass OppsList(ListView):%0A%0A context_object_name = %22context%22 +def set_context_data(self, SUPER, **kwargs):%0A context = super(SUPER, self).get_context_data(**kwargs)%0A article = self....
bee1a6d52d1cefd08523353d53a4f5ab8838b7bb
add filter sim
run_scripts/get_q2q_sim.py
run_scripts/get_q2q_sim.py
#encoding=utf-8 """ get q2q similariy from service curl -X POST -d '{"query":"你知罪吗", "question":"你知道错了吗"}' http://10.191.15.89:40919/cgi-bin/ranker/q2qsimilarity warp this comand for whole file """ import os import sys if sys.version_info[0] == 2: reload(sys) sys.setdefaultencoding("utf-8") import time import jso...
Python
0
@@ -3418,32 +3418,37 @@ sonWrite(results +%5B0:i%5D , save_path, ind
6fec92df3eec71b3725ffeeee260d19b77aee309
Refactor get items method
classes/bucket.py
classes/bucket.py
from flask import jsonify from modals.modals import BucketModal, ItemModal class Bucket(object): """ Handles all bucket operations """ @staticmethod def create_bucket(name, desc, user_id): """ Creates a new bucket :param name: :param desc: :param user_id:...
Python
0
@@ -809,91 +809,8 @@ y(%7B%0A - # 'Status': 'Successfully Added bucket',%0A # 'id': bucket.id%0A
0dd7c69ded2491572885954c0665e58f8459eadd
Fix no attribute error in inference_on_dataset
detectron2/evaluation/evaluator.py
detectron2/evaluation/evaluator.py
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import datetime import logging import time from collections import OrderedDict from contextlib import contextmanager import torch from detectron2.utils.comm import is_main_process from detectron2.utils.logger import log_every_n_seconds class Data...
Python
0.011181
@@ -228,16 +228,32 @@ m import + get_world_size, is_main @@ -3451,87 +3451,24 @@ s = -torch.distributed.get_world_size() if torch.distributed.is_initialized() else 1 +get_world_size() %0A
9a83ec4c80bec0cec45904a8998cd82a99a9b1b2
Save `resources` as extra data in its entirety
social_core/backends/atlassian.py
social_core/backends/atlassian.py
from social_core.backends.oauth import BaseOAuth2 class AtlassianOAuth2(BaseOAuth2): name = 'atlassian' AUTHORIZATION_URL = 'https://accounts.atlassian.com/authorize' ACCESS_TOKEN_METHOD = 'POST' ACCESS_TOKEN_URL = 'https://api.atlassian.com/oauth/token' DEFAULT_SCOPE = ['read:jira-user', 'offline...
Python
0.000001
@@ -385,19 +385,16 @@ resource -_id s', 'res @@ -398,19 +398,16 @@ resource -_id s'),%0A @@ -1318,74 +1318,8 @@ )%7D)%0A - resource_ids = %5Bresource%5B'id'%5D for resource in resources%5D%0A @@ -1424,14 +1424,17 @@ urce -_id s%5B0 +%5D%5B'id' %5D),%0A @@ -1555,19 +1555,16 @@ resource -_id s'%...
ad1fe8f7f636d8bf5bb92599b37ac8aa7849596e
Add small test
tests/grab_transport.py
tests/grab_transport.py
import pickle import os import sys from test_server import Response from tests.util import BaseGrabTestCase, only_grab_transport, temp_dir from grab import Grab from grab.error import GrabMisuseError FAKE_TRANSPORT_CODE = """ from grab.transport.curl import CurlTransport class FakeTransport(CurlTransport): pass...
Python
0.00005
@@ -3490,28 +3490,364 @@ ).go(self.server.get_url())%0A +%0A def test_setup_transport_twice(self):%0A transport = %22grab.transport.curl.CurlTransport%22%0A grab = Grab()%0A grab.setup_transport(transport)%0A with self.assertRaises(GrabMisuseError) as ex:%0A grab.setup_transpo...
58d68447839adfb9881a65837d1cd4e171ad22a1
fix strange error message (fix #708)
tensorpack/utils/develop.py
tensorpack/utils/develop.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # File: develop.py # Author: tensorpack contributors """ Utilities for developers only. These are not visible to users (not automatically imported). And should not appeared in docs.""" import os import functools from datetime import datetime import importlib import types ...
Python
0
@@ -1228,19 +1228,21 @@ (list, -str +tuple )):%0A
4703caba8a8c98844b9cc63cff97f8a253ef5964
rename test case 10.3.4.1.1.2 to WINFF.FT.S.REG.2 (#115)
src/harness/testcases/registration_testcase.py
src/harness/testcases/registration_testcase.py
# Copyright 2016 SAS Project 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 requ...
Python
0.000163
@@ -2103,18 +2103,22 @@ est_ -10_3_4_1_1 +WINFF_FT_S_REG _2(s
e66178cc0521426036d4c9166bf76e9379bc62ef
disable Run tests temporarily
cloudrun/tests.py
cloudrun/tests.py
import pytest import uuid from .cloudrun import Cloudrun from .run import Run token = uuid.uuid4().hex id = uuid.uuid4().hex def test_cloudrun_init(): assert type(Cloudrun(token)) is Cloudrun assert Cloudrun(token).token == token def test_run_init(): assert type(Run(token,id)) is Run assert Run(token...
Python
0.000001
@@ -234,16 +234,17 @@ token%0A%0A +# def test @@ -248,32 +248,33 @@ est_run_init():%0A +# assert type( @@ -295,16 +295,17 @@ is Run%0A +# asse @@ -336,16 +336,17 @@ = token%0A +# asse @@ -372,16 +372,17 @@ == id%0A%0A +# def test @@ -410,24 +410,25 @@ urns_run():%0A +# assert t
cf04dded9623659ed041faf61ffe5568fec97021
Add more to gjf and mol2 tests
chem/tests.py
chem/tests.py
from django.test import Client, TestCase from django.core.urlresolvers import reverse from django.contrib.auth.models import User from django.utils import simplejson import views from models import ErrorReport class MainPageTestCase(TestCase): names = ["24a_TON", "24b_TSP_24a_24a", "CON_24a"] def setUp(self...
Python
0
@@ -2531,207 +2531,732 @@ 00)%0A -%0A def test_write_mol2(self):%0A for name in self.names:%0A response = self.client.get(reverse(views.write_mol2, args=(name, )))%0A self.assertEqual(response.status_code, 200 + self.assertEqual(response.get('Content-Disposition'),%0A ...
a61ed6052ad69a2d62a2b3e42c6769131382118f
Fix other import
tests/nlu/test_utils.py
tests/nlu/test_utils.py
import io import os import pickle import pytest import tempfile import shutil from typing import Text from rasa.shared.exceptions import RasaException import rasa.shared.nlu.training_data.message from rasa.nlu.tokenizers.convert_tokenizer import RESTRICTED_ACCESS_URL import rasa.shared.utils.io import rasa.utils.io as...
Python
0.000214
@@ -194,80 +194,8 @@ age%0A -from rasa.nlu.tokenizers.convert_tokenizer import RESTRICTED_ACCESS_URL%0A impo @@ -3789,47 +3789,8 @@ ),%0A - (RESTRICTED_ACCESS_URL, True),%0A
5af29cfa071360265b1c31538f89e806ae4eabc4
Fix #142: Testrunner and SOUTH_TESTS_MIGRATE broken on 1.1.
south/management/commands/test.py
south/management/commands/test.py
from django.core import management from django.core.management.commands import test from django.core.management.commands import syncdb from django.conf import settings class Command(test.Command): def handle(self, *args, **kwargs): if not hasattr(settings, "SOUTH_TESTS_MIGRATE") or not settings.SOUTH_...
Python
0.000001
@@ -162,16 +162,277 @@ ttings%0A%0A +from syncdb import Command as SyncDbCommand%0A%0A%0Aclass MigrateAndSyncCommand(SyncDbCommand):%0A option_list = SyncDbCommand.option_list%0A for opt in option_list:%0A if %22--migrate%22 == opt.get_opt_string():%0A opt.default = True%0A break%0A%...
61411f7eeda8d7f92f2624c2875828bb8f16598f
fix typo
commitizen/cli.py
commitizen/cli.py
import argparse import logging import sys import warnings from decli import cli from commitizen import commands, config, out logger = logging.getLogger(__name__) data = { "prog": "cz", "description": ( "Commitizen is a cli tool to generate conventional commits.\n" "For more information about ...
Python
0.000138
@@ -6158,14 +6158,12 @@ p%22: -( %22a r -e ange @@ -6202,17 +6202,16 @@ r..HEAD%22 -) ,%0A
39874a0ddb65582a04ea32fa2b05bacc968f56f3
Update max-chunks-to-make-sorted-ii.py
Python/max-chunks-to-make-sorted-ii.py
Python/max-chunks-to-make-sorted-ii.py
# Time: O(nlogn) # Space: O(n) class Solution(object): def maxChunksToSorted(self, arr): """ :type arr: List[int] :rtype: int """ def compare(i1, i2): return arr[i1]-arr[i2] if arr[i1] != arr[i2] else i1-i2 idxs = [i for i in xrange(len(arr))] ...
Python
0.000001
@@ -26,16 +26,1085 @@ : O(n)%0A%0A +# This question is the same as %22Max Chunks to Make Sorted%22%0A# except the integers of the given array are not necessarily distinct,%0A# the input array could be up to length 2000, and the elements could be up to 10**8.%0A#%0A# Given an array arr of integers (not necessarily dist...
5c20418b8e5f6dc033d1a7c515d30d5e9b026db5
Fix sampleproject view
sampleproject/bot/views.py
sampleproject/bot/views.py
from django.shortcuts import render from django.conf import settings from django_telegrambot.apps import DjangoTelegramBot # Create your views here. def index(request): bot_list = DjangoTelegramBot.bots context = {'bot_list': bot_list, 'update_mode':settings.TELEGRAM_BOT_MODE} return render(request, 'bot/i...
Python
0.000001
@@ -265,16 +265,23 @@ ngs. +DJANGO_ TELEGRAM _BOT @@ -280,17 +280,19 @@ GRAM -_ BOT -_ +%5B' MODE +'%5D %7D%0A
f0f31ea0a86620b77073b5da0dca386b337b98da
update prop2part tests
tests/prop2part_test.py
tests/prop2part_test.py
#!/usr/bin/env python """ Tests for abstract.prop2partition """ from tulip.abstract import prop2part import tulip.polytope as pc import numpy as np def prop2part_test(): state_space = pc.Polytope.from_box(np.array([[0., 2.],[0., 2.]])) cont_props = [] A = [] b = [] A.append(np.array([[1....
Python
0
@@ -783,15 +783,9 @@ t = -dict(%5B( +%7B %22C%22+ @@ -790,17 +790,18 @@ %22+str(i) -, + : pc.Poly @@ -816,17 +816,16 @@ %5D, b%5Bi%5D) -) for i i @@ -834,23 +834,17 @@ range(2) -%5D)%0A +%7D %0A %0A @@ -899,16 +899,44 @@ s_dict)%0A + print(mypartition)%0A %0A ref_ @@ -1162,25 +1162,25 @@...
81bbe22cd92ea834f059b963cf0d0127f2d45a19
Add SUSPENDED to new "error" status group.
core/constants.py
core/constants.py
""" Norc-specific constants. Any constants required for the core execution of Norc should be defined here if possible. """ # The maximum number of tasks an Executor is allowed to run at once. CONCURRENCY_LIMIT = 4 # How often a scheduler can poll the database for new schedules. SCHEDULER_PERIOD = 5 # How many new...
Python
0
@@ -3535,32 +3535,129 @@ 7, Status.ALL),%0A + %22error%22: filter(lambda s: s %3E= 13, Status.ALL) +%0A %5BStatus.SUSPENDED%5D,%0A %7D.get(na
77cb3f0037dad2444560d8231e6ffb4f072e19f5
Remove Continue click after New
tests/steps/creation.py
tests/steps/creation.py
# -*- coding: UTF-8 -*- from __future__ import unicode_literals from behave import step from dogtail.rawinput import typeText from dogtail.predicate import GenericPredicate from time import sleep from utils import get_showing_node_name @step('Create new box "{name}" from "{item}" menuitem') def create_machine_from_me...
Python
0
@@ -2449,50 +2449,8 @@ k()%0A - context.app.child('Continue').click()%0A
d32b2494c1a72d040a651bbb2f0abb7a94c1d2db
remove stray line
tests/test-datatypes.py
tests/test-datatypes.py
"""Test datatypes.""" from statscraper.datatypes import Datatype from statscraper import Dimension, DimensionValue def test_allowed_values(): """Datatypes shuold have allowed values.""" dt = Datatype("region") assert("Ale kommun" in dt.allowed_values) def test_b(): """Dimension values should be tran...
Python
0.002086
@@ -500,9 +500,8 @@ %221440%22)%0A -%0A
e8cffceecf79b42790ccab1c61a2da06ae6529cd
comment no longer relevant. dealt with 2FA already
corehq/apps/sso/backends.py
corehq/apps/sso/backends.py
from django.contrib.auth.backends import ModelBackend from django.contrib.auth.models import User from corehq.apps.sso.models import IdentityProvider, AuthenticatedEmailDomain from corehq.apps.sso.utils.user_helpers import get_email_domain_from_username class SsoBackend(ModelBackend): """ Authenticates again...
Python
0
@@ -2166,60 +2166,8 @@ one%0A - # todo what happens with 2FA required here?%0A
3607d23865e9a28f53c7b8d3ef38014533c831c5
check is no longer necessary with above refactor
corehq/util/es/interface.py
corehq/util/es/interface.py
import abc import logging import traceback from django.conf import settings from corehq.util.es.elasticsearch import bulk class AbstractElasticsearchInterface(metaclass=abc.ABCMeta): def __init__(self, es): self.es = es def _verify_is_alias(self, index_or_alias): from corehq.elastic import ...
Python
0
@@ -846,219 +846,8 @@ s()%0A - settings_dict = %7B%0A %22index%22: %7B%0A key: value for key, value in settings_dict%5B'index'%5D.items()%0A if key not in self._disallowed_index_settings%0A %7D%0A %7D%0A @@ -4072,73 +4072,12 @@ -_disallowed_...
52c3981b8880085d060f874eb8feace6ac125411
Replace exact equality assert with isclose in bands cli
tests/test_cli_bands.py
tests/test_cli_bands.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Author: Dominik Gresch <greschd@gmx.ch> import os import pytest import tempfile import bandstructure_utils as bs from click.testing import CliRunner import tbmodels from tbmodels._cli import cli from parameters import SAMPLES_DIR def test_cli_bands(): samples_d...
Python
0.000116
@@ -126,16 +126,35 @@ empfile%0A +import numpy as np%0A import b @@ -920,15 +920,35 @@ -assert +np.testing.assert_allclose( bs.c @@ -984,10 +984,9 @@ nce) - == +, 0 +) %0A
8b4b5eb2506feed164b69efa66b4cdae159182c3
Fix pre-commit issues in the cli_parse tests.
tests/test_cli_parse.py
tests/test_cli_parse.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # (c) 2015-2018, ETH Zurich, Institut fuer Theoretische Physik # Author: Dominik Gresch <greschd@gmx.ch> import pytest import tempfile from click.testing import CliRunner import tbmodels from tbmodels._cli import cli @pytest.mark.parametrize('pos_kind', ['wannier', 'ne...
Python
0
@@ -149,22 +149,49 @@ ch%3E%0A -%0Aimport pytest +%22%22%22Tests for the 'parse' CLI command.%22%22%22%0A %0Aimp @@ -202,16 +202,31 @@ tempfile +%0A%0Aimport pytest %0Afrom cl @@ -483,16 +483,91 @@ _kind):%0A + %22%22%22Test the 'parse' command with different 'prefix' and 'pos_kind'.%22%22%22%0A runn
78434bafbcc60ba7207d63481d3179474ae939ed
change to using scontrol for getting job state by default
pipeline/pipeline/batch.py
pipeline/pipeline/batch.py
import os, re import subprocess import time def write_slurm_script(filename, cmd, **batch_options): with open(filename, 'w') as fout: fout.write('#!/bin/bash\n') for opts in batch_options.items(): fout.write('#SBATCH --{0}={1}\n'.format(*opts)) fout.write('\n') ...
Python
0
@@ -583,18 +583,220 @@ -m = False%0A +cmd = 'scontrol show job %7B0%7D'.format(jobid)%0A output = subprocess.check_output(cmd, shell=True)%0A m = re.search('JobState=(%5Cw+)', output)%0A status = None%0A if m:%0A status = m.group(1)%0A else:%0A @@ -806,16 +806,20 @@ eat = 0%0A + ...
899a648cb4497d8177ffa6a7b137f3363d285792
add tests for converter helpers
tests/test_converter.py
tests/test_converter.py
import unittest from twiggy.lib.converter import Converter, ConversionTable def convVal(x): return x def convItem(x, y): return x, y class ConverterTestCase(unittest.TestCase): def test_repr(self): c = Converter("pants", convVal, convItem) assert repr(c) == "<Converter('pants')>" class...
Python
0
@@ -69,16 +69,43 @@ ionTable +, sameValue, sameItem, drop %0A%0Adef co @@ -165,16 +165,371 @@ n x, y%0A%0A +class HelperTestCase(unittest.TestCase):%0A%0A def test_drop(self):%0A assert drop(1, 2) is None%0A%0A def test_same_value(self):%0A o = object()%0A assert sameValue(o) is o%0A%0A ...
047a1a6072905e650d8a8c6dee3078a14b9df759
Use Path instead of PosixPath
tests/test_corrector.py
tests/test_corrector.py
# -*- coding: utf-8 -*- import pytest from pathlib import PosixPath from thefuck import corrector, const from tests.utils import Rule, Command, CorrectedCommand from thefuck.corrector import get_corrected_commands, organize_commands class TestGetRules(object): @pytest.fixture def glob(self, mocker): ...
Python
0.000001
@@ -52,21 +52,16 @@ import -Posix Path%0Afro @@ -1260,13 +1260,8 @@ ob(%5B -Posix Path
4180085e3bf6d0dd1f28233d4ac62198ebeb9814
Fix wrong assert
tests/test_histogram.py
tests/test_histogram.py
# vim: set fileencoding=utf-8 : import unittest import pyvips from .helpers import PyvipsTester, JPEG_FILE class TestHistogram(PyvipsTester): def test_hist_cum(self): im = pyvips.Image.identity() sum = im.avg() * 256 cum = im.hist_cum() p = cum(255, 0) self.assertEqual(...
Python
0.0022
@@ -1202,33 +1202,33 @@ ual(im.width, im -2 +3 .width)%0A @@ -1253,33 +1253,33 @@ al(im.height, im -2 +3 .height)%0A%0A
eacf0414f3fed58c31f280e9ad02df7e610d422d
add exception handle for KeyControlInterrupt
pagrant/basecommand.py
pagrant/basecommand.py
#!/usr/bin/python #coding:utf8 __author__ = ['markshao'] import sys from pagrant.vendors.myoptparser import optparse from pagrant import cmdoptions from pagrant.cmdparser import ConfigOptionParser, UpdatingDefaultsHelpFormatter from pagrant.util import get_prog, format_exc from pagrant.exceptions import PagrantError...
Python
0.000001
@@ -3064,28 +3064,238 @@ ())%0A sys.exit(1)%0A + except KeyboardInterrupt:%0A self.logger.fatal(%22The user interrupt the test case execution%22)%0A self.logger.error(%22The user interrupt the test case execution%22)%0A sys.exit(1)%0A
8895e607b223841e7edc2b67a85c746b790f28b5
add another check
tests/test_ratelimit.py
tests/test_ratelimit.py
# coding=utf-8 # Python 2 source containing unicode https://www.python.org/dev/peps/pep-0263/ """ Tests for SMTP server rate limit feature. Andrew DeOrio <awdeorio@umich.edu> """ import textwrap import datetime import time import future.backports.email as email import future.backports.email.parser # pylint: disable=u...
Python
0
@@ -3596,16 +3596,114 @@ onds=1)%0A + smtp = mock_SMTP.return_value.__enter__.return_value%0A assert smtp.sendmail.call_count == 2%0A asse
8e5ffc7ed1db1d17e55cf538fc9858705ecc9dd2
Bump version to 1.20.4
platformio_api/__init__.py
platformio_api/__init__.py
# Copyright 2014-present Ivan Kravets <me@ikravets.com> # # 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
@@ -659,17 +659,17 @@ (1, 20, -3 +4 )%0A__vers
5d6fd6f627b6fe073d95499a58575532618ef484
Add many=True to test_recursive
tests/test_relations.py
tests/test_relations.py
from rest_framework import serializers from rest_framework.test import APISimpleTestCase from drf_extra_fields.relations import ( PresentablePrimaryKeyRelatedField, PresentableSlugRelatedField, ) from .utils import MockObject, MockQueryset class PresentationSerializer(serializers.Serializer): def to_repr...
Python
0.998278
@@ -659,16 +659,209 @@ ,%0A )%0A + recursive_fields = PresentablePrimaryKeyRelatedField(%0A queryset=MockQueryset(%5B%5D),%0A presentation_serializer=%22tests.test_relations.RecursiveSerializer%22,%0A many=True%0A )%0A %0A%0Aclass @@ -2532,24 +2532,247 @@ name=%22baz%22,%0A + ...
14a2ad18e70b6bc35e8d64c56b37520ebdb9fa3c
Add tests for full resource name
tests/test_resources.py
tests/test_resources.py
# Copyright 2019 The resource-policy-evaluation-library 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 # # Unl...
Python
0
@@ -1222,24 +1222,102 @@ ry.datasets' +,%0A '//bigquery.googleapis.com/projects/my_project/datasets/my_resource' %0A ),%0A @@ -1578,32 +1578,130 @@ mpute.instances' +,%0A '//compute.googleapis.com/projects/my_project/zones/us-central1-a/instances/my_resource' %0A ),%0A (%0A @@ -1914,16 ...
b144eb21003fc3f2e13e3d88b93a947a458cae24
test designed to fail confirmed - reverted
tests/test_simulator.py
tests/test_simulator.py
# test_simulator.py written by Duncan Murray 28/4/2015 import unittest import os import sys root_folder = os.path.abspath(os.path.dirname(os.path.abspath(__file__)) + os.sep + ".." + os.sep + 'vais') ref_folder = root_folder + os.sep + "data" sys.path.append(root_folder) import planet as planet import battle as ...
Python
0
@@ -2686,24 +2686,27 @@ self.assert +Not Equal(1, 2)
ddaa94003bca853819855014b7d99c165c890de8
add yaml output command func to config_command tests
test/test_config_command.py
test/test_config_command.py
# -*- coding: utf-8 -*- from __future__ import division, absolute_import, print_function import os import yaml from mock import patch from tempfile import mkdtemp from shutil import rmtree from beets import ui from beets import config from test._common import unittest from test.helper import TestHelper, capture_std...
Python
0.000001
@@ -1240,34 +1240,41 @@ def -test_show_user_config(self +_run_with_yaml_output(self, *args ):%0A @@ -1346,22 +1346,13 @@ and( -'config', '-c' +*args )%0A @@ -1353,32 +1353,30 @@ gs)%0A -output = +return yaml.load(o @@ -1385,32 +1385,131 @@ put.getvalue())%0A +%0A def test_show_user_config(self):%...
d81c6e4ce44b0ee63fa116cb69efce17b8bb2c3f
test getting message via POP
test/test_pop_connection.py
test/test_pop_connection.py
"""Tests for POP connection handling.""" import os import pathlib import unittest from maildaemon.config import load_config from maildaemon.pop_connection import POPConnection _HERE = pathlib.Path(__file__).parent _TEST_CONFIG_PATH = _HERE.joinpath('maildaemon_test_config.json') @unittest.skipUnless(os.environ.get...
Python
0
@@ -1035,24 +1035,443 @@ (alive, msg=connection)%0A +%0A def test_retrieve_message_lines(self):%0A for connection_name in %5B'test-pop', 'test-pop-ssl'%5D:%0A with self.subTest(msg=connection_name):%0A connection = POPConnection.from_dict(self.config%5B'connections'%5D%5Bconnection_...
39a1c6c8c3795775dc8811e8e195feaa4e973cd8
remove comments
tests/test_validator.py
tests/test_validator.py
# from unittest.mock import patch import json import unittest from dacsspace.validator import Validator class TestValidator(unittest.TestCase): def test_validator(self): json_file = "/Users/aberish/Documents/GitHub/DACSspace/fixtures/resource.json" with open(json_file, 'r') as f: js...
Python
0
@@ -498,126 +498,4 @@ e%22)%0A -%0A%0A# HELP: I don't know what this does, but I saw it used in other tests%0A# if __name__ == %22__main__%22:%0A# unittest.main()%0A
c2b55844bff3de39ac9a0a4bd8860306da731662
fix for testing 401 after redirection
testsuite/test_views.py
testsuite/test_views.py
# -*- coding: utf-8 -*- ## ## This file is part of Invenio. ## Copyright (C) 2013, 2014 CERN. ## ## Invenio 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 2 of the ## License, or (at your opt...
Python
0
@@ -854,21 +854,8 @@ _for -, current_app %0Afro @@ -918,14 +918,8 @@ ite, - %5C%0A run @@ -980,16 +980,16 @@ e):%0A +%0A %22%22%22 - Test @@ -1016,17 +1016,16 @@ nctions. - %22%22%22%0A%0A @@ -1674,32 +1674,90 @@ ommunities.new') +,%0A follow_redirects=True )%0A...
77199b8c6b06054c7741433ec2fadd654a636677
add hour var
tilejetlogs/tilelogs.py
tilejetlogs/tilelogs.py
def buildTileRequestDocument(tileorigin, tilesource, x, y, z, status, datetime, ip): r = { 'ip': ip, 'origin': tileorigin if tileorigin else "", 'source': tilesource, 'location': z+'/'+x+'/'+y, 'z': z, 'status': status, 'year': datetime.strftime('%Y'), ...
Python
0.000016
@@ -394,24 +394,74 @@ %25Y-%25m-%25d'),%0A + 'hour': datetime.strftime('%25Y-%25m-%25d-%25H'),%0A 'dat
7525e6276d4868df9ce2ae24c240f29079619ce2
add unicode char for emoji
botigo/bot.py
botigo/bot.py
import copy import os import json import requests from botigo import config class Bot(): def __init__(self, access_token, **kwargs): """ @required: access_token @optional: api_version """ self.api_version = kwargs.get('api_version') or co...
Python
0.999043
@@ -2672,18 +2672,26 @@ ': 'tram + U+1F68A '%0A - @@ -2854,16 +2854,24 @@ d': 'bus + U+1F68C '%0A @@ -2998,16 +2998,16 @@ 'V%C3%A9lo',%0A - @@ -3038,16 +3038,24 @@ ': 'velo + U+1F6B2 '%0A