prompt
stringlengths
77
6.9k
completion
stringlengths
1
3.38k
text
stringlengths
163
9.03k
commit
stringlengths
40
40
old_file
stringlengths
4
264
new_file
stringlengths
4
264
lang
stringclasses
277 values
<|file_sep|>original/extensions/log/package.json "vscode": "*" }, "scripts": { "update-grammar": "node ../../build/npm/update-grammar.js emilast/vscode-logfile-highlighter syntaxes/log.tmLanguage ./syntaxes/log.tmLanguage.json" }, "contributes": { "languages": [ { "id": "log", "extensions": [ ...
"vscode": "*" }, "scripts": { "update-grammar": "node ../../build/npm/update-grammar.js emilast/vscode-logfile-highlighter syntaxes/log.tmLanguage ./syntaxes/log.tmLanguage.json" }, "contributes": { "languages": [ { "id": "log", "extensions": [ ".log", "*.log.?" ], "aliases": [ ...
<|file_sep|>original/extensions/log/package.json "vscode": "*" }, "scripts": { "update-grammar": "node ../../build/npm/update-grammar.js emilast/vscode-logfile-highlighter syntaxes/log.tmLanguage ./syntaxes/log.tmLanguage.json" }, "contributes": { "languages": [ { "id": "log", "extensions": [ ...
183c93c0a881c106fa05af9314b7b7e1fa793172
extensions/log/package.json
extensions/log/package.json
JSON
<|file_sep|>original/test_stack.py <|file_sep|>current/test_stack.py <|file_sep|>updated/test_stack.py
import pytest from stack import Element from stack import Stack def test_element_init(): n = Element() assert n.val is None assert n.next is None n = Element(3) assert n.val == 3 assert n.next is None def test_stack_init(): l = Stack() assert l.top is None def test_stack_push(): ...
<|file_sep|>original/test_stack.py <|file_sep|>current/test_stack.py <|file_sep|>updated/test_stack.py import pytest from stack import Element from stack import Stack def test_element_init(): n = Element() assert n.val is None assert n.next is None n = Element(3) assert n.val == 3 assert n.n...
9fb12df863e23d8b879f5d92d0f692ac2dcdd91c
test_stack.py
test_stack.py
Python
<|file_sep|>original/_layouts/post.html --- layout: default --- <div class="post"> <h1 class="post-title">{{ page.title }}</h1> <span class="post-date">{{ page.date | date_to_string }} <em class="reading-time ion-ios7-clock-outline"> {{ page.reading-time }} </em></span> {{ content }} </div> <div class="so...
--- layout: default --- <div class="post"> <h1 class="post-title">{{ page.title }}</h1> <span class="post-date">{{ page.date | date_to_string }} <span class="reading-time ion-ios7-clock-outline"> {{ page.reading-time }} </span></span> {{ content }} </div> <div class="social-widget"> <a href="https://t...
<|file_sep|>original/_layouts/post.html --- layout: default --- <div class="post"> <h1 class="post-title">{{ page.title }}</h1> <span class="post-date">{{ page.date | date_to_string }} <em class="reading-time ion-ios7-clock-outline"> {{ page.reading-time }} </em></span> {{ content }} </div> <div class="so...
769743634419acd814600ba5a3058189d1ffdd43
_layouts/post.html
_layouts/post.html
HTML
<|file_sep|>documentation/src/main/wiki/AccessibilityCollector.md.diff original: #### Accessibility Collector BETA updated: #### Accessibility Collector <|file_sep|>original/documentation/src/main/wiki/AccessibilityCollector.md #### Accessibility Collector BETA | ! Beta Version | |:------------ | | This AET Plugin i...
#### Accessibility Collector Accessibility Collector is responsible for collecting validation results containing violations of the defined coding standard found on the page. The plugin is based on [AccessSniff](https://github.com/yargalot/AccessSniff/) v. 3.2.0, which uses the [HTML_CodeSniffer](http://squizlabs.githu...
<|file_sep|>documentation/src/main/wiki/AccessibilityCollector.md.diff original: #### Accessibility Collector BETA updated: #### Accessibility Collector <|file_sep|>original/documentation/src/main/wiki/AccessibilityCollector.md #### Accessibility Collector BETA | ! Beta Version | |:------------ | | This AET Plugin i...
8e8b48e617482b10737c06ac96af215863e77309
documentation/src/main/wiki/AccessibilityCollector.md
documentation/src/main/wiki/AccessibilityCollector.md
Markdown
<|file_sep|>original/README.md server = MinecraftServer("localhost", 25565) # 'ping' is supported by all Minecraft servers that are version 1.7 or higher. status, ping = server.ping_server() print("The server has {0} players".format(status.players.online)) # 'query' has to be enabled in a servers' server.properties ...
server = MinecraftServer("localhost", 25565) # 'ping' is supported by all Minecraft servers that are version 1.7 or higher. status, ping = server.ping_server() print("The server has {0} players".format(status.players.online)) # 'query' has to be enabled in a servers' server.properties file. # It may give more inform...
<|file_sep|>original/README.md server = MinecraftServer("localhost", 25565) # 'ping' is supported by all Minecraft servers that are version 1.7 or higher. status, ping = server.ping_server() print("The server has {0} players".format(status.players.online)) # 'query' has to be enabled in a servers' server.properties ...
f07be86a20ce24c8432d625fb50947641a2c2165
README.md
README.md
Markdown
<|file_sep|>README.md.diff original: + it's tested via travis! -- it (should) alwasy works as you just want! + my miss a converter you like, just do it yourself (build from brick-like functions) updated: + it's tested via Travis! -- it (should) always works as you just want! + you miss a converter you would like to hav...
+ you miss a converter you would like to have? Just Do It Yourself - compose your converter/parsre from LEGO brick-like functions, see `--rosetta2generic`) .. or you want to use the lib as the program: $ ./yapdb_parser.py -h usage: yapdb_parser [-h] [-r] [--rosetta2generic] [-c] file outfile position...
<|file_sep|>README.md.diff original: + it's tested via travis! -- it (should) alwasy works as you just want! + my miss a converter you like, just do it yourself (build from brick-like functions) updated: + it's tested via Travis! -- it (should) always works as you just want! + you miss a converter you would like to hav...
10643bc28c7a7fd81e799f47f129d41b9fb17c8b
README.md
README.md
Markdown
<|file_sep|>original/romana-install/roles/stack-common/files/nova-patch.sh # nova-patch.sh if [[ "$1" == "stack" && "$2" == "install" ]]; then if is_service_enabled nova; then echo_summary "Patching nova module" patch -d "$NOVA_DIR" -p1 < "$TOP_DIR/files/romana-nova-reschedule.patch" fi fi <|f...
# nova-patch.sh if [[ "$1" == "stack" && "$2" == "install" ]]; then if is_service_enabled nova; then nova_patch="$TOP_DIR/files/romana-nova-reschedule.patch" if patch -d "$NOVA_DIR" -N --dry-run --silent -p1 < "$nova_patch"; then echo_summary "Patching nova module" patch -d ...
<|file_sep|>original/romana-install/roles/stack-common/files/nova-patch.sh # nova-patch.sh if [[ "$1" == "stack" && "$2" == "install" ]]; then if is_service_enabled nova; then echo_summary "Patching nova module" patch -d "$NOVA_DIR" -p1 < "$TOP_DIR/files/romana-nova-reschedule.patch" fi fi <|f...
5c2ee23e1abb22926b4ea881fc9b15e10c48f8ab
romana-install/roles/stack-common/files/nova-patch.sh
romana-install/roles/stack-common/files/nova-patch.sh
Shell
<|file_sep|>config/regions.js.diff original: updated: const auckland = { name: 'auckland', id: 1 } const wellington = { name: 'wellington', id: 15 } const waikato = { name: 'waikato', id: 14 } <|file_sep|>original/config/regions.js 'use strict' module.exports = [ { name: 'auckland', id: 1 }...
'use strict' const auckland = { name: 'auckland', id: 1 } const wellington = { name: 'wellington', id: 15 } const waikato = { name: 'waikato', id: 14 } module.exports = [ auckland ]
<|file_sep|>config/regions.js.diff original: updated: const auckland = { name: 'auckland', id: 1 } const wellington = { name: 'wellington', id: 15 } const waikato = { name: 'waikato', id: 14 } <|file_sep|>original/config/regions.js 'use strict' module.exports = [ { name: 'auckland', id: 1 }...
f64fbbd2303499012ede0fdf42b6133f0bfef32d
config/regions.js
config/regions.js
JavaScript
<|file_sep|>lib/Gitlab/Api/Groups.php.diff original: public function members($id) updated: public function members($id, $page = 1, $per_page = self::PER_PAGE) <|file_sep|>original/lib/Gitlab/Api/Groups.php )); } public function transfer($group_id, $project_id) { return $this->post('groups...
)); } public function transfer($group_id, $project_id) { return $this->post('groups/'.urlencode($group_id).'/projects/'.urlencode($project_id)); } public function members($id, $page = 1, $per_page = self::PER_PAGE) { return $this->get('groups/'.urlencode($id).'/members', array( ...
<|file_sep|>lib/Gitlab/Api/Groups.php.diff original: public function members($id) updated: public function members($id, $page = 1, $per_page = self::PER_PAGE) <|file_sep|>original/lib/Gitlab/Api/Groups.php )); } public function transfer($group_id, $project_id) { return $this->post('groups...
aa3cad542292b20cf441e7501baa041d9e5e85cf
lib/Gitlab/Api/Groups.php
lib/Gitlab/Api/Groups.php
PHP
<|file_sep|>original/CHANGELOG.md ## master * [improvement] Mapper can be defined after synced method - using a block `synced mapper: -> { Mapper }`. * [improvement] `remove:` option can be defined on synced level. * [improvement] `include` option can be defined on synced level. * [feature] `fields:` optio...
## master * [improvement] Mapper can be defined after synced method - using a block `synced mapper: -> { Mapper }`. * [improvement] `remove:` option can be defined on synced level. * [improvement] `include` option can be defined on synced level. * [feature] `fields:` option can be specified for fetching on...
<|file_sep|>original/CHANGELOG.md ## master * [improvement] Mapper can be defined after synced method - using a block `synced mapper: -> { Mapper }`. * [improvement] `remove:` option can be defined on synced level. * [improvement] `include` option can be defined on synced level. * [feature] `fields:` optio...
be61f8d525f177d7f8bf928a3451ccc31d285df7
CHANGELOG.md
CHANGELOG.md
Markdown
<|file_sep|>lib/smart_answer_flows/register-a-birth/outcomes/homeoffice_result.govspeak.erb.diff original: You can’t register your child’s birth with the UK authorities abroad. This is because unmarried fathers can’t pass on British nationality to a child born before 1 July 2006. updated: You can’t usually register...
<% content_for :body do %> $!You must register the birth according to the regulations in <%= registration_country_name_lowercase_prefix %>.$! You can’t usually register your child’s birth with the Foreign and Commonwealth Office (FCO) Overseas Registration Unit. This is because unmarried fathers can’t pass on Brit...
<|file_sep|>lib/smart_answer_flows/register-a-birth/outcomes/homeoffice_result.govspeak.erb.diff original: You can’t register your child’s birth with the UK authorities abroad. This is because unmarried fathers can’t pass on British nationality to a child born before 1 July 2006. updated: You can’t usually register...
54434b6d857e9d5d5d77a1cf2480dcfcf5ebef65
lib/smart_answer_flows/register-a-birth/outcomes/homeoffice_result.govspeak.erb
lib/smart_answer_flows/register-a-birth/outcomes/homeoffice_result.govspeak.erb
HTML+ERB
<|file_sep|>original/src/main/res/layout/com_mixpanel_android_activity_notification_mini.xml android:layout_height="75dp" android:layout_gravity="bottom" android:background="@color/com_mixpanel_android_notification_mini_bg" android:orientation="horizontal" android:visibility="gone"> <com.mi...
android:layout_height="75dp" android:layout_gravity="bottom" android:background="@color/com_mixpanel_android_notification_mini_bg" android:orientation="horizontal" android:visibility="gone"> <com.mixpanel.android.mpmetrics.MiniCircleImageView android:id="@+id/com_mixpanel_android_no...
<|file_sep|>original/src/main/res/layout/com_mixpanel_android_activity_notification_mini.xml android:layout_height="75dp" android:layout_gravity="bottom" android:background="@color/com_mixpanel_android_notification_mini_bg" android:orientation="horizontal" android:visibility="gone"> <com.mi...
3495f8888c91ef23c8c33fcc4fb43fb4e98d05d3
src/main/res/layout/com_mixpanel_android_activity_notification_mini.xml
src/main/res/layout/com_mixpanel_android_activity_notification_mini.xml
XML
<|file_sep|>original/.mergify.yml <|file_sep|>current/.mergify.yml <|file_sep|>updated/.mergify.yml
# SPDX-License-Identifier: Apache-2.0 pull_request_rules: - name: Auto-Merge on Approving Label and Changes Limited to docs/ Folder conditions: - files~=^docs/ - -files~=^(?!^docs).* - label=doc-merge actions: merge: method: rebase
<|file_sep|>original/.mergify.yml <|file_sep|>current/.mergify.yml <|file_sep|>updated/.mergify.yml # SPDX-License-Identifier: Apache-2.0 pull_request_rules: - name: Auto-Merge on Approving Label and Changes Limited to docs/ Folder conditions: - files~=^docs/ - -files~=^(?!^docs).* - label=do...
ad84e47697c1351ca4914cca77a53b831a9e7ebc
.mergify.yml
.mergify.yml
YAML
<|file_sep|>original/.travis.yml language: ruby rvm: - 1.9.3 - 1.9.2 - rbx-19mode - ruby-head notifications: email: false <|file_sep|>current/.travis.yml language: ruby rvm: - 1.9.3 - 1.9.2 - rbx-19mode - ruby-head notifications: email: false <|file_sep|>updated/.travis.yml
language: ruby before_install: mkdir -p spec/dummy/db rvm: - 1.9.3 - 1.9.2 - rbx-19mode - ruby-head notifications: email: false
<|file_sep|>original/.travis.yml language: ruby rvm: - 1.9.3 - 1.9.2 - rbx-19mode - ruby-head notifications: email: false <|file_sep|>current/.travis.yml language: ruby rvm: - 1.9.3 - 1.9.2 - rbx-19mode - ruby-head notifications: email: false <|file_sep|>updated/.travis.yml language: ruby befor...
78a2705475f8290765a79e7f8baff72dbe67c2cc
.travis.yml
.travis.yml
YAML
<|file_sep|>original/README.md ## Features * Simple, elegant design * Uses Bootstrap, the extremely popular HTML, CSS, and JS framework * Fully responsive for use with mobiles and tablets * Readily customisable * Beautiful typography using Google Fonts * Works with Ghost 0.7+ * Social media sharing (Facebook, Twitter,...
## Features * Simple, elegant design * Uses Bootstrap, the extremely popular HTML, CSS, and JS framework * Fully responsive for use with mobiles and tablets * Readily customisable * Beautiful typography using Google Fonts * Works with Ghost 0.7+ * Social media sharing (Facebook, Twitter, Google+) for each post * Disqu...
<|file_sep|>original/README.md ## Features * Simple, elegant design * Uses Bootstrap, the extremely popular HTML, CSS, and JS framework * Fully responsive for use with mobiles and tablets * Readily customisable * Beautiful typography using Google Fonts * Works with Ghost 0.7+ * Social media sharing (Facebook, Twitter,...
8a388d19215344a27a78fa243f3d20b34ed0f20b
README.md
README.md
Markdown
<|file_sep|>app.js.diff original: var firstNoun = ''; var secondNoun = ''; var metaphor = ''; var numberOfNouns = nouns.length; var nounIndex1 = 0; var nounIndex2 = 0; updated: <|file_sep|>original/app.js var metaphor = ''; var numberOfNouns = nouns.length; var nounIndex1 = 0; var nounIndex2 = 0; // Returns a rando...
// Using Math.round() will give you a non-uniform distribution! function getRandomInt(min, max) { return Math.floor(Math.random() * (max - min)) + min; } function capitalizeFirstLetter(string) { return string.charAt(0).toUpperCase() + string.slice(1); } function generateMetaphor(nouns) { var firstNoun = ''; v...
<|file_sep|>app.js.diff original: var firstNoun = ''; var secondNoun = ''; var metaphor = ''; var numberOfNouns = nouns.length; var nounIndex1 = 0; var nounIndex2 = 0; updated: <|file_sep|>original/app.js var metaphor = ''; var numberOfNouns = nouns.length; var nounIndex1 = 0; var nounIndex2 = 0; // Returns a rando...
ab35a27698dcd47524ba84497fba066ad6483703
app.js
app.js
JavaScript
<|file_sep|>original/nvim/.config/nvim/lua/user/after.lua local autosave = require("autosave") local lspconfig = require("lspconfig") autosave.setup( { enabled = true, } ) lspconfig.pylsp.setup {} <|file_sep|>current/nvim/.config/nvim/lua/user/after.lua local autosave = require("autosave") local lspco...
local autosave = require("autosave") local lspconfig = require("lspconfig") autosave.setup( { enabled = true, } ) lspconfig.pylsp.setup {} vim.schedule(function() vim.env.FZF_DEFAULT_COMMAND = 'fd --hidden --exclude={.git,.idea,.vscode,.sass-cache,node_modules,build} --type f' end)
<|file_sep|>original/nvim/.config/nvim/lua/user/after.lua local autosave = require("autosave") local lspconfig = require("lspconfig") autosave.setup( { enabled = true, } ) lspconfig.pylsp.setup {} <|file_sep|>current/nvim/.config/nvim/lua/user/after.lua local autosave = require("autosave") local lspco...
7813362150965aa9c615b8043b800b206957ad1d
nvim/.config/nvim/lua/user/after.lua
nvim/.config/nvim/lua/user/after.lua
Lua
<|file_sep|>original/mlsource/MLCompiler/CompilerVersion.sml This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation. This library is distributed in the hope that it wi...
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the ...
<|file_sep|>original/mlsource/MLCompiler/CompilerVersion.sml This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation. This library is distributed in the hope that it wi...
3d7a92473168be05f3ec538cddb17953e0c0e66f
mlsource/MLCompiler/CompilerVersion.sml
mlsource/MLCompiler/CompilerVersion.sml
Standard ML
<|file_sep|>original/deploy/ansible/roles/sys_facts/tasks/main.yml --- # Facts that are not (yet) in ansible. # TODO(pwnall): Remove this in favor of ansible_firewalld when PR gets merged. # https://github.com/ansible/ansible/pull/12288 - name: look for firewalld stat: path=/usr/bin/firewall-cmd regi...
--- # Facts that are not (yet) in ansible. # TODO(pwnall): Remove this in favor of ansible_firewalld when PR gets merged. # https://github.com/ansible/ansible/pull/12288 - name: look for firewalld stat: path=/usr/bin/firewall-cmd register: firewall_cmd_stat - name: set has_firewalld fact set_fact: ...
<|file_sep|>original/deploy/ansible/roles/sys_facts/tasks/main.yml --- # Facts that are not (yet) in ansible. # TODO(pwnall): Remove this in favor of ansible_firewalld when PR gets merged. # https://github.com/ansible/ansible/pull/12288 - name: look for firewalld stat: path=/usr/bin/firewall-cmd regi...
0598a78c4f99e1604e5d443fca7f4c197e0af21c
deploy/ansible/roles/sys_facts/tasks/main.yml
deploy/ansible/roles/sys_facts/tasks/main.yml
YAML
<|file_sep|>original/gulpfile.js return gulp.src('./src/scripts/**/*.ts') .pipe(tslint()) .pipe(tslint.report('verbose')) .pipe(ts({ declarationFiles: true, target: 'es5' }) .pipe(gulp.dest('./dist/scripts/'))); }); gulp.task('plato', function () { ...
return gulp.src('./src/scripts/**/*.ts') .pipe(tslint()) .pipe(tslint.report('verbose')) .pipe(ts({ declarationFiles: true, target: 'es5' }) .pipe(gulp.dest('./dist/scripts/'))); }); // Generate complexity analysis reports gulp.task('analyze', functio...
<|file_sep|>original/gulpfile.js return gulp.src('./src/scripts/**/*.ts') .pipe(tslint()) .pipe(tslint.report('verbose')) .pipe(ts({ declarationFiles: true, target: 'es5' }) .pipe(gulp.dest('./dist/scripts/'))); }); gulp.task('plato', function () { ...
bdf0b35e53d019c87cca81a86709c17e47bbfc40
gulpfile.js
gulpfile.js
JavaScript
<|file_sep|>original/requirements-dev.txt flake8==3.5.0 pytest<3.3.0 # Python3.3 dropped in 3.3. And some problems with catchlog pytest-cov==2.5.1 pytest-catchlog==1.2.2 docker-py==1.10.6 coveralls==1.2.0 Sphinx==1.6.7 lz4==0.19.1 xxhash==1.0.1 python-snappy==0.5.1 sphinxcontrib-asyncio==0.2.0 sphinxcontrib-spelling=...
flake8==3.5.0 pytest<3.3.0 # Python3.3 dropped in 3.3. And some problems with catchlog pytest-cov==2.5.1 pytest-catchlog==1.2.2 docker-py==1.10.6 coveralls==1.2.0 Sphinx==1.7.0 lz4==0.19.1 xxhash==1.0.1 python-snappy==0.5.1 sphinxcontrib-asyncio==0.2.0 sphinxcontrib-spelling==4.0.1 alabaster==0.7.10 diff-cover==1.0....
<|file_sep|>original/requirements-dev.txt flake8==3.5.0 pytest<3.3.0 # Python3.3 dropped in 3.3. And some problems with catchlog pytest-cov==2.5.1 pytest-catchlog==1.2.2 docker-py==1.10.6 coveralls==1.2.0 Sphinx==1.6.7 lz4==0.19.1 xxhash==1.0.1 python-snappy==0.5.1 sphinxcontrib-asyncio==0.2.0 sphinxcontrib-spelling=...
c8f112c20157b2fd38543d4910cc4d26e16d07a1
requirements-dev.txt
requirements-dev.txt
Text
<|file_sep|>original/app.yaml application: sympy-live-hrd version: 31 runtime: python27 threadsafe: true api_version: 1 handlers: - url: /static static_dir: static expiration: 1d # if you're adding the shell to your own app, change this regex url to the URL # endpoint where you want the shell to run, e.g. /shell...
application: sympy-live-hrd version: 31 runtime: python27 threadsafe: true api_version: 1 libraries: - name: numpy version: latest handlers: - url: /static static_dir: static expiration: 1d # if you're adding the shell to your own app, change this regex url to the URL # endpoint where you want the shell to ru...
<|file_sep|>original/app.yaml application: sympy-live-hrd version: 31 runtime: python27 threadsafe: true api_version: 1 handlers: - url: /static static_dir: static expiration: 1d # if you're adding the shell to your own app, change this regex url to the URL # endpoint where you want the shell to run, e.g. /shell...
bd2a007f4d46bdb690d3f160e21a0360e7cdeb3a
app.yaml
app.yaml
YAML
<|file_sep|>primes.py.diff original: for i in xrange(2, sqrt): updated: # use sqrt + 1 to handle smaller composites where the sqrt is 2. # we need an initial case to test fail out as False. for i in xrange(2, sqrt + 1): <|file_sep|>original/primes.py if num % i == 0: return False ...
primes = [] for x in xrange(min, max): if is_prime(x): primes.append(x) return primes if __name__ == "__main__": # check for some simple prime and not prime numbers assert not is_prime(1), "1 should not be prime" assert is_prime(5), "5 should be prime" assert not i...
<|file_sep|>primes.py.diff original: for i in xrange(2, sqrt): updated: # use sqrt + 1 to handle smaller composites where the sqrt is 2. # we need an initial case to test fail out as False. for i in xrange(2, sqrt + 1): <|file_sep|>original/primes.py if num % i == 0: return False ...
3a1005de48a0883853c632b17220f2331bdc7017
primes.py
primes.py
Python
<|file_sep|>README.md.diff original: updated: ### Installation npm install --save fullscreenjs <|file_sep|>README.md.diff original: `<script src="fullscreen.js"></script>` updated: <script src="fullscreen.js"></script> <|file_sep|>README.md.diff original: You can also use `require()` as supplied by Node.js-st...
Fullscreen mode for web browsers ### Installation npm install --save fullscreenjs ### JSLint To test Fullscreen.js, use `jslint --browser --sloppy fullscreen.js`. ### Usage Fullscreen.js should be pretty self-explanatory from the function comments; all you have to do to include it in your project is: <scrip...
<|file_sep|>README.md.diff original: updated: ### Installation npm install --save fullscreenjs <|file_sep|>README.md.diff original: `<script src="fullscreen.js"></script>` updated: <script src="fullscreen.js"></script> <|file_sep|>README.md.diff original: You can also use `require()` as supplied by Node.js-st...
721bbe44ec86ee25b01599e545a01768d2ad1923
README.md
README.md
Markdown
<|file_sep|>original/pkgs/desktops/xfce-4.8/art/xfce4-themes.nix { stdenv, fetchurl, pkgconfig, intltool, gtk }: stdenv.mkDerivation rec { name = "xfwm4-themes-4.10.0"; src = fetchurl { url = "http://archive.xfce.org/src/art/xfwm4-themes/4.10/${name}.tar.bz2"; sha256 = "0xfmdykav4rf6gdxbd6fhmrfrvbdc1yji...
{ stdenv, fetchurl, pkgconfig, intltool, gtk }: stdenv.mkDerivation rec { name = "xfwm4-themes-4.10.0"; src = fetchurl { url = "http://archive.xfce.org/src/art/xfwm4-themes/4.10/${name}.tar.bz2"; sha256 = "0xfmdykav4rf6gdxbd6fhmrfrvbdc1yjihz7r7lba0wp1vqda51j"; }; buildInputs = [ pkgconfig intltool ...
<|file_sep|>original/pkgs/desktops/xfce-4.8/art/xfce4-themes.nix { stdenv, fetchurl, pkgconfig, intltool, gtk }: stdenv.mkDerivation rec { name = "xfwm4-themes-4.10.0"; src = fetchurl { url = "http://archive.xfce.org/src/art/xfwm4-themes/4.10/${name}.tar.bz2"; sha256 = "0xfmdykav4rf6gdxbd6fhmrfrvbdc1yji...
759f17d7d007fd63f0e4aaa74aef25f151b9de76
pkgs/desktops/xfce-4.8/art/xfce4-themes.nix
pkgs/desktops/xfce-4.8/art/xfce4-themes.nix
Nix
<|file_sep|>src/test/java/com/zaxxer/hikari/JdbcDriverTest.java.diff original: updated: import java.sql.Connection; <|file_sep|>original/src/test/java/com/zaxxer/hikari/JdbcDriverTest.java import org.junit.Test; public class JdbcDriverTest { @Test public void driverTest1() throws SQLException { Hi...
public class JdbcDriverTest { @Test public void driverTest1() throws SQLException { HikariConfig config = new HikariConfig(); config.setMinimumPoolSize(1); config.setMaximumPoolSize(1); config.setAcquireIncrement(1); config.setConnectionTestQuery("VALUES 1"); ...
<|file_sep|>src/test/java/com/zaxxer/hikari/JdbcDriverTest.java.diff original: updated: import java.sql.Connection; <|file_sep|>original/src/test/java/com/zaxxer/hikari/JdbcDriverTest.java import org.junit.Test; public class JdbcDriverTest { @Test public void driverTest1() throws SQLException { Hi...
d8126eca81cda15f09ae03fdb4be810227a61c5f
src/test/java/com/zaxxer/hikari/JdbcDriverTest.java
src/test/java/com/zaxxer/hikari/JdbcDriverTest.java
Java
<|file_sep|>original/raygun_client.gemspec # -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = 'raygun_client' s.version = '0.1.2' s.summary = 'Client for the Raygun API using the Obsidian HTTP client' s.description = ' ' s.authors = ['Obsidian Software, Inc'] s.email = 'opensource@obsidianexc...
# -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = 'raygun_client' s.version = '0.1.3' s.summary = 'Client for the Raygun API using the Obsidian HTTP client' s.description = ' ' s.authors = ['Obsidian Software, Inc'] s.email = 'opensource@obsidianexchange.com' s.homepage = 'https://github.c...
<|file_sep|>original/raygun_client.gemspec # -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = 'raygun_client' s.version = '0.1.2' s.summary = 'Client for the Raygun API using the Obsidian HTTP client' s.description = ' ' s.authors = ['Obsidian Software, Inc'] s.email = 'opensource@obsidianexc...
a8c5fb8cf6e1443a35f869a7d809a2765c25d1dc
raygun_client.gemspec
raygun_client.gemspec
Ruby
<|file_sep|>original/pseudorandom.py import os from flask import Flask, render_template, request, make_response from names import get_full_name app = Flask(__name__) @app.route("/") def index(): if (request.headers.get('User-Agent', '')[:4].lower() == 'curl' or request.headers['Content-Type'] == 'text/p...
import os from flask import Flask, render_template, request, make_response from names import get_full_name app = Flask(__name__) @app.route("/") def index(): content_type = request.headers.get('Content-Type', '') browser = request.headers.get('User-Agent', '').lower() if browser[:4] in ('curl', 'wget') ...
<|file_sep|>original/pseudorandom.py import os from flask import Flask, render_template, request, make_response from names import get_full_name app = Flask(__name__) @app.route("/") def index(): if (request.headers.get('User-Agent', '')[:4].lower() == 'curl' or request.headers['Content-Type'] == 'text/p...
82b78ed248f28709b6603315bd673337e4997c4e
pseudorandom.py
pseudorandom.py
Python
<|file_sep|>app/assets/javascripts/lib/date_ext.js.diff original: (function(fn, _, undefined) { fn.fromString = function(string) { updated: (function(clazz, _, undefined) { clazz.fromString = function(string) { <|file_sep|>original/app/assets/javascripts/lib/date_ext.js (function(fn, _, undefined) { fn.fromString...
(function(clazz, _, undefined) { clazz.fromString = function(string) { var [year, month, day] = _.map(string.split('-'), function(s) { return Number.parseInt(s); }); return new Date(year, month-1, day); }; var fn = clazz.prototype; fn.addDays = function(days) { var year = this.getFullYea...
<|file_sep|>app/assets/javascripts/lib/date_ext.js.diff original: (function(fn, _, undefined) { fn.fromString = function(string) { updated: (function(clazz, _, undefined) { clazz.fromString = function(string) { <|file_sep|>original/app/assets/javascripts/lib/date_ext.js (function(fn, _, undefined) { fn.fromString...
cdca806db53322a409a22f08f8df0acd811667ae
app/assets/javascripts/lib/date_ext.js
app/assets/javascripts/lib/date_ext.js
JavaScript
<|file_sep|>tools/valgrind-webrtc/gtest_exclude/libjingle_p2p_unittest.gtest-memcheck.txt.diff original: updated: P2PTransportChannelTest.TestBLOCK_UDPToOPENAsIce <|file_sep|>original/tools/valgrind-webrtc/gtest_exclude/libjingle_p2p_unittest.gtest-memcheck.txt # Fails when run under memcheck # https://code.google.com...
# Fails when run under memcheck # https://code.google.com/p/webrtc/issues/detail?id=1972 P2PTransportChannelTest.TestBLOCK_UDPToOPENAsIce P2PTransportChannelTest.TestOPENToNAT_FULL_CONEAsGiceNoneSharedUfrag P2PTransportChannelTest.TestOPENToNAT_FULL_CONEAsGiceP0SharedUfrag P2PTransportChannelTest.TestOPENToNAT_FULL_CON...
<|file_sep|>tools/valgrind-webrtc/gtest_exclude/libjingle_p2p_unittest.gtest-memcheck.txt.diff original: updated: P2PTransportChannelTest.TestBLOCK_UDPToOPENAsIce <|file_sep|>original/tools/valgrind-webrtc/gtest_exclude/libjingle_p2p_unittest.gtest-memcheck.txt # Fails when run under memcheck # https://code.google.com...
ae7bf1525bbccdab30ebedd31121e4a25db8ea00
tools/valgrind-webrtc/gtest_exclude/libjingle_p2p_unittest.gtest-memcheck.txt
tools/valgrind-webrtc/gtest_exclude/libjingle_p2p_unittest.gtest-memcheck.txt
Text
<|file_sep|>original/staticcheck/testdata/CheckUnreadVariableValues.go x = gen() println(x) var y int if true { y = gen() // MATCH /this value of y is never used/ } y = gen() println(y) } func gen() int { return 0 } func fn2() { x, y := gen(), gen() x, y = gen(), gen() println(x, y) } // MATCH:20 /this ...
func gen() int { return 0 } func fn2() { x, y := gen(), gen() x, y = gen(), gen() println(x, y) } // MATCH:20 /this value of x is never used/ // MATCH:20 /this value of y is never used/ func fn3() { x := uint32(0) if true { x = 1 } else { x = 2 } println(x) }
<|file_sep|>original/staticcheck/testdata/CheckUnreadVariableValues.go x = gen() println(x) var y int if true { y = gen() // MATCH /this value of y is never used/ } y = gen() println(y) } func gen() int { return 0 } func fn2() { x, y := gen(), gen() x, y = gen(), gen() println(x, y) } // MATCH:20 /this ...
cef3ff32d46d0eeafb4dd81d4229d6e538e114f8
staticcheck/testdata/CheckUnreadVariableValues.go
staticcheck/testdata/CheckUnreadVariableValues.go
Go
<|file_sep|>original/.github/workflows/automerge.yml <|file_sep|>current/.github/workflows/automerge.yml <|file_sep|>updated/.github/workflows/automerge.yml
name: automerge on: pull_request: types: - edited - labeled - opened - ready_for_review - reopened - synchronize - unlabeled - unlocked pull_request_review: types: - submitted check_suite: types: - completed status: {} jobs: automerge:
<|file_sep|>original/.github/workflows/automerge.yml <|file_sep|>current/.github/workflows/automerge.yml <|file_sep|>updated/.github/workflows/automerge.yml name: automerge on: pull_request: types: - edited - labeled - opened - ready_for_review - reopened - synchronize ...
0ab8a0fd01073bb634e09d941fc4d3240c9f3685
.github/workflows/automerge.yml
.github/workflows/automerge.yml
YAML
<|file_sep|>app/views/smart_answers/shared/_debug.html.erb.diff original: <% @presenter.current_state.to_hash.each do |k, v| %> updated: <% @presenter.state.to_hash.each do |k, v| %> <|file_sep|>original/app/views/smart_answers/shared/_debug.html.erb <% if debug? %> <article> <pre class="application-n...
<% if debug? %> <article> <pre class="application-notice info-notice debug"> Debug info: <% @presenter.state.to_hash.each do |k, v| %> <%= "#{k}: #{v.to_s}"%> <% end %> </pre> </article> <% end %>
<|file_sep|>app/views/smart_answers/shared/_debug.html.erb.diff original: <% @presenter.current_state.to_hash.each do |k, v| %> updated: <% @presenter.state.to_hash.each do |k, v| %> <|file_sep|>original/app/views/smart_answers/shared/_debug.html.erb <% if debug? %> <article> <pre class="application-n...
8ddf5f20df53d4f91cac03f77361f50b4bd9d780
app/views/smart_answers/shared/_debug.html.erb
app/views/smart_answers/shared/_debug.html.erb
HTML+ERB
<|file_sep|>visualize_data.py.diff original: updated: parser.add_argument('--reverse', action='store_true') <|file_sep|>original/visualize_data.py import cv2 import h5py import util def main(): parser = argparse.ArgumentParser() parser.add_argument('hdf5_fname', type=str) parser.add_argument('--vis_sc...
def main(): parser = argparse.ArgumentParser() parser.add_argument('hdf5_fname', type=str) parser.add_argument('--vis_scale', '-r', type=int, default=10, metavar='R', help='rescale image by R for visualization') parser.add_argument('--reverse', action='store_true') args = parser.parse_args() ...
<|file_sep|>visualize_data.py.diff original: updated: parser.add_argument('--reverse', action='store_true') <|file_sep|>original/visualize_data.py import cv2 import h5py import util def main(): parser = argparse.ArgumentParser() parser.add_argument('hdf5_fname', type=str) parser.add_argument('--vis_sc...
290a1f7a2c6860ec57bdb74b9c97207e93e611f0
visualize_data.py
visualize_data.py
Python
<|file_sep|>README.md.diff original: ## TODO updated: ## Usage <|file_sep|>original/README.md # Guenther [![License](http://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/foobar0815/guenther/blob/master/LICENSE.md) [![Build Status](https://travis-ci.org/foobar0815/guenther.svg?branch=master)](https://tr...
An XMPP quiz bot. ## Licensing This project is licensed under the terms of the MIT license, see LICENSE.md file. [MoxQuizz](http://moxquizz.de) data files are distributed under the terms of the GNU General Public License version 2 (GPLv2). ## Usage ``` ./guenther [options] -j, --jid JID Jab...
<|file_sep|>README.md.diff original: ## TODO updated: ## Usage <|file_sep|>original/README.md # Guenther [![License](http://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/foobar0815/guenther/blob/master/LICENSE.md) [![Build Status](https://travis-ci.org/foobar0815/guenther.svg?branch=master)](https://tr...
7221651c9895c2ad079e552d7170bd553b81a87e
README.md
README.md
Markdown
<|file_sep|>resources/src/jade/learn-more.jade.diff original: .main-wrapper-no-sidebar#clj-learn-more h1 ${learn-more/page-title} h2 ${learn-more/sub-title} p.lede ${learn-more/page-intro} updated: extends base <|file_sep|>original/resources/src/jade/learn-more.jade .main-wrapper-no-sidebar#clj-learn-more h1 ${...
extends base block vars // - pageTitle = "Settings" block content .main-wrapper-no-sidebar#clj-learn-more h1 ${learn-more/page-title} h2 ${learn-more/sub-title} p.lede ${learn-more/page-intro} #clj-learn-more-detail | {{learn-more/page-content}} a.button.index-get-started(href="/objecti...
<|file_sep|>resources/src/jade/learn-more.jade.diff original: .main-wrapper-no-sidebar#clj-learn-more h1 ${learn-more/page-title} h2 ${learn-more/sub-title} p.lede ${learn-more/page-intro} updated: extends base <|file_sep|>original/resources/src/jade/learn-more.jade .main-wrapper-no-sidebar#clj-learn-more h1 ${...
2290db62b64168b8b453c3049a26646c19a1432f
resources/src/jade/learn-more.jade
resources/src/jade/learn-more.jade
Jade
<|file_sep|>original/vars/jplCheckoutSCM.groovy parentCredentials: true, recursiveSubmodules: true, reference: '', trackingSubmodules: false]], userRemoteConfigs: scm.userRemoteConfigs ]) ...
parentCredentials: true, recursiveSubmodules: true, reference: '', trackingSubmodules: false]], userRemoteConfigs: scm.userRemoteConfigs ]) */ checkout scm ...
<|file_sep|>original/vars/jplCheckoutSCM.groovy parentCredentials: true, recursiveSubmodules: true, reference: '', trackingSubmodules: false]], userRemoteConfigs: scm.userRemoteConfigs ]) ...
bd06b3eaf252a4670d039b9db3df0689e428c249
vars/jplCheckoutSCM.groovy
vars/jplCheckoutSCM.groovy
Groovy
<|file_sep|>original/lib/baustelle/commands/validate_config.rb module Baustelle module Commands module ValidateConfig extend self def call(specification_file, region) config = Baustelle::Config.read(specification_file) template = Baustelle::StackTemplate.new(config).build('ValidationT...
module Baustelle module Commands module ValidateConfig extend self def call(specification_file, region) config = Baustelle::Config.read(specification_file) template = Baustelle::StackTemplate.new(config).build('ValidationTemplate', region, "baustelle-workspace-bucket", 'UUID') ...
<|file_sep|>original/lib/baustelle/commands/validate_config.rb module Baustelle module Commands module ValidateConfig extend self def call(specification_file, region) config = Baustelle::Config.read(specification_file) template = Baustelle::StackTemplate.new(config).build('ValidationT...
091555adfea2890092707ec6c5546905c682d916
lib/baustelle/commands/validate_config.rb
lib/baustelle/commands/validate_config.rb
Ruby
<|file_sep|>original/dimagi/utils/prime_views.py <|file_sep|>current/dimagi/utils/prime_views.py <|file_sep|>updated/dimagi/utils/prime_views.py
def prime_views(pool_size): """ Prime the views so that a very large import doesn't cause the index to get too far behind """ # These have to be included here or ./manage.py runserver explodes on # all pages of the app with single thread related errors from gevent.pool import Pool from ...
<|file_sep|>original/dimagi/utils/prime_views.py <|file_sep|>current/dimagi/utils/prime_views.py <|file_sep|>updated/dimagi/utils/prime_views.py def prime_views(pool_size): """ Prime the views so that a very large import doesn't cause the index to get too far behind """ # These have to be include...
b7ede20d4e82b5aba701dd02c49ca8a5fe00e0ed
dimagi/utils/prime_views.py
dimagi/utils/prime_views.py
Python
<|file_sep|>original/sass/example.scss $map: map-set($map, 'key2', 'value3'); // @debug $map; @debug map-get-deep($map, 'key4', 'nine', 'eight'); @debug $map; $map: map-set-deep($map, ('key3' 'baz' 'waldo'), "molly"); $map: map-set-deep($map, ('key3' 'baz' 'qux'), 'quark'); $map: map-set-deep($map, ('key3' 'jedi' 'va...
// @debug $map; @debug map-get-deep($map, 'key4', 'nine', 'eight'); @debug $map; $map: map-set-deep($map, ('key3' 'baz' 'waldo'), "molly"); $map: map-set-deep($map, ('key3' 'baz' 'qux'), 'quark'); $map: map-set-deep($map, ('key3' 'jedi' 'vader'), 'red'); $map: map-set-deep($map, ('key3' 'jedi' 'luke'), 'green'); $map...
<|file_sep|>original/sass/example.scss $map: map-set($map, 'key2', 'value3'); // @debug $map; @debug map-get-deep($map, 'key4', 'nine', 'eight'); @debug $map; $map: map-set-deep($map, ('key3' 'baz' 'waldo'), "molly"); $map: map-set-deep($map, ('key3' 'baz' 'qux'), 'quark'); $map: map-set-deep($map, ('key3' 'jedi' 'va...
2dd4dcd13f70e12ae4a801962c16f51b3a11d2f5
sass/example.scss
sass/example.scss
SCSS
<|file_sep|>original/.travis.yml node_js: - "7" - "6" cache: yarn # This normally isn't necessary, but since we're specifying an explicit install step, # we also need to explicitly install Yarn. before_install: - curl -o- -L https://yarnpkg.com/install.sh | bash - export PATH=$HOME/.yarn/bin:$PATH install: - y...
node_js: - "7" - "6" cache: yarn # This normally isn't necessary, but since we're specifying an explicit install step, # we also need to explicitly install Yarn. before_install: - curl -o- -L https://yarnpkg.com/install.sh | bash - export PATH=$HOME/.yarn/bin:$PATH install: - yarn install - cd example && yarn ...
<|file_sep|>original/.travis.yml node_js: - "7" - "6" cache: yarn # This normally isn't necessary, but since we're specifying an explicit install step, # we also need to explicitly install Yarn. before_install: - curl -o- -L https://yarnpkg.com/install.sh | bash - export PATH=$HOME/.yarn/bin:$PATH install: - y...
5f141eb632eb3d7b2f4ec488e76754c57aa3ad1b
.travis.yml
.travis.yml
YAML
<|file_sep|>original/playbooks/roles/authn/tasks/main.yml - name: Build Authn MFE include_role: name: mfe vars: MFE_NAME: authn MFE_VERSION: '{{ AUTHN_MFE_VERSION }}' <|file_sep|>current/playbooks/roles/authn/tasks/main.yml - name: Build Authn MFE include_role: name: mfe vars: MFE_NAME: auth...
- name: Build Authn MFE include_role: name: mfe vars: MFE_NAME: authn MFE_VERSION: '{{ AUTHN_MFE_VERSION }}' MFE_SITE_NAME: 'Your Platform Name Here'
<|file_sep|>original/playbooks/roles/authn/tasks/main.yml - name: Build Authn MFE include_role: name: mfe vars: MFE_NAME: authn MFE_VERSION: '{{ AUTHN_MFE_VERSION }}' <|file_sep|>current/playbooks/roles/authn/tasks/main.yml - name: Build Authn MFE include_role: name: mfe vars: MFE_NAME: auth...
0723826cb06a82da7a8149d9bb3eea396299f3b5
playbooks/roles/authn/tasks/main.yml
playbooks/roles/authn/tasks/main.yml
YAML
<|file_sep|>step.sh.diff original: set -x updated: set -e <|file_sep|>original/step.sh #!/bin/bash set -x NO_USE_BINARIES="" # # Make sure brew has Carthage installed brew update && brew install carthage if [ $no_use_binaries == "1" ]; then $"NO_USE_BINARIES"="--no-use-binaries" fi # # Bootstrap carthage $"cartha...
#!/bin/bash set -e NO_USE_BINARIES="" # # Make sure brew has Carthage installed brew update && brew install carthage if [ $"no_use_binaries" == "1" ]; then $"NO_USE_BINARIES"="--no-use-binaries" fi # # Bootstrap carthage $"carthage_command" --platform iOS $"NO_USE_BINARIES"
<|file_sep|>step.sh.diff original: set -x updated: set -e <|file_sep|>original/step.sh #!/bin/bash set -x NO_USE_BINARIES="" # # Make sure brew has Carthage installed brew update && brew install carthage if [ $no_use_binaries == "1" ]; then $"NO_USE_BINARIES"="--no-use-binaries" fi # # Bootstrap carthage $"cartha...
05758a30f9a2f20e81d8b4f5b7e3221a35e9e047
step.sh
step.sh
Shell
<|file_sep|>original/package.json "name": "tbwdjs", "description": "a wrapper for camme/webdriverjs to ease testingbot.com testing", "private": false, "author": { "name": "Tom Regner", "email": "tom@goochesa.de" }, "main": "./lib/tbwdjs", "version": "0.1.1", "dependencies": { "webdriverjs": ...
"name": "tbwdjs", "description": "a wrapper for camme/webdriverjs to ease testingbot.com testing", "private": false, "author": { "name": "Tom Regner", "email": "tom@goochesa.de" }, "main": "./lib/tbwdjs", "version": "0.1.1", "dependencies": { "webdriverjs": ">= 0.6.9", "qs": "*", "no...
<|file_sep|>original/package.json "name": "tbwdjs", "description": "a wrapper for camme/webdriverjs to ease testingbot.com testing", "private": false, "author": { "name": "Tom Regner", "email": "tom@goochesa.de" }, "main": "./lib/tbwdjs", "version": "0.1.1", "dependencies": { "webdriverjs": ...
3bc621d4e42382ef7c454e3336a14226583172b8
package.json
package.json
JSON
<|file_sep|>.github/workflows/check_new_versions.yml.diff original: runs-on: ubuntu-20.04 updated: runs-on: ubuntu-22.04 <|file_sep|>.github/workflows/check_new_versions.yml.diff original: uses: actions/setup-python@v2 updated: uses: actions/setup-python@v4 <|file_sep|>.github/workflows/check_ne...
workflow_dispatch: jobs: check_new_releases: runs-on: ubuntu-22.04 steps: - name: Checkout repository uses: actions/checkout@v3 - name: Setup python environment uses: actions/setup-python@v4 with: python-version: "3.11" - name: Install Python dependenci...
<|file_sep|>.github/workflows/check_new_versions.yml.diff original: runs-on: ubuntu-20.04 updated: runs-on: ubuntu-22.04 <|file_sep|>.github/workflows/check_new_versions.yml.diff original: uses: actions/setup-python@v2 updated: uses: actions/setup-python@v4 <|file_sep|>.github/workflows/check_ne...
dcb34e224d7bab4b53e11c52eea4b4ea40c72725
.github/workflows/check_new_versions.yml
.github/workflows/check_new_versions.yml
YAML
<|file_sep|>original/parent-node/README.md # `ParentNode` https://dom.spec.whatwg.org/#interface-parentnode <|file_sep|>current/parent-node/README.md # `ParentNode` https://dom.spec.whatwg.org/#interface-parentnode <|file_sep|>updated/parent-node/README.md
# `ParentNode` https://dom.spec.whatwg.org/#interface-parentnode To convert nodes into a node, given nodes and document, run these steps: 1. Let node be null. 2. Replace each string in nodes with a new Text node whose data is the string and node document is document. 3. If nodes contains one node, set node...
<|file_sep|>original/parent-node/README.md # `ParentNode` https://dom.spec.whatwg.org/#interface-parentnode <|file_sep|>current/parent-node/README.md # `ParentNode` https://dom.spec.whatwg.org/#interface-parentnode <|file_sep|>updated/parent-node/README.md # `ParentNode` https://dom.spec.whatwg.org/#interface-...
6d8cbeb9fb26b2bda9b7503623c2101702995034
parent-node/README.md
parent-node/README.md
Markdown
<|file_sep|>original/src/vs/workbench/api/browser/mainThreadBulkEdits.ts import { ILogService } from 'vs/platform/log/common/log'; @extHostNamedCustomer(MainContext.MainThreadBulkEdits) export class MainThreadBulkEdits implements MainThreadBulkEditsShape { constructor( _extHostContext: IExtHostContext, @IBulkEdi...
import { ILogService } from 'vs/platform/log/common/log'; @extHostNamedCustomer(MainContext.MainThreadBulkEdits) export class MainThreadBulkEdits implements MainThreadBulkEditsShape { constructor( _extHostContext: IExtHostContext, @IBulkEditService private readonly _bulkEditService: IBulkEditService, @ILogServ...
<|file_sep|>original/src/vs/workbench/api/browser/mainThreadBulkEdits.ts import { ILogService } from 'vs/platform/log/common/log'; @extHostNamedCustomer(MainContext.MainThreadBulkEdits) export class MainThreadBulkEdits implements MainThreadBulkEditsShape { constructor( _extHostContext: IExtHostContext, @IBulkEdi...
b5299e3690f8a64a4963851fc92ceff8975014ff
src/vs/workbench/api/browser/mainThreadBulkEdits.ts
src/vs/workbench/api/browser/mainThreadBulkEdits.ts
TypeScript
<|file_sep|>spec/palletjack-tool_spec.rb.diff original: it 'can run a block in its instance context' do expect(PalletJack::Tool.run { self.class }).to be PalletJack::Tool end updated: context 'without a command line' do before :each do allow(PalletJack::Tool.instance).to receive(:argv).and_return([]...
it 'requires a warehouse' do allow($stderr).to receive :write # Drop stderr output from #abort expect{ PalletJack::Tool.run { jack } }.to raise_error SystemExit end end context 'with example warehouse' do before :each do class TestTool < PalletJack::Tool def options ...
<|file_sep|>spec/palletjack-tool_spec.rb.diff original: it 'can run a block in its instance context' do expect(PalletJack::Tool.run { self.class }).to be PalletJack::Tool end updated: context 'without a command line' do before :each do allow(PalletJack::Tool.instance).to receive(:argv).and_return([]...
59719b185dfe73b51e462fa2d26edfb737900361
spec/palletjack-tool_spec.rb
spec/palletjack-tool_spec.rb
Ruby
<|file_sep|>original/index.js 'use strict'; exports.handler = (event, context, callback) => { // TODO implement callback(null, 'Hello from Lambda'); }; <|file_sep|>current/index.js 'use strict'; exports.handler = (event, context, callback) => { // TODO implement callback(null, 'Hello from Lambda'); };...
'use strict'; const AWS = require('aws-sdk'); const codePipeline = new AWS.CodePipeline(); exports.handler = (event, context, callback) => { // TODO implement callback(null, 'Hello from Lambda'); };
<|file_sep|>original/index.js 'use strict'; exports.handler = (event, context, callback) => { // TODO implement callback(null, 'Hello from Lambda'); }; <|file_sep|>current/index.js 'use strict'; exports.handler = (event, context, callback) => { // TODO implement callback(null, 'Hello from Lambda'); };...
02475c8112abf48d8512061b5edcaa1737d526da
index.js
index.js
JavaScript
<|file_sep|>original/setup.py from distutils.core import setup setup( name="simple_slack_bot", packages=["simple_slack_bot"], # this must be the same as the name above version="1.3.0", description="Simple Slack Bot makes writing your next Slack bot incredibly easy", long_description="Simple Slack ...
from distutils.core import setup setup( name="simple_slack_bot", packages=["simple_slack_bot"], # this must be the same as the name above version="1.3.1", description="Simple Slack Bot makes writing your next Slack bot incredibly easy", long_description="Simple Slack Bot makes writing your next Sl...
<|file_sep|>original/setup.py from distutils.core import setup setup( name="simple_slack_bot", packages=["simple_slack_bot"], # this must be the same as the name above version="1.3.0", description="Simple Slack Bot makes writing your next Slack bot incredibly easy", long_description="Simple Slack ...
ec06de04a6696894e3058ca00e53c13ad441b357
setup.py
setup.py
Python
<|file_sep|>original/syntax_makefile.py import wx.stc ident = "makefile" name = "Makefile" extensions = ["Makefile", "*.mk"] lexer = wx.stc.STC_LEX_MAKEFILE indent = 8 use_tabs = True stylespecs = ( (wx.stc.STC_STYLE_DEFAULT, ""), ) keywords = "" <|file_sep|>current/syntax_makefile.py import wx.stc ident = "...
import wx.stc ident = "makefile" name = "Makefile" extensions = ["*Makefile", "*makefile", "*.mk"] lexer = wx.stc.STC_LEX_MAKEFILE indent = 8 use_tabs = True stylespecs = ( (wx.stc.STC_STYLE_DEFAULT, ""), ) keywords = ""
<|file_sep|>original/syntax_makefile.py import wx.stc ident = "makefile" name = "Makefile" extensions = ["Makefile", "*.mk"] lexer = wx.stc.STC_LEX_MAKEFILE indent = 8 use_tabs = True stylespecs = ( (wx.stc.STC_STYLE_DEFAULT, ""), ) keywords = "" <|file_sep|>current/syntax_makefile.py import wx.stc ident = "...
305d04fc0841035bf744480261017c14ae3045b0
syntax_makefile.py
syntax_makefile.py
Python
<|file_sep|>extract_time_from_sentence_func.swift.diff original: print("\(tuple.index)") updated: <|file_sep|>original/extract_time_from_sentence_func.swift var numDictionary = [ "zero": 0, "one": 1, "two": 2, "three": 3, "four": 4, "five": 5, "six": 6, "seven": 7, "eight": 8, "nine": 9, "ten": 10,...
"seventeen": 17, "eighteen": 18, "nineteen": 19, "twenty": 20 ] func extractTimeFromSentence(inout str:String) -> (Int) { var numInt: Int? let splitedSentenceArray: [String] = str.componentsSeparatedByString(" ") for tuple in splitedSentenceArray.enumerate() { if ((tuple.element == "minute") ||...
<|file_sep|>extract_time_from_sentence_func.swift.diff original: print("\(tuple.index)") updated: <|file_sep|>original/extract_time_from_sentence_func.swift var numDictionary = [ "zero": 0, "one": 1, "two": 2, "three": 3, "four": 4, "five": 5, "six": 6, "seven": 7, "eight": 8, "nine": 9, "ten": 10,...
bc0ea76f55668065762025cad742b2c7ff4f1be1
extract_time_from_sentence_func.swift
extract_time_from_sentence_func.swift
Swift
<|file_sep|>src/Application/Sonata/CommentBundle/Entity/Comment.php.diff original: use FOS\CommentBundle\Model\SignedCommentInterface; updated: <|file_sep|>src/Application/Sonata/CommentBundle/Entity/Comment.php.diff original: class Comment extends BaseComment implements SignedCommentInterface updated: class Comment e...
{ /** * @var integer $id */ protected $id; /** * @var UserInterface */ protected $author; /** * Get id * * @return integer $id */ public function getId() { return $this->id; } }
<|file_sep|>src/Application/Sonata/CommentBundle/Entity/Comment.php.diff original: use FOS\CommentBundle\Model\SignedCommentInterface; updated: <|file_sep|>src/Application/Sonata/CommentBundle/Entity/Comment.php.diff original: class Comment extends BaseComment implements SignedCommentInterface updated: class Comment e...
2352fec06fb621154e410c6d05949e77cd081e41
src/Application/Sonata/CommentBundle/Entity/Comment.php
src/Application/Sonata/CommentBundle/Entity/Comment.php
PHP
<|file_sep|>original/examples/example_formdata.html <|file_sep|>current/examples/example_formdata.html <|file_sep|>updated/examples/example_formdata.html
<!-- Example on collecting user information from submitted forms --> <html> <head> <!--Countly script--> <script type='text/javascript' src='../lib/countly.min.js'></script> <script type='text/javascript'> //initializing countly with params Countly.init({ app_key: "YOUR_APP_KEY", url: "http://data.count.ly", //or no...
<|file_sep|>original/examples/example_formdata.html <|file_sep|>current/examples/example_formdata.html <|file_sep|>updated/examples/example_formdata.html <!-- Example on collecting user information from submitted forms --> <html> <head> <!--Countly script--> <script type='text/javascript' src='../lib/countly.min.js'>...
11991f70a7589f8db1a888e974a529a103268480
examples/example_formdata.html
examples/example_formdata.html
HTML
<|file_sep|>original/nix/__init__.py from nix.core import File, FileMode, Block, DataType, Section, Property, Value, \ Source, DataArray, RangeDimension, SetDimension, SampledDimension, \ DimensionType, Feature, LinkType, Tag, MultiTag from nix.block import BlockMixin from nix.file import FileMixin from nix.se...
from nix.block import BlockMixin from nix.file import FileMixin from nix.section import SectionMixin from nix.property import PropertyMixin, ValueMixin from nix.source import SourceMixin from nix.data_array import DataArrayMixin from nix.tag import TagMixin from nix.multi_tag import MultiTagMixin from nix.entity_with_...
<|file_sep|>original/nix/__init__.py from nix.core import File, FileMode, Block, DataType, Section, Property, Value, \ Source, DataArray, RangeDimension, SetDimension, SampledDimension, \ DimensionType, Feature, LinkType, Tag, MultiTag from nix.block import BlockMixin from nix.file import FileMixin from nix.se...
8ef4417a95fdd9b5dde26583a9624181639df600
nix/__init__.py
nix/__init__.py
Python
<|file_sep|>original/phpunit.xml <?xml version="1.0" encoding="UTF-8"?> <phpunit colors="true" bootstrap="vendor/autoload.php"> <testsuites> <testsuite> <directory>tests</directory> </testsuite> </testsuites> <filter> <whitelist processUncoveredFilesFromWhitelist="true"> ...
<?xml version="1.0" encoding="UTF-8"?> <phpunit colors="true" bootstrap="vendor/autoload.php"> <testsuites> <testsuite name="Event tests"> <directory>tests</directory> </testsuite> </testsuites> <filter> <whitelist processUncoveredFilesFromWhitelist="true"> <d...
<|file_sep|>original/phpunit.xml <?xml version="1.0" encoding="UTF-8"?> <phpunit colors="true" bootstrap="vendor/autoload.php"> <testsuites> <testsuite> <directory>tests</directory> </testsuite> </testsuites> <filter> <whitelist processUncoveredFilesFromWhitelist="true"> ...
60dfefd9f5dc31d7c095481b7d89730624918b5c
phpunit.xml
phpunit.xml
XML
<|file_sep|>original/src/components/editor/RegionTools.sass top: rem(5) right: rem(5) color: #aaa .no-touch .RegionTools button:hover .SVGIcon > g stroke: black .RegionTools .DragHandler transform: rotate(90deg) cursor: move .editor-region[data-num-blocks="1"] .DragHandler display: none .BlockPlacehol...
top: rem(5) right: rem(5) color: #aaa .no-touch .RegionTools button:hover .SVGIcon > g stroke: black .RegionTools .DragHandler transform: rotate(90deg) cursor: move display: none .no-touch .RegionTools .DragHandler display: block .editor-region[data-num-blocks="1"] .DragHandler display: none .Blo...
<|file_sep|>original/src/components/editor/RegionTools.sass top: rem(5) right: rem(5) color: #aaa .no-touch .RegionTools button:hover .SVGIcon > g stroke: black .RegionTools .DragHandler transform: rotate(90deg) cursor: move .editor-region[data-num-blocks="1"] .DragHandler display: none .BlockPlacehol...
5188917147f5eb934926d6c4bd9b0b17dd1c36c1
src/components/editor/RegionTools.sass
src/components/editor/RegionTools.sass
Sass
<|file_sep|>salt/grains/ssds.py.diff original: import os updated: # Import python libs import glob <|file_sep|>salt/grains/ssds.py.diff original: updated: <|file_sep|>salt/grains/ssds.py.diff original: SSDs = [] for subdir, dirs, files in os.walk('/sys/block'): for dir in dirs: flagfile ...
log = logging.getLogger(__name__) def ssds(): ''' Return list of disk devices that are SSD (non-rotational) ''' ssd_devices = [] for entry in glob.glob('/sys/block/*/queue/rotational'): with salt.utils.fopen(entry) as entry_fp: device = entry.split('/')[3] flag = e...
<|file_sep|>salt/grains/ssds.py.diff original: import os updated: # Import python libs import glob <|file_sep|>salt/grains/ssds.py.diff original: updated: <|file_sep|>salt/grains/ssds.py.diff original: SSDs = [] for subdir, dirs, files in os.walk('/sys/block'): for dir in dirs: flagfile ...
7a49e7c4344f7d78a84644ade5ca1c3251065f4a
salt/grains/ssds.py
salt/grains/ssds.py
Python
<|file_sep|>original/requirements.txt tornado==4.0.2 redis==2.10.3 gunicorn==19.0.0 <|file_sep|>current/requirements.txt tornado==4.0.2 redis==2.10.3 gunicorn==19.0.0 <|file_sep|>updated/requirements.txt
tornado==4.0.2 redis==2.10.3 gunicorn=19.0.0
<|file_sep|>original/requirements.txt tornado==4.0.2 redis==2.10.3 gunicorn==19.0.0 <|file_sep|>current/requirements.txt tornado==4.0.2 redis==2.10.3 gunicorn==19.0.0 <|file_sep|>updated/requirements.txt tornado==4.0.2 redis==2.10.3 gunicorn=19.0.0
0938a4858457b9b92eca45047cacaaa502faf6b4
requirements.txt
requirements.txt
Text
<|file_sep|>original/install.sh <|file_sep|>current/install.sh <|file_sep|>updated/install.sh
#!/bin/bash # Install Docker IaaS tools. # Need to be run with root privileges. # # Created by Peter Bryzgalov # Copyright (C) 2015 RIKEN AICS. All rights reserved version="0.30" debug=1 #### Configuration section forcecommand="/usr/local/bin/diaas.sh" forcecommandlog="/var/log/diaas.log" tablesfolder="/var/lib/di...
<|file_sep|>original/install.sh <|file_sep|>current/install.sh <|file_sep|>updated/install.sh #!/bin/bash # Install Docker IaaS tools. # Need to be run with root privileges. # # Created by Peter Bryzgalov # Copyright (C) 2015 RIKEN AICS. All rights reserved version="0.30" debug=1 #### Configuration section force...
51772ddc823ceda9290f1deb278ae6c37bff2c33
install.sh
install.sh
Shell
<|file_sep|>original/.github/workflows/linux.yml name: Linux on: [push] jobs: Linux: timeout-minutes: 15 runs-on: ubuntu-18.04 steps: - name: Checkout uses: actions/checkout@v1 with: submodules: recursive - name: Set environment run: | echo ::set-env name=GRABB...
name: Linux on: [push] jobs: Linux: timeout-minutes: 20 runs-on: ubuntu-18.04 steps: - name: Checkout uses: actions/checkout@v1 with: submodules: recursive - name: Set environment run: | echo ::set-env name=GRABBER_VERSION::nightly echo ::set-env name=G...
<|file_sep|>original/.github/workflows/linux.yml name: Linux on: [push] jobs: Linux: timeout-minutes: 15 runs-on: ubuntu-18.04 steps: - name: Checkout uses: actions/checkout@v1 with: submodules: recursive - name: Set environment run: | echo ::set-env name=GRABB...
437ab2bb5e9bfc356ebb411c73050626a778fc38
.github/workflows/linux.yml
.github/workflows/linux.yml
YAML
<|file_sep|>original/.ci-Windows.yaml compilers: - name: "Visual Studio", version: "12" - name: "Visual Studio" version: "12" architecture: "Win64" <|file_sep|>current/.ci-Windows.yaml compilers: - name: "Visual Studio", version: "12" - name: "Visual Studio" version: "12" architectur...
compilers: - name: Visual Studio version: 12 - name: Visual Studio version: 12 architecture: Win64
<|file_sep|>original/.ci-Windows.yaml compilers: - name: "Visual Studio", version: "12" - name: "Visual Studio" version: "12" architecture: "Win64" <|file_sep|>current/.ci-Windows.yaml compilers: - name: "Visual Studio", version: "12" - name: "Visual Studio" version: "12" architectur...
6c30055c649614b356fb5b576c5fa9e38e2fb0b5
.ci-Windows.yaml
.ci-Windows.yaml
YAML
<|file_sep|>original/src/resources/stylesheets/aggregates/doc2doc-uniqueids.xsl <xsl:key name="node-id" match="*" use="@id"/> <!-- If we encounter a section with an @id, make that @id globally unique by prefixing the id of the current document --> <xsl:template match="section/document//@id"> <xsl:attribute...
prefixing the id of the current document --> <xsl:template match="section/document//@id"> <xsl:attribute name="id"><xsl:value-of select="concat(ancestor::section/@id, '#', .)"/></xsl:attribute> </xsl:template> <!-- Make #fragment-id references inside each page globally unique --> <xsl:template match="s...
<|file_sep|>original/src/resources/stylesheets/aggregates/doc2doc-uniqueids.xsl <xsl:key name="node-id" match="*" use="@id"/> <!-- If we encounter a section with an @id, make that @id globally unique by prefixing the id of the current document --> <xsl:template match="section/document//@id"> <xsl:attribute...
30af328cd0adf748fc48b6c9cde96543ddf1e25c
src/resources/stylesheets/aggregates/doc2doc-uniqueids.xsl
src/resources/stylesheets/aggregates/doc2doc-uniqueids.xsl
XSLT
<|file_sep|>shinken/webui/plugins/graphs/views/widget_graphs.tpl.diff original: updated: <|file_sep|>original/shinken/webui/plugins/graphs/views/widget_graphs.tpl %import time %now = time.time() %helper = app.helper %datamgr = app.datamgr %rebase widget globals(), css=['graphs/css/widget_graphs.css'] %if not elt: ...
%now = time.time() %helper = app.helper %datamgr = app.datamgr %rebase widget globals(), css=['graphs/css/widget_graphs.css'] %if not elt: <span>No element selected!</span> %else: # Reduce the time range of the dashboard graph. Last hour. # and specify the source : dashboard %uris = app.get_graph_uris(elt...
<|file_sep|>shinken/webui/plugins/graphs/views/widget_graphs.tpl.diff original: updated: <|file_sep|>original/shinken/webui/plugins/graphs/views/widget_graphs.tpl %import time %now = time.time() %helper = app.helper %datamgr = app.datamgr %rebase widget globals(), css=['graphs/css/widget_graphs.css'] %if not elt: ...
c05eb95f390a0755cf5882d8fc6e92f0fc3a354a
shinken/webui/plugins/graphs/views/widget_graphs.tpl
shinken/webui/plugins/graphs/views/widget_graphs.tpl
Smarty
<|file_sep|>docs/index.rst.diff original: .. _integrator-docs: Integrator Documentation ------------------------ If you want to integrate the App-Manager to your system and you want to sell apps on your website, please get started with one of the following topics: .. toctree:: :maxdepth: 2 api/index int...
If you want to develop apps, then start with one of these topics: .. toctree:: :maxdepth: 2 api/index api/apikey postman .. _integrator-docs: Integrator Documentation ------------------------ If you want to integrate the App-Manager to your system and you want to sell apps on your website, please ...
<|file_sep|>docs/index.rst.diff original: .. _integrator-docs: Integrator Documentation ------------------------ If you want to integrate the App-Manager to your system and you want to sell apps on your website, please get started with one of the following topics: .. toctree:: :maxdepth: 2 api/index int...
d2c4f369c65ece9e4be2daae1c0b617e4e2f5fdc
docs/index.rst
docs/index.rst
reStructuredText
<|file_sep|>original/djangoautoconf/auto_conf_admin_tools/reversion_feature.py from djangoautoconf.auto_conf_admin_tools.admin_feature_base import AdminFeatureBase from django.conf import settings __author__ = 'weijia' class ReversionFeature(AdminFeatureBase): def __init__(self): super(ReversionFeature, ...
from djangoautoconf.auto_conf_admin_tools.admin_feature_base import AdminFeatureBase from django.conf import settings __author__ = 'weijia' class ReversionFeature(AdminFeatureBase): def __init__(self): super(ReversionFeature, self).__init__() self.related_search_fields = {} def process_paren...
<|file_sep|>original/djangoautoconf/auto_conf_admin_tools/reversion_feature.py from djangoautoconf.auto_conf_admin_tools.admin_feature_base import AdminFeatureBase from django.conf import settings __author__ = 'weijia' class ReversionFeature(AdminFeatureBase): def __init__(self): super(ReversionFeature, ...
6589df70baad1b57c604736d75e424465cf8775e
djangoautoconf/auto_conf_admin_tools/reversion_feature.py
djangoautoconf/auto_conf_admin_tools/reversion_feature.py
Python
<|file_sep|>original/web/lib/soapbox_pb.rb <|file_sep|>current/web/lib/soapbox_pb.rb <|file_sep|>updated/web/lib/soapbox_pb.rb
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: soapbox.proto require 'google/protobuf' Google::Protobuf::DescriptorPool.generated_pool.build do add_message "soapbox.Empty" do end end module Soapbox Empty = Google::Protobuf::DescriptorPool.generated_pool.lookup("soapbox.Empty").msgclass en...
<|file_sep|>original/web/lib/soapbox_pb.rb <|file_sep|>current/web/lib/soapbox_pb.rb <|file_sep|>updated/web/lib/soapbox_pb.rb # Generated by the protocol buffer compiler. DO NOT EDIT! # source: soapbox.proto require 'google/protobuf' Google::Protobuf::DescriptorPool.generated_pool.build do add_message "soapbox....
bb265ab36080e87567f80aad838ff36f3beacb6c
web/lib/soapbox_pb.rb
web/lib/soapbox_pb.rb
Ruby
<|file_sep|>website/templates/romvariantfiltersidebar.jade.diff original: updated: - var variantName = romVariantArticle.metadata.displayName ? romVariantArticle.metadata.displayName : romVariantArticle.metadata.name <|file_sep|>original/website/templates/romvariantfiltersidebar.jade mixin romvariantfilter...
mixin romvariantfiltersidebar(deviceId) - var romVariantArticlesForCurrentDevice = [] - for (var i in contents.romvariants) { - var variantArticle = contents.romvariants[i] - if (variantArticle.metadata.DeviceId == deviceId) { - romVariantArticlesForCurrentDevice.push(variantArticle) - } - } ...
<|file_sep|>website/templates/romvariantfiltersidebar.jade.diff original: updated: - var variantName = romVariantArticle.metadata.displayName ? romVariantArticle.metadata.displayName : romVariantArticle.metadata.name <|file_sep|>original/website/templates/romvariantfiltersidebar.jade mixin romvariantfilter...
1d93aa0ae2f9e611a998c9fbb700605b4a554cee
website/templates/romvariantfiltersidebar.jade
website/templates/romvariantfiltersidebar.jade
Jade
<|file_sep|>original/src/routes.js import React from 'react'; import { Route } from 'react-router'; /* containers */ import { App } from 'containers/App'; import { Home } from 'containers/Home'; import { List } from 'containers/List'; export default ( <Route path="/" component={App}> <Route path="home" componen...
import React from 'react'; import { Route } from 'react-router'; /* containers */ import { App } from 'containers/App'; import { Home } from 'containers/Home'; import { List } from 'containers/List'; export default ( <Route path="/" component={App}> <Route path="home" component={Home} /> <Route path="list" ...
<|file_sep|>original/src/routes.js import React from 'react'; import { Route } from 'react-router'; /* containers */ import { App } from 'containers/App'; import { Home } from 'containers/Home'; import { List } from 'containers/List'; export default ( <Route path="/" component={App}> <Route path="home" componen...
f11384c49b033e247b24e17fd7740ebb30fd6a1a
src/routes.js
src/routes.js
JavaScript
<|file_sep|>original/tensorflow/python/distribute/__init__.py # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ==============================================================================...
# distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ========================================================================...
<|file_sep|>original/tensorflow/python/distribute/__init__.py # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ==============================================================================...
fb837585264e6abe4b0488e3a9dd5c5507e69bf6
tensorflow/python/distribute/__init__.py
tensorflow/python/distribute/__init__.py
Python
<|file_sep|>zinnia/templates/admin/zinnia/app_index.html.diff original: <link rel="stylesheet" type="text/css" href="{% static "zinnia/css/jquery.autocomplete.css" %}" /> updated: <|file_sep|>original/zinnia/templates/admin/zinnia/app_index.html {% block extrastyle %} {{ block.super }} <link rel="stylesheet" type="tex...
{% block extrastyle %} {{ block.super }} <link rel="stylesheet" type="text/css" href="{% static "zinnia/css/admin.dashboard.css" %}" /> {% endblock extrastyle %} {% block extrahead %} {{ block.super }} <script type="text/javascript" src="{% static "zinnia/js/jquery.js" %}"></script> <script type="text/javascript" src=...
<|file_sep|>zinnia/templates/admin/zinnia/app_index.html.diff original: <link rel="stylesheet" type="text/css" href="{% static "zinnia/css/jquery.autocomplete.css" %}" /> updated: <|file_sep|>original/zinnia/templates/admin/zinnia/app_index.html {% block extrastyle %} {{ block.super }} <link rel="stylesheet" type="tex...
42cb8c559ec15318d64d918f960321fdd8987d08
zinnia/templates/admin/zinnia/app_index.html
zinnia/templates/admin/zinnia/app_index.html
HTML
<|file_sep|>original/src/com/samsarin/gatu/primitive/AbstractChromosome.java if (!(obj instanceof AbstractChromosome)) return false; return bitSetValue().equals(((AbstractChromosome)obj).bitSetValue()); } @Override public int hashCode() { return bitSetValue().hashCode(); } ...
return bitSetValue().equals(((AbstractChromosome)obj).bitSetValue()); } @Override public int hashCode() { return bitSetValue().hashCode(); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("Chromosome["); for (i...
<|file_sep|>original/src/com/samsarin/gatu/primitive/AbstractChromosome.java if (!(obj instanceof AbstractChromosome)) return false; return bitSetValue().equals(((AbstractChromosome)obj).bitSetValue()); } @Override public int hashCode() { return bitSetValue().hashCode(); } ...
62f1dc7283d74ae66a5c1132df2a1c10252ddfa7
src/com/samsarin/gatu/primitive/AbstractChromosome.java
src/com/samsarin/gatu/primitive/AbstractChromosome.java
Java
<|file_sep|>original/adsbus/resolve.c void resolve_init() { asyncaddrinfo_init(2); } void resolve_cleanup() { asyncaddrinfo_cleanup(); } void resolve(struct peer *peer, const char *node, const char *service, int flags) { struct addrinfo hints = { .ai_flags = AI_V4MAPPED | AI_ADDRCONFIG | flags, .ai_family = AF...
void resolve_init() { asyncaddrinfo_init(2); } void resolve_cleanup() { asyncaddrinfo_cleanup(); } void resolve(struct peer *peer, const char *node, const char *service, int flags) { struct addrinfo hints = { .ai_flags = AI_V4MAPPED | flags, .ai_family = AF_UNSPEC, .ai_socktype = SOCK_STREAM, }; peer->fd ...
<|file_sep|>original/adsbus/resolve.c void resolve_init() { asyncaddrinfo_init(2); } void resolve_cleanup() { asyncaddrinfo_cleanup(); } void resolve(struct peer *peer, const char *node, const char *service, int flags) { struct addrinfo hints = { .ai_flags = AI_V4MAPPED | AI_ADDRCONFIG | flags, .ai_family = AF...
89bbc645af1622ffc4a7f1cc7e4509f2ca663139
adsbus/resolve.c
adsbus/resolve.c
C
<|file_sep|>original/CHANGELOG.rst ========= Changelog ========= 0.0.2 === * Fixed construct build process (0.0.1 was tested only with parse in mind) 0.0.1 === * Initial release, using `construct <https://github.com/construct/construct>`. <|file_sep|>current/CHANGELOG.rst ========= Changelog ========= 0.0.2 === *...
========= Changelog ========= 0.0.2 === * Fixed construct build process (0.0.1 was tested only with parse in mind) * Added PIP dependencies netCDF4, numpy 0.0.1 === * Initial release, using `construct <https://github.com/construct/construct>`.
<|file_sep|>original/CHANGELOG.rst ========= Changelog ========= 0.0.2 === * Fixed construct build process (0.0.1 was tested only with parse in mind) 0.0.1 === * Initial release, using `construct <https://github.com/construct/construct>`. <|file_sep|>current/CHANGELOG.rst ========= Changelog ========= 0.0.2 === *...
90dccc05c38141e87553e4d5813456ef9042d2cd
CHANGELOG.rst
CHANGELOG.rst
reStructuredText
<|file_sep|>original/.github/dependabot.yml version: 2 updates: - package-ecosystem: maven directory: "/" schedule: interval: daily open-pull-requests-limit: 10 - package-ecosystem: pip directory: "/docs" schedule: interval: daily open-pull-requests-limit: 10 - package-ecosystem: bundler directory...
version: 2 updates: - package-ecosystem: maven directory: "/" schedule: interval: daily open-pull-requests-limit: 50 - package-ecosystem: pip directory: "/docs" schedule: interval: daily open-pull-requests-limit: 10 - package-ecosystem: bundler directory: "/docs" schedule: interval: daily ...
<|file_sep|>original/.github/dependabot.yml version: 2 updates: - package-ecosystem: maven directory: "/" schedule: interval: daily open-pull-requests-limit: 10 - package-ecosystem: pip directory: "/docs" schedule: interval: daily open-pull-requests-limit: 10 - package-ecosystem: bundler directory...
af8eed2bd992d1e653a033dc681a53c7bbd69921
.github/dependabot.yml
.github/dependabot.yml
YAML
<|file_sep|>bower.json.diff original: "version": "0.6.0-preview", updated: "version": "0.6.0", <|file_sep|>original/bower.json { "name": "basic-tap-selection", "description": "Aspect which maps the tap gesture to item selection.", "version": "0.6.0-preview", "license": "MIT", "main": "basic-tap-selection....
{ "name": "basic-tap-selection", "description": "Aspect which maps the tap gesture to item selection.", "version": "0.6.0", "license": "MIT", "main": "basic-tap-selection.html", "dependencies": { "basic-aspect": "basic-web-components/basic-aspect#master", "polymer": "Polymer/polymer#0.9.0" }, "d...
<|file_sep|>bower.json.diff original: "version": "0.6.0-preview", updated: "version": "0.6.0", <|file_sep|>original/bower.json { "name": "basic-tap-selection", "description": "Aspect which maps the tap gesture to item selection.", "version": "0.6.0-preview", "license": "MIT", "main": "basic-tap-selection....
dc9ffc0db8b93d67277f136506ca7b313696e52e
bower.json
bower.json
JSON
<|file_sep|>.travis.yml.diff original: updated: - pip install pylint <|file_sep|>original/.travis.yml # https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI before_script: - "export DISPLAY=:99.0" - "sh -e /etc/init.d/xvfb start" - sleep 3 # give xvfb some time...
# https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI before_script: - "export DISPLAY=:99.0" - "sh -e /etc/init.d/xvfb start" - sleep 3 # give xvfb some time to start install: - pip install Cython - pip install numpy - pip install matplotlib - pip instal...
<|file_sep|>.travis.yml.diff original: updated: - pip install pylint <|file_sep|>original/.travis.yml # https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI before_script: - "export DISPLAY=:99.0" - "sh -e /etc/init.d/xvfb start" - sleep 3 # give xvfb some time...
e9b9562a60d69c57251e6d3a12424bb357f527b3
.travis.yml
.travis.yml
YAML
<|file_sep|>test/index.js.diff original: var resolve = require('path').resolve , rmdir = require('fs2/rmdir') , getTests = require('dbjs-persistence/test/_common') updated: var resolve = require('path').resolve , rmdir = require('fs2/rmdir') , getTests = require('dbjs-persiste...
'use strict'; var resolve = require('path').resolve , rmdir = require('fs2/rmdir') , getTests = require('dbjs-persistence/test/_common') , storageSplitTests = require('dbjs-persistence/test/_storage-split') , dbPath = resolve(__dirname, 'test-db') , dbSplitPath = resolve(__dir...
<|file_sep|>test/index.js.diff original: var resolve = require('path').resolve , rmdir = require('fs2/rmdir') , getTests = require('dbjs-persistence/test/_common') updated: var resolve = require('path').resolve , rmdir = require('fs2/rmdir') , getTests = require('dbjs-persiste...
483342cf6975350f43f513dae4658cb234e83553
test/index.js
test/index.js
JavaScript
<|file_sep|>original/vim/after/ftplugin/css.vim setlocal expandtab setlocal shiftwidth=2 setlocal tabstop=2 <|file_sep|>current/vim/after/ftplugin/css.vim setlocal expandtab setlocal shiftwidth=2 setlocal tabstop=2 <|file_sep|>updated/vim/after/ftplugin/css.vim
let b:ale_fixers = ['prettier'] setlocal expandtab setlocal shiftwidth=2 setlocal tabstop=2
<|file_sep|>original/vim/after/ftplugin/css.vim setlocal expandtab setlocal shiftwidth=2 setlocal tabstop=2 <|file_sep|>current/vim/after/ftplugin/css.vim setlocal expandtab setlocal shiftwidth=2 setlocal tabstop=2 <|file_sep|>updated/vim/after/ftplugin/css.vim let b:ale_fixers = ['prettier'] setlocal expandtab setloca...
e1859671fe072334ceca6d0aae596b3a5db233ad
vim/after/ftplugin/css.vim
vim/after/ftplugin/css.vim
VimL
<|file_sep|>original/soco/__init__.py # -*- coding: utf-8 -*- from __future__ import unicode_literals """ SoCo (Sonos Controller) is a simple library to control Sonos speakers """ # Will be parsed by setup.py to determine package metadata __author__ = 'Rahim Sonawalla <rsonawalla@gmail.com>' __version__ = '0.6' __web...
# -*- coding: utf-8 -*- from __future__ import unicode_literals """ SoCo (Sonos Controller) is a simple library to control Sonos speakers """ # Will be parsed by setup.py to determine package metadata __author__ = 'Rahim Sonawalla <rsonawalla@gmail.com>' __version__ = '0.6' __website__ = 'https://github.com/SoCo/SoCo...
<|file_sep|>original/soco/__init__.py # -*- coding: utf-8 -*- from __future__ import unicode_literals """ SoCo (Sonos Controller) is a simple library to control Sonos speakers """ # Will be parsed by setup.py to determine package metadata __author__ = 'Rahim Sonawalla <rsonawalla@gmail.com>' __version__ = '0.6' __web...
cd09a040270eb3cf1b1966e76382e9e92f4323a8
soco/__init__.py
soco/__init__.py
Python
<|file_sep|>original/.github/dependabot.yml version: 2 updates: - package-ecosystem: pip directory: "/" schedule: interval: weekly time: "03:00" open-pull-requests-limit: 10 allow: - dependency-type: production <|file_sep|>current/.github/dependabot.yml version: 2 updates: - package-ecosystem: pip d...
version: 2 updates: - package-ecosystem: pip directory: "/" schedule: interval: weekly time: "03:00" open-pull-requests-limit: 10 allow: - dependency-type: production - package-ecosystem: docker directory: "/" schedule: interval: weekly time: "03:00"
<|file_sep|>original/.github/dependabot.yml version: 2 updates: - package-ecosystem: pip directory: "/" schedule: interval: weekly time: "03:00" open-pull-requests-limit: 10 allow: - dependency-type: production <|file_sep|>current/.github/dependabot.yml version: 2 updates: - package-ecosystem: pip d...
59c3ffa850c5eab2467a102e49e47d41aee59059
.github/dependabot.yml
.github/dependabot.yml
YAML
<|file_sep|>original/recycling-helper/config/routes.rb resources :categories resources :items resources :bins resources :cities get 'bins/new' get 'bins/index' get 'bins/show' get 'bins/create' devise_for :admins devise_for :city_officials # For details on the DSL available within this file, ...
resources :categories resources :items resources :bins resources :cities get 'bins/new' get 'bins/index' get 'bins/show' get 'bins/create' devise_for :admins devise_for :city_officials # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html resour...
<|file_sep|>original/recycling-helper/config/routes.rb resources :categories resources :items resources :bins resources :cities get 'bins/new' get 'bins/index' get 'bins/show' get 'bins/create' devise_for :admins devise_for :city_officials # For details on the DSL available within this file, ...
273a52ac67df2fce6a435ee5493c0de72aad26ba
recycling-helper/config/routes.rb
recycling-helper/config/routes.rb
Ruby
<|file_sep|>original/requirements.txt dj-database-url==0.4.2 dj-static==0.0.6 Django==1.10.5 django-crispy-forms==1.6.1 django-registration-redux==1.4 -e git://github.com/AASHE/django-tagulous@4f7dd6c04be0c70ccb5e23ca5652815bf3bb0258#egg=django_tagulous gunicorn==19.6.0 html5lib==0.999999999 oauthlib==2.0.1 PyJWT==1.4....
dj-database-url==0.4.2 dj-static==0.0.6 Django==1.10.5 django-crispy-forms==1.6.1 django-registration-redux==1.4 -e git://github.com/AASHE/django-tagulous@4f7dd6c04be0c70ccb5e23ca5652815bf3bb0258#egg=django_tagulous gunicorn==19.6.0 html5lib==0.999999999 oauthlib==2.0.1 PyJWT==1.4.2 psycopg2==2.6.2 python-decouple==3.0...
<|file_sep|>original/requirements.txt dj-database-url==0.4.2 dj-static==0.0.6 Django==1.10.5 django-crispy-forms==1.6.1 django-registration-redux==1.4 -e git://github.com/AASHE/django-tagulous@4f7dd6c04be0c70ccb5e23ca5652815bf3bb0258#egg=django_tagulous gunicorn==19.6.0 html5lib==0.999999999 oauthlib==2.0.1 PyJWT==1.4....
63d0b15b5ebb548d8196b709c93084110ff3ec4d
requirements.txt
requirements.txt
Text
<|file_sep|>original/src/interfaces/InterfaceTestEventObserver.php <|file_sep|>current/src/interfaces/InterfaceTestEventObserver.php <|file_sep|>updated/src/interfaces/InterfaceTestEventObserver.php
<?php namespace pyd\testkit\interfaces; /** * Interface for class that observes the test events. * * @author Pierre-Yves DELETTRE <pierre.yves.delettre@gmail.com> */ interface InterfaceTestEventObserver { public function handleEvent($eventName, $data); }
<|file_sep|>original/src/interfaces/InterfaceTestEventObserver.php <|file_sep|>current/src/interfaces/InterfaceTestEventObserver.php <|file_sep|>updated/src/interfaces/InterfaceTestEventObserver.php <?php namespace pyd\testkit\interfaces; /** * Interface for class that observes the test events. * * @author Pierr...
5b247328ed1caefe626de89620318487c1bcd9f1
src/interfaces/InterfaceTestEventObserver.php
src/interfaces/InterfaceTestEventObserver.php
PHP
<|file_sep|>original/test-requirements.txt PyYAML==3.12 Sphinx==1.6.3 bumpversion==0.5.3 coverage==4.5.1 flake8-import-order==0.17.1 flake8==3.5.0 grpcio-tools>=1.2.0 hypothesis==3.55.3 pip==9.0.3 pytest==3.5.0 pycodestyle<2.4.0 tox==3.0.0 wheel==0.31.0 flake8-docstrings==1.3.0 mock==2.0.0 pifpaf>=0.27.1 <|file_sep|>cu...
PyYAML==3.12 Sphinx==1.6.3 bumpversion==0.5.3 coverage==4.5.1 flake8-import-order==0.18 flake8==3.5.0 grpcio-tools>=1.2.0 hypothesis==3.55.3 pip==9.0.3 pytest==3.5.0 pycodestyle<2.4.0 tox==3.0.0 wheel==0.31.0 flake8-docstrings==1.3.0 mock==2.0.0 pifpaf>=0.27.1
<|file_sep|>original/test-requirements.txt PyYAML==3.12 Sphinx==1.6.3 bumpversion==0.5.3 coverage==4.5.1 flake8-import-order==0.17.1 flake8==3.5.0 grpcio-tools>=1.2.0 hypothesis==3.55.3 pip==9.0.3 pytest==3.5.0 pycodestyle<2.4.0 tox==3.0.0 wheel==0.31.0 flake8-docstrings==1.3.0 mock==2.0.0 pifpaf>=0.27.1 <|file_sep|>cu...
2c8bae957d18255d4f33633504ff13b15a84e155
test-requirements.txt
test-requirements.txt
Text
<|file_sep|>.travis.yml.diff original: - 3.3 updated: - 3.4 - 3.5 - 3.6 - 3.7 <|file_sep|>original/.travis.yml language: python python: - 2.7 - 3.3 - pypy script: ./setup.py test <|file_sep|>current/.travis.yml language: python python: - 2.7 - 3.4 - 3.5 - 3.6 - 3.7 - pypy script: ./setup.p...
language: python python: - 2.7 - 3.4 - 3.5 - 3.6 - 3.7 - pypy - pypy3 script: ./setup.py test
<|file_sep|>.travis.yml.diff original: - 3.3 updated: - 3.4 - 3.5 - 3.6 - 3.7 <|file_sep|>original/.travis.yml language: python python: - 2.7 - 3.3 - pypy script: ./setup.py test <|file_sep|>current/.travis.yml language: python python: - 2.7 - 3.4 - 3.5 - 3.6 - 3.7 - pypy script: ./setup.p...
da26633d67f0791253fdc5812c80557f53c53089
.travis.yml
.travis.yml
YAML
<|file_sep|>original/Cargo.toml [package] name = "probability" version = "0.3.0" authors = ["Ivan Ukhov <ivan.ukhov@gmail.com>"] license = "MIT" repository = "https://github.com/stainless-steel/probability" homepage = "https://github.com/stainless-steel/probability" documentation = "https://stainless-steel.github.io/pr...
[package] name = "probability" version = "0.3.0" authors = [ "Ivan Ukhov <ivan.ukhov@gmail.com>", "Jon Lund Steffensen <jonlst@gmail.com>", "Rúnar Berg Baugsson Sigríðarson <runarberg@zoho.com>", ] license = "MIT" repository = "https://github.com/stainless-steel/probability" homepage = "https://github.com/stainle...
<|file_sep|>original/Cargo.toml [package] name = "probability" version = "0.3.0" authors = ["Ivan Ukhov <ivan.ukhov@gmail.com>"] license = "MIT" repository = "https://github.com/stainless-steel/probability" homepage = "https://github.com/stainless-steel/probability" documentation = "https://stainless-steel.github.io/pr...
5c26f6747df4e75da4c0637ba715f0b3a31fd732
Cargo.toml
Cargo.toml
TOML
<|file_sep|>original/exec/java-exec/src/main/java/org/apache/drill/exec/store/dfs/DrillPathFilter.java */ package org.apache.drill.exec.store.dfs; import org.apache.hadoop.fs.Path; import org.apache.hadoop.mapred.Utils; public class DrillPathFilter extends Utils.OutputFileUtils.OutputFilesFilter { @Override publ...
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.drill.exec.store.dfs; import org.apache.hadoop.fs.Path; import org.apache.hadoop.mapred.Utils; public class DrillP...
<|file_sep|>original/exec/java-exec/src/main/java/org/apache/drill/exec/store/dfs/DrillPathFilter.java */ package org.apache.drill.exec.store.dfs; import org.apache.hadoop.fs.Path; import org.apache.hadoop.mapred.Utils; public class DrillPathFilter extends Utils.OutputFileUtils.OutputFilesFilter { @Override publ...
edd10df4026ebe3e4b0f4ec314760453cecfe756
exec/java-exec/src/main/java/org/apache/drill/exec/store/dfs/DrillPathFilter.java
exec/java-exec/src/main/java/org/apache/drill/exec/store/dfs/DrillPathFilter.java
Java
<|file_sep|>original/README.md # ansible-vault-diff A tool used to display a 'diff' between two ansible-vault repos ## Installation Instructions Requires git, and ansible-vault commands `git clone https://github.com/pwnbus/ansible-vault-diff` `cd ansible-vault-diff` `pip install -e .` ## Usage ```bash $ ./bin/v...
# ansible-vault-diff A tool used to display a 'diff' between two ansible-vault repos ## Installation Instructions Requires git and ansible-vault commands `git clone https://github.com/pwnbus/ansible-vault-diff` `cd ansible-vault-diff` `pip install -e .` ## Usage ```bash $ ./bin/vault_diff Enter repo name: somer...
<|file_sep|>original/README.md # ansible-vault-diff A tool used to display a 'diff' between two ansible-vault repos ## Installation Instructions Requires git, and ansible-vault commands `git clone https://github.com/pwnbus/ansible-vault-diff` `cd ansible-vault-diff` `pip install -e .` ## Usage ```bash $ ./bin/v...
368a188ac273cc455d77ab4d2c65125714b5457a
README.md
README.md
Markdown
<|file_sep|>original/py/counting-bits.py <|file_sep|>current/py/counting-bits.py <|file_sep|>updated/py/counting-bits.py
class Solution(object): def count_bits(self, n): c = (n - ((n >> 1) & 0o33333333333) - ((n >> 2) & 0o11111111111)) return ((c + (c >> 3)) & 0o30707070707) % 63 def countBits(self, num): """ :type num: int :rtype: List[int] """ return map(self.count_bits, x...
<|file_sep|>original/py/counting-bits.py <|file_sep|>current/py/counting-bits.py <|file_sep|>updated/py/counting-bits.py class Solution(object): def count_bits(self, n): c = (n - ((n >> 1) & 0o33333333333) - ((n >> 2) & 0o11111111111)) return ((c + (c >> 3)) & 0o30707070707) % 63 def countBits...
2204ff556bf6257dcfeb39447b04607729d6b4d2
py/counting-bits.py
py/counting-bits.py
Python
<|file_sep|>original/main.py <|file_sep|>current/main.py <|file_sep|>updated/main.py
import struct id_i = 0 value_i = 0.0 id_i_1 = 0 value_i_1 = 1.0 number = 0 with open("sort.dat", "r") as f: for line in f: line = line.replace('(', '') line = line.replace(')', '') line = line.replace(' ', '') line = line.replace('\n', '') # print line [id, value] =...
<|file_sep|>original/main.py <|file_sep|>current/main.py <|file_sep|>updated/main.py import struct id_i = 0 value_i = 0.0 id_i_1 = 0 value_i_1 = 1.0 number = 0 with open("sort.dat", "r") as f: for line in f: line = line.replace('(', '') line = line.replace(')', '') line = line.replace(' ...
625307615f0dac8801b35ac5689a92706556ad01
main.py
main.py
Python
<|file_sep|>original/src/test/java/org/springframework/test/ApplicationConfigurationTests.java <|file_sep|>current/src/test/java/org/springframework/test/ApplicationConfigurationTests.java <|file_sep|>updated/src/test/java/org/springframework/test/ApplicationConfigurationTests.java
/* * Copyright 2012-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
<|file_sep|>original/src/test/java/org/springframework/test/ApplicationConfigurationTests.java <|file_sep|>current/src/test/java/org/springframework/test/ApplicationConfigurationTests.java <|file_sep|>updated/src/test/java/org/springframework/test/ApplicationConfigurationTests.java /* * Copyright 2012-2013 the origi...
9afc35430282dc7d11d506fdf70089568bf06cb0
src/test/java/org/springframework/test/ApplicationConfigurationTests.java
src/test/java/org/springframework/test/ApplicationConfigurationTests.java
Java
<|file_sep|>original/app/assets/javascripts/dot_ledger/views/sorting_rules/list_item.js.coffee DotLedger.module 'Views.SortingRules', -> class @ListItem extends Backbone.Marionette.ItemView tagName: 'tr' template: 'sorting_rules/list_item' templateHelpers: -> flag: => if @model.get('review'...
DotLedger.module 'Views.SortingRules', -> class @ListItem extends Backbone.Marionette.ItemView tagName: 'tr' template: 'sorting_rules/list_item' templateHelpers: -> flag: => if @model.get('review') 'Review' else ''
<|file_sep|>original/app/assets/javascripts/dot_ledger/views/sorting_rules/list_item.js.coffee DotLedger.module 'Views.SortingRules', -> class @ListItem extends Backbone.Marionette.ItemView tagName: 'tr' template: 'sorting_rules/list_item' templateHelpers: -> flag: => if @model.get('review'...
4347d332d6dba526cc015d73f4f2fc913d9e849f
app/assets/javascripts/dot_ledger/views/sorting_rules/list_item.js.coffee
app/assets/javascripts/dot_ledger/views/sorting_rules/list_item.js.coffee
CoffeeScript
<|file_sep|>app/lib/db.js.diff original: const mysql = require('mysql'); updated: <|file_sep|>original/app/lib/db.js function handleDisconnect() { var newDb = streamsql.connect(getDbConfig(prefix)); db.connection = newDb.connection; db.query = newDb.query; db.queryStream = newDb.queryStream; ...
const fs = require('fs'); const streamsql = require('streamsql'); const config = require('./config'); function getDbConfig (prefix) { prefix += '_'; return { driver: config(prefix+'DRIVER', 'mysql'), host: config(prefix+'HOST', 'localhost'), user: config(prefix+'USER'), password: ...
<|file_sep|>app/lib/db.js.diff original: const mysql = require('mysql'); updated: <|file_sep|>original/app/lib/db.js function handleDisconnect() { var newDb = streamsql.connect(getDbConfig(prefix)); db.connection = newDb.connection; db.query = newDb.query; db.queryStream = newDb.queryStream; ...
6858cb2035c4a44a6d7d6fafb30a1c8a4d5a656e
app/lib/db.js
app/lib/db.js
JavaScript
<|file_sep|>original/generators/code-test/test.js.hbs describe('{{#humanize}}{{name}}{{/humanize}}', function() { }); <|file_sep|>current/generators/code-test/test.js.hbs describe('{{#humanize}}{{name}}{{/humanize}}', function() { }); <|file_sep|>updated/generators/code-test/test.js.hbs
describe('{{#humanize}}{{name}}{{/humanize}}', function() { beforeEach(function() { Ember.run(function() { App.reset(); }); }); });
<|file_sep|>original/generators/code-test/test.js.hbs describe('{{#humanize}}{{name}}{{/humanize}}', function() { }); <|file_sep|>current/generators/code-test/test.js.hbs describe('{{#humanize}}{{name}}{{/humanize}}', function() { }); <|file_sep|>updated/generators/code-test/test.js.hbs describe('{{#humanize}}{{name}...
b18fa29222e57f35e3ef73b35ba3ac159d626eec
generators/code-test/test.js.hbs
generators/code-test/test.js.hbs
Handlebars
<|file_sep|>original/app/views/checklist/_results_answers.html.erb <div class="checklist-results-answers"> <% if answers.present? %> <p class="govuk-body govuk-!-font-weight-bold">Based on your answers, we know:</p> <ul class="govuk-list govuk-!-margin-top-3 govuk-!-font-size-16 govuk-list--checked"> <%...
<div class="checklist-results-answers"> <% if answers.present? %> <p class="govuk-body govuk-!-font-weight-bold">Based on your answers, we know:</p> <ul class="govuk-list govuk-!-margin-top-3 govuk-!-font-size-16 govuk-list--checked"> <% answers.each do |answer| %> <li><%= answer[:readable_text]...
<|file_sep|>original/app/views/checklist/_results_answers.html.erb <div class="checklist-results-answers"> <% if answers.present? %> <p class="govuk-body govuk-!-font-weight-bold">Based on your answers, we know:</p> <ul class="govuk-list govuk-!-margin-top-3 govuk-!-font-size-16 govuk-list--checked"> <%...
6a049047484bbb2cf0c7c333821e650a2a571555
app/views/checklist/_results_answers.html.erb
app/views/checklist/_results_answers.html.erb
HTML+ERB
<|file_sep|>cellcounter/accounts/urls.py.diff original: url('^password/reset/done/$', views.password_reset_done, name='password-reset-done'), updated: <|file_sep|>original/cellcounter/accounts/urls.py from django.conf.urls import patterns, url from cellcounter.accounts import views urlpatterns = patterns('', ...
from django.conf.urls import patterns, url from cellcounter.accounts import views urlpatterns = patterns('', url('^new/$', views.RegistrationView.as_view(), name='register'), url('^(?P<pk>[0-9]+)/$', views.UserDetailView.as_view(), name='user-detail'), url('^(?P<pk>[0-9]+)/delete/$', views.UserDeleteView....
<|file_sep|>cellcounter/accounts/urls.py.diff original: url('^password/reset/done/$', views.password_reset_done, name='password-reset-done'), updated: <|file_sep|>original/cellcounter/accounts/urls.py from django.conf.urls import patterns, url from cellcounter.accounts import views urlpatterns = patterns('', ...
5ab0c1c1323b2b12a19ef58de4c03236db84644d
cellcounter/accounts/urls.py
cellcounter/accounts/urls.py
Python
<|file_sep|>spec/javascripts/generate_user_spec.js.diff original: spyOn($, "ajax"); updated: <|file_sep|>spec/javascripts/generate_user_spec.js.diff original: updated: spyOn($, "ajax"); <|file_sep|>original/spec/javascripts/generate_user_spec.js beforeEach(function() { setFixtures('<tr id=...
spyOn($, "ajax"); generate_user.click(); var args = $.ajax.mostRecentCall.args[0]; expect(args.data).toEqual({ id: '362' }); expect(args.dataType).toEqual('json'); expect(args.type).toEqual('POST'); expect(args.url).toEqual('/orphans') }); it('inserts text...
<|file_sep|>spec/javascripts/generate_user_spec.js.diff original: spyOn($, "ajax"); updated: <|file_sep|>spec/javascripts/generate_user_spec.js.diff original: updated: spyOn($, "ajax"); <|file_sep|>original/spec/javascripts/generate_user_spec.js beforeEach(function() { setFixtures('<tr id=...
5701a0e5987d562c0dd4a740e38bb4b9cf84da10
spec/javascripts/generate_user_spec.js
spec/javascripts/generate_user_spec.js
JavaScript
<|file_sep|>test/mach-o/dependency_info.yaml.diff original: # updated: # XFAIL: win32 # This test fails on Windows because the linker would use '\' instead # of '/' as a path separator when concatenating path components. # So the output from the linker would be different. <|file_sep|>original/test/mach-o/dependency_in...
# So the output from the linker would be different. # Test -dependency_info option # # RUN: lld -flavor darwin -arch x86_64 -test_file_usage \ # RUN: -dependency_info %t.info \ # RUN: -path_exists /System/Library/Frameworks \ # RUN: -path_exists /System/Library/Frameworks/Foo.framework/Foo \ # RU...
<|file_sep|>test/mach-o/dependency_info.yaml.diff original: # updated: # XFAIL: win32 # This test fails on Windows because the linker would use '\' instead # of '/' as a path separator when concatenating path components. # So the output from the linker would be different. <|file_sep|>original/test/mach-o/dependency_in...
db97ee39c0c050f58e9d363aadd37bc2b0d2c0f0
test/mach-o/dependency_info.yaml
test/mach-o/dependency_info.yaml
YAML
<|file_sep|>about/index.md.diff original: title: About the Anarchist Lexicon updated: title: About <|file_sep|>original/about/index.md --- layout: page title: About the Anarchist Lexicon authors: [jroelofs, madphilosopher] tags: [about] comments: false image: feature: anarchist-lexicon.png credit: Jon Roelofs cre...
title: About authors: [jroelofs, madphilosopher] tags: [about] comments: false image: feature: anarchist-lexicon.png credit: Jon Roelofs creditlink: /authors --- We've all heard our fair share of stupid remarks from statist friends. It's time to fight back against their fallacious bullshit. The Anarchist Lexicon...
<|file_sep|>about/index.md.diff original: title: About the Anarchist Lexicon updated: title: About <|file_sep|>original/about/index.md --- layout: page title: About the Anarchist Lexicon authors: [jroelofs, madphilosopher] tags: [about] comments: false image: feature: anarchist-lexicon.png credit: Jon Roelofs cre...
b2109de469add9194b9a94e29d1bffb886edbb6a
about/index.md
about/index.md
Markdown