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|>lib/tasks/larp_library/elasticsearch.rake.diff original: desc "Create indexes and import all records" updated: desc 'Create indexes and import all records' <|file_sep|>original/lib/tasks/larp_library/elasticsearch.rake namespace :larp_library do namespace :elasticsearch do desc "Create indexes...
namespace :larp_library do namespace :elasticsearch do desc 'Create indexes and import all records' task setup: :environment do [Project, Tag].each do |klass| puts "Importing #{klass.count} #{klass.name.pluralize}" klass.__elasticsearch__.create_index! force: klass.__elasticsearch__.inde...
<|file_sep|>lib/tasks/larp_library/elasticsearch.rake.diff original: desc "Create indexes and import all records" updated: desc 'Create indexes and import all records' <|file_sep|>original/lib/tasks/larp_library/elasticsearch.rake namespace :larp_library do namespace :elasticsearch do desc "Create indexes...
a8659e61a73e8c53518c348f142a615a5284919c
lib/tasks/larp_library/elasticsearch.rake
lib/tasks/larp_library/elasticsearch.rake
Ruby
<|file_sep|>original/index.js 'use strict'; var getArrowFunctions = function getArrowFunctions() { return [ Function('return (a, b) => a * b;')(), Function('return () => 42;')(), Function('return () => function () {};')(), Function('return () => x => x * x;')(), Function('return x => x * x;')() ]; }; va...
'use strict'; var getArrowFunctions = function getArrowFunctions() { return [ Function('return (a, b) => a * b;')(), Function('return () => 42;')(), Function('return () => function () {};')(), Function('return () => x => x * x;')(), Function('return x => x * x;')(), Function('return x => { return x * x...
<|file_sep|>original/index.js 'use strict'; var getArrowFunctions = function getArrowFunctions() { return [ Function('return (a, b) => a * b;')(), Function('return () => 42;')(), Function('return () => function () {};')(), Function('return () => x => x * x;')(), Function('return x => x * x;')() ]; }; va...
610403ccff3f35289271152636d3cd755933ddbf
index.js
index.js
JavaScript
<|file_sep|>original/lib/jdbc_adapter.rb if RUBY_PLATFORM =~ /java/ if defined?(RAILS_CONNECTION_ADAPTERS) RAILS_CONNECTION_ADAPTERS << %q(jdbc) else RAILS_CONNECTION_ADAPTERS = %w(jdbc) end else raise "ActiveRecord-JDBC is for use with JRuby only" end <|file_sep|>current/lib/jdbc_adapter.rb if RUBY_PLA...
if RUBY_PLATFORM =~ /java/ if defined?(RAILS_CONNECTION_ADAPTERS) RAILS_CONNECTION_ADAPTERS << %q(jdbc) else RAILS_CONNECTION_ADAPTERS = %w(jdbc) end if RAILS_GEM_VERSION =~ /1\.1\.\d+/ require 'active_record/connection_adapters/jdbc_adapter' end else raise "ActiveRecord-JDBC is for use with JRu...
<|file_sep|>original/lib/jdbc_adapter.rb if RUBY_PLATFORM =~ /java/ if defined?(RAILS_CONNECTION_ADAPTERS) RAILS_CONNECTION_ADAPTERS << %q(jdbc) else RAILS_CONNECTION_ADAPTERS = %w(jdbc) end else raise "ActiveRecord-JDBC is for use with JRuby only" end <|file_sep|>current/lib/jdbc_adapter.rb if RUBY_PLA...
8e5a67ee2d3d36e7901038ea78b4f6f065ae9563
lib/jdbc_adapter.rb
lib/jdbc_adapter.rb
Ruby
<|file_sep|>original/packages/expo-dev-launcher/package.json { "name": "expo-dev-launcher", "title": "Expo Development Launcher", "version": "0.3.0", "description": "Pre-release version of the Expo development launcher package for testing.", "main": "build/DevelopementClient.js", "types": "build/Developemen...
{ "name": "expo-dev-launcher", "title": "Expo Development Launcher", "version": "0.3.1", "description": "Pre-release version of the Expo development launcher package for testing.", "main": "build/DevelopementClient.js", "types": "build/DevelopementClient.d.ts", "scripts": { "build": "expo-module build...
<|file_sep|>original/packages/expo-dev-launcher/package.json { "name": "expo-dev-launcher", "title": "Expo Development Launcher", "version": "0.3.0", "description": "Pre-release version of the Expo development launcher package for testing.", "main": "build/DevelopementClient.js", "types": "build/Developemen...
ef873567599c2604c2d255c85ec91d910667b892
packages/expo-dev-launcher/package.json
packages/expo-dev-launcher/package.json
JSON
<|file_sep|>original/src/test/java/net/imagej/ops/filter/FilterNamespaceTest.java <|file_sep|>current/src/test/java/net/imagej/ops/filter/FilterNamespaceTest.java <|file_sep|>updated/src/test/java/net/imagej/ops/filter/FilterNamespaceTest.java
/* * #%L * ImageJ software for multidimensional image processing and analysis. * %% * Copyright (C) 2014 - 2015 Board of Regents of the University of * Wisconsin-Madison, University of Konstanz and Brian Northan. * %% * Redistribution and use in source and binary forms, with or without * modification, are permi...
<|file_sep|>original/src/test/java/net/imagej/ops/filter/FilterNamespaceTest.java <|file_sep|>current/src/test/java/net/imagej/ops/filter/FilterNamespaceTest.java <|file_sep|>updated/src/test/java/net/imagej/ops/filter/FilterNamespaceTest.java /* * #%L * ImageJ software for multidimensional image processing and ana...
58a473957ee7183b8b3c3e9d7a5eff8518548ae3
src/test/java/net/imagej/ops/filter/FilterNamespaceTest.java
src/test/java/net/imagej/ops/filter/FilterNamespaceTest.java
Java
<|file_sep|>original/metadata/org.nitri.opentopo.yml Categories: - Navigation License: Apache-2.0 AuthorName: Serge Helfrich SourceCode: https://github.com/Pygmalion69/OpenTopoMapViewer IssueTracker: https://github.com/Pygmalion69/OpenTopoMapViewer/issues Donate: https://ko-fi.com/U7U372JJ Name: OpenTopoMap Viewer S...
Categories: - Navigation License: Apache-2.0 AuthorName: Serge Helfrich SourceCode: https://github.com/Pygmalion69/OpenTopoMapViewer IssueTracker: https://github.com/Pygmalion69/OpenTopoMapViewer/issues Donate: https://ko-fi.com/U7U372JJ Name: OpenTopoMap Viewer AutoName: OpenTopoMap Summary: OpenTopoMap viewer with...
<|file_sep|>original/metadata/org.nitri.opentopo.yml Categories: - Navigation License: Apache-2.0 AuthorName: Serge Helfrich SourceCode: https://github.com/Pygmalion69/OpenTopoMapViewer IssueTracker: https://github.com/Pygmalion69/OpenTopoMapViewer/issues Donate: https://ko-fi.com/U7U372JJ Name: OpenTopoMap Viewer S...
01169b842e58b13e34cf99185fceef8557b861da
metadata/org.nitri.opentopo.yml
metadata/org.nitri.opentopo.yml
YAML
<|file_sep|>original/src/adjustArgs/extractFromDOM.js import extractValuesFromDOMEvent from 'awareness/es/extractValuesFromDOMEvent' export default function extractFromDOM(args) { if (args[0]) { const values = extractValuesFromDOMEvent(args[0]) // Place extracted dataset values first, followed by original a...
import extractValuesFromDOMEvent from 'awareness/lib/extractValuesFromDOMEvent' export default function extractFromDOM(args) { if (args[0]) { const values = extractValuesFromDOMEvent(args[0]) // Place extracted dataset values first, followed by original arguments args = [values].concat(args) } retu...
<|file_sep|>original/src/adjustArgs/extractFromDOM.js import extractValuesFromDOMEvent from 'awareness/es/extractValuesFromDOMEvent' export default function extractFromDOM(args) { if (args[0]) { const values = extractValuesFromDOMEvent(args[0]) // Place extracted dataset values first, followed by original a...
a500a397761125e4e5af2b76b55bdefaa83da1ea
src/adjustArgs/extractFromDOM.js
src/adjustArgs/extractFromDOM.js
JavaScript
<|file_sep|>original/src/main/resources/db/migration/V1_0_2__create_tables_xmltv.sql <|file_sep|>current/src/main/resources/db/migration/V1_0_2__create_tables_xmltv.sql <|file_sep|>updated/src/main/resources/db/migration/V1_0_2__create_tables_xmltv.sql
CREATE TABLE `channel` ( `idchannel` int(11) NOT NULL, `displayname` varchar(100) NOT NULL, `url` varchar(1000) NOT NULL, `iconurl` varchar(1000) DEFAULT NULL, PRIMARY KEY (`idchannel`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `title` ( `idtitle` int(11) NOT NULL, `value` varchar(256) NOT NULL,...
<|file_sep|>original/src/main/resources/db/migration/V1_0_2__create_tables_xmltv.sql <|file_sep|>current/src/main/resources/db/migration/V1_0_2__create_tables_xmltv.sql <|file_sep|>updated/src/main/resources/db/migration/V1_0_2__create_tables_xmltv.sql CREATE TABLE `channel` ( `idchannel` int(11) NOT NULL, `displ...
55a21d83e14b80908fcd454e8653de435ea3fb06
src/main/resources/db/migration/V1_0_2__create_tables_xmltv.sql
src/main/resources/db/migration/V1_0_2__create_tables_xmltv.sql
SQL
<|file_sep|>original/lib/discordrb/webhooks/builder.rb module Discordrb::Webhooks # A class that acts as a builder for a webhook message object. class Builder end end <|file_sep|>current/lib/discordrb/webhooks/builder.rb module Discordrb::Webhooks # A class that acts as a builder for a webhook message object. ...
module Discordrb::Webhooks # A class that acts as a builder for a webhook message object. class Builder def initialize(content: '', username: nil, avatar_url: nil, tts: false, file: nil, embeds: []) @content = content @username = username @avatar_url = avatar_url @tts = tts @file =...
<|file_sep|>original/lib/discordrb/webhooks/builder.rb module Discordrb::Webhooks # A class that acts as a builder for a webhook message object. class Builder end end <|file_sep|>current/lib/discordrb/webhooks/builder.rb module Discordrb::Webhooks # A class that acts as a builder for a webhook message object. ...
39e9a565b1b3351d7f2b4df50ae2e2fda6472763
lib/discordrb/webhooks/builder.rb
lib/discordrb/webhooks/builder.rb
Ruby
<|file_sep|>original/config/deploy.rb # config valid only for current version of Capistrano lock '3.6.1' set :application, 'anniecodes' set :repo_url, 'https://github.com/anniecodes/annie.codes.git' set :user, "deploy" set :rbenv_ruby, "2.5.3" # Default value for :linked_files is [] # append :linked_files, 'config/d...
# config valid only for current version of Capistrano lock '3.6.1' set :application, 'anniecodes' set :repo_url, 'https://github.com/anniecodes/annie.codes.git' set :user, "deploy" set :rbenv_ruby, "2.6.0" # Default value for :linked_files is [] # append :linked_files, 'config/database.yml', 'config/secrets.yml' # ...
<|file_sep|>original/config/deploy.rb # config valid only for current version of Capistrano lock '3.6.1' set :application, 'anniecodes' set :repo_url, 'https://github.com/anniecodes/annie.codes.git' set :user, "deploy" set :rbenv_ruby, "2.5.3" # Default value for :linked_files is [] # append :linked_files, 'config/d...
c2d9cfd39aae55729bb447ce346f98063aeff9b6
config/deploy.rb
config/deploy.rb
Ruby
<|file_sep|>portality/templates/includes/search-help-modal.html.diff original: Improving your search results updated: Refining your search <|file_sep|>original/portality/templates/includes/search-help-modal.html <div class="modal" id="modal-help" tabindex="-1" role="dialog" aria-labelledby="moda...
<div class="modal" id="modal-help" tabindex="-1" role="dialog" aria-labelledby="modalLabel-help" style="display: none;"> <div class="modal__dialog" role="document"> <p class="label">Tips</p> <h3 class="modal__title" id="modalLabel-help"> Refining your search </h3> <ul> ...
<|file_sep|>portality/templates/includes/search-help-modal.html.diff original: Improving your search results updated: Refining your search <|file_sep|>original/portality/templates/includes/search-help-modal.html <div class="modal" id="modal-help" tabindex="-1" role="dialog" aria-labelledby="moda...
00c9236d38a3c71cc05a0f9721e2eea24a2be1da
portality/templates/includes/search-help-modal.html
portality/templates/includes/search-help-modal.html
HTML
<|file_sep|>original/scripts/opt-in/golang.sh echo echo "Installing Golang Development tools" mkdir -p ~/go/src brew install go brew install dep brew cask install goland source ${MY_DIR}/scripts/common/download-pivotal-ide-prefs.sh pushd ~/workspace/pivotal_ide_prefs/cli ./bin/ide_prefs install --ide=gogland popd <|f...
echo echo "Installing Golang Development tools" mkdir -p ~/go/src brew install go brew install dep brew cask install goland source ${MY_DIR}/scripts/common/download-pivotal-ide-prefs.sh pushd ~/workspace/pivotal_ide_prefs/cli ./bin/ide_prefs install --ide=goland popd
<|file_sep|>original/scripts/opt-in/golang.sh echo echo "Installing Golang Development tools" mkdir -p ~/go/src brew install go brew install dep brew cask install goland source ${MY_DIR}/scripts/common/download-pivotal-ide-prefs.sh pushd ~/workspace/pivotal_ide_prefs/cli ./bin/ide_prefs install --ide=gogland popd <|f...
094b60a3cf14de8ba2783fef54ae48f507b166db
scripts/opt-in/golang.sh
scripts/opt-in/golang.sh
Shell
<|file_sep|>original/test-requirements.txt hacking>=3.0,<4.0.0 # Apache-2.0 coverage>=3.6 fixtures>=1.3.1 python-subunit>=0.0.18 testrepository>=0.0.18 testscenarios>=0.4 testtools>=1.4.0 <|file_sep|>current/test-requirements.txt hacking>=3.0,<4.0.0 # Apache-2.0 coverage>=3.6 fixtures>=1.3.1 python-subunit>=0.0.18 te...
hacking>=3.0.1,<3.1.0 # Apache-2.0 coverage>=3.6 fixtures>=1.3.1 python-subunit>=0.0.18 testrepository>=0.0.18 testscenarios>=0.4 testtools>=1.4.0
<|file_sep|>original/test-requirements.txt hacking>=3.0,<4.0.0 # Apache-2.0 coverage>=3.6 fixtures>=1.3.1 python-subunit>=0.0.18 testrepository>=0.0.18 testscenarios>=0.4 testtools>=1.4.0 <|file_sep|>current/test-requirements.txt hacking>=3.0,<4.0.0 # Apache-2.0 coverage>=3.6 fixtures>=1.3.1 python-subunit>=0.0.18 te...
bfc3c48685d4a2b258281d58063250ec2179114d
test-requirements.txt
test-requirements.txt
Text
<|file_sep|>original/lenses/hostname.aug Module: Hostname Parses /etc/hostname and /etc/mailname Author: Raphael Pinson <raphink@gmail.com> About: License This file is licenced under the LGPL v2+, like the rest of Augeas. *) module Hostname = autoload xfm (* View: lns *) let lns = [ label "hostname" . store R...
Module: Hostname Parses /etc/hostname and /etc/mailname Author: Raphael Pinson <raphink@gmail.com> About: License This file is licenced under the LGPL v2+, like the rest of Augeas. *) module Hostname = autoload xfm (* View: lns *) let lns = [ label "hostname" . store Rx.word . Util.eol ] | Util.empty (* View...
<|file_sep|>original/lenses/hostname.aug Module: Hostname Parses /etc/hostname and /etc/mailname Author: Raphael Pinson <raphink@gmail.com> About: License This file is licenced under the LGPL v2+, like the rest of Augeas. *) module Hostname = autoload xfm (* View: lns *) let lns = [ label "hostname" . store R...
acb6181298f9a23c643c82a8d6f282e595ba91a1
lenses/hostname.aug
lenses/hostname.aug
Augeas
<|file_sep|>original/assets/javascripts/routers/posts.js.coffee routerKey: 'posts' routes: "" : "root" "profile" : "myProfile" "posts" : "index" "posts/:entity/:post_id" : "conversation" "posts/:post_id" : "conversation" index: => unless TentStatus.con...
routerKey: 'posts' routes: "" : "root" "profile" : "myProfile" "posts" : "index" "posts/:entity/:post_id" : "conversation" "posts/:post_id" : "conversation" index: => if !TentStatus.authenticated or (TentStatus.config.current_entity.hostname != TentSta...
<|file_sep|>original/assets/javascripts/routers/posts.js.coffee routerKey: 'posts' routes: "" : "root" "profile" : "myProfile" "posts" : "index" "posts/:entity/:post_id" : "conversation" "posts/:post_id" : "conversation" index: => unless TentStatus.con...
648c66899ca55ece664a36f99de59b6c47c35009
assets/javascripts/routers/posts.js.coffee
assets/javascripts/routers/posts.js.coffee
CoffeeScript
<|file_sep|>original/test_requirements.txt # Core project/common application testing requirements pytest pytest-pep8 pytest-pylint pytest-cov pytest-django pytest-capturelog pytest-watch pytest-xdist mock ipdb ipython urltools semantic_version <|file_sep|>current/test_requirements.txt # Core project/common application...
# Core project/common application testing requirements pytest pytest-pep8 # logilab-common is only necessary because pylint's dependency chain will # result in the latest logilab-common being fetched, but astroid # (another pylint dependency) depends on logilab-common<=0.63.0 logilab-common==0.63.0 pytest-pylint pytes...
<|file_sep|>original/test_requirements.txt # Core project/common application testing requirements pytest pytest-pep8 pytest-pylint pytest-cov pytest-django pytest-capturelog pytest-watch pytest-xdist mock ipdb ipython urltools semantic_version <|file_sep|>current/test_requirements.txt # Core project/common application...
bd16f94f2bf25ca1f5a8d3de2c267afb283f5883
test_requirements.txt
test_requirements.txt
Text
<|file_sep|>original/week-07.md url: typografier-cheat-sheet - title: "Modulifier cheat sheet" url: modulifier-cheat-sheet group_activities: - title: "Finding patterns" url: finding-patterns pair: true type: pencil tasks: - title: "Module Mogul" type: activity - type: blank - title: ...
- title: "Modulifier cheat sheet" url: modulifier-cheat-sheet group_activities: - title: "Finding patterns" url: finding-patterns pair: true type: pencil tasks: - title: "Module Mogul" url: "https://activities.learn-the-web.algonquindesign.ca/module-mogul/" type: activity - type: blank...
<|file_sep|>original/week-07.md url: typografier-cheat-sheet - title: "Modulifier cheat sheet" url: modulifier-cheat-sheet group_activities: - title: "Finding patterns" url: finding-patterns pair: true type: pencil tasks: - title: "Module Mogul" type: activity - type: blank - title: ...
1e682af3a5235338ee07959da7c0613cea286cc4
week-07.md
week-07.md
Markdown
<|file_sep|>original/vendor/sinatra-hacks/lib/hacks.rb <|file_sep|>current/vendor/sinatra-hacks/lib/hacks.rb <|file_sep|>updated/vendor/sinatra-hacks/lib/hacks.rb
module Sinatra class EventContext def params @params ||= ParamsParser.new(@route_params.merge(@request.params)).to_hash end private class ParamsParser attr_reader :hash def initialize(hash) @hash = nested(hash) end alias :to_hash :hash ...
<|file_sep|>original/vendor/sinatra-hacks/lib/hacks.rb <|file_sep|>current/vendor/sinatra-hacks/lib/hacks.rb <|file_sep|>updated/vendor/sinatra-hacks/lib/hacks.rb module Sinatra class EventContext def params @params ||= ParamsParser.new(@route_params.merge(@request.params)).to_hash end privat...
ba29f3622491afb4b5720fd28fac7800ca691aaf
vendor/sinatra-hacks/lib/hacks.rb
vendor/sinatra-hacks/lib/hacks.rb
Ruby
<|file_sep|>code/administrator/components/com_banners/controllers/toolbars/banners.php.diff original: * @category Nooku updated: * @category Nooku <|file_sep|>code/administrator/components/com_banners/controllers/toolbars/banners.php.diff original: * @subpackage Articles updated: * @subpackage Banners <|file_s...
/** * Banners Toolbar Class * * @author Cristiano Cucco <http://nooku.assembla.com/profile/cristiano.cucco> * @category Nooku * @package Nooku_Server * @subpackage Banners */ class ComBannersControllerToolbarBanners extends ComDefaultControllerToolbarDefault { public function getCommands() ...
<|file_sep|>code/administrator/components/com_banners/controllers/toolbars/banners.php.diff original: * @category Nooku updated: * @category Nooku <|file_sep|>code/administrator/components/com_banners/controllers/toolbars/banners.php.diff original: * @subpackage Articles updated: * @subpackage Banners <|file_s...
048801cba6f4e069810d57fc5c3fec2d52a9e2c1
code/administrator/components/com_banners/controllers/toolbars/banners.php
code/administrator/components/com_banners/controllers/toolbars/banners.php
PHP
<|file_sep|>original/Casks/cave-story-en.rb <|file_sep|>current/Casks/cave-story-en.rb <|file_sep|>updated/Casks/cave-story-en.rb
cask :v1 => 'cave-story-en' do version :latest sha256 :no_check url 'https://dl.dropboxusercontent.com/u/73366966/Cave%20Story.zip?dl=1' name 'Cave Story' homepage 'http://www.cavestory.org' license :closed app 'Cave Story.app' end
<|file_sep|>original/Casks/cave-story-en.rb <|file_sep|>current/Casks/cave-story-en.rb <|file_sep|>updated/Casks/cave-story-en.rb cask :v1 => 'cave-story-en' do version :latest sha256 :no_check url 'https://dl.dropboxusercontent.com/u/73366966/Cave%20Story.zip?dl=1' name 'Cave Story' homepage 'http://www.c...
c81f8081f330ae758a33070c4cb3d739e828a85d
Casks/cave-story-en.rb
Casks/cave-story-en.rb
Ruby
<|file_sep|>lib/tasks/peoplefinder.rake.diff original: if ReminderMailer.inadequate_profile(recipient).deliver updated: if EmailAddress.new(recipient.email).valid_address? ReminderMailer.inadequate_profile(recipient).deliver <|file_sep|>lib/tasks/peoplefinder.rake.diff original: updated: ...
task inadequate_profile_reminders: :environment do recipients = inadequate_profiles_with_email puts "\nYou are about to email #{ recipients.count } people" puts "Are you sure you want to do this? [Y/N]" if STDIN.gets.chomp == 'Y' recipients.each do |recipient| if EmailAddress.new(reci...
<|file_sep|>lib/tasks/peoplefinder.rake.diff original: if ReminderMailer.inadequate_profile(recipient).deliver updated: if EmailAddress.new(recipient.email).valid_address? ReminderMailer.inadequate_profile(recipient).deliver <|file_sep|>lib/tasks/peoplefinder.rake.diff original: updated: ...
1da18af42746c40be2d0853924dcaa7f18f35a03
lib/tasks/peoplefinder.rake
lib/tasks/peoplefinder.rake
Ruby
<|file_sep|>original/bin/requirements.txt google-api-core==1.17.0 google-api-python-client==1.8.3 google-auth==1.14.3 google-auth-httplib2==0.0.3 google-auth-oauthlib==0.4.1 googleapis-common-protos==1.51.0 httplib2==0.17.3 idna==2.9 oauth2client==4.1.3 oauthlib==3.1.0 protobuf==3.11.3 pyasn1==0.4.8 pyasn1-modules==0.2...
google-api-core==1.17.0 google-api-python-client==1.8.3 google-auth==1.14.3 google-auth-httplib2==0.0.3 google-auth-oauthlib==0.4.1 googleapis-common-protos==1.51.0 httplib2==0.17.3 idna==2.9 oauth2client==4.1.3 oauthlib==3.1.0 protobuf==3.12.0 pyasn1==0.4.8 pyasn1-modules==0.2.8 python-slugify==4.0.0 pytube3==9.6.4 py...
<|file_sep|>original/bin/requirements.txt google-api-core==1.17.0 google-api-python-client==1.8.3 google-auth==1.14.3 google-auth-httplib2==0.0.3 google-auth-oauthlib==0.4.1 googleapis-common-protos==1.51.0 httplib2==0.17.3 idna==2.9 oauth2client==4.1.3 oauthlib==3.1.0 protobuf==3.11.3 pyasn1==0.4.8 pyasn1-modules==0.2...
731e63e4ad805a307a3de2eb2b0ef369603a7a63
bin/requirements.txt
bin/requirements.txt
Text
<|file_sep|>original/app/views/line_items/create.js.erb if ($('#cart tr').length == 1) { $('#cart').show('blind', 1000); } $('#cart').html("<%= escape_javascript render(@cart) %>"); $('#current_item').css({'background-color':'#88ff88'}). animate({'background-color':'#114411'}, 1000); <|file_sep|>current/app/views/li...
$('#notice').hide(); if ($('#cart tr').length == 1) { $('#cart').show('blind', 1000); } $('#cart').html("<%= escape_javascript render(@cart) %>"); $('#current_item').css({'background-color':'#88ff88'}). animate({'background-color':'#114411'}, 1000);
<|file_sep|>original/app/views/line_items/create.js.erb if ($('#cart tr').length == 1) { $('#cart').show('blind', 1000); } $('#cart').html("<%= escape_javascript render(@cart) %>"); $('#current_item').css({'background-color':'#88ff88'}). animate({'background-color':'#114411'}, 1000); <|file_sep|>current/app/views/li...
67888df133675fb976ba1172ac30e7a9e98d97f8
app/views/line_items/create.js.erb
app/views/line_items/create.js.erb
HTML+ERB
<|file_sep|>original/src/templates/parent/addRemoveAllRelations.php /** * Removes all Equal Nest <?php echo $pluralRefTableName ?> relations * * @see add<?php echo $refTableName ?>() * @see set<?php echo $pluralRefTableName ?>() */ public function remove<?php echo $pluralRefTableName ?>() { // this sets the c...
/** * Removes all Equal Nest <?php echo $pluralRefTableName ?> relations * * @see add<?php echo $refTableName ?>() * @see set<?php echo $pluralRefTableName ?>() */ public function remove<?php echo $pluralRefTableName ?>() { // this sets the collection to an empty Propel object collection; upon save, all relat...
<|file_sep|>original/src/templates/parent/addRemoveAllRelations.php /** * Removes all Equal Nest <?php echo $pluralRefTableName ?> relations * * @see add<?php echo $refTableName ?>() * @see set<?php echo $pluralRefTableName ?>() */ public function remove<?php echo $pluralRefTableName ?>() { // this sets the c...
22a5ab16f8d67154db75b4cb5b8c398018be007e
src/templates/parent/addRemoveAllRelations.php
src/templates/parent/addRemoveAllRelations.php
PHP
<|file_sep|>original/src/Plinth/Response/Parser.php */ if ($dictionary !== null) { $__ = function () use ($dictionary) { return call_user_func_array(array($dictionary, 'get'), func_get_args()); }; } /* * Push data into variables */ if (method_exists($self, 'hasData') && $self->hasData()) {...
*/ if ($dictionary !== null) { $__ = function () use ($dictionary) { return call_user_func_array(array($dictionary, 'get'), func_get_args()); }; } /* * Push data into variables */ if ($self instanceof Response && $self->hasData()) { $templateData = array_merge($templateData, $self->getD...
<|file_sep|>original/src/Plinth/Response/Parser.php */ if ($dictionary !== null) { $__ = function () use ($dictionary) { return call_user_func_array(array($dictionary, 'get'), func_get_args()); }; } /* * Push data into variables */ if (method_exists($self, 'hasData') && $self->hasData()) {...
abcd94a86452faa40cd3ba1f98b211e002541fbb
src/Plinth/Response/Parser.php
src/Plinth/Response/Parser.php
PHP
<|file_sep|>original/.github/workflows/update-contributors.yml branches: - master - auto-generate-contributors jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Set up Python uses: actions/setup-python@v2 with: python-version: "3.8" ...
runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Set up Python uses: actions/setup-python@v2 with: python-version: "3.8" - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt - name: Up...
<|file_sep|>original/.github/workflows/update-contributors.yml branches: - master - auto-generate-contributors jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Set up Python uses: actions/setup-python@v2 with: python-version: "3.8" ...
9344038479f7418284c0152ec9072cb35354d0b3
.github/workflows/update-contributors.yml
.github/workflows/update-contributors.yml
YAML
<|file_sep|>original/db/seeds/prisons/GHI-garth.yml name: Garth nomis_id: GHI enabled: true address: |- Ulnes Walton Leyland Preston postcode: PR26 8NE email_address: socialvisits.garth@hmps.gsi.gov.uk phone_no: 01772 443300 recurring: wed: - 1400-1600 thu: - 1400-1600 fri: - 1400-1600 sat: - 1400...
enabled: true address: |- Ulnes Walton Leyland Preston postcode: PR26 8NE email_address: socialvisits.garth@hmps.gsi.gov.uk phone_no: 01772 443300 recurring: wed: - 1400-1600 thu: - 1400-1600 fri: - 1400-1600 sat: - 1400-1600 sun: - 1400-1600 unbookable: - 2016-03-25
<|file_sep|>original/db/seeds/prisons/GHI-garth.yml name: Garth nomis_id: GHI enabled: true address: |- Ulnes Walton Leyland Preston postcode: PR26 8NE email_address: socialvisits.garth@hmps.gsi.gov.uk phone_no: 01772 443300 recurring: wed: - 1400-1600 thu: - 1400-1600 fri: - 1400-1600 sat: - 1400...
44bb139df12600ad62f3efe6f0913586f15bd643
db/seeds/prisons/GHI-garth.yml
db/seeds/prisons/GHI-garth.yml
YAML
<|file_sep|>original/compile_p4.sh exit 1 fi P4_BASENAME=$(basename ${1%.*}) P4DPDK_TARGET_DIR=${P4DPDK_TARGET_DIR-"build/$P4_BASENAME"} shift python src/compiler.py "${P4_SOURCE}" $* ERROR_CODE=$? if [ "$ERROR_CODE" -ne 0 ]; then echo P4 compilation failed with error code $ERROR_CODE exit $ERROR_CODE ...
exit 1 fi P4_BASENAME=$(basename ${1%.*}) P4DPDK_TARGET_DIR=${P4DPDK_TARGET_DIR-"build/$P4_BASENAME"} shift if [ "$PDB" != "" ]; then # note: Python 3.2+ also accepts a -c continue option # to remain compatible with Python 2.x, a "c" has to be typed at the start python -m "$PDB" src/compiler.py "...
<|file_sep|>original/compile_p4.sh exit 1 fi P4_BASENAME=$(basename ${1%.*}) P4DPDK_TARGET_DIR=${P4DPDK_TARGET_DIR-"build/$P4_BASENAME"} shift python src/compiler.py "${P4_SOURCE}" $* ERROR_CODE=$? if [ "$ERROR_CODE" -ne 0 ]; then echo P4 compilation failed with error code $ERROR_CODE exit $ERROR_CODE ...
b58c7ee7b63eaffd2772caa280c7e5d6e83e38a1
compile_p4.sh
compile_p4.sh
Shell
<|file_sep|>original/leetCodeOJ/algorithms/507_PerfectNumber/Solution.java <|file_sep|>current/leetCodeOJ/algorithms/507_PerfectNumber/Solution.java <|file_sep|>updated/leetCodeOJ/algorithms/507_PerfectNumber/Solution.java
public class Solution { public boolean checkPerfectNumber(int num) { if (num < 2) { return false; } int sum = 1; for (int i = 2; i <= Math.sqrt(num); i++) { if (num % i == 0) { sum += i; sum += num / i; } ...
<|file_sep|>original/leetCodeOJ/algorithms/507_PerfectNumber/Solution.java <|file_sep|>current/leetCodeOJ/algorithms/507_PerfectNumber/Solution.java <|file_sep|>updated/leetCodeOJ/algorithms/507_PerfectNumber/Solution.java public class Solution { public boolean checkPerfectNumber(int num) { if (num < 2)...
17a86c9e020c79ef96e10f890e2096727701a50f
leetCodeOJ/algorithms/507_PerfectNumber/Solution.java
leetCodeOJ/algorithms/507_PerfectNumber/Solution.java
Java
<|file_sep|>original/src/echo.erl <|file_sep|>current/src/echo.erl <|file_sep|>updated/src/echo.erl
-module(echo). -behaviour(gen_server). -behaviour(proto_handler). -export([start/2, send_msg/2]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -record(state, {parent, name}). start(Config, Parent) -> gen_server:start_link(echo, {Config, Parent}, []). send_msg(Pid, Msg...
<|file_sep|>original/src/echo.erl <|file_sep|>current/src/echo.erl <|file_sep|>updated/src/echo.erl -module(echo). -behaviour(gen_server). -behaviour(proto_handler). -export([start/2, send_msg/2]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -record(state, {parent, na...
fa64275fc7209ddb64b1a0e9bd43b781ccc0b12f
src/echo.erl
src/echo.erl
Erlang
<|file_sep|>original/lib/tasks/_jasmine.rake namespace :jasmine do desc 'Run node jasmine' task :run => :environment do puts 'Running Jasmine Specs...' system('npx jasmine-browser-runner runSpecs') end end if %w(development test).include? Rails.env task(:default).prerequisites.unshift('jasmine:run') if...
namespace :jasmine do desc 'Run node jasmine' task :run => :environment do puts 'Running Jasmine Specs...' system('npx jasmine-browser-runner runSpecs') or abort end end if %w(development test).include? Rails.env task(:default).prerequisites.unshift('jasmine:run') if Gem.loaded_specs.key?('jasmine') en...
<|file_sep|>original/lib/tasks/_jasmine.rake namespace :jasmine do desc 'Run node jasmine' task :run => :environment do puts 'Running Jasmine Specs...' system('npx jasmine-browser-runner runSpecs') end end if %w(development test).include? Rails.env task(:default).prerequisites.unshift('jasmine:run') if...
f06674ac23e18f461a0dbfa279e90b04c729b1eb
lib/tasks/_jasmine.rake
lib/tasks/_jasmine.rake
Ruby
<|file_sep|>original/kobo/hub/forms.py class TaskSearchForm(forms.Form): search = forms.CharField(required=False) my = forms.BooleanField(required=False) def get_query(self, request): self.is_valid() search = self.cleaned_data["search"] my = self.cleaned_data["my"] quer...
class TaskSearchForm(forms.Form): search = forms.CharField(required=False) my = forms.BooleanField(required=False) def get_query(self, request): self.is_valid() search = self.cleaned_data["search"] my = self.cleaned_data["my"] query = Q() if search: ...
<|file_sep|>original/kobo/hub/forms.py class TaskSearchForm(forms.Form): search = forms.CharField(required=False) my = forms.BooleanField(required=False) def get_query(self, request): self.is_valid() search = self.cleaned_data["search"] my = self.cleaned_data["my"] quer...
2ee1e8046323e2632c8cd8c8d88e3c313caabe1e
kobo/hub/forms.py
kobo/hub/forms.py
Python
<|file_sep|>spec/server/components/store/helper-spec.js.diff original: it('should return File doesn\'t exist. if the file can\'t be found', function (done) { updated: it('should return a message (File doesn\'t exist.) if the file can\'t be found', function (done) { <|file_sep|>original/spec/server/comp...
describe('checkExsits', function () { it('should return a message (File doesn\'t exist.) if the file can\'t be found', function (done) { storeHelper.checkExsits('/home/Abcd123') .catch(function(result) { expect(result.message).toBe('File doesn\'t exist.'); ...
<|file_sep|>spec/server/components/store/helper-spec.js.diff original: it('should return File doesn\'t exist. if the file can\'t be found', function (done) { updated: it('should return a message (File doesn\'t exist.) if the file can\'t be found', function (done) { <|file_sep|>original/spec/server/comp...
9c57e5785e106f9ad0436bd87e561a5c5ee0bb48
spec/server/components/store/helper-spec.js
spec/server/components/store/helper-spec.js
JavaScript
<|file_sep|>original/.travis.yml sudo: false language: node_js node_js: - "8" - "10" script: - npm run lint - npm test after_script: "npm run coverage" cache: directories: - node_modules matrix: fast_finish: true <|file_sep|>current/.travis.yml sudo: false language: node_js node_js: - "8" - "10" scr...
sudo: false language: node_js node_js: - "8" - "10" - "12" script: - npm run lint - npm test after_script: "npm run coverage" cache: directories: - node_modules matrix: fast_finish: true
<|file_sep|>original/.travis.yml sudo: false language: node_js node_js: - "8" - "10" script: - npm run lint - npm test after_script: "npm run coverage" cache: directories: - node_modules matrix: fast_finish: true <|file_sep|>current/.travis.yml sudo: false language: node_js node_js: - "8" - "10" scr...
3003bcf4f7e92e84035ee6db21890a7f0083c86e
.travis.yml
.travis.yml
YAML
<|file_sep|>original/server/routes/itemRoute.js .then((item) => res.json( item )) .catch(err) ) router.post('/api/items', (req, res, err) => { Item .create(req.body) .then((items) => res.json(items)) .catch(err); }); // router.put('/api/items/:_id', (req, res, err) => { // Item // .update({ ...
.then((item) => res.json( item )) .catch(err) ) router.post('/api/items', (req, res, err) => { Item .create(req.body) .then((items) => res.json(items)) .catch(err); }); router.put('/api/items/:_id', (req, res, err) => { Item .findOneAndUpdate({ _id:req.params._id }, {$set: { name: "1234566" ...
<|file_sep|>original/server/routes/itemRoute.js .then((item) => res.json( item )) .catch(err) ) router.post('/api/items', (req, res, err) => { Item .create(req.body) .then((items) => res.json(items)) .catch(err); }); // router.put('/api/items/:_id', (req, res, err) => { // Item // .update({ ...
775e2ff03c0be1446def3cb9d815e30e1bac4314
server/routes/itemRoute.js
server/routes/itemRoute.js
JavaScript
<|file_sep|>original/.github/workflows/build.yml name: websocket-client build and test on: [push] jobs: build: runs-on: ${{ matrix.os }} strategy: matrix: python-version: [3.8, 3.9] os: [ubuntu-latest, macOS-latest, windows-latest] steps: - name: Check out source repository...
name: websocket-client build and test on: [push] jobs: build: runs-on: ${{ matrix.os }} strategy: matrix: python-version: [2.7, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9] os: [ubuntu-latest, macOS-latest, windows-latest] steps: - name: Check out source repository uses: actions/c...
<|file_sep|>original/.github/workflows/build.yml name: websocket-client build and test on: [push] jobs: build: runs-on: ${{ matrix.os }} strategy: matrix: python-version: [3.8, 3.9] os: [ubuntu-latest, macOS-latest, windows-latest] steps: - name: Check out source repository...
f3ffce3321c553f1f4f051a76d3e644c3e8f03b9
.github/workflows/build.yml
.github/workflows/build.yml
YAML
<|file_sep|>original/requirements_dev.txt -r requirements.txt pip==9.0.1 bumpversion==0.5.3 wheel==0.30.0 watchdog==0.8.3 flake8==3.5.0 tox==2.9.1 coverage==4.5 Sphinx==1.6.7 cryptography==2.1.4 PyYAML==3.12 pytest==3.4.0 pytest-cov==2.5.1 pytest-docker==0.6.1 pytest-mock==1.6.3 docker-compose==1.18.0 packaging==16.8 <...
-r requirements.txt pip==9.0.1 bumpversion==0.5.3 wheel==0.30.0 watchdog==0.8.3 flake8==3.5.0 tox==2.9.1 coverage==4.5 Sphinx==1.6.7 cryptography==2.1.4 PyYAML==3.12 pytest==3.4.0 pytest-cov==2.5.1 pytest-docker==0.6.1 pytest-mock==1.6.3 docker-compose==1.19.0 packaging==16.8
<|file_sep|>original/requirements_dev.txt -r requirements.txt pip==9.0.1 bumpversion==0.5.3 wheel==0.30.0 watchdog==0.8.3 flake8==3.5.0 tox==2.9.1 coverage==4.5 Sphinx==1.6.7 cryptography==2.1.4 PyYAML==3.12 pytest==3.4.0 pytest-cov==2.5.1 pytest-docker==0.6.1 pytest-mock==1.6.3 docker-compose==1.18.0 packaging==16.8 <...
7f5dbc0b4fdcf1f1320df71df0a86ae144037bba
requirements_dev.txt
requirements_dev.txt
Text
<|file_sep|>original/appveyor.yml version: "{build}" os: Windows Server 2012 R2 clone_folder: c:\gopath\src\github.com\mholt\caddy environment: GOPATH: c:\gopath install: - go get golang.org/x/tools/cmd/vet - echo %PATH% - echo %GOPATH% - go version - go env - go get -d ./... build_script: - go vet...
version: "{build}" os: Windows Server 2012 R2 clone_folder: c:\gopath\src\github.com\mholt\caddy environment: GOPATH: c:\gopath install: - go get golang.org/x/tools/cmd/vet - echo %GOPATH% - go version - go env - go get -d ./... build_script: - go vet ./... - go test ./...
<|file_sep|>original/appveyor.yml version: "{build}" os: Windows Server 2012 R2 clone_folder: c:\gopath\src\github.com\mholt\caddy environment: GOPATH: c:\gopath install: - go get golang.org/x/tools/cmd/vet - echo %PATH% - echo %GOPATH% - go version - go env - go get -d ./... build_script: - go vet...
ea642f6e1dc7930ecc8f44fd310ae85c0639dbee
appveyor.yml
appveyor.yml
YAML
<|file_sep|>modules/nginx/spec/classes/nginx_spec.rb.diff original: 'ensure' => '1.2.1*' updated: 'ensure' => '1.2.1-1ubuntu0ppa2~lucid' <|file_sep|>original/modules/nginx/spec/classes/nginx_spec.rb require_relative '../../../../spec_helper' describe 'nginx', :type => :class do let(:params) { {'node_ty...
require_relative '../../../../spec_helper' describe 'nginx', :type => :class do let(:params) { {'node_type' => 'redirect'} } let(:name) { 'blah' } it { should contain_package('nginx').with({ 'ensure' => '1.2.1-1ubuntu0ppa2~lucid' })} # it { should contain_file('/etc/nginx/sites-available/bla...
<|file_sep|>modules/nginx/spec/classes/nginx_spec.rb.diff original: 'ensure' => '1.2.1*' updated: 'ensure' => '1.2.1-1ubuntu0ppa2~lucid' <|file_sep|>original/modules/nginx/spec/classes/nginx_spec.rb require_relative '../../../../spec_helper' describe 'nginx', :type => :class do let(:params) { {'node_ty...
cbe3825c6019e345777742628ce352d4ae7af912
modules/nginx/spec/classes/nginx_spec.rb
modules/nginx/spec/classes/nginx_spec.rb
Ruby
<|file_sep|>original/README.md # Amberbot A easier chat bot develop kit. ## Installation Add this line to your application's Gemfile: ```ruby gem 'amberbot' ``` And then execute: $ bundle Or install it yourself as: $ gem install amberbot ## Usage <|file_sep|>current/README.md # Amberbot A easier chat ...
# Amberbot [![Build Status](https://travis-ci.org/AmberBot/AmberBot.svg?branch=develop)](https://travis-ci.org/AmberBot/AmberBot) [![Code Climate](https://codeclimate.com/github/AmberBot/AmberBot/badges/gpa.svg)](https://codeclimate.com/github/AmberBot/AmberBot) A easier chat bot develop kit. ## Installation Add thi...
<|file_sep|>original/README.md # Amberbot A easier chat bot develop kit. ## Installation Add this line to your application's Gemfile: ```ruby gem 'amberbot' ``` And then execute: $ bundle Or install it yourself as: $ gem install amberbot ## Usage <|file_sep|>current/README.md # Amberbot A easier chat ...
096c2a0a72ee543340ff9c986117e3ee65859f18
README.md
README.md
Markdown
<|file_sep|>original/metadata/uk.co.yahoo.p1rpp.calendartrigger.txt Auto Name:Calendar Trigger Summary:Trigger actions on calendar events Description: Trigger various actions on different types of calendar event, and handle overlapping events wanting different ringer states in a sensible way (the "quietest" state wins)...
Auto Name:Calendar Trigger Summary:Trigger actions on calendar events Description: Trigger various actions on different types of calendar event, and handle overlapping events wanting different ringer states in a sensible way (the "quietest" state wins). Also the start and end actions for an event can be delayed until t...
<|file_sep|>original/metadata/uk.co.yahoo.p1rpp.calendartrigger.txt Auto Name:Calendar Trigger Summary:Trigger actions on calendar events Description: Trigger various actions on different types of calendar event, and handle overlapping events wanting different ringer states in a sensible way (the "quietest" state wins)...
628cf2b4c53786b0d606729c24883dd7274900fc
metadata/uk.co.yahoo.p1rpp.calendartrigger.txt
metadata/uk.co.yahoo.p1rpp.calendartrigger.txt
Text
<|file_sep|>original/.travis.yml sudo: false language: node_js node_js: - "0.10" - "0.11" - "0.12" - "4.0" - "4.1" env: - CXX=g++-4.8 addons: apt: sources: - ubuntu-toolchain-r-test packages: - g++-4.8 before_install: - npm install -g bob coveralls --loglevel error script: - DEBUG=...
sudo: false language: node_js node_js: - "4.4" - "6.3" env: - CXX=g++-4.8 addons: apt: sources: - ubuntu-toolchain-r-test packages: - g++-4.8 before_install: - npm install -g bob coveralls --loglevel error script: - DEBUG=canihaz bob build - cat .bob/coverage/buster-istanbul/lcov.info ...
<|file_sep|>original/.travis.yml sudo: false language: node_js node_js: - "0.10" - "0.11" - "0.12" - "4.0" - "4.1" env: - CXX=g++-4.8 addons: apt: sources: - ubuntu-toolchain-r-test packages: - g++-4.8 before_install: - npm install -g bob coveralls --loglevel error script: - DEBUG=...
361403ea38424ed6738ef0c82ec47e02afe989c2
.travis.yml
.travis.yml
YAML
<|file_sep|>original/db/seeds.rb # # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) # Mayor.create(name: 'Emanuel', city: cities.first) # Populate ICZN groups # Levels are used to provide a sort order, with enough distance between to allow intermediate IcznGroups to be created later IcznGroup....
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) # Mayor.create(name: 'Emanuel', city: cities.first) # Populate ICZN groups # Levels are used to provide a sort order, with enough distance between to allow intermediate IcznGroups to be created later IcznGroup.destroy_all IcznGroup.create([ ...
<|file_sep|>original/db/seeds.rb # # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) # Mayor.create(name: 'Emanuel', city: cities.first) # Populate ICZN groups # Levels are used to provide a sort order, with enough distance between to allow intermediate IcznGroups to be created later IcznGroup....
cc703ac50ad87663bbe02ff97c97e197e7fa77e2
db/seeds.rb
db/seeds.rb
Ruby
<|file_sep|>original/Cargo.toml serde = "~1.0.0" serde_derive = "~1.0.0" smallvec = "~1.4.0" strum = "~0.18.0" strum_macros = "~0.18.0" thiserror = "~1.0.0" toml = "~0.5.0" ureq = "~1.2.0" [dependencies.chrono] version = "~0.4.0" features = [ "serde" ] [dependencies.diesel] version = "~1.4.0" default-features = false...
serde_derive = "~1.0.0" smallvec = "~1.4.0" strum = "~0.18.0" strum_macros = "~0.18.0" thiserror = "~1.0.0" toml = "~0.5.0" ureq = "~1.2.0" [dependencies.chrono] version = "~0.4.0" features = [ "serde" ] [dependencies.diesel] version = "~1.4.0" default-features = false features = [ "sqlite", "chrono" ] [profile.rele...
<|file_sep|>original/Cargo.toml serde = "~1.0.0" serde_derive = "~1.0.0" smallvec = "~1.4.0" strum = "~0.18.0" strum_macros = "~0.18.0" thiserror = "~1.0.0" toml = "~0.5.0" ureq = "~1.2.0" [dependencies.chrono] version = "~0.4.0" features = [ "serde" ] [dependencies.diesel] version = "~1.4.0" default-features = false...
812141b9bb108b62b895c618155092acdf6a4a62
Cargo.toml
Cargo.toml
TOML
<|file_sep|>original/Cargo.toml [badges] travis-ci = { repository = "jugglerchris/rust-html2text" } appveyor = { repository = "jugglerchris/rust-html2text", service = "github" } [dependencies] html5ever = "0.25.0" unicode-width = "0.1.5" backtrace = { version = "0.3", optional=true } markup5ever_rcdom = "0.1.0" termi...
[badges] travis-ci = { repository = "jugglerchris/rust-html2text" } appveyor = { repository = "jugglerchris/rust-html2text", service = "github" } [dependencies] html5ever = "0.25.0" unicode-width = "0.1.5" backtrace = { version = "0.3", optional=true } markup5ever_rcdom = "0.1.0" [features] html_trace = [] html_trac...
<|file_sep|>original/Cargo.toml [badges] travis-ci = { repository = "jugglerchris/rust-html2text" } appveyor = { repository = "jugglerchris/rust-html2text", service = "github" } [dependencies] html5ever = "0.25.0" unicode-width = "0.1.5" backtrace = { version = "0.3", optional=true } markup5ever_rcdom = "0.1.0" termi...
eccc7405920fdb9457437acd048d8818759a0961
Cargo.toml
Cargo.toml
TOML
<|file_sep|>original/app/workers/activitypub/synchronize_featured_collection_worker.rb # frozen_string_literal: true class ActivityPub::SynchronizeFeaturedCollectionWorker include Sidekiq::Worker sidekiq_options queue: 'pull' def perform(account_id) ActivityPub::FetchFeaturedCollectionService.new.call(Acco...
# frozen_string_literal: true class ActivityPub::SynchronizeFeaturedCollectionWorker include Sidekiq::Worker sidekiq_options queue: 'pull', unique: :until_executed def perform(account_id) ActivityPub::FetchFeaturedCollectionService.new.call(Account.find(account_id)) rescue ActiveRecord::RecordNotFound ...
<|file_sep|>original/app/workers/activitypub/synchronize_featured_collection_worker.rb # frozen_string_literal: true class ActivityPub::SynchronizeFeaturedCollectionWorker include Sidekiq::Worker sidekiq_options queue: 'pull' def perform(account_id) ActivityPub::FetchFeaturedCollectionService.new.call(Acco...
9627cb624f890a8eaebe002514f381e74d47eb2a
app/workers/activitypub/synchronize_featured_collection_worker.rb
app/workers/activitypub/synchronize_featured_collection_worker.rb
Ruby
<|file_sep|>package.json.diff original: "babelify" updated: ["babelify", {"presets": ["es2015"]}] <|file_sep|>original/package.json "author": "Dan Phillimore <daniel.phillimore@jadu.co.uk>", "license": "MIT", "devDependencies": { "chai": "^3.0.0", "jquery": "^2.1.4", "jshint": "^2.8.0", ...
"license": "MIT", "devDependencies": { "chai": "^3.0.0", "jquery": "^2.1.4", "jshint": "^2.8.0", "mochify": "^2.9.0", "phantomjs": "^1.9.17", "sinon": "^1.15.3", "sinon-chai": "^2.8.0" }, "browserify": { "transform": [ ["babelify", {"presets": ["es2015"]}] ] }, "dep...
<|file_sep|>package.json.diff original: "babelify" updated: ["babelify", {"presets": ["es2015"]}] <|file_sep|>original/package.json "author": "Dan Phillimore <daniel.phillimore@jadu.co.uk>", "license": "MIT", "devDependencies": { "chai": "^3.0.0", "jquery": "^2.1.4", "jshint": "^2.8.0", ...
202e9357c519033d7aa9a2a63fcaaef2171f77a1
package.json
package.json
JSON
<|file_sep|>original/mat/src/mat-formats.adb -- 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. --...
-- ------------------------------ -- Format the address into a string. -- ------------------------------ function Addr (Value : in MAT.Types.Target_Addr) return String is Hex : constant String := MAT.Types.Hex_Image (Value); begin return Hex; end Addr; -- -------------------------...
<|file_sep|>original/mat/src/mat-formats.adb -- 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. --...
560eff37d2893ed598e42721e862521e5b653bf5
mat/src/mat-formats.adb
mat/src/mat-formats.adb
Ada
<|file_sep|>original/fish/install.sh #!/bin/sh if [ "$(uname -s)" == "Darwin" ]; then brew install fish # Add fish to standard shells echo "/usr/local/bin/fish" | sudo tee -a /etc/shells # Make fish your default shell chsh -s /usr/local/bin/fish if ! [ -d "$HOME/.config" ]; then mkdir "$HOME/.config...
#!/bin/sh if [ "$(uname -s)" == "Darwin" ]; then if ! command -v fish >/dev/null 2>&1; then brew install fish fi # Add fish to standard shells echo "/usr/local/bin/fish" | sudo tee -a /etc/shells # Make fish your default shell chsh -s /usr/local/bin/fish if ! [ -d "$HOME/.config" ]; then mkdir...
<|file_sep|>original/fish/install.sh #!/bin/sh if [ "$(uname -s)" == "Darwin" ]; then brew install fish # Add fish to standard shells echo "/usr/local/bin/fish" | sudo tee -a /etc/shells # Make fish your default shell chsh -s /usr/local/bin/fish if ! [ -d "$HOME/.config" ]; then mkdir "$HOME/.config...
152c3963d5c4543457bec910e84b7b613f2c32d3
fish/install.sh
fish/install.sh
Shell
<|file_sep|>original/css/bamos.css body { padding-top: 50px; } .starter-template { padding: 40px 15px; text-align: justify; } img { border: none; } .alignleft { float:left; margin:0 15px 5px 0; } .alignright { float:right; margin:0 0 5px 15px; } img.border { border:3px solid #888; padding:4px; } .footer-links { ...
/* From @mnot at: https://github.com/twbs/bootstrap/issues/1767 */ *[id]:before { display: block; content: " "; margin-top: -75px; height: 75px; visibility: hidden; } .starter-template { padding: 40px 15px; text-align: justify; } img { border: none; } .alignleft { float:left; margin:0 15px 5px 0; } .align...
<|file_sep|>original/css/bamos.css body { padding-top: 50px; } .starter-template { padding: 40px 15px; text-align: justify; } img { border: none; } .alignleft { float:left; margin:0 15px 5px 0; } .alignright { float:right; margin:0 0 5px 15px; } img.border { border:3px solid #888; padding:4px; } .footer-links { ...
48f80266266a45149fd347aa096fc143cb28e098
css/bamos.css
css/bamos.css
CSS
<|file_sep|>lib/rom/sql/mapper_compiler.rb.diff original: name, _, meta = node updated: name, _, meta_options = node <|file_sep|>original/lib/rom/sql/mapper_compiler.rb require 'rom/mapper_compiler' module ROM module SQL class MapperCompiler < ROM::MapperCompiler def visit_attribute(node) ...
require 'rom/mapper_compiler' module ROM module SQL class MapperCompiler < ROM::MapperCompiler def visit_attribute(node) name, _, meta_options = node if meta_options[:wrapped] [name, from: meta_options[:alias]] else [name] end end end end end
<|file_sep|>lib/rom/sql/mapper_compiler.rb.diff original: name, _, meta = node updated: name, _, meta_options = node <|file_sep|>original/lib/rom/sql/mapper_compiler.rb require 'rom/mapper_compiler' module ROM module SQL class MapperCompiler < ROM::MapperCompiler def visit_attribute(node) ...
0cdf7de630dbb0e6a99033e71e1201167a4d809e
lib/rom/sql/mapper_compiler.rb
lib/rom/sql/mapper_compiler.rb
Ruby
<|file_sep|>original/.travis.yml language: node_js node_js: - "0.10" before_install: - npm install -g grunt-cli - gem install compass before_script: grunt build after_success: ./bower-publish.sh env: global: secure: WbrrS9cR3vpRXtPp/YdtsKZHwWkTDBaqPdXh6+rasQf1pvKfjPaL1bVFDomxsppIa6RjVJyTxJDU4sYnsemop/0v...
language: node_js node_js: - "0.10" before_install: - npm install -g grunt-cli - gem install bundler - bundle install before_script: grunt build after_success: ./bower-publish.sh env: global: secure: WbrrS9cR3vpRXtPp/YdtsKZHwWkTDBaqPdXh6+rasQf1pvKfjPaL1bVFDomxsppIa6RjVJyTxJDU4sYnsemop/0vlSs+YuF1e+iPXf...
<|file_sep|>original/.travis.yml language: node_js node_js: - "0.10" before_install: - npm install -g grunt-cli - gem install compass before_script: grunt build after_success: ./bower-publish.sh env: global: secure: WbrrS9cR3vpRXtPp/YdtsKZHwWkTDBaqPdXh6+rasQf1pvKfjPaL1bVFDomxsppIa6RjVJyTxJDU4sYnsemop/0v...
72cf9e7eb5d7e59fe542cefed23e8a68824475b6
.travis.yml
.travis.yml
YAML
<|file_sep|>original/change-notes/1.24/analysis-cpp.md # Improvements to C/C++ analysis The following changes in version 1.24 affect C/C++ analysis in all applications. ## General improvements ## New queries | **Query** | **Tags** | **Purpose** ...
The following changes in version 1.24 affect C/C++ analysis in all applications. ## General improvements ## New queries | **Query** | **Tags** | **Purpose** | |-----------------------------|-----------|-----------------------------------------...
<|file_sep|>original/change-notes/1.24/analysis-cpp.md # Improvements to C/C++ analysis The following changes in version 1.24 affect C/C++ analysis in all applications. ## General improvements ## New queries | **Query** | **Tags** | **Purpose** ...
1d233f2f9eb6b49e1ca7d5c6709a6e03de48857b
change-notes/1.24/analysis-cpp.md
change-notes/1.24/analysis-cpp.md
Markdown
<|file_sep|>original/modules/demomain.cpp #include <string> #include "runDiff.h" int main(int argc, const char * argv[]) { if (argc != 2 ) { std::cerr<<"Usage: "<<argv[0]<<" input file name"<<std::endl; return 1; } runFiles(string(argv[1])); return 0; } <|file_sep|>current/modules/demomain.cpp #include <strin...
#include <string> #include "runDiff.h" int main(int argc, const char * argv[]) { if (argc != 2 ) { std::cerr<<"Usage: "<<argv[0]<<" input file name"<<std::endl; return 1; } runFiles(std::string(argv[1])); return 0; }
<|file_sep|>original/modules/demomain.cpp #include <string> #include "runDiff.h" int main(int argc, const char * argv[]) { if (argc != 2 ) { std::cerr<<"Usage: "<<argv[0]<<" input file name"<<std::endl; return 1; } runFiles(string(argv[1])); return 0; } <|file_sep|>current/modules/demomain.cpp #include <strin...
e313f3f00f577d6baa3c4ec6f0c96ada2780dd8a
modules/demomain.cpp
modules/demomain.cpp
C++
<|file_sep|>original/app/views/trails/_river.html.erb <% else %> <%= link_to image_tag("snowflake.png", class: "snowflake") %> <% end %> <br> <%= comment.votes.sum(:value) %> </div> <div class="comment-container"> <ul> <li><p class="comment"><%= comment.content%></li><br> <li>P...
<% else %> <%= link_to image_tag("snowflake.png", class: "snowflake") %> <% end %> <br> <%= comment.votes.sum(:value) %> </div> <div class="comment-container"> <ul> <li><p class="comment"><%= comment.content%></li><br> <li>Posted by: <%= comment.user.name %></li> <% if cu...
<|file_sep|>original/app/views/trails/_river.html.erb <% else %> <%= link_to image_tag("snowflake.png", class: "snowflake") %> <% end %> <br> <%= comment.votes.sum(:value) %> </div> <div class="comment-container"> <ul> <li><p class="comment"><%= comment.content%></li><br> <li>P...
bc9a5589aef1a8b93eb99b51b73a2fa78347eb9e
app/views/trails/_river.html.erb
app/views/trails/_river.html.erb
HTML+ERB
<|file_sep|>original/tools/psycopg2_experiment.py <|file_sep|>current/tools/psycopg2_experiment.py <|file_sep|>updated/tools/psycopg2_experiment.py
#!/usr/bin/env python ''' A CLI tool for formulating an Abba url using data from PostgreSQL ''' from __future__ import print_function import argparse import psycopg2 import sys TOOL_DESCRIPTION = ''' Formulates an Abba url using data from PostgreSQL The query passed to this tool should return three columns, which ...
<|file_sep|>original/tools/psycopg2_experiment.py <|file_sep|>current/tools/psycopg2_experiment.py <|file_sep|>updated/tools/psycopg2_experiment.py #!/usr/bin/env python ''' A CLI tool for formulating an Abba url using data from PostgreSQL ''' from __future__ import print_function import argparse import psycopg2 im...
29e9d3a5fbac2730acd4c2115399556b09fb83e5
tools/psycopg2_experiment.py
tools/psycopg2_experiment.py
Python
<|file_sep|>original/lib/phoenix.ex (these docs) * [Phoenix HTML](http://hexdocs.pm/phoenix_html) - conveniences for working with HTML in Phoenix * [Plug](http://hexdocs.pm/plug) - a specification and conveniences for composable modules in between web applications There are also optional ...
(these docs) * [Phoenix HTML](http://hexdocs.pm/phoenix_html) - conveniences for working with HTML in Phoenix * [Plug](http://hexdocs.pm/plug) - a specification and conveniences for composable modules in between web applications There are also optional packages depending on your configura...
<|file_sep|>original/lib/phoenix.ex (these docs) * [Phoenix HTML](http://hexdocs.pm/phoenix_html) - conveniences for working with HTML in Phoenix * [Plug](http://hexdocs.pm/plug) - a specification and conveniences for composable modules in between web applications There are also optional ...
f273f8326c270b9de3434f159bab1698d845c055
lib/phoenix.ex
lib/phoenix.ex
Elixir
<|file_sep|>original/newsApp/linkManager.py DbItemManagerV2.__init__(self, os.environ['LINKTAGSTABLE_CONNECTIONSTRING']) def get(self, linkId): """ Put a new link. """ dbItem = DbItemManagerV2.get(self, linkId); return Link(linkId, dbItem.tags) def...
DbItemManagerV2.__init__(self, os.environ['LINKTAGSTABLE_CONNECTIONSTRING']) def get(self, linkId): """ Put a new link. """ dbItem = DbItemManagerV2.get(self, linkId); link = Link(linkId, dbItem.tags) #handle the case when link starts gettting ...
<|file_sep|>original/newsApp/linkManager.py DbItemManagerV2.__init__(self, os.environ['LINKTAGSTABLE_CONNECTIONSTRING']) def get(self, linkId): """ Put a new link. """ dbItem = DbItemManagerV2.get(self, linkId); return Link(linkId, dbItem.tags) def...
547c9e36255870bcee8a800a3fa95c3806a95c2c
newsApp/linkManager.py
newsApp/linkManager.py
Python
<|file_sep|>original/README.md ### Looking for the issue tracker? It's moved to [https://enyojs.atlassian.net](https://enyojs.atlassian.net). --- ## Enyo Extra Library Extra is a library for Enyo 2. This mainly consists of code that doesn't fit into Enyo core, but is useful for the various projects we're supporting...
## Enyo Extra Library Extra is a library for Enyo 2. This mainly consists of code that doesn't fit into Enyo core, but is useful for the various projects we're supporting. If we were doing this over, most of this would be its own repos. * analyzer2 - an updated JS code analysis library used by both api-tool and are...
<|file_sep|>original/README.md ### Looking for the issue tracker? It's moved to [https://enyojs.atlassian.net](https://enyojs.atlassian.net). --- ## Enyo Extra Library Extra is a library for Enyo 2. This mainly consists of code that doesn't fit into Enyo core, but is useful for the various projects we're supporting...
57264fbd81a69d16c6226a458b257e6966323788
README.md
README.md
Markdown
<|file_sep|>.travis.yml.diff original: updated: env: global: - BUILD_LEADER_ID=2 <|file_sep|>original/.travis.yml sudo: false language: node_js notifications: email: false node_js: - 4 - 6 matrix: fast_finish: true script: npm run travis before_install: - npm i -g npm@^3.0.0 before_script: - npm prun...
sudo: false language: node_js notifications: email: false node_js: - 4 - 6 matrix: fast_finish: true env: global: - BUILD_LEADER_ID=2 script: npm run travis before_install: - npm i -g npm@^3.0.0 before_script: - npm prune after_success: - npm install -g npx - npx -p node@8 npm run semantic-release
<|file_sep|>.travis.yml.diff original: updated: env: global: - BUILD_LEADER_ID=2 <|file_sep|>original/.travis.yml sudo: false language: node_js notifications: email: false node_js: - 4 - 6 matrix: fast_finish: true script: npm run travis before_install: - npm i -g npm@^3.0.0 before_script: - npm prun...
3661ac3fe6035f982359120d29682be76695bdfc
.travis.yml
.travis.yml
YAML
<|file_sep|>original/tempest/stress/actions/volume_create_delete.py # limitations under the License. from tempest.common.utils import data_utils import tempest.stress.stressaction as stressaction class VolumeCreateDeleteTest(stressaction.StressAction): def run(self): name = data_utils.rand_name("volu...
# limitations under the License. from tempest.common.utils import data_utils import tempest.stress.stressaction as stressaction class VolumeCreateDeleteTest(stressaction.StressAction): def run(self): name = data_utils.rand_name("volume") self.logger.info("creating %s" % name) volumes_...
<|file_sep|>original/tempest/stress/actions/volume_create_delete.py # limitations under the License. from tempest.common.utils import data_utils import tempest.stress.stressaction as stressaction class VolumeCreateDeleteTest(stressaction.StressAction): def run(self): name = data_utils.rand_name("volu...
e0ff626423944ed3b1e08ddeebbfcf60885307a5
tempest/stress/actions/volume_create_delete.py
tempest/stress/actions/volume_create_delete.py
Python
<|file_sep|>src/config.yaml.diff original: updated: albumtype:soundtrack: Soundtracks/$album%aunique{}/$track - $artist - $title <|file_sep|>original/src/config.yaml per_disc_numbering: no ui: color: yes paths: default: Albums/$albumartist/$album%aunique{}/$track - $artist - $title singleton: Individ...
per_disc_numbering: no ui: color: yes paths: default: Albums/$albumartist/$album%aunique{}/$track - $artist - $title singleton: Individual\ Tracks/$artist - $title albumtype:soundtrack: Soundtracks/$album%aunique{}/$track - $artist - $title comp: Compilations/$album%aunique{}/$track - $artist - $t...
<|file_sep|>src/config.yaml.diff original: updated: albumtype:soundtrack: Soundtracks/$album%aunique{}/$track - $artist - $title <|file_sep|>original/src/config.yaml per_disc_numbering: no ui: color: yes paths: default: Albums/$albumartist/$album%aunique{}/$track - $artist - $title singleton: Individ...
1d5c6f925ba9fad0de9e647228736eeb4b8e7b16
src/config.yaml
src/config.yaml
YAML
<|file_sep|>original/dev-requirements.txt mypy==0.511 pytest==3.1.1 pytest-cov==2.5.1 pytest-asyncio==0.6.0 jedi==0.10.2 coverage==4.4.1 pylint==1.7.1 typed-ast==1.0.3 <|file_sep|>current/dev-requirements.txt mypy==0.511 pytest==3.1.1 pytest-cov==2.5.1 pytest-asyncio==0.6.0 jedi==0.10.2 coverage==4.4.1 pylint==1.7.1 ty...
mypy==0.511 pytest==3.1.1 pytest-cov==2.5.1 pytest-asyncio==0.6.0 jedi==0.10.2 coverage==4.4.1 pylint==1.7.1 typed-ast==1.0.4
<|file_sep|>original/dev-requirements.txt mypy==0.511 pytest==3.1.1 pytest-cov==2.5.1 pytest-asyncio==0.6.0 jedi==0.10.2 coverage==4.4.1 pylint==1.7.1 typed-ast==1.0.3 <|file_sep|>current/dev-requirements.txt mypy==0.511 pytest==3.1.1 pytest-cov==2.5.1 pytest-asyncio==0.6.0 jedi==0.10.2 coverage==4.4.1 pylint==1.7.1 ty...
cc85263116ec31dfbc66fed36b8e6b0b6c8c0238
dev-requirements.txt
dev-requirements.txt
Text
<|file_sep|>original/.eslintrc.js parserOptions: { ecmaFeatures: { experimentalObjectRestSpread: true, jsx: true }, sourceType: 'module' }, plugins: ['filenames'], settings: { react: { version: package.dependencies.react } }, rules: { 'no-console': 'warn', 'file...
ecmaFeatures: { experimentalObjectRestSpread: true, jsx: true }, sourceType: 'module' }, plugins: ['filenames'], settings: { react: { version: package.dependencies.react } }, rules: { 'no-console': 'warn', 'filenames/match-exported': 'error', 'flowtype/require...
<|file_sep|>original/.eslintrc.js parserOptions: { ecmaFeatures: { experimentalObjectRestSpread: true, jsx: true }, sourceType: 'module' }, plugins: ['filenames'], settings: { react: { version: package.dependencies.react } }, rules: { 'no-console': 'warn', 'file...
6d7db94be7d772f35ee1c0b6c849963ba43856e6
.eslintrc.js
.eslintrc.js
JavaScript
<|file_sep|>original/lib/AbleCore/TaxonomyTerm.php /** * By Vocabulary * * Gets all taxonomy terms by the specified vocabulary. * * @param string $vocabulary_machine_name The machine name of the vocabulary. * * @return array An array of TaxonomyTerm items. */ public static function byVocabulary($voca...
/** * By Vocabulary * * Gets all taxonomy terms by the specified vocabulary. * * @param string $vocabulary_machine_name The machine name of the vocabulary. * * @return array An array of TaxonomyTerm items. */ public static function byVocabulary($vocabulary_machine_name) { $query = db_select('taxon...
<|file_sep|>original/lib/AbleCore/TaxonomyTerm.php /** * By Vocabulary * * Gets all taxonomy terms by the specified vocabulary. * * @param string $vocabulary_machine_name The machine name of the vocabulary. * * @return array An array of TaxonomyTerm items. */ public static function byVocabulary($voca...
1dddb59a2124f32082a66246c9ff8009c5c38c47
lib/AbleCore/TaxonomyTerm.php
lib/AbleCore/TaxonomyTerm.php
PHP
<|file_sep|>original/omnibus/files/pushy-server-cookbooks/opscode-pushy-server/libraries/helper.rb # require 'chef/shell_out' class OmnibusHelper def self.should_notify?(service_name, path = "/opt/opscode-push-jobs-server", command = "opscode-push-jobs-server-ctl"...
# require 'chef/shell_out' class OmnibusHelper def self.should_notify?(service_name, path = "/opt/opscode-push-jobs-server", command = "opscode-push-jobs-server-ctl") File.symlink?("#{path}/service/#{service_name}") && check_status(service_name, path, command)...
<|file_sep|>original/omnibus/files/pushy-server-cookbooks/opscode-pushy-server/libraries/helper.rb # require 'chef/shell_out' class OmnibusHelper def self.should_notify?(service_name, path = "/opt/opscode-push-jobs-server", command = "opscode-push-jobs-server-ctl"...
235bd038fb291388d78c805e4acadb8e0057f456
omnibus/files/pushy-server-cookbooks/opscode-pushy-server/libraries/helper.rb
omnibus/files/pushy-server-cookbooks/opscode-pushy-server/libraries/helper.rb
Ruby
<|file_sep|>app/controllers/concerns/ownership_checkable.rb.diff original: user.admin || user.id == entity.owner_id updated: if user.nil? false else user.admin || user.id == entity.owner_id end <|file_sep|>original/app/controllers/concerns/ownership_checkable.rb def is_owner?(entity, user...
def is_owner?(entity, user) if user.nil? false else user.admin || user.id == entity.owner_id end end def is_contributor?(entity, user) if user.nil? false else user.admin || is_owner?(entity, user) || entity.contributors.map{ |c| c.screen_name.downcase }.include?(user....
<|file_sep|>app/controllers/concerns/ownership_checkable.rb.diff original: user.admin || user.id == entity.owner_id updated: if user.nil? false else user.admin || user.id == entity.owner_id end <|file_sep|>original/app/controllers/concerns/ownership_checkable.rb def is_owner?(entity, user...
4acb58b3aed5c2d7548613197e5ec027aa187084
app/controllers/concerns/ownership_checkable.rb
app/controllers/concerns/ownership_checkable.rb
Ruby
<|file_sep|>original/src/documentation/pages/Breadcrumb/examples/BreadcrumbExample.hbs {{> Breadcrumb props=props}} <script type="text/javascript"> var BreadCrumbHTML = document.querySelector('.ms-BreadCrumb'); var BreadCrumb = new fabric['.ms-BreadCrumb'](BreadCrumbHTML); </script> <|file_sep|>current/src/documen...
{{> Breadcrumb props=props}} <script type="text/javascript"> var BreadcrumbHTML = document.querySelector('.ms-Breadcrumb'); var Breadcrumb = new fabric['Breadcrumb'](BreadcrumbHTML); </script>
<|file_sep|>original/src/documentation/pages/Breadcrumb/examples/BreadcrumbExample.hbs {{> Breadcrumb props=props}} <script type="text/javascript"> var BreadCrumbHTML = document.querySelector('.ms-BreadCrumb'); var BreadCrumb = new fabric['.ms-BreadCrumb'](BreadCrumbHTML); </script> <|file_sep|>current/src/documen...
8c865a69c42f244ad67eddf09be362715f8e97dc
src/documentation/pages/Breadcrumb/examples/BreadcrumbExample.hbs
src/documentation/pages/Breadcrumb/examples/BreadcrumbExample.hbs
Handlebars
<|file_sep|>original/tox.ini # Tox (http://tox.testrun.org/) is a tool for running tests # in multiple virtualenvs. This configuration file will run the # test suite on all supported python versions. To use it, "pip install tox" # and then run "tox" from this directory. [tox] envlist = py27, py34, py35 usedevelop = Tr...
# Tox (http://tox.testrun.org/) is a tool for running tests # in multiple virtualenvs. This configuration file will run the # test suite on all supported python versions. To use it, "pip install tox" # and then run "tox" from this directory. [tox] envlist = py27, py34, py37 usedevelop = True # basic install ensures t...
<|file_sep|>original/tox.ini # Tox (http://tox.testrun.org/) is a tool for running tests # in multiple virtualenvs. This configuration file will run the # test suite on all supported python versions. To use it, "pip install tox" # and then run "tox" from this directory. [tox] envlist = py27, py34, py35 usedevelop = Tr...
152a1d7338a63a4e7db32de99530ccd1cffed489
tox.ini
tox.ini
INI
<|file_sep|>SteamShutdown/Program.cs.diff original: updated: using System.Diagnostics; <|file_sep|>original/SteamShutdown/Program.cs { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() ...
namespace SteamShutdown { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { string appProcessName = Path.GetFileNameWithoutExtension(Application.ExecutablePath); ...
<|file_sep|>SteamShutdown/Program.cs.diff original: updated: using System.Diagnostics; <|file_sep|>original/SteamShutdown/Program.cs { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() ...
8a488c353bf28e368a1706e90964bb905b314736
SteamShutdown/Program.cs
SteamShutdown/Program.cs
C#
<|file_sep|>.travis.yml.diff original: updated: - "4" - "6" - "7" <|file_sep|>original/.travis.yml language: node_js node_js: - "0.8" - "0.10" script: "npm run-script travis" <|file_sep|>current/.travis.yml language: node_js node_js: - "0.8" - "0.10" - "4" - "6" - "7" script: "npm run-script travi...
language: node_js node_js: - "0.8" - "0.10" - "4" - "6" - "7" script: "npm run-script travis"
<|file_sep|>.travis.yml.diff original: updated: - "4" - "6" - "7" <|file_sep|>original/.travis.yml language: node_js node_js: - "0.8" - "0.10" script: "npm run-script travis" <|file_sep|>current/.travis.yml language: node_js node_js: - "0.8" - "0.10" - "4" - "6" - "7" script: "npm run-script travi...
c29b3f5d46bf0618631c5c363513403f230a090c
.travis.yml
.travis.yml
YAML
<|file_sep|>original/app/helpers/menu_bar_helper.rb def menu_bar_list_items menu_bar_links.compact.map { |link| li_tag(link) }.join.html_safe end def li_tag(link) content_tag :li, link end def link_to_profile li_tag menu_item('user', :profile, user_path) end def link_to_classroom link_...
def menu_bar_list_items menu_bar_links.compact.map { |link| li_tag(link) }.join.html_safe end def li_tag(link) content_tag :li, link end def link_to_profile menu_item('user', :profile, user_path) end def link_to_classroom link_to_application 'graduation-cap', :classroom_ui, :teacher_he...
<|file_sep|>original/app/helpers/menu_bar_helper.rb def menu_bar_list_items menu_bar_links.compact.map { |link| li_tag(link) }.join.html_safe end def li_tag(link) content_tag :li, link end def link_to_profile li_tag menu_item('user', :profile, user_path) end def link_to_classroom link_...
98458cffaef085796f0097a28850f75af7d52641
app/helpers/menu_bar_helper.rb
app/helpers/menu_bar_helper.rb
Ruby
<|file_sep|>original/app/models/concerns/cacheable.rb after_save :flush_cache after_touch :flush_cache scope :find_in_cache, ->(value) { Rails.cache.fetch([name, value]) do o = find_by!(@cache_field => value) # If the model is translatable, we want all the translation fie...
after_save :flush_cache after_touch :flush_cache scope :find_in_cache, ->(value) { Rails.cache.fetch [name, value] do find_by!(@cache_field => value) end } end module ClassMethods def cache_by(field) @cache_field = field define_method(:...
<|file_sep|>original/app/models/concerns/cacheable.rb after_save :flush_cache after_touch :flush_cache scope :find_in_cache, ->(value) { Rails.cache.fetch([name, value]) do o = find_by!(@cache_field => value) # If the model is translatable, we want all the translation fie...
aa01b7922e9ae1b063892743b76cd69f741ea41b
app/models/concerns/cacheable.rb
app/models/concerns/cacheable.rb
Ruby
<|file_sep|>original/.hound.yml # Multi-line method chaining should be done with leading dots. DotPosition: EnforcedStyle: leading <|file_sep|>current/.hound.yml # Multi-line method chaining should be done with leading dots. DotPosition: EnforcedStyle: leading <|file_sep|>updated/.hound.yml
# Multi-line method chaining should be done with leading dots. DotPosition: EnforcedStyle: leading # Prefer single-quoted strings when you don't need string interpolation or # special symbols. StringLiterals: EnforcedStyle: single_quotes
<|file_sep|>original/.hound.yml # Multi-line method chaining should be done with leading dots. DotPosition: EnforcedStyle: leading <|file_sep|>current/.hound.yml # Multi-line method chaining should be done with leading dots. DotPosition: EnforcedStyle: leading <|file_sep|>updated/.hound.yml # Multi-line method chai...
d36f8cc35fac1806c9f2e3819d8ed7be7ea203a1
.hound.yml
.hound.yml
YAML
<|file_sep|>original/clusterloader2/testing/experiments/ignore_known_gce_container_restarts.yaml RESTART_COUNT_THRESHOLD_OVERRIDES: | # To be investigated in https://github.com/kubernetes/perf-tests/issues/872. fluentd-gcp: 999 # Main purpose of this check is detection crashlooping pods. # It was extended to c...
RESTART_COUNT_THRESHOLD_OVERRIDES: | # To be investigated in https://github.com/kubernetes/perf-tests/issues/872. fluentd-gcp: 999 # Main purpose of this check is detection crashlooping pods. # It was extended to check whether master pods were restarted even once. # For components that we run multiple instan...
<|file_sep|>original/clusterloader2/testing/experiments/ignore_known_gce_container_restarts.yaml RESTART_COUNT_THRESHOLD_OVERRIDES: | # To be investigated in https://github.com/kubernetes/perf-tests/issues/872. fluentd-gcp: 999 # Main purpose of this check is detection crashlooping pods. # It was extended to c...
fdcc4e7de437f4cc1a18ed4a67ce56a357876630
clusterloader2/testing/experiments/ignore_known_gce_container_restarts.yaml
clusterloader2/testing/experiments/ignore_known_gce_container_restarts.yaml
YAML
<|file_sep|>original/chapter3/converter/README.md <|file_sep|>current/chapter3/converter/README.md <|file_sep|>updated/chapter3/converter/README.md
Chapter 3 - converter ---------------- This directory holds a type converter example. ### 3.6.3 - Writing your own type converter This example can be run using: mvn test -Dtest=PurchaseOrderConverterTest
<|file_sep|>original/chapter3/converter/README.md <|file_sep|>current/chapter3/converter/README.md <|file_sep|>updated/chapter3/converter/README.md Chapter 3 - converter ---------------- This directory holds a type converter example. ### 3.6.3 - Writing your own type converter This example can be run using: ...
ca40d1c972301f275ef6cabc609cbcb2bd20d422
chapter3/converter/README.md
chapter3/converter/README.md
Markdown
<|file_sep|>project.clj.diff original: (defproject org.clojars.gonewest818/defcon "0.6.0-SNAPSHOT" updated: (defproject org.clojars.gonewest818/defcon "0.6.0" <|file_sep|>original/project.clj (defproject org.clojars.gonewest818/defcon "0.6.0-SNAPSHOT" :description "Handle configuration settings with defaults" :url ...
(defproject org.clojars.gonewest818/defcon "0.6.0" :description "Handle configuration settings with defaults" :url "http://github.com/gonewest818/defcon" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] ...
<|file_sep|>project.clj.diff original: (defproject org.clojars.gonewest818/defcon "0.6.0-SNAPSHOT" updated: (defproject org.clojars.gonewest818/defcon "0.6.0" <|file_sep|>original/project.clj (defproject org.clojars.gonewest818/defcon "0.6.0-SNAPSHOT" :description "Handle configuration settings with defaults" :url ...
000c393e66d486e014a4020932c6660849e51343
project.clj
project.clj
Clojure
<|file_sep|>original/tests/operations/server.crontab/edit_special_time.json <|file_sep|>current/tests/operations/server.crontab/edit_special_time.json <|file_sep|>updated/tests/operations/server.crontab/edit_special_time.json
{ "args": ["this_is_a_command"], "kwargs": { "special_time": "@reboot" }, "facts": { "crontab": { "this_is_a_command": { "special_time": "@daily", "comments": [] } } }, "commands": [ "crontab -l > _tempfile_...
<|file_sep|>original/tests/operations/server.crontab/edit_special_time.json <|file_sep|>current/tests/operations/server.crontab/edit_special_time.json <|file_sep|>updated/tests/operations/server.crontab/edit_special_time.json { "args": ["this_is_a_command"], "kwargs": { "special_time": "@reboot" }...
680780d20b924c107862d487bb2342d05ee8b006
tests/operations/server.crontab/edit_special_time.json
tests/operations/server.crontab/edit_special_time.json
JSON
<|file_sep|>original/integration-tests/gradle/README.md <|file_sep|>current/integration-tests/gradle/README.md <|file_sep|>updated/integration-tests/gradle/README.md
### Note All Gradle projects inside the `project` subfolder can also be imported to the IDE by clicking on the corresponding build.gradle.kts file -> "import gradle project". Before importing: Make sure that you have dokka installed locally (`./gradlew publishToMavenLocal`).
<|file_sep|>original/integration-tests/gradle/README.md <|file_sep|>current/integration-tests/gradle/README.md <|file_sep|>updated/integration-tests/gradle/README.md ### Note All Gradle projects inside the `project` subfolder can also be imported to the IDE by clicking on the corresponding build.gradle.kts file -> "...
7b8d341efbaf96abe6c5c848bccfd74d7ddce606
integration-tests/gradle/README.md
integration-tests/gradle/README.md
Markdown
<|file_sep|>original/common/src/main/java/us/myles/ViaVersion/api/rewriters/CommandRewriter.java <|file_sep|>current/common/src/main/java/us/myles/ViaVersion/api/rewriters/CommandRewriter.java <|file_sep|>updated/common/src/main/java/us/myles/ViaVersion/api/rewriters/CommandRewriter.java
package us.myles.ViaVersion.api.rewriters; import org.jetbrains.annotations.Nullable; import us.myles.ViaVersion.api.PacketWrapper; import us.myles.ViaVersion.api.protocol.ClientboundPacketType; import us.myles.ViaVersion.api.protocol.Protocol; import us.myles.ViaVersion.api.remapper.PacketRemapper; import us.myles.Vi...
<|file_sep|>original/common/src/main/java/us/myles/ViaVersion/api/rewriters/CommandRewriter.java <|file_sep|>current/common/src/main/java/us/myles/ViaVersion/api/rewriters/CommandRewriter.java <|file_sep|>updated/common/src/main/java/us/myles/ViaVersion/api/rewriters/CommandRewriter.java package us.myles.ViaVersion.a...
54488341bf2181d14f785008ef18b7f005e51d0b
common/src/main/java/us/myles/ViaVersion/api/rewriters/CommandRewriter.java
common/src/main/java/us/myles/ViaVersion/api/rewriters/CommandRewriter.java
Java
<|file_sep|>Gu.State.Benchmarks/Program.cs.diff original: var sourceFileName = Directory.EnumerateFiles(summary.ResultsDirectoryPath, $"*{summary.Title}-report-github.md") .Single(); updated: var trimmedTitle = summary.Title.Split('.').Last().Split('-')....
var destinationFileName = Path.ChangeExtension(FindCsFile(), ".md"); Console.WriteLine($"Copy: {sourceFileName} -> {destinationFileName}"); File.Copy(sourceFileName, destinationFileName, overwrite: true); string FindMdFile() { return Directory...
<|file_sep|>Gu.State.Benchmarks/Program.cs.diff original: var sourceFileName = Directory.EnumerateFiles(summary.ResultsDirectoryPath, $"*{summary.Title}-report-github.md") .Single(); updated: var trimmedTitle = summary.Title.Split('.').Last().Split('-')....
1a07273910438d87cc89aea4af337e8615ad6483
Gu.State.Benchmarks/Program.cs
Gu.State.Benchmarks/Program.cs
C#
<|file_sep|>pawn.json.diff original: "user": "JaTochNietDan", updated: "user": "ICJefferson", <|file_sep|>original/pawn.json "repo": "SA-MP-FileManager", "resources": [ { "name": "^FileManager_1.5.Linux.zip$", "platform": "linux", "archive": true, ...
"repo": "SA-MP-FileManager", "resources": [ { "name": "^FileManager_1.5.Linux.zip$", "platform": "linux", "archive": true, "includes": ["filemanager.inc"], "plugins": ["FileManager.so"] }, { "name": "^FileManager_1.5...
<|file_sep|>pawn.json.diff original: "user": "JaTochNietDan", updated: "user": "ICJefferson", <|file_sep|>original/pawn.json "repo": "SA-MP-FileManager", "resources": [ { "name": "^FileManager_1.5.Linux.zip$", "platform": "linux", "archive": true, ...
f7bee4fa77ed4d294a646044296f7f999b3a0d21
pawn.json
pawn.json
JSON
<|file_sep|>original/protocols/urls.py from django.conf.urls import patterns, url urlpatterns = patterns('protocols.views', url(r'^archive/$', 'list_all_protocols', name='list_all_protocols'), url(r'^add/$', 'add', name='add_protocol'), ) <|file_sep|>current/protocols/urls.py from django.conf.urls import patt...
from django.conf.urls import patterns, url urlpatterns = patterns('protocols.views', url(r'^archive/$', 'list_all_protocols', name='list_all_protocols'), url(r'^add/$', 'add', name='add_protocol'), url(r'^page/(?P<page>.*)/$', 'listing', name='pagination') )
<|file_sep|>original/protocols/urls.py from django.conf.urls import patterns, url urlpatterns = patterns('protocols.views', url(r'^archive/$', 'list_all_protocols', name='list_all_protocols'), url(r'^add/$', 'add', name='add_protocol'), ) <|file_sep|>current/protocols/urls.py from django.conf.urls import patt...
243f973ee1757b7b8426e9e4b62de2a272d82407
protocols/urls.py
protocols/urls.py
Python
<|file_sep|>original/src/widgets/likert-scale-editor.jsx }, }); class LikertScaleEditor extends React.Component { static propTypes = { labels: PropTypes.arrayOf(PropTypes.string), onChange: PropTypes.func.isRequired, }; static defaultProps = { labels: ["", "", "", "", ""], ...
}, }); class LikertScaleEditor extends React.Component { static propTypes = { labels: PropTypes.arrayOf(PropTypes.string), onChange: PropTypes.func.isRequired, }; static defaultProps = { labels: ["", "", "", ""], }; constructor(props) { super(props) } ...
<|file_sep|>original/src/widgets/likert-scale-editor.jsx }, }); class LikertScaleEditor extends React.Component { static propTypes = { labels: PropTypes.arrayOf(PropTypes.string), onChange: PropTypes.func.isRequired, }; static defaultProps = { labels: ["", "", "", "", ""], ...
2b3368f8955dcb63b97b4920cdfbcf0832f9ef33
src/widgets/likert-scale-editor.jsx
src/widgets/likert-scale-editor.jsx
JSX
<|file_sep|>original/README.md # CS510CouchDB Final group project loading traffic data into couchdb Data used for this project provided by Professor Tufte at Portland State University: http://web.cecs.pdx.edu/~tufte/ ## Server Setup The process of installing the primary CouchDB instance consists of: 0. Starting wi...
0. Starting with an Ubuntu Trusty AWS Instance. 1. sudo apt-get update 2. sudo apt-get dist-upgrade 3. sudo add-apt-repository ppa:couchdb/stable -y 4. 1. sudo apt-get update 5. sudo apt-get install couchdb 6. sudo sed -i 's/;bind_address = 127.0.0.1/bind_address = 0.0.0.0/g' /etc/couchdb/local.ini 7. sudo restart couc...
<|file_sep|>original/README.md # CS510CouchDB Final group project loading traffic data into couchdb Data used for this project provided by Professor Tufte at Portland State University: http://web.cecs.pdx.edu/~tufte/ ## Server Setup The process of installing the primary CouchDB instance consists of: 0. Starting wi...
b62c022194616e60fe5059615b70b5103bdf8370
README.md
README.md
Markdown
<|file_sep|>original/app/views/layouts/_nav.html.erb <ul> <% if current_user %> Welcome, <%= current_user.github_username %> <li><%= link_to 'Settings', user_settings_path(current_user) %></li> <li><%= link_to 'My Snippets', user_snippets_path(current_user) %></li> <% else %> <%= link_to "Sign in with Github...
<ul> <% if current_user %> Welcome, <%= current_user.github_username %> <li><%= link_to 'Settings', user_settings_path(current_user) %></li> <li><%= link_to 'My Snippets', user_snippets_path(current_user) %></li> <li><%= link_to "Get today's work", user_snippets_path(current_user), method: 'post' %></li> <% e...
<|file_sep|>original/app/views/layouts/_nav.html.erb <ul> <% if current_user %> Welcome, <%= current_user.github_username %> <li><%= link_to 'Settings', user_settings_path(current_user) %></li> <li><%= link_to 'My Snippets', user_snippets_path(current_user) %></li> <% else %> <%= link_to "Sign in with Github...
56b2d2b3a029ef91c5c08b68c8285b64d5b713c3
app/views/layouts/_nav.html.erb
app/views/layouts/_nav.html.erb
HTML+ERB
<|file_sep|>rbm2m/models/setting.py.diff original: from sqlalchemy import Column, String updated: from sqlalchemy import Column, String, Text <|file_sep|>original/rbm2m/models/setting.py # -*- coding: utf-8 -*- from sqlalchemy import Column, String from .base import Base class Setting(Base): __tablename__ = 'set...
# -*- coding: utf-8 -*- from sqlalchemy import Column, String, Text from .base import Base class Setting(Base): __tablename__ = 'settings' name = Column(String(32), nullable=False, primary_key=True) value = Column(Text) default_value = Column(Text) title = Column(String(127), nullable=False) ...
<|file_sep|>rbm2m/models/setting.py.diff original: from sqlalchemy import Column, String updated: from sqlalchemy import Column, String, Text <|file_sep|>original/rbm2m/models/setting.py # -*- coding: utf-8 -*- from sqlalchemy import Column, String from .base import Base class Setting(Base): __tablename__ = 'set...
3c573e2b02a18627b82f4a25fef67adae295d653
rbm2m/models/setting.py
rbm2m/models/setting.py
Python
<|file_sep|>frontend/app/controllers/modalCtrl.js.diff original: updated: $scope.apiBaseUrl = process.env.API_BASE_URL; <|file_sep|>original/frontend/app/controllers/modalCtrl.js function dismiss() { $uibModalInstance.dismiss(); } function submit() { console.log...
function dismiss() { $uibModalInstance.dismiss(); } function submit() { console.log('Submitted'); console.log($scope.fields); $http.post( $scope.apiBaseUrl + 'api/bookmarks/bookmarks/', $scope.fields )...
<|file_sep|>frontend/app/controllers/modalCtrl.js.diff original: updated: $scope.apiBaseUrl = process.env.API_BASE_URL; <|file_sep|>original/frontend/app/controllers/modalCtrl.js function dismiss() { $uibModalInstance.dismiss(); } function submit() { console.log...
5440725986a77073e0b130c09bc6fb4185cef607
frontend/app/controllers/modalCtrl.js
frontend/app/controllers/modalCtrl.js
JavaScript
<|file_sep|>original/src/Azure/Storage.Net.Microsoft.Azure.ServiceBus/Converter.cs namespace Storage.Net.Microsoft.Azure.ServiceBus { static class Converter { public static Message ToMessage(QueueMessage message) { if(message == null) throw new ArgumentNullException(nameof(messag...
namespace Storage.Net.Microsoft.Azure.ServiceBus { static class Converter { public static Message ToMessage(QueueMessage message) { if(message == null) throw new ArgumentNullException(nameof(message)); var result = new Message(message.Content) { Mes...
<|file_sep|>original/src/Azure/Storage.Net.Microsoft.Azure.ServiceBus/Converter.cs namespace Storage.Net.Microsoft.Azure.ServiceBus { static class Converter { public static Message ToMessage(QueueMessage message) { if(message == null) throw new ArgumentNullException(nameof(messag...
fbdec250e5d824a812ed84d97b096a01d4ea07df
src/Azure/Storage.Net.Microsoft.Azure.ServiceBus/Converter.cs
src/Azure/Storage.Net.Microsoft.Azure.ServiceBus/Converter.cs
C#
<|file_sep|>templates/generic/slack.erb.diff original: gpgcheck=1 updated: gpgcheck=0 <|file_sep|>original/templates/generic/slack.erb [slack] name=slack baseurl=https://packagecloud.io/slacktechnologies/slack/fedora/21/x86_64 enabled=1 gpgcheck=1 gpgkey=https://packagecloud.io/gpg.key sslverify=1 sslcacert=/etc/pki/tl...
[slack] name=slack baseurl=https://packagecloud.io/slacktechnologies/slack/fedora/21/x86_64 enabled=1 gpgcheck=0 gpgkey=https://packagecloud.io/gpg.key repo_gpgcheck=1 sslverify=1 sslcacert=/etc/pki/tls/certs/ca-bundle.crt priority=<%= @priority %> <% unless @exclude.empty? -%> exclude=<%= @exclude.to_a.join(' ') %> <%...
<|file_sep|>templates/generic/slack.erb.diff original: gpgcheck=1 updated: gpgcheck=0 <|file_sep|>original/templates/generic/slack.erb [slack] name=slack baseurl=https://packagecloud.io/slacktechnologies/slack/fedora/21/x86_64 enabled=1 gpgcheck=1 gpgkey=https://packagecloud.io/gpg.key sslverify=1 sslcacert=/etc/pki/tl...
b015d4231a65e95c1929dec5bc746c1723b953b1
templates/generic/slack.erb
templates/generic/slack.erb
HTML+ERB
<|file_sep|>running.py.diff original: from darksky import forecast updated: <|file_sep|>running.py.diff original: updated: from datetime import datetime import urllib.request import dateutil.parser <|file_sep|>running.py.diff original: # Darksky weather API. updated: t = '1984-06-02T19:05:00.000Z' # Darksky weather A...
# Darksky weather API # Create config file manually parser = ConfigParser() parser.read('slowburn.config', encoding='utf-8') darksky_key = parser.get('darksky', 'key') tcx = tcxparser.TCXParser('gps_logs/2017-06-15_Running.tcx') run_time = tcx.completed_at def convert_time_to_unix(time): parsed_time = dateutil.pa...
<|file_sep|>running.py.diff original: from darksky import forecast updated: <|file_sep|>running.py.diff original: updated: from datetime import datetime import urllib.request import dateutil.parser <|file_sep|>running.py.diff original: # Darksky weather API. updated: t = '1984-06-02T19:05:00.000Z' # Darksky weather A...
7faa73b5046fb87099d955705c4f00c5240f3544
running.py
running.py
Python
<|file_sep|>original/.travis.yml # Use Travis's cointainer based infrastructure sudo: false addons: apt: sources: - chef-stable-precise packages: - chefdk # Don't `bundle install` install: echo "skip bundle install" branches: only: - master # Ensure we make ChefDK's Ruby the default befor...
# Use Travis's cointainer based infrastructure sudo: false addons: apt: sources: - chef-current-precise packages: - chefdk # Don't `bundle install` install: echo "skip bundle install" branches: only: - master # Ensure we make ChefDK's Ruby the default before_script: - eval "$(/opt/chefd...
<|file_sep|>original/.travis.yml # Use Travis's cointainer based infrastructure sudo: false addons: apt: sources: - chef-stable-precise packages: - chefdk # Don't `bundle install` install: echo "skip bundle install" branches: only: - master # Ensure we make ChefDK's Ruby the default befor...
3ad6df20ad58767aa82e148434261d4b6491af06
.travis.yml
.travis.yml
YAML
<|file_sep|>README.md.diff original: bem-walk ======== updated: # bem-walk [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][depstat-image]][depstat-url] <|file_sep|>README.md.diff original: Usages ------ updated: Crawling levels on file system and emits [bem-objects...
## Usage ```js var walk = require('bem-walk'); var walker = walk(['common.blocks', 'desktop.blocks']); walker.on('data', function (data) { // data is bem-object }); ``` ## API ### walk(levels, [options]) Returns `EventEmitter` with events: * `data` - emitted with [bem-object](https://github.com/getbem/bem...
<|file_sep|>README.md.diff original: bem-walk ======== updated: # bem-walk [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][depstat-image]][depstat-url] <|file_sep|>README.md.diff original: Usages ------ updated: Crawling levels on file system and emits [bem-objects...
3b208d509cd9eecb9acb96c289f92c17389bde94
README.md
README.md
Markdown
<|file_sep|>original/app/models.py from django.db import models class Event(models.Model): when = models.DateTimeField(auto_now=True) what = models.TextField() <|file_sep|>current/app/models.py from django.db import models class Event(models.Model): when = models.DateTimeField(auto_now=True) what = models.Tex...
from django.db import models class Event(models.Model): when = models.DateTimeField(auto_now=True) what = models.TextField() def time(self): return '{:%H:%M}'.format(self.when)
<|file_sep|>original/app/models.py from django.db import models class Event(models.Model): when = models.DateTimeField(auto_now=True) what = models.TextField() <|file_sep|>current/app/models.py from django.db import models class Event(models.Model): when = models.DateTimeField(auto_now=True) what = models.Tex...
28cdad6e8ab6bd400ef50331a2f93af93620cc7f
app/models.py
app/models.py
Python
<|file_sep|>original/lib/capybara/helpers.rb # # Normalizes whitespace space by stripping leading and trailing # whitespace and replacing sequences of whitespace characters # with a single space. # # @param [String] text Text to normalize # @return [String] Normaliz...
# # Normalizes whitespace space by stripping leading and trailing # whitespace and replacing sequences of whitespace characters # with a single space. # # @param [String] text Text to normalize # @return [String] Normalized text # def normalize_whitespac...
<|file_sep|>original/lib/capybara/helpers.rb # # Normalizes whitespace space by stripping leading and trailing # whitespace and replacing sequences of whitespace characters # with a single space. # # @param [String] text Text to normalize # @return [String] Normaliz...
8852e4dc20db420e7e012b3265cbf4d369a761ba
lib/capybara/helpers.rb
lib/capybara/helpers.rb
Ruby
<|file_sep|>original/agent/misc/stemcell/build2/stages/mcf_package/apply.sh set -e base_dir=$(readlink -nf $(dirname $0)/../..) source ${base_dir}/lib/prelude_apply.bash micro_src=${HOME}/micro dest_dir=mcf/$build_time archive_dir_name=micro archive_dir=${dest_dir}/${archive_dir_name} mkdir --parents ${archive_dir} ...
set -e base_dir=$(readlink -nf $(dirname $0)/../..) source ${base_dir}/lib/prelude_apply.bash micro_src=${HOME}/micro dest_dir=mcf/$build_time archive_dir_name=micro archive_dir=${dest_dir}/${archive_dir_name} mkdir --parents ${archive_dir} ${image_vsphere_ovf_ovftool_path} \ --extraConfig:displayname="Micro Clo...
<|file_sep|>original/agent/misc/stemcell/build2/stages/mcf_package/apply.sh set -e base_dir=$(readlink -nf $(dirname $0)/../..) source ${base_dir}/lib/prelude_apply.bash micro_src=${HOME}/micro dest_dir=mcf/$build_time archive_dir_name=micro archive_dir=${dest_dir}/${archive_dir_name} mkdir --parents ${archive_dir} ...
73148848e0c116e09cc1561cbd47167b06e582c8
agent/misc/stemcell/build2/stages/mcf_package/apply.sh
agent/misc/stemcell/build2/stages/mcf_package/apply.sh
Shell
<|file_sep|>original/lib/tasks/emails.rake namespace :appfab do namespace :emails do task :send_notifications_digest => :environment do User.with_state(:visible).find_each do |user| next unless user.notifications.unread.count > 0 notifications = user.notifications.unread.by_most_recent.limi...
namespace :appfab do namespace :emails do task :send_notifications_digest => :environment do User.with_state(:visible).find_each do |user| require 'notification/mailer' next unless user.notifications.unread.count > 0 notifications = user.notifications.unread.by_most_recent.limit(25)...
<|file_sep|>original/lib/tasks/emails.rake namespace :appfab do namespace :emails do task :send_notifications_digest => :environment do User.with_state(:visible).find_each do |user| next unless user.notifications.unread.count > 0 notifications = user.notifications.unread.by_most_recent.limi...
42207030814ecef2adfe468eeaf34ce2b4711d95
lib/tasks/emails.rake
lib/tasks/emails.rake
Ruby
<|file_sep|>original/packages/po/postmark-streams.yaml <|file_sep|>current/packages/po/postmark-streams.yaml <|file_sep|>updated/packages/po/postmark-streams.yaml
homepage: '' changelog-type: markdown hash: b1c2188401a0fa81c7d4aba897711f2a4e6caf814d05d0e7ea220aa016941bb8 test-bench-deps: {} maintainer: jon.petter.bergman@gmail.com synopsis: Send email via Postmark using io-streams. changelog: ! '# Revision history for postmark-streams ## 0.1.0.0 -- YYYY-mm-dd * First ve...
<|file_sep|>original/packages/po/postmark-streams.yaml <|file_sep|>current/packages/po/postmark-streams.yaml <|file_sep|>updated/packages/po/postmark-streams.yaml homepage: '' changelog-type: markdown hash: b1c2188401a0fa81c7d4aba897711f2a4e6caf814d05d0e7ea220aa016941bb8 test-bench-deps: {} maintainer: jon.petter.ber...
5973927fe88ced740dd9068e2b33b0675b6f067c
packages/po/postmark-streams.yaml
packages/po/postmark-streams.yaml
YAML
<|file_sep|>test/Uncas.BuildPipeline.Tests.Unit/CommandBusTests.cs.diff original: using System; using Microsoft.Practices.ServiceLocation; updated: using Microsoft.Practices.ServiceLocation; using Microsoft.Practices.Unity; <|file_sep|>test/Uncas.BuildPipeline.Tests.Unit/CommandBusTests.cs.diff original: updated: us...
public void Publish_HandlerNotRegisterd_ThrowsInvalidOperationException() { Fixture.Register<IServiceLocator>(() => new UnityServiceLocator(new UnityContainer())); Assert.Throws<ActivationException>(() => Sut.Publish(Fixture.Create<UpdateGitMirrors>())); } [Test...
<|file_sep|>test/Uncas.BuildPipeline.Tests.Unit/CommandBusTests.cs.diff original: using System; using Microsoft.Practices.ServiceLocation; updated: using Microsoft.Practices.ServiceLocation; using Microsoft.Practices.Unity; <|file_sep|>test/Uncas.BuildPipeline.Tests.Unit/CommandBusTests.cs.diff original: updated: us...
a6357ddb207c3191f6a17c0915f0d805b3e6440f
test/Uncas.BuildPipeline.Tests.Unit/CommandBusTests.cs
test/Uncas.BuildPipeline.Tests.Unit/CommandBusTests.cs
C#
<|file_sep|>original/scss/parts/_small.scss &.scroll { top: 0; position: fixed; background-color: rgba(61, 61, 61, 0.8); } ul { position: relative; } li { float: left; width: 25%; } .text { visibility: visible; font-size: 1.2em; } } .page-sec...
&.scroll { top: 0; position: fixed; background-color: rgba(61, 61, 61, 0.8); } ul { position: relative; } li { float: left; width: 33%; } .text { visibility: visible; font-size: 1.2em; } } .page-section > .text-content:first-of-type { margin-...
<|file_sep|>original/scss/parts/_small.scss &.scroll { top: 0; position: fixed; background-color: rgba(61, 61, 61, 0.8); } ul { position: relative; } li { float: left; width: 25%; } .text { visibility: visible; font-size: 1.2em; } } .page-sec...
ad437f2112c7cbef3cbbeb4ea7477fc91a797430
scss/parts/_small.scss
scss/parts/_small.scss
SCSS