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|>ecmascript-testcases/test-dev-call-expr.js.diff original: /*--- { "skip": true updated: /*=== basic 1 2 3 1 2 3 4 ===*/ function f(x) { return function (y) { return function (z) { print(x, y, z); } } <|file_sep|>ecmascript-testcases/test-dev-call-expr.js.diff origina...
===*/ function f(x) { return function (y) { return function (z) { print(x, y, z); } } } function g(x) { return { foo: function (y) { return function (z) { return { bar: function (w) { print(x, y, z,...
<|file_sep|>ecmascript-testcases/test-dev-call-expr.js.diff original: /*--- { "skip": true updated: /*=== basic 1 2 3 1 2 3 4 ===*/ function f(x) { return function (y) { return function (z) { print(x, y, z); } } <|file_sep|>ecmascript-testcases/test-dev-call-expr.js.diff origina...
c2d9247ea82b07c28dba83580b1c9c50112083f1
ecmascript-testcases/test-dev-call-expr.js
ecmascript-testcases/test-dev-call-expr.js
JavaScript
<|file_sep|>original/src/commands.js define(function(Tab) { var Q = codebox.require("hr/promise"); var commands = codebox.require("core/commands"); // Add command to open a file commands.register({ id: "editor.save", title: "File: Save", shortcuts: [ "mod+s" ...
define(function(Tab) { var Q = codebox.require("hr/promise"); var commands = codebox.require("core/commands"); // Add command to open a file commands.register({ id: "editor.save", title: "File: Save", shortcuts: [ "mod+s" ], context: ["editor"], ...
<|file_sep|>original/src/commands.js define(function(Tab) { var Q = codebox.require("hr/promise"); var commands = codebox.require("core/commands"); // Add command to open a file commands.register({ id: "editor.save", title: "File: Save", shortcuts: [ "mod+s" ...
ee5273e2c5ff6171043ecc9331a1508462657410
src/commands.js
src/commands.js
JavaScript
<|file_sep|>tests/test_models.py.diff original: from datetime import datetime updated: <|file_sep|>tests/test_models.py.diff original: updated: from unittest.mock import patch <|file_sep|>tests/test_models.py.diff original: updated: self.user = User( 'example@example.com', 'fakepasswo...
self.assertFalse(has_authy_app) def test_password_is_unreadable(self): # Arrange # Act / Assert with self.assertRaises(AttributeError): self.user.password def test_password_setter(self): # Arrange old_password_hash = self.user.password_hash ...
<|file_sep|>tests/test_models.py.diff original: from datetime import datetime updated: <|file_sep|>tests/test_models.py.diff original: updated: from unittest.mock import patch <|file_sep|>tests/test_models.py.diff original: updated: self.user = User( 'example@example.com', 'fakepasswo...
77d491ea43fcd00dcfcee1f0b9c2fdb50dc50c8e
tests/test_models.py
tests/test_models.py
Python
<|file_sep|>original/composer.json "name": "Tom Rochette", "email": "tom@tomrochette.com", "homepage": "http://www.tomrochette.com" } ], "support": { "issues": "https://github.com/tomzx/imdb-importer/issues" }, "require": { "php": ">=7.3", ...
"email": "tom@tomrochette.com", "homepage": "http://www.tomrochette.com" } ], "support": { "issues": "https://github.com/tomzx/imdb-importer/issues" }, "require": { "php": ">=7.3", "psr/log": "^1.0.0" }, "require-dev": { "phpunit/ph...
<|file_sep|>original/composer.json "name": "Tom Rochette", "email": "tom@tomrochette.com", "homepage": "http://www.tomrochette.com" } ], "support": { "issues": "https://github.com/tomzx/imdb-importer/issues" }, "require": { "php": ">=7.3", ...
55e214e23f8519270627c80d9161bc9617f7ef03
composer.json
composer.json
JSON
<|file_sep|>original/.github/workflows/twine-check.yml runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 - name: Setup Python uses: actions/setup-python@v2 with: python-version: '3.8' - uses: actions/cache@v2 with: path: ${{ env.pythonLocation }} key...
steps: - uses: actions/checkout@v2 - name: Setup Python uses: actions/setup-python@v2 with: python-version: '3.8' - uses: actions/cache@v2 with: path: ${{ env.pythonLocation }} key: ${{ env.pythonLocation }}-${{ hashFiles('README.rst') }}-${{ hashFiles('.github...
<|file_sep|>original/.github/workflows/twine-check.yml runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 - name: Setup Python uses: actions/setup-python@v2 with: python-version: '3.8' - uses: actions/cache@v2 with: path: ${{ env.pythonLocation }} key...
72d64e30e50d16cedd6a63513a630d7fc40e9cf4
.github/workflows/twine-check.yml
.github/workflows/twine-check.yml
YAML
<|file_sep|>original/app/Http/Controllers/Auth/ResetPasswordController.php | Password Reset Controller |-------------------------------------------------------------------------- | | This controller is responsible for handling password reset requests | and uses a simple trait to include this behavio...
|-------------------------------------------------------------------------- | | This controller is responsible for handling password reset requests | and uses a simple trait to include this behavior. You're free to | explore this trait and override any methods you wish to tweak. | */ us...
<|file_sep|>original/app/Http/Controllers/Auth/ResetPasswordController.php | Password Reset Controller |-------------------------------------------------------------------------- | | This controller is responsible for handling password reset requests | and uses a simple trait to include this behavio...
b3ca8a37321196e76918d6010c1cb8a1748b3c34
app/Http/Controllers/Auth/ResetPasswordController.php
app/Http/Controllers/Auth/ResetPasswordController.php
PHP
<|file_sep|>original/scripts/package.sh #!/usr/bin/env bash gulp package --env=production && electron-packager . Zazu --platform=darwin --arch=x64 --version=0.37.3 --overwrite <|file_sep|>current/scripts/package.sh #!/usr/bin/env bash gulp package --env=production && electron-packager . Zazu --platform=darwin --arch=...
#!/usr/bin/env bash gulp package --env=production && electron-packager . Zazu --platform=darwin --arch=x64 --version=0.37.3 --overwrite \ --ignore="^/node_modules/(?!(electron-localshortcut))"
<|file_sep|>original/scripts/package.sh #!/usr/bin/env bash gulp package --env=production && electron-packager . Zazu --platform=darwin --arch=x64 --version=0.37.3 --overwrite <|file_sep|>current/scripts/package.sh #!/usr/bin/env bash gulp package --env=production && electron-packager . Zazu --platform=darwin --arch=...
313ece1c88e3cffd50e9e2168f1ab95d120043c7
scripts/package.sh
scripts/package.sh
Shell
<|file_sep|>original/requirements-tests.txt -r requirements.txt -e . ipdb==0.10.1 pytest==3.10.0 pytest-sugar==0.9.2 <|file_sep|>current/requirements-tests.txt -r requirements.txt -e . ipdb==0.10.1 pytest==3.10.0 pytest-sugar==0.9.2 <|file_sep|>updated/requirements-tests.txt
-r requirements.txt -e . ipdb==0.10.1 pytest==3.10.1 pytest-sugar==0.9.2
<|file_sep|>original/requirements-tests.txt -r requirements.txt -e . ipdb==0.10.1 pytest==3.10.0 pytest-sugar==0.9.2 <|file_sep|>current/requirements-tests.txt -r requirements.txt -e . ipdb==0.10.1 pytest==3.10.0 pytest-sugar==0.9.2 <|file_sep|>updated/requirements-tests.txt -r requirements.txt -e . ipdb==0.10.1 pyt...
8faf23a8e47ba2915930939e9b3a0193f35ba57f
requirements-tests.txt
requirements-tests.txt
Text
<|file_sep|>original/requirements-app.txt # Run `make freeze-requirements` to update requirements.txt # with package version changes made in requirements-app.txt git+https://github.com/alphagov/digitalmarketplace-utils.git@47.2.0#egg=digitalmarketplace-utils==47.2.0 git+https://github.com/alphagov/digitalmarketplace-a...
# Run `make freeze-requirements` to update requirements.txt # with package version changes made in requirements-app.txt git+https://github.com/alphagov/digitalmarketplace-utils.git@47.2.0#egg=digitalmarketplace-utils==47.2.0 git+https://github.com/alphagov/digitalmarketplace-apiclient.git@19.15.1#egg=digitalmarketplac...
<|file_sep|>original/requirements-app.txt # Run `make freeze-requirements` to update requirements.txt # with package version changes made in requirements-app.txt git+https://github.com/alphagov/digitalmarketplace-utils.git@47.2.0#egg=digitalmarketplace-utils==47.2.0 git+https://github.com/alphagov/digitalmarketplace-a...
ecf4114fa2678f83d87e4d1c3758f9af0553fedf
requirements-app.txt
requirements-app.txt
Text
<|file_sep|>app/views/diabetic_toolbox/readings/index.html.haml.diff original: - if current_member.readings.size > 0 updated: - if current_member.has_no_readings? .text-center No Readings Recorded - else <|file_sep|>original/app/views/diabetic_toolbox/readings/index.html.haml .contai...
.container-fluid .row .content-readings - if current_member.has_no_readings? .text-center No Readings Recorded - else %table.table.table-condensed.table-striped %thead %tr %th Reading %th When %th Intake ...
<|file_sep|>app/views/diabetic_toolbox/readings/index.html.haml.diff original: - if current_member.readings.size > 0 updated: - if current_member.has_no_readings? .text-center No Readings Recorded - else <|file_sep|>original/app/views/diabetic_toolbox/readings/index.html.haml .contai...
06d1e728a0ee7eb45f57c9ea072229f79ae6481b
app/views/diabetic_toolbox/readings/index.html.haml
app/views/diabetic_toolbox/readings/index.html.haml
Haml
<|file_sep|>original/example/DuckDuckGo/config.js module.exports = { baseURL: 'https://duckduckgo.com/?kad=en_GB', // you don't need to add any query string to test your own website // passing the language code is used only because DuckDuckGo adjusts to your default language, which may make the test fail ...
module.exports = { baseURL: 'https://duckduckgo.com', browser: 'firefox', // if you’d rather test with Chrome, you will need to install chromedriver // read more at https://github.com/MattiSG/Watai/wiki/Testing-with-Chrome // The above "browser" key is a shortcut, relying on browsers being installed in their...
<|file_sep|>original/example/DuckDuckGo/config.js module.exports = { baseURL: 'https://duckduckgo.com/?kad=en_GB', // you don't need to add any query string to test your own website // passing the language code is used only because DuckDuckGo adjusts to your default language, which may make the test fail ...
9e564570e93c263daeed339c5db39184c67324b5
example/DuckDuckGo/config.js
example/DuckDuckGo/config.js
JavaScript
<|file_sep|>original/auth/util/src/test/java/org/wildfly/security/auth/util/RegexNameRewriterTest.java <|file_sep|>current/auth/util/src/test/java/org/wildfly/security/auth/util/RegexNameRewriterTest.java <|file_sep|>updated/auth/util/src/test/java/org/wildfly/security/auth/util/RegexNameRewriterTest.java
package org.wildfly.security.auth.util; import org.junit.Test; import java.util.regex.Pattern; import static org.junit.Assert.assertEquals; public class RegexNameRewriterTest { private static final String BEFORE_REPLACE_USER_NAME = ".user."; private static final String AFTER_REPLACE_ALL_USER_NAME = "dotuser...
<|file_sep|>original/auth/util/src/test/java/org/wildfly/security/auth/util/RegexNameRewriterTest.java <|file_sep|>current/auth/util/src/test/java/org/wildfly/security/auth/util/RegexNameRewriterTest.java <|file_sep|>updated/auth/util/src/test/java/org/wildfly/security/auth/util/RegexNameRewriterTest.java package org...
3bb1838cc4237ef9eaff6b374dc8ab1451f7fdb8
auth/util/src/test/java/org/wildfly/security/auth/util/RegexNameRewriterTest.java
auth/util/src/test/java/org/wildfly/security/auth/util/RegexNameRewriterTest.java
Java
<|file_sep|>original/.travis-ci.sh git config --global user.email "travis@travis-ci.org" git config --global user.name "travis-ci" git clone https://${GH_TOKEN}@github.com/Cumulus/Syndic .documentation cd .documentation git fetch git checkout gh-pages git merge master --commit -m "Merge master into gh-p...
git config --global user.email "travis@travis-ci.org" git config --global user.name "travis-ci" git clone https://${GH_TOKEN}@github.com/Cumulus/Syndic .documentation cd .documentation git fetch git checkout gh-pages git merge master --commit -m "Merge master into gh-pages" ./configure make doc ...
<|file_sep|>original/.travis-ci.sh git config --global user.email "travis@travis-ci.org" git config --global user.name "travis-ci" git clone https://${GH_TOKEN}@github.com/Cumulus/Syndic .documentation cd .documentation git fetch git checkout gh-pages git merge master --commit -m "Merge master into gh-p...
a07c91d1a4a31af688dbdee2accd12d140f4b7f2
.travis-ci.sh
.travis-ci.sh
Shell
<|file_sep|>original/packages/custom.py # -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python from cerbero.packages import package from cerbero.enums import License class GStreamer: url = "http://gstreamer.freedesktop.org" version = '1.14.0' vendor = 'GStreamer Project' licenses = [License.LG...
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python from cerbero.packages import package from cerbero.enums import License class GStreamer: url = "http://gstreamer.freedesktop.org" version = '1.14.0.1' vendor = 'GStreamer Project' licenses = [License.LGPL] org = 'org.freedesktop.gstream...
<|file_sep|>original/packages/custom.py # -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python from cerbero.packages import package from cerbero.enums import License class GStreamer: url = "http://gstreamer.freedesktop.org" version = '1.14.0' vendor = 'GStreamer Project' licenses = [License.LG...
3c9de69112c8158877e4b0060ef0ab89c083f376
packages/custom.py
packages/custom.py
Python
<|file_sep|>original/prophusion-tests.sh echo "Running PHPUnit tests..." if [ -z "$PHPUNIT" ] then PHPUNIT="./vendor/bin/phpunit" fi if [[ "$PHPUNIT_COVERAGE" != "" ]] then PHPUNIT="$PHPUNIT $PHPUNIT_COVERAGE" fi if [[ "$PHPUNIT_EXTRA_ARGS" != "" ]] then PHPUNIT="$PHPUNIT $PHPUNIT_EXTRA_ARGS" fi echo "PHPUNIT...
echo "Running PHPUnit tests..." if [ -z "$PHPUNIT" ] then PHPUNIT="./vendor/bin/phpunit" fi if [[ "$PHPUNIT_COVERAGE" != "" ]] then PHPUNIT="$PHPUNIT $PHPUNIT_COVERAGE" fi if [[ "$PHPUNIT_EXTRA_ARGS" != "" ]] then PHPUNIT="$PHPUNIT $PHPUNIT_EXTRA_ARGS" fi echo "PHPUNIT is: $PHPUNIT" export PHPUNIT echo "XDEB...
<|file_sep|>original/prophusion-tests.sh echo "Running PHPUnit tests..." if [ -z "$PHPUNIT" ] then PHPUNIT="./vendor/bin/phpunit" fi if [[ "$PHPUNIT_COVERAGE" != "" ]] then PHPUNIT="$PHPUNIT $PHPUNIT_COVERAGE" fi if [[ "$PHPUNIT_EXTRA_ARGS" != "" ]] then PHPUNIT="$PHPUNIT $PHPUNIT_EXTRA_ARGS" fi echo "PHPUNIT...
30042ce85ba023958bb31679c457b3a0d9576fe8
prophusion-tests.sh
prophusion-tests.sh
Shell
<|file_sep|>original/app/views/results/marker/show_result_error.js.erb <%# Marking state set to complete but there is at least one nil mark %> document.getElementById('criterion_incomplete_error').innerHTML = '<%= @result.errors[:base] %>'; document.getElementById('criterion_incomplete_error').style.display = ''; docu...
<%# Marking state set to complete but there is at least one nil mark %> document.getElementById('criterion_incomplete_error').innerHTML = '<%= @result.errors[:base].to_sentence %>'; document.getElementById('criterion_incomplete_error').style.display = ''; document.getElementById('marking_state').value = '<%= Result::M...
<|file_sep|>original/app/views/results/marker/show_result_error.js.erb <%# Marking state set to complete but there is at least one nil mark %> document.getElementById('criterion_incomplete_error').innerHTML = '<%= @result.errors[:base] %>'; document.getElementById('criterion_incomplete_error').style.display = ''; docu...
b7753bd290cd6fe3bbc2bed33657b5d7a92a387d
app/views/results/marker/show_result_error.js.erb
app/views/results/marker/show_result_error.js.erb
HTML+ERB
<|file_sep|>.travis.yml.diff original: updated: dist: trusty <|file_sep|>original/.travis.yml language: ruby sudo: false cache: bundler rvm: - jruby-1.7.26 - jruby-9.1.7.0 <|file_sep|>current/.travis.yml dist: trusty language: ruby sudo: false cache: bundler rvm: - jruby-1.7.26 - jruby-9.1.7.0 <|file_sep|>upda...
dist: trusty language: ruby sudo: false cache: bundler rvm: - jruby-1.7.26 - jruby-9.1.14.0
<|file_sep|>.travis.yml.diff original: updated: dist: trusty <|file_sep|>original/.travis.yml language: ruby sudo: false cache: bundler rvm: - jruby-1.7.26 - jruby-9.1.7.0 <|file_sep|>current/.travis.yml dist: trusty language: ruby sudo: false cache: bundler rvm: - jruby-1.7.26 - jruby-9.1.7.0 <|file_sep|>upda...
40f6c820a2f7f6793c2b756c1662b9ea3d09077c
.travis.yml
.travis.yml
YAML
<|file_sep|>original/docs/source/releases/v1.2.rst :depth: 1 .. _compatibility_of_1.2: Compatibility ------------- Oscar 1.2 is compatible with... .. _new_in_1.2: What's new in Oscar 1.2? ------------------------ .. _incompatible_in_1.2: Backwards incompatible changes in Oscar 1.2 -----------------------...
------------- Oscar 1.2 is compatible with... .. _new_in_1.2: What's new in Oscar 1.2? ------------------------ .. _incompatible_in_1.2: Backwards incompatible changes in Oscar 1.2 ------------------------------------------- Misc ~~~~ * JQuery UI is no longer included in the dashboard (`#1792`)
<|file_sep|>original/docs/source/releases/v1.2.rst :depth: 1 .. _compatibility_of_1.2: Compatibility ------------- Oscar 1.2 is compatible with... .. _new_in_1.2: What's new in Oscar 1.2? ------------------------ .. _incompatible_in_1.2: Backwards incompatible changes in Oscar 1.2 -----------------------...
31b54ffb1b5b238314e016b548bd14f957f61469
docs/source/releases/v1.2.rst
docs/source/releases/v1.2.rst
reStructuredText
<|file_sep|>original/LICENSE.md <|file_sep|>current/LICENSE.md <|file_sep|>updated/LICENSE.md
# MIT License Copyright (c) 2015-2016 Ariel Mashraki and contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, mo...
<|file_sep|>original/LICENSE.md <|file_sep|>current/LICENSE.md <|file_sep|>updated/LICENSE.md # MIT License Copyright (c) 2015-2016 Ariel Mashraki and contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to de...
459be3818dacade11f2c94224ecb823a55badb13
LICENSE.md
LICENSE.md
Markdown
<|file_sep|>original/_posts/2021-05-08-running-bash-commands-with-git-alias.md <|file_sep|>current/_posts/2021-05-08-running-bash-commands-with-git-alias.md <|file_sep|>updated/_posts/2021-05-08-running-bash-commands-with-git-alias.md
--- title: 'Running bash commands with git alias' date: 2021-05-08 14:00:00 tags: [git, bash] layout: post --- This is a quick tip I learned recently and it allowed me to improve my `git` workflow a bit more. Here’s a new part of my `.gitconfig`: ``` [alias] main = !git checkout main && git pull --no-tags sy...
<|file_sep|>original/_posts/2021-05-08-running-bash-commands-with-git-alias.md <|file_sep|>current/_posts/2021-05-08-running-bash-commands-with-git-alias.md <|file_sep|>updated/_posts/2021-05-08-running-bash-commands-with-git-alias.md --- title: 'Running bash commands with git alias' date: 2021-05-08 14:00:00 tags: [...
cd8c394f407413efd80bd49013bee5f5791e284e
_posts/2021-05-08-running-bash-commands-with-git-alias.md
_posts/2021-05-08-running-bash-commands-with-git-alias.md
Markdown
<|file_sep|>original/Alexa.NET/Response/Response.cs { [JsonProperty("outputSpeech", NullValueHandling = NullValueHandling.Ignore)] public IOutputSpeech OutputSpeech { get; set; } [JsonProperty("card", NullValueHandling = NullValueHandling.Ignore)] public ICard Card { get; set; } ...
{ [JsonProperty("outputSpeech", NullValueHandling = NullValueHandling.Ignore)] public IOutputSpeech OutputSpeech { get; set; } [JsonProperty("card", NullValueHandling = NullValueHandling.Ignore)] public ICard Card { get; set; } [JsonProperty("reprompt", NullValueHandling = ...
<|file_sep|>original/Alexa.NET/Response/Response.cs { [JsonProperty("outputSpeech", NullValueHandling = NullValueHandling.Ignore)] public IOutputSpeech OutputSpeech { get; set; } [JsonProperty("card", NullValueHandling = NullValueHandling.Ignore)] public ICard Card { get; set; } ...
b94bcd07e302a20e171ac36ec82b537097acf241
Alexa.NET/Response/Response.cs
Alexa.NET/Response/Response.cs
C#
<|file_sep|>original/_data/exchanges.csv icon,url bisq,https://markets.bisq.network/?market=trc_btc blocknet,https://www.blocknet.co/block-dx/ ccex,https://c-cex.com/?p=trc-btc , coinexchange,https://www.coinexchange.io/market/TRC/BTC , , , cryptopia,https://www.cryptopia.co.nz/Exchange/?market=TRC_BTC novaexchange,htt...
icon,url bisq,https://markets.bisq.network/?market=trc_btc blocknet,https://www.blocknet.co/block-dx/ , , coinexchange,https://www.coinexchange.io/market/TRC/BTC , , , cryptopia,https://www.cryptopia.co.nz/Exchange/?market=TRC_BTC novaexchange,https://novaexchange.com/market/BTC_TRC/ , onlexch,https://www.nlexch.com/ma...
<|file_sep|>original/_data/exchanges.csv icon,url bisq,https://markets.bisq.network/?market=trc_btc blocknet,https://www.blocknet.co/block-dx/ ccex,https://c-cex.com/?p=trc-btc , coinexchange,https://www.coinexchange.io/market/TRC/BTC , , , cryptopia,https://www.cryptopia.co.nz/Exchange/?market=TRC_BTC novaexchange,htt...
1d748bc41b3ebaae31c94de86e139c142dd9b928
_data/exchanges.csv
_data/exchanges.csv
CSV
<|file_sep|>original/elements/MJPEGStream.php <?php class MJPEGStream { function output($args) { $id = rand(0,100000); echo("<img src=\"".$args["url"]."\" style=\"width:100%; display: table-cell; vertical-align: center;\"></img>"); } } ?> <|file_sep|>current/elements/MJPEGStream.php <?php class MJPEGStream ...
<?php class MJPEGStream { function output($args) { $id = rand(0,100000); echo(" <script> $().ready(function() { setInterval(function() { $('#".$id."').attr('src', '".$args["url"]."'); }, 60000); }) </script> <img id=\"".$id."\" src=\"".$args["url"]."\" style=\"width:100%; display: table-cell;...
<|file_sep|>original/elements/MJPEGStream.php <?php class MJPEGStream { function output($args) { $id = rand(0,100000); echo("<img src=\"".$args["url"]."\" style=\"width:100%; display: table-cell; vertical-align: center;\"></img>"); } } ?> <|file_sep|>current/elements/MJPEGStream.php <?php class MJPEGStream ...
f6754d1e36644daa8f75bc09666d4f3bd8b32a43
elements/MJPEGStream.php
elements/MJPEGStream.php
PHP
<|file_sep|>original/etc/vcl_snippets_rate_limiting/deliver.vcl # Tarpit Rate limited requests if ( resp.status == 429 && req.http.Rate-Limit ) { resp.tarpit(5, 100000); } <|file_sep|>current/etc/vcl_snippets_rate_limiting/deliver.vcl # Tarpit Rate limited requests if ( resp.status == 429 && req.http.Rate-Limit ) { ...
# Tarpit Rate limited requests if ( resp.status == 429 && req.http.Rate-Limit ) { resp.tarpit(std.atoi(table.lookup(magentomodule_config, "tarpit_interval", "5")), 100000); }
<|file_sep|>original/etc/vcl_snippets_rate_limiting/deliver.vcl # Tarpit Rate limited requests if ( resp.status == 429 && req.http.Rate-Limit ) { resp.tarpit(5, 100000); } <|file_sep|>current/etc/vcl_snippets_rate_limiting/deliver.vcl # Tarpit Rate limited requests if ( resp.status == 429 && req.http.Rate-Limit ) { ...
f56250d79ff4532cf851510d904ceab10e648206
etc/vcl_snippets_rate_limiting/deliver.vcl
etc/vcl_snippets_rate_limiting/deliver.vcl
VCL
<|file_sep|>original/.github/workflows/linux-ci.yml name: Linux on: [push] jobs: linux: name: Linux runs-on: ubuntu-18.04 container: swift:5.1 steps: - uses: actions/checkout@v1 - run: swift test --enable-test-discovery <|file_sep|>current/.github/workflows/linux-ci.yml name: Linux on: [p...
name: Linux on: [push] jobs: linux: name: Linux runs-on: ubuntu-18.04 container: swift:latest steps: - uses: actions/checkout@v1 - run: swift test --enable-test-discovery
<|file_sep|>original/.github/workflows/linux-ci.yml name: Linux on: [push] jobs: linux: name: Linux runs-on: ubuntu-18.04 container: swift:5.1 steps: - uses: actions/checkout@v1 - run: swift test --enable-test-discovery <|file_sep|>current/.github/workflows/linux-ci.yml name: Linux on: [p...
81139d14c96dcfe67ede109c0d28e65969a092c8
.github/workflows/linux-ci.yml
.github/workflows/linux-ci.yml
YAML
<|file_sep|>original/scripts/dist-standalone-collector.py <|file_sep|>current/scripts/dist-standalone-collector.py <|file_sep|>updated/scripts/dist-standalone-collector.py
#!/usr/bin/python import os import shutil import glob distPath = "./dist/standalone-collector" if not os.path.exists(distPath): os.makedirs(distPath) if not os.path.exists(distPath + "/simplejson"): os.mkdir(distPath + "/simplejson") shutil.copy("./docs/README-standalone-collector.txt", distPath + "/README.txt") ...
<|file_sep|>original/scripts/dist-standalone-collector.py <|file_sep|>current/scripts/dist-standalone-collector.py <|file_sep|>updated/scripts/dist-standalone-collector.py #!/usr/bin/python import os import shutil import glob distPath = "./dist/standalone-collector" if not os.path.exists(distPath): os.makedirs(dis...
ca61d3c9ca598dfb5bd685b6dcb81a6f933c2e36
scripts/dist-standalone-collector.py
scripts/dist-standalone-collector.py
Python
<|file_sep|>original/Search/Response.swift self.init( results: nestedResults, header: header ) } } func resultForJson(json: OSJSON) -> SearchResult? { guard let dpaJson = json.jsonForKey(Results.SearchResultKey) else { return nil } let result = SearchRes...
let nestedResults = results.flatMap(resultForJson) self.init( results: nestedResults, header: header ) } } func resultForJson(json: OSJSON) -> SearchResult? { guard let dpaJson = json.jsonForKey(Results.SearchResultKey) else { return nil } return...
<|file_sep|>original/Search/Response.swift self.init( results: nestedResults, header: header ) } } func resultForJson(json: OSJSON) -> SearchResult? { guard let dpaJson = json.jsonForKey(Results.SearchResultKey) else { return nil } let result = SearchRes...
bc73917c79c0fa557b72cf1d0910a24a0be9e68c
Search/Response.swift
Search/Response.swift
Swift
<|file_sep|>original/src/Acme/Bundle/DemoGridBundle/Resources/views/Grid/list.html.twig {% extends 'AcmeDemoGridBundle::layout.html.twig' %} {% block content %} {% include 'OroGridBundle:Datagrid:view.html.twig' with {'datagrid': datagrid} %} {% endblock %} <|file_sep|>current/src/Acme/Bundle/DemoGridBundle/Resour...
{% extends 'AcmeDemoGridBundle::layout.html.twig' %} {% block content %} <div style="background-color: #ffffff; padding: 20px;"> {% include 'OroGridBundle:Datagrid:view.html.twig' with {'datagrid': datagrid} %} </div> {% endblock %}
<|file_sep|>original/src/Acme/Bundle/DemoGridBundle/Resources/views/Grid/list.html.twig {% extends 'AcmeDemoGridBundle::layout.html.twig' %} {% block content %} {% include 'OroGridBundle:Datagrid:view.html.twig' with {'datagrid': datagrid} %} {% endblock %} <|file_sep|>current/src/Acme/Bundle/DemoGridBundle/Resour...
473e3c2dd6755944e0925d7ef16acd1c96787a80
src/Acme/Bundle/DemoGridBundle/Resources/views/Grid/list.html.twig
src/Acme/Bundle/DemoGridBundle/Resources/views/Grid/list.html.twig
Twig
<|file_sep|>lib/dmtx.rb.diff original: @enc = DmtxLib.dmtxEncodeCreate() DmtxLib.dmtxEncodeSetProp(@enc, :DmtxPropPixelPacking, :DmtxPack24bppRGB) DmtxLib.dmtxEncodeSetProp(@enc, :DmtxPropSizeRequest, :DmtxSymbolSquareAuto) updated: <|file_sep|>lib/dmtx.rb.diff original: updated: chunky_png_image.save...
chunky_png_image.save(file, :fast_rgb) end private def chunky_png_image encoder = DmtxLib.dmtxEncodeCreate() DmtxLib.dmtxEncodeSetProp(encoder, :DmtxPropPixelPacking, :DmtxPack24bppRGB) DmtxLib.dmtxEncodeSetProp(encoder, :DmtxPropSizeRequest, :DmtxSymbolSquareAuto) DmtxLib.dmtxEncodeDataMatri...
<|file_sep|>lib/dmtx.rb.diff original: @enc = DmtxLib.dmtxEncodeCreate() DmtxLib.dmtxEncodeSetProp(@enc, :DmtxPropPixelPacking, :DmtxPack24bppRGB) DmtxLib.dmtxEncodeSetProp(@enc, :DmtxPropSizeRequest, :DmtxSymbolSquareAuto) updated: <|file_sep|>lib/dmtx.rb.diff original: updated: chunky_png_image.save...
aa6404326b2c6c0787be3b8969f7483d10fd69af
lib/dmtx.rb
lib/dmtx.rb
Ruby
<|file_sep|>src/Merlin/TvShowsBundle/Resources/public/js/list_shows.js.diff original: updated: var title = $(this).closest('tr').find('td:eq(1)').text(); <|file_sep|>original/src/Merlin/TvShowsBundle/Resources/public/js/list_shows.js var url = $(this).attr('href'); var userConfig = { ...
var url = $(this).attr('href'); var title = $(this).closest('tr').find('td:eq(1)').text(); var userConfig = { captionOk: 'Yes', captionCancel: 'No', title: 'Confirmation', onOk: function() { location.href = url; } ...
<|file_sep|>src/Merlin/TvShowsBundle/Resources/public/js/list_shows.js.diff original: updated: var title = $(this).closest('tr').find('td:eq(1)').text(); <|file_sep|>original/src/Merlin/TvShowsBundle/Resources/public/js/list_shows.js var url = $(this).attr('href'); var userConfig = { ...
1653f3d58653a3e628f58919b06a5d0eb03baec0
src/Merlin/TvShowsBundle/Resources/public/js/list_shows.js
src/Merlin/TvShowsBundle/Resources/public/js/list_shows.js
JavaScript
<|file_sep|>osx/set-defaults.sh.diff original: # Disable press-and-hold for keys in favor of key repeat updated: # Disable press-and-hold for keys in favor of key repeat. <|file_sep|>osx/set-defaults.sh.diff original: # Show the ~/Library folder updated: # Show the ~/Library folder. <|file_sep|>original/osx/set-default...
defaults write -g ApplePressAndHoldEnabled -bool false # Use AirDrop over every interface. srsly this should be a default. defaults write com.apple.NetworkBrowser BrowseAllInterfaces 1 # Always open everything in Finder's list view. This is important. defaults write com.apple.Finder FXPreferredViewStyle Nlsv # Show ...
<|file_sep|>osx/set-defaults.sh.diff original: # Disable press-and-hold for keys in favor of key repeat updated: # Disable press-and-hold for keys in favor of key repeat. <|file_sep|>osx/set-defaults.sh.diff original: # Show the ~/Library folder updated: # Show the ~/Library folder. <|file_sep|>original/osx/set-default...
3089b260366f2ab52acf222a3bef78ec2a1ba82a
osx/set-defaults.sh
osx/set-defaults.sh
Shell
<|file_sep|>original/lib/Target/MRegisterInfo.cpp "Target has too many physical registers!"); PhysRegClasses = new const TargetRegisterClass*[NumRegs]; for (unsigned i = 0; i != NumRegs; ++i) PhysRegClasses[i] = 0; // Fill in the PhysRegClasses map for (MRegisterInfo::regclass_iterator I = regcla...
"Target has too many physical registers!"); PhysRegClasses = new const TargetRegisterClass*[NumRegs]; for (unsigned i = 0; i != NumRegs; ++i) PhysRegClasses[i] = 0; // Fill in the PhysRegClasses map for (MRegisterInfo::regclass_iterator I = regclass_begin(), E = regclass_end(); I != E; +...
<|file_sep|>original/lib/Target/MRegisterInfo.cpp "Target has too many physical registers!"); PhysRegClasses = new const TargetRegisterClass*[NumRegs]; for (unsigned i = 0; i != NumRegs; ++i) PhysRegClasses[i] = 0; // Fill in the PhysRegClasses map for (MRegisterInfo::regclass_iterator I = regcla...
b889b693e478c523afdf21ed64e401c646a8ac40
lib/Target/MRegisterInfo.cpp
lib/Target/MRegisterInfo.cpp
C++
<|file_sep|>original/src/build/intro.js * * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: @DATE */ (function( root, factory ) { if ( typeof define === "function" && define.amd ) { // AMD. define( factory ); } else...
* * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: @DATE */ (function( root, factory ) { if ( typeof define === "function" && define.amd ) { // AMD. define( factory ); } else if ( typeof module === "object" && type...
<|file_sep|>original/src/build/intro.js * * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: @DATE */ (function( root, factory ) { if ( typeof define === "function" && define.amd ) { // AMD. define( factory ); } else...
815f73f4f92e1ba2a0dcb0f20d652b17182fcf24
src/build/intro.js
src/build/intro.js
JavaScript
<|file_sep|>original/config/initializers/forest_engine.rb MediaItem.expire_cache! Menu.expire_cache! Setting.expire_cache! Setting.expire_application_cache_key! <|file_sep|>current/config/initializers/forest_engine.rb MediaItem.expire_cache! Menu.expire_cache! Setting.expire_cache! Setting.expire_application_cache_key!...
'MediaItem'.safe_constantize&.expire_cache! 'Menu'.safe_constantize&.expire_cache! 'Setting'.safe_constantize&.expire_cache! 'Setting'.safe_constantize&.expire_application_cache_key!
<|file_sep|>original/config/initializers/forest_engine.rb MediaItem.expire_cache! Menu.expire_cache! Setting.expire_cache! Setting.expire_application_cache_key! <|file_sep|>current/config/initializers/forest_engine.rb MediaItem.expire_cache! Menu.expire_cache! Setting.expire_cache! Setting.expire_application_cache_key!...
017af03072af6ba1084c8aa940be30083ff50f17
config/initializers/forest_engine.rb
config/initializers/forest_engine.rb
Ruby
<|file_sep|>sstannouncer/app/src/main/java/sst/com/anouncements/feed/data/Entry.kt.diff original: updated: // Remove any content in style tags var content = this.content.replace("<style[^>]*>.*</style>".toRegex(), "") <|file_sep|>sstannouncer/app/src/main/java/sst/com/anouncements/feed/data/Entry.kt.di...
val content: String ) { val relativePublishedDate: String by lazy { relativeDate(publishedDate) } val contentWithoutHTML: String by lazy { // Remove any content in style tags var content = this.content.replace("<style[^>]*>.*</style>".toRegex(), "") // Remove HTML tags conte...
<|file_sep|>sstannouncer/app/src/main/java/sst/com/anouncements/feed/data/Entry.kt.diff original: updated: // Remove any content in style tags var content = this.content.replace("<style[^>]*>.*</style>".toRegex(), "") <|file_sep|>sstannouncer/app/src/main/java/sst/com/anouncements/feed/data/Entry.kt.di...
166eb8f99279070c5b7bfb29cdc110f1d6466c4c
sstannouncer/app/src/main/java/sst/com/anouncements/feed/data/Entry.kt
sstannouncer/app/src/main/java/sst/com/anouncements/feed/data/Entry.kt
Kotlin
<|file_sep|>original/web_development/web_development-checklist.md * Accessibility * Internationalization/Localization * Coding standards + Conventions - ESlint - Prettier + CSS strategy - CSS Modules - Global CSS - Pre-processors (Sass, Less) - Post CSS - Organization * Media query...
- Prettier + CSS strategy - CSS Modules - Global CSS - Pre-processors (Sass, Less) - Post CSS - Organization * Media query choices. * x-browser rules location(s): separate file, inline, other? - Naming convention: Bem, Suit, SMACSS, other? * See https://medium.freecodecam...
<|file_sep|>original/web_development/web_development-checklist.md * Accessibility * Internationalization/Localization * Coding standards + Conventions - ESlint - Prettier + CSS strategy - CSS Modules - Global CSS - Pre-processors (Sass, Less) - Post CSS - Organization * Media query...
7164109acb5032f31bb7aea0fe1b880e69f51aff
web_development/web_development-checklist.md
web_development/web_development-checklist.md
Markdown
<|file_sep|>generator.py.diff original: updated: import datetime <|file_sep|>generator.py.diff original: "</tbody></table>\n" + "</body>") updated: "</tbody></table>\n") <|file_sep|>original/generator.py "<table border=\"1\"><thead><tr>\n" + "<td>Pocet clenu</td>\n" + ...
"<table border=\"1\"><thead><tr>\n" + "<td>Pocet clenu</td>\n" + "<td>Velikost skupiny pro zahajeni jednani</td>\n" + "<td>Velikost skupiny na probihajicim jednani</td>\n" + "</tr>\n</thead>\n<tbody>\n<tr>" + "<td>" + str(count) + "</td><td...
<|file_sep|>generator.py.diff original: updated: import datetime <|file_sep|>generator.py.diff original: "</tbody></table>\n" + "</body>") updated: "</tbody></table>\n") <|file_sep|>original/generator.py "<table border=\"1\"><thead><tr>\n" + "<td>Pocet clenu</td>\n" + ...
f4d87b49f100121896ab147e08f634ebcf68ae40
generator.py
generator.py
Python
<|file_sep|>bin/commands/new.js.diff original: updated: var PROMPT_OPTIONS = [{ type: "confirm", name: "okToCopyFiles", message: "Copying over files to current directory. Press enter to confirm", default: true }] <|file_sep|>bin/commands/new.js.diff original: updated: inquirer.prompt(PROMPT_...
module.exports = function(libDir) { return { init: init }; function init(name) { console.log('Creating a new project: %s', chalk.underline(name)); inquirer.prompt(PROMPT_OPTIONS, inquirerCallback) } function inquirerCallback(answers) { console.log('copying over fi...
<|file_sep|>bin/commands/new.js.diff original: updated: var PROMPT_OPTIONS = [{ type: "confirm", name: "okToCopyFiles", message: "Copying over files to current directory. Press enter to confirm", default: true }] <|file_sep|>bin/commands/new.js.diff original: updated: inquirer.prompt(PROMPT_...
f6963995c7feabcd861cfbfc3f4e5b3d0ecb0c76
bin/commands/new.js
bin/commands/new.js
JavaScript
<|file_sep|>original/Documentation/devicetree/bindings/mips/img/pistachio.txt <|file_sep|>current/Documentation/devicetree/bindings/mips/img/pistachio.txt <|file_sep|>updated/Documentation/devicetree/bindings/mips/img/pistachio.txt
Imagination Pistachio SoC ========================= Required properties: -------------------- - compatible: Must include "img,pistachio". CPU nodes: ---------- A "cpus" node is required. Required properties: - #address-cells: Must be 1. - #size-cells: Must be 0. A CPU sub-node is also required for at least CPU 0....
<|file_sep|>original/Documentation/devicetree/bindings/mips/img/pistachio.txt <|file_sep|>current/Documentation/devicetree/bindings/mips/img/pistachio.txt <|file_sep|>updated/Documentation/devicetree/bindings/mips/img/pistachio.txt Imagination Pistachio SoC ========================= Required properties: ------------...
e14ba3cdd6dddb004def9811ee057576e53ca9a0
Documentation/devicetree/bindings/mips/img/pistachio.txt
Documentation/devicetree/bindings/mips/img/pistachio.txt
Text
<|file_sep|>original/dev-requirements.txt black==19.10b0 doc8==0.8.0 coveralls==1.11.1 flake8==3.7.9 flake8-commas==2.0.0 flake8-comprehensions==3.2.2 flake8-docstrings==1.5.0 flake8-isort==2.9.1 flake8-mutable==1.2.0 freezegun==0.3.15 isort==4.3.21 mypy==0.770 pydocstyle==5.0.2 pytest==5.4.1 pytest-cov==2.8.1 rope==0....
black==19.10b0 doc8==0.8.0 coveralls==1.11.1 flake8==3.7.9 flake8-commas==2.0.0 flake8-comprehensions==3.2.2 flake8-docstrings==1.5.0 flake8-isort==2.9.1 flake8-mutable==1.2.0 freezegun==0.3.15 isort==4.3.21 mypy==0.770 pydocstyle==5.0.2 pytest==5.4.1 pytest-cov==2.8.1 rope==0.16.0 setuptools==46.1.3 sphinx==3.0.0 sphi...
<|file_sep|>original/dev-requirements.txt black==19.10b0 doc8==0.8.0 coveralls==1.11.1 flake8==3.7.9 flake8-commas==2.0.0 flake8-comprehensions==3.2.2 flake8-docstrings==1.5.0 flake8-isort==2.9.1 flake8-mutable==1.2.0 freezegun==0.3.15 isort==4.3.21 mypy==0.770 pydocstyle==5.0.2 pytest==5.4.1 pytest-cov==2.8.1 rope==0....
17f28b286f5520dd91d3fd2fc45248a880ff4fdb
dev-requirements.txt
dev-requirements.txt
Text
<|file_sep|>original/build.rs extern crate cheddar; fn main() { // Generate mp4parse.h. cheddar::Cheddar::new().expect("could not read manifest") .module("capi").expect("invalid module path") .insert_code("// This Source Code Form is subject to the terms of the Mozilla Public\n") .inser...
extern crate cheddar; fn main() { // Generate mp4parse.h. cheddar::Cheddar::new().expect("could not read manifest") .module("capi").expect("invalid module path") .insert_code("// THIS FILE IS AUTOGENERATED BY mp4parse-rust/build.rs - DO NOT EDIT\n\n") .insert_code("// This Source Code F...
<|file_sep|>original/build.rs extern crate cheddar; fn main() { // Generate mp4parse.h. cheddar::Cheddar::new().expect("could not read manifest") .module("capi").expect("invalid module path") .insert_code("// This Source Code Form is subject to the terms of the Mozilla Public\n") .inser...
42e09b612189f0a0edfdb9b60eb09a543147eb7b
build.rs
build.rs
Rust
<|file_sep|>CDZQRScanningViewController.podspec.diff original: s.version = '1.0.2' updated: s.version = '1.0.3' <|file_sep|>original/CDZQRScanningViewController.podspec Pod::Spec.new do |s| s.name = 'CDZQRScanningViewController' s.version = '1.0.2' s.summary = 'Easy QR code scannin...
Pod::Spec.new do |s| s.name = 'CDZQRScanningViewController' s.version = '1.0.3' s.summary = 'Easy QR code scanning on iOS 7.' s.homepage = 'https://github.com/cdzombak/CDZQRScanningViewController' s.license = 'MIT' s.author = { 'Chris Dzombak' => 'chris@chrisdzombak.net' } ...
<|file_sep|>CDZQRScanningViewController.podspec.diff original: s.version = '1.0.2' updated: s.version = '1.0.3' <|file_sep|>original/CDZQRScanningViewController.podspec Pod::Spec.new do |s| s.name = 'CDZQRScanningViewController' s.version = '1.0.2' s.summary = 'Easy QR code scannin...
b2e1fcfd4bffab16810ecd8b17713958128c1e77
CDZQRScanningViewController.podspec
CDZQRScanningViewController.podspec
Ruby
<|file_sep|>original/src/badge/snippets/badge-on-icon-icon.html <div class="material-icons mdl-badge mdl-badge--overlap" data-badge="♥">account_box</div> <|file_sep|>current/src/badge/snippets/badge-on-icon-icon.html <div class="material-icons mdl-badge mdl-badge--overlap" data-badge="♥">account_box</div> <|file_sep|>u...
<!-- Icon badge on icon --> <div class="material-icons mdl-badge mdl-badge--overlap" data-badge="♥">account_box</div>
<|file_sep|>original/src/badge/snippets/badge-on-icon-icon.html <div class="material-icons mdl-badge mdl-badge--overlap" data-badge="♥">account_box</div> <|file_sep|>current/src/badge/snippets/badge-on-icon-icon.html <div class="material-icons mdl-badge mdl-badge--overlap" data-badge="♥">account_box</div> <|file_sep|>u...
f941a993703042f705b276d2a51ef9ca99a991ae
src/badge/snippets/badge-on-icon-icon.html
src/badge/snippets/badge-on-icon-icon.html
HTML
<|file_sep|>original/CHANGELOG.md Changelog ========= ### 0.0.5 - Fixes for conflicting keybindings. - Windows installer is now signed with the Mapbox cert. - Windows installer now bundles Visual C++ (2013) runtimes. - Style UI: Display user modifications to layer list if present. ### 0.0.5 - Exported mbtiles/seria...
Changelog ========= ### 0.0.5 - Fixes for conflicting keybindings. - Windows installer is now signed with the Mapbox cert. - Windows installer now bundles Visual C++ (2013) runtimes. - Style UI: Display user modifications to layer list if present. - Shell: fix for export/saveas dialog of jpeg images. ### 0.0.5 - Ex...
<|file_sep|>original/CHANGELOG.md Changelog ========= ### 0.0.5 - Fixes for conflicting keybindings. - Windows installer is now signed with the Mapbox cert. - Windows installer now bundles Visual C++ (2013) runtimes. - Style UI: Display user modifications to layer list if present. ### 0.0.5 - Exported mbtiles/seria...
ffd614d1906d0b3bf0f753d5b1cb3c54c315cea9
CHANGELOG.md
CHANGELOG.md
Markdown
<|file_sep|>rack-pretty_json.gemspec.diff original: s.authors = ["Thibaut Barrère", "Jérémy Lecour"] s.email = ["thibaut.barrere@gmail.com"] s.homepage = "" s.summary = %q{TODO: Write a gem summary} s.description = %q{TODO: Write a gem description} updated: s.authors = ["Thibaut Barrèr...
Gem::Specification.new do |s| s.name = "rack-pretty_json" s.version = Rack::PrettyJSON::VERSION s.authors = ["Thibaut Barrère", "Jérémy Lecour", "Vincent Spehner"] s.email = ["thibaut.barrere@gmail.com", "jeremy.lecour@gmail.com", "vzmind@gmail.com"] s.homepage = "https://github.com/t...
<|file_sep|>rack-pretty_json.gemspec.diff original: s.authors = ["Thibaut Barrère", "Jérémy Lecour"] s.email = ["thibaut.barrere@gmail.com"] s.homepage = "" s.summary = %q{TODO: Write a gem summary} s.description = %q{TODO: Write a gem description} updated: s.authors = ["Thibaut Barrèr...
f353ccf1d792b761cec70821fe42d32090d7c3ab
rack-pretty_json.gemspec
rack-pretty_json.gemspec
Ruby
<|file_sep|>original/bootstrap.sh #! bin/bash # Remove crap sudo apt-get remove unity-lens-shopping unity-scope-musicstores # Install packages sudo apt-get install git python-dev build-essential libjpeg-dev libpng12-dev zsh gnome-shell synapse gparted gimp ubuntu-restricted-extras vlc ttf-mscorefonts-installer sqlite...
#! bin/bash # Remove crap sudo apt-get remove unity-lens-shopping unity-scope-musicstores # Install packages sudo apt-get install git tig python-dev build-essential libjpeg-dev libpng12-dev zsh gnome-shell synapse gparted gimp ubuntu-restricted-extras vlc ttf-mscorefonts-installer sqlite ruby quicksynergy postgresql-...
<|file_sep|>original/bootstrap.sh #! bin/bash # Remove crap sudo apt-get remove unity-lens-shopping unity-scope-musicstores # Install packages sudo apt-get install git python-dev build-essential libjpeg-dev libpng12-dev zsh gnome-shell synapse gparted gimp ubuntu-restricted-extras vlc ttf-mscorefonts-installer sqlite...
c9bcb4e6421663399672903a29b4023c3ea4076d
bootstrap.sh
bootstrap.sh
Shell
<|file_sep|>original/requirements_dev.txt bumpversion==0.5.3 wheel==0.23.0 watchdog==0.8.3 flake8==2.4.1 tox==2.1.1 coverage==4.0 Sphinx==1.3.1 cryptography==1.0.1 PyYAML==3.11 <|file_sep|>current/requirements_dev.txt bumpversion==0.5.3 wheel==0.23.0 watchdog==0.8.3 flake8==2.4.1 tox==2.1.1 coverage==4.0 Sphinx==1.3.1...
bumpversion==0.5.3 wheel==0.23.0 watchdog==0.8.3 flake8==2.4.1 tox==2.1.1 coverage==4.0 Sphinx==1.3.1 cryptography==1.0.1 PyYAML==5.1
<|file_sep|>original/requirements_dev.txt bumpversion==0.5.3 wheel==0.23.0 watchdog==0.8.3 flake8==2.4.1 tox==2.1.1 coverage==4.0 Sphinx==1.3.1 cryptography==1.0.1 PyYAML==3.11 <|file_sep|>current/requirements_dev.txt bumpversion==0.5.3 wheel==0.23.0 watchdog==0.8.3 flake8==2.4.1 tox==2.1.1 coverage==4.0 Sphinx==1.3.1...
f344545d6ad78ebb7deb43060383a265d7da7af8
requirements_dev.txt
requirements_dev.txt
Text
<|file_sep|>original/app/validators/francis_cms/webmention_validator.rb module FrancisCms class WebmentionValidator < ActiveModel::Validator def validate(record) return record.errors[:base] << 'Webmention source and target must be different.' if source_is_target? end private def source_is_targ...
module FrancisCms class WebmentionValidator < ActiveModel::Validator def validate(record) if record.source.sub(/^https?:\/\//, '') == record.target.sub(/^https?:\/\//, '') record.errors[:base] << 'Webmention source and target must be different.' end end end end
<|file_sep|>original/app/validators/francis_cms/webmention_validator.rb module FrancisCms class WebmentionValidator < ActiveModel::Validator def validate(record) return record.errors[:base] << 'Webmention source and target must be different.' if source_is_target? end private def source_is_targ...
0a878ff4a7ef47165ce10208a9789f759f6b849a
app/validators/francis_cms/webmention_validator.rb
app/validators/francis_cms/webmention_validator.rb
Ruby
<|file_sep|>original/bnw_handlers/command_register.py if name=='anonymous': defer.returnValue( dict(ok=False,desc=u'You aren''t anonymous.') ) user=objs.User({ 'id': uuid4().hex, 'name': name, 'login_key':...
defer.returnValue( dict(ok=False,desc=u'You aren''t anonymous.') ) user=objs.User({ 'id': uuid4().hex, 'name': name, 'login_key': uuid4().hex, 'regdate': int(time.time()), 'jid': ...
<|file_sep|>original/bnw_handlers/command_register.py if name=='anonymous': defer.returnValue( dict(ok=False,desc=u'You aren''t anonymous.') ) user=objs.User({ 'id': uuid4().hex, 'name': name, 'login_key':...
dd444029abd63da594a36f52efbbc72851ac344f
bnw_handlers/command_register.py
bnw_handlers/command_register.py
Python
<|file_sep|>original/zsh/aliases.zsh alias reload!='. ~/.zshrc' alias goreef='cd ~/Programming/brightline/reef' alias wds='webpack-dev-server' <|file_sep|>current/zsh/aliases.zsh alias reload!='. ~/.zshrc' alias goreef='cd ~/Programming/brightline/reef' alias wds='webpack-dev-server' <|file_sep|>updated/zsh/aliases.z...
alias reload!='. ~/.zshrc' alias gobl="cd ~/Programming/brightline" alias goreef='cd ~/Programming/brightline/reef' alias wds='webpack-dev-server'
<|file_sep|>original/zsh/aliases.zsh alias reload!='. ~/.zshrc' alias goreef='cd ~/Programming/brightline/reef' alias wds='webpack-dev-server' <|file_sep|>current/zsh/aliases.zsh alias reload!='. ~/.zshrc' alias goreef='cd ~/Programming/brightline/reef' alias wds='webpack-dev-server' <|file_sep|>updated/zsh/aliases.z...
53f02d9aa622c97ff001a723047da9b64f719f6b
zsh/aliases.zsh
zsh/aliases.zsh
Shell
<|file_sep|>original/README.markdown Watchman exists to watch files and record when they actually change. It can also trigger actions (such as rebuilding assets) when matching files change. ## Documentation Head on over to https://facebook.github.io/watchman/ ## Build Status ](https://travis-ci.org/facebook/watch...
Watchman exists to watch files and record when they actually change. It can also trigger actions (such as rebuilding assets) when matching files change. ## Documentation Head on over to https://facebook.github.io/watchman/ ## Build Status [![Build Status](https://github.com/facebook/watchman/workflows/CI/badge.sv...
<|file_sep|>original/README.markdown Watchman exists to watch files and record when they actually change. It can also trigger actions (such as rebuilding assets) when matching files change. ## Documentation Head on over to https://facebook.github.io/watchman/ ## Build Status ](https://travis-ci.org/facebook/watch...
e41f74b96ac945909e9edd72c4d85f439a084c58
README.markdown
README.markdown
Markdown
<|file_sep|>original/.github/workflows/merge-dependabot-upgrades.yml # only by dependabot, once the other CI workflows pass name: Auto-merge Dependabot PRs on: workflow_run: types: - completed workflows: - "Continuous Integration" jobs: merge-me: name: Auto-merge Dependabot PRs runs-on...
# only by dependabot, once the other CI workflows pass name: Auto-merge Dependabot PRs on: workflow_run: types: - completed workflows: - "Continuous Integration" jobs: merge-me: name: Auto-merge Dependabot PRs runs-on: ubuntu-latest steps: - name: Auto-Merge if: ${{ g...
<|file_sep|>original/.github/workflows/merge-dependabot-upgrades.yml # only by dependabot, once the other CI workflows pass name: Auto-merge Dependabot PRs on: workflow_run: types: - completed workflows: - "Continuous Integration" jobs: merge-me: name: Auto-merge Dependabot PRs runs-on...
1438d18b11d28bcfc82974e7ae245cc5787da921
.github/workflows/merge-dependabot-upgrades.yml
.github/workflows/merge-dependabot-upgrades.yml
YAML
<|file_sep|>original/lib/rails_patch/renderfix.rb "../themes/#{config[:theme]}/views", # for components "../../themes/#{config[:theme]}/views", # for normal views "." # fallback ] if use_full_path search_path.each do |prefix| ...
"../../themes/#{config[:theme]}/views", # for normal views "." # fallback ] if use_full_path search_path.each do |prefix| theme_path = prefix+'/'+template_path begin template_extension = pick_template_extens...
<|file_sep|>original/lib/rails_patch/renderfix.rb "../themes/#{config[:theme]}/views", # for components "../../themes/#{config[:theme]}/views", # for normal views "." # fallback ] if use_full_path search_path.each do |prefix| ...
a3aa8c5d4e89b585e213e436e3714811c9ff6f3d
lib/rails_patch/renderfix.rb
lib/rails_patch/renderfix.rb
Ruby
<|file_sep|>original/readme.md # Grunt Sass Lint [Grunt](http://gruntjs.com/) plugin for [Sass Lint](https://github.com/sasstools/sass-lint). ## Install ``` npm install grunt-sass-lint --save-dev ``` ## Examples ```js grunt.initConfig({ sasslint: { options: { configFile: 'config/.sass-lint.yml', }, target...
# Grunt Sass Lint [Grunt](http://gruntjs.com/) plugin for [Sass Lint](https://github.com/sasstools/sass-lint). ## Install ``` npm install grunt-sass-lint --save-dev ``` Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript: ``` grunt.loadNpmTasks('grunt-sass-lint'...
<|file_sep|>original/readme.md # Grunt Sass Lint [Grunt](http://gruntjs.com/) plugin for [Sass Lint](https://github.com/sasstools/sass-lint). ## Install ``` npm install grunt-sass-lint --save-dev ``` ## Examples ```js grunt.initConfig({ sasslint: { options: { configFile: 'config/.sass-lint.yml', }, target...
43ef6bc110a28670a7a97a433373222acc990944
readme.md
readme.md
Markdown
<|file_sep|>original/temp/0.47.1-relnotes.md <|file_sep|>current/temp/0.47.1-relnotes.md <|file_sep|>updated/temp/0.47.1-relnotes.md
This is a bug-fix release with a couple of important fixes. Hugo now has: * 28045+ [stars](https://github.com/gohugoio/hugo/stargazers) * 442+ [contributors](https://github.com/gohugoio/hugo/graphs/contributors) * 250+ [themes](http://themes.gohugo.io/) ## Enhancements ### Other * Remove unused files from Git, ...
<|file_sep|>original/temp/0.47.1-relnotes.md <|file_sep|>current/temp/0.47.1-relnotes.md <|file_sep|>updated/temp/0.47.1-relnotes.md This is a bug-fix release with a couple of important fixes. Hugo now has: * 28045+ [stars](https://github.com/gohugoio/hugo/stargazers) * 442+ [contributors](https://github.com/goh...
57ace857aac3d9565aca20ba2a92a3dc407644f7
temp/0.47.1-relnotes.md
temp/0.47.1-relnotes.md
Markdown
<|file_sep|>original/composer.json { "name": "Márk Sági-Kazár", "email": "mark.sagikazar@gmail.com" } ], "require": { "php": ">=5.4", "psr/http-message": "^1.0" }, "require-dev": { "phpspec/phpspec": "^2.2", "henrikbjorn/phpspec-cod...
{ "name": "Márk Sági-Kazár", "email": "mark.sagikazar@gmail.com" } ], "require": { "php": ">=5.4", "psr/http-message": "^1.0" }, "require-dev": { "phpspec/phpspec": "^2.4@dev", "henrikbjorn/phpspec-code-coverage" : "^1.0" }, ...
<|file_sep|>original/composer.json { "name": "Márk Sági-Kazár", "email": "mark.sagikazar@gmail.com" } ], "require": { "php": ">=5.4", "psr/http-message": "^1.0" }, "require-dev": { "phpspec/phpspec": "^2.2", "henrikbjorn/phpspec-cod...
549d0792ec7a781bc3582b9e29827eee3867df93
composer.json
composer.json
JSON
<|file_sep|>original/js/clockRunKiller.js } /* Makes a client the owner of the second counter */ function makeMaster () { s.intervalControler.newInterval('secondIncrement', shouldUpdateSeconds, 1000) s.intervalControler.newInterval('shouldDoNextPeriod', s.periodControl.shouldDoNextPeriod, 100) } /*...
} /* Makes a client the owner of the second counter */ function makeMaster () { s.intervalControler.newInterval('secondIncrement', shouldUpdateSeconds, 1000) s.intervalControler.newInterval('shouldDoNextPeriod', s.periodControl.shouldDoNextPeriod, 100) } /* Increments seconds if the clocks running ...
<|file_sep|>original/js/clockRunKiller.js } /* Makes a client the owner of the second counter */ function makeMaster () { s.intervalControler.newInterval('secondIncrement', shouldUpdateSeconds, 1000) s.intervalControler.newInterval('shouldDoNextPeriod', s.periodControl.shouldDoNextPeriod, 100) } /*...
19634b8dfae3b1ab4aaa5404c00d4a27f30799c2
js/clockRunKiller.js
js/clockRunKiller.js
JavaScript
<|file_sep|>original/Cargo.toml license = "MIT" readme = "README.rst" keywords = ["io", "loop", "state", "machine", "mio"] homepage = "http://github.com/tailhook/rotor" documentation = "http://tailhook.github.com/rotor/" version = "0.6.3" authors = ["paul@colomiets.name"] [dependencies] mio = "0.5" quick-error = "0.2....
license = "MIT" readme = "README.rst" keywords = ["io", "loop", "state", "machine", "mio"] homepage = "http://github.com/tailhook/rotor" documentation = "http://tailhook.github.com/rotor/" version = "0.6.3" authors = ["paul@colomiets.name"] [dependencies] mio = "0.5" quick-error = "1.0.0" time = "0.1.34" log = "0.3.1"...
<|file_sep|>original/Cargo.toml license = "MIT" readme = "README.rst" keywords = ["io", "loop", "state", "machine", "mio"] homepage = "http://github.com/tailhook/rotor" documentation = "http://tailhook.github.com/rotor/" version = "0.6.3" authors = ["paul@colomiets.name"] [dependencies] mio = "0.5" quick-error = "0.2....
0905f3d2acfc62fbc8084bbba2b3401915827584
Cargo.toml
Cargo.toml
TOML
<|file_sep|>project.clj.diff original: [lein-release "1.0.5" :exclusions [org.clojure/clojure]] updated: [lein-release "1.0.6" :exclusions [org.clojure/clojure]] <|file_sep|>original/project.clj :description "A Leiningen plugin for running JS code through JSHint." :url "https://github.com/vb...
:description "A Leiningen plugin for running JS code through JSHint." :url "https://github.com/vbauer/lein-jshint" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.6.0"] [clj-glob "1.0.0" :exclusions [...
<|file_sep|>project.clj.diff original: [lein-release "1.0.5" :exclusions [org.clojure/clojure]] updated: [lein-release "1.0.6" :exclusions [org.clojure/clojure]] <|file_sep|>original/project.clj :description "A Leiningen plugin for running JS code through JSHint." :url "https://github.com/vb...
417bb66858b0288952ab3eb938172ddd4ac58f92
project.clj
project.clj
Clojure
<|file_sep|>original/parity-client/README.md [Releases]: https://github.com/jvirtanen/parity/wiki/Releases Usage ----- Run Parity Terminal Client with Java: java -jar <executable> <configuration-file> Development ----------- See the [Developer Guide](../HACKING.md). License ------- Parity Terminal Clien...
[Releases]: https://github.com/jvirtanen/parity/wiki/Releases Usage ----- Run Parity Terminal Client with Java: java -jar <executable> <configuration-file> When started, the terminal client displays a command prompt: Type 'help' for help. > You can interact with the terminal client by entering comm...
<|file_sep|>original/parity-client/README.md [Releases]: https://github.com/jvirtanen/parity/wiki/Releases Usage ----- Run Parity Terminal Client with Java: java -jar <executable> <configuration-file> Development ----------- See the [Developer Guide](../HACKING.md). License ------- Parity Terminal Clien...
975901293158ba77ed7c78ffecbe39bb121374af
parity-client/README.md
parity-client/README.md
Markdown
<|file_sep|>original/website/gatsby-config.js { resolve: `gatsby-source-filesystem`, options: { name: `content`, path: `${__dirname}/../content`, }, }, { resolve: `gatsby-plugin-manifest`, options: { icon: `${__dirname}/src/images/kitura.svg` }, ...
{ resolve: `gatsby-source-filesystem`, options: { name: `content`, path: `${__dirname}/../content`, }, }, { resolve: `gatsby-plugin-manifest`, options: { icon: `src/images/kitura.svg` }, }, { resolve: `gatsby-transformer-remark`, ...
<|file_sep|>original/website/gatsby-config.js { resolve: `gatsby-source-filesystem`, options: { name: `content`, path: `${__dirname}/../content`, }, }, { resolve: `gatsby-plugin-manifest`, options: { icon: `${__dirname}/src/images/kitura.svg` }, ...
515bb10c47efffa3c6a6de09339774154bcb7506
website/gatsby-config.js
website/gatsby-config.js
JavaScript
<|file_sep|>original/requirements-dev.txt -r requirements.txt coverage==4.5.1 Faker==0.8.16 flake8==3.5.0 freezegun==0.3.10 mccabe==0.6.1 model-mommy==1.6.0 py==1.5.4 pycodestyle==2.3.1 pyflakes==2.0.0 pytest-cov==2.5.1 pytest-django==3.3.0 pytest-freezegun==0.2.0 pytest-mock==1.10.0 pytest==3.6.2 text_unidecode==1.2 <...
-r requirements.txt coverage==4.5.1 Faker==0.8.16 flake8==3.5.0 freezegun==0.3.10 mccabe==0.6.1 model-mommy==1.6.0 py==1.5.4 pycodestyle==2.3.1 pyflakes==2.0.0 pytest-cov==2.5.1 pytest-django==3.3.2 pytest-freezegun==0.2.0 pytest-mock==1.10.0 pytest==3.6.2 text_unidecode==1.2
<|file_sep|>original/requirements-dev.txt -r requirements.txt coverage==4.5.1 Faker==0.8.16 flake8==3.5.0 freezegun==0.3.10 mccabe==0.6.1 model-mommy==1.6.0 py==1.5.4 pycodestyle==2.3.1 pyflakes==2.0.0 pytest-cov==2.5.1 pytest-django==3.3.0 pytest-freezegun==0.2.0 pytest-mock==1.10.0 pytest==3.6.2 text_unidecode==1.2 <...
4a0bdf97c05e2737ebdb2e03f40ebd47ae086c35
requirements-dev.txt
requirements-dev.txt
Text
<|file_sep|>original/gradle/wrapper/gradle-wrapper.properties distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionSha256Sum=9af5c8e7e2cd1a3b0f694a4ac262b9f38c75262e74a9e8b5101af302a6beadd7 distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-all.zip zipStoreBase=GRADLE_USER_H...
distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionSha256Sum=81003f83b0056d20eedf48cddd4f52a9813163d4ba185bcf8abd34b8eeea4cbd distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-all.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists
<|file_sep|>original/gradle/wrapper/gradle-wrapper.properties distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionSha256Sum=9af5c8e7e2cd1a3b0f694a4ac262b9f38c75262e74a9e8b5101af302a6beadd7 distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-all.zip zipStoreBase=GRADLE_USER_H...
dea3149f479b31bba8c3eca5a2192b5b104d3dff
gradle/wrapper/gradle-wrapper.properties
gradle/wrapper/gradle-wrapper.properties
INI
<|file_sep|>original/metadata.rb name 'ohai' maintainer 'Chef Software, Inc.' maintainer_email 'cookbooks@chef.io' license 'Apache 2.0' description 'Provides custom resources for installing Ohai hints and plugins' long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) version '2.1.0' %w(ubuntu debian...
name 'ohai' maintainer 'Chef Software, Inc.' maintainer_email 'cookbooks@chef.io' license 'Apache 2.0' description 'Provides custom resources for installing Ohai hints and plugins' long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) version '2.1.0' %w(ubuntu debian centos redhat amazon scientific ...
<|file_sep|>original/metadata.rb name 'ohai' maintainer 'Chef Software, Inc.' maintainer_email 'cookbooks@chef.io' license 'Apache 2.0' description 'Provides custom resources for installing Ohai hints and plugins' long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) version '2.1.0' %w(ubuntu debian...
577935610dbbae3e75ceee19391893e9d3a81467
metadata.rb
metadata.rb
Ruby
<|file_sep|>original/tests/azure/pipeline-swiftshader.yml jobs: - template: job-swiftshader.yml parameters: vmImage: ubuntu-18.04 os: linux swiftshaderRepo: ${{ parameters.swiftshaderRepo }} swiftshaderBranch: ${{ parameters.swiftshaderBranch }} - template: job-swiftshader.yml parameters: vmIma...
jobs: - template: job-swiftshader.yml parameters: vmImage: ubuntu-18.04 os: linux swiftshaderRepo: ${{ parameters.swiftshaderRepo }} swiftshaderBranch: ${{ parameters.swiftshaderBranch }} - template: job-swiftshader.yml parameters: vmImage: macOS-10.15 os: osx swiftshaderRepo: ${{ param...
<|file_sep|>original/tests/azure/pipeline-swiftshader.yml jobs: - template: job-swiftshader.yml parameters: vmImage: ubuntu-18.04 os: linux swiftshaderRepo: ${{ parameters.swiftshaderRepo }} swiftshaderBranch: ${{ parameters.swiftshaderBranch }} - template: job-swiftshader.yml parameters: vmIma...
448816cd2b523a5205e740d0e84221a32139cca6
tests/azure/pipeline-swiftshader.yml
tests/azure/pipeline-swiftshader.yml
YAML
<|file_sep|>original/pi-setup/pi-setup-robot.sh PRESERVE $SUPPLICANT FRESH $SUPPLICANT cat <<EOF >> $SUPPLICANT network={ ssid="studiobot" psk="lightballet" proto=RSN key_mgmt=WPA-PSK pairwise=CCMP auth_alg=OPEN } EOF # Pull down the wifi joining script and run it. wget --no-check-certificate -O pi-robot-join-wifi.sh ...
proto=RSN key_mgmt=WPA-PSK pairwise=CCMP auth_alg=OPEN } EOF # Pull down the wifi joining script and run it. wget --no-check-certificate -O pi-robot-join-wifi.sh https://raw.githubusercontent.com/mitmuseumstudio/RoboticLightBallet/master/pi-setup/pi-robot-join-wifi.sh chmod +x ./pi-robot-join-wifi.sh # This will run...
<|file_sep|>original/pi-setup/pi-setup-robot.sh PRESERVE $SUPPLICANT FRESH $SUPPLICANT cat <<EOF >> $SUPPLICANT network={ ssid="studiobot" psk="lightballet" proto=RSN key_mgmt=WPA-PSK pairwise=CCMP auth_alg=OPEN } EOF # Pull down the wifi joining script and run it. wget --no-check-certificate -O pi-robot-join-wifi.sh ...
df11b4427237f5f2417770240439497008ba9c20
pi-setup/pi-setup-robot.sh
pi-setup/pi-setup-robot.sh
Shell
<|file_sep|>original/sweetercat/data/requirements.txt numpy==1.22.0 pyyaml>=4.2b1 pandas==1.3.5 scipy==1.7.3 astropy==5.0 matplotlib==3.5.0 tables==3.6.1 <|file_sep|>current/sweetercat/data/requirements.txt numpy==1.22.0 pyyaml>=4.2b1 pandas==1.3.5 scipy==1.7.3 astropy==5.0 matplotlib==3.5.0 tables==3.6.1 <|file_sep|>u...
numpy==1.22.0 pyyaml>=4.2b1 pandas==1.3.5 scipy==1.7.3 astropy==5.0 matplotlib==3.5.1 tables==3.6.1
<|file_sep|>original/sweetercat/data/requirements.txt numpy==1.22.0 pyyaml>=4.2b1 pandas==1.3.5 scipy==1.7.3 astropy==5.0 matplotlib==3.5.0 tables==3.6.1 <|file_sep|>current/sweetercat/data/requirements.txt numpy==1.22.0 pyyaml>=4.2b1 pandas==1.3.5 scipy==1.7.3 astropy==5.0 matplotlib==3.5.0 tables==3.6.1 <|file_sep|>u...
0f6b950cb9766c9fbce65dbf64b1f4d8780cec03
sweetercat/data/requirements.txt
sweetercat/data/requirements.txt
Text
<|file_sep|>original/lib/ember/es6_template/sprockets2/es6module.rb def prepare; end def evaluate(scope, locals, &block) env = scope.environment result = Babel::Transpiler.transform(data, 'modules' => 'amdStrict', 'moduleIds' => true, 'sourceRoot' => env.root...
def prepare; end def evaluate(scope, locals, &block) env = scope.environment result = Babel::Transpiler.transform(data, 'modules' => 'amdStrict', 'moduleIds' => true, 'sourceRoot' => env.root, 'moduleRoot' => nil, 'filename' => module_name...
<|file_sep|>original/lib/ember/es6_template/sprockets2/es6module.rb def prepare; end def evaluate(scope, locals, &block) env = scope.environment result = Babel::Transpiler.transform(data, 'modules' => 'amdStrict', 'moduleIds' => true, 'sourceRoot' => env.root...
18c97c15eace5141ffaf2cf813b98c0cdaad1955
lib/ember/es6_template/sprockets2/es6module.rb
lib/ember/es6_template/sprockets2/es6module.rb
Ruby
<|file_sep|>original/spec/lib/request/strategy_spec.rb <|file_sep|>current/spec/lib/request/strategy_spec.rb <|file_sep|>updated/spec/lib/request/strategy_spec.rb
require 'spec_helper' require 'doorkeeper/request/strategy' module Doorkeeper module Request describe Strategy do let(:server) { double } subject(:strategy) { Strategy.new(server) } describe :initialize do it "sets the server attribute" do expect(strategy.server).to eq server...
<|file_sep|>original/spec/lib/request/strategy_spec.rb <|file_sep|>current/spec/lib/request/strategy_spec.rb <|file_sep|>updated/spec/lib/request/strategy_spec.rb require 'spec_helper' require 'doorkeeper/request/strategy' module Doorkeeper module Request describe Strategy do let(:server) { double } ...
4b0e5ef8ae4f27d7ce17ce8adc717118c1b072d4
spec/lib/request/strategy_spec.rb
spec/lib/request/strategy_spec.rb
Ruby
<|file_sep|>original/src/components/LoginForm.js class LoginForm extends Component { render() { return ( <form onSubmit={this.props.handleSubmit}> <div> <label htmlFor="email">Email: </label> <Field name="email" component="input" type="text" /> </div> <div> ...
class LoginForm extends Component { render() { return ( <form onSubmit={this.props.handleSubmit}> <div> <label htmlFor="email">Email: </label> <Field name="email" component="input" type="text" /> </div> <div> <label htmlFor="password">Password: </label> ...
<|file_sep|>original/src/components/LoginForm.js class LoginForm extends Component { render() { return ( <form onSubmit={this.props.handleSubmit}> <div> <label htmlFor="email">Email: </label> <Field name="email" component="input" type="text" /> </div> <div> ...
ee609ce5f752ffdcc6cc3a1d265597a997dabacd
src/components/LoginForm.js
src/components/LoginForm.js
JavaScript
<|file_sep|>original/.travis.yml language: node_js sudo: false node_js: - '0.10' before_script: ./node_modules/.bin/gulp deploy: provider: s3 access_key_id: AKIAIT4X4NDGM2WVL6VA secret_access_key: secure: Q5Ns7G3ibVV8HrpI1GeZbypETL/MEywN0PuSljmW+0aYCERNgKqgU0Uy8AJrCy/ymfyCzmB+MD62Urq3ZCqWyVeVYJcKpYL518IlnOtv6...
language: node_js sudo: false node_js: - '0.10' before_script: ./node_modules/.bin/gulp deploy: provider: s3 access_key_id: AKIAIT4X4NDGM2WVL6VA secret_access_key: secure: Q5Ns7G3ibVV8HrpI1GeZbypETL/MEywN0PuSljmW+0aYCERNgKqgU0Uy8AJrCy/ymfyCzmB+MD62Urq3ZCqWyVeVYJcKpYL518IlnOtv6KI2GXJgQ2eGFJSX5jw7fKvCh9Le0nw9TP...
<|file_sep|>original/.travis.yml language: node_js sudo: false node_js: - '0.10' before_script: ./node_modules/.bin/gulp deploy: provider: s3 access_key_id: AKIAIT4X4NDGM2WVL6VA secret_access_key: secure: Q5Ns7G3ibVV8HrpI1GeZbypETL/MEywN0PuSljmW+0aYCERNgKqgU0Uy8AJrCy/ymfyCzmB+MD62Urq3ZCqWyVeVYJcKpYL518IlnOtv6...
a445188582b89435ba861b950c604904994bc38a
.travis.yml
.travis.yml
YAML
<|file_sep|>original/workbox.config.js const path = require('path'); const BUILD_DIR = 'build'; module.exports = { globDirectory: BUILD_DIR, globPatterns: ['/', '**/*.{html,js,css,woff2,webmanifest}'], swSrc: path.join(BUILD_DIR, 'service-worker.js'), swDest: path.join(BUILD_DIR, 'service-worker.js'), mode:...
const path = require('path'); const BUILD_DIR = 'build'; module.exports = { globDirectory: BUILD_DIR, globPatterns: ['/', '**/*.{js,css,woff2,webmanifest}'], swSrc: path.join(BUILD_DIR, 'service-worker.js'), swDest: path.join(BUILD_DIR, 'service-worker.js'), mode: 'production', };
<|file_sep|>original/workbox.config.js const path = require('path'); const BUILD_DIR = 'build'; module.exports = { globDirectory: BUILD_DIR, globPatterns: ['/', '**/*.{html,js,css,woff2,webmanifest}'], swSrc: path.join(BUILD_DIR, 'service-worker.js'), swDest: path.join(BUILD_DIR, 'service-worker.js'), mode:...
f6f772cf69611eaadc29527b230a62c66af2a8cd
workbox.config.js
workbox.config.js
JavaScript
<|file_sep|>original/test/end-to-end/browser/add.prisoner.spec.js import DashboardPage from './pages/Dashboard.page'; import { givenThatTheOfficerIsSignedInWithoutLoadingData } from './tasks/officerSignsIn.task'; import whenTheOfficerAddsThePrisonersDetails from './tasks/theOfficerAddsThePrisonersDetails.task'; functi...
import DashboardPage from './pages/Dashboard.page'; import { givenThatTheOfficerIsSignedInWithoutLoadingData } from './tasks/officerSignsIn.task'; import whenTheOfficerAddsThePrisonersDetails from './tasks/theOfficerAddsThePrisonersDetails.task'; function thenThePrisonerIsAvailableToAssess() { expect(DashboardPage.w...
<|file_sep|>original/test/end-to-end/browser/add.prisoner.spec.js import DashboardPage from './pages/Dashboard.page'; import { givenThatTheOfficerIsSignedInWithoutLoadingData } from './tasks/officerSignsIn.task'; import whenTheOfficerAddsThePrisonersDetails from './tasks/theOfficerAddsThePrisonersDetails.task'; functi...
4541bd71e483fdf036f444e4351207b910992aad
test/end-to-end/browser/add.prisoner.spec.js
test/end-to-end/browser/add.prisoner.spec.js
JavaScript
<|file_sep|>original/README.md Introduction ===== BigFiles - Very-large-file support for distributed storage systems. Architecture ===== ## Diagram <center> <img src="https://github.com/Harshavardhana/BigFiles/raw/master/BigFiles-Architecture.png" alt="BigFiles Architecture Diagram"> </center> BigFile Format ===== ...
Introduction ===== BigFiles - Very-large-file support for distributed storage systems. Architecture ===== ## Diagram <center> <img src="https://github.com/BigFiles/BigFiles/raw/master/BigFiles-Architecture.png" alt="BigFiles Architecture Diagram"> </center> BigFile Format ===== Command-line Interface ===== Get/Put...
<|file_sep|>original/README.md Introduction ===== BigFiles - Very-large-file support for distributed storage systems. Architecture ===== ## Diagram <center> <img src="https://github.com/Harshavardhana/BigFiles/raw/master/BigFiles-Architecture.png" alt="BigFiles Architecture Diagram"> </center> BigFile Format ===== ...
b56a85a5fa5998b5678ecd75cd46def0fec783af
README.md
README.md
Markdown
<|file_sep|>original/.travis.yml language: ruby rvm: - 2.0.0 - 1.9.3 <|file_sep|>current/.travis.yml language: ruby rvm: - 2.0.0 - 1.9.3 <|file_sep|>updated/.travis.yml
language: ruby rvm: - 2.1.0 - 2.0.0 - 1.9.3
<|file_sep|>original/.travis.yml language: ruby rvm: - 2.0.0 - 1.9.3 <|file_sep|>current/.travis.yml language: ruby rvm: - 2.0.0 - 1.9.3 <|file_sep|>updated/.travis.yml language: ruby rvm: - 2.1.0 - 2.0.0 - 1.9.3
85b5a5f4be8ccc8da4cc82d96ab6170c20162fc3
.travis.yml
.travis.yml
YAML
<|file_sep|>lib/plugins/completer.coffee.diff original: fs = require 'fs' path = require 'path' updated: <|file_sep|>original/lib/plugins/completer.coffee fs = require 'fs' path = require 'path' module.exports = (settings) -> # Validation throw new Error 'No shell provided' if not settings.shell shell =...
module.exports = (settings) -> # Validation throw new Error 'No shell provided' if not settings.shell shell = settings.shell # Plug completer to interface shell.interface.completer = (text) -> suggestions = [] routes = shell.routes for route in routes command = r...
<|file_sep|>lib/plugins/completer.coffee.diff original: fs = require 'fs' path = require 'path' updated: <|file_sep|>original/lib/plugins/completer.coffee fs = require 'fs' path = require 'path' module.exports = (settings) -> # Validation throw new Error 'No shell provided' if not settings.shell shell =...
29230efa548e5aae29fd87a115d45867a147598c
lib/plugins/completer.coffee
lib/plugins/completer.coffee
CoffeeScript
<|file_sep|>original/core/cb.project/parse/index.js var path = require("path"); module.exports = { id: "parse", name: "Parse", sample: path.resolve(__dirname, "sample"), detector: path.resolve(__dirname, "detector.sh"), runner: [ { id: "run", script: path.resolve(__...
var path = require("path"); module.exports = { id: "parse", name: "Parse", otherIds: ["mobile"], sample: path.resolve(__dirname, "sample"), detector: path.resolve(__dirname, "detector.sh"), runner: [ { id: "run", script: path.resolve(__dirname, "run.sh") ...
<|file_sep|>original/core/cb.project/parse/index.js var path = require("path"); module.exports = { id: "parse", name: "Parse", sample: path.resolve(__dirname, "sample"), detector: path.resolve(__dirname, "detector.sh"), runner: [ { id: "run", script: path.resolve(__...
1012fb705859f61eb097f34a258050b837a593df
core/cb.project/parse/index.js
core/cb.project/parse/index.js
JavaScript
<|file_sep|>original/txircd/modules/core/channel_defaultmodes.py <|file_sep|>current/txircd/modules/core/channel_defaultmodes.py <|file_sep|>updated/txircd/modules/core/channel_defaultmodes.py
from twisted.plugin import IPlugin from txircd.module_interface import IModuleData, ModuleData from txircd.utils import ModeType from zope.interface import implements class DefaultModes(ModuleData): implements(IPlugin, IModuleData) name = "DefaultModes" core = True def hookIRCd(self, ircd): ...
<|file_sep|>original/txircd/modules/core/channel_defaultmodes.py <|file_sep|>current/txircd/modules/core/channel_defaultmodes.py <|file_sep|>updated/txircd/modules/core/channel_defaultmodes.py from twisted.plugin import IPlugin from txircd.module_interface import IModuleData, ModuleData from txircd.utils import ModeT...
40212c8cea43e5adfc2ba30f18182480dea481b2
txircd/modules/core/channel_defaultmodes.py
txircd/modules/core/channel_defaultmodes.py
Python
<|file_sep|>original/_posts/2016-08-01-gerer-dotfiles-gnu-stow.md <|file_sep|>current/_posts/2016-08-01-gerer-dotfiles-gnu-stow.md <|file_sep|>updated/_posts/2016-08-01-gerer-dotfiles-gnu-stow.md
--- layout: post title: Gérer ses dotfiles avec GNU Stow --- De nombreux logiciels enregistrent leurs préférences dans des fichiers textes, en tout cas sur les systèmes d'exploitation de type UNIX/Linux, les logiciels Windows utilisant plutôt la base de registre. Ces fichiers sont généralement sauvegardés dans le r...
<|file_sep|>original/_posts/2016-08-01-gerer-dotfiles-gnu-stow.md <|file_sep|>current/_posts/2016-08-01-gerer-dotfiles-gnu-stow.md <|file_sep|>updated/_posts/2016-08-01-gerer-dotfiles-gnu-stow.md --- layout: post title: Gérer ses dotfiles avec GNU Stow --- De nombreux logiciels enregistrent leurs préférences dans de...
4c05d11e51b4b919415b2499c251998337cd4870
_posts/2016-08-01-gerer-dotfiles-gnu-stow.md
_posts/2016-08-01-gerer-dotfiles-gnu-stow.md
Markdown
<|file_sep|>original/adapt_cluster_provisioning/roles/msgfplus/tasks/main.yml --- # MSGF+ installation - name: Install MSGFPlus build packages apt: pkg={{ msgfplus_build_packages }} state=installed - name: Fetch MSGFPlus java package get_url: url={{ msgf_url }} dest=/tmp/msgfplus.zip - name: Unzip MSGFPlus com...
--- # MSGF+ installation - name: Install MSGFPlus build packages apt: pkg={{ item }} state=installed with_items: msgfplus_build_packages - name: Fetch MSGFPlus java package get_url: url={{ msgf_url }} dest=/tmp/msgfplus.zip - name: Unzip MSGFPlus command: unzip /tmp/msgfplus.zip MSGFPlus.jar -d /tmp/ create...
<|file_sep|>original/adapt_cluster_provisioning/roles/msgfplus/tasks/main.yml --- # MSGF+ installation - name: Install MSGFPlus build packages apt: pkg={{ msgfplus_build_packages }} state=installed - name: Fetch MSGFPlus java package get_url: url={{ msgf_url }} dest=/tmp/msgfplus.zip - name: Unzip MSGFPlus com...
5b33a617355f09a9b7a189d1c774351f2fed44d6
adapt_cluster_provisioning/roles/msgfplus/tasks/main.yml
adapt_cluster_provisioning/roles/msgfplus/tasks/main.yml
YAML
<|file_sep|>original/index.js 'use strict'; var kmp = require('kmp-matcher').kmp; module.exports = function (query) { if (!query.length) { return []; } var xpathResult = document.evaluate('//text()[contains(.,"' + query + '")]', document, null, XPathResult.ANY_TYPE, n...
'use strict'; var kmp = require('kmp-matcher').kmp; module.exports = function (query) { if (!query.length) { return []; } if (query.indexOf('"') >= 0) { throw new Error('Unimplemented: can\'t match &quot;'); } var xpathResult = document.evaluate('//text()[contains(.,"' + query + '")]', ...
<|file_sep|>original/index.js 'use strict'; var kmp = require('kmp-matcher').kmp; module.exports = function (query) { if (!query.length) { return []; } var xpathResult = document.evaluate('//text()[contains(.,"' + query + '")]', document, null, XPathResult.ANY_TYPE, n...
7f3bdf1e98c74ee2a570836de2b391c6f974cc32
index.js
index.js
JavaScript
<|file_sep|>original/bot/setup.py PACKAGE_NAME = "ReviewBot" VERSION = "0.1" setup(name=PACKAGE_NAME, version=VERSION, description="ReviewBot, the automated code reviewer", author="Steven MacLeod", author_email="steven@smacleod.ca", packages=find_packages(), entry_points={ ...
PACKAGE_NAME = "ReviewBot" VERSION = "0.1" setup(name=PACKAGE_NAME, version=VERSION, description="ReviewBot, the automated code reviewer", author="Steven MacLeod", author_email="steven@smacleod.ca", packages=find_packages(), entry_points={ 'reviewbot.tools': [ ...
<|file_sep|>original/bot/setup.py PACKAGE_NAME = "ReviewBot" VERSION = "0.1" setup(name=PACKAGE_NAME, version=VERSION, description="ReviewBot, the automated code reviewer", author="Steven MacLeod", author_email="steven@smacleod.ca", packages=find_packages(), entry_points={ ...
0a2dc53cd388f73064bb66e794e3af5f3e48a92f
bot/setup.py
bot/setup.py
Python
<|file_sep|>original/public/css/custom.css .social-media .sidebar-nav-item { display: inline-block; margin-right: 0.7em; } .post-comments-link { display: block; } .related { padding-top: 1rem; border-top: none; } .post-metadata { border-top: 1px solid #eee; } .comments { padding-top: 0rem; } <|file_sep|>curr...
.related { padding-top: 1rem; border-top: none; } .post-metadata { border-top: 1px solid #eee; } .comments { padding-top: 0rem; } @media (min-width: 64em) { .layout-reverse .content { max-width: 100%; margin-left: 4rem; margin-right: 22rem; } }
<|file_sep|>original/public/css/custom.css .social-media .sidebar-nav-item { display: inline-block; margin-right: 0.7em; } .post-comments-link { display: block; } .related { padding-top: 1rem; border-top: none; } .post-metadata { border-top: 1px solid #eee; } .comments { padding-top: 0rem; } <|file_sep|>curr...
c7fb4e77d5ee4ae41026ec2cf2622d764fe1415f
public/css/custom.css
public/css/custom.css
CSS
<|file_sep|>original/spec/palletjack-tool_spec.rb require 'spec_helper' require 'palletjack/tool' describe PalletJack::Tool do it 'is a singleton class' do expect{ PalletJack::Tool.new }.to raise_error NoMethodError expect{ PalletJack::Tool.instance }.not_to raise_error end context 'without a command li...
require 'spec_helper' require 'palletjack/tool' describe PalletJack::Tool do it 'is a singleton class' do expect{ PalletJack::Tool.new }.to raise_error NoMethodError expect{ PalletJack::Tool.instance }.not_to raise_error end it 'does not mask programming errors as usage' do class BrokenTool < Pallet...
<|file_sep|>original/spec/palletjack-tool_spec.rb require 'spec_helper' require 'palletjack/tool' describe PalletJack::Tool do it 'is a singleton class' do expect{ PalletJack::Tool.new }.to raise_error NoMethodError expect{ PalletJack::Tool.instance }.not_to raise_error end context 'without a command li...
285ae1f4d15112b665b585429bcadf13323d4635
spec/palletjack-tool_spec.rb
spec/palletjack-tool_spec.rb
Ruby
<|file_sep|>original/src/main/java/info/u_team/u_team_core/UCoreMain.java import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.event.lifecycle.*; import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; @Mod(UCoreMain.MODID) public class UCoreMain { public static final String MODID = "u...
import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.event.lifecycle.*; import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; @Mod(UCoreMain.MODID) public class UCoreMain { public static final String MODID = "uteamcore"; public static final Logger LOGGER = LogManager.getLogger("UTea...
<|file_sep|>original/src/main/java/info/u_team/u_team_core/UCoreMain.java import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.event.lifecycle.*; import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; @Mod(UCoreMain.MODID) public class UCoreMain { public static final String MODID = "u...
3582f7bc4bb05c61efb51b35da93e68daa244675
src/main/java/info/u_team/u_team_core/UCoreMain.java
src/main/java/info/u_team/u_team_core/UCoreMain.java
Java
<|file_sep|>src/plugins/configure/index.js.diff original: const { next, hookStart, hookEnd } = require('hooter/effects') updated: const { next, hook, hookStart, hookEnd } = require('hooter/effects') <|file_sep|>original/src/plugins/configure/index.js yield hookEnd('schema', function* (_schema) { schema = yield n...
yield hookEnd('schema', function* (_schema) { schema = yield next(_schema).or(_schema) return schema }) yield hookStart('configure', function* (_config) { return yield next(schema, _config) }) yield hook('configure', function* (_schema, _config) { _config = assignDefaults(_schema, _config) ...
<|file_sep|>src/plugins/configure/index.js.diff original: const { next, hookStart, hookEnd } = require('hooter/effects') updated: const { next, hook, hookStart, hookEnd } = require('hooter/effects') <|file_sep|>original/src/plugins/configure/index.js yield hookEnd('schema', function* (_schema) { schema = yield n...
b60d3007afcddbe61f1aa3a78bacf284907ffcf6
src/plugins/configure/index.js
src/plugins/configure/index.js
JavaScript
<|file_sep|>original/.travis.yml - libcurl4-openssl-dev - libelf-dev - libdw-dev - binutils-dev - cmake - libiberty-dev matrix: include: - rust: stable - rust: 1.13.0 - rust: nightly allow_failures: - rust: nightly script: - | cargo test --verbose after_...
- libcurl4-openssl-dev - libelf-dev - libdw-dev - binutils-dev - cmake - libiberty-dev matrix: include: - rust: stable - rust: 1.17.0 - rust: nightly allow_failures: - rust: nightly script: - | cargo test --verbose after_success: - | if [ "$TRAVIS_...
<|file_sep|>original/.travis.yml - libcurl4-openssl-dev - libelf-dev - libdw-dev - binutils-dev - cmake - libiberty-dev matrix: include: - rust: stable - rust: 1.13.0 - rust: nightly allow_failures: - rust: nightly script: - | cargo test --verbose after_...
f318629d2aec728f86cff85a8bac66a8b2b81855
.travis.yml
.travis.yml
YAML
<|file_sep|>original/README.md # Spawn 10 workers. 10.times do Minx.spawn do requests.each {|request| handle_request(request) } end end In the near future, evented IO will be implemented, allowing for highly performant network and file applications. Documentation ------------- See [t...
# Spawn 10 workers. 10.times do Minx.spawn do requests.each {|request| handle_request(request) } end end In the near future, evented IO will be implemented, allowing for highly performant network and file applications. Documentation ------------- See [the full documentation](http://r...
<|file_sep|>original/README.md # Spawn 10 workers. 10.times do Minx.spawn do requests.each {|request| handle_request(request) } end end In the near future, evented IO will be implemented, allowing for highly performant network and file applications. Documentation ------------- See [t...
a982bb65cf6f2698791a10e23bb06dd17ca3a647
README.md
README.md
Markdown
<|file_sep|>README.md.diff original: Allows you to manipulate iTerm from the command line, even if you're in an ssh session or within tmux. updated: Allows you to manipulate [iTerm 2 v3](https://www.iterm2.com) from the command line, even if you're in an ssh session or within tmux. <|file_sep|>original/README.md 1: V...
--annotate Adds an annotation. --badge Sets a badge --clear_badge Clears the badge --force Use this to output the escape codes even if $TERM_PROGRAM isn't set to iTerm. Useful if you're in an ssh session, but you weren't able to pass through TERM_PROGRAM from...
<|file_sep|>README.md.diff original: Allows you to manipulate iTerm from the command line, even if you're in an ssh session or within tmux. updated: Allows you to manipulate [iTerm 2 v3](https://www.iterm2.com) from the command line, even if you're in an ssh session or within tmux. <|file_sep|>original/README.md 1: V...
d42c1075534f47a718a06c567bec680f49d21a71
README.md
README.md
Markdown
<|file_sep|>original/recipes/bootloader/recipe.toml [source] git = "https://gitlab.redox-os.org/redox-os/bootloader.git" [build] template = "custom" script = """ rsync -av --delete "${COOKBOOK_SOURCE}/" ./ ARCH="$(echo "${TARGET}" | cut -d - -f1)" if [ "${ARCH}" == "x86_64" ] then export TARGET="x86-unknown-none"...
[source] git = "https://gitlab.redox-os.org/redox-os/bootloader.git" [build] template = "custom" script = """ rsync -av --delete "${COOKBOOK_SOURCE}/" ./ ARCH="$(echo "${TARGET}" | cut -d - -f1)" if [ "${ARCH}" == "x86_64" ] then export TARGET="x86-unknown-none" "${COOKBOOK_MAKE}" -j "${COOKBOOK_MAKE_JOBS}" ...
<|file_sep|>original/recipes/bootloader/recipe.toml [source] git = "https://gitlab.redox-os.org/redox-os/bootloader.git" [build] template = "custom" script = """ rsync -av --delete "${COOKBOOK_SOURCE}/" ./ ARCH="$(echo "${TARGET}" | cut -d - -f1)" if [ "${ARCH}" == "x86_64" ] then export TARGET="x86-unknown-none"...
71202ef03ab5fc440c381d0a171c1d4e1097c4b2
recipes/bootloader/recipe.toml
recipes/bootloader/recipe.toml
TOML
<|file_sep|>original/client/components/annotator-drawer/selector.js import SelectableAnnotation from './selectable-annotation' export default function Selector ({ annotations, onSelect }) { return ( <div> { annotations.map(annotation => ( <div key={annotation.ref}> <Selectable...
import SelectableAnnotation from './selectable-annotation' export default function Selector ({ annotations, onSelect }) { return ( <div> <div> { annotations.length > 0 && annotations.map(annotation => ( <div key={annotation.ref}> <SelectableAnnotation ...
<|file_sep|>original/client/components/annotator-drawer/selector.js import SelectableAnnotation from './selectable-annotation' export default function Selector ({ annotations, onSelect }) { return ( <div> { annotations.map(annotation => ( <div key={annotation.ref}> <Selectable...
4077a7349a43c21595953214d74403064cb4dfc1
client/components/annotator-drawer/selector.js
client/components/annotator-drawer/selector.js
JavaScript
<|file_sep|>packages/si/simpleirc.yaml.diff original: hash: f94723684305b9834b08bc0faf6716e71688dc166a10b2de3e834a27f7b10651 updated: hash: f2103c759d55013db3a4d1a62de253af909d96ced9dd7eb3db10dc081f8525c4 <|file_sep|>packages/si/simpleirc.yaml.diff original: updated: connection: ! '>=0.2.4' <|file_sep|>packages/si/s...
synopsis: Simple IRC Library changelog: '' basic-deps: bytestring: ! '>=0.9.1.7' base: ! '>=4 && <5' time: ! '>=1.1.4' network: ! '>=2.2.1.5' connection: ! '>=0.2.4' containers: ! '>=0.3.0.0' old-locale: ! '>=1.0.0.2' all-versions: - '0.1.0' - '0.2.0' - '0.2.1' - '0.3.0' - '0.3.1' author: Dominik Picheta ...
<|file_sep|>packages/si/simpleirc.yaml.diff original: hash: f94723684305b9834b08bc0faf6716e71688dc166a10b2de3e834a27f7b10651 updated: hash: f2103c759d55013db3a4d1a62de253af909d96ced9dd7eb3db10dc081f8525c4 <|file_sep|>packages/si/simpleirc.yaml.diff original: updated: connection: ! '>=0.2.4' <|file_sep|>packages/si/s...
4c4da064307ff52c56b76cbff58aadb295b90806
packages/si/simpleirc.yaml
packages/si/simpleirc.yaml
YAML
<|file_sep|>recipes/python-quickjs/setup.patch.diff original: @@ -16,10 +16,7 @@ if sys.platform == "win32": # system PATH when compiling. updated: @@ -17,9 +17,6 @@ if sys.platform == "win32": <|file_sep|>recipes/python-quickjs/setup.patch.diff original: - distutils.cygwinccompiler.get_msvcr = lambda: [] u...
diff --git a/setup.py b/setup.py index 4aedcbfdda..2a4107d033 100644 --- a/setup.py +++ b/setup.py @@ -17,9 +17,6 @@ if sys.platform == "win32": # 3. The code below will moneky-patch distutils to work. import distutils.cygwinccompiler distutils.cygwinccompiler.get_msvcr = lambda: [] - # Make sure tha...
<|file_sep|>recipes/python-quickjs/setup.patch.diff original: @@ -16,10 +16,7 @@ if sys.platform == "win32": # system PATH when compiling. updated: @@ -17,9 +17,6 @@ if sys.platform == "win32": <|file_sep|>recipes/python-quickjs/setup.patch.diff original: - distutils.cygwinccompiler.get_msvcr = lambda: [] u...
89a9664b604aad2823bcbee4b7893daf4acaa8ab
recipes/python-quickjs/setup.patch
recipes/python-quickjs/setup.patch
Diff
<|file_sep|>lib/acts_as_audited/audit_sweeper.rb.diff original: updated: observe Audit <|file_sep|>original/lib/acts_as_audited/audit_sweeper.rb end class AuditSweeper < ActionController::Caching::Sweeper #:nodoc: cattr_accessor :current_user_method self.current_user_method = :current_user def before_create...
end class AuditSweeper < ActionController::Caching::Sweeper #:nodoc: observe Audit cattr_accessor :current_user_method self.current_user_method = :current_user def before_create(audit) audit.user ||= current_user end def current_user controller.send self.class.current_user_method if controller.r...
<|file_sep|>lib/acts_as_audited/audit_sweeper.rb.diff original: updated: observe Audit <|file_sep|>original/lib/acts_as_audited/audit_sweeper.rb end class AuditSweeper < ActionController::Caching::Sweeper #:nodoc: cattr_accessor :current_user_method self.current_user_method = :current_user def before_create...
0ee46974f22bd2f0d86092d9601da765defdde68
lib/acts_as_audited/audit_sweeper.rb
lib/acts_as_audited/audit_sweeper.rb
Ruby
<|file_sep|>original/leetcode/240_search_a_2d_matrix_ii.go package leetcode func searchMatrix(matrix [][]int, target int) bool { for _, nums := range matrix { left, right := 0, len(nums)-1 for left <= right { mid := (left + right) / 2 if nums[mid] == target { return true } else if nums[mid] < target ...
package leetcode func searchMatrix(matrix [][]int, target int) bool { if matrix == nil || len(matrix) == 0 || len(matrix[0]) == 0 { return false } col, row := len(matrix[0])-1, 0 for col >= 0 && row < len(matrix) { if matrix[row][col] == target { return true } else if matrix[row][col] < target { row++...
<|file_sep|>original/leetcode/240_search_a_2d_matrix_ii.go package leetcode func searchMatrix(matrix [][]int, target int) bool { for _, nums := range matrix { left, right := 0, len(nums)-1 for left <= right { mid := (left + right) / 2 if nums[mid] == target { return true } else if nums[mid] < target ...
4eed07db53f99f7845589b282cc54466d7ccb110
leetcode/240_search_a_2d_matrix_ii.go
leetcode/240_search_a_2d_matrix_ii.go
Go
<|file_sep|>.delivery/build_cookbook/recipes/_install_docker.rb.diff original: execute 'install docker-compose' do command <<-EOH curl -L https://github.com/docker/compose/releases/download/1.8.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose EOH updated: r...
######################################################################### # Docker ######################################################################### include_recipe 'chef-apt-docker::default' package "docker-engine" remote_file '/usr/local/bin/docker-compose' do source 'https://github.com/docker/compose/rele...
<|file_sep|>.delivery/build_cookbook/recipes/_install_docker.rb.diff original: execute 'install docker-compose' do command <<-EOH curl -L https://github.com/docker/compose/releases/download/1.8.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose EOH updated: r...
df972b8bb401428e40e5c10e900ced9629e09987
.delivery/build_cookbook/recipes/_install_docker.rb
.delivery/build_cookbook/recipes/_install_docker.rb
Ruby
<|file_sep|>bcbio/distributed/clargs.py.diff original: ptype, cores = _get_cores_and_type(args.numcores, getattr(args, "paralleltype", None), updated: ptype, cores = _get_cores_and_type(args.numcores, getattr(args, "paralleltype", None), <|file_sep|>bcbio/distributed/clarg...
ptype, cores = _get_cores_and_type(args.numcores, getattr(args, "paralleltype", None), args.scheduler) local_controller = getattr(args, "local_controller", False) parallel = {"type": ptype, "cores": cores, "schedul...
<|file_sep|>bcbio/distributed/clargs.py.diff original: ptype, cores = _get_cores_and_type(args.numcores, getattr(args, "paralleltype", None), updated: ptype, cores = _get_cores_and_type(args.numcores, getattr(args, "paralleltype", None), <|file_sep|>bcbio/distributed/clarg...
cb39c1edf395f7da1c241010fc833fe512fa74ac
bcbio/distributed/clargs.py
bcbio/distributed/clargs.py
Python
<|file_sep|>original/lms/djangoapps/experiments/factories.py import factory from experiments.models import ExperimentData, ExperimentKeyValue from student.tests.factories import UserFactory class ExperimentDataFactory(factory.DjangoModelFactory): class Meta(object): model = ExperimentData user = fac...
import factory import factory.fuzzy from experiments.models import ExperimentData, ExperimentKeyValue from student.tests.factories import UserFactory class ExperimentDataFactory(factory.DjangoModelFactory): class Meta(object): model = ExperimentData user = factory.SubFactory(UserFactory) experim...
<|file_sep|>original/lms/djangoapps/experiments/factories.py import factory from experiments.models import ExperimentData, ExperimentKeyValue from student.tests.factories import UserFactory class ExperimentDataFactory(factory.DjangoModelFactory): class Meta(object): model = ExperimentData user = fac...
956cb919554c8103149fa6442254bdfed0ce32d1
lms/djangoapps/experiments/factories.py
lms/djangoapps/experiments/factories.py
Python
<|file_sep|>original/composer.json }, "suggest": { "symfony/http-kernel": "For Symfony integration as bundle", "symfony/dependency-injection": "For Symfony integration as bundle", "symfony/config": "For Symfony integration as bundle", "sensio/buzz-bundle": "For Symfony integratio...
}, "suggest": { "symfony/http-kernel": "For Symfony integration as bundle", "symfony/dependency-injection": "For Symfony integration as bundle", "symfony/config": "For Symfony integration as bundle", "sensio/buzz-bundle": "For Symfony integration as bundle" }, "minimum-st...
<|file_sep|>original/composer.json }, "suggest": { "symfony/http-kernel": "For Symfony integration as bundle", "symfony/dependency-injection": "For Symfony integration as bundle", "symfony/config": "For Symfony integration as bundle", "sensio/buzz-bundle": "For Symfony integratio...
035645b3d6d502e9a9d3b5cbe11fb113b31c9818
composer.json
composer.json
JSON
<|file_sep|>original/app.rb require 'redis' uri = URI.parse(ENV['REDISTOGO_URL']) REDIS = Redis.new(host: uri.host, port: uri.port, password: uri.password) end get '/:repository/:branch/:subject' do |repository, branch, subject| key = "#{repository}:#{branch}:#{subject}" badge = REDIS.get(key) content_typ...
require 'redis' uri = URI.parse(ENV['REDISTOGO_URL']) REDIS = Redis.new(host: uri.host, port: uri.port, password: uri.password) end get '/:repository/:branch/:subject' do |repository, branch, subject| key = "#{repository}:#{branch}:#{subject}" badge = REDIS.get(key) content_type 'image/svg+xml;charset=utf...
<|file_sep|>original/app.rb require 'redis' uri = URI.parse(ENV['REDISTOGO_URL']) REDIS = Redis.new(host: uri.host, port: uri.port, password: uri.password) end get '/:repository/:branch/:subject' do |repository, branch, subject| key = "#{repository}:#{branch}:#{subject}" badge = REDIS.get(key) content_typ...
629eac04596b309be31fab4d8d3188afd0ad1c7e
app.rb
app.rb
Ruby