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 |
|---|---|---|---|---|---|---|---|
42c0925b875858752dd86130c42818c43af28872 | change poke command to accept ping as well | cogs/meta.py | cogs/meta.py | from collections import OrderedDict
import datetime
import random
from discord.ext import commands
import discord
class Meta:
def __init__(self, bot):
self.bot = bot
@commands.command()
async def info(self):
"""Display bot information."""
source_link = 'https://github.com/mikevb1... | Python | 0 | @@ -48,22 +48,8 @@
time
-%0Aimport random
%0A%0Afr
@@ -1485,32 +1485,67 @@
ommands.command(
+pass_context=True, aliases=%5B'ping'%5D
)%0A async def
@@ -1549,24 +1549,29 @@
ef poke(self
+, ctx
):%0A %22
@@ -1613,93 +1613,119 @@
-replies = %5B%0A 'Hey!', 'Ow!', 'Stop that!', %22I'm here!... |
055238c4475064cb4c1204c55ba2d9bf12b1cc83 | Fix script to deal with multi-tenancy and use just net names in policy. | src/config/utils/net_policy_join.py | src/config/utils/net_policy_join.py | #! /usr/bin/env python
"""
net_policy_join.py [options] net1_uuid net2_uuid
Calls Contrail API server to create a network policy to allow all
traffic between net1 and net2
"""
# See contrail/build/debug/config/api-server/doc/build/html/tutorial_with_library.html
import argparse
import os
from vnc_api import vnc_api... | Python | 0.000001 | @@ -286,16 +286,46 @@
port os%0A
+from urlparse import urlparse%0A
from vnc
@@ -1492,18 +1492,18 @@
p=%22Hostn
-m
a
+m
e of api
@@ -1767,118 +1767,594 @@
%0A
-vnc_lib = vnc_api.VncApi(api_server_host=args.api_host,%0A api_server_port=args.api_port
+urlparts = urlparse(args.auth_url)%0Aa... |
eeee61286924955fc9fd7b1dd630adb3e39deec6 | Stop using mox in unit/zonemanager/*.py tests | cinder/tests/unit/zonemanager/test_fc_zone_manager.py | cinder/tests/unit/zonemanager/test_fc_zone_manager.py | # (c) Copyright 2014 Brocade Communications Systems Inc.
# All Rights Reserved.
#
# Copyright 2014 OpenStack Foundation
#
# 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
#
# ... | Python | 0.000038 | @@ -1809,16 +1809,18 @@
elf.
-stubs.Se
+mock_objec
t(fc
@@ -1863,16 +1863,18 @@
river',%0A
+
|
403889bbebe4d10e686c428881082639b690ba5a | Move configuration details to docs | homeassistant/components/device_tracker/nmap_tracker.py | homeassistant/components/device_tracker/nmap_tracker.py | """
homeassistant.components.device_tracker.nmap
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Device tracker platform that supports scanning a network with nmap.
Configuration:
To use the nmap tracker you will need to add something like the following
to your configuration.yaml file.
device_tracker:
platform: nmap_... | Python | 0 | @@ -160,467 +160,152 @@
p.%0A%0A
-Configuration:%0A%0ATo use the nmap tracker you will need to add something like the following%0Ato your configuration.yaml file.%0A%0Adevice_tracker:%0A platform: nmap_tracker%0A hosts: 192.168.1.1/24%0A%0AVariables:%0A%0Ahosts%0A*Required%0AThe IP addresses to scan in the network-p... |
c9145fe570d617a211853a259bb3178ef4c15447 | use couchbase 4.0 with async client | docker/environment/provider_worker.py | docker/environment/provider_worker.py | """Author: Konrad Zemek
Copyright (C) 2015 ACK CYFRONET AGH
This software is released under the MIT license cited in 'LICENSE.txt'
Brings up a set of oneprovider worker nodes. They can create separate clusters.
"""
import copy
import json
import os
from . import common, docker, riak, couchbase, dns as dns_mod
PROV... | Python | 0 | @@ -3224,18 +3224,8 @@
= 0%0A
- print%0A
@@ -3476,16 +3476,38 @@
e/server
+:enterprise-4.0.0-beta
', dns,
|
507acdd38ea3333c0b2794264a464678d1898d97 | fix issue with smoothing test: the smoothing region was too wide relative to the overall data length. | zcode/math/tests/test_numeric.py | zcode/math/tests/test_numeric.py | """Test methods for `zcode/math/math_core.py`.
Can be run with:
$ nosetests math/tests/test_math_core.py
"""
from __future__ import absolute_import, division, print_function, unicode_literals
import numpy as np
from numpy.testing import run_module_suite
from nose.tools import assert_true
from zcode.math import ... | Python | 0 | @@ -290,16 +290,47 @@
t_true%0A%0A
+import zcode%0Aimport zcode.plot%0A
from zco
@@ -477,16 +477,17 @@
ZE = 100
+0
%0A
@@ -692,10 +692,44 @@
4, 1
-6%5D
+0%5D%0A NUM = len(SMOOTH_LENGTHS)
%0A%0A
@@ -894,17 +894,18 @@
sm
-A
+_a
rrs = %5Bn
@@ -930,16 +930,17 @@
smlen)%0A
+
@@ -99... |
f311dd7c560c3a86fa92a75aeb73a892a3be40ba | set maturity to Beta | account_avatax_sale/__manifest__.py | account_avatax_sale/__manifest__.py | {
"name": "Taxes on Sales Orders using Avalara Avatax API",
"version": "13.0.1.0.0",
"author": "Open Source Integrators, Fabrice Henrion, Odoo SA,"
" Odoo Community Association (OCA)",
"summary": "Sales Orders with automatic Tax application using Avatax",
"license": "AGPL-3",
"category": "Ac... | Python | 0.000739 | @@ -436,10 +436,44 @@
: True,%0A
+ %22development_status%22: %22Beta%22,%0A
%7D%0A
|
df50fd0f82dc1f33a7dfc82cba4a8c0dd821633e | change version checking to work under python 2.6 | checkping.py | checkping.py | """
checkping.py : create nagios commands and checks to ping remote hosts via
nrpe.
"""
"""
Copyright 2013 Andrew Spiers
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/l... | Python | 0.000279 | @@ -699,23 +699,18 @@
sion
-_info.major %3C 3
+%5B0%5D == %222%22
:%0A
|
743f5e855bc87d652fcef72b2f3b7351eb937f4e | fix more tests | corehq/ex-submodules/couchforms/tests/test_post.py | corehq/ex-submodules/couchforms/tests/test_post.py | from __future__ import absolute_import
import json
import os
from django.conf import settings
from django.test import TestCase
from corehq.apps.receiverwrapper.util import submit_form_locally
from corehq.apps.tzmigration.api import phone_timezones_should_be_processed
from corehq.apps.tzmigration.test_utils import \
... | Python | 0.000001 | @@ -750,32 +750,106 @@
%5B'received_on'%5D%0A
+ expected%5B'server_modified_on'%5D = xform_json%5B'server_modified_on'%5D%0A
if any_i
@@ -1059,32 +1059,106 @@
%5B'received_on'%5D%0A
+ expected%5B'server_modified_on'%5D = xform_json%5B'server_modified_on'%5D%0A
expected
|
beff28a4d695b6448c3a1f81aa09bfc685a77e60 | Update kafka start/stop script | script/kafkaServer.py | script/kafkaServer.py | #!/bin/python
from __future__ import print_function
import subprocess
import sys
import json
from util import appendline, get_ip_address
if __name__ == "__main__":
# start server one by one
if len(sys.argv) < 2 or sys.argv[1] not in ['start', 'stop']:
sys.stderr.write("Usage: python %s start or stop\n" % (sys.arg... | Python | 0 | @@ -499,32 +499,38 @@
@'+node%5B'ip'%5D, '
+nohup
bash /usr/local/
@@ -560,16 +560,59 @@
start.sh
+ /usr/local/kafka/config/server.properties&
'%5D)%0A%09%09el
|
a0085e2c6dda853fff77e3166067eae4bf35f307 | Template debug is False in PROD | band_dashboard/settings.py | band_dashboard/settings.py | """
Django settings for band_dashboard project.
Generated by 'django-admin startproject' using Django 1.8.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Bui... | Python | 0.999388 | @@ -4099,28 +4099,58 @@
OOKIE_SECURE = ENV != %22DEV%22%0A
+TEMPLATE_DEBUG = ENV == %22DEV%22%0A
|
f356b561c3536d86addfa01996ecf5cea8fbeb4e | remove comma (#1419) | daisy_workflows/export_metadata/export-metadata.py | daisy_workflows/export_metadata/export-metadata.py | #!/usr/bin/env python3
"""Export the image metadata on a GCE VM.
Parameters retrieved from instance metadata:
metadata_dest: The Cloud Storage destination for the resultant image metadata.
image_id: The resource id of the image.
image_name: The name of the image in GCP.
image_family: The family that image belongs.
d... | Python | 0.000622 | @@ -1336,17 +1336,16 @@
format()
-,
%0A image
|
095951b7950b43e15a3afcbb11f279f445a83d8f | Update afImgPanel.py | scripts/afImgPanel.py | scripts/afImgPanel.py | import pymel.core as pm
imgOp = 0
imgDep = 0
curCam = ''
ImgPln = []
fileNm = ''
pLoc = ''
bmCam = ''
#create image plane and set up some attrs
def createImgPln():
global imgOp
global imgDep
global curCam
global ImgPln
global fileNm
global pLoc
#image plane opacty and offset from camera
... | Python | 0 | @@ -3132,11 +3132,120 @@
True)%0A%0A%0A
+#add switch to the Image Plane transparency%0A%0A#Imgae Plane depth trans%0A%0A#HUD%0A%0A#More Image Planes to the camera
%0A%0A%0A
|
3108f422b0295015091f7426ec34b79dca011a83 | Return 403 if the user does not have permission to do something. 401 if authetication fails | heliosburn/django/hbproject/api/models/auth.py | heliosburn/django/hbproject/api/models/auth.py | # Model to contain authentication and authorization related assets
def is_admin(user):
"""
Tests for 'admin' role on a user_id. Returns True/False.
"""
# Notes to other devs: Do not be tempted to re-write this as a decorator! While a decorator would make
# adding @RequireAdmin very convenient, we ... | Python | 0.003351 | @@ -60,16 +60,77 @@
assets%0A
+from django.http import HttpResponse, HttpResponseBadRequest%0A
%0A%0Adef is
@@ -1925,36 +1925,62 @@
Response
-Forbidden(status=401
+BadRequest(%22Could not obtain user information%22
)%0A
@@ -2125,34 +2125,24 @@
seForbidden(
-status=401
)%0A
@@ -2349,17 +2349,16 @@... |
8585ec38cc3e201d8cc3816c7a15ac81e4960a50 | decrease layers | model/intersection_surface.py | model/intersection_surface.py | import os
from datetime import datetime
import numpy as np
from matplotlib import pyplot as plt
from keras import Input
from keras.callbacks import TensorBoard, EarlyStopping
from keras.engine import Model
from keras.layers import LSTM, Dense, concatenate, Reshape, LeakyReLU
from keras.optimizers import Adam
from topo... | Python | 0.000001 | @@ -862,17 +862,17 @@
IDDEN =
-2
+1
%0AEPOCHS
@@ -873,17 +873,17 @@
POCHS =
-8
+4
00%0AOPTIM
|
508dc3ca5958d78182e0b6a4978159194f36f372 | Make sure that the TMX folder exist in Android extraction (#980) | app/scripts/tmx/tmx_android.py | app/scripts/tmx/tmx_android.py | #!/usr/bin/env python
import argparse
import codecs
import json
import logging
import os
import sys
# Python 2/3 compatibility
try:
from ConfigParser import SafeConfigParser
except ImportError:
from configparser import SafeConfigParser
logging.basicConfig()
# Get absolute path of ../../config from the curren... | Python | 0 | @@ -3868,19 +3868,21 @@
torage_f
-ile
+older
= os.pa
@@ -3881,37 +3881,59 @@
= os.path.join(
-%0A
+self.storage_path, locale)%0A
self
@@ -3924,37 +3924,32 @@
-self.
storage_
path, locale
@@ -3936,28 +3936,67 @@
storage_
-path, locale
+file = os.path.join(%0A storage... |
582f08f1d7bd52076832cc6031473c4363277cf6 | set the default flavor | conarycfg.py | conarycfg.py | #
# Copyright (c) 2004 Specifix, Inc.
# All rights reserved
#
import os
import versions
import sys
class SrsConfiguration:
def read(self, file):
if os.path.exists(file):
f = open(file, "r")
for line in f:
self.configLine(line)
f.close()
def configLine(self, line):
line = line.strip()
if n... | Python | 0.000005 | @@ -55,16 +55,62 @@
erved%0A#%0A
+import deps%0Aimport deps.arch%0Aimport deps.deps%0A
import o
@@ -1778,16 +1778,187 @@
r/tmp/%22%0A
+%09self.instructionSet = deps.arch.current()%0A%0A%09self.flavor = deps.deps.DependencySet()%0A%09self.flavor.addDep(deps.deps.InstructionSetDependency, %0A%09%09%09 self.instructi... |
f195c01ad6a98b3454880106e95fe40bbeb14da0 | Fix unit test for essentia dissonance | tests/test_essentia_dissonance.py | tests/test_essentia_dissonance.py | #! /usr/bin/env python
from unit_timeside import unittest, TestRunner
from timeside.plugins.decoder.file import FileDecoder
from timeside.core import get_processor
from timeside.core.tools.test_samples import samples
class TestEssentiaDissonance(unittest.TestCase):
def setUp(self):
self.analyzer = get_... | Python | 0.000007 | @@ -668,9 +668,9 @@
0.1
-8
+6
, pl
|
306c066009011a35f20dbb5026f05295a5126655 | Add argparser and multi term search | cmakehelp.py | cmakehelp.py | #!/usr/bin/env python3
"""
cmake documentation reader
@author: Aurélien Gâteau <mail@agateau.com>
@license: Apache 2.0
"""
import os
import shlex
import subprocess
import sys
from collections import namedtuple
__appname__ = "cmakehelp"
__version__ = "1.0.0"
__license__ = "Apache 2.0"
DESCRIPTION = """\
cmakehelp ma... | Python | 0 | @@ -117,16 +117,32 @@
2.0%0A%22%22%22%0A
+import argparse%0A
import o
@@ -143,16 +143,16 @@
port os%0A
-
import s
@@ -177,19 +177,8 @@
cess
-%0Aimport sys
%0A%0Afr
@@ -720,16 +720,212 @@
term):%0A
+ terms = term.lower().split(%22 %22)%0A%0A def match(line):%0A line = line.lower()%0A for term... |
385d8a073d2996d639e8bc2af7d11658f28575d2 | add more tests | tests/unit/test_api_repository.py | tests/unit/test_api_repository.py | from vent.api.repository import Repository
from vent.api.system import System
def test_update():
""" Test the update class """
repo = Repository(System().manifest)
repo.update('foo')
| Python | 0 | @@ -73,16 +73,165 @@
ystem%0A%0A%0A
+def test_add():%0A %22%22%22 Test the add function %22%22%22%0A repo = Repository(System().manifest)%0A repo.add('https://github.com/cyberreboot/poseidon')%0A%0A%0A
def test
@@ -269,13 +269,16 @@
ate
-class
+function
%22%22%22
|
915b2f14bf22892d4dca960d7349b9c195c4f636 | change parameters in RedisCache and RedisCacheClient __init__ method | app/tools/cache/redis_cache.py | app/tools/cache/redis_cache.py | #-*- coding:utf-8 -*-
import logging
logging.basicConfig(level=logging.ERROR)
from cache_abstract import CacheAbstractDriver
try:
import redis
except ImportError:
logging.error("Can't import 'redis' module")
exit(-1)
class RedisCacheClient(object):
def __init__(self,**kwargs):
self.__host=kwargs.get('host')
s... | Python | 0.000009 | @@ -270,51 +270,123 @@
elf,
-**kwargs):%0A%09%09self.__host=kwargs.get('
+host,port,db,*args,**kwargs):%0A%09%09isinstance(host,str)%0A%09%09isinstance(port,int)%0A%09%09isinstance(db,int)%0A%09%09self.__host=
host
-')
%0A%09%09s
@@ -400,26 +400,12 @@
ort=
-kwargs.get('
port
-')
%0A%09%09s
@@ -417,24 +417,11 @@
... |
ca3e4c1193f0d397963dd25f9918c9925210ca1e | Update run_XQuery.py | scripts/run_XQuery.py | scripts/run_XQuery.py | #!/usr/bin/env python
import requests
import webbrowser
import argparse
import os
import sys
from requests.auth import HTTPDigestAuth
import time
parser = argparse.ArgumentParser()
parser.add_argument(
"-s", "--script",
dest="script_filename",
action='store',
help="XQuer... | Python | 0.000002 | @@ -2280,959 +2280,4 @@
ml)%0A
-%0A%0A%0A%0A%0A# def run_xquery(filename = xquery_script):%0A# headers = %7B%0A# 'Content-type': 'application/x-www-form-urlencoded',%0A# 'Accept': 'multipart/mixed; boundary=BOUNDARY',%0A# %7D%0A#%0A# #script_file = open(filename)%0A# r=requests.post('ht... |
02a4e17ca4f370a6525fa71dd6e33b9802ff99ff | Add urls only if topology module is active | templates/openwisp2/urls.py | templates/openwisp2/urls.py | from django.conf.urls import include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.core.urlresolvers import reverse_lazy
from django.views.generic import RedirectView
from openwisp_utils.admin_theme.admin import admin, openwisp_admin
openwisp_admin()
redirect_view = RedirectView... | Python | 0 | @@ -462,32 +462,72 @@
roller.urls')),%0A
+ %7B%25 if openwisp2_network_topology %25%7D%0A
url(r'%5Enetwo
@@ -581,24 +581,40 @@
gy.urls')),%0A
+ %7B%25 endif %25%7D%0A
url(r'%5E$
|
6252681a4ecd1b07399ab02baeec80196d7b338f | update docstring | kiva/testing.py | kiva/testing.py | # Copyright (c) 2008-2013 by Enthought, Inc.
# All rights reserved.
from mock import Mock
from kiva.image import GraphicsContext
class KivaTestAssistant(object):
""" Mixin test helper for kiva drawing tests.
"""
def create_mock_gc(
self, width, height, methods=()):
""" Create an ima... | Python | 0.000001 | @@ -344,53 +344,17 @@
t wi
-ll mock the stroke_path%0A and draw_path
+th mocked
met
|
40bcf570afbc8b990efd0c55c5d306fa19845e04 | add constant for reduced length | constants.py | constants.py | """
constants for util and compressr script
"""
REDUCED = 'reduced'
SUFFIX_FLAG = 'suffix_flag'
PREFIX_FLAG = 'prefix_flag'
LENGTH = 'length'
| Python | 0.000085 | @@ -136,8 +136,42 @@
length'%0A
+REDUCED_LENGTH = 'reduced_length'%0A
|
a10b4d98e801fe4f23d8077a74fbbe19e8d10480 | Update poll.py | cron/poll.py | cron/poll.py | Python | 0.000001 | @@ -1 +1,235 @@
%0A
+https://dev.mysql.com/doc/connector-python/en/connector-python-example-connecting.html%0A%0A#SQL Connection Test%0Aimport MySQLdb%0Adb = MySQLdb.connect(host=%22localhost%22, user=%22pi%22, passwd=%22password%22, db=%22pi-heating-hub%22)%0A%0Acur = db.cursor()%0A%0A
| |
19d255b92f59cdba35d928b98978c5c78b22a66b | Remove 'currentaudiostream' properties (bitrate and codec) that could lead to problems when using PAPlayer. | kodi_current.py | kodi_current.py | #!/usr/bin/env python
# author (alterer is a more suitable word) : Guillaume Pierron - "Guiwiz"
#
# This script is largely based on the work of Arnaud Bertrand - "Arn-O"
# You can find his original work (a wonderful python script to control XBMC) here :
# https://github.com/Arn-O/py-xbmc-remote-controller
#
# This scr... | Python | 0 | @@ -534,17 +534,17 @@
= %220.89
-b
+c
%22%0A__modu
@@ -1251,65 +1251,9 @@
%5D%0F'
-+ %5C%0A%09%09 '%0315%5B%0F$audiocodec %0315-%0F $audiobitrate kbps%0315%5D%0F '
+%0A
%0ABAR
@@ -1389,16 +1389,16 @@
al data%0A
+
@@ -1414,147 +1414,8 @@
= %7B
-'audiobitrate':%0A properties%5B'currentaudiostre... |
6d81b78e94a9ce22a2fc0ed912ad383417ae4521 | Return cached resized images in serialised JSON | molly/apps/podcasts/models.py | molly/apps/podcasts/models.py | from django.db import models
from django.conf import settings
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ugettext_noop
from molly.utils.i18n import name_in_language
from molly.apps.podcasts.data import licenses
MEDIUM_CHOIC... | Python | 0 | @@ -207,16 +207,17 @@
xt_noop%0A
+%0A
from mol
@@ -223,44 +223,98 @@
lly.
-utils.i18n import name_in_langu
+apps.podcasts.data import licenses%0Afrom molly.external_media import resize_external_im
age%0A
-%0A
from
@@ -324,42 +324,42 @@
lly.
-apps.podcasts.data import licenses
+utils.i18n import name_in_language
... |
6b2efe0c5b323f650dc1aea217ea9d7270889bc7 | normalize tag names | src/muckrock/tags/models.py | src/muckrock/tags/models.py | """
Models for the tags application
"""
from django.contrib.auth.models import User
from django.db import models
from taggit.models import Tag as TaggitTag, GenericTaggedItemBase
class Tag(TaggitTag):
"""Custom Tag Class"""
user = models.ForeignKey(User, null=True, blank=True)
class Meta:
# pyli... | Python | 0.000114 | @@ -283,16 +283,190 @@
=True)%0A%0A
+ def save(self, *args, **kwargs):%0A %22%22%22Normalize name before saving%22%22%22%0A self.name = self.name.strip().lower()%0A super(Tag, self).save(*args, **kwargs)%0A%0A
clas
|
f58ee914a77ff14039a0afc68518c7bb7ea3a22d | Improve comments in searching for alerts | cron/syncAlertsToMongo.py | cron/syncAlertsToMongo.py | #!/usr/bin/env python
# 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/.
# Copyright (c) 2014 Mozilla Corporation
import calendar
import random
import sys
from datetime i... | Python | 0 | @@ -774,16 +774,132 @@
tes=50)%0A
+ # We use an ExistsMatch here just to satisfy the%0A # requirements of a search query must have some %22Matchers%22%0A
sear
|
ac2369180939991aee83f1aa552acbb802922d19 | Remove comments from syncAlertsToMongo | cron/syncAlertsToMongo.py | cron/syncAlertsToMongo.py | #!/usr/bin/env python
# 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/.
# Copyright (c) 2014 Mozilla Corporation
#
# Contributors:
# Jeff Bryner jbryner@mozilla.com
impo... | Python | 0 | @@ -1642,643 +1642,8 @@
ts%0A%0A
- # begindateUTC = toUTC(datetime.now() - timedelta(minutes=50))%0A # enddateUTC = toUTC(datetime.now())%0A # qDate = pyes.RangeQuery(qrange=pyes.ESRange('utctimestamp',%0A # from_value=begindateUTC,%0A # ... |
960934fb4c9ead99091d32617d98c8d9c4f0d8a5 | include absolute urls in api responses | lakaxita/api.py | lakaxita/api.py | from tastypie.resources import ModelResource
from tastypie import fields
from tastypie.api import Api
from lakaxita.news.models import News
from lakaxita.attachments.models import Attachment
from lakaxita.groups.models import Group
from lakaxita.gallery.models import Category
from lakaxita.lost_found.models import Ite... | Python | 0.000001 | @@ -447,164 +447,118 @@
nd'%0A
-%0A
-returned = fields.BooleanField()%0A%0A def dehydrate(self, bundle):%0A bundle.data%5B'returned'%5D = bundle.obj.found is not None%0A return bundle
+ include_absolute_url = True%0A fields = %5B'name', 'description', 'image', 'lost', 'found', 'slug'%5... |
c450f15ce3be96baca562e61ad236cffa3505cc2 | Allow mul/div of Phasor with cExpr | lcapy/phasor.py | lcapy/phasor.py | from __future__ import division
from .sym import j
from .functions import sin, cos, exp
__all__ = ('Phasor', 'Vphasor', 'Iphasor')
from .omegaexpr import omegaExpr
class Phasor(omegaExpr):
# Could convert Vphasor + Vconst -> VSuper but that is not really
# the scope for types such as Vphasor and Vconst.
... | Python | 0 | @@ -159,16 +159,41 @@
egaExpr%0A
+from .cexpr import cExpr%0A
%0A%0Aclass
@@ -1504,16 +1504,17 @@
ance(x,
+(
omegaExp
@@ -1510,24 +1510,32 @@
, (omegaExpr
+, cExpr)
):%0A
|
c0eb97e9226391cffec7a1c21d0ab1cb97baf791 | Fix expandRectangle not returning ints | cv_algorithms/contours.py | cv_algorithms/contours.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Contour utilities
"""
import cv2
import numpy as np
__all__ = ["meanCenter", "scaleByRefpoint", "extractPolygonMask", "expandRectangle"]
def meanCenter(contour):
"""
Compute the center of a contour by taking the mean of all coordinates
Parameters
--... | Python | 0.000003 | @@ -3282,24 +3282,79 @@
given factor
+.%0A%0A The returned coordinates are rounded to integers
%0A %22%22%22%0A
@@ -3542,17 +3542,76 @@
rn (
-x, y, w, h
+int(round(x)), int(round(y)),%0A int(round(w)), int(round(w))
)%0A
-%0A
|
570da47d1edcf857d87784be07c12f4cdaca80d3 | 'Manager' object is not iterable | cyder/core/ctnr/models.py | cyder/core/ctnr/models.py | from django.contrib.auth.models import User
from django.core.exceptions import ValidationError, FieldError
from django.db import models
from django.db.models import Q
from django.db.models.signals import m2m_changed
from django.forms import ModelForm
from cyder.base.constants import LEVELS, get_klasses
from cyder.base... | Python | 0.999208 | @@ -5198,16 +5198,22 @@
results
+.all()
if p.ra
|
3605dd5c6c1fa2f496a3d21d1909fa534a0a531d | Fix variable name in exec_prompt_async_qt (thanks to pyflakes) | secretstorage/util.py | secretstorage/util.py | # SecretStorage module for Python
# Access passwords using the SecretService DBus API
# Author: Dmitry Shachnev, 2013
# License: BSD
"""This module provides some utility functions, but these shouldn't
normally be used by external applications."""
import dbus
from secretstorage.defines import DBUS_UNKNOWN_METHOD, DBUS... | Python | 0 | @@ -3586,35 +3586,34 @@
end(unlocked)%0A%09%09
-loo
+ap
p.quit()%0A%09exec_p
|
590e9a6c97710097b2ab93fa194d7fa3cce9cb6c | add debug toolbar middleware to codeship settings | muckrock/settings/codeship.py | muckrock/settings/codeship.py | """
Settings used during testing of the application on codeship
Import from test settings
"""
# pylint: disable=wildcard-import
# pylint: disable=unused-wildcard-import
from muckrock.settings.test import *
DATABASES['default'] = {
'NAME': 'test',
'USER': os.environ.get('PG_USER'),
'PASSWORD': os.environ.ge... | Python | 0 | @@ -200,16 +200,92 @@
port *%0A%0A
+MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',)%0A%0A
DATABASE
|
853c727c472efc09df90cb016bd05f81d4cf5e8e | Print a line telling where the site is available at | beetle_preview/__init__.py | beetle_preview/__init__.py | from http import server
from socketserver import TCPServer
import os
class Server:
def __init__(self, own_config, config, builder):
self.directory = config.folders['output']
self.port = own_config.get('port', 5000)
self.builder = builder
def serve(self):
os.chdir(self.director... | Python | 0.000082 | @@ -449,16 +449,95 @@
try:%0A
+ print('Preview available at http://0.0.0.0:%7B%7D/'.format(self.port))%0A
|
d00e8b2bc88d6360d8e3779f28bc27f9fbdd246f | Fix references in model_set | src/smif/model/model_set.py | src/smif/model/model_set.py | """Wrap and solve a set of interdependent models
Given a directed graph of dependencies between models, any cyclic
dependencies are contained within the strongly-connected components of the
graph.
A ModelSet corresponds to the set of models within a single strongly-
connected component. This class provides the machin... | Python | 0 | @@ -759,16 +759,41 @@
taHandle
+, TimestepResolutionError
%0Afrom sm
@@ -800,16 +800,22 @@
if.model
+.model
import
@@ -832,24 +832,8 @@
odel
-, element_before
%0A%0A%0Ac
@@ -4861,166 +4861,71 @@
t
-imestep_before = element_before(%0A data_handle.current_timestep,%0A data_handle.timeste... |
2bf01da9e1f19dbbead83eaad69f264198900ac2 | allow I;16B as uint16 datatype | neuralyzer/io/plugins/tiff.py | neuralyzer/io/plugins/tiff.py |
from __future__ import print_function
from neuralyzer.io.loader import LoaderTemplate
FILE_EXTENSIONS = ('tiff', 'tif', )
DEFAULT_LIBRARY = 'PIL'
class Loader(LoaderTemplate):
@staticmethod
def get_data(filepath, library=DEFAULT_LIBRARY):
if library == 'PIL':
try:
... | Python | 0.000078 | @@ -787,16 +787,43 @@
int16',%0A
+ 'I;16B': 'uint16',%0A
|
9b2b91d50edfd07f36bae9d154128602bd855f8e | Update fusebmc.py | benchexec/tools/fusebmc.py | benchexec/tools/fusebmc.py | # This file is part of BenchExec, a framework for reliable benchmarking:
# https://github.com/sosy-lab/benchexec
#
# SPDX-FileCopyrightText: 2007-2020 Dirk Beyer <https://www.sosy-lab.org>
#
# SPDX-License-Identifier: Apache-2.0
import benchexec.tools.esbmc as esbmc
class Tool(esbmc.Tool):
"""
This class ser... | Python | 0.000001 | @@ -594,16 +594,33 @@
cator):%0A
+ try:%0A
@@ -669,8 +669,98 @@
mc.py%22)%0A
+ except ToolNotFoundException:%0A return super().executable(tool_locator)%0A
|
bd7ccfd86af79c8ad2b1358b3a3e682e7ac88507 | update cache visualisation | vis_cache.py | vis_cache.py | import json
import itertools
import collections
import mercantile
import shapely.geometry
color = itertools.cycle([
'#%X%X%X' % (r, g, b)
for r in range(14, 4, -1)
for g in range(14, 4, -1)
for b in range(14, 4, -1)
if 20 < r + g + b < 36
])
def get_color():
for i in range(3):
r = n... | Python | 0.000001 | @@ -4,48 +4,42 @@
ort
-json%0Aimport itertools%0Aimport collections
+colorsys%0Aimport json%0Aimport string
%0A%0Aim
@@ -84,457 +84,1059 @@
y%0A%0A%0A
-color = itertools.cycle(%5B%0A '#%25X%25X%25X' %25 (r, g, b)%0A for r in range(14, 4, -1)%0A for g in range(14, 4, -1)%0A
+saturations = %5B0.45, 0.5, 0.55... |
82f874ff9ff066d2b19f54a75f846acd62a4d151 | remove unused import | databench/meta.py | databench/meta.py | """Analysis module for Databench."""
from __future__ import absolute_import, unicode_literals, division
import json
import logging
import os
import tornado.gen
import tornado.web
import tornado.websocket
try:
from urllib.parse import parse_qs # Python 3
except ImportError:
from urlparse import parse_qs # P... | Python | 0.000001 | @@ -130,18 +130,8 @@
ing%0A
-import os%0A
impo
|
9342093f824dc21335fb5e5e7b41f7673ab77fd7 | Fix error in docs for TableFormatter | vsut/unit.py | vsut/unit.py | from collections import namedtuple
from enum import Enum
from math import floor, log10
from sys import stdout
from vsut.assertion import AssertResult
AssertionFail = namedtuple("Fail", "id, exception")
class Unit():
"""A unit is a group of tests, that are run at once.
Every method of this class, that starts... | Python | 0.000002 | @@ -2180,16 +2180,24 @@
Status
+Optional
(%7C %5BAsse
|
1d3ab147de66ab7b684f6f2f7b4c0f6db9ff3f6b | Fix Atom syndication to aggregate syndicated sources individually. | wake/base.py | wake/base.py | from datetime import datetime
from urlparse import urljoin
from flask import Blueprint, render_template, abort, request, url_for
from werkzeug.contrib.atom import AtomFeed
from been import Been
blueprint = Blueprint('wake', __name__)
been = blueprint.been = Been()
store = blueprint.store = been.store
@blueprint... | Python | 0 | @@ -1348,278 +1348,252 @@
-feed = AtomFeed('Recent Posts', feed_url=request.url, url=request.url_root,%0A generator=('Wake', None, None))%0A sources = store.get_sources()%0A for event in store.events():%0A if sources%5Bevent%5B'source'%5D%5D.get('syndicate'):%0A feed.add... |
ffd23e87169debc0e79536200d0d1136842776ac | Fix simple typo: wihout -> without (#5708) | dask/dataframe/io/json.py | dask/dataframe/io/json.py | import io
import pandas as pd
from dask.bytes import open_files, read_bytes
import dask
from ..utils import insert_meta_param_description, make_meta
def to_json(
df,
url_path,
orient="records",
lines=None,
storage_options=None,
compute=True,
encoding="utf-8",
errors="strict",
compr... | Python | 0.999991 | @@ -4477,16 +4477,17 @@
locks wi
+t
hout dat
|
9f6f599101c7e06782be1e790567b4ace15246ab | fix no-exec help message | dvc/command/imp_url.py | dvc/command/imp_url.py | import argparse
import logging
from dvc.command import completion
from dvc.command.base import CmdBase, append_doc_link
from dvc.exceptions import DvcException
logger = logging.getLogger(__name__)
class CmdImportUrl(CmdBase):
def run(self):
try:
self.repo.imp_url(
self.args.u... | Python | 0.000005 | @@ -2256,14 +2256,12 @@
ate
-stage
+DVC-
file
@@ -2286,16 +2286,19 @@
download
+ing
it.%22,%0A
|
9513388819604ee29a25f729dda0de3227f7715d | Update route53_zone.py fix indentation typo in examples (#3255) | lib/ansible/modules/extras/cloud/amazon/route53_zone.py | lib/ansible/modules/extras/cloud/amazon/route53_zone.py | #!/usr/bin/python
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed... | Python | 0 | @@ -2278,26 +2278,24 @@
te: present%0A
-
register:
|
ec89d6e40a5faa9a713c833b92db84fd97942199 | save api revision in go-control-plane (#11220) | tools/api/generate_go_protobuf.py | tools/api/generate_go_protobuf.py | #!/usr/bin/env python3
from subprocess import check_output
from subprocess import check_call
import glob
import os
import shutil
import sys
import re
TARGETS = '@envoy_api//...'
IMPORT_BASE = 'github.com/envoyproxy/go-control-plane'
OUTPUT_BASE = 'build_go'
REPO_BASE = 'go-control-plane'
BRANCH = 'master'
MIRROR_MSG ... | Python | 0.000003 | @@ -2800,24 +2800,230 @@
).split()%0A%0A%0A
+def writeRevisionInfo(repo, sha):%0A # Put a file in the generated code root containing the latest mirrored SHA%0A dst = os.path.join(repo, 'envoy', 'COMMIT')%0A with open(dst, 'w') as fh:%0A fh.write(sha)%0A%0A%0A
def syncGoPr
@@ -3993,16 +3993,39 @@
st_sha)%0A
+ ... |
741b81e4420ae77ec441695706fd0fba86965e0f | Add trust region and seeding at center. | vizier/testing/test_studies.py | vizier/testing/test_studies.py | """Test study generator."""
from typing import Collection
from vizier import pyvizier as vz
def flat_space_with_all_types() -> vz.SearchSpace:
"""Search space with all parameter types."""
space = vz.SearchSpace()
root = space.root
root.add_float_param('lineardouble', -1., 2.)
root.add_float_param('logdoub... | Python | 0 | @@ -88,16 +88,312 @@
as vz%0A%0A%0A
+def flat_continuous_space_with_scaling() -%3E vz.SearchSpace:%0A %22%22%22Search space with all parameter types.%22%22%22%0A%0A space = vz.SearchSpace()%0A root = space.root%0A root.add_float_param('lineardouble', -1., 2.)%0A root.add_float_param('logdouble', 1e-4, 1e2, scale_... |
2de7eadf50e92feaa51599fb27934b953bbc0130 | disable cows in the right place... | aminatorplugins/provisioner/buri.py | aminatorplugins/provisioner/buri.py | # -*- coding: utf-8 -*-
#
# Copyright 2014 Joe Hohertz
#
# 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 requi... | Python | 0 | @@ -2374,25 +2374,8 @@
= '
-ANSIBLE_NOCOWS=1
ANSI
@@ -2483,16 +2483,33 @@
ommand('
+ANSIBLE_NOCOWS=1
%7B0%7D%7B1%7D/b
|
0ae75915f821a6fdd648a18ae88368a54e112681 | Version -> 0.20.3 | flavio/_version.py | flavio/_version.py | __version__='0.20.2'
| Python | 0 | @@ -11,11 +11,11 @@
_='0.20.
-2
+3
'%0A
|
429ce55f2b5a07b7572f1acca04ac87ee4db98e1 | Version -> 0.15 | flavio/_version.py | flavio/_version.py | __version__='0.14.1'
| Python | 0 | @@ -13,9 +13,7 @@
'0.1
-4.1
+5
'%0A
|
c49fdf9bda28dc6b53d6a0ae31629a93e918e599 | Use UTF-8. | django_dbdev/backends/postgres.py | django_dbdev/backends/postgres.py | from sh import Command
from sh import ErrorReturnCode
import os.path
from django.conf import settings
from .base import BaseDbdevBackend
DBSETTINGS = {
'ENGINE':'django.db.backends.postgresql_psycopg2',
'PORT': 20021,
'NAME': 'dbdev',
'USER': 'dbdev',
'PASSWORD': 'dbdev',
'HOST': '127.0.0.1',
... | Python | 0 | @@ -1711,16 +1711,67 @@
'-e',%0A
+ encoding='utf-8', locale='en_US.utf8',%0A
@@ -5381,28 +5381,29 @@
ReturnCode:%0A pass
+%0A
|
4b17332254541a348fc69857ea4ca78539f4b422 | call write_ditz after writing templates | django_project/pastertemplates.py | django_project/pastertemplates.py | from os import getlogin, path
from socket import gethostname
from datetime import datetime
from paste.script.templates import Template, var
class DjangoProjectTemplate(Template):
summary = 'Django project template'
use_cheetah = True
_template_dir = 'project_template'
vars = (
var('userna... | Python | 0 | @@ -676,52 +676,8 @@
-self.write_ditz_config(vars)%0A return
supe
@@ -740,21 +740,57 @@
vars
-, asdasd, sad
+)%0A self.write_ditz_config(output_dir, vars
)%0A%0A%0A
@@ -820,16 +820,28 @@
ig(self,
+ output_dir,
vars):%0A
@@ -876,32 +876,14 @@
oin(
-__file__, self._template
+output
_dir
|
b441eaade99194975110a6ed836a119ae9287c25 | Update Minimum_Window_Substring.py | Array/Minimum_Window_Substring.py | Array/Minimum_Window_Substring.py | Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).
For example,
S = "ADOBECODEBANC"
T = "ABC"
Minimum window is "BANC".
Note:
If there is no such window in S that covers all characters in T, return the emtpy string "".
If there are multiple su... | Python | 0.000001 | @@ -2239,8 +2239,1417 @@
b', 'b'%0A
+%0A%0A# The following is the wrong answer !!!%0A # def minWindow(self, s, t):%0A # if not s or not t: return None%0A # if len(t) %3E len(s): return %22%22%0A %0A # idict = %7B%7D%0A # slow = 0; fast = 0%0A # count = 0; %0A # resul... |
0314906b2118a68932a8bc4a83abf5c67a1e6240 | Support `file_name`; add date to file name; fetch version. | foliant/builder.py | foliant/builder.py | from __future__ import print_function
import os, shutil, json
from os.path import join
import yaml
from . import gitutils, pandoc, uploader, seqdiag
def copy_dir_content(src, dest):
for child in os.listdir(src):
if os.path.isfile(join(src, child)):
shutil.copy(join(src, child), dest)
e... | Python | 0 | @@ -81,16 +81,43 @@
rt join%0A
+from datetime import date%0A%0A
import y
@@ -120,16 +120,17 @@
rt yaml%0A
+%0A
from . i
@@ -205,16 +205,84 @@
dest):%0A
+ %22%22%22Recusrively copy directory content to another directory.%22%22%22%0A%0A
for
@@ -524,65 +524,494 @@
get_
-title(document_title, version):%0A ... |
078ceaadc960d4c6fcad5ed1020132dbb3c92db9 | Fix rendering of empty sets in JSON mode in Python REPL | edb/repl/render_json.py | edb/repl/render_json.py | #
# This source file is part of the EdgeDB open source project.
#
# Copyright 2019-present MagicStack Inc. and the EdgeDB 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... | Python | 0.000007 | @@ -5196,32 +5196,63 @@
xt.ReplContext,%0A
+ render_ctx: RenderContext,%0A
buf: termina
|
b2963a72ac727c812533d7743e556b65988a29b6 | test webhook | donkeycar/templates/square.py | donkeycar/templates/square.py | # -*- coding: utf-8 -*-
"""
Web controller.
This example shows how a user use a web controller to controll
a square that move around the image frame.
Usage:
manage.py (drive) [--model=<model>]
manage.py (train) [--tub=<tub1,tub2,..tubn>] (--model=<model>)
"""
import os
from docopt import docopt
import do... | Python | 0.000001 | @@ -4131,20 +4131,17 @@
ottle'%5D%0A
-
+%0A
%0A def
|
6ae236300fc312bdae041bc0e68899ddc1283441 | Add diagram processing to the build routine. | foliant/builder.py | foliant/builder.py | from __future__ import print_function
import os, shutil, json
from os.path import join
import yaml
from . import gitutils, pandoc, uploader
def copy_dir_content(src, dest):
for child in os.listdir(src):
if os.path.isfile(join(src, child)):
shutil.copy(join(src, child), dest)
elif os.pa... | Python | 0 | @@ -133,16 +133,25 @@
uploader
+, seqdiag
%0A%0Adef co
@@ -1613,16 +1613,65 @@
_file)%0A%0A
+ seqdiag.process_diagrams(tmp_dir, src_file)%0A%0A
if t
|
38359dc8c96eb0a305e57a3f3028ab9f4d73f1e2 | Fix Attr error message | weboob/browser/filters/html.py | weboob/browser/filters/html.py | # -*- coding: utf-8 -*-
# Copyright(C) 2014 Romain Bignon
#
# This file is part of weboob.
#
# weboob is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your opti... | Python | 0 | @@ -1700,20 +1700,23 @@
tFound('
-Link
+Element
%25s does
@@ -1722,17 +1722,18 @@
s not ha
-s
+ve
attribu
|
70c030ca326b4d442b4c7dce6137d9d2a9279918 | Add MangaDex/OokamiShounenWaKyouMoUsoOKasaneru | dosagelib/plugins/mangadex.py | dosagelib/plugins/mangadex.py | # SPDX-License-Identifier: MIT
# Copyright (C) 2019-2020 Tobias Gruetzmacher
# Copyright (C) 2019-2020 Daniel Ring
import json
from ..scraper import _ParserScraper
class MangaDex(_ParserScraper):
imageSearch = '//img[contains(@class, "_images")]/@data-url'
prevSearch = '//a[contains(@class, "_prevEpisode")]'... | Python | 0 | @@ -3275,24 +3275,85 @@
n', 22030),%0A
+ cls('OokamiShounenWaKyouMoUsoOKasaneru', 14569),%0A
|
f348bc7e12269db45ab255ca03f9535d31df7dce | change int2bigstring functions to something simpler and better | formspree/utils.py | formspree/utils.py | import datetime
import calendar
from datetime import timedelta
from functools import update_wrapper
from flask import make_response, current_app, request, url_for, jsonify
import base64
import uuid
# decorators
def crossdomain(origin=None, methods=None, headers=None,
max_age=21600, attach_to_all=True... | Python | 0.000001 | @@ -173,22 +173,22 @@
%0Aimport
-base64
+string
%0Aimport
@@ -2532,16 +2532,20 @@
4')))%0A%0A%0A
+def
int2bigs
@@ -2553,131 +2553,240 @@
ring
- = lambda x: base64.b32encode(str(x * x)).lower()%0Abigstring2int = lambda s: int(float(base64.b32decode(s.upper()))**(1.0/2)
+(n):%0A n += 1000%0A n = n * n%0A ... |
389edb64e3bc2827ad6ed313de9656205843ddd1 | Mark all the tests on ASan bots non-critical due to a regression in the ASan runtime. | masters/master.chromium.memory/master_gatekeeper_cfg.py | masters/master.chromium.memory/master_gatekeeper_cfg.py | # Copyright (c) 2012 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.
from master import gatekeeper
from master import master_utils
# This is the list of the builder categories and the corresponding critical
# steps. If on... | Python | 0.000875 | @@ -683,16 +683,164 @@
drops.%0A
+# TODO(glider): disabled all the tests because of the ASan regression. Need to%0A# re-enable them after next Clang roll. See http://crbug.com/177235.%0A
categori
@@ -889,16 +889,17 @@
: %5B%0A
+#
'base_un
@@ -934,16 +934,17 @@
s',%0A
+#
'cachein
@@ -999,16 +999,17 @@
s'... |
621b0d38a96f6368eee277f73643d0d1d6e7785a | added abc | framepy/modules.py | framepy/modules.py |
class Module(object):
def before_setup(self, properties, arguments, beans):
raise NotImplementedError()
def after_setup(self, properties, arguments, context, beans_initializer):
raise NotImplementedError()
| Python | 0.999997 | @@ -1,26 +1,116 @@
-%0Aclass Module(object):
+from abc import ABCMeta, abstractmethod%0A%0A%0Aclass Module(object):%0A __metaclass__ = ABCMeta%0A%0A @abstractmethod
%0A
@@ -201,16 +201,36 @@
rror()%0A%0A
+ @abstractmethod%0A
def
|
92ddd89adb3d0ca128dbddf1c23473e273c5365f | Update to work per-branch instead of per-domain. | lib/python2.6/aquilon/server/commands/flush.py | lib/python2.6/aquilon/server/commands/flush.py | # ex: set expandtab softtabstop=4 shiftwidth=4: -*- cpy-indent-level: 4; indent-tabs-mode: nil -*-
#
# Copyright (C) 2008,2009,2010 Contributor
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the EU DataGrid Software License. You should
# have received a copy of the li... | Python | 0 | @@ -1682,22 +1682,22 @@
achine,
-Domain
+Branch
, Person
@@ -4844,17 +4844,17 @@
for
-d
+b
in sess
@@ -4867,14 +4867,14 @@
ery(
-Domain
+Branch
).al
@@ -4907,17 +4907,17 @@
or h in
-d
+b
.hosts:%0A
@@ -5434,14 +5434,10 @@
in
-domain
+%25s
%25s
@@ -5504,15 +5504,32 @@
qdn,
+
d.
+branch_type, b.
... |
36242b9b032d1a6fed518143aeede76d2377300e | Fix test_update_content_output | noetikon/files/test_models.py | noetikon/files/test_models.py | from io import StringIO
import os
import shutil
from datetime import datetime
from unittest import mock
from django.conf import settings
from django.template.defaultfilters import filesizeformat
from django.test import TestCase
from noetikon.files.models import Directory, File
class BaseTestCase(TestCase):
def ... | Python | 0.000227 | @@ -2501,81 +2501,106 @@
sert
-Equal(fake_out.getvalue(), '%7B%7D/test/r.txt%5Cn..'.format(settings.MEDIA_ROOT
+True('test/r.txt%5Cn' in fake_out.getvalue())%0A self.assertTrue('..' in fake_out.getvalue(
))%0A%0A
|
1cd8e7b40441425d66b1a1ec32c650d1b80a1c43 | Update load prices command | apps/market/management/commands/load_prices.py | apps/market/management/commands/load_prices.py | from optparse import make_option
import pprint
import requests
from django.core.management.base import BaseCommand
from market.models import Price, PriceCurrency
domains = {
'prod': 'https://marketplace.firefox.com',
'stage': 'https://marketplace.allizom.org',
'dev': 'https://marketplace-dev.allizom.or... | Python | 0.000001 | @@ -2094,16 +2094,78 @@
')%5B-1%5D,%0A
+ active=p%5B'active'%5D,%0A
@@ -2386,24 +2386,95 @@
currency'%5D,%0A
+ carrier=pc%5B'carrier'%5D,%0A
|
ac03e854a0108808b049474f1b46bc02f6e9e46b | Use unique username for test superuser | dash/test.py | dash/test.py | from __future__ import unicode_literals
import json
import itertools
import redis
import six
from dash.orgs.models import Org
from dash.utils import random_string
from django.contrib.auth.models import User
from django.http import JsonResponse
from django.test import TestCase
class DashTest(TestCase):
"""
B... | Python | 0.000002 | @@ -481,16 +481,20 @@
ername=%22
+test
root%22, e
|
2ed5a62c615cec5efa0e203846c9dfc230a579be | Fix definition | terminus/models/building.py | terminus/models/building.py | from city_model import CityModel
class Building(CityModel):
def __init__(self, origin, size, height, name=None):
"""
Generates a square building of base (size * size) and the given height,
located at position 'origin'.
"""
super(Building, self).__init__(name)
self.o... | Python | 0.000022 | @@ -399,16 +399,23 @@
box_base
+(self):
%0A
|
00726313128334e825ab7ff8bcdd1244ceca111b | Add import | kai/controllers/articles.py | kai/controllers/articles.py | import logging
from pylons import request, response, session, tmpl_context as c, url
from pylons.controllers.util import abort, redirect_to
from pylons.decorators import rest
from tw.mods.pylonshf import validate
from kai.lib.base import BaseController, render
from kai.lib.decorators import in_group
from kai.lib.help... | Python | 0.000001 | @@ -7,16 +7,26 @@
logging
+%0Aimport re
%0A%0Afrom p
|
1398a33311c2584f49e19b855e54d444d43beabd | Fix a typo | nozama/cloudsearch/data/db.py | nozama/cloudsearch/data/db.py | # -*- coding: utf-8 -*-
"""
"""
import logging
from urllib.parse import urljoin
from pymongo import MongoClient
from elasticsearch import Elasticsearch
class DB(object):
"""An lightwrapper around a mongodb connection.
The init is given the configuration dict::
dict(
db_name='<name>', #... | Python | 1 | @@ -3255,17 +3255,17 @@
ri is '%7B
-0
+1
%7D'%22.form
|
1ceafadc042b9efc77d3d9d5fca9aff367369151 | Add multi_set action | bin/utils/parse_actions.py | bin/utils/parse_actions.py | import argparse
def flag_as_value(value):
class FlagAsInt(argparse.Action):
def __call__(self, parser, namespace, values, option_string=None):
setattr(namespace, self.dest, value)
return FlagAsInt
| Python | 0.000001 | @@ -220,8 +220,268 @@
agAsInt%0A
+%0A%0Adef multi_set(dest1, value1):%0A class MultiSet(argparse.Action):%0A def __call__(self, parser, namespace, values, option_string=None):%0A setattr(namespace, dest1, value1)%0A setattr(namespace, self.dest, values)%0A return MultiSet%0A
|
7a840a5003a7dd8a9e26e15a0eea6acae5401f97 | Fix static files copy | deploy.py | deploy.py | # coding=utf8
"""
Fabfile (http://www.fabfile.org/) to deploy banshee to remote host.
Requirements: fabric
Example usage:
$ python deploy.py -u hit9 -H remote-host:22 --remote-path "/srv/banshee"
--remote-user root:root --refresh
This script will do the following jobs:
1. Install static depdencies.
... | Python | 0.000001 | @@ -2133,24 +2133,26 @@
l(%22cp -r %7B0%7D
+/*
%7B1%7D%22.format
@@ -3081,16 +3081,18 @@
%0A
+ #
upload(
@@ -3100,16 +3100,18 @@
%0A
+ #
if env.
@@ -3122,24 +3122,26 @@
esh:%0A
+ #
refresh
@@ -3163,16 +3163,31 @@
%0A
+ pass%0A #
remove_
|
6fc26b08f6a49fc3d745b790f17f05392d2324d9 | fix deploy.py bug | deploy.py | deploy.py | #!/usr/bin/env python
# coding:utf-8
import os
import sys
import glob
import shutil
import subprocess
__author__ = 'coderzh'
class ChDir:
"""Context manager for changing the current working directory"""
def __init__(self, new_path):
self.newPath = os.path.expanduser(new_path)
d... | Python | 0.000001 | @@ -933,16 +933,17 @@
hugo -v
+-
-cacheDi
|
bb519d85faa4d2177f411eaebb96a827fb942cc5 | Add files via upload | daterobot.py | daterobot.py | # !python3
# import datetime
# import time
from fbjson import lstdate
# from jsonbuilderbis import match
lstdatenew = []
lstnuevafecha = []
for item in lstdate:
#print(lstdate)
fecha = item.split('.')
print(fecha)
#para fecha sin . p. ej [Fr ]
#partida = fecha[0].split(' ')
#print(partida)
#dia ... | Python | 0 | @@ -9,24 +9,16 @@
n3%0D%0A
-#
import
-datetim
+r
e%0D%0A#
@@ -162,51 +162,129 @@
%0D%0A%09#
-print(lstdate)%0D%0A%09fecha = i
+regex para extraer p.e. %0D%0A%09corte = re.compile('.*%5Cs(.*)%5D')%0D%0A%09#print(lstdate)%0D%0A%09nada, fecha, nada2 = cor
te
-m
.split(
-'.'
+item
)%0D%0A%09
+#
prin
@@ -453,19 +4... |
4e57a6f862128e1889a8515da4a3217bff313b96 | add log | hw_printer_network/controllers/hw_printer_network_controller.py | hw_printer_network/controllers/hw_printer_network_controller.py | # -*- coding: utf-8 -*-
# Copyright 2017-2018 Dinar Gabbasov <https://it-projects.info/team/GabbasovDinar>
# Copyright 2018 Tom Blauwendraat <tom@sunflowerweb.nl>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
from openerp import http
import logging
import time
import socket
import subprocess
imp... | Python | 0.000001 | @@ -5127,32 +5127,111 @@
error = False%0A
+ _logger('network printers are : ' + self.network_printers)%0A
|
300dddc30eb9f44cc864a4214f24d3e478da1a52 | Add achievement deleting. | endpoint/achievement.py | endpoint/achievement.py | from db import session
import model
import util
import falcon
class Achievement(object):
def on_get(self, req, resp, id):
achievement = session.query(model.Achievement).get(id)
if achievement is None:
resp.status = falcon.HTTP_404
return
req.context['result'] = { 'achievement': util.achievement.to_json... | Python | 0 | @@ -330,16 +330,697 @@
ent) %7D%0A%0A
+%09def on_delete(self, req, resp, id):%0A%09%09user = req.context%5B'user'%5D%0A%09%09achievement = session.query(model.Achievement).get(id)%0A%0A%09%09if (not user.is_logged_in()) or (not user.is_admin()):%0A%09%09%09resp.status = falcon.HTTP_400%0A%09%09%09return%0A%0A%09%09if ... |
d90a94d2331019b59a9bc0bc5b6c5872fc3433f3 | FIx fiscal offset | bluebottle/looker/utils.py | bluebottle/looker/utils.py | from future import standard_library
standard_library.install_aliases()
from builtins import object
import binascii
from collections import OrderedDict
import json
import hmac
import base64
from hashlib import sha1
import time
import os
from urllib.parse import urlencode, quote_plus
from django.db import connection
fr... | Python | 0.000001 | @@ -30,16 +30,78 @@
ibrary%0A%0A
+from bluebottle.members.models import MemberPlatformSettings%0A%0A
standard
@@ -2183,16 +2183,79 @@
ts.get()
+%0A member_settings = MemberPlatformSettings.objects.get()
%0A%0A
@@ -2865,16 +2865,92 @@
a_name,%0A
+ 'fiscal_month_offset': member_settings.f... |
81835f5c79fc0f2b014f1082c3e49ff141638309 | change middleware name | shoogie/middleware.py | shoogie/middleware.py | import sys
import traceback
from django import http
from django.conf import settings
from django.views import debug
from shoogie import models
class DBExceptionMiddleware(object):
def process_exception(self, request, exception):
if settings.DEBUG:
return
exc_type, ... | Python | 0.000007 | @@ -169,10 +169,8 @@
ass
-DB
Exce
@@ -174,16 +174,23 @@
xception
+Logging
Middlewa
|
b5c5c984e9ded84f0e1afb61e929b6d48ec67a20 | Allow reading annotations from inside a tarball | bob/db/base/annotations.py | bob/db/base/annotations.py | #!/usr/bin/env python
# vim: set fileencoding=utf-8 :
import json
import logging
import os
import collections
logger = logging.getLogger(__name__)
_idiap_annotations = {
1: 'reyeo',
2: 'reyet',
3: 'reyep',
4: 'reyeb',
5: 'reyei',
6: 'leyei',
7: 'leyet',
8: 'leyep',
9: 'leyeb',
... | Python | 0 | @@ -104,16 +104,63 @@
ections%0A
+from bob.extension.download import search_file%0A
logger =
@@ -718,17 +718,16 @@
files.%0A%0A
-%0A
Parame
@@ -812,17 +812,200 @@
to read
-%0A
+. The path can also be like%0A %60%60base_path:relative_path%60%60 where the base_path can be both a directory or%0A a tarbal... |
ac53eff4df753c843a0844471608d4f56d96a81f | improve ability to debug | shop/views/product.py | shop/views/product.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os
from django.db.models import Q
from django.shortcuts import get_object_or_404
from django.utils.translation import get_language_from_request
from rest_framework import generics
from rest_framework import status
from rest_framework import views
fr... | Python | 0.000001 | @@ -1342,22 +1342,20 @@
-return
+qs =
qs.sele
@@ -1385,16 +1385,34 @@
_ctype')
+%0A return qs
%0A%0A de
|
8db0d99114a05f12bb93708e27163113e45c29db | truncate large articles for discord api | cogs/news.py | cogs/news.py | import json
import asyncio
import re
import discord
from datetime import datetime
from dateutil.parser import parse
from utils import aiohttp_wrap as aw
from discord.ext import commands
class News(commands.Cog):
SOURCES = (
"abc-news",
"abc-news-au",
"al-jazeera-english",
"ars-tec... | Python | 0.002001 | @@ -2641,16 +2641,101 @@
iption%22%5D
+ if len(json_dict%5B%22description%22%5D) %3C 1000 else f%22%7Bjson_dict%5B'description'%5D%5B:800%5D%7D ...%22
%0A
|
0c78e44eda54e69c19da6665d9b4166f6c38f948 | Remove debug output | linux/keyman-config/keyman_config/ibus_util.py | linux/keyman-config/keyman_config/ibus_util.py | #!/usr/bin/python3
import os
import time
import gi
import logging
import re
import subprocess
from keyman_config.gnome_keyboards_util import is_gnome_shell
from keyman_config.gsettings import GSettings
gi.require_version('IBus', '1.0')
from gi.repository import IBus
class IbusUtil():
def __init__(self) -> None... | Python | 0.000013 | @@ -2625,53 +2625,8 @@
t):%0A
- logging.info('**** Verify ibus running')%0A
@@ -2660,24 +2660,24 @@
SUDO_USER')%0A
+
user = o
@@ -2921,193 +2921,8 @@
out%0A
- debugps = subprocess.run(('bash', '-c', 'ps -ef %7C grep ibus-daemon'), stdout=subprocess.PIPE).stdout%0A logging.info('**** runni... |
c977e0a6696d9fbe119fa22a33cca4ecf85aff8f | Update LoggerRateLimiter_001_space.py | leetcode/359-Logger-Rate-Limiter/LoggerRateLimiter_001_space.py | leetcode/359-Logger-Rate-Limiter/LoggerRateLimiter_001_space.py | class Logger(object):
def __init__(self):
"""
Initialize your data structure here.
"""
self.log_set = {}
def shouldPrintMessage(self, timestamp, message):
"""
Returns true if the message should be printed in the given timestamp, otherwise returns false.... | Python | 0.000001 | @@ -126,19 +126,20 @@
elf.log_
-set
+hash
= %7B%7D%0A
@@ -532,18 +532,18 @@
+h
s
-t
= self.
@@ -550,11 +550,12 @@
log_
-set
+hash
%0A
@@ -573,18 +573,18 @@
sage in
+h
s
-t
and tim
@@ -592,18 +592,18 @@
stamp -
+h
s
-t
%5Bmessage
@@ -661,18 +661,18 @@
+h
s
-t
%5Bmessage
|
642518d196f0bd9695426fd52bfb58adfd80d23d | Implement tests for change_password | elections_r_us/tests/test_security.py | elections_r_us/tests/test_security.py | from __future__ import unicode_literals
from ..models import User
def test_user_gets_created(new_session):
"""Test that after create_user adds to the database."""
from ..security import create_user
create_user(new_session, 'username', 'password')
assert len(new_session.query(User).all()) == 1
def t... | Python | 0.000015 | @@ -1014,8 +1014,619 @@
'not!')%0A
+%0A%0Adef test_change_password(session_with_user):%0A from ..security import check_login, change_password%0A session, username, password = session_with_user%0A new_password = password + '!'%0A change_password(session, username, new_password)%0A assert check_login(sess... |
eabdf7126dba26446268bef5bd25ed7bbafd4404 | Fix wording of configuration help text | keystone/conf/federation.py | keystone/conf/federation.py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | Python | 0.999645 | @@ -1377,20 +1377,16 @@
er%60. For
- For
%0A%60mod_au
|
087f5aaa8d8ebce5748021dc812bdacc81e958f5 | Make chromium.git report to different perf. | masters/master.chromium.git/master_full_cfg.py | masters/master.chromium.git/master_full_cfg.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.
from master import master_config
from master.factory import chromium_factory
import master_site_config
ActiveMaster = master_site_config.ChromiumGit
defau... | Python | 0.000976 | @@ -1397,19 +1397,23 @@
m-rel-xp
+-git
',%0A
-
'e
@@ -2280,16 +2280,20 @@
-rel-mac
+-git
',%0A
@@ -3185,16 +3185,20 @@
el-linux
+-git
',%0A
@@ -3955,24 +3955,24 @@
ction_host,%0A
-
'perf_
@@ -3998,16 +3998,20 @@
linux-64
+-git
',%0A
|
d65521d0d84d7b398ac3c82fb5deb44628fd77f3 | Bump version: 0.0.5 -> 0.0.6 | conanfile.py | conanfile.py | from conans import ConanFile
from conans.tools import download, unzip
from contextlib import contextmanager
import os
import platform
VERSION = "0.0.5"
def in_dir(directory):
try:
os.makedirs(directory)
except OSError:
pass
try:
old_dir = os.getcwd()
os.chdir(directory)
... | Python | 0 | @@ -147,9 +147,9 @@
0.0.
-5
+6
%22%0A%0A%0A
|
93f916762c66bf6274bc55fd51c56953822e5a66 | make sure the dist and seed args are sent in | cpv/peaks.py | cpv/peaks.py | """
find peaks or troughs in sorted bed files
for a bedgraph file with pvalues in the 4th column. usage would be:
$ python peaks.py --dist 100 --seed 0.01 some.bed > some.regions.bed
where regions.bed contains the start and end of the region and (currently) the
lowest p-value in that region.
"""
from itertools i... | Python | 0 | @@ -3952,16 +3952,91 @@
elp())%0A%0A
+ if not(args.dist and args.seed):%0A sys.exit(not p.print_help())%0A%0A
if a
@@ -4257,16 +4257,59 @@
ator.le%0A
+ assert scmp(args.seed, args.threshold)%0A
# ca
|
5e837ddeca7f749206b76eb568e663e368973f02 | Add summary in l10n_ch_bank | l10n_ch_bank/__openerp__.py | l10n_ch_bank/__openerp__.py | # -*- coding: utf-8 -*-
##############################################################################
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# En... | Python | 0.000744 | @@ -1380,16 +1380,68 @@
list%22,%0A
+ %22summary%22: %22Banks names, addresses and BIC codes%22,%0A
%22descri
|
0cdb2923cd839e1c2d9787348e33deda2ac4d14a | fix pep8 for external patch. | lava_scheduler_app/admin.py | lava_scheduler_app/admin.py | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from lava_scheduler_app.models import (
Device, DeviceStateTransition, DeviceType, TestJob, Tag, JobFailureTag,
User, Worker, DefaultDeviceOwner
)
class DefaultOwnerInline(admin.StackedInline):
"""
Exposes the default owne... | Python | 0.000001 | @@ -230,16 +230,17 @@
wner%0A)%0A%0A
+%0A
class De
|
7f735d75ea071c2544949ec4cadfa23fb4140e01 | Document the sandbox urls.py | sites/sandbox/urls.py | sites/sandbox/urls.py | from django.conf.urls import patterns, include, url
from django.conf import settings
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.conf.urls.static import static
from django.views.generic import TemplateView
from oscar.app import shop
from oscar.views ... | Python | 0 | @@ -226,81 +226,142 @@
tic%0A
+%0A
from
-django.views.generic import TemplateView%0A%0Afrom oscar.app import shop
+oscar.app import shop%0A%0A# These simply need to be imported into this namespace. Ignore the PEP8%0A# warning that they aren't used.
%0Afro
@@ -506,24 +506,90 @@
ite.urls)),%0A
+ # Custom functio... |
7cda27f088487fb8d3e7f09596bee72a7f88aebd | update decorator | decorator.py | decorator.py | #!/usr/bin/env python
# encoding: utf-8
# 函数装饰器
def memp(func):
cache = {}
def wrap(*args):
if args not in cache:
cache[args] = func(*args)
return cache[args]
return wrap
# 第一题
# @memp
def fibonacci(n):
if n <= 1:
return 1
return fibonacci(n - 1) + fibonacci(n... | Python | 0.000001 | @@ -214,18 +214,16 @@
%0A%0A# %E7%AC%AC%E4%B8%80%E9%A2%98%0A
-#
@memp%0Ade
@@ -339,10 +339,10 @@
cci(
+3
5
-0
))%0A%0A
@@ -348,18 +348,16 @@
%0A%0A# %E7%AC%AC%E4%BA%8C%E9%A2%98%0A
-#
@memp%0Ade
@@ -528,16 +528,17 @@
count%0A%0A%0A
+#
print(cl
|
7f76fb523a668d0703f44f9cf8d2db41aea43efb | clean up | elasticsearch_plugin/tasks.py | elasticsearch_plugin/tasks.py | ########
# Copyright (c) 2015 GigaSpaces Technologies Ltd. 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... | Python | 0.000001 | @@ -3060,32 +3060,67 @@
u' in platform:%0A
+ run('sudo apt-get update')%0A
install_
|
fa081a15f00260bfeca451b9f5cfb04f67c4b8a5 | identify config using the options module, not system module | configure.py | configure.py | #!/usr/bin/env python
"""Create configurations."""
import yaml
import sys
# import json
from optparse import OptionParser
import batch
with open(sys.argv[1], 'r') as stream:
try:
appdef = yaml.load(stream)
# print json.dumps(appdef, indent=4, sort_keys=True)
except yaml.YAMLError as exc:
... | Python | 0.998852 | @@ -60,33 +60,8 @@
aml%0A
-import sys%0A# import json%0A
from
@@ -108,206 +108,8 @@
ch%0A%0A
-with open(sys.argv%5B1%5D, 'r') as stream:%0A try:%0A appdef = yaml.load(stream)%0A # print json.dumps(appdef, indent=4, sort_keys=True)%0A except yaml.YAMLError as exc:%0A print(exc)%0A%0A
%0A# ... |
d96e51d60d78b25f6a23938246c7b166ed1ef238 | fix peering | yanoama/system/peering.py | yanoama/system/peering.py | #!/usr/bin/env python
try:
import json
except ImportError:
import simplejson as json
#looking for yanoama module
def get_install_path():
try:
config_file = file('/etc/yanoama.conf').read()
config = json.loads(config_file)
except Exception, e:
print "There was an error in your... | Python | 0.000001 | @@ -1496,16 +1496,20 @@
mbers:'+
+str(
len(loca
@@ -1523,16 +1523,17 @@
.keys())
+)
+', done
|
b2703e712c1a392940b5ab63dd88cf73c5b6db0b | set LOCAL_T_MAX to 5 | constants.py | constants.py | # -*- coding: utf-8 -*-
LOCAL_T_MAX = 20 # repeat step size
RMSP_EPSILON = 1e-10 # epsilon parameter for RMSProp
CHECKPOINT_DIR = 'checkpoints'
LOG_FILE = 'tmp/a3c_log'
INITIAL_ALPHA_LOW = 1e-4 # log_uniform low limit for learning rate
INITIAL_ALPHA_HIGH = 1e-2 # log_uniform high limit for learning rate
PARALLE... | Python | 0.999834 | @@ -18,17 +18,16 @@
-8 -*-%0A%0A
-%0A
LOCAL_T_
@@ -36,10 +36,9 @@
X =
-20
+5
# r
|
7e26cb5baf36fc77e39491d21550a4975843a5ee | Quick fix to redis DEFAULT_TTL type bug | app/notify_client/job_api_client.py | app/notify_client/job_api_client.py | from app.extensions import redis_client
from app.notify_client import NotifyAdminAPIClient, _attach_current_user, cache
class JobApiClient(NotifyAdminAPIClient):
JOB_STATUSES = {
'scheduled',
'pending',
'in progress',
'finished',
'cancelled',
'sending limits exceed... | Python | 0.999182 | @@ -3599,16 +3599,20 @@
ex=
+int(
cache.DE
@@ -3620,16 +3620,17 @@
AULT_TTL
+)
,%0A
|
1066b60aece0e7554439cd3c38b4b3e98f2bda41 | Fix error message construction on python2.6 | libxmp/files.py | libxmp/files.py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2008-2009, European Space Agency & European Southern
# Observatory (ESA/ESO)
# Copyright (c) 2008-2009, CRS4 - Centre for Advanced Studies, Research and
# Development in Sardinia
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# mod... | Python | 0.000006 | @@ -5750,16 +5750,24 @@
t into %7B
+filename
%7D'%0A
@@ -5790,16 +5790,25 @@
.format(
+filename=
os.path.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.