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 |
|---|---|---|---|---|---|---|---|
926dc5a10fd9d54a6b183266f21834013ad05abb | Fix debugging issue in VSCode | frontui/app.py | frontui/app.py | """ Creat and init application """
import logging
from logging.handlers import TimedRotatingFileHandler
import os
from flask import Flask
from frontui import BASE_DIR
from frontui.views.public import public_ui
from frontui.views.member import member_ui
from frontui.views.customer import customer_ui
def create_app(app... | Python | 0.000025 | @@ -715,24 +715,105 @@
G':%0A
+# debugging in VSCode works only if following 2 lines are commented out%0A #
app.debug =
@@ -817,32 +817,33 @@
= True%0A
+#
app.config%5B'DEBU
|
cd415cd7bab759fe68a0f6b676c51762e558716a | Add support for files with no file extension | EasyEuler/utils.py | EasyEuler/utils.py | import json
import subprocess
import os
import glob
import re
from jinja2 import Environment, FileSystemLoader
BASE_PATH = os.path.abspath(os.path.dirname(__file__))
DATA_PATH = os.path.join(BASE_PATH, 'data')
TEMPLATE_PATH = os.path.join(BASE_PATH, '../templates')
CONFIG_PATH = os.path.join(BASE_PATH, '../config.js... | Python | 0 | @@ -2349,26 +2349,63 @@
age)
-.format(path=
+%0A%0A if command is None:%0A command = './%7B
path
-)
+%7D'%0A
%0A
@@ -2441,44 +2441,38 @@
mand
-, shell=True, stdout=subprocess.PIPE
+.format(path=path), shell=True
,%0A
@@ -2491,24 +2491,50 @@
+ stdout=subprocess.PIPE,
stderr=sub
|
2ad6cdefabec041ace5afcdcffce7f6e6c2352fa | Add priors import to __init__.py | gpytorch/__init__.py | gpytorch/__init__.py | from . import models
from . import means
from . import mlls
from . import kernels
from .module import Module
from .mlls import ExactMarginalLogLikelihood, VariationalMarginalLogLikelihood
from .functions import add_diag, add_jitter, dsmm, log_normal_cdf, normal_cdf
from .functions import inv_matmul, inv_quad, inv_quad_... | Python | 0.000017 | @@ -71,24 +71,45 @@
ort kernels%0A
+from . import priors%0A
from .module
@@ -659,24 +659,36 @@
kernels,%0A
+ priors,%0A
# Classe
|
68de3fe1bf94400481c6f53c3565e9ebd50489e3 | Support building docs with py3k | docs/extensions/promises.py | docs/extensions/promises.py | from django.utils.encoding import force_unicode
from django.utils.functional import Promise
from sphinx.util.inspect import safe_repr
list_or_tuple = lambda x: isinstance(x, (tuple, list))
def lazy_repr(obj):
if list_or_tuple(obj):
values = []
for item in obj:
values.append(lazy_repr... | Python | 0 | @@ -1,24 +1,33 @@
+try:%0A
from django.utils.encodi
@@ -50,16 +50,158 @@
unicode%0A
+except ImportError:%0A # We are on Python 3, force_text is force_unicode.%0A from django.utils.encoding import force_text as force_unicode%0A%0A
from dja
|
66920331012c49b84f2d4d4f8d0ffbf058adc073 | tweak internet explorer so to avoid popups | analyzer/windows/modules/packages/ie.py | analyzer/windows/modules/packages/ie.py | # Copyright (C) 2010-2015 Cuckoo Foundation.
# This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org
# See the file 'docs/LICENSE' for copying permission.
from lib.common.abstracts import Package
class IE(Package):
"""Internet Explorer analysis package."""
PATHS = [
("ProgramFiles", "Inte... | Python | 0 | @@ -171,219 +171,2469 @@
rom
-lib.common.abstracts import Package%0A%0Aclass IE(Package):%0A %22%22%22Internet Explorer analysis package.%22%22%22%0A PATHS = %5B%0A (%22ProgramFiles%22, %22Internet Explorer%22, %22iexplore.exe%22),%0A %5D%0A%0A def start(self, url):
+_winreg import OpenKey, SetValu... |
ef98d44aa88d8a083124dae6ba490445f43ee430 | Fix expectation in TestStaticVariables.py after rL286302 | packages/Python/lldbsuite/test/lang/cpp/class_static/TestStaticVariables.py | packages/Python/lldbsuite/test/lang/cpp/class_static/TestStaticVariables.py | """
Test display and Python APIs on file and class static variables.
"""
from __future__ import print_function
import os
import time
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil
class StaticVariableTestCase(TestBase):
mydir = Tes... | Python | 0.000006 | @@ -1486,11 +1486,8 @@
= %7B
-.*%7D
'%5D)%0A
|
a73dcdcdc5a9f1d3771d13f08ae6babf02b217df | Fix typo in comment | databroker/v2.py | databroker/v2.py | import event_model
import tempfile
from .core import parse_handler_registry, discover_handlers, parse_transforms
from intake.catalog import Catalog
from event_model import DuplicateHandler
from functools import partial
from pathlib import Path
class Broker(Catalog):
"""
This is a thin wrapper around intake.C... | Python | 0.000917 | @@ -4875,16 +4875,17 @@
require
+
a handle
|
a6fa6fd8595510748d4d4fb06a1383dcea3288c2 | fix deoplete mark | rplugin/python3/deoplete/sources/phpcd.py | rplugin/python3/deoplete/sources/phpcd.py | from .base import Base
class Source(Base):
def __init__(self, vim):
Base.__init__(self, vim)
self.name = 'phpcd'
self.mark = '[php]'
self.filetypes = ['php']
self.is_bytepos = True
self.input_pattern = '\w+|[^. \t]->\w*|\w+::\w*'
self.rank = 500
self... | Python | 0.001886 | @@ -153,16 +153,18 @@
= '%5Bphp
+cd
%5D'%0A
|
ba943a9c46f20b6f1b061ca1fff62df36a5d9562 | fix deoplete error | rplugin/python3/deoplete/sources/phpcd.py | rplugin/python3/deoplete/sources/phpcd.py | from .base import Base
class Source(Base):
def __init__(self, vim):
Base.__init__(self, vim)
self.name = 'phpcd'
self.mark = '[phpcd]'
self.filetypes = ['php']
self.is_bytepos = True
self.input_pattern = '\w+|[^. \t]->\w*|\w+::\w*'
self.rank = 500
se... | Python | 0.000003 | @@ -15,16 +15,54 @@
ort Base
+%0Afrom neovim.api.nvim import NvimError
%0A%0Aclass
@@ -564,32 +564,49 @@
self, context):%0A
+ try:%0A
return s
@@ -667,8 +667,56 @@
_str'%5D)%0A
+ except NvimError:%0A return %5B%5D%0A
|
7070d387901685c2fc526fefda774e688e86e1e9 | Move checkout and pre-build into its own job | runbot_build_instructions/runbot_build.py | runbot_build_instructions/runbot_build.py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# This module copyright (C) 2010 - 2014 Savoir-faire Linux
# (<http://www.savoirfairelinux.com>).
#
# This program is free software: you can redistribute it a... | Python | 0 | @@ -1130,17 +1130,25 @@
port orm
+, fields
%0A
-
from ope
@@ -2077,16 +2077,379 @@
t.build%22
+%0A _columns = %7B%0A 'prebuilt': fields.boolean(%22Prebuilt%22),%0A %7D%0A%0A def job_00_prebuild(self, cr, uid, build, lock_path, log_path):%0A build._log('test_base', 'Start pre-build commands')%... |
21dd97cec5003f1e53f02b079da3130a606feb3a | Fix marker script support for '-c' flag (#18418) | pythonFiles/get_output_via_markers.py | pythonFiles/get_output_via_markers.py | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import runpy
import sys
# Sometimes executing scripts can print out stuff before the actual output is
# printed. For eg. when activating conda. Hence, printing out markers to make
# it more resilient to pull the output.
prin... | Python | 0 | @@ -418,38 +418,75 @@
-for code in sys.argv%5B2:%5D:%0A
+code = sys.argv%5B2%5D%0A del sys.argv%5B2%5D%0A del sys.argv%5B0%5D%0A
|
9192099fb51570251e440e0be39959b0c8c7c465 | Add asteroids that are being used as locations | pywikibot/families/wikidata_family.py | pywikibot/families/wikidata_family.py | # -*- coding: utf-8 -*-
"""Family module for Wikidata."""
from __future__ import absolute_import, unicode_literals
__version__ = '$Id$'
from pywikibot import config
from pywikibot import family
# The Wikidata family
class Family(family.WikimediaFamily):
"""Family class for Wikidata."""
name = 'wikidata'... | Python | 0.999772 | @@ -1642,24 +1642,85 @@
ity/Q3303',%0A
+ 'eros': 'http://www.wikidata.org/entity/Q16711',%0A
@@ -1829,24 +1829,88 @@
ity/Q3169',%0A
+ 'gaspra': 'http://www.wikidata.org/entity/Q158244',%0A
@@ -2142,24 +2142,89 @@
tity/Q319',%0A
+ 'lutetia': 'http://www.wik... |
572c2f4a0a3a0ffedaa45184848e2d5a37fd2078 | Update helpers.py with new problems | helpers.py | helpers.py | """ A bunch of helper functions that, when fixed up, will return the things we
need to make this website work!
"""
## Import python libraries we need up here.
import requests
import random
###############################################
### Problem One! ###
##############################... | Python | 0 | @@ -340,60 +340,29 @@
def
-choose_random_unique_items(my_list, number_of_imag
+get_city_coordinat
es
+(
):%0A
@@ -371,425 +371,150 @@
%22%22%22
- Given a list of items, return a *random* element of that list.%0A Only return the item if we haven't seen it before! Get a sample. A random sample.%0A %22%22%22%... |
4286953271952bfcfce0b122d1338b75e1daed70 | Remove unused parameter (#3306) | samples/core/exit_handler/exit_handler.py | samples/core/exit_handler/exit_handler.py | #!/usr/bin/env python3
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | Python | 0 | @@ -955,31 +955,8 @@
text
-, is_exit_handler=False
):%0A
|
90e47d8daa023ab58e1b100637fc68a097ca1210 | Update assign_workflow_seqlab_quantstudio.py | scripts/assign_workflow_seqlab_quantstudio.py | scripts/assign_workflow_seqlab_quantstudio.py | #!/usr/bin/env python
from egcg_core.config import cfg
from EPPs.common import StepEPP, get_workflow_stage, find_newest_artifact_originating_from
class AssignWorkflowSeqLabQuantStudio(StepEPP):
_use_load_config = True # prevent the loading of the config file
"""
Assigns plates of submitted samples or Fl... | Python | 0.000008 | @@ -194,78 +194,8 @@
P):%0A
- _use_load_config = True # prevent the loading of the config file%0A
|
08be74a30805f3afb86cafc815955288ae96f7ea | fix the bug | python_practice/graph/undirectedGraph.py | python_practice/graph/undirectedGraph.py | import math
class undirectedGraph(object):
def __init__(self, degrees):
self.degrees = degrees
self.adjacent_matrix = []
for i in range(degrees):
self.adjacent_matrix.append([0]*degrees)
def __str__(self):
output = ""
for row in self.adjacent_matrix:
for item in row:
output += "|"+str(item)
... | Python | 0.000006 | @@ -2323,43 +2323,8 @@
nce%0A
-%09%09%09min_distance_list.append(start)%0A
%09%09%09s
|
d278672fde9be301033885d7d5b93b20eaaa2c2f | rename redhat check | src/urleater-get.py | src/urleater-get.py | #!/usr/bin/env python
from os.path import join,isfile,realpath,dirname,isdir
from os import walk
from sys import exit, stderr
from fnmatch import fnmatch
from re import compile,IGNORECASE
from json import dumps, loads
from socket import socket, AF_INET, SOCK_STREAM, gethostname
from ConfigParser import ConfigParser
fro... | Python | 0.000002 | @@ -1065,23 +1065,23 @@
/redhat-
-version
+release
'):%0A
|
38ed21b8a2438f9dedd5f61d74d6117717228510 | Bump DSTK version number | DSTK/__init__.py | DSTK/__init__.py | __version__ = '0.0.1'
__all__ = ['GAM', 'Distinctor', 'AutoEncoder', 'BoostedFeatureSelectors', 'utils']
| Python | 0 | @@ -16,9 +16,9 @@
0.0.
-1
+2
'%0A__
|
e4b40f2ed8e42e123d1694e7024e1a7e686a0146 | Use python 2.7 on OSX if it's in the custom install location. | scripts/slave/chromium/layout_test_wrapper.py | scripts/slave/chromium/layout_test_wrapper.py | #!/usr/bin/python
# Copyright (c) 2011 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.
"""A wrapper script to run layout tests on the buildbots.
Runs the run_webkit_tests.py script found in webkit/tools/layout_tests above... | Python | 0.000006 | @@ -4370,16 +4370,270 @@
iles()%0A%0A
+ python_27_on_leopard = (%0A '/Library/Frameworks/Python.framework/Versions/2.7/bin')%0A if sys.platform == 'darwin' and os.path.exists(python_27_on_leopard):%0A os.environ%5B'PATH'%5D = (python_27_on_leopard + ':' +%0A os.environ.get('PATH', ''))%0A%0A
try:%0... |
94ce77ad973abe63476e014fa61f5699706fb88b | use text file for writing bvecs | dipy/io/tests/test_io_gradients.py | dipy/io/tests/test_io_gradients.py | import os.path as osp
import tempfile
import numpy as np
import numpy.testing as npt
from nose.tools import assert_raises
from dipy.data import get_data
from dipy.io.gradients import read_bvals_bvecs
from dipy.core.gradients import gradient_table
def test_read_bvals_bvecs():
fimg, fbvals, fbvecs = get_data('smal... | Python | 0 | @@ -1164,26 +1164,35 @@
mporaryFile(
+mode='wt'
)%0A
-
# And fi
@@ -1234,118 +1234,150 @@
-%5Bbv_file1.file.write('%25s %25s%5Cn'%25(new_bvecs1%5Bx%5D%5B0%5D, new_bvecs1%5Bx%5D%5B1%5D))%0A for x in range(new_bvecs1.shape%5B0%5D)%5D
+for x in range(new_bvecs1.shape%5B0%5D):%0A bv_file1.file.write... |
8762e5e9eb97a9213c423fd7c36d1096614b9837 | Drop dead test | test/on_yubikey/test_cli_misc.py | test/on_yubikey/test_cli_misc.py | import unittest
from .util import (DestructiveYubikeyTestCase, is_fips, ykman_cli)
class TestYkmanInfo(DestructiveYubikeyTestCase):
def test_ykman_info(self):
info = ykman_cli('info')
self.assertIn('Device type:', info)
self.assertIn('Serial number:', info)
self.assertIn('Firmwar... | Python | 0 | @@ -337,233 +337,8 @@
o)%0A%0A
- @unittest.skipIf(not is_fips(), 'YubiKey FIPS required.')%0A def test_ykman_info_reports_fips_device(self):%0A info = ykman_cli('info')%0A self.assertIn('This YubiKey is capable of FIPS Approved Mode.', info)%0A%0A
|
3201c461cc86b2ce79f78e47a19d0489d50a0b08 | Improve setup.py | adb-enhanced/setup.py | adb-enhanced/setup.py | from setuptools import setup, find_packages
import sys, os
version = '1.1'
setup(name='adb-enhanced',
version=version,
description="An ADB wrapper for Android developers",
long_description="""\
An ADB wrapper for Android developers for testing.
See Readme for more details -
... | Python | 0.000002 | @@ -414,16 +414,49 @@
ifiers=%5B
+%22Intended Audience :: Developers%22
%5D, # Get
@@ -631,26 +631,20 @@
ishb
-hatia.ab@gmail.com
+@ashishb.net
',%0A
|
3589b1a978c17cb32120811a07f2dfb9fd496b46 | version 0.1.5 | jokekappa/__init__.py | jokekappa/__init__.py | # coding: utf-8
from jokekappa.core import get_joke, get_jokes, update_jokes # noqa: F401
__version__ = '0.1.4'
| Python | 0.000003 | @@ -106,11 +106,11 @@
= '0.1.
-4
+5
'%0A
|
e3dc6a563d649ad6bed7447641c7828b7174c970 | Update email.py | EXOS/Python/Email_event/email.py | EXOS/Python/Email_event/email.py | import smtplib
import sys
import re
import datetime
from email.mime.text import MIMEText
def sendemail(txt,me,to,smtp):
msg = {}
msg['From'] = me
s = smtplib.SMTP(smtp)
s.sendmail(me, [to], txt)
s.quit()
def switchData():
data = exsh.clicmd("show switch",capture=True)
switch = {}
for l... | Python | 0 | @@ -2196,37 +2196,28 @@
main = %22
-okoot@extremenetworks
+user@example
.com%22
@@ -2258,29 +2258,20 @@
= '
-okoot@extremenetworks
+user@example
.com
@@ -2333,21 +2333,13 @@
p.ex
-tremenetworks
+ample
.com
|
60392914604edcf2550e0b15c3dfe2e30a6de97a | add test for translation without source | molo/core/content_import/tests/test_content_import.py | molo/core/content_import/tests/test_content_import.py | import pytest
from elasticgit.tests.base import ModelBaseTest
from molo.core.models import SiteLanguage, SectionPage, ArticlePage
from molo.core.tests.base import MoloTestCaseMixin
from molo.core.content_import.tests.base import ElasticGitTestMixin
from molo.core.content_import.helper import ContentImportHelper
from... | Python | 0 | @@ -3176,32 +3176,149 @@
category=None)%0A%0A
+ self.create_pages(%0A self.workspace, count=1, locale='spa_ES',%0A primary_category=None)%0A%0A
for i in
@@ -3978,17 +3978,17 @@
unt(), 4
-4
+5
)%0A
|
06da1046005cb215dc47210c2140db636bef4e78 | fix getting latest app | routes/api.py | routes/api.py | from flask import Blueprint, jsonify
from flask import current_app, jsonify, abort, request
from bson.objectid import ObjectId
api = Blueprint('api', __name__)
# auth
from TokenAuth import TokenAuthReader
token_auth = TokenAuthReader()
@token_auth.data_verifier
def verify_data(data):
key = current_app.connection... | Python | 0 | @@ -2744,16 +2744,17 @@
umber',
+-
1).limit
|
8e856027837ceac112e0858bbbf1fcd971bbb16b | Fix typo in GET routes | routes/get.py | routes/get.py | """
This file contains GET routes methods.
"""
import bottle
import database
import tools
def fetch_papers(db):
"""
Fetch all matching papers.
.. code-block:: bash
GET /papers
Accept: application/vnd.api+json
Filtering is possible using ``id=ID``, ``doi=DOI``, ``arxiv_id=ARXIV_ID`... | Python | 0.000881 | @@ -5708,33 +5708,32 @@
ery(database.Tag
-s
).filter_by(**fi
@@ -6952,17 +6952,16 @@
base.Tag
-s
).filter
|
c8478e40bdb996d5e0a1f01ae0ae55e6926f318d | Remove short call timeout from func test | nova/tests/functional/regressions/test_bug_1909120.py | nova/tests/functional/regressions/test_bug_1909120.py | # Copyright 2020, Red Hat, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | Python | 0.000012 | @@ -1081,131 +1081,8 @@
):%0A%0A
- # _IntegratedTestBase uses CastAsCall so set the response timeout to 1%0A self.flags(rpc_response_timeout=1)%0A%0A
|
760ab8eec4356f3483e32c45a9b1a35d70614155 | make shep stop crying | opencenteragent/plugins/output/plugin_adventurator.py | opencenteragent/plugins/output/plugin_adventurator.py | #!/usr/bin/env python
# OpenCenter(TM) is Copyright 2013 by Rackspace US, Inc.
##############################################################################
#
# OpenCenter is licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.... | Python | 0.000009 | @@ -5079,24 +5079,88 @@
esult_data'%5D
+ and %5C%0A len(v%5B'result_data'%5D%5B'rollback'%5D) %3E 0
:%0A
|
25450a61d531c97615384fc5ef80e4eee97200ac | Fix typo "tinestamps" => "timestamps", fixes #3 | funky/funky.py | funky/funky.py | # Python imports
import operator
import time
from functools import wraps, partial
_py_hash = hash
# Constants
LIST_TYPES = (list, tuple, set)
def first(iterable, default=None):
if not iterable:
# Empty iterator (list)
return default
return iterable[0]
def rest(iterable):
return iterabl... | Python | 0.00082 | @@ -4064,17 +4064,17 @@
self.ti
-n
+m
estamps%5B
|
d09517af26a458af51e23a0f892798eca24db776 | Fix test | test/test_backend/test_server.py | test/test_backend/test_server.py | import os
import sys
from pyqode.core.backend import server
from pyqode.core.frontend.client import JsonTcpClient
from threading import Timer
from subprocess import Popen
process = None
port = None
def test_default_parser():
assert server.default_parser() is not None
def run_client_process():
global pro... | Python | 0 | @@ -574,24 +574,29 @@
argv =
+list(
sys.argv
.copy()%0A
@@ -591,14 +591,8 @@
argv
-.copy(
)%0A
|
6a7fb1ff05202f60c7036db369926e3056372123 | Simplify test of rsqrt function. | tests/chainer_tests/functions_tests/math_tests/test_sqrt.py | tests/chainer_tests/functions_tests/math_tests/test_sqrt.py | import unittest
import numpy
import chainer.functions as F
from chainer import testing
def make_data(dtype, shape):
x = numpy.random.uniform(0.1, 5, shape).astype(dtype)
gy = numpy.random.uniform(-1, 1, shape).astype(dtype)
return x, gy
#
# sqrt
@testing.math_function_test(F.Sqrt(), make_data=make_da... | Python | 0.000001 | @@ -84,16 +84,26 @@
sting%0A%0A%0A
+#%0A# sqrt%0A%0A
def make
@@ -258,26 +258,16 @@
x, gy%0A%0A%0A
-#%0A# sqrt%0A%0A
@testing
@@ -389,29 +389,8 @@
rt(x
-, dtype=numpy.float32
):%0A
@@ -432,209 +432,205 @@
rt(x
-, dtype=dtype))%0A%0A%0A# TODO(takagi) Fix
+))%0A%0A%0Aclass TestRsqrt(unittest.TestCase):%0A%0A d... |
5052ce803d73aac0b8ce84280cb054623f129b87 | Update to include latest release 1.12.1 (#14213) | var/spack/repos/builtin/packages/parallel-netcdf/package.py | var/spack/repos/builtin/packages/parallel-netcdf/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 ParallelNetcdf(AutotoolsPackage):
"""PnetCDF (Parallel netCDF) is a high-performance paral... | Python | 0 | @@ -1111,16 +1111,113 @@
aster')%0A
+ version('1.12.1', sha256='56f5afaa0ddc256791c405719b6436a83b92dcd5be37fe860dea103aee8250a2')%0A
vers
|
3c94bd63563d02854e504b2b3569eb770ae4f6f8 | use more friendly output for US sensors | code/raspberrypi/range_sensors.py | code/raspberrypi/range_sensors.py | from i2c import I2C
from enum import IntEnum
class Command(IntEnum):
MeasureOne = 1
MeasureAll = 2
Count = 3
class RangeSensor(I2C):
"""
This class is an abstraction around the I2C communication with
the range-sensor module.
Details of the "protocol" used:
The Raspberry Pi sends a ... | Python | 0.000002 | @@ -1960,38 +1960,38 @@
nd(cmd)%0A
-return
+data =
self.receive(2
@@ -2001,16 +2001,179 @@
elf.n)%0A%0A
+ ranges = list()%0A for i in range(self.n):%0A j = i*2%0A ranges.append(I2C.pack16(data%5B(i*2)+1%5D, data%5Bi*2%5D))%0A return ranges%0A%0A
def
|
f7cf66867bff75f5b53b6d0a2919a67e6e22242f | remove test too | selfdrive/locationd/test/test_calibrationd.py | selfdrive/locationd/test/test_calibrationd.py | #!/usr/bin/env python3
import json
import random
import unittest
import cereal.messaging as messaging
from common.params import Params
from selfdrive.locationd.calibrationd import Calibrator
class TestCalibrationd(unittest.TestCase):
def test_read_saved_params_json(self):
r = [random.random() for _ in range(3... | Python | 0.000001 | @@ -20,20 +20,8 @@
on3%0A
-import json%0A
impo
@@ -223,383 +223,8 @@
):%0A%0A
- def test_read_saved_params_json(self):%0A r = %5Brandom.random() for _ in range(3)%5D%0A b = random.randint(1, 10)%0A cal_params = %7B%22calib_radians%22: r,%0A %22valid_blocks%22: b%7D%0A Params().put(%22Ca... |
828f8fbae2f1960bc2a764394db1a0320bf33705 | Add recursive flag | EasyEuler/cli.py | EasyEuler/cli.py | import sys
import os
import click
from .utils import write_to_file, get_problem, get_problem_id, verify_solution
from .types import ProblemType
commands = click.Group()
@commands.command()
@click.option('--path', '-p', type=click.Path())
@click.option('--overwrite', '-o', is_flag=True)
@click.argument('problem', ... | Python | 0.000001 | @@ -899,16 +899,65 @@
, '-l')%0A
+@click.option('--recursive', '-r', is_flag=True)%0A
@click.a
@@ -1048,24 +1048,35 @@
th, language
+, recursive
):%0A for p
@@ -1101,31 +1101,74 @@
-valid, status, output =
+if os.path.isdir(path_):%0A if recursive:%0A
pro
@@ -1168,28 +1168,27 @@... |
673ec990edb85387cffb1f12d8785bfb83ffc36f | Check for None in replaces and replaced_by | converge/converger.py | converge/converger.py | import logging
from .framework import datastore
from .framework import process
from . import resource
from . import sync_point
from . import template
logger = logging.getLogger('converger')
class Converger(process.MessageProcessor):
def __init__(self):
super(Converger, self).__init__('converger')
... | Python | 0 | @@ -1428,24 +1428,25 @@
if
+(
rsrc.replace
@@ -1450,19 +1450,51 @@
aced_by
-and
+is not None and%0A
rsrc.te
@@ -1511,32 +1511,33 @@
!= template_key
+)
:%0A
@@ -2293,16 +2293,28 @@
replaces
+ is not None
:%0A
|
148837a29987ab8b10d618c15cab875123f64802 | Fix script so that it works with new HN link structure. | hn2json.py | hn2json.py | #!/usr/bin/env python
"""Python-Pinboard
Python script for downloading your saved stories and saved comments on Hacker News
and converting them to a JSON format for easy use.
Originally written on Pythonista on iPad
"""
__version__ = "1.1"
__license__ = "BSD"
__copyright__ = "Copyright 2013-2014, Luciano Fiandesio"
... | Python | 0 | @@ -365,18 +365,64 @@
des.io/%3E
+ & John David Pressman %3Chttp://jdpressman.com%3E
%22%0A
-
%0Aimport
@@ -1055,16 +1055,35 @@
fault 1.
+ 0 grabs all pages.
%22)%0Aparse
@@ -1682,35 +1682,37 @@
(HACKERNEWS + '/
-sav
+upvot
ed?id=' + %0A
@@ -2609,19 +2609,21 @@
EWS + '/
-sav
+upvot
ed?id='
|
de24726a95854594306e31d73c233fc4f1cb68ca | fix dumb bug with stripping | convoread/__init__.py | convoread/__init__.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''convoread - a tool for using convore.com via CLI'''
from __future__ import unicode_literals, print_function
import sys
import os
import base64
import json
import traceback
import string
from contextlib import closing
from datetime import datetime
from netrc import net... | Python | 0 | @@ -221,22 +221,8 @@
ack%0A
-import string%0A
from
@@ -459,17 +459,17 @@
__ = '0.
-1
+2
'%0A%0Atry:%0A
@@ -4770,30 +4770,38 @@
d =
-map(string.strip,
+%5Bs and s.strip() for s in
res
-)
+%5D
%0A
|
f66ee17be7bc1c19a41ea8df73b253f991b84377 | Add --set option to version command | src/tagversion/git.py | src/tagversion/git.py | from __future__ import absolute_import, print_function
import os
import sh
import shlex
import sys
from .exceptions import BranchError, VersionError
INITIAL_VERSION = '0.0.0'
MAJOR = 0
MINOR = 1
PATCH = 2
def print_error(buf):
print(buf, file=sys.stderr)
class GitVersion(object):
"""
Get and set gi... | Python | 0 | @@ -3162,32 +3162,144 @@
r.add_argument(%0A
+ '--set',%0A help='set version to the given version'%0A )%0A parser.add_argument(%0A
'--n
@@ -4675,201 +4675,594 @@
def
-run(self):%0A if not self.is_clean:%0A print_error('Abort: working copy not clean.')... |
099a5d5c6b992be74c09c860f8d70ca6f5f41b72 | Rename test | dcor/tests/test_homogeneity.py | dcor/tests/test_homogeneity.py | """Tests of the homogeneity module"""
import unittest
import dcor
import numpy as np
class TestEnergyTest(unittest.TestCase):
"""Tests for the homogeneity energy test function."""
def test_same_distribution_same_parameters(self):
"""
Test that the test works on equal distributions.
... | Python | 0.000014 | @@ -3884,27 +3884,19 @@
fferent_
-distributio
+mea
ns_media
|
06611a0fbd597ad8f52726732eec2a4cf31203a2 | allow session_id to be undefined when starting kernel channels | IPython/html/base/zmqhandlers.py | IPython/html/base/zmqhandlers.py | """Tornado handlers for WebSocket <-> ZMQ sockets."""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
import json
try:
from urllib.parse import urlparse # Py 3
except ImportError:
from urlparse import urlparse # Py 2
try:
from http.cookies import Simp... | Python | 0.000001 | @@ -5291,16 +5291,23 @@
sion_id'
+, False
):%0A
|
91f9df4f83ffae7808d7f68ae5dcf603942e3fd2 | Update Golden_Section.py | Python/Golden_Section.py | Python/Golden_Section.py | """
Golden Section search Implementation
"NOT COMPLETE"
"""
import math as mt
from Nu_Meth import Nu_Meth
class GoldenSection(Nu_Meth):
gR = 1.618
def __init__(self, fptr = None, maxIter = 500, tol = 0.0001):
self._fptr = fptr
self._max_iter = maxIter
self._tol = tol
def ex... | Python | 0 | @@ -184,15 +184,8 @@
fptr
- = None
, ma
|
b07e179e71f2e22dcf7043210130a26277acc713 | Stop calling a nonexistent function | debexpo/plugins/buildsystem.py | debexpo/plugins/buildsystem.py | # -*- coding: utf-8 -*-
#
# buildsystem.py — buildsystem plugin
#
# This file is part of debexpo - http://debexpo.workaround.org
#
# Copyright © 2008 Jonny Lamb <jonny@debian.org>
# Copyright © 2010 Jan Dittberner <jandd@debian.org>
#
# Permission is hereby granted, free of charge, to any person
# obtaining... | Python | 0.00008 | @@ -2457,16 +2457,18 @@
elf.fail
+ed
('unknow
|
0aa97796cf61499ec425e2092ca0086c501938ca | Make the widget warning easier to catch by specifying the module. | IPython/html/widgets/__init__.py | IPython/html/widgets/__init__.py | from .widget import Widget, DOMWidget, CallbackDispatcher, register
from .widget_bool import Checkbox, ToggleButton
from .widget_button import Button
from .widget_box import Box, Popup, FlexBox, HBox, VBox
from .widget_float import FloatText, BoundedFloatText, FloatSlider, FloatProgress, FloatRangeSlider
from .widget_... | Python | 0 | @@ -1433,17 +1433,17 @@
dget%0A%0A#
-w
+W
e use wa
@@ -1517,12 +1517,13 @@
bers
+.
%0A#
-t
+T
he c
@@ -1591,16 +1591,154 @@
ive user
+.%0A# To ignore this warning, do:%0A#%0A# from warnings import filterwarnings%0A# filterwarnings('ignore', module='IPython.html.widgets')%0A
%0Afrom wa
@@ -1905,16 +1905... |
bd4586f9b8fa799c7dc59d86096aada7c79ba03f | add comments to code | arches/app/datatypes/concept_types.py | arches/app/datatypes/concept_types.py | import uuid
from arches.app.models import models
from arches.app.models import concept
from arches.app.datatypes.base import BaseDataType
from arches.app.models.concept import get_preflabel_from_valueid
from arches.app.search.elasticsearch_dsl_builder import Bool, Match, Range, Term, Nested, Exists
from arches.app.util... | Python | 0 | @@ -2858,32 +2858,190 @@
errors = %5B%5D%0A
+ %0A ## first check to see if the validator has been passed a valid UUID,%0A ## which should be the case at this point. return error if not.%0A
try:%0A
@@ -3394,16 +3394,108 @@
errors%0A
+ %0A ## if good UUID, test wh... |
75c9f644a72b4c2937409c4b0bbf28a917f4f0dd | Use np.round to get more accurate float images | husc/io.py | husc/io.py | import os
import numpy as np
import Image
def imwrite(ar, fn, bitdepth=None):
"""Write a np.ndarray 2D volume to a .png or .tif image
Parameters
----------
ar : numpy ndarray, shape (M, N)
The volume to be written to disk.
fn : string
The file name to which to write the volume.
... | Python | 0 | @@ -635,16 +635,38 @@
ser(fn)%0A
+ ar = np.round(ar)%0A
if 0
|
e86e5b1b81253b0e6fa3fb3fb23070b4020ad36b | Fix gdb pretty printer | gdb/kakoune.py | gdb/kakoune.py | import gdb.printing
class ArrayIterator:
def __init__ (self, data, count):
self.data = data
self.count = count
self.index = 0
def __iter__ (self):
return self
def next (self):
if self.index == self.count:
raise StopIteration
index = self.index
... | Python | 0.000002 | @@ -2667,20 +2667,20 @@
r('B
-uffer
+yte
Coord',
+
@@ -2695,21 +2695,19 @@
e::B
-uffer
+yte
Coord$',
@@ -2698,24 +2698,26 @@
ByteCoord$',
+
LineA
@@ -2750,22 +2750,22 @@
er('
-Display
+Char
Coord',
+
'
@@ -2778,23 +2778,20 @@
ne::
-Display
+Char
Coord$',
@@ -2782,24 +2782,2... |
f174ce8035e71a57eb0ea5fc964b9c91850b941d | Fix pidfile name | anvil/runners/fork.py | anvil/runners/fork.py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (C) 2012 Yahoo! 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.or... | Python | 0.998575 | @@ -2674,23 +2674,23 @@
.isfile(
-pid_fil
+filenam
e):%0A
|
1be9fef8ecd2ee15e1df3004beb4b3b1e9d11f23 | fix a pylint warning, dangerous-default-value | anyconfig/template.py | anyconfig/template.py | #
# Jinja2 (http://jinja.pocoo.org) based template renderer.
#
# Author: Satoru SATOH <ssato redhat.com>
# License: MIT
#
"""Template rendering module for jinja2-based template config files.
"""
import logging
import os
import anyconfig.compat
LOGGER = logging.getLogger(__name__)
SUPPORTED = False
try:
import jin... | Python | 0.000041 | @@ -1858,19 +1858,12 @@
ths=
-%5Bos.curdir%5D
+None
):%0A
@@ -2223,32 +2223,83 @@
%22bbb%22'%0A %22%22%22%0A
+ if paths is None:%0A paths = %5Bos.curdir%5D%0A%0A
env = tmpl_e
|
515a11a8c22916448c561af146a3b805297b3585 | Use single index in the returned DataFrame if domain is one-dimensional | gdx2py/gams.py | gdx2py/gams.py | """Module contains classes for handling GAMS symbols"""
__author__ = "Erkka Rinne"
from typing import Sequence, Mapping
class _GAMSSymbol(object):
"""Abstarct class for handling GAMS symbols
Attributes:
expl_text (str): Symbol explanatory text
"""
def __init__(self, expl_text: str):
... | Python | 0.000009 | @@ -6565,22 +6565,20 @@
-return
+df =
pd.Seri
@@ -6627,16 +6627,222 @@
self.expl_text)%0A
+ if self.domain:%0A if isinstance(df.index, pd.MultiIndex):%0A df.index.names = self.domain%0A else:%0A df.index.name = self.domain%5B0%5D%0A%0A retur... |
b5a88bf8a1ab6d0cc2f8fd94a896b6b60450b9ba | Update tests.py | django_social_share/tests/tests.py | django_social_share/tests/tests.py | from django.template import Context, Template
from django.test import TestCase, RequestFactory
class TemplateTagsTest(TestCase):
def setUp(self):
self.factory = RequestFactory()
self.context = Context({
'url': 'http://example.com',
'text': 'example',
'subject':... | Python | 0.000001 | @@ -4099,34 +4099,32 @@
nk%22%3E%3C/a%3E%5Cn%3C/div%3E
-%5Cn
'%0A self.a
@@ -4438,28 +4438,29 @@
ssertEqual(result, expected)
+%0A
|
5edadc05ce3346b7c21ddc0af890d57fd84ab392 | fix for cms 3.5+ | djangocms_misc/tests/test_basic.py | djangocms_misc/tests/test_basic.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from cms.api import create_page, create_title, add_plugin
from django.contrib.auth.models import User
from django.test import TestCase, Client, modify_settings
from djangocms_misc.tests.test_app.cms_plugins import TestPlugin
class BasicAppTests(TestCas... | Python | 0 | @@ -2221,32 +2221,34 @@
ains(response, '
+:
en field1', 6)%0A%0A
@@ -2247,9 +2247,9 @@
1',
-6
+5
)%0A%0A
|
cb1f1c03daa8b3a04efb45b9658fa88bd53d3352 | Add thisDir for copying the config file. | ct_ng_runner.py | ct_ng_runner.py | #!/usr/bin/env python3
# Copyright 2015 wink saville
#
# 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 | @@ -2851,32 +2851,98 @@
dirs(code_dir)%0A%0A
+ thisDir = os.path.dirname(os.path.realpath(__file__))%0A
src
@@ -2960,16 +2960,19 @@
bspath('
+%7B%7D/
config.%7B
@@ -2973,32 +2973,41 @@
nfig.%7B%7D'.format(
+thisDir,
self.args.target
|
2d1ee218d5bd49835901e9669b3a817deaa53e92 | Improve test docstring | game_of_thrones/test/test_main.py | game_of_thrones/test/test_main.py | from game_of_thrones import MarkovChain
from itertools import islice
import unittest
import string
# Python 3
try:
from unittest import mock
except ImportError:
import mock
class MarkovChainTest(unittest.TestCase):
def setUp(self):
self.text = 'You know nothing Jon Snow!'
self.transitio... | Python | 0.000015 | @@ -5122,32 +5122,114 @@
o_spaces(self):%0A
+ %22%22%22%0A Make sure there are no transitions between words.%0A %22%22%22%0A
mc = Mar
|
c05aac2e2de1f961a278eed134389b57f68e7a82 | Remove superfluous conversion to list and back | adhocracy/lib/auth/authorization.py | adhocracy/lib/auth/authorization.py | import logging
from pylons import tmpl_context as c
from pylons import request
from sqlalchemy import or_
from sqlalchemy.orm import eagerload
from sqlalchemy.orm.exc import NoResultFound
from repoze.what.predicates import has_permission as what_has_permission
from repoze.what.adapters import SourceError
from repoze... | Python | 0 | @@ -1238,13 +1238,8 @@
s =
-list(
supe
@@ -1289,29 +1289,24 @@
-
self)._find_
@@ -1326,17 +1326,16 @@
entials)
-)
%0A
@@ -1349,12 +1349,9 @@
ns.a
-ppen
+d
d(u%22
@@ -1381,20 +1381,16 @@
urn
-set(
sections
)%0A%0A
@@ -1385,17 +1385,16 @@
sections
-)
%0A%0A de
|
049d08761d302039463ce70e959d5654343789dd | convert smtp_port to int | src/adhocracy/lib/mail.py | src/adhocracy/lib/mail.py | import email
from email.header import Header
from email.mime.text import MIMEText
import logging
import smtplib
from time import time
import textwrap
from pylons.i18n import _
from adhocracy import config
from adhocracy.lib import helpers as h, version
log = logging.getLogger(__name__)
ENCODING = 'utf-8'
def send(... | Python | 0.000001 | @@ -430,24 +430,28 @@
config.get
+_int
('smtp_port'
|
2088ab3ddafa2ec092bf9ab447b5ed57f07c67d8 | Fix error message for invalid API Key from environment variable | safety/cli.py | safety/cli.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import sys
import click
from safety import __version__
from safety import safety
from safety.formatter import report
import itertools
from safety.util import read_requirements, read_vulnerabilities
from safety.errors import DatabaseFetchError, DatabaseFileN... | Python | 0.999997 | @@ -569,32 +569,57 @@
ey%22, default=%22%22,
+ envvar=%22SAFETY_API_KEY%22,
%0A h
|
544f394c9e53050157f55033c6f4059c647395d5 | Set logic to fix issues with faulty keys due to a bug in m2crypto | salt/crypt.py | salt/crypt.py | '''
The crypt module manages all of the cyptogophy functions for minions and
masters, encrypting and decrypting payloads, preparing messages, and
authenticating peers
'''
# Import python libs
import os
import tempfile
# Import M2Crypto libs
from M2Crypto import RSA
# Import zeromq libs
import zmq
# Import salt utils
i... | Python | 0 | @@ -647,27 +647,36 @@
oo_pass(self
+, data=''
):%0A
-
'''%0A
@@ -916,44 +916,118 @@
-if not os.path.isfile(self.rsa_path)
+key = None%0A try:%0A key = RSA.load_key(self.rsa_path, callback=self.__foo_pass)%0A except
:%0A
@@ -1240,16 +1240,20 @@
b_path)%0A
+
|
b908f62ecc868618b49433db378e7986bdb3d271 | Remove whitespace https://www.python.org/dev/peps/pep-0008/#whitespace-in-expressions-and-statements | packages/dash-core-components/setup.py | packages/dash-core-components/setup.py | from setuptools import setup
exec (open('dash_core_components/version.py').read())
setup(
name='dash_core_components',
version=__version__,
author='Chris Parmer',
author_email='chris@plot.ly',
packages=['dash_core_components'],
include_package_data=True,
license='MIT',
description='Das... | Python | 0.999295 | @@ -27,17 +27,16 @@
up%0A%0Aexec
-
(open('d
|
cc50a1ed2c032361166639642e8ab977bd7c8a5e | use zip64 | corehq/blobs/zipdb.py | corehq/blobs/zipdb.py | from __future__ import absolute_import
from os.path import commonprefix, join, sep
import zipfile
from corehq.blobs import DEFAULT_BUCKET
from corehq.blobs.exceptions import BadName
from corehq.blobs.interface import AbstractBlobDB, SAFENAME
class ZipBlobDB(AbstractBlobDB):
"""Blobs stored in zip file. Used for ... | Python | 0.000001 | @@ -954,16 +954,33 @@
ame, 'a'
+, allowZip64=True
) as z:%0A
|
c30fff32d5249d603b9d21072e48950538941b5b | remove AuthenticationHelper | gw2api/v2/account.py | gw2api/v2/account.py | import urllib
import warnings
from .endpoint import EndpointBase, Endpoint
import gw2api
class AuthenticationHelper(object):
authorization_url = "https://account.guildwars2.com/oauth2/authorization"
token_url = "https://account.guildwars2.com/oauth2/token"
def __init__(self, client_id, client_secret, r... | Python | 0.000002 | @@ -1,35 +1,4 @@
-import urllib%0Aimport warnings%0A%0A
from
@@ -43,1401 +43,8 @@
nt%0A%0A
-import gw2api%0A%0A%0Aclass AuthenticationHelper(object):%0A authorization_url = %22https://account.guildwars2.com/oauth2/authorization%22%0A token_url = %22https://account.guildwars2.com/oauth2/token%22%0A%0A def __i... |
c425046d662a8554a00267184216d0f883dbc3cf | Update use_four.py | Four/use_four.py | Four/use_four.py | import os
import math
import string
dx=-403.275
dy=178.190
rot_s=-10.300182
k=1.00009495477874
def fourptrans(x0in,y0in,dxin,dyin,rotin,kin):
rot_rad=rotin/3600./180.*math.pi
sinr=math.sin(rot_rad)
cosr=math.cos(rot_rad)
x=dxin+kin*x0in*cosr-kin*y0in*sinr
y=dyin+kin*x0in*sinr+kin*y0in*cosr
retur... | Python | 0.000002 | @@ -330,18 +330,18 @@
1=open(%22
-bz
+in
.txt%22,%22r
@@ -356,14 +356,8 @@
en(%22
-bz2000
out.
|
42b47493b771d438c2dd1fb2dff64d26dd69e84b | fix default k-NN config to utilize multiple CPU cores | jubakit/classifier.py | jubakit/classifier.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
import jubatus
from .base import GenericSchema, BaseDataset, BaseService, GenericConfig
from .loader.array import ArrayLoader, ZipArrayLoader
from .loader.sparse import SparseMatrixLoader
from .loader.chain imp... | Python | 0.000001 | @@ -5604,16 +5604,87 @@
eter': %7B
+%0A 'threads': -1, # use number of logical CPU cores%0A
'hash_nu
@@ -5689,16 +5689,26 @@
num': 64
+,%0A
%7D,%0A
|
cf10474504dc3d4902fc476231d0b811f36aba21 | Update run_script.py | run_script.py | run_script.py | import OpenPNM
import scipy as sp
#==============================================================================
'''Build Topological Network'''
#==============================================================================
pn = OpenPNM.Network.Cubic(loglevel=20,name='net')
pn.generate(divisions=[20, 20, 20],... | Python | 0.000002 | @@ -3901,117 +3901,9 @@
--%0D%0A
-%3C%3C%3C%3C%3C%3C%3C HEAD%0AOpenPNM.Visualization.Vtp.write(filename='test.vtp',fluids=%5Bair,water,pn%5D,network=pn)%0D%0A%0D%0A=======
+%0D
%0A#Op
@@ -4071,40 +4071,8 @@
%5D)%0D%0A
-%3E%3E%3E%3E%3E%3E%3E upstream/feature/NewPNM%0A
%0D%0A%0D%0A
|
647358cd76ccfab7f6a2b3edc9374d4b31c1a2b5 | Fix mock multiple_publish | src/zeit/cms/workflow/mock.py | src/zeit/cms/workflow/mock.py | from zeit.cms.workflow.interfaces import CAN_PUBLISH_SUCCESS
from zeit.cms.workflow.interfaces import CAN_PUBLISH_ERROR
from zeit.cms.workflow.interfaces import PRIORITY_DEFAULT
from zeit.cms.workflow.interfaces import PRIORITY_LOW
import zeit.cms.interfaces
import zeit.cms.workflow.interfaces
import zope.component
imp... | Python | 0.000007 | @@ -665,38 +665,105 @@
LT, async=True,
-**kw):
+object=None, **kw):%0A if object:%0A self.context = object
%0A can_pub
@@ -2172,13 +2172,8 @@
ish(
-obj,
prio
@@ -2183,16 +2183,21 @@
y, async
+, obj
)%0A%0A%0Aclas
|
05be61642f4136a358be1ab00e0f711776a6d208 | modify abstract method | FukuML/MLBase.py | FukuML/MLBase.py | #encoding=utf8
from abc import ABCMeta, abstractmethod
class Learner(object):
__metaclass__ = ABCMeta
status = 'empty'
train_X = []
train_Y = []
W = []
data_num = 0
data_demension = 0
tune_times = 0
test_X = []
test_Y = []
@abstractmethod
def __init__(self):
... | Python | 0.00035 | @@ -1332,44 +1332,8 @@
self
-, updates=50, mode='random', alpha=1
):%0A
|
3d6f57a4dc1d356ca7841b1729522ac064eb4453 | Replace get_analysis_components with get_configuration_filename | dakota/utils.py | dakota/utils.py | #! /usr/bin/env python
"""Helper functions for processing Dakota parameter and results files."""
import subprocess
import re
import yaml
def is_dakota_installed():
"""Check whether Dakota is installed and in the execution path.
Returns
-------
bool
True if Dakota is callable.
"""
... | Python | 0.00012 | @@ -1045,35 +1045,38 @@
def get_
-analysis_components
+configuration_filename
(params_
@@ -1105,260 +1105,55 @@
the
-analysis components from a Dakota parameters file.%0A%0A The analysis components are returned as a list. First is the name%0A of the model being run by Dakota, followed by dicts containing an%0... |
d01755bace85dc89755bb9a14b2965db913abbe9 | Update boost_python.py | bin/conda/scons-tools/boost_python.py | bin/conda/scons-tools/boost_python.py | ## Copyright [2017-2018] UMR MISTEA INRA, UMR LEPSE INRA, ##
## UMR AGAP CIRAD, EPI Virtual Plants Inria ##
## Copyright [2015-2016] UMR AGAP CIRAD, EPI Virtual Plants Inria ##
## ##
## This file is ... | Python | 0.000017 | @@ -4763,32 +4763,33 @@
d(LINKFLAGS = '@
+%22
' + response_fil
@@ -4789,16 +4789,22 @@
nse_file
+ + '%22'
)%0A
|
8b0deb9a130cad957388aff13676f4f123a494a6 | fix print format string for create new service | scan_repos.py | scan_repos.py | #!/usr/bin/env python
"""
:copyright: (c) 2014 by Mike Taylor
:license: MIT, see LICENSE for more details.
Given a list of GitHub organizations, verify...
- web hooks for a repo are present
- there are no duplicate web hooks
"""
from __future__ import print_function
import os, sys
import json
import argparse
f... | Python | 0.000005 | @@ -3458,32 +3458,35 @@
info('%25s %25s %25s
+%25s
created service'
|
471c82d81e3bb0000e9c65ec94d9b5cb80856738 | I am a idiot. Returned wrong number | General_Maths.py | General_Maths.py | """
Collection of general maths algorithims.
"""
def Sieve_Of_Eratosthenes(limit):
"""Returns list of primes up to limit using
Sieve of Eratosthenes
"""
primes = list(range(2, limit))
for prime in primes:
if not prime:
continue
for num in range(prime*prime, limit, p... | Python | 0.999999 | @@ -884,16 +884,19 @@
return n
+ewN
um%0A%0A%0Adef
@@ -1007,16 +1007,45 @@
i(100))%0A
+ print(Reverse_Int(123))%0A%0A
%0Aif __na
|
63bf9c267ff891f1a2bd1f472a5d77f8df1e0209 | Split IAM template tests with paramtrize | tests/iam/test_iam_valid_json.py | tests/iam/test_iam_valid_json.py | """Test IAM Policy templates are valid JSON."""
import jinja2
from foremast.iam.construct_policy import render_policy_template
from foremast.utils.templates import LOCAL_TEMPLATES
def iam_templates():
"""Generate list of IAM templates."""
jinjaenv = jinja2.Environment(loader=jinja2.FileSystemLoader([LOCAL_TE... | Python | 0 | @@ -49,21 +49,48 @@
import j
-inja2
+son%0A%0Aimport jinja2%0Aimport pytest
%0A%0Afrom f
@@ -616,21 +616,286 @@
_name%0A%0A%0A
-%0A
+@pytest.mark.parametrize(argnames='template_name', argvalues=iam_templates())%0Adef test_all_iam_templates(template_name):%0A %22%22%22Verify all IAM templates render as proper ... |
eab6c905295dba488f97f79da391636501b6f0a9 | Fix typo | docs/userguide/app_demos.py | docs/userguide/app_demos.py | #app_demos
from genuserguide import *
Appendix1("ReportLab Demos")
disc("""In the subdirectories of reportlab/demos there are a number of working examples showing
almost all aspects of reportLab in use.""")
heading2("""Odyssey""")
disc("""
The three scripts odyssey.py, dodyssey.py and fodyssey.py all take the file od... | Python | 0.999999 | @@ -923,17 +923,17 @@
and dod
-u
+y
ssey.py
|
5e1e088611d6336066f6b50ef070abdb59469e6e | Add redirect for old paste tags | kai/config/routing.py | kai/config/routing.py | """Routes configuration
The more specific and detailed routes should be defined first so they
may take precedent over the more generic routes. For more information
refer to the routes manual at http://routes.groovie.org/docs/
"""
from pylons import config
from routes import Mapper
wiki = 'http://wiki.pylonshq.com'
d... | Python | 0 | @@ -4882,32 +4882,102 @@
action='index')%0A
+ map.redirect('/pasties/pastetags/%7Btag%7D', '/pasties/by_tag/%7Btag%7D')%0A
map.connect(
|
e4968d033d344016b7b101d04572f01bfe9e0b26 | make flake8 happy | har2tree/__init__.py | har2tree/__init__.py | from .parser import CrawledTree
from .nodes import HostNode, URLNode, HarTreeNode
from .har2tree import Har2Tree, HarFile, Har2TreeLogAdapter
from .helper import Har2TreeError
import logging
logging.getLogger(__name__).addHandler(logging.NullHandler())
| Python | 0.000003 | @@ -24,16 +24,24 @@
wledTree
+ # noqa
%0Afrom .n
@@ -82,16 +82,24 @@
TreeNode
+ # noqa
%0Afrom .h
@@ -122,17 +122,16 @@
ar2Tree,
-
HarFile
@@ -150,16 +150,24 @@
gAdapter
+ # noqa
%0Afrom .h
@@ -192,16 +192,24 @@
reeError
+ # noqa
%0A%0Aimport
|
1d221aa91c3353709cf6fda501b1e644eb208d04 | Update gem test for 2016.11 | tests/integration/modules/gem.py | tests/integration/modules/gem.py | # -*- coding: utf-8 -*-
'''
Integration tests for Ruby Gem module
'''
# Import Python libs
from __future__ import absolute_import
# Import Salt Testing libs
from salttesting import skipIf
from salttesting.helpers import ensure_in_syspath, destructiveTest
ensure_in_syspath('../../')
# Import salt libs
import integrat... | Python | 0 | @@ -3781,17 +3781,17 @@
%5B'0.19.
-1
+4
', '0.17
|
e980d8a42b0856f1911c2d23df3906a3d5a28552 | return users list from response | umapi/api.py | umapi/api.py | import requests
import json
from error import UMAPIError, UMAPIRetryError, UMAPIRequestError, ActionFormatError
class UMAPI(object):
def __init__(self, endpoint, auth):
self.endpoint = str(endpoint)
self.auth = auth
def users(self, org_id, page=0):
return self._call('/users/%s/%d' % (... | Python | 0.001367 | @@ -333,32 +333,41 @@
), requests.get)
+%5B'users'%5D
%0A%0A def groups
|
57774a4f6f9bead4f58b2b82cc6ae0cdd2309ebd | remove invalid options | staccato/twitter.py | staccato/twitter.py | from requests_oauthlib import OAuth1Session
from json import JSONDecoder
from staccato import utils
class Twitter():
API = "https://api.twitter.com/1.1/"
def __init__(self, conf, session=None):
self.conf = conf
self.session = session
def auth(self, consumer_key, consumer_secret, access_t... | Python | 0.000687 | @@ -180,14 +180,8 @@
elf,
- conf,
ses
@@ -196,33 +196,8 @@
e):%0A
- self.conf = conf%0A
|
d9ff0514f7f427553e8740f83e063545ccae20d0 | fix bug | gpxtrackposter/calendar_drawer.py | gpxtrackposter/calendar_drawer.py | """Draw a calendar poster."""
# Copyright 2016-2019 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
import calendar
import datetime
import locale
import svgwrite
from gpxtrackposter import utils
from gpxtrack... | Python | 0.000001 | @@ -2833,32 +2833,74 @@
/ 11,%0A )%0A
+%09%0A%09# Chinese weekday keyword is the third.
%0A keyword
@@ -2948,15 +2948,15 @@
==
-'
+%22
zh_CN
-'
+%22
:%0A
@@ -2979,17 +2979,17 @@
d_num =
-3
+2
%0A
|
0e4f6526a7f9db1054058851309f9e6ede0948b5 | Update do_scripts.py | digital_ocean_scripts/do_scripts.py | digital_ocean_scripts/do_scripts.py | # Digital Ocean Functions
import requests
import os
# For this to work, the digitalocean DO_API_KEY and DO_CLIENT_KEY
# should be set a environmental variables
# linux examples in ~./bashrc
# export DO_API_KEY=###########################
# export DO_CLIENT_KEY=#########################
# export DO_DEFAULT_SSH_KEY=###... | Python | 0.000003 | @@ -98,22 +98,42 @@
_KEY
- and DO_CLIENT
+, DO_CLIENT_KEY and DO_DEFAULT_SSH
_KEY
@@ -150,16 +150,17 @@
be set a
+s
environ
|
affd1a18915a81379133183617e91fe6adb26dfd | Update k-th-symbol-in-grammar.py | Python/k-th-symbol-in-grammar.py | Python/k-th-symbol-in-grammar.py | # Time: O(logn)
# Space: O(1)
# On the first row, we write a 0.
# Now in every subsequent row,
# we look at the previous row and replace each occurrence of 0 with 01,
# and each occurrence of 1 with 10.
#
# Given row N and index K, return the K-th indexed symbol in row N.
# (The values of K are 1-indexed.) (1 indexed... | Python | 0.000002 | @@ -9,16 +9,51 @@
O(logn)
+ = O(1) because n is 32-bit integer
%0A# Space
|
a5406bb7c3e655300fe2775bb47e69be6850b2a4 | Load modules more lazily. | kay/utils/__init__.py | kay/utils/__init__.py | # -*- coding: utf-8 -*-
"""
Kay utilities.
:Copyright: (c) 2009 Accense Technology, Inc.
Takashi Matsuo <tmatsuo@candit.jp>,
All rights reserved.
:license: BSD, see LICENSE for more details.
"""
import os
import logging
from google.appengine.api import users
from google.ap... | Python | 0 | @@ -264,90 +264,8 @@
ng%0A%0A
-from google.appengine.api import users%0Afrom google.appengine.api import memcache%0A%0A
from
@@ -361,85 +361,8 @@
ound
-%0Afrom werkzeug.urls import url_quote%0Afrom werkzeug.utils import import_string
%0A%0Afr
@@ -902,16 +902,60 @@
.%0A %22%22%22%0A
+ from google.appengine.api im... |
77fbb9547905fdecce23b80d1e33d847d3006345 | Make pybb cmake_build check to see if build directory exists | deps/buildcore/scripts/pybb.py | deps/buildcore/scripts/pybb.py | #! /usr/bin/env python3
#
# Copyright 2016 - 2021 gary@drinkingtea.net
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# "Python Busy Box" - adds cross platfor... | Python | 0 | @@ -873,16 +873,97 @@
arget):%0A
+ if not os.path.isdir(base_path):%0A # nothing to build%0A return 0%0A
for
@@ -982,32 +982,32 @@
dir(base_path):%0A
-
args = %5B
@@ -1212,21 +1212,18 @@
-sys.exit(
+return
err
-)
%0A%0Ade
@@ -1436,16 +1436,22 @@
%0A
+ err =
cmake_b
@... |
14fd9e86e868f7c0717723e2c06aa0cac8f613f9 | Fix spelling in a doc string | heat/common/crypt.py | heat/common/crypt.py | #
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# ... | Python | 0.999999 | @@ -1778,16 +1778,17 @@
lst it m
+a
y seem t
|
37524f722b8dededdf3b6c35697f6406486049d1 | Use sys.platform | metatools/entrypoints/search.py | metatools/entrypoints/search.py | """This module deals with finding absolute paths to executables or apps to run.
It is imperative that we return absolute paths so that the executables will be
able to bootstrap a proper development environment.
Apps are searched for within ``key_base/applications`` in all tools listed in
:envvar:`KS_PYTHON_SITES` and ... | Python | 0.000004 | @@ -394,16 +394,27 @@
.%0A%0A%22%22%22%0A%0A
+import sys%0A
import o
@@ -1904,33 +1904,41 @@
if
-os.uname()%5B0%5D == %22D
+sys.platform.startswith(%22d
arwin%22
+)
:%0A
|
b40ca78355da8b555e363febed72d5bacf132d5d | bump taglib-sharp to 2.0.3.7 | build/bundle/packages/taglib-sharp.py | build/bundle/packages/taglib-sharp.py | Package ('taglib-sharp', '2.0.3.6',
sources = [ 'http://download.banshee-project.org/%{name}/%{version}/%{name}-%{version}.tar.gz' ],
configure_flags = [ '--disable-docs' ]
)
| Python | 0 | @@ -29,9 +29,9 @@
0.3.
-6
+7
',%0A%09
|
67d1641a11a9a433554f04ca5cb409541679d72d | Add an explicit call to dials.refine Set weighting_strategy.delpsi_constant=1000000 (100x normal) | scratch/asb/index_thermolysin_cbfs.py | scratch/asb/index_thermolysin_cbfs.py | from __future__ import division
from libtbx import easy_run
import sys, os
num_procs = 1
def do_work(path):
root = os.path.dirname(path)
basename = os.path.splitext(os.path.basename(path))[0]
datablock = os.path.join(root, basename + "_datablock.json")
spots = os.path.join(root, basename + "_... | Python | 0.000004 | @@ -331,27 +331,27 @@
kle%22)%0A
-reflections
+indexed
= os.pa
@@ -377,27 +377,23 @@
ame + %22_
-reflections
+indexed
.pickle%22
@@ -461,16 +461,79 @@
.json%22)%0A
+ refined = os.path.join(root, basename + %22_refined.json%22)%0A
integr
@@ -1261,27 +1261,23 @@
iments,
-reflections
+indexed
)%0A ... |
83aab54c658952b9999208066f2a005a2ed4ee7d | allow users to use the admin site based on Futurice group membership | scripts/import-futurice-users-impl.py | scripts/import-futurice-users-impl.py | #! /usr/bin/env python3
# https://docs.djangoproject.com/en/1.7/releases/1.7/#standalone-scripts
import django
django.setup()
import argparse
from django.contrib.auth.models import User
import json
import urllib.request
from secrets import FUM_API_TOKEN
from vimma.models import Project
import vimma.util
def parse_... | Python | 0 | @@ -181,16 +181,47 @@
rt User%0A
+from django.db.models import Q%0A
import j
@@ -2397,37 +2397,16 @@
mbers):%0A
- try:%0A
@@ -2457,36 +2457,32 @@
ile%0A
-
vimma_prj.profil
@@ -2503,67 +2503,8 @@
rof)
-%0A except User.DoesNotExist:%0A pass
%0A%0A ... |
ce26c08cc0b6d2907baddb694a42ef99fee05f52 | return more than just visible | satellites.py | satellites.py | # Symphony of the Satellites
# https://hackpad.com/Symphony-of-the-Satellites-c0aGX4vfmTN
import math
import requests
import ephem
import datetime
from math import degrees
import json
from calendar import timegm
def chunks(l, n):
""" Yield successive n-sized chunks from l"""
for i in xrange(0, len(l), n):
... | Python | 0 | @@ -353,19 +353,49 @@
ellites(
+only_visible = True, now=None
):%0A
-
SAT_
@@ -724,25 +724,33 @@
+if only_
visible
- = %5B%5D%0A
+:%0A
+
coun
@@ -751,24 +751,28 @@
count = 0%0A
+
for tle
@@ -799,16 +799,20 @@
+
+
if len(t
@@ -833,16 +833,20 @@
+
conti... |
f178e385bb2ec305157064c1612ffa9267206b77 | add unit tests of DNS and Traceroute | centinel/unit_test/test_traceroute.py | centinel/unit_test/test_traceroute.py | __author__ = 'xinwenwang'
import pytest
from ..primitives import traceroute
class TestTraceRoute:
#1. test good case
def test_traceroute_valid_domain(self):
domain = 'www.google.com'
result = traceroute.traceroute(domain)
#.1 test traceroute results is not none
assert result i... | Python | 0 | @@ -39,17 +39,24 @@
st%0Afrom
-.
+centinel
.primiti
|
419f5f167d2a6272864e1f087ecf29f68a04fea9 | Remove redundant type check | chainer/functions/loss/contrastive.py | chainer/functions/loss/contrastive.py | import numpy
from chainer import cuda
from chainer import function
from chainer.utils import type_check
class Contrastive(function.Function):
"""Contrastive loss function."""
def __init__(self, margin):
self.margin = float(margin)
def check_type_forward(self, in_types):
type_check.expe... | Python | 0.000004 | @@ -546,58 +546,8 @@
pe,%0A
- x0_type.shape%5B0%5D == x1_type.shape%5B0%5D,%0A
@@ -1859,25 +1859,24 @@
stive loss.%0A
-%0A
It takes
@@ -2175,17 +2175,16 @@
(N, K).%0A
-%0A
.. m
@@ -2319,17 +2319,16 @@
%5Cright)%0A
-%0A
wher
@@ -2511,17 +2511,16 @@
-batch.%0A
-%0A
Args
@@ -2706,... |
55e0549e6c5ecbc120d7dd2c81ba230574871f4d | Fix rest.test_reports | akvo/rsr/tests/rest/test_reports.py | akvo/rsr/tests/rest/test_reports.py | # -*- coding: utf-8 -*-
"""
Akvo RSR is covered by the GNU Affero General Public License.
See more details in the license.txt file located at the root folder of the Akvo RSR module.
For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.
"""
import json
from django.conf impor... | Python | 0.000001 | @@ -731,16 +731,109 @@
_GROUPS)
+%0A # Delete any reports created in the migrations%0A Report.objects.all().delete()
%0A%0A de
|
d8f878a4120b7f6e5beb30ba11b88d65f127d861 | Revert "TST: cymru: fix changed ASN" | intelmq/tests/bots/experts/cymru_whois/test_expert.py | intelmq/tests/bots/experts/cymru_whois/test_expert.py | # -*- coding: utf-8 -*-
import unittest
import intelmq.lib.test as test
from intelmq.bots.experts.cymru_whois.expert import CymruExpertBot
EXAMPLE_INPUT = {"__type": "Event",
"source.ip": "93.184.216.34", # example.com
"time.observation": "2015-01-01T00:00:00+00:00",
... | Python | 0 | @@ -3427,12 +3427,12 @@
n%22:
-1103
+6939
,%0A
@@ -3470,47 +3470,48 @@
%22: %22
-SURFNET-NL SURFnet, The Netherlands, NL
+HURRICANE - Hurricane Electric, Inc., US
%22,%0A
|
c6d6bcd85c9ddf152778d92081cc7ad912d3373f | Test arguments | datasciencebox/tests/core/test_instance.py | datasciencebox/tests/core/test_instance.py | import pytest
from datasciencebox.core.settings import Settings
from datasciencebox.core.cloud.instance import Instance, BareInstance, AWSInstance, GCPInstance
settings = Settings()
def test_new_bare():
instance = Instance.new(settings=settings)
assert isinstance(instance, BareInstance)
instance = Inst... | Python | 0.000001 | @@ -159,29 +159,182 @@
ce%0A%0A
-settings = Settings()
+default_username = 'default_username'%0Adefault_keypair = 'default_keypair'%0A%0Asettings = Settings()%0Asettings%5B'USERNAME'%5D = default_username%0Asettings%5B'KEYPAIR'%5D = default_keypair
%0A%0A%0Ad
@@ -539,16 +539,143 @@
= 'myid'
+%0A assert instance.p... |
71e65eb2aeda3cd4b27cbb2f945954ada10bb516 | fix variable name of eval_imagenet | examples/classification/eval_imagenet.py | examples/classification/eval_imagenet.py | import argparse
import sys
import time
import numpy as np
import chainer
import chainer.functions as F
from chainer import iterators
from chainercv.datasets import directory_parsing_label_names
from chainercv.datasets import DirectoryParsingLabelDataset
from chainercv.links import FeaturePredictor
from chainercv.lin... | Python | 0.999981 | @@ -2194,20 +2194,21 @@
%0A gt_
-prob
+label
s, = gt_
@@ -2295,20 +2295,21 @@
list(gt_
-prob
+label
s))).dat
|
f570a92057cb5e7254a5b416df23feb968f8af4e | add pretrained_model ooption to eval_imagenet | examples/classification/eval_imagenet.py | examples/classification/eval_imagenet.py | import argparse
import random
import numpy as np
import chainer
import chainer.links as L
import chainer.functions as F
from chainer import iterators
from chainer import training
from chainer.training import extensions
from chainercv.datasets import ImageFolderDataset
from chainercv.links import VGG16Layers
from ch... | Python | 0.000001 | @@ -549,32 +549,78 @@
ation dataset')%0A
+ parser.add_argument('--pretrained_model')%0A
parser.add_a
|
051761ec2120d026bb70b4492b6009d08391a89b | Update redbluedoors.py | gym_minigrid/envs/redbluedoors.py | gym_minigrid/envs/redbluedoors.py | from gym_minigrid.minigrid import *
from gym_minigrid.register import register
class RedBlueDoorEnv(MiniGridEnv):
"""
Single room with red and blue doors on opposite sides.
The red door must be opened before the blue door to
obtain a reward.
"""
def __init__(self, size=8):
self.size = ... | Python | 0 | @@ -418,17 +418,17 @@
x_steps=
-1
+2
0*size*s
|
cf0d127d328fbfc379f02ebc2b31606c736a3aa1 | check name change | kfhlog/views/check.py | kfhlog/views/check.py | from pyramid.httpexceptions import HTTPNotFound
from pyramid.view import view_config
from ..models import Qso, Band, Mode, Profile, dbtools
def _check(dbsession, call, profile=None):
call = dbtools.formatters.call_formatter(call)
tmp = None
req_type = None
addrowlink = False
name = ''
if prof... | Python | 0.000004 | @@ -772,24 +772,25 @@
call).all()%0A
+%0A
if not t
@@ -1102,16 +1102,36 @@
= True%0A%0A
+ if profile:%0A
rowh
@@ -1158,30 +1158,168 @@
ery(
-req_type).get(id).name
+Mode).get(id).name for id in row%7D%0A else:%0A rowh = %7Bid: %22%25s (%25s)%22 %25 (dbsession.query(Profile).get(id).call, d... |
2471ac5cfe898653e5d274d3e02d0006c768b3fe | Fix style | cvrminer/app/views.py | cvrminer/app/views.py | """Views for cvrminer app."""
from flask import render_template
from . import app
@app.route("/")
def index():
"""Return index page of for app."""
return render_template('base.html')
@app.route("/smiley/")
def smiley():
"""Return smiley page of for app."""
table = app.smiley.db.tables.smiley.head(... | Python | 0.000001 | @@ -387,10 +387,8 @@
=table)%0A
-%0A%0A
|
9d82c1c195dd52956389ad922e01a5e8353fca09 | Use tcatdbuser | helpers/urlexpand.py | helpers/urlexpand.py | import sys
import gevent
from gevent import socket
from gevent.pool import Pool
from gevent.timeout import Timeout
import urlparse
import sys
from random import shuffle
import MySQLdb
import time
from collections import deque
import re
import os.path
from gevent import monkey
monkey.patch_all(thread=False)
import req... | Python | 0.000002 | @@ -450,12 +450,18 @@
= '
-root
+tcatdbuser
'%0Adb
@@ -475,16 +475,8 @@
= '
-Y9vEwrUh
'%0Adb
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.