prompt
stringlengths
77
6.9k
completion
stringlengths
1
3.38k
text
stringlengths
163
9.03k
commit
stringlengths
40
40
old_file
stringlengths
4
264
new_file
stringlengths
4
264
lang
stringclasses
277 values
<|file_sep|>original/model/reporting_year.py #! /usr/bin/env python2.7 import model class ReportingYear(model.Model): pass ReportingYear.init_model("reporting_years", "reporting_year") <|file_sep|>current/model/reporting_year.py #! /usr/bin/env python2.7 import model class ReportingYear(model.Model): pass Reporti...
#! /usr/bin/env python2.7 import model class ReportingYear(model.Model): pass ReportingYear.init_model("reporting_years", "reporting_year_id")
<|file_sep|>original/model/reporting_year.py #! /usr/bin/env python2.7 import model class ReportingYear(model.Model): pass ReportingYear.init_model("reporting_years", "reporting_year") <|file_sep|>current/model/reporting_year.py #! /usr/bin/env python2.7 import model class ReportingYear(model.Model): pass Reporti...
b6d29826932d92662a7cd14b6f54327c9e8d4c0f
model/reporting_year.py
model/reporting_year.py
Python
<|file_sep|>.forestry/settings.yml.diff original: - path: content updated: - type: directory path: content <|file_sep|>.forestry/settings.yml.diff original: - path: content/posts updated: match: "*" - type: directory path: content/posts <|file_sep|>.forestry/settings.yml.diff original: - path: content/microposts ...
match: "*" - type: directory path: content/posts label: Posts create: all match: "**/*" - type: directory path: content/microposts label: Microposts create: all match: "**/*" - type: directory path: data label: Data create: none match: "**/*.{json,yaml,yml,toml}" upload_dir: static/uploads pub...
<|file_sep|>.forestry/settings.yml.diff original: - path: content updated: - type: directory path: content <|file_sep|>.forestry/settings.yml.diff original: - path: content/posts updated: match: "*" - type: directory path: content/posts <|file_sep|>.forestry/settings.yml.diff original: - path: content/microposts ...
d0c1d3e5f76e1c691b09e319d0b7d1c922152d43
.forestry/settings.yml
.forestry/settings.yml
YAML
<|file_sep|>original/assets/mail-templates/confirmation-thankyou.html <|file_sep|>current/assets/mail-templates/confirmation-thankyou.html <|file_sep|>updated/assets/mail-templates/confirmation-thankyou.html
<!DOCTYPE html> <html> <head> <title>You&rsquo;re in!</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link data-turbolinks-track="true" href="http://mrsuitor.com/style.css" media="all" rel="stylesheet" /> <link href="http://mrsuitor.com/favicon.png" rel="shortcut icon" type="image/...
<|file_sep|>original/assets/mail-templates/confirmation-thankyou.html <|file_sep|>current/assets/mail-templates/confirmation-thankyou.html <|file_sep|>updated/assets/mail-templates/confirmation-thankyou.html <!DOCTYPE html> <html> <head> <title>You&rsquo;re in!</title> <meta name="viewport" content="width=device-...
b3032a6ec299b3f03e639e1796e070d5715a43f3
assets/mail-templates/confirmation-thankyou.html
assets/mail-templates/confirmation-thankyou.html
HTML
<|file_sep|>setup.sh.diff original: updated: sudo apt-get install -y cloc ctags fzf silversearcher-ag tree <|file_sep|>original/setup.sh #!/bin/bash ln -sf ~/dotfiles/vim/vimrc ~/.vimrc ln -sf ~/dotfiles/ruby/irbrc ~/.irbrc ln -sf ~/dotfiles/zsh/zshrc ~/.zshrc ln -sf ~/dotfiles/git/config ~/.gitconfig if [ $SPIN ...
#!/bin/bash ln -sf ~/dotfiles/vim/vimrc ~/.vimrc ln -sf ~/dotfiles/ruby/irbrc ~/.irbrc ln -sf ~/dotfiles/zsh/zshrc ~/.zshrc ln -sf ~/dotfiles/git/config ~/.gitconfig if [ $SPIN ]; then git config --global user.name "Chris Thomson" git config --global user.email "chris.thomson@shopify.com" sudo apt-get install ...
<|file_sep|>setup.sh.diff original: updated: sudo apt-get install -y cloc ctags fzf silversearcher-ag tree <|file_sep|>original/setup.sh #!/bin/bash ln -sf ~/dotfiles/vim/vimrc ~/.vimrc ln -sf ~/dotfiles/ruby/irbrc ~/.irbrc ln -sf ~/dotfiles/zsh/zshrc ~/.zshrc ln -sf ~/dotfiles/git/config ~/.gitconfig if [ $SPIN ...
b70ad853ceb8e33cc916076d6c7f09326e1f7815
setup.sh
setup.sh
Shell
<|file_sep|>original/README.md # React Swipe Gallery Component Swipe gallery over React ##Install `npm install --save react-swipe-gallery` ##Example ```javascript import SwipeGallery from 'react-swipe-gallery' //elements only for example function getElements(numElements) { const elements = []; for (let i = 0;...
# React Swipe Gallery Component Swipe gallery over React You can view an online example in [http://amadormf.github.io/react-swipe-gallery/](http://amadormf.github.io/react-swipe-gallery/) ##Install `npm install --save react-swipe-gallery` ##Example ```javascript import SwipeGallery from 'react-swipe-gallery' //e...
<|file_sep|>original/README.md # React Swipe Gallery Component Swipe gallery over React ##Install `npm install --save react-swipe-gallery` ##Example ```javascript import SwipeGallery from 'react-swipe-gallery' //elements only for example function getElements(numElements) { const elements = []; for (let i = 0;...
9f456fc54f5f2307547c44782677fdaeabd5b035
README.md
README.md
Markdown
<|file_sep|>original/includes/email-confirmation/send.php function constructConfirmLink() { $date = new DateTime(); $timestamp = $date->getTimestamp(); $confirm = md5($timestamp); $stmt = $this->db->prepare("UPDATE note_users SET EmailConfirmation = :confirm WHERE UserId = :userId"); $stmt->execute(array('...
function constructConfirmLink() { $date = new DateTime(); $timestamp = $date->getTimestamp(); $confirm = md5($timestamp); $stmt = $this->db->prepare("UPDATE note_users SET EmailConfirmation = :confirm WHERE UserId = :userId"); $stmt->execute(array(':confirm' => $confirm, ':userId' => $this->userId)); $u...
<|file_sep|>original/includes/email-confirmation/send.php function constructConfirmLink() { $date = new DateTime(); $timestamp = $date->getTimestamp(); $confirm = md5($timestamp); $stmt = $this->db->prepare("UPDATE note_users SET EmailConfirmation = :confirm WHERE UserId = :userId"); $stmt->execute(array('...
e3871b15e7f556600bdef0160e7f7eabfcc1f9db
includes/email-confirmation/send.php
includes/email-confirmation/send.php
PHP
<|file_sep|>original/doc/installation.txt <|file_sep|>current/doc/installation.txt <|file_sep|>updated/doc/installation.txt
This file describes the installation process and the first execution of the project. ===== Python installation ===== Python Aboard uses the Python 3.3 version. Visit http://www.python.org website to find a package for your operating system. If you wish to compile the Python version from the source code ensure that ...
<|file_sep|>original/doc/installation.txt <|file_sep|>current/doc/installation.txt <|file_sep|>updated/doc/installation.txt This file describes the installation process and the first execution of the project. ===== Python installation ===== Python Aboard uses the Python 3.3 version. Visit http://www.python.org web...
3716f97b17e797978605c45c3d66dc5eb839d31d
doc/installation.txt
doc/installation.txt
Text
<|file_sep|>.forestry/settings.yml.diff original: label: Link updated: label: Links <|file_sep|>.forestry/settings.yml.diff original: label: Event updated: label: Events <|file_sep|>original/.forestry/settings.yml - link - type: heading label: Secondary Section - type: directory path: content/event labe...
- link - type: heading label: Secondary Section - type: directory path: content/event label: Events create: all match: "**/*" - type: directory path: content/article label: Articles create: all match: "**/*" templates: - article - type: directory path: data label: Data create: none match...
<|file_sep|>.forestry/settings.yml.diff original: label: Link updated: label: Links <|file_sep|>.forestry/settings.yml.diff original: label: Event updated: label: Events <|file_sep|>original/.forestry/settings.yml - link - type: heading label: Secondary Section - type: directory path: content/event labe...
70ebc2c7ca6bb7347936dc0a4c0d01cb4bbd8475
.forestry/settings.yml
.forestry/settings.yml
YAML
<|file_sep|>original/packages/mesos-dns/buildinfo.json { "docker": "golang:1.5.3", "single_source" : { "kind": "git", "git": "git@github.com:mesosphere/mesos-dns.git", "ref": "3d42620a12936fccf77435526f5aaee0fb409416", "ref_origin": "master" }, "username": "dcos_mesos_dns" } <|file_sep|>current/...
{ "docker": "golang:1.5.3", "single_source" : { "kind": "git", "git": "https://github.com/mesosphere/mesos-dns.gith", "ref": "3d42620a12936fccf77435526f5aaee0fb409416", "ref_origin": "master" }, "username": "dcos_mesos_dns" }
<|file_sep|>original/packages/mesos-dns/buildinfo.json { "docker": "golang:1.5.3", "single_source" : { "kind": "git", "git": "git@github.com:mesosphere/mesos-dns.git", "ref": "3d42620a12936fccf77435526f5aaee0fb409416", "ref_origin": "master" }, "username": "dcos_mesos_dns" } <|file_sep|>current/...
dfedca981d6c33d7c873aa17e2e6316ff415664f
packages/mesos-dns/buildinfo.json
packages/mesos-dns/buildinfo.json
JSON
<|file_sep|>original/.travis.yml language: php php: - 5.5 - 5.6 - 7.0 - hhvm before_script: - composer self-update - composer install --prefer-source --no-interaction --dev script: phpunit <|file_sep|>current/.travis.yml language: php php: - 5.5 - 5.6 - 7.0 - hhvm before_script: - composer se...
language: php php: - 5.6 - 7.0 - hhvm before_script: - composer self-update - composer install --prefer-source --no-interaction --dev script: phpunit
<|file_sep|>original/.travis.yml language: php php: - 5.5 - 5.6 - 7.0 - hhvm before_script: - composer self-update - composer install --prefer-source --no-interaction --dev script: phpunit <|file_sep|>current/.travis.yml language: php php: - 5.5 - 5.6 - 7.0 - hhvm before_script: - composer se...
de9837b66e9a39de5328a3300b7e4726508e66e1
.travis.yml
.travis.yml
YAML
<|file_sep|>original/io/io/test/CMakeLists.txt # Copyright (C) 1995-2019, Rene Brun and Fons Rademakers. # All rights reserved. # # For the licensing terms see $ROOTSYS/LICENSE. # For the list of contributors see $ROOTSYS/README/CREDITS. if(davix) list(APPEND RRAWFILE_EXTRA_DEPENDENCIES RDAVIX) endif() ROOT_ADD_GTE...
# Copyright (C) 1995-2019, Rene Brun and Fons Rademakers. # All rights reserved. # # For the licensing terms see $ROOTSYS/LICENSE. # For the list of contributors see $ROOTSYS/README/CREDITS. ROOT_ADD_GTEST(RRawFile RRawFile.cxx LIBRARIES RIO) ROOT_ADD_GTEST(TFile TFileTests.cxx LIBRARIES RIO) ROOT_ADD_GTEST(TBufferMer...
<|file_sep|>original/io/io/test/CMakeLists.txt # Copyright (C) 1995-2019, Rene Brun and Fons Rademakers. # All rights reserved. # # For the licensing terms see $ROOTSYS/LICENSE. # For the list of contributors see $ROOTSYS/README/CREDITS. if(davix) list(APPEND RRAWFILE_EXTRA_DEPENDENCIES RDAVIX) endif() ROOT_ADD_GTE...
33772060d1c8ff59bb0feb1ec01be0a2d9c5a4e1
io/io/test/CMakeLists.txt
io/io/test/CMakeLists.txt
Text
<|file_sep|>original/src/main/resources/logback.xml <|file_sep|>current/src/main/resources/logback.xml <|file_sep|>updated/src/main/resources/logback.xml
<?xml version="1.0" encoding="UTF-8"?> <configuration> <logger name="scala.slick" level="INFO" /> <logger name="scala.slick.jdbc.JdbcBackend.statement" level="DEBUG" /> </configuration>
<|file_sep|>original/src/main/resources/logback.xml <|file_sep|>current/src/main/resources/logback.xml <|file_sep|>updated/src/main/resources/logback.xml <?xml version="1.0" encoding="UTF-8"?> <configuration> <logger name="scala.slick" level="INFO" /> <logger name="scala.slick.jdbc.JdbcBackend.statement" leve...
937c5ad0a5eb613626a9b32f2d6c2a36704474e1
src/main/resources/logback.xml
src/main/resources/logback.xml
XML
<|file_sep|>templates/fivel/config.json.diff original: updated: }, { "type": "pausePlugin", "displayName": "Pause", "path": "{{baseDir}}templates/assets/plugins/pausePlugin/popcorn.pausePlugin.js" <|file_sep|>original/templates/fivel/config.json { "type": "loop", ...
"path": "{{baseDir}}templates/fivel/plugins/popcorn.toc.js" }, { "type": "slider", "path": "{{baseDir}}templates/fivel/plugins/slider/popcorn.slider.js" }, { "type": "pausePlugin", "displayName": "Pause", "path": "{{baseDir}}templates/assets/plugin...
<|file_sep|>templates/fivel/config.json.diff original: updated: }, { "type": "pausePlugin", "displayName": "Pause", "path": "{{baseDir}}templates/assets/plugins/pausePlugin/popcorn.pausePlugin.js" <|file_sep|>original/templates/fivel/config.json { "type": "loop", ...
3dee129af22ed4609e0ce857ebdc1942c56a9eb2
templates/fivel/config.json
templates/fivel/config.json
JSON
<|file_sep|>VENTouchLock.podspec.diff original: s.version = '0.2.0' updated: s.version = '1.0.0' <|file_sep|>VENTouchLock.podspec.diff original: s.homepage = 'https://www.github.com/dasmer/VENTouchLock' updated: s.homepage = 'https://www.github.com/venmo/VENTouchLock' <|file_sep|>original/VENT...
Pod::Spec.new do |s| s.name = 'VENTouchLock' s.version = '1.0.0' s.summary = 'A passcode framework that features touch ID' s.description = <<-DESC An easy to use passcode framework used in the Venmo app DESC s.homepage = 'https://www.github.com/ven...
<|file_sep|>VENTouchLock.podspec.diff original: s.version = '0.2.0' updated: s.version = '1.0.0' <|file_sep|>VENTouchLock.podspec.diff original: s.homepage = 'https://www.github.com/dasmer/VENTouchLock' updated: s.homepage = 'https://www.github.com/venmo/VENTouchLock' <|file_sep|>original/VENT...
0244076b8f0c63ec95c2ae3335abc8ed6fcbd46e
VENTouchLock.podspec
VENTouchLock.podspec
Ruby
<|file_sep|>original/indico/MaKaC/webinterface/tpls/latex/inc/abstract_manager.tpl <%inherit file="abstract.tpl" /> <%block name="management_data" args="status,track_judgements"> \vspace{1em} \textbf{${_("Status:")}} ${status} \vspace{2em} \setdescription{leftmargin=2em,labelindent=2em} % if tra...
<%inherit file="abstract.tpl" /> <%block name="management_data" args="status,track_judgements"> \vspace{1em} \textbf{${_("Status:")}} ${status} \vspace{2em} \setdescription{leftmargin=2em,labelindent=2em} % if track_judgements and any(x[1] for x in track_judgements): \textbf{${_("Track J...
<|file_sep|>original/indico/MaKaC/webinterface/tpls/latex/inc/abstract_manager.tpl <%inherit file="abstract.tpl" /> <%block name="management_data" args="status,track_judgements"> \vspace{1em} \textbf{${_("Status:")}} ${status} \vspace{2em} \setdescription{leftmargin=2em,labelindent=2em} % if tra...
e45e766a251674b41e74a08e35f91c8728645b3d
indico/MaKaC/webinterface/tpls/latex/inc/abstract_manager.tpl
indico/MaKaC/webinterface/tpls/latex/inc/abstract_manager.tpl
Smarty
<|file_sep|>original/TC/layout/responsive/img/legend-icon.svg <|file_sep|>current/TC/layout/responsive/img/legend-icon.svg <|file_sep|>updated/TC/layout/responsive/img/legend-icon.svg
<svg version="1" xmlns="http://www.w3.org/2000/svg" width="1333.333" height="1333.333" viewBox="0 0 1000.000000 1000.000000"><g fill="#fff"><path d="M150 250v100h200V150H150v100zM450 250.5V276h401v-51H450v25.5zM238 400.6c-18.8 3.5-29.9 7.6-42.7 15.9-21.1 13.8-36.1 35.1-42.6 60.5-3.2 12.9-3 34.9.6 48.2 9.4 35.2 35.8 61....
<|file_sep|>original/TC/layout/responsive/img/legend-icon.svg <|file_sep|>current/TC/layout/responsive/img/legend-icon.svg <|file_sep|>updated/TC/layout/responsive/img/legend-icon.svg <svg version="1" xmlns="http://www.w3.org/2000/svg" width="1333.333" height="1333.333" viewBox="0 0 1000.000000 1000.000000"><g fill="...
ca60b294445d12bd64814dc17defc147ff072266
TC/layout/responsive/img/legend-icon.svg
TC/layout/responsive/img/legend-icon.svg
SVG
<|file_sep|>original/Resources/public/javascript/admin.js function mainMenuDropShadow() { var headerFooter = $("#header-footer"); if (this.scrollHeight === this.clientHeight) { headerFooter.removeClass('drop-shadow'); return; } var scrollPercent = 100 * this.scrollTop / this.scrollHeig...
function mainMenuDropShadow() { var headerFooter = $("#header-footer"); if (this.scrollHeight === this.clientHeight) { headerFooter.removeClass('drop-shadow'); return; } var scrollPercent = 100 * this.scrollTop / this.scrollHeight / (1 - this.clientHeight / this.scrollHeight); isNa...
<|file_sep|>original/Resources/public/javascript/admin.js function mainMenuDropShadow() { var headerFooter = $("#header-footer"); if (this.scrollHeight === this.clientHeight) { headerFooter.removeClass('drop-shadow'); return; } var scrollPercent = 100 * this.scrollTop / this.scrollHeig...
f21e8828ac538e983ed32e883049b0d3114d5277
Resources/public/javascript/admin.js
Resources/public/javascript/admin.js
JavaScript
<|file_sep|>package.json.diff original: "version": "0.9.0", updated: "version": "0.9.1", <|file_sep|>original/package.json "name": "aspax-styl-handler", "version": "0.9.0", "description": "Plugin enabling ASPAX to handle Stylus files.", "keywords": [ "aspax", "stylus", "css", "compilation" ...
"name": "aspax-styl-handler", "version": "0.9.1", "description": "Plugin enabling ASPAX to handle Stylus files.", "keywords": [ "aspax", "stylus", "css", "compilation" ], "dependencies": { "iced-coffee-script": "^1.7.1-g", "stylus": "~0.48.1", "nib": "~1.0.3" }, "engines": { ...
<|file_sep|>package.json.diff original: "version": "0.9.0", updated: "version": "0.9.1", <|file_sep|>original/package.json "name": "aspax-styl-handler", "version": "0.9.0", "description": "Plugin enabling ASPAX to handle Stylus files.", "keywords": [ "aspax", "stylus", "css", "compilation" ...
f5120d0d40c673e57c57c3ebf6d7842b6d8c3b05
package.json
package.json
JSON
<|file_sep|>corehq/apps/reports/templates/reports/form/edit_submission.html.diff original: updated: {% block js-inline %}{{ block.super }} {% include 'cloudcare/includes/touchforms-inline.html' %} {% endblock %} <|file_sep|>original/corehq/apps/reports/templates/reports/form/edit_submission.html {% extends "style/boo...
{% extends "style/bootstrap3/two_column.html" %} {% load hq_shared_tags %} {% load i18n %} {% block js-inline %}{{ block.super }} {% include 'cloudcare/includes/touchforms-inline.html' %} {% endblock %} {% block head %}{{ block.super }} <script> $(function () { GMAPS_API_KEY = '{{ maps_api_key|safe }}...
<|file_sep|>corehq/apps/reports/templates/reports/form/edit_submission.html.diff original: updated: {% block js-inline %}{{ block.super }} {% include 'cloudcare/includes/touchforms-inline.html' %} {% endblock %} <|file_sep|>original/corehq/apps/reports/templates/reports/form/edit_submission.html {% extends "style/boo...
4f7c45e755732c2df5b9f7a71c47026b8aec7990
corehq/apps/reports/templates/reports/form/edit_submission.html
corehq/apps/reports/templates/reports/form/edit_submission.html
HTML
<|file_sep|>Server/src/main/java/me/jesensky/dan/playertracker/util/DatabaseManager.java.diff original: import com.mysql.jdbc.MySQLConnection; updated: <|file_sep|>Server/src/main/java/me/jesensky/dan/playertracker/util/DatabaseManager.java.diff original: import javax.sql.DataSource; updated: <|file_sep|>Server/src/m...
}catch(NumberFormatException e){ statement.setString(x, args[x]); } statement.execute(); statement.close(); } public void connect() throws SQLException{ MysqlDataSource d = new MysqlDataSource(); d.setUser(this.username); d.setPass...
<|file_sep|>Server/src/main/java/me/jesensky/dan/playertracker/util/DatabaseManager.java.diff original: import com.mysql.jdbc.MySQLConnection; updated: <|file_sep|>Server/src/main/java/me/jesensky/dan/playertracker/util/DatabaseManager.java.diff original: import javax.sql.DataSource; updated: <|file_sep|>Server/src/m...
34d3a2aa3474433e6d4c4c85b7c7c971688209a4
Server/src/main/java/me/jesensky/dan/playertracker/util/DatabaseManager.java
Server/src/main/java/me/jesensky/dan/playertracker/util/DatabaseManager.java
Java
<|file_sep|>src/phonect/SOAP/SoapStream.php.diff original: updated: <|file_sep|>src/phonect/SOAP/SoapStream.php.diff original: $json = json_encode($match[0]); updated: $data = []; foreach ($match as $item) { $data[] = $item; } $json = json_encode($data); <|file_sep|>src/phonect/SOAP/SoapStream.php.diff ...
if (empty($json)) { return null; } $return = json_decode($json,true); if (empty($return)) { return null; } if (count($return) == 1) { $return = $return[0]; } $response = (object) ['return' => $return]; return $response; } catch (\Exception $e) { throw new RuntimeException( 'Error try...
<|file_sep|>src/phonect/SOAP/SoapStream.php.diff original: updated: <|file_sep|>src/phonect/SOAP/SoapStream.php.diff original: $json = json_encode($match[0]); updated: $data = []; foreach ($match as $item) { $data[] = $item; } $json = json_encode($data); <|file_sep|>src/phonect/SOAP/SoapStream.php.diff ...
9c11fe312057c556086369fe78dce9419aeea450
src/phonect/SOAP/SoapStream.php
src/phonect/SOAP/SoapStream.php
PHP
<|file_sep|>app/controllers/feedback_landing_controller.rb.diff original: @feedback_landing_heading = t ( 'hub.feedback_landing.basic_heading' ) updated: @feedback_landing_heading = t('hub.feedback_landing.basic_heading') <|file_sep|>original/app/controllers/feedback_landing_controller.rb class FeedbackLandingC...
class FeedbackLandingController < ApplicationController skip_before_action :validate_session skip_before_action :set_piwik_custom_variables before_action { @hide_feedback_link = true } def index flash['feedback_referer'] = request.referer flash['feedback_source'] = params['feedback-source'].nil? ? flas...
<|file_sep|>app/controllers/feedback_landing_controller.rb.diff original: @feedback_landing_heading = t ( 'hub.feedback_landing.basic_heading' ) updated: @feedback_landing_heading = t('hub.feedback_landing.basic_heading') <|file_sep|>original/app/controllers/feedback_landing_controller.rb class FeedbackLandingC...
5742ab82367feb3f1169e13a6411a397bcf6155b
app/controllers/feedback_landing_controller.rb
app/controllers/feedback_landing_controller.rb
Ruby
<|file_sep|>original/templates/zerver/message_history.html <div class="modal hide" id="message-edit-history" tabindex="-1" role="dialog" aria-labelledby="message-history-label" aria-hidden="true"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</b...
<div class="modal hide" id="message-edit-history" tabindex="-1" role="dialog" aria-labelledby="message-history-label" aria-hidden="true"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h3 id="message-history-label">{{ _('Message...
<|file_sep|>original/templates/zerver/message_history.html <div class="modal hide" id="message-edit-history" tabindex="-1" role="dialog" aria-labelledby="message-history-label" aria-hidden="true"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</b...
ccd2e40c3ac1f68aa8c1d4a4e9b302f35fe58040
templates/zerver/message_history.html
templates/zerver/message_history.html
HTML
<|file_sep|>original/.travis.yml sudo: required dist: trusty language: node_js node_js: - '6.9.1' install: - npm install; script: - tsc -p ./; - npm run test; before_deploy: - npm install -g vsce; - vsce package; <|file_sep|>current/.travis.yml sudo: required dist: trusty language: node_js node_js: - '6.9.1' ...
sudo: required dist: trusty language: node_js node_js: - '6.9.1' install: - npm install; script: - tsc -p ./; - npm run test; before_deploy: - npm install -g vsce; - vsce package; after_failure: "cat /home/travis/build/aaron-bond/better-comments/npm-debug.log"
<|file_sep|>original/.travis.yml sudo: required dist: trusty language: node_js node_js: - '6.9.1' install: - npm install; script: - tsc -p ./; - npm run test; before_deploy: - npm install -g vsce; - vsce package; <|file_sep|>current/.travis.yml sudo: required dist: trusty language: node_js node_js: - '6.9.1' ...
acd0fa1c9e5b1601352a57d4008861f55f2db734
.travis.yml
.travis.yml
YAML
<|file_sep|>src/browser/note/note-collection/note-item/note-item-context-menu.ts.diff original: export type NoteItemContextMenuCommand = 'revealInFinder'; updated: export type NoteItemContextMenuCommand = 'revealInFinder' | 'deleteNote'; <|file_sep|>original/src/browser/note/note-collection/note-item/note-item-context-...
} open(): Observable<NoteItemContextMenuCommand | undefined> { return this.nativeMenu.open(this.buildTemplate()).afterClosed().pipe( map(item => item ? item.id as NoteItemContextMenuCommand : undefined), ); } private buildTemplate(): MenuItemConstructorOptions[] { r...
<|file_sep|>src/browser/note/note-collection/note-item/note-item-context-menu.ts.diff original: export type NoteItemContextMenuCommand = 'revealInFinder'; updated: export type NoteItemContextMenuCommand = 'revealInFinder' | 'deleteNote'; <|file_sep|>original/src/browser/note/note-collection/note-item/note-item-context-...
e0d9764f81562e94eb66e4dff81fa29cab1379ad
src/browser/note/note-collection/note-item/note-item-context-menu.ts
src/browser/note/note-collection/note-item/note-item-context-menu.ts
TypeScript
<|file_sep|>original/app/models/renalware/renal/aki_alert.rb # frozen_string_literal: true require_dependency "renalware/renal" module Renalware module Renal class AKIAlert < ApplicationRecord include Accountable include PatientsRansackHelper scope :ordered, ->{ order(created_at: :desc) } ...
# frozen_string_literal: true require_dependency "renalware/renal" module Renalware module Renal class AKIAlert < ApplicationRecord include Accountable include PatientsRansackHelper scope :ordered, ->{ order(created_at: :desc) } belongs_to :patient, class_name: "Renal::Patient", touch: t...
<|file_sep|>original/app/models/renalware/renal/aki_alert.rb # frozen_string_literal: true require_dependency "renalware/renal" module Renalware module Renal class AKIAlert < ApplicationRecord include Accountable include PatientsRansackHelper scope :ordered, ->{ order(created_at: :desc) } ...
58a2824f3034e544f2161bd1df93547311285b31
app/models/renalware/renal/aki_alert.rb
app/models/renalware/renal/aki_alert.rb
Ruby
<|file_sep|>res/values/arrays.xml.diff original: <item>Connect with a friend</item> updated: <item>Connected with a friend</item> <|file_sep|>original/res/values/arrays.xml <?xml version="1.0" encoding="utf-8"?> <resources> <array name="habitIdeasList"> <item>Arrived on time</item> <item>Ate vegetarian</item> ...
<?xml version="1.0" encoding="utf-8"?> <resources> <array name="habitIdeasList"> <item>Arrived on time</item> <item>Ate vegetarian</item> <item>Ate vegan</item> <item>Complimented someone</item> <item>Connected with a friend</item> <item>Drank a glass of water</item> <item>Had a magical experience</item>...
<|file_sep|>res/values/arrays.xml.diff original: <item>Connect with a friend</item> updated: <item>Connected with a friend</item> <|file_sep|>original/res/values/arrays.xml <?xml version="1.0" encoding="utf-8"?> <resources> <array name="habitIdeasList"> <item>Arrived on time</item> <item>Ate vegetarian</item> ...
45b79ea5da27de14ce5cc5ce41c384273729a613
res/values/arrays.xml
res/values/arrays.xml
XML
<|file_sep|>original/README.md use se_rs_ial::{ Connection, BaudRate }; #[cfg(windows)] const PORT: &'static str = "COM1"; #[cfg(unix)] const PORT: &'static str = "/dev/ttyUSB0"; let mut conn = Connection::open(PORT, BaudRate::B9600).unwrap(); conn.write("Hello World!\n".as_bytes()).unwrap(); # [Documentatio...
#[cfg(windows)] const PORT: &'static str = "COM1"; #[cfg(unix)] const PORT: &'static str = "/dev/ttyUSB0"; let mut conn = Connection::open(PORT, BaudRate::B9600).unwrap(); conn.write("Hello World!\n".as_bytes()).unwrap(); # Documentation There are minor variances between the builds for the different platform...
<|file_sep|>original/README.md use se_rs_ial::{ Connection, BaudRate }; #[cfg(windows)] const PORT: &'static str = "COM1"; #[cfg(unix)] const PORT: &'static str = "/dev/ttyUSB0"; let mut conn = Connection::open(PORT, BaudRate::B9600).unwrap(); conn.write("Hello World!\n".as_bytes()).unwrap(); # [Documentatio...
a832e045231dabbade2fa6327ba1b3596656bba2
README.md
README.md
Markdown
<|file_sep|>original/data/midori.desktop.in [Desktop Entry] Version=1.0 Type=Application _Name=Midori _GenericName=Web Browser _Comment=Lightweight web browser Categories=GTK;Network;WebBrowser; MimeType=text/html;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/geo; Exec=midori %U Ic...
_GenericName=Web Browser _Comment=Lightweight web browser Categories=GTK;Network;WebBrowser; MimeType=text/html;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/geo; Exec=midori %U Icon=midori Terminal=false StartupNotify=true X-Osso-Type=application/x-executable X-Osso-Service=midori...
<|file_sep|>original/data/midori.desktop.in [Desktop Entry] Version=1.0 Type=Application _Name=Midori _GenericName=Web Browser _Comment=Lightweight web browser Categories=GTK;Network;WebBrowser; MimeType=text/html;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/geo; Exec=midori %U Ic...
80d007596b7a5904f0d1794bb3458394dd168aca
data/midori.desktop.in
data/midori.desktop.in
unknown
<|file_sep|>original/PULL_REQUEST_TEMPLATE.md * All new code requires tests to ensure against regressions ### Description of the Change <!-- We must be able to understand the design of your change from this description. If we can't get a good idea of what the code will be doing from the description here, the pull re...
* All new code requires tests to ensure against regressions ### Description of the Change <!-- We must be able to understand the design of your change from this description. If we can't get a good idea of what the code will be doing from the description here, the pull request may be closed at the maintainers' discre...
<|file_sep|>original/PULL_REQUEST_TEMPLATE.md * All new code requires tests to ensure against regressions ### Description of the Change <!-- We must be able to understand the design of your change from this description. If we can't get a good idea of what the code will be doing from the description here, the pull re...
fe933506aa831480d7256d1267beb0b4a02be755
PULL_REQUEST_TEMPLATE.md
PULL_REQUEST_TEMPLATE.md
Markdown
<|file_sep|>original/README.md # transmission-utils A set of command-line scripts that automate common tasks in [Transmission](https://www.transmissionbt.com) ## Scripts * `transmission-get` downloads a given torrent ([docs](docs/transmission-get.md), [code](bin/transmission-get)) ## Installing If the target machi...
# transmission-utils A set of command-line scripts that automate common tasks in [Transmission](https://www.transmissionbt.com) ## Scripts * `transmission-get` downloads a given torrent ([docs](doc/transmission-get.md), [code](bin/transmission-get)) ## Installing If the target machine is running [Arch Linux](https...
<|file_sep|>original/README.md # transmission-utils A set of command-line scripts that automate common tasks in [Transmission](https://www.transmissionbt.com) ## Scripts * `transmission-get` downloads a given torrent ([docs](docs/transmission-get.md), [code](bin/transmission-get)) ## Installing If the target machi...
d686cc8b860c02e6985e61efcd7060fe26068ad8
README.md
README.md
Markdown
<|file_sep|>original/requirements.txt base58==0.2.3 boto3==1.4.0 botocore==1.4.59 docutils==0.12 futures==3.0.5 hjson==2.0.2 jmespath==0.9.0 kappa==0.6.0 lambda-packages==0.9.0 python-dateutil==2.5.3 python-slugify==1.2.1 requests>=2.10.0 six==1.10.0 tqdm==4.8.4 troposphere==1.8.1 Werkzeug==0.11.11 wheel==0.29.0 wsgi-r...
base58==0.2.3 boto3==1.4.1 botocore==1.4.59 docutils==0.12 futures==3.0.5 hjson==2.0.2 jmespath==0.9.0 kappa==0.6.0 lambda-packages==0.9.0 python-dateutil==2.5.3 python-slugify==1.2.1 requests>=2.10.0 six==1.10.0 tqdm==4.8.4 troposphere==1.8.1 Werkzeug==0.11.11 wheel==0.29.0 wsgi-request-logger==0.4.5
<|file_sep|>original/requirements.txt base58==0.2.3 boto3==1.4.0 botocore==1.4.59 docutils==0.12 futures==3.0.5 hjson==2.0.2 jmespath==0.9.0 kappa==0.6.0 lambda-packages==0.9.0 python-dateutil==2.5.3 python-slugify==1.2.1 requests>=2.10.0 six==1.10.0 tqdm==4.8.4 troposphere==1.8.1 Werkzeug==0.11.11 wheel==0.29.0 wsgi-r...
f076caf16b2bc099c608e6591cf80e501af66279
requirements.txt
requirements.txt
Text
<|file_sep|>original/com_osvr_OculusRift.json }, "gyroscope": { "x": "analog/3", "y": "analog/4", "z": "analog/5" }, "magnetometer": { "x": "analog/6", "y": "analog/7", "z": "analog/8" }, "temperature": "analog/9" }, "camera": {...
"y": "analog/4", "z": "analog/5" }, "magnetometer": { "x": "analog/6", "y": "analog/7", "z": "analog/8" }, "temperature": "analog/9" }, "camera": { "$target": "tracker/1" }, "leveled_camera": { "$target": "tracker/2" } }, ...
<|file_sep|>original/com_osvr_OculusRift.json }, "gyroscope": { "x": "analog/3", "y": "analog/4", "z": "analog/5" }, "magnetometer": { "x": "analog/6", "y": "analog/7", "z": "analog/8" }, "temperature": "analog/9" }, "camera": {...
f9a4aa1d717166c9472d73565b28539f1df86927
com_osvr_OculusRift.json
com_osvr_OculusRift.json
JSON
<|file_sep|>original/js/services/uriHandler.js 'use strict'; var UriHandler = function() {}; UriHandler.prototype.register = function() { var base = window.location.origin + '/'; var url = base + '#!/uri-payment/%s'; var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1; if(navigator.regi...
'use strict'; var UriHandler = function() {}; UriHandler.prototype.register = function() { var base = window.location.origin + '/'; var url = base + '#!/uri-payment/%s'; if(navigator.registerProtocolHandler) { navigator.registerProtocolHandler('bitcoin', url, 'Copay'); } }; angular.module('copayApp.serv...
<|file_sep|>original/js/services/uriHandler.js 'use strict'; var UriHandler = function() {}; UriHandler.prototype.register = function() { var base = window.location.origin + '/'; var url = base + '#!/uri-payment/%s'; var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1; if(navigator.regi...
4c2f3b5f5f6f855e20171247a7d379851818ca04
js/services/uriHandler.js
js/services/uriHandler.js
JavaScript
<|file_sep|>original/invada/engine.py response_pairs, knowledge={}): self.response_pairs = response_pairs self.knowledge = knowledge def chat(self, user_utterance, context): best_score = 0 best_response_pair = None best_captured = {} ...
knowledge={}): self.response_pairs = response_pairs self.knowledge = knowledge def chat(self, user_utterance, context): best_score = 0 best_response_pair = None best_captured = {} for response_pair in self.response_pairs: captured = respo...
<|file_sep|>original/invada/engine.py response_pairs, knowledge={}): self.response_pairs = response_pairs self.knowledge = knowledge def chat(self, user_utterance, context): best_score = 0 best_response_pair = None best_captured = {} ...
355372ff51a84c0a6d7d86c0ef1fb12def341436
invada/engine.py
invada/engine.py
Python
<|file_sep|>viewportwidth.js.diff original: /*! viewportwidth.js 0.1.1 | Author: Brett Jankord, 2012 | License: MIT */ updated: /*! viewportwidth.js 0.1.2 | Author: Brett Jankord, 2012 | License: MIT */ <|file_sep|>viewportwidth.js.diff original: var getViewportWidth = function(){ updated: module.exports = function() {...
/*! viewportwidth.js 0.1.2 | Author: Brett Jankord, 2012 | License: MIT */ /* https://github.com/bjankord/viewportwidth.js */ module.exports = function() { "use strict"; var isWebKit = 'WebkitAppearance' in document.documentElement.style; var isOldIE = !(typeof (window.innerWidth) == 'number'); // IE 6-8 if (i...
<|file_sep|>viewportwidth.js.diff original: /*! viewportwidth.js 0.1.1 | Author: Brett Jankord, 2012 | License: MIT */ updated: /*! viewportwidth.js 0.1.2 | Author: Brett Jankord, 2012 | License: MIT */ <|file_sep|>viewportwidth.js.diff original: var getViewportWidth = function(){ updated: module.exports = function() {...
6cdb80e5d3c223eff08d5df3319d174e830c5169
viewportwidth.js
viewportwidth.js
JavaScript
<|file_sep|>original/database/migrations/2016_06_07_031216_update_assessments_table.php <|file_sep|>current/database/migrations/2016_06_07_031216_update_assessments_table.php <|file_sep|>updated/database/migrations/2016_06_07_031216_update_assessments_table.php
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class UpdateAssessmentsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { if(Schema::hasTable('assessments')) { Schema::table('assessments', function($table) { ...
<|file_sep|>original/database/migrations/2016_06_07_031216_update_assessments_table.php <|file_sep|>current/database/migrations/2016_06_07_031216_update_assessments_table.php <|file_sep|>updated/database/migrations/2016_06_07_031216_update_assessments_table.php <?php use Illuminate\Database\Schema\Blueprint; use Ill...
9b577a16247847e02387da342afca34c999333e7
database/migrations/2016_06_07_031216_update_assessments_table.php
database/migrations/2016_06_07_031216_update_assessments_table.php
PHP
<|file_sep|>original/.travis.yml sudo: false language: node_js node_js: - 4 - 5 - stable <|file_sep|>current/.travis.yml sudo: false language: node_js node_js: - 4 - 5 - stable <|file_sep|>updated/.travis.yml
sudo: false language: node_js node_js: - 4 - 6 - 8 - stable
<|file_sep|>original/.travis.yml sudo: false language: node_js node_js: - 4 - 5 - stable <|file_sep|>current/.travis.yml sudo: false language: node_js node_js: - 4 - 5 - stable <|file_sep|>updated/.travis.yml sudo: false language: node_js node_js: - 4 - 6 - 8 - stable
103425316d4109992e9b541909cef0b0df46fe4a
.travis.yml
.travis.yml
YAML
<|file_sep|>original/contrib/azurerm/roles/generate-templates/defaults/main.yml faultDomainCount: 3 updateDomainCount: 10 bastionVmSize: Standard_A0 bastionVMName: bastion bastionIPAddressName: bastion-pubip disablePasswordAuthentication: true sshKeyPath: "/home/{{admin_username}}/.ssh/authorized_keys" imageRefere...
faultDomainCount: 3 updateDomainCount: 10 bastionVmSize: Standard_A0 bastionVMName: bastion bastionIPAddressName: bastion-pubip disablePasswordAuthentication: true sshKeyPath: "/home/{{admin_username}}/.ssh/authorized_keys" imageReference: publisher: "OpenLogic" offer: "CentOS" sku: "7.5" version: "latest"...
<|file_sep|>original/contrib/azurerm/roles/generate-templates/defaults/main.yml faultDomainCount: 3 updateDomainCount: 10 bastionVmSize: Standard_A0 bastionVMName: bastion bastionIPAddressName: bastion-pubip disablePasswordAuthentication: true sshKeyPath: "/home/{{admin_username}}/.ssh/authorized_keys" imageRefere...
f3fbf995cae338f5bb4cb22e7c7de14d0f71be0b
contrib/azurerm/roles/generate-templates/defaults/main.yml
contrib/azurerm/roles/generate-templates/defaults/main.yml
YAML
<|file_sep|>spec/blueprints.rb.diff original: name Sham.name updated: name {Sham.name} <|file_sep|>spec/blueprints.rb.diff original: d.proposal Proposal.make updated: d.proposal {Proposal.make} <|file_sep|>spec/blueprints.rb.diff original: bp.proposer Member.make updated: bp.proposer {Member.make} <|file_se...
Proposal.blueprint do |bp| bp.title "a proposal title" bp.open "1" bp.proposer {Member.make} end Decision.blueprint do |d| d.proposal {Proposal.make} end AddMemberProposal.blueprint do |bp| bp.title "a proposal title" bp.open "1" bp.proposer {Member.make} end Clause.blueprint do |bp| bp.name 'objecti...
<|file_sep|>spec/blueprints.rb.diff original: name Sham.name updated: name {Sham.name} <|file_sep|>spec/blueprints.rb.diff original: d.proposal Proposal.make updated: d.proposal {Proposal.make} <|file_sep|>spec/blueprints.rb.diff original: bp.proposer Member.make updated: bp.proposer {Member.make} <|file_se...
47c81001f39d208a6c997a6ea66082bed17137bd
spec/blueprints.rb
spec/blueprints.rb
Ruby
<|file_sep|>original/.travis.yml dist: xenial language: node_js node_js: - "8" - "9" - "10" services: - redis - mongodb cache: yarn install: - "cd api && npm install" script: - "cd api && npm test" <|file_sep|>current/.travis.yml dist: xenial language: node_js node_js: - "8" - "9" - "10" service...
dist: xenial language: node_js node_js: - "8" - "9" - "10" services: - redis - mongodb cache: yarn install: - "cd api && npm install" script: - "npm test"
<|file_sep|>original/.travis.yml dist: xenial language: node_js node_js: - "8" - "9" - "10" services: - redis - mongodb cache: yarn install: - "cd api && npm install" script: - "cd api && npm test" <|file_sep|>current/.travis.yml dist: xenial language: node_js node_js: - "8" - "9" - "10" service...
79d05ff356fa5d6fd0c18b74c12c7e988c653539
.travis.yml
.travis.yml
YAML
<|file_sep|>original/json-api.gemspec Gem::Specification.new do |spec| spec.name = "json-api" spec.version = JSON::Api::VERSION spec.authors = ["Steve Klabnik"] spec.email = ["steve@steveklabnik.com"] spec.description = %q{A JSON API parser.} spec.summary = %q{A JSON AP...
Gem::Specification.new do |spec| spec.name = "json-api" spec.version = JSON::Api::VERSION spec.authors = ["Steve Klabnik"] spec.email = ["steve@steveklabnik.com"] spec.description = %q{A JSON API parser.} spec.summary = %q{A JSON API parser.} spec.homepage = "htt...
<|file_sep|>original/json-api.gemspec Gem::Specification.new do |spec| spec.name = "json-api" spec.version = JSON::Api::VERSION spec.authors = ["Steve Klabnik"] spec.email = ["steve@steveklabnik.com"] spec.description = %q{A JSON API parser.} spec.summary = %q{A JSON AP...
13b3ec70a332cfac38bf29ab88b09640497fb43c
json-api.gemspec
json-api.gemspec
Ruby
<|file_sep|>original/src/_includes/work-with-apps.html <|file_sep|>current/src/_includes/work-with-apps.html <|file_sep|>updated/src/_includes/work-with-apps.html
{% page_header id="work-with-apps" title="Работа с приложения" %} <div class="row"> <div class="col-sm-6 col-md-4"><div class="thumbnail"><div class="caption"><h3 style="margin: 0"><a href="">Домейни</a></h3> <p>Виж как приложението ти да има домейн от вида www.example.com</p> <p><a href="#" class="b...
<|file_sep|>original/src/_includes/work-with-apps.html <|file_sep|>current/src/_includes/work-with-apps.html <|file_sep|>updated/src/_includes/work-with-apps.html {% page_header id="work-with-apps" title="Работа с приложения" %} <div class="row"> <div class="col-sm-6 col-md-4"><div class="thumbnail"><div class="ca...
9e8af67f9338f1bb8d3994b347a43c484cfed736
src/_includes/work-with-apps.html
src/_includes/work-with-apps.html
HTML
<|file_sep|>original/README.md # CFPB Source Code Policy This repository [contains](https://github.com/cfpb/source-code-policy/blob/master/cfpb-source-code-policy.txt) the official [Source Code Policy](http://www.consumerfinance.gov/developers/sourcecodepolicy/) of the [Consumer Financial Protection Bureau](http://www...
# CFPB Source Code Policy This repository [contains](blob/master/cfpb-source-code-policy.txt) the official [Source Code Policy](http://www.consumerfinance.gov/developers/sourcecodepolicy/) of the [Consumer Financial Protection Bureau](http://www.consumerfinance.gov/). For more about this policy and the philosophy beh...
<|file_sep|>original/README.md # CFPB Source Code Policy This repository [contains](https://github.com/cfpb/source-code-policy/blob/master/cfpb-source-code-policy.txt) the official [Source Code Policy](http://www.consumerfinance.gov/developers/sourcecodepolicy/) of the [Consumer Financial Protection Bureau](http://www...
7c61d5a7b79f7bb1de9ffeacc536246f631036e0
README.md
README.md
Markdown
<|file_sep|>original/ahmia/ahmia/templates/legal.html <div id="ahmiaDisclaimer"> <p> <strong>{% trans "Ahmia content warning" %}:</strong> {% blocktrans %} The indexed sites are running inside the Tor network and ahmia.fi is not responsible for them. The administrator of this site ...
<div id="ahmiaDisclaimer"> <p> <strong>{% trans "Ahmia content warning" %}:</strong> {% blocktrans %} The indexed sites are running inside the Tor network and ahmia.fi is not responsible for them. The administrator of this site (ahmia.fi) cannot be held responsible for any acti...
<|file_sep|>original/ahmia/ahmia/templates/legal.html <div id="ahmiaDisclaimer"> <p> <strong>{% trans "Ahmia content warning" %}:</strong> {% blocktrans %} The indexed sites are running inside the Tor network and ahmia.fi is not responsible for them. The administrator of this site ...
32576f3f6838967e7ea8f9f49d6a779e2f7fb6c0
ahmia/ahmia/templates/legal.html
ahmia/ahmia/templates/legal.html
HTML
<|file_sep|>app/views/courses/StudentLogInModal.coffee.diff original: userObject = forms.formToObject @$el res = tv4.validateMultiple userObject, User.schema return forms.applyErrorsToForm(@$el, res.errors) unless res.valid updated: data = forms.formToObject @$el <|file_sep|>app/views/courses/StudentLog...
events: 'click #log-in-btn': 'onClickLogInButton' 'submit form': 'onSubmitForm' onSubmitForm: (e) -> e.preventDefault() @login() onClickLogInButton: -> @login() login: -> data = forms.formToObject @$el @enableModalInProgress(@$el) auth.loginUser data, (jqxhr) => e...
<|file_sep|>app/views/courses/StudentLogInModal.coffee.diff original: userObject = forms.formToObject @$el res = tv4.validateMultiple userObject, User.schema return forms.applyErrorsToForm(@$el, res.errors) unless res.valid updated: data = forms.formToObject @$el <|file_sep|>app/views/courses/StudentLog...
65dd571041408712ab2fb2efd0f4a0ae73a8df34
app/views/courses/StudentLogInModal.coffee
app/views/courses/StudentLogInModal.coffee
CoffeeScript
<|file_sep|>original/tests/CountryCollectionTest.php /** * Class CountryCollectionTest * * @author Junior Grossi <juniorgro@gmail.com> */ class CountryCollectionTest extends PHPUnit_Framework_TestCase { public function testCountryCollectionClass() { $collection = new CountryCollection(); $co...
$country = new Country; $countries = ['Brazil', 'United States', 'Argentina', 'Canada', 'Chile']; foreach ($countries as $countryName) { $collection->insert($country->findByName($countryName)); } /** @var Country $country */ foreach ($collection as $key => $co...
<|file_sep|>original/tests/CountryCollectionTest.php /** * Class CountryCollectionTest * * @author Junior Grossi <juniorgro@gmail.com> */ class CountryCollectionTest extends PHPUnit_Framework_TestCase { public function testCountryCollectionClass() { $collection = new CountryCollection(); $co...
ff2a09c9236c90bf5cd360f273695b829065e71f
tests/CountryCollectionTest.php
tests/CountryCollectionTest.php
PHP
<|file_sep|>original/src/doc/unstable-book/src/language-features/const-if-match.md <|file_sep|>current/src/doc/unstable-book/src/language-features/const-if-match.md <|file_sep|>updated/src/doc/unstable-book/src/language-features/const-if-match.md
# `const_if_match` The tracking issue for this feature is: [#49146] [#49146]: https://github.com/rust-lang/rust/issues/49146 ------------------------ Allows for the use of conditionals (`if` and `match`) in a const context. Const contexts include `static`, `static mut`, `const`, `const fn`, const generics, and arra...
<|file_sep|>original/src/doc/unstable-book/src/language-features/const-if-match.md <|file_sep|>current/src/doc/unstable-book/src/language-features/const-if-match.md <|file_sep|>updated/src/doc/unstable-book/src/language-features/const-if-match.md # `const_if_match` The tracking issue for this feature is: [#49146] [...
26d93f35f6965cec7e75099bc775e24c61ca9f7a
src/doc/unstable-book/src/language-features/const-if-match.md
src/doc/unstable-book/src/language-features/const-if-match.md
Markdown
<|file_sep|>original/resources/views/layouts/base.blade.php <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> <link href="{{ mix('build/css/app.css') }}" rel="stylesheet"> <script> window.Laravel = {!! json_encode(['csrfToken' => csrf_token()...
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> <link href="{{ mix('build/css/app.css') }}" rel="stylesheet"> <script> window.Laravel = {!! json_encode(['csrfToken' => csrf_token()]) !!}; </script> @include('layouts._favicons') ...
<|file_sep|>original/resources/views/layouts/base.blade.php <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> <link href="{{ mix('build/css/app.css') }}" rel="stylesheet"> <script> window.Laravel = {!! json_encode(['csrfToken' => csrf_token()...
2bb57b3b157adac0ab7c01e0588e4defd08714e6
resources/views/layouts/base.blade.php
resources/views/layouts/base.blade.php
PHP
<|file_sep|>app/assets/javascripts/flyover_comments/comments.coffee.diff original: appendToId = $(@).data("append-to") updated: <|file_sep|>original/app/assets/javascripts/flyover_comments/comments.coffee $("[data-flyover-comments-reply-link='true']").click (e)-> e.preventDefault() parentId = $(@).data("...
$("[data-flyover-comments-reply-link='true']").click (e)-> e.preventDefault() parentId = $(@).data("parent-id") container = $(@).attr("href") if $(container).children(".flyover-comment-reply-form").length $(container).children(".flyover-comment-reply-form").remove() else $f = $("#flyo...
<|file_sep|>app/assets/javascripts/flyover_comments/comments.coffee.diff original: appendToId = $(@).data("append-to") updated: <|file_sep|>original/app/assets/javascripts/flyover_comments/comments.coffee $("[data-flyover-comments-reply-link='true']").click (e)-> e.preventDefault() parentId = $(@).data("...
c3ba9272584041db477e3c9f3a1f1d4fa11e1850
app/assets/javascripts/flyover_comments/comments.coffee
app/assets/javascripts/flyover_comments/comments.coffee
CoffeeScript
<|file_sep|>original/air.sass <|file_sep|>current/air.sass <|file_sep|>updated/air.sass
// // Variables // $font-size-base: 16!default $line-height-base: 1.4 $margin-base-vertical: $font-size-base/2!default $margin-base-horizontal: $font-size-base/2!default .mb-#{$margin-base-vertical} margin-bottom: $margin-base-vertical+px .mb-#{$margin-base-vertical*2} margin-bottom: $margin-base-vertical*2+px...
<|file_sep|>original/air.sass <|file_sep|>current/air.sass <|file_sep|>updated/air.sass // // Variables // $font-size-base: 16!default $line-height-base: 1.4 $margin-base-vertical: $font-size-base/2!default $margin-base-horizontal: $font-size-base/2!default .mb-#{$margin-base-vertical} margin-bottom: $margin-ba...
085c642cb46d060678568725b073de9fc226b94b
air.sass
air.sass
Sass
<|file_sep|>.travis.yml.diff original: updated: sudo: false <|file_sep|>original/.travis.yml language: ruby cache: bundler sudo: false rvm: - 2.2.9 - 2.3.6 - 2.4.3 branches: only: - master script: bundle exec rake <|file_sep|>current/.travis.yml sudo: false language: ruby cache: bundler sudo: false rvm: - ...
sudo: false language: ruby cache: bundler matrix: include: - rvm: 2.3.7 - rvm: 2.4.4 - rvm: 2.5.1 - rvm: ruby-head allow_failures: - rvm: ruby-head branches: only: - master script: bundle exec rake
<|file_sep|>.travis.yml.diff original: updated: sudo: false <|file_sep|>original/.travis.yml language: ruby cache: bundler sudo: false rvm: - 2.2.9 - 2.3.6 - 2.4.3 branches: only: - master script: bundle exec rake <|file_sep|>current/.travis.yml sudo: false language: ruby cache: bundler sudo: false rvm: - ...
fe30304309faab3c14b3fe4b524b9b6e0ead977c
.travis.yml
.travis.yml
YAML
<|file_sep|>original/package.json { "name": "veganaut-backend", "version": "0.0.1", "private": true, "scripts": { "start": "node app.js", "test": "./node_modules/.bin/jasmine-node test/e2e/ test/models" }, "dependencies": { "bcrypt": "0.7.7", "cors": "2.1.1", ...
{ "name": "veganaut-backend", "version": "0.0.1", "private": true, "scripts": { "start": "node app.js", "test": "./node_modules/.bin/jasmine-node --captureExceptions test/e2e/ test/models" }, "dependencies": { "bcrypt": "0.7.7", "cors": "2.1.1", "express":...
<|file_sep|>original/package.json { "name": "veganaut-backend", "version": "0.0.1", "private": true, "scripts": { "start": "node app.js", "test": "./node_modules/.bin/jasmine-node test/e2e/ test/models" }, "dependencies": { "bcrypt": "0.7.7", "cors": "2.1.1", ...
88b136b825f8216e3be6bc41d437bcc50c741b8e
package.json
package.json
JSON
<|file_sep|>original/.gitlab-ci.yml include: "https://gitlab.freedesktop.org/ystreet/gst-ci/raw/ndk-21/gitlab/ci_template.yml" <|file_sep|>current/.gitlab-ci.yml include: "https://gitlab.freedesktop.org/ystreet/gst-ci/raw/ndk-21/gitlab/ci_template.yml" <|file_sep|>updated/.gitlab-ci.yml
include: "https://gitlab.freedesktop.org/gstreamer/gst-ci/raw/master/gitlab/ci_template.yml"
<|file_sep|>original/.gitlab-ci.yml include: "https://gitlab.freedesktop.org/ystreet/gst-ci/raw/ndk-21/gitlab/ci_template.yml" <|file_sep|>current/.gitlab-ci.yml include: "https://gitlab.freedesktop.org/ystreet/gst-ci/raw/ndk-21/gitlab/ci_template.yml" <|file_sep|>updated/.gitlab-ci.yml include: "https://gitlab.freedes...
2a8bab31ec9e6f812606d7f636a661a81ddeb5d8
.gitlab-ci.yml
.gitlab-ci.yml
YAML
<|file_sep|>original/.github/workflows/mavenpublishcentral.yml <|file_sep|>current/.github/workflows/mavenpublishcentral.yml <|file_sep|>updated/.github/workflows/mavenpublishcentral.yml
name: Publish release to Maven Central Repository # Run workflow on commits to the `releases` branch (used for debugging first steps) on: push: branches: - releases jobs: release: runs-on: ubuntu-latest steps: - name: Check out Git repository uses: actions/checkout@v2 - name...
<|file_sep|>original/.github/workflows/mavenpublishcentral.yml <|file_sep|>current/.github/workflows/mavenpublishcentral.yml <|file_sep|>updated/.github/workflows/mavenpublishcentral.yml name: Publish release to Maven Central Repository # Run workflow on commits to the `releases` branch (used for debugging first ste...
757dd498db88dbd596fe3cb1810e499229eeac1d
.github/workflows/mavenpublishcentral.yml
.github/workflows/mavenpublishcentral.yml
YAML
<|file_sep|>original/webpack.config.js module: { loaders: [ { test: /\.js$/, exclude: /(node_modules)/, loader: 'babel-loader', query: { presets: ['es2015', 'react'] } } ] } }; /* devServer: { inline: true, contentBase: './public', port: 3000, ho...
}), new webpack.optimize.UglifyJsPlugin({ compress:{ warnings: false, drop_console: true } }) ], module: { loaders: [ { test: /\.js$/, exclude: /(node_modules)/, loader: 'babel-loader', query: { presets: ['es2015', 'react'] } ...
<|file_sep|>original/webpack.config.js module: { loaders: [ { test: /\.js$/, exclude: /(node_modules)/, loader: 'babel-loader', query: { presets: ['es2015', 'react'] } } ] } }; /* devServer: { inline: true, contentBase: './public', port: 3000, ho...
24edb11ac2abb9e20c3f4411ae664ba6388f211d
webpack.config.js
webpack.config.js
JavaScript
<|file_sep|>original/available-plugins/export/etc/jenv.d/init/export_jenv_hook.zsh export JAVA_HOME=$(jenv javahome) export JENV_FORCEJAVAHOME=true if [ -e "$JAVA_HOME/bin/javac" ] then export JDK_HOME=$(jenv javahome) export JENV_FORCEJDKHOME=true fi } #echo "configure export plugin for ZSH" funct...
export JAVA_HOME=$(jenv javahome) export JENV_FORCEJAVAHOME=true if [ -e "$JAVA_HOME/bin/javac" ] then export JDK_HOME=$(jenv javahome) export JENV_FORCEJDKHOME=true fi } #echo "configure export plugin for ZSH" function install_hook { emulate -LR zsh typeset -ag precmd_functions if [[ -z $pre...
<|file_sep|>original/available-plugins/export/etc/jenv.d/init/export_jenv_hook.zsh export JAVA_HOME=$(jenv javahome) export JENV_FORCEJAVAHOME=true if [ -e "$JAVA_HOME/bin/javac" ] then export JDK_HOME=$(jenv javahome) export JENV_FORCEJDKHOME=true fi } #echo "configure export plugin for ZSH" funct...
f417d46f17f424a802ddb2b0ac4bc00d43d6fae9
available-plugins/export/etc/jenv.d/init/export_jenv_hook.zsh
available-plugins/export/etc/jenv.d/init/export_jenv_hook.zsh
Shell
<|file_sep|>original/test/simple/test-http-finish-before-resolve.lua local request = google:request('GET', '/', { host = 'www.google.com'}) request:finish("") local response_received = false local timer = setTimeout(function() request.connection:destroy() assert_true(response_received, "A response should have arri...
local request = google:request('GET', '/', { host = 'www.google.com'}) request:finish("") local response_received = false local timer = setTimeout(function() request.connection:destroy() assert_true(response_received, "A response should have arrived by now") process:exit(-1) end, 5000) request:on('response', fun...
<|file_sep|>original/test/simple/test-http-finish-before-resolve.lua local request = google:request('GET', '/', { host = 'www.google.com'}) request:finish("") local response_received = false local timer = setTimeout(function() request.connection:destroy() assert_true(response_received, "A response should have arri...
c52dcbf14e53eaa46eb9862fd518f966e92b4297
test/simple/test-http-finish-before-resolve.lua
test/simple/test-http-finish-before-resolve.lua
Lua
<|file_sep|>recipes/bioconda_install.rb.diff original: code "source /etc/profile.d/anaconda-env.sh; conda config --add channels conda-forge" updated: code "source /etc/profile.d/anaconda-env.sh; conda config --add channels conda-forge --system" <|file_sep|>recipes/bioconda_install.rb.diff original: code "so...
# https://bioconda.github.io/ # bash "install-conda-conda-forge" do code "source /etc/profile.d/anaconda-env.sh; conda config --add channels conda-forge --system" action :run notifies :run, "bash[install-conda-defaults]" end bash "install-conda-defaults" do code "source /etc/profile.d/anaconda-env.sh; conda...
<|file_sep|>recipes/bioconda_install.rb.diff original: code "source /etc/profile.d/anaconda-env.sh; conda config --add channels conda-forge" updated: code "source /etc/profile.d/anaconda-env.sh; conda config --add channels conda-forge --system" <|file_sep|>recipes/bioconda_install.rb.diff original: code "so...
2491faf49070125fa4f1ebdea348dc1a79ca9b88
recipes/bioconda_install.rb
recipes/bioconda_install.rb
Ruby
<|file_sep|>original/spec/basic.spec.coffee describe "Basic setup", -> it "should add chosen to jQuery object", -> expect(jQuery.fn.chosen).toBeDefined() <|file_sep|>current/spec/basic.spec.coffee describe "Basic setup", -> it "should add chosen to jQuery object", -> expect(jQuery.fn.chosen).toBeDefined() ...
describe "Basic setup", -> it "should add chosen to jQuery object", -> expect(jQuery.fn.chosen).toBeDefined() it "should create very basic chosen", -> tmpl = " <select data-placeholder='Choose a Country...'> <option value=''></option> <option value='United States'>United States</optio...
<|file_sep|>original/spec/basic.spec.coffee describe "Basic setup", -> it "should add chosen to jQuery object", -> expect(jQuery.fn.chosen).toBeDefined() <|file_sep|>current/spec/basic.spec.coffee describe "Basic setup", -> it "should add chosen to jQuery object", -> expect(jQuery.fn.chosen).toBeDefined() ...
dde53c95a9b962918fa34e3e07dc6188acc82238
spec/basic.spec.coffee
spec/basic.spec.coffee
CoffeeScript
<|file_sep|>original/.travis.yml sudo: false language: node_js node_js: - 'stable' - '0.12' - '0.10' addons: apt: packages: nasm <|file_sep|>current/.travis.yml sudo: false language: node_js node_js: - 'stable' - '0.12' - '0.10' addons: apt: packages: nasm <|file_sep|>updated/.travis.yml
sudo: false language: node_js node_js: - 6 - 4 - '0.12' - '0.10' addons: apt: packages: nasm
<|file_sep|>original/.travis.yml sudo: false language: node_js node_js: - 'stable' - '0.12' - '0.10' addons: apt: packages: nasm <|file_sep|>current/.travis.yml sudo: false language: node_js node_js: - 'stable' - '0.12' - '0.10' addons: apt: packages: nasm <|file_sep|>updated/.travis.yml sudo: f...
ba99a3aa117fca81473dd758e12465caef671166
.travis.yml
.travis.yml
YAML
<|file_sep|>packages/li/linear-grammar.yaml.diff original: hash: ce0440ef63be6b34505c513a70ba93ce74c722cab0675653b8c3f8845e2c7bbe updated: hash: 833ee6ab8f19d9b5ca0910fe80bc32b122f74fc854bb93eaa5f6bc83443001ca <|file_sep|>packages/li/linear-grammar.yaml.diff original: updated: - '0.0.1.1' <|file_sep|>original/packages...
maintainer: Athan Clark <athan.clark@gmail.com> synopsis: A simple grammar for building linear equations and inclusive inequalities. changelog: '' basic-deps: base: ! '>=4.6 && <5' QuickCheck: -any all-versions: - '0.0.0.1' - '0.0.0.2' - '0.0.0.3' - '0.0.0.4' - '0.0.0.5' - '0.0.0.6' - '0.0.0.7' - '0.0.1' - '0.0.1.1...
<|file_sep|>packages/li/linear-grammar.yaml.diff original: hash: ce0440ef63be6b34505c513a70ba93ce74c722cab0675653b8c3f8845e2c7bbe updated: hash: 833ee6ab8f19d9b5ca0910fe80bc32b122f74fc854bb93eaa5f6bc83443001ca <|file_sep|>packages/li/linear-grammar.yaml.diff original: updated: - '0.0.1.1' <|file_sep|>original/packages...
588c5b4496e0df2fafe8cfd23efbbb020999b0da
packages/li/linear-grammar.yaml
packages/li/linear-grammar.yaml
YAML
<|file_sep|>original/examples/wordCount.js .map(keyValueMapperEtl) .countByKey("key", "count") .filter(kv => kv.count >= 3) .map(kv => kv.key + " " + kv.count) .tap(kv => console.log(kv)) .to("my-output-topic"); stream.start(); //consume & produce for 5 seconds setTimeout(kafkaStreams.closeAll...
.map(keyValueMapperEtl) .countByKey("key", "count") .filter(kv => kv.count >= 3) .map(kv => kv.key + " " + kv.count) .tap(kv => console.log(kv)) .to("my-output-topic"); stream.start(); //consume & produce for 5 seconds setTimeout(kafkaStreams.closeAll.bind(kafkaStreams), 5000); function keyVa...
<|file_sep|>original/examples/wordCount.js .map(keyValueMapperEtl) .countByKey("key", "count") .filter(kv => kv.count >= 3) .map(kv => kv.key + " " + kv.count) .tap(kv => console.log(kv)) .to("my-output-topic"); stream.start(); //consume & produce for 5 seconds setTimeout(kafkaStreams.closeAll...
5c6f206b47028093d3ee8db82a0bb732267807b0
examples/wordCount.js
examples/wordCount.js
JavaScript
<|file_sep|>src/main/java/com/giraone/samples/pmspoc1/boundary/core/BaseEndpoint.java.diff original: updated: import javax.ws.rs.core.Response.ResponseBuilder; <|file_sep|>src/main/java/com/giraone/samples/pmspoc1/boundary/core/BaseEndpoint.java.diff original: // Match root-resources updated: // Matches root-resourc...
.build(); } // Match sub-resources - handle CORS pre-flight request @OPTIONS @Path("{path:.*}") public Response optionsAll(@PathParam("path") String path) { return Response.status(Response.Status.NO_CONTENT) .header("Access-Control-Allow-Origin", "*") // "127.0.0.1" does not work .header("Ac...
<|file_sep|>src/main/java/com/giraone/samples/pmspoc1/boundary/core/BaseEndpoint.java.diff original: updated: import javax.ws.rs.core.Response.ResponseBuilder; <|file_sep|>src/main/java/com/giraone/samples/pmspoc1/boundary/core/BaseEndpoint.java.diff original: // Match root-resources updated: // Matches root-resourc...
1020be2667256f2c00b73dc680e994fcf321e2ad
src/main/java/com/giraone/samples/pmspoc1/boundary/core/BaseEndpoint.java
src/main/java/com/giraone/samples/pmspoc1/boundary/core/BaseEndpoint.java
Java
<|file_sep|>original/.github/workflows/ci.yml jobs: test: name: Test runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: os: - ubuntu-18.04 - macos-latest ruby_version: - 2.6.x - 2.5.x - 2.4.x python_version: - 3...
jobs: test: name: Test runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: os: - ubuntu-18.04 #- macos-latest ruby_version: - 2.6.x - 2.5.x - 2.4.x python_version: - 3.8.x - 3.7.x - 3.6.x ...
<|file_sep|>original/.github/workflows/ci.yml jobs: test: name: Test runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: os: - ubuntu-18.04 - macos-latest ruby_version: - 2.6.x - 2.5.x - 2.4.x python_version: - 3...
78a5f8fc0bc4fdc77185f786070f6bf65c1d7548
.github/workflows/ci.yml
.github/workflows/ci.yml
YAML