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 |
|---|---|---|---|---|---|---|---|
2a02fa394430b724d414631927bdd506e3ca082c | Update tasks.py | logstash_plugin/tasks.py | logstash_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 | @@ -2187,21 +2187,16 @@
n('sudo
-/bin/
cat %3E %7B0
@@ -2206,16 +2206,16 @@
%3C-EOM '%0A
+
@@ -2281,25 +2281,16 @@
n('sudo
-/usr/bin/
yum -y i
@@ -2432,25 +2432,16 @@
_run('
-/usr/bin/
wget -qO
@@ -2500,21 +2500,16 @@
_run('
-/bin/
echo %22de
@@ -2534,25 +2534,16 @@
'sudo
-/usr/bin/
tee -a... |
3204e36721a245277abcc2f647e374adc08f4b63 | Database name must be uppercase | luigi/gtrnadb/parsers.py | luigi/gtrnadb/parsers.py | # -*- coding: utf-8 -*-
"""
Copyright [2009-2017] EMBL-European Bioinformatics Institute
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.999999 | @@ -2960,22 +2960,22 @@
abase='G
-tRNAdb
+TRNADB
',%0A
|
e0c3a9dbff86a0f311357bfab161d110bfe3a8df | Create separate function for writing to logfile | TwircBot.py | TwircBot.py | import socket
import sys
import re
from datetime import datetime as dt
class TwircBot(object):
"""
Basic Bot class that reads in a config file, connects to chat rooms,
and logs the results.
"""
def __init__(self, config_file_name):
"""Parse the configuration file to retrieve the config p... | Python | 0.000001 | @@ -1117,230 +1117,8 @@
ta)%0A
- log_file = open(self.log_file_name,%22a%22)%0A current_time = dt.strftime(dt.utcnow(), self.time_format)%0A log_file.write(current_time + %22%5Cn%22 + data)%0A log_file.close()%0A
@@ -2993,16 +2993,47 @@
ines():%0A
+ ... |
e01e292cb387fe7006c25907899b3f24070b4e77 | Check existence of resulting path inside `icongetter.get_iconpath()`, since the underlying function is not doing this for absolute path names. As those names are now "officially" supported, this feature was added to the function's docstring. | launchit/icongetter.py | launchit/icongetter.py | """
Detect suitable command icons.
"""
# Stdlib
import glob
import os
import warnings
# 3rd party
import xdg.IconTheme
import xdg.Menu
# launchit package
from . import settings
from ._stringutils import convert, keep_string_type
from .core import is_command, is_executable_file, parse_commandline
# Directory that con... | Python | 0 | @@ -1312,76 +1312,314 @@
ed.%0A
+%0A
-%22%22%22%0A return xdg.IconTheme.getIconPath(icon_name, size, theme)
+Note that %60icon_name%60 may also be given as an absolute path name. %0A It is then returned unchanged, if it exists, ignoring the values%0A for %60size%60 and %60theme%60.%0A %22%22%22%0A ... |
52569c1a662a84d0e56ca276853714d272f7c10b | Update env.tomcat in fab script with latest tomcat 7 version | manage/fabfile/target.py | manage/fabfile/target.py | """
Target Environments
"""
from fabric.api import *
targetenvs = []
def targetenv(f):
"""
Decorator function that makes sure that the list targetenvs contains all
available target environments. It does so by adding the decorated function
to the targetenvs list which is used by the _needs_targetenv f... | Python | 0 | @@ -4787,9 +4787,9 @@
7.0.
-3
+4
7%22%0A
|
5479c0e9dcf92213640c0f07ab8f14d3702e0738 | Fix pdf parsing | modules/leclercmobile/pages/history.py | modules/leclercmobile/pages/history.py | # -*- coding: utf-8 -*-
# Copyright(C) 2012 Florent Fourcot
#
# 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 op... | Python | 0.000001 | @@ -4515,17 +4515,16 @@
ree + 1%0A
-%0A
@@ -4978,24 +4978,286 @@
modif -= 1%0A
+ elif len(re.split(%22(%5Cd+%5C/%5Cd+%5C/%5Cd+)%22, lines%5Bdateop%5D)) %3C 2:%0A dateop = nature + 1%0A corres = dateop + 1%0A duree = corres + 1%0A ... |
e6e1ae536b3a09e36d6fada64b0064003afdd639 | drop UserAdmin.parents_link and UserAdmin.participants_link | leprikon/admin/user.py | leprikon/admin/user.py | from __future__ import unicode_literals
from django import forms
from django.conf.urls import url as urls_url
from django.contrib import admin
from django.contrib.auth import get_user_model, login
from django.contrib.auth.admin import UserAdmin as _UserAdmin
from django.contrib.auth.decorators import user_passes_test
... | Python | 0 | @@ -504,105 +504,8 @@
der%0A
-from django.utils.encoding import smart_text%0Afrom django.utils.functional import cached_property%0A
from
@@ -2972,45 +2972,8 @@
+ %5B
-'parents_link', 'participants_link',
'log
@@ -4255,998 +4255,8 @@
')%0A%0A
- @cached_property%0A def parents_url(self):%0A return rev... |
0e43293a808d315b1cc5ea86c599511bb8cedd0a | exclude wikidata | mapreduce/dbpedia_dbm.py | mapreduce/dbpedia_dbm.py | """
Creates DBPedia labels-types Shelve file of the following format:
{ LABEL: [Type1, Type2, ...], ...}
For example:
Tramore: Town, Settlement, PopulatedPlace, Place
Tramore,_Ireland: Town, Settlement, PopulatedPlace, Place
"""
import subprocess
import urllib
from collections import defaultdict
impo... | Python | 0.002561 | @@ -1474,24 +1474,100 @@
continue%0A
+ if 'http://dbpedia.org/ontology/Wikidata' in type_uri:%0A continue%0A
uri = ur
|
bcac244f676c494b28d81d79b7c661bdbc5cee39 | remove some whitespace I don't like | helpers.py | helpers.py | """
Imposter - Another weblog app
Copyright (c) 2010 by Jochem Kossen <jochem.kossen@gmail.com>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code must retain the above copyright
notice,... | Python | 0.999982 | @@ -2157,19 +2157,17 @@
, writer
- =
+=
html_fra
|
d5c319ae224804ed74f2f0bd7716d827b20ab09a | use frameworks only for swift pods | measure_cocoapod_size.py | measure_cocoapod_size.py | #!/usr/bin/python
#
# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | Python | 0 | @@ -1991,24 +1991,53 @@
write('%5Cn')%0A
+ if mode == MODE_SWIFT:%0A
podfile.
|
988f2cfa9d7dfb643a1efe26e6fd9dc8985c5483 | decode utf8 coming from subprocess | modules/validation/export_validator.py | modules/validation/export_validator.py | from validator import Validator
from ..ether import exec_via_temp, ExportConfig, ether_to_sgml
import re
# TODO: would have been ideal to write this without any filesystem operations
class ExportValidator(Validator):
def __init__(self, rule):
self.corpus = rule[0]
self.doc = rule[1]
self.co... | Python | 0.998153 | @@ -1270,17 +1270,16 @@
schema
-
validate
@@ -1465,16 +1465,31 @@
%3E%22 + err
+.decode(%22utf8%22)
+ %22%3Cbr%3E
|
ea84da1709fac734ec869f2cbfe3a4dbcf7f9be2 | Remove unneeded import | BlockServer/epics/procserv_utils.py | BlockServer/epics/procserv_utils.py | # This file is part of the ISIS IBEX application.
# Copyright (C) 2012-2016 Science & Technology Facilities Council.
# All rights reserved.
#
# This program is distributed in the hope that it will be useful.
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License... | Python | 0.000002 | @@ -843,21 +843,8 @@
php%0A
-import time%0A%0A
from
|
b469e0b953b3be57ea69889fa1a4ff447b433afe | Fix for gradient change in numpy 1.12 | metpy/calc/kinematics.py | metpy/calc/kinematics.py | # Copyright (c) 2008-2015 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause
from __future__ import division
import numpy as np
from ..package_tools import Exporter
from ..constants import g
from ..units import atleast_2d, concatenate, units
exporter =... | Python | 0 | @@ -525,36 +525,59 @@
np.gradient(f, *
+(a.magnitude for a in
args
+)
, **kwargs)%0A
|
717fae72c0ee212e6b02f23c79af99aa76a34a5a | Update hmc.py | hmc/hmc.py | hmc/hmc.py | """
pyhmc: Hamiltonain Monte Carlo Sampling in Python
=================================================
This package is a straight-forward port of the functions `hmc2.m` and
hmc2_opt.m from the [MCMCstuff](http://www.lce.hut.fi/research/mm/mcmcstuff/)
matlab toolbox written by Aki Vehtari. The code is originally based... | Python | 0.000001 | @@ -168,16 +168,17 @@
.m%60 and%0A
+%60
hmc2_opt
@@ -179,16 +179,17 @@
c2_opt.m
+%60
from th
|
47077fd978866acefb127d3ca3b72182a468a020 | Support prelim.csv files in sort_sam.py script. | micall/utils/sort_sam.py | micall/utils/sort_sam.py | #! /usr/bin/env python3
import os
from argparse import ArgumentParser, FileType
import subprocess
def parse_args():
parser = ArgumentParser(description='Sort SAM file before viewing.')
parser.add_argument('sam', help='SAM file to sort')
return parser.parse_args()
def main():
args = parse_args()
... | Python | 0 | @@ -17,16 +17,39 @@
python3%0A
+import csv%0Aimport json%0A
import o
@@ -99,297 +99,1712 @@
Type
-%0A%0Aimport subprocess%0A%0A%0Adef parse_args():%0A parser = ArgumentParser(description='Sort SAM file before viewing.')%0A parser.add_argument('sam', help='SAM file to sort')%0A%0A return parser.parse_args()%... |
f2c800c5c9f88b4b583181e9cf49eb3cd8d538f0 | Improve open_in_browser base tag injection (#5319) | scrapy/utils/response.py | scrapy/utils/response.py | """
This module provides some useful functions for working with
scrapy.http.Response objects
"""
import os
import webbrowser
import tempfile
from typing import Any, Callable, Iterable, Optional, Tuple, Union
from weakref import WeakKeyDictionary
import scrapy
from scrapy.http.response import Response
from twisted.web... | Python | 0 | @@ -107,26 +107,18 @@
%0Aimport
-webbrowse
r
+e
%0Aimport
@@ -126,16 +126,34 @@
empfile%0A
+import webbrowser%0A
from typ
@@ -2933,23 +2933,20 @@
repl = f
-'%3Chead%3E
+r'%5C1
%3Cbase hr
@@ -2990,30 +2990,107 @@
y =
-body.replace(b'%3Chead%3E'
+re.sub(b%22%3C!--.*?--%3E%22, b%22%22, body, flags=re.DOTALL)%0A... |
19f26c267b4cc7a31e6fe2aeaa470d975cf3c3ae | Remove set and update docstring | motobot/core_plugins/bot_management.py | motobot/core_plugins/bot_management.py | from motobot import command, hook, Notice, IRCLevel, Command, Target, Action, Priority
@command('command', level=IRCLevel.master, priority=Priority.max)
def command_command(bot, context, message, args):
""" Command to manage the basic functions of the bot.
The 'join' and 'part' argument both require a channe... | Python | 0 | @@ -253,24 +253,107 @@
f the bot.%0A%0A
+ Valid arguments are: 'join', 'part', 'quit', 'show', 'reconnect' and 'reload'.%0A
The 'joi
@@ -636,83 +636,8 @@
ls.%0A
- The 'set' argument will set an attribute of the bot. Use with caution.%0A
@@ -1390,146 +1390,8 @@
se)%0A
- elif arg == 'set':%0A ... |
db33d02b22ece1f081e4ca2171a76d9e1eb784d9 | Add latest field to form | Instanssi/admin_kompomaatti/forms.py | Instanssi/admin_kompomaatti/forms.py | # -*- coding: utf-8 -*-
from django import forms
from django.shortcuts import get_object_or_404
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Submit, Layout, Fieldset, ButtonHolder
from datetime import datetime
from django.core.exceptions import ValidationError
from django.contrib.auth.mod... | Python | 0 | @@ -3977,32 +3977,71 @@
_from_archive',%0A
+ 'hide_from_frontpage',%0A
|
1b3b3edac1b01a59519690c86647c70a67c4d90b | Add support for relative paths in mac os gen_snapshot. (#35324) | sky/tools/create_macos_gen_snapshots.py | sky/tools/create_macos_gen_snapshots.py | #!/usr/bin/env python3
#
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import argparse
import subprocess
import sys
import os
def main():
parser = argparse.ArgumentParser(
description='Copies ar... | Python | 0 | @@ -236,16 +236,121 @@
ort os%0A%0A
+buildroot_dir = os.path.abspath(%0A os.path.join(os.path.realpath(__file__), '..', '..', '..', '..')%0A)%0A%0A
%0Adef mai
@@ -709,94 +709,288 @@
tr)%0A
+%0A
-parser.add_argument('--armv7-out-
+args = parser.parse_args()%0A%0A dst = (%0A args.dst%0A if os.path.is... |
151fe948e07de094e37b8f5b5b00ab526c59e03e | Fix server error when trying to open Compo page when not logged in | Instanssi/kompomaatti/views/compo.py | Instanssi/kompomaatti/views/compo.py | # -*- coding: utf-8 -*-
from django.http import Http404, HttpResponseRedirect, HttpResponse
from datetime import datetime
from Instanssi.kompomaatti.misc.custom_render import custom_render
from Instanssi.kompomaatti.misc.time_formatting import compo_times_formatter
from Instanssi.kompomaatti.models import Entry, Compo... | Python | 0 | @@ -694,24 +694,181 @@
ter(c)%0A %0A
+ now = datetime.now()%0A %0A # Check if we can show the entries%0A show_entries = False%0A if c.voting_start %3C= now:%0A show_entries = True%0A %0A
# The fo
@@ -1259,37 +1259,8 @@
pen%0A
- now = datetime.now()%0A
@@ -1356,151 +1356,8... |
16b92aac9a7f82a3c15bd2e50d02e4af482a7cf0 | Fix crestHandler auth callback. | mint/web/cresthandler.py | mint/web/cresthandler.py | from conary.repository.netrepos import proxy
import restlib.http.modpython
from restlib import response
import crest.root
import crest.webhooks
from mint.rest.db import database as restDatabase
from mint.db import database
from mint.rest.middleware import auth
def handleCrest(uri, cfg, db, repos, req):
handler... | Python | 0 | @@ -919,21 +919,21 @@
allback(
-auth.
+Crest
Authenti
@@ -1008,19 +1008,35 @@
ass
-AuthChecker
+CrestAuthenticationCallback
(aut
@@ -1059,24 +1059,16 @@
Callback
-(cfg, db
):%0A d
|
c022cc1d1fd22ac14cbc01574a0ff2f9fcb26cc2 | Fix bug. tree formatter. | Controller/hone_aggTreeFormation.py | Controller/hone_aggTreeFormation.py | """
Author: Peng Sun
hone_aggTreeFormation.py
Define factory and class to compose the aggregation tree
"""
import logging
from hone_job import *
from hone_hostEntry import *
DefaultBranchFactor = 4
class TreeFormatterBase:
''' base class of tree formatter '''
def addLeaf(self, hostEntry):
raise NotI... | Python | 0 | @@ -2417,16 +2417,18 @@
Children
+()
) %3C self
|
abc07dcd0b08add083ccabbc99656edb73589f5b | Fix edit scheme command for filenames | plugins_/color_scheme_dev.py | plugins_/color_scheme_dev.py | import functools
import logging
import re
import sublime
import sublime_plugin
from sublime_lib import ResourcePath
from .lib.scope_data import completions_from_prefix
from .lib import syntax_paths
__all__ = (
'ColorSchemeCompletionsListener',
'PackagedevEditSchemeCommand',
)
SCHEME_TEMPLATE = """\
{
// ... | Python | 0 | @@ -4443,24 +4443,25 @@
return%0A
+%0A
scheme_p
@@ -4456,71 +4456,298 @@
-scheme_path = ResourcePath(view.settings().get('color_scheme'))
+# Be lazy here and don't consider invalid values%0A scheme_setting = view.settings().get('color_scheme')%0A if '/' not in scheme_setting:%0A ... |
34e2f4ab9d7258763c4cf024f3f9e48ffec66a66 | Fix abbrs plugin | mistune3/plugins/abbr.py | mistune3/plugins/abbr.py | import re
import types
from ..util import escape
from ..helpers import PREVENT_BACKSLASH
__all__ = ['abbr']
# https://michelf.ca/projects/php-markdown/extra/#abbr
REF_ABBR = (
r'^ {0,3}\*\[(?P<abbr_key>[^\]]+)'+ PREVENT_BACKSLASH + r'\]:'
r'(?P<abbr_text>(?:[ \t]*\n(?: {3,}|\t)[^\n]+)|(?:[^\n]*))$'
)
def parse_... | Python | 0 | @@ -807,23 +807,248 @@
%7D)%0A%0A
-pattern
+if state.tokens:%0A last = state.tokens%5B-1%5D%0A if last%5B'type'%5D == 'text':%0A state.tokens.pop()%0A text = last%5B'raw'%5D + text%0A%0A abbrs_re = state.env.get('abbrs_re')%0A if not abbrs_re:%0A abbrs_re
= re.co
... |
3de70716cc8865196847682444c766507ec42776 | Add missing import, rm init. cap constants | plugin/smispy/eseries.py | plugin/smispy/eseries.py | # Copyright (C) 2011-2014 Red Hat, Inc.
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or any later version.
#
# This library is distributed in the h... | Python | 0 | @@ -787,16 +787,41 @@
rt Smis%0A
+from string import split%0A
import p
@@ -933,22 +933,8 @@
ber,
- Capabilities,
uri
@@ -4125,171 +4125,8 @@
m)%0A%0A
- #We will explicitly set initiator grant/revoke%0A cap.set(Capabilities.VOLUME_INITIATOR_GRANT)%0A cap.set(Capabilities.VOLUME_INITIATOR_REVOK... |
e3fb065c5985027cbcbe01dbfbc3414a96fff961 | Remove setting class variable | keystone/common/validation/validators.py | keystone/common/validation/validators.py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the Li... | Python | 0.999429 | @@ -765,29 +765,8 @@
%22%22%0A%0A
- validator = None%0A
|
f20c911285cc83f2cfe2b4650ba85f4b82eae43c | Improve description about the api | plyer/facades/temperature.py | plyer/facades/temperature.py | class Temperature(object):
'''Temperature facade.
Temperature sensor is used to measure the ambient room temperature in degrees Celsius
With method `enable` you can turn on temperature sensor and 'disable'
method stops the sensor.
Use property `temperature` to get ambient air temperature in degree C... | Python | 0.000004 | @@ -116,24 +116,28 @@
mperature in
+%0A
degrees Cel
@@ -140,16 +140,21 @@
Celsius
+ (%C2%B0C)
%0A Wit
|
bec24879cafaa4e17dd7cd56bcdaa3b04cb378b9 | remove test_dpdk_vf.py from run_tests | plugin_test/run_tests.py | plugin_test/run_tests.py | """Copyright 2015 Mirantis, 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
copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distri... | Python | 0.000002 | @@ -1981,51 +1981,8 @@
oqa%0A
- from tests import test_dpdk_vf # noqa%0A
|
6560d0e29fb5c86188d770958aed2a34921e811a | Remove unused import | socorro/scripts/add_crashid_to_queue.py | socorro/scripts/add_crashid_to_queue.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/.
import argparse
import os
import os.path
import sys
import pika
from socorro.lib.ooid import is... | Python | 0.000001 | @@ -246,23 +246,8 @@
os%0A
-import os.path%0A
impo
|
658abc2bb8dd9fe896b6f1145b6a9f669320ce3b | Debug log the raw Zaqar message | tripleoclient/plugin.py | tripleoclient/plugin.py | # Copyright 2013 Nebula 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... | Python | 0.000001 | @@ -4635,13 +4635,17 @@
-yield
+message =
sel
@@ -4652,16 +4652,81 @@
f.recv()
+%0A LOG.debug(message)%0A yield message
%5B'body'%5D
|
c20c76e2cb4dbbe37f6a294ead050f1b3883d5a2 | FIX use the model_selection | sklearn/ensemble/tests/test_iforest.py | sklearn/ensemble/tests/test_iforest.py |
"""
Testing for Isolation Forest algorithm (sklearn.ensemble.iforest).
"""
# Authors: Nicolas Goix <nicolas.goix@telecom-paristech.fr>
# Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# License: BSD 3 clause
import numpy as np
from sklearn.utils.testing import assert_array_equal
from sklearn.... | Python | 0.000001 | @@ -1,13 +1,12 @@
-%0A
%22%22%22%0ATesting
@@ -770,20 +770,19 @@
arn.
-cross_valida
+model_selec
tion
|
f956159efe43f14618c1b2baed8abaddbab42488 | Fix export_models.py to work with new structure | scripts/export_models.py | scripts/export_models.py | import os
import utils
def process_file(filename):
handle = open(filename, "r")
lines = handle.read().replace("\r", "").split("\n")
handle.close()
real_lines = []
for line in lines:
line = line.replace(" default ", " ")
raw_line = line.strip()
if raw_line.startswith("@") or ... | Python | 0.000001 | @@ -1,12 +1,24 @@
+import json%0A
import os%0Aim
@@ -576,16 +576,21 @@
+real_
files =
os.l
@@ -589,27 +589,10 @@
s =
-os.listdir(dirname)
+%5B%5D
%0A
@@ -602,24 +602,72 @@
ntents = %5B%5D%0A
+ for root, _, files in os.walk(dirname):%0A
for file
@@ -724,32 +724,36 @@
t first%0A
+
+... |
532c7db03b90b54b8859d764084f79cd3ee7e50b | Update example to use RAX_CREDS_FILE env var | plugins/inventory/rax.py | plugins/inventory/rax.py | #!/usr/bin/env python
# (c) 2013, Jesse Keating <jesse.keating@rackspace.com>
#
# 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
... | Python | 0 | @@ -2237,32 +2237,37 @@
code: RAX_CREDS
+_FILE
=~/.raxpub RAX_R
@@ -2362,16 +2362,21 @@
AX_CREDS
+_FILE
=~/.raxp
|
7f876881267da77efeb8c3f5bb585502e33e76fc | add imagefile funcs to namespace | ts_charting/__init__.py | ts_charting/__init__.py | from ts_charting.figure import Figure, Grapher
from ts_charting.charting import *
import ts_charting.ohlc
import ts_charting.boxplot
import ts_charting.span
from ts_charting.styler import styler, marker_styler, level_styler
from ts_charting.ipython import figsize, IN_NOTEBOOK
from ts_charting.plot_3d import plot_wire... | Python | 0.000003 | @@ -319,8 +319,64 @@
reframe%0A
+from ts_charting.imagefile import plot_pdf, save_images%0A
|
cb47cd2fbd37b9fce12abbf1c0ccff38d863f838 | Add some refactorings | scripts/generate_code.py | scripts/generate_code.py | from collections import namedtuple
from itertools import dropwhile, groupby
VARIABLE_SECTION_START = 'Pos. = '
VARIABLE_NAME_FIELD = 'Variable = '
VARIABLE_LABEL_FIELD = 'Variable label = '
VALUE_FIELD = 'Value = '
VALUE_LABEL_FIELD = 'Label = '
Variable = namedtuple('Variable', ['id', 'name', 'label', 'values'])
c... | Python | 0.000243 | @@ -1544,79 +1544,8 @@
s):%0A
- value_lines_split = (line.split('%5Ct') for line in value_lines)%0A
@@ -1633,16 +1633,28 @@
IELD)%5B1%5D
+%0A
for val
@@ -1670,69 +1670,61 @@
in
-value_
+(
line
-s_
+.
split
-%0A %7D%0A if len(values) == 0:%0A
+('%5Ct') for line in value_lin... |
0c825167e814f6a62d7c50decc6877e401ce4e26 | Fix launch_master.py | scripts/launch_master.py | scripts/launch_master.py | #!/usr/bin/env python
# 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.
""" Repeatedly launch the build master in an infinite loop, updating the source
between launches. This script is intended to be run... | Python | 0.000002 | @@ -724,24 +724,157 @@
%22%0A
-cmd = %5B'
+path_to_gclient = os.path.join(os.pardir, os.pardir, 'depot_tools',%0A 'gclient.py')%0A cmd = %5B'python', path_to_
gclient
-'
, 's
|
328c521e49659cb9b7d0e89cfcb1c7a22b4dbd21 | Make more flexible | scripts/matchToNative.py | scripts/matchToNative.py | #!/usr/bin/env ccp4-python
import os
import sys
root = os.sep.join( os.path.abspath(__file__).split( os.sep )[:-2] )
sys.path.insert( 0, os.path.join( root, "python" ) )
sys.path.insert( 0, os.path.join( root, "scripts" ) )
# We use MRBUMP's MTZ_parse
sys.path.append(os.path.join(os.environ["CCP4"], "share", "mrbump... | Python | 0.000049 | @@ -409,17 +409,16 @@
henixer%0A
-%0A
import M
@@ -460,279 +460,225 @@
eMtz
-, mrPdbs ):%0A %0A # Get the labels from the MTZ file%0A print %22Parsing MTZ file %7B0%7D to determine column labels%22.format( nativeMtz )%0A mtzp = MTZ_parse.MTZ_parse()%0A mtzp.run_mtzdmp( nativeMtz )%0A %0A # Gener... |
90d42e80690a80a7099142b6b024c8d3b0f78075 | Fix DelayedCall cancellation in remind plugin on reload | plugins/remind/plugin.py | plugins/remind/plugin.py | from twisted.internet import error, reactor
from cardinal.decorators import command, help
class RemindPlugin:
def __init__(self):
self.call_ids = []
@command('remind')
@help("Sends a reminder after a set time.")
@help("Syntax: .remind <minutes> <message>")
def remind(self, cardinal, user... | Python | 0 | @@ -583,35 +583,32 @@
-
cardinal.sendMsg
@@ -837,16 +837,21 @@
l_id in
+self.
call_ids
|
e6fb45d2e4b28db8e7d638f88e71ab3bc2720f57 | Fix imports for django 1.8 | src/django_babel_underscore/__init__.py | src/django_babel_underscore/__init__.py | # -*- coding: utf-8 -*-
from django.template import Lexer, TOKEN_TEXT
from django.utils.encoding import force_text
from django_babel.extract import extract_django
from django.utils import six
from markey import underscore
from markey.tools import TokenStream
from markey.machine import tokenize, parse_arguments
def ex... | Python | 0.000009 | @@ -17,16 +17,129 @@
f-8 -*-%0A
+import django%0A%0Aif django.VERSION%5B:2%5D %3E= (1, 8):%0A from django.template.base import Lexer, TOKEN_TEXT%0Aelse:%0A
from dja
@@ -176,16 +176,17 @@
EN_TEXT%0A
+%0A
from dja
|
67b12cfb4bac0f9fa8665f6cb82b9527fd821b52 | add slave lag time | newrelic_plugin_agent/plugins/redis.py | newrelic_plugin_agent/plugins/redis.py | """
Redis plugin polls Redis for stats
"""
import logging
from newrelic_plugin_agent.plugins import base
LOGGER = logging.getLogger(__name__)
class Redis(base.SocketStatsPlugin):
GUID = 'com.meetme.newrelic_redis_agent'
DEFAULT_PORT = 6379
def add_datapoints(self, stats):
"""Add all of the d... | Python | 0 | @@ -732,32 +732,172 @@
ted_slaves', 0))
+%0A self.add_gauge_value('Last master IO sync (lag time)', '',%0A stats.get('master_last_io_seconds_ago', 0))
%0A%0A # must
|
a7d261b9049eb2daa79d4e7fc40cc665650f014e | Test print. | ninja_shogun/scripts/shogun_bugbase.py | ninja_shogun/scripts/shogun_bugbase.py | #!/usr/bin/env python
import click
import os
from collections import Counter, defaultdict
import csv
import pandas as pd
import pickle
from ninja_utils.utils import verify_make_dir
from ninja_shogun.wrappers import utree_search
def build_img_map(infile: str):
gg2img_oid = defaultdict(int)
df = pd.DataFrame.... | Python | 0 | @@ -2114,16 +2114,53 @@
', ';')%0A
+ print(taxon)%0A
|
90e01a0e8ef2ea25456e49ad8f2cfa6e7d79b6b9 | add credit | DataSources/raw/mastodon/Scraper.py | DataSources/raw/mastodon/Scraper.py | import sys
sys.path.append('c:/program files/anaconda3/lib/site-packages')
import codecs
import datetime
import json
from mastodon.Mastodon import Mastodon
from mastodon.streaming import StreamListener, MalformedEventError
__all__ = ['Mastodon', 'StreamListener', 'MalformedEventError']
## you need to create an app
... | Python | 0 | @@ -1,12 +1,102 @@
+# uses https://github.com/halcy/Mastodon.py%0A# install by typing pip install Mastodon.py %0A%0A
import sys%0As
|
7b8683f1798659c7fb7d5aa14a762518c60f69ad | fix test cases | learntools/intro_to_programming/ex3.py | learntools/intro_to_programming/ex3.py | from learntools.core import *
def get_expected_cost(beds, baths, has_basement):
value = 80000 + 30000 * beds + 10000 * baths + 40000 * has_basement
return value
class FloatToInt(ThoughtExperiment):
_solution = ("Negative floats are always rounded UP to the closest integer (for instance, "
... | Python | 0.000013 | @@ -2402,36 +2402,40 @@
120),%0A ((
-3, 2
+%22Adrian%22
, True), 230000)
@@ -2419,37 +2419,34 @@
Adrian%22, True),
-23000
+16
0),%0A ((4,
@@ -2435,36 +2435,37 @@
160),%0A ((
-4, 5
+%22Ana%22
, False), 250000
@@ -2450,38 +2450,34 @@
(%22Ana%22, False),
-250000
+71
),%0A %5D%0A _hi
|
d6c81135077867283738bcf9cceb0ce8198808d6 | Enable SSL verify for prod | unicornclient/config.py | unicornclient/config.py | import os
import logging
ENV = os.getenv('PYTHONENV', 'prod')
LOG_LEVEL = logging.DEBUG
LOG_FORMAT = '%(asctime)s - %(levelname)s - %(message)s'
HOST = 'localhost'
PORT = 8080
SSL_VERIFY = False
DEFAULT_ROUTINES = ['auth', 'ping', 'status', 'system']
if ENV == 'prod':
LOG_LEVEL = logging.INFO
HOST = 'unic... | Python | 0 | @@ -334,9 +334,8 @@
-#
SSL_
|
9775ca470e423636880027a39f826452b7ce8d7a | Add the RoutePoint class. It didn't inherit from Django models | moveon/models.py | moveon/models.py | from django.db import models
class Company(models.Model):
name = models.TextField()
code = models.TextField()
url = models.URLField()
logo = models.TextField()
def __str__(self):
return self.name
class Transport(models.Model):
name = models.TextField()
def __str__(se... | Python | 0 | @@ -2571,16 +2571,28 @@
tePoint(
+models.Model
):%0A n
|
5741d373ce42e7fbf7f888e4c220b033d21567fb | move default iembot listen ports | iembot.tac | iembot.tac | # Twisted Bits
from twisted.application import service, internet
from twisted.web import server
from twisted.enterprise import adbapi
# Base Python
import json
# Local Import
import iemchatbot
dbconfig = json.load(open('settings.json'))
application = service.Application("Public IEMBOT")
serviceCollection = service... | Python | 0 | @@ -1062,17 +1062,17 @@
PServer(
-8
+9
003, jso
@@ -1259,9 +1259,9 @@
ver(
-8
+9
004,
|
f32affa563735a64466015ed543cc384531efa85 | Fix missing trim of output string | modules/contrib/shell.py | modules/contrib/shell.py | # pylint: disable=C0111,R0903,W1401
""" Execute command in shell and print result
Few command examples:
'ping -c 1 1.1.1.1 | grep -Po '(?<=time=)\d+(\.\d+)? ms''
'echo 'BTC=$(curl -s rate.sx/1BTC | grep -Po \'^\d+\')USD''
'curl -s https://wttr.in/London?format=%l+%t+%h+%w'
'pip3 freeze | wc -l'
'a... | Python | 0.0005 | @@ -1418,16 +1418,48 @@
command'
+, 'echo %22no command configured%22'
)%0A
@@ -2215,16 +2215,24 @@
rs=True)
+.strip()
%0A
@@ -2703,16 +2703,123 @@
tart()%0A%0A
+ def state(self, _):%0A if self.__output == 'no command configured':%0A return 'warning'%0A%0A
# vim: t
|
a2f8e21ed7ed5d1df756129f3b87fcdb29628bf3 | Fix typo in filename function name | ifs/lib.py | ifs/lib.py | import glob
import importlib
import os
import re
import subprocess
import sys
import urllib
import click
class Cmd(object):
returncode = None
cmd = None
output = None
def __init__(self, cmd):
cmd = "set -e\n%s" % cmd
self.cmd = cmd
def execute(self):
try:
sel... | Python | 0.998527 | @@ -973,24 +973,25 @@
ownload_file
+n
ame(url, tar
@@ -1003,16 +1003,24 @@
%0A if
+url and
os.path.
@@ -1076,16 +1076,32 @@
'/')%5B-1%5D
+%0A return None
%0A%0Adef do
@@ -3206,16 +3206,17 @@
oad_file
+n
ame(dl_u
|
9b3cd3eb39ac3d3e8d0e91de3860f21996ab51aa | fix inv | Cogs/utils.py | Cogs/utils.py | from discord.ext import commands
import discord
import os
import asyncio
import inspect
import textwrap
import tokage
class Utilities:
def __init__(self, bot):
self.bot = bot
@commands.command(hidden=True, enabled=False)
async def setavatar(self, ctx, picture):
path = os.path.join("Bot Pi... | Python | 0.000004 | @@ -2665,16 +2665,63 @@
, ctx):%0A
+ %22%22%22Sends an invite link for the bot%22%22%22%0A
@@ -2763,16 +2763,21 @@
uth_url(
+self.
bot.user
|
4312dcee00eabe97040a7a1da58f25d714a9dfee | Remove debug statement and prevent nsfw for images | scripts/python/reddit.py | scripts/python/reddit.py | #!/usr/bin/env python3
# Copyright 2012-2013 Jake Basile and Kyle Varga
#
# 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 requir... | Python | 0 | @@ -1165,28 +1165,8 @@
00:%0A
-%09print(results.url)%0A
%09sys
@@ -1171,17 +1171,17 @@
ys.exit(
-0
+1
)%0A%0Ajsn =
@@ -1339,16 +1339,50 @@
%5B'url'%5D)
+ and c%5B'data'%5D%5B'over_18'%5D == False
%0A%5D%0Aprint
|
f6cf19966651e8c1e21fa3bde777c5bad6285c9f | add print | scripts/relay_control.py | scripts/relay_control.py | #!/usr/bin/python
import RPi.GPIO as GPIO
import argparse
GPIO.setmode(GPIO.BOARD)
# GPIO/BOARD | Relay IN | Rotors | Zone
# 22/15 | R2 IN2 | 1 | B
# 18/12 | R1 IN2 | 2 | A
# 24/18 | R1 IN3 | 3 | D
# 17/11 | R1 IN4 | 4 | C
# 27/13 | R2 IN1 | 5 | E
relayIO =... | Python | 0.000085 | @@ -390,16 +390,100 @@
state):%0A
+%09print(%22Trying to set relay: %22 + int(relayIO%5Brelay%5D) + %22 to state: %22 + bool(state))%0A
%09GPIO.ou
|
a594f546bdd000dbb0ac6c3e9d33460f71ec77c0 | Comment out 'Terrain' field in both jobs | scripts/runsimulation.py | scripts/runsimulation.py |
import sys
import os
import json
import csv
import shutil
import subprocess
def createSimulationDirectory(simulationid):
# YZ: This directory is created by making a full copy of the 'Facade' folder in the jEPlus repository
directory = 'simulations/{0}'.format(simulationid)
if os.path.exists(directory):
sh... | Python | 0 | @@ -2448,33 +2448,32 @@
ata%5B%22HeatingSP%22%5D
-,
%0A#Site tab (P17)
@@ -2478,32 +2478,34 @@
7)%0A
+ #
jsondata%5B%22Terra
@@ -3422,17 +3422,16 @@
tingSP%22%5D
-,
%0A#Site t
|
ba7792cbede153a1cc4daea92dded29d9f7cf959 | Use start and end anchors when matching book name regex (Fixes Issue #3 in differentiating between Philippians and Philemon) | scriptures/references.py | scriptures/references.py | import re
from .bible_re import testaments, book_re, scripture_re
class InvalidReferenceException(Exception):
"""
Invalid Reference Exception
"""
pass
def get_book(name):
"""
Get a book from its name or None if not found
"""
for books in testaments.values():
for book in books:... | Python | 0 | @@ -338,16 +338,25 @@
e.match(
+'%5E%25s$' %25
book%5B2%5D,
|
62957cca1251084751c78e2b9b5821342d1a9095 | Add properties to CohortsBase model | scuole/cohorts/models.py | scuole/cohorts/models.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from django.db import models
from .managers import CohortQuerySet
class CohortsBase(models.Model):
FEMALE = 'Female'
MALE = 'Male'
GENDER_CHOICES = (
(FEMALE, 'Female'),
(MALE, 'Male'),
)
WHITE = '... | Python | 0 | @@ -103,16 +103,68 @@
t models
+%0Afrom django.utils.functional import cached_property
%0A%0Afrom .
@@ -2737,16 +2737,446 @@
ager()%0A%0A
+ @cached_property%0A def percent_enrolled_higher_education(self):%0A try:%0A return self.total_enrolled / self.enrolled_8th%0A except (TypeError, Z... |
b58dbb8c6d8410a8e745b8e1db318a3e52834c3f | Version bump | articleappkit/__init__.py | articleappkit/__init__.py | """
A set of classes to make creating text- or article-based Django apps easier.
"""
__version_info__ = {
'major': 0,
'minor': 3,
'micro': 0,
'releaselevel': 'beta',
'serial': 3
}
def get_version(short=False):
assert __version_info__['releaselevel'] in ('alpha', 'beta', 'final')
vers = ["%... | Python | 0 | @@ -168,20 +168,21 @@
evel': '
-beta
+final
',%0A '
@@ -190,17 +190,17 @@
erial':
-3
+1
%0A%7D%0A%0A%0Adef
|
781bbdf8e2fb6499804dd52f66a8f7c75bbea2a1 | Print working directory for logs | src/py/rpmostreecompose/imagefactory.py | src/py/rpmostreecompose/imagefactory.py | #!/usr/bin/env python
# Copyright (C) 2014 Colin Walters <walters@verbum.org>, Andy Grimm <agrimm@redhat.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the L... | Python | 0 | @@ -2421,24 +2421,77 @@
gfac.log')%0A%0A
+ print %22ImgFacBuilder logging to: %22 + logfile%0A
self
|
9067e4b8557fb8f15445bc8e976c3c4da8835123 | Change delay after reset password | pritunl_loader/loader.py | pritunl_loader/loader.py | from constants import *
from exceptions import *
import uuid
import subprocess
import os
import paramiko
import base64
import time
import requests
import json
import socket
class IgnorePolicy(paramiko.MissingHostKeyPolicy):
def missing_host_key(self, *args, **kwargs):
pass
class Loader:
def __init__(s... | Python | 0.000001 | @@ -6854,16 +6854,43 @@
sword()%0A
+ time.sleep(30)%0A
|
8bc482db2e9cf98d3e3571f49a85ee7a287efaf7 | Use DjangoJSONEncoder when serving jsonp requests | server/shared/request.py | server/shared/request.py | from django.http import JsonResponse, HttpResponse
from django.shortcuts import render_to_response
from django.template.loader import render_to_string
import logging
import json
import re
logger = logging.getLogger("logger")
class ErrorResponse(Exception):
def __init__(self, message, data=None, status=401, err=N... | Python | 0.000001 | @@ -1,20 +1,79 @@
+from django.core.serializers.json import DjangoJSONEncoder%0A
from django.http imp
@@ -222,27 +222,15 @@
ging
-%0Aimport json%0Aimport
+, json,
re%0A
@@ -1368,16 +1368,82 @@
llback:%0A
+ content = json.dumps(data, cls=DjangoJSONEncoder)%0A
@@ -1570,24 +1570,15 @@
son=
-... |
c27d9dfe166c7dc98beb12c9406e70362e9bddcf | Support Python 3 | flask_indieauth.py | flask_indieauth.py | # -*- coding: utf-8 -*-
"""
Flask-IndieAuth
==============
This extension adds the ability to authorize requests to your Flask
endpoints via [IndieAuth](https://indieweb.org/IndieAuth), using
current_app.config['TOKEN_ENDPOINT'] as the token server.
This is useful for developers of Micropub (ht... | Python | 0.000001 | @@ -626,25 +626,24 @@
-----------%0A
-%0A
%0A
@@ -1451,16 +1451,170 @@
_app, g%0A
+import json%0Atry:%0A # For Python 3.0 and later%0A from urllib.request import Request, urlopen%0Aexcept ImportError:%0A # Fallback to Python2 urllib2%0A
from url
@@ -1642,24 +1642,50 @@
urlopen%0A
+try:%0A ... |
e1d119d743076b29cf19c584c337579903ab3875 | fix templates path | flaskr/__init__.py | flaskr/__init__.py | #!/usr/bin/python3
# -*- coding: latin-1 -*-
import os
import sys
# import psycopg2
import json
from bson import json_util
from pymongo import MongoClient
from flask import Flask, request, session, g, redirect, url_for, abort, \
render_template, flash
def create_app():
app = Flask(__name__)
return app
a... | Python | 0.000001 | @@ -1211,16 +1211,26 @@
mplate('
+templates/
file.htm
@@ -1248,16 +1248,16 @@
=pairs)%0A
-
%0A%0A@app.r
@@ -1480,16 +1480,26 @@
mplate('
+templates/
mongo.ht
@@ -1793,16 +1793,26 @@
mplate('
+templates/
postgres
@@ -1872,24 +1872,24 @@
example():%0A
-
return r
@@ -1904,16 +1904,26 @@
mplate('
+templates... |
22571c096051fefc28b467ca29d93a4f0ea6cb9c | fix column pruning | mongoose_fdw/__init__.py | mongoose_fdw/__init__.py | ###
### Author: David Wallin
### Time-stamp: <2015-03-02 08:56:11 dwa>
from multicorn import ForeignDataWrapper
from multicorn.utils import log_to_postgres as log2pg
from pymongo import MongoClient
class Mongoose_fdw (ForeignDataWrapper):
def __init__(self, options, columns):
super(Mongoose_fdw, self).... | Python | 0.000001 | @@ -1387,15 +1387,8 @@
umns
-.keys()
%7D%0A
|
441cfadb97879d9ac76407145ba77185bbb292f8 | fix regex n test | mots_vides/stop_words.py | mots_vides/stop_words.py | """
StopWord Python container, managing collection of stop words.
"""
import re
class StopWord(object):
"""
Object managing collection of stop words for a given language.
"""
def __init__(self, language, collection=[]):
"""
Initializes with a given language and an optional collection.... | Python | 0.99982 | @@ -1507,27 +1507,72 @@
%5E%7C )
-%7B0%7D(%7C ))%7C(%7B0%7D )%7C%7B0%7D
+((?%3C!%5Cw)%7B0%7D(?!%5Cw))(%7C ))%7C(((?%3C!%5Cw)%7B0%7D(?!%5Cw)) )%7C((?%3C!%5Cw)%7B0%7D(?!%5Cw))
'.fo
|
8447c6e908e1e15f7a0e7e5eb8b114b81075390e | modify test case: delete report | NippoKun/report/tests/test_report.py | NippoKun/report/tests/test_report.py | from django.contrib.auth.models import User
from django.test import TestCase, Client, RequestFactory
from ..models import Report
# Create your tests here.
class CreateReportTest(TestCase):
def setUp(self):
self.client = Client()
self.client.post('/report/user_register/',
... | Python | 0.000729 | @@ -2224,96 +2224,180 @@
-response = self.client.delete(report)%0A self.assertEqual(response.status_code, 404
+before_count = Report.objects.count()%0A self.client.delete(report)%0A after_count = Report.objects.count()%0A self.assertEqual(before_count, after_count + 1
)%0A%0A%0A
|
9c7d335780e219893f0976cda6a5388b51fa0a64 | Update to v19.2.6 | mycroft/version/__init__.py | mycroft/version/__init__.py | # Copyright 2017 Mycroft AI Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | Python | 0 | @@ -903,9 +903,9 @@
D =
-5
+6
%0A# E
|
3a653ec11fe895f625485085fa89053febded331 | Make implementation agree with documentation (both latex and docstring). Even if ignore_errors was true, an exception would occur if path didn't exist. | Lib/shutil.py | Lib/shutil.py | """Utility functions for copying files and directory trees.
XXX The functions here don't copy the resource fork or other metadata on Mac.
"""
import os
import sys
import stat
import exceptions
__all__ = ["copyfileobj","copyfile","copymode","copystat","copy","copy2",
"copytree","move","rmtree","Error"]
c... | Python | 0 | @@ -3233,17 +3233,21 @@
_errors=
-0
+False
, onerro
@@ -3452,25 +3452,24 @@
is raised.%0A
-%0A
%22%22%22%0A
@@ -3479,24 +3479,52 @@
tuples = %5B%5D%0A
+ arg = path%0A try:%0A
_build_c
@@ -3548,24 +3548,28 @@
tuples)%0A
+
+
for func, ar
@@ -3584,29 +3584,16 @@
tuples:%0A
- ... |
0d77cb02dfec448c1de8def96c9b73856b602759 | Update models.py | user_sessions/models.py | user_sessions/models.py | import django
from django.conf import settings
from django.contrib.sessions.models import SessionManager
from django.db import models
from django.utils.translation import ugettext_lazy as _
class Session(models.Model):
"""
Session objects containing user session information.
Django provides full support ... | Python | 0 | @@ -1485,16 +1485,33 @@
ssField(
+verbose_name='IP'
)%0A el
@@ -1549,16 +1549,33 @@
ssField(
+verbose_name='IP'
)%0A%0A%0A# At
|
b5814202bdcc5a15503d6c52c59aa2eb8736b7ec | Add whitelist to redpill plugin | proxy/plugins/redpill.py | proxy/plugins/redpill.py | # redpill.py PSO2Proxy plugin
# For use with redpill.py flask webapp and website for packet logging and management
import sqlite
dbLocation = '/var/pso2-www/redpill/redpill.db'
#TODO | Python | 0 | @@ -121,16 +121,25 @@
t sqlite
+, plugins
%0A%0AdbLoca
@@ -184,10 +184,930 @@
db'%0A
-%0A#TODO
+enabled = False%0A%0Aif enabled:%0A%09@plugins.onStartHook%0A%09def redpillInit():%0A%09%09print(%22%5BRedpill%5D Redpill initilizing with database %25s.%22 %25 dbLocation)%0A%0A%09@plugins.packetHook(0x11, 0x0)%0A%09def ... |
2bd8c77e1b1282412787d88f347e99f361a4d65f | disable flow class by default | config/settings/local.py | config/settings/local.py | # -*- coding: utf-8 -*-
"""
Local settings
- Run in Debug mode
- Use console backend for emails
- Add Django Debug Toolbar
- Add django-extensions as app
"""
import socket
import os
from .common import * # noqa
# DEBUG
# ------------------------------------------------------------------------------
DEBUG = env.bo... | Python | 0 | @@ -3625,13 +3625,14 @@
ABLED',
-Tru
+Fals
e)
|
28f74edc5b2902ccb9026388db789807a5c2e1f1 | Append layout and seat if in csv if exist in ticket. | congressus/invs/utils.py | congressus/invs/utils.py | from django.conf import settings
from django.http import HttpResponse
from .models import Invitation
from tickets.utils import concat_pdf
from tickets.utils import generate_pdf
def gen_csv_from_generator(ig, numbered=True, string=True):
csv = []
name = ig.type.name
for i, inv in enumerate(ig.invitations.... | Python | 0 | @@ -430,16 +430,239 @@
+ line%0A
+ if inv.seat_layout and inv.seat:%0A row, col = inv.seat.split('-')%0A col = int(col) + inv.seat_layout.column_start_number - 1%0A line += ', %25s, %25s, %25s' %25 (inv.seat_layout.gate, row, col)%0A
|
d7284d82367a3f9b7a3db4de88d3c06e92542b23 | fix bug in domain blacklist | muckrock/task/signals.py | muckrock/task/signals.py | """Signals for the task application"""
from django.db.models.signals import post_save
from email.utils import parseaddr
import logging
from muckrock.task.models import OrphanTask, BlacklistDomain
logger = logging.getLogger(__name__)
def domain_blacklist(sender, instance, **kwargs):
"""Blacklist certain domains ... | Python | 0 | @@ -457,16 +457,58 @@
om_who)%0A
+%0A if '@' not in email:%0A return%0A%0A
doma
|
009f1ec1580653dfc600c505622b95d153be231d | fix the id column | util/create_database.py | util/create_database.py | #!/usr/bin/env python
import os
import sys
import sqlite3
base_dir = os.path.dirname(os.path.realpath(os.path.join(__file__, '..')))
db_path = os.path.join(base_dir, 'db/lightspeed.db')
if len(sys.argv) == 2:
db_path = os.path.realpath(sys.argv[1])
try:
conn = sqlite3.connect(db_path)
c = conn.cursor();
... | Python | 0.999679 | @@ -393,35 +393,27 @@
id
-UNSIGNED INT AUTO_INCREMENT
+INTEGER PRIMARY KEY
,%0A
@@ -581,16 +581,20 @@
GNED INT
+EGER
,%0A
@@ -606,16 +606,20 @@
rror INT
+EGER
DEFAULT
@@ -624,34 +624,8 @@
LT 0
-,%0A PRIMARY KEY (id)
%0A
|
3f94d2420e047bddd2223fdb0d865f8b42ab8f10 | add ip to json response | freegeoip/views.py | freegeoip/views.py | # coding: utf-8
import os
import functools
import socket
import struct
import cyclone.escape
import cyclone.locale
import cyclone.web
from twisted.internet import defer, threads
from twisted.names.client import getHostByName
from twisted.python import log
from freegeoip.utils import BaseHandler
from freegeoip.utils... | Python | 0.000001 | @@ -2820,46 +2820,8 @@
4)%0A%0A
- if fmt in (%22csv%22, %22xml%22):%0A
@@ -2875,20 +2875,16 @@
-
-
rs%5B%22ip%22%5D
@@ -2893,16 +2893,51 @@
address
+%0A%0A if fmt in (%22csv%22, %22xml%22):
%0A
@@ -3033,32 +3033,32 @@
%25 fmt, data=rs)%0A
-
else:%0A
@@ -3047... |
49a6541d22e3f6bc0c7d81689127c2efa5e29ec8 | Use dvipng to format sympy.Matrix to PNG display | IPython/extensions/sympyprinting.py | IPython/extensions/sympyprinting.py | """
A print function that pretty prints sympy Basic objects.
:moduleauthor: Brian Granger
Usage
=====
Once the extension is loaded, Sympy Basic objects are automatically
pretty-printed.
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2008-2011 The IPython Develop... | Python | 0 | @@ -1748,16 +1748,236 @@
rn png%0A%0A
+%0Adef print_display_png(o):%0A %22%22%22A function to display sympy expression using LaTex -%3E PNG.%22%22%22%0A s = latex(o, mode='plain')%0A s = s.strip('$')%0A png = latex_to_png('$$%25s$$' %25 s, backend='dvipng')%0A return png%0A%0A%0A
def can_
@@ -4013,32 +... |
30c2463ea91a6ae5c43e3c31d8efae093e9708c3 | fix attempt | viaduct/models/group.py | viaduct/models/group.py | #!/usr/bin/python
from viaduct import db
from viaduct.models.permission import GroupPermission
user_group = db.Table('user_group',
db.Column('user_id', db.Integer, db.ForeignKey('user.id')),
db.Column('group_id', db.Integer, db.ForeignKey('group.id'))
)
class Group(db.Model):
__tablename__ = 'group'
id = db.Col... | Python | 0.000013 | @@ -590,16 +590,57 @@
user):%0A
+%09%09if not user:%0A%09%09%09return False;%0A%09%09else:%0A%09
%09%09return
|
f164d08d5364ba6db333b1be6ce8e2f148f976ec | Basic 'hello' command | __init__.py | __init__.py | from __future__ import unicode_literals
from slackclient import SlackClient
import time
import secrets
sc = SlackClient(secrets.SLACK_API_KEY)
channels = sc.api_call('channels.list', exclude_archived=1)
print(channels)
if sc.rtm_connect():
while True:
events = sc.rtm_read()
for event in events:
... | Python | 0.99994 | @@ -203,44 +203,1188 @@
)%0Apr
-int(channels)%0A%0Aif sc.rtm_connect():%0A
+efix = '!'%0A%0A%0Adef parse_command(event: dict):%0A # Validate event%0A if 'type' not in event:%0A return%0A if event%5B'type'%5D != 'message':%0A return%0A if 'text' not in event:%0A return%0A%0A # Get th... |
1e0c72560537d35f46f532b7ac3e48f52bb5ae31 | Add logger to __init__.py | __init__.py | __init__.py | from maya import cmds
import json
import imp
import os
def getClassList():
"""
Args:
param (logger): logger
Return:
list: list of classes
"""
moduleDirName = "rush"
mayaScriptDir = cmds.internalVar(userScriptDir=True)
moduleRoot = os.path.join(mayaS... | Python | 0.001012 | @@ -16,16 +16,32 @@
t cmds%0D%0A
+import logging%0D%0A
import j
@@ -66,24 +66,226 @@
mport os%0D%0A%0D%0A
+# level = logging.DEBUG%0D%0Alevel = logging.ERROR%0D%0A%0D%0Alogger = logging.getLogger(__name__)%0D%0Ahandler = logging.StreamHandler()%0D%0Alogger.addHandler(handler)%0D%0Alogger.setLevel(level)%0D%0Ahandler... |
980ea4be2fd6d05aa9ec64bfaa50d89161185ccd | rework httplib2.Http to be able to not verify certs if configuration tells the app not to verify them | pubs_ui/metrics/views.py | pubs_ui/metrics/views.py |
from flask import Blueprint, render_template
from flask_login import login_required
from httplib2 import Http
from oauth2client.service_account import ServiceAccountCredentials
from .. import app
metrics = Blueprint('metrics', __name__,
template_folder='templates',
static_fold... | Python | 0 | @@ -762,16 +762,63 @@
object%0A
+ if isinstance(verification_cert, str):%0A
http
@@ -852,17 +852,23 @@
on_cert)
-
+%0A el
if isins
@@ -896,17 +896,235 @@
rt,
-str) else
+bool):%0A # if VERIFY_CERT is False, that means that disable_ssl_certificate_validation should be True and vice versa%0A ... |
290f864f1bb44300cec9bb9e28679c3d7ba70c7e | Test 1 done | cookbook/seismic_conv.py | cookbook/seismic_conv.py | """
Synthetic convolutional seismogram for a simple two layer velocity model
"""
import numpy as np
from fatiando.seismic import conv
from fatiando.vis import mpl
#model parameters
n_samples, n_traces = [600, 20]
rock_grid = 1500.*np.ones((n_samples, n_traces))
rock_grid[300:,:] = 2500.
#synthetic calculation
[vel_l, r... | Python | 0.000001 | @@ -270,16 +270,17 @@
id%5B300:,
+
:%5D = 250
@@ -507,18 +507,20 @@
bplot(3,
+
1,
+
1)%0Ampl.y
@@ -647,16 +647,17 @@
tent=%5B0,
+
n_traces
@@ -672,16 +672,29 @@
les, 0%5D,
+ %0A
cmap=mpl
@@ -708,27 +708,16 @@
.cm.bwr,
-%0A
aspect=
@@ -820,35 +820,33 @@
_wiggle(synt, dt
- =
+=
2.e... |
b4623bcdcd0a35091030057edc52870045a17223 | fix for Anaconda compatibility | __init__.py | __init__.py | '''
Import all subdirectories and modules.
'''
import os as _os
__all__ = []
for _path in _os.listdir(_os.path.dirname(__file__)):
_full_path = _os.path.join(_os.path.dirname(__file__), _path)
if _os.path.isdir(_full_path) and _path not in ['.git', 'examples']:
__import__(_path, locals(), globals())
... | Python | 0 | @@ -262,16 +262,27 @@
xamples'
+, 'widgets'
%5D:%0A
|
2ce8efa3bf227c9a769121a4d313963f0cfbde51 | print sys args | add_data.py | add_data.py | import psycopg2
import sys
from connect import connect_to_db
# add argparse for options via command line
# add new temperature and date
def add_temp(date, temp):
print date, temp
# conn = connect_to_db()
| Python | 0.999189 | @@ -136,80 +136,62 @@
ate%0A
-def add_temp(date, temp):%0A print date, temp%0A # conn = connect_to_db()
+conn = connect_to_db()%0Acur = conn.cursor()%0Aprint sys.argv
%0A
|
85da4c8cb3d613882eb46fb398e361286d4b4286 | fix add_page | add_page.py | add_page.py | from widgy.models import *
page = ContentPage.objects.create(
title='widgy page'
)
page.root_widget = TwoColumnLayout.add_root().node
page.save()
for i in range(3):
page.root_widget.data.left_bucket.add_child(TextContent,
content='yay %s' % i
)
for i in range(2):
page... | Python | 0.000001 | @@ -207,32 +207,37 @@
ata.left_bucket.
+data.
add_child(TextCo
@@ -349,16 +349,21 @@
_bucket.
+data.
add_chil
|
8034a3f237fad994444cbc7edfffb658ef00f908 | Test commit | __init__.py | __init__.py | Python | 0 | @@ -1,2 +1,8 @@
+# test
%0A%0A
| |
f8e0ca3aac5530e0d1d93a1db79cbc17bde3ee89 | Support saving to a file | __main__.py | __main__.py | import sys
from PyQt5.QtCore import QPoint, QRect, Qt
from PyQt5.QtGui import (
QColor,
QImage,
QPainter,
)
from PyQt5.QtWidgets import (
QApplication,
QDesktopWidget,
QWidget,
)
APPLICATION_TITLE = 'Wiggle'
APPLICATION_VERSION = '0.1'
class Image(object):
WIDTH = 256
HEIGHT = 256
... | Python | 0 | @@ -1900,16 +1900,101 @@
target%0A%0A
+ def save(self, filename):%0A self.composited().save(filename, format=None)%0A%0A
%0Aclass C
@@ -3444,16 +3444,289 @@
.end()%0A%0A
+ def keyPressEvent(self, event):%0A if event.key() == Qt.Key_S and %5C%0A bool(event.modifiers() and Qt.Control... |
9cd440760ea789cf712491080e61205d03a027c8 | Support verbose and bleeding config from file | __main__.py | __main__.py | import json, os.path
import discord
from discord.ext import commands
from Fun import Fun
def main():
# variables
config_file = 'config.json'
# load config
with open(config_file) as f:
config = json.load(f)
# split config
description, token = config['description'], config['token']
... | Python | 0 | @@ -310,16 +310,79 @@
'token'%5D
+%0A verbose, token = config%5B'verbose'%5D, config%5B'bleeding'%5D
%0A%0A #
@@ -429,16 +429,52 @@
cription
+, verbose=verbose, bleeding=bleeding
)%0A bo
@@ -728,16 +728,46 @@
ntioned,
+ verbose=False, bleeding=False
**kwarg
@@ -820,19 +820,21 @@
bose =
-Fal
+ver... |
b434636d7b9109eea1064b08f672f43b39083bbf | Use pathlib for everything | __main__.py | __main__.py | #!/usr/bin/env python3
# Run script for CrabBot
# A mess of config args and terminal polling code
#
# See -h or read the argparse setup for argument details
import argparse
import datetime
import logging
import os
import readline # Only for better terminal input support, eg. history. Does not work on Windows, but doe... | Python | 0 | @@ -208,16 +208,41 @@
port os%0A
+from pathlib import Path%0A
import r
@@ -802,16 +802,21 @@
dfile =
+Path(
gettempd
@@ -836,16 +836,17 @@
Bot.pid'
+)
# eg.
@@ -1637,32 +1637,43 @@
'--assets-path',
+ type=Path,
default=%22assets
@@ -1669,17 +1669,22 @@
ult=
-%22
+Path('
assets
-/%22
+')
,%0A
@@ -1781,... |
6bb6f73b6dd5a497a670ec3dc4d85483253737d2 | update dev version after 0.9.6 tag [skip ci] | py/desimodel/_version.py | py/desimodel/_version.py | __version__ = '0.9.6'
| Python | 0 | @@ -13,10 +13,17 @@
= '0.9.6
+.dev431
'%0A
|
a88156ecd020ab9736bcc90856c7f6042d56fab9 | raise exception if user aborts | py/mel/cmd/addcluster.py | py/mel/cmd/addcluster.py | """A tool for adding a new cluster / constellation from photographs."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import cv2
import numpy
def setup_parser(parser):
parser.add_argument(
'context',
type=str,
default=None,
... | Python | 0 | @@ -1963,34 +1963,48 @@
-is_finished = True
+raise Exception('User aborted.')
%0A%0A
|
45e326128beafee61b6913098808fe9e51829615 | remove print | pyLibrary/thread/till.py | pyLibrary/thread/till.py | # encoding: utf-8
#
#
# 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/.
#
# Author: Kyle Lahnakoski (kyle@lahnakoski.com)
#
# THIS THREADING MODULE IS PERMEATED BY THE ple... | Python | 0.000793 | @@ -2420,49 +2420,8 @@
rk:%0A
- print unicode(t)%0A
|
615613a3213e7b4023135b2fc85ac725d5f12656 | Add jvm_path argument to connect method | pyathenajdbc/__init__.py | pyathenajdbc/__init__.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import unicode_literals
import datetime
__version__ = '1.0.2'
__athena_driver_version__ = '1.0.0'
# Globals https://www.python.org/dev/peps/pep-0249/#globals
apilevel = '2.0'
threadsafety = 3
paramstyle = 'pyformat'
ATHENA_JAR = 'Athe... | Python | 0.000001 | @@ -1712,24 +1712,39 @@
matter=None,
+ jvm_path=None,
%0A
@@ -1990,16 +1990,26 @@
rmatter,
+ jvm_path,
%0A
|
d4464407c923ecf75cadcb11cfcac1ad143b0f38 | correct bug | pybioportal/Bioportal.py | pybioportal/Bioportal.py | import requests
import urllib
from requests import HTTPError
class Bioportal(object):
'''A Python binding of the BioPortal REST API
(http://data.bioontology.org/documentation)'''
BASE_URL = 'http://data.bioontology.org'
def __init__(self, api_key):
self.apikey = api_key
def classes(sel... | Python | 0.000004 | @@ -2160,18 +2160,18 @@
us_code
-is
+==
414:%0A
|
462312c3acf2d6daf7d8cd27f251b8cb92647f5e | Fix a typo in the variable name | pybossa/auth/category.py | pybossa/auth/category.py | from flaskext.login import current_user
def create(app=None):
if current_user.is_authenticated():
if current_user.admin is True:
return True
else:
return False
else:
return False
def read(app=None):
return True
def update(app):
return create(app)
d... | Python | 0.999999 | @@ -46,19 +46,24 @@
create(
-app
+category
=None):%0A
@@ -246,19 +246,24 @@
ef read(
-app
+category
=None):%0A
@@ -291,19 +291,24 @@
update(
-app
+category
):%0A r
@@ -320,19 +320,24 @@
create(
-app
+category
)%0A%0A%0Adef
@@ -343,19 +343,24 @@
delete(
-app
+category
):%0A r
@@ -376,9 +376,14 @@
a... |
9e8764128e83b104b6a7000451b7863209541d47 | remove parent accounts from finance_accounts | pycroft/model/finance.py | pycroft/model/finance.py | # -*- coding: utf-8 -*-
# Copyright (c) 2013 The Pycroft Authors. See the AUTHORS file.
# This file is part of the Pycroft project and licensed under the terms of
# the Apache License, Version 2.0. See the LICENSE file for details.
"""
pycroft.model.finance
~~~~~~~~~~~~~~
This module contains the classes F... | Python | 0.000004 | @@ -1204,157 +1204,8 @@
e)%0A%0A
- parent_account_id = Column(Integer, ForeignKey(%22financeaccount.id%22),%0A nullable=True)%0A parent_account = relationship(%22FinanceAccount%22)%0A%0A
%0Acla
|
ce384e6eb3f762f611bfd70874766248169a7d15 | indent fix | nginpro/utils.py | nginpro/utils.py | """
Utilities
"""
from string import Template
"""
Generate configuration blocks
"""
def make_block(name, content, pattern=""):
return Template("""
${name} ${pattern} {
${content}
}
""").safe_substitute(name=name, content=content, pattern=pattern)
"""
Takes a python dictionary an... | Python | 0.000002 | @@ -143,16 +143,25 @@
emplate(
+%0A
%22%22%22%0A
@@ -218,16 +218,20 @@
%7D%0A
+
%22%22%22)
|
96ad539fdf0302dd0e2996f746ce1fd055c8e590 | fix log size to 5mb | vmmaster/core/logger.py | vmmaster/core/logger.py | import logging
import logging.handlers
import graypy
import os
import sys
from .config import config
class StreamToLogger(object):
"""
Fake file-like stream object that redirects writes to a logger instance.
"""
def __init__(self, logger, log_level=logging.INFO):
self.logger = logger
... | Python | 0.000949 | @@ -1173,10 +1173,13 @@
es=5
-1
2
+4288
0, b
|
23ab8664d1ed16ea0339f9b94938e1c95b574132 | Remove silly try/except blocks in button.py | pygametemplate/button.py | pygametemplate/button.py | import time
from pygametemplate import log
class Button(object):
"""Class representing keyboard keys."""
def __init__(self, game, number):
self.game = game
try:
self.number = number
self.event = None # The last event that caused the button press
self.pre... | Python | 0.000001 | @@ -168,33 +168,17 @@
= game%0A
- try:%0A
+%0A
@@ -198,20 +198,16 @@
number%0A
-
@@ -273,36 +273,32 @@
press%0A%0A
-
self.pressed = 0
@@ -338,28 +338,24 @@
sed%0A
-
self.held =
@@ -386,36 +386,32 @@
is held%0A
-
-
self.released =
@@ -44... |
1ee2e880872c4744f4159df7fc64bb64b3f35632 | Add docstring to Button.time_held() method | pygametemplate/button.py | pygametemplate/button.py | import time
class Button(object):
"""Class representing keyboard keys."""
def __init__(self, game, number):
self.game = game
self.number = number
self.event = None # The last event that caused the button press
self.pressed = 0 # If the button was just pressed
sel... | Python | 0.000001 | @@ -718,25 +718,116 @@
e_held(self)
-:
+ -%3E float:%0A %22%22%22Return the amount of time this button has been held for in seconds.%22%22%22
%0A if
|
bc95e7472ed833125771109a3af4a81bec483e81 | Add TODO | lib/output_textview.py | lib/output_textview.py | # coding: UTF-8
"""
Copyright (c) 2009 Marian Tietz
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions a... | Python | 0.000002 | @@ -2076,16 +2076,238 @@
econds%0A%0A
+%09%22%22%22%0A%09TODO: optimize the whole code for manual smooth%0A%09TODO:: scrolling even if the slider is set directly%0A%09TODO:: to a position. This needs a replacement for%0A%09TODO:: the current end-mark (the bottom of the buffer)%0A%09%22%22%22%0A%0A
%09@classm
|
c0607fdcfdfbf42c719f75bef82680f38b1fb043 | change all references to SeqPath.end to .stop | pygr/apps/maf2VSgraph.py | pygr/apps/maf2VSgraph.py | from seqref import *
from pygr.seqdb import *
import string
def refIntervals(s):
begin=0
gaps=0
end=0
for end in range(len(s)):
if(s[end]=='-'):
if(begin<end):
yield (begin,end,begin-gaps,end-gaps,s[begin:end])
begin=end+1
gaps+=1
if end... | Python | 0 | @@ -2181,19 +2181,20 @@
tart,ns.
-end
+stop
)%0A
@@ -2358,19 +2358,20 @@
tart,ns.
-end
+stop
)%0A%0A
|
9777855e779dfc77901a694dd3a9f6dfcc89a23e | Fix command line usage | pyinstrument/__main__.py | pyinstrument/__main__.py | from optparse import OptionParser
import sys
import os
import codecs
from pyinstrument import Profiler
from pyinstrument.profiler import SignalUnavailableError
# Python 3 compatibility. Mostly borrowed from SymPy
PY3 = sys.version_info[0] > 2
if PY3:
import builtins
exec_ = getattr(builtins, "exec")
else:
... | Python | 0.540588 | @@ -786,21 +786,8 @@
...%22
- %25 invocation
)%0A
|
d0bc51c735ebb48b7774d5ddb3e953e505df6b7a | add fallback for FileNotFoundError for py<3.4 | pymdt/tests/test_init.py | pymdt/tests/test_init.py | import unittest
from os import path
import numpy as np
from pymdt import loadm
from pymdt import _parse_variable_name
from pymdt import _parse_array_assignment
from pymdt import _parse_is_sub_array_assignment
from pymdt import _parse_sub_array_assignment_index
_TEST_PATH = path.dirname(path.abspath(__file__))
FILE_S... | Python | 0 | @@ -372,16 +372,183 @@
le.m')%0A%0A
+# FileNotFoundError is not defined until python3.4, so revert back to IOError%0A# if needed%0Atry:%0A FileNotFoundError%0Aexcept NameError:%0A FileNotFoundError = IOError%0A
%0Aclass T
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.