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|>mix-write/index.js.diff original: if (!error) { var stream = vfs.dest(dir); tree.nodes.map(nodeToVinyl).forEach(function (file) { stream.write(file); }); stream.end...
return function (tree) { return new mix.Stream(function (sink) { schedule(function (done) { rimraf(dir, function (error) { if (error) { console.log(error); sink.close(); done(); ...
<|file_sep|>mix-write/index.js.diff original: if (!error) { var stream = vfs.dest(dir); tree.nodes.map(nodeToVinyl).forEach(function (file) { stream.write(file); }); stream.end...
2669a19d55bcc27ca8b9a47667e2664f24a8aadf
mix-write/index.js
mix-write/index.js
JavaScript
<|file_sep|>lib/rubocop/cop/style/space_after_not.rb.diff original: updated: return unless node.keyword_bang? <|file_sep|>original/lib/rubocop/cop/style/space_after_not.rb # # # good # !something class SpaceAfterNot < Cop MSG = 'Do not leave space between `!` and its argu...
# # # good # !something class SpaceAfterNot < Cop MSG = 'Do not leave space between `!` and its argument.'.freeze def on_send(node) return unless node.keyword_bang? receiver, _method_name, *_args = *node return unless receiver.loc.column - node...
<|file_sep|>lib/rubocop/cop/style/space_after_not.rb.diff original: updated: return unless node.keyword_bang? <|file_sep|>original/lib/rubocop/cop/style/space_after_not.rb # # # good # !something class SpaceAfterNot < Cop MSG = 'Do not leave space between `!` and its argu...
e3c3f4bb9280e119a18f36145fc716aecdfd2b14
lib/rubocop/cop/style/space_after_not.rb
lib/rubocop/cop/style/space_after_not.rb
Ruby
<|file_sep|>app/controllers/search_controller.rb.diff original: # def show # # replace non-ASCII characters with ASCII and non-word characters with spaces for API call # sanitized_search = I18n.transliterate(params[:q]).gsub(/(\W)/, " ") # @artist = Search.for(sanitized_search).first # @related_artist...
class SearchController < ApplicationController def index end def show # replace non-ASCII characters with ASCII and non-word characters with spaces for API call sanitized_search = I18n.transliterate(params[:q]).gsub(/(\W)/, " ") @artist = Search.for(sanitized_search).first @related_artists = @ar...
<|file_sep|>app/controllers/search_controller.rb.diff original: # def show # # replace non-ASCII characters with ASCII and non-word characters with spaces for API call # sanitized_search = I18n.transliterate(params[:q]).gsub(/(\W)/, " ") # @artist = Search.for(sanitized_search).first # @related_artist...
12cc196980476b3946f44b952d793775331523e8
app/controllers/search_controller.rb
app/controllers/search_controller.rb
Ruby
<|file_sep|>original/config/routes.rb resources :spaces, only: [:show, :create, :update, :destroy] resources :spaces do resources :copies, only: [:create] end resources :users do resources :spaces, only: [:index] get :memberships, to: 'user_organization_memberships#user_memberships' post '/acco...
resources :spaces, only: [:show, :create, :update, :destroy] resources :spaces do resources :copies, only: [:create] end resources :users do resources :spaces, only: [:index] get :memberships, to: 'user_organization_memberships#user_memberships' post '/account/synchronization', to: 'accounts#sy...
<|file_sep|>original/config/routes.rb resources :spaces, only: [:show, :create, :update, :destroy] resources :spaces do resources :copies, only: [:create] end resources :users do resources :spaces, only: [:index] get :memberships, to: 'user_organization_memberships#user_memberships' post '/acco...
f66daa959d5bd2712381b5628a199ecab28ad687
config/routes.rb
config/routes.rb
Ruby
<|file_sep|>static/js/states/projectCreateBuild.js.diff original: controller: function($scope, $rootScope, $http, $location, flash, projectData) { updated: controller: function($scope, $rootScope, $http, $state, flash, projectData) { <|file_sep|>static/js/states/projectCreateBuild.js.diff original: ...
buildData.project = projectData.slug; $http.post('/api/0/builds/', buildData) .success(function(data){ if (data.length === 0) { flash('error', 'Unable to create a new build.'); } else if (data.length > 1) { flash('success', data.length + ' n...
<|file_sep|>static/js/states/projectCreateBuild.js.diff original: controller: function($scope, $rootScope, $http, $location, flash, projectData) { updated: controller: function($scope, $rootScope, $http, $state, flash, projectData) { <|file_sep|>static/js/states/projectCreateBuild.js.diff original: ...
931d833367f348ace467dca12132f0b3afc69c6b
static/js/states/projectCreateBuild.js
static/js/states/projectCreateBuild.js
JavaScript
<|file_sep|>original/app/models/user.rb class User < ActiveRecord::Base authenticates_with_sorcery! has_many :user_votes validates :password, length: { minimum: 8} validates :password, confirmation: true validates :password_confirmation, presence: true validates :email, uniqueness: true end <|file_sep|>...
class User < ActiveRecord::Base authenticates_with_sorcery! has_many :user_votes has_many :items, through: :user_votes validates :password, length: { minimum: 8} validates :password, confirmation: true validates :password_confirmation, presence: true validates :email, uniqueness: true end
<|file_sep|>original/app/models/user.rb class User < ActiveRecord::Base authenticates_with_sorcery! has_many :user_votes validates :password, length: { minimum: 8} validates :password, confirmation: true validates :password_confirmation, presence: true validates :email, uniqueness: true end <|file_sep|>...
8cf8b20a9544dec59954f895c85f5aca4f823fd8
app/models/user.rb
app/models/user.rb
Ruby
<|file_sep|>test/dummy/app/views/application/index.html.erb.diff original: <% content_for :title, "Components" %> updated: <% content_for :title, "Ornament" %> <|file_sep|>test/dummy/app/views/application/index.html.erb.diff original: <div class="rhythm"> updated: <div class="spacing"> <|file_sep|>original/test/dummy/a...
<% content_for :title, "Ornament" %> <div class="spacing"> <ul> <li><a href="/styleguide">Styleguide</a></li> </ul> <h2>Components</h2> <ul> <li><a href="/button">Button</a></li> <li><a href="/footer">Footer</a></li> <li><a href="/header">Header</a></li> <li><a href="/navigation">Navigati...
<|file_sep|>test/dummy/app/views/application/index.html.erb.diff original: <% content_for :title, "Components" %> updated: <% content_for :title, "Ornament" %> <|file_sep|>test/dummy/app/views/application/index.html.erb.diff original: <div class="rhythm"> updated: <div class="spacing"> <|file_sep|>original/test/dummy/a...
5cbbe779908d2462ebb92f4819b9ac23cacee3f6
test/dummy/app/views/application/index.html.erb
test/dummy/app/views/application/index.html.erb
HTML+ERB
<|file_sep|>original/t/01-basic.t <|file_sep|>current/t/01-basic.t <|file_sep|>updated/t/01-basic.t
use v6; use Test; use Auth::PAM::Simple; ok True, "Module loaded"; is authenticate("login", "aaaa", "aaaa"), False, "Got false response for invalid user/pass";
<|file_sep|>original/t/01-basic.t <|file_sep|>current/t/01-basic.t <|file_sep|>updated/t/01-basic.t use v6; use Test; use Auth::PAM::Simple; ok True, "Module loaded"; is authenticate("login", "aaaa", "aaaa"), False, "Got false response for invalid user/pass";
88c9364c3d705e5798d30674c1b03ef717cdfe9c
t/01-basic.t
t/01-basic.t
Perl
<|file_sep|>original/webpack.config.js const path = require("path"); const webpack = require("webpack"); module.exports = { resolve: { extensions: [".js"] }, module: { rules: [ { test: /\.css$/, use: ["style-loader", "css-loader"] }, { test: /\.js$/, excl...
const path = require("path"); const webpack = require("webpack"); module.exports = { devtool: "source-map", resolve: { extensions: [".js"] }, module: { rules: [ { test: /\.css$/, use: ["style-loader", "css-loader"] }, { test: /\.js$/, exclude: /(node_mo...
<|file_sep|>original/webpack.config.js const path = require("path"); const webpack = require("webpack"); module.exports = { resolve: { extensions: [".js"] }, module: { rules: [ { test: /\.css$/, use: ["style-loader", "css-loader"] }, { test: /\.js$/, excl...
f49b4773b5a5556de866411ad3d45974f78ab6e1
webpack.config.js
webpack.config.js
JavaScript
<|file_sep|>original/app.rb require 'sinatra' require 'data_mapper' require './helpers/birthday' require './models/vip_clients.rb' require './models/invitations.rb' include Birthday DataMapper.setup(:default, ENV['DATABASE_URL']) get '/' do @vip_clients = VipClients.all send_invitations end def send_invitatio...
require 'data_mapper' require './helpers/birthday' require './models/vip_clients.rb' require './models/invitations.rb' include Birthday DataMapper.setup(:default, ENV['DATABASE_URL']) get '/' do @vip_clients = VipClients.all send_invitations halt 200 end def send_invitations return Birthday.greetings(@vip_...
<|file_sep|>original/app.rb require 'sinatra' require 'data_mapper' require './helpers/birthday' require './models/vip_clients.rb' require './models/invitations.rb' include Birthday DataMapper.setup(:default, ENV['DATABASE_URL']) get '/' do @vip_clients = VipClients.all send_invitations end def send_invitatio...
b135fcb3d5cf53aa1fd1af7b7696ba1f242e63b4
app.rb
app.rb
Ruby
<|file_sep|>eloquent_js/chapter06/ch06_ex01.js.diff original: constructor(x, y) { this.x = x; this.y = y; } updated: constructor(x, y) { this.x = x; this.y = y; } <|file_sep|>eloquent_js/chapter06/ch06_ex01.js.diff original: plus(v) { return new Vec(this.x + v.x, this.y + v.y);...
class Vec { constructor(x, y) { this.x = x; this.y = y; } plus(v) { return new Vec(this.x + v.x, this.y + v.y); } minus(v) { return new Vec(this.x - v.x, this.y - v.y); } get length() { return Math.sqrt(this.x**2 + this.y**2); } }
<|file_sep|>eloquent_js/chapter06/ch06_ex01.js.diff original: constructor(x, y) { this.x = x; this.y = y; } updated: constructor(x, y) { this.x = x; this.y = y; } <|file_sep|>eloquent_js/chapter06/ch06_ex01.js.diff original: plus(v) { return new Vec(this.x + v.x, this.y + v.y);...
1c9039a0bc7fa585ed309cbc0ae73a29da93ca10
eloquent_js/chapter06/ch06_ex01.js
eloquent_js/chapter06/ch06_ex01.js
JavaScript
<|file_sep|>docker-compose.yml.diff original: image: mysql updated: image: mysql:5.7 <|file_sep|>original/docker-compose.yml image: mysql ports: - "3306:3306" environment: - MYSQL_ROOT_PASSWORD=secret - MYSQL_DATABASE=laravel-blog volumes: - ./storage/tmp/db:/var/lib/mysq...
image: mysql:5.7 ports: - "3306:3306" environment: - MYSQL_ROOT_PASSWORD=secret - MYSQL_DATABASE=laravel-blog volumes: - ./storage/tmp/db:/var/lib/mysql:cached mysql-test: image: mysql:5.7 ports: - "3307:3306" environment: - MYSQL_ROOT_PASSWORD=secret ...
<|file_sep|>docker-compose.yml.diff original: image: mysql updated: image: mysql:5.7 <|file_sep|>original/docker-compose.yml image: mysql ports: - "3306:3306" environment: - MYSQL_ROOT_PASSWORD=secret - MYSQL_DATABASE=laravel-blog volumes: - ./storage/tmp/db:/var/lib/mysq...
b69c5cd47d92e768500b0f7bcdd958951e4cf202
docker-compose.yml
docker-compose.yml
YAML
<|file_sep|>_config.yml.diff original: title: Bút Chì Số updated: title: Hung Neox <|file_sep|>original/_config.yml # Site settings title: Bút Chì Số url: "http://butchiso.com" baseurl: "" # the prefix of your site uri, eg. `/jekyll-theme-EasyBook` or just one slash `/` timezone: Europe/Helsinki description: > Profes...
# Site settings title: Hung Neox url: "http://butchiso.com" baseurl: "" # the prefix of your site uri, eg. `/jekyll-theme-EasyBook` or just one slash `/` timezone: Europe/Helsinki description: > Professional keyboard masher and screen watcher | Web Developer. # Your information email: hungnq1989@gmail.com author: Hu...
<|file_sep|>_config.yml.diff original: title: Bút Chì Số updated: title: Hung Neox <|file_sep|>original/_config.yml # Site settings title: Bút Chì Số url: "http://butchiso.com" baseurl: "" # the prefix of your site uri, eg. `/jekyll-theme-EasyBook` or just one slash `/` timezone: Europe/Helsinki description: > Profes...
0e2cca570ab5fd6124cc69f2abd76d83203d5be3
_config.yml
_config.yml
YAML
<|file_sep|>original/README.md PHP Query String Modifier ========================= Simple PHP class for modifying and managing query strings. <|file_sep|>current/README.md PHP Query String Modifier ========================= Simple PHP class for modifying and managing query strings. <|file_sep|>updated/README.md
PHP Query String Modifier ========================= Simple PHP class for modifying and managing query strings. ## Installation Simply download the php file to your classes directory. ## Simple Usage ```php $qs = new QueryString(); $qs->set('foo', 'bar'); echo $qs->string; // foo=bar print_r( $qs->array ); // Arr...
<|file_sep|>original/README.md PHP Query String Modifier ========================= Simple PHP class for modifying and managing query strings. <|file_sep|>current/README.md PHP Query String Modifier ========================= Simple PHP class for modifying and managing query strings. <|file_sep|>updated/README.md PHP...
a567fe10d385f467159d5f009c6dda295f734526
README.md
README.md
Markdown
<|file_sep|>original/rubygems-yardoc.gemspec Gem::Specification.new do |gem| gem.name = "rubygems-yardoc" gem.version = '0.0.2' gem.authors = ["KITAITI Makoto"] gem.email = ["KitaitiMakoto@gmail.com"] gem.description = %q{Provides a "gem yardoc" command which generates YARD doc...
Gem::Specification.new do |gem| gem.name = "rubygems-yardoc" gem.version = '0.0.2' gem.authors = ["KITAITI Makoto"] gem.email = ["KitaitiMakoto@gmail.com"] gem.description = %q{Provides a "gem yardoc" command which generates YARD documentations for specified gems} gem.summary ...
<|file_sep|>original/rubygems-yardoc.gemspec Gem::Specification.new do |gem| gem.name = "rubygems-yardoc" gem.version = '0.0.2' gem.authors = ["KITAITI Makoto"] gem.email = ["KitaitiMakoto@gmail.com"] gem.description = %q{Provides a "gem yardoc" command which generates YARD doc...
7fd753360e5cf6f8321c7b4a9077f9402cb29246
rubygems-yardoc.gemspec
rubygems-yardoc.gemspec
Ruby
<|file_sep|>tests/RepositoryTest.php.diff original: updated: use SD\Currency\Model\Registry; <|file_sep|>original/tests/RepositoryTest.php <?php namespace tests; use PHPUnit\Framework\TestCase; use SD\Currency\Repository; use SD\Currency\Store\FileStore; class RepositoryTest extends TestCase { public function te...
<?php namespace tests; use PHPUnit\Framework\TestCase; use SD\Currency\Model\Registry; use SD\Currency\Repository; use SD\Currency\Store\FileStore; class RepositoryTest extends TestCase { /** * @dataProvider createMoneyDataProvider **/ public function testCreateMoney($amount, $currency, $expectedCurr...
<|file_sep|>tests/RepositoryTest.php.diff original: updated: use SD\Currency\Model\Registry; <|file_sep|>original/tests/RepositoryTest.php <?php namespace tests; use PHPUnit\Framework\TestCase; use SD\Currency\Repository; use SD\Currency\Store\FileStore; class RepositoryTest extends TestCase { public function te...
557978c7fd68ff7968e298d8993dcaf94bdc2af8
tests/RepositoryTest.php
tests/RepositoryTest.php
PHP
<|file_sep|>original/_config-dev.yml # stakx configuration file for building the site in development mode import: - _config.yml debug: true <|file_sep|>current/_config-dev.yml # stakx configuration file for building the site in development mode import: - _config.yml debug: true <|file_sep|>updated/_config-d...
# stakx configuration file for building the site in development mode import: - _config.yml debug: true scss: style: expanded sourcemap: true
<|file_sep|>original/_config-dev.yml # stakx configuration file for building the site in development mode import: - _config.yml debug: true <|file_sep|>current/_config-dev.yml # stakx configuration file for building the site in development mode import: - _config.yml debug: true <|file_sep|>updated/_config-d...
89d23072552d8666c82be9bc0b1ae11742a107fc
_config-dev.yml
_config-dev.yml
YAML
<|file_sep|>original/web/locales/et/cross-locale.ftl ## Languages get-involved-button = Löö kaasa! <|file_sep|>current/web/locales/et/cross-locale.ftl ## Languages get-involved-button = Löö kaasa! <|file_sep|>updated/web/locales/et/cross-locale.ftl
## Languages get-involved-button = Löö kaasa! get-involved-title = Aita kaasa { $lang } keele kõnetuvastuse arengule get-involved-text = Meil on hea meel, et oled huvitatud kaasa lööma eesti keele kõnetuvastuse arengule. Me töötame selle nimel, et kõik keeled oleks valmis alustama ja hoiame tiime kursis e-posti teel. ...
<|file_sep|>original/web/locales/et/cross-locale.ftl ## Languages get-involved-button = Löö kaasa! <|file_sep|>current/web/locales/et/cross-locale.ftl ## Languages get-involved-button = Löö kaasa! <|file_sep|>updated/web/locales/et/cross-locale.ftl ## Languages get-involved-button = Löö kaasa! get-involved-title = A...
06b5eed46ceffb9e8f71982d23dac117c4b56d22
web/locales/et/cross-locale.ftl
web/locales/et/cross-locale.ftl
FreeMarker
<|file_sep|>original/app/overrides/add_recommended_and_minimum_prices_to_admin_product_list.rb <|file_sep|>current/app/overrides/add_recommended_and_minimum_prices_to_admin_product_list.rb <|file_sep|>updated/app/overrides/add_recommended_and_minimum_prices_to_admin_product_list.rb
Deface::Override.new(:virtual_path => "spree/admin/products/index", :replace => "table#listing_products", :text => '<table class="index" id="listing_products"> <colgroup> <col style="width: 15%;"> ...
<|file_sep|>original/app/overrides/add_recommended_and_minimum_prices_to_admin_product_list.rb <|file_sep|>current/app/overrides/add_recommended_and_minimum_prices_to_admin_product_list.rb <|file_sep|>updated/app/overrides/add_recommended_and_minimum_prices_to_admin_product_list.rb Deface::Override.new(:virtual_path ...
d40d94afd1f9812f1cba3d593031ea3ea0fcb45c
app/overrides/add_recommended_and_minimum_prices_to_admin_product_list.rb
app/overrides/add_recommended_and_minimum_prices_to_admin_product_list.rb
Ruby
<|file_sep|>original/tests/ServiceStatusCheck/Tests/Command/HelloWorldTest.php <|file_sep|>current/tests/ServiceStatusCheck/Tests/Command/HelloWorldTest.php <|file_sep|>updated/tests/ServiceStatusCheck/Tests/Command/HelloWorldTest.php
<?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** * Short namespace description for file * * Long description for file (if any)... * * @copyright 1997-2005 example * * @license License Name */ namespace ServiceStatusCheck\Tests\Command; /** * Short description for file * * Lo...
<|file_sep|>original/tests/ServiceStatusCheck/Tests/Command/HelloWorldTest.php <|file_sep|>current/tests/ServiceStatusCheck/Tests/Command/HelloWorldTest.php <|file_sep|>updated/tests/ServiceStatusCheck/Tests/Command/HelloWorldTest.php <?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** * Short ...
977a8430eaf0bbfd25146d7df103ea05514eed6f
tests/ServiceStatusCheck/Tests/Command/HelloWorldTest.php
tests/ServiceStatusCheck/Tests/Command/HelloWorldTest.php
PHP
<|file_sep|>original/CHANGELOG.md ## **1.0.1** - Add the unlicense license. ## **1.0.0** - First push, get everything out in the open. <|file_sep|>current/CHANGELOG.md ## **1.0.1** - Add the unlicense license. ## **1.0.0** - First push, get everything out in the open. <|file_sep|>updated/CHANGELOG.md
## **1.0.1** - Add the [unlicense](http://unlicense.org) license. ## **1.0.0** - First push, get everything out in the open.
<|file_sep|>original/CHANGELOG.md ## **1.0.1** - Add the unlicense license. ## **1.0.0** - First push, get everything out in the open. <|file_sep|>current/CHANGELOG.md ## **1.0.1** - Add the unlicense license. ## **1.0.0** - First push, get everything out in the open. <|file_sep|>updated/CHANGELOG.md ## **1.0.1** - Add...
b636b5e6a61341055cbdcf5994268a528e8c33df
CHANGELOG.md
CHANGELOG.md
Markdown
<|file_sep|>original/requirements_for_test.txt -r requirements.txt isort==5.8.0 pytest==6.2.3 pytest-env==0.6.2 pytest-mock==3.5.1 pytest-xdist==2.2.1 beautifulsoup4==4.9.3 freezegun==1.1.0 flake8==3.9.0 flake8-bugbear==21.3.2 flake8-print==4.0.0 requests-mock==1.8.0 # used for creating manifest file locally jinja2-cli...
-r requirements.txt isort==5.8.0 pytest==6.2.3 pytest-env==0.6.2 pytest-mock==3.5.1 pytest-xdist==2.2.1 beautifulsoup4==4.9.3 freezegun==1.1.0 flake8==3.9.0 flake8-bugbear==21.4.3 flake8-print==4.0.0 requests-mock==1.8.0 # used for creating manifest file locally jinja2-cli[yaml]==0.7.0
<|file_sep|>original/requirements_for_test.txt -r requirements.txt isort==5.8.0 pytest==6.2.3 pytest-env==0.6.2 pytest-mock==3.5.1 pytest-xdist==2.2.1 beautifulsoup4==4.9.3 freezegun==1.1.0 flake8==3.9.0 flake8-bugbear==21.3.2 flake8-print==4.0.0 requests-mock==1.8.0 # used for creating manifest file locally jinja2-cli...
ba5694c6f8db4a327dc71c2c6a00bce7b5558fb0
requirements_for_test.txt
requirements_for_test.txt
Text
<|file_sep|>original/README.md # Instant-Rates Instant Rates Android Application <p align="center"> <img src="playstore/banner_1024_500.jpg" alt="Instant Rates Banner"/> </p> # Screenshots <p align="center"> <img width=320px src="playstore/screens/en/splash.png" alt="Splash"/> <img width=320px src="play...
# Instant-Rates Instant Rates Android Application [![CircleCI](https://circleci.com/gh/erdemolkun/instant-rates/tree/develop.svg?style=svg&circle-token=d5a3f1af3682243f009a38be72ef8ff94a51a946)](https://circleci.com/gh/erdemolkun/instant-rates/tree/develop) <p align="center"> <img src="playstore/banner_1024_500.j...
<|file_sep|>original/README.md # Instant-Rates Instant Rates Android Application <p align="center"> <img src="playstore/banner_1024_500.jpg" alt="Instant Rates Banner"/> </p> # Screenshots <p align="center"> <img width=320px src="playstore/screens/en/splash.png" alt="Splash"/> <img width=320px src="play...
3867d5ff73745bb9bcc2d953dbb2b4b6f194519e
README.md
README.md
Markdown
<|file_sep|>original/README.md # Phoenix Template Engine for Haml > Powered by [Calliope](https://github.com/nurugger07/calliope) ## Usage 1. Add `{:phoenix_haml, "~> 0.0.3"}` to your mix deps 2. Add the following your Phoenix `config/config.exs` ```elixir config :phoenix, :template_engines, haml: Phoeni...
# Phoenix Template Engine for Haml > Powered by [Calliope](https://github.com/nurugger07/calliope) ## Usage 1. Add `{:phoenix_haml, "~> 0.0.4"}` to your mix deps 2. Add the following your Phoenix `config/config.exs` ```elixir config :phoenix, :template_engines, haml: PhoenixHaml.Engine ```
<|file_sep|>original/README.md # Phoenix Template Engine for Haml > Powered by [Calliope](https://github.com/nurugger07/calliope) ## Usage 1. Add `{:phoenix_haml, "~> 0.0.3"}` to your mix deps 2. Add the following your Phoenix `config/config.exs` ```elixir config :phoenix, :template_engines, haml: Phoeni...
65a496469bbe2640738400fa3c76a57ba2de384d
README.md
README.md
Markdown
<|file_sep|>original/README.md # workbenchauth Authentication system for the AURIN Workbench Workbenchauth is implemented as a Java Spring MVC application that provides REST-API functions for authentication and authorization services to web applications. There is also a simple administrative interface implemented usi...
# workbenchauth Authentication system for the AURIN Workbench Workbenchauth is implemented as a Java Spring MVC application that provides REST-API functions for authentication and authorization services to web applications. There is also a simple administrative interface implemented using AngularJS. A basic user man...
<|file_sep|>original/README.md # workbenchauth Authentication system for the AURIN Workbench Workbenchauth is implemented as a Java Spring MVC application that provides REST-API functions for authentication and authorization services to web applications. There is also a simple administrative interface implemented usi...
c31d7473600020b7caf89a4e89ef523e40e2f94e
README.md
README.md
Markdown
<|file_sep|>original/replace_imports.py <|file_sep|>current/replace_imports.py <|file_sep|>updated/replace_imports.py
from __future__ import with_statement import os file_contents = {} file_imports = {} def get_file(file_name): if file_name[-2:] != '.v': file_name += '.v' if file_name not in file_contents.keys(): print(file_name) try: with open(file_name, 'r', encoding='UTF-8') as f: ...
<|file_sep|>original/replace_imports.py <|file_sep|>current/replace_imports.py <|file_sep|>updated/replace_imports.py from __future__ import with_statement import os file_contents = {} file_imports = {} def get_file(file_name): if file_name[-2:] != '.v': file_name += '.v' if file_name not in file_contents.k...
f264a4a15682467549326cc530c152f647bf7832
replace_imports.py
replace_imports.py
Python
<|file_sep|>socketdjango/templates/chat/index.html.diff original: updated: // wire in to the socket <|file_sep|>original/socketdjango/templates/chat/index.html {% extends 'base.html' %} {% block title %}Django Socket.IO {% endblock title %} {% block page_title %}Chat{% endblock page_title %} {% block content %} ...
{% block page_title %}Chat{% endblock page_title %} {% block content %} <p class="lead">Chat stuff goes here</p> {% endblock content %} {% block extra_js %} <script src="http://localhost:3000/socket.io/socket.io.js"></script> <script> $(function() { // wire in to the socket var socket = io('http://localho...
<|file_sep|>socketdjango/templates/chat/index.html.diff original: updated: // wire in to the socket <|file_sep|>original/socketdjango/templates/chat/index.html {% extends 'base.html' %} {% block title %}Django Socket.IO {% endblock title %} {% block page_title %}Chat{% endblock page_title %} {% block content %} ...
6367be9d743b594a05857ec850111e05f97258f2
socketdjango/templates/chat/index.html
socketdjango/templates/chat/index.html
HTML
<|file_sep|>original/reviewboard/templates/reviews/review_request_dlgs.html {% endif %} $("#upload-screenshot-link").click(function() { $("<div/>").formDlg({ title: "{% trans "Upload Screenshot" %}", confirmLabel: "{% trans "Upload" %}", dataStoreObject: gReviewRequest.createScreensh...
$("#upload-screenshot-link").click(function() { $("<div/>").formDlg({ title: "{% trans "Upload Screenshot" %}", confirmLabel: "{% trans "Upload" %}", dataStoreObject: gReviewRequest.createScreenshot(), width: "50em", upload: true, fields: {% form_dialog_fields ...
<|file_sep|>original/reviewboard/templates/reviews/review_request_dlgs.html {% endif %} $("#upload-screenshot-link").click(function() { $("<div/>").formDlg({ title: "{% trans "Upload Screenshot" %}", confirmLabel: "{% trans "Upload" %}", dataStoreObject: gReviewRequest.createScreensh...
f9b39046bb4c34e856d82b6c394a992b86ae097f
reviewboard/templates/reviews/review_request_dlgs.html
reviewboard/templates/reviews/review_request_dlgs.html
HTML
<|file_sep|>deps/build.properties.diff original: msvs.path=${env.PROGRAMFILES}/Microsoft Visual Studio 11.0 updated: <|file_sep|>original/deps/build.properties builddir.name=bin-${os.nickname} builddir=${basedir}/${builddir.name}/${config} intdir=${builddir}/_intermediate mingw.path=c:/MinGW msys.path=${mingw.path}/m...
config=Debug builddir.name=bin-${os.nickname} builddir=${basedir}/${builddir.name}/${config} intdir=${builddir}/_intermediate mingw.path=c:/MinGW msys.path=${mingw.path}/msys/1.0 osx.xcoderoot=/Applications/Xcode.app/Contents/Developer osx.sdk=10.8 osx.deploy=10.7 osx.gnu.sed=gsed mingw.bindir=${mingw.path}/bin ms...
<|file_sep|>deps/build.properties.diff original: msvs.path=${env.PROGRAMFILES}/Microsoft Visual Studio 11.0 updated: <|file_sep|>original/deps/build.properties builddir.name=bin-${os.nickname} builddir=${basedir}/${builddir.name}/${config} intdir=${builddir}/_intermediate mingw.path=c:/MinGW msys.path=${mingw.path}/m...
c366c47b9f591dd71e72e6e9cb0cd90053516309
deps/build.properties
deps/build.properties
INI
<|file_sep|>tasks/secure_home.yml.diff original: when: - "{{ (item.state | default('present')) == 'present' }}" updated: when: "(item.state | default('present')) == 'present'" <|file_sep|>tasks/secure_home.yml.diff original: when: - "{{ (item.state | default('present')) == 'present' }}" updated: when: "...
shell: "id -gn {{ item.name | quote }}" register: 'primary_group_users' changed_when: False with_items: "{{ account_management_users }}" when: "(item.state | default('present')) == 'present'" - name: 'ACCOUNTS | SECURITY | Change permissions for user home directory' become: True file: dest: "{{ item...
<|file_sep|>tasks/secure_home.yml.diff original: when: - "{{ (item.state | default('present')) == 'present' }}" updated: when: "(item.state | default('present')) == 'present'" <|file_sep|>tasks/secure_home.yml.diff original: when: - "{{ (item.state | default('present')) == 'present' }}" updated: when: "...
0989101acebdcb09f80a9e1925631ecd72a7169a
tasks/secure_home.yml
tasks/secure_home.yml
YAML
<|file_sep|>.github/workflows/dotnet-core.yml.diff original: updated: - name: Preparar testes run: cp DB/Lugares.db DotCEP/DotCEP.Tests/bin/Release/netcoreapp3.1/ <|file_sep|>original/.github/workflows/dotnet-core.yml on: push: branches: [ master ] workflow_dispatch: jobs: build: runs-on: u...
workflow_dispatch: jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: dotnet-version: 3.1.301 - name: Install dependencies run: dotnet restore DotCEP - name: Build run: dotnet b...
<|file_sep|>.github/workflows/dotnet-core.yml.diff original: updated: - name: Preparar testes run: cp DB/Lugares.db DotCEP/DotCEP.Tests/bin/Release/netcoreapp3.1/ <|file_sep|>original/.github/workflows/dotnet-core.yml on: push: branches: [ master ] workflow_dispatch: jobs: build: runs-on: u...
de3d75605544990404c4dfd07833addffe872d39
.github/workflows/dotnet-core.yml
.github/workflows/dotnet-core.yml
YAML
<|file_sep|>original/Source/WienerLinien.Api/Routing/RoutingUrlBuilder.cs namespace WienerLinien.Api.Routing { public static class RoutingUrlBuilder { private const string BaseUrl = "http://www.wienerlinien.at/ogd_routing/XML_TRIP_REQUEST2?"; public static string Build(RoutingRequest request) ...
namespace WienerLinien.Api.Routing { public static class RoutingUrlBuilder { private const string BaseUrl = "http://www.wienerlinien.at/ogd_routing/XML_TRIP_REQUEST2?"; public static string Build(RoutingRequest request) { const string urlFormatString = BaseUrl + ...
<|file_sep|>original/Source/WienerLinien.Api/Routing/RoutingUrlBuilder.cs namespace WienerLinien.Api.Routing { public static class RoutingUrlBuilder { private const string BaseUrl = "http://www.wienerlinien.at/ogd_routing/XML_TRIP_REQUEST2?"; public static string Build(RoutingRequest request) ...
89e61f740b00fc8b86da52ed75e6edcb122cb84e
Source/WienerLinien.Api/Routing/RoutingUrlBuilder.cs
Source/WienerLinien.Api/Routing/RoutingUrlBuilder.cs
C#
<|file_sep|>original/requirements.txt # Requirements required by this package: -r requirements_setup.txt # Requirements needed for development & build & testing pytest==3.0.3 coverage==4.2 coveralls==1.1 wheel==0.29.0 setuptools==30.1.0 docutils==0.12 pygments==2.1.3 flake8==3.2.1 invoke==0.12.2 # pyup: ignore <|file_...
# Requirements required by this package: -r requirements_setup.txt # Requirements needed for development & build & testing pytest==3.0.4 coverage==4.2 coveralls==1.1 wheel==0.29.0 setuptools==30.1.0 docutils==0.12 pygments==2.1.3 flake8==3.2.1 invoke==0.12.2 # pyup: ignore
<|file_sep|>original/requirements.txt # Requirements required by this package: -r requirements_setup.txt # Requirements needed for development & build & testing pytest==3.0.3 coverage==4.2 coveralls==1.1 wheel==0.29.0 setuptools==30.1.0 docutils==0.12 pygments==2.1.3 flake8==3.2.1 invoke==0.12.2 # pyup: ignore <|file_...
abe8132d01325daa34b1fe47c2dc3f2d06c2e764
requirements.txt
requirements.txt
Text
<|file_sep|>tasks/rsyslog_client_install-apt.yml.diff original: #TODO(evrardjp): Replace the next 2 tasks by a standard apt with cache #when https://github.com/ansible/ansible-modules-core/pull/1517 is merged #in 1.9.x or we move to 2.0 (if tested working) - name: Check apt last update file stat: path: /var/cache...
# You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the Li...
<|file_sep|>tasks/rsyslog_client_install-apt.yml.diff original: #TODO(evrardjp): Replace the next 2 tasks by a standard apt with cache #when https://github.com/ansible/ansible-modules-core/pull/1517 is merged #in 1.9.x or we move to 2.0 (if tested working) - name: Check apt last update file stat: path: /var/cache...
81be10cec1523134238dc28b673de7d3e05bcb3c
tasks/rsyslog_client_install-apt.yml
tasks/rsyslog_client_install-apt.yml
YAML
<|file_sep|>original/src/GitHub.TeamFoundation.14/Services/VSGitExt.cs { if (gitService != null) gitService.PropertyChanged -= CheckAndUpdate; gitService = serviceProvider.GetServiceSafe<IGitExt>(); if (gitService != null) gitService.PropertyCh...
{ if (gitService != null) gitService.PropertyChanged -= CheckAndUpdate; gitService = serviceProvider.GetServiceSafe<IGitExt>(); if (gitService != null) gitService.PropertyChanged += CheckAndUpdate; } void CheckAndUpdate(object...
<|file_sep|>original/src/GitHub.TeamFoundation.14/Services/VSGitExt.cs { if (gitService != null) gitService.PropertyChanged -= CheckAndUpdate; gitService = serviceProvider.GetServiceSafe<IGitExt>(); if (gitService != null) gitService.PropertyCh...
0bb882a910f7768a585da743c0ce4208b6f97c81
src/GitHub.TeamFoundation.14/Services/VSGitExt.cs
src/GitHub.TeamFoundation.14/Services/VSGitExt.cs
C#
<|file_sep|>original/README.md Docker image alpine-base ======================== This image provides a very minimal [Alpine Linux](https://www.alpinelinux.org) installation that is intended to be used as a base to build more sophisticated containers upon. It contains little more that `busybox` and `apk`. This image b...
Docker image alpine-base ======================== [![Circle CI](https://circleci.com/gh/kampka/docker-alpine-base/tree/master.svg?style=svg)](https://circleci.com/gh/kampka/docker-alpine-base/tree/master) [![](https://imagelayers.io/badge/kampka/alpine-base:latest.svg)](https://imagelayers.io/?images=kampka/alpine-base...
<|file_sep|>original/README.md Docker image alpine-base ======================== This image provides a very minimal [Alpine Linux](https://www.alpinelinux.org) installation that is intended to be used as a base to build more sophisticated containers upon. It contains little more that `busybox` and `apk`. This image b...
d0674b6385e125429d4eb58c3da62dcac59e4024
README.md
README.md
Markdown
<|file_sep|>original/kawa/PreferenceTableView.swift import Cocoa class PreferenceTableView: NSTableView, NSTableViewDataSource, NSTableViewDelegate { func numberOfRowsInTableView(tableView: NSTableView) -> Int { return InputSourceManager.inputSources.count } func tableView(tableView: NSTableView, ...
func tableView(tableView: NSTableView, viewForTableColumn tableColumn: NSTableColumn?, row: Int) -> NSView? { var cell: NSTableCellView? if tableColumn?.identifier == "Keyboard" { cell = tableView.makeViewWithIdentifier("KeyboardCellView", owner: self) as? NSTableCellView ...
<|file_sep|>original/kawa/PreferenceTableView.swift import Cocoa class PreferenceTableView: NSTableView, NSTableViewDataSource, NSTableViewDelegate { func numberOfRowsInTableView(tableView: NSTableView) -> Int { return InputSourceManager.inputSources.count } func tableView(tableView: NSTableView, ...
169f6425b6250fd10e6091e548043a1ac0ab9840
kawa/PreferenceTableView.swift
kawa/PreferenceTableView.swift
Swift
<|file_sep|>original/composer.json "license": "Apache-2.0", "type": "library", "require": { "eher/oauth": "1.0.*", "guzzlehttp/guzzle": "6.*" }, "require-dev": { "phpunit/phpunit": "*" }, "autoload": { "psr-0": { "Tumblr\\API": "lib" } } } <|file_sep|>current/composer.jso...
"license": "Apache-2.0", "type": "library", "require": { "eher/oauth": "1.0.*", "guzzlehttp/guzzle": "6.*" }, "require-dev": { "phpunit/phpunit": "5.3.*" }, "autoload": { "psr-0": { "Tumblr\\API": "lib" } } }
<|file_sep|>original/composer.json "license": "Apache-2.0", "type": "library", "require": { "eher/oauth": "1.0.*", "guzzlehttp/guzzle": "6.*" }, "require-dev": { "phpunit/phpunit": "*" }, "autoload": { "psr-0": { "Tumblr\\API": "lib" } } } <|file_sep|>current/composer.jso...
b1175c30eadcd6e0aed1b98ef8ef0c757521a7d5
composer.json
composer.json
JSON
<|file_sep|>original/Raccoon.podspec spec.description = <<-DESC A nice set of protocols and tools that puts together Alamofire, PromiseKit and CoreData DESC spec.homepage = "https://github.com/ManueGE/Raccoon/" spec.license = "MIT" spec.author = "Manuel García-Estañ" spec....
spec.description = <<-DESC A nice set of protocols and tools that puts together Alamofire, PromiseKit and CoreData DESC spec.homepage = "https://github.com/ManueGE/Raccoon/" spec.license = "MIT" spec.author = "Manuel García-Estañ" spec.social_media_url = "http://twitter....
<|file_sep|>original/Raccoon.podspec spec.description = <<-DESC A nice set of protocols and tools that puts together Alamofire, PromiseKit and CoreData DESC spec.homepage = "https://github.com/ManueGE/Raccoon/" spec.license = "MIT" spec.author = "Manuel García-Estañ" spec....
e8de029ce92d711fde8119ab340b9d4e1da09f59
Raccoon.podspec
Raccoon.podspec
Ruby
<|file_sep|>original/frontend/templates/view-login.html <script type="text/template" id="view-login-template"> <div> <br/> <br/> <div class="container"> <div class="row"> <div class="col-md-3 white-boxes shadow"> <h3>Public feeds</h3> <div v-for="user in users"> ...
<script type="text/template" id="view-login-template"> <div> <br/> <br/> <div class="container"> <div class="row"> <div class="col-md-4 col-md-offset-4 white-boxes shadow"> <h3>Login</h3> <form @submit.prevent="login()"> <div class="form-group" :class="{ 'has-...
<|file_sep|>original/frontend/templates/view-login.html <script type="text/template" id="view-login-template"> <div> <br/> <br/> <div class="container"> <div class="row"> <div class="col-md-3 white-boxes shadow"> <h3>Public feeds</h3> <div v-for="user in users"> ...
94581bab11cfb610bc20f7758f259daca4b2717f
frontend/templates/view-login.html
frontend/templates/view-login.html
HTML
<|file_sep|>examples/undocumented/python/CMakeLists.txt.diff original: FILE(GLOB PYTHON_EXAMPLES *.py) FOREACH(EXAMPLE ${PYTHON_EXAMPLES}) STRING(REGEX REPLACE ".*/(.*).py" "\\1" EXAMPLE_NAME ${EXAMPLE}) add_test(NAME python-${EXAMPLE_NAME} updated: FILE(GLOB PYTHON_EXAMPLES RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "${...
IF (NOT USE_GPL_SHOGUN) LIST(REMOVE_ITEM PYTHON_EXAMPLES "classifier_svmlin.py" "kernel_distantsegments.py" "modelselection_parameter_tree.py" "variational_classifier.py" "evaluation_cross_validation_multiclass_storage.py" ) ENDIF() FOREACH(EXAMPLE_PY ${PYTHON_EXAMPLES}) STRING(REGEX REPLACE ".py\$" "" EXAMPL...
<|file_sep|>examples/undocumented/python/CMakeLists.txt.diff original: FILE(GLOB PYTHON_EXAMPLES *.py) FOREACH(EXAMPLE ${PYTHON_EXAMPLES}) STRING(REGEX REPLACE ".*/(.*).py" "\\1" EXAMPLE_NAME ${EXAMPLE}) add_test(NAME python-${EXAMPLE_NAME} updated: FILE(GLOB PYTHON_EXAMPLES RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "${...
c780432d58b7ba48e333bc93a4358e940c7d9fbc
examples/undocumented/python/CMakeLists.txt
examples/undocumented/python/CMakeLists.txt
Text
<|file_sep|>original/README.md This module exposes functionality to create receivers that receive notifications after a specified period of time or at a specified frequency. [![Build status](https://api.travis-ci.org/PeterReid/schedule_recv.png)](https://travis-ci.org/PeterReid/schedule_recv) # Examples At its simpl...
This module exposes functionality to create receivers that receive notifications after a specified period of time or at a specified frequency. [![Build status](https://api.travis-ci.org/PeterReid/schedule_recv.png)](https://travis-ci.org/PeterReid/schedule_recv) [Documentation](https://PeterReid.github.io/schedule_re...
<|file_sep|>original/README.md This module exposes functionality to create receivers that receive notifications after a specified period of time or at a specified frequency. [![Build status](https://api.travis-ci.org/PeterReid/schedule_recv.png)](https://travis-ci.org/PeterReid/schedule_recv) # Examples At its simpl...
d2c5a10d0a5b88788c139f6823eafb62e7c3aa03
README.md
README.md
Markdown
<|file_sep|>j2048/src/j2048/jgamegui/J2048.java.diff original: import jgame.Game; updated: import jgame.GameApplet; <|file_sep|>j2048/src/j2048/jgamegui/J2048.java.diff original: public class J2048 extends Game { updated: public class J2048 extends GameApplet { /** * */ private static final long serialVersionUI...
private static final long serialVersionUID = 1L; public static final Color MAIN_COLOR = new Color(187, 173, 160); public static final Color TEXT_COLOR = new Color(119, 110, 101); public static final Color LIGHT_COLOR = new Color(250, 248, 239); public static final Color LIGHT_TEXT = new Color(238, 228, 218); pu...
<|file_sep|>j2048/src/j2048/jgamegui/J2048.java.diff original: import jgame.Game; updated: import jgame.GameApplet; <|file_sep|>j2048/src/j2048/jgamegui/J2048.java.diff original: public class J2048 extends Game { updated: public class J2048 extends GameApplet { /** * */ private static final long serialVersionUI...
1090f2b94b921f7ef510f90d8350822d9ad74c85
j2048/src/j2048/jgamegui/J2048.java
j2048/src/j2048/jgamegui/J2048.java
Java
<|file_sep|>original/test-content-protect.html <head> <title>Content Protected HTML</title> </head> <body> <div id="main-container"> Some protected content here </div> Some text before <div id="secondary-container"> Some other protected content here </div> <script src="https://resources.devdemic.com/js/test...
<head> <title>Content Protected HTML</title> </head> <body> <div id="main-container"> Some protected content here </div> Some text before <div id="secondary-container"> Some other protected content here </div> <script src="https://resources.devdemic.com/js/test-content-protect.js?protect=true" id="paydemic-...
<|file_sep|>original/test-content-protect.html <head> <title>Content Protected HTML</title> </head> <body> <div id="main-container"> Some protected content here </div> Some text before <div id="secondary-container"> Some other protected content here </div> <script src="https://resources.devdemic.com/js/test...
925e70f42dde1e2504d37f05fff8794baeb2fdeb
test-content-protect.html
test-content-protect.html
HTML
<|file_sep|>original/packages/truffle-provisioner/index.js if (options.network_id) { abstraction.setNetwork(options.network_id); } if (options.network && options.networks) { abstraction.setNetworkType(options.networks[options.network].type); } if (options.ens) { abstraction.ens = options.ens; ...
if (options.network_id) { abstraction.setNetwork(options.network_id); } if (options.network && options.networks) { abstraction.setNetworkType(options.networks[options.network].type); } abstraction.ens = options.ens; ["from", "gas", "gasPrice"].forEach(function(key) { if (options[key]) { ...
<|file_sep|>original/packages/truffle-provisioner/index.js if (options.network_id) { abstraction.setNetwork(options.network_id); } if (options.network && options.networks) { abstraction.setNetworkType(options.networks[options.network].type); } if (options.ens) { abstraction.ens = options.ens; ...
47bcd63ceb4cc42b39c0b34432ec662e203bf4dd
packages/truffle-provisioner/index.js
packages/truffle-provisioner/index.js
JavaScript
<|file_sep|>original/lib/license_finder/package_managers/pipenv.rb def initialize(options = {}) super @lockfile = Pathname('Pipfile.lock') end def current_packages @current_packages ||= begin packages = {} each_dependency(groups: allowed_groups) do |name, data,...
def initialize(options = {}) super @lockfile = Pathname('Pipfile.lock') end def current_packages @current_packages ||= begin packages = {} each_dependency(groups: allowed_groups) do |name, data, group| version = canonicalize(data['version'] || 'unkn...
<|file_sep|>original/lib/license_finder/package_managers/pipenv.rb def initialize(options = {}) super @lockfile = Pathname('Pipfile.lock') end def current_packages @current_packages ||= begin packages = {} each_dependency(groups: allowed_groups) do |name, data,...
aae905bd16059503dda3c2d1532ce565f7f8b8e5
lib/license_finder/package_managers/pipenv.rb
lib/license_finder/package_managers/pipenv.rb
Ruby
<|file_sep|>original/graf3d/glew/CMakeLists.txt # For the licensing terms see $ROOTSYS/LICENSE. # For the list of contributors see $ROOTSYS/README/CREDITS. ############################################################################ # CMakeLists.txt file for building ROOT graf3d/glew package ##########################...
# For the licensing terms see $ROOTSYS/LICENSE. # For the list of contributors see $ROOTSYS/README/CREDITS. ############################################################################ # CMakeLists.txt file for building ROOT graf3d/glew package ##########################################################################...
<|file_sep|>original/graf3d/glew/CMakeLists.txt # For the licensing terms see $ROOTSYS/LICENSE. # For the list of contributors see $ROOTSYS/README/CREDITS. ############################################################################ # CMakeLists.txt file for building ROOT graf3d/glew package ##########################...
56c3872d3cdd6106d0385d68d784234033bd6672
graf3d/glew/CMakeLists.txt
graf3d/glew/CMakeLists.txt
Text
<|file_sep|>original/bioagents/qca/lispify_helper.py <|file_sep|>current/bioagents/qca/lispify_helper.py <|file_sep|>updated/bioagents/qca/lispify_helper.py
__author__ = 'aarongary' class Lispify(): def __init__(self, obj): if(obj is None): raise ValueError("Please provide an object") self.obj = obj def to_lisp(self): if type(self.obj) is unicode: return self.lispify(str(self.obj)) else: return ...
<|file_sep|>original/bioagents/qca/lispify_helper.py <|file_sep|>current/bioagents/qca/lispify_helper.py <|file_sep|>updated/bioagents/qca/lispify_helper.py __author__ = 'aarongary' class Lispify(): def __init__(self, obj): if(obj is None): raise ValueError("Please provide an object") ...
9f5de36cbb9cff0f8bb258de3ca5b9c2a27e72a8
bioagents/qca/lispify_helper.py
bioagents/qca/lispify_helper.py
Python
<|file_sep|>lib/awestruct/extensions/indexifier.rb.diff original: updated: def initialize(exclude_regex_paths = []) @exclude_regex_paths = exclude_regex_paths end <|file_sep|>lib/awestruct/extensions/indexifier.rb.diff original: if ( page.inhibit_indexifier || ( page.output_path =~ /^(.*...
def execute(site) site.pages.each do |page| if ( page.inhibit_indexifier || excluded_path(page) || ( page.output_path =~ /^(.*\/)?index.html$/ ) ) # skip it! else page.output_path = page.output_path.gsub( /.html$/, '/index.html' ) end end ...
<|file_sep|>lib/awestruct/extensions/indexifier.rb.diff original: updated: def initialize(exclude_regex_paths = []) @exclude_regex_paths = exclude_regex_paths end <|file_sep|>lib/awestruct/extensions/indexifier.rb.diff original: if ( page.inhibit_indexifier || ( page.output_path =~ /^(.*...
1289d57f17d56dcb038f9c4ff8eb73edfd7d6e57
lib/awestruct/extensions/indexifier.rb
lib/awestruct/extensions/indexifier.rb
Ruby
<|file_sep|>original/requirements.txt alembic>=0.6.0 Babel>=0.9.6 eventlet>=0.13.0 Flask>=0.10,<1.0 iso8601>=0.1.4 jsonschema>=1.3.0,!=1.4.0 kombu>=2.4.8 oslo.config>=1.2.0 paramiko>=1.8.0 pbr>=0.5.21,<1.0 # NOTE(slukjanov): <1.2.3 added to support old versions of python clients that # contains the fol...
alembic>=0.4.1 Babel>=0.9.6 eventlet>=0.13.0 Flask>=0.10,<1.0 iso8601>=0.1.4 jsonschema>=1.3.0,!=1.4.0 kombu>=2.4.8 oslo.config>=1.2.0 paramiko>=1.8.0 pbr>=0.5.21,<1.0 # NOTE(slukjanov): <1.2.3 added to support old versions of python clients that # contains the following requests lib dependency: >=1.1,...
<|file_sep|>original/requirements.txt alembic>=0.6.0 Babel>=0.9.6 eventlet>=0.13.0 Flask>=0.10,<1.0 iso8601>=0.1.4 jsonschema>=1.3.0,!=1.4.0 kombu>=2.4.8 oslo.config>=1.2.0 paramiko>=1.8.0 pbr>=0.5.21,<1.0 # NOTE(slukjanov): <1.2.3 added to support old versions of python clients that # contains the fol...
a17a5379f7ab6880f0238497e8da825138ad21f3
requirements.txt
requirements.txt
Text
<|file_sep|>original/eladmin-common/src/test/java/me/zhengjie/utils/StringUtilsTest.java <|file_sep|>current/eladmin-common/src/test/java/me/zhengjie/utils/StringUtilsTest.java <|file_sep|>updated/eladmin-common/src/test/java/me/zhengjie/utils/StringUtilsTest.java
package me.zhengjie.utils; import org.junit.Test; import org.springframework.mock.web.MockHttpServletRequest; import java.text.SimpleDateFormat; import java.util.*; import static me.zhengjie.utils.StringUtils.*; import static org.junit.Assert.*; public class StringUtilsTest { @Test public void testInString...
<|file_sep|>original/eladmin-common/src/test/java/me/zhengjie/utils/StringUtilsTest.java <|file_sep|>current/eladmin-common/src/test/java/me/zhengjie/utils/StringUtilsTest.java <|file_sep|>updated/eladmin-common/src/test/java/me/zhengjie/utils/StringUtilsTest.java package me.zhengjie.utils; import org.junit.Test; im...
396647676f72a5fc7f6c15666332dd9518d72d62
eladmin-common/src/test/java/me/zhengjie/utils/StringUtilsTest.java
eladmin-common/src/test/java/me/zhengjie/utils/StringUtilsTest.java
Java
<|file_sep|>original/README.md # Pentagon Infrastructure to spin up ReactiveOps style Kubernetes clusters. ## Setup VirtualEnvWrapper * Clone this repo `git clone `git@github.com:reactiveops/pentagon.git` * Checkout `x-feature-em-docs` (soon to be `docs` and hopefully `master` branch) * `pushd workstation` * `./setu...
# Pentagon Infrastructure to spin up ReactiveOps style Kubernetes clusters. ## Setup VirtualEnvWrapper * Clone this repo `git clone `git@github.com:reactiveops/pentagon.git` * `pushd workstation` * `./setup.sh` * `source ~/.bash_profile` * `mkproject <projectname>` for an example, see [hillghost](https://github.com/...
<|file_sep|>original/README.md # Pentagon Infrastructure to spin up ReactiveOps style Kubernetes clusters. ## Setup VirtualEnvWrapper * Clone this repo `git clone `git@github.com:reactiveops/pentagon.git` * Checkout `x-feature-em-docs` (soon to be `docs` and hopefully `master` branch) * `pushd workstation` * `./setu...
612d5f7800a98abaf5d0aa74c33ed3e097b30714
README.md
README.md
Markdown
<|file_sep|>metadata/com.timenotclocks.bookcase.yml.diff original: updated: - versionName: 0.0.5 versionCode: 5 commit: v0.0.5 subdir: app gradle: - yes <|file_sep|>original/metadata/com.timenotclocks.bookcase.yml License: GPL-3.0-only SourceCode: https://github.com/fenimore/badreads IssueTrac...
Repo: https://github.com/fenimore/badreads Builds: - versionName: 0.0.4 versionCode: 4 commit: v0.0.4 subdir: app gradle: - yes - versionName: 0.0.5 versionCode: 5 commit: v0.0.5 subdir: app gradle: - yes AutoUpdateMode: Version v%v UpdateCheckMode: Tags CurrentVersion...
<|file_sep|>metadata/com.timenotclocks.bookcase.yml.diff original: updated: - versionName: 0.0.5 versionCode: 5 commit: v0.0.5 subdir: app gradle: - yes <|file_sep|>original/metadata/com.timenotclocks.bookcase.yml License: GPL-3.0-only SourceCode: https://github.com/fenimore/badreads IssueTrac...
7cb4200269d91702148fcdb3157bd10637595a0c
metadata/com.timenotclocks.bookcase.yml
metadata/com.timenotclocks.bookcase.yml
YAML
<|file_sep|>original/docs/source/index.rst .. great_expectations documentation master file, created by sphinx-quickstart on Thu Jun 8 23:00:19 2017. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. Welcome to Great Expectations! =================...
.. great_expectations documentation master file, created by sphinx-quickstart on Thu Jun 8 23:00:19 2017. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. Welcome to Great Expectations! ============================================================...
<|file_sep|>original/docs/source/index.rst .. great_expectations documentation master file, created by sphinx-quickstart on Thu Jun 8 23:00:19 2017. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. Welcome to Great Expectations! =================...
e9f9c781f0ebce9902d811d268d6e92821fa252b
docs/source/index.rst
docs/source/index.rst
reStructuredText
<|file_sep|>original/Tests/BaseTestCase.php <?php namespace Modules\Workshop\Tests; use Orchestra\Testbench\TestCase; abstract class BaseTestCase extends TestCase { public function setUp() { parent::setUp(); } protected function getPackageProviders($app) { return ['Modules\Worksho...
abstract class BaseTestCase extends TestCase { public function setUp() { parent::setUp(); } protected function getPackageProviders($app) { return [ 'Modules\Workshop\Providers\WorkshopServiceProvider', 'Pingpong\Modules\ModulesServiceProvider' ]; ...
<|file_sep|>original/Tests/BaseTestCase.php <?php namespace Modules\Workshop\Tests; use Orchestra\Testbench\TestCase; abstract class BaseTestCase extends TestCase { public function setUp() { parent::setUp(); } protected function getPackageProviders($app) { return ['Modules\Worksho...
1615a756284b4989119c110a604917b17154d80e
Tests/BaseTestCase.php
Tests/BaseTestCase.php
PHP
<|file_sep|>original/src/com/haxademic/demo/media/audio/playback/Demo_WavPlayer_Playlist.java <|file_sep|>current/src/com/haxademic/demo/media/audio/playback/Demo_WavPlayer_Playlist.java <|file_sep|>updated/src/com/haxademic/demo/media/audio/playback/Demo_WavPlayer_Playlist.java
package com.haxademic.demo.media.audio.playback; import com.haxademic.core.app.P; import com.haxademic.core.app.PAppletHax; import com.haxademic.core.media.audio.analysis.AudioInputBeads; import com.haxademic.core.media.audio.playback.WavPlayer; public class Demo_WavPlayer_Playlist extends PAppletHax { public static...
<|file_sep|>original/src/com/haxademic/demo/media/audio/playback/Demo_WavPlayer_Playlist.java <|file_sep|>current/src/com/haxademic/demo/media/audio/playback/Demo_WavPlayer_Playlist.java <|file_sep|>updated/src/com/haxademic/demo/media/audio/playback/Demo_WavPlayer_Playlist.java package com.haxademic.demo.media.audio...
404ab666ad0b2e86dc62158c282fd7193f6891e4
src/com/haxademic/demo/media/audio/playback/Demo_WavPlayer_Playlist.java
src/com/haxademic/demo/media/audio/playback/Demo_WavPlayer_Playlist.java
Java
<|file_sep|>original/package.json { "name": "dotapuff", "version": "0.0.0", "private": true, "description": "", "email": "derek.m.cormier@gmail.com", "scripts": { "start": "node ./bin/www", "test": "mocha tests" }, "dependencies": { "express": "~4.0.0", "body-parser": "~1.12.4", "jad...
{ "name": "dotapuff", "version": "0.0.0", "private": true, "description": "", "email": "derek.m.cormier@gmail.com", "scripts": { "start": "node app.js", "test": "mocha tests" }, "dependencies": { "express": "~4.0.0", "body-parser": "~1.12.4", "jade": "~1.11.0", "querystring": "~0...
<|file_sep|>original/package.json { "name": "dotapuff", "version": "0.0.0", "private": true, "description": "", "email": "derek.m.cormier@gmail.com", "scripts": { "start": "node ./bin/www", "test": "mocha tests" }, "dependencies": { "express": "~4.0.0", "body-parser": "~1.12.4", "jad...
3437223e0aa0b7c548565b870e67ff3e5dbe86e5
package.json
package.json
JSON
<|file_sep|>original/build.sbt import com.github.retronym.SbtOneJar._ oneJarSettings name := "api-build" organization := "io.flow" scalaVersion in ThisBuild := "2.11.8" version := "0.0.84" exportJars := true lazy val root = project .in(file(".")) .settings( libraryDependencies ++= Seq( "com.typesaf...
import com.github.retronym.SbtOneJar._ oneJarSettings name := "api-build" organization := "io.flow" scalaVersion in ThisBuild := "2.11.8" version := "0.0.85" exportJars := true lazy val root = project .in(file(".")) .settings( libraryDependencies ++= Seq( "com.typesafe.play" %% "play-json" % "2.5.8...
<|file_sep|>original/build.sbt import com.github.retronym.SbtOneJar._ oneJarSettings name := "api-build" organization := "io.flow" scalaVersion in ThisBuild := "2.11.8" version := "0.0.84" exportJars := true lazy val root = project .in(file(".")) .settings( libraryDependencies ++= Seq( "com.typesaf...
3c1bc8e8e46f8de5e4450a6dde69de1fb2a9cf81
build.sbt
build.sbt
Scala
<|file_sep|>original/lib/emeril/metadata_chopper.rb # Creates a new instances and loads in the contents of the metdata.rb # file. If you value your life, you may want to avoid reading the # implementation. # # @param metadata_file [String] path to a metadata.rb file # def initialize(metadata...
# Creates a new instances and loads in the contents of the metdata.rb # file. If you value your life, you may want to avoid reading the # implementation. # # @param metadata_file [String] path to a metadata.rb file # def initialize(metadata_file) eval(IO.read(metadata_file), nil, metad...
<|file_sep|>original/lib/emeril/metadata_chopper.rb # Creates a new instances and loads in the contents of the metdata.rb # file. If you value your life, you may want to avoid reading the # implementation. # # @param metadata_file [String] path to a metadata.rb file # def initialize(metadata...
6008a57d3c36382bbbeb9407e205c9a6b72ecf03
lib/emeril/metadata_chopper.rb
lib/emeril/metadata_chopper.rb
Ruby
<|file_sep|>original/README.rdoc == Basic usage Update your Gemfile with this and do a bundle install: gem 'retort' To get a list of all torrents: require 'retort' Retort::Service.configure {|config| config.url = 'https://username:password@your.server.com/path/to/rtorrent/rpc'} torrents = Retort::Torrent....
== Basic usage Update your Gemfile with this and do a bundle install: gem 'retort' To get a list of all torrents: require 'retort' Retort::Service.configure do |config| config.url = 'https://username:password@your.server.com/path/to/rtorrent/rpc' end torrents = Retort::Torrent.all torrent = tor...
<|file_sep|>original/README.rdoc == Basic usage Update your Gemfile with this and do a bundle install: gem 'retort' To get a list of all torrents: require 'retort' Retort::Service.configure {|config| config.url = 'https://username:password@your.server.com/path/to/rtorrent/rpc'} torrents = Retort::Torrent....
11468d9673cb29125b515ef4a2c42fe624c21258
README.rdoc
README.rdoc
RDoc
<|file_sep|>original/settings/travis.py from defaults import * DATABASES = { 'default': { #'ENGINE': 'django.db.backends.postgresql_psycopg2', 'ENGINE': 'django.contrib.gis.db.backends.postgis', # 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'atlas_test', 'USER': 'postgres...
from defaults import * DATABASES = { 'default': { #'ENGINE': 'django.db.backends.postgresql_psycopg2', 'ENGINE': 'django.contrib.gis.db.backends.postgis', # 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'atlas_test', 'USER': 'postgres', 'PASSWORD': '', 'HOST...
<|file_sep|>original/settings/travis.py from defaults import * DATABASES = { 'default': { #'ENGINE': 'django.db.backends.postgresql_psycopg2', 'ENGINE': 'django.contrib.gis.db.backends.postgis', # 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'atlas_test', 'USER': 'postgres...
bda756847e31e97eb8363f48bed67035a3f46d67
settings/travis.py
settings/travis.py
Python
<|file_sep|>original/ios/RNTrackPlayer/Support/RNTrackPlayer-Bridging-Header.h // // Use this file to import your target's public headers that you would like to expose to Swift. // #import "STKAudioPlayer.h" <|file_sep|>current/ios/RNTrackPlayer/Support/RNTrackPlayer-Bridging-Header.h // // Use this file to import y...
// // Use this file to import your target's public headers that you would like to expose to Swift. //
<|file_sep|>original/ios/RNTrackPlayer/Support/RNTrackPlayer-Bridging-Header.h // // Use this file to import your target's public headers that you would like to expose to Swift. // #import "STKAudioPlayer.h" <|file_sep|>current/ios/RNTrackPlayer/Support/RNTrackPlayer-Bridging-Header.h // // Use this file to import y...
870a9743819096103ca7906053650009c42e2dd1
ios/RNTrackPlayer/Support/RNTrackPlayer-Bridging-Header.h
ios/RNTrackPlayer/Support/RNTrackPlayer-Bridging-Header.h
C
<|file_sep|>examples/quotes/quotes.py.diff original: updated: <|file_sep|>examples/quotes/quotes.py.diff original: quote = random.choice(quotes) nw0.send_notification(address, "quote", quote) updated: <|file_sep|>original/examples/quotes/quotes.py "Baa Baa Black Sheep", "Old K...
def main(address_pattern=None): my_name = input("Name: ") my_address = nw0.advertise(my_name, address_pattern) print("Advertising %s on %s" % (my_name, my_address)) while True: services = [(name, address) for (name, address) in nw0.discover_all() if name != my_name] for name, address ...
<|file_sep|>examples/quotes/quotes.py.diff original: updated: <|file_sep|>examples/quotes/quotes.py.diff original: quote = random.choice(quotes) nw0.send_notification(address, "quote", quote) updated: <|file_sep|>original/examples/quotes/quotes.py "Baa Baa Black Sheep", "Old K...
a24d6a25cb7ee5101e8131a9719744f79b23c11b
examples/quotes/quotes.py
examples/quotes/quotes.py
Python
<|file_sep|>original/website/reports/background/update_memcache.php <?php function startsWith($haystack, $needle) { $length = strlen($needle); return (substr($haystack, 0, $length) === $needle); } $c = new Memcached(); $c->addServer("localhost", 11211); foreach($c->getAllKeys() as $key) { if(startsWith($...
<?php function startsWith($haystack, $needle) { $length = strlen($needle); return (substr($haystack, 0, $length) === $needle); } $c = new Memcached(); $c->addServer("localhost", 11211); foreach($c->getAllKeys() as $key) { if(startsWith($key, "qreport_")) { echo substr($key, strlen("qreport_")) . "\n"; ...
<|file_sep|>original/website/reports/background/update_memcache.php <?php function startsWith($haystack, $needle) { $length = strlen($needle); return (substr($haystack, 0, $length) === $needle); } $c = new Memcached(); $c->addServer("localhost", 11211); foreach($c->getAllKeys() as $key) { if(startsWith($...
f698b6ec8d5e43e149eb6ace94ff14ac224068a4
website/reports/background/update_memcache.php
website/reports/background/update_memcache.php
PHP
<|file_sep|>original/README.md Weather API ============================= The Weather API is a service, which is able to deliver weather forecast data for any given location on earth. There will be also observation data available. This repository contains source files for the technical documentation, which describes t...
Weather API ============================= The Weather API is a service, which is able to deliver weather forecast data for any given location on earth. There will be also observation data available. This repository contains source files for the technical documentation, which describes the Weather API. A more general...
<|file_sep|>original/README.md Weather API ============================= The Weather API is a service, which is able to deliver weather forecast data for any given location on earth. There will be also observation data available. This repository contains source files for the technical documentation, which describes t...
063d5c597084e56e13e2127da8df2882328ef8b0
README.md
README.md
Markdown
<|file_sep|>original/README.md # pagure-haskell A pure Haskell client to the Pagure API. Based on high quality libraries such as Wreq, Aeson, and Lens. ## Example ```haskell module Main where import Data.Default import Web.Pagure -- | We define (in Web.Pagure.Types) an instance of Default for PagureConfig. -- It p...
# pagure-haskell A pure Haskell client to the Pagure API. Based on high quality libraries such as Wreq, Aeson, and Lens. We encapsulate all operations inside of a `PagureT` monad transformer. That is to say, you can chain pagure requests together and run them as a (sequential) batch with `runPagureT`. This allows for...
<|file_sep|>original/README.md # pagure-haskell A pure Haskell client to the Pagure API. Based on high quality libraries such as Wreq, Aeson, and Lens. ## Example ```haskell module Main where import Data.Default import Web.Pagure -- | We define (in Web.Pagure.Types) an instance of Default for PagureConfig. -- It p...
c4e5f89b2313f08a6cffaf09fd6df873f170af28
README.md
README.md
Markdown
<|file_sep|>original/src/defaultState.js export default { db: { support: { chat: 'https://www.hipchat.com/gv1XLjgaV', bugs: 'https://github.com/cape-io/cape-editor/issues', }, title: 'ACF Client', description: 'Membership Fun', image: 'https://pbs.twimg.com/profile_images/568082657292...
description: 'Membership Fun', image: 'https://pbs.twimg.com/profile_images/568082657292976128/SNZjMW8N.png', tagline: 'Create Anywhere Publish Everywhere', navLinks: [ createNavLink('about', {text: 'About Us'}), createNavLink('members'), createNavLink('acf40', { text: 'ACF 40'...
<|file_sep|>original/src/defaultState.js export default { db: { support: { chat: 'https://www.hipchat.com/gv1XLjgaV', bugs: 'https://github.com/cape-io/cape-editor/issues', }, title: 'ACF Client', description: 'Membership Fun', image: 'https://pbs.twimg.com/profile_images/568082657292...
cf1af1b56d8caa3da7a94fb4593cc4106aacb3f7
src/defaultState.js
src/defaultState.js
JavaScript
<|file_sep|>lib/global-admin/addon/clusters/new/cloud/controller.js.diff original: import { inject as service } from '@ember/service'; updated: <|file_sep|>original/lib/global-admin/addon/clusters/new/cloud/controller.js import { alias } from '@ember/object/computed'; import NewOrEdit from 'ui/mixins/new-or-edit'; imp...
import NewOrEdit from 'ui/mixins/new-or-edit'; import { set, computed } from '@ember/object'; export default Controller.extend(NewOrEdit, { driver: 'googlegke', primaryResource: alias('model.cluster'), actions: { switchDriver(name) { set(this, 'errors', []); set(this, 'driver', name); }, ...
<|file_sep|>lib/global-admin/addon/clusters/new/cloud/controller.js.diff original: import { inject as service } from '@ember/service'; updated: <|file_sep|>original/lib/global-admin/addon/clusters/new/cloud/controller.js import { alias } from '@ember/object/computed'; import NewOrEdit from 'ui/mixins/new-or-edit'; imp...
c84a454c8b152bb59e905b448b330b7a689543d5
lib/global-admin/addon/clusters/new/cloud/controller.js
lib/global-admin/addon/clusters/new/cloud/controller.js
JavaScript
<|file_sep|>original/test/package/extracttarball/extracttarball.lua require('buildsys') bd = builddir() bd:extract(bd:fetch { method = 'dl', uri = 'http://awpbuild.atlnz.lc/release_tarballs/dbus-1.2.16.tar.gz' }) <|file_sep|>current/test/package/extracttarball/extracttarball.lua require('buildsys') bd = builddir() bd...
require('buildsys') bd = builddir() bd:extract( bd:fetch { method = 'dl', uri = 'https://dbus.freedesktop.org/releases/dbus/dbus-1.2.16.tar.gz', } )
<|file_sep|>original/test/package/extracttarball/extracttarball.lua require('buildsys') bd = builddir() bd:extract(bd:fetch { method = 'dl', uri = 'http://awpbuild.atlnz.lc/release_tarballs/dbus-1.2.16.tar.gz' }) <|file_sep|>current/test/package/extracttarball/extracttarball.lua require('buildsys') bd = builddir() bd...
a27858e8b6feb255d4bed80fddd00ea4a9adea79
test/package/extracttarball/extracttarball.lua
test/package/extracttarball/extracttarball.lua
Lua
<|file_sep|>original/clc-java-sdk/src/test/java/com/centurylinkcloud/servers/service/ServerServiceTest.java /** * @author ilya.drabenia */ public class ServerServiceTest { @Inject private ServerService serverService; @Before public void setUp() { Guice.createInjector(new ServersModule()).inj...
/** * @author ilya.drabenia */ public class ServerServiceTest { @Inject private ServerService serverService; @Before public void setUp() { Guice .createInjector(new ServersModule()) .injectMembers(this); } @Test public void testCreate() throws Exception {...
<|file_sep|>original/clc-java-sdk/src/test/java/com/centurylinkcloud/servers/service/ServerServiceTest.java /** * @author ilya.drabenia */ public class ServerServiceTest { @Inject private ServerService serverService; @Before public void setUp() { Guice.createInjector(new ServersModule()).inj...
a766f7c0c0a21f63af848d06a359ee15c690fe89
clc-java-sdk/src/test/java/com/centurylinkcloud/servers/service/ServerServiceTest.java
clc-java-sdk/src/test/java/com/centurylinkcloud/servers/service/ServerServiceTest.java
Java
<|file_sep|>original/.travis.yml language: ruby cache: bundler rvm: - 2.1 script: bundle exec jekyll build && htmlproof ./_site env: global: - NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer <|file_sep|>current/.travis.yml language: ruby cache: bundler rvm: - 2.1 script: bundle exec j...
language: ruby cache: bundler rvm: - 2.1 script: bundle exec jekyll build && bundle exec htmlproof ./_site env: global: - NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer
<|file_sep|>original/.travis.yml language: ruby cache: bundler rvm: - 2.1 script: bundle exec jekyll build && htmlproof ./_site env: global: - NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer <|file_sep|>current/.travis.yml language: ruby cache: bundler rvm: - 2.1 script: bundle exec j...
1ba8fae05e9c0750f9ebfc130f221ef417c9b1b2
.travis.yml
.travis.yml
YAML
<|file_sep|>original/config/initializers/load_model_enhancements.rb Dir[Rails.root.join("app", "models", "enhancements", "*.rb")].each do |path| name = File.basename(path, ".rb") require "enhancements/#{name}" end <|file_sep|>current/config/initializers/load_model_enhancements.rb Dir[Rails.root.join("app", "models"...
# We conditionally apply the model enhancements (at the time of writing, only one exists) since the model change # was breaking a migration when spinning up a clean install. # # == SwapMagicEverythingPermissionsForRealOnes: migrating ====================== # rake aborted! # An error has occurred, all later migrations ...
<|file_sep|>original/config/initializers/load_model_enhancements.rb Dir[Rails.root.join("app", "models", "enhancements", "*.rb")].each do |path| name = File.basename(path, ".rb") require "enhancements/#{name}" end <|file_sep|>current/config/initializers/load_model_enhancements.rb Dir[Rails.root.join("app", "models"...
1193e94c681f4894a1d209d9db39da72c77af2e9
config/initializers/load_model_enhancements.rb
config/initializers/load_model_enhancements.rb
Ruby
<|file_sep|>original/bin/zhwatch.sh <|file_sep|>current/bin/zhwatch.sh <|file_sep|>updated/bin/zhwatch.sh
#!/bin/bash URL=$1 MSG='Moooo' wget $URL -O /tmp/original while true; do wget $URL -O /tmp/new --user-agent="Hiperszuper-eredmenyfigyelo-script" diff -i -b -B -q /tmp/original /tmp/new if [ ! $? -eq 0 ]; then figlet $MSG|cowsay -n|xmessage -file - -center exit fi sleep 50 done
<|file_sep|>original/bin/zhwatch.sh <|file_sep|>current/bin/zhwatch.sh <|file_sep|>updated/bin/zhwatch.sh #!/bin/bash URL=$1 MSG='Moooo' wget $URL -O /tmp/original while true; do wget $URL -O /tmp/new --user-agent="Hiperszuper-eredmenyfigyelo-script" diff -i -b -B -q /tmp/original /tmp/new if [ ! $? -e...
c70770cccb42ec9b9dcec931a7c201ee9d9f4927
bin/zhwatch.sh
bin/zhwatch.sh
Shell
<|file_sep|>composer.json.diff original: "description": "Laravel Form Field the extension of Laravelcollective Form for Laravel 5.3, 5.4 and 5.5 with Twitter Bootstrap 3", updated: "description": "Laravel Form Field the extension of Laravelcollective Form for Laravel 5.3 and newer with Twitter Bootstrap 3", <|f...
} }, "autoload-dev": { "psr-4": { "Tests\\": "tests/" } }, "minimum-stability": "stable", "require": { "php": ">=5.6.4", "laravelcollective/html": "5.3.* || 5.4.* || 5.5.* || 5.6.* || 5.7.*" }, "require-dev": { "orchestra/testbench"...
<|file_sep|>composer.json.diff original: "description": "Laravel Form Field the extension of Laravelcollective Form for Laravel 5.3, 5.4 and 5.5 with Twitter Bootstrap 3", updated: "description": "Laravel Form Field the extension of Laravelcollective Form for Laravel 5.3 and newer with Twitter Bootstrap 3", <|f...
c6d6dbd4e731539b9859d6463468900f96dbecc6
composer.json
composer.json
JSON
<|file_sep|>ob.cfg.diff original: server1 = tcp://libbitcoin1.openbazaar.org:9091 updated: server1 = tcp://libbitcoin1.openbazaar.org:9091,ptCDh+i&@k3CYEa)(tC=j9$yN/eD&}@LJojDUGo7 server3 = tcp://libbitcoin3.openbazaar.org:9091,pco)6}^g!]5b7#byrx>[=MCI#W?DCF}K3FoS6nTu <|file_sep|>original/ob.cfg TRANSACTION_FEE = 1500...
TRANSACTION_FEE = 15000 RESOLVER = https://resolver.onename.com/ [LIBBITCOIN_SERVERS] server1 = tcp://libbitcoin1.openbazaar.org:9091,ptCDh+i&@k3CYEa)(tC=j9$yN/eD&}@LJojDUGo7 server3 = tcp://libbitcoin3.openbazaar.org:9091,pco)6}^g!]5b7#byrx>[=MCI#W?DCF}K3FoS6nTu [LIBBITCOIN_SERVERS_TESTNET] testnet_server2 = tcp:/...
<|file_sep|>ob.cfg.diff original: server1 = tcp://libbitcoin1.openbazaar.org:9091 updated: server1 = tcp://libbitcoin1.openbazaar.org:9091,ptCDh+i&@k3CYEa)(tC=j9$yN/eD&}@LJojDUGo7 server3 = tcp://libbitcoin3.openbazaar.org:9091,pco)6}^g!]5b7#byrx>[=MCI#W?DCF}K3FoS6nTu <|file_sep|>original/ob.cfg TRANSACTION_FEE = 1500...
b07f848a8e01f5479fbb3b67c822e36ed4044474
ob.cfg
ob.cfg
INI
<|file_sep|>README.md.diff original: updated: API --- The scraper pull the menu from the UGent website and parses into a workable json format. The current API is located at http://zeus.ugent.be/~blackskad/resto/api/0.1/ The number at the end of the URL indicates the version of the API. Currently the API is at version...
"name": "Veg. kaasburger", "price": "\u20ac 3,60", "recommended": false } ], "soup": { "name": "Uiensoep", "price": "\u20ac 0,50" }, "vegetables": [ "Hutsepotgroenten", "Appelcomote" ] } } Copyright --------- The images are copyright of @jelledelaender and @c...
<|file_sep|>README.md.diff original: updated: API --- The scraper pull the menu from the UGent website and parses into a workable json format. The current API is located at http://zeus.ugent.be/~blackskad/resto/api/0.1/ The number at the end of the URL indicates the version of the API. Currently the API is at version...
7fad3c605b256f4c3e782f5a88da922aa69eee3f
README.md
README.md
Markdown
<|file_sep|>original/templates/default/sentinel.upstart.conf.erb description "Start the redis-sentinel instance on port <%= @port %>" author "Installed by chef redisio cookbook" #start on runlevel [2345] stop on runlevel [06] script if [ ! -d <%= @piddir %> ]; then mkdir -p <%= @piddir %> chown <%= @user %>...
description "Start the redis-sentinel instance on port <%= @port %>" author "Installed by chef redisio cookbook" #start on runlevel [2345] stop on runlevel [06] script if [ ! -d <%= @piddir %> ]; then mkdir -p <%= @piddir %> chown <%= @user %>:<%= @group %> <%= @piddir %> fi end script # If the job exit...
<|file_sep|>original/templates/default/sentinel.upstart.conf.erb description "Start the redis-sentinel instance on port <%= @port %>" author "Installed by chef redisio cookbook" #start on runlevel [2345] stop on runlevel [06] script if [ ! -d <%= @piddir %> ]; then mkdir -p <%= @piddir %> chown <%= @user %>...
43ff39d3dbbf9aa82d797ddbfeb7cedcdbd2b8d0
templates/default/sentinel.upstart.conf.erb
templates/default/sentinel.upstart.conf.erb
HTML+ERB
<|file_sep|>original/plinth/modules/users/templates/users_create.html </div> </div> {% endblock %} {% block sidebar %} <div class="well sidebar"> <h3>Create User</h3> <p>Adding a user via this administrative interface <strong>might</strong> create a system user. For example, if you prov...
<div class="row"> <div class="col-sm-8"> <form class="form" method="post"> {% csrf_token %} {{ form|bootstrap }} <input type="submit" class="btn btn-primary" value="Create User"/> </form> </div> </div> {% endblock %} {% block page_js %} <script> $('#id_usernam...
<|file_sep|>original/plinth/modules/users/templates/users_create.html </div> </div> {% endblock %} {% block sidebar %} <div class="well sidebar"> <h3>Create User</h3> <p>Adding a user via this administrative interface <strong>might</strong> create a system user. For example, if you prov...
6dc463ff6e03f661fc42765ce5295e1019dfc73c
plinth/modules/users/templates/users_create.html
plinth/modules/users/templates/users_create.html
HTML
<|file_sep|>original/.travis.yml # Config file for automatic testing at travis-ci.org language: python python: - "3.4" - "3.3" - "2.7" - "2.6" - "pypy" # command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors install: pip install -r requirements.txt # command to run tests, e.g...
# Config file for automatic testing at travis-ci.org language: python python: - "3.5" - "3.4" - "3.3" - "2.7" - "2.6" - "pypy" # command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors install: pip install -r requirements.txt # command to run tests, e.g. python setup.py test ...
<|file_sep|>original/.travis.yml # Config file for automatic testing at travis-ci.org language: python python: - "3.4" - "3.3" - "2.7" - "2.6" - "pypy" # command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors install: pip install -r requirements.txt # command to run tests, e.g...
4c207b667b514d64d084351dd1198342bb95468d
.travis.yml
.travis.yml
YAML
<|file_sep|>pagini_html/signup.html.diff original: <body class="body_login" style = "margin:0 auto;padding:100px;"> updated: <body class="body_singup" style = "margin:0 auto;padding:100px;"> <|file_sep|>original/pagini_html/signup.html <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <link type="text/css" rel="styl...
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <link type="text/css" rel="stylesheet" href="../css/style.css" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body class="body_singup" style = "margin:0 auto;padding:100px;"> <form action="/action_page.php"method='POST'> <div cla...
<|file_sep|>pagini_html/signup.html.diff original: <body class="body_login" style = "margin:0 auto;padding:100px;"> updated: <body class="body_singup" style = "margin:0 auto;padding:100px;"> <|file_sep|>original/pagini_html/signup.html <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <link type="text/css" rel="styl...
a055ab102b0fb134b7f9c4a2ec6bdb763978c5b0
pagini_html/signup.html
pagini_html/signup.html
HTML
<|file_sep|>samples/migrateAccount.py.diff original: #### Migrate person to a new account within the same Org updated: #### Migrate a member to a new account within the same Organization <|file_sep|>samples/migrateAccount.py.diff original: # Useful when migrating to Enterprise Logins. # Reassigns all items/groups to ne...
#### Migrate a member to a new account within the same Organization # Requires admin role # Useful when migrating to Enterprise Logins # Reassigns all items/groups to new owner # Adds userTo to all groups which userFrom is a member from agoTools.admin import Admin myAgol = Admin('<username>') # Replace <username> yo...
<|file_sep|>samples/migrateAccount.py.diff original: #### Migrate person to a new account within the same Org updated: #### Migrate a member to a new account within the same Organization <|file_sep|>samples/migrateAccount.py.diff original: # Useful when migrating to Enterprise Logins. # Reassigns all items/groups to ne...
3dfa781ce8e073f40eda3d80794ad1caff5d5920
samples/migrateAccount.py
samples/migrateAccount.py
Python
<|file_sep|>original/app/views/ems_container/show_list.html.haml #main_div - if Container.any? = render :partial => 'layouts/gtl' - else = render :partial => 'layouts/empty', :locals => {:add_message => _("Add a new Containers Provider"), :documentation => 'http://manag...
#main_div - if ManageIQ::Providers::ContainerManager.any? = render :partial => 'layouts/gtl' - else = render :partial => 'layouts/empty', :locals => {:add_message => _("Add a new Containers Provider"), :documentation => 'http://manageiq.org/docs/reference/latest/doc-Man...
<|file_sep|>original/app/views/ems_container/show_list.html.haml #main_div - if Container.any? = render :partial => 'layouts/gtl' - else = render :partial => 'layouts/empty', :locals => {:add_message => _("Add a new Containers Provider"), :documentation => 'http://manag...
b99388ef93408e0283b60ee53ae6bd9491ed21e4
app/views/ems_container/show_list.html.haml
app/views/ems_container/show_list.html.haml
Haml
<|file_sep|>index.js.diff original: updated: server.opts('/-/files.list', allowCORS) <|file_sep|>index.js.diff original: server.opts('/-/upload', (req, res, next) => { updated: server.opts('/-/upload', allowCORS) function allowCORS(req, res, next) { <|file_sep|>original/index.js server.post('/-/login', restify.bodyPa...
server.get('/-/metadata/:team/:user/:file', require('./metadata')); server.get('/-/session/:session', require('./session')); server.get('/-/files.list', require('./list')()); server.opts('/-/files.list', allowCORS) server.post('/-/upload', require('./upload')()) server.opts('/-/upload', allowCORS) function allowCOR...
<|file_sep|>index.js.diff original: updated: server.opts('/-/files.list', allowCORS) <|file_sep|>index.js.diff original: server.opts('/-/upload', (req, res, next) => { updated: server.opts('/-/upload', allowCORS) function allowCORS(req, res, next) { <|file_sep|>original/index.js server.post('/-/login', restify.bodyPa...
66cd2b20a03fda31fd648930fce4f7fff60e8ef7
index.js
index.js
JavaScript
<|file_sep|>original/appinc/template/email-user-confirmation.tpl </p> <p> Please, to confirm your user registration, you have to visit the following link :<br /> <a target="_blank" href="{$smarty.const.APP_URL}?action=confirmAccount&amp;user_id={$user.id}&amp;code={$user.code}=">{$smarty.const.APP_URL}?action=...
</p> <p> Please, to confirm your user registration, you have to visit the following link :<br /> <a target="_blank" href="{$smarty.const.APP_URL}?action=confirmAccount&amp;user_id={$user.id}&amp;code={$user.code}=">{$smarty.const.APP_URL}?action=confirmAccount&amp;user_id={$user.id}&amp;code={$user.code}</a> <...
<|file_sep|>original/appinc/template/email-user-confirmation.tpl </p> <p> Please, to confirm your user registration, you have to visit the following link :<br /> <a target="_blank" href="{$smarty.const.APP_URL}?action=confirmAccount&amp;user_id={$user.id}&amp;code={$user.code}=">{$smarty.const.APP_URL}?action=...
80e773d2f847705c86864703251b2b847e673953
appinc/template/email-user-confirmation.tpl
appinc/template/email-user-confirmation.tpl
Smarty
<|file_sep|>src/js/components/SectionComponent.jsx.diff original: updated: getInitialState: function () { return { activeStateChanged: true }; }, componentWillReceiveProps: function (nextProps) { this.setState({ activeStateChanged: nextProps.active !== this.props.active }); }, <|f...
}, componentDidUpdate: function () { this.triggerCallbacks(); }, triggerCallbacks: function () { var {activeStateChanged} = this.state; var {active, onActive} = this.props; if (activeStateChanged && active) { onActive(); } }, render: function () { var {children, active} = t...
<|file_sep|>src/js/components/SectionComponent.jsx.diff original: updated: getInitialState: function () { return { activeStateChanged: true }; }, componentWillReceiveProps: function (nextProps) { this.setState({ activeStateChanged: nextProps.active !== this.props.active }); }, <|f...
b748ab029c9c788c31b6e0013236ef5cb813d05a
src/js/components/SectionComponent.jsx
src/js/components/SectionComponent.jsx
JSX
<|file_sep|>original/rules/simple-domain-whitelist.md <|file_sep|>current/rules/simple-domain-whitelist.md <|file_sep|>updated/rules/simple-domain-whitelist.md
--- gallery: true categories: - access control --- ## Email domain whitelist This rule will only allow access to users with specific email domains. ```js function (user, context, callback) { var whitelist = ['example.com', 'example.org']; //authorized domains var userHasAccess = whitelist.some( function...
<|file_sep|>original/rules/simple-domain-whitelist.md <|file_sep|>current/rules/simple-domain-whitelist.md <|file_sep|>updated/rules/simple-domain-whitelist.md --- gallery: true categories: - access control --- ## Email domain whitelist This rule will only allow access to users with specific email domains. ```js fu...
80141b2073e8796f57c36408b9a15b3c5325eac9
rules/simple-domain-whitelist.md
rules/simple-domain-whitelist.md
Markdown
<|file_sep|>test/Diffbot.Client.Tests/DiffbotClientTest.cs.diff original: updated: using System.Net.Http; <|file_sep|>test/Diffbot.Client.Tests/DiffbotClientTest.cs.diff original: updated: private const string WebPageUrl1 = "http://gigaom.com/cloud/silicon-valley-royalty-pony-up-2m-to-scale-di...
// Arrange var client = new DiffbotClient(ValidApiKey); // Act var article = await client.GetArticle(WebPageUrl1); // Assert Assert.IsNotNull(article); Assert.AreEqual("Silicon Valley stars pony up $2M to scale Diffbot’s visual learni...
<|file_sep|>test/Diffbot.Client.Tests/DiffbotClientTest.cs.diff original: updated: using System.Net.Http; <|file_sep|>test/Diffbot.Client.Tests/DiffbotClientTest.cs.diff original: updated: private const string WebPageUrl1 = "http://gigaom.com/cloud/silicon-valley-royalty-pony-up-2m-to-scale-di...
af38c72b6cc9d8b0a37b29d7143f4a8cfffffa9d
test/Diffbot.Client.Tests/DiffbotClientTest.cs
test/Diffbot.Client.Tests/DiffbotClientTest.cs
C#
<|file_sep|>original/lib/dimples/renderable.rb output = renderer.render(build_scope(context)) { body }.strip @rendered_contents = output if use_layout && defined?(@layout) && @site.templates[@layout] output = @site.templates[@layout].render(context, output) end output rescue ...
output = renderer.render(build_scope(context)) { body }.strip @rendered_contents = output if use_layout && defined?(@layout) && @site.templates[@layout] output = @site.templates[@layout].render(context, output) end output rescue => e error_message = "Unable to render #{...
<|file_sep|>original/lib/dimples/renderable.rb output = renderer.render(build_scope(context)) { body }.strip @rendered_contents = output if use_layout && defined?(@layout) && @site.templates[@layout] output = @site.templates[@layout].render(context, output) end output rescue ...
6f4352b7dd8c2c7f5640f6922a6c9b6c7e5f3ce9
lib/dimples/renderable.rb
lib/dimples/renderable.rb
Ruby
<|file_sep|>environment/transpiler/environment/equality.lisp.diff original: ;;;;; TRE transpiler environment ;;;;; Copyright (c) 2008-2009,2011 Sven Klose <pixel@copei.de> updated: ;;;;; tré - Copyright (c) 2008-2009,2011 Sven Klose <pixel@copei.de> <|file_sep|>original/environment/transpiler/environment/equality.lisp ...
;;;;; tré - Copyright (c) 2008-2009,2011 Sven Klose <pixel@copei.de> (defun eql (x y) (unless x ; Convert falsity to 'null'. (setq x nil)) (unless y (setq y nil)) (or (%%%eq x y) (? (or (number? x) (number? y)) (? (and (integer? x) (integer? y)) (integer= x y) (...
<|file_sep|>environment/transpiler/environment/equality.lisp.diff original: ;;;;; TRE transpiler environment ;;;;; Copyright (c) 2008-2009,2011 Sven Klose <pixel@copei.de> updated: ;;;;; tré - Copyright (c) 2008-2009,2011 Sven Klose <pixel@copei.de> <|file_sep|>original/environment/transpiler/environment/equality.lisp ...
23df2c9cf93fd1cb93548c1899cc7cec097a7470
environment/transpiler/environment/equality.lisp
environment/transpiler/environment/equality.lisp
Common Lisp
<|file_sep|>original/src/views/search.html <body> <section id="search"> <h1>Node Forecast</h1> <form action="." id="forecast-search" method="get"> <!-- Single text entry in center of page for location entry --> <label for="forecast-search-box">ZIP:</label> <input ...
<body> <section id="search"> <h1>Node Forecast</h1> <form action="/forecast" id="forecast-search" method="get"> <!-- Single text entry in center of page for location entry --> <label for="forecast-search-box">ZIP:</label> <input type="search" name="location" id="f...
<|file_sep|>original/src/views/search.html <body> <section id="search"> <h1>Node Forecast</h1> <form action="." id="forecast-search" method="get"> <!-- Single text entry in center of page for location entry --> <label for="forecast-search-box">ZIP:</label> <input ...
0d6f58c3493b214708342ae9fd93f7af7413c608
src/views/search.html
src/views/search.html
HTML
<|file_sep|>lib/Filter/BooleanFilter.php.diff original: self::CHOICE_ANY => 'any', updated: <|file_sep|>lib/Filter/BooleanFilter.php.diff original: updated: 'empty_value' => self::CHOICE_ANY <|file_sep|>original/lib/Filter/BooleanFilter.php 0 => 'no', ], ...
], 'empty_value' => self::CHOICE_ANY ]); } /** * {@inheritdoc} */ public function isApplicable(array $filterData): bool { return isset($filterData['value']); } /** * {@inheritdoc} */ public function getExpression(string $fieldName...
<|file_sep|>lib/Filter/BooleanFilter.php.diff original: self::CHOICE_ANY => 'any', updated: <|file_sep|>lib/Filter/BooleanFilter.php.diff original: updated: 'empty_value' => self::CHOICE_ANY <|file_sep|>original/lib/Filter/BooleanFilter.php 0 => 'no', ], ...
84215c64aa3d8c856515fd7ecfe7829b5c6b8fb3
lib/Filter/BooleanFilter.php
lib/Filter/BooleanFilter.php
PHP
<|file_sep|>scripts/ci-package-artifacts.sh.diff original: # Rename darwin into osx if test "$OS_NAME" = "darwin"; then OS_NAME="osx" fi updated: <|file_sep|>original/scripts/ci-package-artifacts.sh if test "$VARIANT" = ""; then VARIANT="Default" fi # Rename darwin into osx if test "$OS_NAME" = "darwin"; th...
if test "$VARIANT" = ""; then VARIANT="Default" fi # Rename x86_64 into x64 to distinguis between x86 and x86_64 with grep. if test "$ARCH" = "x86_64"; then ARCH="x64" fi # Rename darwin into osx. Also call the arch universal since we build fat binaries for x64 and arm64. if test "$OS_NAME" = "darwin"; then ...
<|file_sep|>scripts/ci-package-artifacts.sh.diff original: # Rename darwin into osx if test "$OS_NAME" = "darwin"; then OS_NAME="osx" fi updated: <|file_sep|>original/scripts/ci-package-artifacts.sh if test "$VARIANT" = ""; then VARIANT="Default" fi # Rename darwin into osx if test "$OS_NAME" = "darwin"; th...
d0f5c338609ce4a6507b396f99dfc1586147a127
scripts/ci-package-artifacts.sh
scripts/ci-package-artifacts.sh
Shell
<|file_sep|>original/README.md ## ImageResizer.Plugins.EPiServerBlobReader Nothing much to describe here :) Just install NuGet package and it will register EPiServer Blob reader plugin for ImageResizer in order to serve and process images from EPiServer Media folders by ImageResizer. <|file_sep|>current/README.md ## I...
## ImageResizer.Plugins.EPiServerBlobReader Nothing much to describe here :) Just install NuGet package and it will register EPiServer Blob reader plugin for ImageResizer in order to serve and process images from EPiServer Media folders by ImageResizer. ## I'm seeing unscaled images in Episerver Edit mode ImageResiz...
<|file_sep|>original/README.md ## ImageResizer.Plugins.EPiServerBlobReader Nothing much to describe here :) Just install NuGet package and it will register EPiServer Blob reader plugin for ImageResizer in order to serve and process images from EPiServer Media folders by ImageResizer. <|file_sep|>current/README.md ## I...
7a184f941a63af3f93fe0d16a0257863f34c809a
README.md
README.md
Markdown
<|file_sep|>original/readthedocs/profiles/urls.py """ from django.conf.urls import * from profiles import views urlpatterns = patterns('', url(r'^create/$', views.create_profile, name='profiles_create_profile'), url(...
""" from django.conf.urls import * from profiles import views urlpatterns = patterns('', url(r'^create/$', views.create_profile, name='profiles_create_profile'), url(r'^edit/$', views.edit_...
<|file_sep|>original/readthedocs/profiles/urls.py """ from django.conf.urls import * from profiles import views urlpatterns = patterns('', url(r'^create/$', views.create_profile, name='profiles_create_profile'), url(...
e981581e9bc1b4ac4410204dab5f7f71d1dcac79
readthedocs/profiles/urls.py
readthedocs/profiles/urls.py
Python
<|file_sep|>original/routes/index.js }); }); }); router.get('/:page', function(req, res, next) { keystone.list('Page').model.findOne({ state: 'published', slug: req.params.page }).exec(function(err, result) { if (!result) { return next(); } res.render('page', { title: result.title, ...
state: 'published', slug: req.params.page }).exec(function(err, result) { if (!result) { return next(); } res.render('page', { title: result.title, content: result.content.html }); }); }); // REDIRECT TO DEMO NIGHT VOTE FORM // REMOVE AFTER MAY 4TH 2017 router.get('/vote', functio...
<|file_sep|>original/routes/index.js }); }); }); router.get('/:page', function(req, res, next) { keystone.list('Page').model.findOne({ state: 'published', slug: req.params.page }).exec(function(err, result) { if (!result) { return next(); } res.render('page', { title: result.title, ...
dcbc22725fc1e0c2bd1766d6eb53ce1fc23219c0
routes/index.js
routes/index.js
JavaScript
<|file_sep|>original/lib/tasks/deploy.rake namespace :deploy do task :create_rails_directories do puts "creating log/ and tmp/ directories" Dir.chdir(Rails.root) system("mkdir -p log tmp") end task :bundle_gems => :environment do puts "bundling..." Dir.chdir(Rails.root) system("RAILS_ENV=...
namespace :deploy do task :create_rails_directories do puts "creating log/ and tmp/ directories" Dir.chdir(Rails.root) system("mkdir -p log tmp") end task :bundle_gems => :environment do puts "bundling..." Dir.chdir(Rails.root) system("RAILS_ENV=#{Rails.env} sudo bundle install --without=...
<|file_sep|>original/lib/tasks/deploy.rake namespace :deploy do task :create_rails_directories do puts "creating log/ and tmp/ directories" Dir.chdir(Rails.root) system("mkdir -p log tmp") end task :bundle_gems => :environment do puts "bundling..." Dir.chdir(Rails.root) system("RAILS_ENV=...
3a06b834bdf7ae5a7fe16cf76a9ec21e46121135
lib/tasks/deploy.rake
lib/tasks/deploy.rake
Ruby
<|file_sep|>app/js/arethusa.core/notifier.js.diff original: self.messages.unshift({ type: 'success', message: message }); updated: self.addMessage('success', message); <|file_sep|>app/js/arethusa.core/notifier.js.diff original: self.messages.unshift({ type: 'error', message: mess...
this.error = function (message) { self.addMessage('error', message); }; this.lastMessage = function () { return self.messages[0]; }; this.oldMessages = function () { return self.messages.slice(1); }; this.addMessage = function(type, message) { if (self.messages.length === 15) { se...
<|file_sep|>app/js/arethusa.core/notifier.js.diff original: self.messages.unshift({ type: 'success', message: message }); updated: self.addMessage('success', message); <|file_sep|>app/js/arethusa.core/notifier.js.diff original: self.messages.unshift({ type: 'error', message: mess...
aa624267087de9a87889cdf6ee49517fc04e4a24
app/js/arethusa.core/notifier.js
app/js/arethusa.core/notifier.js
JavaScript
<|file_sep|>scripts/migration/migrate_index_for_existing_files.py.diff original: updated: from website.search import search <|file_sep|>original/scripts/migration/migrate_index_for_existing_files.py import logging from website.app import init_app from website.files.models.osfstorage import OsfStorageFile logger = lo...
from website.app import init_app from website.search import search from website.files.models.osfstorage import OsfStorageFile logger = logging.getLogger(__name__) def main(): init_app(routes=False) dry_run = 'dry' in sys.argv logger.warn('Current files will now be updated to be indexed if necessary') ...
<|file_sep|>scripts/migration/migrate_index_for_existing_files.py.diff original: updated: from website.search import search <|file_sep|>original/scripts/migration/migrate_index_for_existing_files.py import logging from website.app import init_app from website.files.models.osfstorage import OsfStorageFile logger = lo...
faf067ec4f5189a7a0b12fc78b62373a8f997ac8
scripts/migration/migrate_index_for_existing_files.py
scripts/migration/migrate_index_for_existing_files.py
Python
<|file_sep|>original/spec/support/seeds.rb # frozen_string_literal: true # Minimal test seeding # -------------------- # # Countries and states are seeded once in the beginning. The database cleaner # leaves them there when deleting the rest (see spec/spec_helper.rb). # You can add more entries here if you need them f...
# frozen_string_literal: true # Minimal test seeding # -------------------- # # Countries and states are seeded once in the beginning. The database cleaner # leaves them there when deleting the rest (see spec/spec_helper.rb). # You can add more entries here if you need them for your tests. if Spree::Country.where(nam...
<|file_sep|>original/spec/support/seeds.rb # frozen_string_literal: true # Minimal test seeding # -------------------- # # Countries and states are seeded once in the beginning. The database cleaner # leaves them there when deleting the rest (see spec/spec_helper.rb). # You can add more entries here if you need them f...
a91bb6e35509cb6145019f27aa82811262805c9b
spec/support/seeds.rb
spec/support/seeds.rb
Ruby
<|file_sep|>src/index.js.diff original: // Create a variables file modeled after the sample-variables.js file. updated: // Rename the sample-variables.js to variables.js and place any variables you do // not want pushed to the repo there. <|file_sep|>src/index.js.diff original: YTSearch({key: API_KEY, term: 'dragonba...
this.setState({ videos: videos, selectedVideo: videos[0] }); }); } render () { return ( <div> <SearchBar onSearchTermChange={term => this.videoSearch(term)} /> <VideoDetail video={this.state.selectedVideo} /> <VideoList videos={this.state.videos} onVideoSelect={selected...
<|file_sep|>src/index.js.diff original: // Create a variables file modeled after the sample-variables.js file. updated: // Rename the sample-variables.js to variables.js and place any variables you do // not want pushed to the repo there. <|file_sep|>src/index.js.diff original: YTSearch({key: API_KEY, term: 'dragonba...
0e5e45cf3cdb5fd684e9fed65f6dfa3288ad742b
src/index.js
src/index.js
JavaScript