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/.travis.yml language: ruby rvm: - "1.9.3" - ruby-head - jruby-19mode - rbx-19mode script: bundle exec rspec spec <|file_sep|>current/.travis.yml language: ruby rvm: - "1.9.3" - ruby-head - jruby-19mode - rbx-19mode script: bundle exec rspec spec <|file_sep|>updated/.travis.yml
language: ruby matrix: allow_failures: - rvm: jruby-19mode rvm: - "1.9.3" - ruby-head - jruby-19mode - rbx-19mode script: bundle exec rspec spec
<|file_sep|>original/.travis.yml language: ruby rvm: - "1.9.3" - ruby-head - jruby-19mode - rbx-19mode script: bundle exec rspec spec <|file_sep|>current/.travis.yml language: ruby rvm: - "1.9.3" - ruby-head - jruby-19mode - rbx-19mode script: bundle exec rspec spec <|file_sep|>updated/.travis.yml langu...
d4a79063f44537e88c37b9c38c66b63087dc3897
.travis.yml
.travis.yml
YAML
<|file_sep|>original/README.md Examples -------- "foo bar".bencode # => "7:foo bar" 42.bencode # => "i42e" [1, 2, 3].bencode # => "li1ei2ei3ee" {"foo" => 1, "bar" => -10}.bencode # => "d3:bari-10e3:fooi1ee" License ------- Released under...
Examples -------- "foo bar".bencode # => "7:foo bar" 42.bencode # => "i42e" [1, 2, 3].bencode # => "li1ei2ei3ee" {"foo" => 1, "bar" => -10}.bencode # => "d3:bari-10e3:fooi1ee" License ------- Released under the MIT license. Contributors...
<|file_sep|>original/README.md Examples -------- "foo bar".bencode # => "7:foo bar" 42.bencode # => "i42e" [1, 2, 3].bencode # => "li1ei2ei3ee" {"foo" => 1, "bar" => -10}.bencode # => "d3:bari-10e3:fooi1ee" License ------- Released under...
e3421ed33cd9db33322fadc355db8cae24878a5b
README.md
README.md
Markdown
<|file_sep|>original/release-scripts/update-canonical-urls.py <|file_sep|>current/release-scripts/update-canonical-urls.py <|file_sep|>updated/release-scripts/update-canonical-urls.py
#!/usr/bin/env python import os import re VERSION_MASK = "__version__" def split_version(f): m = re.match("(master|v[0-9]+\\.[0-9]+)/", f) if m: return m.group(1), f[:m.start(1)] + VERSION_MASK + f[m.end(1):-3] return None, f[:-3] def version_later_than(v1, v2): # Basic implementation for ...
<|file_sep|>original/release-scripts/update-canonical-urls.py <|file_sep|>current/release-scripts/update-canonical-urls.py <|file_sep|>updated/release-scripts/update-canonical-urls.py #!/usr/bin/env python import os import re VERSION_MASK = "__version__" def split_version(f): m = re.match("(master|v[0-9]+\\.[...
29bd89c6ca182afa8b5f163ddf1bd985bec4ed3f
release-scripts/update-canonical-urls.py
release-scripts/update-canonical-urls.py
Python
<|file_sep|>original/.travis.yml - linux - osx addons: apt: packages: - libbsd-dev - libarchive-dev - libssl-dev - liblzma-dev sudo: required compiler: - clang - gcc before_install: - scripts/install_deps.sh before_script: <|file_sep|>current/.travis.yml - linux - osx a...
- linux - osx addons: apt: packages: - libbsd-dev - libarchive-dev - libssl-dev - liblzma-dev - liblua5.2-dev sudo: required compiler: - clang - gcc before_install: - scripts/install_deps.sh
<|file_sep|>original/.travis.yml - linux - osx addons: apt: packages: - libbsd-dev - libarchive-dev - libssl-dev - liblzma-dev sudo: required compiler: - clang - gcc before_install: - scripts/install_deps.sh before_script: <|file_sep|>current/.travis.yml - linux - osx a...
7d6423d5f5bb6e4603c0bdccc52f3efcce554dad
.travis.yml
.travis.yml
YAML
<|file_sep|>p4.js.diff original: updated: function revertUnchanged(path, done) { runCommand("revert", "-a", done); } <|file_sep|>original/p4.js function edit(path, done) { runCommand("edit", path, done); } function add(path, done) { runCommand("add", path, done); } function smartEdit(path, done) { ...
function add(path, done) { runCommand("add", path, done); } function smartEdit(path, done) { edit(path, function(err) { if(!err) return done(); add(path, done); }); } function revertUnchanged(path, done) { runCommand("revert", "-a", done); } exports.edit = edit; exports.add = add; ex...
<|file_sep|>p4.js.diff original: updated: function revertUnchanged(path, done) { runCommand("revert", "-a", done); } <|file_sep|>original/p4.js function edit(path, done) { runCommand("edit", path, done); } function add(path, done) { runCommand("add", path, done); } function smartEdit(path, done) { ...
e907487fca0a545405bd64e8e2bcada5e146c381
p4.js
p4.js
JavaScript
<|file_sep|>original/update_version.sh <|file_sep|>current/update_version.sh <|file_sep|>updated/update_version.sh
#!/bin/bash # Are we in the correct working directory? if [ ! -f ./htp/htp.c ] then echo "ERROR: Please invoke this script from the main directory (of libhtp)" exit fi # Test for the presence of svnversion if [ -z `which svnversion` ] then echo "ERROR: Unable to retrieve the revision number because 'svnve...
<|file_sep|>original/update_version.sh <|file_sep|>current/update_version.sh <|file_sep|>updated/update_version.sh #!/bin/bash # Are we in the correct working directory? if [ ! -f ./htp/htp.c ] then echo "ERROR: Please invoke this script from the main directory (of libhtp)" exit fi # Test for the presence o...
bedf30fa5c14c30d34ee984760bb99b468f894ab
update_version.sh
update_version.sh
Shell
<|file_sep|>appveyor.yml.diff original: updated: build_script: <|file_sep|>original/appveyor.yml init: - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) before_build: - cmd: ECHO this is batch - SET PATH=C:\Qt\5.5\mingw492_32\bin;%PATH%...
init: - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) before_build: - cmd: ECHO this is batch build_script: - SET PATH=C:\Qt\5.5\mingw492_32\bin;%PATH% - SET PATH=C:\Qt\Tools\mingw492_32\bin;%PATH% - qmake.exe -makefile -win32 FLViz.pr...
<|file_sep|>appveyor.yml.diff original: updated: build_script: <|file_sep|>original/appveyor.yml init: - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) before_build: - cmd: ECHO this is batch - SET PATH=C:\Qt\5.5\mingw492_32\bin;%PATH%...
9b95f1ee64a5626a3ba19b2018380829b2fc41e0
appveyor.yml
appveyor.yml
YAML
<|file_sep|>original/app/jobs/log_job.rb class LogJob < ApplicationJob queue_as :default def perform(*args) log_files = %w[ cron delayed_job ] log_files << "#{ Rails.env }" log_files.each do |log_file| initial_location = "log/#{log_file}.log" final_location = "log/old_#{log_file}.log" ...
class LogJob < ApplicationJob queue_as :default def perform(*args) log_files = %w[ cron delayed_job ] log_files << "#{ Rails.env }" log_files.each do |log_file| initial_location = "log/#{log_file}.log" final_location = "log/old_#{log_file}.log" FileUtils.mv(initial_location, final_l...
<|file_sep|>original/app/jobs/log_job.rb class LogJob < ApplicationJob queue_as :default def perform(*args) log_files = %w[ cron delayed_job ] log_files << "#{ Rails.env }" log_files.each do |log_file| initial_location = "log/#{log_file}.log" final_location = "log/old_#{log_file}.log" ...
8518b76619ff8dc8fbb8878394f0e79629c8a3cd
app/jobs/log_job.rb
app/jobs/log_job.rb
Ruby
<|file_sep|>original/docker-compose.yml client: image: koding/base working_dir: /opt/koding entrypoint: scripts/bootstrap-container is_ready command: make -C client development env_file: .env-docker-compose volumes: - .:/opt/koding mongo: image: koding/mongo postgres: imag...
client: image: koding/base working_dir: /opt/koding entrypoint: scripts/bootstrap-container is_ready command: make -C client development env_file: .env-docker-compose volumes: - .:/opt/koding client-landing: image: koding/base working_dir: /opt/koding entrypoint: scripts/...
<|file_sep|>original/docker-compose.yml client: image: koding/base working_dir: /opt/koding entrypoint: scripts/bootstrap-container is_ready command: make -C client development env_file: .env-docker-compose volumes: - .:/opt/koding mongo: image: koding/mongo postgres: imag...
156d22193f085c8478bdb6dec6739d1ebdc4cdd2
docker-compose.yml
docker-compose.yml
YAML
<|file_sep|>original/app/config/larapress.php |-------------------------------------------------------------------------- | | Configure the CMS here | */ 'settings' => array( 'log' => false, // Logs the application performance 'ssl' => true, // Force to use https:// requests i...
|-------------------------------------------------------------------------- | | Configure the CMS here | */ 'settings' => array( 'log' => false, // Logs the application performance 'ssl' => false, // Force to use https:// requests in the backend ), 'email' => array( ...
<|file_sep|>original/app/config/larapress.php |-------------------------------------------------------------------------- | | Configure the CMS here | */ 'settings' => array( 'log' => false, // Logs the application performance 'ssl' => true, // Force to use https:// requests i...
17c66c49b31810ba4ff756644df3d8d32f97ae7a
app/config/larapress.php
app/config/larapress.php
PHP
<|file_sep|>original/test/fixtures/users.yml # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html # This model initially had no columns defined. If you add columns to the # model remove the '{}' from the fixture names and add the columns immediately # below each fixture, per the sy...
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html # This model initially had no columns defined. If you add columns to the # model remove the '{}' from the fixture names and add the columns immediately # below each fixture, per the syntax in the comments below # jnunemaker: {}
<|file_sep|>original/test/fixtures/users.yml # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html # This model initially had no columns defined. If you add columns to the # model remove the '{}' from the fixture names and add the columns immediately # below each fixture, per the sy...
c661205935451a26691dcd7e8038b89a17780a28
test/fixtures/users.yml
test/fixtures/users.yml
YAML
<|file_sep|>lib/minuteman/bit_operations/with_data.rb.diff original: normalized_data = Array(data) updated: <|file_sep|>lib/minuteman/bit_operations/with_data.rb.diff original: command = case type when "AND" then :select when "MINUS" then :reject ...
def call key = destination_key("data-#{type}", normalized_data) if !redis.exists(key) intersected_data.each { |id| redis.setbit(key, id, 1) } end Data.new(redis, key, intersected_data) end private # Private: Normalized data # def normali...
<|file_sep|>lib/minuteman/bit_operations/with_data.rb.diff original: normalized_data = Array(data) updated: <|file_sep|>lib/minuteman/bit_operations/with_data.rb.diff original: command = case type when "AND" then :select when "MINUS" then :reject ...
72e06d3a07cdaa6daedea9c918e771a0a5bd26b8
lib/minuteman/bit_operations/with_data.rb
lib/minuteman/bit_operations/with_data.rb
Ruby
<|file_sep|>original/zsh/misc.zsh bindkey "^[m" copy-prev-shell-word ## jobs setopt long_list_jobs ## pager export PAGER="less" export LESS="-R" export EDITOR=vim export MANLESS='' export MANWIDTH=80 # play nice with tmux if [[ -n "$TMUX" ]]; then export DISABLE_AUTO_TITLE=true fi export LC_CTYPE=$LANG export V...
## jobs setopt long_list_jobs ## pager export PAGER="less" export LESS="-R" export EDITOR=vim export MANLESS='' export MANWIDTH=80 ## misc environment vars export TEXMFHOME="$HOME/.texmf" # play nice with tmux if [[ -n "$TMUX" ]]; then export DISABLE_AUTO_TITLE=true fi export LC_CTYPE=$LANG export VIRTUAL_ENV_D...
<|file_sep|>original/zsh/misc.zsh bindkey "^[m" copy-prev-shell-word ## jobs setopt long_list_jobs ## pager export PAGER="less" export LESS="-R" export EDITOR=vim export MANLESS='' export MANWIDTH=80 # play nice with tmux if [[ -n "$TMUX" ]]; then export DISABLE_AUTO_TITLE=true fi export LC_CTYPE=$LANG export V...
cd58bd80987574ee8883266d2dcda584cb146b10
zsh/misc.zsh
zsh/misc.zsh
Shell
<|file_sep|>original/src/com/interview/tree/DegenerateBinaryTreeToSortedLL.java <|file_sep|>current/src/com/interview/tree/DegenerateBinaryTreeToSortedLL.java <|file_sep|>updated/src/com/interview/tree/DegenerateBinaryTreeToSortedLL.java
package com.interview.tree; /** * Date 03/16/2015 * @author tusroy * * Given a binary tree(not BST) convert it into sorted linklist. * e.g 10 * 11 15 * 8 9 16 13 * 7 * * should become 7->8->9->10->11->13->15->16 * ...
<|file_sep|>original/src/com/interview/tree/DegenerateBinaryTreeToSortedLL.java <|file_sep|>current/src/com/interview/tree/DegenerateBinaryTreeToSortedLL.java <|file_sep|>updated/src/com/interview/tree/DegenerateBinaryTreeToSortedLL.java package com.interview.tree; /** * Date 03/16/2015 * @author tusroy * * Giv...
9ce65686bac89b7b25aaf2a24fbc5105bb1ce4b4
src/com/interview/tree/DegenerateBinaryTreeToSortedLL.java
src/com/interview/tree/DegenerateBinaryTreeToSortedLL.java
Java
<|file_sep|>original/app/assets/javascripts/models/data/project.js.coffee ns = @edsc.models.data ns.Project = do (ko) -> class Project constructor: -> @datasets = ko.observableArray() toggleDataset: (dataset) => datasets = @datasets if datasets.contains(dataset) datasets.remove(da...
ns.Project = do (ko) -> class Project constructor: -> @datasets = ko.observableArray() toggleDataset: (dataset) => datasets = @datasets if datasets.contains(dataset) datasets.remove(dataset) else datasets.push(dataset) hasDataset: (other) => id = other.id()...
<|file_sep|>original/app/assets/javascripts/models/data/project.js.coffee ns = @edsc.models.data ns.Project = do (ko) -> class Project constructor: -> @datasets = ko.observableArray() toggleDataset: (dataset) => datasets = @datasets if datasets.contains(dataset) datasets.remove(da...
61b29abd62b381fb600f2d6f83cf57ae1c540c5b
app/assets/javascripts/models/data/project.js.coffee
app/assets/javascripts/models/data/project.js.coffee
CoffeeScript
<|file_sep|>original/package.json { "name": "fh-service-sap-netweaver-cloud", "version": "0.2.0", "dependencies": { "express": "4.0.0", "fh-mbaas-api": "5.9.2", "request": "2.34.0", "body-parser": "~1.0.2", "cors": "~2.2.0", "sapnwrfc": "0.1.5" }, "devDependencies": { "grunt-concur...
{ "name": "fh-service-sap-netweaver-cloud", "version": "0.2.0", "dependencies": { "express": "4.0.0", "fh-mbaas-api": "5.9.4", "request": "2.34.0", "body-parser": "~1.0.2", "cors": "~2.2.0", "sapnwrfc": "0.1.5" }, "devDependencies": { "grunt-concurrent": "latest", "grunt-contri...
<|file_sep|>original/package.json { "name": "fh-service-sap-netweaver-cloud", "version": "0.2.0", "dependencies": { "express": "4.0.0", "fh-mbaas-api": "5.9.2", "request": "2.34.0", "body-parser": "~1.0.2", "cors": "~2.2.0", "sapnwrfc": "0.1.5" }, "devDependencies": { "grunt-concur...
b3018698a98ce2116a4a1d5b300fa4f0516df4c7
package.json
package.json
JSON
<|file_sep|>original/tooling/Microsoft.VisualStudio.BlazorExtension/Properties/AssemblyInfo.cs // Add binding redirects for each assembly we ship in VS. This is required so that these assemblies show // up in the Load context, which means that we can use ServiceHub and other nice things. [assembly: ProvideBindingRedir...
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.VisualStudio.Shell; // Add binding redirects for each assembly we ship in VS. This is required so that these assemblies show // up in ...
<|file_sep|>original/tooling/Microsoft.VisualStudio.BlazorExtension/Properties/AssemblyInfo.cs // Add binding redirects for each assembly we ship in VS. This is required so that these assemblies show // up in the Load context, which means that we can use ServiceHub and other nice things. [assembly: ProvideBindingRedir...
be06a4df2fed4527290daa7248a90f72c40f0b20
tooling/Microsoft.VisualStudio.BlazorExtension/Properties/AssemblyInfo.cs
tooling/Microsoft.VisualStudio.BlazorExtension/Properties/AssemblyInfo.cs
C#
<|file_sep|>services/mobilepush/t_send_push_notifications.md.diff original: After you have developed your applications, you can send basic push notifications (without using tags, badges, additional payloads, or sound files). updated: After you have developed your applications, you can send basic push notifications (wi...
Send basic push notifications. 1. In **Choose the Audience**, select one of the following audiences: **All Devices**, or by platform: **Only iOS devices** or **Only Anroid devices**. **Note**: When you select the **All Devices** option, all the devices that have subscribed to push notifications receive your notific...
<|file_sep|>services/mobilepush/t_send_push_notifications.md.diff original: After you have developed your applications, you can send basic push notifications (without using tags, badges, additional payloads, or sound files). updated: After you have developed your applications, you can send basic push notifications (wi...
2cb43f16650dc748469f3b52329fcdb23b2ef7e1
services/mobilepush/t_send_push_notifications.md
services/mobilepush/t_send_push_notifications.md
Markdown
<|file_sep|>.circleci/config.yml.diff original: - run: pip install pytest==5.4.3 updated: <|file_sep|>original/.circleci/config.yml version: 2 jobs: build: docker: - image: python:3.6 steps: - checkout - run: pip install pytest==5.4.3 - run: python3 setup.py sdist - run: p...
version: 2 jobs: build: docker: - image: python:3.6 steps: - checkout - run: python3 setup.py sdist - run: pip3 install dist/webp-*.tar.gz - run: pip install pytest==5.4.3 - run: pytest tests/
<|file_sep|>.circleci/config.yml.diff original: - run: pip install pytest==5.4.3 updated: <|file_sep|>original/.circleci/config.yml version: 2 jobs: build: docker: - image: python:3.6 steps: - checkout - run: pip install pytest==5.4.3 - run: python3 setup.py sdist - run: p...
4889e42cf96c77653336a29f6997bbba59b8bb9b
.circleci/config.yml
.circleci/config.yml
YAML
<|file_sep|>original/javatests/com/google/gerrit/elasticsearch/ElasticV5QueryProjectsTest.java <|file_sep|>current/javatests/com/google/gerrit/elasticsearch/ElasticV5QueryProjectsTest.java <|file_sep|>updated/javatests/com/google/gerrit/elasticsearch/ElasticV5QueryProjectsTest.java
// Copyright (C) 2018 The Android Open Source Project // // 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 applicable ...
<|file_sep|>original/javatests/com/google/gerrit/elasticsearch/ElasticV5QueryProjectsTest.java <|file_sep|>current/javatests/com/google/gerrit/elasticsearch/ElasticV5QueryProjectsTest.java <|file_sep|>updated/javatests/com/google/gerrit/elasticsearch/ElasticV5QueryProjectsTest.java // Copyright (C) 2018 The Android O...
881ca772663abd2ac913bd04fe2a91083a183bd6
javatests/com/google/gerrit/elasticsearch/ElasticV5QueryProjectsTest.java
javatests/com/google/gerrit/elasticsearch/ElasticV5QueryProjectsTest.java
Java
<|file_sep|>client/router/index.js.diff original: component: resolve => require(['../views/User'], resolve) updated: component: resolve => require(['../views/User'], resolve), children: [ { path: 'library', redirect: '/@:id', children: [ { ...
component: resolve => require(['../views/Manga'], resolve) }, // Legacy redirects for 2014-2016 Hibari { path: '/:id', redirect: '/@:id' }, { path: '/:id/library', redirect: '/@:id' }, { path: '/:id/library/:status', redirect: '/@:id' }, { ...
<|file_sep|>client/router/index.js.diff original: component: resolve => require(['../views/User'], resolve) updated: component: resolve => require(['../views/User'], resolve), children: [ { path: 'library', redirect: '/@:id', children: [ { ...
59e6b6591eed0e1f9c7018c5d983ee6b7639ea46
client/router/index.js
client/router/index.js
JavaScript
<|file_sep|>original/package.json "author": "lillem4n <lilleman@larvit.se>", "license": "ISC", "bugs": { "url": "https://github.com/larvit/larvitamsync/issues" }, "homepage": "https://github.com/larvit/larvitamsync#readme", "devDependencies": { "lodash": "^4.17.3", "mocha": "^5.0.0", "mocha-...
"author": "lillem4n <lilleman@larvit.se>", "license": "ISC", "bugs": { "url": "https://github.com/larvit/larvitamsync/issues" }, "homepage": "https://github.com/larvit/larvitamsync#readme", "devDependencies": { "lodash": "^4.17.3", "mocha": "^5.0.0", "mocha-eslint": "^4.1.0", "request": ...
<|file_sep|>original/package.json "author": "lillem4n <lilleman@larvit.se>", "license": "ISC", "bugs": { "url": "https://github.com/larvit/larvitamsync/issues" }, "homepage": "https://github.com/larvit/larvitamsync#readme", "devDependencies": { "lodash": "^4.17.3", "mocha": "^5.0.0", "mocha-...
34fca6f47a5ea6ceac95e2bb21f41c470e8434d8
package.json
package.json
JSON
<|file_sep|>original/packages/mo/monad-var.yaml <|file_sep|>current/packages/mo/monad-var.yaml <|file_sep|>updated/packages/mo/monad-var.yaml
homepage: https://github.com/effectfully/monad-var#readme changelog-type: '' hash: c984ce9df763d28c2eec20ab6b7091e5fe55437196d4bb65ceb457b80c12c6e2 test-bench-deps: {} maintainer: effectfully@gmail.com synopsis: A library that provides generic operations over variables generalized here and there to arbitrary effectfu...
<|file_sep|>original/packages/mo/monad-var.yaml <|file_sep|>current/packages/mo/monad-var.yaml <|file_sep|>updated/packages/mo/monad-var.yaml homepage: https://github.com/effectfully/monad-var#readme changelog-type: '' hash: c984ce9df763d28c2eec20ab6b7091e5fe55437196d4bb65ceb457b80c12c6e2 test-bench-deps: {} maintain...
6880fb391b8dd0ac111683ee169355fda7f3bc51
packages/mo/monad-var.yaml
packages/mo/monad-var.yaml
YAML
<|file_sep|>original/bower.json { "name": "digitalmarketplace-buyer-frontend", "version": "0.0.1", "dependencies": { "jquery": "1.11.2", "hogan": "3.0.2", "jquery-details": "https://github.com/mathiasbynens/jquery-details/archive/v0.1.0.tar.gz", "digitalmarketplace-frontend-toolkit": "git://github...
{ "name": "digitalmarketplace-buyer-frontend", "version": "0.0.1", "dependencies": { "jquery": "1.11.2", "hogan": "3.0.2", "jquery-details": "https://github.com/mathiasbynens/jquery-details/archive/v0.1.0.tar.gz", "digitalmarketplace-frontend-toolkit": "git://github.com/alphagov/digitalmarketplace...
<|file_sep|>original/bower.json { "name": "digitalmarketplace-buyer-frontend", "version": "0.0.1", "dependencies": { "jquery": "1.11.2", "hogan": "3.0.2", "jquery-details": "https://github.com/mathiasbynens/jquery-details/archive/v0.1.0.tar.gz", "digitalmarketplace-frontend-toolkit": "git://github...
1047ba467ff032c3c61d0497aeee7674dae10eca
bower.json
bower.json
JSON
<|file_sep|>original/requirements.txt django-babel==0.6.1 # For our REST Api djangorestframework==3.7.3 PyJWT==1.5.3 requests==2.18.4 urllib3==1.22 requests-toolbelt==0.8.0 # For proper timezone support. pytz==2016.7 # Charset detection chardet==2.3.0 # Docs requirements sphinx==1.4.8 sphinx_rtd_theme # Postgresql...
django-babel==0.6.1 # For our REST Api djangorestframework==3.7.3 PyJWT==1.5.3 requests==2.18.4 urllib3==1.22 requests-toolbelt==0.8.0 # For proper timezone support. pytz==2017.3 # Charset detection chardet==2.3.0 # Docs requirements sphinx==1.4.8 sphinx_rtd_theme # Postgresql psycopg2==2.7.3.2
<|file_sep|>original/requirements.txt django-babel==0.6.1 # For our REST Api djangorestframework==3.7.3 PyJWT==1.5.3 requests==2.18.4 urllib3==1.22 requests-toolbelt==0.8.0 # For proper timezone support. pytz==2016.7 # Charset detection chardet==2.3.0 # Docs requirements sphinx==1.4.8 sphinx_rtd_theme # Postgresql...
577b66815607ca1e1d74b6358ab721c5f2225d9b
requirements.txt
requirements.txt
Text
<|file_sep|>original/spec/features/admin/admin_partner_types_spec.rb # frozen_string_literal: true require 'rails_helper' RSpec.feature 'Admin::PartnerTypes', type: :feature do let(:admin) { create(:admin_user) } let(:partner_type) { create(:partner_type) } before { sign_in admin } describe '#index' do ...
describe '#index' do before do @types = create_list(:partner_type, 5) end it 'can see all types' do visit admin_partner_types_path @types.each { |type| expect(page).to have_content(type.name) } end end describe '#new' do it 'can add new partner type' do visit new_admi...
<|file_sep|>original/spec/features/admin/admin_partner_types_spec.rb # frozen_string_literal: true require 'rails_helper' RSpec.feature 'Admin::PartnerTypes', type: :feature do let(:admin) { create(:admin_user) } let(:partner_type) { create(:partner_type) } before { sign_in admin } describe '#index' do ...
a931b7ed027da52e082b299f3ed555ee1e1af6d8
spec/features/admin/admin_partner_types_spec.rb
spec/features/admin/admin_partner_types_spec.rb
Ruby
<|file_sep|>desktop/app/dockIcon.js.diff original: export default function () { if (++visibleCount === 1) { app.dock.show() updated: export default (() => { if (!app.dock) { return () => () => {} <|file_sep|>desktop/app/dockIcon.js.diff original: let alreadyHidden = false return () => { if (alreadyH...
export default (() => { if (!app.dock) { return () => () => {} } return function () { if (++visibleCount === 1) { app.dock.show() } let alreadyHidden = false return () => { if (alreadyHidden) { throw new Error('Tried to hide the dock icon twice') } alreadyHidde...
<|file_sep|>desktop/app/dockIcon.js.diff original: export default function () { if (++visibleCount === 1) { app.dock.show() updated: export default (() => { if (!app.dock) { return () => () => {} <|file_sep|>desktop/app/dockIcon.js.diff original: let alreadyHidden = false return () => { if (alreadyH...
10c444078b93f8ac179235584fb43a02b314f3f0
desktop/app/dockIcon.js
desktop/app/dockIcon.js
JavaScript
<|file_sep|>original/scss/init/_settings.scss // GENERAL SETTINGS // -------------------------------------------------------------------- // IE10 → mattstow.com/responsive-design-in-ie10-on-windows-phone-8.html @-ms-viewport { width: device-width; } // SETTINGS SPECIFIC TO THIS PROJECT // ----------------------------...
// GENERAL SETTINGS // -------------------------------------------------------------------- // IE10 → mattstow.com/responsive-design-in-ie10-on-windows-phone-8.html @-ms-viewport { width: device-width; } // SETTINGS SPECIFIC TO THIS PROJECT // -------------------------------------------------------------------- // se...
<|file_sep|>original/scss/init/_settings.scss // GENERAL SETTINGS // -------------------------------------------------------------------- // IE10 → mattstow.com/responsive-design-in-ie10-on-windows-phone-8.html @-ms-viewport { width: device-width; } // SETTINGS SPECIFIC TO THIS PROJECT // ----------------------------...
eed53cad62bfc040042797b32f24e006bda8d6c9
scss/init/_settings.scss
scss/init/_settings.scss
SCSS
<|file_sep|>original/spec/lib/chatwork/task_spec.rb <|file_sep|>current/spec/lib/chatwork/task_spec.rb <|file_sep|>updated/spec/lib/chatwork/task_spec.rb
describe ChatWork::Task do describe ".get", type: :api do subject do ChatWork::Task.get( room_id: room_id, account_id: account_id, assigned_by_account_id: assigned_by_account_id, status: status, ) end let(:room_id) ...
<|file_sep|>original/spec/lib/chatwork/task_spec.rb <|file_sep|>current/spec/lib/chatwork/task_spec.rb <|file_sep|>updated/spec/lib/chatwork/task_spec.rb describe ChatWork::Task do describe ".get", type: :api do subject do ChatWork::Task.get( room_id: room_id, account_id: ...
32980c7cc9032caf49848b4f9b36ec51bca38b0c
spec/lib/chatwork/task_spec.rb
spec/lib/chatwork/task_spec.rb
Ruby
<|file_sep|>lib/nominatim/place.rb.diff original: updated: # Returns display name # # @return [String] <|file_sep|>lib/nominatim/place.rb.diff original: updated: # Return a class # # @return [String] <|file_sep|>lib/nominatim/place.rb.diff original: updated: # Return a type # # @r...
@place_id ||= @attrs[:place_id].to_i if @attrs[:place_id] end # Return an OSM id # # @return [Integer] def osm_id @osm_id ||= @attrs[:osm_id].to_i if @attrs[:osm_id] end # Return an OSM type # # @return [String] def osm_type @osm_type ||= @attrs[:osm_type] ...
<|file_sep|>lib/nominatim/place.rb.diff original: updated: # Returns display name # # @return [String] <|file_sep|>lib/nominatim/place.rb.diff original: updated: # Return a class # # @return [String] <|file_sep|>lib/nominatim/place.rb.diff original: updated: # Return a type # # @r...
670d43d885f184120531d0caf82e5e574474eb07
lib/nominatim/place.rb
lib/nominatim/place.rb
Ruby
<|file_sep|>app/helpers/photos_helper.rb.diff original: photo_or_placeholder(crop, full_size: full_size) end def garden_image_path(garden, full_size: false) photo_or_placeholder(garden, full_size: full_size) end def planting_image_path(planting, full_size: false) photo_or_placeholder(planting, ful...
def garden_image_path(garden, full_size: false) if garden.default_photo.present? photo = garden.default_photo full_size ? photo.fullsize_url : photo.thumbnail_url else placeholder_image end end def planting_image_path(planting, full_size: false) if planting.photos.present? ...
<|file_sep|>app/helpers/photos_helper.rb.diff original: photo_or_placeholder(crop, full_size: full_size) end def garden_image_path(garden, full_size: false) photo_or_placeholder(garden, full_size: full_size) end def planting_image_path(planting, full_size: false) photo_or_placeholder(planting, ful...
7f7f2cae47f3956d797456b626418e6fff49da14
app/helpers/photos_helper.rb
app/helpers/photos_helper.rb
Ruby
<|file_sep|>original/spec/views/ci/status/_badge.html.haml_spec.rb <|file_sep|>current/spec/views/ci/status/_badge.html.haml_spec.rb <|file_sep|>updated/spec/views/ci/status/_badge.html.haml_spec.rb
require 'spec_helper' describe 'ci/status/_badge', :view do let(:user) { create(:user) } let(:project) { create(:empty_project, :private) } let(:pipeline) { create(:ci_pipeline, project: project) } context 'when rendering status for build' do let(:resource) { create(:ci_build, :success, pipeline: pipeline...
<|file_sep|>original/spec/views/ci/status/_badge.html.haml_spec.rb <|file_sep|>current/spec/views/ci/status/_badge.html.haml_spec.rb <|file_sep|>updated/spec/views/ci/status/_badge.html.haml_spec.rb require 'spec_helper' describe 'ci/status/_badge', :view do let(:user) { create(:user) } let(:project) { create(:e...
86052e6cbbba8fd41f59e24230a20cd5d5e51954
spec/views/ci/status/_badge.html.haml_spec.rb
spec/views/ci/status/_badge.html.haml_spec.rb
Ruby
<|file_sep|>original/composer.json "email": "felix@whatwedo.ch" }, { "name": "Nicolo Singer", "email": "nicolo@whatwedo.ch" } ], "require": { "php": ">=5.6", "symfony/framework-bundle": "~3.0|~4.0", "symfony...
"email": "felix@whatwedo.ch" }, { "name": "Nicolo Singer", "email": "nicolo@whatwedo.ch" } ], "require": { "php": ">=5.6", "symfony/symfony": "~3.0", "whatwedo/core-bundle": "^0.2" }, "s...
<|file_sep|>original/composer.json "email": "felix@whatwedo.ch" }, { "name": "Nicolo Singer", "email": "nicolo@whatwedo.ch" } ], "require": { "php": ">=5.6", "symfony/framework-bundle": "~3.0|~4.0", "symfony...
12e06220280754ac682964db7aafe0f59a856584
composer.json
composer.json
JSON
<|file_sep|>original/vendor-bin/phpunit/composer.json { "require-dev": { "symfony/phpunit-bridge": "5.2.3", "vimeo/psalm": "4.4.1", "psalm/plugin-phpunit": "0.15.1", "weirdan/doctrine-psalm-plugin": "1.0.0", "phpunit/phpunit": "9.5.2" } } <|file_sep|>current/vendor-bin/ph...
{ "require-dev": { "symfony/phpunit-bridge": "5.2.3", "vimeo/psalm": "4.5.1", "psalm/plugin-phpunit": "0.15.1", "weirdan/doctrine-psalm-plugin": "1.0.0", "phpunit/phpunit": "9.5.2" } }
<|file_sep|>original/vendor-bin/phpunit/composer.json { "require-dev": { "symfony/phpunit-bridge": "5.2.3", "vimeo/psalm": "4.4.1", "psalm/plugin-phpunit": "0.15.1", "weirdan/doctrine-psalm-plugin": "1.0.0", "phpunit/phpunit": "9.5.2" } } <|file_sep|>current/vendor-bin/ph...
79865484f33ddc2b48008c384d53ba1860d2b7d9
vendor-bin/phpunit/composer.json
vendor-bin/phpunit/composer.json
JSON
<|file_sep|>original/README.md # MetroPDXSoccer Jekyll website content for metropdxsoccer.com Uses kloudsec.com for SSL in front of GitHub Pages hosting. <|file_sep|>current/README.md # MetroPDXSoccer Jekyll website content for metropdxsoccer.com Uses kloudsec.com for SSL in front of GitHub Pages hosting. <|file_se...
# MetroPDXSoccer Jekyll website content for metropdxsoccer.com Uses cloudflare.com for SSL in front of GitHub Pages hosting. https://blog.cloudflare.com/secure-and-fast-github-pages-with-cloudflare/
<|file_sep|>original/README.md # MetroPDXSoccer Jekyll website content for metropdxsoccer.com Uses kloudsec.com for SSL in front of GitHub Pages hosting. <|file_sep|>current/README.md # MetroPDXSoccer Jekyll website content for metropdxsoccer.com Uses kloudsec.com for SSL in front of GitHub Pages hosting. <|file_se...
34e42f5d1457b46fb0d385cece86dc2abce6a5ce
README.md
README.md
Markdown
<|file_sep|>original/aeron-core/src/main/java/uk/co/real_logic/aeron/BufferUsageStrategy.java <|file_sep|>current/aeron-core/src/main/java/uk/co/real_logic/aeron/BufferUsageStrategy.java <|file_sep|>updated/aeron-core/src/main/java/uk/co/real_logic/aeron/BufferUsageStrategy.java
/* * Copyright 2014 Real Logic Ltd. * * 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 applicable law or agreed to ...
<|file_sep|>original/aeron-core/src/main/java/uk/co/real_logic/aeron/BufferUsageStrategy.java <|file_sep|>current/aeron-core/src/main/java/uk/co/real_logic/aeron/BufferUsageStrategy.java <|file_sep|>updated/aeron-core/src/main/java/uk/co/real_logic/aeron/BufferUsageStrategy.java /* * Copyright 2014 Real Logic Ltd. ...
0e4dfd06f2cfd12de5ea7782d3a971f6810a22be
aeron-core/src/main/java/uk/co/real_logic/aeron/BufferUsageStrategy.java
aeron-core/src/main/java/uk/co/real_logic/aeron/BufferUsageStrategy.java
Java
<|file_sep|>Providers/MenuServiceProvider.php.diff original: use Modules\Menu\Entities\Menuitem; use Modules\Menu\Repositories\Eloquent\EloquentMenuItemRepository; updated: <|file_sep|>original/Providers/MenuServiceProvider.php return array(); } /** * Register class binding */ private fu...
* @return array */ public function provides() { return array(); } /** * Register class binding */ private function registerBindings() { $this->app->bind( 'Modules\Menu\Repositories\MenuRepository', function() { return n...
<|file_sep|>Providers/MenuServiceProvider.php.diff original: use Modules\Menu\Entities\Menuitem; use Modules\Menu\Repositories\Eloquent\EloquentMenuItemRepository; updated: <|file_sep|>original/Providers/MenuServiceProvider.php return array(); } /** * Register class binding */ private fu...
6416eb4b855adcdbd7be08502bb364c3bc902e8a
Providers/MenuServiceProvider.php
Providers/MenuServiceProvider.php
PHP
<|file_sep|>original/server/test/browser/commands/createUser.js 'use strict'; const User = require('../../../server/models/user.js'); exports.command = function(options = {}) { let browser = this; browser .perform(function(client, done) { // Defaults let values = { ...
'use strict'; const User = require('../../../models/user.js'); exports.command = function(options = {}) { let browser = this; browser .perform(function(client, done) { // Defaults let values = { name: 'Joe Random', email: 'user@mas.com', ...
<|file_sep|>original/server/test/browser/commands/createUser.js 'use strict'; const User = require('../../../server/models/user.js'); exports.command = function(options = {}) { let browser = this; browser .perform(function(client, done) { // Defaults let values = { ...
3a12c6cc6d74a9474f35107e68f11d93f046cc73
server/test/browser/commands/createUser.js
server/test/browser/commands/createUser.js
JavaScript
<|file_sep|>pkgs/development/python-modules/google_resumable_media/default.nix.diff original: version = "0.5.0"; updated: version = "0.4.1"; <|file_sep|>original/pkgs/development/python-modules/google_resumable_media/default.nix , pytest , mock }: buildPythonPackage rec { pname = "google-resumable-media"; vers...
, pytest , mock }: buildPythonPackage rec { pname = "google-resumable-media"; version = "0.4.1"; src = fetchPypi { inherit pname version; sha256 = "cdeb8fbb3551a665db921023603af2f0d6ac59ad8b48259cb510b8799505775f"; }; checkInputs = [ pytest mock ]; propagatedBuildInputs = [ requests setuptools si...
<|file_sep|>pkgs/development/python-modules/google_resumable_media/default.nix.diff original: version = "0.5.0"; updated: version = "0.4.1"; <|file_sep|>original/pkgs/development/python-modules/google_resumable_media/default.nix , pytest , mock }: buildPythonPackage rec { pname = "google-resumable-media"; vers...
c1256b5ed502638d32557aca9de1c68556f886df
pkgs/development/python-modules/google_resumable_media/default.nix
pkgs/development/python-modules/google_resumable_media/default.nix
Nix
<|file_sep|>original/dev/app-store/business/README.md # Business ## Articles * [为什么不买订阅 App?](https://v2ex.com/t/662777) <|file_sep|>current/dev/app-store/business/README.md # Business ## Articles * [为什么不买订阅 App?](https://v2ex.com/t/662777) <|file_sep|>updated/dev/app-store/business/README.md
# Business ## Articles * [为什么不买订阅 App?](https://v2ex.com/t/662777) * ["Mac" prefix as app name no longer allowed at the Mac App Store?](https://developer.apple.com/forums/thread/97847)
<|file_sep|>original/dev/app-store/business/README.md # Business ## Articles * [为什么不买订阅 App?](https://v2ex.com/t/662777) <|file_sep|>current/dev/app-store/business/README.md # Business ## Articles * [为什么不买订阅 App?](https://v2ex.com/t/662777) <|file_sep|>updated/dev/app-store/business/README.md # Business ## Articles ...
95c7bf7955eb400415bd9701ac430ee74e4eb2c5
dev/app-store/business/README.md
dev/app-store/business/README.md
Markdown
<|file_sep|>original/src/core/datastructures/spatialdata.cpp * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR * ANY DIRECT, INDIRE...
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES ...
<|file_sep|>original/src/core/datastructures/spatialdata.cpp * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR * ANY DIRECT, INDIRE...
744f90339f662e1e576d87c4aa2c307acf5dc0ff
src/core/datastructures/spatialdata.cpp
src/core/datastructures/spatialdata.cpp
C++
<|file_sep|>original/spec/integrations/fetch_image_spec.rb <|file_sep|>current/spec/integrations/fetch_image_spec.rb <|file_sep|>updated/spec/integrations/fetch_image_spec.rb
require 'spec_helper' describe "Getting an image" do describe "Search by target" do before(:all) do target_request = SkyMorph::TargetRequest.new("J99TS7A") target_response = target_request.fetch @parsed_table = Skymorph::ObservationTableParser.parse(target_response) end it "should find...
<|file_sep|>original/spec/integrations/fetch_image_spec.rb <|file_sep|>current/spec/integrations/fetch_image_spec.rb <|file_sep|>updated/spec/integrations/fetch_image_spec.rb require 'spec_helper' describe "Getting an image" do describe "Search by target" do before(:all) do target_request = SkyMorph::Tar...
d9149d4a2fcec3183354ba1f78e21273bebcec06
spec/integrations/fetch_image_spec.rb
spec/integrations/fetch_image_spec.rb
Ruby
<|file_sep|>original/tests/helpers/fake_ui.rb def end_of_player_turn_assertions @dice_roller.ensure_exact_use_of_dice actual_score = @game_wrapper.score(@test_data.current_player) expected_score = @test_data.extract_score_and_advance_round @test.assert_equal expected_score, actual_score end ...
def end_of_player_turn_assertions @dice_roller.ensure_exact_use_of_dice actual_score = @game_wrapper.score(@test_data.current_player) expected_score = @test_data.extract_score_and_advance_round @test.assert_equal expected_score, actual_score end def puts(output_string) @output << output_...
<|file_sep|>original/tests/helpers/fake_ui.rb def end_of_player_turn_assertions @dice_roller.ensure_exact_use_of_dice actual_score = @game_wrapper.score(@test_data.current_player) expected_score = @test_data.extract_score_and_advance_round @test.assert_equal expected_score, actual_score end ...
983c118e9e0e45d4aac9204f1992061201e5a7a6
tests/helpers/fake_ui.rb
tests/helpers/fake_ui.rb
Ruby
<|file_sep|>original/src/views/account/List.js activitiesText: 'Activities', notesText: 'Notes', scheduleText: 'Schedule', //View Properties detailView: 'account_detail', icon: 'content/images/icons/Company_24.png', id: 'account_list', insertView:...
activitiesText: 'Activities', notesText: 'Notes', scheduleText: 'Schedule', //View Properties detailView: 'account_detail', icon: 'content/images/icons/Company_24.png', id: 'account_list', insertView: 'account_edit', queryOrderBy: 'Account...
<|file_sep|>original/src/views/account/List.js activitiesText: 'Activities', notesText: 'Notes', scheduleText: 'Schedule', //View Properties detailView: 'account_detail', icon: 'content/images/icons/Company_24.png', id: 'account_list', insertView:...
9edfd6f32c56ddc4ac1c0edb2d7331d953b54ae4
src/views/account/List.js
src/views/account/List.js
JavaScript
<|file_sep|>original/package.json { "name": "PIRATES", "version": "0.1.0-alpha.1", "url": "https://github.com/Banasura/PIRATES", "repository": { "type": "git", "url": "https://github.com/Banasura/PIRATES.git" }, "licence": "MIT", "devDependencies": { "grunt": "^0.4.5", "grunt-asar": "^0.1....
{ "name": "PIRATES", "version": "0.1.0-alpha.1", "url": "https://github.com/Banasura/PIRATES", "repository": { "type": "git", "url": "https://github.com/Banasura/PIRATES.git" }, "license": "MIT", "devDependencies": { "grunt": "^0.4.5", "grunt-asar": "^0.1.5", "grunt-contrib-clean": "^0...
<|file_sep|>original/package.json { "name": "PIRATES", "version": "0.1.0-alpha.1", "url": "https://github.com/Banasura/PIRATES", "repository": { "type": "git", "url": "https://github.com/Banasura/PIRATES.git" }, "licence": "MIT", "devDependencies": { "grunt": "^0.4.5", "grunt-asar": "^0.1....
7de44820fbfc4d502104bdbcb070edafd012bd8a
package.json
package.json
JSON
<|file_sep|>doc/release_process.rst.diff original: 12. Update the RSMTool conda environment on the ETS linux servers with the latest package. updated: 12. Do an accompanying release of RSMExtra (only needed for ETS users). <|file_sep|>original/doc/release_process.rst 4. Convert the package for both linux and windows:: ...
conda convert -p win-64 -p linux-64 <mac package tarball> 5. Upload all packages to anaconda.org using ``anaconda upload``. 6. Create a pull request on the `rsmtool-conda-tester <https://github.com/EducationalTestingService/rsmtool-conda-tester/>`_ repository to test the Linux and Windows packages. 7. Draft a re...
<|file_sep|>doc/release_process.rst.diff original: 12. Update the RSMTool conda environment on the ETS linux servers with the latest package. updated: 12. Do an accompanying release of RSMExtra (only needed for ETS users). <|file_sep|>original/doc/release_process.rst 4. Convert the package for both linux and windows:: ...
1dffe15b0896d4b7b69885598236c35516ba097b
doc/release_process.rst
doc/release_process.rst
reStructuredText
<|file_sep|>app/models/repository/symlinks.rb.diff original: after_save :symlink_update, if: :path_changed? before_destroy :symlink_remove updated: after_save :symlinks_update, if: :path_changed? before_destroy :symlinks_remove <|file_sep|>app/models/repository/symlinks.rb.diff original: def s...
def symlinks_update create_cloning_symlink(:git_daemon) if public_r? || public_rw? create_cloning_symlink(:git_ssh) end def symlinks_remove SUPPORTED_LINK_CATEGORIES.each do |category| remove_cloning_symlink(category) end end def create_cloning_symlink(category) symlink_path(catego...
<|file_sep|>app/models/repository/symlinks.rb.diff original: after_save :symlink_update, if: :path_changed? before_destroy :symlink_remove updated: after_save :symlinks_update, if: :path_changed? before_destroy :symlinks_remove <|file_sep|>app/models/repository/symlinks.rb.diff original: def s...
d4b472fb1676b6372adfede2256493546738062a
app/models/repository/symlinks.rb
app/models/repository/symlinks.rb
Ruby
<|file_sep|>original/metadata.rb description 'Installs/Configures Server' long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) version '1.1.0' recipe "appsindo", "Default" depends 'ohai' depends 'build-essential' depends 'xml' depends 'apt' depends 'php' depends 'nginx' depends 'node...
description 'Installs/Configures Server' long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) version '1.1.0' recipe "appsindo", "Default" depends 'ohai' depends 'build-essential' depends 'xml' depends 'apt' depends 'php' depends 'nginx' depends 'nodejs' depends 'mysql', '~>5.6.1' de...
<|file_sep|>original/metadata.rb description 'Installs/Configures Server' long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) version '1.1.0' recipe "appsindo", "Default" depends 'ohai' depends 'build-essential' depends 'xml' depends 'apt' depends 'php' depends 'nginx' depends 'node...
001dd36197a00684dd8018c13de27dae795ca302
metadata.rb
metadata.rb
Ruby
<|file_sep|>original/src/serialize/json/string_jump_state.c <|file_sep|>current/src/serialize/json/string_jump_state.c <|file_sep|>updated/src/serialize/json/string_jump_state.c
/* * waysome - wayland based window manager * * Copyright in alphabetical order: * * Copyright (C) 2014-2015 Julian Ganz * Copyright (C) 2014-2015 Manuel Messner * Copyright (C) 2014-2015 Marcel Müller * Copyright (C) 2014-2015 Matthias Beyer * Copyright (C) 2014-2015 Nadja Sommerfeld * * This file is part o...
<|file_sep|>original/src/serialize/json/string_jump_state.c <|file_sep|>current/src/serialize/json/string_jump_state.c <|file_sep|>updated/src/serialize/json/string_jump_state.c /* * waysome - wayland based window manager * * Copyright in alphabetical order: * * Copyright (C) 2014-2015 Julian Ganz * Copyright (...
55f424506979eb1eb19ce95dc3072daa51c74efb
src/serialize/json/string_jump_state.c
src/serialize/json/string_jump_state.c
C
<|file_sep|>original/components/Posts/index.js const postRawDate = post.data.date const postDate = new Date(postRawDate).toDateString() return ( <li key={post.path} > <Link to={post.path}> <article className={styles.post}> <h1 className={styles.heading}>{post.data.title}...
const postRawDate = post.data.date const postDate = new Date(postRawDate).toDateString() return ( <li key={post.path} > <Link to={post.path}> <article className={styles.post}> <h1 className={styles.heading}>{post.data.title}</h1> <time className={styles.time}...
<|file_sep|>original/components/Posts/index.js const postRawDate = post.data.date const postDate = new Date(postRawDate).toDateString() return ( <li key={post.path} > <Link to={post.path}> <article className={styles.post}> <h1 className={styles.heading}>{post.data.title}...
0c7d2be4c13bbe55a6beface1da386ebfdfdb5d1
components/Posts/index.js
components/Posts/index.js
JavaScript
<|file_sep|>original/.travis.yml language: node_js node_js: - "4.1" - "4.0" - "0.12" - "0.11" - "0.10" <|file_sep|>current/.travis.yml language: node_js node_js: - "4.1" - "4.0" - "0.12" - "0.11" - "0.10" <|file_sep|>updated/.travis.yml
language: node_js node_js: - "5" - "4.1" - "4.0" - "0.12" - "0.11" - "0.10"
<|file_sep|>original/.travis.yml language: node_js node_js: - "4.1" - "4.0" - "0.12" - "0.11" - "0.10" <|file_sep|>current/.travis.yml language: node_js node_js: - "4.1" - "4.0" - "0.12" - "0.11" - "0.10" <|file_sep|>updated/.travis.yml language: node_js node_js: - "5" - "4.1" - "4.0" - "0.1...
d7b725611e9e7aacbf34a5c5b7027def03891c65
.travis.yml
.travis.yml
YAML
<|file_sep|>original/.travis.yml language: ruby rvm: - 2.1 cache: bundler branches: only: - master # test the gh-pages branch env: global: - NOKOGIRI_USE_SYSTEM_LIBRARIES=true install: - gem install bundler script: - bundle install --jobs=3 --retry=3 - bundle exec jekyll build <|file_sep|>curre...
language: ruby rvm: - 2.1 cache: bundler env: global: - NOKOGIRI_USE_SYSTEM_LIBRARIES=true install: - gem install bundler script: - bundle install --jobs=3 --retry=3 - bundle exec jekyll build
<|file_sep|>original/.travis.yml language: ruby rvm: - 2.1 cache: bundler branches: only: - master # test the gh-pages branch env: global: - NOKOGIRI_USE_SYSTEM_LIBRARIES=true install: - gem install bundler script: - bundle install --jobs=3 --retry=3 - bundle exec jekyll build <|file_sep|>curre...
ef8b73a4424dbc9ea46fad91395e768d94c87275
.travis.yml
.travis.yml
YAML
<|file_sep|>original/requirements.txt pip==9.0.1 bumpversion==0.5.3 wheel==0.30.0 watchdog==0.8.3 tox==2.9.1 flake8==3.5.0 Sphinx==1.6.5 cryptography==2.1.4 PyYAML==3.12 click==6.7 beautifulsoup4==4.6.0 requests==2.18.4 diskcache==3.0.1 selenium==3.8.0 <|file_sep|>current/requirements.txt pip==9.0.1 bumpversion==0.5....
pip==9.0.1 bumpversion==0.5.3 wheel==0.30.0 watchdog==0.8.3 tox==2.9.1 flake8==3.5.0 Sphinx==1.6.7 cryptography==2.1.4 PyYAML==3.12 click==6.7 beautifulsoup4==4.6.0 requests==2.18.4 diskcache==3.0.1 selenium==3.8.0
<|file_sep|>original/requirements.txt pip==9.0.1 bumpversion==0.5.3 wheel==0.30.0 watchdog==0.8.3 tox==2.9.1 flake8==3.5.0 Sphinx==1.6.5 cryptography==2.1.4 PyYAML==3.12 click==6.7 beautifulsoup4==4.6.0 requests==2.18.4 diskcache==3.0.1 selenium==3.8.0 <|file_sep|>current/requirements.txt pip==9.0.1 bumpversion==0.5....
a837da8f9c06253deb874e613c35a2b3f7e7594a
requirements.txt
requirements.txt
Text
<|file_sep|>original/src/untrusted/irt/irt_private_pthread.c #include <pthread.h> #include <unistd.h> #include "native_client/src/untrusted/nacl/tls.h" /* * libstdc++ makes minimal use of pthread_key_t stuff. */ #undef PTHREAD_KEYS_MAX #define PTHREAD_KEYS_MAX 16 #define NC_TSD_NO_MORE_KEYS irt_tsd_no...
#include <pthread.h> #include <unistd.h> #include "native_client/src/untrusted/nacl/tls.h" /* * libstdc++ makes minimal use of pthread_key_t stuff. */ #undef PTHREAD_KEYS_MAX #define PTHREAD_KEYS_MAX 32 #define NC_TSD_NO_MORE_KEYS irt_tsd_no_more_keys() static void irt_tsd_no_more_keys(void) { stati...
<|file_sep|>original/src/untrusted/irt/irt_private_pthread.c #include <pthread.h> #include <unistd.h> #include "native_client/src/untrusted/nacl/tls.h" /* * libstdc++ makes minimal use of pthread_key_t stuff. */ #undef PTHREAD_KEYS_MAX #define PTHREAD_KEYS_MAX 16 #define NC_TSD_NO_MORE_KEYS irt_tsd_no...
33ea6a02332d0944150e9445a584d6f26718509b
src/untrusted/irt/irt_private_pthread.c
src/untrusted/irt/irt_private_pthread.c
C
<|file_sep|>original/app/models/five_colors_data.rb <|file_sep|>current/app/models/five_colors_data.rb <|file_sep|>updated/app/models/five_colors_data.rb
module FiveColors YELLOW = [2, 7, 10, 18, 32, 33, 37, 39, 46, 47, 55, 60, 78, 79, 81, 85, 87, 89, 94, 96] PINK = [1, 4, 13, 16, 22, 28, 34, 40, 48, 51, 58, 65, 66, 72, 73, 80, 83, 84, 86, 97] ORANGE = [19, 21, 25, 27, 43, 44, 45, 49, 52, 53, 56, 63, 64, 67, 77, 88, 90, 95, 98, 99] BLUE = [3, 5, 6, 12, 14, 2...
<|file_sep|>original/app/models/five_colors_data.rb <|file_sep|>current/app/models/five_colors_data.rb <|file_sep|>updated/app/models/five_colors_data.rb module FiveColors YELLOW = [2, 7, 10, 18, 32, 33, 37, 39, 46, 47, 55, 60, 78, 79, 81, 85, 87, 89, 94, 96] PINK = [1, 4, 13, 16, 22, 28, 34, 40, 48, 51, 58, 65...
0a9451f124f8a68888965af9023cebf6f9437e3b
app/models/five_colors_data.rb
app/models/five_colors_data.rb
Ruby
<|file_sep|>original/data/transition-sites/elps.yml --- site: elps whitehall_slug: hm-treasury title: HM Treasury redirection_date: 1st July 2014 homepage: https://www.gov.uk/government/organisations/hm-treasury tna_timestamp: 20140404084345 host: equitablelifepaymentscheme.independent.gov.uk <|file_sep|>current/data/t...
--- site: elps whitehall_slug: hm-treasury title: HM Treasury redirection_date: 1st July 2014 homepage: https://www.gov.uk/equitable-life-payment-scheme tna_timestamp: 20140404084345 host: equitablelifepaymentscheme.independent.gov.uk
<|file_sep|>original/data/transition-sites/elps.yml --- site: elps whitehall_slug: hm-treasury title: HM Treasury redirection_date: 1st July 2014 homepage: https://www.gov.uk/government/organisations/hm-treasury tna_timestamp: 20140404084345 host: equitablelifepaymentscheme.independent.gov.uk <|file_sep|>current/data/t...
94cc1cf6dd9385fba6fd675b820840834dd43b8e
data/transition-sites/elps.yml
data/transition-sites/elps.yml
YAML
<|file_sep|>original/wercker.yml steps: - setup-go-workspace - script: name: go get code: | go get - script: name: go build code: | GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-s" -o bin/xCUTEr-linux...
box: golang build: steps: - setup-go-workspace - script: name: go get code: | go get - script: name: go build code: | ./build - script: name: go test code: | go tes...
<|file_sep|>original/wercker.yml steps: - setup-go-workspace - script: name: go get code: | go get - script: name: go build code: | GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-s" -o bin/xCUTEr-linux...
3a5602ef538975f54e41647bbe0177a8ee97d488
wercker.yml
wercker.yml
YAML
<|file_sep|>original/spec/controllers/join_controller_spec.rb require 'spec_helper' describe JoinController do it "should track the source" do pending end describe "log in" do login_user it "sign_up_at should be very very recent" do subject.current_user.sign_in_count.should == 0 subject...
require 'spec_helper' describe JoinController do it "should track the source" do pending end describe "log in" do login_user it "sign_up_at should be very very recent" do subject.current_user.sign_in_count.should == 0 subject.current_user.signup_at.should >= (Time.now - 1) end end...
<|file_sep|>original/spec/controllers/join_controller_spec.rb require 'spec_helper' describe JoinController do it "should track the source" do pending end describe "log in" do login_user it "sign_up_at should be very very recent" do subject.current_user.sign_in_count.should == 0 subject...
2a9e9b8db6530374e19d2fef0ef094e98a11370e
spec/controllers/join_controller_spec.rb
spec/controllers/join_controller_spec.rb
Ruby
<|file_sep|>original/package.json { "name": "symbol-enum", "version": "1.0.1-0", "description": "Enum with symbols", "main": "es5.js", "scripts": { "test": "node test.js", "compile": "node compile.js", "cp": "npm run compile && npm test && npm publish" }, "keywords": [ "symbol", "enum"...
{ "name": "symbol-enum", "version": "1.0.1-0", "description": "Enum with symbols", "main": "es5.js", "scripts": { "test": "node test.js", "compile": "node compile.js", "cp": "npm run compile && npm test && npm publish" }, "bugs": "https://github.com/seangenabe/symbol-enum/issues", "repositor...
<|file_sep|>original/package.json { "name": "symbol-enum", "version": "1.0.1-0", "description": "Enum with symbols", "main": "es5.js", "scripts": { "test": "node test.js", "compile": "node compile.js", "cp": "npm run compile && npm test && npm publish" }, "keywords": [ "symbol", "enum"...
92593f9d2d06ac26a4af55037b16dcaa7ae3b0d1
package.json
package.json
JSON
<|file_sep|>app/templates/suppliers/view_declaration.html.diff original: {% for section in content %} updated: {% for section in content.summary(declaration) %} <|file_sep|>original/app/templates/suppliers/view_declaration.html {% for section in content %} {{ summary.heading(section.name) }} {{ summary.t...
{% for section in content.summary(declaration) %} {{ summary.heading(section.name) }} {{ summary.top_link("Edit", url_for('.edit_supplier_declaration_section', supplier_id=supplier.id, framework_slug=framework.slug, section_id=section.id)) }} {% call(item) summary.list_table( section.questions, ...
<|file_sep|>app/templates/suppliers/view_declaration.html.diff original: {% for section in content %} updated: {% for section in content.summary(declaration) %} <|file_sep|>original/app/templates/suppliers/view_declaration.html {% for section in content %} {{ summary.heading(section.name) }} {{ summary.t...
9b49d219a710c528b1a144d0fd0b4116a92201a2
app/templates/suppliers/view_declaration.html
app/templates/suppliers/view_declaration.html
HTML
<|file_sep|>original/about.html <title></title> <script src="./js/jquery.min.js"></script> <link rel="stylesheet" href="./semantic/css/semantic.min.css"> <link href="http://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css"> <link rel="stylesheet" href="....
<title></title> <script src="./js/jquery.min.js"></script> <link rel="stylesheet" href="./semantic/css/semantic.min.css"> <link href="http://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css"> <link rel="stylesheet" href="./css/style.css"> <script...
<|file_sep|>original/about.html <title></title> <script src="./js/jquery.min.js"></script> <link rel="stylesheet" href="./semantic/css/semantic.min.css"> <link href="http://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css"> <link rel="stylesheet" href="....
4dfda0495e7a1ac31fbf6b2c91f751e4b624313e
about.html
about.html
HTML
<|file_sep|>zsh/configs/post/path.zsh.diff original: # It's not in the home dir, let's try the default Homebrew location elif [ -f "/usr/local/opt/asdf/asdf.sh" ]; then . "/usr/local/opt/asdf/asdf.sh" # Not there either! Last try, let's see if Homebrew can tell us where it is updated: <|file_sep|>original/zsh/config...
# ensure dotfiles bin directory is loaded first PATH="$HOME/.bin:/usr/local/sbin:$PATH" # Try loading ASDF from the regular home dir location if [ -f "$HOME/.asdf/asdf.sh" ]; then . "$HOME/.asdf/asdf.sh" elif which brew >/dev/null && BREW_DIR=$(which brew | sed 's/\/bin\/brew//') && [ -f "$BREW_DIR/opt/asdf/asdf...
<|file_sep|>zsh/configs/post/path.zsh.diff original: # It's not in the home dir, let's try the default Homebrew location elif [ -f "/usr/local/opt/asdf/asdf.sh" ]; then . "/usr/local/opt/asdf/asdf.sh" # Not there either! Last try, let's see if Homebrew can tell us where it is updated: <|file_sep|>original/zsh/config...
52ee922459d1f8a5b0db794acf35420f98e53213
zsh/configs/post/path.zsh
zsh/configs/post/path.zsh
Shell
<|file_sep|>original/.zuul.yaml - puppet-openstack-integration-jobs-all - puppet-openstack-beaker-jobs - release-notes-jobs-python3 check: jobs: - puppet-neutron-tripleo-standalone gate: jobs: - puppet-neutron-tripleo-standalone - job: name: puppet-neutron-trip...
- puppet-openstack-integration-jobs-all - puppet-openstack-beaker-jobs - release-notes-jobs-python3 check: jobs: - puppet-neutron-tripleo-standalone gate: jobs: - puppet-neutron-tripleo-standalone - job: name: puppet-neutron-tripleo-standalone parent: tripl...
<|file_sep|>original/.zuul.yaml - puppet-openstack-integration-jobs-all - puppet-openstack-beaker-jobs - release-notes-jobs-python3 check: jobs: - puppet-neutron-tripleo-standalone gate: jobs: - puppet-neutron-tripleo-standalone - job: name: puppet-neutron-trip...
6445d62aa515b251ce5118c3725599c3e0b6d461
.zuul.yaml
.zuul.yaml
YAML
<|file_sep|>README.md.diff original: Rotators -------- updated: Supported Hardware ------------------ ### Rotators ### <|file_sep|>original/README.md Modular Antenna Rotator and Plotter (MARP) ========================================== MARP is a modular antenna measurement tool. It provides an interface to several ante...
Modular Antenna Rotator and Plotter (MARP) ========================================== MARP is a modular antenna measurement tool. It provides an interface to several antenna rotators and radio receivers. MARP is free software released under the MIT License. Supported Hardware ------------------ ### Rotators ### - Ha...
<|file_sep|>README.md.diff original: Rotators -------- updated: Supported Hardware ------------------ ### Rotators ### <|file_sep|>original/README.md Modular Antenna Rotator and Plotter (MARP) ========================================== MARP is a modular antenna measurement tool. It provides an interface to several ante...
ecd8e4aee545391501e9a8e6665ec3321d317cd9
README.md
README.md
Markdown
<|file_sep|>original/prototype.spawn.js var numberOfParts = Math.floor(energy / 350); var body = []; for (let i = 0; i < numberOfParts; i++) { body.push(WORK); } for (let i = 0; i < numberOfParts; i++) { body.push(WORK); } ...
body.push(WORK); } for (let i = 0; i < numberOfParts; i++) { body.push(WORK); } for (let i = 0; i < numberOfParts; i++) { body.push(CARRY); } for (let i = 0; i < numberOfParts; i++) { ...
<|file_sep|>original/prototype.spawn.js var numberOfParts = Math.floor(energy / 350); var body = []; for (let i = 0; i < numberOfParts; i++) { body.push(WORK); } for (let i = 0; i < numberOfParts; i++) { body.push(WORK); } ...
91f0eb24d1da8d402457a215d4742b7a0093d76b
prototype.spawn.js
prototype.spawn.js
JavaScript
<|file_sep|>phase-01/main.c.diff original: updated: #include <X11/Xlib.h> <|file_sep|>original/phase-01/main.c /** * Phase 01 - Get a Window that works and can be closed. * * This code won't be structured very well, just trying to get stuff working. */ #include <stdlib.h> int main(int argc, char *argv[]) { retu...
/** * Phase 01 - Get a Window that works and can be closed. * * This code won't be structured very well, just trying to get stuff working. */ #include <stdlib.h> #include <X11/Xlib.h> int main(int argc, char *argv[]) { Display *dpy = XOpenDisplay(NULL); if (dpy == NULL) { return EXIT_FAILURE; } XClos...
<|file_sep|>phase-01/main.c.diff original: updated: #include <X11/Xlib.h> <|file_sep|>original/phase-01/main.c /** * Phase 01 - Get a Window that works and can be closed. * * This code won't be structured very well, just trying to get stuff working. */ #include <stdlib.h> int main(int argc, char *argv[]) { retu...
cf45dd1238806c0a9ff74043694f5d276efc7f4a
phase-01/main.c
phase-01/main.c
C
<|file_sep|>original/bower.json ], "license": "MIT", "ignore": [ "**/.*", "node_modules", "bower_components", "test", "tests" ], "dependencies": { "mithril": "https://github.com/lhorie/mithril.js.git#0.2.4", "mithril-postgrest": "2.0.0", "moment": "~2.10.3", "replace-diacri...
], "license": "MIT", "ignore": [ "**/.*", "node_modules", "bower_components", "test", "tests" ], "dependencies": { "mithril": "https://github.com/MithrilJS/mithril.js.git#0.2.4", "mithril-postgrest": "2.0.0", "moment": "~2.10.3", "replace-diacritics": "https://raw.githubuse...
<|file_sep|>original/bower.json ], "license": "MIT", "ignore": [ "**/.*", "node_modules", "bower_components", "test", "tests" ], "dependencies": { "mithril": "https://github.com/lhorie/mithril.js.git#0.2.4", "mithril-postgrest": "2.0.0", "moment": "~2.10.3", "replace-diacri...
f27f91cf62ebd10ca104b0534a9af2b0334909ae
bower.json
bower.json
JSON
<|file_sep|>classes/Boom/Controller/Cms/Profile.php.diff original: if ($current_password AND $new_password) updated: if ($new_password) <|file_sep|>original/classes/Boom/Controller/Cms/Profile.php } public function action_save() { extract($this->request->post()); $this->person->set('name', $name); if ($...
} public function action_save() { extract($this->request->post()); $this->person->set('name', $name); if ($new_password) { if ( ! $this->person->password OR $this->auth->check_password($current_password)) { $this->person->set('password', $this->auth->hash($new_password)); } else { $...
<|file_sep|>classes/Boom/Controller/Cms/Profile.php.diff original: if ($current_password AND $new_password) updated: if ($new_password) <|file_sep|>original/classes/Boom/Controller/Cms/Profile.php } public function action_save() { extract($this->request->post()); $this->person->set('name', $name); if ($...
90e9e163143d50bea85ff802958a984e1081948f
classes/Boom/Controller/Cms/Profile.php
classes/Boom/Controller/Cms/Profile.php
PHP
<|file_sep|>original/lib/tty/path_helpers.rb # # @api public def root_path @root_path ||= Pathname.pwd end # Execute command within root path # # @api public def within_root_path(&block) Dir.chdir(root_path, &block) end # Extract name from a path # # @api pu...
def within_root_path(&block) Dir.chdir(root_path, &block) end # Extract name from a path # # @api public def name_from_path(path) Pathname(path).basename.to_s end # Extract a relative path for the app # # @api private def relative_path_from(root_path, path) ...
<|file_sep|>original/lib/tty/path_helpers.rb # # @api public def root_path @root_path ||= Pathname.pwd end # Execute command within root path # # @api public def within_root_path(&block) Dir.chdir(root_path, &block) end # Extract name from a path # # @api pu...
ed77ba8efd52c2a0f000be31572074ebc7d37cca
lib/tty/path_helpers.rb
lib/tty/path_helpers.rb
Ruby
<|file_sep|>original/benchmark/paddle/image/plotlog.py <|file_sep|>current/benchmark/paddle/image/plotlog.py <|file_sep|>updated/benchmark/paddle/image/plotlog.py
#coding=utf-8 import sys import argparse import matplotlib.pyplot as plt def parse_args(): parser = argparse.ArgumentParser('Parse Log') parser.add_argument( '--file_path', '-f', type=str, help='the path of the log file') parser.add_argument( '--sample_rate', '-s', type=fl...
<|file_sep|>original/benchmark/paddle/image/plotlog.py <|file_sep|>current/benchmark/paddle/image/plotlog.py <|file_sep|>updated/benchmark/paddle/image/plotlog.py #coding=utf-8 import sys import argparse import matplotlib.pyplot as plt def parse_args(): parser = argparse.ArgumentParser('Parse Log') parser....
207642657e353003507243bdf863b1e27b7a04cd
benchmark/paddle/image/plotlog.py
benchmark/paddle/image/plotlog.py
Python
<|file_sep|>src/scripts/pt-gradebook/js/main.js.diff original: $j(document).ready(function () { 'use strict'; if (window.location.pathname.indexOf('lunchtransactions.html') === -1) { var newLaunchBox = $j('#ptgNewLaunchBox'); updated: import $ from 'jquery'; <|file_sep|>original/src/scripts/pt-gradebook/j...
import $ from 'jquery'; export default function() { $(() => { if (window.location.pathname.indexOf('lunchtransactions.html') === -1) { var newLaunchBox = $('#ptgNewLaunchBox'); // Removes Older Launch link newLaunchBox.find('p').eq(2).remove(); // Rename Gradebook Launch header...
<|file_sep|>src/scripts/pt-gradebook/js/main.js.diff original: $j(document).ready(function () { 'use strict'; if (window.location.pathname.indexOf('lunchtransactions.html') === -1) { var newLaunchBox = $j('#ptgNewLaunchBox'); updated: import $ from 'jquery'; <|file_sep|>original/src/scripts/pt-gradebook/j...
181df669f4df839ff3d1e99c2f292550b71b2076
src/scripts/pt-gradebook/js/main.js
src/scripts/pt-gradebook/js/main.js
JavaScript
<|file_sep|>components/script/dom/bindings/num.rs.diff original: use core::nonzero::Zeroable; updated: <|file_sep|>original/components/script/dom/bindings/num.rs //! The `Finite<T>` struct. use core::nonzero::Zeroable; use num::Float; use std::ops::Deref; /// Encapsulates the IDL restricted float type. #[derive(JST...
//! The `Finite<T>` struct. use num::Float; use std::ops::Deref; /// Encapsulates the IDL restricted float type. #[derive(JSTraceable, Clone, Copy, Eq, PartialEq)] pub struct Finite<T: Float>(T); impl<T: Float> Finite<T> { /// Create a new `Finite<T: Float>` safely. pub fn new(value: T) -> Option<Finite<T>>...
<|file_sep|>components/script/dom/bindings/num.rs.diff original: use core::nonzero::Zeroable; updated: <|file_sep|>original/components/script/dom/bindings/num.rs //! The `Finite<T>` struct. use core::nonzero::Zeroable; use num::Float; use std::ops::Deref; /// Encapsulates the IDL restricted float type. #[derive(JST...
04e32c7ab09920be8406e33581ba483e9c322409
components/script/dom/bindings/num.rs
components/script/dom/bindings/num.rs
Rust
<|file_sep|>bin/fizzbuzz.bash.diff original: if [[ $(( $i % 15 )) -eq 0 ]]; then updated: if (( $i % 15 == 0 )); then <|file_sep|>bin/fizzbuzz.bash.diff original: elif [[ $(( $i % 3 )) -eq 0 ]]; then updated: elif (( $i % 3 == 0 )); then <|file_sep|>original/bin/fizzbuzz.bash #!/usr/bin/env bash for i in {1..100};...
#!/usr/bin/env bash for i in {1..100}; do if (( $i % 15 == 0 )); then echo "fizzbuzz" elif (( $i % 3 == 0 )); then echo "fizz" elif (( $i % 5 == 0 )); then echo "buzz" else echo $i fi done
<|file_sep|>bin/fizzbuzz.bash.diff original: if [[ $(( $i % 15 )) -eq 0 ]]; then updated: if (( $i % 15 == 0 )); then <|file_sep|>bin/fizzbuzz.bash.diff original: elif [[ $(( $i % 3 )) -eq 0 ]]; then updated: elif (( $i % 3 == 0 )); then <|file_sep|>original/bin/fizzbuzz.bash #!/usr/bin/env bash for i in {1..100};...
f6dd17a0fda4170ad07c79134ccdadd1cacd5aa5
bin/fizzbuzz.bash
bin/fizzbuzz.bash
Shell
<|file_sep|>evesrp/views/__init__.py.diff original: from collections import OrderedDict from urllib.parse import urlparse import re updated: from flask import render_template from flask.ext.login import login_required <|file_sep|>original/evesrp/views/__init__.py import re from flask import render_template, redirect, ...
from flask import render_template from flask.ext.login import login_required from .. import app @app.route('/') @login_required def index(): return render_template('base.html')
<|file_sep|>evesrp/views/__init__.py.diff original: from collections import OrderedDict from urllib.parse import urlparse import re updated: from flask import render_template from flask.ext.login import login_required <|file_sep|>original/evesrp/views/__init__.py import re from flask import render_template, redirect, ...
c15c4a663c257cad6763cf92c50b7ad706017c74
evesrp/views/__init__.py
evesrp/views/__init__.py
Python
<|file_sep|>extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/graal/ScannerSubstitutions.java.diff original: updated: boolean detectEncoding, <|file_sep|>original/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/graal/ScannerSubstitutions.java import org.flywaydb.core.api.L...
import org.flywaydb.core.internal.scanner.ResourceNameCache; import com.oracle.svm.core.annotate.Substitute; import com.oracle.svm.core.annotate.TargetClass; /** * Needed to get rid of some Android related classes */ @TargetClass(className = "org.flywaydb.core.internal.scanner.Scanner") public final class ScannerSu...
<|file_sep|>extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/graal/ScannerSubstitutions.java.diff original: updated: boolean detectEncoding, <|file_sep|>original/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/graal/ScannerSubstitutions.java import org.flywaydb.core.api.L...
cf3c5b7a44762f666ad515b7774348e782b42503
extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/graal/ScannerSubstitutions.java
extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/graal/ScannerSubstitutions.java
Java
<|file_sep|>original/.travis.yml gemfile: - Gemfile language: ruby rvm: - 1.9.3 bundler_args: --without integration before_script: bundle exec berks install script: bundle exec rake cookbook:test <|file_sep|>current/.travis.yml gemfile: - Gemfile language: ruby rvm: - 1.9.3 bundler_args: --without integration b...
gemfile: - Gemfile language: ruby rvm: - 1.9.3 bundler_args: --without integration before_script: bundle exec berks install script: bundle exec rake cookbook:test notifications: email: - travisci@hipsnip.com
<|file_sep|>original/.travis.yml gemfile: - Gemfile language: ruby rvm: - 1.9.3 bundler_args: --without integration before_script: bundle exec berks install script: bundle exec rake cookbook:test <|file_sep|>current/.travis.yml gemfile: - Gemfile language: ruby rvm: - 1.9.3 bundler_args: --without integration b...
0b7964f0b6709da14a4669d68340bc746f580dfa
.travis.yml
.travis.yml
YAML
<|file_sep|>ansible/roles/repos/tasks/setup-Debian.yml.diff original: - name: Set up mirror updated: # This dummy resource ensures the python apt support is installed # before we wipe the sources list in the next step - name: Ensure python apt support is installed <|file_sep|>ansible/roles/repos/tasks/setup-Debian.yml....
repo: deb http://dummy repo test state: absent - name: Wipe existing sources.list copy: content: '# Sources are located in /etc/apt/sources.list.d' dest: /etc/apt/sources.list force: true - name: Set up mirror apt_repository: repo: "{{ item }}" update_cache: true with_items: "{{ apt_...
<|file_sep|>ansible/roles/repos/tasks/setup-Debian.yml.diff original: - name: Set up mirror updated: # This dummy resource ensures the python apt support is installed # before we wipe the sources list in the next step - name: Ensure python apt support is installed <|file_sep|>ansible/roles/repos/tasks/setup-Debian.yml....
c5f77ab6f397e4a19fad0afbbfa68aa6a0c03c82
ansible/roles/repos/tasks/setup-Debian.yml
ansible/roles/repos/tasks/setup-Debian.yml
YAML
<|file_sep|>adblock/less-distractions.txt.diff original: ! Title: Less Distractions = Better Productivity ! Version: 20160805 updated: ! Title: Less Distractions ! Version: 20171019 <|file_sep|>original/adblock/less-distractions.txt [Adblock] ! Title: Less Distractions = Better Productivity ! Version: 20160805 ! Expire...
[Adblock] ! Title: Less Distractions ! Version: 20171019 ! Expires: 1 days ! ============================================================================== ! Disable Facebook navigation boxes. facebook.com###appsNav facebook.com###developerNav facebook.com###eventsNav facebook.com###groupsNav facebook.com###interestsNa...
<|file_sep|>adblock/less-distractions.txt.diff original: ! Title: Less Distractions = Better Productivity ! Version: 20160805 updated: ! Title: Less Distractions ! Version: 20171019 <|file_sep|>original/adblock/less-distractions.txt [Adblock] ! Title: Less Distractions = Better Productivity ! Version: 20160805 ! Expire...
521b9c22ff85d7f545182caa55e3e9f1a861ad2e
adblock/less-distractions.txt
adblock/less-distractions.txt
Text
<|file_sep|>lib/omniauth/strategies/flickr.rb.diff original: updated: <|file_sep|>lib/omniauth/strategies/flickr.rb.diff original: updated: <|file_sep|>lib/omniauth/strategies/flickr.rb.diff original: { :username => access_token.params['username'], :full_name => access_token....
access_token.params['user_nsid'] } info do user_info end extra do {} end def user_info if @user_info.blank? @user_info = {} # This is a public API and does not need signing or authentication url = "/s...
<|file_sep|>lib/omniauth/strategies/flickr.rb.diff original: updated: <|file_sep|>lib/omniauth/strategies/flickr.rb.diff original: updated: <|file_sep|>lib/omniauth/strategies/flickr.rb.diff original: { :username => access_token.params['username'], :full_name => access_token....
2a7e24ae7d2aa8ed08a0f1689e3788b97a0b12af
lib/omniauth/strategies/flickr.rb
lib/omniauth/strategies/flickr.rb
Ruby
<|file_sep|>original/README.md # Unity3d-Sequential 使用外部配置文件控制Unity3d顺序执行特定的操作 <|file_sep|>current/README.md # Unity3d-Sequential 使用外部配置文件控制Unity3d顺序执行特定的操作 <|file_sep|>updated/README.md
# Unity3d-Sequential Use The Outside Config File To Control The GameObject In Unity3d Scene. version 0.01 Use XML file as config dirver.
<|file_sep|>original/README.md # Unity3d-Sequential 使用外部配置文件控制Unity3d顺序执行特定的操作 <|file_sep|>current/README.md # Unity3d-Sequential 使用外部配置文件控制Unity3d顺序执行特定的操作 <|file_sep|>updated/README.md # Unity3d-Sequential Use The Outside Config File To Control The GameObject In Unity3d Scene. version 0.01 Use XML file as co...
dfd0673aa0795d23c32993657797a2c3528ebab0
README.md
README.md
Markdown
<|file_sep|>original/S32-num/stress.t <|file_sep|>current/S32-num/stress.t <|file_sep|>updated/S32-num/stress.t
use v6; use Test; plan 1; # https://github.com/rakudo/rakudo/issues/1651 subtest 'No drift when roundtripping Num -> Str -> Num -> Str' => { # In this test, it's fine if the original .Str gives the string that # doesn't match what the user has entered (since it may be a number that # doesn't have exact re...
<|file_sep|>original/S32-num/stress.t <|file_sep|>current/S32-num/stress.t <|file_sep|>updated/S32-num/stress.t use v6; use Test; plan 1; # https://github.com/rakudo/rakudo/issues/1651 subtest 'No drift when roundtripping Num -> Str -> Num -> Str' => { # In this test, it's fine if the original .Str gives the st...
a03e959cfa6a8ea1b8958860b51fc4ba370186bb
S32-num/stress.t
S32-num/stress.t
Perl
<|file_sep|>doc/manual/srcs/okcounterdctl.tex.diff original: \item[-c \textless $1\ldots6$\textgreater] set the PPS OUT source updated: \item[-p \textless $1\ldots6$\textgreater] set the PPS OUT source <|file_sep|>original/doc/manual/srcs/okcounterdctl.tex \cc{gpscv.conf} to determine the port used by \cc{okcounterd}...
\begin{description*} \item[-c \textless file\textgreater] use the specified gpscv configuration file \item[-d] run in debugging mode \item[-g \textless $0|1$\textgreater] disable/enable the system GPIO \item[-h] print help and exit \item[-p \textless $1\ldots6$\textgreater] set the PPS OUT source \item[-q] query ...
<|file_sep|>doc/manual/srcs/okcounterdctl.tex.diff original: \item[-c \textless $1\ldots6$\textgreater] set the PPS OUT source updated: \item[-p \textless $1\ldots6$\textgreater] set the PPS OUT source <|file_sep|>original/doc/manual/srcs/okcounterdctl.tex \cc{gpscv.conf} to determine the port used by \cc{okcounterd}...
533ea9f378d0ab6db032475c0ce11cc628525ebf
doc/manual/srcs/okcounterdctl.tex
doc/manual/srcs/okcounterdctl.tex
TeX
<|file_sep|>original/package.json { "name": "node-http-message", "version": "0.0.1", "description": "Simple library to create HTTP Messages", "main": "index.js", "scripts": { "test": "./test" }, "repository": { "type": "git", "url": "https://github.com/afiestas/node-http-message.git" }, "k...
{ "name": "http-message", "version": "0.0.1", "description": "Simple library to create HTTP Messages", "main": "index.js", "scripts": { "test": "./test" }, "repository": { "type": "git", "url": "https://github.com/afiestas/node-http-message.git" }, "keywords": [ "HTTP", "Message", ...
<|file_sep|>original/package.json { "name": "node-http-message", "version": "0.0.1", "description": "Simple library to create HTTP Messages", "main": "index.js", "scripts": { "test": "./test" }, "repository": { "type": "git", "url": "https://github.com/afiestas/node-http-message.git" }, "k...
5786c641d580eb9196d973d5c4480249644e7325
package.json
package.json
JSON
<|file_sep|>source/manual/alerts/aws-ses-email-quota.html.md.diff original: Applications using this SES account include Whitehall, Publisher, and Signon. updated: Applications using this SES account include: * [Whitehall][] and [Publisher][]: publish notifications to editors, and fact-check requests. * [Signon][]: a...
--- owner_slack: "#govuk-2ndline" title: AWS SES quota usage higher than expected parent: "/manual.html" layout: manual_layout section: Icinga alerts last_reviewed_on: 2018-06-25 review_in: 6 months --- Applications using this SES account include: * [Whitehall][] and [Publisher][]: publish notifications to editors, a...
<|file_sep|>source/manual/alerts/aws-ses-email-quota.html.md.diff original: Applications using this SES account include Whitehall, Publisher, and Signon. updated: Applications using this SES account include: * [Whitehall][] and [Publisher][]: publish notifications to editors, and fact-check requests. * [Signon][]: a...
1e8ffc767ad009eb384ad7d340e1c73b95f61755
source/manual/alerts/aws-ses-email-quota.html.md
source/manual/alerts/aws-ses-email-quota.html.md
Markdown
<|file_sep|>original/subsys/usb/class/CMakeLists.txt zephyr_sources_ifdef(CONFIG_USB_CDC_ACM cdc_acm.c) zephyr_sources_ifdef(CONFIG_USB_MASS_STORAGE mass_storage.c) add_subdirectory_ifdef(CONFIG_USB_DEVICE_NETWORK netusb) add_subdirectory_ifdef(CONFIG_USB_DEVICE_HID hid) <|file_sep|>current/subsys/usb/class/CMakeLists...
zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/usb) zephyr_sources_ifdef(CONFIG_USB_CDC_ACM cdc_acm.c) zephyr_sources_ifdef(CONFIG_USB_MASS_STORAGE mass_storage.c) add_subdirectory_ifdef(CONFIG_USB_DEVICE_NETWORK netusb) add_subdirectory_ifdef(CONFIG_USB_DEVICE_HID hid)
<|file_sep|>original/subsys/usb/class/CMakeLists.txt zephyr_sources_ifdef(CONFIG_USB_CDC_ACM cdc_acm.c) zephyr_sources_ifdef(CONFIG_USB_MASS_STORAGE mass_storage.c) add_subdirectory_ifdef(CONFIG_USB_DEVICE_NETWORK netusb) add_subdirectory_ifdef(CONFIG_USB_DEVICE_HID hid) <|file_sep|>current/subsys/usb/class/CMakeLists...
6239341addfec56ebf11663e3ad3027b4df63554
subsys/usb/class/CMakeLists.txt
subsys/usb/class/CMakeLists.txt
Text
<|file_sep|>original/bin/network.sh #!/bin/bash set -eux source /opt/stack/undercloud-live/bin/common.sh # This script needs to be rerun if you reboot the undercloud. wait_for 12 10 ls /var/run/libvirt/libvirt-sock PUBLIC_INTERFACE=${PUBLIC_INTERFACE:-ucl0} sudo sed -i "s/bridge name='brbm'/bridge name='br-ctlpla...
#!/bin/bash set -eux source /opt/stack/undercloud-live/bin/common.sh # This script needs to be rerun if you reboot the undercloud. wait_for 12 10 ls /var/run/libvirt/libvirt-sock PUBLIC_INTERFACE=${PUBLIC_INTERFACE:-ucl0} sudo sed -i "s/bridge name='brbm'/bridge name='br-ctlplane'/" /opt/stack/tripleo-incubator/t...
<|file_sep|>original/bin/network.sh #!/bin/bash set -eux source /opt/stack/undercloud-live/bin/common.sh # This script needs to be rerun if you reboot the undercloud. wait_for 12 10 ls /var/run/libvirt/libvirt-sock PUBLIC_INTERFACE=${PUBLIC_INTERFACE:-ucl0} sudo sed -i "s/bridge name='brbm'/bridge name='br-ctlpla...
cd5ddd7762b1396ce50c7fab38e4c6aec98061e7
bin/network.sh
bin/network.sh
Shell
<|file_sep|>original/Casks/picturelife.rb cask :v1 => 'picturelife' do version :latest sha256 :no_check url 'https://www.streamnation.com/uploader/osx/picturelife/Picturelife.dmg' name 'Picturelife Smartloader' homepage 'http://picturelife.com' license :gratis app 'Picturelife.app' uninstall :quit =>...
cask :v1 => 'picturelife' do version :latest sha256 :no_check url 'https://www.streamnation.com/uploader/osx/picturelife/Picturelife.dmg' name 'Picturelife Smartloader' homepage 'https://picturelife.com/home' license :gratis app 'Picturelife.app' uninstall :quit => [ 'com.picturelife.sync' ] zap :...
<|file_sep|>original/Casks/picturelife.rb cask :v1 => 'picturelife' do version :latest sha256 :no_check url 'https://www.streamnation.com/uploader/osx/picturelife/Picturelife.dmg' name 'Picturelife Smartloader' homepage 'http://picturelife.com' license :gratis app 'Picturelife.app' uninstall :quit =>...
e5494cb5852982ed8bd91ac350b6447d375586ca
Casks/picturelife.rb
Casks/picturelife.rb
Ruby
<|file_sep|>original/src/Support/ErrorBag.php * * @param $statusCode * * @return MessageBag */ protected function getErrorBagForStatusCode($statusCode) { $errorMap = [ SymfonyResponse::HTTP_UNPROCESSABLE_ENTITY => 'google2fa.error_messages.wrong_otp', Sym...
* @param $statusCode * * @return MessageBag */ protected function getErrorBagForStatusCode($statusCode) { $errorMap = [ SymfonyResponse::HTTP_UNPROCESSABLE_ENTITY => 'google2fa.error_messages.wrong_otp', SymfonyResponse::HTTP_BAD_REQUEST => 'google2fa...
<|file_sep|>original/src/Support/ErrorBag.php * * @param $statusCode * * @return MessageBag */ protected function getErrorBagForStatusCode($statusCode) { $errorMap = [ SymfonyResponse::HTTP_UNPROCESSABLE_ENTITY => 'google2fa.error_messages.wrong_otp', Sym...
bb5c25490ae3f0d856abf3d3312258c150249ed5
src/Support/ErrorBag.php
src/Support/ErrorBag.php
PHP
<|file_sep|>test_doc.py.diff original: updated: total_failures, total_tests = (0, 0) <|file_sep|>test_doc.py.diff original: if failure: sys.exit(1) updated: total_failures += failure total_tests += tests <|file_sep|>test_doc.py.diff original: if failure: sys.exit(1) updated: to...
total_failures += failure total_tests += tests print("=== Test file: test.rst ===") failure, tests = doctest.testfile('test/test.rst', optionflags=doctest.ELLIPSIS) total_failures += failure total_tests += tests print("=== Test IPy module ===") import IPy failure, tests = doctest.t...
<|file_sep|>test_doc.py.diff original: updated: total_failures, total_tests = (0, 0) <|file_sep|>test_doc.py.diff original: if failure: sys.exit(1) updated: total_failures += failure total_tests += tests <|file_sep|>test_doc.py.diff original: if failure: sys.exit(1) updated: to...
adb6ce275e1cbc2d000286e169a4a96b25b32dbb
test_doc.py
test_doc.py
Python
<|file_sep|>original/.travis.yml rvm: - 2.5.3 - 2.6.5 - 2.7.0 - ruby-head gemfile: - gemfiles/Gemfile-rails-5-2 - gemfiles/Gemfile-rails-6-0 - gemfiles/Gemfile-rails-main matrix: allow_failures: - rvm: ruby-head exclude: - rvm: 2.5.3 gemfile: gemfiles/Gemfile-rails-main - rvm: 2.6.5 ...
- 2.5.3 - 2.6.5 - 2.7.0 - ruby-head gemfile: - gemfiles/Gemfile-rails-5-2 - gemfiles/Gemfile-rails-6-0 - gemfiles/Gemfile-rails-main matrix: allow_failures: - gemfile: gemfiles/Gemfile-rails-main - rvm: ruby-head exclude: - rvm: 2.5.3 gemfile: gemfiles/Gemfile-rails-main - rvm: 2...
<|file_sep|>original/.travis.yml rvm: - 2.5.3 - 2.6.5 - 2.7.0 - ruby-head gemfile: - gemfiles/Gemfile-rails-5-2 - gemfiles/Gemfile-rails-6-0 - gemfiles/Gemfile-rails-main matrix: allow_failures: - rvm: ruby-head exclude: - rvm: 2.5.3 gemfile: gemfiles/Gemfile-rails-main - rvm: 2.6.5 ...
bede4b70be54d30955e271ac82f28a32d4a1a90b
.travis.yml
.travis.yml
YAML
<|file_sep|>original/requirements.txt celery==4.2.1 dj-database-url==0.5.0 django-assets==0.12 django-bulk-update==2.2.0 django-cors-middleware==1.3.1 django-debug-toolbar==1.11 django-extensions==2.1.5 django-test-without-migrations==0.6 djangorestframework==3.9.1 freezegun==0.3.11 gunicorn==19.9.0 newrelic==4.12.0.11...
celery==4.2.1 dj-database-url==0.5.0 django-assets==0.12 django-bulk-update==2.2.0 django-cors-middleware==1.3.1 django-debug-toolbar==1.11 django-extensions==2.1.5 django-test-without-migrations==0.6 djangorestframework==3.9.1 freezegun==0.3.11 gunicorn==19.9.0 newrelic==4.12.0.113 psycopg2==2.7.7 python-decouple==3.1...
<|file_sep|>original/requirements.txt celery==4.2.1 dj-database-url==0.5.0 django-assets==0.12 django-bulk-update==2.2.0 django-cors-middleware==1.3.1 django-debug-toolbar==1.11 django-extensions==2.1.5 django-test-without-migrations==0.6 djangorestframework==3.9.1 freezegun==0.3.11 gunicorn==19.9.0 newrelic==4.12.0.11...
37a465f55f4b412f535950b0fe9eb1b58459af4d
requirements.txt
requirements.txt
Text
<|file_sep|>original/core/markdown.py nl2br.Nl2BrExtension(), utils.markdown.ExtendedLinkExtension(), sane_lists.SaneListExtension(), fenced_code.FencedCodeExtension(), utils.markdown.CuddledListExtension(), UnimojiExtension() ] content_allowed_tags = ( # text 'p', 'em', 'strong', 'br',...
nl2br.Nl2BrExtension(), utils.markdown.ExtendedLinkExtension(), sane_lists.SaneListExtension(), fenced_code.FencedCodeExtension(), utils.markdown.CuddledListExtension(), UnimojiExtension() ] content_allowed_tags = ( # text 'p', 'em', 'strong', 'br', 'a', 'img', 'sub', 'sup', # citat...
<|file_sep|>original/core/markdown.py nl2br.Nl2BrExtension(), utils.markdown.ExtendedLinkExtension(), sane_lists.SaneListExtension(), fenced_code.FencedCodeExtension(), utils.markdown.CuddledListExtension(), UnimojiExtension() ] content_allowed_tags = ( # text 'p', 'em', 'strong', 'br',...
3e84dcb7b449db89ca6ce2b91b34a5e8f8428b39
core/markdown.py
core/markdown.py
Python
<|file_sep|>server/models/index.js.diff original: updated: let sequelize; <|file_sep|>server/models/index.js.diff original: const sequelize = new Sequelize(config.db.database, config.db.user, updated: if (process.env.NODE_ENV === 'production') { sequelize = new Sequelize(process.env.DATABASE_URL); } else { sequeli...
const basename = path.basename(module.filename); const db = {}; let sequelize; if (process.env.NODE_ENV === 'production') { sequelize = new Sequelize(process.env.DATABASE_URL); } else { sequelize = new Sequelize(config.db.database, config.db.user, config.db.password, config.db.options); } fs .readdirSync(__di...
<|file_sep|>server/models/index.js.diff original: updated: let sequelize; <|file_sep|>server/models/index.js.diff original: const sequelize = new Sequelize(config.db.database, config.db.user, updated: if (process.env.NODE_ENV === 'production') { sequelize = new Sequelize(process.env.DATABASE_URL); } else { sequeli...
5bdfcbfddf113a9572f615eee37638e89f900103
server/models/index.js
server/models/index.js
JavaScript
<|file_sep|>Assets/Scripts/Map/MapPresenter.cs.diff original: updated: private Tile[] tiles; <|file_sep|>Assets/Scripts/Map/MapPresenter.cs.diff original: updated: tiles = new Tile[sizeX * sizeY]; <|file_sep|>Assets/Scripts/Map/MapPresenter.cs.diff original: root = rootObject.transform; updated: <|file_sep...
rootObject.AddComponent<MeshRenderer>().material = material; root = rootObject.transform; StartCoroutine(DelayedFunction()); } private IEnumerator DelayedFunction () { //TDOD do something yield return new WaitForSeconds(0.5f); } private void CreateQuad(){ //Vector3.one; } } public cla...
<|file_sep|>Assets/Scripts/Map/MapPresenter.cs.diff original: updated: private Tile[] tiles; <|file_sep|>Assets/Scripts/Map/MapPresenter.cs.diff original: updated: tiles = new Tile[sizeX * sizeY]; <|file_sep|>Assets/Scripts/Map/MapPresenter.cs.diff original: root = rootObject.transform; updated: <|file_sep...
58cea5200c44fe6ac87b04e944ef00c1bdcf4003
Assets/Scripts/Map/MapPresenter.cs
Assets/Scripts/Map/MapPresenter.cs
C#
<|file_sep|>original/requirements/base.txt django-basicauth==0.5.2 django-extensions==2.1.9 django-localflavor==2.2 django-markdown-deux==1.0.5 django==1.11.22 # pyup: >=1.11,<2.0 djangorestframework==3.10.1 djangorestframework-gis==0.14 django-cors-headers==3.0.2 fastkml==0.11 fuzzywuzzy==0.17.0 lxml==4.3.4 psycopg2-...
django-basicauth==0.5.2 django-extensions==2.1.9 django-localflavor==2.2 django-markdown-deux==1.0.5 django==1.11.22 # pyup: >=1.11,<2.0 djangorestframework==3.10.1 djangorestframework-gis==0.14 django-cors-headers==3.0.2 fastkml==0.11 fuzzywuzzy==0.17.0 lxml==4.4.0 psycopg2-binary==2.8.3 pyshp==2.1.0 python-levenshte...
<|file_sep|>original/requirements/base.txt django-basicauth==0.5.2 django-extensions==2.1.9 django-localflavor==2.2 django-markdown-deux==1.0.5 django==1.11.22 # pyup: >=1.11,<2.0 djangorestframework==3.10.1 djangorestframework-gis==0.14 django-cors-headers==3.0.2 fastkml==0.11 fuzzywuzzy==0.17.0 lxml==4.3.4 psycopg2-...
133d7106def7067d5e43f40cba4ce5eb19122c06
requirements/base.txt
requirements/base.txt
Text
<|file_sep|>assets/css/styles.css.diff original: updated: opacity: 0.9; <|file_sep|>original/assets/css/styles.css border-radius: 6px; border-color: #357EBD} .banner ul#menu-header.nav>li.menu-get-owncloud a{ padding: 7px 16px 7px 0; line-height: 1.25; border-bottom: 0 } .contribook_bloguserpicture img { marg...
padding: 7px 16px 7px 0; line-height: 1.25; border-bottom: 0 } .contribook_bloguserpicture img { margin-right: 0; } footer div.footer-nav>h4 { font-size: 1.125em; color: #FFFFFF; } i[class*='icon-'] { font-style: normal; } .home .row { padding-bottom: 20px; }
<|file_sep|>assets/css/styles.css.diff original: updated: opacity: 0.9; <|file_sep|>original/assets/css/styles.css border-radius: 6px; border-color: #357EBD} .banner ul#menu-header.nav>li.menu-get-owncloud a{ padding: 7px 16px 7px 0; line-height: 1.25; border-bottom: 0 } .contribook_bloguserpicture img { marg...
b1d6cdc1d3c1356ab40541bd14c461932f1b1019
assets/css/styles.css
assets/css/styles.css
CSS
<|file_sep|>tests/RecaptchaBuilderTest.php.diff original: $this->recaptchaBuilder = new RecaptchaBuilder($this->htmlBuilder); updated: $this->siteKey = 'my-site-key'; $this->recaptchaBuilder = new RecaptchaBuilder($this->siteKey, $this->htmlBuilder); <|file_sep|>tests/RecaptchaBuilderTest.php.di...
$this->siteKey = 'my-site-key'; $this->recaptchaBuilder = new RecaptchaBuilder($this->siteKey, $this->htmlBuilder); } public function testWidget() { $r1 = $this->recaptchaBuilder->widget(); $r2 = $this->recaptchaBuilder->widget(['theme' => 'dark']); $r3 = $this->reca...
<|file_sep|>tests/RecaptchaBuilderTest.php.diff original: $this->recaptchaBuilder = new RecaptchaBuilder($this->htmlBuilder); updated: $this->siteKey = 'my-site-key'; $this->recaptchaBuilder = new RecaptchaBuilder($this->siteKey, $this->htmlBuilder); <|file_sep|>tests/RecaptchaBuilderTest.php.di...
93269607ab003621db7e5160c6b3cd1eb94bf7a6
tests/RecaptchaBuilderTest.php
tests/RecaptchaBuilderTest.php
PHP
<|file_sep|>devbin/make-executable-zip.sh.diff original: export ZIPOPT="-9" updated: export ZIPOPT="-9 -q" <|file_sep|>devbin/make-executable-zip.sh.diff original: updated: # The main attraction! cp -a "$ROOTDIR/px" "$WORKDIR/" <|file_sep|>original/devbin/make-executable-zip.sh ZIPFILE="$ROOTDIR/px.exe" export ZIPOPT...
# Set up file structure in our temporary directory cp "$MYDIR/executable-zip-bootstrap.py" "$WORKDIR/__main__.py" # The main attraction! cp -a "$ROOTDIR/px" "$WORKDIR/" # FIXME: Where should we really get these from? cp -a "$ROOTDIR/env/lib/python3.9/site-packages/dateutil" "$WORKDIR/" cp -a "$ROOTDIR/env/lib/python3...
<|file_sep|>devbin/make-executable-zip.sh.diff original: export ZIPOPT="-9" updated: export ZIPOPT="-9 -q" <|file_sep|>devbin/make-executable-zip.sh.diff original: updated: # The main attraction! cp -a "$ROOTDIR/px" "$WORKDIR/" <|file_sep|>original/devbin/make-executable-zip.sh ZIPFILE="$ROOTDIR/px.exe" export ZIPOPT...
6cd9c1a93d0b78ebecb122203cb1c0f4a7f5b756
devbin/make-executable-zip.sh
devbin/make-executable-zip.sh
Shell
<|file_sep|>seahub/profile/models.py.diff original: updated: from django.core.cache import cache from django.dispatch import receiver from settings import EMAIL_ID_CACHE_PREFIX, EMAIL_ID_CACHE_TIMEOUT from registration.signals import user_registered <|file_sep|>original/seahub/profile/models.py from django.db import ...
from django.db import models from django.core.cache import cache from django.dispatch import receiver from settings import EMAIL_ID_CACHE_PREFIX, EMAIL_ID_CACHE_TIMEOUT from registration.signals import user_registered class Profile(models.Model): user = models.EmailField(unique=True) nickname = models.CharFie...
<|file_sep|>seahub/profile/models.py.diff original: updated: from django.core.cache import cache from django.dispatch import receiver from settings import EMAIL_ID_CACHE_PREFIX, EMAIL_ID_CACHE_TIMEOUT from registration.signals import user_registered <|file_sep|>original/seahub/profile/models.py from django.db import ...
213708504447c8858ed3ba86324acaff98dbefdf
seahub/profile/models.py
seahub/profile/models.py
Python
<|file_sep|>original/lib/tilex_web/templates/shared/_elixir.html.eex Looking for help? Elixir is quickly gaining momentum for web applications that need concurrency, performance, and the ability to connect to many different clients. The developers at <a href="https://hashrocket.com/elixir">Hashrocket</a> are learning a...
Looking for help? Elixir is quickly gaining momentum for web applications that need concurrency, performance, and the ability to connect to many different clients. The developers at <a href="https://hashrocket.com/elixir">Hashrocket</a> are learning along with the rest of the development community that Elixir and Phoen...
<|file_sep|>original/lib/tilex_web/templates/shared/_elixir.html.eex Looking for help? Elixir is quickly gaining momentum for web applications that need concurrency, performance, and the ability to connect to many different clients. The developers at <a href="https://hashrocket.com/elixir">Hashrocket</a> are learning a...
06eadd8d79990239dad0f7a1036b75422078fd7f
lib/tilex_web/templates/shared/_elixir.html.eex
lib/tilex_web/templates/shared/_elixir.html.eex
HTML+EEX