commit stringlengths 40 40 | old_file stringlengths 4 184 | new_file stringlengths 4 184 | old_contents stringlengths 1 3.6k | new_contents stringlengths 5 3.38k | subject stringlengths 15 778 | message stringlengths 16 6.74k | lang stringclasses 201
values | license stringclasses 13
values | repos stringlengths 6 116k | config stringclasses 201
values | content stringlengths 137 7.24k | diff stringlengths 26 5.55k | diff_length int64 1 123 | relative_diff_length float64 0.01 89 | n_lines_added int64 0 108 | n_lines_deleted int64 0 106 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fae5db20daa1e7bcb1b915ce7f3ca84ae8bd4a1f | client/scripts/install-plugin.py | client/scripts/install-plugin.py | import argparse, shutil, os
import ue4util
def install_plugin(project_file, plugin_folder):
project_folder = os.path.dirname(project_file)
install_folder = os.path.join(project_folder, 'Plugins', 'unrealcv')
if os.path.isdir(install_folder):
shutil.rmtree(install_folder) # Complete remove old versio... | import argparse, shutil, os
import ue4util
def install_plugin(project_file, plugin_folder):
project_folder = os.path.dirname(project_file)
install_folder = os.path.join(project_folder, 'Plugins', 'unrealcv')
if os.path.isdir(install_folder):
shutil.rmtree(install_folder) # Complete remove old versio... | Update relative path with respect to __file__ | Update relative path with respect to __file__
| Python | mit | qiuwch/unrealcv,qiuwch/unrealcv,unrealcv/unrealcv,unrealcv/unrealcv,qiuwch/unrealcv,unrealcv/unrealcv,qiuwch/unrealcv,unrealcv/unrealcv,unrealcv/unrealcv,qiuwch/unrealcv,qiuwch/unrealcv | python | ## Code Before:
import argparse, shutil, os
import ue4util
def install_plugin(project_file, plugin_folder):
project_folder = os.path.dirname(project_file)
install_folder = os.path.join(project_folder, 'Plugins', 'unrealcv')
if os.path.isdir(install_folder):
shutil.rmtree(install_folder) # Complete r... | import argparse, shutil, os
import ue4util
def install_plugin(project_file, plugin_folder):
project_folder = os.path.dirname(project_file)
install_folder = os.path.join(project_folder, 'Plugins', 'unrealcv')
if os.path.isdir(install_folder):
shutil.rmtree(install_folder) # Complete rem... | 3 | 0.136364 | 2 | 1 |
4c4664b9107e485baf90861f006a31538418993e | README.md | README.md | An open-source metronome that just works.
Cool features:
- Works offline using HTML5 Application Cache
- Can "add to home screen" on iOS and Android to use as fullscreen apps
___
- Made by [Jon](https://lasercar.github.io)
- [LICENSE.txt](https://github.com/simplemetronome/simplemetronome.github.io/blob/master/LICEN... | An open-source metronome that just works.
- Made by [Jon](https://lasercar.github.io)
Features:
- Uses CSS animation
- Works offline using HTML5 Application Cache
- Can "add to home screen" on iOS and Android to use as fullscreen apps
___
- [LICENSE.txt](https://github.com/simplemetronome/simplemetronome.github.io/... | Move "Made by" higher up in readme | Move "Made by" higher up in readme
Makes it readable on mobile github without clicking "View all of README"
| Markdown | mit | SimpleMetronome/simplemetronome.github.io | markdown | ## Code Before:
An open-source metronome that just works.
Cool features:
- Works offline using HTML5 Application Cache
- Can "add to home screen" on iOS and Android to use as fullscreen apps
___
- Made by [Jon](https://lasercar.github.io)
- [LICENSE.txt](https://github.com/simplemetronome/simplemetronome.github.io/b... | An open-source metronome that just works.
- Cool features:
+ - Made by [Jon](https://lasercar.github.io)
+
+ Features:
+ - Uses CSS animation
- Works offline using HTML5 Application Cache
- Can "add to home screen" on iOS and Android to use as fullscreen apps
___
- - Made by [Jon](https://lasercar.git... | 6 | 0.545455 | 4 | 2 |
48ef0f93c6bc570aeddf2d5f72399be0c2b5fb4b | _up.sh | _up.sh |
PORT=$1
bundle exec ruby app.rb -p $PORT
|
PORT=$1
bundle exec ruby app.rb -p $PORT
# for production
# bundle exec ruby app.rb -p $PORT -e production
| Add command example for production | Add command example for production
| Shell | mit | sonota88/sinatra-skelton,sonota88/sinatra-skelton,sonota88/sinatra-skelton,sonota88/sinatra-skelton | shell | ## Code Before:
PORT=$1
bundle exec ruby app.rb -p $PORT
## Instruction:
Add command example for production
## Code After:
PORT=$1
bundle exec ruby app.rb -p $PORT
# for production
# bundle exec ruby app.rb -p $PORT -e production
|
PORT=$1
bundle exec ruby app.rb -p $PORT
+
+ # for production
+ # bundle exec ruby app.rb -p $PORT -e production | 3 | 0.75 | 3 | 0 |
b96dab3bcd836277e9fc91d1ed4f0714e70becd4 | articles/_posts/2006-03-30-developers-gone-wild-opera-web-apps-blog.md | articles/_posts/2006-03-30-developers-gone-wild-opera-web-apps-blog.md | ---
title: 'Developers Gone Wild: Opera Web Applications Team Starts Blog'
authors:
- thomas-ford
tags:
- webapps
- opera-9
- labs
layout: article
---
Opera has been hard at work creating a browser that acts as a platform for Web applications. Our first step in realizing this new world was taken with the launch of Ope... | ---
title: 'Developers Gone Wild: Opera Web Applications Team Starts Blog'
authors:
- thomas-ford
intro: 'Opera has been hard at work creating a browser that acts as a platform for Web applications. Our first step in realizing this new world was taken with the launch of Opera Platform, the first mobile Ajax framework. ... | Add intro for article “Developers Gone Wild: Opera Web Applications Team Starts Blog” | Add intro for article “Developers Gone Wild: Opera Web Applications Team Starts Blog”
Ref. #19.
| Markdown | apache-2.0 | payeldillip/devopera,Mtmotahar/devopera,kenarai/devopera,kenarai/devopera,shwetank/devopera,Jasenpan1987/devopera,cvan/devopera,SelenIT/devopera,kenarai/devopera,Mtmotahar/devopera,Jasenpan1987/devopera,operasoftware/devopera,michaelstewart/devopera,Jasenpan1987/devopera,michaelstewart/devopera,andreasbovens/devopera,s... | markdown | ## Code Before:
---
title: 'Developers Gone Wild: Opera Web Applications Team Starts Blog'
authors:
- thomas-ford
tags:
- webapps
- opera-9
- labs
layout: article
---
Opera has been hard at work creating a browser that acts as a platform for Web applications. Our first step in realizing this new world was taken with t... | ---
title: 'Developers Gone Wild: Opera Web Applications Team Starts Blog'
authors:
- thomas-ford
+ intro: 'Opera has been hard at work creating a browser that acts as a platform for Web applications. Our first step in realizing this new world was taken with the launch of Opera Platform, the first mobile Ajax f... | 1 | 0.0625 | 1 | 0 |
0a078a7649a27614731b15a0f3867f7e025452e3 | website/app/application/core/projects/project/project-controller.js | website/app/application/core/projects/project/project-controller.js | Application.Controllers.controller('projectsProject',
["$scope", "provStep", "ui",
"project", "current", "pubsub", projectsProject]);
function projectsProject ($scope, provStep, ui, project, current, pubsub) {
$scope.isActive = function (tab) {... | Application.Controllers.controller('projectsProject',
["$scope", "provStep", "ui",
"project", "current", "pubsub", "recent",
projectsProject]);
function projectsProject ($scope, provStep, ui, project, current, pu... | Move code around to put functions at bottom. | Move code around to put functions at bottom.
| JavaScript | mit | materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org | javascript | ## Code Before:
Application.Controllers.controller('projectsProject',
["$scope", "provStep", "ui",
"project", "current", "pubsub", projectsProject]);
function projectsProject ($scope, provStep, ui, project, current, pubsub) {
$scope.isActive = ... | Application.Controllers.controller('projectsProject',
["$scope", "provStep", "ui",
- "project", "current", "pubsub", projectsProject]);
? ^ -- ^^^^^^^^^^^
+ ... | 13 | 0.565217 | 8 | 5 |
0e62a14420769195ed6dbc3fb5eb1cc39caad7ae | README.md | README.md |
This repository provide frameworks in various language to do integration
test that calls bazel and analyze its output.
|
This repository provide frameworks in various language to do integration
test that calls bazel and analyze its output.
__To do before it can be considered as usable__:
- Document
- Switch docker_rules to it
- Switch eclipse plugin to it
- Switch Bazel to it
| Add a to do list before landing | Add a to do list before landing
| Markdown | apache-2.0 | bazelbuild/bazel-integration-testing,bazelbuild/bazel-integration-testing,bazelbuild/bazel-integration-testing | markdown | ## Code Before:
This repository provide frameworks in various language to do integration
test that calls bazel and analyze its output.
## Instruction:
Add a to do list before landing
## Code After:
This repository provide frameworks in various language to do integration
test that calls bazel and analyze its out... |
This repository provide frameworks in various language to do integration
test that calls bazel and analyze its output.
+ __To do before it can be considered as usable__:
+ - Document
+ - Switch docker_rules to it
+ - Switch eclipse plugin to it
+ - Switch Bazel to it
+ | 6 | 1.2 | 6 | 0 |
61849da47e71859eebee049a7bb5e997ddd4b449 | settings.json | settings.json | {
"C_Cpp.intelliSenseEngine": "Default",
"editor.autoClosingBrackets": false,
"editor.fontFamily": "'Fira Code', Consolas",
"editor.fontLigatures": true,
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"files.associations": {
"*.txx": "cpp"... | {
"C_Cpp.intelliSenseEngine": "Default",
"editor.autoClosingBrackets": false,
"editor.fontFamily": "'Fira Code', Consolas",
"editor.fontLigatures": true,
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"files.associations": {
"*.txx": "cpp"... | Remove rust-client setting that no longer exists | Remove rust-client setting that no longer exists
| JSON | mit | GrayShade/dotfiles,lnicola/dotfiles,lnicola/dotfiles | json | ## Code Before:
{
"C_Cpp.intelliSenseEngine": "Default",
"editor.autoClosingBrackets": false,
"editor.fontFamily": "'Fira Code', Consolas",
"editor.fontLigatures": true,
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"files.associations": {
... | {
"C_Cpp.intelliSenseEngine": "Default",
"editor.autoClosingBrackets": false,
"editor.fontFamily": "'Fira Code', Consolas",
"editor.fontLigatures": true,
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"files.associations": {
... | 1 | 0.033333 | 0 | 1 |
139a3615b976cd3779ee7a8e6472a0c9db946b9a | app/views/shared/_footer.html.haml | app/views/shared/_footer.html.haml | .container
%p.text-muted.credit
- if current_user.andand.current_timesheet
.time-left-to-submit-timesheet
| .container
%p.text-muted.credit
- unless current_user.andand.current_timesheet.andand.submitted?
.time-left-to-submit-timesheet
| Remove counter if user has submitted his time sheet | Remove counter if user has submitted his time sheet | Haml | mit | danevron/hours-report-app,danevron/hours-report-app,danevron/hours-report-app | haml | ## Code Before:
.container
%p.text-muted.credit
- if current_user.andand.current_timesheet
.time-left-to-submit-timesheet
## Instruction:
Remove counter if user has submitted his time sheet
## Code After:
.container
%p.text-muted.credit
- unless current_user.andand.current_timesheet.andand.submitted?... | .container
%p.text-muted.credit
- - if current_user.andand.current_timesheet
? ^^
+ - unless current_user.andand.current_timesheet.andand.submitted?
? ^^^^^^ ++++++++++++++++++
.time-left-to-submit-timesheet | 2 | 0.5 | 1 | 1 |
5d8ca3498d794ab264377b1bc31f52fcd97210ba | setup.py | setup.py |
import setuptools
setuptools.setup(
name="jack-select",
version="0.1",
url="https://github.com/SpotlightKid/jack-select",
author="Christopher Arndt",
author_email="chris@chrisarndt.de",
description="A systray app to set the JACK configuration from QJackCtl "
"presets via DBus"... |
import setuptools
setuptools.setup(
name="jack-select",
version="0.1b1",
url="https://github.com/SpotlightKid/jack-select",
author="Christopher Arndt",
author_email="chris@chrisarndt.de",
description="A systray app to set the JACK configuration from QJackCtl "
"presets via DBu... | Add b1 to version number; add more keywords | Add b1 to version number; add more keywords
| Python | mit | SpotlightKid/jack-select,SpotlightKid/jack-select | python | ## Code Before:
import setuptools
setuptools.setup(
name="jack-select",
version="0.1",
url="https://github.com/SpotlightKid/jack-select",
author="Christopher Arndt",
author_email="chris@chrisarndt.de",
description="A systray app to set the JACK configuration from QJackCtl "
"p... |
import setuptools
setuptools.setup(
name="jack-select",
- version="0.1",
+ version="0.1b1",
? ++
url="https://github.com/SpotlightKid/jack-select",
author="Christopher Arndt",
author_email="chris@chrisarndt.de",
description="A systray app to set the JA... | 4 | 0.105263 | 2 | 2 |
37a0cb41a88114ab9edb514e29447756b0c3e92a | tests/test_cli.py | tests/test_cli.py |
from click.testing import CliRunner
import pytest
from cibopath.cli import main
from cibopath import __version__
runner = CliRunner()
@pytest.fixture(params=['-V', '--version'])
def version_cli_flag(request):
return request.param
def test_cli_group_version_option(version_cli_flag):
result = runner.invoke... |
import pytest
from cibopath import __version__
@pytest.fixture(params=['-V', '--version'])
def version_cli_flag(request):
return request.param
def test_cli_group_version_option(cli_runner, version_cli_flag):
result = cli_runner([version_cli_flag])
assert result.exit_code == 0
assert result.output ... | Use cli_runner fixture in test | Use cli_runner fixture in test
| Python | bsd-3-clause | hackebrot/cibopath | python | ## Code Before:
from click.testing import CliRunner
import pytest
from cibopath.cli import main
from cibopath import __version__
runner = CliRunner()
@pytest.fixture(params=['-V', '--version'])
def version_cli_flag(request):
return request.param
def test_cli_group_version_option(version_cli_flag):
result... |
- from click.testing import CliRunner
import pytest
- from cibopath.cli import main
from cibopath import __version__
-
- runner = CliRunner()
@pytest.fixture(params=['-V', '--version'])
def version_cli_flag(request):
return request.param
- def test_cli_group_version_option(version_cli_f... | 8 | 0.421053 | 2 | 6 |
49a7968e51ce850428936fb2fc66c905ce8b8998 | head1stpython/Chapter3/sketch.py | head1stpython/Chapter3/sketch.py | import os
os.chdir('/home/israel/Development/Python_Exercises/python-octo-wookie/head1stpython/Chapter3')
#Change path for the current directory
data = open('sketch.txt')
#Start iteration over the text file
for each_line in data:
try:
(role, line_spoken) = each_line.split(':', 1)
... | import os
#Change path for the current directory
os.chdir('/home/israel/Development/Python_Exercises/python-octo-wookie/head1stpython/Chapter3')
#Check if file exists
if os.path.exists('sketch.txt'):
#Load the text file into 'data' variable
data = open('sketch.txt')
#Start iteration over the text fi... | Validate if the file exists (if/else) | Validate if the file exists (if/else)
| Python | unlicense | israelzuniga/python-octo-wookie | python | ## Code Before:
import os
os.chdir('/home/israel/Development/Python_Exercises/python-octo-wookie/head1stpython/Chapter3')
#Change path for the current directory
data = open('sketch.txt')
#Start iteration over the text file
for each_line in data:
try:
(role, line_spoken) = each_line.split... | import os
+ #Change path for the current directory
os.chdir('/home/israel/Development/Python_Exercises/python-octo-wookie/head1stpython/Chapter3')
- #Change path for the current directory
+ #Check if file exists
+ if os.path.exists('sketch.txt'):
+
+ #Load the text file into 'data' variable
- data = ... | 33 | 1.65 | 21 | 12 |
7074e05d85774a69375aee84effc8e367dc73d90 | README.md | README.md | A boilerplate for running a Webpack workflow in Node express
Please read the following article: [The ultimate Webpack setup](http://www.christianalfoni.com/articles/2015_04_19_The-ultimate-webpack-setup) to know more about this boilerplate.
## Major update to project
Inspired by [this project](https://github.com/vesp... | React app that let's you manage discogs tracks for djing
| Update readme with basic description | Update readme with basic description
| Markdown | mit | jackokerman/discogs-dj,jackokerman/discogs-dj,jackokerman/react-discogs-dj,jackokerman/react-discogs-dj | markdown | ## Code Before:
A boilerplate for running a Webpack workflow in Node express
Please read the following article: [The ultimate Webpack setup](http://www.christianalfoni.com/articles/2015_04_19_The-ultimate-webpack-setup) to know more about this boilerplate.
## Major update to project
Inspired by [this project](https:/... | + React app that let's you manage discogs tracks for djing
- A boilerplate for running a Webpack workflow in Node express
-
- Please read the following article: [The ultimate Webpack setup](http://www.christianalfoni.com/articles/2015_04_19_The-ultimate-webpack-setup) to know more about this boilerplate.
-
- ## Major... | 38 | 1.027027 | 1 | 37 |
1922df3771ff349a998e3ba91f12a6785327d54e | Compiler/Platforms/LangPython/Resources/LibraryRegistry.txt | Compiler/Platforms/LangPython/Resources/LibraryRegistry.txt | class Library:
def __init__(self, name, manifestFunction):
self.name = name
self.manifestFunction = manifestFunction
class LibraryRegistry:
def __init__(self, libraries):
self.libraries = {}
self.manifestFunctions = {}
for name in libraries.keys():
canonicalName = name.lower()
... | class Library:
def __init__(self, name, manifestFunction):
self.name = name
self.manifestFunction = manifestFunction
class LibraryRegistry:
def __init__(self, libraries):
self.libraries = {}
for name in libraries.keys():
canonicalName = name.lower()
try:
fnFinderFn =... | Fix Python regression where library required a manifest function to be considered valid. | Fix Python regression where library required a manifest function to be considered valid.
| Text | mit | blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon | text | ## Code Before:
class Library:
def __init__(self, name, manifestFunction):
self.name = name
self.manifestFunction = manifestFunction
class LibraryRegistry:
def __init__(self, libraries):
self.libraries = {}
self.manifestFunctions = {}
for name in libraries.keys():
canonicalName = name.lo... | class Library:
def __init__(self, name, manifestFunction):
self.name = name
self.manifestFunction = manifestFunction
class LibraryRegistry:
def __init__(self, libraries):
self.libraries = {}
- self.manifestFunctions = {}
for name in libraries.keys():
canonicalName = n... | 2 | 0.055556 | 0 | 2 |
f4ef339852feab8d6141601d62c4740aedee7929 | app/views/auth/sessions/new.html.haml | app/views/auth/sessions/new.html.haml | - content_for :page_title do
= t('auth.login')
= simple_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
.omniauth
.block-button.omniauth-pixiv
= t('simple_form.labels.omniauth_pixiv.signin')
.separate= t('simple_form.labels.omniauth.or')
= f.input :email, autofocus: t... | - content_for :page_title do
= t('auth.login')
= simple_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
.omniauth
- if %w(iPhone Safari).all? { |keyword| request.user_agent.include? keyword }
- query = { return_to: user_pixiv_omniauth_authorize_url }.to_query
- link =... | Split pixiv auth button for iOS App | Split pixiv auth button for iOS App
| Haml | agpl-3.0 | pixiv/mastodon,pixiv/mastodon,pixiv/mastodon,pixiv/mastodon | haml | ## Code Before:
- content_for :page_title do
= t('auth.login')
= simple_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
.omniauth
.block-button.omniauth-pixiv
= t('simple_form.labels.omniauth_pixiv.signin')
.separate= t('simple_form.labels.omniauth.or')
= f.input :ema... | - content_for :page_title do
= t('auth.login')
= simple_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
.omniauth
+ - if %w(iPhone Safari).all? { |keyword| request.user_agent.include? keyword }
+ - query = { return_to: user_pixiv_omniauth_authorize_url }.to_query
... | 9 | 0.529412 | 7 | 2 |
92c856b1c9c39b856e2d0f7eff2d331608014c14 | app/controllers/cdx/admin/users_controller.rb | app/controllers/cdx/admin/users_controller.rb | module Cdx
module Admin
class UsersController < ResourceController
end
end
end
| module Cdx
module Admin
class UsersController < ResourceController
before_action :update_without_password, only: :update
private
def update_without_password
if params[:user][:password].blank?
params[:user].delete('password')
params[:user].delete('password_confirmat... | Allow update user without password | Allow update user without password
| Ruby | mit | alexandre025/cdx,alexandre025/cdx,alexandre025/cdx | ruby | ## Code Before:
module Cdx
module Admin
class UsersController < ResourceController
end
end
end
## Instruction:
Allow update user without password
## Code After:
module Cdx
module Admin
class UsersController < ResourceController
before_action :update_without_password, only: :update
pri... | module Cdx
module Admin
class UsersController < ResourceController
+ before_action :update_without_password, only: :update
+
+ private
+
+ def update_without_password
+ if params[:user][:password].blank?
+ params[:user].delete('password')
+ params[:user].de... | 11 | 1.571429 | 11 | 0 |
5d516e0c5ab4ba1741d6a6d498008a9fd7c217b7 | requirements/base.txt | requirements/base.txt | Django==1.9.1
psycopg2==2.5.4
django-leaflet
gunicorn==19.3.0
requests[security]
xlrd
djangorestframework==3.3.2
djangorestframework-csv==1.4.1
django-rest-swagger==0.3.5
django-cors-headers==1.1.0
openpyxl==2.3.3
numpy==1.10.4
pandas==0.17.1
scipy==0.17.0
django-allauth==0.25.2
premailer
django-anymail
django-crispy-f... | Django==1.9.1
psycopg2==2.5.4
django-leaflet
gunicorn==19.3.0
requests[security]
xlrd
djangorestframework==3.3.2
djangorestframework-csv==1.4.1
django-rest-swagger==0.3.5
django-cors-headers==1.1.0
openpyxl==2.3.3
numpy==1.10.4
pandas==0.17.1
scipy==0.17.0
django-allauth==0.25.2
premailer
-e git@github.com:anymail/djan... | Use python 2.7.3-compatible fork of anymail | Use python 2.7.3-compatible fork of anymail
(awaiting PR to be merged)
| Text | mit | annapowellsmith/openpresc,ebmdatalab/openprescribing,ebmdatalab/openprescribing,ebmdatalab/openprescribing,ebmdatalab/openprescribing,annapowellsmith/openpresc,annapowellsmith/openpresc,annapowellsmith/openpresc | text | ## Code Before:
Django==1.9.1
psycopg2==2.5.4
django-leaflet
gunicorn==19.3.0
requests[security]
xlrd
djangorestframework==3.3.2
djangorestframework-csv==1.4.1
django-rest-swagger==0.3.5
django-cors-headers==1.1.0
openpyxl==2.3.3
numpy==1.10.4
pandas==0.17.1
scipy==0.17.0
django-allauth==0.25.2
premailer
django-anymail... | Django==1.9.1
psycopg2==2.5.4
django-leaflet
gunicorn==19.3.0
requests[security]
xlrd
djangorestframework==3.3.2
djangorestframework-csv==1.4.1
django-rest-swagger==0.3.5
django-cors-headers==1.1.0
openpyxl==2.3.3
numpy==1.10.4
pandas==0.17.1
scipy==0.17.0
django-allauth==0.25.2
premaile... | 2 | 0.111111 | 1 | 1 |
4ecfbd118091e2bc7036fefda91eefaa226c7d1b | package.json | package.json | {
"name": "jsend",
"version": "0.0.0",
"description": "jSend middleware for express",
"main": "index.js",
"scripts": {
"test": "jasmine",
"lint": "jslint *.js **/*.js"
},
"author": "Rohan Orton",
"license": "MIT",
"devDependencies": {
"jasmine": "^2.3.1",
"jslint": "^0.9.1",
"node-... | {
"name": "jsend",
"version": "0.0.0",
"description": "jSend middleware for express",
"main": "index.js",
"scripts": {
"test": "jasmine",
"lint": "jslint *.js **/*.js",
"test:watch": "npm test -s; onchange '*.js' '**/*.js' -- npm test -s",
"lint:watch": "npm run lint -s; onchange '*.js' '**/*.... | Add test:watch and lint:watch to npm file for continuous testing | Add test:watch and lint:watch to npm file for continuous testing
| JSON | mit | rohanorton/proto-jSend,rohanorton/express-jSend | json | ## Code Before:
{
"name": "jsend",
"version": "0.0.0",
"description": "jSend middleware for express",
"main": "index.js",
"scripts": {
"test": "jasmine",
"lint": "jslint *.js **/*.js"
},
"author": "Rohan Orton",
"license": "MIT",
"devDependencies": {
"jasmine": "^2.3.1",
"jslint": "^0.... | {
"name": "jsend",
"version": "0.0.0",
"description": "jSend middleware for express",
"main": "index.js",
"scripts": {
"test": "jasmine",
- "lint": "jslint *.js **/*.js"
+ "lint": "jslint *.js **/*.js",
? +
+ "test:watch": "npm test -s; onchange ... | 7 | 0.411765 | 5 | 2 |
00eed045fb24e3f56465fd90b824658f06e65c1b | packages/vulcan-lib/lib/modules/dynamic_loader.js | packages/vulcan-lib/lib/modules/dynamic_loader.js | import React from 'react';
import loadable from 'react-loadable';
import { Components } from './components.js';
export const dynamicLoader = componentImport => loadable({
loader: () => componentImport,
loading: Components.DynamicLoading,
// serverSideRequirePath: adminPath
});
export const getDynamicComponent =... | import React from 'react';
import loadable from 'react-loadable';
import { Components } from './components.js';
export const dynamicLoader = componentImport => loadable({
loader: () => componentImport,
loading: Components.DynamicLoading,
// serverSideRequirePath: adminPath
});
export const getDynamicComponent =... | Add props to dynamic components (PR Worthy) | Add props to dynamic components (PR Worthy)
| JavaScript | mit | Discordius/Telescope,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Telescope,Discordius/Lesswrong2 | javascript | ## Code Before:
import React from 'react';
import loadable from 'react-loadable';
import { Components } from './components.js';
export const dynamicLoader = componentImport => loadable({
loader: () => componentImport,
loading: Components.DynamicLoading,
// serverSideRequirePath: adminPath
});
export const getDy... | import React from 'react';
import loadable from 'react-loadable';
import { Components } from './components.js';
export const dynamicLoader = componentImport => loadable({
loader: () => componentImport,
loading: Components.DynamicLoading,
// serverSideRequirePath: adminPath
});
- export const... | 2 | 0.181818 | 1 | 1 |
a0d929637290d6141392e4d780240766a60753ff | spec/lib/llt/diff/parser/postag_spec.rb | spec/lib/llt/diff/parser/postag_spec.rb | require 'spec_helper'
describe LLT::Diff::Parser::Postag do
let(:postag) { LLT::Diff::Parser::Postag.new('v3siia---') }
describe "#analysis" do
it "decodes the postag into a hash" do
res = {
part_of_speech: 'v',
person: '3',
number: 's',
tense: 'i',
mood: 'i',
... | require 'spec_helper'
describe LLT::Diff::Parser::Postag do
let(:postag) { LLT::Diff::Parser::Postag.new('v3siia---') }
describe "#analysis" do
it "decodes the postag into a hash" do
res = {
part_of_speech: 'v',
person: '3',
number: 's',
tense: 'i',
mood: 'i',
... | Kill report spec for Postag | Kill report spec for Postag
| Ruby | mit | latin-language-toolkit/llt-review,latin-language-toolkit/llt-review | ruby | ## Code Before:
require 'spec_helper'
describe LLT::Diff::Parser::Postag do
let(:postag) { LLT::Diff::Parser::Postag.new('v3siia---') }
describe "#analysis" do
it "decodes the postag into a hash" do
res = {
part_of_speech: 'v',
person: '3',
number: 's',
tense: 'i',
... | require 'spec_helper'
describe LLT::Diff::Parser::Postag do
let(:postag) { LLT::Diff::Parser::Postag.new('v3siia---') }
describe "#analysis" do
it "decodes the postag into a hash" do
res = {
part_of_speech: 'v',
person: '3',
number: 's',
tense: 'i'... | 18 | 0.333333 | 0 | 18 |
a5b314aa1c9a36f1311871b32ee6d94ec161cd29 | config/views.js | config/views.js | module.exports= {
views: [{
"name": "Raw Match Data",
"view": "matches"
}],
matches: function (mongoCollection, callback) {
mongoCollection.find().toArray(function (err, matches) {
callback([
{
name: "Matches",
headers: [
{
text: "Team",
value: "team"
},
... | module.exports= {
views: [{
"name": "Raw Match Data",
"view": "matches"
}],
matches: function (mongoCollection, callback) {
mongoCollection
.find()
.sort({"_id": -1})
.toArray(function (err, matches) {
callback([
{
name: "Matches",
headers: [
{
text: "Team",
... | Return Raw Match Data in Inverse Order | Return Raw Match Data in Inverse Order
| JavaScript | bsd-2-clause | FRCteam4909/FRC-Scouting,FRCteam4909/FRC-Scouting,FRCteam4909/FRC-Scouting | javascript | ## Code Before:
module.exports= {
views: [{
"name": "Raw Match Data",
"view": "matches"
}],
matches: function (mongoCollection, callback) {
mongoCollection.find().toArray(function (err, matches) {
callback([
{
name: "Matches",
headers: [
{
text: "Team",
value: "team... | module.exports= {
views: [{
"name": "Raw Match Data",
"view": "matches"
}],
matches: function (mongoCollection, callback) {
+ mongoCollection
+ .find()
+ .sort({"_id": -1})
- mongoCollection.find().toArray(function (err, matches) {
? ^^^^^^^^^^^^^^^^^^^^^^
+ .toArray(function (err... | 49 | 1.484848 | 26 | 23 |
64e5278d9c32b12c6f22552479f238dd169d9408 | web/static/codesearch.js | web/static/codesearch.js | "use strict";
var Codesearch = function() {
return {
remote: null,
onload: function() {
Codesearch.input = $('#searchbox');
Codesearch.input.keydown(Codesearch.keypress);
DNode({ error: Codesearch.regex_error,
match: Codesearch.match,
}).connect(function (remote) {
... | "use strict";
var Codesearch = function() {
return {
remote: null,
displaying: null,
onload: function() {
Codesearch.input = $('#searchbox');
Codesearch.input.keydown(Codesearch.keypress);
DNode({ error: Codesearch.regex_error,
match: Codesearch.match,
}).connec... | Reset the results when we get back a new result set. | Reset the results when we get back a new result set.
| JavaScript | bsd-2-clause | wfxiang08/livegrep,paulproteus/livegrep,wfxiang08/livegrep,lekkas/livegrep,lekkas/livegrep,lekkas/livegrep,paulproteus/livegrep,wfxiang08/livegrep,lekkas/livegrep,wfxiang08/livegrep,paulproteus/livegrep,lekkas/livegrep,paulproteus/livegrep,paulproteus/livegrep,wfxiang08/livegrep,wfxiang08/livegrep,lekkas/livegrep,paulp... | javascript | ## Code Before:
"use strict";
var Codesearch = function() {
return {
remote: null,
onload: function() {
Codesearch.input = $('#searchbox');
Codesearch.input.keydown(Codesearch.keypress);
DNode({ error: Codesearch.regex_error,
match: Codesearch.match,
}).connect(func... | "use strict";
var Codesearch = function() {
return {
remote: null,
+ displaying: null,
onload: function() {
Codesearch.input = $('#searchbox');
Codesearch.input.keydown(Codesearch.keypress);
DNode({ error: Codesearch.regex_error,
match: Codesearch.match,
... | 6 | 0.166667 | 5 | 1 |
d55eacd8be39197b78db0b84da06045e729be939 | recipes/openbabel/2.4.0/fix_library_path_search.diff | recipes/openbabel/2.4.0/fix_library_path_search.diff | Devised by Richard West <r.west@neu.edu> in an attempt to fix the way paths
are manipulated when making anaconda packages. See
https://github.com/conda/conda-recipes/pull/310#issuecomment-106533773
diff --git a/openbabel-2.3.2/src/dlhandler_unix.cpp b/openbabel-2.3.2/src/dlhandler_unix.cpp
index 5bffac3..bc66235 10064... | Devised by Richard West <r.west@neu.edu> in an attempt to fix the way paths
are manipulated when making anaconda packages. See
https://github.com/conda/conda-recipes/pull/310#issuecomment-106533773
diff --git a/src/dlhandler_unix.cpp b/src/dlhandler_unix.cpp
index 5bffac3..bc66235 100644
--- src/dlhandler_unix.cpp
+++... | Remove varsions from patch to avoid confusion | Remove varsions from patch to avoid confusion
| Diff | mit | peterjc/bioconda-recipes,xguse/bioconda-recipes,hardingnj/bioconda-recipes,acaprez/recipes,phac-nml/bioconda-recipes,bioconda/bioconda-recipes,cokelaer/bioconda-recipes,ostrokach/bioconda-recipes,pinguinkiste/bioconda-recipes,saketkc/bioconda-recipes,bioconda/bioconda-recipes,bow/bioconda-recipes,instituteofpathologyhe... | diff | ## Code Before:
Devised by Richard West <r.west@neu.edu> in an attempt to fix the way paths
are manipulated when making anaconda packages. See
https://github.com/conda/conda-recipes/pull/310#issuecomment-106533773
diff --git a/openbabel-2.3.2/src/dlhandler_unix.cpp b/openbabel-2.3.2/src/dlhandler_unix.cpp
index 5bffac... | Devised by Richard West <r.west@neu.edu> in an attempt to fix the way paths
are manipulated when making anaconda packages. See
https://github.com/conda/conda-recipes/pull/310#issuecomment-106533773
- diff --git a/openbabel-2.3.2/src/dlhandler_unix.cpp b/openbabel-2.3.2/src/dlhandler_unix.cpp
? ----... | 10 | 0.333333 | 5 | 5 |
ad0ced47e2718b158633300b909162be74c033da | compile_zlib.sh | compile_zlib.sh |
base=/src/zlib
url=http://zlib.net
tarball=zlib-1.2.5.tar.gz
directory=zlib-1.2.5
mkdir -p $base
pushd $base
if [ ! -f $tarball ]
then
echo downloading $tarball ...
wget $url/$tarball
fi
if [ ! -d $directory ]
then
echo unpacking $tarball ...
tar -xvf $tarball
fi
pushd $directory
if [ ! -f configu... |
base=/src/zlib
url=http://zlib.net
tarball=zlib-1.2.5.tar.gz
directory=zlib-1.2.5
mkdir -p $base
pushd $base
if [ ! -f $tarball ]
then
echo downloading $tarball ...
wget $url/$tarball
fi
if [ ! -d $directory ]
then
echo unpacking $tarball ...
tar -xvf $tarball
fi
pushd $directory
#if [ ! -f config... | Use the correct Makefile to compile zlib | Use the correct Makefile to compile zlib
| Shell | lgpl-2.1 | photron/msys_setup,photron/msys_setup,photron/msys_setup | shell | ## Code Before:
base=/src/zlib
url=http://zlib.net
tarball=zlib-1.2.5.tar.gz
directory=zlib-1.2.5
mkdir -p $base
pushd $base
if [ ! -f $tarball ]
then
echo downloading $tarball ...
wget $url/$tarball
fi
if [ ! -d $directory ]
then
echo unpacking $tarball ...
tar -xvf $tarball
fi
pushd $directory
i... |
base=/src/zlib
url=http://zlib.net
tarball=zlib-1.2.5.tar.gz
directory=zlib-1.2.5
mkdir -p $base
pushd $base
if [ ! -f $tarball ]
then
echo downloading $tarball ...
wget $url/$tarball
fi
if [ ! -d $directory ]
then
echo unpacking $tarball ...
tar -xvf $tarball
... | 15 | 0.428571 | 8 | 7 |
6c3a76c48879b2a3fc1fff120a0f1e5c23b74049 | app/soc/templates/v2/modules/gci/org_app/show.html | app/soc/templates/v2/modules/gci/org_app/show.html | {% extends base_layout %}
{% comment %}
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, softw... | {% extends base_layout %}
{% comment %}
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, softw... | Make readonly CSS properties not dependable on LABjs. | Make readonly CSS properties not dependable on LABjs.
| HTML | apache-2.0 | rhyolight/nupic.son,rhyolight/nupic.son,rhyolight/nupic.son | html | ## Code Before:
{% extends base_layout %}
{% comment %}
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to i... | {% extends base_layout %}
{% comment %}
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... | 11 | 0.22 | 4 | 7 |
a79cabf28bc39616862b84f94260f84db6b59ef2 | libs-carto/cartocss/CMakeLists.txt | libs-carto/cartocss/CMakeLists.txt | cmake_minimum_required(VERSION 2.6)
project(cartocss)
if(WIN32)
add_definitions("-D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS -DBOOST_VARIANT_DO_NOT_USE_VARIADIC_TEMPLATES")
endif(WIN32)
if(APPLE)
add_definitions("-std=c++11 -Wno-unsequenced")
endif(APPLE)
if(CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${C... | cmake_minimum_required(VERSION 2.6)
project(cartocss)
if(WIN32)
add_definitions("-D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS")
endif(WIN32)
if(APPLE)
add_definitions("-std=c++11 -Wno-unsequenced")
endif(APPLE)
if(CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
endif(CMAKE_COMP... | Remove variadic template disable flag from WinPhone build | Remove variadic template disable flag from WinPhone build
| Text | bsd-3-clause | CartoDB/mobile-sdk,CartoDB/mobile-sdk,CartoDB/mobile-sdk,CartoDB/mobile-sdk,CartoDB/mobile-sdk,CartoDB/mobile-sdk | text | ## Code Before:
cmake_minimum_required(VERSION 2.6)
project(cartocss)
if(WIN32)
add_definitions("-D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS -DBOOST_VARIANT_DO_NOT_USE_VARIADIC_TEMPLATES")
endif(WIN32)
if(APPLE)
add_definitions("-std=c++11 -Wno-unsequenced")
endif(APPLE)
if(CMAKE_COMPILER_IS_GNUCXX)
set(CMAK... | cmake_minimum_required(VERSION 2.6)
project(cartocss)
if(WIN32)
- add_definitions("-D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS -DBOOST_VARIANT_DO_NOT_USE_VARIADIC_TEMPLATES")
? ----------------------------------------------
+ add_defi... | 2 | 0.066667 | 1 | 1 |
ac5b019c3c86d0ea00cb2e45d44d0b2927dd702f | .circleci/config.yml | .circleci/config.yml | version: 2
jobs:
build:
docker:
- image: ubuntu:cosmic
steps:
- run:
name: Installing
command: 'apt-get update && apt-get install -y git gcc g++ cmake libboost-all-dev bison qt5-default libsdl2-dev ruby'
- checkout
- run:
name: Submodules
comma... | version: 2
jobs:
build:
docker:
- image: cimg/base:2020.01
steps:
- run:
name: Installing
command: 'sudo apt-get update && sudo apt-get install -y git gcc g++ cmake libboost-all-dev bison qt5-default libsdl1.2-dev libsdl2-dev ruby'
- checkout
- run:
name... | Fix circleci build: use current image, use sudo, add libsdl1.2 | Fix circleci build: use current image, use sudo, add libsdl1.2
| YAML | mit | autc04/executor,autc04/executor,autc04/executor,autc04/executor,autc04/executor,autc04/executor | yaml | ## Code Before:
version: 2
jobs:
build:
docker:
- image: ubuntu:cosmic
steps:
- run:
name: Installing
command: 'apt-get update && apt-get install -y git gcc g++ cmake libboost-all-dev bison qt5-default libsdl2-dev ruby'
- checkout
- run:
name: Submodules... | version: 2
jobs:
build:
docker:
- - image: ubuntu:cosmic
+ - image: cimg/base:2020.01
steps:
- run:
name: Installing
- command: 'apt-get update && apt-get install -y git gcc g++ cmake libboost-all-dev bison qt5-default libsdl2-dev ruby'
+ comman... | 4 | 0.114286 | 2 | 2 |
fdf84fe4b9ffdd437df03260b59f30b2f18cdba6 | starling-hsf.sh | starling-hsf.sh |
QARMC=${QARMC:-"qarmc"}
if [ $# != 1 ];
then
echo "usage: $0 FILE"
exit 1
fi
tempfile=hsf.tmp
if [ -e $tempfile ]
then
echo "Temp file already exists: " $tempfile
exit 1
fi
echo "--- STARLING ---"
./starling.sh -shsf $1 | tee $tempfile
echo "--- HSF ---"
$QARMC $tempfile
rm $tempfile
|
QARMC=${QARMC:-"qarmc"}
if [ $# -lt 1 ];
then
echo "usage: $0 FILE starling-args..."
exit 1
fi
tempfile=hsf.tmp
if [ -e $tempfile ]
then
echo "Temp file already exists: " $tempfile
exit 1
fi
echo "--- STARLING ---"
./starling.sh -shsf $* | tee $tempfile
echo "--- HSF ---"
$QARMC $tempfile
rm $tempfile
| Allow passing arguments to Starling via HSF script | Allow passing arguments to Starling via HSF script
| Shell | mit | septract/starling-tool,septract/starling-tool | shell | ## Code Before:
QARMC=${QARMC:-"qarmc"}
if [ $# != 1 ];
then
echo "usage: $0 FILE"
exit 1
fi
tempfile=hsf.tmp
if [ -e $tempfile ]
then
echo "Temp file already exists: " $tempfile
exit 1
fi
echo "--- STARLING ---"
./starling.sh -shsf $1 | tee $tempfile
echo "--- HSF ---"
$QARMC $tempfile
rm $tempfile
## In... |
QARMC=${QARMC:-"qarmc"}
- if [ $# != 1 ];
? ^^
+ if [ $# -lt 1 ];
? ^^^
then
- echo "usage: $0 FILE"
+ echo "usage: $0 FILE starling-args..."
exit 1
fi
tempfile=hsf.tmp
if [ -e $tempfile ]
then
echo "Temp file already exists: " $tempfile
exit 1
fi
echo "--... | 6 | 0.272727 | 3 | 3 |
af6c31d09aef686ba896b2a2c74fbb88cc7f1be0 | tests/test_utils.py | tests/test_utils.py |
__authors__ = [
'"Augie Fackler" <durin42@gmail.com>',
]
class MockRequest(object):
"""Shared dummy request object to mock common aspects of a request.
"""
def __init__(self, path=None):
self.REQUEST = self.GET = self.POST = {}
self.path = path
|
__authors__ = [
'"Augie Fackler" <durin42@gmail.com>',
'"Sverre Rabbelier" <sverre@rabbelier.nl>',
]
from soc.modules import callback
class MockRequest(object):
"""Shared dummy request object to mock common aspects of a request.
Before using the object, start should be called, when done (and
before c... | Add a start and end method to MockRequest | Add a start and end method to MockRequest
| Python | apache-2.0 | SRabbelier/Melange,SRabbelier/Melange,SRabbelier/Melange,SRabbelier/Melange,SRabbelier/Melange,SRabbelier/Melange,SRabbelier/Melange,SRabbelier/Melange,SRabbelier/Melange | python | ## Code Before:
__authors__ = [
'"Augie Fackler" <durin42@gmail.com>',
]
class MockRequest(object):
"""Shared dummy request object to mock common aspects of a request.
"""
def __init__(self, path=None):
self.REQUEST = self.GET = self.POST = {}
self.path = path
## Instruction:
Add a start and end ... |
__authors__ = [
'"Augie Fackler" <durin42@gmail.com>',
+ '"Sverre Rabbelier" <sverre@rabbelier.nl>',
]
+
+
+ from soc.modules import callback
class MockRequest(object):
"""Shared dummy request object to mock common aspects of a request.
+
+ Before using the object, start should be cal... | 32 | 2.461538 | 31 | 1 |
63e43e4ce0ec838fd9c82b8ff345538e124d5128 | app/controllers/comments_controller.rb | app/controllers/comments_controller.rb | class CommentsController < ApplicationController
USER_KEY = :user
TEXT_KEY = :text
TIMESTAMP_KEY = :timestamp
MAX_COMMENTS_TO_LOAD = 200
def create
fail ArgumentError, 'Incorrect post submitted' unless params.key?(:request)
comment = params[:request].symbolize_keys
validate_comment_params(comment... | class CommentsController < ApplicationController
USER_KEY = :user
TEXT_KEY = :text
TIMESTAMP_KEY = :timestamp
MAX_COMMENTS_TO_LOAD = 150
def create
fail ArgumentError, 'Incorrect post submitted' unless params.key?(:request)
comment = params[:request].symbolize_keys
validate_comment_params(comment... | Fix comments not appearing properly when you have more than the max comments amount | Fix comments not appearing properly when you have more than the max comments amount
| Ruby | epl-1.0 | ishakir/shakitz-fantasy-football,ishakir/shakitz-fantasy-football,ishakir/shakitz-fantasy-football,ishakir/shakitz-fantasy-football | ruby | ## Code Before:
class CommentsController < ApplicationController
USER_KEY = :user
TEXT_KEY = :text
TIMESTAMP_KEY = :timestamp
MAX_COMMENTS_TO_LOAD = 200
def create
fail ArgumentError, 'Incorrect post submitted' unless params.key?(:request)
comment = params[:request].symbolize_keys
validate_commen... | class CommentsController < ApplicationController
USER_KEY = :user
TEXT_KEY = :text
TIMESTAMP_KEY = :timestamp
- MAX_COMMENTS_TO_LOAD = 200
? ^ -
+ MAX_COMMENTS_TO_LOAD = 150
? ^^
def create
fail ArgumentError, 'Incorrect post submitted' ... | 6 | 0.12766 | 3 | 3 |
03a4148e6fbf13f0d8446be08d92911b28306f2e | config/routes.rb | config/routes.rb | Rails.application.routes.draw do
namespace :admin do
resources :sites, param: :slug do
resources :site_steps, only: [:show, :update, :edit]
end
resources :site_steps, only: [:show, :update, :new]
resources :users
resources :routes
resources :site_templates
resources :page_templates
... | Rails.application.routes.draw do
namespace :admin do
resources :sites, param: :slug do
resources :site_steps, only: [:show, :update, :edit]
end
resources :site_steps, only: [:show, :update, :new]
resources :users
resources :routes
resources :site_templates
resources :page_templates
... | Fix for: Removed old action/view for the sites' listing in management | Fix for: Removed old action/view for the sites' listing in management
| Ruby | mit | Vizzuality/forest-atlas-landscape-cms,Vizzuality/forest-atlas-landscape-cms,Vizzuality/forest-atlas-landscape-cms,Vizzuality/forest-atlas-landscape-cms | ruby | ## Code Before:
Rails.application.routes.draw do
namespace :admin do
resources :sites, param: :slug do
resources :site_steps, only: [:show, :update, :edit]
end
resources :site_steps, only: [:show, :update, :new]
resources :users
resources :routes
resources :site_templates
resources :... | Rails.application.routes.draw do
namespace :admin do
resources :sites, param: :slug do
resources :site_steps, only: [:show, :update, :edit]
end
resources :site_steps, only: [:show, :update, :new]
resources :users
resources :routes
resources :site_templates
resourc... | 2 | 0.052632 | 1 | 1 |
bf085a18dbed4045e9d9e40ff7774de375a3cc88 | ctl/Cargo.toml | ctl/Cargo.toml | [package]
name = "sozuctl"
description = "command line application to configure a sozu instance"
repository = "https://github.com/sozu-proxy/sozu"
readme = "README.md"
documentation = "https://docs.rs/sozuctl"
homepage = "http://sozu.io"
version = "0.4.0"
license = "AGPL-3.0"
authors = ["Geoffroy Couprie <geo.couprie@g... | [package]
name = "sozuctl"
description = "command line application to configure a sozu instance"
repository = "https://github.com/sozu-proxy/sozu"
readme = "README.md"
documentation = "https://docs.rs/sozuctl"
homepage = "http://sozu.io"
version = "0.4.0"
license = "AGPL-3.0"
authors = ["Geoffroy Couprie <geo.couprie@g... | Remove clap and add structopt deps | Remove clap and add structopt deps
| TOML | agpl-3.0 | sozu-proxy/sozu,sozu-proxy/sozu,sozu-proxy/sozu | toml | ## Code Before:
[package]
name = "sozuctl"
description = "command line application to configure a sozu instance"
repository = "https://github.com/sozu-proxy/sozu"
readme = "README.md"
documentation = "https://docs.rs/sozuctl"
homepage = "http://sozu.io"
version = "0.4.0"
license = "AGPL-3.0"
authors = ["Geoffroy Coupri... | [package]
name = "sozuctl"
description = "command line application to configure a sozu instance"
repository = "https://github.com/sozu-proxy/sozu"
readme = "README.md"
documentation = "https://docs.rs/sozuctl"
homepage = "http://sozu.io"
version = "0.4.0"
license = "AGPL-3.0"
authors = ["Geoffroy Co... | 3 | 0.115385 | 2 | 1 |
89b465b1d02a782f45f3ec6aa161ff27545d8fbe | kitten-scientists.js | kitten-scientists.js | prompt('Your bookmarklet is outdated. Please replace it with the value below.', "javascript:(function(){var d=document,s=d.createElement('script');s.src='https://rawgit.com/cameroncondry/cbc-kitten-scientists/master/kitten-scientists.user.js';d.body.appendChild(s);})();");
| prompt('Your bookmarklet is outdated. Please replace it with the value below.', "javascript:(function(){var d=document,s=d.createElement('script');s.src='https://cdn.jsdelivr.net/gh/cameroncondry/cbc-kitten-scientists@master/kitten-scientists.user.js';d.body.appendChild(s);})();");
| Update old url with url from README | Update old url with url from README | JavaScript | mit | oliversalzburg/cbc-kitten-scientists,oliversalzburg/cbc-kitten-scientists,cameroncondry/cbc-kitten-scientists,oliversalzburg/cbc-kitten-scientists | javascript | ## Code Before:
prompt('Your bookmarklet is outdated. Please replace it with the value below.', "javascript:(function(){var d=document,s=d.createElement('script');s.src='https://rawgit.com/cameroncondry/cbc-kitten-scientists/master/kitten-scientists.user.js';d.body.appendChild(s);})();");
## Instruction:
Update old ur... | - prompt('Your bookmarklet is outdated. Please replace it with the value below.', "javascript:(function(){var d=document,s=d.createElement('script');s.src='https://rawgit.com/cameroncondry/cbc-kitten-scientists/master/kitten-scientists.user.js';d.body.appendChild(s);})();");
? ... | 2 | 2 | 1 | 1 |
c0ebbd84a243afef2f88811e6a06c1f1d2b36297 | catalog/Web_Apps_Services_Interaction/web_app_frameworks.yml | catalog/Web_Apps_Services_Interaction/web_app_frameworks.yml | name: Web App Frameworks
description:
projects:
- bats
- camping
- cramp
- cuba
- e
- gin
- harbor
- hobo
- lattice
- marley
- merb-core
- padrino
- pakyow
- rack
- rails
- ramaze
- rango
- raptor
- renee
- salad
- scorched
- sinatra
- strelka
- vanilla
| name: Web App Frameworks
description:
projects:
- bats
- camping
- cramp
- cuba
- e
- gin
- hanami
- harbor
- hobo
- lattice
- marley
- merb-core
- padrino
- pakyow
- rack
- rails
- ramaze
- rango
- raptor
- renee
- salad
- scorched
- sinatra
- strelka
- vanilla
| Add Hanami to the "Web App Frameworks" category | Add Hanami to the "Web App Frameworks" category
http://hanamirb.org/ | YAML | mit | rubytoolbox/catalog | yaml | ## Code Before:
name: Web App Frameworks
description:
projects:
- bats
- camping
- cramp
- cuba
- e
- gin
- harbor
- hobo
- lattice
- marley
- merb-core
- padrino
- pakyow
- rack
- rails
- ramaze
- rango
- raptor
- renee
- salad
- scorched
- sinatra
- strelka
- vanilla
#... | name: Web App Frameworks
description:
projects:
- bats
- camping
- cramp
- cuba
- e
- gin
+ - hanami
- harbor
- hobo
- lattice
- marley
- merb-core
- padrino
- pakyow
- rack
- rails
- ramaze
- rango
- raptor
- renee
- salad
- sc... | 1 | 0.037037 | 1 | 0 |
3d84a28b81023433175fab3bb560661678679f6f | README.md | README.md | [WordPress.com](https://wordpress.com/) has removed the preference to edit posts using the classic interface. This user script forces a redirect to the classic interface when the new edit interface is visited.
## Installation
If you don't already have one, install [a browser extension](https://greasyfork.org/en/help/i... | [WordPress.com](https://wordpress.com/) has removed the preference to edit posts using the classic interface. This user script forces a redirect to the classic interface when the new edit interface is visited.
## Installation
If you don't already have one, install [a browser extension](https://greasyfork.org/en/help/i... | Add redirection fail bug for Jetpack-enabled sites | Add redirection fail bug for Jetpack-enabled sites
| Markdown | mpl-2.0 | tpenguinltg/wpcom-edit-post-redirect.user.js | markdown | ## Code Before:
[WordPress.com](https://wordpress.com/) has removed the preference to edit posts using the classic interface. This user script forces a redirect to the classic interface when the new edit interface is visited.
## Installation
If you don't already have one, install [a browser extension](https://greasyfo... | [WordPress.com](https://wordpress.com/) has removed the preference to edit posts using the classic interface. This user script forces a redirect to the classic interface when the new edit interface is visited.
## Installation
If you don't already have one, install [a browser extension](https://greasyfork.org/e... | 5 | 0.3125 | 4 | 1 |
ed4d40571cd3f97259e943af0a5b9aa7419a0f78 | talks_keeper/templates/talks_keeper/talk_form.html | talks_keeper/templates/talks_keeper/talk_form.html | {% extends 'talks_keeper/_base.html' %}
{% block meta_title %}Додати розмову{% endblock meta_title %}
{% block header %}
<div class="row header">
<h4>Додати розмову</h4>
</div>
{% endblock header %}
{% block content %}
<form action="" method="post">
{% csrf_token %}
{% include "talks_keeper/includes/render_fiel... | {% extends 'talks_keeper/_base.html' %}
{% load static from staticfiles %}
{% block meta_title %}Додати розмову{% endblock meta_title %}
{% block extra_css %}
<link rel="stylesheet" href="{{ PORTAL_URL }}{% static 'css/pikaday.css' %}" />
{% endblock extra_css %}
{% block header %}
<div class="row header">
<h4>Д... | Add functionality for date field with pikaday.js | Add functionality for date field with pikaday.js
| HTML | mit | samitnuk/talks_keeper,samitnuk/talks_keeper,samitnuk/talks_keeper | html | ## Code Before:
{% extends 'talks_keeper/_base.html' %}
{% block meta_title %}Додати розмову{% endblock meta_title %}
{% block header %}
<div class="row header">
<h4>Додати розмову</h4>
</div>
{% endblock header %}
{% block content %}
<form action="" method="post">
{% csrf_token %}
{% include "talks_keeper/incl... | {% extends 'talks_keeper/_base.html' %}
+ {% load static from staticfiles %}
+
{% block meta_title %}Додати розмову{% endblock meta_title %}
+
+ {% block extra_css %}
+ <link rel="stylesheet" href="{{ PORTAL_URL }}{% static 'css/pikaday.css' %}" />
+ {% endblock extra_css %}
{% block header %}
<div cl... | 20 | 1.176471 | 20 | 0 |
ae25bd624023adc27e1e9bc5dfceaf2c527766ac | vector-array/test.sh | vector-array/test.sh |
echo "Standard compilation (64-bit?)"
g++ -std=c++98 tmp.cpp -o tmp
./tmp
echo ""
echo ""
echo "32-bit"
g++ -m32 -std=c++98 tmp.cpp -o tmp
./tmp
|
echo "Standard compilation (64-bit?)"
g++ -std=c++98 vector-array.cpp -o tmp
./tmp
echo ""
echo ""
echo "32-bit"
g++ -m32 -std=c++98 vector-array.cpp -o tmp
./tmp
| Fix previous commit: wrong filename | Fix previous commit: wrong filename
| Shell | mit | smanilov/playground,smanilov/playground,smanilov/playground,smanilov/playground,smanilov/playground,smanilov/playground | shell | ## Code Before:
echo "Standard compilation (64-bit?)"
g++ -std=c++98 tmp.cpp -o tmp
./tmp
echo ""
echo ""
echo "32-bit"
g++ -m32 -std=c++98 tmp.cpp -o tmp
./tmp
## Instruction:
Fix previous commit: wrong filename
## Code After:
echo "Standard compilation (64-bit?)"
g++ -std=c++98 vector-array.cpp -o tmp
./tmp
... |
echo "Standard compilation (64-bit?)"
- g++ -std=c++98 tmp.cpp -o tmp
? ^^
+ g++ -std=c++98 vector-array.cpp -o tmp
? +++ ^^^^^^^^
./tmp
echo ""
echo ""
echo "32-bit"
- g++ -m32 -std=c++98 tmp.cpp -o tmp
? ^^
+ g++ -m32 -std=c++98 vector-array.cpp... | 4 | 0.4 | 2 | 2 |
4cc831b4548b9af9a69c0469b5e39fdd2c58e2fe | .travis.yml | .travis.yml | dist: trusty
sudo: required
language: c
compile:
- gcc
- clang
before_install:
- sudo add-apt-repository -y ppa:ben-collins/libjwt
- sudo apt-get update -qq
- sudo apt-get install -y -qq libjansson-dev libssl-dev libjwt-dev
script:
- autoreconf -i && ./configure && make && make install
| dist: trusty
sudo: required
language: c
compile:
- gcc
- clang
before_install:
- sudo add-apt-repository -y ppa:ben-collins/libjwt
- sudo apt-get update -qq
- sudo apt-get install -y -qq libjansson-dev libssl-dev libjwt-dev
script:
- autoreconf -i && ./configure && make
| Remove install step from Travis CI | Remove install step from Travis CI
Signed-off-by: Tatiana Jamison <46e5158282b180dbcdc0cb6cd988c23f7f8ba92e@jaguarlandrover.com>
| YAML | mpl-2.0 | GENIVI/rvi_lib,GENIVI/rvi_lib,tjamison/rvi_lib,tjamison/rvi_lib | yaml | ## Code Before:
dist: trusty
sudo: required
language: c
compile:
- gcc
- clang
before_install:
- sudo add-apt-repository -y ppa:ben-collins/libjwt
- sudo apt-get update -qq
- sudo apt-get install -y -qq libjansson-dev libssl-dev libjwt-dev
script:
- autoreconf -i && ./configure && make && make i... | dist: trusty
sudo: required
language: c
compile:
- gcc
- clang
before_install:
- sudo add-apt-repository -y ppa:ben-collins/libjwt
- sudo apt-get update -qq
- sudo apt-get install -y -qq libjansson-dev libssl-dev libjwt-dev
script:
- - autoreconf -i && ./configure && make &... | 2 | 0.166667 | 1 | 1 |
4d73eb2a7e06e1e2607a2abfae1063b9969e70a0 | strichliste/strichliste/models.py | strichliste/strichliste/models.py | from django.db import models
from django.db.models import Sum
class User(models.Model):
name = models.CharField(max_length=254, unique=True)
create_date = models.DateTimeField(auto_now_add=True)
active = models.BooleanField(default=True)
mail_address = models.EmailField(null=True)
@property
d... | from django.db import models
from django.db.models import Sum
class User(models.Model):
name = models.CharField(max_length=254, unique=True)
create_date = models.DateTimeField(auto_now_add=True)
active = models.BooleanField(default=True)
mail_address = models.EmailField(null=True)
@property
d... | Add user_id to returned transactions | Add user_id to returned transactions
| Python | mit | Don42/strichliste-django,hackerspace-bootstrap/strichliste-django | python | ## Code Before:
from django.db import models
from django.db.models import Sum
class User(models.Model):
name = models.CharField(max_length=254, unique=True)
create_date = models.DateTimeField(auto_now_add=True)
active = models.BooleanField(default=True)
mail_address = models.EmailField(null=True)
... | from django.db import models
from django.db.models import Sum
class User(models.Model):
name = models.CharField(max_length=254, unique=True)
create_date = models.DateTimeField(auto_now_add=True)
active = models.BooleanField(default=True)
mail_address = models.EmailField(null=True)
... | 3 | 0.065217 | 2 | 1 |
866d34067f7c4fc7262e27b0304c2f7f204c3e7d | lib/mumuki/laboratory/controllers/embedded_mode.rb | lib/mumuki/laboratory/controllers/embedded_mode.rb | module Mumuki::Laboratory::Controllers::EmbeddedMode
extend ActiveSupport::Concern
included do
helper_method :embedded_mode?,
:standalone_mode?
end
def embedded_mode?
@embedded_mode ||= params[:embed] == 'true' && Organization.current.embeddable?
end
def standalone_mode?
!em... | module Mumuki::Laboratory::Controllers::EmbeddedMode
extend ActiveSupport::Concern
included do
helper_method :embedded_mode?,
:standalone_mode?
end
def embedded_mode?
@embedded_mode ||= params[:embed] == 'true' && Organization.current.embeddable?
end
def standalone_mode?
!em... | Remove header instead of setting to invalid value | Remove header instead of setting to invalid value
| Ruby | agpl-3.0 | mumuki/mumuki-laboratory,mumuki/mumuki-laboratory,mumuki/mumuki-laboratory,mumuki/mumuki-laboratory | ruby | ## Code Before:
module Mumuki::Laboratory::Controllers::EmbeddedMode
extend ActiveSupport::Concern
included do
helper_method :embedded_mode?,
:standalone_mode?
end
def embedded_mode?
@embedded_mode ||= params[:embed] == 'true' && Organization.current.embeddable?
end
def standalo... | module Mumuki::Laboratory::Controllers::EmbeddedMode
extend ActiveSupport::Concern
included do
helper_method :embedded_mode?,
:standalone_mode?
end
def embedded_mode?
@embedded_mode ||= params[:embed] == 'true' && Organization.current.embeddable?
end
de... | 2 | 0.071429 | 1 | 1 |
f5564fca97922e7132169a857a08994a7f3eab43 | content/issues/127.markdown | content/issues/127.markdown | <!-- 2018-10-04 unpublished -->
Welcome to another issue of Haskell Weekly!
[Haskell](https://haskell-lang.org) is a safe, purely functional programming language with a fast, concurrent runtime.
This is a weekly summary of what's going on in its community.
## Featured
- [Komposition: The video editor built for scr... | <!-- 2018-10-04 unpublished -->
Welcome to another issue of Haskell Weekly!
[Haskell](https://haskell-lang.org) is a safe, purely functional programming language with a fast, concurrent runtime.
This is a weekly summary of what's going on in its community.
## Featured
- [Komposition: The video editor built for scr... | Add link to Mpowered post | Add link to Mpowered post | Markdown | mit | haskellweekly/haskellweekly.github.io,haskellweekly/haskellweekly.github.io | markdown | ## Code Before:
<!-- 2018-10-04 unpublished -->
Welcome to another issue of Haskell Weekly!
[Haskell](https://haskell-lang.org) is a safe, purely functional programming language with a fast, concurrent runtime.
This is a weekly summary of what's going on in its community.
## Featured
- [Komposition: The video edit... | <!-- 2018-10-04 unpublished -->
Welcome to another issue of Haskell Weekly!
[Haskell](https://haskell-lang.org) is a safe, purely functional programming language with a fast, concurrent runtime.
This is a weekly summary of what's going on in its community.
## Featured
- [Komposition: The video ed... | 4 | 0.129032 | 4 | 0 |
ae43fd8cacc01b74ddaa5718a41d58387bd35418 | .travis.yml | .travis.yml | language: node_js
node_js:
- "0.10"
before_script:
- "IOJS_VERSION=v1.0.1; wget https://iojs.org/dist/${IOJS_VERSION}/iojs-${IOJS_VERSION}-linux-x64.tar.xz && tar xvfJ iojs-${IOJS_VERSION}-linux-x64.tar.xz && sudo mv iojs-${IOJS_VERSION}-linux-x64/bin/iojs /usr/local/bin"
script:
- "npm run build && npm test"
-... | language: node_js
node_js:
- "0.10"
- "0.12"
- "iojs"
script:
- "npm run build && npm test"
after_script:
- "istanbul cover --verbose --dir coverage node_modules/.bin/_mocha tests/tests.js -- -u exports -R spec && cat coverage/lcov.info | coveralls; rm -rf coverage/lcov*"
| Test in io.js and Node.js v0.12.x | Test in io.js and Node.js v0.12.x
| YAML | mit | mathiasbynens/regexpu | yaml | ## Code Before:
language: node_js
node_js:
- "0.10"
before_script:
- "IOJS_VERSION=v1.0.1; wget https://iojs.org/dist/${IOJS_VERSION}/iojs-${IOJS_VERSION}-linux-x64.tar.xz && tar xvfJ iojs-${IOJS_VERSION}-linux-x64.tar.xz && sudo mv iojs-${IOJS_VERSION}-linux-x64/bin/iojs /usr/local/bin"
script:
- "npm run build ... | language: node_js
node_js:
- "0.10"
- before_script:
- - "IOJS_VERSION=v1.0.1; wget https://iojs.org/dist/${IOJS_VERSION}/iojs-${IOJS_VERSION}-linux-x64.tar.xz && tar xvfJ iojs-${IOJS_VERSION}-linux-x64.tar.xz && sudo mv iojs-${IOJS_VERSION}-linux-x64/bin/iojs /usr/local/bin"
+ - "0.12"
+ - "iojs"
scrip... | 5 | 0.5 | 2 | 3 |
9ad4944b8c37902e80c684f8484105ff952f3dba | tests/test_program.py | tests/test_program.py |
import io
from hypothesis import given
from hypothesis.strategies import lists, integers
from sensibility import Program, vocabulary
#semicolon = vocabulary.to_index(';')
@given(lists(integers(min_value=vocabulary.start_token_index + 1,
max_value=vocabulary.end_token_index - 1),
... |
import io
from hypothesis import given
from hypothesis.strategies import builds, lists, integers, just
from sensibility import Program, vocabulary
tokens = integers(min_value=vocabulary.start_token_index + 1,
max_value=vocabulary.end_token_index - 1)
vectors = lists(tokens, min_size=1)
programs =... | Clean up test a bit. | Clean up test a bit.
| Python | apache-2.0 | naturalness/sensibility,naturalness/sensibility,naturalness/sensibility,naturalness/sensibility | python | ## Code Before:
import io
from hypothesis import given
from hypothesis.strategies import lists, integers
from sensibility import Program, vocabulary
#semicolon = vocabulary.to_index(';')
@given(lists(integers(min_value=vocabulary.start_token_index + 1,
max_value=vocabulary.end_token_index - 1... |
import io
from hypothesis import given
- from hypothesis.strategies import lists, integers
+ from hypothesis.strategies import builds, lists, integers, just
? ++++++++ ++++++
from sensibility import Program, vocabulary
- #semicolon = vocabulary.to_index(';... | 28 | 0.965517 | 13 | 15 |
3bbe94d9ef4bc4299eb45162c6dbd57b3eeb0185 | imouto/ansible/roles/setup_database/files/install_updates.sh | imouto/ansible/roles/setup_database/files/install_updates.sh |
set -e -u
#Date of the schema file that was used to build the initial db
schema_date="2013-04-06"
if [ "$#" -lt 5 ] ; then
exit 1
fi
function get_update_files {
ls -1 "$1"
}
files=(`get_update_files "$4"`)
status_file="$5""/.last_db_update"
if [[ -f $status_file ]] ; then
last_update=(`cat $status_file`)
if ... |
set -e -u
#Date of the schema file that was used to build the initial db
schema_date="2013-04-06"
if [ "$#" -lt 5 ] ; then
exit 1
fi
function get_update_files {
ls -1 "$1"
}
mysql_user="$1"
mysql_password="$2"
mysql_db="$3"
update_dir="$4"
status_file="$5""/.last_db_update"
files=(`get_update_files "$update_dir... | Fix typos and use meaningful variable names in install_udpates.sh | setup_database/files: Fix typos and use meaningful variable names in install_udpates.sh
| Shell | agpl-3.0 | Tatoeba/tatoeba2,Tatoeba/tatoeba2,Tatoeba/tatoeba2,Tatoeba/tatoeba2,Tatoeba/tatoeba2 | shell | ## Code Before:
set -e -u
#Date of the schema file that was used to build the initial db
schema_date="2013-04-06"
if [ "$#" -lt 5 ] ; then
exit 1
fi
function get_update_files {
ls -1 "$1"
}
files=(`get_update_files "$4"`)
status_file="$5""/.last_db_update"
if [[ -f $status_file ]] ; then
last_update=(`cat $st... |
set -e -u
#Date of the schema file that was used to build the initial db
schema_date="2013-04-06"
if [ "$#" -lt 5 ] ; then
exit 1
fi
function get_update_files {
ls -1 "$1"
}
- files=(`get_update_files "$4"`)
-
+ mysql_user="$1"
+ mysql_password="$2"
+ mysql_db="$3"
+ update_dir="$4"
... | 14 | 0.388889 | 9 | 5 |
526091754aff9769d8070d62e315fe8b19de495f | app/models/spree/variant_decorator.rb | app/models/spree/variant_decorator.rb | Spree::Variant.class_eval do
# Sorts by option value position and other criteria after variant position.
scope :order_by_option_value, ->{
includes(:option_values).references(:option_values).unscope(:order).order(
position: :asc
).order(
'spree_option_values.position ASC'
).order(
is_... | Spree::Variant.class_eval do
# Sorts by option value position and other criteria after variant position.
scope :order_by_option_value, ->{
includes(:option_values).references(:option_values).unscope(:order).order(
position: :asc
).order(
'spree_option_values.position ASC'
).order(
is_... | Return nil from first_option_value if the product has no option types. | Return nil from first_option_value if the product has no option types.
| Ruby | bsd-3-clause | deseretbook/solidus_variant_picker,deseretbook/solidus_variant_picker,deseretbook/spree_variant_picker,deseretbook/spree_variant_picker,deseretbook/spree_variant_picker,deseretbook/solidus_variant_picker | ruby | ## Code Before:
Spree::Variant.class_eval do
# Sorts by option value position and other criteria after variant position.
scope :order_by_option_value, ->{
includes(:option_values).references(:option_values).unscope(:order).order(
position: :asc
).order(
'spree_option_values.position ASC'
).... | Spree::Variant.class_eval do
# Sorts by option value position and other criteria after variant position.
scope :order_by_option_value, ->{
includes(:option_values).references(:option_values).unscope(:order).order(
position: :asc
).order(
'spree_option_values.position ASC'
... | 4 | 0.125 | 2 | 2 |
95d3401b29d2cba2d282256cdd2513c67e3df858 | ipython_notebook_config.py | ipython_notebook_config.py |
c = get_config()
c.NotebookApp.ip = '*'
c.NotebookApp.open_browser = False
c.NotebookApp.port = 8888
# Whether to trust or not X-Scheme/X-Forwarded-Proto and X-Real-Ip/X-Forwarded-
# For headerssent by the upstream reverse proxy. Necessary if the proxy handles
# SSL
c.NotebookApp.trust_xheaders = True
# Supply overr... |
c = get_config()
c.NotebookApp.ip = '*'
c.NotebookApp.open_browser = False
c.NotebookApp.port = 8888
# Whether to trust or not X-Scheme/X-Forwarded-Proto and X-Real-Ip/X-Forwarded-
# For headerssent by the upstream reverse proxy. Necessary if the proxy handles
# SSL
c.NotebookApp.trust_xheaders = True
# Supply overr... | Set the content security policy | Set the content security policy
| Python | bsd-3-clause | jupyter/nature-demo,jupyter/nature-demo,jupyter/nature-demo | python | ## Code Before:
c = get_config()
c.NotebookApp.ip = '*'
c.NotebookApp.open_browser = False
c.NotebookApp.port = 8888
# Whether to trust or not X-Scheme/X-Forwarded-Proto and X-Real-Ip/X-Forwarded-
# For headerssent by the upstream reverse proxy. Necessary if the proxy handles
# SSL
c.NotebookApp.trust_xheaders = True... |
c = get_config()
c.NotebookApp.ip = '*'
c.NotebookApp.open_browser = False
c.NotebookApp.port = 8888
# Whether to trust or not X-Scheme/X-Forwarded-Proto and X-Real-Ip/X-Forwarded-
# For headerssent by the upstream reverse proxy. Necessary if the proxy handles
# SSL
c.NotebookApp.trust_xheaders = ... | 1 | 0.055556 | 1 | 0 |
8eafb73fa41c50cb6a57a082bcda4f13b5387bd8 | docs/index.md | docs/index.md | ---
title: Home
layout: default
---
# What is Livedoc ?
Livedoc is a Java library that inspects the Java code of your API and builds its documentation based on what it
found. It was [inspired by JSONDoc](about-jsondoc), and aims at allowing users to generate a documentation with the
least possible effort. Ain't nob... | ---
title: Home
layout: default
---
## What is Livedoc ?
Livedoc is a Java library that inspects the Java code of your API and builds its documentation based on what it
found. It was [inspired by JSONDoc](about-jsondoc), and aims at allowing users to generate a documentation with the
least possible effort. Ain't no... | Add credits to the docs welcome page | Add credits to the docs welcome page
| Markdown | mit | joffrey-bion/livedoc,joffrey-bion/livedoc,joffrey-bion/livedoc,joffrey-bion/livedoc,joffrey-bion/livedoc | markdown | ## Code Before:
---
title: Home
layout: default
---
# What is Livedoc ?
Livedoc is a Java library that inspects the Java code of your API and builds its documentation based on what it
found. It was [inspired by JSONDoc](about-jsondoc), and aims at allowing users to generate a documentation with the
least possible e... | ---
title: Home
layout: default
---
- # What is Livedoc ?
+ ## What is Livedoc ?
? +
Livedoc is a Java library that inspects the Java code of your API and builds its documentation based on what it
found. It was [inspired by JSONDoc](about-jsondoc), and aims at allowing users to generate a documentat... | 17 | 0.68 | 15 | 2 |
bc8a4d398e9035d08f46424359acc118e3a40be5 | src/test/groovy/helios/HeliosSpec.groovy | src/test/groovy/helios/HeliosSpec.groovy | package helios
import static helios.Helios.validate;
import static helios.Validators.min;
import static helios.Validators.required;
import spock.lang.Specification
import helios.HeliosSpecProperties as PROPERTY
import helios.HeliosSpecValidators as VALIDATOR
import helios.HeliosSpecGenerators as GENERATOR
class Hel... | package helios
import static helios.Helios.validate;
import static helios.Validators.min;
import static helios.Validators.required;
import spock.lang.Specification
import helios.HeliosSpecProperties as PROPERTY
import helios.HeliosSpecValidators as VALIDATOR
import helios.HeliosSpecGenerators as GENERATOR
class Hel... | Add NPE case to fix it | Add NPE case to fix it
| Groovy | apache-2.0 | mariogarcia/helios | groovy | ## Code Before:
package helios
import static helios.Helios.validate;
import static helios.Validators.min;
import static helios.Validators.required;
import spock.lang.Specification
import helios.HeliosSpecProperties as PROPERTY
import helios.HeliosSpecValidators as VALIDATOR
import helios.HeliosSpecGenerators as GENE... | package helios
import static helios.Helios.validate;
import static helios.Validators.min;
import static helios.Validators.required;
import spock.lang.Specification
import helios.HeliosSpecProperties as PROPERTY
import helios.HeliosSpecValidators as VALIDATOR
import helios.HeliosSpecGenerators a... | 2 | 0.043478 | 1 | 1 |
24585d5766de31455f538743260ac9a3cca1ab28 | lib/yard/server/commands/frames_command.rb | lib/yard/server/commands/frames_command.rb | module YARD
module Server
module Commands
class FramesCommand < DisplayObjectCommand
include DocServerHelper
def run
main_url = request.path.gsub(/^(.+)?\/frames\/(#{path})$/, '\1/\2')
if path && !path.empty?
page_title = "Object: #{object_path}"
... | module YARD
module Server
module Commands
class FramesCommand < DisplayObjectCommand
include DocServerHelper
def run
main_url = request.path.gsub(/^(.+)?\/frames\/(#{path})$/, '\1/\2')
if path =~ %r{^file/}
page_title = "File: #{$'}"
elsif !... | Fix titles for File urls in frames | Fix titles for File urls in frames
| Ruby | mit | iankronquist/yard,herosky/yard,amclain/yard,iankronquist/yard,ohai/yard,jreinert/yard,amclain/yard,herosky/yard,thomthom/yard,alexdowad/yard,lsegal/yard,jreinert/yard,ohai/yard,ohai/yard,herosky/yard,iankronquist/yard,amclain/yard,lsegal/yard,thomthom/yard,jreinert/yard,alexdowad/yard,alexdowad/yard,lsegal/yard,thomtho... | ruby | ## Code Before:
module YARD
module Server
module Commands
class FramesCommand < DisplayObjectCommand
include DocServerHelper
def run
main_url = request.path.gsub(/^(.+)?\/frames\/(#{path})$/, '\1/\2')
if path && !path.empty?
page_title = "Object: #{ob... | module YARD
module Server
module Commands
class FramesCommand < DisplayObjectCommand
include DocServerHelper
def run
main_url = request.path.gsub(/^(.+)?\/frames\/(#{path})$/, '\1/\2')
+ if path =~ %r{^file/}
+ page_title = "File: #{$'... | 4 | 0.137931 | 3 | 1 |
c312ff0a7b0c3dc9c38ec070632edc21399af067 | b_list/templates/contact_form/contact_form.html | b_list/templates/contact_form/contact_form.html | {% extends "base.html" %}
{% block title %}Contact the author{% endblock %}
{% block content %}
{% load typogrify_tags %}
<h1>Contact the author</h1>
<p class="meta">See also: <a href="/about/">about the author</a>, <a href="{% url 'blog_entry_archive_index' %}">weblog index</a>.</p>
<p>{% filter typogrify %}En... | {% extends "base.html" %}
{% block title %}Contact the author{% endblock %}
{% block content %}
{% load typogrify_tags %}
<h1>Contact the author</h1>
<p class="meta">See also: <a href="/about/">about the author</a>, <a href="{% url 'blog_entry_archive_index' %}">weblog index</a>.</p>
<p>{% filter typogrify %}En... | Add CSRF token to contact form. | Add CSRF token to contact form.
| HTML | bsd-3-clause | ubernostrum/b_list,ubernostrum/b_list | html | ## Code Before:
{% extends "base.html" %}
{% block title %}Contact the author{% endblock %}
{% block content %}
{% load typogrify_tags %}
<h1>Contact the author</h1>
<p class="meta">See also: <a href="/about/">about the author</a>, <a href="{% url 'blog_entry_archive_index' %}">weblog index</a>.</p>
<p>{% filte... | {% extends "base.html" %}
{% block title %}Contact the author{% endblock %}
{% block content %}
{% load typogrify_tags %}
<h1>Contact the author</h1>
<p class="meta">See also: <a href="/about/">about the author</a>, <a href="{% url 'blog_entry_archive_index' %}">weblog index</a>.</p>
... | 2 | 0.068966 | 1 | 1 |
1615f30998ab4dfe39fe0a64f63acbe9dbe7f43a | cereebro-server/src/test/java/io/cereebro/server/CereebroServerPropertiesTest.java | cereebro-server/src/test/java/io/cereebro/server/CereebroServerPropertiesTest.java | /*
* Copyright © 2017 the original authors (http://cereebro.io)
*
* 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... | /*
* Copyright © 2017 the original authors (http://cereebro.io)
*
* 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... | Improve test coverage one last time | Improve test coverage one last time | Java | apache-2.0 | cereebro/cereebro,cereebro/cereebro,cereebro/cereebro | java | ## Code Before:
/*
* Copyright © 2017 the original authors (http://cereebro.io)
*
* 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
*
*... | /*
* Copyright © 2017 the original authors (http://cereebro.io)
*
* 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
*
... | 16 | 0.457143 | 16 | 0 |
2fae1e17295c6569a67c866a672a52608ccce113 | .scrutinizer.yml | .scrutinizer.yml | application:
environment:
php:
version: 5.5.14
project_setup:
before:
- cp app/config/parameters.yml.dist app/config/parameters.yml
- composer install --prefer-dist --no-interaction
build:
dependencies:
before:
- composer install --pref... | application:
environment:
php:
version: 5.5.14
project_setup:
before:
- cp app/config/parameters.yml.dist app/config/parameters.yml
- composer install --prefer-dist --no-interaction
filter:
paths: [src/*]
excluded_paths: [vendor/*]
tools:
externa... | Disable dublicated CI composer update | Disable dublicated CI composer update
| YAML | mit | dardarlt/hangman | yaml | ## Code Before:
application:
environment:
php:
version: 5.5.14
project_setup:
before:
- cp app/config/parameters.yml.dist app/config/parameters.yml
- composer install --prefer-dist --no-interaction
build:
dependencies:
before:
- compose... | application:
environment:
php:
version: 5.5.14
project_setup:
before:
- cp app/config/parameters.yml.dist app/config/parameters.yml
- composer install --prefer-dist --no-interaction
- build:
- dependencies:
- before:
- -... | 4 | 0.114286 | 0 | 4 |
fc6ca51d4a865368f82c26426a2d6c8d8366e25d | tcconfig/tcshow.py | tcconfig/tcshow.py |
from __future__ import absolute_import
from __future__ import with_statement
import sys
try:
import json
except ImportError:
import simplejson as json
import six
import thutils
import tcconfig
import tcconfig.traffic_control
from ._common import verify_network_interface
def parse_option():
parser = t... |
from __future__ import absolute_import
from __future__ import with_statement
import json
import sys
import six
import thutils
import tcconfig
import tcconfig.traffic_control
from ._common import verify_network_interface
def parse_option():
parser = thutils.option.ArgumentParserObject()
parser.make(version=... | Drop support for Python 2.6 | Drop support for Python 2.6
| Python | mit | thombashi/tcconfig,thombashi/tcconfig | python | ## Code Before:
from __future__ import absolute_import
from __future__ import with_statement
import sys
try:
import json
except ImportError:
import simplejson as json
import six
import thutils
import tcconfig
import tcconfig.traffic_control
from ._common import verify_network_interface
def parse_option()... |
from __future__ import absolute_import
from __future__ import with_statement
+ import json
import sys
-
- try:
- import json
- except ImportError:
- import simplejson as json
-
import six
import thutils
import tcconfig
import tcconfig.traffic_control
from ._common import verify_networ... | 7 | 0.127273 | 1 | 6 |
0194736c13ddb3afd5a0f1947bb8faf4441fbcea | .travis.yml | .travis.yml | language: python
dist: trusty
sudo: false
matrix:
fast_finish: true
include:
- python: 2.7
env:
- TOX_ENV=py27
- python: 3.5
env:
- TOX_ENV=py35
- python: 3.6
env:
- TOX_ENV=py36
- python: 3.7
env:
- TOX_ENV=py37
install:
- travis_retry pip instal... | language: python
dist: trusty
sudo: false
matrix:
fast_finish: true
include:
- python: 2.7
env:
- TOX_ENV=py27
- python: 3.5
env:
- TOX_ENV=py35
- python: 3.6
env:
- TOX_ENV=py36
- python: 3.7
dist: xenial
env:
- TOX_ENV=py37
install:
- trav... | Switch Python 3.7 to run on Xenial distribution. | Switch Python 3.7 to run on Xenial distribution.
| YAML | mit | brandm/live-py-plugin,donkirkby/live-py-plugin,donkirkby/live-py-plugin,donkirkby/live-py-plugin,brandm/live-py-plugin,brandm/live-py-plugin,donkirkby/live-py-plugin,brandm/live-py-plugin,donkirkby/live-py-plugin,brandm/live-py-plugin | yaml | ## Code Before:
language: python
dist: trusty
sudo: false
matrix:
fast_finish: true
include:
- python: 2.7
env:
- TOX_ENV=py27
- python: 3.5
env:
- TOX_ENV=py35
- python: 3.6
env:
- TOX_ENV=py36
- python: 3.7
env:
- TOX_ENV=py37
install:
- travis_... | language: python
dist: trusty
sudo: false
matrix:
fast_finish: true
include:
- python: 2.7
env:
- TOX_ENV=py27
- python: 3.5
env:
- TOX_ENV=py35
- python: 3.6
env:
- TOX_ENV=py36
- python: 3.7
+ dist: xenial
env:... | 1 | 0.028571 | 1 | 0 |
b087b9814de3e5b375c25362401ed5274149986a | lib/Predis/Options/ClientCluster.php | lib/Predis/Options/ClientCluster.php | <?php
namespace Predis\Options;
use Predis\Network\IConnectionCluster;
use Predis\Network\PredisCluster;
class ClientCluster extends Option {
protected function checkInstance($cluster) {
if (!$cluster instanceof IConnectionCluster) {
throw new \InvalidArgumentException(
'Insta... | <?php
namespace Predis\Options;
use Predis\Network\IConnectionCluster;
use Predis\Network\PredisCluster;
class ClientCluster extends Option {
protected function checkInstance($cluster) {
if (!$cluster instanceof IConnectionCluster) {
throw new \InvalidArgumentException(
'Insta... | Remove a useless method from the cluster option class. | Remove a useless method from the cluster option class.
| PHP | mit | lvbaosong/predis,zhangyancoder/predis,RudyJessop/predis,nguyenthaihan/predis,quangnguyen90/predis,johnhelmuth/predis,moria/predis,channelgrabber/predis,protomouse/predis,dzung2t/predis,nrk/predis,WalterShe/predis,stokes3452/predis,vend/predis,SwelenFrance/predis,gopalindians/predis,oswaldderiemaecker/predis,CloudSide/p... | php | ## Code Before:
<?php
namespace Predis\Options;
use Predis\Network\IConnectionCluster;
use Predis\Network\PredisCluster;
class ClientCluster extends Option {
protected function checkInstance($cluster) {
if (!$cluster instanceof IConnectionCluster) {
throw new \InvalidArgumentException(
... | <?php
namespace Predis\Options;
use Predis\Network\IConnectionCluster;
use Predis\Network\PredisCluster;
class ClientCluster extends Option {
protected function checkInstance($cluster) {
if (!$cluster instanceof IConnectionCluster) {
throw new \InvalidArgumentException(
... | 6 | 0.136364 | 1 | 5 |
844cc642466d74a0bf951d2fd57257adcdf0f9c6 | ha-bridge/run.sh | ha-bridge/run.sh | java -jar -Dconfig.file=/data/habridge.config -Djava.net.preferIPv4Stack=true /habridge/app.jar
| if [ ! -d /share/habridge ]; then
echo "[INFO] Creating /share/habridge folder"
mkdir -p /share/habridge
fi
# Migrate existing habridge.config file
if [ ! -d /data/habridge.config ]; then
echo "[INFO] Migrating existing habridge.config from /data to /share/habridge"
mv -f /data/habridge.config /share/habridge
fi... | Migrate config files to /share/habridge | Migrate config files to /share/habridge
| Shell | apache-2.0 | Ixsun/hassio-addons,notoriousbdg/hassio-addons,Ixsun/hassio-addons,notoriousbdg/hassio-addons | shell | ## Code Before:
java -jar -Dconfig.file=/data/habridge.config -Djava.net.preferIPv4Stack=true /habridge/app.jar
## Instruction:
Migrate config files to /share/habridge
## Code After:
if [ ! -d /share/habridge ]; then
echo "[INFO] Creating /share/habridge folder"
mkdir -p /share/habridge
fi
# Migrate existing hab... | + if [ ! -d /share/habridge ]; then
+ echo "[INFO] Creating /share/habridge folder"
+ mkdir -p /share/habridge
+ fi
+
+ # Migrate existing habridge.config file
+ if [ ! -d /data/habridge.config ]; then
+ echo "[INFO] Migrating existing habridge.config from /data to /share/habridge"
+ mv -f /data/habridge.config ... | 22 | 22 | 21 | 1 |
3def618a5cf5607a9bbe95cb1d349de83224565c | javascript/editlock.js | javascript/editlock.js | jQuery.entwine("editlock", function($) {
$('.cms-edit-form').entwine({
RecordID: null,
RecordClass: null,
LockURL: null,
onmatch: function() {
if(this.hasClass('edit-locked')){
this.showLockMessage();
}else{
this.setRecordID(this.data('recordid'));
this.setRecordClass(this.data('recordclass'... | jQuery.entwine("editlock", function($) {
var lockTimer = 0;
$('.cms-edit-form').entwine({
RecordID: null,
RecordClass: null,
LockURL: null,
onmatch: function() {
// clear any previously bound lock timer
if (lockTimer) {
clearTimeout(lockTimer);
}
if(this.hasClass('edit-locked')){
this.sho... | FIX Removal of existing lock timer on form load | FIX Removal of existing lock timer on form load | JavaScript | bsd-3-clause | sheadawson/silverstripe-editlock,sheadawson/silverstripe-editlock | javascript | ## Code Before:
jQuery.entwine("editlock", function($) {
$('.cms-edit-form').entwine({
RecordID: null,
RecordClass: null,
LockURL: null,
onmatch: function() {
if(this.hasClass('edit-locked')){
this.showLockMessage();
}else{
this.setRecordID(this.data('recordid'));
this.setRecordClass(this.da... | jQuery.entwine("editlock", function($) {
-
+ var lockTimer = 0;
$('.cms-edit-form').entwine({
RecordID: null,
RecordClass: null,
LockURL: null,
onmatch: function() {
+ // clear any previously bound lock timer
+ if (lockTimer) {
+ clearTimeout(lockTimer);
+ }
+
if(this.hasClass(... | 13 | 0.302326 | 9 | 4 |
756109384dca9dc69aa88b6e415ff24cef9bb6d1 | README.md | README.md | Here is an example repository for all Yak Shave Inc. operations
that we know and can do. Copy/paste code yourself, or open an issue
to help you. @abitrolly is occassionally available through many
channels if you need to do something from the list prvately.
#### Known Elements
* [x] GitHub (https://github.com/yakshave... | Yak Shave Inc. operations. Copy/paste code yourself, open an issue,
or reach @abitrolly through https://t.me/abitrolly for support
requests or project offers that require this expertise.
#### Known Elements
* [x] GitHub (https://github.com/yakshaveinc/linux)
* [x] Travis CI (https://travis-ci.org/yakshaveinc/linux)
*... | Add proof to snaps packaged and a way to reach me | Add proof to snaps packaged and a way to reach me | Markdown | unlicense | yakshaveinc/linux | markdown | ## Code Before:
Here is an example repository for all Yak Shave Inc. operations
that we know and can do. Copy/paste code yourself, or open an issue
to help you. @abitrolly is occassionally available through many
channels if you need to do something from the list prvately.
#### Known Elements
* [x] GitHub (https://git... | + Yak Shave Inc. operations. Copy/paste code yourself, open an issue,
+ or reach @abitrolly through https://t.me/abitrolly for support
+ requests or project offers that require this expertise.
- Here is an example repository for all Yak Shave Inc. operations
- that we know and can do. Copy/paste code yourself, or open ... | 9 | 0.473684 | 5 | 4 |
a382ad6f6d1ca88fba920d2bf4a9a4940eda30df | compile-and-test.sh | compile-and-test.sh | set -e
INFLUXDB_VERSIONS="1.3 1.2 1.1"
JAVA_VERSIONS="3-jdk-8 3-jdk-9"
for java_version in ${JAVA_VERSIONS}
do
echo "Run tests with maven:${java_version}"
for version in ${INFLUXDB_VERSIONS}
do
echo "Tesing againts influxdb ${version}"
docker kill influxdb || true
docker rm influxdb || true
docker pull inf... | set -e
INFLUXDB_VERSIONS="1.4 1.3 1.2 1.1"
JAVA_VERSIONS="3-jdk-8-alpine 3-jdk-9-slim"
for java_version in ${JAVA_VERSIONS}
do
echo "Run tests with maven:${java_version}"
for version in ${INFLUXDB_VERSIONS}
do
echo "Tesing againts influxdb ${version}"
docker kill influxdb || true
docker rm influxdb || true
... | Add influxdb-1.4 to tests, use smaller maven images | Add influxdb-1.4 to tests, use smaller maven images
| Shell | mit | influxdata/influxdb-java,influxdata/influxdb-java,influxdb/influxdb-java | shell | ## Code Before:
set -e
INFLUXDB_VERSIONS="1.3 1.2 1.1"
JAVA_VERSIONS="3-jdk-8 3-jdk-9"
for java_version in ${JAVA_VERSIONS}
do
echo "Run tests with maven:${java_version}"
for version in ${INFLUXDB_VERSIONS}
do
echo "Tesing againts influxdb ${version}"
docker kill influxdb || true
docker rm influxdb || true
... | set -e
- INFLUXDB_VERSIONS="1.3 1.2 1.1"
+ INFLUXDB_VERSIONS="1.4 1.3 1.2 1.1"
? ++++
- JAVA_VERSIONS="3-jdk-8 3-jdk-9"
+ JAVA_VERSIONS="3-jdk-8-alpine 3-jdk-9-slim"
? +++++++ +++++
for java_version in ${JAVA_VERSIONS}
do
echo "Run tests with mave... | 4 | 0.114286 | 2 | 2 |
17076899f03de6e343cbc78d4e300e630cfc404b | README.md | README.md | [](https://nodei.co/npm/git-conflicts/)
# git-conflicts
[![Dependency Status][david-badge]][david]
Resolve merge conflicts in the editor. With `conflicts`, you do all the work yourself.
[david]: https://david-dm.org/eush77/git-conflicts
[david-badge]: https://david-dm.o... | [](https://nodei.co/npm/git-conflicts/)
# git-conflicts
[![Dependency Status][david-badge]][david]
Resolve merge conflicts in the editor. With `conflicts`, you do all the work yourself.
[david]: https://david-dm.org/eush77/git-conflicts
[david-badge]: https://david-dm.o... | Add note about aborting resolution | Add note about aborting resolution
| Markdown | mit | eush77/git-conflicts | markdown | ## Code Before:
[](https://nodei.co/npm/git-conflicts/)
# git-conflicts
[![Dependency Status][david-badge]][david]
Resolve merge conflicts in the editor. With `conflicts`, you do all the work yourself.
[david]: https://david-dm.org/eush77/git-conflicts
[david-badge]: ht... | [](https://nodei.co/npm/git-conflicts/)
# git-conflicts
[![Dependency Status][david-badge]][david]
Resolve merge conflicts in the editor. With `conflicts`, you do all the work yourself.
[david]: https://david-dm.org/eush77/git-conflicts
[david-badge]... | 2 | 0.052632 | 2 | 0 |
851afcad6ced84d145c4b0a20c88d2cf0605bbdf | package.json | package.json | {
"name": "Mithril-Bootstrap_Modal",
"version": "0.0.1",
"description": "An implementation of Bootstrap 3 modal dialog using Mithril framework.",
"author": "George Raptis (georapbox@gmail.com)",
"homepage": "https://github.com/georapbox/Mithril-Bootstrap-Modal",
"license": "Licensed under the MIT (htt... | {
"name": "mithril-bootstrap-modal",
"version": "0.0.1",
"description": "An implementation of Bootstrap 3 modal dialog using Mithril framework.",
"author": "George Raptis (georapbox@gmail.com)",
"homepage": "https://github.com/georapbox/Mithril-Bootstrap-Modal",
"license": "Licensed under the MIT (htt... | Add main script and make name all lowercase | Add main script and make name all lowercase
| JSON | mit | lbn/Mithril-Bootstrap-Modal,lbn/Mithril-Bootstrap-Modal | json | ## Code Before:
{
"name": "Mithril-Bootstrap_Modal",
"version": "0.0.1",
"description": "An implementation of Bootstrap 3 modal dialog using Mithril framework.",
"author": "George Raptis (georapbox@gmail.com)",
"homepage": "https://github.com/georapbox/Mithril-Bootstrap-Modal",
"license": "Licensed under th... | {
- "name": "Mithril-Bootstrap_Modal",
? ^ ^ ^^
+ "name": "mithril-bootstrap-modal",
? ^ ^ ^^
"version": "0.0.1",
"description": "An implementation of Bootstrap 3 modal dialog using Mithril framework.",
"author": "George Raptis (georapbox@gmail.com)",
... | 3 | 0.214286 | 2 | 1 |
ed186ce8dda5a8cee3ef45add251834bf459967f | Cargo.toml | Cargo.toml | [package]
name = "single"
version = "0.1.1"
authors = ["CAD97 <cad97@cad97.com>"]
description = "This crate exposes a `Single` trait for extracting the element from a single-element iterator (or `panic!`ing if that precondition is false)."
repository = "https://github.com/CAD97/rust-single"
readme = "README.md"
key... | [package]
name = "single"
version = "0.1.1"
authors = ["CAD97 <cad97@cad97.com>"]
description = "This crate exposes a `Single` trait for extracting the element from a single-element iterator (or `panic!`ing if that precondition is false)."
repository = "https://github.com/CAD97/rust-single"
readme = "README.md"
key... | Fix travis-ci badge on crates.io | Fix travis-ci badge on crates.io
This'll have to wait until I push a new version to crates.io though... :(
| TOML | mit | CAD97/rust-single | toml | ## Code Before:
[package]
name = "single"
version = "0.1.1"
authors = ["CAD97 <cad97@cad97.com>"]
description = "This crate exposes a `Single` trait for extracting the element from a single-element iterator (or `panic!`ing if that precondition is false)."
repository = "https://github.com/CAD97/rust-single"
readme = ... | [package]
name = "single"
version = "0.1.1"
authors = ["CAD97 <cad97@cad97.com>"]
description = "This crate exposes a `Single` trait for extracting the element from a single-element iterator (or `panic!`ing if that precondition is false)."
repository = "https://github.com/CAD97/rust-single"
readm... | 2 | 0.105263 | 1 | 1 |
28ba5526201a3b2dbd83b263aa234297c08416fd | docs/system-reqs.md | docs/system-reqs.md |
The v1.0.0 version of the plugin is supported on Ubuntu 14.04 and 16.04.
Versions starting at v1.1.0 have been tested and are supported on the following Linux distributions:
- Ubuntu 14.04 and beyond
- RHEL 7.x and beyond
- CoreOS 1122.3.0 and beyond
- CentOS 7 and beyond
Although the plugin software is supported on... |
The v1.0.0 version of the plugin is supported on Ubuntu 14.04 and 16.04.
Versions starting at v1.1.0 have been tested and are supported on the following Linux distributions:
- Ubuntu 14.04 and 16.04
- RHEL 7.x and beyond
- CoreOS 1122.3.0 and beyond
- CentOS 7 and beyond
Although the plugin software is supported on ... | Update system requirements for HPE Docker Volume Plugin | Update system requirements for HPE Docker Volume Plugin
Updated the system requirements document with the supported configurations for HPE Docker Volume Plugin | Markdown | apache-2.0 | hpe-storage/python-hpedockerplugin,hpe-storage/python-hpedockerplugin | markdown | ## Code Before:
The v1.0.0 version of the plugin is supported on Ubuntu 14.04 and 16.04.
Versions starting at v1.1.0 have been tested and are supported on the following Linux distributions:
- Ubuntu 14.04 and beyond
- RHEL 7.x and beyond
- CoreOS 1122.3.0 and beyond
- CentOS 7 and beyond
Although the plugin software... |
The v1.0.0 version of the plugin is supported on Ubuntu 14.04 and 16.04.
Versions starting at v1.1.0 have been tested and are supported on the following Linux distributions:
- - Ubuntu 14.04 and beyond
? ^^^^^^
+ - Ubuntu 14.04 and 16.04
? ^^^^^
- RHEL 7.x and beyond
... | 9 | 0.28125 | 5 | 4 |
23e57facea49ebc093d1da7a9ae6857cd2c8dad7 | warehouse/defaults.py | warehouse/defaults.py | from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
# The base domain name for this installation. Used to control linking to
# sub-domains.
SERVER_NAME = "warehouse.local"
# The URI for our PostgreSQL database.
SQLALCHEMY_DATABASE_URI = "postgres:///ware... | from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
# The base domain name for this installation. Used to control linking to
# sub-domains.
SERVER_NAME = "warehouse.local"
# The URI for our PostgreSQL database.
SQLALCHEMY_DATABASE_URI = "postgres:///ware... | Add an explicit default for REDIS_URI | Add an explicit default for REDIS_URI
| Python | bsd-2-clause | davidfischer/warehouse | python | ## Code Before:
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
# The base domain name for this installation. Used to control linking to
# sub-domains.
SERVER_NAME = "warehouse.local"
# The URI for our PostgreSQL database.
SQLALCHEMY_DATABASE_URI = "... | from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
# The base domain name for this installation. Used to control linking to
# sub-domains.
SERVER_NAME = "warehouse.local"
# The URI for our PostgreSQL database.
SQLALCHEMY_DATABASE_URI... | 3 | 0.103448 | 3 | 0 |
7a6a6728b5bb30f804921d6acfd5c72400249fb7 | doc/apps-dependencies.dot | doc/apps-dependencies.dot | digraph g {
cluster -> "node";
ingest -> preprocessing;
ingest -> cluster;
"node" -> index;
preprocessing -> stemming;
preprocessing -> utf8;
query -> cluster;
query -> preprocessing;
stemming -> utf8;
}
| digraph g {
cluster -> "node";
doc -> preprocessing;
ingest -> doc;
ingest -> cluster;
"node" -> index;
preprocessing -> stemming;
preprocessing -> utf8;
query -> cluster;
query -> preprocessing;
stemming -> utf8;
}
| Add "doc" module to dependencies graph | Add "doc" module to dependencies graph
| Graphviz (DOT) | bsd-3-clause | moretea/doko,moretea/doko | graphviz-dot | ## Code Before:
digraph g {
cluster -> "node";
ingest -> preprocessing;
ingest -> cluster;
"node" -> index;
preprocessing -> stemming;
preprocessing -> utf8;
query -> cluster;
query -> preprocessing;
stemming -> utf8;
}
## Instruction:
Add "doc" m... | digraph g {
cluster -> "node";
- ingest -> preprocessing;
? ^^^^^^
+ doc -> preprocessing;
? ^^^
+ ingest -> doc;
ingest -> cluster;
"node" -> index;
preprocessing -> stemming;
preprocessing -> utf8;
query -> cluster... | 3 | 0.272727 | 2 | 1 |
b1da47403f4871313e0759a21091ace04151cb84 | src/renderer/actions/connections.js | src/renderer/actions/connections.js | import { sqlectron } from '../../browser/remote';
export const CONNECTION_REQUEST = 'CONNECTION_REQUEST';
export const CONNECTION_SUCCESS = 'CONNECTION_SUCCESS';
export const CONNECTION_FAILURE = 'CONNECTION_FAILURE';
export const dbSession = sqlectron.db.createSession();
export function connect (id, database) {
... | import { sqlectron } from '../../browser/remote';
export const CONNECTION_REQUEST = 'CONNECTION_REQUEST';
export const CONNECTION_SUCCESS = 'CONNECTION_SUCCESS';
export const CONNECTION_FAILURE = 'CONNECTION_FAILURE';
export const dbSession = sqlectron.db.createSession();
export function connect (id, database) {
... | Use promise all at the right place in the server connecting action | Use promise all at the right place in the server connecting action | JavaScript | mit | sqlectron/sqlectron-gui,sqlectron/sqlectron-gui,sqlectron/sqlectron-gui,sqlectron/sqlectron-gui | javascript | ## Code Before:
import { sqlectron } from '../../browser/remote';
export const CONNECTION_REQUEST = 'CONNECTION_REQUEST';
export const CONNECTION_SUCCESS = 'CONNECTION_SUCCESS';
export const CONNECTION_FAILURE = 'CONNECTION_FAILURE';
export const dbSession = sqlectron.db.createSession();
export function connect (... | import { sqlectron } from '../../browser/remote';
export const CONNECTION_REQUEST = 'CONNECTION_REQUEST';
export const CONNECTION_SUCCESS = 'CONNECTION_SUCCESS';
export const CONNECTION_FAILURE = 'CONNECTION_FAILURE';
export const dbSession = sqlectron.db.createSession();
export function c... | 10 | 0.357143 | 5 | 5 |
488ff532521462a681030fd21fa65e39445235d9 | app/views/main.html | app/views/main.html | <div ng-include="'views/search.html'" ng-controller="SearchCtrl"></div>
<div ng-include="'views/document.html'" ng-controller="DocumentCtrl"></div>
| <div ng-include="'views/document.html'" ng-controller="DocumentCtrl"></div>
| Remove the search functionality from the view. | Remove the search functionality from the view.
| HTML | apache-2.0 | CenturyLinkLabs/lorry-ui,patocox/lorry-ui,CenturyLinkLabs/lorry-ui,rupakg/lorry-ui,patocox/lorry-ui,rupakg/lorry-ui,patocox/lorry-ui,CenturyLinkLabs/lorry-ui,rupakg/lorry-ui | html | ## Code Before:
<div ng-include="'views/search.html'" ng-controller="SearchCtrl"></div>
<div ng-include="'views/document.html'" ng-controller="DocumentCtrl"></div>
## Instruction:
Remove the search functionality from the view.
## Code After:
<div ng-include="'views/document.html'" ng-controller="DocumentCtrl"></div>... | - <div ng-include="'views/search.html'" ng-controller="SearchCtrl"></div>
-
<div ng-include="'views/document.html'" ng-controller="DocumentCtrl"></div> | 2 | 0.666667 | 0 | 2 |
1903d3e11dab6cf98348d420c1f8701513958eb7 | .travis.yml | .travis.yml | sudo: required
services:
- docker
before_install:
- gem install bundler
install:
- make test-deps
script:
- sed -i "s/172\.17\.0\.1/$(docker run debian:jessie ip route | sed -n 's/^default via \(.*\) dev .*/\1/p')/" spec/test_cluster.rb
- make docker-compose
- make test
| sudo: required
services:
- docker
before_install:
- gem install bundler
install:
- make test-deps
script:
- sed -i "s/172\.17\.0\.1/$(docker run debian:jessie ip route | sed -n 's/^default via \(.*\) dev .*/\1/p')/" spec/test_cluster.rb
- make docker-compose
- make test 2>make-test.err
after_failure:
- "e... | Hide stderr on Travis unless build failed | Hide stderr on Travis unless build failed
| YAML | apache-2.0 | confluentinc/bottledwater-pg,confluentinc/bottledwater-pg,confluentinc/bottledwater-pg,confluentinc/bottledwater-pg | yaml | ## Code Before:
sudo: required
services:
- docker
before_install:
- gem install bundler
install:
- make test-deps
script:
- sed -i "s/172\.17\.0\.1/$(docker run debian:jessie ip route | sed -n 's/^default via \(.*\) dev .*/\1/p')/" spec/test_cluster.rb
- make docker-compose
- make test
## Instruction:
Hide... | sudo: required
services:
- docker
before_install:
- gem install bundler
install:
- make test-deps
script:
- sed -i "s/172\.17\.0\.1/$(docker run debian:jessie ip route | sed -n 's/^default via \(.*\) dev .*/\1/p')/" spec/test_cluster.rb
- make docker-compose
- - make test
+ - make test... | 5 | 0.454545 | 4 | 1 |
11d2785c8bbc0bb71f4a4095834f1678cffb0545 | README.md | README.md | nyan-cat
========
| nyan-cat
========
[](https://travis-ci.org/spyc3r/nyan-cat)
| Add travis badge to readme | Add travis badge to readme | Markdown | mit | keathley/nyan-cat | markdown | ## Code Before:
nyan-cat
========
## Instruction:
Add travis badge to readme
## Code After:
nyan-cat
========
[](https://travis-ci.org/spyc3r/nyan-cat)
| nyan-cat
========
+
+ [](https://travis-ci.org/spyc3r/nyan-cat) | 2 | 1 | 2 | 0 |
1736d7b7aed3ce3049186ce97e24941de0187caf | oidc_provider/lib/utils/common.py | oidc_provider/lib/utils/common.py | from django.conf import settings as django_settings
from django.core.urlresolvers import reverse
from oidc_provider import settings
def get_issuer():
"""
Construct the issuer full url. Basically is the site url with some path
appended.
"""
site_url = settings.get('SITE_URL')
path = reverse('o... | from django.conf import settings as django_settings
from django.core.urlresolvers import reverse
from oidc_provider import settings
def get_issuer():
"""
Construct the issuer full url. Basically is the site url with some path
appended.
"""
site_url = settings.get('SITE_URL')
path = reverse('o... | Add IOError custom message when rsa key file is missing. | Add IOError custom message when rsa key file is missing.
| Python | mit | ByteInternet/django-oidc-provider,torreco/django-oidc-provider,juanifioren/django-oidc-provider,bunnyinc/django-oidc-provider,wayward710/django-oidc-provider,bunnyinc/django-oidc-provider,wayward710/django-oidc-provider,wojtek-fliposports/django-oidc-provider,nmohoric/django-oidc-provider,nmohoric/django-oidc-provider,... | python | ## Code Before:
from django.conf import settings as django_settings
from django.core.urlresolvers import reverse
from oidc_provider import settings
def get_issuer():
"""
Construct the issuer full url. Basically is the site url with some path
appended.
"""
site_url = settings.get('SITE_URL')
p... | from django.conf import settings as django_settings
from django.core.urlresolvers import reverse
from oidc_provider import settings
def get_issuer():
"""
Construct the issuer full url. Basically is the site url with some path
appended.
"""
site_url = settings.get('SITE_URL... | 7 | 0.25 | 5 | 2 |
75d7b8e6a4487e73c1e34350c8bbcc467ebc9459 | app/controllers/admin/features_controller.rb | app/controllers/admin/features_controller.rb | class Admin::FeaturesController < Admin::AdminController
include FeatureGetterHelper
before_filter :get_feature, :only => [:show, :destroy]
def show
@features_fields = Feature.non_common_fields
end
def create
@features_fields = Feature.non_common_fields.map{|f| f[:name]}
params_for_insert = H... | class Admin::FeaturesController < Admin::AdminController
include FeatureGetterHelper
before_filter :get_feature, :only => [:show, :destroy]
def show
@features_fields = Feature.non_common_fields
end
def create
@features_fields = Feature.non_common_fields.map{|f| f[:name]}
params_for_insert = H... | Fix a bug with ruby 1.8.7 when inserting/updating features | Fix a bug with ruby 1.8.7 when inserting/updating features
| Ruby | bsd-3-clause | Vizzuality/cartoset,Vizzuality/cartoset | ruby | ## Code Before:
class Admin::FeaturesController < Admin::AdminController
include FeatureGetterHelper
before_filter :get_feature, :only => [:show, :destroy]
def show
@features_fields = Feature.non_common_fields
end
def create
@features_fields = Feature.non_common_fields.map{|f| f[:name]}
param... | class Admin::FeaturesController < Admin::AdminController
include FeatureGetterHelper
before_filter :get_feature, :only => [:show, :destroy]
def show
@features_fields = Feature.non_common_fields
end
def create
@features_fields = Feature.non_common_fields.map{|f| f[:name]}
-... | 4 | 0.102564 | 2 | 2 |
b511a3a8465b6ec4f3a7a9c626e7988d5feb885c | app.js | app.js | var express = require('express'),
fs = require('fs');
var app = module.exports = express.createServer();
// Configuration
app.configure(function(){
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(express.static(__dirname + '/public'));
});
app.get('/', function (req, res) {
r... | var express = require('express'),
fs = require('fs');
var app = module.exports = express.createServer();
// Configuration
app.configure(function(){
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(express.static(__dirname + '/public'));
});
app.get('/', function (req, res) {
r... | Add check for ENV port variable. | Add check for ENV port variable.
| JavaScript | apache-2.0 | phonegap/emulate.phonegap.com,phonegap/emulate.phonegap.com | javascript | ## Code Before:
var express = require('express'),
fs = require('fs');
var app = module.exports = express.createServer();
// Configuration
app.configure(function(){
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(express.static(__dirname + '/public'));
});
app.get('/', function (r... | var express = require('express'),
fs = require('fs');
var app = module.exports = express.createServer();
// Configuration
app.configure(function(){
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(express.static(__dirname + '/public'));
});
app.get('/', f... | 3 | 0.111111 | 2 | 1 |
8472078e29ca70843e19e24b6c3290dab20e80de | setup.py | setup.py | from setuptools import setup, find_packages
# Parse the version from the mapbox module.
with open('mapboxcli/__init__.py') as f:
for line in f:
if line.find("__version__") >= 0:
version = line.split("=")[1].strip()
version = version.strip('"')
version = version.strip("'... | from setuptools import setup, find_packages
# Parse the version from the mapbox module.
with open('mapboxcli/__init__.py') as f:
for line in f:
if line.find("__version__") >= 0:
version = line.split("=")[1].strip()
version = version.strip('"')
version = version.strip("'... | Add mock to test extras | Add mock to test extras
| Python | mit | mapbox/mapbox-cli-py | python | ## Code Before:
from setuptools import setup, find_packages
# Parse the version from the mapbox module.
with open('mapboxcli/__init__.py') as f:
for line in f:
if line.find("__version__") >= 0:
version = line.split("=")[1].strip()
version = version.strip('"')
version = ... | from setuptools import setup, find_packages
# Parse the version from the mapbox module.
with open('mapboxcli/__init__.py') as f:
for line in f:
if line.find("__version__") >= 0:
version = line.split("=")[1].strip()
version = version.strip('"')
versio... | 4 | 0.108108 | 2 | 2 |
1b51a554e45810add193fbf65db0858b2e46f504 | src/Zodiac/TSRP/HttpClient.hs | src/Zodiac/TSRP/HttpClient.hs | {-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
module Zodiac.TSRP.HttpClient(
macHttpClientRequest
, httpAuthHeader
) where
import qualified Data.CaseInsensitive as CI
import Network.HTTP.Client (Request)
import Network.HTTP.Types (Header)
import P
import... | {-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
module Zodiac.TSRP.HttpClient(
authedHttpClientRequest'
, macHttpClientRequest
, httpAuthHeader
) where
import qualified Data.CaseInsensitive as CI
import Network.HTTP.Client (Request(..), requestHeaders)
import Networ... | Return an authenticated http-client Request | Return an authenticated http-client Request
| Haskell | bsd-3-clause | ambiata/zodiac,ambiata/zodiac | haskell | ## Code Before:
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
module Zodiac.TSRP.HttpClient(
macHttpClientRequest
, httpAuthHeader
) where
import qualified Data.CaseInsensitive as CI
import Network.HTTP.Client (Request)
import Network.HTTP.Types (Header)
import ... | {-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
module Zodiac.TSRP.HttpClient(
+ authedHttpClientRequest'
- macHttpClientRequest
? ^
+ , macHttpClientRequest
? ^
, httpAuthHeader
) where
import qualified Data.CaseInsensitive as CI
- import Network.HT... | 30 | 0.625 | 23 | 7 |
a99085060c73346f15b54b916f56ece9a9501801 | Examples/Segmentation/CMakeLists.txt | Examples/Segmentation/CMakeLists.txt | cmake_minimum_required(VERSION 2.8)
project(SimpleITKSegmentationExamples)
if(NOT SimpleITK_SOURCE_DIR)
find_package(SimpleITK REQUIRED)
include(${SimpleITK_USE_FILE})
endif()
# Add executable example targets
add_executable ( ConnectedThresholdImageFilter ConnectedThresholdImageFilter.cxx )
target_link_libraries ... | add_executable ( ConnectedThresholdImageFilter ConnectedThresholdImageFilter.cxx )
target_link_libraries ( ConnectedThresholdImageFilter ${SimpleITK_LIBRARIES} )
add_executable ( NeighborhoodConnectedImageFilter NeighborhoodConnectedImageFilter.cxx )
target_link_libraries ( NeighborhoodConnectedImageFilter ${SimpleITK... | Remove Segmentation examples as separate project | Remove Segmentation examples as separate project
Change-Id: Id9c6f07ef3346cc32f6a83ae881f75574dcdd2fd
| Text | apache-2.0 | richardbeare/SimpleITK,SimpleITK/SimpleITK,SimpleITK/SimpleITK,InsightSoftwareConsortium/SimpleITK,SimpleITK/SimpleITK,InsightSoftwareConsortium/SimpleITK,richardbeare/SimpleITK,kaspermarstal/SimpleElastix,InsightSoftwareConsortium/SimpleITK,blowekamp/SimpleITK,SimpleITK/SimpleITK,richardbeare/SimpleITK,kaspermarstal/S... | text | ## Code Before:
cmake_minimum_required(VERSION 2.8)
project(SimpleITKSegmentationExamples)
if(NOT SimpleITK_SOURCE_DIR)
find_package(SimpleITK REQUIRED)
include(${SimpleITK_USE_FILE})
endif()
# Add executable example targets
add_executable ( ConnectedThresholdImageFilter ConnectedThresholdImageFilter.cxx )
target... | - cmake_minimum_required(VERSION 2.8)
- project(SimpleITKSegmentationExamples)
-
- if(NOT SimpleITK_SOURCE_DIR)
- find_package(SimpleITK REQUIRED)
- include(${SimpleITK_USE_FILE})
- endif()
-
- # Add executable example targets
add_executable ( ConnectedThresholdImageFilter ConnectedThresholdImageFilter.cxx )
... | 9 | 0.642857 | 0 | 9 |
9c24fdecf6b56eea88515afce962e65bc60255d5 | setup.py | setup.py |
from setuptools import setup
setup(
name='soccer-cli',
version='0.0.3.1',
description='Soccer for Hackers.',
author='Archit Verma',
license='MIT',
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 3... |
from setuptools import setup
import sys
setup(
name='soccer-cli',
version='0.0.3.1',
description='Soccer for Hackers.',
author='Archit Verma',
license='MIT',
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development ... | Add color support for Windows | Add color support for Windows
http://click.pocoo.org/5/utils/#ansi-colors
| Python | mit | architv/soccer-cli,migueldvb/soccer-cli,Saturn/soccer-cli,saisai/soccer-cli,nare469/soccer-cli,littmus/soccer-cli,suhussai/soccer-cli,ueg1990/soccer-cli,thurask/soccer-cli,carlosvargas/soccer-cli | python | ## Code Before:
from setuptools import setup
setup(
name='soccer-cli',
version='0.0.3.1',
description='Soccer for Hackers.',
author='Archit Verma',
license='MIT',
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Develop... |
from setuptools import setup
+ import sys
setup(
name='soccer-cli',
version='0.0.3.1',
description='Soccer for Hackers.',
author='Archit Verma',
license='MIT',
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Produ... | 3 | 0.069767 | 2 | 1 |
7458e6cdd17cf5a7454e7b2212341722c94b988c | AUTHORS.txt | AUTHORS.txt | Adhocracy is licensed under the GNU Affero General Public License, Version 3,
which can be found in LICENSE.txt
Adhocracy is Copyright 2009, 2010, 2011, 2012, 2013, 2014 by
Friedrich Lindenberg
Martin Häcker
Joscha Krutzki
Bernhard Reiter
Carsten Senger
Nicolas Dietrich
Philipp Hagemeister
Tobias Bengfort
| Adhocracy is licensed under the GNU Affero General Public License, Version 3,
which can be found in LICENSE.txt
Adhocracy is Copyright 2009, 2010, 2011, 2012, 2013, 2014 by
Friedrich Lindenberg
Joscha Krutzki
Carsten Senger
Nicolas Dietrich
Philipp Hagemeister
Tobias Bengfort
and others. Check git history to get a l... | Remove explicit authorship without significant contributions | Remove explicit authorship without significant contributions
Note that there are more unnamed authors with more contributions.
| Text | agpl-3.0 | alkadis/vcv,DanielNeugebauer/adhocracy,liqd/adhocracy,alkadis/vcv,phihag/adhocracy,phihag/adhocracy,liqd/adhocracy,alkadis/vcv,alkadis/vcv,phihag/adhocracy,liqd/adhocracy,DanielNeugebauer/adhocracy,alkadis/vcv,phihag/adhocracy,liqd/adhocracy,DanielNeugebauer/adhocracy,DanielNeugebauer/adhocracy,DanielNeugebauer/adhocra... | text | ## Code Before:
Adhocracy is licensed under the GNU Affero General Public License, Version 3,
which can be found in LICENSE.txt
Adhocracy is Copyright 2009, 2010, 2011, 2012, 2013, 2014 by
Friedrich Lindenberg
Martin Häcker
Joscha Krutzki
Bernhard Reiter
Carsten Senger
Nicolas Dietrich
Philipp Hagemeister
Tobias Beng... | Adhocracy is licensed under the GNU Affero General Public License, Version 3,
which can be found in LICENSE.txt
Adhocracy is Copyright 2009, 2010, 2011, 2012, 2013, 2014 by
Friedrich Lindenberg
- Martin Häcker
Joscha Krutzki
- Bernhard Reiter
Carsten Senger
Nicolas Dietrich
Philipp Hagemeister
T... | 4 | 0.307692 | 2 | 2 |
505f8fcd0e0f9069c2a09fd0420bdab6606631a0 | backend/app/views/comable/admin/shared/_notifier.slim | backend/app/views/comable/admin/shared/_notifier.slim | - if flash[:alert] || flash[:notice]
#comable-notifier
javascript:
#{add_gritter(flash[:alert], image: :error) if flash[:alert]}
#{add_gritter(flash[:notice], image: :success) if flash[:notice]}
| - if flash[:alert] || flash[:notice]
#comable-notifier
javascript:
#{add_gritter(flash[:alert], image: :error, nodom_wrap: true) if flash[:alert]}
#{add_gritter(flash[:notice], image: :success, nodom_wrap: true) if flash[:notice]}
| Add a gritter option to work | Add a gritter option to work
| Slim | mit | hyoshida/comable,appirits/comable,hyoshida/comable,appirits/comable,appirits/comable,hyoshida/comable | slim | ## Code Before:
- if flash[:alert] || flash[:notice]
#comable-notifier
javascript:
#{add_gritter(flash[:alert], image: :error) if flash[:alert]}
#{add_gritter(flash[:notice], image: :success) if flash[:notice]}
## Instruction:
Add a gritter option to work
## Code After:
- if flash[:alert] || flash[:... | - if flash[:alert] || flash[:notice]
#comable-notifier
javascript:
- #{add_gritter(flash[:alert], image: :error) if flash[:alert]}
+ #{add_gritter(flash[:alert], image: :error, nodom_wrap: true) if flash[:alert]}
? ++++++++++++++++++
- #{add... | 4 | 0.8 | 2 | 2 |
ba46bf4e7fc4a5b3b161d6fe8d2ed9bd04e3a3fc | script/bootstrap.sh | script/bootstrap.sh | brew install tmux
brew install ctags
brew install rbenv
brew install ruby-build
brew install mysql
brew install ag
brew install sbt
brew install leiningen
brew install hub
brew install node
brew install vim
brew install --HEAD https://raw.github.com/neovim/neovim/master/neovim.rb
brew tap homebrew/dupes
brew install a... | brew install tmux
brew install git bash-completion
brew install ctags
brew install rbenv
brew install ruby-build
brew install ag
brew install sbt
brew install leiningen
brew install hub
brew install node
brew install vim
brew install --HEAD https://raw.github.com/neovim/neovim/master/neovim.rb
brew tap homebrew/dupes
... | Add bash completion and remove optionals | Add bash completion and remove optionals
| Shell | mit | lamuria/setup | shell | ## Code Before:
brew install tmux
brew install ctags
brew install rbenv
brew install ruby-build
brew install mysql
brew install ag
brew install sbt
brew install leiningen
brew install hub
brew install node
brew install vim
brew install --HEAD https://raw.github.com/neovim/neovim/master/neovim.rb
brew tap homebrew/dupe... | brew install tmux
+ brew install git bash-completion
brew install ctags
brew install rbenv
brew install ruby-build
- brew install mysql
brew install ag
brew install sbt
brew install leiningen
brew install hub
brew install node
brew install vim
brew install --HEAD https://raw.github.com/neovim/neov... | 3 | 0.085714 | 1 | 2 |
2ec99039bbea606d4f23b209eea5614608a62fcb | src/main/java/signature/CanonicalLabellingVisitor.java | src/main/java/signature/CanonicalLabellingVisitor.java | package signature;
import java.util.Arrays;
public class CanonicalLabellingVisitor implements DAGVisitor {
private int[] labelling;
private int currentLabel;
public CanonicalLabellingVisitor(int vertexCount) {
this.labelling = new int[vertexCount];
Arrays.fill(this.labelling... | package signature;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
public class CanonicalLabellingVisitor implements DAGVisitor {
private int[] labelling;
private int currentLabel;
private Comparator<DAG.Node> comparator;
public CanonicalLab... | Sort the child nodes in the labelling visitor, to make sure that they are sorted | Sort the child nodes in the labelling visitor, to make sure that they are sorted
| Java | mit | gilleain/signatures | java | ## Code Before:
package signature;
import java.util.Arrays;
public class CanonicalLabellingVisitor implements DAGVisitor {
private int[] labelling;
private int currentLabel;
public CanonicalLabellingVisitor(int vertexCount) {
this.labelling = new int[vertexCount];
Arrays.fil... | package signature;
import java.util.Arrays;
+ import java.util.Collections;
+ import java.util.Comparator;
public class CanonicalLabellingVisitor implements DAGVisitor {
private int[] labelling;
private int currentLabel;
+ private Comparator<DAG.Node> comparator;
+
... | 15 | 0.46875 | 11 | 4 |
c5f644ac2162aa63def54e42365558222b546f93 | app/controllers/letsencrypt_controller.rb | app/controllers/letsencrypt_controller.rb | class LetsencryptController < ApplicationController
def letsencrypt
# use your code here, not mine
render text: "MQ5dUiAaSFm8z6_4o3igHp_P-5VcU-jSRU5O-gz6ufM.xQk3L_ZooytfqxYnB78MxA3nMkWHp7bd6j8jAExcZMs"
end
end
| class LetsencryptController < ApplicationController
def letsencrypt
# use your code here, not mine
render text: "GHsKETOLaQ3HUHjD4rJMzhjRnzM8K1Z_y6gXJcszipQ.xQk3L_ZooytfqxYnB78MxA3nMkWHp7bd6j8jAExcZMs"
end
end
| Change url cert is for | Change url cert is for
| Ruby | mit | icodeclean/StockAid,on-site/StockAid,on-site/StockAid,icodeclean/StockAid,icodeclean/StockAid,on-site/StockAid | ruby | ## Code Before:
class LetsencryptController < ApplicationController
def letsencrypt
# use your code here, not mine
render text: "MQ5dUiAaSFm8z6_4o3igHp_P-5VcU-jSRU5O-gz6ufM.xQk3L_ZooytfqxYnB78MxA3nMkWHp7bd6j8jAExcZMs"
end
end
## Instruction:
Change url cert is for
## Code After:
class LetsencryptControlle... | class LetsencryptController < ApplicationController
def letsencrypt
# use your code here, not mine
- render text: "MQ5dUiAaSFm8z6_4o3igHp_P-5VcU-jSRU5O-gz6ufM.xQk3L_ZooytfqxYnB78MxA3nMkWHp7bd6j8jAExcZMs"
+ render text: "GHsKETOLaQ3HUHjD4rJMzhjRnzM8K1Z_y6gXJcszipQ.xQk3L_ZooytfqxYnB78MxA3nMkWHp7bd6j8j... | 2 | 0.333333 | 1 | 1 |
9075cf1aa531252ffd4b97bddcbc4ca702da5436 | utils.c | utils.c | char* file_to_buffer(const char *filename) {
struct stat sb;
stat(filename, &sb);
char *buffer = (char*) malloc(sb.st_size * sizeof(char));
FILE *f = fopen(filename, "rb");
assert(fread((void*) buffer, sizeof(char), sb.st_size, f));
fclose(f);
return buffer;
}
| char* file_to_buffer(const char *filename) {
struct stat sb;
stat(filename, &sb);
char *buffer = (char*) malloc(sb.st_size * sizeof(char));
FILE *f = fopen(filename, "rb");
assert(fread((void*) buffer, sizeof(char), sb.st_size, f));
fclose(f);
return buffer;
}
void* mmalloc(size_t sz, char ... | Implement dirty unallocatable memory mapped alloc. | Implement dirty unallocatable memory mapped alloc.
| C | mit | frostburn/tinytsumego,frostburn/tinytsumego | c | ## Code Before:
char* file_to_buffer(const char *filename) {
struct stat sb;
stat(filename, &sb);
char *buffer = (char*) malloc(sb.st_size * sizeof(char));
FILE *f = fopen(filename, "rb");
assert(fread((void*) buffer, sizeof(char), sb.st_size, f));
fclose(f);
return buffer;
}
## Instruction... | char* file_to_buffer(const char *filename) {
struct stat sb;
stat(filename, &sb);
char *buffer = (char*) malloc(sb.st_size * sizeof(char));
FILE *f = fopen(filename, "rb");
assert(fread((void*) buffer, sizeof(char), sb.st_size, f));
fclose(f);
return buffer;
}
+
+ void* mm... | 12 | 1.333333 | 12 | 0 |
9be7deeaf400858dc00118d274b4cf4d19c60858 | stdnum/cr/__init__.py | stdnum/cr/__init__.py |
"""Collection of Costa Rican numbers."""
|
"""Collection of Costa Rican numbers."""
from stdnum.cr import cpj as vat # noqa: F401
| Add missing vat alias for Costa Rica | Add missing vat alias for Costa Rica
| Python | lgpl-2.1 | arthurdejong/python-stdnum,arthurdejong/python-stdnum,arthurdejong/python-stdnum | python | ## Code Before:
"""Collection of Costa Rican numbers."""
## Instruction:
Add missing vat alias for Costa Rica
## Code After:
"""Collection of Costa Rican numbers."""
from stdnum.cr import cpj as vat # noqa: F401
|
"""Collection of Costa Rican numbers."""
+ from stdnum.cr import cpj as vat # noqa: F401 | 1 | 0.5 | 1 | 0 |
f56daf1995445b84874515afbab18a9fafc0d1ea | tutorial-guide/INDEX.md | tutorial-guide/INDEX.md |
Welcome to the Errai tutorial. This tutorial is designed to walk you through getting started with Errai. What exactly does that entail? Here is an index the files in this tutorial guide and what they cover:
1. **SETUP.md** : Get the tools you need (such as Git, Maven, and Jboss)
2. **RUN.md** : Run an Errai Applicat... |
Welcome to the Errai tutorial. This tutorial is designed to walk you through getting started with Errai. What exactly does that entail? Here is an index the files in this tutorial guide and what they cover:
1. **SETUP.md** : Get the tools you need (such as Git, Maven, and Jboss)
2. **RUN.md** : Run an Errai Applicat... | Remove mention of FAQ from index. | Remove mention of FAQ from index.
I might've been getting ahead of myself there.
| Markdown | apache-2.0 | WISDelft/ExpertiseFindingPrototype,errai/errai-tutorial,freelance-factory/errai-prototype,errai/errai-tutorial,freelance-factory/user-complaint-form,mbarkley/errai-tutorial,WISDelft/ExpertiseFindingPrototype,freelance-factory/ticketek,mbarkley/errai-tutorial,divd/errai-tutorial,freelance-factory/user-complaint-form,div... | markdown | ## Code Before:
Welcome to the Errai tutorial. This tutorial is designed to walk you through getting started with Errai. What exactly does that entail? Here is an index the files in this tutorial guide and what they cover:
1. **SETUP.md** : Get the tools you need (such as Git, Maven, and Jboss)
2. **RUN.md** : Run a... |
Welcome to the Errai tutorial. This tutorial is designed to walk you through getting started with Errai. What exactly does that entail? Here is an index the files in this tutorial guide and what they cover:
1. **SETUP.md** : Get the tools you need (such as Git, Maven, and Jboss)
2. **RUN.md** : Run an Er... | 2 | 0.166667 | 0 | 2 |
ba91fb3f357eae45022a76e613fcdbec8d58aee2 | app/assets/stylesheets/dashboard.scss | app/assets/stylesheets/dashboard.scss | // Place all the styles related to the dashboard controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
header sup {
font-variant: small-caps;
}
ul.dropdown-menu .popover {
width:300px;
}
.motd {
overflow-wrap: break-word;
word-wrap:... | // Place all the styles related to the dashboard controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
header sup {
font-variant: small-caps;
}
ul.dropdown-menu .popover {
width:300px;
}
.motd {
overflow-wrap: break-word;
word-wrap:... | Add css hr to delineate footer | Add css hr to delineate footer
| SCSS | mit | OSC/ood-dashboard,OSC/ood-dashboard,OSC/ood-dashboard | scss | ## Code Before:
// Place all the styles related to the dashboard controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
header sup {
font-variant: small-caps;
}
ul.dropdown-menu .popover {
width:300px;
}
.motd {
overflow-wrap: break-wo... | // Place all the styles related to the dashboard controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
header sup {
font-variant: small-caps;
}
ul.dropdown-menu .popover {
width:300px;
}
.motd {
overflow-wr... | 6 | 0.333333 | 6 | 0 |
74220e49b03bb5357eddec432719075643aaeb68 | README.md | README.md |
[]() []()
Track expenses, earning, and assets easily.
|
[!(https://img.shields.io/github/license/xmas-bunch/bookkeeper.svg)](http://www.opensource.org/licenses/MIT)
[!(https://img.shields.io/travis/xmas-bunch/bookkeeper.svg)](https://travis-ci.org/xmas-bunch/bookkeeper)
[!(https://img.shields.io/codecov/c/github/xmas-bunch/bookkeeper.svg)](https://codecov.io/gh/xmas-bunch/... | Add license shield, fix links in others | Add license shield, fix links in others
| Markdown | mit | xmas-bunch/bookkeeper | markdown | ## Code Before:
[]() []()
Track expenses, earning, and assets easily.
## Instruction:
Add license shield, fix links in others
## Code After:
[!(https://img.shields.io/githu... |
- []() []()
+ [!(https://img.shields.io/github/license/xmas-bunch/bookkeeper.svg)](http://www.opensource.org/licenses/MIT)
+ [!(https://img.shields.io/travis/xmas-bunch/bookk... | 4 | 1 | 3 | 1 |
5a2d9217230a74e2736523b261edf22da5ec7d49 | README.rst | README.rst | ================
FeinCMS in a Box
================
Prerequisites
-------------
An up-to-date installation of compass and zurb-foundation 4.3.2::
(sudo) gem install compass
(sudo) gem install zurb-foundation --version '=4.3.2'
Under Debian-derivatives, you need the following libraries::
sudo apt-get ins... | ================
FeinCMS in a Box
================
Prerequisites
-------------
An up-to-date installation of compass and zurb-foundation 4.3.2::
(sudo) gem install compass
(sudo) gem install zurb-foundation --version '=4.3.2'
Under Debian-derivatives, you need the following libraries::
sudo apt-get ins... | Split the clone from the rest | Split the clone from the rest
| reStructuredText | bsd-3-clause | lucacorsato/feincms-in-a-box,lucacorsato/feincms-in-a-box,lucacorsato/feincms-in-a-box,lucacorsato/feincms-in-a-box | restructuredtext | ## Code Before:
================
FeinCMS in a Box
================
Prerequisites
-------------
An up-to-date installation of compass and zurb-foundation 4.3.2::
(sudo) gem install compass
(sudo) gem install zurb-foundation --version '=4.3.2'
Under Debian-derivatives, you need the following libraries::
... | ================
FeinCMS in a Box
================
Prerequisites
-------------
An up-to-date installation of compass and zurb-foundation 4.3.2::
(sudo) gem install compass
(sudo) gem install zurb-foundation --version '=4.3.2'
Under Debian-derivatives, you need the following librari... | 14 | 0.304348 | 11 | 3 |
396975698365b81fbe8ae49bf1c637534fb2d0c4 | source/api_v2_remote_resources.rst | source/api_v2_remote_resources.rst | Remote Resources
================
Get details on an account's remote instances.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: bash
GET /remote_instances/
Request/Response:
.. code-block:: bash
$ http
Get details on an account's remote instances.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | Remote Resources
================
Get details on an account's remote instances.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: bash
GET /remote_instances/
Request/Response:
.. code-block:: bash
$ http
Get details on the specified remote instance.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | Fix duplicates with new regex | Fix duplicates with new regex
| reStructuredText | mit | zcorleissen/documentation | restructuredtext | ## Code Before:
Remote Resources
================
Get details on an account's remote instances.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: bash
GET /remote_instances/
Request/Response:
.. code-block:: bash
$ http
Get details on an account's remote instances.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | Remote Resources
================
Get details on an account's remote instances.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: bash
GET /remote_instances/
Request/Response:
.. code-block:: bash
$ http
- Get details on an account's remote instances.
? ... | 15 | 0.357143 | 14 | 1 |
8f76e6bda0c98d74c87eb8c422fab7b88a71e4cc | jdisc_http_service/src/main/java/com/yahoo/container/logging/FileConnectionLog.java | jdisc_http_service/src/main/java/com/yahoo/container/logging/FileConnectionLog.java | // Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.container.logging;
import com.google.inject.Inject;
import com.yahoo.component.AbstractComponent;
import java.util.logging.Logger;
/**
* @author mortent
*/
public class FileConnection... | // Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.container.logging;
import com.google.inject.Inject;
import com.yahoo.component.AbstractComponent;
/**
* @author mortent
*/
public class FileConnectionLog extends AbstractComponent impl... | Fix ordering of constructor arguments | Fix ordering of constructor arguments
| Java | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa | java | ## Code Before:
// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.container.logging;
import com.google.inject.Inject;
import com.yahoo.component.AbstractComponent;
import java.util.logging.Logger;
/**
* @author mortent
*/
public clas... | // Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.container.logging;
import com.google.inject.Inject;
import com.yahoo.component.AbstractComponent;
- import java.util.logging.Logger;
-
/**
* @author mortent
*/
p... | 5 | 0.151515 | 1 | 4 |
a97f0b62319fff1d80d5e299e5a3ba566abe8c4e | .travis.yml | .travis.yml | language: php
php:
- 5.3
- 5.4
- 5.5
before_install:
- composer install --prefer-source --dev
- mkdir -p data/logs
script:
- ./vendor/bin/phpunit -c test/phpunit.xml --coverage-clover ./build/logs/clover.xml
- ./vendor/bin/phpcs -n --standard=PSR2 ./src/ ./test/
after_script:
- php ./vendor/bin/coveral... | language: php
php:
- 5.3
- 5.4
- 5.5
before_install:
- composer install --prefer-source --dev
- mkdir -p data/logs
script:
- ./vendor/bin/phpunit --bootstrap=test/Bootstrap.php --coverage-clover ./build/logs/clover.xml
- ./vendor/bin/phpcs -n --standard=PSR2 ./src/ ./test/
after_script:
- php ./vendor/... | Change the way phpunit bootstraps | Change the way phpunit bootstraps | YAML | mit | ughly/ugh-authorization | yaml | ## Code Before:
language: php
php:
- 5.3
- 5.4
- 5.5
before_install:
- composer install --prefer-source --dev
- mkdir -p data/logs
script:
- ./vendor/bin/phpunit -c test/phpunit.xml --coverage-clover ./build/logs/clover.xml
- ./vendor/bin/phpcs -n --standard=PSR2 ./src/ ./test/
after_script:
- php ./ve... | language: php
php:
- 5.3
- 5.4
- 5.5
before_install:
- composer install --prefer-source --dev
- mkdir -p data/logs
script:
- - ./vendor/bin/phpunit -c test/phpunit.xml --coverage-clover ./build/logs/clover.xml
? ^^ --------
+ - ./vendor/bin/phpunit -... | 2 | 0.117647 | 1 | 1 |
4999d62bd685ee090edf49b1bf47c28a91ba5454 | dev/golang/comparison/README.md | dev/golang/comparison/README.md | * [3 ways to compare slices (arrays)](https://yourbasic.org/golang/compare-slices/)
| * [3 ways to compare slices (arrays)](https://yourbasic.org/golang/compare-slices/)
* [Checking the equality of two slices](https://stackoverflow.com/questions/15311969/checking-the-equality-of-two-slices)
| Add Checking the equality of two slices | Add Checking the equality of two slices
| Markdown | mit | northbright/bookmarks,northbright/bookmarks,northbright/bookmarks | markdown | ## Code Before:
* [3 ways to compare slices (arrays)](https://yourbasic.org/golang/compare-slices/)
## Instruction:
Add Checking the equality of two slices
## Code After:
* [3 ways to compare slices (arrays)](https://yourbasic.org/golang/compare-slices/)
* [Checking the equality of two slices](https://stackoverflow.c... | * [3 ways to compare slices (arrays)](https://yourbasic.org/golang/compare-slices/)
+ * [Checking the equality of two slices](https://stackoverflow.com/questions/15311969/checking-the-equality-of-two-slices) | 1 | 1 | 1 | 0 |
07cc1527ac6daaf5326f509ec8971661d808d454 | spec/nutrella/options_spec.rb | spec/nutrella/options_spec.rb | require "spec_helper"
module Nutrella
RSpec.describe Options do
describe "reads board name from args" do
it "-t" do
subject = Options.new(["-t", "board_name"])
subject.parse
expect(subject.board_name).to eq("board_name")
end
it "--trello-board" do
subject = Opt... | require "spec_helper"
module Nutrella
RSpec.describe Options do
describe "reads board name from args" do
it "-t" do
subject = options_parse("-t", "board_name")
expect(subject.board_name).to eq("board_name")
end
it "--trello-board" do
subject = options_parse("--trello-b... | Add the options_parse test helper method. | Add the options_parse test helper method.
| Ruby | mit | amckinnell/nutrella,amckinnell/nutrella | ruby | ## Code Before:
require "spec_helper"
module Nutrella
RSpec.describe Options do
describe "reads board name from args" do
it "-t" do
subject = Options.new(["-t", "board_name"])
subject.parse
expect(subject.board_name).to eq("board_name")
end
it "--trello-board" do
... | require "spec_helper"
module Nutrella
RSpec.describe Options do
describe "reads board name from args" do
it "-t" do
- subject = Options.new(["-t", "board_name"])
? ^ ^^ - - -
+ subject = options_parse("-t", "board_name")
? ... | 30 | 0.810811 | 20 | 10 |
ddd89186bbce5aa21d87680769698b1728036154 | .travis.yml | .travis.yml | language: python
python:
- 2.7
- 3.3
env:
- NUMPY_VERSION=1.8 ASTROPY_VERSION=0.3.1 SETUP_CMD='test'
before_install:
- source .setup_conda.sh $TRAVIS_PYTHON_VERSION
- export PATH=/home/travis/anaconda/bin:/home/travis/miniconda3/bin:$PATH
install:
- conda install --yes python=$TRAVIS_PYTHON_VER... | language: python
python:
- 2.7
- 3.3
env:
- NUMPY_VERSION=1.8 ASTROPY_VERSION=0.3.1 SETUP_CMD='test'
before_install:
- source .setup_conda.sh $TRAVIS_PYTHON_VERSION
- export PATH=/home/travis/anaconda/bin:/home/travis/miniconda3/bin:$PATH
install:
- conda install --yes python=$TRAVIS_PYTHON_VER... | Use pip for pytest-cov and coveralls | Use pip for pytest-cov and coveralls | YAML | bsd-3-clause | e-koch/spectral-cube,radio-astro-tools/spectral-cube,low-sky/spectral-cube,keflavich/spectral-cube,jzuhone/spectral-cube | yaml | ## Code Before:
language: python
python:
- 2.7
- 3.3
env:
- NUMPY_VERSION=1.8 ASTROPY_VERSION=0.3.1 SETUP_CMD='test'
before_install:
- source .setup_conda.sh $TRAVIS_PYTHON_VERSION
- export PATH=/home/travis/anaconda/bin:/home/travis/miniconda3/bin:$PATH
install:
- conda install --yes python=$T... | language: python
python:
- 2.7
- 3.3
env:
- NUMPY_VERSION=1.8 ASTROPY_VERSION=0.3.1 SETUP_CMD='test'
before_install:
- source .setup_conda.sh $TRAVIS_PYTHON_VERSION
- export PATH=/home/travis/anaconda/bin:/home/travis/miniconda3/bin:$PATH
install:
- - conda install -... | 3 | 0.136364 | 2 | 1 |
9bba0683dc47ed09a907425378b7ac4bdcf53085 | examples/basic/index.html | examples/basic/index.html | <!DOCTYPE HTML>
<body style="background-color: #222;font-family: sans-serif;">
<div style="text-align:center;">
<h1 style="color:white;">Move with arrow keys</h1>
<h4 style="color:white;">Hit Space to toggle AI control</h4>
</div>
<script src="../../Ecs.js"></script>
<script src="test.js"></script>
</bo... | <!DOCTYPE HTML>
<body style="background-color: #222;font-family: sans-serif;">
<canvas></canvas>
<div style="text-align:center;">
<h1 style="color:white;">Move with arrow keys</h1>
<h4 style="color:white;">Hit Space to toggle AI control</h4>
</div>
<script src="../../Ecs.js"></script>
<script src="tes... | Update basic example to be able to render on screen | Update basic example to be able to render on screen
| HTML | mit | Luftare/Ecs | html | ## Code Before:
<!DOCTYPE HTML>
<body style="background-color: #222;font-family: sans-serif;">
<div style="text-align:center;">
<h1 style="color:white;">Move with arrow keys</h1>
<h4 style="color:white;">Hit Space to toggle AI control</h4>
</div>
<script src="../../Ecs.js"></script>
<script src="test.js... | <!DOCTYPE HTML>
<body style="background-color: #222;font-family: sans-serif;">
+ <canvas></canvas>
<div style="text-align:center;">
<h1 style="color:white;">Move with arrow keys</h1>
<h4 style="color:white;">Hit Space to toggle AI control</h4>
</div>
<script src="../../Ecs.js"></script>
... | 1 | 0.111111 | 1 | 0 |
a03154f3fb9875a47e22637b7b0a84d4464ee53c | stack.yaml | stack.yaml | compiler: ghcjs-0.2.1.9007001_ghc-8.0.1
compiler-check: match-exact
extra-deps:
- ghcjs-dom-0.2.4.0
- ref-tf-0.4.0.1
- zenc-0.1.1
packages:
- '.'
- extra-dep: true
location:
git: git@github.com:/jonathanknowles/reflex
commit: a63aba90bdea5ae5b3e1506d468613bdfedcdfa3
- extra-dep: true
... | compiler: ghcjs-0.2.1.9007015_ghc-8.0.1
compiler-check: match-exact
extra-deps:
- ghcjs-dom-0.2.4.0
- ref-tf-0.4.0.1
- zenc-0.1.1
packages:
- '.'
- extra-dep: true
location:
git: git@github.com:/jonathanknowles/reflex
commit: a63aba90bdea5ae5b3e1506d468613bdfedcdfa3
- extra-dep: true
... | Move to LTS Haskell 7.15. | Move to LTS Haskell 7.15.
| YAML | bsd-3-clause | jonathanknowles/haskell-calculator | yaml | ## Code Before:
compiler: ghcjs-0.2.1.9007001_ghc-8.0.1
compiler-check: match-exact
extra-deps:
- ghcjs-dom-0.2.4.0
- ref-tf-0.4.0.1
- zenc-0.1.1
packages:
- '.'
- extra-dep: true
location:
git: git@github.com:/jonathanknowles/reflex
commit: a63aba90bdea5ae5b3e1506d468613bdfedcdfa3
- ext... | - compiler: ghcjs-0.2.1.9007001_ghc-8.0.1
? -
+ compiler: ghcjs-0.2.1.9007015_ghc-8.0.1
? +
compiler-check: match-exact
extra-deps:
- ghcjs-dom-0.2.4.0
- ref-tf-0.4.0.1
- zenc-0.1.1
packages:
- '.'
- extra-dep: true
location:
... | 10 | 0.416667 | 5 | 5 |
1ed6da265ad447c48ace01bb4eb6f66f63b4dc14 | source/css/_partial/sidebar.styl | source/css/_partial/sidebar.styl | if sidebar is bottom
@import "sidebar-bottom"
else
@import "sidebar-aside"
.widget
@extend $base-style
line-height: line-height
word-wrap: break-word
font-size: 0.9em
ul, ol
list-style: none
margin: 0
ul, ol
margin: 0 20px
ul
list-style: disc
ol
list-style: decimal
... | if sidebar is bottom
@import "sidebar-bottom"
else
@import "sidebar-aside"
.widget
@extend $base-style
line-height: line-height
word-wrap: break-word
font-size: 0.9em
ul, ol
list-style: none
margin: 0
ul, ol
margin: 0 20px
ul
list-style: disc
ol
list-style: decimal
... | Fix wrongly newlines after dashes. | Fix wrongly newlines after dashes.
Fix wrongly newlines after dashes. For example, a tag "org-mode".
https://github.com/hexojs/hexo/issues/1092 | Stylus | mit | 1PxUp/Naji,SykieChen/hexo-theme-hic17,critikapp/blog-theme,Nagland/hexo-theme-landscape-cn,cgmartin/hexo-theme-bootstrap-blog,QiJiaZhang/present,sandinmyjoints/hexo-theme-landscape,JLHwung/hexo-theme-landscape,hanliang512288/landscape-h,howiefh/hexo-theme-landscape-f,ideoplex/hexo-theme-landscape,tommy351/hexo-theme-la... | stylus | ## Code Before:
if sidebar is bottom
@import "sidebar-bottom"
else
@import "sidebar-aside"
.widget
@extend $base-style
line-height: line-height
word-wrap: break-word
font-size: 0.9em
ul, ol
list-style: none
margin: 0
ul, ol
margin: 0 20px
ul
list-style: disc
ol
list-... | if sidebar is bottom
@import "sidebar-bottom"
else
@import "sidebar-aside"
.widget
@extend $base-style
line-height: line-height
word-wrap: break-word
font-size: 0.9em
ul, ol
list-style: none
margin: 0
ul, ol
margin: 0 20px
ul
list-style: disc
... | 1 | 0.029412 | 1 | 0 |
dc9782fadc5a886dbf4179896e458da5b6d20666 | restart_sshd.sh | restart_sshd.sh |
screen -D -m -S RestartSSHD bash -c 'killall sshd; sleep 5; /etc/init.d/sshd restart'
|
screen -D -m -S RestartSSHD bash -c 'killall sshd; sleep 5; /etc/init.d/sshd restart; systemctl restart sshd.service'
| Make CentOS 7 also restart. Not the best way to do this, but should work... | Make CentOS 7 also restart. Not the best way to do this, but should
work...
| Shell | mit | gserafini/useful-server-scripts | shell | ## Code Before:
screen -D -m -S RestartSSHD bash -c 'killall sshd; sleep 5; /etc/init.d/sshd restart'
## Instruction:
Make CentOS 7 also restart. Not the best way to do this, but should
work...
## Code After:
screen -D -m -S RestartSSHD bash -c 'killall sshd; sleep 5; /etc/init.d/sshd restart; systemctl restart s... |
- screen -D -m -S RestartSSHD bash -c 'killall sshd; sleep 5; /etc/init.d/sshd restart'
+ screen -D -m -S RestartSSHD bash -c 'killall sshd; sleep 5; /etc/init.d/sshd restart; systemctl restart sshd.service'
? +++++++++++++++++++++++... | 2 | 0.666667 | 1 | 1 |
1f745e65c50109fd1d414871f32533efcd57f2a1 | app/views/application/_footer.html.erb | app/views/application/_footer.html.erb | <!-- =========== -->
<!-- Footer Area -->
<!-- =========== -->
<div class="footer col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="container">
<div class="row">
<div class="col-lg-3 col-lg-offset-3 col-md-3 col-sm-6 col-xs-12 sitemap">
<ul>
<li>
<%= link_to 'About', about_page_path %>
... | <!-- =========== -->
<!-- Footer Area -->
<!-- =========== -->
<div class="container-fluid">
<div class="footer col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="row">
<div class="col-lg-1 col-lg-offset-4 col-md-3 col-sm-6 col-xs-12 sitemap">
<ul>
<li>
<%= link_to 'About', about_page_path ... | Remove redundent classes and divs, and rename footer links class to social | Remove redundent classes and divs, and rename footer links class to social
| HTML+ERB | agpl-3.0 | payloadtech/mailpenny,payloadtech/mailpenny,payloadtech/mailpenny | html+erb | ## Code Before:
<!-- =========== -->
<!-- Footer Area -->
<!-- =========== -->
<div class="footer col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="container">
<div class="row">
<div class="col-lg-3 col-lg-offset-3 col-md-3 col-sm-6 col-xs-12 sitemap">
<ul>
<li>
<%= link_to 'About', about... | <!-- =========== -->
<!-- Footer Area -->
<!-- =========== -->
+ <div class="container-fluid">
<div class="footer col-lg-12 col-md-12 col-sm-12 col-xs-12">
- <div class="container">
<div class="row">
- <div class="col-lg-3 col-lg-offset-3 col-md-3 col-sm-6 col-xs-12 sitemap">
? ^ ... | 8 | 0.186047 | 4 | 4 |
4c05966b3321c45b286edab4b2d4961e53dc9bdd | app/services/create_section_service.rb | app/services/create_section_service.rb | class CreateSectionService
def initialize(manual_repository:, context:)
@manual_repository = manual_repository
@listeners = [
PublishingApiDraftManualExporter.new,
PublishingApiDraftSectionExporter.new
]
@context = context
end
def call
@new_document = manual.build_document(documen... | class CreateSectionService
def initialize(manual_repository:, context:)
@manual_repository = manual_repository
@context = context
end
def call
@new_document = manual.build_document(document_params)
if new_document.valid?
manual.draft
manual_repository.store(manual)
export_draft... | Use more meaningful method names for publishing | Use more meaningful method names for publishing
Rather than "notifying listeners" use more meaningful names to refer
to calling the Exporter methods.
| Ruby | mit | alphagov/manuals-publisher,alphagov/manuals-publisher,alphagov/manuals-publisher | ruby | ## Code Before:
class CreateSectionService
def initialize(manual_repository:, context:)
@manual_repository = manual_repository
@listeners = [
PublishingApiDraftManualExporter.new,
PublishingApiDraftSectionExporter.new
]
@context = context
end
def call
@new_document = manual.build_... | class CreateSectionService
def initialize(manual_repository:, context:)
@manual_repository = manual_repository
- @listeners = [
- PublishingApiDraftManualExporter.new,
- PublishingApiDraftSectionExporter.new
- ]
@context = context
end
def call
@new_document = manua... | 19 | 0.452381 | 9 | 10 |
39fbce2a0e225591423f9b2d1edd111822063466 | app/core/api.py | app/core/api.py | from flask import jsonify, request
from ..main import app
@app.route('/api/ip')
def api_ip():
return jsonify({'Success': True, 'ipAddress': get_client_ip()})
def get_client_ip():
return request.headers.get('X-Forwarded-For') or request.remote_addr
| from flask import jsonify, request
from ..main import app
@app.route('/api/ip')
def api_ip():
"""Return client IP"""
return api_reply({'ipAddress': get_client_ip()})
def get_client_ip():
"""Return the client x-forwarded-for header or IP address"""
return request.headers.get('X-Forwarded-For') or req... | Add a standard API reply interface | Add a standard API reply interface
| Python | mit | jniedrauer/jniedrauer.com,jniedrauer/jniedrauer.com,jniedrauer/jniedrauer.com | python | ## Code Before:
from flask import jsonify, request
from ..main import app
@app.route('/api/ip')
def api_ip():
return jsonify({'Success': True, 'ipAddress': get_client_ip()})
def get_client_ip():
return request.headers.get('X-Forwarded-For') or request.remote_addr
## Instruction:
Add a standard API reply in... | from flask import jsonify, request
from ..main import app
@app.route('/api/ip')
def api_ip():
+ """Return client IP"""
- return jsonify({'Success': True, 'ipAddress': get_client_ip()})
? ^^^^ ^ -----------------
+ return api_reply({'ipAddress': get_client_ip()})
? ^^ ^... | 9 | 0.818182 | 8 | 1 |
a9d4fab047249fbf5db26385779902d0f7483057 | qsimcirq/__init__.py | qsimcirq/__init__.py | from .qsim_circuit import *
from .qsim_simulator import *
from .qsimh_simulator import *
| from .qsim_circuit import add_op_to_opstring, add_op_to_circuit, QSimCircuit
from .qsim_simulator import QSimSimulatorState, QSimSimulatorTrialResult, QSimSimulator
from .qsimh_simulator import QSimhSimulator
| Replace star imports to fix mypy issue. | Replace star imports to fix mypy issue.
| Python | apache-2.0 | quantumlib/qsim,quantumlib/qsim,quantumlib/qsim,quantumlib/qsim | python | ## Code Before:
from .qsim_circuit import *
from .qsim_simulator import *
from .qsimh_simulator import *
## Instruction:
Replace star imports to fix mypy issue.
## Code After:
from .qsim_circuit import add_op_to_opstring, add_op_to_circuit, QSimCircuit
from .qsim_simulator import QSimSimulatorState, QSimSimulatorTr... | - from .qsim_circuit import *
- from .qsim_simulator import *
+ from .qsim_circuit import add_op_to_opstring, add_op_to_circuit, QSimCircuit
+ from .qsim_simulator import QSimSimulatorState, QSimSimulatorTrialResult, QSimSimulator
- from .qsimh_simulator import *
? ^
+ from .qsimh_simulato... | 8 | 1.6 | 3 | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.