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 |
|---|---|---|---|---|---|---|---|
5e07bc38c1385e3dc8b02ff1da85831a73a1d287 | Use native date value in Twente Milieu sensors (#59897) | homeassistant/components/twentemilieu/sensor.py | homeassistant/components/twentemilieu/sensor.py | """Support for Twente Milieu sensors."""
from __future__ import annotations
from dataclasses import dataclass
from datetime import date
from twentemilieu import WasteType
from homeassistant.components.sensor import SensorEntity, SensorEntityDescription
from homeassistant.config_entries import ConfigEntry
from homeas... | Python | 0 | @@ -532,59 +532,8 @@
ack%0A
-from homeassistant.helpers.typing import StateType%0A
from
@@ -3252,16 +3252,18 @@
-%3E
-StateTyp
+date %7C Non
e:%0A
@@ -3319,20 +3319,14 @@
-if pickup :=
+return
sel
@@ -3387,64 +3387,5 @@
ype)
-:%0A return pickup.isoformat()%0A return None
%0A
|
53ee96c293806d988af83d4735c350687ad92af1 | Set defaults for smtp search | ibmsecurity/isam/aac/server_connections/smtp.py | ibmsecurity/isam/aac/server_connections/smtp.py | import logging
import ibmsecurity.utilities.tools
logger = logging.getLogger(__name__)
def get_all(isamAppliance, check_mode=False, force=False):
"""
Retrieving a list of all SMTP server connections
"""
return isamAppliance.invoke_get("Retrieving a list of all SMTP server connections",
... | Python | 0.000002 | @@ -4593,24 +4593,55 @@
liance, name
+, check_mode=False, force=False
):%0A %22%22%22%0A
|
87f1f5c5198ae8511c7936130f27b0361c5b3187 | Update logging.py | src/logging.py | src/logging.py | import logging
class logger:
def info(message):
logging.info("[INFO] "+message)
def warning(message):
logging.warning("[WARNING] "+message)
def error(message):
logging.error("[ERROR] "+message)
def debug(message):
logging.debug("[DEBUG] "+message)
def critical(message)
logging.critical("[CRITICA... | Python | 0.000001 | @@ -21,16 +21,24 @@
s logger
+(object)
:%0A%0Adef i
@@ -41,16 +41,22 @@
ef info(
+self,
message)
@@ -106,16 +106,22 @@
warning(
+self,
message)
@@ -175,16 +175,22 @@
f error(
+self,
message)
@@ -240,16 +240,22 @@
f debug(
+self,
message)
@@ -308,16 +308,22 @@
ritical(
+self,
message)
@@ -353,20 +353,43... |
075018f0209d3cdb1f65f9151869bc718d2e69c7 | Use a requests session to retry failed queries | compmusic/musicbrainz.py | compmusic/musicbrainz.py | # Copyright 2013,2014 Music Technology Group - Universitat Pompeu Fabra
#
# This file is part of Dunya
#
# Dunya 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 (FSF), either version 3 of the License, or... | Python | 0.000001 | @@ -745,95 +745,136 @@
ort
-time%0Aimport xml.etree.ElementTree as etree%0A%0Aimport musicbrainzngs as mb%0Aimport requests
+musicbrainzngs as mb%0Aimport requests%0Afrom requests.adapters import HTTPAdapter%0Aimport time%0Aimport xml.etree.ElementTree as etree
%0A%0Afr
@@ -1120,17 +1120,19 @@
%0Aheaders
-=
+ =
%... |
de9f9c07c6f1dde8d7ad314b6a6fb58a963e1558 | Return as many results as possible | geodj/youtube.py | geodj/youtube.py | from gdata.youtube.service import YouTubeService, YouTubeVideoQuery
from django.utils.encoding import smart_str
import re
class YoutubeMusic:
def __init__(self):
self.service = YouTubeService()
def search(self, artist):
query = YouTubeVideoQuery()
query.vq = artist
query.orderb... | Python | 0.006012 | @@ -387,16 +387,47 @@
t = '5'%0A
+ query.max_results = 50%0A
|
3eb9891b4671900b90a400c0b18513c2964d22fe | Add check to detect if a buildbot slave is running. | scripts/tools/swarm_bootstrap/start_slave.py | scripts/tools/swarm_bootstrap/start_slave.py | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Returns a swarming bot dimensions and setups automatic startup if needed.
This file is uploaded the swarming server so the swarming bots can declare thei... | Python | 0.000119 | @@ -497,16 +497,465 @@
F0401%0A%0A%0A
+def is_buildbot_slave_running():%0A %22%22%22Returns True if a buildbot slave process is detected.%0A%0A Sometimes human error occurs, and a bot is double-booked to be both a%0A buildbot slave and a Swarming bot.%0A %22%22%22%0A if sys.platform == 'win32':%0A for drive in... |
e1179b58777c1f1ff366e31fc095e9dc12635a3f | Change 'age' query to option | gerrit-report.py | gerrit-report.py | #!/bin/env python3
import argparse
import subprocess
import json
query_cache = {}
def query(*args):
s = subprocess.getoutput("ssh openbmc.gerrit gerrit query " +
"--format json --all-reviewers " +
"--dependencies --current-patch-set -- '" +
... | Python | 0.999946 | @@ -60,16 +60,33 @@
t json%0A%0A
+option_age = %22%22%0A%0A
query_ca
@@ -557,12 +557,42 @@
age:
-1d%22,
+%25s%22 %25 option_age,%0A
%22st
@@ -4454,16 +4454,128 @@
arser()%0A
+parser.add_argument('--age', help='Change age since last modified', type=str,%0A default=%221d%22)%0A
s... |
498be7a6d3700322aa470a00791a8b0be849cf0c | Fix shebang declaration. | getMesosStats.py | getMesosStats.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import urllib2
import json
import argparse
def get_metric(host, port, metric):
response = urllib2.urlopen(
'http://' + host + ':' + port + '/metrics/snapshot')
data = json.load(response)
# print json.dumps(data, indent=4, sort_keys=True)
... | Python | 0.000002 | @@ -4,16 +4,20 @@
usr/bin/
+env
python%0A#
|
c49cf131ddb16157ea1a1663eef63133efe0068d | Implement read operations for queue.file | tilequeue/queue/file.py | tilequeue/queue/file.py | from tilequeue.tile import serialize_coord
class OutputFileQueue(object):
def __init__(self, fp):
self.fp = fp
def enqueue(self, coord):
payload = serialize_coord(coord)
self.fp.write(payload + '\n')
def enqueue_batch(self, coords):
n = 0
for coord in coords:
... | Python | 0 | @@ -449,33 +449,197 @@
-raise NotImplementedError
+coords = %5B%5D%0A for _ in range(max_to_read):%0A try:%0A coords.append(next(self.fp))%0A except StopIteration:%0A break%0A%0A return coords
%0A%0A
@@ -687,33 +687,12 @@
-raise NotImpleme... |
8110b67a43956abbf44b7f374f0b186bf776a84f | add set_admin function | src/manager.py | src/manager.py | #! /usr/bin/env python
#-*- coding: utf-8 -*-
# ***** BEGIN LICENSE BLOCK *****
# This file is part of Shelter Database.
# Copyright (c) 2016 Luxembourg Institute of Science and Technology.
# All rights reserved.
#
#
#
# ***** END LICENSE BLOCK *****
__author__ = "Cedric Bonhomme"
__version__ = "$Revision: 0.1 $"
__d... | Python | 0.000002 | @@ -600,16 +600,44 @@
b.models
+%0Afrom web.models import User
%0A%0Amanage
@@ -2196,47 +2196,8 @@
il%22%0A
- print(%22Making admin for %22 + email)%0A
@@ -2248,16 +2248,130 @@
first()%0A
+ if not user:%0A print(%22No such user: %22 + email)%0A else:%0A print(%22Making admin for %22 + e... |
5418907b13d6a00190cd85c5b9b73d4053be34ed | Add licence | src/compose.py | src/compose.py | #!/usr/bin/env python
# encoding: utf-8
"""
Compose new email to specified recipients (if any) in selected client.
Client is selected using mailto.py
"""
from __future__ import print_function
import sys
import os
from subprocess import check_call
import alfred
from mailto import MailApps
from contacts import get_c... | Python | 0.000001 | @@ -32,16 +32,144 @@
g: utf-8
+%0A#%0A# Copyright %C2%A9 2013 deanishe@deanishe.net.%0A#%0A# MIT Licence. See http://opensource.org/licenses/MIT%0A#%0A# Created on 2013-11-01%0A#
%0A%0A%22%22%22%0ACo
|
d8b163a58941b130ba9903ab26463716d52eeaa0 | Fix running on patchlevel versions below the highest of that minor version | java/kotlin-extractor/kotlin_plugin_versions.py | java/kotlin-extractor/kotlin_plugin_versions.py | import platform
import re
import subprocess
import sys
def is_windows():
'''Whether we appear to be running on Windows'''
if platform.system() == 'Windows':
return True
if platform.system().startswith('CYGWIN'):
return True
return False
many_versions = [ '1.4.32', '1.5.31', '1.6.10', '... | Python | 0 | @@ -618,11 +618,11 @@
-9%5D+
+)
%5C.
-)
(%5B0-
|
39a9131a0d0ce1d59c970b089acc1da4af006b2b | bump version number | taggy/__init__.py | taggy/__init__.py | __version__ = "0.2.0"
| Python | 0.000004 | @@ -12,11 +12,11 @@
= %220.2.
-0
+1
%22%0A
|
1aae9ef692f5b2808b02a628c02ff21ba89cc8ab | fix playing track without id3 tags | src/player.py | src/player.py | import vlc
class Track():
logger = None
path = None
instance = None
media = None
fullpath = ""
artist = ""
album = ""
title = ""
track_nb = ""
def __init__(self, logger, instance, mediapath):
self.path = mediapath
self.fullpath = str(mediapath.resolve())
... | Python | 0.000001 | @@ -24,161 +24,8 @@
k():
-%0A logger = None%0A path = None%0A instance = None%0A media = None%0A fullpath = %22%22%0A artist = %22%22%0A album = %22%22%0A title = %22%22%0A track_nb = %22%22
%0A%0A
@@ -337,32 +337,47 @@
ullpath)%0A
+ self.has_id3 =
self.parse_new_
@@ -679,126 +6... |
e7c80aae4fd7201c726f23d24c9db1270dcbad0b | disable unit test for Python 3.4 | _unittests/ut_helpers/test_matplotlib_helper_xyz.py | _unittests/ut_helpers/test_matplotlib_helper_xyz.py | """
@brief test log(time=4s)
"""
import os
import sys
import unittest
import random
try:
import src
import pyquickhelper as skip_
except ImportError:
path = os.path.normpath(
os.path.abspath(
os.path.join(
os.path.split(__file__)[0],
"..",
... | Python | 0.000019 | @@ -1530,32 +1530,94 @@
== %22__main__%22)%0A
+ if sys.version_info%5B:2%5D %3C= (3, 4):%0A return%0A
fix_tkin
@@ -3160,32 +3160,94 @@
== %22__main__%22)%0A
+ if sys.version_info%5B:2%5D %3C= (3, 4):%0A return%0A
fix_tkin
@@ -4601,32 +4601,94 @@
== %22__main__... |
57462d979e1572fbc1491249ce3117f5dc4fa144 | Refactor image mirroring code | toolbox/docker/utils.py | toolbox/docker/utils.py | import re
import os
from glob import glob
from typing import Any, Dict, Iterable, List, Tuple
from toolbox.config.docker import DOCKER_REGISTRY, DOCKER_REGISTRY_MIRRORS
from toolbox.utils import run_cmd
IMAGE_RE = re.compile(rf'^(?:{re.escape(DOCKER_REGISTRY)}/)?(.+)$')
def get_image_url(repo_name: str, repo_branch... | Python | 0.000002 | @@ -1,14 +1,4 @@
-import re%0A
impo
@@ -190,77 +190,21 @@
_cmd
-%0A%0AIMAGE_RE = re.compile(rf'%5E(?:%7Bre.escape(DOCKER_REGISTRY)%7D/)?(.+)$')
+, fatal_error
%0A%0A%0Ad
@@ -1021,32 +1021,213 @@
mage in images:%0A
+ if not image.startswith(DOCKER_REGISTRY + '/'):%0A fatal_error(%22Invalid docker r... |
47997e12b2fe8655ba2788b88fab2cbdbd914cd9 | Handle possible error in self.model in SSH.OpenWRT backend | netengine/backends/ssh/openwrt.py | netengine/backends/ssh/openwrt.py | """
Class to extract information from OpenWRT devices
"""
__all__ = ['OpenWRT']
from netengine.backends.ssh import SSH
import json
class OpenWRT(SSH):
"""
OpenWRT SSH backend
"""
_dict = {}
def __str__(self):
""" print a human readable object description """
return u"<SSH ... | Python | 0.000005 | @@ -2583,16 +2583,71 @@
rn None%0A
+ elif %22Usage%22 in output:%0A return None
%0A
@@ -2805,16 +2805,34 @@
rackets%0A
+ else:%0A
@@ -2871,24 +2871,32 @@
ace('%5D','')%0A
+
%0A @proper
|
cd8a39269b4fcd2f5b1713cbac59a27edaebc2b6 | Fix linting issues | accelerator/migrations/0106_update_partner_model.py | accelerator/migrations/0106_update_partner_model.py | # Generated by Django 2.2.28 on 2022-06-02 17:50
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import embed_video.fields
class Migration(migrations.Migration):
dependencies = [
('accelerator', '0105_inclusion_of_b... | Python | 0 | @@ -292,16 +292,28 @@
erator',
+%0A
'0105_i
|
dfec00fb9d14ec0689dd0378793c4dcaac071c6e | Optimize imports | src/control.py | src/control.py | #!/usr/bin/env python
import rospy
from gazebo_msgs.msg import ModelStates
from geometry_msgs.msg import Twist, Pose
from constants import DELTA_T, STEPS
from controller import EulerMethodController, create_controller
from plotter import Plotter
def get_pose(message):
global current_pose
current_pose = messa... | Python | 0.000002 | @@ -107,14 +107,8 @@
wist
-, Pose
%0A%0Afr
@@ -168,31 +168,8 @@
port
- EulerMethodController,
cre
|
e097479d084819d89757c786dd4078523e692bf7 | replace sort with config setting | kral/services/reddit.py | kral/services/reddit.py | from eventlet.greenthread import sleep
from eventlet.green import urllib2
import simplejson as json
from collections import defaultdict
import urllib
def stream(queries, queue, settings):
api_url = "http://www.reddit.com/search.json?"
prev_items = defaultdict(list)
while True:
for query in quer... | Python | 0.000002 | @@ -406,16 +406,8 @@
' :
-'new', #
sett
|
cd6b407858c1738f426391c24caa577005ae7fa3 | improve filtering of candidate's urls in primary elections | agora_site/agora_core/models/voting_systems/base.py | agora_site/agora_core/models/voting_systems/base.py | from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from django.utils.importlib import import_module
from django import forms as django_forms
from agora_site.misc.utils import *
def get_voting_system_classes():
'''
Returns a list with the available voting system classes
... | Python | 0.000017 | @@ -3820,9 +3820,10 @@
) %3E
-3
+10
:%0A
@@ -4157,16 +4157,36 @@
estring)
+ or len(value) %3E 500
:%0A
|
bec7885f9ab3314e8627f6b3c384a9dc457fca0f | Update markdown to fix /r/RivenMains | cmcb/static_data.py | cmcb/static_data.py | SECOND = 1
MINUTE = 60*SECOND
HOUR = 60*MINUTE
DAY = 24*HOUR
WEEK = 7*DAY
REDDIT_UPDATE_TIMEOUT = MINUTE
LEAGUE_UPDATE_TIMEOUT = HOUR
TEXT_HEAD = '''
Hello, /r/{subreddit}! This post updates automatically to help you find
desired club or fill your club with some folks! You can find additional info
at the end of the p... | Python | 0 | @@ -364,16 +364,17 @@
'''%0A%5Cn#
+#
Availab
@@ -380,16 +380,18 @@
ble
+**
%7Bregion%7D
clu
@@ -386,16 +386,18 @@
%7Bregion%7D
+**
clubs:%0A
@@ -736,16 +736,17 @@
---%5Cn%0A##
+#
How to
@@ -883,16 +883,17 @@
nvite%0A%0A%0A
+#
## How t
|
c753bb258e8e46d5a95b3ec396ec09349052fae6 | update to use SignatureError | conda_build/main_sign.py | conda_build/main_sign.py | # (c) Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.
import os
import sys
from os.path import isdir, join
try:
from Crypto.PublicKey import RSA
fro... | Python | 0 | @@ -600,16 +600,32 @@
, verify
+, SignatureError
%0A%0A%0A%0Adef
@@ -2169,32 +2169,190 @@
r path in args:%0A
+ try:%0A disp = 'VALID' if verify(path) else 'INVALID'%0A except SignatureError as e:%0A disp = 'ERROR: %25s' %25 e%0A
prin
@@ -2360,10 +2360... |
b4b5f7d30442ca04f53b036b12990be52e03e3c0 | fix bug 1267197 - Add a check for /docs/<zone> to DocumentZoneMiddleware | kuma/wiki/middleware.py | kuma/wiki/middleware.py | from django.http import HttpResponseRedirect
from django.shortcuts import render
from kuma.core.utils import urlparams
from .exceptions import ReadOnlyException
from .jobs import DocumentZoneURLRemapsJob
class ReadOnlyMiddleware(object):
"""
Renders a 403.html page with a flag for a specific message.
""... | Python | 0 | @@ -37,16 +37,47 @@
Redirect
+, HttpResponsePermanentRedirect
%0Afrom dj
@@ -1957,32 +1957,586 @@
rect(new_path)%0A%0A
+ elif request.path_info == u'/docs%7B%7D'.format(new_path):%0A # Is this a request for a DocumentZone, but with /docs/ wedged%0A # in the url path between t... |
1589c4f1ab1ab61eb4ce7812140a3b5b8e46fcde | Fix value_range_over_temperature | UliEngineering/Electronics/TemperatureCoefficient.py | UliEngineering/Electronics/TemperatureCoefficient.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Utilities for computing temperature coefficients
and their effects
"""
from UliEngineering.EngineerIO import normalize_numeric, normalize
from UliEngineering.Units import Unit
from UliEngineering.Physics.Temperature import normalize_temperature
from UliEngineering.Util... | Python | 0.000307 | @@ -5586,40 +5586,91 @@
no
-minal, unit = normalize(nominal)
+rmalized = normalize(nominal)%0A nominal, unit = normalized.value, normalized.unit
%0A
|
b4e765a674b5ecaa10d233cd7dca8696bc381589 | Add default tensorboard docker image | polyaxon/polyaxon/config_settings/spawner.py | polyaxon/polyaxon/config_settings/spawner.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
from polyaxon.utils import config
# Roles
ROLE_LABELS_WORKER = config.get_string('POLYAXON_ROLE_LABELS_WORKER')
ROLE_LABELS_DASHBOARD = config.get_string('POLYAXON_ROLE_LABELS_DASHBOARD')
ROLE_LABELS_LOG = config.get_string('POLY... | Python | 0 | @@ -658,32 +658,37 @@
nfig.get_string(
+%0A
'POLYAXON_K8S_IN
@@ -725,16 +725,16 @@
l=True)%0A
-
TENSORBO
@@ -968,32 +968,37 @@
nfig.get_string(
+%0A
'POLYAXON_NODE_S
@@ -1023,55 +1023,8 @@
TS',
-%0A
is_
@@ -1223,32 +1223,37 @@
nfig.get_string(
+%0A
'P... |
129ad95aa9233d2d866631c828adeda8c9214500 | Update callback plugin | lib/trellis/plugins/callback/vars.py | lib/trellis/plugins/callback/vars.py | from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import re
import sys
from __main__ import cli
from ansible.module_utils.six import iteritems
from ansible.errors import AnsibleError
from ansible.parsing.yaml.objects import AnsibleMapping, AnsibleSequence, AnsibleUnicode
from ans... | Python | 0 | @@ -721,23 +721,280 @@
s
-elf._options =
+uper(CallbackModule, self).__init__()%0A%0A # handle Ansible 2.7 and 2.8 cases by normalizing each into a dict%0A try:%0A from ansible import context%0A self._options = context.CLIARGS%0A except ImportError:%0A self._op... |
fa808bc78e050ba180ca9feb35051d94fdee9612 | print times and make fewer simulations | Utils/py/ActionSelection/compare_decision_schemes.py | Utils/py/ActionSelection/compare_decision_schemes.py | import os
import pickle
from tools import field_info as field
from compare_decision_schemes.current_impl_goaltime import main as current_impl
from compare_decision_schemes.particle_filter_goaltime import main as particle_filter
from state import State
"""
For every position(x, y) and a fixed rotation the time and the ... | Python | 0.000001 | @@ -245,16 +245,29 @@
t State%0A
+import timeit
%0A%22%22%22%0AFor
@@ -762,25 +762,25 @@
x_step =
-2
+3
00%0A y_ste
@@ -787,9 +787,9 @@
p =
-2
+3
00%0A
@@ -803,16 +803,18 @@
d_rot =
+18
0%0A%0A n
@@ -827,10 +827,9 @@
r =
-10
+3
#
@@ -1429,116 +1429,109 @@
-x_range = range(0, int(field.x... |
db1653c551f71092a7eca96e6a4d1c96ef17e06a | Remove unused attributes; also, empty responses after it's flushed. | lib/rapidsms/message.py | lib/rapidsms/message.py | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
import copy
class Message(object):
def __init__(self, backend, caller=None, text=None):
self._backend = backend
self.caller = caller
self.text = text
# initialize some empty attributes
self.received = None
... | Python | 0 | @@ -228,114 +228,8 @@
ext%0A
- %0A # initialize some empty attributes%0A self.received = None%0A self.sent = None%0A
@@ -755,16 +755,60 @@
e.send()
+%0A self.responses.remove(response)
%0A%0A de
|
2b8e97acf9b9a61b4ea56d4e55d7bb69e4768475 | Clean up TestBashExamples output a bit | service/integration/test/TestBashExamples.py | service/integration/test/TestBashExamples.py | #!/usr/bin/env python3
# Copyright (c) 2015 - 2021, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must retain the above copyright
# notice, thi... | Python | 0.000411 | @@ -2093,16 +2093,67 @@
_tests:%0A
+ script_name = os.path.basename(script)%0A
@@ -2191,32 +2191,19 @@
ple=
-os.path.basename(script)
+script_name
):%0A
@@ -2444,64 +2444,53 @@
out
-put = f'%5Cn%5CnSTDOUT:%5Cn%7Bout.decode(%22utf-8%22)%7D%5Cn%5CnSTDERR:%5Cn%7B
+ = out.decode(%22utf-8%22)%0A ... |
a7e1e5a49c50c4b8b68f1f97b4e28780555ec859 | Remove unused exception class. | telium/manager.py | telium/manager.py | from serial import Serial
from glob import glob
import curses.ascii
from telium.constant import *
from telium.payment import TeliumResponse
class DeviceNotFoundException(Exception):
pass
class WrongProtocolELengthException(Exception):
pass
class SignalDoesNotExistException(KeyError):
pass
class Data... | Python | 0 | @@ -139,120 +139,8 @@
e%0A%0A%0A
-class DeviceNotFoundException(Exception):%0A pass%0A%0A%0Aclass WrongProtocolELengthException(Exception):%0A pass%0A%0A%0A
clas
|
980889c542a1b91f883fb25462c5cbe1997776be | Use the new, safer style of flag declarations in examples | launchpad/examples/consumer_producers/launch.py | launchpad/examples/consumer_producers/launch.py | # Copyright 2020 DeepMind Technologies Limited. 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 ... | Python | 0.000001 | @@ -793,28 +793,25 @@
p%0A%0A%0A
-FLAGS = flags.FLAGS%0A
+_NUM_PRODUCERS =
flag
@@ -846,16 +846,54 @@
ers', 2,
+%0A
'The nu
@@ -3699,27 +3699,28 @@
ers=
-FLAGS.num_producers
+_NUM_PRODUCERS.value
)%0A%0A
|
2b299ea1a62c61dbabbe7e27e75d7a566c138e9e | remove onchange and set compute right. (#1327) | product_vat_price/models/product_template.py | product_vat_price/models/product_template.py | # Copyright 2021 Berezi - AvanzOSC
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import models, fields, api
class ProductTemplate(models.Model):
_inherit = 'product.template'
vat_price = fields.Float(string='VAT price', compute='_compute_vat_price')
@api.depends("list_p... | Python | 0.000004 | @@ -438,36 +438,39 @@
-self
+product
.vat_price = pro
@@ -622,189 +622,29 @@
-self.vat_price += vat%0A%0A @api.onchange(%22list_price%22, %22taxes_id%22)%0A def onchange_vat_price(self):%0A if self.list_price and self.taxes_id:%0A self._compute_vat_price()
+product.vat_p... |
485be98bedc0f5b8b3c0a031f596b9da4f38d97d | clean up curry.__call__ error handling | toolz/functoolz/core.py | toolz/functoolz/core.py | from functools import reduce
import itertools
import inspect
def identity(x):
return x
def thread_first(val, *forms):
""" Thread value through a sequence of functions/forms
>>> def double(x): return 2*x
>>> def inc(x): return x + 1
>>> thread_first(1, inc, double)
4
If the function ... | Python | 0.000193 | @@ -4805,34 +4805,39 @@
except TypeError
+ as e
:%0A
-
requ
@@ -4874,24 +4874,25 @@
(self.func)%0A
+%0A
@@ -4895,292 +4895,139 @@
-if (required_args is not None):%0A if len(args) %3E= required_args:%0A return self.func(*args, **kwargs)%0A ... |
14f09a3129a817efd7226ae18cfd15868e87c41a | test report_webkit format | report_webkit_format/report_webkit_format.py | report_webkit_format/report_webkit_format.py | # -*- encoding: utf-8 -*-
##############################################################################
#
# Author: Mag Guevara. Copyright ClearCorp SA
#
# 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 th... | Python | 0 | @@ -1924,25 +1924,31 @@
,%0A%09%09%09%09('
-C5E','C5E
+Letter','Checks
25 171
|
8fe0ec8f85e933d9aa64ff619937aba52945ea6e | add LOGGING_LEVEL settings | torext/base_settings.py | torext/base_settings.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# variables in this module are essential basements of settings,
# the priority sequence of base_settings.py, settings.py(in project), and cmd options is::
# 1. commandline arguments
# 2. settings.py
# 3. base_settings.py
#############
# essential #
#############
... | Python | 0 | @@ -697,16 +697,85 @@
%7D%0A%7D%0A%0A
+LOGGING_LEVEL = None%0A%0ALOGGING_IGNORE_URLS = %5B%0A '/favicon.ico',%0A%5D%0A%0A
LOG_REQU
@@ -952,55 +952,8 @@
o'%0A%0A
-LOGGING_IGNORE_URLS = %5B%0A '/favicon.ico',%0A%5D%0A%0A
%0A###
|
388653366ee4db58ed8ce8a9c8ab071593b9fc53 | Use correct default SSH port | lancet/contrib/dploi.py | lancet/contrib/dploi.py | from shlex import quote
import click
@click.command()
@click.option('-p', '--print/--exec', 'print_cmd', default=False,
help='Print the command instead of executing it.')
@click.argument('environment')
@click.pass_obj
def ssh(lancet, print_cmd, environment):
"""
SSH into the given environment, ... | Python | 0.000001 | @@ -665,17 +665,17 @@
port', 2
-0
+2
)), host
|
22bc969b0c468c678dc053740de3d2d9ff4d13ff | Fix pymongo2.7 issue in dbdocument. | src/compdb/core/mongodbdict.py | src/compdb/core/mongodbdict.py | import logging
logger = logging.getLogger('mongodbdict')
import pymongo
PYMONGO_3 = pymongo.version_tuple[0] == 3
class ReadOnlyMongoDBDict(object):
def __init__(self, host, db_name, collection_name, _id, connect_timeout_ms = None):
self._host = host
self._db_name = db_name
self._collecti... | Python | 0 | @@ -889,32 +889,66 @@
else:%0A
+ if PYMONGO_3:%0A
@@ -981,32 +981,36 @@
+
self._host,%0A
@@ -1025,16 +1025,20 @@
+
+
connectT
@@ -1074,16 +1074,20 @@
out_ms,%0A
+
@@ -1154,32 +1154,201 @@
ct_timeout_ms))%0A
+ ... |
ad6d1ce9b1d53bc15023771e9db401206b4b2654 | Comment out failing test until it is decided where the problem lies. | numpy/lib/tests/test_financial.py | numpy/lib/tests/test_financial.py | from numpy.testing import *
import numpy as np
class TestFinancial(TestCase):
def test_rate(self):
assert_almost_equal(np.rate(10,0,-3500,10000),
0.1107, 4)
def test_irr(self):
v = [-150000, 15000, 25000, 35000, 45000, 60000]
assert_almost_equal(np.irr(v),
... | Python | 0 | @@ -1239,36 +1239,8 @@
55),
-%0A
0.0
@@ -1244,24 +1244,25 @@
0.0666, 4)%0A%0A
+#
v2 =
@@ -1298,24 +1298,25 @@
7000,46000%5D%0A
+#
asse
@@ -1357,36 +1357,8 @@
12),
-%0A
0.1
|
d859bfde2fb6aca986857d4e0460a65e24ee6029 | fix remaining tests to reflect new behavior of sign(nan) | numpy/lib/tests/test_ufunclike.py | numpy/lib/tests/test_ufunclike.py | """
>>> import numpy.core as nx
>>> import numpy.lib.ufunclike as U
Test fix:
>>> a = nx.array([[1.0, 1.1, 1.5, 1.8], [-1.0, -1.1, -1.5, -1.8]])
>>> U.fix(a)
array([[ 1., 1., 1., 1.],
[-1., -1., -1., -1.]])
>>> y = nx.zeros(a.shape, float)
>>> U.fix(a, y)
array([[ 1., 1., 1., 1.],
[-1., -1., -1., -... | Python | 0.000001 | @@ -1208,36 +1208,36 @@
(%5B True, True,
-Fals
+ Tru
e, False, True,
@@ -1309,36 +1309,36 @@
(%5B True, True,
-Fals
+ Tru
e, False, True,
|
cf6b0272c0930dc67c36a36b22e9c5d0c3c581a7 | Add total count for crawl dash | trackupdates/appdash.py | trackupdates/appdash.py | # -*- coding: utf-8 -*-
import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
from flask import Flask
from datetime import datetime as dt, timedelta
import nltk
from nltk.corpus import stopwords
from nltk.tokenize import word_tokenize
nltk.downloa... | Python | 0.000001 | @@ -2539,24 +2539,42 @@
data = %5B%5D%0A
+ total = 0%0A
for
@@ -2826,24 +2826,52 @@
.get(j, 0))%0A
+ total += sum(y)%0A
@@ -2989,17 +2989,37 @@
wl Count
-'
+ %5BTotal: %25d%5D' %25 total
%7D%7D%0A%0A
@@ -4756,13 +4756,10 @@
num=
-99999
+-1
)%0A
|
6b662626333bfb32b7a815d5876bf172bd07353e | Fix bug in create fact response. | opencenter/webapp/facts_please.py | opencenter/webapp/facts_please.py | #!/usr/bin/env python
#
# Copyright 2012, Rackspace US, 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 applicab... | Python | 0 | @@ -1313,16 +1313,20 @@
request(
+msg=
'node_id
|
e72601362bc5c0b43f3f77e2a373979804cf4ca2 | I give up | cogs/linguistics.py | cogs/linguistics.py | import discord
from discord.ext import commands
import time
import datetime
import traceback
class Linguistics:
def __init__(self, bot):
self.bot = bot
@commands.command()
async def define(self, ctx, *, word: str):
"""Defines the specified word"""
url = f"https://od-api.oxforddict... | Python | 0.999428 | @@ -1248,451 +1248,113 @@
-for result in retj%5B%22results%22%5D:%0A for lexical_entry in result%5B%22lexicalEntries%22%5D:%0A for entry in lexical_entry%5B%22entries%22%5D:%0A sensething = (entry%5B%22senses%22%5D if %22senses%22 in entry%0A ... |
71b09e4e55ab2c0fa0cea4ab8104c7466b1a290e | Change sample location if used up in growth. | growths/forms.py | growths/forms.py | from django import forms
from django.core.exceptions import ValidationError
from django.forms import ModelForm
from growths.models import growth, sample, readings, source
import time
import re
from django.core.exceptions import ObjectDoesNotExist, MultipleObjectsReturned
from core.validators import*
# Create the form... | Python | 0 | @@ -1435,16 +1435,66 @@
else:%0A
+ instance.parent.location = 'Consumed'%0A
@@ -1801,32 +1801,115 @@
instance.save()%0A
+ if instance.parent != instance:%0A instance.parent.save()%0A
return i
|
83e2d010ff2c05ddc172ccfa0caf1efe941f3184 | Update combine module namespace | combine/__init__.py | combine/__init__.py | # Copyright (c) 2010 John Reese
# Licensed under the MIT license
class CombineError(Exception):
def __init__(self, value):
self.value = value
def __str__(self):
return repr(self.value)
from combine.manifest import Manifest
from combine.diff import Diff
| Python | 0 | @@ -205,16 +205,128 @@
value)%0A%0A
+from combine.formats import Archive, File%0Afrom combine.config import Config%0Afrom combine.package import Package%0A
from com
|
9b603d07df9be3cbac32d08d0e17ae5c5f9c76ae | Update sphinx_runner to use Sphinx >= 2 | python/helpers/rest_runners/sphinx_runner.py | python/helpers/rest_runners/sphinx_runner.py |
if __name__ == "__main__":
import sys
try:
import sphinx
except ImportError:
raise NameError("Cannot find sphinx in selected interpreter.")
version = sphinx.version_info
if version[0] >= 1 and version[1] >= 7:
from sphinx.cmd import build
build.main(sys.argv[1:])
... | Python | 0.000001 | @@ -205,16 +205,17 @@
%0A if
+(
version%5B
@@ -241,16 +241,36 @@
%5B1%5D %3E= 7
+) or version%5B0%5D %3E= 2
:%0A
|
bc837143d79faca5de0d1919dd63ceb3800c68e3 | Fix the memory function: remove 'X'. | Algol/memIO.py | Algol/memIO.py | #!/usr/bin/env python
# Copyright (c) 2015 Angel Terrones (<angelterrones@gmail.com>)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the r... | Python | 0.999999 | @@ -1320,17 +1320,16 @@
SZ_M
-
= 1%0A
@@ -1333,17 +1333,16 @@
M_X
-
= 0%0A
@@ -1343,17 +1343,16 @@
0%0A M_
-X
RD = 0%0A
@@ -1356,17 +1356,16 @@
0%0A M_
-X
WR = 1%0A%0A
|
332e4a8a35e065fd5535cab716f4e9009ea0bcd1 | Set default filter backend for rest framework | trex/settings_global.py | trex/settings_global.py | # -*- coding: utf-8 -*-
#
# (c) 2014 Bjoern Ricks <bjoern.ricks@gmail.com>
#
# See LICENSE comming with the source of 'trex' for details.
#
"""
Django settings for trex project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values... | Python | 0 | @@ -2490,16 +2490,176 @@
ER_CLOSE = True%0A
+%0A# REST Framework settings%0AREST_FRAMEWORK = %7B%0A # add django-filters backend%0A 'DEFAULT_FILTER_BACKENDS': ('rest_framework.filters.DjangoFilterBackend',)%0A%7D%0A
|
bb9ecace1cc077e5995c911a3025bc4b8ea981a3 | make linting more resilient | lint.py | lint.py | #!/usr/bin/env python
import os
import sys
import logging
import subprocess
logging.basicConfig()
l = logging.getLogger("lint")
#l.setLevel(logging.DEBUG)
def lint_file(filename):
l.debug("Linting file %s", filename)
try:
cmd = [
"pylint",
"--rcfile=%s" % pylint_rc,
... | Python | 0.00001 | @@ -635,16 +635,188 @@
output%0A%0A
+ if %22%5Cn0 statements analysed.%22 in pylint_out:%0A return %5B %5D, 10.00%0A%0A if %22Report%22 not in pylint_out:%0A return %5B %22LINT FAILURE: syntax error in file?%22 %5D, 0%0A%0A
out_
|
e4cff9c25bb768f0068e9e007e919ba52d7efb6f | Fix name prefix for host builds (#8767) | scripts/build/builders/host.py | scripts/build/builders/host.py | # Copyright (c) 2021 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | Python | 0 | @@ -1054,32 +1054,37 @@
:%0A return '
+chip-
all-clusters-app
|
3d52db29ccbfa118b010a55585747e6baa8e01e5 | drop unnecessary database churn with asos2archive | scripts/dbutil/asos2archive.py | scripts/dbutil/asos2archive.py | """
Dump ASOS observations into the long term archive...
Database partitioning is now based on the UTC day, so we need to make sure
we are not inserting where we should not be...
This script copies from the iem->current_log database table to the asos
database. This data is a result of the pyWWA/metar_parser.py ... | Python | 0 | @@ -1821,36 +1821,27 @@
#
-delete dups from current_log
+Get obs from Access
%0A
@@ -1869,12 +1869,16 @@
-with
+ WITH
dat
@@ -1896,30 +1896,40 @@
+
-select c.ctid,%0A
+ SELECT c.*, t.network, t.id,
row
@@ -2010,16 +2010,21 @@
w) DESC)
+ from
%0A
@@ -2024,20 +2024,19 @@
... |
0724179dbb504be8afbd8e8e24813b628652547d | Fix example: the SCSIid is in the sm-config field | scripts/examples/python/xva.py | scripts/examples/python/xva.py | #!/usr/bin/env python
# Rewrite the VDI.sm_config:SCSIid fields in XVA metadata
import tarfile, xmlrpclib, optparse, StringIO, sys
class Object(object):
"""Represents an XVA metadata object, for example a VM, VBD, VDI, SR, VIF or Network.
Fields can be accessed directly (e.g. print x.name_label) and modi... | Python | 0.000016 | @@ -4190,22 +4190,25 @@
ds = %5B %22
-SCSIid
+sm_config
%22 %5D%0A
@@ -4260,22 +4260,25 @@
nfig%22, %22
-SCSIid
+sm_config
%22 %5D%0A%0A
|
d145a30bb15d412f922fc655da9c6936585ae9e1 | Implement permission tests for Columns | api/tests/test_column.py | api/tests/test_column.py | from . import APITestCase
from api import actions
import json
from shapely import wkt, wkb
class TestPut(APITestCase):
def setUp(self):
self.test_table = 'test_table_column'
self.test_schema = 'test'
self.structure_data = {
"constraints": [
{
... | Python | 0 | @@ -4556,8 +4556,1082 @@
ructure)
+%0A%0A def test_anonymous(self):%0A structure_data = %7B'data_type': 'varchar', 'character_maximum_length': 30%7D%0A response = self.__class__.client.put(%0A '/api/v0/schema/%7Bschema%7D/tables/%7Btable%7D/columns/new_column'.format(%0A sche... |
e13be048b4a1582b3579a7d007f06c5c2b98a664 | Fix whitespace incoherence, causing pylint errors. | codereview/middleware.py | codereview/middleware.py | # Copyright 2008 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | Python | 0.999987 | @@ -2618,26 +2618,24 @@
est):%0A
-
content = '%25
@@ -2662,34 +2662,32 @@
echnical)%0A
-
content_type = '
@@ -2704,26 +2704,24 @@
'%0A else:%0A
-
tpl =
@@ -2764,18 +2764,16 @@
)%0A
-
ctx = Co
@@ -2818,26 +2818,24 @@
cal%7D)%0A
-
content = tp
@@ -2848,18 +2848,16 @@
... |
cf355ad475a06c5c23bbbec2979459d73a820762 | Remove stale files before extracting, otherwise stale files may survive | scripts/slave/extract_build.py | scripts/slave/extract_build.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 tool to extract a build, executed by a buildbot slave.
"""
import optparse
import os
import shutil
import sys
import traceback
im... | Python | 0.000001 | @@ -1587,16 +1587,205 @@
arget)%0A%0A
+ # First, delete the directory to remove stale files. Otherwise it could mask%0A # old stale executables that aren't zipped anymore.%0A chromium_utils.RemoveDirectory(abs_build_output_dir)%0A%0A
# Find
|
2f3d95ad3517fbd37b082a316656cf07a9ed8b1d | Update linux_x86_custom_encoder_real_world.py | assignment-4/linux_x86_custom_encoder_real_world.py | assignment-4/linux_x86_custom_encoder_real_world.py | #!/usr/bin/python
# SLAE - Assignment #4: Custom Shellcode Encoder/Decoder (Linux/x86)
# Author: Julien Ahrens (@MrTuxracer)
# Website: http://www.rcesecurity.com
from random import randint
# powered by Metasploit
# windows/exec CMD=calc.exe
# msfvenom -p windows/exec CMD=calc.exe -f python -e generic/none
# ... | Python | 0.000002 | @@ -73,20 +73,8 @@
oder
- (Linux/x86)
%0A# A
|
e9754ec682d62867103dba7481cdb8e6609769a5 | Remove print statements. | source/segue/backend/processor/background.py | source/segue/backend/processor/background.py | # :coding: utf-8
# :copyright: Copyright (c) 2013 Martin Pengelly-Phillips
# :license: See LICENSE.txt.
import subprocess
import pickle
import base64
import copy_reg
import types
try:
from shlex import quote
except ImportError:
from pipes import quote
from .base import Processor
# Support for instancemethod... | Python | 0.000021 | @@ -2100,32 +2100,62 @@
ment)%5D)%0A
+print command%0A print ''
%0A process
|
ed38e4b98b3a5a06761aecb6a977958a2fdd892e | Increment version number. | coimbra_chamber/__version__.py | coimbra_chamber/__version__.py | VERSION = (0, 0, 3)
__version__ = '.'.join(map(str, VERSION))
| Python | 0.000001 | @@ -14,9 +14,9 @@
0,
-3
+4
)%0A%0A_
|
7d34b407a35fe917e919fc01b3a6c736a7bdc372 | Remove admin prefix from url | helpdesk/urls.py | helpdesk/urls.py | from django.conf.urls import patterns, include, url
from django.contrib import admin
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'helpdesk.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls)),
)
| Python | 0.000001 | @@ -235,15 +235,8 @@
l(r'
-%5Eadmin/
', i
|
a40183c8fbfeb16ccaab38e67b0d48167f81d171 | Add delete_remote_branch and fix __doc__ for decorated functions | modules/gitdata.py | modules/gitdata.py | from sh import git
import sh
import re
import os, sys
import locket
from locket import LockError
class MergeException(Exception):
pass
class GitData(object):
def __init__(self, repo):
self.repo = repo
self.lock_file = "%s/.git/API_WRITE_LOCK" % self.repo
self.lock_timeout = 30
... | Python | 0.000012 | @@ -61,16 +61,33 @@
locket%0A
+import functools%0A
from loc
@@ -414,24 +414,25 @@
k_timeout)%0A%0A
+%0A
def pres
@@ -447,24 +447,248 @@
(function):%0A
+ %22%22%22%0A A decorator which remembers the current%0A working directory before a function call and%0A then resets the CWD after... |
3422df40c5b06c08649261dee636fe562b2c8f03 | FIX make test deterministic | alphacsc/tests/test_learn_d_z_multi.py | alphacsc/tests/test_learn_d_z_multi.py | import pytest
import numpy as np
from alphacsc.utils import check_random_state
from alphacsc.learn_d_z_multi import learn_d_z_multi
from alphacsc.convolutional_dictionary_learning import BatchCDL, OnlineCDL
from alphacsc.init_dict import init_dictionary
@pytest.mark.parametrize('window', [False, True])
@pytest.mark.... | Python | 0.000003 | @@ -3690,32 +3690,142 @@
_atoms = 10, 4%0A%0A
+ if klass == OnlineCDL:%0A kwargs = dict(batch_selection='cyclic')%0A else:%0A kwargs = dict()%0A%0A
rng = check_
@@ -4111,16 +4111,42 @@
erbose=0
+,%0A **kwargs
)%0A cd
|
e2018c1c344e9482a99a3d187d740b32c0fdd7ec | Update server.py | src/server.py | src/server.py | #Import flask libraries
import json, re, os, datetime, logging;#Import general libraries
from flask import Flask, jsonify, request, render_template, send_from_directory, redirect;
from flask_socketio import SocketIO, send, emit, join_room, leave_room, close_room;
from flask_mail import Mail, Message;
from flask_socketi... | Python | 0.000001 | @@ -1280,138 +1280,8 @@
; %0A%0A
-@FlaskServer.route('/templates/%3Cpath:app%3E')%0Adef serveAppResource(app):%09%09%0A return send_from_directory('templates/', templates);%0A%0A
if _
|
43c29caece3597cb49b5214753fd91313d0aa08f | add a test for queue timeouts handling | cogen/test/test_queue.py | cogen/test/test_queue.py | __doc_all__ = []
import unittest
import sys
import exceptions
import datetime
from cStringIO import StringIO
from cogen.common import *
from cogen.core import queue
from cogen.test.base import PrioMixIn, NoPrioMixIn
class QueueTest_MixIn:
def setUp(self):
self.m = Scheduler(default_priori... | Python | 0 | @@ -2587,24 +2587,828 @@
%5B-1, -2%5D)%0D%0A
+ %0D%0A def test_queue_timo(self):%0D%0A q = queue.Queue(50)%0D%0A self.msgs = %5B%5D%0D%0A @coroutine%0D%0A def get():%0D%0A #~ while 1:%0D%0A self.msgs.append((yield q.get(timeout=0.1)))%0D%0A se... |
19b89bca29769bf500308593a49d87f877bc68c9 | test dict() method. | coil/test/test_struct.py | coil/test/test_struct.py | """Tests for coil.struct."""
import unittest
from coil import struct, errors
class BasicTestCase(unittest.TestCase):
def setUp(self):
# Use a tuple to preserve order
self.data = (('first', {
'string': "something",
'float': 2.5,
... | Python | 0 | @@ -2397,16 +2397,119 @@
ond'))%0A%0A
+ def testDict(self):%0A self.assertEquals(self.struct%5B'first'%5D.dict(), dict(self.data%5B0%5D%5B1%5D))%0A%0A
class Ex
|
566f30b14f018b66fe800cdb56dfb3e52b7c15c9 | Update ipc_lista1.13.py | lista1/ipc_lista1.13.py | lista1/ipc_lista1.13.py | #ipc_lista1.13
#Professor: Jucimar Junior
#Any Mendes Carvalho - 1615310044
#
#
#
#
#Tendo como dados de entrada a altura e o sexo de uma pessoa, constru um algoritmo que calcule seu peso ideal, utilizando as seguintes fórmulas:
#Para homens: (72.7*h) - 58
#Para mulheres: (62.1*h) - 44.7 (h = altura)
#Peça o peso da pe... | Python | 0 | @@ -700,12 +700,40 @@
do peso,
+ seu peso ideal e %25.1f kg%22 %25
%0A %0A
|
801d2847631daa21325cfbb49e5315e903fcbeb1 | Update ipc_lista1.14.py | lista1/ipc_lista1.14.py | lista1/ipc_lista1.14.py | #ipc_lista1.14
#Professor: Jucimar Junior
#Any Mendes Carvalho - 1615310044
#
#
#
#
#
#João Papo-de-Pescador, homem de bem, comprou um microcomputador para controlar o rendimento diário de seu trabalho. Toda vez que ele traz um peso de peixes maior que o estabelecido pelo regulamento de pesca do estado de São Paulo (50... | Python | 0 | @@ -705,16 +705,28 @@
excesso
+ = peso - 50
%0A multa
|
cd2b1d7b062d292182df1dde57637878cc5b3cb6 | Update ipc_lista2.01.py | lista2/ipc_lista2.01.py | lista2/ipc_lista2.01.py | #ipc_lista2.1
#Professor: Jucimar Junior
#Any Mendes Carvalho - 1615310044
#
#
#
#
#Faça um programa que peça dois números e imprima o maior deles.
num1 = float(input("Informe um número
| Python | 0 | @@ -179,9 +179,12 @@
m n%C3%BAmero
+: %22
%0A
|
d7091b43fd483de9f6993a070698f24067bebbba | Update ipc_lista4.08.py | lista4/ipc_lista4.08.py | lista4/ipc_lista4.08.py | """
lista 4 questao 8:
Faça um Programa que peça a idade e a altura de 5 pessoas,
armazene cada informação no seu respectivo vetor.
Imprima a idade e a altura na ordem inversa a ordem lida.
"""
# EQUIPE 2
#ANA BEATRIZ FROTA - 1615310027
#
#
#Luiz Gustavo Rocha Melo - 1615310015
altura = [] #vetor para altu... | Python | 0 | @@ -246,16 +246,25 @@
%0D%0A#%0D%0A#%0D%0A
+#%0D%0A#%0D%0A#%0D%0A
#Luiz Gu
@@ -294,16 +294,20 @@
310015%0D%0A
+%0D%0A%0D%0A
altura =
@@ -576,109 +576,247 @@
%22))
-%0D%0A idade.append(x) %0D%0A y = float(input(%22A altura da pessoa: %22))%0D%0A altura.append(y)%0D%0A c1 +=
+ # X RECEBE O VALOR DA IDAD... |
e670afae255a075f41523f330430047fa4450fde | make the user api a base class for future use with web users | corehq/apps/api/resources/v0_1.py | corehq/apps/api/resources/v0_1.py | from tastypie import fields
from tastypie.authentication import Authentication
from tastypie.authorization import ReadOnlyAuthorization, Authorization
from tastypie.exceptions import BadRequest
from tastypie.serializers import Serializer
from casexml.apps.case.models import CommCareCase
from couchforms.models import X... | Python | 0.000001 | @@ -2253,24 +2253,16 @@
%0A%0Aclass
-CommCare
UserReso
@@ -2302,32 +2302,32 @@
ResourceMixin):%0A
+
type = %22user
@@ -2916,24 +2916,288 @@
ser_data')%0A%0A
+ class Meta(CustomResourceMeta):%0A list_allowed_methods = %5B'get'%5D%0A detail_allowed_methods = %5B'get'%5D%0A%0A%0Aclass CommCareUs... |
e90f8cb7836ec232e9e487c602865ed486308168 | use 1200dpi resolution for inscape modifications | analysis/figure2_algorithm_progress.py | analysis/figure2_algorithm_progress.py | #!/usr/bin/env python3
import click
import matplotlib
import matplotlib.pyplot as plt
from matplotlib.collections import PatchCollection
from matplotlib.patches import Rectangle, Circle, ConnectionPatch
import numpy as np
from htsohm.htsohm_run import calc_bins
def delaunay_figure(ax, convergence_bins, bins=[], prop... | Python | 0 | @@ -3164,17 +3164,18 @@
th, dpi=
-3
+12
00, bbox
|
064dd5b681a0be4cb45f94fbc77f40586876f645 | empty key returns no code | analytical/tests/test_tag_uservoice.py | analytical/tests/test_tag_uservoice.py | """
Tests for the UserVoice tags and filters.
"""
from django.contrib.auth.models import User, AnonymousUser
from django.http import HttpRequest
from django.template import Context
from analytical.templatetags.uservoice import UserVoiceNode
from analytical.tests.utils import TagTestCase, override_settings, \
... | Python | 0.99919 | @@ -1307,39 +1307,19 @@
sert
-NotIn(%22widget.uservoice.com%22, r
+Equal(r, %22%22
)%0A%0A
|
8f23b684490be16dfe066aa949bf3a91fc3873dd | Clean up race when dumping buffers | historybuffer.py | historybuffer.py | import time
import shutil, os
Buffers = {}
HBdir = ''
BaseTime = 0
def SetupHistoryBuffers(dirnm, maxlogs):
global HBdir, BaseTime
r = [k for k in os.listdir('.') if '.HistoryBuffer' in k]
if ".HistoryBuffer." + str(maxlogs) in r:
shutil.rmtree(".HistoryBuffer." + str(maxlogs))
for i in range(maxlogs - 1, 0, -... | Python | 0 | @@ -2500,54 +2500,322 @@
y%0A%09%09
-cur = self.buf%0A%09%09curind = self.current%0A%09%09self.
+# this is subject to races from other threads doing entry reports%0A%09%09# sequence must be create new buf offline, replace current buf with it so always one or other valid list%0A%09%09# then change current back to 0%0A%... |
90a9cee8349ccc9ec024b25f17f7d29f75c70524 | Bump version number | src/shared.py | src/shared.py | # -*- coding: utf-8 -*-
import logging
import os
import queue
import threading
listening_port = 8444
send_outgoing_connections = True
data_directory = 'minode_data/'
source_directory = os.path.dirname(os.path.realpath(__file__))
log_level = logging.DEBUG
magic_bytes = b'\xe9\xbe\xb4\xd9'
protocol_version = 3
service... | Python | 0.000002 | @@ -403,17 +403,17 @@
Node-v0.
-1
+2
.0'%0Atime
|
cb8cde80fcab8d7b0918f1d4b498c65af76351f9 | Return email_verified attribute | sentry_auth_google/provider.py | sentry_auth_google/provider.py | from __future__ import absolute_import, print_function
from sentry.auth.provider import MigratingIdentityId
from sentry.auth.providers.oauth2 import (
OAuth2Callback, OAuth2Provider, OAuth2Login
)
from .constants import (
AUTHORIZE_URL, ACCESS_TOKEN_URL, CLIENT_ID, CLIENT_SECRET, DATA_VERSION,
SCOPE
)
fro... | Python | 0.00002 | @@ -3789,16 +3789,75 @@
(data),%0A
+ 'email_verified': user_data%5B'email_verified'%5D,%0A
|
d2ac7fdc28d3aeede4021fad6b9f51a8d79fe0a9 | add pre-save check | mongoext/models.py | mongoext/models.py | from __future__ import absolute_import
import mongoext.collection
import mongoext.fields
class MetaModel(type):
def __new__(cls, name, bases, attrs):
fields = {}
for base in bases:
for attr, obj in vars(base).iteritems():
if issubclass(type(obj), mongoext.fields.Field)... | Python | 0 | @@ -1176,16 +1176,73 @@
None)%0A%0A
+ def save(self):%0A self.__init__(**vars(self))%0A%0A
def
|
52e20de120b65b00ddd414e72ae228f0116017eb | Use ApiError instead of abort everywhere | mongorest/mongo.py | mongorest/mongo.py | try:
# python 3.5
from json import JSONDecodeError
except ImportError:
JSONDecodeError = ValueError
from flask import Blueprint, current_app, g, request, abort
from flask.views import MethodView
from pymongo import uri_parser, MongoClient
from pymongo.errors import OperationFailure
from werkzeug.local impor... | Python | 0 | @@ -4782,14 +4782,67 @@
ise
-abort(
+ApiError('Invalid ObjectId: %7B%7D'.format(value), status_code=
400)
@@ -5193,12 +5193,13 @@
'DELETE'%5D)%0A
+%0A
|
298b0f21c19138988a7733b1c50f07a599661a6c | Add bitbucket parse push data | hooked/server.py | hooked/server.py | from ConfigParser import RawConfigParser
from StringIO import StringIO
from pprint import pformat
import sys
import json
import subprocess
import logging
import bottle
logging.basicConfig(stream=sys.stdout, level=logging.INFO,
format='%(asctime)-15s %(levelname)s: %(message)s')
log = logging.getL... | Python | 0.000001 | @@ -2982,16 +2982,193 @@
branch'%5D
+%0A elif 'push' in data and 'changes' in data%5B'push'%5D %5C%0A and len(data%5B'push'%5D%5B'changes'%5D) %3E 0:%0A branch = data%5B'push'%5D%5B'changes'%5D%5B0%5D%5B'new'%5D%5B'name'%5D
%0A%0A re
|
c97abd1aca254b1ede05ef33ecefa8402fdcb0ac | add message for notice types creation | apps/core/management/commands/create_notice_types.py | apps/core/management/commands/create_notice_types.py | from django.core.management.base import BaseCommand
from django.utils.translation import ugettext_noop as _
from django.db.models import signals
from notification import models as notification
class Command(BaseCommand):
def handle(self, *args, **options):
notification.create_notice_type("create_meeting_... | Python | 0 | @@ -879,8 +879,62 @@
go?%22))%0A%0A
+ self.stdout.write('--%3E Created notice types')%0A
|
82ead43bb09f189bda095cbe18f58bfeec6c007e | rename variable | corehq/apps/userreports/pillow.py | corehq/apps/userreports/pillow.py | from collections import defaultdict
from alembic.autogenerate.api import compare_metadata
from datetime import datetime, timedelta
from casexml.apps.case.models import CommCareCase
from corehq.apps.userreports.exceptions import TableRebuildError
from corehq.apps.userreports.models import DataSourceConfiguration, Static... | Python | 0.000018 | @@ -2805,21 +2805,27 @@
-table
+sql_adapter
= table
@@ -2893,37 +2893,43 @@
f.rebuild_table(
-table
+sql_adapter
)%0A
@@ -3037,29 +3037,41 @@
lf,
-table):%0A table
+sql_adapter):%0A sql_adapter
.reb
@@ -4236,21 +4236,27 @@
e(self,
-table
+sql_adapter
):%0A
@@ -4308,2... |
a55795d0b29d26fb998c052ca1c7d8b4e6fe9f21 | 更新 forms ELOForm, 當使用者非 staff 時,不能設定 ELO 的作者,同時 views ELOsCreateView.form_valid() 會再度檢查 | commonrepo/elos/forms.py | commonrepo/elos/forms.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
from django.forms import ModelForm, ModelChoiceField
from django.shortcuts import get_object_or_404
from django.utils import timezone
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Submit, HTML
from crispy_for... | Python | 0 | @@ -606,53 +606,431 @@
s
-uper(ELOForm, self).__init__(*args, **kwargs)
+elf.request_user = kwargs.pop(%22request_user%22)%0A super(ELOForm, self).__init__(*args, **kwargs)%0A%0A # check if user is not staff%0A if not self.request_user.is_staff:%0A self.fields%5B%22author%22%5D.query... |
9befb6021a55cdf584c39a3f5e9fa3191a415a50 | Fix code health issues reported by Landscape.io | compare_versions/core.py | compare_versions/core.py | from . import schemes
VALID_COMPARISONS=['eq','ne','gt','lt','ge','le']
def is_valid(version):
try:
schemes.schemes['semver'](version)
except schemes.InvalidVersionError:
return False
return True
def verify_list(versions, comparison='lt', scheme='semver'):
"""
Verify that a list o... | Python | 0.000001 | @@ -777,21 +777,16 @@
%25s' %25 (
-args.
comparis
@@ -945,13 +945,8 @@
%25 (
-args.
sche
|
7568b5c4869a5ab4c5e483393f901b77b70ebced | Fix typo in word API test. | spec/data/word_api/wordnet/_word_api_spec.py | spec/data/word_api/wordnet/_word_api_spec.py | from data.word_api import word_api
from spec.mamba import *
_word_api = None
with _description('_word_api'):
with before.all:
global _word_api
_word_api = word_api.get_api('wordnet')
with description('base_form'):
with it('handles plurals'):
expect(_word_api.base_form('snails')).to(equal('snail... | Python | 0.000019 | @@ -1749,36 +1749,37 @@
ith it('returns
-syno
+hyper
nyms'):%0A re
|
e5c81f533099fc21d1da67ffdd91a2dafda08429 | fix for both envs? | ibcomics/wsgi.py | ibcomics/wsgi.py | """
WSGI config for ibcomics project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION``... | Python | 0 | @@ -664,16 +664,192 @@
mport os
+, sys%0Asys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), %22../../%22)))%0Asys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), %22../%22)))
%0A%0A# We d
|
4af2d1286a6a6b8d6bf91f0d5f707b3d999b53d7 | Set null in the "Elevation" field | csacompendium/locations/models.py | csacompendium/locations/models.py | from __future__ import unicode_literals
from django.conf import settings
from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
from django.db import models
# from django.db.models.signals import pre_save
# from django.dispatch import receiver
# from... | Python | 0.000001 | @@ -1641,32 +1641,43 @@
Field(blank=True
+, null=True
)%0A last_updat
|
0079d87a51267e73d1083c339f10df8f31712968 | Fix Python 2 | cscslackbot/logconfig/__init__.py | cscslackbot/logconfig/__init__.py | import logging
import logging.config
import logging.handlers
import sys
from ..utils import from_human_readable
def configure(config):
format = config.get('format', None)
datefmt = config.get('datefmt', None)
fmtstyle = config.get('fmtstyle', '%')
formatter = logging.Formatter(format, datefmt, fmtsty... | Python | 0.999993 | @@ -54,16 +54,27 @@
andlers%0A
+import six%0A
import s
@@ -267,16 +267,101 @@
', '%25')%0A
+ if six.PY2:%0A formatter = logging.Formatter(format, datefmt)%0A else:%0A
form
|
0275ababbed41a6c051938f8cf3a2defe1962fe1 | Fix wrong finally clause | idlk/__init__.py | idlk/__init__.py | from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
import os
import sys
import idlk.base41
if sys.version_info[0] == 3:
_get_byte = lambda c: c
else:
_get_byte = ord
def hash_macroman(data):
h = 0
for c in data:
h = ((h << 8) + h) + ... | Python | 0.000044 | @@ -690,15 +690,12 @@
-finally
+else
:%0A
|
d6caf2f1eb407eb63e0e6dc7e1375a81fcd5ff81 | Implement data coordinator in CalFlora | scripts/observations/scrape/CalFloraScraper.py | scripts/observations/scrape/CalFloraScraper.py | from selenium import webdriver
import pandas as pd
import argparse
import PyFloraBook.web.communication as scraping
# ---------------- INPUT ----------------
# Parse arguments
parser = argparse.ArgumentParser(
description='Scrape CalFlora for species counts for given family')
parser.add_argument("-f", "--familie... | Python | 0 | @@ -111,16 +111,72 @@
craping%0A
+import PyFloraBook.input_output.data_coordinator as dc%0A%0A
%0A# -----
@@ -666,40 +666,85 @@
00)%0A
-browser.set_page_load_timeout(8)
+%0ASITE_NAME = %22CalFlora%22%0AOUTPUT_PATH = dc.locate_raw_data_folder() / SITE_NAME
%0A%0Afo
@@ -1657,16 +1657,88 @@
ing CSV%0A
+ family_res... |
b1e35e8eea2e91013967b0544088036d56014c34 | fix style errors | contrib/statsd_perfomance_test.py | contrib/statsd_perfomance_test.py | #!/usr/bin/env python
import multiprocessing
import bucky.statsd
import time
import timeit
l10 = range(10)
l100 = range(100)
l1000 = range(1000)
# try:
# import queue
# except ImportError:
# import Queue as queue
queue = multiprocessing.Queue()
handler = bucky.statsd.StatsDHandler(queue, bucky.cfg)
def f... | Python | 0.000001 | @@ -690,16 +690,17 @@
.get()%0A%0A
+%0A
# Warmup
@@ -783,19 +783,19 @@
Test%22)%0At
-ime
+run
= timei
@@ -969,19 +969,19 @@
ult:%22, t
-ime
+run
)%0A%0Aqueue
|
52d76647b1fa50a2649335b65f22f88d7877e9d3 | Return to old setting of repetitions for fast testing | spotpy/unittests/test_fast.py | spotpy/unittests/test_fast.py | import unittest
try:
import spotpy
except ImportError:
import sys
sys.path.append(".")
import spotpy
from spotpy.examples.spot_setup_hymod_python import spot_setup
class TestFast(unittest.TestCase):
def setUp(self):
self.spot_setup = spot_setup()
self.rep = 200 # REP must be a... | Python | 0.000097 | @@ -747,17 +747,17 @@
Equal(20
-0
+3
,len(res
|
06ef27c5767947c324d787c23c0acb887ea7f914 | Remove an useless shebang form non-executable file (#1073) | httpie/__main__.py | httpie/__main__.py | #!/usr/bin/env python
"""The main entry point. Invoke as `http' or `python -m httpie'.
"""
import sys
def main():
try:
from httpie.core import main
exit_status = main()
except KeyboardInterrupt:
from httpie.status import ExitStatus
exit_status = ExitStatus.ERROR_CTRL_C
sy... | Python | 0 | @@ -1,26 +1,4 @@
-#!/usr/bin/env python%0A
%22%22%22T
|
55d5bfe82f3ce02e371b08d7603630812046b815 | Add header for json response, instead of query string | deuce/util/client.py | deuce/util/client.py | import aiohttp
import asyncio
import hashlib
import json
from swiftclient.exceptions import ClientException
from deuce import conf
from deuce.util.event_loop import get_event_loop
# NOTE (TheSriram) : must include exception handling
def _noloop_request(method, url, headers, data=None):
response = yield from aio... | Python | 0.000001 | @@ -2924,20 +2924,8 @@
= '?
-format=json&
limi
@@ -3079,32 +3079,77 @@
th-Token': token
+,%0A 'Accept': 'application/json'
%7D%0A response,
|
0afb9c02a63a4d96fa21f825a98139878df06dfc | add a-game-of-stones | contest/5-days-of-game-theory/a-game-of-stones/a-game-of-stones.py | contest/5-days-of-game-theory/a-game-of-stones/a-game-of-stones.py | Python | 0.998888 | @@ -0,0 +1,487 @@
+# -*- coding: utf-8 -*-%0A# @Author: Zeyuan Shang%0A# @Date: 2016-05-13 13:42:03%0A# @Last Modified by: Zeyuan Shang%0A# @Last Modified time: 2016-05-13 13:42:08%0AT = input()%0Afor _ in xrange(T):%0A n = input()%0A dp = %5BFalse%5D * (n + 1)%0A for i in xrange(n + 1):%0A res = Fa... | |
5c91a2c8dda69d37fd3cd0989ff6c3883851eaef | Introduce templatetag for fetching image thumbnails | saleor/product/templatetags/product_images.py | saleor/product/templatetags/product_images.py | Python | 0 | @@ -0,0 +1,1402 @@
+import logging%0Aimport warnings%0A%0Afrom django.template.context_processors import static%0Afrom django import template%0Afrom django.conf import settings%0A%0Alogger = logging.getLogger(__name__)%0Aregister = template.Library()%0A%0A%0A# cache available sizes at module level%0Adef get_available_s... | |
304e8d68e114eda8fe420e64f0255a816fbc5009 | Add a very basic test, #1 | test_pyspin.py | test_pyspin.py | Python | 0.000202 | @@ -0,0 +1,656 @@
+#!/usr/bin/env python%0A# -*- coding: utf-8 -*-%0A%0Aimport time%0A%0Afrom pyspin import spin%0A%0A%0Adef test_spinner():%0A spinner = spin.Spinner(spin.Spin9)%0A assert spinner.length == 4%0A assert spinner.frames == spin.Spin9%0A%0A assert spinner.current() == u'%E2%86%90'%0A%0A asse... | |
9c1ee652684fec9dc3b9ed487bfd980e886ec9fc | Add regression test for #1698 | spacy/tests/regression/test_issue1698.py | spacy/tests/regression/test_issue1698.py | Python | 0.000001 | @@ -0,0 +1,278 @@
+# coding: utf8%0Afrom __future__ import unicode_literals%0A%0Aimport pytest%0A%0A%0A@pytest.mark.parametrize('text', %5B'test@example.com', 'john.doe@example.co.uk'%5D)%0Adef test_issue1698(en_tokenizer, text):%0A doc = en_tokenizer(text)%0A assert len(doc) == 1%0A assert not doc%5B0%5D.like... | |
42a18ef9030f883563c4459aec46563877274794 | Add test for #1868: Vocab.__contains__ with ints | spacy/tests/regression/test_issue1868.py | spacy/tests/regression/test_issue1868.py | Python | 0.000802 | @@ -0,0 +1,361 @@
+'''Test Vocab.__contains__ works with int keys'''%0Afrom __future__ import unicode_literals%0A%0Afrom ... vocab import Vocab%0A%0Adef test_issue1868():%0A vocab = Vocab()%0A lex = vocab%5B'hello'%5D%0A assert lex.orth in vocab%0A assert lex.orth_ in vocab%0A assert 'some string' not in... | |
2a5b8283bf653e7691b91217c2fe225ab0699571 | update finalization rainfall | python/finalization_shp_dbf.py | python/finalization_shp_dbf.py | Python | 0.000001 | @@ -0,0 +1,1509 @@
+# sample input = python finalization_shp_dbf.py /var/lib/opengeo/geoserver/data/IDN_GIS/05_Analysis/03_Early_Warning/Rainfall_Anomaly_test/ 2016-07%0A%0Aimport shapefile%0Aimport sys%0Aimport datetime%0Aimport dbf%0A%0Alocation_geoserver = str(sys.argv%5B1%5D)%0Afilename = location_geoserver.split('... | |
39e31d6dd129d4acd9adc95ce0bb7a5c9c45dd42 | Create Dictionary_example.py | Python3-5/Dictionary_example.py | Python3-5/Dictionary_example.py | Python | 0.00001 | @@ -0,0 +1,696 @@
+#With a given integral number n, write a program to generate a dictionary that contains (i, i*i) such that is an integral number between 1 and n (both included). and then the program should print the dictionary.%0An=int(input(%22Please enter a number%22)); # takes an integer from user%0Ad=dict(); ... | |
cf8744e8f9d3f4d77093ecf1cce119161f395b78 | add tests | tests.py | tests.py | Python | 0 | @@ -0,0 +1,1050 @@
+import unittest%0Aimport numpy as np%0Afrom numpy.testing import assert_array_equal as assertAE%0A%0Afrom rdp import rdp%0A%0A%0Aclass RDPTest(unittest.TestCase):%0A def test_two(self):%0A assertAE(rdp(np.array(%5B%5B0, 0%5D, %5B4, 4%5D%5D)),%0A np.array(%5B%5B0, 0%5D, %5B4... | |
bb197fcee1c809e377d235346fcb0a670f35d918 | Create counter.py | counter.py | counter.py | Python | 0.000004 | @@ -0,0 +1,140 @@
+from collections import Counter%0Al=%5B12,3,4,2,4,2,4,23,4,1,2%5D%0Ac=Counter(iterable=l)%0Aprint c.most_common(2)%0Aprint list(c.elements())%0Ac.clear()%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.