prompt stringlengths 77 6.9k | completion stringlengths 1 3.38k | text stringlengths 163 9.03k | commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | lang stringclasses 277
values |
|---|---|---|---|---|---|---|
<|file_sep|>original/data/building-hours/4-3-rølvaag-library.yaml
name: Rølvaag Library
image: rolvaag-library
category: Libraries
schedule:
- title: Hours
hours:
- {days: [Mo, Tu, We, Th], from: '7:45am', to: '2:00am'}
- {days: [Fr], from: '7:45am', to: '9:00pm'}
- {days: [Sa], from: '9:00am',... | name: Rølvaag Library
image: rolvaag-library
category: Libraries
schedule:
- title: Hours
hours:
# - {days: [Mo, Tu, We, Th], from: '7:45am', to: '2:00am'}
# - {days: [Fr], from: '7:45am', to: '9:00pm'}
# - {days: [Sa], from: '9:00am', to: '9:00pm'}
# - {days: [Su], from: '12:00pm', to: '... | <|file_sep|>original/data/building-hours/4-3-rølvaag-library.yaml
name: Rølvaag Library
image: rolvaag-library
category: Libraries
schedule:
- title: Hours
hours:
- {days: [Mo, Tu, We, Th], from: '7:45am', to: '2:00am'}
- {days: [Fr], from: '7:45am', to: '9:00pm'}
- {days: [Sa], from: '9:00am',... | 373a2f4f260811dfea2530238e2cf998b8866314 | data/building-hours/4-3-rølvaag-library.yaml | data/building-hours/4-3-rølvaag-library.yaml | YAML |
<|file_sep|>Casks/launchcontrol.rb.diff
original:
version '1.14.2'
sha256 '9351c57b3956e63f5d995dfe4b9f45fa78a39476dbc3a4b7aa8797b600c4d8ad'
updated:
version '1.15.3'
sha256 'fecdd0dd58e937d3d3e9894ba046f52f61f001826bb2ab1beacedc23e8da3fd7'
<|file_sep|>original/Casks/launchcontrol.rb
class Launchcontrol < Cask
... | class Launchcontrol < Cask
version '1.15.3'
sha256 'fecdd0dd58e937d3d3e9894ba046f52f61f001826bb2ab1beacedc23e8da3fd7'
url "http://www.soma-zone.com/download/files/LaunchControl_#{version}.tar.bz2"
appcast 'http://www.soma-zone.com/LaunchControl/a/appcast.xml'
homepage 'http://www.soma-zone.com/LaunchControl/... | <|file_sep|>Casks/launchcontrol.rb.diff
original:
version '1.14.2'
sha256 '9351c57b3956e63f5d995dfe4b9f45fa78a39476dbc3a4b7aa8797b600c4d8ad'
updated:
version '1.15.3'
sha256 'fecdd0dd58e937d3d3e9894ba046f52f61f001826bb2ab1beacedc23e8da3fd7'
<|file_sep|>original/Casks/launchcontrol.rb
class Launchcontrol < Cask
... | 8330ac4c9f7af41c1046679704b4926749e20916 | Casks/launchcontrol.rb | Casks/launchcontrol.rb | Ruby |
<|file_sep|>original/CHANGES.md
<|file_sep|>current/CHANGES.md
<|file_sep|>updated/CHANGES.md | ## v0.2.0
* Various refactoring, see https://github.com/ian-andrich/PythonPengines/pull/5
## v0.1.4 : More fat fingering.
## v0.1.3 : Fat fingered some pypi code.
## v0.1.2 : Added repo to pypi under the name PythonPengines | <|file_sep|>original/CHANGES.md
<|file_sep|>current/CHANGES.md
<|file_sep|>updated/CHANGES.md
## v0.2.0
* Various refactoring, see https://github.com/ian-andrich/PythonPengines/pull/5
## v0.1.4 : More fat fingering.
## v0.1.3 : Fat fingered some pypi code.
## v0.1.2 : Added repo to pypi under the name PythonPengin... | 679dc8939dc2a04ac9efb22b36f6730275389209 | CHANGES.md | CHANGES.md | Markdown |
<|file_sep|>original/register.php
<?php
$REGISTER_LTI2 = array(
"name" => "Peer-Graded Dropbox",
"FontAwesome" => "fa-code-fork",
"short_name" => "Peer Grader",
"description" => "This tool provides a structured dropbox that can take images, URLs, text and code. These tools can be peer-graded, instructor graded, or a ... | <?php
$REGISTER_LTI2 = array(
"name" => "Peer-Graded Dropbox",
"FontAwesome" => "fa-code-fork",
"short_name" => "Peer Grader",
"description" => "This tool provides a structured dropbox that can take images, URLs, text and code. These tools can be peer-graded, instructor graded, or a blend of peer and instructor grade... | <|file_sep|>original/register.php
<?php
$REGISTER_LTI2 = array(
"name" => "Peer-Graded Dropbox",
"FontAwesome" => "fa-code-fork",
"short_name" => "Peer Grader",
"description" => "This tool provides a structured dropbox that can take images, URLs, text and code. These tools can be peer-graded, instructor graded, or a ... | bb910c686df14ad253070787696ae8fd7f39e2a7 | register.php | register.php | PHP |
<|file_sep|>original/builds/truenas-fbsd11/freenas.cfg
<|file_sep|>current/builds/truenas-fbsd11/freenas.cfg
<|file_sep|>updated/builds/truenas-fbsd11/freenas.cfg | #!/bin/sh
# FreeNAS Build configuration settings
# Which FreeNAS git URL to clone
GITFNASURL="https://github.com/freenas/freenas-build.git"
export GITFNASURL
# Branch of the FreeNAS repo to build with
# Available (freenas10)
GITFNASBRANCH="master"
export GITFNASBRANCH
# Set location for release to be stored
TARGETRE... | <|file_sep|>original/builds/truenas-fbsd11/freenas.cfg
<|file_sep|>current/builds/truenas-fbsd11/freenas.cfg
<|file_sep|>updated/builds/truenas-fbsd11/freenas.cfg
#!/bin/sh
# FreeNAS Build configuration settings
# Which FreeNAS git URL to clone
GITFNASURL="https://github.com/freenas/freenas-build.git"
export GITFNAS... | c44d0685b77d4641995fe3d10b59020274a8c0a9 | builds/truenas-fbsd11/freenas.cfg | builds/truenas-fbsd11/freenas.cfg | INI |
<|file_sep|>original/tox.ini
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
-egit+https://github.com/openstack/nova#egg=nova
-egit+https://git... | skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
-egit+https://github.com/openstack/nova#egg=nova
-egit+https://github.com/pypowervm/pypowervm@d... | <|file_sep|>original/tox.ini
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
-egit+https://github.com/openstack/nova#egg=nova
-egit+https://git... | 9b4123a11d5882aa30d4a57438a2f280e5dbeaad | tox.ini | tox.ini | INI |
<|file_sep|>original/spec/features/create_match_spec.rb
<|file_sep|>current/spec/features/create_match_spec.rb
<|file_sep|>updated/spec/features/create_match_spec.rb | require 'spec_helper'
feature 'Create match' do
background do
@project = create(:project, state: 'online', online_date: -1.seconds.from_now)
login
end
scenario 'generate new' do
visit project_path(@project)
click_on 'Match'
fill_in 'projects_challenges_match_value', with: 2
fill... | <|file_sep|>original/spec/features/create_match_spec.rb
<|file_sep|>current/spec/features/create_match_spec.rb
<|file_sep|>updated/spec/features/create_match_spec.rb
require 'spec_helper'
feature 'Create match' do
background do
@project = create(:project, state: 'online', online_date: -1.seconds.from_now)
... | b81068a0872f2142e764f3490f927e3a103af657 | spec/features/create_match_spec.rb | spec/features/create_match_spec.rb | Ruby |
<|file_sep|>original/app/assets/stylesheets/_bootstrap_over.css.scss
}
}
.alert-info {
background-color: $blue;
text-shadow: none;
border: 0 none;
color: white;
}
.search {
.dropdown-menu {
@include border-box;
min-width: 91%;
box-shadow: none;
border-radius: 0;
border: 2px solid $blue... | }
}
.alert-info {
background-color: $blue;
text-shadow: none;
border: 0 none;
color: white;
}
.dropdown-menu {
@include border-box;
border-radius: 0;
border: 2px solid $silver;
box-shadow: none;
}
.search {
.dropdown-menu {
@include border-box;
min-width: 91%;
box-shadow: none; | <|file_sep|>original/app/assets/stylesheets/_bootstrap_over.css.scss
}
}
.alert-info {
background-color: $blue;
text-shadow: none;
border: 0 none;
color: white;
}
.search {
.dropdown-menu {
@include border-box;
min-width: 91%;
box-shadow: none;
border-radius: 0;
border: 2px solid $blue... | ff5f974a0fd10f73a6cb7b1080297768c50416eb | app/assets/stylesheets/_bootstrap_over.css.scss | app/assets/stylesheets/_bootstrap_over.css.scss | SCSS |
<|file_sep|>original/tests/unit/test_files.py
<|file_sep|>current/tests/unit/test_files.py
<|file_sep|>updated/tests/unit/test_files.py | from tests import PMGTestCase
import datetime
import pytz
from pmg.models import db, CommitteeMeeting, Event, EventFile, File, House, Committee
from tests.fixtures import dbfixture, CommitteeData, CommitteeMeetingData, EventData
# TODO: might have to mock S3
class TestFiles(PMGTestCase):
def setUp(self):
... | <|file_sep|>original/tests/unit/test_files.py
<|file_sep|>current/tests/unit/test_files.py
<|file_sep|>updated/tests/unit/test_files.py
from tests import PMGTestCase
import datetime
import pytz
from pmg.models import db, CommitteeMeeting, Event, EventFile, File, House, Committee
from tests.fixtures import dbfixture, ... | 1e385a0d1ef396249ac626e242ae6c1140d8b7a0 | tests/unit/test_files.py | tests/unit/test_files.py | Python |
<|file_sep|>python_scripts/mc_config.py.diff
original:
def read_config():
yml_file = open(_config_file_name, 'rb')
updated:
_defaults_config_file_base_name = 'defaults.yml'
_defaults_config_file_name = os.path.abspath(os.path.join(os.path.dirname(__file__), '../config', _defaults_config_file_base_name))
def _load... | _defaults_config_file_base_name = 'defaults.yml'
_defaults_config_file_name = os.path.abspath(os.path.join(os.path.dirname(__file__), '../config', _defaults_config_file_base_name))
def _load_yml( file_path ):
yml_file = open(file_path, 'rb')
config_file = yaml.load( yml_file )
return config_file
def... | <|file_sep|>python_scripts/mc_config.py.diff
original:
def read_config():
yml_file = open(_config_file_name, 'rb')
updated:
_defaults_config_file_base_name = 'defaults.yml'
_defaults_config_file_name = os.path.abspath(os.path.join(os.path.dirname(__file__), '../config', _defaults_config_file_base_name))
def _load... | 88773c6757540c9f1d4dfca2a287512e74bdbc24 | python_scripts/mc_config.py | python_scripts/mc_config.py | Python |
<|file_sep|>app/views/tasks/show.html.erb.diff
original:
<%= resource.story.text %>
updated:
<%= markdown resource.story.text %>
<|file_sep|>app/views/tasks/show.html.erb.diff
original:
<h4><%= t('tasks.show.text') %></h4>
<%= resource.text %>
updated:
<h4><%= t('tasks.show.text') %></h4>
<%= markdown resource.... | <h3><%= resource.name %></h3>
<dl class="dl-horizontal">
<%= show_attribute :state %>
<%= show_actions after_namespace: 'workflow_project_owner_index' %>
</dl>
<h4><%= t('tasks.show.story_text') %></h4>
<%= markdown resource.story.text %>
<% if resource.text.present? %>
<h4><%= t('tasks.show.text') %></h4>
... | <|file_sep|>app/views/tasks/show.html.erb.diff
original:
<%= resource.story.text %>
updated:
<%= markdown resource.story.text %>
<|file_sep|>app/views/tasks/show.html.erb.diff
original:
<h4><%= t('tasks.show.text') %></h4>
<%= resource.text %>
updated:
<h4><%= t('tasks.show.text') %></h4>
<%= markdown resource.... | f6b77fdb221ba162c7cb01af87cd89701adaf884 | app/views/tasks/show.html.erb | app/views/tasks/show.html.erb | HTML+ERB |
<|file_sep|>original/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
script:
- RAILS_ENV=test bundle exec rake db:create
- RAILS_ENV=test bundle exec rake db:migrate
- xvfb-run bundle exec rspec
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
script:
- RAILS_ENV=test bundle exec ra... | language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.0
script:
- RAILS_ENV=test bundle exec rake db:create
- RAILS_ENV=test bundle exec rake db:migrate
- xvfb-run bundle exec rspec | <|file_sep|>original/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
script:
- RAILS_ENV=test bundle exec rake db:create
- RAILS_ENV=test bundle exec rake db:migrate
- xvfb-run bundle exec rspec
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
script:
- RAILS_ENV=test bundle exec ra... | 5de9e46bb42aabd0fb478e3e15ae212bd9e5555a | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/CoreUpdates/3251-DeferredMorphicProcessingFix-JuanVuletich-2018Jan14-11h18m-jmv.1.cs.st
<|file_sep|>current/CoreUpdates/3251-DeferredMorphicProcessingFix-JuanVuletich-2018Jan14-11h18m-jmv.1.cs.st
<|file_sep|>updated/CoreUpdates/3251-DeferredMorphicProcessingFix-JuanVuletich-2018Jan14-11h18m-jmv.1... | 'From Cuis 5.0 of 7 November 2016 [latest update: #3250] on 14 January 2018 at 11:26:34 am'!
!WorldState methodsFor: 'stepping' stamp: 'jmv 1/14/2018 11:26:09'!
runStepMethods
"Perform periodic activity inbetween event cycles"
| queue readyToProcess |
queue _ self class deferredUIMessages.
"Processing the queue u... | <|file_sep|>original/CoreUpdates/3251-DeferredMorphicProcessingFix-JuanVuletich-2018Jan14-11h18m-jmv.1.cs.st
<|file_sep|>current/CoreUpdates/3251-DeferredMorphicProcessingFix-JuanVuletich-2018Jan14-11h18m-jmv.1.cs.st
<|file_sep|>updated/CoreUpdates/3251-DeferredMorphicProcessingFix-JuanVuletich-2018Jan14-11h18m-jmv.1... | 63924c4ec120c55bc99b8701be76402e8c945162 | CoreUpdates/3251-DeferredMorphicProcessingFix-JuanVuletich-2018Jan14-11h18m-jmv.1.cs.st | CoreUpdates/3251-DeferredMorphicProcessingFix-JuanVuletich-2018Jan14-11h18m-jmv.1.cs.st | Smalltalk |
<|file_sep|>original/requirements-dev.txt
-r requirements.txt
pytest==3.6.2
pytest-mock==1.10.0
sphinx==1.7.5
<|file_sep|>current/requirements-dev.txt
-r requirements.txt
pytest==3.6.2
pytest-mock==1.10.0
sphinx==1.7.5
<|file_sep|>updated/requirements-dev.txt | -r requirements.txt
pytest==3.6.4
pytest-mock==1.10.0
sphinx==1.7.5 | <|file_sep|>original/requirements-dev.txt
-r requirements.txt
pytest==3.6.2
pytest-mock==1.10.0
sphinx==1.7.5
<|file_sep|>current/requirements-dev.txt
-r requirements.txt
pytest==3.6.2
pytest-mock==1.10.0
sphinx==1.7.5
<|file_sep|>updated/requirements-dev.txt
-r requirements.txt
pytest==3.6.4
pytest-mock==1.10.0
sphinx... | 13e5f812bbe5708fb2c965559801eda0a4d4070a | requirements-dev.txt | requirements-dev.txt | Text |
<|file_sep|>original/layouts/_article.erb
---
# Template for Articles (Blog Posts)
---
<div class='blog-entry'>
<h1 class="entry-title"><%= item[:title] %></h1>
<div class="entry-meta">
<span class="entry-date">Posted on <%= pretty_time(item[:created_at]) %></span>
</div> <!-- end .post-data -->
<article... | ---
# Template for Articles (Blog Posts)
---
<div class='blog-entry'>
<h1 class="entry-title"><%= item[:title] %></h1>
<div class="entry-meta">
<span class="entry-date">Posted on <%= format_time("long", item[:created_at]) %></span>
</div> <!-- end .post-data -->
<article class="entry-body">
<%= yield... | <|file_sep|>original/layouts/_article.erb
---
# Template for Articles (Blog Posts)
---
<div class='blog-entry'>
<h1 class="entry-title"><%= item[:title] %></h1>
<div class="entry-meta">
<span class="entry-date">Posted on <%= pretty_time(item[:created_at]) %></span>
</div> <!-- end .post-data -->
<article... | b55014e286f0494d0ceace7e0c2fb5e85ae8363a | layouts/_article.erb | layouts/_article.erb | HTML+ERB |
<|file_sep|>original/sources/wmo.int/2015-country-matcher/meta.txt
URL: https://www.wmo.int/cpdb/tools/countrymatcher
Title: Country2PUB5 matcher
Description:
Please input country names into the textfield
and press match to start matching process
<|file_sep|>current/sources/wmo.int/2015-country-matcher/meta.txt
URL: h... | URL: https://www.wmo.int/cpdb/tools/countrymatcher
Title: Country2PUB5 matcher
Checked: 2015-01-28
Description:
Please input country names into the textfield
and press match to start matching process | <|file_sep|>original/sources/wmo.int/2015-country-matcher/meta.txt
URL: https://www.wmo.int/cpdb/tools/countrymatcher
Title: Country2PUB5 matcher
Description:
Please input country names into the textfield
and press match to start matching process
<|file_sep|>current/sources/wmo.int/2015-country-matcher/meta.txt
URL: h... | e981cc2a51cf6bf099b4115610500aecb1ace270 | sources/wmo.int/2015-country-matcher/meta.txt | sources/wmo.int/2015-country-matcher/meta.txt | Text |
<|file_sep|>original/tox.ini
[tox]
minversion = 1.6
envlist = py27,py34,pep8
skipsdist = True
[testenv]
usedevelop = True
install_command = {toxinidir}/tools/tox_install.sh {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = pyt... | [tox]
minversion = 1.6
envlist = py27,py34,pep8
skipsdist = True
[testenv]
usedevelop = True
install_command = {toxinidir}/tools/tox_install.sh {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.t... | <|file_sep|>original/tox.ini
[tox]
minversion = 1.6
envlist = py27,py34,pep8
skipsdist = True
[testenv]
usedevelop = True
install_command = {toxinidir}/tools/tox_install.sh {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = pyt... | 2c69f1e137443995862556723b4ddce2eb2fe464 | tox.ini | tox.ini | INI |
<|file_sep|>install/update_hpo.sql.diff
original:
updated:
<|file_sep|>original/install/update_hpo.sql
(
hpo_id character varying(30) COLLATE pg_catalog."C",
hpo_label text COLLATE pg_catalog."C",
gene_id integer,
gene_name character varying(255) COLLATE pg_catalog."C"
);
DROP TABLE IF EXISTS hpo_dis... | DROP TABLE IF EXISTS hpo_phenotype;
CREATE TABLE hpo_phenotype
(
hpo_id character varying(30) COLLATE pg_catalog."C",
hpo_label text COLLATE pg_catalog."C",
gene_id integer,
gene_name character varying(255) COLLATE pg_catalog."C"
);
DROP TABLE IF EXISTS hpo_disease;
CREATE TABLE hpo_disease
(
disea... | <|file_sep|>install/update_hpo.sql.diff
original:
updated:
<|file_sep|>original/install/update_hpo.sql
(
hpo_id character varying(30) COLLATE pg_catalog."C",
hpo_label text COLLATE pg_catalog."C",
gene_id integer,
gene_name character varying(255) COLLATE pg_catalog."C"
);
DROP TABLE IF EXISTS hpo_dis... | 57f0f70965cacefc1769aa75aea7a109633ee09a | install/update_hpo.sql | install/update_hpo.sql | SQL |
<|file_sep|>lib/mr_poole/cli.rb.diff
original:
require 'getoptlong'
updated:
require 'optparse'
require 'ostruct'
<|file_sep|>lib/mr_poole/cli.rb.diff
original:
opts = GetoptLong.new(
['--slug', '-s', GetoptLong::REQUIRED_ARGUMENT],
['--title', '-t', GetoptLong::REQUIRED_ARGUMENT],
)
updated... | options.slug = s
end
opts.on('-t', '--title [TITLE]', "Specifiy title") do |t|
options.title = t
end
end
opt_parser.parse! @params
options.title ||= @params.first
@helper.post_usage unless options.title
@tasks.post(options.title, options.slug... | <|file_sep|>lib/mr_poole/cli.rb.diff
original:
require 'getoptlong'
updated:
require 'optparse'
require 'ostruct'
<|file_sep|>lib/mr_poole/cli.rb.diff
original:
opts = GetoptLong.new(
['--slug', '-s', GetoptLong::REQUIRED_ARGUMENT],
['--title', '-t', GetoptLong::REQUIRED_ARGUMENT],
)
updated... | 8cefbf836fe7a76fce9bff0174acabf5a9d5cd00 | lib/mr_poole/cli.rb | lib/mr_poole/cli.rb | Ruby |
<|file_sep|>original/AndroidManifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.trygveaa.gcmnotifier"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="10"
android:targetSdkVersion="15" />
<application
... | <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.trygveaa.gcmnotifier"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="10"
android:targetSdkVersion="15" />
<permission
android:name="com.trygveaa.gcmnotifi... | <|file_sep|>original/AndroidManifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.trygveaa.gcmnotifier"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="10"
android:targetSdkVersion="15" />
<application
... | 4c57185b26aacfc5c623844865e43e20663b2de9 | AndroidManifest.xml | AndroidManifest.xml | XML |
<|file_sep|>original/synapse/storage/schema/delta/15/v15.sql
-- Drop, copy & recreate pushers table to change unique key
-- Also add access_token column at the same time
CREATE TABLE IF NOT EXISTS pushers2 (
id INTEGER PRIMARY KEY AUTOINCREMENT,
user_name TEXT NOT NULL,
access_token INTEGER DEFAULT NULL,
profil... | -- Drop, copy & recreate pushers table to change unique key
-- Also add access_token column at the same time
CREATE TABLE IF NOT EXISTS pushers2 (
id BIGINT PRIMARY KEY,
user_name TEXT NOT NULL,
access_token INTEGER DEFAULT NULL,
profile_tag varchar(32) NOT NULL,
kind varchar(8) NOT NULL,
app_id varchar(64)... | <|file_sep|>original/synapse/storage/schema/delta/15/v15.sql
-- Drop, copy & recreate pushers table to change unique key
-- Also add access_token column at the same time
CREATE TABLE IF NOT EXISTS pushers2 (
id INTEGER PRIMARY KEY AUTOINCREMENT,
user_name TEXT NOT NULL,
access_token INTEGER DEFAULT NULL,
profil... | 8810eb8c399f84787ed45b22d7f1386cecf3ca87 | synapse/storage/schema/delta/15/v15.sql | synapse/storage/schema/delta/15/v15.sql | SQL |
<|file_sep|>original/nzo/url-encryptor-bundle/2020-05-03.yaml
title: Insecure default secret key and IV allowing anyone to decrypt values
link: https://github.com/nayzo/NzoUrlEncryptorBundle/issues/41
cve: ~
branches:
"5.x":
time: 2020-05-03 16:54:00
versions: [<5.0.1]
reference: ... | title: Insecure default secret key and IV allowing anyone to decrypt values
link: https://github.com/nayzo/NzoUrlEncryptorBundle/issues/41
cve: ~
branches:
5.x:
time: 2020-05-04 14:50:00
versions: ['>=5.0.0', '<5.0.1']
4.x:
time: 2020-05-04 14:50:00
version... | <|file_sep|>original/nzo/url-encryptor-bundle/2020-05-03.yaml
title: Insecure default secret key and IV allowing anyone to decrypt values
link: https://github.com/nayzo/NzoUrlEncryptorBundle/issues/41
cve: ~
branches:
"5.x":
time: 2020-05-03 16:54:00
versions: [<5.0.1]
reference: ... | 42c8877b402405ca5e3caec66af3d944bfc72c6a | nzo/url-encryptor-bundle/2020-05-03.yaml | nzo/url-encryptor-bundle/2020-05-03.yaml | YAML |
<|file_sep|>original/appinfo/info.xml
<?xml version="1.0"?>
<info>
<id>ocsms</id>
<name>ownCloud SMS</name>
<description>A app to sync SMS with your ownCloud</description>
<licence>AGPL</licence>
<author>Loic Blot</author>
<version>1.4.5</version>
<requiremin>7</requiremin>
<ocsid>16728... | <?xml version="1.0"?>
<info>
<id>ocsms</id>
<name>ownCloud SMS</name>
<description>A app to sync SMS with your ownCloud</description>
<licence>AGPL</licence>
<author>Loic Blot</author>
<version>1.5.0</version>
<requiremin>7</requiremin>
<ocsid>167289</ocsid>
<website>https://ap... | <|file_sep|>original/appinfo/info.xml
<?xml version="1.0"?>
<info>
<id>ocsms</id>
<name>ownCloud SMS</name>
<description>A app to sync SMS with your ownCloud</description>
<licence>AGPL</licence>
<author>Loic Blot</author>
<version>1.4.5</version>
<requiremin>7</requiremin>
<ocsid>16728... | 86c71338ddeed024931cf1fbdad5d484c86fecb3 | appinfo/info.xml | appinfo/info.xml | XML |
<|file_sep|>original/page/app.js
security.permissions.page = ['use', 'content'];
var plugin = {
models: {},
middleware: {},
types: {},
client: {
js: [__dirname + '/client/javascript/**/*.js'],
html: [__dirname + '/client/javascript/**/*.html']
},... | security.permissions.page = ['use', 'content'];
var plugin = {
models: {},
middleware: {},
types: {},
client: {
js: [__dirname + '/client/javascript/**/*.js'],
html: [__dirname + '/client/javascript/**/*.html']
},
api: null,
addTy... | <|file_sep|>original/page/app.js
security.permissions.page = ['use', 'content'];
var plugin = {
models: {},
middleware: {},
types: {},
client: {
js: [__dirname + '/client/javascript/**/*.js'],
html: [__dirname + '/client/javascript/**/*.html']
},... | 14fbf0fca60e6f0000c742157a3b26e89204de29 | page/app.js | page/app.js | JavaScript |
<|file_sep|>app/src/main/java/com/example/julian/locationservice/DataUploader.java.diff
original:
private String county;
updated:
private String country;
<|file_sep|>app/src/main/java/com/example/julian/locationservice/DataUploader.java.diff
original:
// TODO: ifs
updated:
else if(vanity... | } catch (JSONException ignored) {}
finally {
// send `jo`
// as POST body
// to https://basic-data.parseapp.com/update
}
}
public DataUploader setLocation(String country, String city) {
this.country = country;
this.city = city;
... | <|file_sep|>app/src/main/java/com/example/julian/locationservice/DataUploader.java.diff
original:
private String county;
updated:
private String country;
<|file_sep|>app/src/main/java/com/example/julian/locationservice/DataUploader.java.diff
original:
// TODO: ifs
updated:
else if(vanity... | 604270511bd844a958c881e17d8f115afec6ab71 | app/src/main/java/com/example/julian/locationservice/DataUploader.java | app/src/main/java/com/example/julian/locationservice/DataUploader.java | Java |
<|file_sep|>original/src/event_scroll.rs
pub fn get_position(&self) -> (f64, f64) {
let x = self.as_ref().x;
let y = self.as_ref().y;
(x, y)
}
pub fn get_state(&self) -> ::ModifierType {
from_glib(self.as_ref().state)
}
pub fn get_device(&self) -> Option<::Device> ... | }
pub fn get_state(&self) -> ::ModifierType {
from_glib(self.as_ref().state)
}
pub fn get_device(&self) -> Option<::Device> {
unsafe { from_glib_none(self.as_ref().device) }
}
pub fn get_direction(&self) -> ::ScrollDirection {
from_glib(self.as_ref().direction)
}
... | <|file_sep|>original/src/event_scroll.rs
pub fn get_position(&self) -> (f64, f64) {
let x = self.as_ref().x;
let y = self.as_ref().y;
(x, y)
}
pub fn get_state(&self) -> ::ModifierType {
from_glib(self.as_ref().state)
}
pub fn get_device(&self) -> Option<::Device> ... | f0d043ee0a5d6544172f2159388af1b26f14ccb3 | src/event_scroll.rs | src/event_scroll.rs | Rust |
<|file_sep|>static/locales/en-GB/messages.properties.diff
original:
updated:
navigation-developers=Developers
<|file_sep|>original/static/locales/en-GB/messages.properties
# Title tag
# Navigation
# Header
upper-title=Pontoon by Mozilla
headline-1=LocaliSe the web.
# What
what-desc=Pontoon allows you to localise we... | # Title tag
# Navigation
navigation-developers=Developers
# Header
upper-title=Pontoon by Mozilla
headline-1=LocaliSe the web.
headline-2=In Place.
call-to-action=Tell Me More
# What
what-desc=Pontoon allows you to localise web content in place, with context and spatial limitations right in front of you.
context-des... | <|file_sep|>static/locales/en-GB/messages.properties.diff
original:
updated:
navigation-developers=Developers
<|file_sep|>original/static/locales/en-GB/messages.properties
# Title tag
# Navigation
# Header
upper-title=Pontoon by Mozilla
headline-1=LocaliSe the web.
# What
what-desc=Pontoon allows you to localise we... | e641698f63a5a05950f8c6dd32d423f202897dc5 | static/locales/en-GB/messages.properties | static/locales/en-GB/messages.properties | INI |
<|file_sep|>original/src/angular-app/languageforge/lexicon/new-project/views/new-project-chooser.html
<div class="row">
<div class="col-md-8 offset-md-2">
<div class="control-group">
<div class="controls">
<a class="btn btn-secondary btn-block" data-ng-class="interfaceConfig.pull... | <div class="row">
<div class="col-md-8 offset-md-2">
<div class="control-group">
<div class="controls">
<a class="btn btn-secondary btn-block" data-ng-class="interfaceConfig.pullNormal"
id="sendReceiveButton" data-ng-click="getProjectFromInternet()">
... | <|file_sep|>original/src/angular-app/languageforge/lexicon/new-project/views/new-project-chooser.html
<div class="row">
<div class="col-md-8 offset-md-2">
<div class="control-group">
<div class="controls">
<a class="btn btn-secondary btn-block" data-ng-class="interfaceConfig.pull... | 50f89cb24806bf14e3154979079b6001ecfcf656 | src/angular-app/languageforge/lexicon/new-project/views/new-project-chooser.html | src/angular-app/languageforge/lexicon/new-project/views/new-project-chooser.html | HTML |
<|file_sep|>original/bower.json
{
"name": "holderjs",
"main": "holder.js"
}
<|file_sep|>current/bower.json
{
"name": "holderjs",
"main": "holder.js"
}
<|file_sep|>updated/bower.json | {
"name": "holderjs",
"main": "holder.js",
"license": "MIT"
} | <|file_sep|>original/bower.json
{
"name": "holderjs",
"main": "holder.js"
}
<|file_sep|>current/bower.json
{
"name": "holderjs",
"main": "holder.js"
}
<|file_sep|>updated/bower.json
{
"name": "holderjs",
"main": "holder.js",
"license": "MIT"
} | 5cb101019f43d6aefc940983716ac082ca3e9fb0 | bower.json | bower.json | JSON |
<|file_sep|>original/requirements-dev.txt
-r requirements.txt
pytest==3.1.3
pytest-instafail==0.3.0
pytest-timeout==1.2.0
pytest-xdist==1.18.0
requests==2.18.1
selenium==3.4.3
websocket-client==0.44.0
<|file_sep|>current/requirements-dev.txt
-r requirements.txt
pytest==3.1.3
pytest-instafail==0.3.0
pytest-timeout==1.2.... | -r requirements.txt
pytest==3.1.3
pytest-instafail==0.3.0
pytest-timeout==1.2.0
pytest-xdist==1.18.1
requests==2.18.1
selenium==3.4.3
websocket-client==0.44.0 | <|file_sep|>original/requirements-dev.txt
-r requirements.txt
pytest==3.1.3
pytest-instafail==0.3.0
pytest-timeout==1.2.0
pytest-xdist==1.18.0
requests==2.18.1
selenium==3.4.3
websocket-client==0.44.0
<|file_sep|>current/requirements-dev.txt
-r requirements.txt
pytest==3.1.3
pytest-instafail==0.3.0
pytest-timeout==1.2.... | d5423cb51d61db8cda3e0b7b79324e4b7b118357 | requirements-dev.txt | requirements-dev.txt | Text |
<|file_sep|>original/src/_drafts/google-duplex.md
<|file_sep|>current/src/_drafts/google-duplex.md
<|file_sep|>updated/src/_drafts/google-duplex.md | ---
layout: post
title: A brief thought on Google Duplex
summary: I think Duplex could be a great tool for accessibility, even if that's not what it was pitched as.
tags: accessibility ableism
---
Last week was Google I/O, and there was a lot of discussion around one of their keynote demos: Google Duplex.
This is a se... | <|file_sep|>original/src/_drafts/google-duplex.md
<|file_sep|>current/src/_drafts/google-duplex.md
<|file_sep|>updated/src/_drafts/google-duplex.md
---
layout: post
title: A brief thought on Google Duplex
summary: I think Duplex could be a great tool for accessibility, even if that's not what it was pitched as.
tags:... | a1bf2a7dc34d11d662a320730ebcdc5b4cff10ba | src/_drafts/google-duplex.md | src/_drafts/google-duplex.md | Markdown |
<|file_sep|>original/game/src/main/scala/io/aigar/game/EntityContainer.scala
None
}
def handleCollision(entities: List[Entity],
players: List[Player],
scoreModifications: Option[MutableList[ScoreModification]]): List[Entity] ={
var entitiesReturn = List[Entity]()... | None
}
def handleCollision(entities: List[Entity],
players: List[Player],
scoreModifications: Option[MutableList[ScoreModification]]): List[Entity] ={
var entitiesReturn = List[Entity]()
for (entity <- entities){
for (player <- players) {
for (c... | <|file_sep|>original/game/src/main/scala/io/aigar/game/EntityContainer.scala
None
}
def handleCollision(entities: List[Entity],
players: List[Player],
scoreModifications: Option[MutableList[ScoreModification]]): List[Entity] ={
var entitiesReturn = List[Entity]()... | 5ab0b3e1843ca79d3b3261ccf38884921b74cf7e | game/src/main/scala/io/aigar/game/EntityContainer.scala | game/src/main/scala/io/aigar/game/EntityContainer.scala | Scala |
<|file_sep|>original/app/src/main/java/com/blocksolid/income/TaxCalculator.java
public TaxCalculator(int annualIncome) {
this.annualIncome = annualIncome;
calculatePersonalAllowance();
//calculateDeductions(personalAllowance);
}
public void setAnnualIncome(int newAnnualIncome) {
... |
public void setAnnualIncome(int newAnnualIncome) {
annualIncome = newAnnualIncome;
}
public int getAnnualIncome() {
return annualIncome;
}
public int calculatePersonalAllowance() {
if (annualIncome > PERSONAL_ALLOWANCE_THRESHOLD) {
int difference = annualIncome... | <|file_sep|>original/app/src/main/java/com/blocksolid/income/TaxCalculator.java
public TaxCalculator(int annualIncome) {
this.annualIncome = annualIncome;
calculatePersonalAllowance();
//calculateDeductions(personalAllowance);
}
public void setAnnualIncome(int newAnnualIncome) {
... | 3da8e205ee031c64f436ffae9d107cb0b537a1b7 | app/src/main/java/com/blocksolid/income/TaxCalculator.java | app/src/main/java/com/blocksolid/income/TaxCalculator.java | Java |
<|file_sep|>applications/plugins/org.csstudio.opibuilder.adl2boy/src/org/csstudio/opibuilder/adl2boy/translator/Composite2Model.java.diff
original:
updated:
import org.csstudio.opibuilder.model.AbstractContainerModel;
<|file_sep|>applications/plugins/org.csstudio.opibuilder.adl2boy/src/org/csstudio/opibuilder/adl2boy/... | setADLObjectProps(compositeWidget, containerModel);
}
}
}
@Override
public AbstractWidgetModel getWidgetModel() {
return containerModel;
}
private void FixChildPositions() {
int compositeX = containerModel.getX();
int compositeY = containerModel.getY();
for (AbstractWidgetModel model : conta... | <|file_sep|>applications/plugins/org.csstudio.opibuilder.adl2boy/src/org/csstudio/opibuilder/adl2boy/translator/Composite2Model.java.diff
original:
updated:
import org.csstudio.opibuilder.model.AbstractContainerModel;
<|file_sep|>applications/plugins/org.csstudio.opibuilder.adl2boy/src/org/csstudio/opibuilder/adl2boy/... | 3ef9bf72d41dc7556682842947e19183d8e75456 | applications/plugins/org.csstudio.opibuilder.adl2boy/src/org/csstudio/opibuilder/adl2boy/translator/Composite2Model.java | applications/plugins/org.csstudio.opibuilder.adl2boy/src/org/csstudio/opibuilder/adl2boy/translator/Composite2Model.java | Java |
<|file_sep|>.travis.yml.diff
original:
token:
secure: "$SONAR_TOKEN"
updated:
token: "$SONAR_TOKEN"
<|file_sep|>original/.travis.yml
services:
- xvfb
addons:
chrome: stable
firefox: latest
sonarcloud:
organization: "$SONARCLOUD_ORGANIZATION"
token:
... | dist: xenial
install: true
services:
- xvfb
addons:
chrome: stable
firefox: latest
sonarcloud:
organization: "$SONARCLOUD_ORGANIZATION"
token: "$SONAR_TOKEN"
before_script:
- export DISPLAY=:99.0
script:
- mvn test
- bash <(curl -s https://codecov.io/bash)
- if [ "$T... | <|file_sep|>.travis.yml.diff
original:
token:
secure: "$SONAR_TOKEN"
updated:
token: "$SONAR_TOKEN"
<|file_sep|>original/.travis.yml
services:
- xvfb
addons:
chrome: stable
firefox: latest
sonarcloud:
organization: "$SONARCLOUD_ORGANIZATION"
token:
... | c0a3419ef20ddbbf667000a90d1605252b68ef6e | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/lib/mutant/node_helpers.rb
# @return [Parser::AST::Node]
#
# @api private
#
def s(type, *children)
Parser::AST::Node.new(type, children)
end
module_function :s
NAN = s(:begin, s(:send, s(:float, 0.0), :/, s(:args, s(:float, 0.0))))
NEGATIVE_... | # @return [Parser::AST::Node]
#
# @api private
#
def s(type, *children)
Parser::AST::Node.new(type, children)
end
module_function :s
NAN =
s(:begin, s(:send, s(:float, 0.0), :/, s(:args, s(:float, 0.0))))
INFINITY =
s(:begin, s(:send, s(:float, 1.0), :/, s(:args,... | <|file_sep|>original/lib/mutant/node_helpers.rb
# @return [Parser::AST::Node]
#
# @api private
#
def s(type, *children)
Parser::AST::Node.new(type, children)
end
module_function :s
NAN = s(:begin, s(:send, s(:float, 0.0), :/, s(:args, s(:float, 0.0))))
NEGATIVE_... | 0faf7b0a84e61043da21f4e5ec5915203c0d2527 | lib/mutant/node_helpers.rb | lib/mutant/node_helpers.rb | Ruby |
<|file_sep|>original/Code/Data-and-control-flow/condition-reporters-english.lisp
(cl:in-package #:sicl-data-and-control-flow)
(defmethod cleavir-i18n:report-condition
((condition odd-number-of-arguments-to-setf)
stream
(langauge cleavir-i18n:english))
(format stream
"An odd number of arguments was ... | (form condition)))
(defmethod cleavir-i18n:report-condition
((condition odd-number-of-arguments-to-psetf)
stream
(langauge cleavir-i18n:english))
(format stream
"An odd number of arguments was given to PSETF~@
in the following form:~@
~s"
(form condition)))... | <|file_sep|>original/Code/Data-and-control-flow/condition-reporters-english.lisp
(cl:in-package #:sicl-data-and-control-flow)
(defmethod cleavir-i18n:report-condition
((condition odd-number-of-arguments-to-setf)
stream
(langauge cleavir-i18n:english))
(format stream
"An odd number of arguments was ... | 73244105a7b052a9ad2d4dd56b5e5bbc2e7ebb39 | Code/Data-and-control-flow/condition-reporters-english.lisp | Code/Data-and-control-flow/condition-reporters-english.lisp | Common Lisp |
<|file_sep|>original/app.yaml
runtime: python
vm: true
entrypoint: gunicorn -b :$PORT whereismybus230.main:app
runtime_config:
python_version: 3
<|file_sep|>current/app.yaml
runtime: python
vm: true
entrypoint: gunicorn -b :$PORT whereismybus230.main:app
runtime_config:
python_version: 3
<|file_sep|>updated/app.y... | runtime: python
vm: true
entrypoint: gunicorn -b :$PORT whereismybus230.starter:app
runtime_config:
python_version: 3 | <|file_sep|>original/app.yaml
runtime: python
vm: true
entrypoint: gunicorn -b :$PORT whereismybus230.main:app
runtime_config:
python_version: 3
<|file_sep|>current/app.yaml
runtime: python
vm: true
entrypoint: gunicorn -b :$PORT whereismybus230.main:app
runtime_config:
python_version: 3
<|file_sep|>updated/app.y... | 2ec9277ff49a07539478017f0460d8bfb73f4c65 | app.yaml | app.yaml | YAML |
<|file_sep|>original/devops/makedb.py
<|file_sep|>current/devops/makedb.py
<|file_sep|>updated/devops/makedb.py | import boto.dynamodb
conn = boto.dynamodb.connect_to_region('us-east-1')
table_schema = conn.create_schema(hash_key_name='MAC',hash_key_proto_value=str)
conn.create_table(name='dev-ysniff',schema=table_schema,read_units=10,write_units=10) | <|file_sep|>original/devops/makedb.py
<|file_sep|>current/devops/makedb.py
<|file_sep|>updated/devops/makedb.py
import boto.dynamodb
conn = boto.dynamodb.connect_to_region('us-east-1')
table_schema = conn.create_schema(hash_key_name='MAC',hash_key_proto_value=str)
conn.create_table(name='dev-ysniff',schema=table_s... | dc0d2e7bed5f58ae11716e95c554af5345af4c43 | devops/makedb.py | devops/makedb.py | Python |
<|file_sep|>original/inc/WikiWalker.h
#include "CurlWikiGrabber.h"
#include "Walker.h"
namespace WikiWalker
{
//! main "app" class
class WikiWalker : public Walker
{
public:
/*! given an URL, start collecting links
* \param url start point for analysis
*/
void startWalking(const std::string&... |
#include "CurlWikiGrabber.h"
#include "Walker.h"
namespace WikiWalker
{
//! main "app" class
class WikiWalker : public Walker
{
public:
//! Creates a new instance
WikiWalker() : Walker(), fetchGenerator(false), grabber()
{
}
/*! given an URL, start collecting links
* \param url start... | <|file_sep|>original/inc/WikiWalker.h
#include "CurlWikiGrabber.h"
#include "Walker.h"
namespace WikiWalker
{
//! main "app" class
class WikiWalker : public Walker
{
public:
/*! given an URL, start collecting links
* \param url start point for analysis
*/
void startWalking(const std::string&... | 30909be64f02c27b012e9067c6af7f7e93e41008 | inc/WikiWalker.h | inc/WikiWalker.h | C |
<|file_sep|>original/.travis.yml
language: node_js
cache: yarn
node_js:
- stable
- "6"
- "4"
<|file_sep|>current/.travis.yml
language: node_js
cache: yarn
node_js:
- stable
- "6"
- "4"
<|file_sep|>updated/.travis.yml | language: node_js
cache: yarn
node_js:
- stable
- "8"
- "6"
- "4" | <|file_sep|>original/.travis.yml
language: node_js
cache: yarn
node_js:
- stable
- "6"
- "4"
<|file_sep|>current/.travis.yml
language: node_js
cache: yarn
node_js:
- stable
- "6"
- "4"
<|file_sep|>updated/.travis.yml
language: node_js
cache: yarn
node_js:
- stable
- "8"
- "6"
- "4" | 8bf83f3e88068bca8b047dc32c220399b467aa9e | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/benchmarks/expand2_sage.py
<|file_sep|>current/benchmarks/expand2_sage.py
<|file_sep|>updated/benchmarks/expand2_sage.py | from timeit import default_timer as clock
from sage.all import var
var("x y z w")
e = (x+y+z+w)**15
f = e*(e+w)
print f
t1 = clock()
g = f.expand()
t2 = clock()
print "Total time:", t2-t1, "s" | <|file_sep|>original/benchmarks/expand2_sage.py
<|file_sep|>current/benchmarks/expand2_sage.py
<|file_sep|>updated/benchmarks/expand2_sage.py
from timeit import default_timer as clock
from sage.all import var
var("x y z w")
e = (x+y+z+w)**15
f = e*(e+w)
print f
t1 = clock()
g = f.expand()
t2 = clock()
print "Total ti... | 51cad1634ed9f6b8e40264f027a3a891db45e729 | benchmarks/expand2_sage.py | benchmarks/expand2_sage.py | Python |
<|file_sep|>src/components/elements/post-attachment-general.jsx.diff
original:
<i className="remove-attachment" title="Remove file" onClick={removeAttachment}>
updated:
<span className="remove-attachment" title="Remove file" onClick={removeAttachment}>
<|file_sep|>original/src/components/elements/post-a... | export default (props) => {
const formattedFileSize = numeral(props.fileSize).format('0.[0] b');
const nameAndSize = props.fileName + ' (' + formattedFileSize + ')';
const removeAttachment = () => props.removeAttachment(props.id);
return (
<div className="attachment">
<a href={props.url} title={name... | <|file_sep|>src/components/elements/post-attachment-general.jsx.diff
original:
<i className="remove-attachment" title="Remove file" onClick={removeAttachment}>
updated:
<span className="remove-attachment" title="Remove file" onClick={removeAttachment}>
<|file_sep|>original/src/components/elements/post-a... | 0c76fd80e34e24d9d1bb575760f4764e4f545199 | src/components/elements/post-attachment-general.jsx | src/components/elements/post-attachment-general.jsx | JSX |
<|file_sep|>original/utils/websockettracker.go
func (ws *wsManager) Register(conn *websocket.Conn) {
ws.sockets = append(ws.sockets, *conn)
}
func (ws *wsManager) Write(msg []byte) (n int, e error) {
invalid := make([]int, 0)
for k, v := range ws.sockets {
err := v.WriteMessage(websocket.TextMessage, msg)
if e... |
func (ws *wsManager) Write(msg []byte) (n int, e error) {
invalid := make([]int, 0)
for k, v := range ws.sockets {
err := v.WriteMessage(websocket.TextMessage, msg)
if err != nil {
invalid = append(invalid, k)
}
}
if len(invalid) > 0 {
for b := range invalid {
if len(ws.sockets) == 1 {
ws.sockets... | <|file_sep|>original/utils/websockettracker.go
func (ws *wsManager) Register(conn *websocket.Conn) {
ws.sockets = append(ws.sockets, *conn)
}
func (ws *wsManager) Write(msg []byte) (n int, e error) {
invalid := make([]int, 0)
for k, v := range ws.sockets {
err := v.WriteMessage(websocket.TextMessage, msg)
if e... | 8aeed91e8ac690eb24e74b3cca5b714b69a3a85d | utils/websockettracker.go | utils/websockettracker.go | Go |
<|file_sep|>original/profile.ps1
sv DESKTOP (Join-Path $HOME Desktop) -Option ReadOnly, AllScope
sv DOWNLOADS (Join-Path $HOME Downloads) -Option ReadOnly, AllScope
sv PROFILEDIR (Split-Path $PROFILE) -Option ReadOnly, AllScope
sv SCRIPTS (Join-Path $HOME Scripts) -Option ReadOnly, AllScope
sal gh help
function ll([st... | sv DESKTOP (Join-Path $HOME Desktop) -Option ReadOnly, AllScope
sv DOWNLOADS (Join-Path $HOME Downloads) -Option ReadOnly, AllScope
sv PROFILEDIR (Split-Path $PROFILE) -Option ReadOnly, AllScope
sv SCRIPTS (Join-Path $HOME Scripts) -Option ReadOnly, AllScope
sal gh help
sal d docker
sal dc docker-compose
sal dm docke... | <|file_sep|>original/profile.ps1
sv DESKTOP (Join-Path $HOME Desktop) -Option ReadOnly, AllScope
sv DOWNLOADS (Join-Path $HOME Downloads) -Option ReadOnly, AllScope
sv PROFILEDIR (Split-Path $PROFILE) -Option ReadOnly, AllScope
sv SCRIPTS (Join-Path $HOME Scripts) -Option ReadOnly, AllScope
sal gh help
function ll([st... | 742851a30a54dc3fcd15a610f6676ee8ddd4f073 | profile.ps1 | profile.ps1 | PowerShell |
<|file_sep|>.travis.yml.diff
original:
- iojs
updated:
<|file_sep|>original/.travis.yml
sudo: false
git:
depth: 2
language: node_js
node_js:
- iojs
- node
script: npm run-script pretest && npm run-script coverage
after_script:
- npm install istanbul-coveralls
- node node_modules/.bin/istanbul-coveralls
<|f... | sudo: false
git:
depth: 2
language: node_js
node_js:
- node
- '4'
script: npm run-script pretest && npm run-script coverage
after_script:
- npm install istanbul-coveralls
- node node_modules/.bin/istanbul-coveralls | <|file_sep|>.travis.yml.diff
original:
- iojs
updated:
<|file_sep|>original/.travis.yml
sudo: false
git:
depth: 2
language: node_js
node_js:
- iojs
- node
script: npm run-script pretest && npm run-script coverage
after_script:
- npm install istanbul-coveralls
- node node_modules/.bin/istanbul-coveralls
<|f... | 4de3d64e02d8ab4218adafc22f22ac42c01bc69b | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/angular/core/components/thread_page/thread_item/thread_item.haml
.thread-item.lmo-flex.lmo-relative.lmo-action-dock-wrapper{layout: "row", id: "sequence-{{event.sequenceId}}"}
.thread-item__avatar.lmo-margin-right
%user_avatar{user: "event.actor()", size: "small", ng-if: "event.actor()"}
.t... | .thread-item.lmo-flex.lmo-relative.lmo-action-dock-wrapper{layout: "row", id: "sequence-{{event.sequenceId}}"}
.thread-item__avatar.lmo-margin-right
%user_avatar{user: "event.actor()", size: "small", ng-if: "event.actor()"}
.thread-item__body.lmo-flex.lmo-flex__horizontal-center{layout: "column"}
.thread-it... | <|file_sep|>original/angular/core/components/thread_page/thread_item/thread_item.haml
.thread-item.lmo-flex.lmo-relative.lmo-action-dock-wrapper{layout: "row", id: "sequence-{{event.sequenceId}}"}
.thread-item__avatar.lmo-margin-right
%user_avatar{user: "event.actor()", size: "small", ng-if: "event.actor()"}
.t... | ea09ae785125dac0c52b2a288c4304d15841ca91 | angular/core/components/thread_page/thread_item/thread_item.haml | angular/core/components/thread_page/thread_item/thread_item.haml | Haml |
<|file_sep|>original/.rubocop.yml
<|file_sep|>current/.rubocop.yml
<|file_sep|>updated/.rubocop.yml | AllCops:
DisabledByDefault: true
TargetRubyVersion: 2.2
Style/IndentationWidth:
Enabled: true
Style/HashSyntax:
Enabled: true
Style/Semicolon:
Enabled: true
Style/StringLiterals:
Enabled: true
Style/StringLiteralsInInterpolation:
Enabled: true
Style/TrailingWhitespace:
Enabled: true | <|file_sep|>original/.rubocop.yml
<|file_sep|>current/.rubocop.yml
<|file_sep|>updated/.rubocop.yml
AllCops:
DisabledByDefault: true
TargetRubyVersion: 2.2
Style/IndentationWidth:
Enabled: true
Style/HashSyntax:
Enabled: true
Style/Semicolon:
Enabled: true
Style/StringLiterals:
Enabled: true
Style/St... | d89570190532d547edf9df1620df75d7edc59de8 | .rubocop.yml | .rubocop.yml | YAML |
<|file_sep|>original/src/config/api.js
import Vue from 'vue';
import VueResource from 'vue-resource';
Vue.use(VueResource);
Vue.http.interceptors.push((request, next) => {
request.credentials = true;
next();
});
module.exports = function (option) {
// service, action, params = {}, url = 'http://localhost:8... | import Vue from 'vue';
import VueResource from 'vue-resource';
Vue.use(VueResource);
Vue.http.interceptors.push((request, next) => {
request.credentials = true;
// console.log(next);
next(function (response) {
console.log(response.status);
// if (response.ok === false) {
// retur... | <|file_sep|>original/src/config/api.js
import Vue from 'vue';
import VueResource from 'vue-resource';
Vue.use(VueResource);
Vue.http.interceptors.push((request, next) => {
request.credentials = true;
next();
});
module.exports = function (option) {
// service, action, params = {}, url = 'http://localhost:8... | 002715535e02b6eac7cd6da72ad4586db5d531a4 | src/config/api.js | src/config/api.js | JavaScript |
<|file_sep|>original/packages/li/lingo.yaml
changelog: ''
basic-deps:
bytestring: -any
base: ^>=4.12.0.0
text: -any
filepath: -any
containers: -any
raw-strings-qq: -any
yaml: -any
all-versions:
- 0.1.0.0
- 0.1.0.1
author: Timothy Clem
latest: 0.1.0.1
description-type: markdown
description: |
# Lingo
... | changelog: ''
basic-deps:
bytestring: -any
base: ^>=4.12.0.0
text: -any
filepath: -any
containers: -any
raw-strings-qq: -any
yaml: -any
all-versions:
- 0.1.0.1
author: Timothy Clem
latest: 0.1.0.1
description-type: markdown
description: |
# Lingo
Detect programming languages from file extensions and ... | <|file_sep|>original/packages/li/lingo.yaml
changelog: ''
basic-deps:
bytestring: -any
base: ^>=4.12.0.0
text: -any
filepath: -any
containers: -any
raw-strings-qq: -any
yaml: -any
all-versions:
- 0.1.0.0
- 0.1.0.1
author: Timothy Clem
latest: 0.1.0.1
description-type: markdown
description: |
# Lingo
... | cddf2d9c1d143e3d2da93cd5c6513fc5cf1cd343 | packages/li/lingo.yaml | packages/li/lingo.yaml | YAML |
<|file_sep|>Tests/ToDoReduxTests/ToDoTests.swift.diff
original:
updated:
private var todo: ToDo!
<|file_sep|>Tests/ToDoReduxTests/ToDoTests.swift.diff
original:
updated:
todo = store.state.todos.first!
<|file_sep|>original/Tests/ToDoReduxTests/ToDoTests.swift
import XCTest
import ToDoRedux
class ToDoTes... | override func setUp() {
super.setUp()
store.dispatch(ToDoActions.add(title: "Buy milk", notes: "", tags: []))
todo = store.state.todos.first!
}
func testAddedToDo() {
XCTAssertEqual(store.state.todos.count, 1)
let todo = store.state.todos.first!
XCTAssertE... | <|file_sep|>Tests/ToDoReduxTests/ToDoTests.swift.diff
original:
updated:
private var todo: ToDo!
<|file_sep|>Tests/ToDoReduxTests/ToDoTests.swift.diff
original:
updated:
todo = store.state.todos.first!
<|file_sep|>original/Tests/ToDoReduxTests/ToDoTests.swift
import XCTest
import ToDoRedux
class ToDoTes... | d084371a98984303a7cad001c963c1436f50eb7b | Tests/ToDoReduxTests/ToDoTests.swift | Tests/ToDoReduxTests/ToDoTests.swift | Swift |
<|file_sep|>application/config/auth.php.diff
original:
| Authentication Model
updated:
| Retrieve Users By ID
<|file_sep|>application/config/auth.php.diff
original:
| This model will be used by the Auth class when retrieving the users of
| your application. Feel free to change it to the name of your user model.
upd... | },
/*
|--------------------------------------------------------------------------
| Retrieve Users By Username
|--------------------------------------------------------------------------
|
| This method is called by the Auth::check() method when attempting to load
| a user by their username.
|
| You are fre... | <|file_sep|>application/config/auth.php.diff
original:
| Authentication Model
updated:
| Retrieve Users By ID
<|file_sep|>application/config/auth.php.diff
original:
| This model will be used by the Auth class when retrieving the users of
| your application. Feel free to change it to the name of your user model.
upd... | 9ec8f4a5b62407f2a6d0a88370a83a6a3d85b934 | application/config/auth.php | application/config/auth.php | PHP |
<|file_sep|>composer.json.diff
original:
"tonik/gin": "2.0.0"
updated:
"tonik/gin": "^2.0.0"
<|file_sep|>original/composer.json
{
"name": "tonik/theme",
"description": "Tonik is a WordPress Starter Theme which aims to modernize, organize and enhance some aspects of WordPress theme development.",
"keywords... | {
"name": "tonik/theme",
"description": "Tonik is a WordPress Starter Theme which aims to modernize, organize and enhance some aspects of WordPress theme development.",
"keywords": ["tonik", "theme", "gin", "wordpress", "wordpress-starter-theme", "wordpress-theme"],
"license": "MIT",
"type": "wordpress-theme"... | <|file_sep|>composer.json.diff
original:
"tonik/gin": "2.0.0"
updated:
"tonik/gin": "^2.0.0"
<|file_sep|>original/composer.json
{
"name": "tonik/theme",
"description": "Tonik is a WordPress Starter Theme which aims to modernize, organize and enhance some aspects of WordPress theme development.",
"keywords... | be8f18cd2c809e52c4a28cf49088655b1182a41d | composer.json | composer.json | JSON |
<|file_sep|>original/d/billing_service_account.markdown
<|file_sep|>current/d/billing_service_account.markdown
<|file_sep|>updated/d/billing_service_account.markdown | ---
layout: "aws"
page_title: "AWS: aws_billing_service_account"
sidebar_current: "docs-aws-datasource-billing-service-account"
description: |-
Get AWS Billing Service Account
---
# aws\_billing\_service\_account
Use this data source to get the Account ID of the [AWS Billing and Cost Management Service Account](htt... | <|file_sep|>original/d/billing_service_account.markdown
<|file_sep|>current/d/billing_service_account.markdown
<|file_sep|>updated/d/billing_service_account.markdown
---
layout: "aws"
page_title: "AWS: aws_billing_service_account"
sidebar_current: "docs-aws-datasource-billing-service-account"
description: |-
Get AW... | dd51994f924177cbeac07f60bf9def9d6c9d7fbb | d/billing_service_account.markdown | d/billing_service_account.markdown | Markdown |
<|file_sep|>original/biz.aQute.bndlib/src/aQute/bnd/classfile/package-info.java
/**
* This package provides an object model and parser for Java class files.
*/
@Version("1." + ClassFile.MAJOR_VERSION + ".0")
package aQute.bnd.classfile;
import org.osgi.annotation.versioning.Version;
<|file_sep|>current/biz.aQute.bnd... | /**
* This package provides an object model and parser for Java class files.
*/
@Version("1." + ClassFile.MAJOR_VERSION + "0.0")
package aQute.bnd.classfile;
import org.osgi.annotation.versioning.Version; | <|file_sep|>original/biz.aQute.bndlib/src/aQute/bnd/classfile/package-info.java
/**
* This package provides an object model and parser for Java class files.
*/
@Version("1." + ClassFile.MAJOR_VERSION + ".0")
package aQute.bnd.classfile;
import org.osgi.annotation.versioning.Version;
<|file_sep|>current/biz.aQute.bnd... | 350319005b798ef641a5c088231b3931e9d66762 | biz.aQute.bndlib/src/aQute/bnd/classfile/package-info.java | biz.aQute.bndlib/src/aQute/bnd/classfile/package-info.java | Java |
<|file_sep|>original/fpsd/test/test_sketchy_sites.py
#!/usr/bin/env python3.5
# This test crawls some sets that have triggered http.client.RemoteDisconnected
# exceptions
import unittest
from crawler import Crawler
class CrawlBadSitesTest(unittest.TestCase):
bad_sites = ["http://jlve2diknf45qwjv.onion/",
... | # This test crawls some sets that have triggered http.client.RemoteDisconnected
# exceptions
import unittest
from crawler import Crawler
class CrawlBadSitesTest(unittest.TestCase):
bad_sites = ["http://jlve2diknf45qwjv.onion/",
"http://money2mxtcfcauot.onion",
"http://22222222a... | <|file_sep|>original/fpsd/test/test_sketchy_sites.py
#!/usr/bin/env python3.5
# This test crawls some sets that have triggered http.client.RemoteDisconnected
# exceptions
import unittest
from crawler import Crawler
class CrawlBadSitesTest(unittest.TestCase):
bad_sites = ["http://jlve2diknf45qwjv.onion/",
... | d66b9ecd1a28042ab6511c99b4cba38480b1b96e | fpsd/test/test_sketchy_sites.py | fpsd/test/test_sketchy_sites.py | Python |
<|file_sep|>original/e2e/ansible/playbooks/hyperconverged/test-k8s-percona-mysql-pod/k8s-percona-pod-prerequisites.yml
files_to_copy: "{{ get_pip }}"
- name: Install python-pip on K8S-minion
shell: source ~/.profile; python {{result_kube_home.stdout}}/get-pip.py
args:
executable: /bin/bash
become: true
... | changed_when: true
- name: Install PIP packages on K8s-minion
pip:
name: "{{ item }}"
state: present
with_items: "{{ pip_packages }}"
delegate_to: "{{ groups['kubernetes-kubeminions'].0 }}"
become: true
- name: Get $HOME of K8s master for kubernetes user
shell: source ~/.profile; echo $HOME
args... | <|file_sep|>original/e2e/ansible/playbooks/hyperconverged/test-k8s-percona-mysql-pod/k8s-percona-pod-prerequisites.yml
files_to_copy: "{{ get_pip }}"
- name: Install python-pip on K8S-minion
shell: source ~/.profile; python {{result_kube_home.stdout}}/get-pip.py
args:
executable: /bin/bash
become: true
... | ff0ffd4c5194c119d0023c2b2e5dbe8d7173d782 | e2e/ansible/playbooks/hyperconverged/test-k8s-percona-mysql-pod/k8s-percona-pod-prerequisites.yml | e2e/ansible/playbooks/hyperconverged/test-k8s-percona-mysql-pod/k8s-percona-pod-prerequisites.yml | YAML |
<|file_sep|>original/fixture/Php/input_code/Seed.php
<|file_sep|>current/fixture/Php/input_code/Seed.php
<|file_sep|>updated/fixture/Php/input_code/Seed.php | <?php
i = 0;
f();
if (i == 0) {
if (j != 0) {
} elseif (2 > j) {
}
} elseif (1 < i) {
}
else {
}
while (i != 0) {
while (j == 0) {
}
}
do {
do {
} while (j == 0); | <|file_sep|>original/fixture/Php/input_code/Seed.php
<|file_sep|>current/fixture/Php/input_code/Seed.php
<|file_sep|>updated/fixture/Php/input_code/Seed.php
<?php
i = 0;
f();
if (i == 0) {
if (j != 0) {
} elseif (2 > j) {
}
} elseif (1 < i) {
}
else {
}
while (i != 0) {
while (j == 0) {
}
}
do {
do {
} whil... | 946d5d8c1a28d0c02ef7b0b717b18ff92bdc4f67 | fixture/Php/input_code/Seed.php | fixture/Php/input_code/Seed.php | PHP |
<|file_sep|>original/.textadept/init.lua
-- 4 spaces FTW!
buffer.tab_width = 4
buffer.use_tabs = false
-- Turn on line wrapping:
buffer.wrap_mode = buffer.WRAP_WORD
-- Increase font size for GUI:
buffer:set_theme(
'light',
{
font = 'IBM Plex Mono',
fontsize = 18
}
)
-- Interpret PICO-8 fil... | -- 4 spaces FTW!
buffer.tab_width = 4
buffer.use_tabs = false
-- Turn on line wrapping:
buffer.wrap_mode = buffer.WRAP_WORD
-- https://foicica.com/textadept/api.html#textadept.editing.auto_pairs
-- Do not automatically generate pairs
-- for certain characters
-- (', ", (, [, {).
textadept.editing.auto_pairs = nil
--... | <|file_sep|>original/.textadept/init.lua
-- 4 spaces FTW!
buffer.tab_width = 4
buffer.use_tabs = false
-- Turn on line wrapping:
buffer.wrap_mode = buffer.WRAP_WORD
-- Increase font size for GUI:
buffer:set_theme(
'light',
{
font = 'IBM Plex Mono',
fontsize = 18
}
)
-- Interpret PICO-8 fil... | e7a3e41b9488482ebcde7aa6e4211b6243f40816 | .textadept/init.lua | .textadept/init.lua | Lua |
<|file_sep|>original/index.html
<!doctype html>
<html lang="en" id="drawer-opened">
<head>
<title>the federation - a statistics hub</title>
<meta charset="UTF-8"/>
<meta property="og:title" content="the federation - a statistics hub"/>
<meta property="og:type" content="website"/>
<meta property="og:... | <meta charset="UTF-8"/>
<meta property="og:title" content="the federation - a statistics hub"/>
<meta property="og:type" content="website"/>
<meta property="og:url" content="https://the-federation.info/"/>
<meta property="og:description"
content="Podlist and statistics for The Federation (... | <|file_sep|>original/index.html
<!doctype html>
<html lang="en" id="drawer-opened">
<head>
<title>the federation - a statistics hub</title>
<meta charset="UTF-8"/>
<meta property="og:title" content="the federation - a statistics hub"/>
<meta property="og:type" content="website"/>
<meta property="og:... | 8cc7f6a4f12c201bbe764c08def6487e5114394a | index.html | index.html | HTML |
<|file_sep|>src/as/com/threerings/flex/FlexWrapper.as.diff
original:
public function FlexWrapper (object :DisplayObject)
updated:
public function FlexWrapper (object :DisplayObject, inheritSize :Boolean = false)
<|file_sep|>original/src/as/com/threerings/flex/FlexWrapper.as
package com.threerings.flex {
import... | import flash.display.DisplayObject;
import mx.core.UIComponent;
/**
* Wraps a non-Flex component for use in Flex.
*/
public class FlexWrapper extends UIComponent
{
public function FlexWrapper (object :DisplayObject, inheritSize :Boolean = false)
{
// don't capture mouse events in this wrapper
... | <|file_sep|>src/as/com/threerings/flex/FlexWrapper.as.diff
original:
public function FlexWrapper (object :DisplayObject)
updated:
public function FlexWrapper (object :DisplayObject, inheritSize :Boolean = false)
<|file_sep|>original/src/as/com/threerings/flex/FlexWrapper.as
package com.threerings.flex {
import... | 51cf6b65bec7c91b21172fff6224855f503e01fa | src/as/com/threerings/flex/FlexWrapper.as | src/as/com/threerings/flex/FlexWrapper.as | ActionScript |
<|file_sep|>ui/release/channels.json.diff
original:
"rev": "77e59ea85b8935963e0634001147f3e293226179"
updated:
"rev": "465b9a4473353091c7048b53ad90607295f86a4a"
<|file_sep|>original/ui/release/channels.json
{
"channels": [
{
"name": "stable",
"rev": "77e59ea85b8935963e0634001147f3e29322617... | {
"channels": [
{
"name": "stable",
"rev": "465b9a4473353091c7048b53ad90607295f86a4a"
},
{
"name": "canary",
"rev": "6cf9f11b7ce32a4cdae47ebc13f407cebd21f460"
},
{
"name": "autopush",
"rev": "HEAD"
}
]
} | <|file_sep|>ui/release/channels.json.diff
original:
"rev": "77e59ea85b8935963e0634001147f3e293226179"
updated:
"rev": "465b9a4473353091c7048b53ad90607295f86a4a"
<|file_sep|>original/ui/release/channels.json
{
"channels": [
{
"name": "stable",
"rev": "77e59ea85b8935963e0634001147f3e29322617... | d933bc3ce994b75bf5ee2acc5e5773a8a8976c27 | ui/release/channels.json | ui/release/channels.json | JSON |
<|file_sep|>original/config/initializers/devise_custom_flash_messages.rb
module DeviseCustomFlashMessage
def self.included klass
klass.class_eval do
alias :orifinal_find_message :find_message
remove_method :find_message
end
end
protected
def find_message(kind, options = {})
if kind == :... | module DeviseCustomFlashMessage
def self.included klass
klass.class_eval do
alias :orifinal_find_message :find_message
remove_method :find_message
end
end
protected
def find_message(kind, options = {})
if kind == :signed_up || (kind == :signed_in && resource.completeness_progress < 100)... | <|file_sep|>original/config/initializers/devise_custom_flash_messages.rb
module DeviseCustomFlashMessage
def self.included klass
klass.class_eval do
alias :orifinal_find_message :find_message
remove_method :find_message
end
end
protected
def find_message(kind, options = {})
if kind == :... | 53d7a83039453ab6ae6627094770a0a831c4d9e6 | config/initializers/devise_custom_flash_messages.rb | config/initializers/devise_custom_flash_messages.rb | Ruby |
<|file_sep|>viper/parser/grammar_parsing/production.py.diff
original:
updated:
def __init__(self, name: str):
self.name = name
<|file_sep|>viper/parser/grammar_parsing/production.py.diff
original:
self.name = rule_name
updated:
super().__init__(rule_name)
<|file_sep|>original/viper/parser/... | self.name = name
def __str__(self):
return repr(self)
class RuleAliasProduction(Production):
def __init__(self, rule_name: str):
super().__init__(rule_name)
def __repr__(self):
return "<" + self.name + ">"
class NamedProduction(Production):
def __init__(self, produc... | <|file_sep|>viper/parser/grammar_parsing/production.py.diff
original:
updated:
def __init__(self, name: str):
self.name = name
<|file_sep|>viper/parser/grammar_parsing/production.py.diff
original:
self.name = rule_name
updated:
super().__init__(rule_name)
<|file_sep|>original/viper/parser/... | 0a73d75d5b58c3326d248875cac46ab1bc95bea3 | viper/parser/grammar_parsing/production.py | viper/parser/grammar_parsing/production.py | Python |
<|file_sep|>original/package.json
{
"name": "broccoli-concat",
"description": "Concatenate broccoli trees",
"version": "0.0.1",
"author": "Richard Livsey <richard@livsey.org>",
"main": "index.js",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/rlivsey/broccoli-concat"
... | "name": "broccoli-concat",
"description": "Concatenate broccoli trees",
"version": "0.0.1",
"author": "Richard Livsey <richard@livsey.org>",
"main": "index.js",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/rlivsey/broccoli-concat"
},
"dependencies": {
"mkdirp... | <|file_sep|>original/package.json
{
"name": "broccoli-concat",
"description": "Concatenate broccoli trees",
"version": "0.0.1",
"author": "Richard Livsey <richard@livsey.org>",
"main": "index.js",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/rlivsey/broccoli-concat"
... | d04826bcfee6453ffae92707977989613e6c818b | package.json | package.json | JSON |
<|file_sep|>original/app/views/cms/_textile_quick_reference.rhtml
<div class='text-editor-sidebar-box'>
<p>
<strong><%= _('Textile markup quick reference') %></strong>
<%= link_to(_('(show)'), '#', :id => 'textile-quickref-show') %>
<%= link_to(_('(hide)'), '#', :id => 'textile-quickref-hide', :style => 'displa... | <div id='textile-quickref' style='display: none;'>
<p><%= _('Simple formatting:') %> <code>_<%= _('italics') %>_</code> <code>*<%= _('bold') %>*</code>, <code>-<%= _('striked')%>-</code>.</p>
<p><%= _('Links:') %> <code>"Noosfero":http://noosfero.org/</code></p>
<p><%= _('Images:') %> <code>!http://exampl... | <|file_sep|>original/app/views/cms/_textile_quick_reference.rhtml
<div class='text-editor-sidebar-box'>
<p>
<strong><%= _('Textile markup quick reference') %></strong>
<%= link_to(_('(show)'), '#', :id => 'textile-quickref-show') %>
<%= link_to(_('(hide)'), '#', :id => 'textile-quickref-hide', :style => 'displa... | d5780eb786f81b04cb56bc4b8c75e93472b4b865 | app/views/cms/_textile_quick_reference.rhtml | app/views/cms/_textile_quick_reference.rhtml | RHTML |
<|file_sep|>original/i3/scripts/workspace/functions.sh
# Functions used by workspace scripts
# originally from
# https://github.com/fhaun/config-misc/blob/master/i3-stuff/auto-start-for-i3
# maximum time to wait for a program to start
MAXWAIT=30
start() {
eval "$@ &" # Handle arguments with whi... | # Functions used by workspace scripts
# originally from
# https://github.com/fhaun/config-misc/blob/master/i3-stuff/auto-start-for-i3
# maximum time to wait for a program to start
MAXWAIT=10
start() {
eval "$@ &" # Handle arguments with whitspaces
echo "$@ started, waiting for pid..."
}
# ... | <|file_sep|>original/i3/scripts/workspace/functions.sh
# Functions used by workspace scripts
# originally from
# https://github.com/fhaun/config-misc/blob/master/i3-stuff/auto-start-for-i3
# maximum time to wait for a program to start
MAXWAIT=30
start() {
eval "$@ &" # Handle arguments with whi... | af2eea28c3169df9e4b2412fbc6fc89a8e5bf257 | i3/scripts/workspace/functions.sh | i3/scripts/workspace/functions.sh | Shell |
<|file_sep|>lib/polish-process-stylesheet.js.diff
original:
updated:
var _ = require('lodash');
var gutil = require('gulp-util');
var PluginError = gutil.PluginError;
<|file_sep|>lib/polish-process-stylesheet.js.diff
original:
module.exports = function(file){
updated:
var PLUGIN_NAME = 'gulp-polish';
module... | var _ = require('lodash');
var gutil = require('gulp-util');
var PluginError = gutil.PluginError;
var gonzales = require('gonzales-pe');
var PLUGIN_NAME = 'gulp-polish';
module.exports = function(file, syntax){
var filetype = path.extname(file.path).replace('.','').toLowerCase();
if (!_.contains(['css... | <|file_sep|>lib/polish-process-stylesheet.js.diff
original:
updated:
var _ = require('lodash');
var gutil = require('gulp-util');
var PluginError = gutil.PluginError;
<|file_sep|>lib/polish-process-stylesheet.js.diff
original:
module.exports = function(file){
updated:
var PLUGIN_NAME = 'gulp-polish';
module... | 825b5bfe40f12bebac2b129664eadb39524905a1 | lib/polish-process-stylesheet.js | lib/polish-process-stylesheet.js | JavaScript |
<|file_sep|>original/tests/ignore.t
<|file_sep|>current/tests/ignore.t
<|file_sep|>updated/tests/ignore.t | Setup:
$ source $TESTDIR/setup.sh
$ mkdir -p ./a/b/c
$ echo 'whatever1' > ./a/b/c/blah.yml
$ echo 'whatever2' > ./a/b/foo.yml
$ echo 'a/b/*.yml' > ./.gitignore
Ignore foo.yml but not blah.yml:
$ ag whatever .
a/b/c/blah.yml:1:whatever1
Dont ignore anything (unrestricted search):
$ ag -u whatever .
... | <|file_sep|>original/tests/ignore.t
<|file_sep|>current/tests/ignore.t
<|file_sep|>updated/tests/ignore.t
Setup:
$ source $TESTDIR/setup.sh
$ mkdir -p ./a/b/c
$ echo 'whatever1' > ./a/b/c/blah.yml
$ echo 'whatever2' > ./a/b/foo.yml
$ echo 'a/b/*.yml' > ./.gitignore
Ignore foo.yml but not blah.yml:
$ ag... | 66237c90ddc74d6a525d26dbb9d88ac02621ede6 | tests/ignore.t | tests/ignore.t | Perl |
<|file_sep|>original/lib/pilfer/middleware.rb
end
def run_profiler(description, &downstream)
if file_matcher
profiler.profile_files_matching(file_matcher, description,
&downstream)
else
profiler.profile(description, &downstream)
end
... | end
def run_profiler(description, &downstream)
if file_matcher
profiler.profile_files_matching(file_matcher, description,
&downstream)
else
profiler.profile(description, &downstream)
end
end
def default_profiler
reporter =... | <|file_sep|>original/lib/pilfer/middleware.rb
end
def run_profiler(description, &downstream)
if file_matcher
profiler.profile_files_matching(file_matcher, description,
&downstream)
else
profiler.profile(description, &downstream)
end
... | ce0a1a43de4f0bf0075d0bb4ff9d3f4938a1f0ef | lib/pilfer/middleware.rb | lib/pilfer/middleware.rb | Ruby |
<|file_sep|>original/recipes/libsidplay/libsidplay_1.36.59.bb
DESCRIPTION = "A library for replaying C64 SID music"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPL"
PR = "r1"
SRC_URI = "\
ftp://ftp.uni-frankfurt.de/pub/Mirrors2/gentoo.org/distfiles/libsidplay-1.36.59.tgz;name=archive \
http://ftp.debian.org/... | DESCRIPTION = "A library for replaying C64 SID music"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPLv2"
PR = "r2"
SRC_URI = "\
ftp://ftp.uni-frankfurt.de/pub/Mirrors2/gentoo.org/distfiles/libsidplay-1.36.59.tgz;name=archive \
http://ftp.debian.org/debian/pool/main/libs/libsidplay/libsidplay_1.36.59-5.diff.g... | <|file_sep|>original/recipes/libsidplay/libsidplay_1.36.59.bb
DESCRIPTION = "A library for replaying C64 SID music"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPL"
PR = "r1"
SRC_URI = "\
ftp://ftp.uni-frankfurt.de/pub/Mirrors2/gentoo.org/distfiles/libsidplay-1.36.59.tgz;name=archive \
http://ftp.debian.org/... | 0a1d556650b396a5282fa9f3b9db2d6d57de9f50 | recipes/libsidplay/libsidplay_1.36.59.bb | recipes/libsidplay/libsidplay_1.36.59.bb | BitBake |
<|file_sep|>original/froide/team/templates/team/emails/team_invite.txt
{% load i18n %}{% autoescape off %}{% blocktrans %}Hello,
{{ name }} has invited you to join a team on {{ site_name }}.
Please visit the link below to join this team:
{{ url }}
If you don't have an account on {{ site_name }} yet, you have to crea... | {% load i18n %}{% autoescape off %}{% blocktrans %}Hello,
{{ name }} has invited you to join a team on {{ site_name }}.
Please visit the link below to join this team:
{{ url }}
If you don't have an account on {{ site_name }} yet, you have to create one first.
{% endblocktrans %}
{% blocktrans %}Cheers,
{{ site_name... | <|file_sep|>original/froide/team/templates/team/emails/team_invite.txt
{% load i18n %}{% autoescape off %}{% blocktrans %}Hello,
{{ name }} has invited you to join a team on {{ site_name }}.
Please visit the link below to join this team:
{{ url }}
If you don't have an account on {{ site_name }} yet, you have to crea... | 9f202cd9e8a82b3658cbe987593874e91b9c4800 | froide/team/templates/team/emails/team_invite.txt | froide/team/templates/team/emails/team_invite.txt | Text |
<|file_sep|>original/core/lib/spree/testing_support/factories/shipping_method_factory.rb
FactoryGirl.define do
factory :base_shipping_method, class: Spree::ShippingMethod do
zones { |a| [Spree::Zone.global] }
name 'UPS Ground'
code 'UPS_GROUND'
before(:create) do |shipping_method, evaluator|
if... | FactoryGirl.define do
factory :base_shipping_method, class: Spree::ShippingMethod do
zones { |a| [Spree::Zone.global] }
name 'UPS Ground'
code 'UPS_GROUND'
carrier 'UPS'
service_level '1DAYGROUND'
before(:create) do |shipping_method, evaluator|
if shipping_method.shipping_categories.emp... | <|file_sep|>original/core/lib/spree/testing_support/factories/shipping_method_factory.rb
FactoryGirl.define do
factory :base_shipping_method, class: Spree::ShippingMethod do
zones { |a| [Spree::Zone.global] }
name 'UPS Ground'
code 'UPS_GROUND'
before(:create) do |shipping_method, evaluator|
if... | af0625c9deeda1d8c548c7726dfc4a4fb30a7887 | core/lib/spree/testing_support/factories/shipping_method_factory.rb | core/lib/spree/testing_support/factories/shipping_method_factory.rb | Ruby |
<|file_sep|>original/develop_requirements.txt
ansible==2.6.5
pip==18.0
wheel==0.31.1
watchdog==0.9.0
flake8==3.5.0
tox==3.4.0
coverage==4.5.1
Sphinx==1.8.1
twine==1.12.1
rstcheck==3.3
pycodestyle==2.4.0
pylint==2.1.1
<|file_sep|>current/develop_requirements.txt
ansible==2.6.5
pip==18.0
wheel==0.31.1
watchdog==0.9.0
fl... | ansible==2.6.5
pip==18.0
wheel==0.32.0
watchdog==0.9.0
flake8==3.5.0
tox==3.4.0
coverage==4.5.1
Sphinx==1.8.1
twine==1.12.1
rstcheck==3.3
pycodestyle==2.4.0
pylint==2.1.1
| <|file_sep|>original/develop_requirements.txt
ansible==2.6.5
pip==18.0
wheel==0.31.1
watchdog==0.9.0
flake8==3.5.0
tox==3.4.0
coverage==4.5.1
Sphinx==1.8.1
twine==1.12.1
rstcheck==3.3
pycodestyle==2.4.0
pylint==2.1.1
<|file_sep|>current/develop_requirements.txt
ansible==2.6.5
pip==18.0
wheel==0.31.1
watchdog==0.9.0
fl... | cf57e44df21629db1b51719e37299fe87c846f51 | develop_requirements.txt | develop_requirements.txt | Text |
<|file_sep|>original/chrome/common/extensions/docs/examples/api/input.ime/basic/manifest.json
"name": "Test IME",
"version": "1.0",
"manifest_version": 2,
"description": "A simple IME that converts all keystrokes to upper case.",
"background": {
"scripts": ["main.js"]
},
"permissions": [
"input"
... | "name": "Test IME",
"version": "1.0",
"manifest_version": 2,
"description": "A simple IME that converts all keystrokes to upper case.",
"background": {
"scripts": ["main.js"]
},
"permissions": [
"input"
],
"input_components": [
{
"name": "Test IME",
"type": "ime",
"id": ... | <|file_sep|>original/chrome/common/extensions/docs/examples/api/input.ime/basic/manifest.json
"name": "Test IME",
"version": "1.0",
"manifest_version": 2,
"description": "A simple IME that converts all keystrokes to upper case.",
"background": {
"scripts": ["main.js"]
},
"permissions": [
"input"
... | d8fabca7fe1f8ad1bdfdcd72a4737f1359c86cab | chrome/common/extensions/docs/examples/api/input.ime/basic/manifest.json | chrome/common/extensions/docs/examples/api/input.ime/basic/manifest.json | JSON |
<|file_sep|>src/app/components/accordion/accordion.component.scss.diff
original:
margin: 15px;
margin-top: 0;
updated:
margin: 0 15px 15px;
<|file_sep|>original/src/app/components/accordion/accordion.component.scss
padding: 15px;
}
.text {
padding-top: 10px;
margin: 15px;
margin-top: 0;
... | padding: 15px;
}
.text {
padding-top: 10px;
margin: 0 15px 15px;
font-family: 'INTERSTATE', Arial, Helvetica, sans-serif;
font-size: 12px;
text-align: justify;
border-top: 1px solid #66ceff;
transition: all ease 200ms;
max-height: 500px;
}
}
.container.closed {
.text {
m... | <|file_sep|>src/app/components/accordion/accordion.component.scss.diff
original:
margin: 15px;
margin-top: 0;
updated:
margin: 0 15px 15px;
<|file_sep|>original/src/app/components/accordion/accordion.component.scss
padding: 15px;
}
.text {
padding-top: 10px;
margin: 15px;
margin-top: 0;
... | 7240b9c0eb5f8cc1a625c86f32c1e9d01ec5ed65 | src/app/components/accordion/accordion.component.scss | src/app/components/accordion/accordion.component.scss | SCSS |
<|file_sep|>original/package.json
{
"name": "google-wifi-status",
"version": "1.0.0",
"description": "A Node.js CLI app that displays status of your Google Wifi router.",
"main": "index.js",
"bin": {
"google-wifi-status": "./index.js"
},
"scripts": {},
"repository": {
"type": "git",
"url": "... | {
"name": "google-wifi-status",
"version": "1.0.1",
"description": "A Node.js CLI app that displays status of your Google Wifi router.",
"main": "index.js",
"bin": {
"google-wifi-status": "./index.js"
},
"scripts": {},
"repository": {
"type": "git",
"url": "git+https://github.com/joelgeorgev... | <|file_sep|>original/package.json
{
"name": "google-wifi-status",
"version": "1.0.0",
"description": "A Node.js CLI app that displays status of your Google Wifi router.",
"main": "index.js",
"bin": {
"google-wifi-status": "./index.js"
},
"scripts": {},
"repository": {
"type": "git",
"url": "... | f3990c38a53fe519058fa9fe984b4b0de23715e6 | package.json | package.json | JSON |
<|file_sep|>original/lib/forem/engine.rb
# Precompile any assets included straight in certain pges
initializer "forem.assets.precompile", :group => :all do |app|
app.config.assets.precompile += %w[
forem/admin/members.js
]
end
end
end
require 'simple_form'
require 'emoji/railtie'
requ... | # Precompile any assets included straight in certain pges
initializer "forem.assets.precompile", :group => :all do |app|
app.config.assets.precompile += %w[
forem/admin/members.js
]
end
end
end
require 'simple_form'
require 'emoji'
require 'select2-rails'
# We need one of the two pag... | <|file_sep|>original/lib/forem/engine.rb
# Precompile any assets included straight in certain pges
initializer "forem.assets.precompile", :group => :all do |app|
app.config.assets.precompile += %w[
forem/admin/members.js
]
end
end
end
require 'simple_form'
require 'emoji/railtie'
requ... | 4c7c4075f3e6d615b0c670291a9df625428e93b4 | lib/forem/engine.rb | lib/forem/engine.rb | Ruby |
<|file_sep|>cookbooks/nfs/recipes/default.rb.diff
original:
"ro,bg,soft,udp,rsize=8192,wsize=8192,nfsvers=3"
updated:
"ro,bg,soft,tcp,rsize=8192,wsize=8192,nfsvers=4"
<|file_sep|>original/cookbooks/nfs/recipes/default.rb
# See the License for the specific language governing permi... | # See the License for the specific language governing permissions and
# limitations under the License.
#
package "nfs-common"
node[:nfs].each do |mountpoint, details|
mount_options = if details[:readonly]
"ro,bg,soft,tcp,rsize=8192,wsize=8192,nfsvers=4"
else
... | <|file_sep|>cookbooks/nfs/recipes/default.rb.diff
original:
"ro,bg,soft,udp,rsize=8192,wsize=8192,nfsvers=3"
updated:
"ro,bg,soft,tcp,rsize=8192,wsize=8192,nfsvers=4"
<|file_sep|>original/cookbooks/nfs/recipes/default.rb
# See the License for the specific language governing permi... | a2a4c341d307e8bb4ed14e9eadcae49b48fe307c | cookbooks/nfs/recipes/default.rb | cookbooks/nfs/recipes/default.rb | Ruby |
<|file_sep|>omzsh/exports.sh.diff
original:
export FZF_DEFAULT_COMMAND='ag -l --nocolor --hidden --follow \
updated:
export FZF_DEFAULT_COMMAND='ag -l \
--nocolor \
--hidden \
--follow \
--skip-vcs-ignores \
<|file_sep|>original/omzsh/exports.sh
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export FZF_DEFA... | export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export FZF_DEFAULT_COMMAND='ag -l \
--nocolor \
--hidden \
--follow \
--skip-vcs-ignores \
--ignore .git \
--ignore node_modules \
--ignore public \
--ignore build \
--ignore vendor \
-g ""'
export KEYTIMEOUT=1
#
# NPM
#
| <|file_sep|>omzsh/exports.sh.diff
original:
export FZF_DEFAULT_COMMAND='ag -l --nocolor --hidden --follow \
updated:
export FZF_DEFAULT_COMMAND='ag -l \
--nocolor \
--hidden \
--follow \
--skip-vcs-ignores \
<|file_sep|>original/omzsh/exports.sh
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export FZF_DEFA... | a98cc6026b53f4bd35fc67ac946f496c76a3de26 | omzsh/exports.sh | omzsh/exports.sh | Shell |
<|file_sep|>lib/notifiers/deprecation_logger.rb.diff
original:
class DeprecatedAttributeLogger
def initialize(target)
@target = target
end
updated:
module AttrDeprecated
class DeprecatedAttributeLogger
def initialize(target)
@target = target
end
<|file_sep|>lib/notifiers/deprecation_logger.rb.di... | def backtrace
if defined? Rails
Rails.backtrace_cleaner.clean(caller)
else
caller
end
end
def log_deprecated_attribute_usage(klass, *attrs)
warning_message = "WARNING: Called deprecated attribute for #{klass.name}: #{attrs.join(', ')}\n" +
backtrace.map { |tr... | <|file_sep|>lib/notifiers/deprecation_logger.rb.diff
original:
class DeprecatedAttributeLogger
def initialize(target)
@target = target
end
updated:
module AttrDeprecated
class DeprecatedAttributeLogger
def initialize(target)
@target = target
end
<|file_sep|>lib/notifiers/deprecation_logger.rb.di... | 0f8f587a21a9534548f5ba8dcace4ae966f2e879 | lib/notifiers/deprecation_logger.rb | lib/notifiers/deprecation_logger.rb | Ruby |
<|file_sep|>original/lib/questionable/admin/answers.rb
if defined?(ActiveAdmin)
ActiveAdmin.register Questionable::Answer, :as => 'Answers' do
menu :label => 'Answers', :parent => 'Questionable'
filter :user_email, :as => :string
filter :assignment_sources
filter :created_at
filter :updated_at
... | if defined?(ActiveAdmin)
ActiveAdmin.register Questionable::Answer, :as => 'Answers' do
menu :label => 'Answers', :parent => 'Questionable'
filter :user_email, :as => :string
filter :assignment_sources
filter :created_at
filter :updated_at
index do
column(:id) { |a| link_to a.id, admin... | <|file_sep|>original/lib/questionable/admin/answers.rb
if defined?(ActiveAdmin)
ActiveAdmin.register Questionable::Answer, :as => 'Answers' do
menu :label => 'Answers', :parent => 'Questionable'
filter :user_email, :as => :string
filter :assignment_sources
filter :created_at
filter :updated_at
... | c83bd41e34f2f6ed735a0de6adbe296492122e47 | lib/questionable/admin/answers.rb | lib/questionable/admin/answers.rb | Ruby |
<|file_sep|>src/scss/object-edit.scss.diff
original:
updated:
/**
* @author: Jan G. Wieners
*/
<|file_sep|>original/src/scss/object-edit.scss
textarea {
width: 100%;
resize: none;
}
<|file_sep|>current/src/scss/object-edit.scss
/**
* @author: Jan G. Wieners
*/
textarea {
width: 100%;
resize: none;
}
<|fi... | /**
* @author: Jan G. Wieners
*/
textarea {
width: 100%;
resize: vertical;
} | <|file_sep|>src/scss/object-edit.scss.diff
original:
updated:
/**
* @author: Jan G. Wieners
*/
<|file_sep|>original/src/scss/object-edit.scss
textarea {
width: 100%;
resize: none;
}
<|file_sep|>current/src/scss/object-edit.scss
/**
* @author: Jan G. Wieners
*/
textarea {
width: 100%;
resize: none;
}
<|fi... | e2039d7de8a96b51684c7e40093741cb01133c8c | src/scss/object-edit.scss | src/scss/object-edit.scss | SCSS |
<|file_sep|>original/.travis.yml
language: objective-c
notifications:
email:
on_success: never
on_failure: change
script: 'curl -s https://raw.githubusercontent.com/atom/ci/master/build-package.sh | sh'
<|file_sep|>current/.travis.yml
language: objective-c
notifications:
email:
on_success: never
... | language: objective-c
notifications:
email:
on_success: never
on_failure: change
before_script: ./travis-bootstrap.sh
script:
- export GOROOT=`pwd`/.go/go
- export GOPATH=`pwd`/.go/gopath
- 'curl -s https://raw.githubusercontent.com/atom/ci/master/build-package.sh | sh' | <|file_sep|>original/.travis.yml
language: objective-c
notifications:
email:
on_success: never
on_failure: change
script: 'curl -s https://raw.githubusercontent.com/atom/ci/master/build-package.sh | sh'
<|file_sep|>current/.travis.yml
language: objective-c
notifications:
email:
on_success: never
... | 216c7f9abe270c6233c02e53d21ce905bcf8b97c | .travis.yml | .travis.yml | YAML |
<|file_sep|>test.py.diff
original:
d = lazydict.LazyDictionary({'a': 1})
self.assertEqual(str(d), "{'a': 1}")
updated:
d = lazydict.LazyDictionary({'a': {'b': 1}})
self.assertEqual(str(d), "{'a': {'b': 1}}")
<|file_sep|>original/test.py
d['a'] = 1
d['b'] = 2
d... | d['a'] = 1
d['b'] = 2
d['sum'] = lambda s: s['a'] + s['b']
x = d['sum']
self.assertRaises(lazydict.ConstantRedefinitionError, d.__setitem__, 'a', 'hotdog')
self.assertRaises(lazydict.ConstantRedefinitionError, d.__delitem__, 'a')
def test_lazy_evaluation(self):
... | <|file_sep|>test.py.diff
original:
d = lazydict.LazyDictionary({'a': 1})
self.assertEqual(str(d), "{'a': 1}")
updated:
d = lazydict.LazyDictionary({'a': {'b': 1}})
self.assertEqual(str(d), "{'a': {'b': 1}}")
<|file_sep|>original/test.py
d['a'] = 1
d['b'] = 2
d... | f94c946d135aed30f4d9068844b563fa94e39ff1 | test.py | test.py | Python |
<|file_sep|>original/director/requirements.txt
django-allauth==0.39.1
django-configurations==2.1
django-crispy-forms==1.7.2
django-intercom==0.1.2
django-polymorphic==2.0.3
django-sendgrid-v5==0.8.0
django-storages==1.7.1
djangorestframework==3.9.4
django-debug-toolbar==1.11
django-extensions==2.1.7
dj_database_url==0.... | django-allauth==0.39.1
django-configurations==2.1
django-crispy-forms==1.7.2
django-intercom==0.1.2
django-polymorphic==2.0.3
django-sendgrid-v5==0.8.0
django-storages==1.7.1
djangorestframework==3.9.4
django-debug-toolbar==1.11
django-extensions==2.1.7
dj_database_url==0.5.0
google-api-python-client==1.7.9
google-clou... | <|file_sep|>original/director/requirements.txt
django-allauth==0.39.1
django-configurations==2.1
django-crispy-forms==1.7.2
django-intercom==0.1.2
django-polymorphic==2.0.3
django-sendgrid-v5==0.8.0
django-storages==1.7.1
djangorestframework==3.9.4
django-debug-toolbar==1.11
django-extensions==2.1.7
dj_database_url==0.... | 356b35207c6473814cce37774d658ebf1f8f47da | director/requirements.txt | director/requirements.txt | Text |
<|file_sep|>original/README.md
public function __construct(LoggerInterface $logger = null)
{
$this->logger = $logger;
}
public function doSomething()
{
if ($this->logger) {
$this->logger->info('Doing work');
}
// do something useful
}
}
```
You can ... | public function __construct(LoggerInterface $logger = null)
{
$this->logger = $logger;
}
public function doSomething()
{
if ($this->logger) {
$this->logger->info('Doing work');
}
try {
$this->doSomethingElse();
} catch (Exc... | <|file_sep|>original/README.md
public function __construct(LoggerInterface $logger = null)
{
$this->logger = $logger;
}
public function doSomething()
{
if ($this->logger) {
$this->logger->info('Doing work');
}
// do something useful
}
}
```
You can ... | 446d54b4cb6bf489fc9d75f55843658e6f25d801 | README.md | README.md | Markdown |
<|file_sep|>README.md.diff
original:
### Installation ###
To install:
updated:
### Quick Installation ###
<|file_sep|>README.md.diff
original:
### Security ###
updated:
### Full Documentation ###
<|file_sep|>original/README.md
=======================================
zfsweb is a basic web interface to a ZFS snapshot h... | zfsweb - Primitive ZFS snapshot browser
=======================================
zfsweb is a basic web interface to a ZFS snapshot hierarchy. Written
in Perl, using only a handful of lightweight external modules, and
generating an interface using Twitter Bootstrap, it's fast, responsive
and friendly.
### Quick Instal... | <|file_sep|>README.md.diff
original:
### Installation ###
To install:
updated:
### Quick Installation ###
<|file_sep|>README.md.diff
original:
### Security ###
updated:
### Full Documentation ###
<|file_sep|>original/README.md
=======================================
zfsweb is a basic web interface to a ZFS snapshot h... | 1e1dfdf12ed590d21a2ab0f9743c1fbe721bd3d2 | README.md | README.md | Markdown |
<|file_sep|>original/.travis.yml
language: c
sudo: false
install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install md5sha1sum; fi
- source devtools/travis-ci/install.sh
- conda config --add channels omnia
script:
- conda build devtools/conda-recipe
os:
- osx
- linux
env:
matrix:
- python=2.... | language: c
sudo: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gromacs
install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install md5sha1sum; fi
- source devtools/travis-ci/install.sh
- conda config --add channels omnia
script:
- conda bu... | <|file_sep|>original/.travis.yml
language: c
sudo: false
install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install md5sha1sum; fi
- source devtools/travis-ci/install.sh
- conda config --add channels omnia
script:
- conda build devtools/conda-recipe
os:
- osx
- linux
env:
matrix:
- python=2.... | 586204209fe5c92d93a9af03433b1279fced18c3 | .travis.yml | .travis.yml | YAML |
<|file_sep|>src/views/join/join.jsx.diff
original:
updated:
const ErrorBoundary = require('../../components/errorboundary/errorboundary.jsx');
<|file_sep|>src/views/join/join.jsx.diff
original:
<div className="join">
updated:
<ErrorBoundary>
<|file_sep|>original/src/views/join/join.jsx
const React = require('r... | const React = require('react');
const render = require('../../lib/render.jsx');
const JoinModal = require('../../components/modal/join/modal.jsx');
const ErrorBoundary = require('../../components/errorboundary/errorboundary.jsx');
const openModal = true;
const Register = () => (
<ErrorBoundary>
<JoinModal
... | <|file_sep|>src/views/join/join.jsx.diff
original:
updated:
const ErrorBoundary = require('../../components/errorboundary/errorboundary.jsx');
<|file_sep|>src/views/join/join.jsx.diff
original:
<div className="join">
updated:
<ErrorBoundary>
<|file_sep|>original/src/views/join/join.jsx
const React = require('r... | 55e8f2c3230277d126e67359ebdd98e82a03151e | src/views/join/join.jsx | src/views/join/join.jsx | JSX |
<|file_sep|>public/js/app/fields/CreateAttachmentView.js.diff
original:
attributeBindings: ['type'],
updated:
multiple: true,
attributeBindings: ['type', 'multiple'],
<|file_sep|>original/public/js/app/fields/CreateAttachmentView.js
define(["app/app"], function(App) {
"use strict";
App.CreateAttachment... |
App.CreateAttachmentView = Ember.View.extend({
tagName: 'input',
type: 'file',
multiple: true,
attributeBindings: ['type', 'multiple'],
change: function(event) {
if (event.target.files.length > 0) {
// Send the file object(s) to controller
var newFiles = event.target.files
... | <|file_sep|>public/js/app/fields/CreateAttachmentView.js.diff
original:
attributeBindings: ['type'],
updated:
multiple: true,
attributeBindings: ['type', 'multiple'],
<|file_sep|>original/public/js/app/fields/CreateAttachmentView.js
define(["app/app"], function(App) {
"use strict";
App.CreateAttachment... | 258e9170038e3c55481447c1460413af710c21a8 | public/js/app/fields/CreateAttachmentView.js | public/js/app/fields/CreateAttachmentView.js | JavaScript |
<|file_sep|>original/sbt_common/messaging/src/main/scala/uk/ac/wellcome/messaging/sns/SNSWriter.scala
package uk.ac.wellcome.messaging.sns
import com.amazonaws.services.sns.AmazonSNS
import com.amazonaws.services.sns.model.PublishRequest
import com.google.inject.Inject
import grizzled.slf4j.Logging
import uk.ac.wellco... | package uk.ac.wellcome.messaging.sns
import com.amazonaws.services.sns.AmazonSNS
import com.amazonaws.services.sns.model.PublishRequest
import com.google.inject.Inject
import grizzled.slf4j.Logging
import io.circe.Encoder
import uk.ac.wellcome.json.JsonUtil._
import scala.concurrent.{blocking, ExecutionContext, Futur... | <|file_sep|>original/sbt_common/messaging/src/main/scala/uk/ac/wellcome/messaging/sns/SNSWriter.scala
package uk.ac.wellcome.messaging.sns
import com.amazonaws.services.sns.AmazonSNS
import com.amazonaws.services.sns.model.PublishRequest
import com.google.inject.Inject
import grizzled.slf4j.Logging
import uk.ac.wellco... | 4a793fd2a39d663a07366b4e927f41a25dbb9b19 | sbt_common/messaging/src/main/scala/uk/ac/wellcome/messaging/sns/SNSWriter.scala | sbt_common/messaging/src/main/scala/uk/ac/wellcome/messaging/sns/SNSWriter.scala | Scala |
<|file_sep|>original/app/views/tenants/show.html.haml
.contextual
= icon_link_to :profit_sheet
= icon_link_to :balance_sheet
= contextual_links_for
%h1= link_to @tenant.company, @tenant.company
.form-view
= render "form"
= render 'people/show_attachments'
= render 'tenants/sidebar'
<|file_sep|>current/app/vi... | .contextual
= icon_link_to :profit_sheet
= icon_link_to :balance_sheet
= contextual_links_for
%h1= link_to @tenant.company, @tenant.company
.form-view
= render "form"
= render 'show_attachments'
= render 'tenants/sidebar' | <|file_sep|>original/app/views/tenants/show.html.haml
.contextual
= icon_link_to :profit_sheet
= icon_link_to :balance_sheet
= contextual_links_for
%h1= link_to @tenant.company, @tenant.company
.form-view
= render "form"
= render 'people/show_attachments'
= render 'tenants/sidebar'
<|file_sep|>current/app/vi... | cbb02965b414da46a9014c63841c6cd70fcc21d8 | app/views/tenants/show.html.haml | app/views/tenants/show.html.haml | Haml |
<|file_sep|>original/Kwf/Component/Partial/Abstract.php
return array(
'callback' => array(
'Kwf_Component_Partial_Abstract',
'_useViewCacheDynamic'
),
'args' => array(
$params['disableCacheParams']
... | return array(
'callback' => array(
'Kwf_Component_Partial_Abstract',
'_useViewCacheDynamic'
),
'args' => array(
$params['disableCacheParams']
)
);
}
return ... | <|file_sep|>original/Kwf/Component/Partial/Abstract.php
return array(
'callback' => array(
'Kwf_Component_Partial_Abstract',
'_useViewCacheDynamic'
),
'args' => array(
$params['disableCacheParams']
... | 22d271b5fc479b7b69839d90239b8d35c1940e55 | Kwf/Component/Partial/Abstract.php | Kwf/Component/Partial/Abstract.php | PHP |
<|file_sep|>original/src/redux/state/fakeEvents.test.js
/* global test, expect */
import fakeEvents from './fakeEvents';
test('calling fakeEvents should generate an array containing btw. 60 and 120 objects', () => {
expect(fakeEvents.length)
.toBeGreaterThanOrEqual(60);
expect(fakeEvents.length)
.toBeLessThanOrE... | /* global test, expect */
import fakeEvents from './fakeEvents';
test('calling fakeEvents should generate an array containing btw. 60 and 120 objects', () => {
expect(fakeEvents.length)
.toBeGreaterThanOrEqual(60);
expect(fakeEvents.length)
.toBeLessThanOrEqual(120);
});
test('events generated with fakeEvents s... | <|file_sep|>original/src/redux/state/fakeEvents.test.js
/* global test, expect */
import fakeEvents from './fakeEvents';
test('calling fakeEvents should generate an array containing btw. 60 and 120 objects', () => {
expect(fakeEvents.length)
.toBeGreaterThanOrEqual(60);
expect(fakeEvents.length)
.toBeLessThanOrE... | 7492a1890a216e2cc72a57d7736932c490c21461 | src/redux/state/fakeEvents.test.js | src/redux/state/fakeEvents.test.js | JavaScript |
<|file_sep|>original/latest-timestamp.sh
#!/usr/bin/env bash
set -e
set -u
max=0
for dir in $(find * -maxdepth 0 -type d); do
ts=$(git --no-pager log -1 --format=%at $dir)
if (($ts > $max)); then
max=$ts
fi
done
case $OSTYPE in
linux-gnu)
date -u -d @$max +%Y%m%d-%H%M%S
;;
darwin*)
date -u -r $... | #!/usr/bin/env bash
set -e
set -u
max=0
for dir in $(find * -maxdepth 0 -type d); do
ts=$(cd $dir; git --no-pager log -1 --format=%at; cd ..)
if (($ts > $max)); then
max=$ts
fi
done
case $OSTYPE in
linux-gnu)
date -u -d @$max +%Y%m%d-%H%M%S
;;
darwin*)
date -u -r $max +%Y%m%d-%H%M%S
;;
*) | <|file_sep|>original/latest-timestamp.sh
#!/usr/bin/env bash
set -e
set -u
max=0
for dir in $(find * -maxdepth 0 -type d); do
ts=$(git --no-pager log -1 --format=%at $dir)
if (($ts > $max)); then
max=$ts
fi
done
case $OSTYPE in
linux-gnu)
date -u -d @$max +%Y%m%d-%H%M%S
;;
darwin*)
date -u -r $... | fefc4a4f8d0b3a59995d10df9193c22e010c542a | latest-timestamp.sh | latest-timestamp.sh | Shell |
<|file_sep|>original/jenkins/ci.suse.de/templates/cloud-mkcloud-job-upgrade-nondisruptive-ha-template.yaml
logrotate:
numToKeep: -1
daysToKeep: 7
builders:
- trigger-builds:
- project: openstack-mkcloud
condition: SUCCESS
block: true
current-parameters: t... | numToKeep: -1
daysToKeep: 7
builders:
- trigger-builds:
- project: openstack-mkcloud
condition: SUCCESS
block: true
current-parameters: true
predefined-parameters: |
TESTHEAD=1
cloudsource=develcloud{previous_version}
... | <|file_sep|>original/jenkins/ci.suse.de/templates/cloud-mkcloud-job-upgrade-nondisruptive-ha-template.yaml
logrotate:
numToKeep: -1
daysToKeep: 7
builders:
- trigger-builds:
- project: openstack-mkcloud
condition: SUCCESS
block: true
current-parameters: t... | 1a3697ad886b0a675062d839fb56d86fd45a7720 | jenkins/ci.suse.de/templates/cloud-mkcloud-job-upgrade-nondisruptive-ha-template.yaml | jenkins/ci.suse.de/templates/cloud-mkcloud-job-upgrade-nondisruptive-ha-template.yaml | YAML |
<|file_sep|>original/bin/var-replace.sh
<|file_sep|>current/bin/var-replace.sh
<|file_sep|>updated/bin/var-replace.sh | #!/bin/bash
# Copyright (C) 2015 Craig Phillips. All rights reserved.
varname_from=$1
varname_to=$2
srctree_root=$3
find $srctree_root -type f | \
xargs sed -i 's?\<'"${varname_from}"'\>?'"${varname_to}"'?g' | <|file_sep|>original/bin/var-replace.sh
<|file_sep|>current/bin/var-replace.sh
<|file_sep|>updated/bin/var-replace.sh
#!/bin/bash
# Copyright (C) 2015 Craig Phillips. All rights reserved.
varname_from=$1
varname_to=$2
srctree_root=$3
find $srctree_root -type f | \
xargs sed -i 's?\<'"${varname_from}"'\>?'"${v... | 4537518e2c2bf4a9e668eb162a59749c258c181f | bin/var-replace.sh | bin/var-replace.sh | Shell |
<|file_sep|>original/.travis.yml
sudo: required
language: csharp
matrix:
include:
- os: linux
dotnet: 2.2.301
mono: none
dist: bionic
script:
- dotnet restore ./LiteDB/LiteDB.csproj
- dotnet build ./LiteDB/LiteDB.csproj -f netstandard2.0
- dotnet restore ./LiteDB.Tests/LiteDB.Tests.cspro... | sudo: required
language: csharp
matrix:
include:
- os: linux
dotnet: 2.2.301
mono: none
dist: bionic
script:
- dotnet restore ./LiteDB/LiteDB.csproj
- dotnet build ./LiteDB/LiteDB.csproj -f netstandard2.0
- dotnet restore ./LiteDB.Tests/LiteDB.Tests.csproj
- dotnet build ./LiteDB.Tests... | <|file_sep|>original/.travis.yml
sudo: required
language: csharp
matrix:
include:
- os: linux
dotnet: 2.2.301
mono: none
dist: bionic
script:
- dotnet restore ./LiteDB/LiteDB.csproj
- dotnet build ./LiteDB/LiteDB.csproj -f netstandard2.0
- dotnet restore ./LiteDB.Tests/LiteDB.Tests.cspro... | bcd99b62fe20161b692f7d3e26e225c7bf7178dd | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/src/Orchestra/Widget/WidgetServiceProvider.php
*/
protected $defer = true;
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
$this->app['orchestra.widget'] = $this->app->share(function ($app) {
return ... | */
protected $defer = true;
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
$this->app->bindShared('orchestra.widget', function ($app) {
return new WidgetManager($app);
});
$this->app->booting(function (... | <|file_sep|>original/src/Orchestra/Widget/WidgetServiceProvider.php
*/
protected $defer = true;
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
$this->app['orchestra.widget'] = $this->app->share(function ($app) {
return ... | 037a936a48dacee683d7e75f77b57b4b95ad9e63 | src/Orchestra/Widget/WidgetServiceProvider.php | src/Orchestra/Widget/WidgetServiceProvider.php | PHP |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.