Dataset Viewer
Auto-converted to Parquet Duplicate
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
ca8dec97321fdf2ceee459b95c3d885edebca15b
Bump DeletionWatcher up to 20 minutes
deletionwatcher.py
deletionwatcher.py
import json import requests import time import websocket from bs4 import BeautifulSoup from threading import Thread from metasmoke import Metasmoke from globalvars import GlobalVars from datahandling import is_false_positive, is_ignored_post, get_post_site_id_link class DeletionWatcher: @classmethod def updat...
Python
0
@@ -2776,9 +2776,10 @@ rl, -6 +12 00)%0A
2bcfccb3b4b0d6f79fd62d84e98495392b86795a
Remove print statements
mail/views.py
mail/views.py
from django import http from django.shortcuts import render_to_response from django.template import RequestContext from django.core.urlresolvers import reverse from django.utils.translation import ugettext as _ from django.contrib import messages from django.conf import settings from django.contrib.auth.decorators impo...
Python
0.001543
@@ -936,39 +936,8 @@ IN)) -%0A print (expression.pattern) %0A%0A @@ -1067,49 +1067,8 @@ l')%0A - print(%22Old url: %7B%7D%22.format(url))%0A @@ -1407,57 +1407,8 @@ n'%5D%0A - print(%22New url: %7B%7D%22.format(new_url))%0A @@ -1484,16 +1484,16 @@ url'):%5D%0A + @@ -1519...
38c0e0235a4c28a8b6627d1160efe318d95015bf
Revert "Simplifiquem la forma de mirar si l'attach es valid"
mailticket.py
mailticket.py
import email import hashlib import base64 import re from email.header import decode_header from email.utils import parseaddr from email.utils import parsedate_tz, mktime_tz import datetime import settings import logging logger = logging.getLogger(__name__) class MailTicket: """ Classe que encapsula un...
Python
0
@@ -4309,16 +4309,46 @@ rt_body) + and (not part.is_multipart()) and sel @@ -4573,69 +4573,8 @@ ):%0D%0A - if attachment.is_multipart():%0D%0A return False%0D%0A %0D%0A
cceb88b877b71f5c4659959055a4cd92847f0426
Tweak startup/shutdown log entries to be more visible and informative
__main__.py
__main__.py
#!/usr/bin/env python3 # Run script for CrabBot # A mess of config args and terminal polling code # # See -h or read the argparse setup for argument details import argparse import datetime import logging import os import readline # Only for better terminal input support, eg. history import sys from tempfile import ge...
Python
0
@@ -844,16 +844,44 @@ ng.info( +%22________%5Cn%22 +%0A %22Startin @@ -882,21 +882,21 @@ tarting -crabb +CrabB ot at %22 @@ -925,17 +925,209 @@ e.now()) -) + + %22%5Cn%22%0A %22--------%22) # Make it clear in the log when a new run starts%0A # TODO? Might want a...
a492e805fa51940d746a1d251232bc4f13417165
fix waftools/man.py to install manpages again.
waftools/man.py
waftools/man.py
import Common, Object, Utils, Node, Params import sys, os import gzip from misc import copyobj def gzip_func(task): env = task.m_env infile = task.m_inputs[0].abspath(env) outfile = task.m_outputs[0].abspath(env) input = open(infile, 'r') output = gzip.GzipFile(outfile, mode='w') output.write(...
Python
0
@@ -588,22 +588,21 @@ st(self. -source +files )%0A
89c1b58da23cfe16e8e195c61313b818a6d5f890
Add persist.py
darwin/persist.py
darwin/persist.py
import joblib from .version import __version__, VERSION class PersistenceMixin(object): """ Mixin that adds joblib persistence load and save function to any class. """ @classmethod def from_file(cls, objdump_path): ''' Parameters ---------- objdump_path: str ...
Python
0.000001
@@ -84,17 +84,16 @@ bject):%0A -%0A %22%22%22%0A @@ -1081,23 +1081,22 @@ return -learner +object %0A @@ -1732,15 +1732,24 @@ _ = -Learner +PersistenceMixin .fro @@ -1833,23 +1833,22 @@ ave the -learner +object to a fi @@ -1851,16 +1851,17 @@ a file.%0A +%0A @@ -1967,23 +1967,22 @@ av...
dd369472eeb5199e19d4aa5bfb0adeb839dcaf97
move X axis label
buildtimetrend/trend.py
buildtimetrend/trend.py
# vim: set expandtab sw=4 ts=4: # # Generates a trend (graph) from the buildtimes in buildtimes.xml # # Copyright (C) 2014 Dieter Adriaenssens <ruleant@users.sourceforge.net> # # This file is part of buildtime-trend # <https://github.com/ruleant/buildtime-trend/> # # This program is free software: you can redistribute ...
Python
0.000002
@@ -3918,17 +3918,18 @@ oords(1. -1 +05 , -0.05)
735a52b8ad4ebf7b6b8bb47e14667cd9004e624b
add some mappings
algo/lru.py
algo/lru.py
class Node: def __init__(self, val): self.next = None self.prev = None self.value = val class DoublyLinkedList: def __init__(self): self.head = None def insert(self, val): node = Node(val) head = self.head if self.head == None: self.head...
Python
0.000011
@@ -1,12 +1,30 @@ +mapping = %7B%7D%0A %0A class Node:%0A @@ -254,16 +254,52 @@ de(val)%0A + mapping%5Bval%5D = node %0A
6bb58e13b657c1546f4f5d1afa70d48a9187f168
Update server.py
gprs/server.py
gprs/server.py
from socket import * from modules import decode_packet import sys from modules import params Parser = params.Parser() argv = Parser.createParser() ip_and_port = argv.parse_args(sys.argv[1:]) #host = ip_and_port.ip #port = int(ip_and_port.port) host = "0.0.0.0" port = 5300 addr = (host, port) print(host,port) tcp_socke...
Python
0.000001
@@ -267,9 +267,9 @@ = 5 -3 +1 00%0Aa
9e5b42fa14b50d91840a67646ed6779d8f5c22ae
Make ``cursor_kinds`` private
bears/c_languages/ClangComplexityBear.py
bears/c_languages/ClangComplexityBear.py
from clang.cindex import Index, CursorKind from coalib.bears.LocalBear import LocalBear from coalib.results.Result import Result from coalib.results.SourceRange import SourceRange from bears.c_languages.ClangBear import clang_available, ClangBear class ClangComplexityBear(LocalBear): """ Calculates cyclomati...
Python
0
@@ -669,24 +669,25 @@ ilable)%0A +_ decisive_cur @@ -1228,16 +1228,17 @@ in self. +_ decisive
22952f57c33070f83c4e9c38b2a96543ed983f4e
Make ndb_persistence execute Context's complete event
furious/extras/appengine/ndb_persistence.py
furious/extras/appengine/ndb_persistence.py
# # Copyright 2014 WebFilings, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
Python
0.000009
@@ -2380,16 +2380,61 @@ ete!!%22)%0A +%0A context.exec_event_handler('complete')%0A%0A retu
d428f6df195c0293340089b884b934fa16ef7ff6
Use local timezone if available. Fixes #3
wanikani/cli.py
wanikani/cli.py
import argparse import logging import os from wanikani.core import WaniKani, Radical, Kanji, Vocabulary CONFIG_PATH = os.path.join(os.path.expanduser('~'), '.wanikani') logger = logging.getLogger(__name__) def config(): if os.path.exists(CONFIG_PATH): logger.debug('Loading config from %s', CONFIG_PATH)...
Python
0.000001
@@ -35,16 +35,252 @@ ort os%0A%0A +# If the tzlocal package is installed, then we will help the user out%0A# and print things out in the local timezone%0ALOCAL_TIMEZONE = None%0Atry:%0A import tzlocal%0A LOCAL_TIMEZONE = tzlocal.get_localzone()%0Aexcept ImportError:%0A pass%0A%0A from wan @@ -2448,16 +2448,1...
b53bee8978c6fe407fce7769e16ac4991e36fcda
Return unknown status if geolocation API is unavailable
client/plugins/geolocation.py
client/plugins/geolocation.py
#!/usr/bin/env python3 import pickle import json import os import re import requests import subprocess import sys from qlmdm import top_dir, var_dir from qlmdm.client import get_setting cache_file = os.path.join(var_dir, 'geolocation.cache') os.chdir(top_dir) def unknown(): print(json.dumps('unknown')) sy...
Python
0.000002
@@ -2918,16 +2918,25 @@ pi_key)%0A +try:%0A response @@ -2978,22 +2978,28 @@ ps(data) -)%0Atry: +, timeout=5) %0A res
c256cf15bd6996b394c36b49fc9b7566abeb55f5
Fix struct.unpack format for Python 3
demo/python/cmd.py
demo/python/cmd.py
#!/usr/bin/env python ## It emulates the program "cmd" which is distributed with ## the comedilib software ## Copyright (C) May 2003 Luc Lefebvre <luc.lefebvre@mcgill.ca> ## Mar 2012 W. Trevor King <wking@drexel.edu> ## ## This program is free software; you can redistribute it and/or ## modify it under ...
Python
0.999997
@@ -4332,16 +4332,17 @@ n(data)/ +/ 2 # 2 by
85775847e93b35ac19e09962bc2b10f9be666e33
Update analysis.py with new finallist.py method
analysis.py
analysis.py
import random import linecache from unidecode import unidecode # ACTUALLY: pick a random line in links-sorted, and translate the numbers from there # Get a random node, and pull that line from the links doc––want this to be an option # Pull from links because some titles don't have link lines lineno = random.randint(...
Python
0
@@ -57,16 +57,224 @@ decode%0A%0A +# Process links into list%0Afinallist = %5BNone%5D * 5716809%0Awith open('links-simple-sorted.txt', 'r') as src:%0A%09for line in src:%0A%09%09%5BoNode, dNode%5D = line.split(':')%0A%09%09finallist%5Bint(oNode)%5D = dNode.rstrip('%5Cn')%5B1:%5D%0A%0A # ACTUAL @@ -413,10 +413,10 @@ ...
6a3f0ade1d8fe16eeda6d339220b7ef877b402e5
Add no-break options
LFI.TESTER.py
LFI.TESTER.py
''' @KaiyiZhang Github ''' import sys import urllib2 import getopt import time target = '' depth = 6 file = 'etc/passwd' html = '' prefix = '' url = '' keyword='root' def usage(): print "LFI.Tester.py Help:" print "Usage: LFI.TESTER.py -t [-d] [-f] [-k]" print " -t,--target The test url" print " -d,--depth ...
Python
0.998376
@@ -158,15 +158,31 @@ word -= + = 'root' +%0Aforce = False %0A%0Ade @@ -605,16 +605,17 @@ t:d:f:k: +n %22,%5B%22help @@ -653,16 +653,27 @@ eyword=%22 +,%22no-break%22 %5D)%0A%09%09for @@ -1142,17 +1142,66 @@ keyword%0A +%09%09%09if opt in(%22-n%22,%22--no-break%22):%0A%09%09%09%09force = True %0A - except g ...
68c0c054e5b9874f8a6423c35fb83c9de351b9e0
fix doc build
examples/plot_benktander.py
examples/plot_benktander.py
""" ==================================================================== Benktander: Relationship between Chainladder and BornhuetterFerguson ==================================================================== This example demonstrates the relationship between the Chainladder and BornhuetterFerguson methods by way fo...
Python
0
@@ -823,55 +823,8 @@ onal -%0Amedmal_prem.rename('development', %5B'premium'%5D) %0A%0A#
15307ebe2c19c1a3983b0894152ba81fdde34619
Add comment on dist of first function
exp/descriptivestats.py
exp/descriptivestats.py
import pandas import numpy import matplotlib.pyplot as plt def univariate_stats(): num_examples = 1000 z = pandas.Series(numpy.random.randn(num_examples)) # Minimum print(z.min()) # Maximum print(z.max()) # Mean print(z.mean()) # Median print(z.median()) # Variance pri...
Python
0
@@ -70,32 +70,94 @@ ariate_stats():%0A + # Generate 1000 random numbers from a normal distribution%0A num_examples
7ff6a0dc3a4f6f1ed47f999340f25fe3d5546bd4
fix command order in shell help test
tests/ps_schedstatistics/tests/01-run.py
tests/ps_schedstatistics/tests/01-run.py
#!/usr/bin/env python3 # Copyright (C) 2017 Inria # # This file is subject to the terms and conditions of the GNU Lesser # General Public License v2.1. See the file LICENSE in the top level # directory for more details. import sys from testrunner import run PS_EXPECTED = ( (r'\tpid | name | state...
Python
0.000001
@@ -1850,71 +1850,8 @@ -')%0A - child.expect_exact('reboot Reboot the node')%0A @@ -1961,16 +1961,79 @@ eads.')%0A + child.expect_exact('reboot Reboot the node')%0A %0A%0Adef _c
323dbf3bfac8cbfefb90d0b94be0eef245d38f4b
make test short
malss/test.py
malss/test.py
# -*- coding: utf-8 -*- from sklearn.datasets.samples_generator import make_classification,\ make_regression from malss import MALSS import pandas as pd from nose.plugins.attrib import attr import numpy as np def test_classification_2classes_small(): X, y = make_classification(n_samples=1000, ...
Python
0.000443
@@ -2017,32 +2017,34 @@ ', n_jobs=3)%0A + # cls.execute()%0A @@ -2139,24 +2139,26 @@ ms) == 4%0A + # assert cls.
f2805104cd079a937c6efe03414fe9d0dc4ab3d1
Work around Galaxy inability to handle optional select parameter with dynamic option
__init__.py
__init__.py
#!/usr/bin/env python ### # Part of the Adaptive Divergence through Direction of Selection workflow. # Copyright (C) 2011 Tim te Beek <tim.te.beek@nbic.nl> # # 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...
Python
0
@@ -5498,16 +5498,50 @@ ainder:%0A + print '%5Cn'.join(args)%0A
9af7c8bfc22a250ce848d50ca26877e177f767c1
Fix execution on Monday
management.py
management.py
from logging import _nameToLevel as nameToLevel from argparse import ArgumentParser from Common.emailer import Emailer from DesksReminder.reminders import HelpDeskTechReminder, HelpDeskLabReminder, HelpDeskOtherReminder, \ UrgentDeskReminder, AccountsDeskReminder from HelpDesk.synchr...
Python
0.000047
@@ -1501,17 +1501,17 @@ oday == -2 +0 :%0A
ecd2821a99dee895f3ab7c5dbcc6d86983268560
Update src url for dev in views
__init__.py
__init__.py
from flask import Flask, request, redirect, url_for from twilio.rest import TwilioRestClient from PIL import Image, ImageDraw, ImageFont import time app = Flask(__name__, static_folder='static', static_url_path='') client = TwilioRestClient( account='ACb01b4d6edfb1b41a8b80f5fed2c19d1a', token='97e6b9c0074b27...
Python
0
@@ -1461,22 +1461,23 @@ p:// -12dcb913.ngrok +dev.thevariable .com
be0bb9e8dc4deeff2771a2583647cc4125ceb506
Fix incorrect merge.
__init__.py
__init__.py
# Copyright (C) 2005-2007 Jelmer Vernooij <jelmer@samba.org> # 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 License, or # (at your option) any later version. # This pr...
Python
0.000001
@@ -3221,51 +3221,8 @@ %22)%0A%0A -check_bzrlib_version(required_bzr_version)%0A chec
49ba0e32d8d27b997f80d5420ff6b05ae1cc4461
move stuff around in init
__init__.py
__init__.py
# -*- coding: utf-8 -*- from flask import (Flask, request, render_template, redirect, url_for, jsonify) import json from ming import (create_datastore, Session, collection, Field, Document, schema) from bson.objectid import ObjectId app...
Python
0.000001
@@ -314,70 +314,8 @@ Id%0A%0A -app = Flask(__name__)%0Aapp.config%5B'STATIC_FOLDER'%5D = 'static'%0A%0A from @@ -859,16 +859,78 @@ icles)%0A%0A +app = Flask(__name__)%0Aapp.config%5B'STATIC_FOLDER'%5D = 'static'%0A%0A @app.rou @@ -1182,17 +1182,16 @@ s += -( b.bibtex @@ -1199,17 +1199,16 @@ + '%3Cbr%3E' -) ...
598bb39414825ff8ab561babb470b85f06c58020
Update __init__.py
__init__.py
__init__.py
from mlpack import linear_regression from mlpack import logistic_regression """ MlPack ====== Provides 1. A Variety of Machine learning packages 2. Good and Easy hand written programs with good documentation 3. Linear Regression, Logistic Regression Available subpackages --------------------- 1. Linear Regr...
Python
0
@@ -1,27 +1,45 @@ from mlpack +.linear_regression import linear_r @@ -59,16 +59,36 @@ m mlpack +.logistic_regression import
b8d0344f0ca5c906e43d4071bc27a8d2acf114d1
bump version
webmpris/__init__.py
webmpris/__init__.py
__version__ = '1.0' __description__ = 'REST API to control media players via MPRIS2 interfaces' requires = [ 'pympris' ] README = """webmpris is a REST API to control media players via MPRIS2 interfaces. Supported intefaces: org.mpris.MediaPlayer2 via /players/<id>/Root org.mpris.MediaPlayer2.Player ...
Python
0
@@ -14,9 +14,9 @@ '1. -0 +1 '%0A__
9acf7857167bb87438c7c0bebca1a7eda93ac23b
Make saml2idp compatible with Django 1.9
saml2idp/registry.py
saml2idp/registry.py
# -*- coding: utf-8 -*- from __future__ import absolute_import """ Registers and loads Processor classes from settings. """ # Python imports import logging # Django imports from django.utils.importlib import import_module from django.core.exceptions import ImproperlyConfigured # Local imports from . import exceptions f...
Python
0
@@ -121,75 +121,29 @@ %22%22%22%0A -# Python imports%0Aimport logging%0A# Django imports%0Afrom django.utils. +import logging%0A%0Afrom impo @@ -169,16 +169,17 @@ _module%0A +%0A from dja @@ -230,23 +230,8 @@ red%0A -# Local imports %0Afro @@ -289,23 +289,8 @@ ta%0A%0A -# Setup logging %0Alog @@ -324,16 +324,1...
4b335fbd082c34f631f903574bedb355f330fa63
Update gamess.py for python 2.6 format
src/parser/gamess_us.py
src/parser/gamess_us.py
# __ # /__ _. ._ _ _ _ _ _ # \_| (_| | | | (/_ _> _> |_| _> # from src.parser_handler import get_dict_ele import re def parse_basis_data_gamess_us(data, name, des, elts, debug=False): """Parse the basis data raw html of gamess-us to get a nice tuple Return (name, description, [[ele, data_e...
Python
0.000001
@@ -3294,16 +3294,17 @@ mon = %22%7B +0 :%3E3%7D%22.fo @@ -3346,16 +3346,17 @@ on += %22%7B +0 :%3E15.7f%7D @@ -3410,32 +3410,33 @@ _s = common + %22%7B +0 :%3E23.7f%7D%22.format @@ -3532,16 +3532,17 @@ mon + %22%7B +0 :%3E23.7f%7D
b8cd1b6869651cd0cbe2cbeebc59c641f13e0e5b
Add todo for scopes permissions
polyaxon/scopes/permissions/scopes.py
polyaxon/scopes/permissions/scopes.py
from scopes.authentication.ephemeral import is_ephemeral_user from scopes.authentication.internal import is_internal_user from scopes.permissions.base import PolyaxonPermission class ScopesPermission(PolyaxonPermission): """ Scopes based Permissions, depends on the authentication backend. """ ENTITY =...
Python
0
@@ -720,32 +720,155 @@ return True%0A%0A + # TODO Add internal/ephemeral here%0A # (if that type of auth is allowed, then we should not check he scope)%0A%0A if reque
ebacfc3ffe1cd1c9c58908c1f9dd78fe9eca9acd
fix for lambton not needed
ca_on_lambton/people.py
ca_on_lambton/people.py
from pupa.scrape import Scraper from utils import lxmlize, CanadianLegislator as Legislator import re COUNCIL_PAGE = 'http://www.lambtononline.ca/home/government/accessingcountycouncil/countycouncillors/Pages/default.aspx' SGC = { 'St. Clair' : '3538003', 'Dawn-Euphemia' : '3538007', 'Brooke-Alvinst...
Python
0
@@ -224,393 +224,8 @@ x'%0A%0A -SGC = %7B%0A 'St. Clair' : '3538003',%0A 'Dawn-Euphemia' : '3538007',%0A 'Brooke-Alvinston' : '3538015',%0A 'Enniskillen' : '3538016',%0A 'Oil Springs' : '3538018',%0A 'Petrolia' : '3538019',%0A 'Sarnia' : '3538030',%0A 'Point Edward' : ...
a8d701c75e4e0b880a7d3fedb6464aa875958f70
Version 0.99.3
__init__.py
__init__.py
# Copyright (c) 2003-2005 Jimmy Retzlaff, 2008 Konstantin Yegupov # # 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,...
Python
0
@@ -1641,17 +1641,17 @@ = '0.99. -2 +3 '%0D%0A%0D%0Atry
c202a3a945453a4955f0acbf369227f8c9cee148
Rename link in init
__init__.py
__init__.py
import os from .dataset import * __path__ = [os.path.join(os.path.dirname(__file__), 'dataset')]
Python
0
@@ -10,23 +10,25 @@ %0A%0Afrom . -dataset +batchflow import @@ -86,15 +86,17 @@ ), ' -dataset +batchflow ')%5D%0A
4a4731eda22170a77bb24dd3c7fc8ff4cafecf9d
bump version to 2.7b1
__init__.py
__init__.py
"""distutils The main package for the Python Module Distribution Utilities. Normally used from a setup script as from distutils.core import setup setup (...) """ __revision__ = "$Id$" # Distutils version # # Updated automatically by the Python release process. # #--start constants-- __version__ = "2.7a4" #-...
Python
0
@@ -311,10 +311,10 @@ %222.7 -a4 +b1 %22%0A#-
1ae0b75fb909b3fa1bd42702d4ab2a943a8f7155
Version bump for 3.5.0b1.
__init__.py
__init__.py
"""distutils The main package for the Python Module Distribution Utilities. Normally used from a setup script as from distutils.core import setup setup (...) """ # Distutils version # # Updated automatically by the Python release process. # #--start constants-- __version__ = "3.5.0a4" #--end constants--
Python
0
@@ -290,10 +290,10 @@ .5.0 -a4 +b1 %22%0A#-
bc43827ee733af9c37ca3b97b471ec1d2cde294b
Add unsubcribed handler to server.
echidna/server.py
echidna/server.py
import json from cyclone.web import Application, RequestHandler, HTTPError from cyclone.websocket import WebSocketHandler from echidna.cards.memory_store import InMemoryCardStore class EchidnaServer(Application): def __init__(self, root, **settings): self.store = InMemoryCardStore() handlers = [...
Python
0
@@ -2971,24 +2971,255 @@ e, cards))%0A%0A + def handle_unsubscribed(self, msg):%0A channel_name = msg.get(%22channel%22)%0A if not isinstance(channel_name, unicode):%0A return%0A d = self.store.unsubscribe(channel_name, self.client)%0A return d%0A%0A def hand
9940212f5d0cf4860d0dc092dc55031218de490b
Fix test return type
gym/monitoring/tests/test_monitor.py
gym/monitoring/tests/test_monitor.py
import glob import os import gym from gym import error, spaces from gym import monitoring from gym.monitoring import monitor from gym.monitoring.tests import helpers class FakeEnv(gym.Env): def _render(self, close=True): raise RuntimeError('Raising') def test_monitor_filename(): with helpers.tempdir(...
Python
0.000032
@@ -3233,20 +3233,17 @@ return -None +0 %0A%0A de @@ -3280,20 +3280,17 @@ return -None +0 , 0, Fal
9d1317231a1c5d62fddf130c78e3942a08651d42
Fix for numpy linspace but where count must be an integer
geophys_utils/_transect_utils.py
geophys_utils/_transect_utils.py
#!/usr/bin/env python #=============================================================================== # Copyright 2017 Geoscience Australia # # 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...
Python
0.000019
@@ -4739,16 +4739,20 @@ count = +int( (utm_lin @@ -4780,32 +4780,33 @@ // sample_metres +) %0A # print
86eb16da4a6c3579eb514fa5ca73def7be8afd84
Add noqa codestyle
geotrek/api/v2/views/__init__.py
geotrek/api/v2/views/__init__.py
from rest_framework import response, permissions from rest_framework.views import APIView from django.conf import settings from django.contrib.gis.geos import Polygon from .authent import StructureViewSet # noqa from .common import TargetPortalViewSet, ThemeViewSet, SourceViewSet, ReservationSystemViewSet, LabelViewS...
Python
0
@@ -768,32 +768,40 @@ t, RouteViewSet, + # noqa %0A @@ -855,32 +855,40 @@ PracticeViewSet, + # noqa %0A @@ -1699,16 +1699,24 @@ ViewSet, + # noqa %0A
ad73ef8e4433645cd72bc92439c4d07c5d1f6455
Add test for radian ticks
astropy/visualization/tests/test_units.py
astropy/visualization/tests/test_units.py
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst import io import pytest from astropy.utils.compat.optional_deps import HAS_PLT if HAS_PLT: import matplotlib.pyplot as plt from astropy import units as u from astropy.coordinates import Angle from astropy.visualization.units...
Python
0
@@ -210,16 +210,35 @@ t as plt +%0Aimport numpy as np %0A%0Afrom a @@ -3521,28 +3521,379 @@ hist(%5B%5D * u.mmag, bins=100)%0A +%0A%0A@pytest.mark.skipif('not HAS_PLT')%0Adef test_radian_formatter():%0A with quantity_support():%0A fig, ax = plt.subplots()%0A ax.plot(%5B1, 2, 3%5D, %5B1, 2, 3%5D * u....
30baad1c058a3e929c88b7e10799031e0a0b4bf6
Fix a typo in rebaseeditor comment
git_upstream/lib/rebaseeditor.py
git_upstream/lib/rebaseeditor.py
# # Copyright (c) 2012, 2013, 2014 Hewlett-Packard Development Company, L.P. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
Python
0.008335
@@ -790,17 +790,17 @@ tor%22%0A%0A# -i +e nsure na
dded8beb4a075dfc44938d5355727cc4058ba80b
Fix typo
athenet/data_loader/data_loader_buffer.py
athenet/data_loader/data_loader_buffer.py
"""Buffer for storing large network data.""" import numpy as np import theano class Buffer(object): """Buffer storing data from contiguous subsequence of minibatches. Content of a buffer is a 4-dimensional floating-point tensor. """ def __init__(self, data_loader=None): """Create data Buffe...
Python
0.999999
@@ -1355,17 +1355,17 @@ o be use -s +d in data
edc8761296ad65330e51e98a6cc602dc2e9033b6
def __unicode__ for Document
deputies/models.py
deputies/models.py
# lachambre.be to json sausage machine # Copyright (C) 2011 Laurent Peuch <cortex@worlddomination.be> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # Li...
Python
0.999998
@@ -3732,24 +3732,112 @@ ique=True)%0A%0A + def __unicode__(self):%0A return %22%25s - %25s%22 %25 (self.lachambre_id, self.title)%0A%0A%0A class Writte
e94e7ae0f52ca0f566127ac824a7471751f16924
version 0.5.3.1
api/info.py
api/info.py
from collections import OrderedDict from rest_framework import viewsets, mixins, response, reverse NAME = 'vsemionov.notes.api' VERSION = '0.5.3' class InfoViewSet(mixins.ListModelMixin, viewsets.GenericViewSet): view_name = 'Info' @staticmethod def _get_user_url(request): ret...
Python
0.000003
@@ -139,16 +139,18 @@ = '0.5.3 +.1 '%0A%0A%0Aclas
d6d70ed4e27b0e43536ea0e55321189a19bd146f
add graphene debug middleware
web/settings.py
web/settings.py
""" Django settings for doublefault project. Generated by 'django-admin startproject' using Django 1.11.3. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ impor...
Python
0.000002
@@ -1193,16 +1193,98 @@ .schema' +,%0A 'MIDDLEWARE': %5B%0A 'graphene_django.debug.DjangoDebugMiddleware',%0A %5D %0A%7D%0A%0AMIDD
76f59a0be5fd8321d71fe5a7deb223daac2a5181
version 0.5.17
api/info.py
api/info.py
from collections import OrderedDict from rest_framework import viewsets, mixins, response, reverse NAME = 'vsemionov.boomerang.api' VERSION = '0.5.16' class ApiInfoViewSet(mixins.ListModelMixin, viewsets.GenericViewSet): view_name = 'Api Info' @staticmethod def _get_user_url(request):...
Python
0.000001
@@ -147,9 +147,9 @@ .5.1 -6 +7 '%0A%0A%0A
a962f1e0aced277e673eddc6b70e316bba482f24
fix typo
api/mail.py
api/mail.py
from flask import Flask, render_template from api import app from api.models import User, Invites, Reset from flask_mail import Mail from flask_mail import Message app.config.update( MAIL_SERVER = 'smtp.yandex.com', MAIL_PORT = 465, MAIL_USE_SSL = True , MAIL_USERNAME = 'cross-apps@yandex.com', ...
Python
0.998939
@@ -1414,14 +1414,8 @@ ail_ -reset_ temp
f9a1da6e60bfbd9c9e5be769f1223d628cec6481
set the module version
base_external_referentials/__openerp__.py
base_external_referentials/__openerp__.py
# -*- encoding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2009 Akretion (<http://www.akretion.com>). All Rights Reserved # authors: Raphaël Valyi, Sharoon Thomas # # This program is free software: you...
Python
0
@@ -1081,16 +1081,18 @@ sion': ' +6. 1.0',%0A
6eeb2b4f79c2f735552cf7c061b48425d3299e51
Use argparse.
validate_equajson.py
validate_equajson.py
#! /usr/bin/env python3 import json import jsonschema import sys import os def main(equajson_path, schema_path): global filepath filepath = equajson_path with open(schema_path) as schema_file: try: equajson_schema = json.load(schema_file) except: s...
Python
0.000001
@@ -67,16 +67,32 @@ mport os +%0Aimport argparse %0A%0Adef ma @@ -1103,199 +1103,365 @@ -num_args = len(sys.argv) - 1%0A if num_args != 2:%0A sys.stderr.write(%22Usage: python %22+sys.argv%5B0%5D+%22 equajson.json schema.json%22+'%5Cn') +parser = argparse.ArgumentParser(description='validate equajson ...
72fd62dca8e87e67833698dd7e38b879c54d6e27
use env. variable for sender
api/mail.py
api/mail.py
from flask import Flask, render_template from api import app from api.models import User, Invite, Reset, ComponentUser from flask_mail import Mail from flask_mail import Message import os app.config.update( MAIL_SERVER = str(os.environ['MAIL_SERVER']), MAIL_PORT = str(os.environ['MAIL_PORT']), MAIL_USE_SS...
Python
0.999982
@@ -1476,39 +1476,48 @@ -'cross-apps@yandex.com' +str(os.environ%5B'MAIL_USERNAME'%5D) ,%0A @@ -2851,39 +2851,48 @@ -'cross-apps@yandex.com' +str(os.environ%5B'MAIL_USERNAME'%5D) ,%0A @@ -3788,31 +3788,40 @@ -'cross-apps@yandex.com' +str(os.environ%5B'MAIL_USERNAME'%5D) ,%0A
3de4e87af5502feb1186cb1a11b56df018ae6e19
Fix comment typo
bears/python/requirements/PySafetyBear.py
bears/python/requirements/PySafetyBear.py
import os from collections import namedtuple import pkg_resources import re from safety import safety from coalib.bears.LocalBear import LocalBear from dependency_management.requirements.PipRequirement import PipRequirement from coalib.results.Result import Result from coalib.settings.Setting import path from coalib....
Python
0
@@ -4684,17 +4684,16 @@ nts pars -e able fro
5ecd20d86a0fe2586cbac4daadd34bb13443f94d
set central prototype executable
central/CentralProto.py
central/CentralProto.py
#!/usr/bin/python # -*- coding: utf-8 -*- import time from app.nrf24 import NRF24 from app.cipher import XTEA from app.message import MessageType # RF Communication constants NETWORK = 0xC05A SERVER_ID = 0x01 # Hardware constants CE_PIN = 25 # Timing constants PERIOD_REFRESH_KEY_SECS = 120.0 CODE = '123456' #TODO...
Python
0.000001
e6cb1617e588d6b276fe01c401f2c1b34cf88d5f
fix stuff
api/read.py
api/read.py
import datetime from django.http import JsonResponse from dateutil.parser import parse from django.contrib.auth.decorators import login_required from api.models import ( Applicant, Client, Disabilities, EmploymentEducation, Enrollment, HealthAndDV, IncomeBenefits, Services ) def get_applicants(request): appli...
Python
0.000002
@@ -1181,33 +1181,8 @@ lse) -%0A%3C%3C%3C%3C%3C%3C%3C Updated upstream %0A%0Ade
End of preview. Expand in Data Studio

Dataset Card for "commits-pjj-diff"

More Information needed

Downloads last month
74