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|>phpcs-validate.sh.diff original: updated: <|file_sep|>original/phpcs-validate.sh if [ $REPORT == "diff" ]; then echo "1. creating patch '${PATCH_FILE}' ..." vendor/bin/phpcs --report=$REPORT --standard=$CS --sniffs=$CS.$SNIFF $TEST_DATA_FILE > $PATCH_FILE echo "2. applying patch '${PATCH_FILE}' ......
if [ $REPORT == "diff" ]; then echo "1. creating patch '${PATCH_FILE}' ..." vendor/bin/phpcs --report=$REPORT --standard=$CS --sniffs=$CS.$SNIFF $TEST_DATA_FILE > $PATCH_FILE echo "2. applying patch '${PATCH_FILE}' ..." patch -p0 -ui $PATCH_FILE FILES=`ls $TEST_DATA_FILE` echo "3. creating fixed files for each...
<|file_sep|>phpcs-validate.sh.diff original: updated: <|file_sep|>original/phpcs-validate.sh if [ $REPORT == "diff" ]; then echo "1. creating patch '${PATCH_FILE}' ..." vendor/bin/phpcs --report=$REPORT --standard=$CS --sniffs=$CS.$SNIFF $TEST_DATA_FILE > $PATCH_FILE echo "2. applying patch '${PATCH_FILE}' ......
9401e7aa1a461b4603f3eac6ee94a189af4020cb
phpcs-validate.sh
phpcs-validate.sh
Shell
<|file_sep|>original/trending_python.py <|file_sep|>current/trending_python.py <|file_sep|>updated/trending_python.py
#!/usr/bin/env python3 import bs4 import requests url = 'https://github.com/trending?l=Python' soup = bs4.BeautifulSoup(requests.get(url).content, 'lxml') # or 'html5lib' repos = soup.find('ol', class_="repo-list").find_all('a', href=True) repos = (r.text.strip().replace(' ', '') for r in repos if '/' in r.text) pri...
<|file_sep|>original/trending_python.py <|file_sep|>current/trending_python.py <|file_sep|>updated/trending_python.py #!/usr/bin/env python3 import bs4 import requests url = 'https://github.com/trending?l=Python' soup = bs4.BeautifulSoup(requests.get(url).content, 'lxml') # or 'html5lib' repos = soup.find('ol', cl...
ec6dff24e3049ddaab392f0bc5b8d8b724e41e20
trending_python.py
trending_python.py
Python
<|file_sep|>lib/rehearsal/configuration.rb.diff original: updated: initialize_from_hidden_file! <|file_sep|>original/lib/rehearsal/configuration.rb module Rehearsal class Configuration attr_accessor :auth_envs, :banner_envs, :enabled def initialize @auth_envs ||= [:staging] @banner_envs...
module Rehearsal class Configuration attr_accessor :auth_envs, :banner_envs, :enabled def initialize initialize_from_hidden_file! @auth_envs ||= [:staging] @banner_envs ||= [:staging] @enabled = true if enabled.nil? end private def initialize_from_hidden_file! ...
<|file_sep|>lib/rehearsal/configuration.rb.diff original: updated: initialize_from_hidden_file! <|file_sep|>original/lib/rehearsal/configuration.rb module Rehearsal class Configuration attr_accessor :auth_envs, :banner_envs, :enabled def initialize @auth_envs ||= [:staging] @banner_envs...
91abf56ffaa1b4a18555d8b4a43b19e9c5bfaad8
lib/rehearsal/configuration.rb
lib/rehearsal/configuration.rb
Ruby
<|file_sep|>sample/src/main/java/com/github/pedrovgs/sample/MainActivity.java.diff original: * Copyright (C) 2014 Pedro Vicente Gomez Sanchez. updated: * Copyright (C) 2015 Pedro Vicente Gomez Sanchez. <|file_sep|>original/sample/src/main/java/com/github/pedrovgs/sample/MainActivity.java * You may obtain a copy of t...
* You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See th...
<|file_sep|>sample/src/main/java/com/github/pedrovgs/sample/MainActivity.java.diff original: * Copyright (C) 2014 Pedro Vicente Gomez Sanchez. updated: * Copyright (C) 2015 Pedro Vicente Gomez Sanchez. <|file_sep|>original/sample/src/main/java/com/github/pedrovgs/sample/MainActivity.java * You may obtain a copy of t...
f6b2601d5c56c424aec0757f57194799b4e49841
sample/src/main/java/com/github/pedrovgs/sample/MainActivity.java
sample/src/main/java/com/github/pedrovgs/sample/MainActivity.java
Java
<|file_sep|>original/.travis.yml language: ruby sudo: false cache: bundler bundler_args: --without tools benchmarks script: - bundle exec rake spec rvm: - 2.0 - 2.1 - 2.2 - rbx-2 - jruby-9000 - ruby-head - jruby-head env: global: - JRUBY_OPTS='--dev -J-Xmx1024M' matrix: allow_failures: - rvm...
language: ruby sudo: false cache: bundler bundler_args: --without tools benchmarks script: - bundle exec rake spec rvm: - 2.0 - 2.1 - 2.2 - 2.3.0 - rbx-2 - jruby-9000 - ruby-head - jruby-head env: global: - JRUBY_OPTS='--dev -J-Xmx1024M' matrix: allow_failures: - rvm: ruby-head
<|file_sep|>original/.travis.yml language: ruby sudo: false cache: bundler bundler_args: --without tools benchmarks script: - bundle exec rake spec rvm: - 2.0 - 2.1 - 2.2 - rbx-2 - jruby-9000 - ruby-head - jruby-head env: global: - JRUBY_OPTS='--dev -J-Xmx1024M' matrix: allow_failures: - rvm...
32f732de1dbefa2624090c8bda2b716468ddcce9
.travis.yml
.travis.yml
YAML
<|file_sep|>original/guides/rules/no-attrs-snapshot.md # No `attrs` snapshots In 2.0.0, [`didRecieveAttrs`](https://guides.emberjs.com/v2.9.0/components/the-component-lifecycle/#toc_formatting-component-attributes-with-code-didreceiveattrs-code) and [`didUpdateAttrs`](https://guides.emberjs.com/v2.9.0/components/the-c...
# No `attrs` snapshots In 2.0.0, [`didReceiveAttrs`](https://guides.emberjs.com/v2.9.0/components/the-component-lifecycle/#toc_formatting-component-attributes-with-code-didreceiveattrs-code) and [`didUpdateAttrs`](https://guides.emberjs.com/v2.9.0/components/the-component-lifecycle/#toc_resetting-presentation-state-on...
<|file_sep|>original/guides/rules/no-attrs-snapshot.md # No `attrs` snapshots In 2.0.0, [`didRecieveAttrs`](https://guides.emberjs.com/v2.9.0/components/the-component-lifecycle/#toc_formatting-component-attributes-with-code-didreceiveattrs-code) and [`didUpdateAttrs`](https://guides.emberjs.com/v2.9.0/components/the-c...
9b12f7dea78ccc6baa17a52c04dd78d59e27bd8e
guides/rules/no-attrs-snapshot.md
guides/rules/no-attrs-snapshot.md
Markdown
<|file_sep|>original/gradle/wrapper/gradle-wrapper.properties distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists <|file_sep|>current/gradle/wrapper/gradle-wrapper.properti...
distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions-snapshots/gradle-7.0-20210417083524+0000-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists
<|file_sep|>original/gradle/wrapper/gradle-wrapper.properties distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists <|file_sep|>current/gradle/wrapper/gradle-wrapper.properti...
971cf837589dd8edb81fd59aef0571d89bcf6406
gradle/wrapper/gradle-wrapper.properties
gradle/wrapper/gradle-wrapper.properties
INI
<|file_sep|>original/db/migrate/20110902203823_add_allowed_children_cache_to_pages.rb class AddAllowedChildrenCacheToPages < ActiveRecord::Migration def self.up add_column :pages, :allowed_children_cache, :string, :default => '' Page.reset_column_information Page.find_each do |page| page.save # upda...
class AddAllowedChildrenCacheToPages < ActiveRecord::Migration def self.up add_column :pages, :allowed_children_cache, :string, :limit => 1500, :default => '' Page.reset_column_information Page.find_each do |page| page.save # update the allowed_children_cache end end def self.down remov...
<|file_sep|>original/db/migrate/20110902203823_add_allowed_children_cache_to_pages.rb class AddAllowedChildrenCacheToPages < ActiveRecord::Migration def self.up add_column :pages, :allowed_children_cache, :string, :default => '' Page.reset_column_information Page.find_each do |page| page.save # upda...
4404fb317722357840a744ede5bea7bdeaf1bc35
db/migrate/20110902203823_add_allowed_children_cache_to_pages.rb
db/migrate/20110902203823_add_allowed_children_cache_to_pages.rb
Ruby
<|file_sep|>original/work/login-aws.sh <|file_sep|>current/work/login-aws.sh <|file_sep|>updated/work/login-aws.sh
#!/bin/bash set -eu totp_code="$( pass show misc/totp-codes | jq -r -c '.[] | select( .name == "Point: Amazon Web Services" ) | .secret' | oathtool --base32 --totp - )" echo "Logging in... (TOTP code $totp_code)" "$HOME/git/point-tools/scripts/aws-get-session-token.sh" point "$totp_code"
<|file_sep|>original/work/login-aws.sh <|file_sep|>current/work/login-aws.sh <|file_sep|>updated/work/login-aws.sh #!/bin/bash set -eu totp_code="$( pass show misc/totp-codes | jq -r -c '.[] | select( .name == "Point: Amazon Web Services" ) | .secret' | oathtool --base32 --totp - )" echo "Logging in... (TOTP cod...
67fac4a4d892868ee64df6221fccf36ec7e9f073
work/login-aws.sh
work/login-aws.sh
Shell
<|file_sep|>compute/stackdriver/README.md.diff original: sudo apt-get update && sudo apt-get install git-core openjdk-8-jdk maven updated: `sudo apt-get update && sudo apt-get install git-core openjdk-8-jdk maven` <|file_sep|>compute/stackdriver/README.md.diff original: updated: ```xml <|file_sep|>compute/...
1. Create /etc/google-fluentd/config.d/forward.conf and add ```xml <source> type forward port 24224 </source> ``` 1. Restart the logging agent `sudo service google-fluentd restart` 1. Clone the repo `git clone https://github.com/GoogleCloudPlatform/java-docs-samples.git` 1. Navigate ...
<|file_sep|>compute/stackdriver/README.md.diff original: sudo apt-get update && sudo apt-get install git-core openjdk-8-jdk maven updated: `sudo apt-get update && sudo apt-get install git-core openjdk-8-jdk maven` <|file_sep|>compute/stackdriver/README.md.diff original: updated: ```xml <|file_sep|>compute/...
b27752a8cb617d2d37c265a2f522d59e98981e0f
compute/stackdriver/README.md
compute/stackdriver/README.md
Markdown
<|file_sep|>spec/lib/gakubuchi_spec.rb.diff original: Gakubuchi.configure do |config| updated: described_class.configure do |config| <|file_sep|>original/spec/lib/gakubuchi_spec.rb let(:expected_attrs) do { leave_digest_named_templates: true, template_directory: "foo" } e...
let(:expected_attrs) do { leave_digest_named_templates: true, template_directory: "foo" } end before do described_class.configure do |config| config.leave_digest_named_templates = expected_attrs[:leave_digest_named_templates] config.template_directory = exp...
<|file_sep|>spec/lib/gakubuchi_spec.rb.diff original: Gakubuchi.configure do |config| updated: described_class.configure do |config| <|file_sep|>original/spec/lib/gakubuchi_spec.rb let(:expected_attrs) do { leave_digest_named_templates: true, template_directory: "foo" } e...
1157639e8845e03c56938179aaf776af1c5e49cb
spec/lib/gakubuchi_spec.rb
spec/lib/gakubuchi_spec.rb
Ruby
<|file_sep|>original/src/main/groovy/org/rackspace/gdeproxy/HandlerContext.groovy package org.rackspace.gdeproxy class HandlerContext { // boolean requestWasChunked; // boolean sendChunkedResponse = false; boolean sendDefaultResponseHeaders = false; } <|file_sep|>current/src/main/groovy/org/rackspace/gdepr...
package org.rackspace.gdeproxy class HandlerContext { // boolean requestWasChunked; // boolean sendChunkedResponse = false; boolean sendDefaultResponseHeaders = true; }
<|file_sep|>original/src/main/groovy/org/rackspace/gdeproxy/HandlerContext.groovy package org.rackspace.gdeproxy class HandlerContext { // boolean requestWasChunked; // boolean sendChunkedResponse = false; boolean sendDefaultResponseHeaders = false; } <|file_sep|>current/src/main/groovy/org/rackspace/gdepr...
ed3b1c2532f7d6c972536c0ce80e287f5e623128
src/main/groovy/org/rackspace/gdeproxy/HandlerContext.groovy
src/main/groovy/org/rackspace/gdeproxy/HandlerContext.groovy
Groovy
<|file_sep|>original/.travis.yml language: python python: - "2.7" install: - pip install -r requirements.txt - npm install script: - npm run apidocs after_success: - npm run apidocs-deploy <|file_sep|>current/.travis.yml language: python python: - "2.7" install: - pip install -r requir...
language: python python: - "2.7" install: - pip install -r requirements.txt - npm install script: - npm run apidocs deploy: provider: script script: npm run apidocs-deploy on: branch: master
<|file_sep|>original/.travis.yml language: python python: - "2.7" install: - pip install -r requirements.txt - npm install script: - npm run apidocs after_success: - npm run apidocs-deploy <|file_sep|>current/.travis.yml language: python python: - "2.7" install: - pip install -r requir...
03e353783c01b8542a2364dcc865ec7cb9d7e408
.travis.yml
.travis.yml
YAML
<|file_sep|>views/partials/search-filter-modal.html.diff original: <div class="aria-modal-footer" data-modal-footer> updated: <div class="aria-modal-footer"> <|file_sep|>original/views/partials/search-filter-modal.html <div id="search-filter-modal" data-modal> <div class="aria-modal-document" data-modal-docum...
<div id="search-filter-modal" data-modal> <div class="aria-modal-document" data-modal-document> <div class="aria-modal-content" data-modal-content> <h2>Search Filters</h2> <!-- content to be inserted via JS before opening modal --> {{> search-filter-list type=type}} </div> <div class="ar...
<|file_sep|>views/partials/search-filter-modal.html.diff original: <div class="aria-modal-footer" data-modal-footer> updated: <div class="aria-modal-footer"> <|file_sep|>original/views/partials/search-filter-modal.html <div id="search-filter-modal" data-modal> <div class="aria-modal-document" data-modal-docum...
dd730726ca698bde18d69b8b0ae8fd2f2f638ce2
views/partials/search-filter-modal.html
views/partials/search-filter-modal.html
HTML
<|file_sep|>original/index.php /** POST fields required by the URL above. See relevant docs as above **/ $postfields = array( 'screen_name' => 'usernameToBlock', 'skip_status' => '1' ); /** Perform a POST request and echo the response **/ $twitter = new TwitterAPIExchange($settings); echo $twitter->buildOauth...
/** POST fields required by the URL above. See relevant docs as above **/ $postfields = array( 'screen_name' => 'usernameToBlock', 'skip_status' => '1' ); /** Perform a POST request and echo the response **/ $twitter = new TwitterAPIExchange($settings); echo $twitter->buildOauth($url, $requestMethod) ...
<|file_sep|>original/index.php /** POST fields required by the URL above. See relevant docs as above **/ $postfields = array( 'screen_name' => 'usernameToBlock', 'skip_status' => '1' ); /** Perform a POST request and echo the response **/ $twitter = new TwitterAPIExchange($settings); echo $twitter->buildOauth...
dda6fd99d7ccb003eaa27527a33713f8dc3d4e84
index.php
index.php
PHP
<|file_sep|>original/.travis.yml dist: xenial language: python python: - 2.7 - 3.4 - 3.5 - 3.6 - 3.7 - 3.8 - 3.9-dev - pypy2.7-6.0 - pypy3.5 install: - pip install tox-travis script: - tox stages: - lint <|file_sep|>current/.travis.yml dist: xenial language: python python: - 2.7 - 3.4 - 3.5 - 3.6 - 3.7 - 3.8 - 3.9-...
dist: xenial language: python python: - 2.7 - 3.5 - 3.6 - 3.7 - 3.8 - 3.9-dev - pypy2.7-6.0 - pypy3.5 install: - pip install tox-travis script: - tox stages: - lint - test
<|file_sep|>original/.travis.yml dist: xenial language: python python: - 2.7 - 3.4 - 3.5 - 3.6 - 3.7 - 3.8 - 3.9-dev - pypy2.7-6.0 - pypy3.5 install: - pip install tox-travis script: - tox stages: - lint <|file_sep|>current/.travis.yml dist: xenial language: python python: - 2.7 - 3.4 - 3.5 - 3.6 - 3.7 - 3.8 - 3.9-...
5abece033be2b91c4e2c1103ba041504fc7fab0a
.travis.yml
.travis.yml
YAML
<|file_sep|>original/package.json "url": "http://github.com/cmfatih" }, "contributors": [], "main": "./app/memcing.js", "scripts": { "start": "node app/memcing.js -i -listen-http localhost:12080", "test": "node node_modules/mocha/bin/mocha --reporter spec test/test-cache.js test/test-rest.js" }, ...
}, "contributors": [], "main": "./app/memcing.js", "scripts": { "start": "node app/memcing.js -i -listen-http localhost:12080", "test": "node node_modules/mocha/bin/mocha --reporter spec test/test-cache.js test/test-rest.js" }, "engines": [ "node >= 0.10.21" ], "dependencies": { "utilex"...
<|file_sep|>original/package.json "url": "http://github.com/cmfatih" }, "contributors": [], "main": "./app/memcing.js", "scripts": { "start": "node app/memcing.js -i -listen-http localhost:12080", "test": "node node_modules/mocha/bin/mocha --reporter spec test/test-cache.js test/test-rest.js" }, ...
033325b1ea99b22ad9c2b8006831a974586ab596
package.json
package.json
JSON
<|file_sep|>original/style.js // enforce lowercase kebab case for filenames // we have had issues in the past with case sensitivity & module resolution // https://github.com/selaux/eslint-plugin-filenames "filenames/match-regex": ["error", "^[a-z\-\.]+$"], // don't concatenate strings like a n00b // http:...
// enforce lowercase kebab case for filenames // we have had issues in the past with case sensitivity & module resolution // https://github.com/selaux/eslint-plugin-filenames "filenames/match-regex": ["error", "^[a-z\-\.]+$"], // don't concatenate strings like a n00b // http://eslint.org/docs/rules/prefer...
<|file_sep|>original/style.js // enforce lowercase kebab case for filenames // we have had issues in the past with case sensitivity & module resolution // https://github.com/selaux/eslint-plugin-filenames "filenames/match-regex": ["error", "^[a-z\-\.]+$"], // don't concatenate strings like a n00b // http:...
7cfc6ee461d82c5ccc60d59d07daf99c392eb860
style.js
style.js
JavaScript
<|file_sep|>original/USAGE-SCRIPT.md <|file_sep|>current/USAGE-SCRIPT.md <|file_sep|>updated/USAGE-SCRIPT.md
``` python ptolemy.py -i <csv_file_path> -i | --in : indicates option to provide device information in the form of a CSV. It's a mandatory argument. The program currently supports only device information in form of a CSV. Other optional parameters that can be specified are:- -u | --user : This parameter can be used f...
<|file_sep|>original/USAGE-SCRIPT.md <|file_sep|>current/USAGE-SCRIPT.md <|file_sep|>updated/USAGE-SCRIPT.md ``` python ptolemy.py -i <csv_file_path> -i | --in : indicates option to provide device information in the form of a CSV. It's a mandatory argument. The program currently supports only device information in f...
7cf9697b8b610b1126e210019bfaecdda2977e86
USAGE-SCRIPT.md
USAGE-SCRIPT.md
Markdown
<|file_sep|>.travis.yml.diff original: - 2.3.8 - 2.4.5 - 2.5.5 - 2.6.3 updated: - 2.4.9 - 2.5.7 - 2.6.5 - 2.7.0 <|file_sep|>original/.travis.yml language: ruby sudo: false cache: bundler rvm: - 2.3.8 - 2.4.5 - 2.5.5 - 2.6.3 gemfile: - Gemfile - gemfiles/activesupport-5.0.gemfile - gemfiles...
language: ruby sudo: false cache: bundler rvm: - 2.4.9 - 2.5.7 - 2.6.5 - 2.7.0 gemfile: - Gemfile - gemfiles/activesupport-5.0.gemfile - gemfiles/activesupport-5.1.gemfile - gemfiles/activesupport-6.0.gemfile before_script: - gem update --system matrix: exclude: - gemfile: gemfiles/activesupport...
<|file_sep|>.travis.yml.diff original: - 2.3.8 - 2.4.5 - 2.5.5 - 2.6.3 updated: - 2.4.9 - 2.5.7 - 2.6.5 - 2.7.0 <|file_sep|>original/.travis.yml language: ruby sudo: false cache: bundler rvm: - 2.3.8 - 2.4.5 - 2.5.5 - 2.6.3 gemfile: - Gemfile - gemfiles/activesupport-5.0.gemfile - gemfiles...
707483fd33f63d7e20bce920e2d594247ee60581
.travis.yml
.travis.yml
YAML
<|file_sep|>original/axes/__init__.py __version__ = '2.0.0' def get_version(): return __version__ <|file_sep|>current/axes/__init__.py __version__ = '2.0.0' def get_version(): return __version__ <|file_sep|>updated/axes/__init__.py
__version__ = '2.0.0' default_app_config = "axes.apps.AppConfig" def get_version(): return __version__
<|file_sep|>original/axes/__init__.py __version__ = '2.0.0' def get_version(): return __version__ <|file_sep|>current/axes/__init__.py __version__ = '2.0.0' def get_version(): return __version__ <|file_sep|>updated/axes/__init__.py __version__ = '2.0.0' default_app_config = "axes.apps.AppConfig" def get_...
8f011917dc991165e2ae10b492bd3713a30f4126
axes/__init__.py
axes/__init__.py
Python
<|file_sep|>original/README.md # Taiga Front # ![Kaleidos Project](http://kaleidos.net/static/img/badge.png "Kaleidos Project") ## Setup initial environment ## Install requirements: **Ruby / Sass** You can install Ruby through the apt package manager, rbenv, or rvm. Install Sass through your **Terminal or Command ...
# Taiga Front # ![Kaleidos Project](http://kaleidos.net/static/img/badge.png "Kaleidos Project") If you have any doubts or any questions related to taiga's software, you can use this [Mailing List](http://groups.google.com/d/forum/taigaio). ## Setup initial environment ## Install requirements: **Ruby / Sass** You...
<|file_sep|>original/README.md # Taiga Front # ![Kaleidos Project](http://kaleidos.net/static/img/badge.png "Kaleidos Project") ## Setup initial environment ## Install requirements: **Ruby / Sass** You can install Ruby through the apt package manager, rbenv, or rvm. Install Sass through your **Terminal or Command ...
f4cd56e66d3f5780a8991168c1a686512e32a949
README.md
README.md
Markdown
<|file_sep|>original/app/views/layouts/ci/_nav_dashboard.html.haml = icon('caret-square-o-left fw') %span Back to GitLab %li.separate-item = nav_link path: 'projects#index' do = link_to ci_root_path do %i.fa.fa-home %span Projects - if current_user && current_user.is_ad...
= icon('caret-square-o-left fw') %span Back to GitLab %li.separate-item = nav_link path: 'projects#index' do = link_to ci_root_path do %i.fa.fa-home %span Projects - if current_user && current_user.is_admin? %li = link_to ci_admin_projects_path do %i.f...
<|file_sep|>original/app/views/layouts/ci/_nav_dashboard.html.haml = icon('caret-square-o-left fw') %span Back to GitLab %li.separate-item = nav_link path: 'projects#index' do = link_to ci_root_path do %i.fa.fa-home %span Projects - if current_user && current_user.is_ad...
89fee0e35e56ca0bc47877b567c4a6d39d060fd5
app/views/layouts/ci/_nav_dashboard.html.haml
app/views/layouts/ci/_nav_dashboard.html.haml
Haml
<|file_sep|>CONTRIBUTING.md.diff original: Pull requests are greatly appreciated and are what makes opensource great. Here's a quick guide: updated: We'd love to accept your patches and contributions to this project. Pull requests are part of what makes open source great. There are just a few small guidelines you need ...
- Maintain the same code style as the rest of the project. - Remove trailing whitespace. Many editors will do this automatically. - Ensure any new files have [a trailing newline](https://stackoverflow.com/questions/5813311/no-newline-at-end-of-file) ## How to speed the merging of pull requests * Describe your change...
<|file_sep|>CONTRIBUTING.md.diff original: Pull requests are greatly appreciated and are what makes opensource great. Here's a quick guide: updated: We'd love to accept your patches and contributions to this project. Pull requests are part of what makes open source great. There are just a few small guidelines you need ...
c3dbe077ba68e5b847ea3669ca73265fac9302d6
CONTRIBUTING.md
CONTRIBUTING.md
Markdown
<|file_sep|>original/src/tasks/UploadTask.ts constructor(config : Config, srcPath : string, destPath : string, progress : boolean = false) { super(config); this.srcPath = srcPath; this.destPath = destPath; this.progress = progress; } public describe() : string { return 'Uploading ' + this.s...
protected destPath : string; protected progress : boolean; constructor(config : Config, srcPath : string, destPath : string, progress : boolean = false) { super(config); this.srcPath = srcPath; this.destPath = destPath; this.progress = progress; } public describe() : string { return 'Up...
<|file_sep|>original/src/tasks/UploadTask.ts constructor(config : Config, srcPath : string, destPath : string, progress : boolean = false) { super(config); this.srcPath = srcPath; this.destPath = destPath; this.progress = progress; } public describe() : string { return 'Uploading ' + this.s...
c7804cba05b6533f49677493a81499767eb74da8
src/tasks/UploadTask.ts
src/tasks/UploadTask.ts
TypeScript
<|file_sep|>original/README.md [![Build Status](https://travis-ci.org/hexjelly/node-elma.svg?branch=master)](https://travis-ci.org/hexjelly/node-elma) [![Inline docs](http://inch-ci.org/github/hexjelly/node-elma.svg?branch=master)](http://inch-ci.org/github/hexjelly/node-elma) [![Coverage Status](https://coveralls.io/r...
[![Build Status](https://travis-ci.org/elmadev/node-elma.svg?branch=master)](https://travis-ci.org/elmadev/node-elma) [![Inline docs](http://inch-ci.org/github/elmadev/node-elma.svg?branch=master)](http://inch-ci.org/github/elmadev/node-elma) [![Coverage Status](https://coveralls.io/repos/github/elmadev/node-elma/badge...
<|file_sep|>original/README.md [![Build Status](https://travis-ci.org/hexjelly/node-elma.svg?branch=master)](https://travis-ci.org/hexjelly/node-elma) [![Inline docs](http://inch-ci.org/github/hexjelly/node-elma.svg?branch=master)](http://inch-ci.org/github/hexjelly/node-elma) [![Coverage Status](https://coveralls.io/r...
7bb27432aa4fd280201921b7f321d51e3bfc07db
README.md
README.md
Markdown
<|file_sep|>original/spec/spec_helper.rb require 'stripe_mock' require 'stripe_mock/server' # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and its subdirectories. Dir["./spec/support/**/*.rb"].each {|f| require f} RSpec.configure do |c| if c.filter_manager.inclusions.keys...
require 'stripe_mock' require 'stripe_mock/server' # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and its subdirectories. Dir["./spec/support/**/*.rb"].each {|f| require f} RSpec.configure do |c| if c.filter_manager.inclusions.keys.include?(:live) puts "Running **live...
<|file_sep|>original/spec/spec_helper.rb require 'stripe_mock' require 'stripe_mock/server' # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and its subdirectories. Dir["./spec/support/**/*.rb"].each {|f| require f} RSpec.configure do |c| if c.filter_manager.inclusions.keys...
f51d06ea4fdd31449f06127f4a448886a36c2041
spec/spec_helper.rb
spec/spec_helper.rb
Ruby
<|file_sep|>original/src/java/voldemort/server/VoldemortJsvcDaemon.java <|file_sep|>current/src/java/voldemort/server/VoldemortJsvcDaemon.java <|file_sep|>updated/src/java/voldemort/server/VoldemortJsvcDaemon.java
package voldemort.server; import static voldemort.utils.Utils.croak; import org.apache.log4j.Logger; /** * Daemon class for use with the jsvc wrapper. * <p> * Simple example usage: * <p> * * <pre> * jsvc -pidfile ./voldemort.pid voldemort.server.VoldemortDaemon * </pre> * <p> * The above assumes that JAV...
<|file_sep|>original/src/java/voldemort/server/VoldemortJsvcDaemon.java <|file_sep|>current/src/java/voldemort/server/VoldemortJsvcDaemon.java <|file_sep|>updated/src/java/voldemort/server/VoldemortJsvcDaemon.java package voldemort.server; import static voldemort.utils.Utils.croak; import org.apache.log4j.Logger; ...
d0706a964d2d8e85285fdd18e0531cfae8efba97
src/java/voldemort/server/VoldemortJsvcDaemon.java
src/java/voldemort/server/VoldemortJsvcDaemon.java
Java
<|file_sep|>src/deep-core/test/Generic/ObjectVector.js.diff original: var testProto = () => { updated: var TestProto = () => { <|file_sep|>src/deep-core/test/Generic/ObjectVector.js.diff original: let firstItemToAdd = new testProto(); updated: let firstItemToAdd = new TestProto(); <|file_sep|>original/src/deep-...
import chai from 'chai'; import {ObjectVector} from '../../lib.compiled/Generic/ObjectVector'; suite('Generic/ObjectVector', function() { var TestProto = () => { return 'test'; }; let firstItemToAdd = new TestProto(); firstItemToAdd.testData = 'firstItemToAdd'; let secondItemToAdd = new TestProto(); s...
<|file_sep|>src/deep-core/test/Generic/ObjectVector.js.diff original: var testProto = () => { updated: var TestProto = () => { <|file_sep|>src/deep-core/test/Generic/ObjectVector.js.diff original: let firstItemToAdd = new testProto(); updated: let firstItemToAdd = new TestProto(); <|file_sep|>original/src/deep-...
df4ecfe0f90a6ae5faa3e9dfec1120b4ac45e917
src/deep-core/test/Generic/ObjectVector.js
src/deep-core/test/Generic/ObjectVector.js
JavaScript
<|file_sep|>original/.travis.yml language: objective-c script: - xctool test -project FBTweak.xcodeproj -scheme FBTweak -sdk iphonesimulator8.1 -destination "platform=iOS Simulator,OS=8.1,name=iPhone 6" - xctool archive -workspace FBTweakExample.xcworkspace -scheme FBTweakExample CODE_SIGN_IDENTITY="-" <|file_sep|...
language: objective-c script: - xctool test -project FBTweak.xcodeproj -scheme FBTweak -sdk iphonesimulator8.1 -destination "platform=iOS Simulator,OS=8.1,name=iPhone 6" - xctool archive -workspace FBTweakExample.xcworkspace -scheme FBTweakExample CODE_SIGNING_REQUIRED=NO
<|file_sep|>original/.travis.yml language: objective-c script: - xctool test -project FBTweak.xcodeproj -scheme FBTweak -sdk iphonesimulator8.1 -destination "platform=iOS Simulator,OS=8.1,name=iPhone 6" - xctool archive -workspace FBTweakExample.xcworkspace -scheme FBTweakExample CODE_SIGN_IDENTITY="-" <|file_sep|...
2ed8f9866aa096e1d410529511e7dd333fc8408d
.travis.yml
.travis.yml
YAML
<|file_sep|>.travis.yml.diff original: - 7 updated: - 7.0 - 7.1 <|file_sep|>original/.travis.yml language: php php: - 5.3 - 5.4 - 5.5 - 5.6 - 7 - hhvm script: phpunit --coverage-text tests <|file_sep|>current/.travis.yml language: php php: - 5.3 - 5.4 - 5.5 - 5.6 - 7.0 - 7.1 - hhvm s...
language: php php: - 5.3 - 5.4 - 5.5 - 5.6 - 7.0 - 7.1 - hhvm - nightly script: phpunit --coverage-text tests
<|file_sep|>.travis.yml.diff original: - 7 updated: - 7.0 - 7.1 <|file_sep|>original/.travis.yml language: php php: - 5.3 - 5.4 - 5.5 - 5.6 - 7 - hhvm script: phpunit --coverage-text tests <|file_sep|>current/.travis.yml language: php php: - 5.3 - 5.4 - 5.5 - 5.6 - 7.0 - 7.1 - hhvm s...
404f147aa750a6cc5be1d3cdabc5356e1f1caba3
.travis.yml
.travis.yml
YAML
<|file_sep|>docs/11-decorators.md.diff original: updated: To use decorator support without Draper, your decorator must support a variety of collection methods to support pagination, filtering, etc. See [this github issue discussion](https://github.com/activeadmin/activeadmin/issues/3600) and [this gem](https://github...
## Example usage ```ruby # app/models/post.rb class Post < ActiveRecord::Base # has title, content, and image_url end # app/decorators/post_decorator.rb class PostDecorator < Draper::Decorator delegate_all def image h.image_tag model.image_url end end # app/admin/post.rb ActiveAdmin.register Post do ...
<|file_sep|>docs/11-decorators.md.diff original: updated: To use decorator support without Draper, your decorator must support a variety of collection methods to support pagination, filtering, etc. See [this github issue discussion](https://github.com/activeadmin/activeadmin/issues/3600) and [this gem](https://github...
5b3a2c619b260bb23843491d0b9520e42d9699b1
docs/11-decorators.md
docs/11-decorators.md
Markdown
<|file_sep|>original/social/accounts/__init__.py """Import and register all account types.""" from abc import ABC, abstractmethod class Account(ABC): @abstractmethod def __init__(self, *breadcrumbs): """ Return an Account object corresponding to the breadcrumbs. This should only be ...
"""Import and register all account types.""" from abc import ABC, abstractmethod __all__ = ['github'] class Account(ABC): @abstractmethod def __init__(self, *breadcrumbs): """ Return an Account object corresponding to the breadcrumbs. This should only be called if "match" returned ...
<|file_sep|>original/social/accounts/__init__.py """Import and register all account types.""" from abc import ABC, abstractmethod class Account(ABC): @abstractmethod def __init__(self, *breadcrumbs): """ Return an Account object corresponding to the breadcrumbs. This should only be ...
cf94fb86cab2fc892b762b66b760a80ed268e8b3
social/accounts/__init__.py
social/accounts/__init__.py
Python
<|file_sep|>original/.travis.yml language: java jdk: - openjdk6 - openjdk7 - oraclejdk7 install: - gem install bundler - bundle install script: buildr clean package <|file_sep|>current/.travis.yml language: java jdk: - openjdk6 - openjdk7 - oraclejdk7 install: - gem install bundler - bundle install ...
language: java jdk: - openjdk6 - openjdk7 - oraclejdk7 install: - gem install bundler - bundle install script: buildr clean package git: depth: 10
<|file_sep|>original/.travis.yml language: java jdk: - openjdk6 - openjdk7 - oraclejdk7 install: - gem install bundler - bundle install script: buildr clean package <|file_sep|>current/.travis.yml language: java jdk: - openjdk6 - openjdk7 - oraclejdk7 install: - gem install bundler - bundle install ...
d5c35dfbc4494843002cf5024084345322c96699
.travis.yml
.travis.yml
YAML
<|file_sep|>original/TestSuite/Bugs/Bug_0099/Tests.lisp (test-directories ".") (test ("Bug 0099 : Extra 'let' in generated proof obligation" :show "MinusOb#MinusProof" :output ";;; Elaborating proof-term at $TESTDIR/MinusOb#MinusProof ;;; Elaborating obligator at $TESTDIR/MinusOb#ONat ;; ensure-directories-e...
(test-directories ".") (test ("Bug 0099 : Extra 'let' in generated proof obligation" :show "MinusOb#MinusProof" :output '( ";;; Elaborating proof-term at $TESTDIR/MinusOb#MinusProof" ";;; Elaborating obligator at $TESTDIR/MinusOb#ONat" " Expanded spec file: $TESTDIR/Snark/MinusOb/MinusProof...
<|file_sep|>original/TestSuite/Bugs/Bug_0099/Tests.lisp (test-directories ".") (test ("Bug 0099 : Extra 'let' in generated proof obligation" :show "MinusOb#MinusProof" :output ";;; Elaborating proof-term at $TESTDIR/MinusOb#MinusProof ;;; Elaborating obligator at $TESTDIR/MinusOb#ONat ;; ensure-directories-e...
d8eb2a33fd008c74e379bb6ddd19fd506819c47b
TestSuite/Bugs/Bug_0099/Tests.lisp
TestSuite/Bugs/Bug_0099/Tests.lisp
Common Lisp
<|file_sep|>original/README.md # NVUIGradientButton A beautiful customizable iOS button with gradient. ![A screenshot rendering NVUIGradient buttons](/nverinaud/NVUIGradientButton/raw/master/images/screen.png) ## Requirements * You can use ARC or not, this library supports both ## Usage * Add `lib/NVUIGradientBut...
# NVUIGradientButton A beautiful customizable iOS button with gradient. ![A screenshot rendering NVUIGradient buttons](https://raw.github.com/nverinaud/NVUIGradientButton/master/images/screen.png) ## Requirements * You can use ARC or not, this library supports both ## Usage * Add `lib/NVUIGradientButton.{h|m}` to...
<|file_sep|>original/README.md # NVUIGradientButton A beautiful customizable iOS button with gradient. ![A screenshot rendering NVUIGradient buttons](/nverinaud/NVUIGradientButton/raw/master/images/screen.png) ## Requirements * You can use ARC or not, this library supports both ## Usage * Add `lib/NVUIGradientBut...
b019b3bb6e08881423c6c2fe0671aa55aaf89731
README.md
README.md
Markdown
<|file_sep|>original/.travis.yml language: objective-c osx_image: xcode6.4 cache: cocoapods sudo: false before_install: - gem install --no-ri --no-rdoc cocoapods xcpretty script: - set -o pipefail; xcodebuild -workspace *.xcworkspace -scheme "Hamcrest OSX" build test | xcpretty -c - set -o pipefail; xcodebuild ...
language: objective-c osx_image: xcode6.4 sudo: false before_install: - gem install --no-ri --no-rdoc cocoapods xcpretty script: - set -o pipefail; xcodebuild -workspace *.xcworkspace -scheme "Hamcrest OSX" build test | xcpretty -c - set -o pipefail; xcodebuild -workspace *.xcworkspace -scheme "Hamcrest iOS" bu...
<|file_sep|>original/.travis.yml language: objective-c osx_image: xcode6.4 cache: cocoapods sudo: false before_install: - gem install --no-ri --no-rdoc cocoapods xcpretty script: - set -o pipefail; xcodebuild -workspace *.xcworkspace -scheme "Hamcrest OSX" build test | xcpretty -c - set -o pipefail; xcodebuild ...
d23df853dcb1f4b49dd2e1faf888c1d2f1b17dad
.travis.yml
.travis.yml
YAML
<|file_sep|>tasks/Debian.yml.diff original: apt_repository: repo="{{marathon_apt_repo}}" state=present updated: apt_repository: repo="{{marathon_apt_repo}}" state=present update_cache=yes <|file_sep|>original/tasks/Debian.yml --- - name: Add apt-key apt_key: id=E56151BF keyserver=keyserver.ubuntu.com state=presen...
--- - name: Add apt-key apt_key: id=E56151BF keyserver=keyserver.ubuntu.com state=present - name: Add Mesosphere repo apt_repository: repo="{{marathon_apt_repo}}" state=present update_cache=yes - name: Install Marathon package apt: pkg={{ marathon_apt_package }} state=present notify: Restart marathon
<|file_sep|>tasks/Debian.yml.diff original: apt_repository: repo="{{marathon_apt_repo}}" state=present updated: apt_repository: repo="{{marathon_apt_repo}}" state=present update_cache=yes <|file_sep|>original/tasks/Debian.yml --- - name: Add apt-key apt_key: id=E56151BF keyserver=keyserver.ubuntu.com state=presen...
752ae706e1ce9142a7ffb10a2b54f7848d90ee75
tasks/Debian.yml
tasks/Debian.yml
YAML
<|file_sep|>original/README.rst Android TV + TVHeadend Live Channel =================================== +---------+------------------+ | Branch | Status | +=========+==================+ | master | |travis-master| | +---------+------------------+ | develop | |travis-develop| | +---------+------------------...
Android TV + TVHeadend Live Channel =================================== [![Build Status](https://jenkins.macinnes.ie/buildStatus/icon?job=android-tvheadend/master)](https://jenkins.macinnes.ie/job/android-tvheadend/job/master/) Available on Google Play: 1. Download from Google Play: https://play.google.com/store/app...
<|file_sep|>original/README.rst Android TV + TVHeadend Live Channel =================================== +---------+------------------+ | Branch | Status | +=========+==================+ | master | |travis-master| | +---------+------------------+ | develop | |travis-develop| | +---------+------------------...
267a58496185ed3137b35e8923de246df96ab3b9
README.rst
README.rst
reStructuredText
<|file_sep|>original/cmake/package-yum.cmake SET(CPACK_RPM_PACKAGE_REQUIRES "libstdc++ >= 4.8, httpd >= 2.4") SET(CPACK_RPM_PACKAGE_URL "https://github.com/matiu2/cdnalizer") SET(CPACK_RPM_PACKAGE_LICENSE "ASL 2.0") set(YUM_DIR packages/redhat) file(COPY ${YUM_DIR}/01-cdnalizer.conf ${YUM_DIR}/postrm DESTINATION .) i...
SET(CPACK_RPM_PACKAGE_REQUIRES "libstdc++ >= 4.8, httpd >= 2.4") SET(CPACK_RPM_PACKAGE_URL "https://github.com/matiu2/cdnalizer") SET(CPACK_RPM_PACKAGE_LICENSE "ASL 2.0") set(YUM_DIR packages/redhat) file(COPY ${YUM_DIR}/01-cdnalizer.conf ${YUM_DIR}/postrm DESTINATION .) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/01-c...
<|file_sep|>original/cmake/package-yum.cmake SET(CPACK_RPM_PACKAGE_REQUIRES "libstdc++ >= 4.8, httpd >= 2.4") SET(CPACK_RPM_PACKAGE_URL "https://github.com/matiu2/cdnalizer") SET(CPACK_RPM_PACKAGE_LICENSE "ASL 2.0") set(YUM_DIR packages/redhat) file(COPY ${YUM_DIR}/01-cdnalizer.conf ${YUM_DIR}/postrm DESTINATION .) i...
df2b6d35b001a8c01dfd06c5e57dc41c31990de2
cmake/package-yum.cmake
cmake/package-yum.cmake
CMake
<|file_sep|>original/after_prepare/ionic-minify.ts #!/usr/bin/env node import * as path from 'path'; import {Minifier} from 'ionic-minify'; let config: IMConfig = require("../minify-conf.json"); let cmd: string = process.env.CORDOVA_CMDLINE; let rootDir: string = process.argv[2]; let minify: boolean =...
#!/usr/bin/env node import * as path from 'path'; import {Minifier} from 'ionic-minify'; let config: IMConfig = require("../minify-conf.json"); let cmd: string = process.env.CORDOVA_CMDLINE; let rootDir: string = process.argv[2]; let minify: boolean = config.alwaysRun || (cmd.indexOf("--minify") > -1)...
<|file_sep|>original/after_prepare/ionic-minify.ts #!/usr/bin/env node import * as path from 'path'; import {Minifier} from 'ionic-minify'; let config: IMConfig = require("../minify-conf.json"); let cmd: string = process.env.CORDOVA_CMDLINE; let rootDir: string = process.argv[2]; let minify: boolean =...
abc0354a20d9c351684ce330a74a3ae7e7ab6f33
after_prepare/ionic-minify.ts
after_prepare/ionic-minify.ts
TypeScript
<|file_sep|>ueberwachungspaket/decorators.py.diff original: from twilio.twiml import Response from twilio.util import RequestValidator updated: from twilio.twiml.voice_response import VoiceResponse from twilio.request_validator import RequestValidator <|file_sep|>original/ueberwachungspaket/decorators.py def twilio_req...
def twilio_request(f): @wraps(f) def decorated_function(*args, **kwargs): validator = RequestValidator(TWILIO_SECRET) url = list(urlparse(request.url)) url[1] = url[1].encode("idna").decode("utf-8") url = urlunparse(url) signature = request.headers.get("X-TWILIO-SIGNATUR...
<|file_sep|>ueberwachungspaket/decorators.py.diff original: from twilio.twiml import Response from twilio.util import RequestValidator updated: from twilio.twiml.voice_response import VoiceResponse from twilio.request_validator import RequestValidator <|file_sep|>original/ueberwachungspaket/decorators.py def twilio_req...
478bdba2edf9654fc90e1a50bad60cd5b89791f9
ueberwachungspaket/decorators.py
ueberwachungspaket/decorators.py
Python
<|file_sep|>original/macos-dmg/package-local.sh <|file_sep|>current/macos-dmg/package-local.sh <|file_sep|>updated/macos-dmg/package-local.sh
#!/bin/bash # # This wrapper for the package script contains some # env vars, so it can build Gaphor with Python 3.8. # # It is intended to run from a local Mac, not CI. # export PATH="/usr/local/opt/python@3.8/bin:$PATH" export LDFLAGS="-L/usr/local/opt/python@3.8/lib" export PKG_CONFIG_PATH="/usr/local/opt/python@3.8...
<|file_sep|>original/macos-dmg/package-local.sh <|file_sep|>current/macos-dmg/package-local.sh <|file_sep|>updated/macos-dmg/package-local.sh #!/bin/bash # # This wrapper for the package script contains some # env vars, so it can build Gaphor with Python 3.8. # # It is intended to run from a local Mac, not CI. # expo...
3af71f8041644498b3d76f89887a2491e907a072
macos-dmg/package-local.sh
macos-dmg/package-local.sh
Shell
<|file_sep|>setup.sh.diff original: # install packages needed by libsndfile updated: # install packages needed by libsndfile, matplotlib and lmdb <|file_sep|>setup.sh.diff original: libsamplerate0-dev updated: libsamplerate0-dev \ libx11-dev \ python-dev \ libfreetype6-dev \ libpng12-dev \ libffi-dev <|file_sep...
libvorbis0a \ libvorbis-dev \ libsamplerate0 \ libsamplerate0-dev \ libx11-dev \ python-dev \ libfreetype6-dev \ libpng12-dev \ libffi-dev # get libflac 1.3.1, build and install wget http://downloads.xiph.org/releases/flac/flac-1.3.1.tar.xz tar xf flac-1.3.1.tar.xz cd flac-1.3.1 ./configure && make && make ins...
<|file_sep|>setup.sh.diff original: # install packages needed by libsndfile updated: # install packages needed by libsndfile, matplotlib and lmdb <|file_sep|>setup.sh.diff original: libsamplerate0-dev updated: libsamplerate0-dev \ libx11-dev \ python-dev \ libfreetype6-dev \ libpng12-dev \ libffi-dev <|file_sep...
384d2447b3d6d9d46d139ec2ecc977a7b577c09f
setup.sh
setup.sh
Shell
<|file_sep|>original/src/reabledit/cells/read_only.cljs (ns reabledit.cells.read-only (:require [reabledit.util :as util])) (defn read-only-cell [{:keys [row-data column-key]}] (let [v (get row-data column-key)] [:div.reabledit-read-only-cell {:title v} [:input.reabledit-read-only-cell__input.reabl...
(ns reabledit.cells.read-only (:require [reabledit.util :as util])) (defn read-only-cell [{:keys [row-data column-key]}] (let [v (get row-data column-key)] [:div.reabledit-read-only-cell {:title v} [:input.reabledit-read-only-cell__input.reabledit-focused {:type "text" :value "" ...
<|file_sep|>original/src/reabledit/cells/read_only.cljs (ns reabledit.cells.read-only (:require [reabledit.util :as util])) (defn read-only-cell [{:keys [row-data column-key]}] (let [v (get row-data column-key)] [:div.reabledit-read-only-cell {:title v} [:input.reabledit-read-only-cell__input.reabl...
2ed3b9401ae21fe092e2e5cfd8d9d2d39b495b55
src/reabledit/cells/read_only.cljs
src/reabledit/cells/read_only.cljs
Clojure
<|file_sep|>original/influxdb_backup.sh <|file_sep|>current/influxdb_backup.sh <|file_sep|>updated/influxdb_backup.sh
#!/bin/sh # 2017 Tero Paloheimo # This is a script for backing up an InfluxDB database and uploads the backup # to a user specified remote host. # SSH key authentication without a password MUST be in place before running # this script. # Change these values as needed BEFORE running! target_host=example.com target_use...
<|file_sep|>original/influxdb_backup.sh <|file_sep|>current/influxdb_backup.sh <|file_sep|>updated/influxdb_backup.sh #!/bin/sh # 2017 Tero Paloheimo # This is a script for backing up an InfluxDB database and uploads the backup # to a user specified remote host. # SSH key authentication without a password MUST be in...
132134838bcc23c133aadd2aae018bfd9b91b0c0
influxdb_backup.sh
influxdb_backup.sh
Shell
<|file_sep|>original/NEWS.md # adsf News ## 1.2.1 * Fixed compatibility with Ruby 2.3.0 (#3) [Vipul Amler] ## 1.2.0 * Add `--local-only` and `--listen-address` options (#1) [Ed Brannin] ## 1.1.1 * Made SIGINT/SIGTERM cause proper exit ## 1.1.0 * Added support for custom index filenames [Mark Meves] ## 1.0.1 *...
# adsf News ## 1.3.0 (2017-11-19) Features: * Added `Adsf::Server` ## 1.2.1 * Fixed compatibility with Ruby 2.3.0 (#3) [Vipul Amler] ## 1.2.0 * Add `--local-only` and `--listen-address` options (#1) [Ed Brannin] ## 1.1.1 * Made SIGINT/SIGTERM cause proper exit ## 1.1.0
<|file_sep|>original/NEWS.md # adsf News ## 1.2.1 * Fixed compatibility with Ruby 2.3.0 (#3) [Vipul Amler] ## 1.2.0 * Add `--local-only` and `--listen-address` options (#1) [Ed Brannin] ## 1.1.1 * Made SIGINT/SIGTERM cause proper exit ## 1.1.0 * Added support for custom index filenames [Mark Meves] ## 1.0.1 *...
6335166f6a84f426176869cf1eeef716eca97a8a
NEWS.md
NEWS.md
Markdown
<|file_sep|>original/index.js try { /** * Try loading the compiled code. */ module.exports = require('./lib').default } catch (e) { /** * If the compiled code is not available, * load from source. */ try { require('babel-register')({ only: /(sagui\/src)/ }) module.exports = req...
try { /** * Try loading the compiled code. */ module.exports = require('./lib').default } catch (e) { console.log('Unable to load compiled code.') console.log(e) console.log('Attempting to load source.') /** * If the compiled code is not available, * load from source. */ try { require(...
<|file_sep|>original/index.js try { /** * Try loading the compiled code. */ module.exports = require('./lib').default } catch (e) { /** * If the compiled code is not available, * load from source. */ try { require('babel-register')({ only: /(sagui\/src)/ }) module.exports = req...
94309c8532f31df72a0e407dfe3b87b6a53e927c
index.js
index.js
JavaScript
<|file_sep|>db/migrate/20111114134140_use_x_instead_of_times_in_line_items.rb.diff original: LineItem.where(:quantity => 'times').update_all(:quantity => 'x') updated: LineItem.unscoped.where(:quantity => 'times').update_all(:quantity => 'x') <|file_sep|>original/db/migrate/20111114134140_use_x_instead_of_times...
class UseXInsteadOfTimesInLineItems < ActiveRecord::Migration def up LineItem.unscoped.where(:quantity => 'times').update_all(:quantity => 'x') end def down LineItem.unscoped.where(:quantity => 'x').update_all(:quantity => 'times') end end
<|file_sep|>db/migrate/20111114134140_use_x_instead_of_times_in_line_items.rb.diff original: LineItem.where(:quantity => 'times').update_all(:quantity => 'x') updated: LineItem.unscoped.where(:quantity => 'times').update_all(:quantity => 'x') <|file_sep|>original/db/migrate/20111114134140_use_x_instead_of_times...
4126518bae2ec4c3f906415d4a52fff7b4fdf4dd
db/migrate/20111114134140_use_x_instead_of_times_in_line_items.rb
db/migrate/20111114134140_use_x_instead_of_times_in_line_items.rb
Ruby
<|file_sep|>tests/unit/components/email-input-test.js.diff original: test('unmasked values are correct', function(assert) { assert.expect(1); updated: // Test below is failing because of wrong assertion of unmaskedValue // The unmasked value in the case of email-input will always be same as // masked input. <|file_se...
}); // Test below is failing because of wrong assertion of unmaskedValue // The unmasked value in the case of email-input will always be same as // masked input. // test('unmasked values are correct', function(assert) { // assert.expect(1); // // var component = this.subject(); // // // append the component to ...
<|file_sep|>tests/unit/components/email-input-test.js.diff original: test('unmasked values are correct', function(assert) { assert.expect(1); updated: // Test below is failing because of wrong assertion of unmaskedValue // The unmasked value in the case of email-input will always be same as // masked input. <|file_se...
05b7b2045613cb6c7cc6507a0ade7028016c9df9
tests/unit/components/email-input-test.js
tests/unit/components/email-input-test.js
JavaScript
<|file_sep|>original/.github/dependabot.yml # To get started with Dependabot version updates, you'll need to specify which # package ecosystems to update and where the package manifests are located. # Please see the documentation for all configuration options: # https://docs.github.com/github/administering-a-repository...
# package ecosystems to update and where the package manifests are located. # Please see the documentation for all configuration options: # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates version: 2 updates: - package-ecosystem: "docker" # See documentation for ...
<|file_sep|>original/.github/dependabot.yml # To get started with Dependabot version updates, you'll need to specify which # package ecosystems to update and where the package manifests are located. # Please see the documentation for all configuration options: # https://docs.github.com/github/administering-a-repository...
c9b7cf0d26782e439c538963a1adbd4be0709b01
.github/dependabot.yml
.github/dependabot.yml
YAML
<|file_sep|>original/README.md # elixir-bridge.github.io Static Site for Elixirbridge <|file_sep|>current/README.md # elixir-bridge.github.io Static Site for Elixirbridge <|file_sep|>updated/README.md
# elixir-bridge.github.io Static Site for Elixirbridge ## Running the app in development - `bundle install` - `bundle exec jekyll serve`
<|file_sep|>original/README.md # elixir-bridge.github.io Static Site for Elixirbridge <|file_sep|>current/README.md # elixir-bridge.github.io Static Site for Elixirbridge <|file_sep|>updated/README.md # elixir-bridge.github.io Static Site for Elixirbridge ## Running the app in development - `bundle install` - `bundle ...
5884573850a867771a7605dd0153f9e88b6e6c88
README.md
README.md
Markdown
<|file_sep|>fastlane_app.rb.diff original: # Switch from the default Sinatra web server to `thin` # which is required to support web socket streams for the # display of real-time output set(:server, "thin") updated: <|file_sep|>original/fastlane_app.rb require_relative "features/test_runner/test_runner" # All things...
# https://stackoverflow.com/questions/26080599/sinatra-method-to-set-layout def self.default_layout "../../../features/global/layout".to_sym end # Our CI app main class class FastlaneApp < Sinatra::Base include FastlaneCI::Logging Thread.current[:thread_id] = "main" # Switch from the default...
<|file_sep|>fastlane_app.rb.diff original: # Switch from the default Sinatra web server to `thin` # which is required to support web socket streams for the # display of real-time output set(:server, "thin") updated: <|file_sep|>original/fastlane_app.rb require_relative "features/test_runner/test_runner" # All things...
8bbf01e00a47a9a1da401488451209be00c8e330
fastlane_app.rb
fastlane_app.rb
Ruby
<|file_sep|>original/CodeFights/stringsRearrangement.py <|file_sep|>current/CodeFights/stringsRearrangement.py <|file_sep|>updated/CodeFights/stringsRearrangement.py
#!/usr/local/bin/python # Code Fights Cracking Password Problem import itertools def stringsRearrangement(inputArray): def f(x, y): c = 0 for i in range(len(x)): if x[i] != y[i]: c += 1 if c == 1: return True return False for k in iter...
<|file_sep|>original/CodeFights/stringsRearrangement.py <|file_sep|>current/CodeFights/stringsRearrangement.py <|file_sep|>updated/CodeFights/stringsRearrangement.py #!/usr/local/bin/python # Code Fights Cracking Password Problem import itertools def stringsRearrangement(inputArray): def f(x, y): c = ...
0c62015b0eca96f3118ee099fb1d4f375738a888
CodeFights/stringsRearrangement.py
CodeFights/stringsRearrangement.py
Python
<|file_sep|>original/README.md ## Configuration ```js // config/twilio.js module.exports = { accountSid: '', authToken: '' } ``` ## Usage Now you can send emails like this : ``` this.app.services.TwilioService.sendMessage({ to: '555-555-5555', from: '555-555-5555', body: 'Hello world.', ...
## Configuration ```js // config/twilio.js module.exports = { accountSid: '', authToken: '' } ``` ## Usage Now you can send sms like this : ``` this.app.services.TwilioService.sendMessage({ to: '555-555-5555', from: '555-555-5555', body: 'Hello world.', mediaUrl: '', }, (err, info...
<|file_sep|>original/README.md ## Configuration ```js // config/twilio.js module.exports = { accountSid: '', authToken: '' } ``` ## Usage Now you can send emails like this : ``` this.app.services.TwilioService.sendMessage({ to: '555-555-5555', from: '555-555-5555', body: 'Hello world.', ...
8d63525abef0bc4590f572a273b2bd622d88a6ba
README.md
README.md
Markdown
<|file_sep|>original/hack/attributes/special.md <<__Override>> <<__ConsistentConstruct>> <<__Memoize>> <<__Deprecated>> Under other <<__MockClass>> <<__IsFoldable>> <|file_sep|>current/hack/attributes/special.md <<__Override>> <<__ConsistentConstruct>> <<__Memoize>> <<__Deprecated>> Under other <<__MockClass>> <<__...
<<__Override>> <<__ConsistentConstruct>> <<__Memoize>> <<__Deprecated>> Under other <<__MockClass>> <<__IsFoldable>> <<__IMemoizeParam>>
<|file_sep|>original/hack/attributes/special.md <<__Override>> <<__ConsistentConstruct>> <<__Memoize>> <<__Deprecated>> Under other <<__MockClass>> <<__IsFoldable>> <|file_sep|>current/hack/attributes/special.md <<__Override>> <<__ConsistentConstruct>> <<__Memoize>> <<__Deprecated>> Under other <<__MockClass>> <<__...
6bcafc5de79c6e8fabd427b360be1d9b6a0205d1
hack/attributes/special.md
hack/attributes/special.md
Markdown
<|file_sep|>original/packages/he/hedgehog-checkers-lens.yaml <|file_sep|>current/packages/he/hedgehog-checkers-lens.yaml <|file_sep|>updated/packages/he/hedgehog-checkers-lens.yaml
homepage: https://github.com/bitemyapp/hedgehog-checkers#readme changelog-type: '' hash: 73eea884308eababebd512a4f88d8f83d5cd5178e6a5e3cce1bdbb4daa814ef2 test-bench-deps: base: ! '>=4.7 && <5' hedgehog-checkers-lens: -any hedgehog: ==0.5.* hedgehog-checkers: -any lens: ==4.* maintainer: cma@bitemyapp.com syno...
<|file_sep|>original/packages/he/hedgehog-checkers-lens.yaml <|file_sep|>current/packages/he/hedgehog-checkers-lens.yaml <|file_sep|>updated/packages/he/hedgehog-checkers-lens.yaml homepage: https://github.com/bitemyapp/hedgehog-checkers#readme changelog-type: '' hash: 73eea884308eababebd512a4f88d8f83d5cd5178e6a5e3cc...
310498784f96c630a931575831b57bb3fd1a8d98
packages/he/hedgehog-checkers-lens.yaml
packages/he/hedgehog-checkers-lens.yaml
YAML
<|file_sep|>original/client/app/templates/albumlist_item.jade a(id="#{id}", href="#albums/#{id}") img(src="#{thumbsrc})") span.title if folderid == "all" = title else b= title <|file_sep|>current/client/app/templates/albumlist_item.jade a(id="#{id}", href="#albums/#{id}")...
a(id="#{id}", href="#albums/#{id}") img(src="#{thumbsrc}") span.title if folderid == "all" = title else b= title
<|file_sep|>original/client/app/templates/albumlist_item.jade a(id="#{id}", href="#albums/#{id}") img(src="#{thumbsrc})") span.title if folderid == "all" = title else b= title <|file_sep|>current/client/app/templates/albumlist_item.jade a(id="#{id}", href="#albums/#{id}")...
448c5abfd6d0cddeef01607900d6e78df25c6f5c
client/app/templates/albumlist_item.jade
client/app/templates/albumlist_item.jade
Jade
<|file_sep|>original/catalog/templates/catalog/book_detail.html {% extends "base_generic.html" %} {% block content %} <h1>Title: {{ book.title }}</h1> <p><strong>Author:</strong> <a href="">{{ book.author }}</a></p> <!-- author detail link not yet defined --> <p><strong>Summary:</strong> {{ book.summary }}</p> ...
{% extends "base_generic.html" %} {% block content %} <h1>Title: {{ book.title }}</h1> <p><strong>Author:</strong> <a href="{% url 'author-detail' book.author.pk %}">{{ book.author }}</a></p> <p><strong>Summary:</strong> {{ book.summary }}</p> <p><strong>ISBN:</strong> {{ book.isbn }}</p> <p><strong>Genre:<...
<|file_sep|>original/catalog/templates/catalog/book_detail.html {% extends "base_generic.html" %} {% block content %} <h1>Title: {{ book.title }}</h1> <p><strong>Author:</strong> <a href="">{{ book.author }}</a></p> <!-- author detail link not yet defined --> <p><strong>Summary:</strong> {{ book.summary }}</p> ...
32cac600b47bb27ea7df5e2c99a4603a942aeee5
catalog/templates/catalog/book_detail.html
catalog/templates/catalog/book_detail.html
HTML
<|file_sep|>original/README.md # GoEdit Text Editor for Go My attempt to make a text editor in Go for the Go programming language. ## Features - [] Syntax highlighting for Go - [x] Save file that is being edited - [x] BASIC vim like keybindings - [] Run Go code from the editor - [x] Line numbers ## Inspiration http:...
# GoEdit Text Editor for Go My attempt to make a text editor in Go for the Go programming language. ## Features - [] Syntax highlighting for Go - [x] Save file that is being edited - [x] BASIC vim like keybindings - [] Run Go code from the editor - [x] Line numbers ## Inspiration http://viewsourcecode.org/snaptoken/...
<|file_sep|>original/README.md # GoEdit Text Editor for Go My attempt to make a text editor in Go for the Go programming language. ## Features - [] Syntax highlighting for Go - [x] Save file that is being edited - [x] BASIC vim like keybindings - [] Run Go code from the editor - [x] Line numbers ## Inspiration http:...
ca0c60bb32dcd03f6a2cb68b705ab100651f8ec3
README.md
README.md
Markdown
<|file_sep|>original/compiler/rustc_error_codes/src/error_codes/E0463.md A plugin/crate was declared but cannot be found. Erroneous code example: ```compile_fail,E0463 #![feature(plugin)] #![plugin(cookie_monster)] // error: can't find crate for `cookie_monster` extern crate cake_is_a_lie; // error: can't find crate ...
```compile_fail,E0463 #![feature(plugin)] #![plugin(cookie_monster)] // error: can't find crate for `cookie_monster` extern crate cake_is_a_lie; // error: can't find crate for `cake_is_a_lie` ``` You need to link your code to the relevant crate in order to be able to use it (through Cargo or the `-L` option of rustc ...
<|file_sep|>original/compiler/rustc_error_codes/src/error_codes/E0463.md A plugin/crate was declared but cannot be found. Erroneous code example: ```compile_fail,E0463 #![feature(plugin)] #![plugin(cookie_monster)] // error: can't find crate for `cookie_monster` extern crate cake_is_a_lie; // error: can't find crate ...
82914a503119b35b9fd0d33384136049bc6750cc
compiler/rustc_error_codes/src/error_codes/E0463.md
compiler/rustc_error_codes/src/error_codes/E0463.md
Markdown
<|file_sep|>original/requirements-linters.txt # NOTE When changing versions here, be sure to keep .pre-commit-config.yaml consistent! black==20.8b1 flake8==3.9.2 flake8-bugbear==21.4.3 flake8-comprehensions==3.4.0 flake8-docstrings==1.6.0 flake8-fixme==1.1.1 isort==5.8.0 mypy==0.812 mypy-boto3~=1.17 mypy-extensions==0....
# NOTE When changing versions here, be sure to keep .pre-commit-config.yaml consistent! black==20.8b1 flake8==3.9.2 flake8-bugbear==21.4.3 flake8-comprehensions==3.4.0 flake8-docstrings==1.6.0 flake8-fixme==1.1.1 isort==5.9.1 mypy==0.812 mypy-boto3~=1.17 mypy-extensions==0.4.3 pre-commit==2.13.0 pyupgrade==2.12.0
<|file_sep|>original/requirements-linters.txt # NOTE When changing versions here, be sure to keep .pre-commit-config.yaml consistent! black==20.8b1 flake8==3.9.2 flake8-bugbear==21.4.3 flake8-comprehensions==3.4.0 flake8-docstrings==1.6.0 flake8-fixme==1.1.1 isort==5.8.0 mypy==0.812 mypy-boto3~=1.17 mypy-extensions==0....
2e6f5ddecfe74ef1e653eaf46bdfda2c1740b0d2
requirements-linters.txt
requirements-linters.txt
Text
<|file_sep|>Manipulator/DocManipulator.php.diff original: updated: // Calculate MD5 hash for file $hash = md5_file($file->getPathname()); $tmpFile = sys_get_temp_dir() . '/' . $hash; copy($file->getPathname(), $tmpFile); <|file_sep|>Manipulator/DocManipulator.php.diff original: ...
{ // Calculate MD5 hash for file $hash = md5_file($file->getPathname()); $tmpFile = sys_get_temp_dir() . '/' . $hash; copy($file->getPathname(), $tmpFile); // Upload local template to server if it hasn't been uploaded yet if (!$this->liveDocx->templateExists($hash)) ...
<|file_sep|>Manipulator/DocManipulator.php.diff original: updated: // Calculate MD5 hash for file $hash = md5_file($file->getPathname()); $tmpFile = sys_get_temp_dir() . '/' . $hash; copy($file->getPathname(), $tmpFile); <|file_sep|>Manipulator/DocManipulator.php.diff original: ...
4a53c917d152b262eb34be711a2c0d4612cc408b
Manipulator/DocManipulator.php
Manipulator/DocManipulator.php
PHP
<|file_sep|>original/kurssit/2016-2017/rub7.5/kotitehtavat/materiaali/index.md --- layout: "content-main" title: Materiaali theme: swedish course: rub7.5 --- - [Text 1 alleviivaukset](/media/rub7/text1_alleviivaukset.pdf) - [Text 2 alleviivaukset](/media/rub7/text2_alleviivaukset_oikeat.pdf) - [Text 3 alleviivaukset](...
--- layout: "content-main" title: Materiaali theme: swedish course: rub7.5 --- - [Text 1 alleviivaukset](/media/rub7/text1_alleviivaukset.pdf) - [Text 2 alleviivaukset](/media/rub7/text2_alleviivaukset_oikeat.pdf) - [Text 3 alleviivaukset](/media/rub7/text3_alleviivaukset.pdf) - [Puheen ohjeet](/media/rub7/puhe_ohje....
<|file_sep|>original/kurssit/2016-2017/rub7.5/kotitehtavat/materiaali/index.md --- layout: "content-main" title: Materiaali theme: swedish course: rub7.5 --- - [Text 1 alleviivaukset](/media/rub7/text1_alleviivaukset.pdf) - [Text 2 alleviivaukset](/media/rub7/text2_alleviivaukset_oikeat.pdf) - [Text 3 alleviivaukset](...
bc5cda675fba65d8e4242610b91ede5cd5419ce9
kurssit/2016-2017/rub7.5/kotitehtavat/materiaali/index.md
kurssit/2016-2017/rub7.5/kotitehtavat/materiaali/index.md
Markdown
<|file_sep|>app/controllers/operator/messages_controller.rb.diff original: # If any of the `Processor`s raise an exception, a 500 error will be # raised and the processing wilt stop immediately updated: # If any of the `Processor`s raise an exception, a 500 error will be # raised and the processing wi...
# # If no `Processor` can be found, a 404 will be raised. # # If any of the `Processor`s raise an exception, a 500 error will be # raised and the processing wilt stop immediately def create processors = Processor.subscribers_for(params[:queue]) if processors.empty? render :s...
<|file_sep|>app/controllers/operator/messages_controller.rb.diff original: # If any of the `Processor`s raise an exception, a 500 error will be # raised and the processing wilt stop immediately updated: # If any of the `Processor`s raise an exception, a 500 error will be # raised and the processing wi...
5999a652a53201b8c1027cd93bc1c004cd891759
app/controllers/operator/messages_controller.rb
app/controllers/operator/messages_controller.rb
Ruby
<|file_sep|>original/src/test/kotlin/com/anvigudach/ConfigserverApplicationTests.kt package com.anvigudach import org.junit.Test import org.junit.runner.RunWith import org.springframework.boot.test.context.SpringBootTest import org.springframework.test.context.junit4.SpringRunner @RunWith(SpringRunner::class) @Spring...
package com.anvigudach import org.junit.Test import org.junit.runner.RunWith import org.springframework.boot.test.context.SpringBootTest import org.springframework.test.context.junit4.SpringRunner @RunWith(SpringRunner::class) @SpringBootTest class ConfigserverApplicationTests { @Test fun contextLoads() { ...
<|file_sep|>original/src/test/kotlin/com/anvigudach/ConfigserverApplicationTests.kt package com.anvigudach import org.junit.Test import org.junit.runner.RunWith import org.springframework.boot.test.context.SpringBootTest import org.springframework.test.context.junit4.SpringRunner @RunWith(SpringRunner::class) @Spring...
8d0f5ff8405090e320a1e814a597867090ba2e8b
src/test/kotlin/com/anvigudach/ConfigserverApplicationTests.kt
src/test/kotlin/com/anvigudach/ConfigserverApplicationTests.kt
Kotlin
<|file_sep|>original/snippet/docs/shell/shell-appendix.md <|file_sep|>current/snippet/docs/shell/shell-appendix.md <|file_sep|>updated/snippet/docs/shell/shell-appendix.md
附录 === ## 参考书籍 1. 《GNU Bash Manual》(4.2版本),Free Software Foundation 2. 《Mastering UNIX Shell Scripting(SECOND EDITION)》, RandalK. Michael,清华大学出版社 3. 《Shell脚本学习指南》, Arnold Robbins,Nelson H.F. Beebe, O’ReillyTaiwan 4. 《鸟哥的Linux私房菜:基础学习篇(第三版)》,鸟哥著,王世江改编,人民邮电出版社
<|file_sep|>original/snippet/docs/shell/shell-appendix.md <|file_sep|>current/snippet/docs/shell/shell-appendix.md <|file_sep|>updated/snippet/docs/shell/shell-appendix.md 附录 === ## 参考书籍 1. 《GNU Bash Manual》(4.2版本),Free Software Foundation 2. 《Mastering UNIX Shell Scripting(SECOND EDITION)》, RandalK. Michael,清华大学出...
71b1a51edcfcc79e7a2827675adbbfc4e41a058d
snippet/docs/shell/shell-appendix.md
snippet/docs/shell/shell-appendix.md
Markdown
<|file_sep|>original/packer/scripts/centos/cleanup.sh #!/bin/bash -eux # These were only needed for building VMware/Virtualbox extensions: yum -y remove gcc cpp kernel-devel kernel-headers perl yum -y clean all rm -rf VBoxGuestAdditions_*.iso VBoxGuestAdditions_*.iso.? rm -f /tmp/chef*rpm # clean up redhat interface p...
#!/bin/bash -eux # These were only needed for building VMware/Virtualbox extensions: yum -y remove gcc cpp kernel-devel kernel-headers perl yum -y clean all rm -rf VBoxGuestAdditions_*.iso VBoxGuestAdditions_*.iso.? rm -f /tmp/chef*rpm # Remove EPEL remove if it exists yum -y remove epel-release # clean up redhat int...
<|file_sep|>original/packer/scripts/centos/cleanup.sh #!/bin/bash -eux # These were only needed for building VMware/Virtualbox extensions: yum -y remove gcc cpp kernel-devel kernel-headers perl yum -y clean all rm -rf VBoxGuestAdditions_*.iso VBoxGuestAdditions_*.iso.? rm -f /tmp/chef*rpm # clean up redhat interface p...
446ac08ceb1346382319acf7799bb26e0c93e403
packer/scripts/centos/cleanup.sh
packer/scripts/centos/cleanup.sh
Shell
<|file_sep|>original/web/templates/game/show.html.eex <div id="app" data-game-id="<%= @game.id %>"> </div> <|file_sep|>current/web/templates/game/show.html.eex <div id="app" data-game-id="<%= @game.id %>"> </div> <|file_sep|>updated/web/templates/game/show.html.eex
<p><%= link "Back to games", to: game_path(@conn, :index) %></p> <div id="app" data-game-id="<%= @game.id %>"> </div>
<|file_sep|>original/web/templates/game/show.html.eex <div id="app" data-game-id="<%= @game.id %>"> </div> <|file_sep|>current/web/templates/game/show.html.eex <div id="app" data-game-id="<%= @game.id %>"> </div> <|file_sep|>updated/web/templates/game/show.html.eex <p><%= link "Back to games", to: game_path(@conn, :ind...
22cfeda74092e78066eec8cf2e0e32bc28bac728
web/templates/game/show.html.eex
web/templates/game/show.html.eex
HTML+EEX
<|file_sep|>original/app/views/questions/_vote_up.html.erb <%= link_to image_tag('thumbs-up.jpg', class: "up-vote-question thumbs", data: { direction: "up", url: "/questions/#{@question.id}/votes", question_id: @question.id, votable_type: "Question"}), "/" %> <|file_sep|>current/app/views/questions/_vote_up.html.erb <%...
<%= link_to image_tag('thumbs-up.jpg', class: "up-vote-question thumbs", data: { direction: "up", url: "/questions/#{@question.id}/votes", question_id: @question.id, votable_type: "Question"}), "#" %>
<|file_sep|>original/app/views/questions/_vote_up.html.erb <%= link_to image_tag('thumbs-up.jpg', class: "up-vote-question thumbs", data: { direction: "up", url: "/questions/#{@question.id}/votes", question_id: @question.id, votable_type: "Question"}), "/" %> <|file_sep|>current/app/views/questions/_vote_up.html.erb <%...
211bd5fa0af76816470d3d08b948a78182494ed9
app/views/questions/_vote_up.html.erb
app/views/questions/_vote_up.html.erb
HTML+ERB
<|file_sep|>original/package.json { "name": "Kerr Marin Miller", "version": "1.0.0", "author": "Kerr Marin Miller", "description": "Minimalistic Blog Theme for Kerr Marin Miller", "devDependencies": { "gulp": "3.9.0", "gulp-util": "3.0.6", "gulp-uglify": "1.2.0", "gulp-concat": "2.6.0", "g...
{ "name": "kerrmarin-blog-theme", "version": "1.0.0", "author": "Kerr Marin Miller", "description": "Minimalistic Blog Theme for Kerr Marin Miller", "devDependencies": { "gulp": "3.9.0", "gulp-util": "3.0.6", "gulp-uglify": "1.2.0", "gulp-concat": "2.6.0", "gulp-sourcemaps": "1.5.2", "...
<|file_sep|>original/package.json { "name": "Kerr Marin Miller", "version": "1.0.0", "author": "Kerr Marin Miller", "description": "Minimalistic Blog Theme for Kerr Marin Miller", "devDependencies": { "gulp": "3.9.0", "gulp-util": "3.0.6", "gulp-uglify": "1.2.0", "gulp-concat": "2.6.0", "g...
f2235d678192e55fd7d2b11b6ed0a9003b0e01d1
package.json
package.json
JSON
<|file_sep|>original/api/v3.0.0/index.js var GithubHandler = module.exports = function(client) { this.client = client; this.routes = JSON.parse(Fs.readFileSync(__dirname + "/routes.json", "utf8")); }; var proto = { sendError: function(err, block, msg, callback) { if (this.client.debug) ...
var GithubHandler = module.exports = function(client) { this.client = client; this.routes = JSON.parse(Fs.readFileSync(__dirname + "/routes.json", "utf8")); }; var proto = { sendError: function(err, block, msg, callback) { if (this.client.debug) Util.log(err, block, msg.user, "error"); ...
<|file_sep|>original/api/v3.0.0/index.js var GithubHandler = module.exports = function(client) { this.client = client; this.routes = JSON.parse(Fs.readFileSync(__dirname + "/routes.json", "utf8")); }; var proto = { sendError: function(err, block, msg, callback) { if (this.client.debug) ...
e7f8a0945e693bd28db426b1e42c281902ef9c54
api/v3.0.0/index.js
api/v3.0.0/index.js
JavaScript
<|file_sep|>original/Casks/prolific-usb-serial-driver.rb <|file_sep|>current/Casks/prolific-usb-serial-driver.rb <|file_sep|>updated/Casks/prolific-usb-serial-driver.rb
class ProlificUsbSerialDriver < Cask url 'http://pbxbook.com/other/sw/PL2303_MacOSX_v1_5_1.zip' homepage 'http://pbxbook.com/other/mac-tty.html' version '1.5.1' sha1 'e251e2a3da821d8ed8124e78181a78e5f57dc046' install 'PL2303_MacOSX-10_6up_v1_5_1/PL2303_MacOSX_v1.5.1.pkg' uninstall :pkgutil => 'com.prolific....
<|file_sep|>original/Casks/prolific-usb-serial-driver.rb <|file_sep|>current/Casks/prolific-usb-serial-driver.rb <|file_sep|>updated/Casks/prolific-usb-serial-driver.rb class ProlificUsbSerialDriver < Cask url 'http://pbxbook.com/other/sw/PL2303_MacOSX_v1_5_1.zip' homepage 'http://pbxbook.com/other/mac-tty.html' ...
5ded572d93c2e9c1e7ea7728bc35cb49de3a3f01
Casks/prolific-usb-serial-driver.rb
Casks/prolific-usb-serial-driver.rb
Ruby
<|file_sep|>original/src/utils/say.rs extern crate term; pub fn spinner(rx: Receiver<int>, tx: Sender<int>) { let spinner = vec!["|", "/", "-", "\\",]; for spin in spinner.iter().cycle() { say("white", "\x08"); say("yellow", *spin); let r = rx.try_recv(); match r { O...
extern crate term; pub fn spinner(rx: Receiver<int>, tx: Sender<int>) { let spinner = vec!["|", "/", "-", "\\",]; for spin in spinner.iter().cycle() { say("white", "\x08"); say("yellow", *spin); let r = rx.try_recv(); match r { Ok(_) => { say("white",...
<|file_sep|>original/src/utils/say.rs extern crate term; pub fn spinner(rx: Receiver<int>, tx: Sender<int>) { let spinner = vec!["|", "/", "-", "\\",]; for spin in spinner.iter().cycle() { say("white", "\x08"); say("yellow", *spin); let r = rx.try_recv(); match r { O...
5f8a33f412feac0323f3fd4407a435e254489e46
src/utils/say.rs
src/utils/say.rs
Rust
<|file_sep|>original/templates/layout.html <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <!-- Optional theme --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css"> <!-- Latest...
<!-- Latest compiled and minified JavaScript --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script> {% block extrahead %} {% endblock %} </head...
<|file_sep|>original/templates/layout.html <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <!-- Optional theme --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css"> <!-- Latest...
8692d21946cd6cfa9e3ef7044e12c453f5f76bda
templates/layout.html
templates/layout.html
HTML
<|file_sep|>daybed/__init__.py.diff original: updated: def create_db_if_not_exist(server, db_name, exist = False): try: if not exist: sync_couchdb_views(server[db_name]) except Exception, e: db = server.create(db_name) create_db_if_not_exist(server, db_name, True) <|file_se...
def create_db_if_not_exist(server, db_name, exist = False): try: if not exist: sync_couchdb_views(server[db_name]) except Exception, e: db = server.create(db_name) create_db_if_not_exist(server, db_name, True) def main(global_config, **settings): config = Configurator(...
<|file_sep|>daybed/__init__.py.diff original: updated: def create_db_if_not_exist(server, db_name, exist = False): try: if not exist: sync_couchdb_views(server[db_name]) except Exception, e: db = server.create(db_name) create_db_if_not_exist(server, db_name, True) <|file_se...
f8a592301aa44e79e504f15e8c0b37a566c3e4cb
daybed/__init__.py
daybed/__init__.py
Python
<|file_sep|>lib/main.coffee.diff original: atom.project.registerOpener(openUri) updated: atom.workspace.registerOpener(openUri) <|file_sep|>original/lib/main.coffee path = require 'path' _ = require 'underscore-plus' ImageEditor = require './image-editor' module.exports = activate: -> atom.project.regist...
path = require 'path' _ = require 'underscore-plus' ImageEditor = require './image-editor' module.exports = activate: -> atom.workspace.registerOpener(openUri) deactivate: -> atom.workspace.unregisterOpener(openUri) # Files with these extensions will be opened as images imageExtensions = ['.gif', '.ico',...
<|file_sep|>lib/main.coffee.diff original: atom.project.registerOpener(openUri) updated: atom.workspace.registerOpener(openUri) <|file_sep|>original/lib/main.coffee path = require 'path' _ = require 'underscore-plus' ImageEditor = require './image-editor' module.exports = activate: -> atom.project.regist...
a13dbf615a8bcc49e26af264b4d2c0d59cdde51e
lib/main.coffee
lib/main.coffee
CoffeeScript
<|file_sep|>spec/unit/virtus/instance_methods/initialize_spec.rb.diff original: end end context 'with Hash argument' do subject { described_class.new(:name => name) } let(:name) { stub('name') } it 'sets attributes' do subject.name.should equal(name) end end context 'with nil argum...
end context 'with no arguments' do subject { described_class.new } it 'does not set attributes' do subject.name.should be_nil end end context 'with nil' do subject { described_class.new(nil) } it 'does not set attributes' do subject.name.should be_nil end end context...
<|file_sep|>spec/unit/virtus/instance_methods/initialize_spec.rb.diff original: end end context 'with Hash argument' do subject { described_class.new(:name => name) } let(:name) { stub('name') } it 'sets attributes' do subject.name.should equal(name) end end context 'with nil argum...
c920b4b4c4160d7b2d7b8d01908de9b0e2d4d2cf
spec/unit/virtus/instance_methods/initialize_spec.rb
spec/unit/virtus/instance_methods/initialize_spec.rb
Ruby
<|file_sep|>original/requirements/base.txt django-sites==0.10 django_csp==3.7 raven==6.10.0 requests==2.25.0 wagtail==2.7.4 # pyup: <2.8 whitenoise==5.2.0 zeep==4.0.0 # Inherited a4-core requirements bleach==3.2.1 Django==2.2.16 # pyup: <2.3 django-allauth==0.42.0 django-autoslug==1.9.8 django-background-tasks==1.2.5 ...
django-sites==0.10 django_csp==3.7 raven==6.10.0 requests==2.25.0 wagtail==2.7.4 # pyup: <2.8 whitenoise==5.2.0 zeep==4.0.0 # Inherited a4-core requirements bleach==3.2.1 Django==2.2.17 # pyup: <2.3 django-allauth==0.42.0 django-autoslug==1.9.8 django-background-tasks==1.2.5 django-ckeditor==6.0.0 django-filter==2.4.0...
<|file_sep|>original/requirements/base.txt django-sites==0.10 django_csp==3.7 raven==6.10.0 requests==2.25.0 wagtail==2.7.4 # pyup: <2.8 whitenoise==5.2.0 zeep==4.0.0 # Inherited a4-core requirements bleach==3.2.1 Django==2.2.16 # pyup: <2.3 django-allauth==0.42.0 django-autoslug==1.9.8 django-background-tasks==1.2.5 ...
05da89cc95cb0255433f8fe341e2016c7f98edc1
requirements/base.txt
requirements/base.txt
Text
<|file_sep|>original/build/android/pylib/uiautomator/test_runner.py options.ensure_value('install_apk', True) options.ensure_value('wait_for_debugger', False) super(TestRunner, self).__init__( options, device, shard_index, test_pkg, ports_to_forward) self.package_name = options.package_name ...
super(TestRunner, self).__init__( options, device, shard_index, test_pkg, ports_to_forward) self.package_name = options.package_name #override def InstallTestPackage(self): self.test_pkg.Install(self.adb) #override def PushDataDeps(self): pass #override def _RunTest(self, test,...
<|file_sep|>original/build/android/pylib/uiautomator/test_runner.py options.ensure_value('install_apk', True) options.ensure_value('wait_for_debugger', False) super(TestRunner, self).__init__( options, device, shard_index, test_pkg, ports_to_forward) self.package_name = options.package_name ...
727143357853591862335eb9e556855e6056a6a8
build/android/pylib/uiautomator/test_runner.py
build/android/pylib/uiautomator/test_runner.py
Python
<|file_sep|>README.md.diff original: # Minafingrar::Rb updated: # Mina Fingrar <|file_sep|>original/README.md TODO: Write a gem description ## Installation Add this line to your application's Gemfile: ```ruby gem 'minafingrar-rb' ``` And then execute: $ bundle Or install it yourself as: $ gem install min...
# Mina Fingrar [![Build Status](https://travis-ci.org/smgt/mina-fingrar-rb.svg)](https://travis-ci.org/smgt/mina-fingrar-rb) ## Contributing 1. Fork it ( https://github.com/[my-github-username]/minafingrar-rb/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit ...
<|file_sep|>README.md.diff original: # Minafingrar::Rb updated: # Mina Fingrar <|file_sep|>original/README.md TODO: Write a gem description ## Installation Add this line to your application's Gemfile: ```ruby gem 'minafingrar-rb' ``` And then execute: $ bundle Or install it yourself as: $ gem install min...
b5726930eaca3590b8d9708a3394d7c3355e3af9
README.md
README.md
Markdown
<|file_sep|>original/project.clj (defproject onyx-app/lein-template "0.11.1.0-alpha2" :description "Onyx Leiningen application template" :url "https://github.com/onyx-platform/onyx-template" :license {:name "MIT License" :url "http://choosealicense.com/licenses/mit/#"} :repositories {"snapshots" {:u...
(defproject onyx-app/lein-template "0.11.1.0-SNAPSHOT" :description "Onyx Leiningen application template" :url "https://github.com/onyx-platform/onyx-template" :license {:name "MIT License" :url "http://choosealicense.com/licenses/mit/#"} :repositories {"snapshots" {:url "https://clojars.org/repo" ...
<|file_sep|>original/project.clj (defproject onyx-app/lein-template "0.11.1.0-alpha2" :description "Onyx Leiningen application template" :url "https://github.com/onyx-platform/onyx-template" :license {:name "MIT License" :url "http://choosealicense.com/licenses/mit/#"} :repositories {"snapshots" {:u...
6667380c31702a0d657f99035303634ecc4164d8
project.clj
project.clj
Clojure
<|file_sep|>original/jdisc_http_service/CMakeLists.txt # Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. install_fat_java_artifact(jdisc_http_service) install(FILES src/main/resources/configdefinitions/jdisc.http.client.http-client.def ...
# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. install_fat_java_artifact(jdisc_http_service) install_config_definition(src/main/resources/configdefinitions/jdisc.http.client.http-client.def) install_config_definition(src/main/resources/configdefini...
<|file_sep|>original/jdisc_http_service/CMakeLists.txt # Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. install_fat_java_artifact(jdisc_http_service) install(FILES src/main/resources/configdefinitions/jdisc.http.client.http-client.def ...
a6e7a8adc9ae13d3e7f3fb36947b8454a7c8db9b
jdisc_http_service/CMakeLists.txt
jdisc_http_service/CMakeLists.txt
Text
<|file_sep|>original/config/initializers/kaminari_config.rb Kaminari.configure do |config| config.default_per_page = 9 config.max_per_page = 13 # config.window = 4 # config.outer_window = 0 # config.left = 0 # config.right = 0 # config.page_method_name = :page # config.param_name = :page end <|file_sep|...
Kaminari.configure do |config| config.default_per_page = 81 config.max_per_page = 81 # config.window = 4 # config.outer_window = 0 # config.left = 0 # config.right = 0 # config.page_method_name = :page # config.param_name = :page end
<|file_sep|>original/config/initializers/kaminari_config.rb Kaminari.configure do |config| config.default_per_page = 9 config.max_per_page = 13 # config.window = 4 # config.outer_window = 0 # config.left = 0 # config.right = 0 # config.page_method_name = :page # config.param_name = :page end <|file_sep|...
5319785a2fa35144e662b4fc6b611adfcc8e462c
config/initializers/kaminari_config.rb
config/initializers/kaminari_config.rb
Ruby
<|file_sep|>.travis.yml.diff original: language: objective-c osx_image: xcode8 updated: os: osx osx_image: xcode11.1 env: global: - RUBYMOTION_LICENSE=1dcac45cc434293009f74b33037bdf7361a3a1ff # Official license key for open-source projects - TMP_DIR=./tmp # For motion repo, so it doesn't attempt to use /tmp, to which i...
os: osx osx_image: xcode11.1 env: global: - RUBYMOTION_LICENSE=1dcac45cc434293009f74b33037bdf7361a3a1ff # Official license key for open-source projects - TMP_DIR=./tmp # For motion repo, so it doesn't attempt to use /tmp, to which it has no access before_install: - wget http://travisci.rubymotion.com/ -O RubyMotion-Tra...
<|file_sep|>.travis.yml.diff original: language: objective-c osx_image: xcode8 updated: os: osx osx_image: xcode11.1 env: global: - RUBYMOTION_LICENSE=1dcac45cc434293009f74b33037bdf7361a3a1ff # Official license key for open-source projects - TMP_DIR=./tmp # For motion repo, so it doesn't attempt to use /tmp, to which i...
ba85b1c46bdb8f40e9e944ea4e7aa0d19024e08f
.travis.yml
.travis.yml
YAML
<|file_sep|>Claro/video.user.js.diff original: // @name Claro Video - No mouse hijacking updated: // @name Claro Video - No video hijacking <|file_sep|>Claro/video.user.js.diff original: // @version 0.1 // @description Disable mouse hijacking by Claro Video updated: // @version 0.2 // @descri...
// @namespace http://federicojm.com/ // @version 0.2 // @description Disable video control hijacking by Claro Video // @author Federico JM // @match https://www.clarovideo.com/playerhtml5/* // @grant none // @run-at document-end // ==/UserScript== ;(() => { document.onselectstart =...
<|file_sep|>Claro/video.user.js.diff original: // @name Claro Video - No mouse hijacking updated: // @name Claro Video - No video hijacking <|file_sep|>Claro/video.user.js.diff original: // @version 0.1 // @description Disable mouse hijacking by Claro Video updated: // @version 0.2 // @descri...
cdf9a794f81f5899d388517f89bd07999ec1bec8
Claro/video.user.js
Claro/video.user.js
JavaScript
<|file_sep|>original/sonar-project.properties # Required metadata sonar.projectKey=com.github:betsybookworm:python-cafe-sqlalchemy sonar.projectName=Cafe sonar.projectVersion=0.5.0-dev # Comma-separated paths to directories with sources (required) sonar.sources=cafe # Language sonar.language=py # Encoding of the sou...
# Required metadata sonar.projectKey=com.github:betsybookwyrm:python-cafe-sqlalchemy sonar.projectName=Cafe sonar.projectVersion=0.5.0-dev # Comma-separated paths to directories with sources (required) sonar.sources=cafe # Language sonar.language=py # Encoding of the source files sonar.sourceEncoding=UTF-8
<|file_sep|>original/sonar-project.properties # Required metadata sonar.projectKey=com.github:betsybookworm:python-cafe-sqlalchemy sonar.projectName=Cafe sonar.projectVersion=0.5.0-dev # Comma-separated paths to directories with sources (required) sonar.sources=cafe # Language sonar.language=py # Encoding of the sou...
2a94fe2aa2950e6550bb727cf850deb111a0bf6b
sonar-project.properties
sonar-project.properties
INI
<|file_sep|>original/puresnmp/__init__.py from puresnmp.api.pythonic import PyWrapper from puresnmp.api.raw import Client from puresnmp.credentials import V1, V2C, V3 try: import importlib.metadata as importlib_metadata except ModuleNotFoundError: import importlib_metadata # type: ignore __version__ = impor...
from puresnmp.api.pythonic import PyWrapper from puresnmp.api.raw import Client from puresnmp.credentials import V1, V2C, V3 try: import importlib.metadata as importlib_metadata except ModuleNotFoundError: import importlib_metadata # type: ignore __version__ = importlib_metadata.version("puresnmp") # type:...
<|file_sep|>original/puresnmp/__init__.py from puresnmp.api.pythonic import PyWrapper from puresnmp.api.raw import Client from puresnmp.credentials import V1, V2C, V3 try: import importlib.metadata as importlib_metadata except ModuleNotFoundError: import importlib_metadata # type: ignore __version__ = impor...
b6813731696a03e04367ea3286092320391080e9
puresnmp/__init__.py
puresnmp/__init__.py
Python
<|file_sep|>algoliasearch/check_key.go.diff original: updated: "referers", <|file_sep|>original/algoliasearch/check_key.go if _, ok := v.(string); !ok { return invalidType(k, "string") } case "validUntil": if _, ok := v.(int); !ok { return invalidType(k, "int") } default: // OK } } ...
case "restrictIndices", "restrictSources", "userToken": if _, ok := v.(string); !ok { return invalidType(k, "string") } case "validUntil": if _, ok := v.(int); !ok { return invalidType(k, "int") } case "referers": if _, ok := v.([]string); !ok { return invalidType(k, "[]string") } ...
<|file_sep|>algoliasearch/check_key.go.diff original: updated: "referers", <|file_sep|>original/algoliasearch/check_key.go if _, ok := v.(string); !ok { return invalidType(k, "string") } case "validUntil": if _, ok := v.(int); !ok { return invalidType(k, "int") } default: // OK } } ...
bb1c4db925a715716fdf7293051fa810858cd4a9
algoliasearch/check_key.go
algoliasearch/check_key.go
Go
<|file_sep|>requirements/prod.txt.diff original: # Database Flask-SQLAlchemy==2.0 SQLAlchemy==0.9.8 # Migrations Flask-Migrate==1.3.1 updated: <|file_sep|>original/requirements/prod.txt SQLAlchemy==0.9.8 # Migrations Flask-Migrate==1.3.1 # Forms Flask-WTF==0.11 WTForms==2.0.2 # Deployment gunicorn>=19.1.1 # Asse...
itsdangerous==0.24 # Forms Flask-WTF==0.11 WTForms==2.0.2 # Deployment gunicorn>=19.1.1 # Assets Flask-Assets==0.10 cssmin>=0.2.0 jsmin>=2.0.11 # Caching Flask-Cache>=0.13.1 # Debug toolbar Flask-DebugToolbar==0.9.2 requests==2.7.0
<|file_sep|>requirements/prod.txt.diff original: # Database Flask-SQLAlchemy==2.0 SQLAlchemy==0.9.8 # Migrations Flask-Migrate==1.3.1 updated: <|file_sep|>original/requirements/prod.txt SQLAlchemy==0.9.8 # Migrations Flask-Migrate==1.3.1 # Forms Flask-WTF==0.11 WTForms==2.0.2 # Deployment gunicorn>=19.1.1 # Asse...
00d28abc035b433abbe203f2cea1f0f4b56f25c1
requirements/prod.txt
requirements/prod.txt
Text
<|file_sep|>mvp/integration.py.diff original: def before_playblast(self, data): updated: def before_playblast(self, form, data): '''Runs before playblasting.''' <|file_sep|>mvp/integration.py.diff original: def after_playblast(self, data): updated: def after_playblast(self, form, data): ...
def before_playblast(self, form, data): '''Runs before playblasting.''' return NotImplemented def after_playblast(self, form, data): '''Runs after playblasting.''' return NotImplemented def finalize(self, form, data): '''Runs after entire playblast process is fin...
<|file_sep|>mvp/integration.py.diff original: def before_playblast(self, data): updated: def before_playblast(self, form, data): '''Runs before playblasting.''' <|file_sep|>mvp/integration.py.diff original: def after_playblast(self, data): updated: def after_playblast(self, form, data): ...
19dd810c5acb35ce5d7565ee57a55ae725194bd1
mvp/integration.py
mvp/integration.py
Python
<|file_sep|>modules/karma.py.diff original: updated: module_db = 'karma.json' module_version = '0.1.0' <|file_sep|>original/modules/karma.py import discord from modules.botModule import BotModule class Karma(BotModule): name = 'karma' description = 'Monitors messages for reactions a...
module_version = '0.1.0' listen_for_reaction = True async def parse_command(self, message, client): pass async def on_reaction(self, reaction, client): target_user = self.module_db.Query() if self.module_db.get(target_user.userid == reaction.messag...
<|file_sep|>modules/karma.py.diff original: updated: module_db = 'karma.json' module_version = '0.1.0' <|file_sep|>original/modules/karma.py import discord from modules.botModule import BotModule class Karma(BotModule): name = 'karma' description = 'Monitors messages for reactions a...
f3875b1d9aed5f847b11846a27f7652e4c548b6c
modules/karma.py
modules/karma.py
Python
<|file_sep|>original/public/css/main.css } /** * Hide the cursor */ *, *:active, *:hover *:link, *:visited { cursor: none !important; } /** * Prevent drag selection */ *::selection { background:transparent; } *::-moz-selection { <|file_sep|>current/public/css/main.css } /** * Hide the cursor */ *, *:act...
} /** * Hide the cursor */ *, *:active, *:hover *:link, *:visited { /* Hidden cursor disabled during development */ /*cursor: none !important;*/ } /** * Prevent drag selection */ *::selection { background:transparent; }
<|file_sep|>original/public/css/main.css } /** * Hide the cursor */ *, *:active, *:hover *:link, *:visited { cursor: none !important; } /** * Prevent drag selection */ *::selection { background:transparent; } *::-moz-selection { <|file_sep|>current/public/css/main.css } /** * Hide the cursor */ *, *:act...
02b3ac2f32a0bf2dd5907af6d68d21332fb18176
public/css/main.css
public/css/main.css
CSS
<|file_sep|>original/_posts/2019-06-14-angular_form_array_validate_at_least_one_checkbox_was_selected.md <|file_sep|>current/_posts/2019-06-14-angular_form_array_validate_at_least_one_checkbox_was_selected.md <|file_sep|>updated/_posts/2019-06-14-angular_form_array_validate_at_least_one_checkbox_was_selected.md
--- title: "Angular Form Array - Validate at least one checkbox was selected" categories: experience tags: angular typescript --- I often have the requirement to make sure there is at least one checkbox inside a list of checkboxes got selected on the UI. With the support of Angular Reactive form, you can archive it in...
<|file_sep|>original/_posts/2019-06-14-angular_form_array_validate_at_least_one_checkbox_was_selected.md <|file_sep|>current/_posts/2019-06-14-angular_form_array_validate_at_least_one_checkbox_was_selected.md <|file_sep|>updated/_posts/2019-06-14-angular_form_array_validate_at_least_one_checkbox_was_selected.md --- t...
d48ef7fdf489d1b335bfc4b6e1887487f67b0932
_posts/2019-06-14-angular_form_array_validate_at_least_one_checkbox_was_selected.md
_posts/2019-06-14-angular_form_array_validate_at_least_one_checkbox_was_selected.md
Markdown
<|file_sep|>original/Gruntfile.js module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-browserify'); grunt.registerTask('default', ['browserify']); grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), browserify: { ...
module.exports = function(grunt) { require("matchdep").filterDev("grunt-*").forEach(grunt.loadNpmTasks); grunt.registerTask('default', ['browserify']); grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), browserify: { main: { src: 'lib/vjs-hls.js', ...
<|file_sep|>original/Gruntfile.js module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-browserify'); grunt.registerTask('default', ['browserify']); grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), browserify: { ...
a98a9b7401212661ca170551cb3cede388fa0623
Gruntfile.js
Gruntfile.js
JavaScript
<|file_sep|>original/.travis.yml language: php php: - 5.5 - 5.6 - hhvm env: - COMPOSER_OPTS="" - COMPOSER_OPTS="--prefer-lowest" install: - composer self-update - composer update $COMPOSER_OPTS script: - phpunit tests - ./tests/lint.sh git: depth: 5 <|file_sep|>current/.travis.yml language: php...
language: php php: - 5.5 - 5.6 - hhvm sudo: false env: - COMPOSER_OPTS="" - COMPOSER_OPTS="--prefer-lowest" install: - composer self-update - composer update $COMPOSER_OPTS script: - phpunit tests - ./tests/lint.sh
<|file_sep|>original/.travis.yml language: php php: - 5.5 - 5.6 - hhvm env: - COMPOSER_OPTS="" - COMPOSER_OPTS="--prefer-lowest" install: - composer self-update - composer update $COMPOSER_OPTS script: - phpunit tests - ./tests/lint.sh git: depth: 5 <|file_sep|>current/.travis.yml language: php...
05e96f1ebb01ef7ff928d9e65fdc59f2be3f0e48
.travis.yml
.travis.yml
YAML
<|file_sep|>original/package.json { "name": "google-closure", "version": "0.0.1", "description": "Sample Google Closure Project", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", "license": "ISC", "dependencies": { "@types/react": "^16.0.9...
{ "name": "google-closure", "version": "0.0.1", "description": "Sample Google Closure Project", "main": "index.js", "scripts": { "build": "./node_modules/typescript/bin/tsc -p src/react/ ", "watch": "./node_modules/typescript/bin/tsc -w src/react/ " }, "author": "", "license": "ISC", "dependen...
<|file_sep|>original/package.json { "name": "google-closure", "version": "0.0.1", "description": "Sample Google Closure Project", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", "license": "ISC", "dependencies": { "@types/react": "^16.0.9...
f3d9bd7032b69a52b3923ab096e2fd7b25590614
package.json
package.json
JSON
<|file_sep|>lib/plugins/cafe.rb.diff original: if cafe_hash[cafe['cafeUrl']].nil? cafe_hash[cafe['cafeUrl']] = 1 else cafe_hash[cafe['cafeUrl']] += 1 end updated: cafe_hash[cafe['cafeUrl']] += 1 cafe_hash[cafe['cafeUrl']] = 1 if cafe_hash[cafe['c...
match /(help cafe)$/, method: :help def execute(m, prefix, cafe, text) query = text.split(/[[:space:]]/).join(' ').downcase response = Unirest.post "https://apis.daum.net/search/cafe?apikey=#{ENV['DAUM_KEY']}&q=#{URI.encode(query)}&result=20&output=json" cafe_hash = {} retur...
<|file_sep|>lib/plugins/cafe.rb.diff original: if cafe_hash[cafe['cafeUrl']].nil? cafe_hash[cafe['cafeUrl']] = 1 else cafe_hash[cafe['cafeUrl']] += 1 end updated: cafe_hash[cafe['cafeUrl']] += 1 cafe_hash[cafe['cafeUrl']] = 1 if cafe_hash[cafe['c...
ae8aa9d8f57290a6af0ce5e7496c692418cb8b92
lib/plugins/cafe.rb
lib/plugins/cafe.rb
Ruby
<|file_sep|>original/package.json { "name": "throw.js", "version": "2.1.0", "description": "A full REST API error collection", "main": "lib/index.js", "scripts": { "test": "node ./tests/*.spec.js" }, "repository": { "type": "git", "url": "https://github.com/kbariotis/throw.js.git" }, "keyw...
{ "name": "throw.js", "version": "2.0.0", "description": "A full REST API error collection", "main": "lib/index.js", "scripts": { "test": "node ./tests/*.spec.js" }, "repository": { "type": "git", "url": "https://github.com/kbariotis/throw.js.git" }, "keywords": [ "rest", "errors",...
<|file_sep|>original/package.json { "name": "throw.js", "version": "2.1.0", "description": "A full REST API error collection", "main": "lib/index.js", "scripts": { "test": "node ./tests/*.spec.js" }, "repository": { "type": "git", "url": "https://github.com/kbariotis/throw.js.git" }, "keyw...
c715b4c1608af810f9fc051bcb7c022f005c444c
package.json
package.json
JSON
<|file_sep|>README.md.diff original: [clojure-rica.github.io](http://clojure-rica.github.io). updated: [codecation.github.io](http://codecation.github.io/2014-02-clojure-rica). <|file_sep|>README.md.diff original: $ git clone https://github.com/clojure-rica/game-of-life.git updated: $ git clone https://github.com/codec...
``` Compile it: ```bash $ lein cljsbuild once ``` And take a peek: ```bash $ open site/index.html ``` ## Contributing Please see the [Contributing Document](https://github.com/codecation/game-of-life/blob/master/CONTRIBUTING.md) ## License Copyright (C) 2014 Ben Orenstein, Chris Hunt, [MIT License](https://github...
<|file_sep|>README.md.diff original: [clojure-rica.github.io](http://clojure-rica.github.io). updated: [codecation.github.io](http://codecation.github.io/2014-02-clojure-rica). <|file_sep|>README.md.diff original: $ git clone https://github.com/clojure-rica/game-of-life.git updated: $ git clone https://github.com/codec...
cab527d8d8bfb9fe660a17ca07af9fe50008c1ee
README.md
README.md
Markdown