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 |
|---|---|---|---|---|---|---|---|
1a3869b97874888f27817eedb840747ba9399d6e | Add missing slashes | indico/modules/events/papers/blueprint.py | indico/modules/events/papers/blueprint.py | # This file is part of Indico.
# Copyright (C) 2002 - 2017 European Organization for Nuclear Research (CERN).
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 3 of the
# License, or (a... | Python | 0.99999 | @@ -1667,32 +1667,33 @@
p.add_url_rule('
+/
papers/%3Cint:cont
@@ -1834,16 +1834,17 @@
l_rule('
+/
papers/%3C
|
f00bb9484dcac9e36aea43779c497fd27e01ec80 | fix argument name in process_raw | raspberryturk/external/data/process_raw.py | raspberryturk/external/data/process_raw.py | import numpy as np
import cv2
import os
import errno
import shutil
import chess
import hashlib
import argparse
from random import random
from raspberryturk.core.vision.chessboard_frame import ChessboardFrame
from raspberryturk.core.vision.constants import SQUARE_SIZE, BOARD_SIZE
def _create_processed_dir(target_path):... | Python | 0.999346 | @@ -2536,38 +2536,38 @@
r.add_argument('
-target
+source
_path', type=os.
|
50d11a45ddbd2b535111de2307a0c6a1b0443577 | Fix imports | motobot/core_plugins/privmsg_handlers.py | motobot/core_plugins/privmsg_handlers.py | from motobot import hook
from time import strftime, localtime
@hook('PRIVMSG')
def __handle_privmsg(bot, message):
""" Handle the privmsg commands.
Will send the reply back to the channel the command was sent from,
or back to the user whom sent it in the case of a private message.
Commands (prefixed... | Python | 0.000002 | @@ -55,16 +55,26 @@
caltime%0A
+import re%0A
%0A%0A@hook(
|
cfb7e2a4659d8537b8026c2928c5a635e16070ee | Speed up the user admin page | apps/auth/admin.py | apps/auth/admin.py | # Amara, universalsubtitles.org
#
# Copyright (C) 2013 Participatory Culture Foundation
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your ... | Python | 0.999004 | @@ -886,16 +886,71 @@
widgets%0A
+from django.contrib.admin.views.main import ChangeList%0A
from dja
@@ -985,24 +985,24 @@
t UserAdmin%0A
-
from django.
@@ -1875,16 +1875,730 @@
mail%22)%0A%0A
+class UserChangeList(ChangeList):%0A def get_ordering(self, request, queryset):%0A # The default ChangeList cod... |
b6c529733e5334e90210e46227fd6cd64559180f | add support for gcode comments | aprinter_encode.py | aprinter_encode.py | #!/usr/bin/env python2.7
from __future__ import print_function
from __future__ import with_statement
import struct
class GcodeSyntaxError(Exception):
pass
EncodeLineErrors = GcodeSyntaxError
def encode_line(line):
line = line.strip()
if len(line) == 0:
return ''
parts = line.split()
cmd_... | Python | 0 | @@ -211,24 +211,122 @@
line(line):%0A
+ comment_index = line.find(';')%0A if comment_index %3E= 0:%0A line = line%5B:comment_index%5D%0A
line = l
|
84509f2c099d156aca530b311b1edb34c7f7fe69 | version increment | module/plugins/hooks/Ev0InFetcher.py | module/plugins/hooks/Ev0InFetcher.py | # -*- coding: utf-8 -*-
"""
This program 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.
This program is distributed in ... | Python | 0.000002 | @@ -945,17 +945,17 @@
__ = %220.
-1
+2
%22%0A __
|
10ce4afb555375e2cf101c8e89b53f398ba67c8c | Update FilepostCom.py | module/plugins/hoster/FilepostCom.py | module/plugins/hoster/FilepostCom.py | # -*- coding: utf-8 -*-
"""
This program 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.
This program is distributed in... | Python | 0 | @@ -1291,17 +1291,17 @@
_ = %220.2
-7
+8
%22%0A __
@@ -1966,16 +1966,141 @@
%5B%5E'%5D+)'%22
+%0A PREMIUM_ONLY_PATTERN = r'members only. Please upgrade to premium%7Ca premium membership is required to download this file'
%0A%0A de
|
eff9a7fa2c25739926a8c583c51f30fee66185c9 | return plugin name changed at loading | keystoneauth_oidc_refreshtoken/loading.py | keystoneauth_oidc_refreshtoken/loading.py | # coding=utf-8
# Copyright 2017 JOSÉ JOAQUÍN ESCOBAR GÓMEZ
# File: loading.py
# Description:
#
# 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/... | Python | 0 | @@ -927,22 +927,20 @@
gin.
-v3oidcr
+OidcR
efresh
-t
+T
oken
|
b978d2a1f2f9cc9942971a6e252ccd1209a9269b | remove message (#8163) | pytorch_lightning/metrics/__init__.py | pytorch_lightning/metrics/__init__.py | # Copyright The PyTorch Lightning team.
#
# 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 i... | Python | 0 | @@ -1136,297 +1136,4 @@
,%0A)%0A
-from pytorch_lightning.utilities import rank_zero_deprecation%0A%0Arank_zero_deprecation(%0A %22%60pytorch_lightning.metrics.*%60 module has been renamed to %60torchmetrics.*%60 and split off to its own package%22%0A %22 (https://github.com/PyTorchLightning/metrics) since v1.3 a... |
d6b9cc4acb4800aa63cc91957c05c75312a081e5 | update language_by_size from trunk r9110, add new sq-site | pywikibot/families/wikinews_family.py | pywikibot/families/wikinews_family.py | # -*- coding: utf-8 -*-
from pywikibot import family
__version__ = '$Id$'
# The Wikimedia family that is known as Wikinews
class Family(family.Family):
def __init__(self):
family.Family.__init__(self)
self.name = 'wikinews'
self.languages_by_size = [
'sr', 'en', 'pl', 'de', ... | Python | 0 | @@ -456,15 +456,15 @@
', '
-c
+f
a', '
-f
+c
a',
@@ -468,16 +468,22 @@
', 'no',
+ 'sq',
'bs', '
|
06a851590f32acad0bc1e5b0d87cc4b1148b644c | Add unique index to patient_numbers | radar/radar/models/patient_numbers.py | radar/radar/models/patient_numbers.py | from sqlalchemy import Column, Integer, ForeignKey, String, Index
from sqlalchemy.orm import relationship
from radar.database import db
from radar.models import MetaModelMixin
from radar.models.common import uuid_pk_column, patient_id_column, patient_relationship
class PatientNumber(db.Model, MetaModelMixin):
__... | Python | 0.998605 | @@ -781,33 +781,141 @@
%0A%0A#
-TODO add unique index on
+Data source, organisation and number must be unique%0AIndex('patient_numbers_data_source_id_organisation_id_number_idx', PatientNumber.
data
@@ -926,16 +926,30 @@
rce_id,
+PatientNumber.
organisa
@@ -957,22 +957,50 @@
ion_id,
-number
+PatientNumber.numb... |
bd1a953b579440cfda295ae7a4aa1d5986a558d7 | replace yield_fixture decorator by fixture | myhdl/test/core/test_traceSignals.py | myhdl/test/core/test_traceSignals.py | # This file is part of the myhdl library, a Python package for using
# Python as a Hardware Description Language.
#
# Copyright (C) 2003-2008 Jan Decaluwe
#
# The myhdl 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 t... | Python | 0 | @@ -2817,14 +2817,8 @@
est.
-yield_
fixt
|
095ea9ba17c5bb68dcd4e0003864e04077aa3ba3 | Fix pylint | dataset/models/tf/unet.py | dataset/models/tf/unet.py | """Contains class for UNet"""
import tensorflow as tf
import numpy as np
from .layers import conv_block
from . import TFModel
class UNet(TFModel):
""" UNet
https://arxiv.org/abs/1505.04597 (O.Ronneberger et al, 2015)
**Configuration**
inputs : dict
dict with keys 'images' and 'masks' (see :m... | Python | 0.000099 | @@ -2016,32 +2016,51 @@
sor%0A %22%22%22%0A
+ x = inputs%0A
encoder_
@@ -2070,22 +2070,17 @@
puts = %5B
-inputs
+x
%5D%0A
@@ -2664,17 +2664,19 @@
ef head(
-_
+cls
, dim, i
|
c1dae75376ba3293805b2d8a79b08a9138d3bb9c | Mark cymru test as expceted fail | intelmq/tests/bots/experts/cymru_whois/test_expert.py | intelmq/tests/bots/experts/cymru_whois/test_expert.py | # -*- coding: utf-8 -*-
import unittest
import intelmq.lib.test as test
from intelmq.bots.experts.cymru_whois.expert import CymruExpertBot
EXAMPLE_INPUT = {"__type": "Event",
"source.ip": "93.184.216.34", # example.com
"time.observation": "2015-01-01T00:00:00+00:00",
... | Python | 0.000001 | @@ -3930,24 +3930,54 @@
PTY_INPUT)%0A%0A
+ @unittest.expectedFailure%0A
def test
|
e44115c6785fcc80f378e61e98e4ccd32cc9498f | Renames `update_step()` to `train_step()`. | flax/training/train_state.py | flax/training/train_state.py | # Copyright 2021 The Flax Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | Python | 0.999865 | @@ -1561,23 +1561,63 @@
for
-%60update_step()%60
+the %60train_step()%60 function%0A in your training loop
.%0A
|
90f903e887fb0cfe9ca68e4dd0bcf811ea35ceb3 | add dcgan and superresolution | scripts/nb_duet_test.py | scripts/nb_duet_test.py | # For creating Duet tests from notebooks, adapt your notebooks to the following rules:
# 1. The DO/DS notebooks have a predefined format:
# <test_name>_Data_Owner.ipynb and <test_name>_Data_Scientist.ipynb.
#
# 2. Each notebook must have special markdown cells called Checkpoints, with the
# following properties:
# ... | Python | 0 | @@ -1676,16 +1676,20 @@
+ list(%0A
+
Path
@@ -1728,17 +1728,89 @@
.ipynb%22)
-%0A
+) + list(%0A Path(%22examples/duet/super_resolution%22).rglob(%22*.ipynb%22)
):%0A i
|
889a8d8b2bda4b7702949615bc1dd5fd9f5150c0 | add is_on_extended_trial_plan to Hubspot user fields | corehq/apps/analytics/signals.py | corehq/apps/analytics/signals.py | from django.contrib.auth.signals import user_logged_in
from corehq.apps.accounting.utils import ensure_domain_instance
from corehq.apps.analytics.tasks import (
track_user_sign_in_on_hubspot,
HUBSPOT_COOKIE,
update_hubspot_properties,
)
from corehq.apps.analytics.utils import get_meta
from corehq.util.decor... | Python | 0.000001 | @@ -582,16 +582,38 @@
iption,%0A
+ SubscriptionType,%0A
)%0Afrom c
@@ -2532,24 +2532,214 @@
else 'no'%0A%0A
+ def _is_on_extended_trial():%0A service_types = %5Bs.subscription_type for s in all_subscriptions%5D%0A return 'yes' if SubscriptionType.EXTENDED_TRIAL in service_types else 'no'%0A%0A
... |
10a8946a18c953d64648639b5a545ec8fa5da6e8 | Update print_format.py | frappe/utils/print_format.py | frappe/utils/print_format.py | from __future__ import unicode_literals
import frappe, os, copy, json, re
from frappe import _
from frappe.modules import get_doc_path
from jinja2 import TemplateNotFound
from frappe.utils import cint, strip_html
from frappe.utils.pdf import get_pdf,cleanup
import cups
from PyPDF2 import PdfFileWriter, PdfFileReader
... | Python | 0.000011 | @@ -2434,27 +2434,35 @@
ile(
-%22Generic-text-only%22
+print_settings.printer_name
,fil
@@ -2769,54 +2769,23 @@
(_(%22
-Unsupported document-format 'application/pdf'.
+Printing failed
%22))%0A
|
86422fd200726ceaa6ffd06cd2d995f1d068efd9 | input_dropout_ratio must be [0,1) | py/testdir_single_jvm/test_NN2_params_rand2.py | py/testdir_single_jvm/test_NN2_params_rand2.py | import unittest, random, sys, time
sys.path.extend(['.','..','py'])
import h2o, h2o_cmd, h2o_hosts, h2o_glm, h2o_import as h2i, h2o_nn
def define_params():
paramDict = {
'destination_key' : [None, 'NN2_model'],
'ignored_cols' : [None, 0, 1, '0,1'],
'classificat... | Python | 0.999999 | @@ -743,35 +743,57 @@
: %5BNone, 0,
-1%5D,
+0.5, .99%5D, # 1 is illegal
%0A 'hidden
|
ab2d635f6f52c6cbc6c59d3fa887176852e186ff | Move Ko-Fi notifications to private channels. | KofiFriend_Brain.py | KofiFriend_Brain.py | import traceback
import json
import util_functions
from discord.ext import commands
import discord
import sys
import re
import os
import asyncio
from aiohttp import web
import datetime
botToken = os.environ.get('botToken')
def run_app(app, *, host='0.0.0.0', port=None, shutdown_timeout=60.0, ssl_context=None, print=p... | Python | 0 | @@ -1137,36 +1137,20 @@
le=%22
-Crooq's Computer Quest Updat
+Ko-Fi Receiv
ed!%22
@@ -1226,60 +1226,17 @@
has
-giv
+s
en
+t
$%7B%7D
- to the cause! The donation is appreciated!
+.
%22.fo
@@ -1506,30 +1506,8 @@
305'
-, '391157967493267457'
%7D%0A
|
b980d69fe3d2da87814a915c6a85ef930d832860 | Change simple_blend to simply average the predictions | scripts/simple_blend.py | scripts/simple_blend.py | import numpy as np
import os
import sys
sys.path.append(os.path.abspath(os.path.dirname(os.path.dirname(__file__))))
from utils.data_paths import SUBMISSIONS_DIR_PATH
OUTPUT_FILE_PATH = os.path.join(SUBMISSIONS_DIR_PATH, 'simple_blend.dta')
PREDICTION_FILE_PATHS = [os.path.join(SUBMISSIONS_DIR_PATH, 'predictions1.dt... | Python | 0.000001 | @@ -403,72 +403,8 @@
')%5D%0A
-PREDICTION_COEFFICIENTS = %5B0.4,%0A 0.6%5D%0A
%0A%0Ade
@@ -1043,61 +1043,8 @@
s):%0A
- coefficients = np.array(PREDICTION_COEFFICIENTS)%0A
@@ -1168,11 +1168,15 @@
np.
-dot
+average
(np.
@@ -1200,22 +1200,8 @@
set)
-, coefficients
)%0A
|
4657a4fafb1218fe73b76d142c554bd8f347d81f | Make the correct None check | regserver/regulations/views/chrome.py | regserver/regulations/views/chrome.py | from django.conf import settings
from django.http import Http404
from django.views.generic.base import TemplateView
from regulations.generator import generator
from regulations.generator.versions import fetch_grouped_history
from regulations.views import utils
from regulations.views.partial import *
from regulations.v... | Python | 0.999589 | @@ -1243,12 +1243,8 @@
if
-not
full
@@ -1249,16 +1249,24 @@
ll_tree
+is None
or relev
@@ -1273,16 +1273,24 @@
ant_tree
+ is None
:%0A
|
e09d1f7f3b078b6de0f87b05939d776bc43ee483 | Comment about hack | pax/pax.py | pax/pax.py | import logging
import inspect
import pprint
import configparser
from pax import units
import os
from pluginbase import PluginBase
from pax import units
def EvaluateConfiguration(config):
evaled_config = {}
for key, value in config.items():
evaled_config[key] = eval(value, {
name : getatt... | Python | 0 | @@ -245,16 +245,76 @@
tems():%0A
+ #Eval value with globals = everything from units...%0A
|
f5b3d351a52d32b5485bf1a0766d8eb2ab213eea | Update views.py | app/auth/views.py | app/auth/views.py | from flask import render_template, \
redirect, request, url_for, flash
from flask.ext.login import login_user, \
logout_user, login_required, current_user
from . import auth
from app import db
from ..models import User, Notebook
from ..email import send_email
from .forms import LoginForm, RegistrationForm, \
... | Python | 0 | @@ -2571,32 +2571,16 @@
oken%3E')%0A
-@login_required%0A
def conf
|
2779fdd14279e017f35780fe343b1c7243898397 | Fix extension description and remove unused exception | neutron/extensions/l3_ext_gw_mode.py | neutron/extensions/l3_ext_gw_mode.py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2013 Nicira Networks, Inc.
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apac... | Python | 0 | @@ -820,251 +820,29 @@
ron.
-common import exceptions as qexception%0Afrom neutron.extensions import l3%0A%0A%0Aclass RouterDNatDisabled(qexception.BadRequest):%0A message = _(%22DNat is disabled for the router %25(router_id)s. Floating IPs %22%0A %22cannot be associated.%22)
+extensions import l3%0A... |
e953457bf21713931182a976886cbe31405e1de1 | Fix payment transactions target field | payment.py | payment.py | # -*- coding: utf-8 -*-
"""
payment
:copyright: (c) 2014 by Openlabs Technologies & Consulting (P) Limited
:license: BSD, see LICENSE for more details.
"""
from decimal import Decimal
from trytond.model import ModelSQL, ModelView, fields
from trytond.pool import PoolMeta, Pool
from trytond.pyson import Ev... | Python | 0.000285 | @@ -1124,16 +1124,21 @@
tion', '
+sale_
payment'
|
382507ea22b57b042eefe0fac4a9e333e797a55d | Remove comment and single equals to pin the version | scripts/update_teams.py | scripts/update_teams.py | #!/usr/bin/env conda-execute
# conda execute
# env:
# - python
# - conda-smithy
# - pygithub 1.*
# - six
# This needs to be pinned because selectors are an issue in 1.20.2
# - conda-build =1.20.1
# channels:
# - conda-forge
# run_with: python
import argparse
import collections
import os
import six
from github ... | Python | 0 | @@ -107,75 +107,8 @@
six%0A
-# This needs to be pinned because selectors are an issue in 1.20.2%0A
# -
@@ -120,17 +120,16 @@
a-build
-=
1.20.1%0A#
|
f78672957aa1458f0d1307685f6f1c30ad2db2a2 | Change vlan range | neutron_ci/ci/tests/test_ml2_ucsm.py | neutron_ci/ci/tests/test_ml2_ucsm.py | # Copyright 2014 Cisco Systems, 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 o... | Python | 0.000001 | @@ -659,22 +659,8 @@
c.%0A%0A
-import socket%0A
impo
@@ -702,108 +702,8 @@
PATH
-, %5C%0A NEXUS_VLAN_START, NEXUS_VLAN_END, %5C%0A NEXUS_INTF_NUM, NEXUS_IP, NEXUS_USER, NEXUS_PASSWORD
%0Afro
@@ -1050,16 +1050,17 @@
branch%7D%0A
+%0A
MYSQL_PA
@@ -1471,16 +1471,17 @@
tempest%0A
+%0A
enable_p
@@ -1561,16 +15... |
aaa6142718827ea6d568eccc75c624598b0bc9c9 | Update __init__.py | pymeasure/instruments/thorlabs/__init__.py | pymeasure/instruments/thorlabs/__init__.py | #
# This file is part of the PyMeasure package.
#
# Copyright (c) 2013-2020 PyMeasure Developers
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limit... | Python | 0.000072 | @@ -1197,8 +1197,53 @@
M100USB%0A
+from .thorlabspro8000 import thorlabsPro8000%0A
|
d79a914cc093b4e1bb8fb87d8d85d5657097f37f | Remove explicit puppet version from kickstart metadata | nailgun/nailgun/orchestrator/provisioning_serializers.py | nailgun/nailgun/orchestrator/provisioning_serializers.py | # -*- coding: utf-8 -*-
# Copyright 2013 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
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | Python | 0.000143 | @@ -2705,67 +2705,8 @@
ST,%0A
- 'puppet_version': settings.PUPPET_VERSION,%0A
|
1efaeb3e3d26848dc0338b9720ea7ba4e496a914 | Fix test: use assertItemsEqual instead of assertEquals | nailgun/nailgun/test/test_cluster_collection_handlers.py | nailgun/nailgun/test/test_cluster_collection_handlers.py | # -*- coding: utf-8 -*-
import json
import unittest
from paste.fixture import TestApp
from mock import patch
from nailgun.api.models import Release, Network
from nailgun.test.base import BaseHandlers
from nailgun.test.base import reverse
class TestHandlers(BaseHandlers):
def test_cluster_list_empty(self):
... | Python | 0.000159 | @@ -3882,22 +3882,26 @@
f.assert
+Items
Equal
-s
(expecte
|
fa82a17c61698847904fa7dea14414b30b80bdfc | Update InferenceContext attribute documentation | astroid/context.py | astroid/context.py | # Copyright (c) 2015-2016 Cara Vinson <ceridwenv@gmail.com>
# Copyright (c) 2015-2016 Claudiu Popa <pcmanticore@gmail.com>
# Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
# For details: https://github.com/PyCQA/astroid/blob/master/COPYING.LESSER
"""Various context related utiliti... | Python | 0 | @@ -780,16 +780,75 @@
%22%22%22
+%0A :type: set(tuple(NodeNG, optional(str)))%0A%0A
Path of
@@ -882,24 +882,25 @@
kupname%0A
+%0A
:type: s
@@ -895,32 +895,130 @@
-:type: set(tuple(NodeNG,
+Currently this key is %60%60(node, context.lookupname)%60%60%0A %22%22%22%0A ... |
cc963ca1a169506ee46c926fd7e7bc41f0b46780 | fix import complete_social_login | rest_auth/registration/serializers.py | rest_auth/registration/serializers.py | from django.http import HttpRequest
from django.conf import settings
from rest_framework import serializers
from requests.exceptions import HTTPError
# Import is needed only if we are using social login, in which
# case the allauth.socialaccount will be declared
try:
from allauth.socialaccount.helpers import compl... | Python | 0.000005 | @@ -261,22 +261,13 @@
red%0A
-try:%0A from
+%0Aif '
alla
@@ -287,279 +287,156 @@
ount
-.helpers import complete_social_login%0Aexcept ImportError:%0A raise ImportError('allauth.socialaccount needs to be installed.')%0A%0Aif 'allauth.socialaccount' not in settings.INSTALLED_APPS:%0A raise ImportError('allau... |
1a9581a33efab4bcf7f1b7a6e555fa373d6f0739 | Fix repo URL in staging report | scripts/GenerateStagingReport.py | scripts/GenerateStagingReport.py | #coding=UTF-8
from BuildArchetypes import archetypes, getDeploymentContext
import argparse, cgi
parser = argparse.ArgumentParser(description="Build report generator")
parser.add_argument("version", type=str, help="Vaadin version that was just built")
parser.add_argument("deployUrl", type=str, help="Base url of the de... | Python | 0.000032 | @@ -952,16 +952,49 @@
%3Cpre%3E%22%22%22
+.format(repoUrl=args.stagingRepo)
%0Acontent
|
ceb5f223f2f38969157372b608d03771a9179858 | Make threading tests work in environment with restricted maxprocs | rootpy/logger/tests/test_threading.py | rootpy/logger/tests/test_threading.py | from __future__ import division
import itertools
import os
import threading
import time
from random import random
import rootpy; log = rootpy.log["rootpy.logger.test.threading"]
rootpy.logger.magic.DANGER.enabled = True
import ROOT
from .logcheck import EnsureLogContains
def optional_fatal(abort=True):
msg = ... | Python | 0 | @@ -64,30 +64,82 @@
ort
-threading%0Aimport time%0A
+resource%0Aimport thread%0Aimport threading%0Aimport time%0A%0Afrom math import ceil
%0Afro
@@ -162,16 +162,29 @@
random%0A%0A
+import ROOT%0A%0A
import r
@@ -282,29 +282,16 @@
= True%0A%0A
-import ROOT%0A%0A
from .lo
@@ -911,17 +911,16 @@
atal():%0A
-%0A
... |
998e2a82d1f70411daa5f17909a491f0fa011ba1 | remove periodic_interval, it is duplicated in common/config.py | senlin/profiles/base.py | senlin/profiles/base.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 unde... | Python | 0.000001 | @@ -718,217 +718,8 @@
ng%0A%0A
-interval_opts = %5B%0A cfg.IntOpt('healthy_check_interval',%0A default=60,%0A help='Interval in seconds for polling healthy status')%0A%5D%0A%0ACONF = cfg.CONF%0ACONF.register_opts(interval_opts)%0A
%0ALOG
|
4bef39d1344a832d9a6acfb52173ac493e238139 | bump version | publicprize/config.py | publicprize/config.py | # -*- coding: utf-8 -*-
""" Flask configuration.
:copyright: Copyright (c) 2014 Bivio Software, Inc. All Rights Reserved.
:license: Apache, see LICENSE for more details.
"""
import os
def _config_from_environ(cfg, prefix):
for k in cfg.keys():
ek = prefix + '_' + k.upper()
if isinstance(c... | Python | 0 | @@ -2300,14 +2300,14 @@
7091
-3.2145
+4.0007
00'%0A
|
65ecd399ea82abdafd0a2471193a9c850b50db87 | Debug level of logging | playoff.py | playoff.py | import traceback
from jfr_playoff.filemanager import PlayoffFileManager
from jfr_playoff.generator import PlayoffGenerator
from jfr_playoff.settings import PlayoffSettings
def main():
interactive = False
try:
import argparse
arg_parser = argparse.ArgumentParser(
description='Gen... | Python | 0 | @@ -490,32 +490,168 @@
n='store_true',%0A
+ help='display info on STDERR')%0A output_args.add_argument('-vv', '--debug', action='store_true',%0A
|
d20a7e4314745529dd071b62ae1838264fb58e42 | Change AuthenticationForm to get username field type from User model | authtools/forms.py | authtools/forms.py | from __future__ import unicode_literals
from django import forms, VERSION as DJANGO_VERSION
from django.contrib.auth.forms import (
ReadOnlyPasswordHashField, ReadOnlyPasswordHashWidget,
PasswordResetForm as OldPasswordResetForm,
UserChangeForm as DjangoUserChangeForm,
AuthenticationForm as DjangoAuthe... | Python | 0 | @@ -7613,56 +7613,138 @@
-self.fields%5B'username'%5D.widget = forms.EmailInput()
+username_field = User._meta.get_field(User.USERNAME_FIELD)%0A self.fields%5B'username'%5D.widget = username_field.formfield().widget
%0A
|
3f80c759c55552dce7d45cf5f84e953ac7863974 | add placeholder for more examples | octopus/modules/examples/examples.py | octopus/modules/examples/examples.py | from octopus.core import app
from flask import Blueprint, render_template
blueprint = Blueprint('examples', __name__)
#@blueprint.route("/")
#def list_examples():
# return render_template("examples/list.html")
@blueprint.route("/ac")
def autocomplete():
return render_template("examples/es/autocomplete.html")... | Python | 0 | @@ -406,16 +406,264 @@
ct/proxy.html%22)%0A
+%0A@blueprint.route(%22/clientjs%22)%0Adef clientjs():%0A pass%0A%0A@blueprint.route(%22/epmc%22)%0Adef epmc():%0A pass%0A%0A@blueprint.route(%22/romeo%22)%0Adef romeo():%0A # at the moment the romeo endpoint only deals with downloads, which is not very demoable%0A... |
87138c86f8ac98b79e523d5aac89a8e86b519eeb | Fix failing build - test deliberatly moved to error for some investigations. Fixed now. | tests/app/main/views/test_authentication.py | tests/app/main/views/test_authentication.py | from flask import json
from client.jwt import create_jwt_token
def test_should_not_allow_request_with_no_token(notify_api):
response = notify_api.test_client().get("/")
assert response.status_code == 401
data = json.loads(response.get_data())
assert data['error'] == 'Unauthorized, authentication token... | Python | 0 | @@ -2746,17 +2746,17 @@
de == 20
-1
+0
%0A%0A%0Adef t
|
2668829d114031ba6fa641bb989988368371917b | add program lookup to choice group admin hotfix | open_programs/apps/programs/admin.py | open_programs/apps/programs/admin.py | from django.contrib import admin
from reversion.admin import VersionAdmin
from ajax_select.admin import AjaxSelectAdmin
from ajax_select import make_ajax_form
from .models import Program, TrainingTarget, ProgramCompetence, ProgramModules, TargetModules, ChoiceGroup, ChoiceGroupType, LearningPlan
@admin.register(Prog... | Python | 0 | @@ -1665,23 +1665,27 @@
ax_form(
-Program
+ChoiceGroup
, %7B'prog
|
01c8f0ebc4669d88576d2e66c57ac51863fd31fe | Fix ignore pattern | autotweet/learn.py | autotweet/learn.py | """:mod:`autotweet.learn` --- Learning your tweets
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This module learns your tweets and store it to database.
"""
import logging
import re
import sqlalchemy
import time
import tweepy
from .database import add_document, get_session
from .twitter import CONSUMER_KEY, CON... | Python | 0.000003 | @@ -418,16 +418,26 @@
mpile(r'
+(@%5Cw+%5Cs+)*
@%5Cw+%5Cs%7B2
|
d632b78c4fe41fff6511a4bcbb8ec9c13a34c066 | Add test for LogEntry | tests/core/tests/admin_integration_tests.py | tests/core/tests/admin_integration_tests.py | from __future__ import unicode_literals
import os.path
from django.test.testcases import TestCase
from django.contrib.auth.models import User
from django.utils.translation import ugettext_lazy as _
from core.admin import BookAdmin
class ImportExportAdminIntegrationTest(TestCase):
def setUp(self):
user... | Python | 0 | @@ -192,16 +192,65 @@
azy as _
+%0Afrom django.contrib.admin.models import LogEntry
%0A%0Afrom c
@@ -3290,24 +3290,919 @@
process_import/', data)%0A
+%0A def test_import_log_entry(self):%0A input_format = '0'%0A filename = os.path.join(%0A os.path.dirname(__file__),%0A os.path.... |
2079876aa3ef9a0a6798dbfee7199864f7affcdb | check what the sequences() graph result is | app/modules/phylotyper/sequences.py | app/modules/phylotyper/sequences.py | """Classes for retrieving Marker sequences
Example:
$ python sequences.py -s stx1
"""
from middleware.decorators import submit, prefix, tojson
from middleware.graphers import turtle_utils
from routes.job_utils import fetch_job
@submit
@prefix
def marker_query(marker_uris):
query = '''
SELECT ?m
WHERE {{... | Python | 0 | @@ -3653,28 +3653,68 @@
print(
-query_result
+'sequences() query_result: %7B0%7D'.format(query_result)
)%0A%0A
|
71b6f040e161c9a169e86d7a87fdd8038cf5961e | Add get_all_instance_types to AZURE | apps/domain/src/main/core/infrastructure/providers/azure/utils.py | apps/domain/src/main/core/infrastructure/providers/azure/utils.py | import subprocess
import click
from PyInquirer import prompt
from ...utils import Config, styles
class AZ:
def locations_list(self):
proc = subprocess.Popen(
"az account list-locations --query '[].{DisplayName:displayName}' --output table",
shell=True,
stdout=subproce... | Python | 0.000003 | @@ -25,16 +25,28 @@
t click%0A
+import json%0A
from PyI
@@ -463,16 +463,384 @@
)%5B2:%5D%0A%0A%0A
+def get_all_instance_types(location=None):%0A proc = subprocess.Popen(%0A f%22az vm list-sizes --location %7Blocation%7D%22,%0A shell=True,%0A stdout=subprocess.PIPE,%0A universal_newline... |
ec5cb4e878dae00bb6b23965c6c466ee29727583 | Update HashFilter | pybloom/hashfilter.py | pybloom/hashfilter.py | import time
class HashFilter(object):
'''
Plain Temporal Hash Filter for testing purposes
'''
def __init__(self, expiration):
self.expiration = expiration
self.unique_items = {}
def add(self, key, timestamp = None):
if key in self.unique_items:
if not timestamp:... | Python | 0 | @@ -247,16 +247,51 @@
None):%0A
+ timestamp = int(timestamp)%0A
@@ -326,36 +326,32 @@
%0A if
-not
timestamp:%0A
@@ -347,50 +347,36 @@
tamp
-:%0A timestamp = time.time()%0A
+ %3C self.unique_items%5Bkey%5D:%0A
@@ -375,32 +375,35 @@
%5D:%0A
+
... |
ab13290364a40c0592ed347bf7b91110afaa7115 | Fix test_json | openfisca_france/tests/test_jsons.py | openfisca_france/tests/test_jsons.py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# OpenFisca -- A versatile microsimulation software
# By: OpenFisca Team <contact@openfisca.fr>
#
# Copyright (C) 2011, 2012, 2013, 2014 OpenFisca Team
# https://github.com/openfisca
#
# This file is part of OpenFisca.
#
# OpenFisca is free software; you can redistribute... | Python | 0.998619 | @@ -1934,16 +1934,88 @@
'year'%5D%0A
+ print scenario%0A# print scenario.test_case.keys()%0A
@@ -2027,33 +2027,34 @@
otpac = scenario
-.
+%5B'
test_case%5B'foyer
@@ -2046,16 +2046,18 @@
est_case
+'%5D
%5B'foyers
|
21ecb742db85801aa2ac74fcfd2b338b6a396dee | fix linter | tests/unit/modules/test_libcloud_storage.py | tests/unit/modules/test_libcloud_storage.py | # -*- coding: utf-8 -*-
'''
:codeauthor: :email:`Anthony Shaw <anthonyshaw@apache.org>`
'''
# Import Python Libs
from __future__ import absolute_import, unicode_literals, print_function
# Import Salt Testing Libs
from tests.support.mixins import LoaderModuleMockMixin
from tests.support.unit import TestCase, skipI... | Python | 0.000002 | @@ -691,24 +691,49 @@
nit__(self):
+ # pylint: disable=W0231
%0A
|
72ec0d82bfa59d14dbd9e8ffd89ddcfc990fc4fe | Fix #14 | pygraphml/__init__.py | pygraphml/__init__.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import
from __future__ import print_function
from .attribute import Attribute
from .item import Item
from .point import Point
from .node import Node
from .edge import Edge
from .graph import... | Python | 0.000001 | @@ -386,7 +386,7 @@
2.1.
-3
+4
'%0A
|
145dc7d22301cffdf43498924f1a908f0d160512 | Allow deep recursion | pylint_runner/main.py | pylint_runner/main.py | #!/usr/bin/env python
# pylint: disable=no-member
"""
Runs pylint on all contained python files in this directory, printint out
nice colorized warnings/errors without all the other report fluff
"""
from __future__ import print_function
import os
import sys
import colorama
import pylint
import pylint.lint
__author__ =... | Python | 0.999987 | @@ -2495,16 +2495,17 @@
elif
+(
os.path.
@@ -2519,16 +2519,45 @@
ir_file)
+ or os.path.isdir(file_path))
and dir
@@ -2612,17 +2612,19 @@
dir_file
-+
+ +
%22/%22%0A
@@ -2726,13 +2726,17 @@
%22/%22)
-+%22/%22+
+ + %22/%22 +
path
|
4d4531cc32f9de583f81ad41fe465059de2f8bd3 | load data during cei test | pyon/util/int_test.py | pyon/util/int_test.py | #!/usr/bin/env python
"""Integration test base class and utils"""
from pyon.container.cc import Container
from pyon.core.bootstrap import bootstrap_pyon, service_registry
from pyon.datastore.datastore import DatastoreManager
from pyon.event.event import EventRepository
from pyon.ion.directory import Directory
from py... | Python | 0 | @@ -1988,16 +1988,150 @@
_clean()
+%0A from ion.processes.bootstrap.datastore_loader import DatastoreLoader%0A DatastoreLoader.load_datastore('res/dd')
%0A%0A
|
3905327d8cb02c6c7929f6b3bd12658c6bc1b6ab | bump to 1.73 | pyperform/__init__.py | pyperform/__init__.py | from __future__ import print_function
__version__ = '1.72'
from pyperform.benchmark import Benchmark
from .comparisonbenchmark import ComparisonBenchmark
from .benchmarkedclass import BenchmarkedClass
from .benchmarkedfunction import BenchmarkedFunction
from .timer import timer
from .exceptions import ValidationErro... | Python | 0.000001 | @@ -54,9 +54,9 @@
'1.7
-2
+3
'%0A%0A%0A
|
813fac88b392f81825d60f3862a09718f12bf424 | add ccsd | pyquante2/__init__.py | pyquante2/__init__.py | from pyquante2.basis.basisset import basisset
from pyquante2.basis.cgbf import cgbf,sto
from pyquante2.basis.pgbf import pgbf
from pyquante2.geo.molecule import molecule
from pyquante2.geo.samples import *
from pyquante2.graphics.vtkplot import vtk_orbs
from pyquante2.grid.grid import grid
from pyquante2.ints.one impor... | Python | 0.000001 | @@ -354,16 +354,51 @@
ort mp2%0A
+from pyquante2.cc.ccsd import ccsd%0A
from pyq
@@ -607,9 +607,4 @@
ass%0A
- %0A
|
89ed1ea77e2e92ae9a953404552a229854ce0f9c | Add option to don't add route | pyramid_auth/views.py | pyramid_auth/views.py | from pyramid.view import view_config
from pyramid.httpexceptions import (
HTTPFound,
HTTPForbidden,
)
from pyramid.security import (
unauthenticated_userid,
remember,
forget,
)
from urllib import urlencode
import tw2.core as twc
from . import forms
class BaseView(object):
def __init__(self, ... | Python | 0.000001 | @@ -2080,24 +2080,104 @@
me(config):%0A
+ if config.registry.settings.get('authentication.no_routes'):%0A return%0A
config.a
@@ -2326,24 +2326,104 @@
me(config):%0A
+ if config.registry.settings.get('authentication.no_routes'):%0A return%0A
ViewClas
|
d6aa9fee952b526e6423fb1020c2246e621d375e | Fix __repr__ method | pytablereader/data.py | pytablereader/data.py | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <gogogo.vm@gmail.com>
"""
from __future__ import absolute_import
import hashlib
from .error import InvalidTableNameError
from .error import InvalidHeaderNameError
import dataproperty
import pathvalidate
def validate_table_name(name):
"""
:param str na... | Python | 0.002434 | @@ -1665,16 +1665,17 @@
_list=%7B%7D
+,
record_
|
b8217b623a11687bbc0f1a558217d8b63c5534c1 | Create RLock() early to avoid exception at shutdown (#351) | rclpy/rclpy/handle.py | rclpy/rclpy/handle.py | # Copyright 2019 Open Source Robotics Foundation, 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... | Python | 0 | @@ -1589,32 +1589,155 @@
rlock = RLock()%0A
+ # Create this early because RLock() can raise during interpeter shutdown%0A self.__dependents_rlock = RLock()%0A
self.__r
@@ -5704,31 +5704,47 @@
deps_lock =
-RL
+self.__dependents_rl
ock
-()
%0A # T
|
9928dc98e75d069a0f1a332502c3dfd1cb794733 | Add new filename pattern. | renamer/plugins/tv.py | renamer/plugins/tv.py | import re
import urllib
from BeautifulSoup import BeautifulSoup
from renamer import plugins
@plugins.command
def find_tv_parts(env, src):
patterns = [
re.compile(r'(?P<series_name>.*?) - [sS](?P<season>\d+)[eE](?P<ep>\d+) - .*\.(?P<ext>.*?)$'), # Profiler - S01E01 - Insight.avi
re.compile(r'(?P<se... | Python | 0.000001 | @@ -1563,24 +1563,171 @@
allisto.avi%0A
+ re.compile(r'(?P%3Cseries_name%3E.*?)_(?P%3Cseason%3E%5Cd+)%5BxX%5D(?P%3Cep%3E%5Cd+)_.*%5C.(?P%3Cext%3E.*?)$'), # Xena_4x02_Adventures In The Sin Trade - Part 2.avi%0A
%5D%0A%0A f
|
f808b67c9a067d9addd75f09e10853c3812d6101 | Refactor code | transfers/examples/pre-transfer/00_unbag.py | transfers/examples/pre-transfer/00_unbag.py | #!/usr/bin/env python
# Script to re-package unzipped bags as standard transfers, utilizing checksums from bag manifest.
# Assumes bags are structured as either bag/data/(content) or bag/data/objects/(content).
# Enables use of scripts to add metadata to SIP without failing transfer at bag validation.
from __future_... | Python | 0.000002 | @@ -863,23 +863,20 @@
os.path.
-abspath
+join
(data_pa
@@ -881,17 +881,9 @@
path
-) + '/' +
+,
fil
@@ -887,16 +887,17 @@
filename
+)
for fil
@@ -1677,92 +1677,28 @@
-manifest_content = old_file.readlines()%0A for line in manifest_content
+for line in old_file
:%0A
|
187c6c89ef7cc319b4357cae8ea7f93c24448b77 | Add discussion forum CSS to forum XBlock render. | common/lib/xblock/discussion/discussion_forum/discussion_forum.py | common/lib/xblock/discussion/discussion_forum/discussion_forum.py | import logging
from xblock.core import XBlock
from xblock.fields import Scope, String, UNIQUE_ID
from xblock.fragment import Fragment
from .utils import (
render_template,
render_mako_template,
render_mustache_templates,
asset_to_static_url,
add_resources_to_fragment)
log = logging.getLogger(__n... | Python | 0 | @@ -2126,32 +2126,110 @@
nt = Fragment()%0A
+ fragment.add_css_url(asset_to_static_url('css/discussion-forum.css'))%0A
discussi
@@ -5695,32 +5695,110 @@
nt = Fragment()%0A
+ fragment.add_css_url(asset_to_static_url('css/discussion-forum.css'))%0A
fragment
|
e6756fbe74256a862f2457160b8c71e57ae070cb | Use `is` operator for comparing with `None` (Pep8) | skyfield/tests/test_keplerian.py | skyfield/tests/test_keplerian.py | """Compare the output of Skyfield with the routines from NOVAS for keplerian orbiting bodies"""
import skyfield.keplerianlib
from skyfield.keplerianlib import KeplerianOrbit, ICRCoordinates
from ..timelib import JulianDate, julian_date
DISTANCE_EPSILON = 0.026
def test_semimajorAxisToOrbitalPeriod():
assert sky... | Python | 0.000287 | @@ -1556,18 +1556,22 @@
t hoyle
-!=
+is not
None%0A%0Ad
@@ -1685,10 +1685,14 @@
rds
-!=
+is not
Non
|
2fbd5ceead47ea980e5dfa7b2bc29eafbbab2d72 | remove unneeded import in views | blog/views.py | blog/views.py | from django.core.exceptions import ObjectDoesNotExist
from django.http import Http404
from django.shortcuts import render, get_object_or_404, get_list_or_404
from django.utils import timezone
from . import models as blog
def home(request):
NUM_LAST_ARTICLES = 5
articles = blog.Article.objects.filter(date__l... | Python | 0 | @@ -1,58 +1,4 @@
-from django.core.exceptions import ObjectDoesNotExist%0A
from
|
0b059cb8368f2b6ce5782f3d6fc87bc1479d96d8 | remove a print | boink/cdbg.py | boink/cdbg.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# (c) Camille Scott, 2019
# File : cdbg.py
# License: MIT
# Author : Camille Scott <camille.scott.w@gmail.com>
# Date : 14.10.2019
from boink import libboink
from boink.cli import CommandRunner, get_output_interval_args
from boink.dbg import get_graph_args, process_gr... | Python | 0.005113 | @@ -5013,27 +5013,8 @@
bg)%0A
- print(args)
%0A
|
5b0e1ad40ab25dbe9e3a52e3517974e08a7fac5f | Fix wrong method name | envsettings/email.py | envsettings/email.py | from __future__ import absolute_import
import email.utils as email_utils
from .base import URLConfigBase, is_importable
class EmailConfig(URLConfigBase):
CONFIG = {
'smtp': {'EMAIL_BACKEND': 'django.core.mail.backends.smtp.EmailBackend',
'EMAIL_USE_TLS': False},
'smtps': {'EMAIL_BAC... | Python | 0.999997 | @@ -999,21 +999,23 @@
def get_
-email
+address
_list(se
@@ -1133,21 +1133,23 @@
f.parse_
-email
+address
_list)%0A%0A
|
62c76a953ea5a1c753f9c7447bab5800bb25c2b1 | add life expantency context bulk down for ihme | ddf_utils/factory/igme.py | ddf_utils/factory/igme.py | # -*- coding: utf-8 -*-
"""download sources from CME info portal"""
__doc__ = """T.B.D"""
import os.path as osp
import re
import requests
import pandas as pd
from io import BytesIO
from lxml import html
from urllib.parse import urlsplit, urljoin
url = 'http://www.childmortality.org/'
metadata = None
def load_me... | Python | 0 | @@ -160,31 +160,8 @@
pd%0A%0A
-from io import BytesIO%0A
from
@@ -1549,19 +1549,15 @@
-b = BytesIO
+f.write
(res
@@ -1570,38 +1570,8 @@
nt)%0A
- f.write(b.read())%0A
|
5dce1ee6c54d8686cee42651528c087e9939368b | Bump version, 0.9.4.21 | dp_tornado/version.py | dp_tornado/version.py | __version_info__ = (0, 9, 4, 21)
__version__ = '.'.join(map(str, __version_info__))
| Python | 0 | @@ -27,9 +27,9 @@
4, 2
-1
+2
)%0A__
|
f35194ee63f4f1a4735e1e88c84264162914f415 | stop using dataset name | FaostatExtractor/es/weso/faostat/translator/model_object_builder.py | FaostatExtractor/es/weso/faostat/translator/model_object_builder.py | # coding=utf-8
'''
Created on 02/02/2014
@author: Dani
'''
from lpentities.observation import Observation
from lpentities.country import Country
from lpentities.indicator import Indicator
from lpentities.license import License
from lpentities.measurement_unit import MeasurementUnit
from lpentities.computation import... | Python | 0.000007 | @@ -1200,40 +1200,8 @@
_e%22,
- name=%22Faostat land usage data%22,
fre
|
7eca9eb4d5c7134b84c3462ac01cf1679557819f | Update example | example/app/tables.py | example/app/tables.py | #!/usr/bin/env python
# coding: utf-8
from table.columns import Column, LinkColumn, DatetimeColumn, Link
from table.utils import A
from table import Table
from models import Person
class PersonTable(Table):
id = Column(field='id', header=u'#', header_attrs={'width': '5%'})
name = Column(field='nam... | Python | 0.000001 | @@ -330,10 +330,12 @@
r=u'
-%E5%A7%93%E5%90%8D
+NAME
') %0D
@@ -372,10 +372,14 @@
r=u'
-%E6%93%8D%E4%BD%9C
+ACTION
', l
@@ -400,10 +400,12 @@
t=u'
-%E7%BC%96%E8%BE%91
+EDIT
', v
@@ -516,70 +516,169 @@
ton_
-link = %22http://www.baidu.com%22%0D%0A ext_button_text = %22Add +%22
+template = %22button.html%22... |
3a156fb107db25c8171adcc1346fd17f36222092 | Fix refresh count | galaxy/main/management/commands/refresh_role_counts.py | galaxy/main/management/commands/refresh_role_counts.py | import time
from math import ceil, floor
from github import Github
from django.conf import settings
from django.db.models import Max
from django.core.management.base import BaseCommand, CommandError
from galaxy.main.models import Role, RefreshRoleCount
from galaxy.main.celerytasks.tasks import refresh_role_counts
... | Python | 0.000001 | @@ -128,17 +128,20 @@
port Max
+, Q
%0A
-
from dja
@@ -689,10 +689,8 @@
- #
for
@@ -743,18 +743,8 @@
- i = 1%0A
@@ -772,16 +772,20 @@
+
+
end = si
@@ -797,16 +797,20 @@
(i + 1)%0A
+
@@ -870,32 +870,36 @@
rname'%5D%0A
+
print 'Range: %25d
@@ -928,16 +... |
aa349112b891e76c8fbbd7033586f48426c3fbe7 | Fix linux SystemProfiler cpu order of operations and update deprecated psutil calls. | lib/python/plow/rndaemon/profile/linux.py | lib/python/plow/rndaemon/profile/linux.py | """
System profile plugin for Linux.
"""
import os
import re
import logging
import itertools
from functools import partial
import psutil
from .posix import SystemProfiler as PosixSystemProfiler
logger = logging.getLogger(__name__)
__all__ = ["SystemProfiler"]
class SystemProfiler(PosixSystemProfiler):
def __... | Python | 0 | @@ -374,17 +374,16 @@
nit__()%0A
-%0A
@@ -421,81 +421,21 @@
til.
-BOOT_TIME)%0A%0A self.cpuprofile = None%0A%0A self._init_cpu_info()
+boot_time())%0A
%0A%0A
@@ -1073,16 +1073,19 @@
til.
-NUM_CPUS
+cpu_count()
,%0A
@@ -1144,32 +1144,62 @@
_update(self):%0A
+ self._init_cpu_info... |
cd9e9efd8587b5be9e3d9a4e7efeaf26b048b0d2 | fix attribute error on handlers loading | lib/rapidsms/contrib/handlers/settings.py | lib/rapidsms/contrib/handlers/settings.py | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
INSTALLED_HANDLERS = None
EXCLUDED_HANDLERS = []
| Python | 0.000001 | @@ -94,8 +94,44 @@
RS = %5B%5D%0A
+RAPIDSMS_HANDLERS_EXCLUDE_APPS = %5B%5D
|
5223846786b70dd9c198f98f7a620e70b40fab3d | update k84 | chap09/k84.py | chap09/k84.py | #
# usage: python k84.py {N}
#
import sys
import plyvel
from math import log
def wc_matrix(n, ofn):
co_db = plyvel.DB('./co.ldb', create_if_missing=True)
word_db = plyvel.DB('./word.ldb', create_if_missing=True)
context_db = plyvel.DB('./context.ldb', create_if_missing=True)
x = 0
ZERO = x.to_byt... | Python | 0 | @@ -50,16 +50,30 @@
plyvel%0A
+import struct%0A
from mat
@@ -90,18 +90,22 @@
og%0A%0Adef
-w
c
+reate
_matrix(
@@ -105,21 +105,16 @@
matrix(n
-, ofn
):%0A c
@@ -300,73 +300,72 @@
ue)%0A
-%0A
-x = 0%0A ZERO = x.to_bytes((x.bit_length() + 7) // 8, 'big'
+matrix_db = plyvel.DB('./matrix.ldb', create_i... |
5f96021cf88201447a48a05dab0ff5a1f131b6bc | Fix problem_id command with anonymize argument | edx_data_research/reporting/problem_ids/problem_id.py | edx_data_research/reporting/problem_ids/problem_id.py | '''
In this module, we will generate a csv report for a given problem id, which
will include information about how students fared with a given problem id
'''
from itertools import groupby
from edx_data_research.reporting.edx_base import EdX
class ProblemId(EdX):
def __init__(self, args):
super(self.__c... | Python | 0.00177 | @@ -2038,21 +2038,77 @@
r
-esult.append(
+ow = (%5Bdocument%5B'hash_id'%5D%5D if edx_obj.anonymize else%0A
%5Bdoc
@@ -2124,16 +2124,37 @@
sh_id'%5D,
+ document%5B'user_id'%5D,
documen
@@ -2162,25 +2162,26 @@
%5B'username'%5D
-,
+%5D)
%0A
@@ -2173,39 +2173,36 @@
%5D%5D)%0A
- ... |
01003d7b64220b794d8e10e78dd26badef4dfcc5 | Fix tests | base/auth/tests.py | base/auth/tests.py | from flask_testing import TestCase
from ..app import create_app
from ..config import test
from ..ext import db
class BaseCoreTest(TestCase):
def create_app(self):
return create_app(test)
def setUp(self):
db.create_all()
def tearDown(self):
db.session.remove()
db.drop_al... | Python | 0.000003 | @@ -667,16 +667,19 @@
.updated
+_at
)%0A%0A
|
69e760e4a571d16e75f30f1e97ea1a917445f333 | Switch to recipe engine "url" module. | recipes/recipe_modules/gitiles/__init__.py | recipes/recipe_modules/gitiles/__init__.py | DEPS = [
'recipe_engine/json',
'recipe_engine/path',
'recipe_engine/python',
'recipe_engine/raw_io',
'url',
]
| Python | 0.000023 | @@ -115,16 +115,30 @@
',%0A '
+recipe_engine/
url',%0A%5D%0A
|
57d3b80e85439215222372b03bf25762d8df3eb7 | kill any already-running autotest instances during setup | wlauto/workloads/power_loadtest/__init__.py | wlauto/workloads/power_loadtest/__init__.py | # Copyright 2015 ARM Limited
#
# 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 | @@ -3132,16 +3132,135 @@
t = None
+%0A # make sure no other test is running%0A self.device.execute('killall -9 autotest', check_exit_code=False)
%0A%0A de
|
6ced33f201e8a4e389a077a91ba9ed8bf5c19fa0 | fix issue with number for samples | wqflask/wqflask/correlation/pre_computes.py | wqflask/wqflask/correlation/pre_computes.py | """module contains the code to do the
precomputations of sample data between
two entire datasets"""
import json
from typing import List
from base import data_set
from gn3.computations.correlations import fast_compute_all_sample_correlation
from gn3.computations.correlations import map_shared_keys_to_values
def get_... | Python | 0 | @@ -158,16 +158,89 @@
ta_set%0A%0A
+from gn3.computations.correlations import compute_all_sample_correlation%0A
from gn3
@@ -378,16 +378,17 @@
values%0A%0A
+%0A
def get_
@@ -507,16 +507,55 @@
it_data(
+dataset_obj.group.all_samples_ordered()
)%0A re
@@ -1570,24 +1570,42 @@
nd%0A %22%22%22%0A%0A
+ result... |
e91e2a8b9ac6af9a20d27b4f8d5a990938973491 | Fix for Results screen. | satori.web/satori/web/views/contest/results.py | satori.web/satori/web/views/contest/results.py | # vim:ts=4:sts=4:sw=4:expandtab
from satori.client.common import want_import
want_import(globals(), '*')
from satori.web.utils.decorators import contest_view
from satori.web.utils.tables import *
from django.shortcuts import render_to_response
from django.core.urlresolvers import reverse
from django import forms
@cont... | Python | 0 | @@ -1552,24 +1552,102 @@
diff','0'))%0A
+ detailed_tsr = admin and (self.filters.get('allsuites','0')=='1')%0A
@@ -1757,16 +1757,42 @@
it=limit
+,detailed_tsr=detailed_tsr
)%0A
@@ -4565,55 +4565,75 @@
r =
-Web.get_result_details(table.results%5Bi%5D.submit)
+table.results%5Bi%5D%0A ... |
5703faccd6e425148928e52221959464b1eac108 | use recursive method | reg_tests/executeOpenfastRegressionCase.py | reg_tests/executeOpenfastRegressionCase.py | #
# Copyright 2017 National Renewable Energy Laboratory
#
# 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 la... | Python | 0.000019 | @@ -2758,12 +2758,15 @@
os.m
-k
+ake
dir
+s
(bui
|
bb366439065924732b9b1559a0dc776c586fa07c | fix url | regulations/tests/selenium/example_test.py | regulations/tests/selenium/example_test.py | import os
import unittest
import base64
import json
import httplib
import sys
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
class ExampleTest(unittest.TestCase):
def setUp(self):
self.capabilities = webdriver.DesiredCapabilities.CHROME
self.capabilities['tu... | Python | 0.86565 | @@ -1162,16 +1162,21 @@
ost:8000
+/1005
')%0A
|
494b87788d15b50169def821312660601a05101d | Add 'schema' command | ppshell.py | ppshell.py | # Dota 2 local DB pretty-print shell
import cmd
import d2mdb_const as const
import datetime
import sqlite3
import sys
import time
heroes = dict()
# a bunch of lambdas to convert from values in the DB to proper representations
FIELD_CONV = {
"hero": (lambda x: "%s (%d)" % (heroes[x], x)),
"team": (lambda x: const.T... | Python | 0.000001 | @@ -2622,32 +2622,145 @@
%5C%22%25s%5C%22.%22 %25 s)%0A%0A
+%09def do_schema(self, s):%0A%09%09'Print out the schema (as expected by the program).'%0A%09%09print(const.SQL_MATCH_SCHEMA)%0A%0A
%09def do_exit(sel
|
bbee1e9b8563d56c0d0acbfc6ae61334f8251159 | Reset default value in test so that it doesn't produce error | enthought/traits/tests/undefined_test_case.py | enthought/traits/tests/undefined_test_case.py | import unittest
from enthought.traits.api import HasTraits, Str, Undefined, ReadOnly, Float
class Foo(HasTraits):
name = Str()
original_name = ReadOnly
bar = Str
baz = Float
def _name_changed(self):
if self.original_name is Undefined:
self.original_name = self.name
class Bar... | Python | 0.000001 | @@ -350,18 +350,16 @@
ndefined
-()
)%0A%0Aclass
|
85f14fffc01002e5a1c0a7a3644a81a4ade61745 | Bump dsub version to 0.2.1 | dsub/_dsub_version.py | dsub/_dsub_version.py | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | Python | 0 | @@ -1114,15 +1114,10 @@
= '0.2.1
-.dev0
'%0A
|
edb6f738979e213cca3fd03991caebdf209b09b9 | Fix permissions script | static/extension/dynamic_scope/dynamic_permission.py | static/extension/dynamic_scope/dynamic_permission.py | # oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.
# Copyright (c) 2016, Gluu
#
# Author: Yuriy Movchan
#
from org.xdi.model.custom.script.type.scope import DynamicScopeType
from org.xdi.oxauth.service import UserService
from org.xdi.util import StringHelp... | Python | 0.000001 | @@ -230,16 +230,62 @@
peType%0D%0A
+from org.xdi.service.cdi.util import CdiUtil%0D%0A
from org
@@ -1595,16 +1595,29 @@
rvice =
+CdiUtil.bean(
UserServ
@@ -1623,18 +1623,8 @@
vice
-.instance(
)%0D%0A
|
c1923339d7d64b9e85e3a2a1522ff0442e18a798 | Update common version (#6060) | sdk/core/azure-common/azure/common/_version.py | sdk/core/azure-common/azure/common/_version.py | #-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#--------------------------------------------------------------------------
VERSION = "... | Python | 0 | @@ -318,11 +318,11 @@
= %221.1.2
-2
+3
%22%0A
|
554e97008dc5861314406fecb6cc9fe79deb3a5d | Add --wait argument in predictor to make it easier to fill in a bracket. | predict.py | predict.py | #!/usr/bin/env python3
import argparse
import numpy as np
import tensorflow as tf
from constants import DNN_HIDDEN_UNITS
from data_loader import load_ncaa_players, load_ncaa_schools, \
get_players_for_team
BRACKET = (
(
(
# East
(
(
("Villa... | Python | 0 | @@ -2992,16 +2992,28 @@
bracket
+, wait=False
):%0A t
@@ -3136,16 +3136,22 @@
, team_a
+, wait
)%0A if
@@ -3244,16 +3244,22 @@
, team_b
+, wait
)%0A te
@@ -3710,16 +3710,33 @@
inner))%0A
+ if wait:%0A
inpu
@@ -3948,16 +3948,114 @@
pe=int)%0A
+ parser.add_argument(%0A %22--wait%22... |
a33d925cac280108b05219ddd3447be7bff821c6 | Version bump: 0.3.1 | durations/__init__.py | durations/__init__.py | version = (0, 3, 0)
__title__ = "durations"
__author__ = "Oleiade"
__license__ = "MIT"
__version__ = '.'.join(map(str, version))
from .duration import Duration
from .scales import Scale
| Python | 0.000001 | @@ -10,17 +10,17 @@
(0, 3,
-0
+1
)%0A%0A__tit
|
e3373f8643e2dcef0ba9d2943c4583482785e67d | Support 1/True and False/0 for expose states as well (#655) | home-assistant-plugin/custom_components/xknx/expose.py | home-assistant-plugin/custom_components/xknx/expose.py | """Exposures to KNX bus."""
from __future__ import annotations
from typing import Callable
from xknx import XKNX
from xknx.devices import DateTime, ExposeSensor
from homeassistant.const import (
CONF_ENTITY_ID,
STATE_OFF,
STATE_ON,
STATE_UNAVAILABLE,
STATE_UNKNOWN,
)
from homeassistant.core impor... | Python | 0 | @@ -4254,34 +4254,38 @@
if value
-==
+in (1,
STATE_ON:%0A
@@ -4277,16 +4277,25 @@
STATE_ON
+, %22True%22)
:%0A
@@ -4352,16 +4352,50 @@
TATE_OFF
+ or value == 0 or value == %22False%22
:%0A
|
9711a2208525b200c98997248c358432a26bf7a3 | improve cleanup_ctx_databases | dvhb_hybrid/config.py | dvhb_hybrid/config.py | import functools
import os
def absdir(directory, base_dir):
if not directory.startswith('/'):
directory = os.path.join(base_dir, directory)
return os.path.normpath(directory)
def dirs(list_dir, base_dir):
result = []
for i in list_dir:
result.append(absdir(i, base_dir))
return re... | Python | 0.000001 | @@ -10,16 +10,28 @@
nctools%0A
+import json%0A
import o
@@ -2564,104 +2564,486 @@
els%0A
- dbparams = app.context.config.databases.get(cfg_key)%0A app.models = app.m = AppModels(app)
+%0A app.models = app.m = AppModels(app)%0A%0A async def init(connection):%0A for t in %5B'json', 'jsonb'%5D:%0A ... |
3ff373ed0d5349087a77b2a96af41e0e5cc9c15d | add UI for boardd loopback test | selfdrive/boardd/tests/test_boardd_loopback.py | selfdrive/boardd/tests/test_boardd_loopback.py | #!/usr/bin/env python3
import os
import random
import time
from collections import defaultdict
from functools import wraps
import cereal.messaging as messaging
from cereal import car
from common.basedir import PARAMS
from common.params import Params
from panda import Panda
from selfdrive.boardd.boardd import can_list_... | Python | 0 | @@ -244,16 +244,51 @@
Params%0A
+from common.spinner import Spinner%0A
from pan
@@ -303,16 +303,16 @@
t Panda%0A
-
from sel
@@ -796,16 +796,17 @@
ack():%0A%0A
+%0A
# wait
@@ -825,16 +825,38 @@
to init%0A
+ spinner = Spinner()%0A
time.s
@@ -1197,16 +1197,27 @@
eep(1)%0A%0A
+ n = 1000%0A
for i
@@ -122... |
e6371d63c15974b0aadc0f141b4a64bdd3b89905 | Update isamruntime.py | ibmsecurity/isam/aac/server_connections/isamruntime.py | ibmsecurity/isam/aac/server_connections/isamruntime.py | import logging
from ibmsecurity.utilities import tools
logger = logging.getLogger(__name__)
uri = "/mga/server_connections/isamruntime"
requires_modules = ["mga", "federation"]
requires_version = "9.0.5.0"
def get_all(isamAppliance, check_mode=False, force=False):
"""
Retrieving a list of all ISAM Runtime se... | Python | 0.000002 | @@ -2256,28 +2256,24 @@
connection%0A
-
%0A Use new
@@ -2304,20 +2304,16 @@
ection.%0A
-
%0A %22%22%22
@@ -4976,20 +4976,16 @@
nection%0A
-
%0A %22%22%22
|
896a90f7fa3c28f9232ebe701e776bfc7785292d | Fix inventory update xml data | product.py | product.py | # -*- coding: UTF-8 -*-
'''
product
'''
from decimal import Decimal
from lxml import etree
from lxml.builder import E
from collections import defaultdict
from trytond.model import fields
from trytond.transaction import Transaction
from trytond.pool import PoolMeta, Pool
from trytond.pyson import Eval
__all__ = ... | Python | 0 | @@ -6996,20 +6996,23 @@
uantity(
-str(
+%22%25d%22 %25
round(li
@@ -7027,17 +7027,16 @@
antity))
-)
,%0A
@@ -7095,19 +7095,26 @@
-str
+%22%25d%22 %25 max
(product
@@ -7127,16 +7127,19 @@
ery_time
+, 1
)%0A
|
ca27dac40aa48a0df073433c489b73f361e34739 | fix tabs | sfa/methods/register.py | sfa/methods/register.py | ### $Id$
### $URL$
from sfa.trust.certificate import Keypair, convert_public_key
from sfa.trust.gid import *
from sfa.util.faults import *
from sfa.util.misc import *
from sfa.util.method import Method
from sfa.util.parameter import Parameter, Mixed
from sfa.util.record import GeniRecord
from sfa.util.debug import lo... | Python | 0.000001 | @@ -4246,25 +4246,59 @@
if
-record%5B'key'%5D:%0A%09%09
+'key' in record and record%5B'key'%5D:%0A
self
|
4019372609565b074a5c3ba946245b61c8479ada | update dev version after 2.1.0 tag [skip ci] | py/fiberassign/_version.py | py/fiberassign/_version.py | __version__ = '2.1.0'
| Python | 0 | @@ -13,10 +13,18 @@
= '2.1.0
+.dev2650
'%0A
|
e5eaed4ef7d5a00958f2ee8a21c66078a065dec7 | Upgrade rkt to v1.29.0 for bug fix #3750 | py/ops/ops/onboard/deps.py | py/ops/ops/onboard/deps.py | __all__ = [
'deps',
]
import collections
import logging
import urllib.parse
from pathlib import Path
from tempfile import TemporaryDirectory
from garage import apps
from garage import scripts
LOG = logging.getLogger(__name__)
# TODO: Use typing.NamedTuple and the new annotation syntax when all
# systems are u... | Python | 0 | @@ -785,17 +785,17 @@
ion='1.2
-5
+9
.0',%0A
@@ -819,22 +819,19 @@
hub.com/
-coreos
+rkt
/rkt/rel
@@ -849,17 +849,17 @@
oad/v1.2
-5
+9
.0/rkt-v
@@ -861,17 +861,17 @@
rkt-v1.2
-5
+9
.0.tar.g
@@ -899,136 +899,136 @@
512-
-6a65f51af793df4fe054dd1a8f791bcf2e30c6a15593b908515a6616835490cad03d9d927b1c88dd38b77647... |
9602574af41a9c09edbc84bf77bde3a285d71741 | use datastore client in example | examples/google/radiology/upload_storage_radiology.py | examples/google/radiology/upload_storage_radiology.py | #!/usr/bin/env python
# RADIOLOGY ---------------------------------------------------
# This is an example script to upload data (images, text, metadata) to
# google cloud storage and datastore. Data MUST be de-identified
import os
# Start google storage client for pmc-stanford
from som.api.google import Client
clie... | Python | 0 | @@ -294,23 +294,52 @@
i.google
- import
+.datastore import DataStoreClient as
Client%0A
@@ -358,28 +358,8 @@
ent(
-use_bigquery=False,
buck
@@ -378,16 +378,47 @@
iology')
+%0A%0A# big_query not developed yet
%0Acollect
|
0e6f1610065a2a3bffed3446205cf3717bd6adaa | fix typo | py/test/plugin/hookspec.py | py/test/plugin/hookspec.py | """
py.test hooks / extension points
"""
# ------------------------------------------------------------------------------
# Command line and configuration hooks
# ------------------------------------------------------------------------------
def pytest_addoption(parser):
""" called before commandline parsing. "... | Python | 0.003968 | @@ -3343,22 +3343,27 @@
the
-specified test
+given item and call
out
@@ -3367,24 +3367,25 @@
outcome. %22%22%22
+
%0Apytest_runt
|
e5dc3bc75ce83b4069f2626705f878f197a13314 | Update `tfds new` CLI | tensorflow_datasets/scripts/cli/builder_templates.py | tensorflow_datasets/scripts/cli/builder_templates.py | # coding=utf-8
# Copyright 2022 The TensorFlow Datasets Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | Python | 0 | @@ -4375,16 +4375,22 @@
builders
+.conll
import
@@ -5158,16 +5158,77 @@
atures.%0A
+ # conll_lib contains a set of ready-to-use features.%0A
@@ -6189,108 +6189,9 @@
#
- features_order: List%5Bstr%5D,%0A # separator: str = %22%5Ct%22) -%3E split_builder_lib.SplitGenerator
+)
:%0A
|
951b6b9cc14e323dc97aa6e67dee17ef110e673f | check for exclusive try/else and if/else | pychecker2/utest/scopes.py | pychecker2/utest/scopes.py | from pychecker2.TestSupport import WarningTester
from pychecker2 import ScopeChecks
class RedefinedTestCase(WarningTester):
def testScopes(self):
self.warning('def f(): pass\n'
'def f(): pass\n',
1, ScopeChecks.RedefineCheck.redefinedScope, 'f', 2)
self.war... | Python | 0 | @@ -144,16 +144,69 @@
(self):%0A
+ w = ScopeChecks.RedefineCheck.redefinedScope%0A
@@ -304,48 +304,9 @@
1,
-ScopeChecks.RedefineCheck.redefinedScope
+w
, 'f
@@ -464,56 +464,489 @@
2,
-ScopeChecks.RedefineCheck.redefinedScope, 'g', 3
+w, 'g', 3)%0A self.silent('def s(): pass%5Cn'%0A ... |
a434050e0f1c9f3e162898a3687cd7de8b77980c | Update load.py | simphony_mayavi/load.py | simphony_mayavi/load.py | from mayavi.core.api import registry
from simphony_mayavi.adapt2cuds import adapt2cuds
def load(filename, name=None, kind=None, rename_arrays=None):
""" Load the file data into a CUDS container.
"""
data_set = _read(filename)
return adapt2cuds(
data_set, name, kind, rename_arrays)
def _rea... | Python | 0.000001 | @@ -1038,17 +1038,16 @@
essage)%0A
-%0A
retu
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.