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 |
|---|---|---|---|---|---|---|---|
1f6a60c3888b43863453af66683d0bf3748fe832 | update docs/extensions/fancy_include.py with git_cast_file2repos.py | docs/extensions/fancy_include.py | docs/extensions/fancy_include.py | """Include single scripts with doc string, code, and image
Use case
--------
There is an "examples" directory in the root of a repository,
e.g. 'include_doc_code_img_path = "../examples"' in conf.py
(default). An example is a file ("an_example.py") that consists
of a doc string at the beginning of the file, the exampl... | Python | 0.000001 | @@ -1237,16 +1237,191 @@
read()%0A%0A
+ # add reference%0A name = op.basename(full_path)%5B:-3%5D%0A rst = %5B%22.. _example_%7B%7D:%22.format(name),%0A %22%22,%0A %5D%0A%0A # add docstring%0A
@@ -1447,16 +1447,16 @@
('%22%22%22')%0A
-
@@ -15... |
83c29e759df43d279c682c6723b06d4edad2e21a | Include command line aliases in config docs | docs/autogen_config.py | docs/autogen_config.py | #!/usr/bin/env python
from os.path import join, dirname, abspath
from IPython.terminal.ipapp import TerminalIPythonApp
from ipykernel.kernelapp import IPKernelApp
from traitlets import Undefined
here = abspath(dirname(__file__))
options = join(here, 'source', 'config', 'options')
generated = join(options, 'config-ge... | Python | 0 | @@ -189,16 +189,52 @@
ndefined
+%0Afrom collections import defaultdict
%0A%0Ahere =
@@ -607,16 +607,204 @@
n True%0A%0A
+def format_aliases(aliases):%0A fmted = %5B%5D%0A for a in aliases:%0A dashes = '-' if len(a) == 1 else '--'%0A fmted.append('%60%60%25s%25s%60%60' %25 (dashes, a))%0A retur... |
fc5b84b56a9ee2f1a8690dad77a25d462b6e46ee | Use realpath instead of abspath for extension id calculation | telemetry/telemetry/core/extension_to_load.py | telemetry/telemetry/core/extension_to_load.py | # Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
from telemetry.core.chrome import crx_id
class ExtensionPathNonExistentException(Exception):
pass
class MissingPublicKeyException(Exception... | Python | 0.000004 | @@ -995,35 +995,36 @@
RXAppID(os.path.
-abs
+real
path(self._path)
@@ -1143,11 +1143,12 @@
ath.
-abs
+real
path
|
4fe3a834c98caf04323de73f2d94fd4ed06fffd9 | Eliminate warning message | lexos/processors/analyze/information.py | lexos/processors/analyze/information.py | # -*- coding: utf-8 -*-
import matplotlib.pyplot as plt
import numpy as np
from matplotlib import mlab
from lexos.helpers.error_messages import EMPTY_LIST_MESSAGE
class CorpusInformation:
def __init__(self, count_matrix: np.ndarray, labels: np.ndarray):
"""
Converts word lists completely to stat... | Python | 0.999871 | @@ -4468,19 +4468,16 @@
count =
-np.
sum(nonz
|
96d444d8ee07a6004b6b96eece65835a4ea9b218 | Set `client_settings` in `/compare` sandbox | src/mmw/apps/home/views.py | src/mmw/apps/home/views.py | # -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
import json
from django.http import Http404
from django.shortcuts import render_to_response, get_object_or_404
from django.template.context_processors import csrf
from django.conf impo... | Python | 0.000002 | @@ -1427,10 +1427,32 @@
re.html'
+, get_context(request)
)%0A
|
d05473c99eaf89a42df4813a50c144859bc563fe | copy html template to the right place for gitchangelog | docs/buildChangelog.py | docs/buildChangelog.py | #!/usr/bin/python
import os
import tarfile
import urllib
import subprocess
if not os.path.exists("local.tools/gitchangelog-2.1.3"):
os.mkdir("local.tools")
urllib.URLopener().retrieve("https://pypi.python.org/packages/source/g/gitchangelog/gitchangelog-2.1.3.tar.gz","local.tools/gitchangelog-2.1.3.tar.gz")
... | Python | 0 | @@ -68,16 +68,30 @@
bprocess
+%0Aimport shutil
%0A%0Aif not
@@ -440,16 +440,107 @@
lose()%0A%0A
+shutil.copyfile(%22html.tpl%22, %22local.tools/gitchangelog-2.1.3/templates/mustache/html.tpl%22)%0A%0A
newEnv =
|
9176588b8fa75cc0dac81e08ce474cfc15aa7b18 | Fix unicode chars when querying simbad. | astrobin/simbad.py | astrobin/simbad.py | import urllib2
import simplejson
import re
from django.conf import settings
from django.db import IntegrityError
from models import Subject, SubjectIdentifier
def find_subjects(q):
regex = ".*"
for c in re.sub(r'\s', '', q):
esc = re.escape(c)
for d in esc:
regex += "%c.*" % d
... | Python | 0.000011 | @@ -106,16 +106,60 @@
ityError
+%0Afrom django.utils.encoding import smart_str
%0A%0Afrom m
@@ -217,24 +217,45 @@
ubjects(q):%0A
+ q = smart_str(q)%0A
regex =
|
58f1c75e052f8eb540b2dd4d01297cf826ebe798 | Make Searcher object template-renderable | appsearch/utils.py | appsearch/utils.py | from django.forms.formsets import formset_factory
from appsearch.registry import search, SearchRegistry
from appsearch.forms import ModelSelectionForm, ConstraintForm, ConstraintFormset
class Searcher(object):
model_selection_form = None
constraint_formset = None
string = None
results = None
... | Python | 0.000001 | @@ -42,16 +42,161 @@
_factory
+%0Afrom django.core.urlresolvers import reverse%0Afrom django.utils.encoding import StrAndUnicode%0Afrom django.template.loader import render_to_string
%0A%0Afrom a
@@ -345,16 +345,294 @@
her(
-object):
+StrAndUnicode):%0A %22%22%22 Template helper, wrapping all the necessary compon... |
daa8ae092f40f438d0177ab02bdb993706f2fda2 | Fix order-dependent test caused by TF lazy module loading | tensorflow_gan/examples/stargan/train_test.py | tensorflow_gan/examples/stargan/train_test.py | # coding=utf-8
# Copyright 2020 The TensorFlow GAN 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 applicabl... | Python | 0.000002 | @@ -1567,16 +1567,147 @@
setUp()%0A
+%0A # Force the TF lazy loading to kick in before mocking this out below.%0A _ = tf.compat.v1.train.get_or_create_global_step()%0A%0A
self
|
f62087080e3877cd0dc0b3e8553b0ce7a6228f3d | Allow deeply nested media directories to have their paths properly preserved on copy. | docs/sphinx-docs/build_sphinx.py | docs/sphinx-docs/build_sphinx.py | """
Functions for building sphinx docs.
For more information on the invocation of sphinx see:
http://sphinx-doc.org/invocation.html
"""
import subprocess
import os
import sys
import fnmatch
import shutil
from distutils.dir_util import copy_tree
from distutils.util import get_platform
platform = '.%s-%s'%(get_platfor... | Python | 0 | @@ -2014,20 +2014,20 @@
est_dir_
-name
+part
= os.pa
@@ -2033,12 +2033,11 @@
ath.
-base
+dir
name
@@ -2049,22 +2049,155 @@
ath.
-dirname(docs))
+relpath(docs, SASVIEW_SRC))%0A if os.sep in dest_dir_part:%0A dest_dir_part = dest_dir_part%5Bdest_dir_part.index(os.sep) + 1:%5D
%0A
@@ -2... |
6a85b89d75cbac1d408ef06cf716117e9a23f89e | Add logout view | auth/core/views.py | auth/core/views.py | from flask import render_template, redirect, url_for, flash, request
from flask.ext.login import login_required, login_user
from auth import db
from auth.utils import send_email
from auth.core import core
from auth.core.forms import LoginForm, RegistrationForm
from auth.core.models.user import User
@core.route("/")... | Python | 0.000002 | @@ -116,16 +116,29 @@
gin_user
+, logout_user
%0A%0Afrom a
@@ -1052,32 +1052,146 @@
l%22, form=form)%0A%0A
+@core.route(%22/logout%22)%0A@login_required%0Adef logout():%0A logout_user()%0A return redirect(url_for(%22core.home%22))%0A%0A
@core.route(%22/re
|
3f2778ebac1ecd2587d12ee2256db8068816d6c0 | refactor files | ark/goal/models.py | ark/goal/models.py | from datetime import datetime
from ark.exts import db
class Goal(db.Model):
__tablename__ = 'goal'
GOAL_STATES = {
'ready': 'ready',
'doing': 'Doing',
'canceled': 'Canceled',
'finished': 'Finished',
'expired': 'Expired',
}
id = db.Column(db.Integer, primary_... | Python | 0.000003 | @@ -492,35 +492,39 @@
00)) %0A image_
-url
+file_id
= db.Column(db.
@@ -519,34 +519,61 @@
b.Column(db.
-String(300
+Integer, db.ForeignKey('goal_file.id'
))%0A creat
@@ -737,16 +737,72 @@
eady')%0A%0A
+ image = db.relationship('GoalFile', uselist=False)%0A%0A
%0Aclass G
@@ -981,15 +981,21 @@
-cont... |
b528717d7b0627b7cf236021232f3c87b6879206 | Fix lint. | st2common/tests/unit/test_action_system_models.py | st2common/tests/unit/test_action_system_models.py | # Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use th... | Python | 0.000001 | @@ -2297,32 +2297,68 @@
v_vars=%7B'a': 1%7D,
+%0A
on_behalf_user=
@@ -2368,16 +2368,29 @@
behalf',
+ user='user',
%0A
@@ -2417,29 +2417,16 @@
- user='user',
remote_
|
c37284ebb2aa43887142179e431a2f409b8a841c | Update autoTransaction.py | autoTransaction.py | autoTransaction.py | import random
from addperson import addperson
def autoTransaction(curs,connection):
another_round = True
foo = True
quit = False
keepon = True
while another_round:
transaction_id = random.randint(0,999999999)
valid = False
while not valid:
... | Python | 0 | @@ -1571,32 +1571,96 @@
f answer =='y':%0A
+ %09 # pass seller_id to addperson()%0A
|
90f8da6e3e18f2ac1ec560ddcb58b521113b7d33 | Fix doc test | pymks/datasets/spherical_microstructure_generator.py | pymks/datasets/spherical_microstructure_generator.py | import numpy as np
from .base_microstructure_generator import BaseMicrostructureGenerator
class SphericalMicrostructureGenerator(BaseMicrostructureGenerator):
"""
Generates n_samples number of a periodic random spherical
particles. The particles have all the same phase and are in a
matrix of a diffe... | Python | 0 | @@ -1355,19 +1355,19 @@
10)%0A
-...
+%3E%3E%3E
X = %5B%5B%5B
|
8388bfe7b1336b6c00b41c1d6fd9fc3a7b1d65f7 | Correct typo corrplot | autoc/naimputer.py | autoc/naimputer.py | from autoc.explorer import DataExploration, pd
from autoc.utils.helpers import cserie
import seaborn as sns
import matplotlib.pyplot as plt
from autoc.utils.helpers import cached_property
from autoc.utils.coorplot import plot_corrmatrix
def missing_map(df, nmax=100, verbose=True, yticklabels=False, figsize=(15, 11), *... | Python | 0.000291 | @@ -200,17 +200,17 @@
utils.co
-o
+r
rplot im
|
ff0ebefc1e82fb66eb128a75fe96140a7973b618 | put gloo initialization log to file (#27969) | python/paddle/distributed/fleet/utils/http_server.py | python/paddle/distributed/fleet/utils/http_server.py | # Copyright (c) 2020 PaddlePaddle Authors. 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 app... | Python | 0 | @@ -1191,24 +1191,53 @@
er(handler)%0A
+ logger.propagate = False%0A
return l
|
b29dd41f0f8482fb6dbaa4f9fa468ac66069f207 | add test for submit block | test/functional/getblocktemplate_proposals.py | test/functional/getblocktemplate_proposals.py | #!/usr/bin/env python3
# Copyright (c) 2014-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test block proposals with getblocktemplate."""
from binascii import b2a_hex
import copy
from test_fra... | Python | 0 | @@ -1896,24 +1896,195 @@
ock, None)%0A%0A
+ self.log.info(%22submitblock: Test block decode failure%22)%0A assert_raises_jsonrpc(-22, %22Block decode failed%22, node.submitblock, b2x(block.serialize()%5B:-15%5D))%0A%0A
self
@@ -2344,16 +2344,209 @@
sing')%0A%0A
+ self.log.info(%22submitb... |
b165d3b71acff13e98fbb0338d892f499b5abbee | update models for follower features | app/models.py | app/models.py | from hashlib import md5
from app import db
'''The models.py defines our models related to tables
in database.
'''
followers = db.Table('followers',
db.Column('follower_id', db.Integer, db.ForeignKey('user.id')),
db.Column('followed_id', db.Integer, db.ForeignKey('user.id'))
)
class User(db.Model):
'''T... | Python | 0 | @@ -4162,32 +4162,322 @@
ed_posts(self):%0A
+ '''Return a query object including posts of the users that you have followed.%0A It is always a good idea to return query object instead of results, because%0A that gives the caller the choice of adding more clauses to the query before%0A it is ... |
677b9bdfa4bf0c2541bea04bf44c6a0ca4ab90c9 | mark log jid test as flaky | tests/integration/logging/test_jid_logging.py | tests/integration/logging/test_jid_logging.py | # -*- coding: utf-8 -*-
# Import Python libs
from __future__ import absolute_import, print_function, unicode_literals
# Import Salt Testing libs
from tests.support.case import ModuleCase
from tests.support.unit import skipIf
from tests.support.helpers import TestsLoggingHandler
import logging
import salt.ext.six as ... | Python | 0.00092 | @@ -273,16 +273,23 @@
gHandler
+, flaky
%0A%0Aimport
@@ -727,16 +727,27 @@
DEBUG)%0A%0A
+ @flaky%0A
def
|
ff1532bf7d432e2015c97a492d7bf4f5d61b085a | Make test_concurrent compatible with master | tests/integration/standard/test_concurrent.py | tests/integration/standard/test_concurrent.py | from tests.integration import PROTOCOL_VERSION
try:
import unittest2 as unittest
except ImportError:
import unittest # noqa
from itertools import cycle
from cassandra import InvalidRequest
from cassandra.cluster import Cluster
from cassandra.concurrent import (execute_concurrent,
... | Python | 0 | @@ -1,52 +1,4 @@
-from tests.integration import PROTOCOL_VERSION%0A%0A
try:
@@ -364,13 +364,15 @@
dra.
-qu
+decod
er
-y
imp
@@ -487,41 +487,8 @@
ter(
-protocol_version=PROTOCOL_VERSION
)%0A
|
328cce59ae5a9ff28850a9fff00f309bf187017d | Use UserInfo in edx_api to get user data (#3304) | backends/edxorg.py | backends/edxorg.py | """
EdX.org backend for Python Social Auth
"""
from urllib.parse import urljoin
from django.conf import settings
from social_core.backends.oauth import BaseOAuth2
from micromasters.utils import now_in_utc
class EdxOrgOAuth2(BaseOAuth2):
"""
EDX.org OAuth2 authentication backend
"""
name = 'edxorg'
... | Python | 0 | @@ -107,16 +107,50 @@
ettings%0A
+from edx_api.client import EdxApi%0A
from soc
@@ -1304,218 +1304,216 @@
-return self.get_json(%0A urljoin(self.EDXORG_BASE_URL, %22/api/mobile/v0.5/my_user_info%22),%0A headers=%7B%0A %22Authorization%22: %22Bearer %7B%7D%22.format(access_to... |
bba06c494d8e62ac4b7daf886d9aa4407689d272 | Version bump | bespin/__init__.py | bespin/__init__.py | VERSION="0.3.3"
| Python | 0.000001 | @@ -6,11 +6,11 @@
ON=%220.3.
-3
+4
%22%0A
|
d76450196be29b086b515e6c6187caef562d777d | Version Bump | bespin/__init__.py | bespin/__init__.py | VERSION="0.5.4"
| Python | 0.000001 | @@ -7,10 +7,12 @@
N=%220.5.4
+.1
%22%0A
|
305fb2b631bf9ede152995d1ba264ac58d39cea9 | Improve display of exceptions | MockMockMock/_Details/MockException.py | MockMockMock/_Details/MockException.py | # -*- coding: utf-8 -*-
# Copyright 2013 Vincent Jacques
# vincent@vincent-jacques.net
# This file is part of MockMockMock. http://jacquev6.github.com/MockMockMock
# MockMockMock 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 ... | Python | 0.000001 | @@ -845,97 +845,9 @@
-def __init__(self, message):%0A Exception.__init__(self)%0A self.message = message
+pass
%0A
|
2f4f2ddd6a97e4fdae4bb3a31f4ad8dd9754ee9a | Make del admin only | modules/module_expl.py | modules/module_expl.py | # -*- encoding: utf-8 -*-
import os
import os.path
import sys
import re
import random
import fnmatch
def expl_parseterm(expl):
expl = expl.split(" ")
expl = expl[0]
expl = expl.lower()
expl = expl.strip()
invalidchars = re.compile("[^a-z0-9\ :\.-]")
expl = invalidchars.sub("_", expl)
ret... | Python | 0 | @@ -3033,32 +3033,66 @@
, .add, .ls%22%22%22%0A%0A
+ if not isAdmin(user): return%0A%0A
try:%0A
|
2ee9e3b576553288016e28e10aa0d10709c75a45 | Update dnsgrep meta | modules/sfp_dnsgrep.py | modules/sfp_dnsgrep.py | # -*- coding: utf-8 -*-
# -------------------------------------------------------------------------------
# Name: sfp_dnsgrep
# Purpose: SpiderFoot plug-in for retrieving domain names
# from Rapid7 Sonar Project data sets using DNSGrep API.
# - https://opendata.rapid7.com/about/
# ... | Python | 0.000001 | @@ -1194,16 +1194,1096 @@
e DNS%22 %5D
+,%0A 'dataSource': %7B%0A 'website': %22https://opendata.rapid7.com/%22,%0A 'model': %22FREE_AUTH_UNLIMITED%22,%0A 'references': %5B%0A %22https://opendata.rapid7.com/apihelp/%22,%0A %22https://www.rapid7.com/... |
71214cca77137e23b279a5495ded1fce6f37aa11 | Set version to 0.2 | moneyfield/__init__.py | moneyfield/__init__.py | from .fields import MoneyField, MoneyModelForm
from .exceptions import *
__version__ = 'experimental' | Python | 0.999181 | @@ -67,16 +67,17 @@
port *%0A%0A
+%0A
__versio
@@ -87,17 +87,8 @@
= '
-experimental
+0.2
'
|
4c1d3efeadea0805ab86298215367578fdb65d3c | Update readthedocs/core/management/commands/update_repos.py | readthedocs/core/management/commands/update_repos.py | readthedocs/core/management/commands/update_repos.py | """
Custom management command to rebuild documentation for all projects.
Invoked via ``./manage.py update_repos``.
"""
import logging
from django.core.management.base import BaseCommand
from readthedocs.builds.constants import EXTERNAL, INTERNAL
from readthedocs.builds.models import Version
from readthedocs.core.ut... | Python | 0 | @@ -2454,29 +2454,8 @@
sion
- and version != 'all'
:%0A
|
40fb55a63be70a48371413bc61bffd346436a052 | update for UCI classification dataset | uci-expts/classification/car_evaluation/training.py | uci-expts/classification/car_evaluation/training.py | # Copyright 2017 Max W. Y. Lam
#
# 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, so... | Python | 0 | @@ -3565,32 +3565,36 @@
%3E%3E
-rmse = 3.8680
+err_rate = 0.0378
p/m 0.
-4681
+0058
%0A
@@ -3623,22 +3623,22 @@
= -
-2.7765
+0.3359
p/m 0.0
828%0A
@@ -3637,11 +3637,11 @@
0.0
-828
+650
%0A
@@ -3674,32 +3674,36 @@
%3E%3E
-rmse = 4.3249
+err_rate = 0.1611
p/m 0.
-2355
+0590
%0A
@@ -3732,25 +3... |
a61e63be1b1c6e31fd0d469962277f05db644bc4 | Add dashboard URLs | lsst/urls.py | lsst/urls.py | from django.conf.urls import patterns, include, url
from django.conf import settings
from django.conf.urls.static import static
#from core.common.urls import *
import lsst.settings
import lsst.views as lsstmon_views
urlpatterns = patterns('',
### url(r'^$', lsstmon_views.mainPage),
### url(r'^lsst/$', lsstm... | Python | 0.000002 | @@ -1500,16 +1500,185 @@
eInfo),%0A
+ url(r'%5Edash/$', lsstmon_views.dashAnalysis),%0A url(r'%5Edash/analysis/$', lsstmon_views.dashAnalysis),%0A url(r'%5Edash/production/$', lsstmon_views.dashProduction),%0A
) + stat
|
09b1dde3df097f5158e17b1cea2e127f0fe125d4 | fix assertion | predictor/imbalance/ensembled_svm.py | predictor/imbalance/ensembled_svm.py | # ensembled_svm.py
import os
import pickle
import numpy as np
from collections import Counter
from sklearn.model_selection import StratifiedKFold
from sklearn.model_selection import KFold
from sklearn import svm
from scoop import futures as fu
class EnsembledSVM:
def __init__(self,imaxTrSamples,imaxTeSamples,iboot... | Python | 0.00011 | @@ -2708,17 +2708,28 @@
) %5D += 1
-;
+%0A
assert
@@ -2749,24 +2749,52 @@
==len(yList)
+,'sum(counters)!=len(yList)'
%0A
|
144557e945ca71a4d7e790d471137874bf6bfb05 | Add variants to disable building tests and benchmarks (#15789) | var/spack/repos/builtin/packages/c-blosc/package.py | var/spack/repos/builtin/packages/c-blosc/package.py | # Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import sys
from spack import *
class CBlosc(CMakePackage):
"""Blosc, an extremely fast, multi-threaded, meta-compr... | Python | 0 | @@ -2176,24 +2176,278 @@
L_LZ4=ON')%0A%0A
+ if self.run_tests:%0A args.append('-DBUILD_TESTS=ON')%0A args.append('-DBUILD_BENCHMARKS=ON')%0A else:%0A args.append('-DBUILD_TESTS=OFF')%0A args.append('-DBUILD_BENCHMARKS=OFF')%0A%0A
... |
088c5bad2845d9f82fd712af7c4737c7fc45d0bc | Update get-relation-foreign-objects.py | Django/get-relation-foreign-objects.py | Django/get-relation-foreign-objects.py | #https://docs.djangoproject.com/en/dev/topics/db/queries/#caching-and-querysets
class Data_Toko(models.Model):
....
class Pengiriman(models.Model):
property = models.ForeignKey(Data_Toko, related_name='pengiriman')
metode_pengiriman = models.CharField(max_length=200, default='JNE', blank=True, null=True, help_tex... | Python | 0 | @@ -715,9 +715,71 @@
'%5D%0A%3E%3E%3E %0A
+%3E%3E%3E for i in c:%0A... print i%0A... %0ATiki%0APos Indonesia%0A%3E%3E%3E %0A%0A
%0A
|
0158825039e9faaac4ed10d56c9aef8610567f5f | Version bump | product_configurator/__manifest__.py | product_configurator/__manifest__.py | {
'name': 'Product Configurator',
'version': '11.0.1.0.13',
'category': 'Generic Modules/Base',
'summary': 'Base for product configuration interface modules',
'author': 'Pledra',
'license': 'AGPL-3',
'website': 'http://www.pledra.com/',
'depends': ['account', ],
"data": [
'da... | Python | 0.000001 | @@ -57,17 +57,17 @@
.0.1.0.1
-3
+4
',%0A '
|
0766e7fbbb1ef5315b20814d277f44c8ec8b82fb | add 1.3-9 (#10732) | var/spack/repos/builtin/packages/r-rgdal/package.py | var/spack/repos/builtin/packages/r-rgdal/package.py | # Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RRgdal(RPackage):
"""Provides bindings to the 'Geospatial' Data Abstraction Library
('... | Python | 0.000016 | @@ -981,20 +981,19 @@
rgdal_1.
-2-16
+3-9
.tar.gz%22
@@ -1062,16 +1062,112 @@
rgdal%22%0A%0A
+ version('1.3-9', sha256='3e44f88d09894be4c0abd8874d00b40a4a5f4542b75250d098ffbb3ba41e2654')%0A
vers
|
93767e220919ef53d011e6930d66eadf4773d779 | Update MotorsControlFile.py | ProBot_BeagleBone/MotorsControlFile.py | ProBot_BeagleBone/MotorsControlFile.py | #!/usr/bin/python
# Python Standart Library Imports
import SabertoothFile
import PWMFile
import ProBotConstantsFile
# Initialization of classes from local files
Sabertooth = SabertoothFile.SabertoothClass()
PWM = PWMFile.PWMClass()
Pconst = ProBotConstantsFile.Constants()
class MotorsControlClass():
def Mo... | Python | 0 | @@ -270,16 +270,17 @@
ants()%0A%0A
+%0A
class Mo
|
6f9e935c01c77a440d1190c6148e567f1694797b | Update docker_settings_secret.py | setup/docker_config/django/docker_settings_secret.py | setup/docker_config/django/docker_settings_secret.py | # Secret Settings for NeuroData
USER = 'neurodata'
PASSWORD = 'neur0data'
HOST = 'localhost'
SECRET_KEY = 'nothing_as_such'
AWS_ACCESS_KEY_ID = ''
AWS_SECRET_ACCESS_KEY = ''
| Python | 0.000008 | @@ -163,12 +163,31 @@
SS_KEY = ''%0A
+SHARED_SECRET = ''%0A
|
be2724f8d7eab6c5704dcd883b5e87bc53685a14 | Move reader creation into init | paretoer.py | paretoer.py | #!/usr/bin/env python
import sys
import csv
import string
class CSVParetoer():
"""
This class represents an instance of paretoization. In short,
it operates on a CSV file and produces another file with a list
of tags to be applied to that file.
"""
def __init__(self, start_row, input_path,... | Python | 0.000001 | @@ -557,16 +557,174 @@
s = %7B%7D%0A%0A
+ dialect = csv.Sniffer().sniff(self.input_file.read(1024))%0A self.input_file.seek(0)%0A self.reader = csv.reader(self.input_file, dialect)%0A%0A
def
@@ -1336,160 +1336,8 @@
t):%0A
- dialect = csv.Sniffer().sniff(self.input_file.read(1024))%0A... |
b33c5fdc2c1216e89c7e03323b2ecebc4477f3b9 | results importer: Python 3 uses 0o as octal prefix, not 0 | frontend/fifoci/management/commands/import_results.py | frontend/fifoci/management/commands/import_results.py | from django.conf import settings
from django.core.management.base import BaseCommand, CommandError
from fifoci.models import FifoTest, Result, Version
import json
import os.path
import shutil
import subprocess
import zipfile
def find_first_parent(parents):
"""Takes a sorted list of parents of a revision and retu... | Python | 0.998565 | @@ -2651,16 +2651,17 @@
_path, 0
+o
644)%0A%0A
|
35beccf9eda75e9b969636eb94882353a76da0d0 | Update for toolchain transition migration (#317) | examples/naming_package_files/my_package_name.bzl | examples/naming_package_files/my_package_name.bzl | # Copyright 2020 The Bazel Authors. 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 la... | Python | 0 | @@ -2953,10 +2953,60 @@
type%22%5D,%0A
+ incompatible_use_toolchain_transition = True,%0A
)%0A
|
776e6adda7de1c697cf2605e4ffb97d1631d3bfc | Remove platform limitation of snooze() call | tests/system/suite_qtquick/tst_qml_outline/test.py | tests/system/suite_qtquick/tst_qml_outline/test.py | #############################################################################
##
## Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
## Contact: http://www.qt-project.org/legal
##
## This file is part of Qt Creator.
##
## Commercial License Usage
## Licensees holding valid commercial Qt licenses may use this f... | Python | 0 | @@ -2951,50 +2951,8 @@
0%22)%0A
- if platform.system() == 'Darwin':%0A
|
10e21cf7ab2cfa83975352302a485781c277383c | fix c++ testing on linux - need to pass in a minimal environment otherwise cant locate g++ | tests/test_framework/xpybuild/xpybuild_basetest.py | tests/test_framework/xpybuild/xpybuild_basetest.py | from pysys.constants import *
from pysys.basetest import BaseTest
from pysys.utils.filegrep import filegrep
class XpybuildBaseTest(BaseTest):
def xpybuild(self, args=None, buildfile='test.xpybuild.py', shouldFail=False, stdouterr='xpybuild', env=None):
"""
Runs xpybuild against the specified buildfile or test.xpy... | Python | 0.000001 | @@ -879,314 +879,56 @@
s =
-%7B%7D%0A%09%09%09%09if PLATFORM != 'win32':%0A%09%09%09%09%09pythonhome = os.path.dirname(sys.executable)%0A%09%09%09%09%09if pythonhome.endswith('bin'): pythonhome = os.path.dirname(pythonhome)%0A%09%09%09%09%09# python doesn't seem to launch on linux without PYTHONHOME being set%0A%09%0... |
fff8576444498fbb264c441c98302f9e45275270 | Add line SUBSTITUTE | patterns.py | patterns.py | # -*- coding: utf-8 -*-
import re
pre_patterns = [
(
r'(\d{16}-[-\w]*\b)',
r'REQUEST_ID_SUBSTITUTE',
),
(
# r'([\dA-F]){8}-[\dA-F]{4}-4[\dA-F]{3}-[89AB][\dA-F]{3}-[\dA-F]{12}',
r'([0-9A-F]){8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}',
# r'[0-9A-F-]{36}',
... | Python | 0.99992 | @@ -833,10 +833,72 @@
%0A ),%0A
+ (%0A r'line %5Cd+',%0A r'LINE_SUBSTITUTE',%0A ),%0A
%5D%0A
|
6f28598088a7e7479c85a11947355eea61120552 | Fix dimension mismatch error in the triangle library by ensuring that segments are a two dimensional array. | glumpy/graphics/collections/raw_polygon_collection.py | glumpy/graphics/collections/raw_polygon_collection.py | # -----------------------------------------------------------------------------
# Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved.
# Distributed under the (new) BSD License.
# -----------------------------------------------------------------------------
import numpy as np
import triangle
from glumpy im... | Python | 0 | @@ -631,16 +631,60 @@
= n-1,0%0A
+ segments_2d = segments.reshape((-1, 2))%0A
T =
@@ -780,16 +780,19 @@
segments
+_2d
%7D, %22p%22)%0A
|
cffa46e78679402e87cac10fab805e9eeb55c77c | Use wx.Platform. | editor.py | editor.py | import os
import shutil
import wx
import wx.aui
import wx.stc
from async_wx import async_call, coroutine
from find_replace_dialog import FindReplaceDialog
from go_to_line_dialog import GoToLineDialog
from menu_defs import edit_menu
from signal_wx import Signal
from syntax import filename_syntax_re, syntax_dict
import d... | Python | 0 | @@ -328,34 +328,34 @@
%0Aif
-%22wxMSW%22 in wx.PlatformInfo
+wx.Platform == %22__WXMSW__%22
:%0A
|
fe399453f7f0d53a76cc798e535b1b76d9590900 | Add pip_helpers as a requirement | pavement.py | pavement.py | import os
import pkg_resources
from paver.easy import task, needs
from paver.setuputils import setup
import version
install_requires = ['application_repository', 'blinker', 'configobj',
'flatland-fork', 'geo-util', 'ipython',
'microdrop_utility', 'opencv-helpers', 'path-helpe... | Python | 0.000001 | @@ -571,16 +571,31 @@
'paver'
+, 'pip-helpers'
%5D%0A%0A%0Asetu
|
9846adba7390c56e2998a876c8345dacf9c71fd6 | task moved to paved | pavement.py | pavement.py | #from nose.commands import nosetests
from paver.easy import *
from paver.setuputils import setup
from setuptools import find_packages
try:
# Optional tasks, only needed for development
import paver.doctools
import paver.misctasks
from paved import *
from paved.dist import *
from paved.util imp... | Python | 0.999998 | @@ -372,32 +372,60 @@
ycheck import *%0A
+ from paved.pkg import *%0A
from sphinxc
@@ -3311,995 +3311,4 @@
d)%0A%0A
- def install_test(installer):%0A import virtualenv%0A import tempfile%0A import textwrap%0A root = path(tempfile.mkdtemp(prefix=NAME + '_'))%0A info( 'root... |
5bcc4ae60f89fbcadad234e0d6b9a755d28aab5d | Handle ctrl-C-ing out of palm-log | pavement.py | pavement.py | import subprocess
from paver.easy import *
def call(*args, **kwargs):
return subprocess.call(args, **kwargs)
@task
def build():
"""Package up the app."""
call('palm-package', '.')
@task
def halt():
call('palm-launch', '--device=emulator', '-c', 'org.markpasc.paperplain')
@task
@needs('halt')
def ... | Python | 0.000153 | @@ -780,16 +780,29 @@
'info')%0A
+ try:%0A
call
@@ -848,28 +848,72 @@
'org.markpasc.paperplain')%0A
+ except KeyboardInterrupt:%0A print%0A
|
85eda1d8dc0774d90cc6ff0410c36c3f1119fbd0 | Update calc figures | cla_backend/libs/eligibility_calculator/constants/disposable_income.py | cla_backend/libs/eligibility_calculator/constants/disposable_income.py | LIMIT = 73300
PARTNER_ALLOWANCE = 17946
CHILD_ALLOWANCE = 28822
CHILDLESS_HOUSING_CAP = 54500
EMPLOYMENT_COSTS_ALLOWANCE = 4500
| Python | 0 | @@ -33,12 +33,12 @@
= 1
-7946
+8191
%0ACHI
@@ -57,12 +57,12 @@
= 2
-8822
+9149
%0ACHI
|
1493513ffa056c399f92ab1db70ba0bd81e3b642 | move bba fields to easy_my_coop_be | easy_my_coop_be/models/coop.py | easy_my_coop_be/models/coop.py | from odoo import fields, models
class SubscriptionRequest(models.Model):
_inherit = 'subscription.request'
company_type = fields.Selection([('scrl', 'SCRL'),
('asbl', 'ASBL'),
('sprl', 'SPRL'),
('sa... | Python | 0 | @@ -324,8 +324,615 @@
'SA')%5D)%0A
+%0A def get_partner_company_vals(self):%0A vals = super(SubscriptionRequest).get_partner_company_vals()%0A vals%5B'out_inv_comm_algorithm'%5D = 'random'%0A return vals%0A%0A def get_partner_vals(self):%0A vals = super(SubscriptionRequest).get_partne... |
7be41591ce791e8bddebc3c44b7396a602d8022a | Print transaction nesting level when debugging | edgedb/server/pgsql/session.py | edgedb/server/pgsql/session.py | ##
# Copyright (c) 2010 Sprymix Inc.
# All rights reserved.
#
# See LICENSE for details.
##
import postgresql
import postgresql.protocol.xact3
from semantix.caos import session
from semantix.utils.debug import debug
class SessionPool(session.SessionPool):
def __init__(self, backend, realm):
super().__i... | Python | 0 | @@ -869,20 +869,25 @@
BEGIN %25r
+%5B%25d%5D
' %25
+(
self.xac
@@ -879,32 +879,58 @@
d%5D' %25 (self.xact
+, len(list(self.chain())))
)%0A %22%22%22%0A
@@ -1047,20 +1047,25 @@
LBACK %25r
+%5B%25d%5D
' %25
+(
self.xac
@@ -1057,32 +1057,58 @@
d%5D' %25 (self.xact
+, len(list(self.chain())))
)%0A ... |
2db52482dc4a52a7a588f47f125ab2ff3ec0c246 | Patch exit value on worker.py | compss/programming_model/bindings/python/src/pycompss/worker/worker.py | compss/programming_model/bindings/python/src/pycompss/worker/worker.py | #!/usr/bin/python
#
# Copyright 2002-2018 Barcelona Supercomputing Center (www.bsc.es)
#
# 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
... | Python | 0.000001 | @@ -2711,16 +2711,34 @@
task%0A
+ exit_code, _, _ =
execute
@@ -2789,16 +2789,37 @@
racing)%0A
+ return exit_code%0A
%0A%0Adef ma
@@ -4592,16 +4592,28 @@
rker%0A
+ exit_code =
compss_
@@ -4917,16 +4917,57 @@
rker()%0A%0A
+ if exit_code == 1:%0A exit(1)%0A%0A%0A
%0Aif __na
|
fe1fd85216d62e62138eec5accff4f250dfddcd1 | Fix lowercase conversion for py3.6 | pconf/store/env.py | pconf/store/env.py | import os
import re
from six import iteritems
from ast import literal_eval
class Env(object):
def __init__(self, separator=None, match=None, whitelist=None, parse_values=False, to_lower=False):
self.separator = separator
self.match = match
self.whitelist = whitelist
self.parse_valu... | Python | 0.999998 | @@ -2831,32 +2831,61 @@
to_lower(self):%0A
+ lower_case_dict = %7B%7D%0A
for key
@@ -2913,33 +2913,39 @@
-self.vars
+lower_case_dict
%5Bkey.lower()
@@ -2961,14 +2961,46 @@
vars
-.pop(key)
+%5Bkey%5D%0A self.vars = lower_case_dict
%0A
|
1d821daa6c6d98948f586c7fd16cbd406fc8e354 | Correct the packet format based on a patch by John Batty. | pcs/packets/rtp.py | pcs/packets/rtp.py | # Copyright (c) 2008, Bruce M. Simpson.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# Redistributions of source code must retain the above copyright notice,
# this list of conditions and t... | Python | 0 | @@ -2315,17 +2315,17 @@
ld(%22m%22,
-4
+1
)%09%09# m-b
@@ -2440,16 +2440,68 @@
equence%0A
+ ts = pcs.Field(%22ts%22, 32) # timestamp%0A
@@ -2598,16 +2598,16 @@
fields%0A%0A
-
@@ -2657,16 +2657,20 @@
pt, seq,
+ ts,
ssrc, o
|
d693544e3544a33ab521a25dfc872dd208e190b9 | check for Figure attrib | penchy/apicheck.py | penchy/apicheck.py | """
Provides methods which detect changes in PenchY's dependencies.
If this module causes errors, they are most likely caused by
api changes in PenchY's dependencies.
"""
import logging
import inspect
from inspect import ArgSpec
from penchy.util import die
log = logging.getLogger(__name__)
def compare_argspec(func... | Python | 0 | @@ -3397,16 +3397,56 @@
figure')
+,%0A (matplotlib.figure, 'Figure'),
%0A
|
411afa92c7eaf3d606aae98c24df163fee1b34f9 | Add build option to set value of VERBOSE | project_generator/tools/makefile.py | project_generator/tools/makefile.py | # Copyright 2014-2015 0xc0170, theotherjimmy
#
# 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... | Python | 0.002509 | @@ -4272,16 +4272,117 @@
pass%0A
+ if 'verbose' in kwargs:%0A args += %5B%22VERBOSE=%25d%22 %25 (1 if kwargs%5B'verbose'%5D else 0)%5D%0A
|
22b339124ce9549ae7cd6de3d5df2364b275733d | correct ref to message subtype | project_task_auto_staging/models.py | project_task_auto_staging/models.py | # -*- coding: utf-8 -*-
from openerp import models, fields, api
import datetime
import time
from openerp.tools import DEFAULT_SERVER_DATETIME_FORMAT
from openerp.exceptions import ValidationError
class project_project_auto_staging(models.Model):
_inherit = 'project.project'
allow_automove = fields.Boolean('A... | Python | 0 | @@ -1907,16 +1907,21 @@
uto_move
+_task
':%0A
|
27af71c34b2ce94f4fae5613ec457f93df1a8f56 | add create2 opcode to hooks (#1006) | mythril/analysis/modules/state_change_external_calls.py | mythril/analysis/modules/state_change_external_calls.py | from mythril.analysis.swc_data import REENTRANCY
from mythril.analysis.modules.base import DetectionModule
from mythril.analysis.report import Issue
from mythril.laser.smt import symbol_factory, UGT, BitVec, Or
from mythril.laser.ethereum.state.global_state import GlobalState
from mythril.laser.ethereum.state.annotatio... | Python | 0 | @@ -2944,24 +2944,51 @@
%22CREATE%22,%0A
+ %22CREATE2%22,%0A
|
585b6a566199de7bc9644a1455b15c67206b68b3 | Fix check_perms failure from r173095. | tools/perf/perf_tools/smoothness_benchmark.py | tools/perf/perf_tools/smoothness_benchmark.py | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from telemetry import multi_page_benchmark
from telemetry import util
class DidNotScrollException(multi_page_benchmark.MeasurementFailure):
def __init_... | Python | 0.000033 | @@ -159,16 +159,17 @@
E file.%0A
+%0A
from tel
|
12d07a4973b1f1066f3681f2d03aa45013789697 | making gctcexpowebcast url case insensitive | us_ignite/urls.py | us_ignite/urls.py | from django.conf import settings
from django.conf.urls import patterns, include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.views.generic import TemplateView
from django.views.generic import RedirectView
from django.contrib import admin
admin.autodiscover()
# custom 404 and ... | Python | 0.998697 | @@ -2864,16 +2864,20 @@
url(r'%5E
+(?i)
gctcexpo
|
692532c762d18310ad338132a001a557b64f22d3 | Remove useless test | nodeconductor/monitoring/tests/zabbix/test_db_client.py | nodeconductor/monitoring/tests/zabbix/test_db_client.py | from __future__ import unicode_literals
import unittest
from django.db import DatabaseError
from mock import Mock
from nodeconductor.monitoring.zabbix.db_client import ZabbixDBClient
class ZabbixPublicApiTest(unittest.TestCase):
def setUp(self):
self.client = ZabbixDBClient()
def test_get_item_st... | Python | 0.000001 | @@ -293,1009 +293,8 @@
()%0A%0A
- def test_get_item_stats_returns_time_segments(self):%0A self.client.zabbix_api_client.get_host_ids = Mock(return_value=%5B1%5D)%0A start_timestamp = 1415912624L%0A end_timestamp = 1415912630L%0A time_and_value_list = Mock()%0A time_and_value_list.... |
7783146e9bae3c63f5b8292df509f862c33881be | Update admin.py | courriers/admin.py | courriers/admin.py | from django.contrib import admin
from django.conf.urls.defaults import patterns, url
from django.shortcuts import get_object_or_404
from django.utils.translation import ugettext as _
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from .models import Newsletter, NewsletterItem... | Python | 0 | @@ -1796,36 +1796,32 @@
ister(Newsletter
-List
, NewsletterList
@@ -1816,25 +1816,16 @@
wsletter
-ListAdmin
)%0Aadmin.
|
0ab256f12cedfdc0fbec841011d85278bc89b7ce | Fix import problem | css_dict_driver.py | css_dict_driver.py | # -*- coding: utf-8 -*-
# (c) 2012 Sergey Mezentsev
import re
import string
from itertools import chain, product, starmap
def parse_dict_json(raw_dict):
result_dict = {}
valuable = (i for i in raw_dict if 'name' in i and 'values' in i)
def strip(s):
return string.strip(s) if hasattr(string, 'st... | Python | 0.000028 | @@ -3452,25 +3452,13 @@
dict
- = get_css_dict()
+=None
):%0A
@@ -3520,24 +3520,83 @@
iven key%22%22%22%0A
+ if css_dict is None:%0A css_dict = get_css_dict()%0A
cur = cs
|
28b61931ed39a2f19f658354f74dcce7cfc841d3 | fix indent | investment_support_directory/tests/test_helpers.py | investment_support_directory/tests/test_helpers.py | from investment_support_directory import helpers
from django.urls import reverse
from core.tests.helpers import create_response
def test_company_parser_serialize_for_template(retrieve_profile_data):
company = helpers.CompanyParser(retrieve_profile_data)
assert company.serialize_for_template() == {
... | Python | 0.00006 | @@ -3181,17 +3181,16 @@
=english
-&
' +%0A
@@ -3194,16 +3194,17 @@
'
+&
=english
|
5479ccf335d37f0a7377cf69aae1026f37009cc5 | Update database settings to use PostgreSQL. | bluechip/bluechip/settings.py | bluechip/bluechip/settings.py | # Django settings for bluechip project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': '/home... | Python | 0 | @@ -220,23 +220,35 @@
ackends.
-sqlite3
+postgresql_psycopg2
', # Add
@@ -324,61 +324,16 @@
': '
-/home/isura/Devel/bluechip/bluechip/data/data.sqlite3
+bluechip
',
@@ -470,24 +470,29 @@
'USER': '
+isura
',%0A '
|
c3b9d523301e483c54ede4f519cdd4456ed54fe8 | Add message_annotations to Interceptor object | pyon/core/interceptor/interceptor.py | pyon/core/interceptor/interceptor.py |
class Invocation(object):
"""
Container object for parameters of events/messages passed to internal
capability container processes
"""
# Event outbound processing path
PATH_OUT = 'outgoing'
# Event inbound processing path
PATH_IN = 'incoming'
def __init__(self, **kwargs):
... | Python | 0 | @@ -484,16 +484,55 @@
e dict%0A%0A
+ self.message_annotations = %7B%7D%0A%0A
class In
|
8795815dd9e1ad1faf36359dc24659db9eebad1f | Update test_mixins.py,test_performance.py, test_dns.py to reflect changes in mixins.py. Added dns functional test, and trust classes | f5/bigip/sys/test/test_dns.py | f5/bigip/sys/test/test_dns.py | # Copyright 2016 F5 Networks 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 writi... | Python | 0 | @@ -632,34 +632,31 @@
mport Un
-namedResourceMixin
+supportedMethod
%0Afrom f5
@@ -829,37 +829,16 @@
.raises(
-UnnamedResourceMixin.
Unsuppor
@@ -981,32 +981,32 @@
aises(FakeDns):%0A
+
with pytest.
@@ -1016,29 +1016,8 @@
ses(
-UnnamedResourceMixin.
Unsu
|
74b8419d7c2022d4f76a33cdc3ac3106fd9caf2b | Add ping functionality to sjaccess. | utils/sjaccess.py | utils/sjaccess.py | # TEMPORARY, NEVER EVER RELY ON IT.
import sjfs
def unlink(lid=-1, path=None):
if lid != -1 and path is not None:
return #Ambigious parameters
fid = sjfs.get_fid(lid, path)
if lid == -1:
lid = sjfs.get_lid(path)
if fid == 0 and not sjfs.file_exists(fid):
raise sjfs.IOError(sjfs... | Python | 0 | @@ -4068,8 +4068,238 @@
n image%0A
+%0A# Ping an host to check if it's alive%0A# Only one packet is sent with a timeout of 1 second%0Adef ping(host):%0A import popen2%0A ping = popen2.Popen3('ping -c 1 -W 1 %25s' %25 host)%0A status = ping.wait()%0A return (status == 0)%0A%0A
|
aaaaa2d06e6a774c17bbb6b9b16b24178811313e | Test value of second child | falcom/tree/test/test_tree.py | falcom/tree/test/test_tree.py | # Copyright (c) 2017 The Regents of the University of Michigan.
# All Rights Reserved. Licensed according to the terms of the Revised
# BSD License. See LICENSE.txt for details.
from hamcrest import *
import unittest
from ...test.hamcrest import evaluates_to
from .matchers import *
from ..mutable_tree import MutableTr... | Python | 0.000001 | @@ -1160,16 +1160,124 @@
child)%0A%0A
+ def test_second_child_has_value_of_2 (self):%0A assert_that(self.second_child, has_node_value(2))%0A%0A
class Te
|
6d0f424286498f733d8a10d98b5ffbcd60332060 | Fix product-less HR expense lines | hr_expense_line_account/hr_expense_line_account.py | hr_expense_line_account/hr_expense_line_account.py | # -*- encoding: utf-8 -*-
##############################################################################
#····
# OpenERP, Open Source Management Solution
# Copyright (C) 2010 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
#
# This program is free software: you can redistribute it and/or modify
# it... | Python | 0.000002 | @@ -1322,32 +1322,83 @@
ld.%0A '''%0A
+ if not product_id:%0A return None%0A
# Retrie
@@ -2491,46 +2491,11 @@
-if product_id:%0A values
+res
= s
@@ -2633,59 +2633,8 @@
ds:%0A
- this = self.browse(cr, uid, id)%0A
@@ -2652,17 +2652,16 @@
... |
74e37dedd950d341eae7c6c0efa8682bd71dcbd8 | Add missing inventory fetch (#1233) | pokemongo_bot/cell_workers/recycle_items_worker.py | pokemongo_bot/cell_workers/recycle_items_worker.py | from pokemongo_bot import logger
class RecycleItemsWorker(object):
def __init__(self, bot):
self.bot = bot
self.api = bot.api
self.config = bot.config
self.item_list = bot.item_list
def work(self):
item_count_dict = self.bot.item_inventory_count('all')
for it... | Python | 0 | @@ -235,16 +235,57 @@
(self):%0A
+ self.bot.latest_inventory = None%0A
|
14b1648b96064363a833c496da38e62ffc9dbbcb | Revert splitString to former value | external_tools/src/main/python/images/common.py | external_tools/src/main/python/images/common.py | #!/usr/bin/python
#splitString='images/clean/impc/'
splitString='images/holding_area/impc/'
| Python | 0.000001 | @@ -11,17 +11,16 @@
/python%0A
-#
splitStr
@@ -48,44 +48,4 @@
c/'%0A
-splitString='images/holding_area/impc/'%0A
|
d6c9e40341b700360164b4f8673dc991e5fc61b5 | Update extension | docs/doc_extensions.py | docs/doc_extensions.py | """
Read the Docs documentation extensions for Sphinx
Adds the following roles:
djangosetting
Output an inline literal of the corresponding setting value. Useful for
keeping documentation up to date without editing on settings changes.
buildpyversions
Output a comma separated list of the supported python... | Python | 0.000001 | @@ -504,98 +504,8 @@
ls%0A%0A
-from readthedocs.config.config import (%0A DOCKER_DEFAULT_IMAGE, DOCKER_IMAGE_SETTINGS)%0A%0A
%0Adef
@@ -1050,16 +1050,25 @@
.format(
+settings.
DOCKER_D
@@ -1108,16 +1108,25 @@
tings =
+settings.
DOCKER_I
|
3cb2d5341d6b7e5b1de9d2bb90ebe4188670ad15 | Fix incorrect checksum value for adios2 tarball (#6054) | var/spack/repos/builtin/packages/adios2/package.py | var/spack/repos/builtin/packages/adios2/package.py | ##############################################################################
# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | Python | 0.000001 | @@ -1625,40 +1625,40 @@
', '
-019115e5c6ac28bd0f4201f590f5d994
+da39655b51745d2c5f3f1e46c5abc4d7
')%0A%0A
|
87539739c1dd9484ffbadfea2865ac67da96d9ed | Make logging verbose in this particular loader | database_import.py | database_import.py | import argparse
import csv
import logging
import tempfile
import boto3
import botocore
from sqlalchemy.exc import IntegrityError
from openledger.models import db, Image
logging.basicConfig()
log = logging.getLogger(__name__)
def import_from_open_images(fh):
fields = ('ImageID', 'Subset', 'OriginalURL', 'Origina... | Python | 0.000006 | @@ -169,30 +169,43 @@
ge%0A%0A
-logging.basicConfig
+console = logging.StreamHandler
()%0A
+%0A
log
@@ -233,16 +233,68 @@
_name__)
+%0Alog.addHandler(console)%0Alog.setLevel(logging.DEBUG)
%0A%0Adef im
@@ -456,16 +456,80 @@
Title')%0A
+ log.info(%22Creating database schema if it doesnt' exist...%22)%0A
d... |
62ee08e83c4644a1cfc2a95c352cd55d0103b607 | Add concat and join methods to FormattedText | bot/action/util/textformat.py | bot/action/util/textformat.py | from bot.api.domain import Message
class FormattedText:
def __init__(self, mode="HTML"):
self.formatter = TextFormatterFactory.get_for_mode(mode)
self.mode = mode
self.text = ""
def normal(self, text):
self.text += self._escaped(text)
return self
def bold(self, te... | Python | 0 | @@ -882,32 +882,625 @@
return self%0A%0A
+ def concat(self, formatted_text):%0A %22%22%22:type formatted_text: FormattedText%22%22%22%0A assert self.mode == formatted_text.mode, %22Cannot concat text with different modes%22%0A self.text += formatted_text.text%0A return self%0A%0A d... |
9fe7920ac730aa1bafc9e374ae74b7cea46cad8d | add s3.amazonaws.com/ to base urls | app_config.py | app_config.py | #!/usr/bin/env python
"""
Project-wide application configuration.
"""
import os
from authomatic.providers import oauth2
from authomatic import Authomatic
"""
NAMES
"""
# Project name in urls
# Use dashes, not underscores!
PROJECT_SLUG = 'dailygraphics'
# Slug for assets dir on S3
ASSETS_SLUG = PROJECT_SLUG
# The ... | Python | 0.000001 | @@ -2166,32 +2166,49 @@
E_URL = 'http://
+s3.amazonaws.com/
%25s/%25s' %25 (S3_BUC
@@ -2452,16 +2452,33 @@
'http://
+s3.amazonaws.com/
%25s/%25s' %25
|
c81f5f85c30d8ca57b42d82829c36915e7aca605 | Allow anyone to be winners | src/bingo_server/api/views.py | src/bingo_server/api/views.py | from rest_framework.mixins import CreateModelMixin, ListModelMixin, RetrieveModelMixin
from rest_framework.viewsets import GenericViewSet
from rest_framework.permissions import AllowAny
from ..models import Game, GameType, Place, PrimaryCategory, SecondaryCategory, Tile, Winner
from .serializers import GameSerializer,... | Python | 0 | @@ -130,16 +130,30 @@
cViewSet
+, ModelViewSet
%0Afrom re
@@ -1759,58 +1759,20 @@
Set(
-GenericViewSet, ListModelMixin, RetrieveModelMixin
+ModelViewSet
):%0A
|
aa23d5194ce7cdaf4008ac6f89a66bc814836b2e | Handle collections which don't have link fields | explorer/api.py | explorer/api.py | import csv
from flask import Flask, render_template, request, Response
from StringIO import StringIO
from .document import Document
from .scope import Scope
from .search import fetch_documents, fetch_lots_of_documents
app = Flask(__name__)
def title_or_slug(item):
if isinstance(item, basestring):
return... | Python | 0 | @@ -2253,16 +2253,64 @@
in(c
-%5B
+.get(
'link'
-%5D
+) or ('/government/collections/' + c%5B'slug'%5D)
for
|
d492f17edc1e7d464242942f2c786337d8687304 | Update binary-tree-maximum-path-sum.py | Python/binary-tree-maximum-path-sum.py | Python/binary-tree-maximum-path-sum.py | # Time: O(n)
# Space: O(logn)
#
# Given a binary tree, find the maximum path sum.
#
# The path may start and end at any node in the tree.
#
# For example:
# Given the below binary tree,
#
# 1
# / \
# 2 3
# Return 6.
#
# Definition for a binary tree node
class TreeNode:
def __init__(self, x)... | Python | 0.000004 | @@ -22,13 +22,38 @@
: O(
-logn)
+h), h is height of binary tree
%0A#%0A#
|
dcbfd05707085b21d70f15ad0d0c1d9a12016d13 | Optimize the name of the variable in the function | dragonflow/tests/common/utils.py | dragonflow/tests/common/utils.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
# d... | Python | 0.999999 | @@ -4634,24 +4634,25 @@
for inte
+r
face in inte
@@ -4683,24 +4683,25 @@
if len(inte
+r
face) == 0:%0A
@@ -4742,24 +4742,25 @@
fs = inte
+r
face.split(%22
|
b1bc26662ed68cf7f6a0883996968ae98f182fce | Add version information for the methods defined in CompletableFuture | flink-python/pyflink/common/completable_future.py | flink-python/pyflink/common/completable_future.py | ################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this... | Python | 0 | @@ -1771,16 +1771,50 @@
ancelled
+%0A%0A .. versionadded:: 1.11.0
%0A
@@ -2009,16 +2009,50 @@
ormally.
+%0A%0A .. versionadded:: 1.11.0
%0A
@@ -2248,16 +2248,50 @@
llation.
+%0A%0A .. versionadded:: 1.11.0
%0A
@@ -2500,16 +2500,50 @@
lt value
+%0A%0A .. versionadd... |
d0e6cc8ee98939ce22fbc54c771fe3dee68ea1bc | fix date format | export_utils.py | export_utils.py | from models import *
import os
import glob
import csv
import openpyxl
import math
def check_none(element):
return '' if element is None else str(element)
def get_day(session):
modulo = session % 12
if session == -1:
return "TBD"
elif modulo >= 0 and modulo <= 3:
return str(Parametrizat... | Python | 0.999889 | @@ -14,16 +14,46 @@
mport *%0A
+from datetime import datetime%0A
import o
@@ -364,16 +364,37 @@
0%5D.day_1
+.strftime('%25d-%25m-%25Y')
)%0A el
@@ -477,16 +477,37 @@
0%5D.day_2
+.strftime('%25d-%25m-%25Y')
)%0A el
@@ -591,16 +591,37 @@
0%5D.day_3
+.strftime('%25d-%25m-%25Y')
)%0A%0Adef g
|
d35db8930768ae08b13da5daf79b8988e0db75cb | test for null values before dropping null Date entries on Archive creation | bigbang/archive.py | bigbang/archive.py | import datetime
import mailman
import mailbox
import numpy as np
from bigbang.thread import Thread
from bigbang.thread import Node
import bigbang.process as process
import pandas as pd
import pytz
import utils
def load(path):
data = pd.read_csv(path)
return Archive(data)
class Archive(object):
"""
... | Python | 0 | @@ -1822,16 +1822,69 @@
n here.%0A
+ if not self.data%5B'Date'%5D.isnull().any():%0A
|
8087f6162132e59d5608ac3d9487ff29a5a07712 | Change to extract method. | apps/scrub.py | apps/scrub.py | """
Create item database.
"""
import logging
import os
import re
import pydarkstar.logutils
import pydarkstar.scrubbing.ffxiah
import pydarkstar.itemlist
import pydarkstar.options
import pydarkstar.common
class Options(pydarkstar.options.Options):
"""
Reads options from config file, then from command line.
... | Python | 0 | @@ -4498,25 +4498,24 @@
n data:%0A
-%0A
# single
@@ -4510,903 +4510,119 @@
-# singles%0A try:%0A price01, sell01 = data%5Bitemid%5D%5B'median'%5D, True%0A%0A # do not sell items without a price%0A if price01 %3C= 0:%0A price01, sell01 = None, Fals... |
8292ab1a37d55f535d4a6b8bfa2573d6ab8e113b | fix lib filenames using OS X | pgi/clib/_utils.py | pgi/clib/_utils.py | # Copyright 2012,2013 Christoph Reiter
#
# 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 (at your option) any later version.
import os
import sys
... | Python | 0.000351 | @@ -874,16 +874,225 @@
,%0A %7D%0A
+elif os.uname()%5B0%5D == %22Darwin%22:%0A _so_mapping = %7B%0A %22glib-2.0%22: %22libglib-2.0.0.dylib%22,%0A %22gobject-2.0%22: %22libgobject-2.0.0.dylib%22,%0A %22girepository-1.0%22: %22libgirepository-1.0.1.dylib%22,%0A %7D%0A
else:%0A
@@ -1313,1... |
8ca26efbb9224c98c0d4f4e5300491f395c2f51b | use jcommon.*_langdb instead of self | ext/joselang.py | ext/joselang.py | #!/usr/bin/env python3
import discord
import asyncio
import sys
sys.path.append("..")
import jauxiliar as jaux
import joseerror as je
import josecommon as jcommon
class JoseLanguage(jaux.Auxiliar):
def __init__(self, cl):
jaux.Auxiliar.__init__(self, cl)
self.LANGLIST = [
'pt', 'en'
... | Python | 0 | @@ -441,20 +441,23 @@
= await
-self
+jcommon
.load_la
@@ -537,28 +537,31 @@
tus = await
-self
+jcommon
.save_langdb
|
179217b02eeab38e83461370ca64d893f90c917d | fix typo(3) | ext/josemath.py | ext/josemath.py | #!/usr/bin/env python3
import sys
sys.path.append("..")
import jauxiliar as jaux
import joseconfig as jconfig
import aiohttp
import json
import wolframalpha
import pyowm
import traceback
class JoseMath(jaux.Auxiliar):
def __init__(self, cl):
jaux.Auxiliar.__init__(self, cl)
self.wac = wolframalph... | Python | 0.009065 | @@ -1872,16 +1872,17 @@
m, text)
+)
%0A
|
8afc57c063a567d030a66ad7f1ff4e75e10585f4 | add the check into md_run | flare/md_run.py | flare/md_run.py | from flare.gp import GaussianProcess
from flare.struc import Structure
from flare.env import AtomicEnvironment
import numpy as np
import time
import datetime
import concurrent.futures
from flare import md
from flare.output import Output
class MD:
"""Generates NVE dynamics from a GP model."""
def __init__(sel... | Python | 0 | @@ -1698,16 +1698,52 @@
l p. 70%0A
+ self.gp.check_L_alpha()%0A
|
3716ad595062220725d28b0ba83c137895e71547 | Fix query-in-a-loop in contribution list | indico/modules/events/contributions/controllers.py | indico/modules/events/contributions/controllers.py | # This file is part of Indico.
# Copyright (C) 2002 - 2016 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.00708 | @@ -794,16 +794,54 @@
request
+%0Afrom sqlalchemy.orm import joinedload
%0A%0Afrom i
@@ -1497,24 +1497,128 @@
rgs(event):%0A
+ timetable_entry_strategy = joinedload('timetable_entry')%0A timetable_entry_strategy.lazyload('*')%0A
contribs
@@ -1616,24 +1616,25 @@
contribs =
+(
event.contri
@@ -1636,24 ... |
011579ec11b97a1d1752bf59c60694019838c309 | fix existance call to xml_config | sparc/db/zodb/database.py | sparc/db/zodb/database.py | from ZODB import config
from zope.component import createObject
from zope.component import getUtility
from zope.component.factory import Factory
from zope.interface import alsoProvides
from zope.interface import implements
from interfaces import IZODBDatabase
from zope.component._api import createObject
from sparc.conf... | Python | 0.000004 | @@ -1075,16 +1075,35 @@
w__(self
+, xml_config = None
):%0A
@@ -1108,32 +1108,86 @@
url = None%0A
+ if not xml_config or not len(xml_config):%0A
xml_conf
@@ -1769,17 +1769,16 @@
ap%5Burl%5D%0A
-%0A
zodbFrom
|
30c627c97b14eaecbf4f61a2d3ed01dd5ea1282d | Set version 2.5.0 | phonopy/version.py | phonopy/version.py | # Copyright (C) 2013 Atsushi Togo
# All rights reserved.
#
# This file is part of phonopy.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must retain the above copyright
# notic... | Python | 0.000004 | @@ -1596,9 +1596,9 @@
%222.
-4.3
+5.0
%22%0A
|
29f10624bd398442ab3530215e0a73b362e0559d | Change url+checksums for libpng to official sourceforge archives (#23767) | var/spack/repos/builtin/packages/libpng/package.py | var/spack/repos/builtin/packages/libpng/package.py | # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Libpng(AutotoolsPackage):
"""libpng is the official PNG reference library."""
homepag... | Python | 0 | @@ -384,43 +384,50 @@
s://
-github.com/glennrp/libpng/archive/v
+prdownloads.sourceforge.net/libpng/libpng-
1.6.
@@ -433,17 +433,17 @@
.37.tar.
-g
+x
z%22%0A g
@@ -522,72 +522,72 @@
56='
-ca74a0dace179a8422187671aee97dd3892b53e168627145271cad5b5ac81307
+505e70834d35383537b6491e7ae8641f1a4bed1876dbfe361201fc8086... |
218e76eab9ffdb3ce1cd0d58e6e8a02bab592251 | Add moving wall to materials | gui/materials.py | gui/materials.py | import numpy as np
materials = {
"default": {"mu": 1, "rho": 1, "eta": 1, "C": 1, "sinphi": 1},
"magma": {"mu": 8 * 10**10, "rho": 2800, "eta": 10**16, "C": 10**7, "sinphi": 45},
"light magma": {"mu": 8 * 10**10, "rho": 2600, "eta": 10**13, "C": 10**7, "sinphi": 45},
"heavy magma": {"mu": 8 * 10**10, "... | Python | 0.000001 | @@ -766,10 +766,95 @@
i%22: 0%7D,%0A
+ %22mobile wall%22: %7B%22mu%22: 10**16, %22rho%22: 2520, %22eta%22: 10**12, %22C%22: 10, %22sinphi%22: 0%7D,%0A
%7D%0A
|
de90fdeeec22cae450e95129bda59b28f6a4c379 | Stop using `unittest.TestCase` | tests/cupy_tests/core_tests/test_ndarray_ufunc.py | tests/cupy_tests/core_tests/test_ndarray_ufunc.py | import unittest
import numpy
import pytest
import cupy
from cupy import testing
@testing.gpu
class TestArrayUfunc(unittest.TestCase):
@testing.for_all_dtypes()
def test_unary_op(self, dtype):
a = cupy.array(numpy.array([0, 1, 2]), dtype=dtype)
outa = numpy.sin(a)
# numpy operation p... | Python | 0.000001 | @@ -1,21 +1,4 @@
-import unittest%0A%0A
impo
@@ -97,27 +97,8 @@
func
-(unittest.TestCase)
:%0A%0A
@@ -1887,36 +1887,32 @@
with
-self.assertR
+pytest.r
aises(TypeEr
@@ -2007,36 +2007,32 @@
with
-self.assertR
+pytest.r
aises(TypeEr
@@ -2110,36 +2110,32 @@
with
-self.assertR
+pytest.r
ais... |
8953ca2ae374e980ac8766b5630f05824d1917af | fix mriqc_clf error | mriqc/bin/mriqc_clf.py | mriqc/bin/mriqc_clf.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: oesteban
# @Date: 2015-11-19 16:44:27
"""
mriqc_fit command line interface definition
"""
from __future__ import absolute_import, division, print_function, unicode_literals
from sys import version_info
import warnings
PY3 = version_info[0] > 2
from sklearn.m... | Python | 0.000003 | @@ -3577,24 +3577,47 @@
lassifier)%0A%0A
+ clf_loaded = False%0A
if opts.
@@ -5617,16 +5617,20 @@
if
+not
clf_load
|
fb6a2b5cabe284ecac5088c94fb2dba36f4a7e2e | edit prefix in Makefile for macOS (#10606) | var/spack/repos/builtin/packages/xxhash/package.py | var/spack/repos/builtin/packages/xxhash/package.py | # Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Xxhash(MakefilePackage):
"""xxHash is an Extremely fast Hash algorithm, running at RAM spe... | Python | 0 | @@ -1163,23 +1163,20 @@
def
-install
+edit
(self, s
@@ -1205,45 +1205,80 @@
make
-('prefix=%7B0%7D'.format(prefix), 'install'
+file = FileFilter(%22Makefile%22)%0A makefile.filter('/usr/local', prefix
)%0A
|
877b7de300e7290f555578fab9032456a135a51f | Tag new release: 3.1.17 | floo/version.py | floo/version.py | PLUGIN_VERSION = '3.1.16'
# The line above is auto-generated by tag_release.py. Do not change it manually.
try:
from .common import shared as G
assert G
except ImportError:
from common import shared as G
G.__VERSION__ = '0.11'
G.__PLUGIN_VERSION__ = PLUGIN_VERSION
| Python | 0 | @@ -20,9 +20,9 @@
.1.1
-6
+7
'%0A#
|
5f9cdd3df91a6547d5b776c7f4ae8f23c53dfc48 | remove dead line | foreman/data_refinery_foreman/surveyor/utils.py | foreman/data_refinery_foreman/surveyor/utils.py | import collections
import requests
from requests.adapters import HTTPAdapter
from requests.packages.urllib3.util.retry import Retry
def requests_retry_session(
retries=3,
backoff_factor=0.3,
status_forcelist=(500, 502, 504),
session=None,
):
"""
Exponential back off for requests.
via http... | Python | 0.020974 | @@ -1318,101 +1318,8 @@
ry:%0A
- # resp = requests.get(%22http://www.ncbi.nlm.nih.gov/pubmed/%22 + str(pmid), timeout=20)%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.