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 |
|---|---|---|---|---|---|---|---|
779dc154b799a6660f7f60ef50c09fc445329999 | Update version to 1.0b3 | numpy/version.py | numpy/version.py | version='1.0b2'
release=False
if not release:
import os
svn_version_file = os.path.join(os.path.dirname(__file__),
'core','__svn_version__.py')
if os.path.isfile(svn_version_file):
import imp
svn = imp.load_module('numpy.core.__svn_version__',
... | Python | 0 | @@ -10,9 +10,9 @@
1.0b
-2
+3
'%0Are
|
2bbc289ce21365e18b04cb865328c494b75075fd | Update head revision to 0.9.9 | numpy/version.py | numpy/version.py | version='0.9.7'
import os
svn_version_file = os.path.join(os.path.dirname(__file__),
'core','__svn_version__.py')
if os.path.isfile(svn_version_file):
import imp
svn = imp.load_module('numpy.core.__svn_version__',
open(svn_version_file),
... | Python | 0 | @@ -10,9 +10,9 @@
0.9.
-7
+9
'%0A%0Ai
|
d4cf4de3257719cf703c580a3d8d6f50629d2a22 | remove 1011 from valid codes (for now .. until INTERNAL_SERVER_ERROR is official) | lib/python/autobahn/case/case7_7_X.py | lib/python/autobahn/case/case7_7_X.py | ###############################################################################
##
## Copyright 2011 Tavendo GmbH
##
## 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... | Python | 0 | @@ -797,53 +797,30 @@
of
-(payload length, message count, case timeout)
+some valid close codes
%0Ates
@@ -869,14 +869,19 @@
010,
-1011,3
+3000,3999,4
000,
@@ -1015,22 +1015,16 @@
OK%5D = %5B%5D
-
%0A self
@@ -1396,19 +1396,25 @@
d%22 %25 i,%0A
-%09%09%09
+
(object,
@@ -1423,19 +1423,25 @@
a... |
547691a1fe7d0618047c311341acd35c526827ac | Update to version v0.12.1 | nvd3/__init__.py | nvd3/__init__.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Python-nvd3 is a Python wrapper for NVD3 graph library.
NVD3 is an attempt to build re-usable charts and chart components
for d3.js without taking away the power that d3.js gives you.
Project location : https://github.com/areski/python-nvd3
"""
__version__ = '0.12.0' # ... | Python | 0 | @@ -307,17 +307,17 @@
= '0.12.
-0
+1
' # edi
|
f3bce395882c9ecb7fa98d762ea3af80b25f7a33 | Remove debug message from hal_sourceview.py | lib/python/gladevcp/hal_sourceview.py | lib/python/gladevcp/hal_sourceview.py | #!/usr/bin/env python
# vim: sts=4 sw=4 et
# GladeVcp actions
#
# Copyright (c) 2011 Pavel Shramov <shramov@mexmat.net>
#
# 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 2 of the... | Python | 0.000001 | @@ -1753,16 +1753,152 @@
'#f44'))
+%0A # b = self.buf%0A # print %22Debug: EMC_SourceView::__init__() buf(%25s)%22 %25 (b.get_text(b.get_start_iter(), b.get_end_iter()))
%0A%0A de
@@ -3514,80 +3514,8 @@
w):%0A
- print %22Debug: EMC_Action_Save::__init__() %25s%22 %25 (self.textview)%0A
... |
7bf68cbafe16a95342e2c74c28f6b2b0daad65a8 | Update 0.2.8 | keras_cv/__init__.py | keras_cv/__init__.py | # Copyright 2022 The KerasCV 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | Python | 0.000001 | @@ -965,9 +965,6 @@
.2.8
-dev
%22%0A
|
a992150d5d84076da750e00189488c0f39379e36 | Update startService to new settings | opennsa/setup.py | opennsa/setup.py | """
High-level functionality for creating clients and services in OpenNSA.
"""
from twisted.python import log
from twisted.internet import defer
from twisted.application import internet, service as twistedservice
from opennsa import config, logging, registry, nsiservice, viewresource
from opennsa.topology import gole... | Python | 0 | @@ -4398,20 +4398,16 @@
%5Bconfig.
-HOST
KEY%5D, vc
@@ -4418,16 +4418,19 @@
fig.
-HOST
CERT
+IFICATE
%5D, v
@@ -4442,16 +4442,23 @@
fig.CERT
+IFICATE
_DIR%5D, v
@@ -4472,16 +4472,21 @@
g.VERIFY
+_CERT
%5D)%0A%0A
|
cb32d0900fd3bd3114e0c2c33220a59a97027090 | removed whitespace | openquake/xml.py | openquake/xml.py | # -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
"""Constants and helper functions for XML processing,
including namespaces, and namespace maps."""
NRML_NS = 'http://openquake.org/xmlns/nrml/0.1'
GML_NS = 'http://www.opengis.net/gml/profile/sfgml/1.0'
GML = "{%s}" % GML_NS
NRML = "{%s}" % NRML_NS
NS... | Python | 0.999996 | @@ -320,17 +320,16 @@
SMAP = %7B
-
None: NR
@@ -340,17 +340,16 @@
S, %22gml%22
-
: GML_NS
|
e15eeb05f93dd4745d4a14422c5e15ffc3cc3119 | remove demo url | openstax/urls.py | openstax/urls.py | from django.conf.urls import include, url
from django.conf.urls.static import static
from django.conf import settings
from django.contrib import admin
from wagtail.wagtailadmin import urls as wagtailadmin_urls
from wagtail.wagtaildocs import urls as wagtaildocs_urls
from wagtail.wagtailcore import urls as wagtail_urls... | Python | 0 | @@ -382,32 +382,8 @@
ls%0A%0A
-from demo import views%0A%0A
%0Aurl
@@ -556,59 +556,8 @@
),%0A%0A
- url(r'search/$', views.search, name='search'),%0A
@@ -1124,12 +1124,13 @@
+ '
-demo
+pages
/ima
|
7a49e7c4344f7d78a84644ade5ca1c3251065f4a | Use `glob.glob` instead of `os.walk` | salt/grains/ssds.py | salt/grains/ssds.py | # -*- coding: utf-8 -*-
'''
Detect SSDs
'''
import os
import salt.utils
import logging
log = logging.getLogger(__name__)
def ssds():
'''
Return list of disk devices that are SSD (non-rotational)
'''
SSDs = []
for subdir, dirs, files in os.walk('/sys/block'):
for dir in dirs:
... | Python | 0.000001 | @@ -45,17 +45,41 @@
'''%0A
-i
+%0A# I
mport
-os
+python libs%0Aimport glob
%0Aimp
@@ -144,16 +144,17 @@
ame__)%0A%0A
+%0A
def ssds
@@ -239,16 +239,22 @@
'''%0A
-%0A
-SSD
+ssd_device
s =
@@ -268,254 +268,152 @@
for
-subdir, dirs, files in os.walk('/sys/block'):%0A for dir in dirs:%0A f... |
b71780294c2cbf4a1f1a33939c7dae268d97faa2 | Improve error message | salt/modules/npm.py | salt/modules/npm.py | # -*- coding: utf-8 -*-
'''
Manage and query NPM packages.
'''
# Import python libs
import json
import logging
import distutils.version # pylint: disable=import-error,no-name-in-module
# Import salt libs
import salt.utils
from salt.exceptions import CommandExecutionError
log = logging.getLogger(__name__)
# Functi... | Python | 0.000015 | @@ -528,16 +528,22 @@
e%0A%0A%0Adef
+_check
_valid_v
@@ -548,24 +548,24 @@
_version():%0A
-
'''%0A
@@ -895,30 +895,187 @@
-member%0A
-return
+if npm_version %3C valid_version:%0A raise CommandExecutionError(%0A '%5C'npm%5C' is not recent enough(%7B0%7D %3C %7B1%7D). Please Upgrade.'.... |
63a2970360e8c540feecc2200687d7948105b7d9 | fix async subscribe | kurento/transport.py | kurento/transport.py | import aiohttp
import asyncio
import json
import logging
from uuid import uuid4
from asyncio.base_events import BaseEventLoop
logger = logging.getLogger(__name__)
class KurentoTransportException(Exception):
def __init__(self, message, response=None):
print(message, response)
super(KurentoTranspor... | Python | 0.000017 | @@ -3839,16 +3839,38 @@
+asyncio.ensure_future(
fn(resp%5B
@@ -3888,16 +3888,17 @@
value%22%5D)
+)
%0A
|
eefcfc719cad3434752cbb340c8b157a19eb6f2a | use a copy so roster_defaults doesn't mangle | salt/roster/flat.py | salt/roster/flat.py | # -*- coding: utf-8 -*-
'''
Read in the roster from a flat file using the renderer system
'''
from __future__ import absolute_import
# Import python libs
import fnmatch
import re
import copy
# Try to import range from https://github.com/ytoolshed/range
HAS_RANGE = False
try:
import seco.range
HAS_RANGE = True... | Python | 0.000023 | @@ -2114,33 +2114,40 @@
s%5Bminion%5D = data
+.copy()
%0A
-
return m
@@ -2453,32 +2453,39 @@
s%5Bminion%5D = data
+.copy()
%0A return
@@ -2870,32 +2870,39 @@
s%5Bminion%5D = data
+.copy()
%0A return
@@ -3434,32 +3434,39 @@
s%5Bminion%5D = data
+.copy()
%0A return
@@ -3931,32 +39... |
f11a21ae5dd25310ac8165759ceb532de1365f64 | update default config options | saltcloud/config.py | saltcloud/config.py | '''
Manage configuration files in salt-cloud
'''
# Import python libs
import os
# Import salt libs
import salt.config
def cloud_config(path):
'''
Read in the salt cloud config and return the dict
'''
opts = {# Provider defaults
'provider': '',
'location': '',
# Us... | Python | 0.000001 | @@ -353,17 +353,17 @@
ACKSPACE
-_
+.
key': ''
@@ -386,17 +386,17 @@
ACKSPACE
-_
+.
user': '
@@ -417,17 +417,17 @@
'LINODE
-_
+.
apikey':
@@ -451,40 +451,106 @@
'EC2
-_key': '',%0A 'EC2_user
+.id': '',%0A 'EC2.key': '',%0A 'EC2.keyname': '',%0A 'EC2.securitygroup
': '... |
cdd57a8706ca615af85d298ba3a99c80f1e9dba0 | Update mono.py to get 2.10.5 | packages/mono.py | packages/mono.py | class MonoPackage (Package):
def __init__ (self):
Package.__init__ (self, 'mono', '2.10.4',
sources = [
'http://download.mono-project.com/sources/%{name}/%{name}-%{version}.tar.bz2',
'patches/mono-runtime-relocation.patch'
],
configure_flags = [
'--with-jit=yes',
'--with-ikvm=no',
'--wit... | Python | 0 | @@ -84,17 +84,17 @@
, '2.10.
-4
+5
',%0A%09%09%09so
|
0c7b8d817b9c7ef30c8d00598b47a86d55a5ca47 | Use 64 bit floats in SesansTransform | sasmodels/sesans.py | sasmodels/sesans.py | """
Conversion of scattering cross section from SANS (I(q), or rather, ds/dO) in absolute
units (cm-1)into SESANS correlation function G using a Hankel transformation, then converting
the SESANS correlation function into polarisation from the SESANS experiment
Everything is in units of metres except specified otherwis... | Python | 0 | @@ -2045,102 +2045,8 @@
one%0A
- # Force float32 arrays, otherwise run into memory problems on%0A # some machines%0A
@@ -2093,18 +2093,18 @@
e='float
-32
+64
')%0A%0A
@@ -2572,34 +2572,34 @@
dtype=np.float
-32
+64
))%0A q = n
@@ -2908,34 +2908,34 @@
, dtype=np.float
-32
+64
)%0A ... |
89d8ee0b91c9fd579dcf965e9e07f18954625c72 | Add support for manual journals | xero/api.py | xero/api.py | from .manager import Manager
class Xero(object):
"""An ORM-like interface to the Xero API"""
OBJECT_LIST = (u'Contacts', u'Accounts', u'CreditNotes',
u'Currencies', u'Invoices', u'Items', u'Organisation',
u'Payments', u'TaxRates', u'TrackingCategories')
def __init__... | Python | 0 | @@ -294,16 +294,35 @@
egories'
+, u'ManualJournals'
)%0A%0A d
|
68a9f9a9221e1c7e0c90ef80fcd469da742613c0 | remove unused import | libcloud/compute/drivers/dreamhost.py | libcloud/compute/drivers/dreamhost.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 file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | Python | 0 | @@ -877,49 +877,8 @@
py%0A%0A
-from libcloud.pricing import get_pricing%0A
from
|
98c011af0ee3413f5c6d1cfdbfdd8a9d8ed59b86 | Revise to sum_deq & revise comment | lc0067_add_binary.py | lc0067_add_binary.py | """Leetcode 67. Add Binary
Easy
URL: https://leetcode.com/problems/add-binary/
Given two binary strings, return their sum (also a binary string).
The input strings are both non-empty and contains only characters 1 or 0.
Example 1:
Input: a = "11", b = "1"
Output: "100"
Example 2:
Input: a = "1010", b = "1011"
Outp... | Python | 0 | @@ -860,12 +860,14 @@
ual
-size
+length
by
@@ -1016,19 +1016,19 @@
sum_
-arr
+deq
= deque
@@ -1292,19 +1292,19 @@
sum_
-arr
+deq
.appendl
@@ -1377,19 +1377,19 @@
ist(sum_
-arr
+deq
))%0A%0A%0Adef
|
984fd25c00577d744794049620408fa67aa1c4bc | Add check for and message for multiple follows | legislators/views.py | legislators/views.py | import json
import requests
from django.shortcuts import render, redirect
from opencivicdata.models import Person
from tot import settings
from preferences.models import PersonFollow
def find_legislator(request):
senator = request.session.get('sen_from_address')
representative = request.session.get('rep_fro... | Python | 0 | @@ -2113,16 +2113,234 @@
'POST':%0A
+ try:%0A PersonFollow.objects.get(user=request.user, person_id=legislator_id)%0A message = 'You are already following %7B%7D.'.format(legislator.name)%0A except PersonFollow.DoesNotExist:%0A
@@ -2403,32 +2403,36 @@
=legislator_id)%... |
7298ba5395ea870eac3894c0d09d75ff31cb1e20 | Improve parsing script | parse_poldnev.py | parse_poldnev.py | """
Script that parsing poldnev.ru, checking students factors
using Emotion API and creating 'visits.csv'.
@author: Seva Zhidkov
@license: MIT
"""
import os
import time
import csv
import json
import re
import requests
import lxml.html
POLDNEV_BASE_URL = 'http://poldnev.ru/lksh/id{}'
STUDENT_IMAGE_REGEX = re.compile(... | Python | 0.000181 | @@ -280,16 +280,39 @@
h/id%7B%7D'%0A
+LAST_STUDENT_ID = 3024%0A
STUDENT_
@@ -575,16 +575,18 @@
.sleep(2
+.5
)%0A re
@@ -810,16 +810,54 @@
e.text)%0A
+ if not faces:%0A return None%0A
# If
@@ -1168,17 +1168,17 @@
.csv', '
-w
+a
')%0Avisit
@@ -1252,20 +1252,45 @@
1%0Awhile
-True
+student_id %3C... |
3ac16f20bbb4eef6607111ac5777f7db21095412 | Add functiion for emotion recognizing | parse_poldnev.py | parse_poldnev.py | """
Script that parsing poldnev.ru, checking students factors
using Emotion API and creating 'visits.csv'.
@author: Seva Zhidkov
@license: MIT
"""
import csv
import json
import re
import requests
import lxml.html
def detect_emotions(photo_url):
pass
POLDNEV_BASE_URL = 'http://poldnev.ru/lksh/id{}'
STUDENT_IMA... | Python | 0.000139 | @@ -142,16 +142,38 @@
IT%0A%22%22%22%0A%0A
+import os%0Aimport time%0A
import c
@@ -235,52 +235,8 @@
ml%0A%0A
-%0Adef detect_emotions(photo_url):%0A pass%0A%0A%0A
POLD
@@ -364,16 +364,672 @@
.*_XXL')
+%0AOCP_API_KEY = os.environ%5B'OCP_API_KEY'%5D%0AEMOTION_API_URL = 'https://api.projectoxford.ai/emotion/v1.0/r... |
f048f9453c6dcc3689acf1692ab7ee2329d40b1a | fix options filtering and list type checking | pdfkit/pdfkit.py | pdfkit/pdfkit.py | # -*- coding: utf-8 -*-
import re
import subprocess
import sys
from source import Source
from configuration import Configuration
from itertools import chain
class PDFKit(object):
class NoExecutableError(Exception):
"""Wkhtmltopdf executable not found"""
def __str__(self):
#TODO insert... | Python | 0 | @@ -1791,19 +1791,11 @@
ter(
-self._isTru
+Non
e, a
@@ -2161,16 +2161,23 @@
f.source
+.source
, str):%0A
@@ -5479,113 +5479,8 @@
ce%0A%0A
- def _isTrue(self, x):%0A if x is None:%0A return 0%0A else:%0A return 1%0A%0A
|
f9dd3a7ef223f4ad444dc0334b2bc58d085bd986 | Add site logo config | peanut/config.py | peanut/config.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import codecs
from os.path import join, isdir, isfile, curdir
import peanut
DEFAULT_CONFIG = {
'site': {
'title': 'Peanut Demo',
'url': 'http://peanut.zorro.im',
'description': 'A simple static blog generator',
},
'author': ... | Python | 0 | @@ -194,16 +194,53 @@
Demo',%0A
+ 'logo': 'path_to_your_logo',%0A
|
1ab5d60d6e49226f7dfd17416993b9460e5b688f | Add basic view for index page with no context | planner/views.py | planner/views.py | from django.shortcuts import render
# Create your views here.
| Python | 0 | @@ -34,30 +34,65 @@
er%0A%0A
-# Create your views here.
+%0Adef index(request):%0A return render(request, 'base.html')
%0A
|
511c7c858d6cd99b66b0cd7fc187dc73034bb3fa | Check for existence of isatty on stdout before calling it | lib/ansible/color.py | lib/ansible/color.py | # (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any lat... | Python | 0 | @@ -821,16 +821,53 @@
lif not
+hasattr(sys.stdout, 'isatty') or not
sys.stdo
|
04c4a6058bcb72ec71ce9d73666e7be48367d8a7 | Update memes.py | plugins/memes.py | plugins/memes.py | import asyncio
import permissions
import commands
from PIL import ImageFont, Image, ImageDraw
client = None
def count_pixels(image, color):
count = 0
for x in range(image.width):
for y in range(image.height):
if image.getpixel((x,y)) == color:
count += 1
return count
... | Python | 0.000001 | @@ -43,16 +43,26 @@
ommands%0A
+import io%0A
from PIL
|
e6d92aa8d56d670109daecb9a8f0e22d2f88f50c | Update debug middleware for Python 3. | localore/localore/middleware/debug.py | localore/localore/middleware/debug.py | import json
from django.http import HttpResponse
# from http://stackoverflow.com/a/19249559
class NonHtmlDebugToolbarMiddleware(object):
"""
The Django Debug Toolbar usually only works for views that return HTML.
This middleware wraps any non-HTML response in HTML if the request
has a 'debug' query p... | Python | 0 | @@ -924,16 +924,32 @@
.content
+.decode('utf-8')
%0A
|
703d8f45e0377aa2359c95fd422555d3ccc04884 | update the freeze command to work correctly | localtv/management/commands/freeze.py | localtv/management/commands/freeze.py | # Copyright 2009 - Participatory Culture Foundation
#
# This file is part of Miro Community.
#
# Miro Community 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 ... | Python | 0 | @@ -1281,17 +1281,16 @@
./..'))%0A
-%0A
@@ -1803,12 +1803,15 @@
os.m
-k
+ake
dir
+s
(ver
@@ -1951,27 +1951,27 @@
oin(
-settings.MEDIA_ROOT
+repo_root, 'static'
, st
|
ed7a50281401f77d28a0712246f9629cd667cf46 | Check config exists | pssh/utils.py | pssh/utils.py | # This file is part of parallel-ssh.
# Copyright (C) 2014- Panos Kittenis
# 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, version 2.1.
# This library is distributed in the hope that it... | Python | 0 | @@ -2558,37 +2558,8 @@
%22%22%22%0A
- ssh_config = SSHConfig()%0A
@@ -2798,16 +2798,20 @@
%0A if
+not
os.path.
@@ -2836,24 +2836,64 @@
_file):%0A
+ return%0A ssh_config = SSHConfig()%0A
ssh_conf
|
7229d10444a9c8cd55da6ae7f76c685ea1c1cb72 | change formatting | ptchfrkmsc.py | ptchfrkmsc.py | #!/bin/env python
import sqlite3
import os.path
import concurrent.futures
import io
import re
import json
import time
from bs4 import BeautifulSoup
from requests import Session
import requests
from time import sleep
NWORKERS = 5
WEBSITE='http://pitchfork.com/reviews/best/tracks/'
FROM = 1
TO = 190
def initDb(dbconn):... | Python | 0.000004 | @@ -706,16 +706,30 @@
_tracks(
+%5C%0A
Artist,
@@ -813,16 +813,38 @@
,?,?);%22,
+%0A
(e%5B'art
@@ -864,119 +864,259 @@
e',
-e%5B'song'%5D or 'none', e%5B'date'%5D or 'none', e%5B'label'%5D or 'none', e%5B'reviewer'%5D or 'none', e%5B'review'%5D or 'none',
+%0A ... |
3a7bd1eb2a91861ba044b46fada158034ccd6b23 | Fix Tests | mainapp/tests/test_document_access.py | mainapp/tests/test_document_access.py | from django.test import TestCase, override_settings
from mainapp.models import Paper, File
@override_settings(ELASTICSEARCH_DSL_AUTOSYNC=False, ELASTICSEARCH_DSL_AUTO_REFRESH=False)
class TestDocumentAccess(TestCase):
fixtures = ['initdata']
base_paper_len = 2
def test_delete_document(self):
pap... | Python | 0.000003 | @@ -646,9 +646,31 @@
ual(
-0
+self.base_paper_len - 1
, le
@@ -1078,17 +1078,35 @@
rtEqual(
-1
+self.base_paper_len
, len(fi
|
354b8ea8c9cc3eb4932cde5b6cb2e9eebd533553 | Fix IPython miss match version | pudb/shell.py | pudb/shell.py | try:
import IPython
except ImportError:
HAVE_IPYTHON = False
else:
HAVE_IPYTHON = True
try:
import bpython # noqa
except ImportError:
HAVE_BPYTHON = False
else:
HAVE_BPYTHON = True
try:
from prompt_toolkit.contrib.repl import embed as ptpython_embed
except ImportError:
HAVE_PTPYTHON =... | Python | 0.000027 | @@ -16,32 +16,33 @@
IPython%0Aexcept
+(
ImportError:%0A
@@ -28,32 +28,45 @@
ept (ImportError
+, ValueError)
:%0A HAVE_IPYTH
|
e746f84315c82fc2305139c843724b89fd3ef802 | Create a unit test with the format param and run | marionette_testsuite/remote/client.py | marionette_testsuite/remote/client.py | #!/usr/bin/env python
# coding: utf-8
import os
import sys
import time
import httplib
import unittest
import threading
sys.path.append('.')
import marionette_tg.conf
def execute(cmd):
os.system(cmd)
def exec_download():
client_client_ip = marionette_tg.conf.get("client.client_ip")
conn = httplib.HTTP... | Python | 0 | @@ -1668,14 +1668,8 @@
te(%22
-./bin/
mari
@@ -1686,16 +1686,51 @@
ent
-%25s 18079
+--client_ip %25s --client_port 18079 --format
%25s
@@ -1880,50 +1880,8 @@
nt%22)
-%0A execute(%22pkill -9 -f httpserver%22)
%0A%0A
@@ -2686,696 +2686,342 @@
()%0A%0A
-suite = unittest.TestSuite()%0Afor param in %5B%0A... |
f8f55e6c8c0dc8a9867846fe3ee5666dffebfb19 | Use token authentication for server requests | lib/dakara_server.py | lib/dakara_server.py | import requests
import logging
logging.getLogger("requests").setLevel(logging.WARNING)
class DakaraServer:
def __init__(self, config):
# create logger
self.logger = logging.getLogger('DakaraServer')
# setting config
self.server_url = config['url']
self.credentials = (co... | Python | 0 | @@ -287,72 +287,965 @@
'%5D %0A
- self.credentials = (config%5B'login'%5D, config%5B'password'%5D)
+%0A # authentication%0A self.authenticate(config)%0A%0A def authenticate(self, config):%0A data = %7B%0A 'username': config%5B'login'%5D,%0A 'password': config%5B'pas... |
802a8ec31cb37a38f976917674ed5604599a1848 | add long_description | pymc/setup.py | pymc/setup.py | #!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name='pymc3020',
version='1.0.1',
description='Python executor for MC-3020',
author='Levi Starrett',
author_email='levi@roxsoftware.com',
url='https://github.com/xtu... | Python | 0.003355 | @@ -116,100 +116,375 @@
up%0A%0A
-setup(name='pymc3020',%0A version='1.0.1',%0A description='Python executor for MC-3020
+from os import path%0Athis_directory = path.abspath(path.dirname(__file__))%0Awith open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:%0A long_description = f.read()%0... |
38748da362f484c3f84dfa63c8ff052ec1661820 | Update main.py | pomodoro/main.py | pomodoro/main.py | #!/usr/bin/env python
__version__ = '0.0.1'
import click
import progressbar
import time
@click.command()
@click.option('--minutes', default=25, help='Number of minutes, default 25.')
def pomodoro(minutes):
bar = progressbar.ProgressBar(widgets=[
progressbar.Bar(),
])
for i in bar(range(minutes*60)... | Python | 0.000001 | @@ -18,30 +18,8 @@
thon
-%0A__version__ = '0.0.1'
%0A%0Aim
|
ced255533fd095a4d3687513614413e6a3769496 | case-insensitive search | qdb/routes.py | qdb/routes.py | from qdb import app
from datetime import datetime
from flask import (url_for, render_template, jsonify,
redirect, abort, flash, request, session)
from qdb.models import Quote
from qdb.database import db_session
from qdb.utils import Paginator
from sqlalchemy.sql.expression import func
@app.route('/')
def home():
se... | Python | 0.998132 | @@ -538,16 +538,17 @@
te.body.
+i
like('%25'
|
1e0763c97100f4efb1db4c72c200f759bfde9a56 | update scheduler cron | script/scheduler.py | script/scheduler.py | from apscheduler.schedulers.blocking import BlockingScheduler
import os
import shutil
sched = BlockingScheduler()
#@sched.scheduled_job('interval', minutes=5)
@sched.scheduled_job('cron', hour=9)
def scheduled_job():
print('New job: packtpub-crawler')
#print(os.listdir(os.curdir))
shutil.rmtree('./ebooks... | Python | 0.000001 | @@ -187,15 +187,39 @@
on',
+ day_of_week='mon-sun',
hour=
-9
+10
)%0Ade
|
b4499148a871506f07a2b4fd7961462a5bfab67d | reorder imports | postweb/views.py | postweb/views.py | from django.http import HttpResponse, Http404
from django.contrib.auth.decorators import login_required
from django.contrib import messages
from django.core.urlresolvers import reverse
from django.shortcuts import render, redirect
from django.template import RequestContext
from services import BoxService, PostService, ... | Python | 0.000001 | @@ -1,49 +1,41 @@
-from django.http import HttpResponse, Http404
+import json%0Aimport logging%0Aimport re%0A
%0Afro
@@ -141,24 +141,11 @@
ngo.
-core.urlresolver
+url
s im
@@ -207,188 +207,103 @@
ect%0A
+%0A
from
-django.template import RequestContext%0Afrom services import BoxService, PostService, ServiceError%0... |
c394e04d08a2f503dcb9ff808b8f421f336908de | Add cloudfront url to settings for cdn in production environment | pref/settings.py | pref/settings.py | # Django settings for pref project.
import os
relpath = lambda *x: os.path.join(os.path.abspath(os.path.dirname(__file__)), *x)
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ACCESS_PASSWORD = 'movies'
API_KEYS = {
'ROTTEN_TOMATOES': '7vsq9s5wkrqe6kmy9bce4m42',
'NETFLIX': 'fr9pc2q6ypjb2969vjrfprc5',
'NETFLIX_SECRET': 'bJdEV... | Python | 0 | @@ -2156,24 +2156,38 @@
om/static/%22%0A
+# Development%0A
STATIC_URL =
@@ -2215,16 +2215,89 @@
static/'
+%0A# Production%0A#STATIC_URL = 'http://doqh27zvd7u5w.cloudfront.net/static/'
%0A%0A# Addi
|
67c193e3512c4c4ba82c940a7b3264ebe8e912b1 | fix to process_input | process_input.py | process_input.py | """Process input data into tensorflow examples, to ease training.
Input data is in one of two formats:
- facebook's format used in their fastText library.
- two text files, one with input text per line, the other a label per line.
"""
from __future__ import absolute_import
from __future__ import division
from __future... | Python | 0.000102 | @@ -2265,20 +2265,20 @@
= words%5B
-star
+firs
t:%5D%0A
|
2f46d2cc21dfd0cd8d6798c09b013d982fe2aad3 | Remove extra seek | profiles/util.py | profiles/util.py | """
util functions for profiles
"""
from datetime import datetime
from io import BytesIO
from os import path
from PIL import Image
import pytz
# This is the Django ImageField max path size
IMAGE_PATH_MAX_LENGTH = 100
# Max dimension of either height or width for a small image
IMAGE_SMALL_MAX_DIMENSION = 64
def spl... | Python | 0.000001 | @@ -3474,46 +3474,8 @@
%22%22%22%0A
- in_memory_image = full_size_image%0A
@@ -3497,25 +3497,25 @@
ge.open(
-in_memory
+full_size
_image)%0A
@@ -3742,36 +3742,8 @@
(0)%0A
- in_memory_image.seek(0)%0A
|
95f1438d88865ca5619ca4759f621d778ed75483 | fix pgw_shop_id | project/utils.py | project/utils.py | from htpayway import PayWay
from mock import Mock
from decimal import Decimal
class ThisPayWay(PayWay):
pgw_shop_id = '20000186'
pgw_secret_key = "pZclhO{2G+RlMR#FWX{9g5'C"
def set_order(self, order):
# mock data
self.order = Mock(name='order')
self.order.id = '11'
self.o... | Python | 0 | @@ -130,9 +130,9 @@
0018
-6
+5
'%0A
|
ca440802b4548ca24cb4c7a83b65c890c06254e4 | Debug flag | quickstart.py | quickstart.py | import datetime
import os
import sys
import time
import click
PATH = os.path.dirname(os.path.realpath(__file__))
sys.path.insert(1, os.path.join(PATH, 'lib'))
from lib import settings, om_manager
# todo: cli flag...?
om_manager.debug_mode = False
@click.group()
@click.pass_context
def cli(ctx):
my_settings = s... | Python | 0.000001 | @@ -242,12 +242,11 @@
e =
-Fals
+Tru
e%0A%0A@
@@ -259,16 +259,67 @@
group()%0A
+@click.option('--debug/--no-debug', default=False)%0A
@click.p
@@ -337,24 +337,31 @@
%0Adef cli(ctx
+, debug
):%0A my_se
|
4be0210d3afb21290fc410a75b117c1a5d21c165 | remove debugging | micawber/contrib/mcdjango/__init__.py | micawber/contrib/mcdjango/__init__.py | from importlib import import_module
from django import template
from django.conf import settings
from django.template.loader import render_to_string, select_template
from django.utils.safestring import mark_safe
from micawber.compat import string_types
from micawber.parsers import full_handler, inline_handler, parse_... | Python | 0.000065 | @@ -798,43 +798,8 @@
s):%0A
- #import ipdb; ipdb.set_trace()%0A
|
3fba47dc55248e0b3d53279889083858d92ec2b5 | Add icon to shutter btn | micron/project_guimicro/shutterbtn.py | micron/project_guimicro/shutterbtn.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys, os
from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QLabel, QGridLayout, QHBoxLayout, QSizePolicy
from PyQt5.QtGui import QIcon
from PyQt5.QtCore import pyqtSlot, Qt
base_dir = os.path.dirname(os.path.realpath(__file__))
root_dir = os.path.absp... | Python | 0 | @@ -539,16 +539,93 @@
*args)%0A%0A
+ self.customicon = os.path.join(base_dir, 'icons', 'shutterbtn.svg')%0A%0A
@@ -1029,24 +1029,82 @@
lf.height)%0A%0A
+ self.setWindowIcon(QtGui.QIcon(self.customicon))%0A%0A
move
|
bcb28563b0b8e3cfbc574771ad8a9929ec58efd2 | Update XFileSharing.py | module/plugins/hoster/XFileSharing.py | module/plugins/hoster/XFileSharing.py | # -*- coding: utf-8 -*-
import re
from module.plugins.internal.XFSHoster import XFSHoster, create_getInfo
class XFileSharing(XFSHoster):
__name__ = "XFileSharing"
__type__ = "hoster"
__version__ = "0.61"
__status__ = "testing"
__pattern__ = r'^unmatchable$'
__config__ = [("activated... | Python | 0.000001 | @@ -216,17 +216,17 @@
_ = %220.6
-1
+2
%22%0A __
@@ -1724,21 +1724,20 @@
per(
-SimpleCrypter
+XFileSharing
, se
|
7fcb4b32c2eeb09b295da2e43c985f93a9f0f859 | Allow DPOAE/ABR checks to be run w/o animal | scripts/launcher.py | scripts/launcher.py | import os.path
import datetime as dt
import re
import numpy as np
import tables
from traits.api import (HasTraits, Property, List, Str, Instance, Date, Enum,
Event)
from traitsui.api import (View, VGroup, EnumEditor, Item, ToolBar, Action,
Controller, HGroup)
from pyf... | Python | 0 | @@ -5121,128 +5121,10 @@
None
- '%0A 'and animal '%0A 'and experimenter ',%0A
+',
act
@@ -5612,107 +5612,8 @@
None
- '%0A 'and animal '%0A 'and experimenter
',%0A
|
cfcaf7b95ce6ce839596488916770dc164d50e7c | Clean up ticks and implement saving | scripts/plot_pck.py | scripts/plot_pck.py | #!/usr/bin/env python3
from argparse import ArgumentParser
from itertools import cycle
from sys import exit, stderr
from matplotlib import pyplot as plt
from pandas import read_csv
THRESH = 'Threshold'
MARKERS = ['<', 'o', '^', 'x', '>', '+', 'v', 's']
parser = ArgumentParser(
description="Take PCK at different... | Python | 0 | @@ -81,16 +81,36 @@
t cycle%0A
+from os import path%0A
from sys
@@ -131,16 +131,34 @@
stderr%0A%0A
+import matplotlib%0A
from mat
@@ -186,16 +186,63 @@
as plt%0A
+from matplotlib.ticker import AutoMinorLocator%0A
from pan
@@ -464,315 +464,91 @@
'--
-outdir', type=str, default='graphs',%0A help=%22Output dir... |
f69eb931ec0191caebea4f1e45a0067db0067578 | Fix the icount delta returned by sim.util.EveryIns() | scripts/sim/util.py | scripts/sim/util.py | import sys, sim
"""
Conversion factors for subsecondtime (femtoseconds) to other units
"""
class Time:
FS = 1.
PS = 1e3
NS = 1e6
US = 1e9
MS = 1e12
S = 1e15
"""
Register an object as being a hooks listener.
Will register hooks callback functions to the object's member functions with matching (lowerc... | Python | 0.000001 | @@ -4793,24 +4793,80 @@
count_next:%0A
+ self.callback(icount, icount - self.icount_last)%0A%0A
self.i
@@ -4929,60 +4929,4 @@
unt%0A
-%0A self.callback(icount, icount - self.icount_last)%0A
|
a201d24ca3cdc3902681447cfd7530a136d698ef | Store the delta value instead of recalculating it. Added a string to include in the subject of the emails for easy filtering. | weather-window.py | weather-window.py | import os
import requests
import json
import smtplib
import time
from email.mime.text import MIMEText
api_key = os.environ['WUNDERGROUND_API_KEY']
wunderground_key = os.environ['WUNDERGROUND_KEY']
long_lat = os.environ['LONG_LAT']
email_address = os.environ['WINDOW_EMAIL_ADDRESS']
password = os.environ['WINDOW_EMAIL_... | Python | 0 | @@ -370,16 +370,50 @@
old = 72
+%0Asubject_tag = %22%5Bweather-window%5D %22
%0A%0Aurl =
@@ -1260,16 +1260,53 @@
ent_temp
+%0A delta = current_temp - last_temp
%0A%0A ti
@@ -1545,24 +1545,38 @@
ail_address,
+ subject_tag +
%22It's hot%22)
@@ -1714,16 +1714,30 @@
address,
+ subject_tag +
%22It's n
@@ -1... |
bea352d30e90a0aebc044cb2fe71145a12ef9ebd | Version bump. | web/db/release.py | web/db/release.py | # encoding: utf-8
"""Release information about this WebCore add-on."""
from __future__ import unicode_literals
from collections import namedtuple
version_info = namedtuple('version_info', ('major', 'minor', 'micro', 'releaselevel', 'serial'))(2, 0, 0, 'final', 1)
version = ".".join([str(i) for i in version_info[:3... | Python | 0 | @@ -251,17 +251,16 @@
0,
-0, 'final
+1, 'beta
', 1
|
94ea83d53efea9c69a861aa87900c7788a5d5eae | Version Bump | libtaxii/__init__.py | libtaxii/__init__.py | # Copyright (C) 2014 - The MITRE Corporation
# For license information, see the LICENSE.txt file
# Contributors:
# * Alex Ciobanu - calex@cert.europa.eu
# * Mark Davidson - mdavidson@mitre.org
"""
The main libtaxii module
"""
__version__ = "1.1.104"
import httplib
import urllib
import urllib2
import libtaxii.messa... | Python | 0.000001 | @@ -243,17 +243,17 @@
%221.1.10
-4
+5
%22%0A%0Aimpor
|
eb3870c4650735105992a44c66f975d265f53218 | Fix RemoteUserBackend.authenticate() overrides | pdc/apps/auth/backends.py | pdc/apps/auth/backends.py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2015-2016 Red Hat
# Licensed under The MIT License (MIT)
# http://opensource.org/licenses/MIT
#
import ldap
from django.conf import settings
from django.contrib.auth.backends import RemoteUserBackend
from django.contrib.auth.models import Group
def get_ldap_groups(l, login)... | Python | 0.000004 | @@ -2943,32 +2943,41 @@
nticate(self, re
+quest, re
mote_user, **kwa
@@ -2969,26 +2969,16 @@
ote_user
-, **kwargs
):%0A
@@ -3025,32 +3025,41 @@
f).authenticate(
+request,
remote_user)%0A%0A
@@ -3590,32 +3590,41 @@
nticate(self, re
+quest, re
mote_user, reque
@@ -3616,35 +3616,16 @@
ote_user
-, request,... |
d13765f801e7b55c3ca865ba446bc66fe0e6c255 | Fix lincense. | penchy/jobs/dependency.py | penchy/jobs/dependency.py | """
This module provides the parts to define and resolve dependencies in the
pipeline.
.. moduleauthor:: Michael Markert <markert.michael@googlemail.com>
.. license:: MIT License, see LICENSE
"""
class Edge(object):
"""
This class represents edges in the dependency graph.
"""
def __init__(self, so... | Python | 0 | @@ -153,20 +153,73 @@
om%3E%0A
- ..
+%0A :copyright: PenchY Developers 2011-2012, see AUTHORS%0A :
license:
: MI
@@ -214,17 +214,16 @@
license:
-:
MIT Lic
|
8d04afe57be5591a11d3fcc2c0bcb41923f57f3e | fix for language-specific labels in preselect | selections/forms.py | selections/forms.py | from django import forms
from annotations.forms import LabelField
from annotations.utils import get_tenses
from .models import Selection, Word
class SelectionForm(forms.ModelForm):
already_complete = forms.BooleanField(label='All targets have already been selected in this fragment', required=False)
# a hidd... | Python | 0.000001 | @@ -1668,24 +1668,66 @@
s%5B'tense'%5D%0A%0A
+ language = self.fragment.language%0A
# ad
@@ -1959,16 +1959,97 @@
key=key,
+%0A language=language,%0A
initial
|
00d9937f88d7d2d6e85d9cbfdf0c3c21d429a098 | change ordereddict to sorteddict in JSONResponse for 2.6 compat. | sentry_jira/jira.py | sentry_jira/jira.py | import logging
import requests
import collections
from sentry.utils import json
from sentry.utils.cache import cache
from simplejson.decoder import JSONDecodeError
from BeautifulSoup import BeautifulStoneSoup
log = logging.getLogger(__name__)
CACHE_KEY = "SENTRY-JIRA-%s"
class JIRAClient(object):
"""
The JIR... | Python | 0 | @@ -28,27 +28,8 @@
sts%0A
-import collections%0A
from
@@ -182,16 +182,67 @@
toneSoup
+%0Afrom django.utils.datastructures import SortedDict
%0A%0Alog =
@@ -3045,25 +3045,12 @@
ook=
-collections.Order
+Sort
edDi
|
d1c481a13800156670c90c92bd77c1170cdae3cf | fix xlsx tests for recent version of openpyxl | petl/test/io/test_xlsx.py | petl/test/io/test_xlsx.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, division
import sys
import pkg_resources
from datetime import datetime
from tempfile import NamedTemporaryFile
import petl as etl
from petl.io.xlsx import fromxlsx, toxlsx
from petl.test.helpers import ieq
try:
# noinspection PyUn... | Python | 0 | @@ -1855,34 +1855,50 @@
ile(delete=False
+, suffix='.xlsx'
)%0A
-
f.close(
@@ -2224,32 +2224,48 @@
ile(delete=False
+, suffix='.xlsx'
)%0A f.clos
@@ -2527,32 +2527,32 @@
e(2012, 1, 1)))%0A
-
f = Name
@@ -2578,16 +2578,32 @@
te=False
+, suffix='.xlsx'
)%0A
|
117f52854059c5527431abbb7a5e93ae7c50af8a | fix permissions bug | phovea_server/security.py | phovea_server/security.py | ###############################################################################
# Caleydo - Visualization for Molecular Biology - http://caleydo.org
# Copyright (c) The Caleydo Team. All rights reserved.
# Licensed under the new BSD license, available at http://caleydo.org/license
######################################... | Python | 0.000001 | @@ -5183,16 +5183,87 @@
ONYMOUS)
+,%0A 'permissions': getattr(item, 'permissions', DEFAULT_PERMISSION)
%0A %7D%0A%0A
|
995d14e1d0734654c83d7534595f89228f815ef3 | fix (Windows) issue #42 | llvm-config-win32.py | llvm-config-win32.py | import sys, os
def find_path_of(filename, envvar='PATH'):
"""Finds the path from $PATH where the file exists, returns None if not found."""
pathlist = os.getenv(envvar).split(os.pathsep)
for path in pathlist:
if os.path.exists(os.path.join(path, filename)):
return os.path.abspath(path)
... | Python | 0 | @@ -912,24 +912,51 @@
LVMMCParser%0A
+LLVMObject%0ALLVMRuntimeDyld%0A
LLVMScalarOp
|
c1c6934bdbcdc6590e99c939c0d52dbd4663bfda | Add error handling when no targets exist | localize/commands.py | localize/commands.py | #!/usr/bin/env python
import sys
import yaml
import os
import argparse
import time
import requests
import json
from colorama import Fore, Back, Style
def get_url(conf):
if 'dev' in conf['api']:
base_url='http://localhost:8086/v2.0/projects/'
else:
base_url='https://api.localizejs.com/v2.0/projects/'
... | Python | 0.000001 | @@ -2499,48 +2499,314 @@
%5B%5D%0A
- for target in conf%5B'pull'%5D%5B'targets'%5D:
+%0A if not 'targets' in conf%5B'pull'%5D:%0A sys.exit(Fore.RED + 'Could not find any targets to pull. Please make sure your configuration is formed correctly.' + Style.RESET_ALL)%0A%0A for target in conf%5B'pull'%5D%5B'targets'... |
6ee45c75c2e4d893ee48014555f06095138f7c76 | Use less strict name for images | nanobox_libcloud/adapters/scaleway.py | nanobox_libcloud/adapters/scaleway.py | import os
import socket
from urllib import parse
from decimal import Decimal
from currency_converter import CurrencyConverter
from flask import request
import libcloud
from nanobox_libcloud.adapters import Adapter
from nanobox_libcloud.adapters.base import RebootMixin
class Scaleway(RebootMixin, Adapter):
"""
... | Python | 0 | @@ -4464,23 +4464,8 @@
nial
- (16.04 latest)
')%0A%0A
|
54bd5a1311c8e2a9c9097888c4b302558308054d | change CNN spider into a crawl spider | newsbot/newsbot/spiders/cnn_spider.py | newsbot/newsbot/spiders/cnn_spider.py | from scrapy.spider import BaseSpider
class CnnSpider(BaseSpider):
name = 'cnn'
allowed_domains = ['www.cnn.com']
start_urls = [
'http://www.cnn.com/',
]
def parse(self, response):
open('homepage.html', 'wb').write(response.body)
| Python | 0.99996 | @@ -9,22 +9,31 @@
apy.
+contrib.
spider
+s
import
Base
@@ -28,26 +28,178 @@
import
-BaseSpider
+CrawlSpider, Rule%0Afrom scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor%0Afrom scrapy.selector import HtmlXPathSelector%0A%0Afrom ..items import ArticleItem%0A
%0A%0Aclass
@@ -212,12 +212,13 @@
der(
... |
1d73fc46e427648c50a80aa041332fa9e3a4b07f | a test for delete is duplicate | odk_viewer/tests/mongo_data_output.py | odk_viewer/tests/mongo_data_output.py | from datetime import datetime
import os
from django.conf import settings
from django.test import TestCase, Client
import common_tags
from main.tests.test_base import MainTestCase
from odk_logger.models import XForm
from datetime import date
'''
Testing that data in parsed instance's mongo_dict is properly categorize... | Python | 0.999997 | @@ -2118,502 +2118,4 @@
))%0A%0A
- def test_delete(self):%0A self.assertIn(self.pi.to_dict_for_mongo(), %5C%0A list(self.instances.find(%7Bcommon_tags.DELETEDAT:%5C%0A %7B%22$exists%22: False%7D%7D)))%0A p = self.pi.to_dict_for_mongo()%0A p.update(%7Bc... |
986b08256273c8f5ee592130422e9c021be6b2b6 | Add init_checkpoint for nhnet benchmark. | official/benchmark/nhnet_benchmark.py | official/benchmark/nhnet_benchmark.py | # Lint as: python3
# Copyright 2020 The TensorFlow 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 ... | Python | 0.000013 | @@ -1254,16 +1254,131 @@
record*'
+%0APRETRAINED_CHECKPOINT_PATH = 'gs://cloud-tpu-checkpoints/bert/keras_bert/uncased_L-24_H-1024_A-16/bert_model.ckpt'
%0A%0AFLAGS
@@ -4390,32 +4390,87 @@
trategy = 'tpu'%0A
+ FLAGS.init_checkpoint = PRETRAINED_CHECKPOINT_PATH%0A
FLAGS.model_
|
7c97f821ca8961ae5c6c1d9f0dbaf1e2f9fb291f | Remove unused import | openfisca_france/tests/test_reform.py | openfisca_france/tests/test_reform.py | # -*- 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 it and/or modify
# it ... | Python | 0.000001 | @@ -935,13 +935,8 @@
json
-patch
%0A%0Afr
@@ -1339,24 +1339,116 @@
1)%0A )
+%0A print unicode(json.dumps(dated_legislation_json_src, ensure_ascii = False, indent = 2))
%0A%0A reform
|
7447c7a228d6fb3e213e1c2735bf9078b5cc9051 | fix 500. ref a421134621643366_fix_500_error_in_listing | openprocurement/planning/api/utils.py | openprocurement/planning/api/utils.py | # -*- coding: utf-8 -*-
from functools import partial
from json import dumps
from logging import getLogger
from time import sleep
from urllib import quote
from rfc6266 import build_header
from urlparse import urlparse, parse_qs
from base64 import b64encode
from cornice.resource import resource
from cornice.util import ... | Python | 0.000133 | @@ -2240,16 +2240,54 @@
=False)%0A
+ plan.__parent__ = request.context%0A
retu
|
a16dc0ec5eac911ec26d1835bcb7b3d909f5ce49 | Fix listx names | lxclite2/__init__.py | lxclite2/__init__.py | import subprocess
import os
# LXC Python Library
# for compatibility with LXC 1.0+
# on Ubuntu 15.10/16.04/+ Debian 8+ / Proxmox 4
# Author: Sergey Dryabzhinsky
# Contact: sergey.dryabzhinsky@gmail.com
# Orignika work LXC Lite for 0.9
# Author: Elie Deloumeau
# Contact: elie@deloumeau.fr
# The MIT License (MIT)
# C... | Python | 0.000411 | @@ -4729,33 +4729,26 @@
ning.append(
-container
+vm
)%0A el
@@ -4800,25 +4800,18 @@
.append(
-container
+vm
)%0A
@@ -4869,25 +4869,18 @@
.append(
-container
+vm
)%0A%0A r
|
946ce6c30b2f4cb6b80f48fd8f1c9b55628faa01 | Drop flat_unflat test | prf/tests/test_dictset.py | prf/tests/test_dictset.py | import pytest
from datetime import datetime
from prf.utils.dictset import dictset, merge
from prf.utils.utils import DKeyError, DValueError
class TestDictSet():
def test(self):
dset = dictset(a=1)
assert isinstance(dset, dict) is True
assert dset.a == dset['a']
dset.a = 10
... | Python | 0 | @@ -3966,95 +3966,4 @@
01)%0A
-%0A @pytest.mark.skip('Not implemented yet')%0A def test_flat_unflat(self):%0A pass%0A
|
72c1113b1d1f57e39ba2896e58d2087c77f1f959 | Set default value for 'pyramid_levels' to 'None'. | keras_retinanet/preprocessing/anchors.py | keras_retinanet/preprocessing/anchors.py | import numpy as np
def anchor_targets(image, gt_boxes, negative_overlap=0.4, positive_overlap=0.5, **kwargs):
# first create the anchors for this image
anchors = anchors_for_image(image, **kwargs)
# label: 1 is positive, 0 is negative, -1 is dont care
labels = np.ones((anchors.shape[0],)) * -1
#... | Python | 0.000106 | @@ -1113,23 +1113,12 @@
els=
-%5B3, 4, 5, 6, 7%5D
+None
, an
@@ -1192,24 +1192,96 @@
izes=None):%0A
+ if pyramid_levels is None:%0A pyramid_levels = %5B3, 4, 5, 6, 7%5D%0A
if ancho
|
a46783afc4c4c92e917c12b68972a56bdb8f2597 | make compatible with Python 3 | util/regexp-assemble/regexp-cmdline.py | util/regexp-assemble/regexp-cmdline.py | #!/usr/bin/env python
#
# Convert a word list to a list of regexps usable by Regexp::Assemble.
#
# Examples:
# cat regexp-932100.txt | ./regexp-cmdline.py unix | ./regexp-assemble.pl
# cat regexp-932110.txt | ./regexp-cmdline.py windows | ./regexp-assemble.pl
# cat regexp-932150.txt | ./regexp-cmdline.py unix | ./reg... | Python | 0.000385 | @@ -932,35 +932,32 @@
:%0A char = str
-ing
.replace(char, '
@@ -972,35 +972,32 @@
)%0A char = str
-ing
.replace(char, '
@@ -1012,35 +1012,32 @@
)%0A char = str
-ing
.replace(char, '
@@ -1052,35 +1052,32 @@
)%0A char = str
-ing
.replace(char, '
@@ -1163,19 +1163,16 @@
ar = str
-ing
.replace
@@ -161... |
388895522ffc4f817759005a08c6bb6be1dafc30 | Increment version number | mama_cas/__init__.py | mama_cas/__init__.py | __version_info__ = (1, 1, 1)
__version__ = '.'.join([str(v) for v in __version_info__])
| Python | 0.000021 | @@ -16,20 +16,20 @@
_ = (1,
-1, 1
+2, 0
)%0A__vers
|
8f355bd81a4f3f12c98375e1b2ca1bfa55737cac | Bump version | cornflake/__init__.py | cornflake/__init__.py | __version__ = '0.2.1'
| Python | 0 | @@ -16,7 +16,7 @@
0.2.
-1
+2
'%0A
|
15996309943fb42d099a04533e711e60780a208a | Version for shiny | Chandra/Time/__init__.py | Chandra/Time/__init__.py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
import ska_helpers
from .Time import *
__version__ = ska_helpers.get_version(__package__)
def test(*args, **kwargs):
'''
Run py.test unit tests.
'''
import testr
return testr.test(*args, **kwargs)
| Python | 0 | @@ -140,19 +140,22 @@
ion(
-__package__
+'Chandra.Time'
)%0A%0A%0A
|
1602f256dedf098345930b9af4228fc32d1c43d9 | add set_rtld_flags to __init__.py | cppimport/__init__.py | cppimport/__init__.py | from cppimport.config import set_quiet, force_rebuild, file_exts, turn_off_strict_prototypes
from cppimport.importer import imp, imp_from_filepath
from cppimport.templating import setup_pybind11
from cppimport.importer import imp as cppimport
| Python | 0.000033 | @@ -85,16 +85,32 @@
ototypes
+, set_rtld_flags
%0Afrom cp
|
92ad206b84dff9f02d1c855232d1489ced9cbdf3 | Use re instead of shlex.split to find executable | lib/ansible/runner/action_plugins/raw.py | lib/ansible/runner/action_plugins/raw.py | # (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any lat... | Python | 0 | @@ -709,21 +709,18 @@
%0Aimport
-shlex
+re
%0A%0Aimport
@@ -1066,191 +1066,282 @@
-args = %5B%5D%0A for arg in shlex.split(module_args.encode(%22utf-8%22)):%0A if arg.startswith('executable='):%0A executable = arg.split('=', 1)%5B1%5D%0A else
+# From library/command,... |
6c839500489f8b6d4c9a9b01007b8f597d6f095e | Fix a few bugs in texture atlas | cubix/core/texture.py | cubix/core/texture.py |
from collections import OrderedDict
from PIL import Image
import sdl2 as sdl
from cubix.core.pycompat import *
from cubix.core.opengl import gl, pgl
def load_image(path):
img = Image.open(path)
# Verify that the image is in RGBA format
if ''.join(img.getbands()) != 'RGBA':
img = img.convert('RG... | Python | 0.000001 | @@ -4043,16 +4043,22 @@
eight /
+float(
self.max
@@ -4069,24 +4069,25 @@
extureHeight
+)
%0A
@@ -4111,16 +4111,22 @@
Width /
+float(
self.max
@@ -4137,24 +4137,68 @@
extureHeight
+)%0A print (vertScaleX, vertScaleY)
%0A%0A
@@ -4764,25 +4764,9 @@
th:%0A
-
%0A
+... |
fb9591c4a2801bfe5f5380c3e33aa44a25db3591 | Add absolute URLs to form and question admin | customforms/models.py | customforms/models.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from django.utils.translation import ugettext as _
from django.db import models
class Form(models.Model):
title = models.CharField(_("Title"), max_length=255)
def __unicode__(self):
return u'%s' % self.title
class Meta:
ordering = ('title', )
... | Python | 0.000001 | @@ -36,16 +36,61 @@
-8 -*-%0A%0A
+from django.core.urlresolvers import reverse%0A
from dja
@@ -353,24 +353,131 @@
'title', )%0A%0A
+ def get_absolute_url(self):%0A return reverse('customforms.views.view_form', args=%5Bstr(self.id)%5D)%0A
%0Aclass Quest
@@ -1138,16 +1138,129 @@
on', )%0A%0A
+ def get_a... |
6400c677db56208f63a7c7bb1597eb73d8babe6b | fix stack inspection in render_to_response to work on windows | lib/rapidsms/utils/render_to_response.py | lib/rapidsms/utils/render_to_response.py | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
import os
import sys
import inspect
def render_to_response(req, template_name, dictionary=None, **kwargs):
"""
Wrap django.shortcuts.render_to_response, to avoid having to include
the same stuff in every view. TODO: moar.
"""
# delay imports un... | Python | 0 | @@ -2506,16 +2506,33 @@
if
+os.path.normcase(
os.path.
@@ -2556,16 +2556,35 @@
)%5B0%5D
+)
==
+os.path.normcase(
root
+)
:%0A
|
1a9d0b713dd6e4a990d60ab81de9e57cf1845292 | Replace assertTrue(isinstance()) with assertIsInstance() | manilaclient/tests/unit/v2/test_types.py | manilaclient/tests/unit/v2/test_types.py | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the Li... | Python | 0.002398 | @@ -1481,32 +1481,27 @@
self.assert
-True(isi
+IsI
nstance(shar
@@ -1527,33 +1527,32 @@
tra_specs, dict)
-)
%0A self.as
@@ -1559,16 +1559,11 @@
sert
-True(isi
+IsI
nsta
@@ -1605,17 +1605,16 @@
s, dict)
-)
%0A
|
e37e83dd87f51c68a6b9597a0e783132b2ac338c | rewrite stat_static_info | modules/tools/rosbag/stat_static_info.py | modules/tools/rosbag/stat_static_info.py | #!/usr/bin/env python
###############################################################################
# Copyright 2017 The Apollo 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 ... | Python | 0.000007 | @@ -1235,16 +1235,21 @@
%0A %22%22%22
+%0A
Stat sta
@@ -1256,17 +1256,28 @@
tic info
-.
+rmation%0A
%22%22%22%0A%0A
@@ -1610,11 +1610,11 @@
rint
- %22b
+(%22B
egin
@@ -1646,32 +1646,33 @@
format(bag_file)
+)
%0A for
@@ -2510,11 +2510,11 @@
rint
- %22f
+(%22F
inis
@@ -2549,32 +2549,33 ... |
ac8d6e5e71c9edf129737e423782dce265fbe5c5 | Use feature detection instead of version detection | moviepy/video/compositing/concatenate.py | moviepy/video/compositing/concatenate.py | import numpy as np
from moviepy.compat import PY3
if PY3:
from functools import reduce
from moviepy.tools import deprecated_version_of
from moviepy.video.VideoClip import VideoClip, ColorClip
from moviepy.video.compositing.CompositeVideoClip import CompositeVideoClip
from moviepy.audio.AudioClip import CompositeA... | Python | 0.000001 | @@ -17,47 +17,77 @@
np%0A%0A
-from moviepy.compat import PY3%0A%0Aif PY3:
+try: # Python 2%0A reduce%0Aexcept NameError: # Python 3
%0A
|
c95173f6070da2e3ac74d167efe224f5334381f6 | add some commented out code for testing certain nrm failures | opennsa/backends/common/simplebackend.py | opennsa/backends/common/simplebackend.py | """
Generic backend for deployments where OpenNSA is the only NRM (i.e. there is no
other system for interacting with the hardware).
Using this module, such a backend will only have to supply functionality for
setting up and tearing down links and does not have to deal state management.
The use this module a connecti... | Python | 0 | @@ -1717,32 +1717,115 @@
reserve(self):%0A%0A
+ # return defer.fail( error.InternalNRMError('test reservation failure') )%0A%0A
def sche
@@ -5247,32 +5247,115 @@
rminate(self):%0A%0A
+ # return defer.fail( error.InternalNRMError('test termination failure') )%0A%0A
def remo
|
5a1f72de985b9c6bccafa0b2e9f21be9abbc77ca | Add log-level CLI option | marathon_acme/cli.py | marathon_acme/cli.py | import argparse
import sys
def main(raw_args=sys.argv[1:]):
"""
A tool to automatically request, renew and distribute Let's Encrypt
certificates for apps running on Marathon and served by marathon-lb.
"""
parser = argparse.ArgumentParser(
description='Automatically manage ACME certificates... | Python | 0.000002 | @@ -1320,16 +1320,309 @@
ernal')%0A
+ parser.add_argument('--log-level',%0A help='The minimum severity level to log messages at '%0A '(default: %25(default)s)',%0A choices=%5B'debug', 'info', 'warn', 'error', 'critical'%5D,%0A ... |
3ca0239124335a288a31c28d213adee359589a75 | Update settings.py | projfd/projfd/settings.py | projfd/projfd/settings.py | """
Django settings for projfd project.
Generated by 'django-admin startproject' using Django 1.8.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths... | Python | 0.000001 | @@ -1,311 +1,4 @@
-%22%22%22%0ADjango settings for projfd project.%0A%0AGenerated by 'django-admin startproject' using Django 1.8.4.%0A%0AFor more information on this file, see%0Ahttps://docs.djangoproject.com/en/1.8/topics/settings/%0A%0AFor the full list of settings and their values, see%0Ahttps://docs.djangoproject.... |
9c6018f41cb42ed310689ec0a5b7350c2542848a | Allow spekaers to change their own programs | pyconkr/forms.py | pyconkr/forms.py | from django import forms
from django.conf import settings
from django.core.files.images import get_image_dimensions
from django.utils.translation import ugettext_lazy as _
from django_summernote.widgets import SummernoteInplaceWidget
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Submit
from... | Python | 0 | @@ -2970,16 +2970,24 @@
elds = (
+'name',
'slide_u
@@ -3119,32 +3119,64 @@
labels = %7B%0A
+ 'name': _('Title'),%0A
'sli
|
5b6fcf9f32bc9522cd9187a7f8290cbd56efeb26 | Revert "Testing for language similarity" | matchmaker/engine.py | matchmaker/engine.py | #!/usr/bin/env python
import sys
import random
from math import log
from collections import defaultdict
from pprint import pprint
class Engine:
def __init__(self, database):
"""Constructor
"""
self.database = database
self.recommended = defaultdict(list)
self.process()
... | Python | 0 | @@ -632,21 +632,20 @@
r_
-langs
+name
= db.r_
lang
@@ -644,46 +644,12 @@
b.r_
-langs%0A lang_by_r = db.lang_by_r
+name
%0A
@@ -2392,383 +2392,8 @@
))%0A%0A
- # find similar projects by language%0A for lang, lnlog in r_langs%5Br%5D:%0A num = 0%0A for... |
1b6ab75db3619ba4e686ee504a954c5391598c34 | fix logging | psidialogs/backend_api.py | psidialogs/backend_api.py | from psidialogs.mixins import AllMixin
from psidialogs.backendloader import BackendLoader
import logging
def opendialog(funcname, argdict):
for (k, v) in argdict.items():
if v is None:
argdict[k] = ""
logging.debug(funcname)
logging.debug(argdict)
b = BackendLoader().selected()
... | Python | 0.000002 | @@ -99,16 +99,51 @@
ogging%0A%0A
+log = logging.getLogger(__name__)%0A%0A
%0Adef ope
@@ -259,28 +259,24 @@
%22%22%0A%0A log
-ging
.debug(funcn
@@ -287,20 +287,16 @@
%0A log
-ging
.debug(a
|
ffa70fe5f4e408a6c2d123876467675a58db52a6 | Normalize displayed filename in `local.include`. | pyinfra/local.py | pyinfra/local.py | from __future__ import print_function, unicode_literals
from os import path
import click
import six
import pyinfra
from . import logger, pseudo_state
from .api.connectors.util import run_local_process, split_combined_output
from .api.exceptions import PyinfraError
def include(filename):
'''
Executes a loc... | Python | 0 | @@ -1605,24 +1605,38 @@
.deploy(
+path.normpath(
filename
, kwargs
@@ -1627,16 +1627,17 @@
filename
+)
, kwargs
|
6fde8911a767056625b1e0b8348f95a4b97c3ed3 | Fix repeat, closes #9 | pyleri/repeat.py | pyleri/repeat.py | '''Repeat class.
:copyright: 2018, Jeroen van der Heijden (Transceptor Technology)
'''
from .elements import NamedElement, c_export, go_export, java_export
class Repeat(NamedElement):
__slots__ = ('_element', '_min', '_max')
def __init__(self, element, mi=0, ma=None):
self._element = self._validate... | Python | 0.000003 | @@ -2662,35 +2662,25 @@
elf._max or
-'undefined'
+0
)%0A%0A @go_e
|
f8a6aaef40603d1e54c89fc410ea30a65ad48e60 | improve detection of supported interpreters bit | pypi2deb/pypi.py | pypi2deb/pypi.py | # Copyright © 2015 Piotr Ożarowski <piotr@debian.org>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, me... | Python | 0 | @@ -3219,106 +3219,375 @@
-result%5B'interpreters'%5D.add('python')%0A if 'Programming Language :: Python :: 3' in classifiers:%0A
+# TODO: some projects use this to mark both Python 2.X and 3.X,%0A # find a way to make sure it's 2.X only%0A result%5B'interpreters'%5D.add('python')%0A for i in... |
7b98b9eb602a7ff597f68644aa1eb74ad76fe24f | modify views.py post and add delete | medications/views.py | medications/views.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render
from rest_framework.views import APIView
from rest_framework.exceptions import APIException, NotFound
from rest_framework.response import Response
from rest_framework.authentication import TokenAuthentication
from res... | Python | 0 | @@ -1435,16 +1435,54 @@
n = None
+%0A badRequest = True
%0A%0A
@@ -2078,16 +2078,23 @@
med
+ication
= Medic
@@ -2115,26 +2115,20 @@
.filter(
+na
me
-dication
= data%5B
@@ -2160,16 +2160,23 @@
if med
+ication
and len
@@ -2179,16 +2179,23 @@
len(med
+ication
)%3E0:%0A
@@ ... |
65dd0a99301e32e7060832c6aa700ac3aa10c499 | - ignore when callback is None | pyport/signal.py | pyport/signal.py | """Callback infrastructure."""
__all__ = ["Signal"]
class Signal(object):
"""Allows signals to be sent to connected slots."""
def __init__(self):
"""Initialising the signal."""
self._slots = [] #: The slots connected to the signal
def connect(self, slot):
"""Connect a callback function to the sig... | Python | 0.998781 | @@ -313,32 +313,59 @@
the signal.%22%22%22%0A
+ if slot is not None:%0A
self._slots.
|
6f7794c601c5b60bb64a817fd50f5180518ec00c | Move Element _type property to public type_. | pytac/element.py | pytac/element.py | """ Representation of an element which contains all the data about a particular equipment."""
from pytac.exceptions import PvException
import pytac
class Element(object):
def __init__(self, name, length, element_type):
"""An element of the ring.
Represents an element of the lattice. Contains a ... | Python | 0 | @@ -778,21 +778,21 @@
self.
-_
type
+_
= eleme
|
ef2cfcfa2ae87aad4bbbaf14b3be1cc92f80c516 | rename the post-test function | pytest_socket.py | pytest_socket.py | # -*- coding: utf-8 -*-
import socket
import pytest
_true_socket = socket.socket
_true_connect = socket.socket.connect
class SocketBlockedError(RuntimeError):
def __init__(self, *args, **kwargs):
super(SocketBlockedError, self).__init__("A test tried to use socket.socket.")
class SocketConnectBlockedEr... | Python | 0.000267 | @@ -4155,28 +4155,24 @@
():%0A
+_
remove_
-host_
restrict
@@ -4951,20 +4951,16 @@
def
+_
remove_
-host_
rest
@@ -4997,33 +4997,25 @@
cket.socket.
-connect()
+*
to allow ac
@@ -5055,32 +5055,65 @@
esting.%0A %22%22%22%0A
+ socket.socket = _true_socket%0A
socket.socke
|
a879472a762c4c2164ef72e3f706c5bcd76158bc | fix bugs | python/gears4.py | python/gears4.py | #!/usr/bin/python
import serial
import time
import random
import sys
s = None
num_leds = 93
play_time = 0
def flush_input():
s.flushInput()
def wait_for_ack():
while s.inWaiting() <= 0:
pass ... | Python | 0.000001 | @@ -605,20 +605,33 @@
ause
-:
+%22)%0A command(%22
reset:
-erase
+clear
%22)%0A%0A
|
854b8102518f102308d545603cd93e0c9945c4b9 | Bump version | qgitc/version.py | qgitc/version.py | # -*- coding: utf-8 -*-
VERSION_MAJOR = 2
VERSION_MINOR = 0
VERSION_PATCH = 0
VERSION = "{}.{}.{}".format(VERSION_MAJOR,
VERSION_MINOR,
VERSION_PATCH)
| Python | 0 | @@ -71,17 +71,17 @@
PATCH =
-0
+1
%0AVERSION
|
b208e1ed4ad8bda465ac0cb5d83e5f64a81556c0 | manage when a user changes their mind | reactive/node.py | reactive/node.py | from charms.reactive import (
hook,
set_state,
remove_state,
main,
when_not,
)
from charmhelpers.core import (
hookenv,
unitdata,
)
from charms import apt
config = hookenv.config()
kv = unitdata.kv()
@when_not('nodejs.available')
def install_nodejs():
""" Installs defined node runt... | Python | 0.000002 | @@ -699,16 +699,279 @@
ble')%0A%0A%0A
+@hook('config-changed')%0Adef version_check():%0A url = config.get('install_sources')%0A key = config.get('install_keys')%0A%0A if url != kv.get('nodejs.url') or key != kv.get('nodejs.key'):%0A apt.purge(%5B'nodejs'%5D)%0A remove_state('nodejs.available')%0... |
f3359b7ad48fbbbbed30160e748d6c663b6fcdbd | fix #392 | GPy/mappings/__init__.py | GPy/mappings/__init__.py | # Copyright (c) 2013, 2014 GPy authors (see AUTHORS.txt).
# Licensed under the BSD 3-clause license (see LICENSE.txt)
from .kernel import Kernel
from .linear import Linear
from .mlp import MLP
from .additive import Additive
from .compound import Compound
from .constant import Constant
| Python | 0 | @@ -279,10 +279,87 @@
Constant
+%0Afrom .identity import Identity%0Afrom .piecewise_linear import PiecewiseLinear
%0A%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.