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|>src/main/java/redis/embedded/util/JarUtil.java.diff original: updated: import java.net.URL; import static com.google.common.base.Preconditions.checkArgument; <|file_sep|>src/main/java/redis/embedded/util/JarUtil.java.diff original: File command = new File(tmpDir, executable); FileUtils.cop...
URL resource = getResource(executable); FileUtils.copyURLToFile(resource, copiedExecutable); copiedExecutable.deleteOnExit(); if (!copiedExecutable.setExecutable(true)) { //should not ever happen throw new RedisBuildingException("Cannot make file " + copiedExecu...
<|file_sep|>src/main/java/redis/embedded/util/JarUtil.java.diff original: updated: import java.net.URL; import static com.google.common.base.Preconditions.checkArgument; <|file_sep|>src/main/java/redis/embedded/util/JarUtil.java.diff original: File command = new File(tmpDir, executable); FileUtils.cop...
2dcb02fea725fc6e3aea1e4a88793f84e6f70922
src/main/java/redis/embedded/util/JarUtil.java
src/main/java/redis/embedded/util/JarUtil.java
Java
<|file_sep|>original/js/src/jupyter-leaflet.css .jupyter-widgets.leaflet-container { height: 400px; overflow: hidden; flex: 1; } .jp-LinkedOutputView .jupyter-widgets.leaflet-container { min-height: 360px; /* Min-height required for mirred output in jlab < 0.31.6 */ height: 100%; } .leaflet-contr...
.jupyter-widgets.leaflet-container { min-height: 400px; overflow: hidden; flex: 1; } .jp-LinkedOutputView .jupyter-widgets.leaflet-container { min-height: 360px; /* Min-height required for mirred output in jlab < 0.31.6 */ height: 100%; } .leaflet-control-velocity.leaflet-control { background...
<|file_sep|>original/js/src/jupyter-leaflet.css .jupyter-widgets.leaflet-container { height: 400px; overflow: hidden; flex: 1; } .jp-LinkedOutputView .jupyter-widgets.leaflet-container { min-height: 360px; /* Min-height required for mirred output in jlab < 0.31.6 */ height: 100%; } .leaflet-contr...
1f2dbcedc59c7e0c81d242697bdcc9c6059e61fe
js/src/jupyter-leaflet.css
js/src/jupyter-leaflet.css
CSS
<|file_sep|>original/src/main/webapp/help/ArtifactoryBuilder/help-useCredentialsPlugin.html <div> When checked, Jenkins job authentication with Artifactory is done through the credentials plugin. </div> <|file_sep|>current/src/main/webapp/help/ArtifactoryBuilder/help-useCredentialsPlugin.html <div> When checked...
<div> When checked, Jenkins job authentication with Artifactory is done through the credentials plugin. </br> Note: Only Credentials object of the "Global" scope are supported. </div>
<|file_sep|>original/src/main/webapp/help/ArtifactoryBuilder/help-useCredentialsPlugin.html <div> When checked, Jenkins job authentication with Artifactory is done through the credentials plugin. </div> <|file_sep|>current/src/main/webapp/help/ArtifactoryBuilder/help-useCredentialsPlugin.html <div> When checked...
548f71711aeb27369e8fbc77b5a54bb5cc89c2b8
src/main/webapp/help/ArtifactoryBuilder/help-useCredentialsPlugin.html
src/main/webapp/help/ArtifactoryBuilder/help-useCredentialsPlugin.html
HTML
<|file_sep|>.travis.yml.diff original: env: WLP_VERSION=8.5.5_07 updated: env: WLP_VERSION=8.5.5_09 WLP_LICENSE=L-MCAO-9SYMVC <|file_sep|>.travis.yml.diff original: env: WLP_VERSION=8.5.5_08 updated: env: WLP_VERSION=16.0.0_2 WLP_LICENSE=L-SWIS-A99U5C <|file_sep|>original/.travis.yml sudo: false...
sudo: false language: java matrix: include: - jdk: oraclejdk7 env: WLP_VERSION=8.5.5_09 WLP_LICENSE=L-MCAO-9SYMVC - jdk: oraclejdk8 env: WLP_VERSION=16.0.0_2 WLP_LICENSE=L-SWIS-A99U5C script: - travis_wait ./gradlew check -Prunit=online -DwlpVersion=$WLP_VERSION -DwlpLicense=$WLP_LICENSE
<|file_sep|>.travis.yml.diff original: env: WLP_VERSION=8.5.5_07 updated: env: WLP_VERSION=8.5.5_09 WLP_LICENSE=L-MCAO-9SYMVC <|file_sep|>.travis.yml.diff original: env: WLP_VERSION=8.5.5_08 updated: env: WLP_VERSION=16.0.0_2 WLP_LICENSE=L-SWIS-A99U5C <|file_sep|>original/.travis.yml sudo: false...
4d000bdba774dca8633b2c2729f4fbafd65b831b
.travis.yml
.travis.yml
YAML
<|file_sep|>original/django_enum_js/views.py from django.shortcuts import render_to_response from django.template import RequestContext from django.utils.safestring import mark_safe from django_enum_js import enum_wrapper def enums_js(request): enums = enum_wrapper.get_json_formatted_enums() return render_to_...
from django.shortcuts import render_to_response from django.template import RequestContext from django.utils.safestring import mark_safe from django_enum_js import enum_wrapper def enums_js(request): enums = enum_wrapper.get_json_formatted_enums() return render_to_response('django_enum_js/enums_js.tpl', { 'en...
<|file_sep|>original/django_enum_js/views.py from django.shortcuts import render_to_response from django.template import RequestContext from django.utils.safestring import mark_safe from django_enum_js import enum_wrapper def enums_js(request): enums = enum_wrapper.get_json_formatted_enums() return render_to_...
bda88dfe6e0a2f16f0c3be74a42cf8783aae1d9e
django_enum_js/views.py
django_enum_js/views.py
Python
<|file_sep|>original/features/support/env.rb #require 'spork/ext/ruby-debug' require 'vcr' require 'cucumber/rspec/doubles' Spork.prefork do Dotenv.load end Spork.each_run do require 'open-orgn-services' VCR.configure do |c| # Automatically filter all secure details that are stored in the environment ...
Spork.prefork do Dotenv.load end Spork.each_run do require 'open-orgn-services' VCR.configure do |c| # Automatically filter all secure details that are stored in the environment Dotenv.load.keys.each do |key| c.filter_sensitive_data("<#{key}>") { ENV[key] } end c.cassette_library_dir = 'fi...
<|file_sep|>original/features/support/env.rb #require 'spork/ext/ruby-debug' require 'vcr' require 'cucumber/rspec/doubles' Spork.prefork do Dotenv.load end Spork.each_run do require 'open-orgn-services' VCR.configure do |c| # Automatically filter all secure details that are stored in the environment ...
d6fac5aab13de545f93c3dd2abaaae6a6d4f1ae5
features/support/env.rb
features/support/env.rb
Ruby
<|file_sep|>original/requirements/dev.txt -r prod.txt pip==18.1 bumpversion==0.5.3 wheel==0.32.2 watchdog==0.9.0 flake8==3.6.0 tox==3.5.3 coverage==4.5.1 Sphinx==1.8.1 cryptography==2.3.1 PyYAML==3.13 <|file_sep|>current/requirements/dev.txt -r prod.txt pip==18.1 bumpversion==0.5.3 wheel==0.32.2 watchdog==0.9.0 flake...
-r prod.txt pip==18.1 bumpversion==0.5.3 wheel==0.32.2 watchdog==0.9.0 flake8==3.6.0 tox==3.5.3 coverage==4.5.1 Sphinx==2.0.0 cryptography==2.3.1 PyYAML==3.13
<|file_sep|>original/requirements/dev.txt -r prod.txt pip==18.1 bumpversion==0.5.3 wheel==0.32.2 watchdog==0.9.0 flake8==3.6.0 tox==3.5.3 coverage==4.5.1 Sphinx==1.8.1 cryptography==2.3.1 PyYAML==3.13 <|file_sep|>current/requirements/dev.txt -r prod.txt pip==18.1 bumpversion==0.5.3 wheel==0.32.2 watchdog==0.9.0 flake...
4c991535773481c65f7fb6a1eabb2897399a3cf4
requirements/dev.txt
requirements/dev.txt
Text
<|file_sep|>common/models/user.js.diff original: module.exports = function(user) { updated: module.exports = function (user) { <|file_sep|>common/models/user.js.diff original: user.beforeCreate = function(next, user) { if (user.username == undefined) { user.username = user.email; updated: // Set the usern...
module.exports = function (user) { // Set the username to the users email address by default. user.observe('before save', function setDefaultUsername(ctx, next) { if (ctx.instance) { if (ctx.instance.username === undefined) { ctx.instance.username = ctx.instance.email; } ctx.instance....
<|file_sep|>common/models/user.js.diff original: module.exports = function(user) { updated: module.exports = function (user) { <|file_sep|>common/models/user.js.diff original: user.beforeCreate = function(next, user) { if (user.username == undefined) { user.username = user.email; updated: // Set the usern...
c798dc816166963dfc08175e7a2b4d7ea2e075a0
common/models/user.js
common/models/user.js
JavaScript
<|file_sep|>server/bottle_drone.py.diff original: @get('/navdata') def navdata(): """Return packet of navdata.""" updated: @get('/imgdata') def imgdata(): """Return the current drone image.""" <|file_sep|>server/bottle_drone.py.diff original: @get('/imgdata') updated: @get('/navdata') <|file_sep|>original/serve...
@get('/imgdata') def imgdata(): """Return the current drone image.""" print(type(drone.image)) return drone.image @get('/navdata') def navdata(): """Return packet of navdata.""" response.content_type = 'image/x-rgb' print(drone.navdata) return drone.navdata @post('/do/<command>') def do(...
<|file_sep|>server/bottle_drone.py.diff original: @get('/navdata') def navdata(): """Return packet of navdata.""" updated: @get('/imgdata') def imgdata(): """Return the current drone image.""" <|file_sep|>server/bottle_drone.py.diff original: @get('/imgdata') updated: @get('/navdata') <|file_sep|>original/serve...
84953a5595598f08741d49da22b01aaca2459bc2
server/bottle_drone.py
server/bottle_drone.py
Python
<|file_sep|>original/src/static/scss/_chips.scss padding: 0 .75rem; background-color: lightgray; border-radius: 2rem; &--avatar { padding-left: 2.5rem; } &__content { font-size: .9rem; // font-weight: 300; // TODO: decide on .light vs .ms } } .avatar { position: absolute; top: 0; left...
padding: 0 .75rem; background-color: lightgray; border-radius: 2rem; &--avatar { padding-left: 2.5rem; } &__content { font-size: .9rem; } } .avatar { position: absolute; top: 0; left: 0; width: 2rem; height: 2rem; border: 0; border-radius: 50%;
<|file_sep|>original/src/static/scss/_chips.scss padding: 0 .75rem; background-color: lightgray; border-radius: 2rem; &--avatar { padding-left: 2.5rem; } &__content { font-size: .9rem; // font-weight: 300; // TODO: decide on .light vs .ms } } .avatar { position: absolute; top: 0; left...
562ff7dd644d6b6c84165851d61b2c7bcce5f220
src/static/scss/_chips.scss
src/static/scss/_chips.scss
SCSS
<|file_sep|>composer.json.diff original: updated: "description": "Amazon MWS code base moved into composer package", <|file_sep|>original/composer.json { "name": "amazon-mws-unofficial/mws-recommendations-section-service", "type": "library", "license": "Apache License", "autoload": { "psr-0": ...
{ "name": "amazon-mws-unofficial/mws-recommendations-section-service", "description": "Amazon MWS code base moved into composer package", "type": "library", "license": "Apache-2.0", "autoload": { "psr-0": { "": "src/" } } }
<|file_sep|>composer.json.diff original: updated: "description": "Amazon MWS code base moved into composer package", <|file_sep|>original/composer.json { "name": "amazon-mws-unofficial/mws-recommendations-section-service", "type": "library", "license": "Apache License", "autoload": { "psr-0": ...
f75720feaf998b0fcccf7303f63a46d17afd8c62
composer.json
composer.json
JSON
<|file_sep|>opps/views/generic/detail.py.diff original: updated: <|file_sep|>original/opps/views/generic/detail.py from opps.views.generic.base import View class DetailView(View, DjangoDetailView): def get_template_names(self): templates = [] domain_folder = self.get_template_folder() ...
from opps.views.generic.base import View class DetailView(View, DjangoDetailView): def get_template_names(self): templates = [] domain_folder = self.get_template_folder() templates.append('{}/{}/{}/detail.html'.format(domain_folder, ...
<|file_sep|>opps/views/generic/detail.py.diff original: updated: <|file_sep|>original/opps/views/generic/detail.py from opps.views.generic.base import View class DetailView(View, DjangoDetailView): def get_template_names(self): templates = [] domain_folder = self.get_template_folder() ...
da52ad14f23bcecd8d0107742eb8a1d9a447265a
opps/views/generic/detail.py
opps/views/generic/detail.py
Python
<|file_sep|>original/_posts/2017-08-22-monitor-docker-services.md <|file_sep|>current/_posts/2017-08-22-monitor-docker-services.md <|file_sep|>updated/_posts/2017-08-22-monitor-docker-services.md
--- layout: post title: Monitor các Docker service với Prometheus --- Monitor là một việc làm bắt buột trong môi trường production nếu muốn biết tình trạng của hệ thống hoặc các vấn đề đang xảy ra để có biện pháp giải quyết sự cố. Bài viết này sẽ trình bày cách monitor các thành phần (các Docker service) của một hệ ...
<|file_sep|>original/_posts/2017-08-22-monitor-docker-services.md <|file_sep|>current/_posts/2017-08-22-monitor-docker-services.md <|file_sep|>updated/_posts/2017-08-22-monitor-docker-services.md --- layout: post title: Monitor các Docker service với Prometheus --- Monitor là một việc làm bắt buột trong môi trường...
1ea2131d80aeb2f222ee522bb3990a658c85643a
_posts/2017-08-22-monitor-docker-services.md
_posts/2017-08-22-monitor-docker-services.md
Markdown
<|file_sep|>original/packages/by/bytestring-from.yaml homepage: '' changelog-type: '' hash: 5735532382e6f6ec4dd15eab33a44e7067e2ea09558532ce50d055f6eb106071 test-bench-deps: bytestring-from: -any bytestring: -any base: ==4.* tasty-quickcheck: ! '>=0.3' tasty: ! '>=0.7' QuickCheck: ! '>=2.6' maintainer: Tora...
homepage: '' changelog-type: '' hash: b6efc5572f7f26aa1bcc4d930391cb9f0144f6e3df107838ee0adc28d73caa3a test-bench-deps: bytestring-from: -any bytestring: -any base: ==4.* tasty-quickcheck: ! '>=0.3' tasty: ! '>=0.7' QuickCheck: ! '>=2.6' maintainer: Toralf Wittner <tw@dtex.org> synopsis: A type-class to con...
<|file_sep|>original/packages/by/bytestring-from.yaml homepage: '' changelog-type: '' hash: 5735532382e6f6ec4dd15eab33a44e7067e2ea09558532ce50d055f6eb106071 test-bench-deps: bytestring-from: -any bytestring: -any base: ==4.* tasty-quickcheck: ! '>=0.3' tasty: ! '>=0.7' QuickCheck: ! '>=2.6' maintainer: Tora...
4b33c876acc922950ddf03cac11daea0afd38573
packages/by/bytestring-from.yaml
packages/by/bytestring-from.yaml
YAML
<|file_sep|>scripts/run_berks_api.sh.diff original: if [ -z "$CHEF_SERVER_ENDPOINT" ]; then updated: if [ -z "$CHEF_SERVER_ENDPOINT" ]; then <|file_sep|>scripts/run_berks_api.sh.diff original: updated: fi if [ -z "$CHEF_CLIENT_NAME" ]; then # set default CHEF_CLIENT_NAME="berkshelf" <|file_sep|>scripts/run...
cat >/home/berkshelf/.berkshelf/api-server/config.json <<EOF { "endpoints": [ { "type": "chef_server", "options": { "url": "$CHEF_SERVER_ENDPOINT", "client_name": "$CHEF_CLIENT_NAME", "client_key": "/home/berkshelf/.chef/berkshelf.pem", "ssl_verify": false } } ]...
<|file_sep|>scripts/run_berks_api.sh.diff original: if [ -z "$CHEF_SERVER_ENDPOINT" ]; then updated: if [ -z "$CHEF_SERVER_ENDPOINT" ]; then <|file_sep|>scripts/run_berks_api.sh.diff original: updated: fi if [ -z "$CHEF_CLIENT_NAME" ]; then # set default CHEF_CLIENT_NAME="berkshelf" <|file_sep|>scripts/run...
64743d32e241c34ad68b79001bf8648640e2dda5
scripts/run_berks_api.sh
scripts/run_berks_api.sh
Shell
<|file_sep|>original/internal_packages/composer-emojis/lib/emoji-picker.jsx render() { const emojis = []; let emojiIndex = this.props.emojiOptions.indexOf(this.props.selectedEmoji); if (emojiIndex === -1) emojiIndex = 0; if (this.props.emojiOptions) { this.props.emojiOptions.forEach((emojiOptio...
render() { const emojis = []; let emojiIndex = this.props.emojiOptions.indexOf(this.props.selectedEmoji); if (emojiIndex === -1) emojiIndex = 0; if (this.props.emojiOptions) { this.props.emojiOptions.forEach((emojiOption, i) => { const emojiChar = emoji.get(emojiOption); const e...
<|file_sep|>original/internal_packages/composer-emojis/lib/emoji-picker.jsx render() { const emojis = []; let emojiIndex = this.props.emojiOptions.indexOf(this.props.selectedEmoji); if (emojiIndex === -1) emojiIndex = 0; if (this.props.emojiOptions) { this.props.emojiOptions.forEach((emojiOptio...
b65c4104b4d8e0d8e60053b459378672c16ff13e
internal_packages/composer-emojis/lib/emoji-picker.jsx
internal_packages/composer-emojis/lib/emoji-picker.jsx
JSX
<|file_sep|>original/.github/dependabot.yml schedule: interval: daily allow: # Internal gems - dependency-name: "govuk*" dependency-type: direct - dependency-name: gds-api-adapters dependency-type: direct - dependency-name: govspeak dependency-type: direct ...
allow: # Internal gems - dependency-name: "govuk*" dependency-type: direct - dependency-name: gds-api-adapters dependency-type: direct - dependency-name: govspeak dependency-type: direct - dependency-name: plek dependency-type: direct - dependency-...
<|file_sep|>original/.github/dependabot.yml schedule: interval: daily allow: # Internal gems - dependency-name: "govuk*" dependency-type: direct - dependency-name: gds-api-adapters dependency-type: direct - dependency-name: govspeak dependency-type: direct ...
8e6d3c7c97a1958a6ed34526dde09d36d0a8309a
.github/dependabot.yml
.github/dependabot.yml
YAML
<|file_sep|>original/readme.md I recommend you use virtualenv: `virtualenv .venv --no-site-packages` `pip install -r requirements.txt` `python manage.py runserver 127.0.0.1:8000` Also for testing there are additional dependencies: `pip install -r test-requirements` `python manage.py test` Contributing ----------...
I recommend you use virtualenv: `virtualenv .venv --no-site-packages` `pip install -r requirements.txt` `python manage.py runserver 127.0.0.1:8000` Also for testing there are additional dependencies: `pip install -r test-requirements.txt` `python manage.py test` Contributing ------------ ADFS Managers is opensou...
<|file_sep|>original/readme.md I recommend you use virtualenv: `virtualenv .venv --no-site-packages` `pip install -r requirements.txt` `python manage.py runserver 127.0.0.1:8000` Also for testing there are additional dependencies: `pip install -r test-requirements` `python manage.py test` Contributing ----------...
f042ab67cc487ef26f57facde440497a72832d42
readme.md
readme.md
Markdown
<|file_sep|>original/src/bash/add_git_alias_completion.sh fi function_exists() { declare -f -F $1 > /dev/null return $? } _git_aliases() { git config --get-regexp "^alias\." | grep -o "\.\([[:alnum:]]*\)" | sed "s/\.//" | grep -v "^[[:space:]]*$" } for al in `_git_aliases`; do if [ $al != "pr" ];...
function_exists() { declare -f -F $1 > /dev/null return $? } _git_aliases() { git config --get-regexp "^alias\." | grep -o "\.\([[:alnum:]]*\)" | sed "s/\.//" | grep -v "^[[:space:]]*$" } for al in `_git_aliases`; do if [ $al != "pr" ]; then alias g$al="git $al" if [ "$(__git_aliased_comma...
<|file_sep|>original/src/bash/add_git_alias_completion.sh fi function_exists() { declare -f -F $1 > /dev/null return $? } _git_aliases() { git config --get-regexp "^alias\." | grep -o "\.\([[:alnum:]]*\)" | sed "s/\.//" | grep -v "^[[:space:]]*$" } for al in `_git_aliases`; do if [ $al != "pr" ];...
bccb448a8f456866e60daa474a6d894bed8b4726
src/bash/add_git_alias_completion.sh
src/bash/add_git_alias_completion.sh
Shell
<|file_sep|>sass/base/_tabular.scss.diff original: @include adjust-font-size-to ($s); updated: // @include adjust-font-size-to ($s); <|file_sep|>sass/base/_tabular.scss.diff original: updated: border: 1px solid $border-color; <|file_sep|>sass/base/_tabular.scss.diff original: border-bottom: 1px solid $border...
padding: rhythm(1) rhythm(2); vertical-align: top; border: 1px solid $border-color; // border-left: 1px dotted $border-color; border-style: solid none solid dotted; &:first-child { border-left: none; } } th { // border-top: 1px solid $border-color; } th, tfoot td { font...
<|file_sep|>sass/base/_tabular.scss.diff original: @include adjust-font-size-to ($s); updated: // @include adjust-font-size-to ($s); <|file_sep|>sass/base/_tabular.scss.diff original: updated: border: 1px solid $border-color; <|file_sep|>sass/base/_tabular.scss.diff original: border-bottom: 1px solid $border...
bcac2ca92158952c93af3716a542dd11c4fe9024
sass/base/_tabular.scss
sass/base/_tabular.scss
SCSS
<|file_sep|>original/requirements_dev.txt pip==9.0.1 wheel==0.30.0 watchdog==0.8.3 flake8==3.4.1 tox==2.8.2 coverage==4.4.1 Sphinx==1.6.3 cryptography==2.0.3 PyYAML==3.12 <|file_sep|>current/requirements_dev.txt pip==9.0.1 wheel==0.30.0 watchdog==0.8.3 flake8==3.4.1 tox==2.8.2 coverage==4.4.1 Sphinx==1.6.3 cryptography...
pip==9.0.1 wheel==0.30.0 watchdog==0.8.3 flake8==3.4.1 tox==2.9.1 coverage==4.4.1 Sphinx==1.6.3 cryptography==2.0.3 PyYAML==3.12
<|file_sep|>original/requirements_dev.txt pip==9.0.1 wheel==0.30.0 watchdog==0.8.3 flake8==3.4.1 tox==2.8.2 coverage==4.4.1 Sphinx==1.6.3 cryptography==2.0.3 PyYAML==3.12 <|file_sep|>current/requirements_dev.txt pip==9.0.1 wheel==0.30.0 watchdog==0.8.3 flake8==3.4.1 tox==2.8.2 coverage==4.4.1 Sphinx==1.6.3 cryptography...
7e09ea2ff69a05cd19b95695d53c70e4fe1aaa2f
requirements_dev.txt
requirements_dev.txt
Text
<|file_sep|>pkg/api/customization/yaml/formatter.go.diff original: resource.Links["yaml"] = request.URLBuilder.Link("yaml", resource) updated: <|file_sep|>original/pkg/api/customization/yaml/formatter.go package yaml import ( "github.com/rancher/norman/types" ) func NewFormatter(next types.Formatter) types.Format...
package yaml import ( "github.com/rancher/norman/types" ) func NewFormatter(next types.Formatter) types.Formatter { return func(request *types.APIContext, resource *types.RawResource) { if next != nil { next(request, resource) } resource.Links["yaml"] = request.URLBuilder.Link("yaml", resource) } }
<|file_sep|>pkg/api/customization/yaml/formatter.go.diff original: resource.Links["yaml"] = request.URLBuilder.Link("yaml", resource) updated: <|file_sep|>original/pkg/api/customization/yaml/formatter.go package yaml import ( "github.com/rancher/norman/types" ) func NewFormatter(next types.Formatter) types.Format...
531dfc22018fae9d6fa725a2090fed0b65bd5860
pkg/api/customization/yaml/formatter.go
pkg/api/customization/yaml/formatter.go
Go
<|file_sep|>original/.travis.yml language: java sudo: false install: true script: mvn -fae -U -B clean install jdk: - oraclejdk8 cache: directories: - $HOME/.m2 <|file_sep|>current/.travis.yml language: java sudo: false install: true script: mvn -fae -U -B clean install jdk: - oraclejdk8 cache: directories...
language: java sudo: false install: true script: mvn -fae -U -B clean install jdk: - openjdk8 - openjdk10 - openjdk11 cache: directories: - $HOME/.m2
<|file_sep|>original/.travis.yml language: java sudo: false install: true script: mvn -fae -U -B clean install jdk: - oraclejdk8 cache: directories: - $HOME/.m2 <|file_sep|>current/.travis.yml language: java sudo: false install: true script: mvn -fae -U -B clean install jdk: - oraclejdk8 cache: directories...
7b41e5265820d57f00949008fba2e620eb4acb58
.travis.yml
.travis.yml
YAML
<|file_sep|>original/README.md Adds global functions to run only certain [Jasmine](https://github.com/pivotal/jasmine) specs. The number of `f` characters in the method name denotes the priority of the `describe` or `it` spec. For example, a `fit` spec would be run instead of any `it` specs and a `ffit` spec would b...
The number of `f` characters in the method name denotes the priority of the `describe` or `it` spec. For example, a `fit` spec would be run instead of any `it` specs and a `ffit` spec would be run instead of any `fit` or `it` specs. This module includes a `jasmine-focused` executable that wraps `jasmine-node` allowin...
<|file_sep|>original/README.md Adds global functions to run only certain [Jasmine](https://github.com/pivotal/jasmine) specs. The number of `f` characters in the method name denotes the priority of the `describe` or `it` spec. For example, a `fit` spec would be run instead of any `it` specs and a `ffit` spec would b...
190851b8a37869a5aa482e3e8b07687f9f256528
README.md
README.md
Markdown
<|file_sep|>README.md.diff original: # Here is the [Wiki]( https://github.com/bounswe/bounswe2016group12/wiki) page. updated: ##Assignment #1 ## Github * [Issue System] (https://github.com/bounswe/bounswe2016group12/wiki/Issue-System) * [Version Control System] (https://github.com/bounswe/bounswe2016group12/wik...
This is a 352/451 course project of group12 of year 2016 at [CMPE@BOUN](https://piazza.com/boun.edu.tr/spring2016/cmpe352/home). ##Assignment #1 ## Github * [Issue System] (https://github.com/bounswe/bounswe2016group12/wiki/Issue-System) * [Version Control System] (https://github.com/bounswe/bounswe2016group12...
<|file_sep|>README.md.diff original: # Here is the [Wiki]( https://github.com/bounswe/bounswe2016group12/wiki) page. updated: ##Assignment #1 ## Github * [Issue System] (https://github.com/bounswe/bounswe2016group12/wiki/Issue-System) * [Version Control System] (https://github.com/bounswe/bounswe2016group12/wik...
5d7c8b83428a262a1166dc58fff339cead427ae2
README.md
README.md
Markdown
<|file_sep|>original/.travis.yml <|file_sep|>current/.travis.yml <|file_sep|>updated/.travis.yml
language: python python: - "2.7" install: - "pip install -U pip setuptools" - "pip install -e . --use-mirrors" script: python setup.py nosetests
<|file_sep|>original/.travis.yml <|file_sep|>current/.travis.yml <|file_sep|>updated/.travis.yml language: python python: - "2.7" install: - "pip install -U pip setuptools" - "pip install -e . --use-mirrors" script: python setup.py nosetests
55d3db95f598135acdd51b6373619f96f57db0b1
.travis.yml
.travis.yml
YAML
<|file_sep|>original/README.md # ping [![Build Status](https://travis-ci.org/zunda/ping.svg?branch=add-dashboard)](https://travis-ci.org/zunda/ping) A Heroku app to measure latency from client to the server <|file_sep|>current/README.md # ping [![Build Status](https://travis-ci.org/zunda/ping.svg?branch=add-dashboard)...
# ping [![Build Status](https://travis-ci.org/zunda/ping.svg?branch=master)](https://travis-ci.org/zunda/ping) A Heroku app to measure latency from client to the server
<|file_sep|>original/README.md # ping [![Build Status](https://travis-ci.org/zunda/ping.svg?branch=add-dashboard)](https://travis-ci.org/zunda/ping) A Heroku app to measure latency from client to the server <|file_sep|>current/README.md # ping [![Build Status](https://travis-ci.org/zunda/ping.svg?branch=add-dashboard)...
97d495cb93e1978e9833b1d0882fc7fb4d23af79
README.md
README.md
Markdown
<|file_sep|>original/app/scripts/controllers/updateNodeCtrl.js $scope.token = undefined; $scope.saved = false; $scope.hasData = function () { return $scope.node !== undefined; }; $scope.onSubmitToken = function (token) { $scope.token = token; return NodeService.getNode(toke...
$scope.token = undefined; $scope.saved = false; $scope.hasData = function () { return $scope.node !== undefined; }; $scope.onSubmitToken = function (token) { $scope.token = token; return NodeService.getNode(token) .then(function (response) { $sco...
<|file_sep|>original/app/scripts/controllers/updateNodeCtrl.js $scope.token = undefined; $scope.saved = false; $scope.hasData = function () { return $scope.node !== undefined; }; $scope.onSubmitToken = function (token) { $scope.token = token; return NodeService.getNode(toke...
5754250c0d5da83b93ba4854916213b0d496ca7e
app/scripts/controllers/updateNodeCtrl.js
app/scripts/controllers/updateNodeCtrl.js
JavaScript
<|file_sep|>metadata/de.onyxbits.droidentify.txt.diff original: updated: Build:1.3,4 commit=v1.3 gradle=yes <|file_sep|>metadata/de.onyxbits.droidentify.txt.diff original: Update Check Mode:Tags updated: <|file_sep|>original/metadata/de.onyxbits.droidentify.txt report over to your desktop computer for furthe...
Repo Type:git Repo:https://github.com/onyxbits/Droidentify Build:1.1,2 commit=b3932e52a83d97a8abc110696df7ca4e87ef1298 gradle=yes prebuild=sed -i -e 's/22.1.0/22.0.0/g' build.gradle Build:1.2,3 commit=v1.2 gradle=yes Build:1.3,4 commit=v1.3 gradle=yes Auto Update Mode:Version v%v Update ...
<|file_sep|>metadata/de.onyxbits.droidentify.txt.diff original: updated: Build:1.3,4 commit=v1.3 gradle=yes <|file_sep|>metadata/de.onyxbits.droidentify.txt.diff original: Update Check Mode:Tags updated: <|file_sep|>original/metadata/de.onyxbits.droidentify.txt report over to your desktop computer for furthe...
dbe101b387bf848a8a4c15eaaa06d5c292383407
metadata/de.onyxbits.droidentify.txt
metadata/de.onyxbits.droidentify.txt
Text
<|file_sep|>original/composer.json "description": "Implementing simple REST api using Slim framework", "minimum-stability": "dev", "license": "MIT", "authors": [ { "name": "Milad Nekofar", "email": "milad@nekofar.com" } ], "require": { "slim/slim": "^3.12.1", "j4mie/idiorm": "^1....
"description": "Implementing simple REST api using Slim framework", "minimum-stability": "dev", "license": "MIT", "authors": [ { "name": "Milad Nekofar", "email": "milad@nekofar.com" } ], "require": { "slim/slim": "^4.3.0", "j4mie/idiorm": "^1.5.0", "ext-json": "*", "ext-...
<|file_sep|>original/composer.json "description": "Implementing simple REST api using Slim framework", "minimum-stability": "dev", "license": "MIT", "authors": [ { "name": "Milad Nekofar", "email": "milad@nekofar.com" } ], "require": { "slim/slim": "^3.12.1", "j4mie/idiorm": "^1....
6c3b62110d333cb83b3f44691b1cf4812f6af0e2
composer.json
composer.json
JSON
<|file_sep|>original/bin/update.sh #!/bin/bash rsync -arz --delete --exclude 'relay-descriptors/votes' --exclude 'relay-descriptors/microdescs' --exclude 'torperf' metrics.torproject.org::metrics-recent in ant run >> log <|file_sep|>current/bin/update.sh #!/bin/bash rsync -arz --delete --exclude 'relay-descriptors/vot...
#!/bin/bash rsync -az --delete metrics.torproject.org::'metrics-recent/relay-descriptors/consensuses/ metrics-recent/relay-descriptors/server-descriptors/ metrics-recent/relay-descriptors/extra-infos/ metrics-recent/bridge-descriptors/statuses/ metrics-recent/bridge-descriptors/server-descriptors/ metrics-recent/bridge...
<|file_sep|>original/bin/update.sh #!/bin/bash rsync -arz --delete --exclude 'relay-descriptors/votes' --exclude 'relay-descriptors/microdescs' --exclude 'torperf' metrics.torproject.org::metrics-recent in ant run >> log <|file_sep|>current/bin/update.sh #!/bin/bash rsync -arz --delete --exclude 'relay-descriptors/vot...
c40402127d11c8947a5dbcae933bc5f0b1975aac
bin/update.sh
bin/update.sh
Shell
<|file_sep|>original/.github/workflows/maven.yml jobs: build: runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 - name: Set up JDK 1.8 uses: actions/setup-java@v1 with: java-version: 1.8 - name: Install thrift 0.13.0 run: | sudo apt-get update -y ...
jobs: build: runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 - name: Set up JDK 1.8 uses: actions/setup-java@v1 with: java-version: 1.8 - name: Install thrift 0.13.0 run: | sudo apt-get update -y sudo apt-get install automake bison flex g++ git...
<|file_sep|>original/.github/workflows/maven.yml jobs: build: runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 - name: Set up JDK 1.8 uses: actions/setup-java@v1 with: java-version: 1.8 - name: Install thrift 0.13.0 run: | sudo apt-get update -y ...
dbce369a1a966b0c2916cb66c1ac4b8f25c307e7
.github/workflows/maven.yml
.github/workflows/maven.yml
YAML
<|file_sep|>original/velvet/test/test_utils.py import numpy as np import velvet as vt class TestUtilFunctions(unittest.TestCase): def test_isodd(self): x = np.array([1,2,1,1,-3,-4,7,8,9,10,-2,1,-3,5,6,7,-10]) y = vt.isodd(x) yCorrect = np.array([1,0,1,1,1,0,1,0,1,0,0,1,1,1,0,1,0]) ...
import numpy as np import velvet as vt class TestUtilFunctions(unittest.TestCase): def test_isodd(self): x = np.array([1,2,1,1,-3,-4,7,8,9,10,-2,1,-3,5,6,7,-10]) y = vt.isodd(x) yCorrect = np.array([1,0,1,1,1,0,1,0,1,0,0,1,1,1,0,1,0]) for ind in np.arange(len(y)): self...
<|file_sep|>original/velvet/test/test_utils.py import numpy as np import velvet as vt class TestUtilFunctions(unittest.TestCase): def test_isodd(self): x = np.array([1,2,1,1,-3,-4,7,8,9,10,-2,1,-3,5,6,7,-10]) y = vt.isodd(x) yCorrect = np.array([1,0,1,1,1,0,1,0,1,0,0,1,1,1,0,1,0]) ...
013c359fff199e20b2359d3b59526ca7d9ad2932
velvet/test/test_utils.py
velvet/test/test_utils.py
Python
<|file_sep|>src/Kunstmaan/DashboardBundle/Helper/Google/ClientHelper.php.diff original: use Google_Client; use Symfony\Cmf\Component\Routing\ChainRouter; updated: use Google_Client as Client; <|file_sep|>src/Kunstmaan/DashboardBundle/Helper/Google/ClientHelper.php.diff original: updated: use Symfony\Component\Routing...
*/ public function __construct(Client $client, RouterInterface $router, $routeName) { $this->client = $client; try { $uri = $router->generate($routeName, [], UrlGeneratorInterface::ABSOLUTE_URL); $this->client->setRedirectUri($uri); } catch (Exception $e) { ...
<|file_sep|>src/Kunstmaan/DashboardBundle/Helper/Google/ClientHelper.php.diff original: use Google_Client; use Symfony\Cmf\Component\Routing\ChainRouter; updated: use Google_Client as Client; <|file_sep|>src/Kunstmaan/DashboardBundle/Helper/Google/ClientHelper.php.diff original: updated: use Symfony\Component\Routing...
0672ef0aa2bff3af720f35ae70a528d33c533954
src/Kunstmaan/DashboardBundle/Helper/Google/ClientHelper.php
src/Kunstmaan/DashboardBundle/Helper/Google/ClientHelper.php
PHP
<|file_sep|>CHANGELOG.md.diff original: # HEAD updated: # Version 0.1.2 /* DEC.30.2013 <|file_sep|>CHANGELOG.md.diff original: updated: * Synchronized versions across git tags, rubygems, and the VERSION internal constant by Peter Boling * Improved documentation by Peter Boling # Version 0.1.1 /* DEC.30.2013 * /* (ta...
# Version 0.1.2 /* DEC.30.2013 * Synchronized versions across git tags, rubygems, and the VERSION internal constant by Peter Boling * Improved documentation by Peter Boling # Version 0.1.1 /* DEC.30.2013 * /* (tagged and pushed to ruby gems as 0.1.0 due to gem-release 0.6.0 bug) * Changed gem name from 'archivist' (...
<|file_sep|>CHANGELOG.md.diff original: # HEAD updated: # Version 0.1.2 /* DEC.30.2013 <|file_sep|>CHANGELOG.md.diff original: updated: * Synchronized versions across git tags, rubygems, and the VERSION internal constant by Peter Boling * Improved documentation by Peter Boling # Version 0.1.1 /* DEC.30.2013 * /* (ta...
40c38027f3fb62269ddbb92e706ab737bd541971
CHANGELOG.md
CHANGELOG.md
Markdown
<|file_sep|>original/library/CMakeLists.txt # Get sources file(GLOB hipRAND_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/src/hiprand/*_${HIP_PLATFORM}.cpp) set_source_files_properties(${hipRAND_SRCS} PROPERTIES HIP_SOURCE_PROPERTY_FORMAT TRUE) # Build hip_add_library(hipRAND SHARED "${hipRAND_SRCS}") if(HIP_PLATFORM STREQUAL "nv...
# Get sources file(GLOB hipRAND_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/src/hiprand/*_${HIP_PLATFORM}.cpp) set_source_files_properties(${hipRAND_SRCS} PROPERTIES HIP_SOURCE_PROPERTY_FORMAT TRUE) # Build hip_add_library(hipRAND SHARED "${hipRAND_SRCS}") if(HIP_PLATFORM STREQUAL "nvcc") target_link_libraries(hipRAND "-lcu...
<|file_sep|>original/library/CMakeLists.txt # Get sources file(GLOB hipRAND_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/src/hiprand/*_${HIP_PLATFORM}.cpp) set_source_files_properties(${hipRAND_SRCS} PROPERTIES HIP_SOURCE_PROPERTY_FORMAT TRUE) # Build hip_add_library(hipRAND SHARED "${hipRAND_SRCS}") if(HIP_PLATFORM STREQUAL "nv...
b4c2d8a20a18fe424aa901406f5d266ceec19212
library/CMakeLists.txt
library/CMakeLists.txt
Text
<|file_sep|>original/requirements.txt credstash==1.13.2 boto3==1.4.4 py-gfm==0.1.3 blinker==1.4 lxml==3.8.0 pyexcel==0.5.0 pyexcel-io==0.4.2 pyexcel-xls==0.4.0 pyexcel-xlsx==0.4.0 pyexcel-ods3==0.1.1 pytz==2016.4 six==1.10.0 gunicorn==19.6.0 whitenoise==1.0.6 #manages static assets # pin to minor version 3.1.x notif...
credstash==1.13.2 boto3==1.4.4 py-gfm==0.1.3 blinker==1.4 lxml==3.8.0 pyexcel==0.5.0 pyexcel-io==0.4.2 pyexcel-xls==0.4.0 pyexcel-xlsx==0.4.0 pyexcel-ods3==0.4.0 pytz==2016.4 six==1.10.0 gunicorn==19.6.0 whitenoise==1.0.6 #manages static assets # pin to minor version 3.1.x notifications-python-client>=3.1,<3.2 # Pa...
<|file_sep|>original/requirements.txt credstash==1.13.2 boto3==1.4.4 py-gfm==0.1.3 blinker==1.4 lxml==3.8.0 pyexcel==0.5.0 pyexcel-io==0.4.2 pyexcel-xls==0.4.0 pyexcel-xlsx==0.4.0 pyexcel-ods3==0.1.1 pytz==2016.4 six==1.10.0 gunicorn==19.6.0 whitenoise==1.0.6 #manages static assets # pin to minor version 3.1.x notif...
f5bc2e57e77014a8e9f9a9d42f96ad3773f33867
requirements.txt
requirements.txt
Text
<|file_sep|>original/js/index.js bg.console.log('index.html: ', error); }); } window.onerror = function(message, script, line, col, error) { logError(error); }; function render() { extension.windows.getBackground(function(bg) { bg.owsDesktopApp.getAppVie...
bg.console.log('index.html: ', error); }); } window.onerror = function(message, script, line, col, error) { logError(error); }; function render() { extension.windows.getBackground(function(bg) { bg.owsDesktopApp.getAppView(window).then(function(appView) ...
<|file_sep|>original/js/index.js bg.console.log('index.html: ', error); }); } window.onerror = function(message, script, line, col, error) { logError(error); }; function render() { extension.windows.getBackground(function(bg) { bg.owsDesktopApp.getAppVie...
b68f438ceed3534cd18ec204a54b5c96cb0c9fb4
js/index.js
js/index.js
JavaScript
<|file_sep|>original/test/functional/admin/transactions_controller_test.rb require 'test_helper' class Admin::TransactionsControllerTest < ActionController::TestCase setup do stub_request(:delete, "#{Plek.current.find("arbiter")}/slugs/test").to_return(:status => 200) stub_request(:get, "#{Plek.current.find...
require 'test_helper' class Admin::TransactionsControllerTest < ActionController::TestCase setup do stub_request(:delete, "#{Plek.current.find("arbiter")}/slugs/test").to_return(:status => 200) panopticon_has_metadata( "id" => "test", "name" => "FOOOO" ) login_as_stub_user @transacti...
<|file_sep|>original/test/functional/admin/transactions_controller_test.rb require 'test_helper' class Admin::TransactionsControllerTest < ActionController::TestCase setup do stub_request(:delete, "#{Plek.current.find("arbiter")}/slugs/test").to_return(:status => 200) stub_request(:get, "#{Plek.current.find...
c1da93a77f51f301eade1c5985b5d1b00c694c56
test/functional/admin/transactions_controller_test.rb
test/functional/admin/transactions_controller_test.rb
Ruby
<|file_sep|>app/assets/stylesheets/modules/_basic_modal.styl.diff original: updated: max-height 80% <|file_sep|>original/app/assets/stylesheets/modules/_basic_modal.styl .basic-modal background white padding 20px position fixed margin auto left 0 right 0 top 20% max-width 800px border 1px solid mis...
padding 20px position fixed margin auto left 0 right 0 top 20% max-width 800px max-height 80% border 1px solid mischka border-radius 3px box-shadow 0 0 20px 0 rgba(0, 0, 0, .6) overflow-y auto z-index 12 .right text-align right float left .left text-align left float left
<|file_sep|>app/assets/stylesheets/modules/_basic_modal.styl.diff original: updated: max-height 80% <|file_sep|>original/app/assets/stylesheets/modules/_basic_modal.styl .basic-modal background white padding 20px position fixed margin auto left 0 right 0 top 20% max-width 800px border 1px solid mis...
4ff0afa308f24580454a1b425beb8b03bd7bd7eb
app/assets/stylesheets/modules/_basic_modal.styl
app/assets/stylesheets/modules/_basic_modal.styl
Stylus
<|file_sep|>client/auth/containers/AuthMenu.jsx.diff original: updated: import styled from "styled-components"; <|file_sep|>client/auth/containers/AuthMenu.jsx.diff original: updated: const LogOutLink = styled.a` margin-right: 20px; `; <|file_sep|>client/auth/containers/AuthMenu.jsx.diff original: <a cla...
const { isAuthenticated, pathname, userId } = this.props; if (isAuthenticated) { return ( <div className="span2"> <LogOutLink onClick={() => this.props.logout()}>Log out</LogOutLink> <Link to={`/riders/${userId}`}>Profile</Link> </div> ); } else { retur...
<|file_sep|>client/auth/containers/AuthMenu.jsx.diff original: updated: import styled from "styled-components"; <|file_sep|>client/auth/containers/AuthMenu.jsx.diff original: updated: const LogOutLink = styled.a` margin-right: 20px; `; <|file_sep|>client/auth/containers/AuthMenu.jsx.diff original: <a cla...
96d51e11c5ba0e0ae36451af7bfab339551f1a93
client/auth/containers/AuthMenu.jsx
client/auth/containers/AuthMenu.jsx
JSX
<|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...
c3087c0a2eb02d04199d58d13da934965f37970d
static/locales/en-GB/messages.properties
static/locales/en-GB/messages.properties
INI
<|file_sep|>plugin.cmake.diff original: add_eslint_test( isic_archive "${PROJECT_SOURCE_DIR}/plugins/isic_archive/web_external/js" ESLINT_CONFIG_FILE "${PROJECT_SOURCE_DIR}/plugins/isic_archive/web_external/js/.eslintrc.js" ESLINT_IGNORE_FILE "${PROJECT_SOURCE_DIR}/plugins/isic_archive/web_external/js/.eslintigno...
# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing...
<|file_sep|>plugin.cmake.diff original: add_eslint_test( isic_archive "${PROJECT_SOURCE_DIR}/plugins/isic_archive/web_external/js" ESLINT_CONFIG_FILE "${PROJECT_SOURCE_DIR}/plugins/isic_archive/web_external/js/.eslintrc.js" ESLINT_IGNORE_FILE "${PROJECT_SOURCE_DIR}/plugins/isic_archive/web_external/js/.eslintigno...
4e05d9886f3fc5ab7ba90058d4b8deeba92ef545
plugin.cmake
plugin.cmake
CMake
<|file_sep|>original/package.json "bugs": { "url": "https://github.com/benjamn/reify/issues" }, "engines": { "node": ">=4" }, "scripts": { "test": "test/run.sh" }, "dependencies": { "acorn": "~5.0.0" }, "devDependencies": { "babel-core": "^6.24.0", "babel-plugin-transform-es201...
"bugs": { "url": "https://github.com/benjamn/reify/issues" }, "engines": { "node": ">=4" }, "scripts": { "test": "test/run.sh" }, "dependencies": { "acorn": "~5.0.0" }, "devDependencies": { "babel-core": "^6.24.0", "babel-plugin-transform-es2015-modules-reify": "^0.7.0", "b...
<|file_sep|>original/package.json "bugs": { "url": "https://github.com/benjamn/reify/issues" }, "engines": { "node": ">=4" }, "scripts": { "test": "test/run.sh" }, "dependencies": { "acorn": "~5.0.0" }, "devDependencies": { "babel-core": "^6.24.0", "babel-plugin-transform-es201...
de0812a45d4835d85cf17a3fa401a1e7286af492
package.json
package.json
JSON
<|file_sep|>original/app/models/choice_user.rb class ChoiceUser < ActiveRecord::Base belongs_to :user belongs_to :choice end <|file_sep|>current/app/models/choice_user.rb class ChoiceUser < ActiveRecord::Base belongs_to :user belongs_to :choice end <|file_sep|>updated/app/models/choice_user.rb
class ChoiceUser < ActiveRecord::Base belongs_to :user belongs_to :choice after_create :add_survey_users_record private def add_survey_users_record user = User.find(user_id) survey = choice.question.survey SurveyUser.find_or_create_by(user: user, survey: survey) end end
<|file_sep|>original/app/models/choice_user.rb class ChoiceUser < ActiveRecord::Base belongs_to :user belongs_to :choice end <|file_sep|>current/app/models/choice_user.rb class ChoiceUser < ActiveRecord::Base belongs_to :user belongs_to :choice end <|file_sep|>updated/app/models/choice_user.rb class ChoiceUser ...
4b37b11bba49881befc12dbbbfd8ea67e43d262b
app/models/choice_user.rb
app/models/choice_user.rb
Ruby
<|file_sep|>original/scripts/vgaconsolemtop.sh #!/bin/bash setterm -powersave off -powerdown 0 -blank 0 setfont Uni3-Terminus12x6 /usr/local/bin/mtop <|file_sep|>current/scripts/vgaconsolemtop.sh #!/bin/bash setterm -powersave off -powerdown 0 -blank 0 setfont Uni3-Terminus12x6 /usr/local/bin/mtop <|file_sep|>updated...
#!/bin/bash # # To get mtop to start up automatically on virtual console tty1 # # sudo systemctl edit getty@tty1 # # [Service] # ExecStart= # ExecStart=-/sbin/agetty --noclear --skip-login --login-program /[path to]/vgaconsolemtop.sh %I $TERM setterm -powersave off -powerdown 0 -blank 0 setfont Uni3-Terminus12x6 /usr/...
<|file_sep|>original/scripts/vgaconsolemtop.sh #!/bin/bash setterm -powersave off -powerdown 0 -blank 0 setfont Uni3-Terminus12x6 /usr/local/bin/mtop <|file_sep|>current/scripts/vgaconsolemtop.sh #!/bin/bash setterm -powersave off -powerdown 0 -blank 0 setfont Uni3-Terminus12x6 /usr/local/bin/mtop <|file_sep|>updated...
6e26ea3592335c574207d5f41d68f68ac78940cf
scripts/vgaconsolemtop.sh
scripts/vgaconsolemtop.sh
Shell
<|file_sep|>original/packages/stylelint-config/package.json { "name": "stylelint-config-modularis", "description": "modularis stylelint config", "keywords": [ "stylelint", "stylelint-config" ], "main": "index.js", "version": "2.0.0", "author": "Markus Oberlehner", "homepage": "https://github.com...
{ "name": "stylelint-config-modularis", "description": "modularis stylelint config", "keywords": [ "stylelint", "stylelint-config" ], "main": "index.js", "version": "2.0.1", "author": "Markus Oberlehner", "homepage": "https://github.com/modularis/stylelint-config-modularis", "license": "MIT", ...
<|file_sep|>original/packages/stylelint-config/package.json { "name": "stylelint-config-modularis", "description": "modularis stylelint config", "keywords": [ "stylelint", "stylelint-config" ], "main": "index.js", "version": "2.0.0", "author": "Markus Oberlehner", "homepage": "https://github.com...
6ab5f8d37bd4dde8562d9409bc5c4c85106413ea
packages/stylelint-config/package.json
packages/stylelint-config/package.json
JSON
<|file_sep|>original/package.json "type": "git", "url": "git://github.com/dpree/jenkins-box.git" }, "keywords": [ "jenkins", "ci", "vm", "vagrant", "ruby" ], "author": "Jens Bissinger", "license": "MIT", "readmeFilename": "README.md", "gitHead": "154b3b2245d2cd2afbc32e05982ac34...
"url": "git://github.com/dpree/jenkins-box.git" }, "keywords": [ "jenkins", "ci", "vm", "vagrant", "ruby" ], "author": "Jens Bissinger", "license": "MIT", "readmeFilename": "README.md", "gitHead": "154b3b2245d2cd2afbc32e05982ac34b294377bc", "devDependencies": { "grunt": "~0.4...
<|file_sep|>original/package.json "type": "git", "url": "git://github.com/dpree/jenkins-box.git" }, "keywords": [ "jenkins", "ci", "vm", "vagrant", "ruby" ], "author": "Jens Bissinger", "license": "MIT", "readmeFilename": "README.md", "gitHead": "154b3b2245d2cd2afbc32e05982ac34...
885f475ecdc0af185834dac789d7406601666822
package.json
package.json
JSON
<|file_sep|>original/avocado/export/__init__.py from avocado.core import loader from avocado.conf import OPTIONAL_DEPS from _csv import CSVExporter from _sas import SASExporter from _r import RExporter from _json import JSONExporter from _html import HTMLExporter registry = loader.Registry(register_instance=False) re...
from avocado.core import loader from avocado.conf import OPTIONAL_DEPS from _csv import CSVExporter from _sas import SASExporter from _r import RExporter from _json import JSONExporter from _html import HTMLExporter registry = loader.Registry(register_instance=False) registry.register(CSVExporter, 'csv') registry.reg...
<|file_sep|>original/avocado/export/__init__.py from avocado.core import loader from avocado.conf import OPTIONAL_DEPS from _csv import CSVExporter from _sas import SASExporter from _r import RExporter from _json import JSONExporter from _html import HTMLExporter registry = loader.Registry(register_instance=False) re...
20c6c985ea5f27a7badb18ecd7f6e6e6c4e250a0
avocado/export/__init__.py
avocado/export/__init__.py
Python
<|file_sep|>src/incise/layouts/core.clj.diff original: updated: (:require [incise.parsers.core] [incise.config :as conf]) <|file_sep|>original/src/incise/layouts/core.clj (ns incise.layouts.core (:refer-clojure :exclude [get])) (def layouts (atom {})) (defn exists? "Check for the existance of a lay...
(:refer-clojure :exclude [get])) (def layouts (atom {})) (defn exists? "Check for the existance of a layout with the given name." [layout-with-name] (contains? @layouts (name layout-with-name))) (defn get [layout-name] (@layouts (name layout-name))) (defn Parse->string [^incise.parsers.core.Parse parse-...
<|file_sep|>src/incise/layouts/core.clj.diff original: updated: (:require [incise.parsers.core] [incise.config :as conf]) <|file_sep|>original/src/incise/layouts/core.clj (ns incise.layouts.core (:refer-clojure :exclude [get])) (def layouts (atom {})) (defn exists? "Check for the existance of a lay...
652eb273968b6ac4442c7f8a51e5c98406d38ada
src/incise/layouts/core.clj
src/incise/layouts/core.clj
Clojure
<|file_sep|>original/lib/labor/helpers.rb module Labor module Helpers def classify(dashed_word) dashed_word.split('-').each { |part| part[0] = part[0].chr.upcase }.join end def constantize(camel_cased_word) camel_cased_word = camel_cased_word.to_s if camel_cased_word.include?('-') ...
module Labor module Helpers def classify(word) word.split(/-_/).each { |part| part[0] = part[0].chr.upcase }.join end def constantize(camel_cased_word) camel_cased_word = camel_cased_word.to_s if camel_cased_word.include?('-') camel_cased_word = classify(camel_cased_word) ...
<|file_sep|>original/lib/labor/helpers.rb module Labor module Helpers def classify(dashed_word) dashed_word.split('-').each { |part| part[0] = part[0].chr.upcase }.join end def constantize(camel_cased_word) camel_cased_word = camel_cased_word.to_s if camel_cased_word.include?('-') ...
7e4dd7ecaa23409c33e5c7cc6442a52f585f5f9c
lib/labor/helpers.rb
lib/labor/helpers.rb
Ruby
<|file_sep|>src/main/java/org/cyclops/cyclopscore/recipe/type/InventoryFluid.java.diff original: updated: import net.minecraft.core.NonNullList; <|file_sep|>src/main/java/org/cyclops/cyclopscore/recipe/type/InventoryFluid.java.diff original: updated: import net.minecraft.world.inventory.AbstractContainerMenu; <|file_...
super(new AbstractContainerMenu(null, 0) { @Override public boolean stillValid(Player playerIn) { return false; } }, itemStacks.size(), 1); int slot = 0; for (ItemStack itemStack : itemStacks) { setItem(slot++, itemStack); ...
<|file_sep|>src/main/java/org/cyclops/cyclopscore/recipe/type/InventoryFluid.java.diff original: updated: import net.minecraft.core.NonNullList; <|file_sep|>src/main/java/org/cyclops/cyclopscore/recipe/type/InventoryFluid.java.diff original: updated: import net.minecraft.world.inventory.AbstractContainerMenu; <|file_...
fffc132f220e49456ed58759e4c13bc57f799b55
src/main/java/org/cyclops/cyclopscore/recipe/type/InventoryFluid.java
src/main/java/org/cyclops/cyclopscore/recipe/type/InventoryFluid.java
Java
<|file_sep|>original/mipt/app/views/teachers/show.html.erb <h2>Teacher Profile Page</h2> <|file_sep|>current/mipt/app/views/teachers/show.html.erb <h2>Teacher Profile Page</h2> <|file_sep|>updated/mipt/app/views/teachers/show.html.erb
<h2>Teacher <%= @teacher.full_name %>'s Courses</h2> <ul> <% @teacher.courses.each do |course| %> <% if course.title == nil %> <% course.title = 'Untitled' %> <% end %> <% if course.description == nil %> <% course.description ='No description' %> <% end %> <li><%= link_to "#{course.t...
<|file_sep|>original/mipt/app/views/teachers/show.html.erb <h2>Teacher Profile Page</h2> <|file_sep|>current/mipt/app/views/teachers/show.html.erb <h2>Teacher Profile Page</h2> <|file_sep|>updated/mipt/app/views/teachers/show.html.erb <h2>Teacher <%= @teacher.full_name %>'s Courses</h2> <ul> <% @teacher.courses.each ...
47a834a14734cdf834860bb8e90c8b4e65db7ba6
mipt/app/views/teachers/show.html.erb
mipt/app/views/teachers/show.html.erb
HTML+ERB
<|file_sep|>original/settings/DownSample.ini <|file_sep|>current/settings/DownSample.ini <|file_sep|>updated/settings/DownSample.ini
INIFILE settings/include/settings.ini PRESTATS no MAPPING yes POSTSTATS no DAMAGE_ESTIMATE no INDEL_REALIGNMENT yes GERMLINE_CALLING no GERMLINE_RERUN no STRELKA yes RUN_STRELKA_MAIN yes AMBER yes AMBER_RERUN no COBALT yes COBALT_RERUN no PURPLE yes STRUCTURAL_VARIANT_CALLING yes
<|file_sep|>original/settings/DownSample.ini <|file_sep|>current/settings/DownSample.ini <|file_sep|>updated/settings/DownSample.ini INIFILE settings/include/settings.ini PRESTATS no MAPPING yes POSTSTATS no DAMAGE_ESTIMATE no INDEL_REALIGNMENT yes GERMLINE_CALLING no GERMLINE_RERUN no STRELKA yes RUN_STRELKA_MAIN...
d67866968e160e33ab689a41b7fe4a1d07f478b4
settings/DownSample.ini
settings/DownSample.ini
INI
<|file_sep|>src/auth/auth.service.ts.diff original: import {KeycloakInstance, KeycloakProfile} from 'keycloak-js'; updated: import {KeycloakInstance, KeycloakLoginOptions, KeycloakProfile} from 'keycloak-js'; <|file_sep|>src/auth/auth.service.ts.diff original: public login(): void { this.keycloak.login(); u...
@Injectable() export class AuthService { keycloak: KeycloakInstance; public login(options?: KeycloakLoginOptions): void { this.keycloak.login(options); } public logout(options?: any): void { this.keycloak.logout(options); } public authenticated(): boolean { return th...
<|file_sep|>src/auth/auth.service.ts.diff original: import {KeycloakInstance, KeycloakProfile} from 'keycloak-js'; updated: import {KeycloakInstance, KeycloakLoginOptions, KeycloakProfile} from 'keycloak-js'; <|file_sep|>src/auth/auth.service.ts.diff original: public login(): void { this.keycloak.login(); u...
ce78b20c89c3e4dc350ea83d9d5b9320a909f23a
src/auth/auth.service.ts
src/auth/auth.service.ts
TypeScript
<|file_sep|>original/ci/release_notes.md <|file_sep|>current/ci/release_notes.md <|file_sep|>updated/ci/release_notes.md
# Bug Fixes * Resolve adaptive merge errors caused by inject operator. If the manifest contains a inject operator, which is injecting another spruce operator (ie grab or vault) that cannot be resolved, the adaptive merge code could not find and resolve this. This has now been handled.
<|file_sep|>original/ci/release_notes.md <|file_sep|>current/ci/release_notes.md <|file_sep|>updated/ci/release_notes.md # Bug Fixes * Resolve adaptive merge errors caused by inject operator. If the manifest contains a inject operator, which is injecting another spruce operator (ie grab or vault) that cannot be...
b1c17059fd454a0bc64db999816e9a404b9fb0bb
ci/release_notes.md
ci/release_notes.md
Markdown
<|file_sep|>original/test/CodeGen/CBackend/2007-01-08-ParamAttr-ICmp.ll ; For PR1099 ; RUN: llvm-as < %s | llc -march=c | \ ; RUN: grep {return ((((llvm_cbe_tmp2 == llvm_cbe_b_0_0_val)) ? (1) : (0)))} target datalayout = "e-p:32:32" target triple = "i686-apple-darwin8" %struct.Connector = type { i16, i16, i8...
; For PR1099 ; RUN: llvm-as < %s | llc -march=c | \ ; RUN: grep {return ((((((unsigned short )llvm_cbe_tmp2&65535U) == ((unsigned short )llvm_cbe_b_0_0_val&65535U))) ? (1) : (0)))} target datalayout = "e-p:32:32" target triple = "i686-apple-darwin8" %struct.Connector = type { i16, i16, i8, i8, %struct.Connec...
<|file_sep|>original/test/CodeGen/CBackend/2007-01-08-ParamAttr-ICmp.ll ; For PR1099 ; RUN: llvm-as < %s | llc -march=c | \ ; RUN: grep {return ((((llvm_cbe_tmp2 == llvm_cbe_b_0_0_val)) ? (1) : (0)))} target datalayout = "e-p:32:32" target triple = "i686-apple-darwin8" %struct.Connector = type { i16, i16, i8...
477e9746bb1c44cb1d28e97b5c1999c846bd9ac9
test/CodeGen/CBackend/2007-01-08-ParamAttr-ICmp.ll
test/CodeGen/CBackend/2007-01-08-ParamAttr-ICmp.ll
LLVM
<|file_sep|>original/t/130-mode/all.do umask 0022 redo mode1 MODE="$(ls -l mode1 | cut -d' ' -f1)" [ "$MODE" = "-rw-r--r--" ] || exit 78 <|file_sep|>current/t/130-mode/all.do umask 0022 redo mode1 MODE="$(ls -l mode1 | cut -d' ' -f1)" [ "$MODE" = "-rw-r--r--" ] || exit 78 <|file_sep|>updated/t/130-mode/all.do
umask 0022 redo mode1 MODE=$(python -c 'import os; print oct(os.stat("mode1").st_mode & 07777)') [ "$MODE" = "0644" ] || exit 78
<|file_sep|>original/t/130-mode/all.do umask 0022 redo mode1 MODE="$(ls -l mode1 | cut -d' ' -f1)" [ "$MODE" = "-rw-r--r--" ] || exit 78 <|file_sep|>current/t/130-mode/all.do umask 0022 redo mode1 MODE="$(ls -l mode1 | cut -d' ' -f1)" [ "$MODE" = "-rw-r--r--" ] || exit 78 <|file_sep|>updated/t/130-mode/all.do umask 0...
1f32d06c4e075439f93ec03f645b00d9750fc595
t/130-mode/all.do
t/130-mode/all.do
Stata
<|file_sep|>app/controllers/concerns/request_helpers.rb.diff original: Github::Uri.new(github_query_params).get updated: Github::Uri.new(github_query_params, 20, params[:page] || 1).get <|file_sep|>original/app/controllers/concerns/request_helpers.rb private def github_query_params Github::Params.new(...
private def github_query_params Github::Params.new(request_params).set end def default_params { followers: '>10', repos: '>10' } end def safe_params params.permit( :first, :fullname, :location, :language, :followers, :repos, :hireable, :remote, :relocate, :fulltim...
<|file_sep|>app/controllers/concerns/request_helpers.rb.diff original: Github::Uri.new(github_query_params).get updated: Github::Uri.new(github_query_params, 20, params[:page] || 1).get <|file_sep|>original/app/controllers/concerns/request_helpers.rb private def github_query_params Github::Params.new(...
35650479e034f891e6ee90954423abef7cc5b68d
app/controllers/concerns/request_helpers.rb
app/controllers/concerns/request_helpers.rb
Ruby
<|file_sep|>original/ngx_task/cli.py <|file_sep|>current/ngx_task/cli.py <|file_sep|>updated/ngx_task/cli.py
import os from concurrent.futures import ThreadPoolExecutor, as_completed from ngx_task import settings, utils def generate_data(): if not os.path.exists(settings.DATA_DIR): os.mkdir(settings.DATA_DIR, 0o755) files_to_submit = ['arc-{}.zip'.format(arc_num) for arc_num in range(1, 51)] with Thre...
<|file_sep|>original/ngx_task/cli.py <|file_sep|>current/ngx_task/cli.py <|file_sep|>updated/ngx_task/cli.py import os from concurrent.futures import ThreadPoolExecutor, as_completed from ngx_task import settings, utils def generate_data(): if not os.path.exists(settings.DATA_DIR): os.mkdir(settings.DA...
ff187730fa1ebd64984dbb6e91a8f04edae84548
ngx_task/cli.py
ngx_task/cli.py
Python
<|file_sep|>src/SFA.DAS.EmployerApprenticeshipsService.Database/Pre-deployment/Script.PreDeployment1.sql.diff original: alter table account.paye drop constraint FK_Paye_LegalEntity updated: IF EXISTS(select 1 from INFORMATION_SCHEMA.TABLE_CONSTRAINTS where CONSTRAINT_NAME = 'FK_Paye_LegalEntity') BEGIN alter table ac...
Example: :r .\myfile.sql Use SQLCMD syntax to reference a variable in the pre-deployment script. Example: :setvar TableName MyTable SELECT * FROM [$(TableName)] -------------------------------------------------------------------------------------- */ --Update for PAYE...
<|file_sep|>src/SFA.DAS.EmployerApprenticeshipsService.Database/Pre-deployment/Script.PreDeployment1.sql.diff original: alter table account.paye drop constraint FK_Paye_LegalEntity updated: IF EXISTS(select 1 from INFORMATION_SCHEMA.TABLE_CONSTRAINTS where CONSTRAINT_NAME = 'FK_Paye_LegalEntity') BEGIN alter table ac...
3854ec889ce63b170ee4508caf41a73878936b18
src/SFA.DAS.EmployerApprenticeshipsService.Database/Pre-deployment/Script.PreDeployment1.sql
src/SFA.DAS.EmployerApprenticeshipsService.Database/Pre-deployment/Script.PreDeployment1.sql
SQL
<|file_sep|>original/tags/index.html <|file_sep|>current/tags/index.html <|file_sep|>updated/tags/index.html
--- layout: post-index title: Tag Archive description: "An archive of posts sorted by tag." comments: false --- {% capture site_tags %}{% for tag in site.tags %}{{ tag | first }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %} {% assign tags_list = site_tags | split:',' | sort %} <ul class="entry...
<|file_sep|>original/tags/index.html <|file_sep|>current/tags/index.html <|file_sep|>updated/tags/index.html --- layout: post-index title: Tag Archive description: "An archive of posts sorted by tag." comments: false --- {% capture site_tags %}{% for tag in site.tags %}{{ tag | first }}{% unless forloop.last %},{% e...
e27872a950896886cddc913d09105ed67950c406
tags/index.html
tags/index.html
HTML
<|file_sep|>app/configureStore.js.diff original: import logger from 'redux-logger' updated: <|file_sep|>original/app/configureStore.js import { createStore, applyMiddleware } from 'redux' import logger from 'redux-logger' import thunk from 'redux-thunk' import oaaChat from './reducers' const configureStore = () => { ...
import { createStore, applyMiddleware } from 'redux' import thunk from 'redux-thunk' import oaaChat from './reducers' const configureStore = () => { const store = createStore( oaaChat, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__(), applyMiddleware(thunk)) return store } export...
<|file_sep|>app/configureStore.js.diff original: import logger from 'redux-logger' updated: <|file_sep|>original/app/configureStore.js import { createStore, applyMiddleware } from 'redux' import logger from 'redux-logger' import thunk from 'redux-thunk' import oaaChat from './reducers' const configureStore = () => { ...
69454caa8503cb7cfa7366d569ed16cd9bf4caa8
app/configureStore.js
app/configureStore.js
JavaScript
<|file_sep|>original/README.markdown A file watching service. ## Purpose Watchman exists to watch files and record when they actually change. It can also trigger actions (such as rebuilding assets) when matching files change. ## Documentation Head on over to https://facebook.github.io/watchman/ ## Build Status [...
Watchman exists to watch files and record when they actually change. It can also trigger actions (such as rebuilding assets) when matching files change. ## Documentation Head on over to https://facebook.github.io/watchman/ ## Build Status [![Build Status](https://travis-ci.org/facebook/watchman.svg?branch=master) ...
<|file_sep|>original/README.markdown A file watching service. ## Purpose Watchman exists to watch files and record when they actually change. It can also trigger actions (such as rebuilding assets) when matching files change. ## Documentation Head on over to https://facebook.github.io/watchman/ ## Build Status [...
65d34c7b723d06339995c625bd7809d95ab67849
README.markdown
README.markdown
Markdown
<|file_sep|>original/config/initializers/secret_token.rb # Be sure to restart your server when you modify this file. # Your secret key for verifying the integrity of signed cookies. # If you change this key, all old signed cookies will become invalid! # Make sure the secret is at least 30 characters and all random, # ...
# Be sure to restart your server when you modify this file. # Your secret key for verifying the integrity of signed cookies. # If you change this key, all old signed cookies will become invalid! # Make sure the secret is at least 30 characters and all random, # no regular words or you'll be exposed to dictionary attac...
<|file_sep|>original/config/initializers/secret_token.rb # Be sure to restart your server when you modify this file. # Your secret key for verifying the integrity of signed cookies. # If you change this key, all old signed cookies will become invalid! # Make sure the secret is at least 30 characters and all random, # ...
bad3f35299358482ba75801f3a54d6246efb2f92
config/initializers/secret_token.rb
config/initializers/secret_token.rb
Ruby
<|file_sep|>lib/yam.js.diff original: var path = require('path'); var merge = require('lodash.merge'); var configUtils = require('./utils/config-utils'); var Config = require('./config'); var getCurrentPath = configUtils.getCurrentPath; var getUserHomeDirectory = configUtils.getUserHomeDirecto...
'use strict'; function Yam(id, options) { if (!id) { throw new Error('You must specify an id.'); } var path = require('path'); var merge = require('lodash.merge'); var Config = require('./config'); var configUtils = require('./utils/config-utils'); var projectPath = configUtils.getCurrentPath(); var ho...
<|file_sep|>lib/yam.js.diff original: var path = require('path'); var merge = require('lodash.merge'); var configUtils = require('./utils/config-utils'); var Config = require('./config'); var getCurrentPath = configUtils.getCurrentPath; var getUserHomeDirectory = configUtils.getUserHomeDirecto...
3510617597f426f181875995244c4f5a3b3039ce
lib/yam.js
lib/yam.js
JavaScript
<|file_sep|>original/app/assets/javascripts/ember_include.js.erb <% if Rails.env.development? || Rails.env.test? require_asset ("ember-template-compiler.js") require_asset ("ember.custom.debug.js") else require_asset ("ember.prod.js") end %> <|file_sep|>current/app/assets/javascripts/ember_include.js.erb <% if Ra...
<% if Rails.env.development? || Rails.env.test? require_asset ("ember-template-compiler.js") require_asset ("ember.custom.debug.js") else require_asset ("ember-template-compiler.js") require_asset ("ember.prod.js") end %>
<|file_sep|>original/app/assets/javascripts/ember_include.js.erb <% if Rails.env.development? || Rails.env.test? require_asset ("ember-template-compiler.js") require_asset ("ember.custom.debug.js") else require_asset ("ember.prod.js") end %> <|file_sep|>current/app/assets/javascripts/ember_include.js.erb <% if Ra...
29631f65f1ae8d78ae61ed1e19e10d2b52b04387
app/assets/javascripts/ember_include.js.erb
app/assets/javascripts/ember_include.js.erb
HTML+ERB
<|file_sep|>original/src/core/fi/laverca/util/SynchHandler.java <|file_sep|>current/src/core/fi/laverca/util/SynchHandler.java <|file_sep|>updated/src/core/fi/laverca/util/SynchHandler.java
/* ========================================== * Laverca Project * https://sourceforge.net/projects/laverca/ * ========================================== * Copyright 2015 Laverca Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
<|file_sep|>original/src/core/fi/laverca/util/SynchHandler.java <|file_sep|>current/src/core/fi/laverca/util/SynchHandler.java <|file_sep|>updated/src/core/fi/laverca/util/SynchHandler.java /* ========================================== * Laverca Project * https://sourceforge.net/projects/laverca/ * ===============...
fac3053d819283da36e6c69e462a5778461f89b7
src/core/fi/laverca/util/SynchHandler.java
src/core/fi/laverca/util/SynchHandler.java
Java
<|file_sep|>original/src/main/kotlin/com/elpassion/intelijidea/task/MFBeforeRunTask.kt package com.elpassion.intelijidea.task import com.elpassion.intelijidea.util.mfFilename import com.intellij.execution.BeforeRunTask import java.io.File import java.io.Serializable class MFBeforeRunTask(var data: MFTaskData) : Befor...
package com.elpassion.intelijidea.task import com.elpassion.intelijidea.util.mfFilename import com.intellij.execution.BeforeRunTask import java.io.File import java.io.Serializable class MFBeforeRunTask(var data: MFTaskData) : BeforeRunTask<MFBeforeRunTask>(MFBeforeRunTaskProvider.ID) { fun isValid() = data.isVal...
<|file_sep|>original/src/main/kotlin/com/elpassion/intelijidea/task/MFBeforeRunTask.kt package com.elpassion.intelijidea.task import com.elpassion.intelijidea.util.mfFilename import com.intellij.execution.BeforeRunTask import java.io.File import java.io.Serializable class MFBeforeRunTask(var data: MFTaskData) : Befor...
b84f83c99c15fe063d40c30ec6e92616c3133034
src/main/kotlin/com/elpassion/intelijidea/task/MFBeforeRunTask.kt
src/main/kotlin/com/elpassion/intelijidea/task/MFBeforeRunTask.kt
Kotlin
<|file_sep|>views/layout.moon.diff original: meta name: "viewport", content:"initial-scale=1" updated: -- meta name: "viewport", content:"initial-scale=1" <|file_sep|>views/layout.moon.diff original: updated: upload: => <|file_sep|>original/views/layout.moon title (@...
@content_for "header" div id: "skrollr-body" main id: "content", -> @content_for "inner" @content_for "footer" print to_json(js) for scrpt in *js with scrpt c...
<|file_sep|>views/layout.moon.diff original: meta name: "viewport", content:"initial-scale=1" updated: -- meta name: "viewport", content:"initial-scale=1" <|file_sep|>views/layout.moon.diff original: updated: upload: => <|file_sep|>original/views/layout.moon title (@...
24f7611f6090a1e212c5eda711ddd9bf7827c2c6
views/layout.moon
views/layout.moon
MoonScript
<|file_sep|>support/packagecloud_upload.sh.diff original: if [ "${PACKAGECLOUD_OS}" == "el" ]; then OS[1]="scientific" OS[2]="ol" updated: if [[ "${PACKAGECLOUD_OS}" =~ "el/" ]]; then OS[1]="${OS[0]/el/scientific}" OS[2]="${OS[0]/el/ol}" <|file_sep|>support/packagecloud_upload.sh.diff original: updated...
# - We set LC_ALL below because package_cloud is picky about the locale export LC_ALL='en_US.UTF-8' PACKAGECLOUD_USER=$1 PACKAGECLOUD_REPO=$2 PACKAGECLOUD_OS=$3 declare -A OS OS[0]="${PACKAGECLOUD_OS}" if [[ "${PACKAGECLOUD_OS}" =~ "el/" ]]; then OS[1]="${OS[0]/el/scientific}" OS[2]="${OS[0]/el/ol}" fi for ...
<|file_sep|>support/packagecloud_upload.sh.diff original: if [ "${PACKAGECLOUD_OS}" == "el" ]; then OS[1]="scientific" OS[2]="ol" updated: if [[ "${PACKAGECLOUD_OS}" =~ "el/" ]]; then OS[1]="${OS[0]/el/scientific}" OS[2]="${OS[0]/el/ol}" <|file_sep|>support/packagecloud_upload.sh.diff original: updated...
c8681995f7a7107a1cc52b4ed5ffe3f0ca325bda
support/packagecloud_upload.sh
support/packagecloud_upload.sh
Shell
<|file_sep|>original/docs/manual/inputs/make_deployment_directories.sh # go home first cd ~/ # create the deployment dir mkdir deployment cd deployment/ # fill it with the directories we need mkdir run tmp logs static profiles # create the procer profile dirs for each thing cd profiles/ mkdir chat mp3stream handlert...
# go home first cd ~/ # create the deployment dir mkdir deployment cd deployment/ # fill it with the directories we need mkdir run tmp logs static profiles # Note: On some systems zeromq needs access to /proc from # the chroot - on Linux this command should do it (make # sure you mount it at boot time as well): ## m...
<|file_sep|>original/docs/manual/inputs/make_deployment_directories.sh # go home first cd ~/ # create the deployment dir mkdir deployment cd deployment/ # fill it with the directories we need mkdir run tmp logs static profiles # create the procer profile dirs for each thing cd profiles/ mkdir chat mp3stream handlert...
e5c8e17706f8c42943a9d14fe766939798c54cf1
docs/manual/inputs/make_deployment_directories.sh
docs/manual/inputs/make_deployment_directories.sh
Shell
<|file_sep|>original/src/interface/index.ts export { default as Icon } from './Icon'; export { default as SpellLink } from './SpellLink'; export { default as SpellIcon } from './SpellIcon'; export { default as ItemLink } from './ItemLink'; export { default as ItemIcon } from './ItemIcon'; export { default as ResourceLi...
export { default as Icon } from './Icon'; export { default as ConduitLink } from './ConduitLink'; export { default as SpellLink } from './SpellLink'; export { default as SpellIcon } from './SpellIcon'; export { default as ItemLink } from './ItemLink'; export { default as ItemIcon } from './ItemIcon'; export { default a...
<|file_sep|>original/src/interface/index.ts export { default as Icon } from './Icon'; export { default as SpellLink } from './SpellLink'; export { default as SpellIcon } from './SpellIcon'; export { default as ItemLink } from './ItemLink'; export { default as ItemIcon } from './ItemIcon'; export { default as ResourceLi...
42a2ca8381247bc6654822068a833ef73fcc79ca
src/interface/index.ts
src/interface/index.ts
TypeScript
<|file_sep|>original/utils/db.js const dbHost = process.env.DB_HOST || 'localhost' const dbName = process.env.DB_NAME || 'muffin' // Connect to DB using the credentials set in the ".env" file mongoose.connect('mongodb://' + dbHost + '/' + dbName, { user: process.env.DB_USER, pass: process.env.DB_PASSWORD }) cons...
const dbHost = process.env.DB_HOST || 'localhost' const dbName = process.env.DB_NAME || 'muffin' // Connect to DB using the credentials set in the ".env" file mongoose.connect('mongodb://' + dbHost + '/' + dbName, { user: process.env.DB_USER, pass: process.env.DB_PASSWORD }) mongoose.Promise = require('es6-promi...
<|file_sep|>original/utils/db.js const dbHost = process.env.DB_HOST || 'localhost' const dbName = process.env.DB_NAME || 'muffin' // Connect to DB using the credentials set in the ".env" file mongoose.connect('mongodb://' + dbHost + '/' + dbName, { user: process.env.DB_USER, pass: process.env.DB_PASSWORD }) cons...
676d1f0571f7df6fd587651c5367e6968bf08e09
utils/db.js
utils/db.js
JavaScript
<|file_sep|>original/dev-requirements.txt coverage==4.4.1 jedi==0.11.0 mypy==0.540 pylint==1.7.4 pytest==3.2.3 pytest-cov==2.5.1 sphinx==1.6.5 sphinx-rtd-theme==0.2.4 tox==2.9.1 <|file_sep|>current/dev-requirements.txt coverage==4.4.1 jedi==0.11.0 mypy==0.540 pylint==1.7.4 pytest==3.2.3 pytest-cov==2.5.1 sphinx==1.6.5 ...
coverage==4.4.1 jedi==0.11.0 mypy==0.540 pylint==1.7.4 pytest==3.3.1 pytest-cov==2.5.1 sphinx==1.6.5 sphinx-rtd-theme==0.2.4 tox==2.9.1
<|file_sep|>original/dev-requirements.txt coverage==4.4.1 jedi==0.11.0 mypy==0.540 pylint==1.7.4 pytest==3.2.3 pytest-cov==2.5.1 sphinx==1.6.5 sphinx-rtd-theme==0.2.4 tox==2.9.1 <|file_sep|>current/dev-requirements.txt coverage==4.4.1 jedi==0.11.0 mypy==0.540 pylint==1.7.4 pytest==3.2.3 pytest-cov==2.5.1 sphinx==1.6.5 ...
6920d76d58563fd488d8fc056b795b342bd9d260
dev-requirements.txt
dev-requirements.txt
Text
<|file_sep|>setup.sql.diff original: updated: id INTEGER PRIMARY KEY, <|file_sep|>original/setup.sql drop table if exists reminders; create table reminders ( phonenumber varchar(100), event_id int, done boolean, time varchar(14) ); drop table if exists calls; create table calls ( caller_id varchar(100),...
drop table if exists reminders; create table reminders ( id INTEGER PRIMARY KEY, phonenumber varchar(100), event_id int, done boolean, time varchar(14) ); drop table if exists calls; create table calls ( id INTEGER PRIMARY KEY, caller_id varchar(100), time varchar(14) );
<|file_sep|>setup.sql.diff original: updated: id INTEGER PRIMARY KEY, <|file_sep|>original/setup.sql drop table if exists reminders; create table reminders ( phonenumber varchar(100), event_id int, done boolean, time varchar(14) ); drop table if exists calls; create table calls ( caller_id varchar(100),...
26dc549daf81836406a905bf552e1cece06abfbb
setup.sql
setup.sql
SQL
<|file_sep|>original/lib/commands/deploy.js { name: 'activate', type: Boolean } ], run: function(commandOptions, rawArgs) { commandOptions.deployTarget = rawArgs.shift(); process.env.DEPLOY_TARGET = commandOptions.deployTarget; var DeployTask = require('../tasks/deploy'); var deploy = new Depl...
{ name: 'activate', type: Boolean } ], run: function(commandOptions, rawArgs) { commandOptions.deployTarget = rawArgs.shift(); process.env.DEPLOY_TARGET = commandOptions.deployTarget; var DeployTask = require('../tasks/deploy'); var deploy = new DeployTask({ project: this.project, ...
<|file_sep|>original/lib/commands/deploy.js { name: 'activate', type: Boolean } ], run: function(commandOptions, rawArgs) { commandOptions.deployTarget = rawArgs.shift(); process.env.DEPLOY_TARGET = commandOptions.deployTarget; var DeployTask = require('../tasks/deploy'); var deploy = new Depl...
4eed909c34e01b005d29bce64c4a11b7b94bb5a4
lib/commands/deploy.js
lib/commands/deploy.js
JavaScript
<|file_sep|>original/spec/controllers/dashboard_controller_spec.rb require 'spec_helper' describe DashboardController do describe 'GET #show' do it 'renders the :show template' do login_user build_stubbed(:user) get :show expect(response).to be_success expect(response).to render_templat...
require 'spec_helper' describe DashboardController do describe 'GET #show' do context 'when user is not signed in' do it 'redirects to sign in url' do get :show expect(response).to redirect_to signin_path end end it 'renders the :show template' do login_user build_stub...
<|file_sep|>original/spec/controllers/dashboard_controller_spec.rb require 'spec_helper' describe DashboardController do describe 'GET #show' do it 'renders the :show template' do login_user build_stubbed(:user) get :show expect(response).to be_success expect(response).to render_templat...
9e6cd1c59a7baf432dcf44870e65cca7f5df1031
spec/controllers/dashboard_controller_spec.rb
spec/controllers/dashboard_controller_spec.rb
Ruby
<|file_sep|>original/lib/tasks/courses_wikis.rake # frozen_string_literal: true namespace :courses_wikis do desc 'Creates CoursesWikis association for existing courses through revisions' task migrate: :environment do Rails.logger.debug 'Creating CoursesWikis associations' Course.all.each do |course| ...
# frozen_string_literal: true namespace :courses_wikis do desc 'Creates CoursesWikis association for existing courses through revisions' task migrate: :environment do Rails.logger.debug 'Creating CoursesWikis associations' Course.all.each do |course| course.update(wikis: Wiki.find(course.wiki_ids)) ...
<|file_sep|>original/lib/tasks/courses_wikis.rake # frozen_string_literal: true namespace :courses_wikis do desc 'Creates CoursesWikis association for existing courses through revisions' task migrate: :environment do Rails.logger.debug 'Creating CoursesWikis associations' Course.all.each do |course| ...
7348a8895bc50db3a1b96e1c6e6091ca1df43365
lib/tasks/courses_wikis.rake
lib/tasks/courses_wikis.rake
Ruby
<|file_sep|>original/contact.html --- title: Contact layout: contact summary: Contact Aylestone Allotment and Leisure Gardener's Society. --- To contact AALGS, please use the form below to contact the Secretary: {% comment %}Forms provided by formspree.io{% endcomment %} <form action="//formspree.io/newsletter@aylest...
--- title: Contact layout: contact summary: Contact Aylestone Allotment and Leisure Gardener's Society. --- To contact AALGS, please use the form below to contact the Secretary: {% comment %}Forms provided by formspree.io{% endcomment %} <form action="//formspree.io/newsletter@aylestoneallotments.co.uk" method="POST"...
<|file_sep|>original/contact.html --- title: Contact layout: contact summary: Contact Aylestone Allotment and Leisure Gardener's Society. --- To contact AALGS, please use the form below to contact the Secretary: {% comment %}Forms provided by formspree.io{% endcomment %} <form action="//formspree.io/newsletter@aylest...
93f37606cfe77637eec2e37fcf3ad158495be631
contact.html
contact.html
HTML
<|file_sep|>original/test/CodeGenCXX/debug-info-method.cpp // RUN: %clang_cc1 -emit-llvm -std=c++11 -g %s -o - | FileCheck %s // CHECK: metadata !"_ZN1A3fooEiS_3$_0", {{.*}}, i32 258 // CHECK: ""{{.*}}DW_TAG_arg_variable // CHECK: ""{{.*}}DW_TAG_arg_variable // CHECK: ""{{.*}}DW_TAG_arg_variable union { int a; floa...
// RUN: %clang_cc1 -emit-llvm -std=c++11 -g %s -o - | FileCheck %s // CHECK: metadata !"_ZN1A3fooEiS_3$_0", {{.*}} [protected] // CHECK: ""{{.*}}DW_TAG_arg_variable // CHECK: ""{{.*}}DW_TAG_arg_variable // CHECK: ""{{.*}}DW_TAG_arg_variable union { int a; float b; } u; class A { protected: void foo(int, A, declt...
<|file_sep|>original/test/CodeGenCXX/debug-info-method.cpp // RUN: %clang_cc1 -emit-llvm -std=c++11 -g %s -o - | FileCheck %s // CHECK: metadata !"_ZN1A3fooEiS_3$_0", {{.*}}, i32 258 // CHECK: ""{{.*}}DW_TAG_arg_variable // CHECK: ""{{.*}}DW_TAG_arg_variable // CHECK: ""{{.*}}DW_TAG_arg_variable union { int a; floa...
6b6bd10d3025b978b8c345926db4b84cd916dee3
test/CodeGenCXX/debug-info-method.cpp
test/CodeGenCXX/debug-info-method.cpp
C++
<|file_sep|>original/index.js key: config.accessKeyId, secret: config.secretAccessKey, bucket: config.bucket }); // Don't waste bytes on an extra header. app.disable('x-powered-by'); // Helpful vendor middleware. app.use(express.compress()); app.use(express.bodyParser()); app.use(express.methodOverride()); // ...
key: config.accessKeyId, secret: config.secretAccessKey, bucket: config.bucket }); // Don't waste bytes on an extra header. app.disable('x-powered-by'); // Helpful vendor middleware. app.use(express.compress()); app.use(express.urlencoded()); app.use(express.json()); app.use(express.methodOverride()); // Enabl...
<|file_sep|>original/index.js key: config.accessKeyId, secret: config.secretAccessKey, bucket: config.bucket }); // Don't waste bytes on an extra header. app.disable('x-powered-by'); // Helpful vendor middleware. app.use(express.compress()); app.use(express.bodyParser()); app.use(express.methodOverride()); // ...
d26945e785f8b98776ff8e0c0e0bc6ecdf5fc81d
index.js
index.js
JavaScript
<|file_sep|>DND/src/edu/teco/dnd/network/messages/Response.java.diff original: updated: import com.google.gson.annotations.SerializedName; <|file_sep|>original/DND/src/edu/teco/dnd/network/messages/Response.java * A Message that is sent as a Response for another Message. * * @author Philipp Adolf */ public abstra...
/** * A Message that is sent as a Response for another Message. * * @author Philipp Adolf */ public abstract class Response extends Message { /** * The UUID of the Message this is a response to. */ @SerializedName("sourceuuid") private final UUID sourceUUID; /** * Initializes a new Response. * * @...
<|file_sep|>DND/src/edu/teco/dnd/network/messages/Response.java.diff original: updated: import com.google.gson.annotations.SerializedName; <|file_sep|>original/DND/src/edu/teco/dnd/network/messages/Response.java * A Message that is sent as a Response for another Message. * * @author Philipp Adolf */ public abstra...
d6943b39ba8a0759728711a578ae1362212f1b49
DND/src/edu/teco/dnd/network/messages/Response.java
DND/src/edu/teco/dnd/network/messages/Response.java
Java
<|file_sep|>config/smtp.rb.diff original: password: ENV.fetch("SENDGRID_PASSWORD"), updated: password: ENV.fetch("SENDGRID_API_KEY"), <|file_sep|>original/config/smtp.rb SMTP_SETTINGS = { address: ENV.fetch("SMTP_ADDRESS"), # example: "smtp.sendgrid.net" authentication: :plain, domain: ENV.fetch("SMTP_DOMAIN"...
SMTP_SETTINGS = { address: ENV.fetch("SMTP_ADDRESS"), # example: "smtp.sendgrid.net" authentication: :plain, domain: ENV.fetch("SMTP_DOMAIN"), # example: "this-app.com" enable_starttls_auto: true, password: ENV.fetch("SENDGRID_API_KEY"), port: "587", user_name: "apikey" }
<|file_sep|>config/smtp.rb.diff original: password: ENV.fetch("SENDGRID_PASSWORD"), updated: password: ENV.fetch("SENDGRID_API_KEY"), <|file_sep|>original/config/smtp.rb SMTP_SETTINGS = { address: ENV.fetch("SMTP_ADDRESS"), # example: "smtp.sendgrid.net" authentication: :plain, domain: ENV.fetch("SMTP_DOMAIN"...
f13a66829892f012c73fbd4649e13d227f5ba1fe
config/smtp.rb
config/smtp.rb
Ruby
<|file_sep|>core/src/main/scala/hex/ModelUtils.scala.diff original: updated: import water.util.ArrayUtils <|file_sep|>original/core/src/main/scala/hex/ModelUtils.scala * See the License for the specific language governing permissions and * limitations under the License. */ package hex import hex.Model.Output /** *...
package hex import hex.Model.Output import water.util.ArrayUtils /** * Helper class to access package-private methods of Model API. */ object ModelUtils { def classify(row: Array[Double], m : Model[_, _, _]): (String, Array[Double]) = { val modelOutput = m._output.asInstanceOf[Output] val nclasses = mod...
<|file_sep|>core/src/main/scala/hex/ModelUtils.scala.diff original: updated: import water.util.ArrayUtils <|file_sep|>original/core/src/main/scala/hex/ModelUtils.scala * See the License for the specific language governing permissions and * limitations under the License. */ package hex import hex.Model.Output /** *...
aa7e4090a39d574b919ce858358cf6d75b00c778
core/src/main/scala/hex/ModelUtils.scala
core/src/main/scala/hex/ModelUtils.scala
Scala
<|file_sep|>original/components/sqListing.php public static function image($value) { return '<img src="'.$value.'"/>'; } // Truncates text in listing public static function blurb($value) { return view::truncate($value, 50); } // Returns value formatted as currency public static function currency($price) ...
// Returns value formatted as currency public static function currency($price) { return '&#36;'.$price; } // Returns value as a link public static function link($url) { return '<a href="'.$url.'">'.$url.'</a>'; } // Displays model as a list of items public static function list($model) { if ($model->...
<|file_sep|>original/components/sqListing.php public static function image($value) { return '<img src="'.$value.'"/>'; } // Truncates text in listing public static function blurb($value) { return view::truncate($value, 50); } // Returns value formatted as currency public static function currency($price) ...
b8d5d185e029dfddf93fbe0a1bfb3cfe563cd5a3
components/sqListing.php
components/sqListing.php
PHP
<|file_sep|>original/layouts/partials/contribute.html <div class="row"> <div class="contribute"> <i class="icon-fork"></i><p> If you want to be added to this page please open a new <a //href="https://github.com/spf13/hugoThemes/issues">issue</a> with a link to your GitHub repo.</p> <p><small>Last built: ...
<div class="row"> <div class="contribute"> <i class="icon-fork"></i><p> If you want to be added to this page please open a new <a //href="https://github.com/spf13/hugoThemes/issues">issue</a> with a link to your GitHub repo.</p> <p><small>Last built: {{ now.Format "Mon Jan 2 2006 15:04" }}</small></p> ...
<|file_sep|>original/layouts/partials/contribute.html <div class="row"> <div class="contribute"> <i class="icon-fork"></i><p> If you want to be added to this page please open a new <a //href="https://github.com/spf13/hugoThemes/issues">issue</a> with a link to your GitHub repo.</p> <p><small>Last built: ...
e45d4c595df0d9adf68a5e8810c4e0efa8e646e5
layouts/partials/contribute.html
layouts/partials/contribute.html
HTML
<|file_sep|>original/extractor/README.md A simple and fast C++ implementation of a SCFG grammar extractor using suffix arrays. The implementation is described in this [paper](https://ufal.mff.cuni.cz/pbml/102/art-baltescu-blunsom.pdf). The original cython extractor is described in [Adam Lopez](http://www.cs.jhu.edu/~al...
A simple and fast C++ implementation of a SCFG grammar extractor using suffix arrays. The implementation is described in this [paper](https://ufal.mff.cuni.cz/pbml/102/art-baltescu-blunsom.pdf). The original cython extractor is described in [Adam Lopez](http://www.cs.jhu.edu/~alopez/)'s PhD [thesis](http://www.cs.jhu.e...
<|file_sep|>original/extractor/README.md A simple and fast C++ implementation of a SCFG grammar extractor using suffix arrays. The implementation is described in this [paper](https://ufal.mff.cuni.cz/pbml/102/art-baltescu-blunsom.pdf). The original cython extractor is described in [Adam Lopez](http://www.cs.jhu.edu/~al...
53ab488ed99daecd726dfb2abce4cc278f09706f
extractor/README.md
extractor/README.md
Markdown
<|file_sep|>original/vendor/grrr-amsterdam/garp3/library/Garp/Cli/Command/Models.php */ public function migrateGarpModels() { $modelDir = APPLICATION_PATH . '/modules/default/Model'; $dirIterator = new DirectoryIterator($modelDir); foreach ($dirIterator as $finfo) { if ($finfo->isDot()) { continue; ...
*/ public function migrateGarpModels() { $modelDir = APPLICATION_PATH . '/modules/default/Model'; $dirIterator = new DirectoryIterator($modelDir); foreach ($dirIterator as $finfo) { if ($finfo->isDot()) { continue; } $this->_modifyModelFile($finfo); } $this->_updateCropTemplateRefs(); } /...
<|file_sep|>original/vendor/grrr-amsterdam/garp3/library/Garp/Cli/Command/Models.php */ public function migrateGarpModels() { $modelDir = APPLICATION_PATH . '/modules/default/Model'; $dirIterator = new DirectoryIterator($modelDir); foreach ($dirIterator as $finfo) { if ($finfo->isDot()) { continue; ...
da7db975e2747bc6c46b47bfadb793dadaeb338f
vendor/grrr-amsterdam/garp3/library/Garp/Cli/Command/Models.php
vendor/grrr-amsterdam/garp3/library/Garp/Cli/Command/Models.php
PHP
<|file_sep|>original/source/partials/case-studies/creators-school/2015/_gallery.slim .Panel .u-defaultThenLargeMargin .ContentFormatter.ContentFormatter--center .cs-Gallery - %w(america html jobs programadores zuckerberg ironman trabalho ruby).each do |name| .cs-Gallery-cell img.cs-Galle...
.Panel .u-defaultThenLargeMargin .ContentFormatter.ContentFormatter--centerHorizontally .cs-Gallery - %w(america html jobs programadores zuckerberg ironman trabalho ruby).each do |name| .cs-Gallery-cell img.cs-Gallery-image( src="#{image_path("case-studies/creators-school/gal...
<|file_sep|>original/source/partials/case-studies/creators-school/2015/_gallery.slim .Panel .u-defaultThenLargeMargin .ContentFormatter.ContentFormatter--center .cs-Gallery - %w(america html jobs programadores zuckerberg ironman trabalho ruby).each do |name| .cs-Gallery-cell img.cs-Galle...
f40923c4fdb4635d090fe427629389b0ee45c497
source/partials/case-studies/creators-school/2015/_gallery.slim
source/partials/case-studies/creators-school/2015/_gallery.slim
Slim
<|file_sep|>completions/cd.fish.diff original: set -l base (echo $token | sed -e 's@^\(.*\)/[^/]*$@\1/@') updated: set -l base (echo $token | rev | cut -d/ -s -f2- | rev ) test -n $base; and set -l base $base/ <|file_sep|>original/completions/cd.fish function __fish_complete_plugin_cd -d "Completions for th...
set -l last_two_char (echo $token | sed 's/.*\(..\)/\1/') if test "$last_two_char" = ".." echo "$token/" else set -l base (echo $token | rev | cut -d/ -s -f2- | rev ) test -n $base; and set -l base $base/ set -l resolved_path (echo $token | sed -e 's@^\.$@:@;s@^\.\([^\.]\)@:\1@g;s@\([^\.]\)\.$@\1:...
<|file_sep|>completions/cd.fish.diff original: set -l base (echo $token | sed -e 's@^\(.*\)/[^/]*$@\1/@') updated: set -l base (echo $token | rev | cut -d/ -s -f2- | rev ) test -n $base; and set -l base $base/ <|file_sep|>original/completions/cd.fish function __fish_complete_plugin_cd -d "Completions for th...
20111b0cdb4600620bb9f2d8e06d329d4b4c4e79
completions/cd.fish
completions/cd.fish
fish
<|file_sep|>packages/go/gotta-go-fast.yaml.diff original: hash: d229ed1a88fb8a419c3a30750abaa7b5653ae9eb97e6e10e793516f902c623e4 updated: hash: 7c2e6f83a7d8fe8f9a0a94ee9edf8046c7b6dc8aa2f20bd2b2957e9c5f505156 <|file_sep|>packages/go/gotta-go-fast.yaml.diff original: updated: text: -any <|file_sep|>packages/go/gotta-...
base: ! '>=4.9 && <4.11' time: -any text: -any vty: -any word-wrap: ! '>=0.4.1' cmdargs: -any random: -any brick: ! '>=0.21' directory: -any all-versions: - '0.1.2.0' - '0.1.3.0' - '0.1.3.1' - '0.1.4.0' author: Callum Oakley latest: '0.1.4.0' description-type: haddock description: A command line utili...
<|file_sep|>packages/go/gotta-go-fast.yaml.diff original: hash: d229ed1a88fb8a419c3a30750abaa7b5653ae9eb97e6e10e793516f902c623e4 updated: hash: 7c2e6f83a7d8fe8f9a0a94ee9edf8046c7b6dc8aa2f20bd2b2957e9c5f505156 <|file_sep|>packages/go/gotta-go-fast.yaml.diff original: updated: text: -any <|file_sep|>packages/go/gotta-...
b2bf28d23b117ca97272fa91e7ef8f4c49683759
packages/go/gotta-go-fast.yaml
packages/go/gotta-go-fast.yaml
YAML
<|file_sep|>original/src/test/java/com/skraylabs/poker/model/InvalidCardFormatExceptionTest.java InvalidCardFormatException exception = new InvalidCardFormatException(); // Verify String message = exception.getMessage(); String invalidString = exception.getInvalidString(); assertThat(message, equalT...
// Exercise InvalidCardFormatException exception = new InvalidCardFormatException("5x"); // Verify String message = exception.getMessage(); String invalidString = exception.getInvalidString(); String expectedMessage = String.format(InvalidCardFormatException.MSG_WITH_INVALID_STRING, "5x"...
<|file_sep|>original/src/test/java/com/skraylabs/poker/model/InvalidCardFormatExceptionTest.java InvalidCardFormatException exception = new InvalidCardFormatException(); // Verify String message = exception.getMessage(); String invalidString = exception.getInvalidString(); assertThat(message, equalT...
17ed0b2c2ba12788f2fe3db3bf10ee381a4fe637
src/test/java/com/skraylabs/poker/model/InvalidCardFormatExceptionTest.java
src/test/java/com/skraylabs/poker/model/InvalidCardFormatExceptionTest.java
Java
<|file_sep|>original/microauth.ini <|file_sep|>current/microauth.ini <|file_sep|>updated/microauth.ini
[program:microauth] command=gunicorn microauth.wsgi:application --bind localhost:8080 directory=/var/microauth autostart=true autorestart=true startretries=3
<|file_sep|>original/microauth.ini <|file_sep|>current/microauth.ini <|file_sep|>updated/microauth.ini [program:microauth] command=gunicorn microauth.wsgi:application --bind localhost:8080 directory=/var/microauth autostart=true autorestart=true startretries=3
8da4c5e9b2977034bea1e1f94ff44891542d2081
microauth.ini
microauth.ini
INI
<|file_sep|>src/vuex/store.js.diff original: // Have to wait for DOM to be updated before scrolling Vue.nextTick(() => { document.getElementById("output").lastChild.scrollIntoView(); updated: }, enterCommand({ commit, state }, text) { commit("ADD_MESSAGE", { entity: state.playe...
commit("SET_PLAYER_NAME", name); }, addMessage({ commit }, data) { commit("ADD_MESSAGE", data); }, enterCommand({ commit, state }, text) { commit("ADD_MESSAGE", { entity: state.playerName, message: text }); commit("SET_INPUT_TEXT", ""); console.log(`Pa...
<|file_sep|>src/vuex/store.js.diff original: // Have to wait for DOM to be updated before scrolling Vue.nextTick(() => { document.getElementById("output").lastChild.scrollIntoView(); updated: }, enterCommand({ commit, state }, text) { commit("ADD_MESSAGE", { entity: state.playe...
794f4a7dd02aa68760d25ba382d246baaf462e2c
src/vuex/store.js
src/vuex/store.js
JavaScript
<|file_sep|>original/.blade.yml plugins: sauce_labs: tunnel_timeout: 120 browsers: Google Chrome: os: Mac, Windows version: -2 Firefox: os: Mac, Windows version: -2 Safari: platform: Mac version: -3 Microsoft Edge: version: -2 ...
plugins: sauce_labs: tunnel_timeout: 120 browsers: Google Chrome: os: Mac, Windows version: -2 Firefox: os: Mac, Windows version: -2 Safari: platform: Mac version: -3 Microsoft Edge: version: -2 Internet Explorer: ve...
<|file_sep|>original/.blade.yml plugins: sauce_labs: tunnel_timeout: 120 browsers: Google Chrome: os: Mac, Windows version: -2 Firefox: os: Mac, Windows version: -2 Safari: platform: Mac version: -3 Microsoft Edge: version: -2 ...
dfeb5616f9d9facfd41c1e0138fd27f96bd4529b
.blade.yml
.blade.yml
YAML
<|file_sep|>lib/scoreboard_renderer.rb.diff original: def javascript_include_tag(*sources) options = sources.extract_options!.merge(debug: false) super(*sources, options) end def stylesheet_link_tag(*sources) options = sources.extract_options!.merge(debug: false) super(*sources, opt...
module ScoreboardRendererHelper def debug_assets false end def user_signed_in? false end end helper ScoreboardRendererHelper skip_forgery_protection class << self def assigns { archiving: true, can_edit_scores: false, maneuvers: Maneuver.order(:...
<|file_sep|>lib/scoreboard_renderer.rb.diff original: def javascript_include_tag(*sources) options = sources.extract_options!.merge(debug: false) super(*sources, options) end def stylesheet_link_tag(*sources) options = sources.extract_options!.merge(debug: false) super(*sources, opt...
3998bcef74c3ce5e9342cc5f005f56d8359549d7
lib/scoreboard_renderer.rb
lib/scoreboard_renderer.rb
Ruby
<|file_sep|>original/src/Web/WebMonolithic/eShopWeb/wwwroot/css/catalog/pager.css <|file_sep|>current/src/Web/WebMonolithic/eShopWeb/wwwroot/css/catalog/pager.css <|file_sep|>updated/src/Web/WebMonolithic/eShopWeb/wwwroot/css/catalog/pager.css
.esh-pager-wrapper { padding-top: 1rem; text-align: center; } .esh-pager-item { margin: 0 5vw; } .esh-pager-item--navigable { display: inline-block; cursor: pointer; } .esh-pager-item--navigable.is-disabled { opacity: 0; pointer-events: none; } .esh-pager-item--naviga...
<|file_sep|>original/src/Web/WebMonolithic/eShopWeb/wwwroot/css/catalog/pager.css <|file_sep|>current/src/Web/WebMonolithic/eShopWeb/wwwroot/css/catalog/pager.css <|file_sep|>updated/src/Web/WebMonolithic/eShopWeb/wwwroot/css/catalog/pager.css .esh-pager-wrapper { padding-top: 1rem; text-align: center; } .es...
10ea5f74c9ed3b7e9062a07cbc714b28aa135cc3
src/Web/WebMonolithic/eShopWeb/wwwroot/css/catalog/pager.css
src/Web/WebMonolithic/eShopWeb/wwwroot/css/catalog/pager.css
CSS
<|file_sep|>lib/all_supporters.rb.diff original: updated: TOTAL_NEEDED = 219 <|file_sep|>original/lib/all_supporters.rb def initialize set_default_attributes set_supporter_counts end def set_default_attributes self.short_title = 'All Supporters' self.chamber_size= 535 self.needed_cospons...
TOTAL_NEEDED = 219 def initialize set_default_attributes set_supporter_counts end def set_default_attributes self.short_title = 'All Supporters' self.chamber_size= 535 self.needed_cosponsor_count = TOTAL_NEEDED-Legislator.current_supporters.count self.congressional_session = 114 end ...
<|file_sep|>lib/all_supporters.rb.diff original: updated: TOTAL_NEEDED = 219 <|file_sep|>original/lib/all_supporters.rb def initialize set_default_attributes set_supporter_counts end def set_default_attributes self.short_title = 'All Supporters' self.chamber_size= 535 self.needed_cospons...
8b94c7e5f5f1b9329ee5dcf21a97035d4549cc56
lib/all_supporters.rb
lib/all_supporters.rb
Ruby
<|file_sep|>original/Sources/Request/Header.swift <|file_sep|>current/Sources/Request/Header.swift <|file_sep|>updated/Sources/Request/Header.swift
import Foundation struct Header { static let acceptEncoding: String = "gzip;q=1.0, compress;q=0.5" static var acceptLanguage: String { return NSLocale.preferredLanguages().prefix(6).enumerate().map { index, languageCode in let quality = 1.0 - (Double(index) * 0.1) return "\(languageCode);q=\(...
<|file_sep|>original/Sources/Request/Header.swift <|file_sep|>current/Sources/Request/Header.swift <|file_sep|>updated/Sources/Request/Header.swift import Foundation struct Header { static let acceptEncoding: String = "gzip;q=1.0, compress;q=0.5" static var acceptLanguage: String { return NSLocale.pref...
0ade1a9f5abbacdb287c7a788cd8c9ff8c058bf3
Sources/Request/Header.swift
Sources/Request/Header.swift
Swift